@eshal-bot/chat-widget 0.1.120 → 0.1.122

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.
@@ -1,4 +1,4 @@
1
- import{_ as e,a as t,C as n}from"./chat-widget-index-yu9GyyYn.esm.js";import*as r from"react";import a,{isValidElement as i,Children as o,PureComponent as s,forwardRef as l,useRef as c,useImperativeHandle as u,useState as d,useCallback as p,useEffect as f,useMemo as g,cloneElement as m,createElement as h,useContext as b,createContext as y,Component as v}from"react";import{jsxs as E,jsx as S,Fragment as w}from"react/jsx-runtime";import"react-dom/client";import"react-dom";var A="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function k(){}function x(){}const T=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,O=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,_={};function I(e,t){return(_.jsx?O:T).test(e)}const N=/[ \t\n\f\r]/g;function R(e){return""===e.replace(N,"")}let C=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};function D(e,t){const n={},r={};for(const t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new C(n,r,t)}function P(e){return e.toLowerCase()}C.prototype.normal={},C.prototype.property={},C.prototype.space=void 0;let L=class{constructor(e,t){this.attribute=t,this.property=e}};L.prototype.attribute="",L.prototype.booleanish=!1,L.prototype.boolean=!1,L.prototype.commaOrSpaceSeparated=!1,L.prototype.commaSeparated=!1,L.prototype.defined=!1,L.prototype.mustUseProperty=!1,L.prototype.number=!1,L.prototype.overloadedBoolean=!1,L.prototype.property="",L.prototype.spaceSeparated=!1,L.prototype.space=void 0;let M=0;const F=q(),j=q(),B=q(),U=q(),z=q(),$=q(),G=q();function q(){return 2**++M}var H=Object.freeze({__proto__:null,boolean:F,booleanish:j,commaOrSpaceSeparated:G,commaSeparated:$,number:U,overloadedBoolean:B,spaceSeparated:z});const V=Object.keys(H);let W=class extends L{constructor(e,t,n,r){let a=-1;if(super(e,t),Y(this,"space",r),"number"==typeof n)for(;++a<V.length;){const e=V[a];Y(this,V[a],(n&H[e])===H[e])}}};function Y(e,t,n){n&&(e[t]=n)}function K(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const i=new W(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[P(r)]=r,n[P(i.attribute)]=r}return new C(t,n,e.space)}W.prototype.defined=!0;const X=K({properties:{ariaActiveDescendant:null,ariaAtomic:j,ariaAutoComplete:null,ariaBusy:j,ariaChecked:j,ariaColCount:U,ariaColIndex:U,ariaColSpan:U,ariaControls:z,ariaCurrent:null,ariaDescribedBy:z,ariaDetails:null,ariaDisabled:j,ariaDropEffect:z,ariaErrorMessage:null,ariaExpanded:j,ariaFlowTo:z,ariaGrabbed:j,ariaHasPopup:null,ariaHidden:j,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:z,ariaLevel:U,ariaLive:null,ariaModal:j,ariaMultiLine:j,ariaMultiSelectable:j,ariaOrientation:null,ariaOwns:z,ariaPlaceholder:null,ariaPosInSet:U,ariaPressed:j,ariaReadOnly:j,ariaRelevant:null,ariaRequired:j,ariaRoleDescription:z,ariaRowCount:U,ariaRowIndex:U,ariaRowSpan:U,ariaSelected:j,ariaSetSize:U,ariaSort:null,ariaValueMax:U,ariaValueMin:U,ariaValueNow:U,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function Z(e,t){return t in e?e[t]:t}function Q(e,t){return Z(e,t.toLowerCase())}const J=K({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:$,acceptCharset:z,accessKey:z,action:null,allow:null,allowFullScreen:F,allowPaymentRequest:F,allowUserMedia:F,alt:null,as:null,async:F,autoCapitalize:null,autoComplete:z,autoFocus:F,autoPlay:F,blocking:z,capture:null,charSet:null,checked:F,cite:null,className:z,cols:U,colSpan:null,content:null,contentEditable:j,controls:F,controlsList:z,coords:U|$,crossOrigin:null,data:null,dateTime:null,decoding:null,default:F,defer:F,dir:null,dirName:null,disabled:F,download:B,draggable:j,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:F,formTarget:null,headers:z,height:U,hidden:B,high:U,href:null,hrefLang:null,htmlFor:z,httpEquiv:z,id:null,imageSizes:null,imageSrcSet:null,inert:F,inputMode:null,integrity:null,is:null,isMap:F,itemId:null,itemProp:z,itemRef:z,itemScope:F,itemType:z,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:F,low:U,manifest:null,max:null,maxLength:U,media:null,method:null,min:null,minLength:U,multiple:F,muted:F,name:null,nonce:null,noModule:F,noValidate:F,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:F,optimum:U,pattern:null,ping:z,placeholder:null,playsInline:F,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:F,referrerPolicy:null,rel:z,required:F,reversed:F,rows:U,rowSpan:U,sandbox:z,scope:null,scoped:F,seamless:F,selected:F,shadowRootClonable:F,shadowRootDelegatesFocus:F,shadowRootMode:null,shape:null,size:U,sizes:null,slot:null,span:U,spellCheck:j,src:null,srcDoc:null,srcLang:null,srcSet:null,start:U,step:null,style:null,tabIndex:U,target:null,title:null,translate:null,type:null,typeMustMatch:F,useMap:null,value:j,width:U,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:z,axis:null,background:null,bgColor:null,border:U,borderColor:null,bottomMargin:U,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:F,declare:F,event:null,face:null,frame:null,frameBorder:null,hSpace:U,leftMargin:U,link:null,longDesc:null,lowSrc:null,marginHeight:U,marginWidth:U,noResize:F,noHref:F,noShade:F,noWrap:F,object:null,profile:null,prompt:null,rev:null,rightMargin:U,rules:null,scheme:null,scrolling:j,standby:null,summary:null,text:null,topMargin:U,valueType:null,version:null,vAlign:null,vLink:null,vSpace:U,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:F,disableRemotePlayback:F,prefix:null,property:null,results:U,security:null,unselectable:null},space:"html",transform:Q}),ee=K({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:G,accentHeight:U,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:U,amplitude:U,arabicForm:null,ascent:U,attributeName:null,attributeType:null,azimuth:U,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:U,by:null,calcMode:null,capHeight:U,className:z,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:U,diffuseConstant:U,direction:null,display:null,dur:null,divisor:U,dominantBaseline:null,download:F,dx:null,dy:null,edgeMode:null,editable:null,elevation:U,enableBackground:null,end:null,event:null,exponent:U,externalResourcesRequired:null,fill:null,fillOpacity:U,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:$,g2:$,glyphName:$,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:U,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:U,horizOriginX:U,horizOriginY:U,id:null,ideographic:U,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:U,k:U,k1:U,k2:U,k3:U,k4:U,kernelMatrix:G,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:U,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:U,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:U,overlineThickness:U,paintOrder:null,panose1:null,path:null,pathLength:U,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:z,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:U,pointsAtY:U,pointsAtZ:U,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:G,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:G,rev:G,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:G,requiredFeatures:G,requiredFonts:G,requiredFormats:G,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:U,specularExponent:U,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:U,strikethroughThickness:U,string:null,stroke:null,strokeDashArray:G,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:U,strokeOpacity:U,strokeWidth:null,style:null,surfaceScale:U,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:G,tabIndex:U,tableValues:null,target:null,targetX:U,targetY:U,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:G,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:U,underlineThickness:U,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:U,values:null,vAlphabetic:U,vMathematical:U,vectorEffect:null,vHanging:U,vIdeographic:U,version:null,vertAdvY:U,vertOriginX:U,vertOriginY:U,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:U,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Z}),te=K({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()}),ne=K({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Q}),re=K({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),ae={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,oe=/-[a-z]/g,se=/^data[-\w.:]+$/i;function le(e){return"-"+e.toLowerCase()}function ce(e){return e.charAt(1).toUpperCase()}const ue=D([X,J,te,ne,re],"html"),de=D([X,ee,te,ne,re],"svg");var pe={},fe=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ge=/\n/g,me=/^\s*/,he=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,be=/^:\s*/,ye=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,ve=/^[;\s]*/,Ee=/^\s+|\s+$/g,Se="";function we(e){return e?e.replace(Ee,Se):Se}var Ae=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(ge);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(me)}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;Se!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,Se===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(he);if(t){if(d(),!l(be))return s("property missing ':'");var n=l(ye),r=e({type:"declaration",property:we(t[0].replace(fe,Se)),value:n?we(n[0].replace(fe,Se)):Se});return l(ve),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}()},ke=A&&A.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pe,"__esModule",{value:!0}),pe.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;const r=(0,xe.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 xe=ke(Ae);var Te={};Object.defineProperty(Te,"__esModule",{value:!0}),Te.camelCase=void 0;var Oe=/^--[a-zA-Z0-9_-]+$/,_e=/-([a-z])/g,Ie=/^[^-]+$/,Ne=/^-(webkit|moz|ms|o|khtml)-/,Re=/^-(ms)-/,Ce=function(e,t){return t.toUpperCase()},De=function(e,t){return"".concat(t,"-")};Te.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||Ie.test(e)||Oe.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(Re,De):e.replace(Ne,De)).replace(_e,Ce))};var Pe=(A&&A.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(pe),Le=Te;function Me(e,t){var n={};return e&&"string"==typeof e?((0,Pe.default)(e,function(e,r){e&&r&&(n[(0,Le.camelCase)(e,t)]=r)}),n):n}Me.default=Me;var Fe=Me;const je=Ue("end"),Be=Ue("start");function Ue(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 ze(e){return e&&"object"==typeof e?"position"in e||"type"in e?Ge(e.position):"start"in e||"end"in e?Ge(e):"line"in e||"column"in e?$e(e):"":""}function $e(e){return qe(e&&e.line)+":"+qe(e&&e.column)}function Ge(e){return $e(e&&e.start)+"-"+$e(e&&e.end)}function qe(e){return e&&"number"==typeof e?e:1}class He 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=ze(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}}He.prototype.file="",He.prototype.name="",He.prototype.reason="",He.prototype.message="",He.prototype.stack="",He.prototype.column=void 0,He.prototype.line=void 0,He.prototype.ancestors=void 0,He.prototype.cause=void 0,He.prototype.fatal=void 0,He.prototype.place=void 0,He.prototype.ruleId=void 0,He.prototype.source=void 0;const Ve={}.hasOwnProperty,We=new Map,Ye=/[A-Z]/g,Ke=new Set(["table","tbody","thead","tfoot","tr"]),Xe=new Set(["td","th"]),Ze="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Qe(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=Be(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?de:ue,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},i=Je(a,e,void 0);return i&&"string"!=typeof i?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function Je(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=de,e.schema=a);e.ancestors.push(t);const i=at(e,t.tagName,!1),o=function(e,t){const n={};let r,a;for(a in t.properties)if("children"!==a&&Ve.call(t.properties,a)){const i=rt(e,a,t.properties[a]);if(i){const[a,o]=i;e.tableCellAlignToStyle&&"align"===a&&"string"==typeof o&&Xe.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=nt(e,t);Ke.has(t.tagName)&&(s=s.filter(function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&R(t.value):R(t));var t}));return et(e,o,i,t),tt(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=de,e.schema=a);e.ancestors.push(t);const i=null===t.name?e.Fragment:at(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];k(t.type);const a=t.expression;k(a.type);const i=a.properties[0];k(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];k(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=nt(e,t);return et(e,o,i,t),tt(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 tt(r,nt(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 et(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function tt(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function nt(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:We;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=Je(e,i,o);void 0!==s&&n.push(s)}return n}function rt(e,t,n){const r=function(e,t){const n=P(t);let r=t,a=L;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&se.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(oe,ce);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!oe.test(e)){let n=e.replace(ie,le);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}a=W}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 Fe(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const n=t,r=new He("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=Ze+"#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)Ve.call(e,n)&&(t[ot(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?ae[r.property]||r.property:r.attribute,n]}}function at(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,a=-1;for(;++a<e.length;){const t=I(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=I(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 Ve.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 He("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=Ze+"#cannot-handle-mdx-estrees-without-createevaluater",n}function ot(e){let t=e.replace(Ye,st);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function st(e){return"-"+e.toLowerCase()}const lt={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"]},ct={};function ut(e,t){return dt(e,"boolean"!=typeof ct.includeImageAlt||ct.includeImageAlt,"boolean"!=typeof ct.includeHtml||ct.includeHtml)}function dt(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 pt(e.children,t,n)}return Array.isArray(e)?pt(e,t,n):""}function pt(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=dt(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:"‌"},gt={}.hasOwnProperty;function mt(e){return!!gt.call(ft,e)&&ft[e]}function ht(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 bt(e,t){return e.length>0?(ht(e,e.length,0,t),e):t}const yt={}.hasOwnProperty;function vt(e){const t={};let n=-1;for(;++n<e.length;)Et(t,e[n]);return t}function Et(e,t){let n;for(n in t){const r=(yt.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let i;if(a)for(i in a){yt.call(r,i)||(r[i]=[]);const e=a[i];St(r[i],Array.isArray(e)?e:e?[e]:[])}}}function St(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);ht(e,0,0,r)}function wt(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 At(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const kt=Mt(/[A-Za-z]/),xt=Mt(/[\dA-Za-z]/),Tt=Mt(/[#-'*+\--9=?A-Z^-~]/);function Ot(e){return null!==e&&(e<32||127===e)}const _t=Mt(/\d/),It=Mt(/[\dA-Fa-f]/),Nt=Mt(/[!-/:-@[-`{-~]/);function Rt(e){return null!==e&&e<-2}function Ct(e){return null!==e&&(e<0||32===e)}function Dt(e){return-2===e||-1===e||32===e}const Pt=Mt(/\p{P}|\p{S}/u),Lt=Mt(/\s/);function Mt(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function Ft(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const i=e.charCodeAt(n);let o="";if(37===i&&xt(e.charCodeAt(n+1))&&xt(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 jt(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){if(Dt(r))return e.enter(n),o(r);return t(r)};function o(r){return Dt(r)&&i++<a?(e.consume(r),o):(e.exit(n),t(r))}}const Bt={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"),jt(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)):Rt(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),a)}}};const Ut={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 ht(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(zt,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(zt,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)):Rt(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++;ht(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}}},zt={tokenize:function(e,t,n){return jt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function $t(e){return null===e||Ct(e)||Lt(e)?1:Pt(e)?2:void 0}function Gt(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 qt={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};Ht(d,-s),Ht(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=bt(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=bt(l,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",a,t]]),l=bt(l,Gt(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=bt(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=bt(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,ht(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=$t(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=$t(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 Ht(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Vt={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 kt(t)?(e.consume(t),i):64===t?n(t):l(t)}function i(e){return 43===e||45===e||46===e||xt(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||xt(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||Ot(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),c):Tt(t)?(e.consume(t),l):n(t)}function c(e){return xt(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||xt(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}};const Wt={partial:!0,tokenize:function(e,t,n){return function(t){return Dt(t)?jt(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||Rt(e)?t(e):n(e)}}};const Yt={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(Dt(t))return jt(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return a(t)};function a(r){return e.attempt(Yt,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 Dt(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};const Kt={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 Nt(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const Xt={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=xt,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=It,c):(e.enter("characterReferenceValue"),a=7,i=_t,c(t))}function c(s){if(59===s&&o){const a=e.exit("characterReferenceValue");return i!==xt||mt(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 Zt={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)}}},Qt={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"),Dt(t)?jt(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"),Dt(t)?jt(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||Rt(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"),Dt(t)?jt(e,c,"whitespace")(t):c(t))}function c(n){return null===n||Rt(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(Zt,f,y)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||Rt(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):Dt(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),jt(e,d,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),u)}function d(t){return null===t||Rt(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||Rt(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&&Dt(t)?jt(e,h,"linePrefix",o+1)(t):h(t)}function h(t){return null===t||Rt(t)?e.check(Zt,f,y)(t):(e.enter("codeFlowValue"),b(t))}function b(t){return null===t||Rt(t)?(e.exit("codeFlowValue"),h(t)):(e.consume(t),b)}function y(n){return e.exit("codeFenced"),t(n)}}};const Jt={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),jt(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):Rt(t)?e.attempt(en,i,s)(t):(e.enter("codeFlowValue"),o(t))}function o(t){return null===t||Rt(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),o)}function s(n){return e.exit("codeIndented"),t(n)}}},en={partial:!0,tokenize:function(e,t,n){const r=this;return a;function a(t){return r.parser.lazy[r.now().line]?n(t):Rt(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):jt(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):Rt(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)):Rt(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||Rt(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 nn{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&&rn(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),rn(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),rn(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);rn(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);rn(this.left,t.reverse())}}}function rn(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 an(e){const t={};let n,r,a,i,o,s,l,c=-1;const u=new nn(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,on(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 ht(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function on(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 sn={resolve:function(e){return an(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):Rt(t)?e.check(ln,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}}},ln={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"),jt(e,a,"linePrefix")};function a(a){if(null===a||Rt(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 cn(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||Ot(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||Rt(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&&!Ct(a)?u<c&&40===a?(e.consume(a),u++,g):41===a?(e.consume(a),u--,g):null===a||32===a||40===a||Ot(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 un(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):Rt(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||Rt(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!Dt(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function dn(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):Rt(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),jt(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===o||null===t||Rt(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 pn(e,t){let n;return function r(a){if(Rt(a))return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r;if(Dt(a))return jt(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 un.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return a=At(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 Ct(t)?pn(e,s)(t):s(t)}function s(t){return cn(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(gn,c,c)(t)}function c(t){return Dt(t)?jt(e,u,"whitespace")(t):u(t)}function u(i){return null===i||Rt(i)?(e.exit("definition"),r.parser.defined.push(a),t(i)):n(i)}}},gn={partial:!0,tokenize:function(e,t,n){return function(t){return Ct(t)?pn(e,r)(t):n(t)};function r(t){return dn(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function a(t){return Dt(t)?jt(e,i,"whitespace")(t):i(t)}function i(e){return null===e||Rt(e)?t(e):n(e)}}};const mn={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return Rt(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const hn={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"},ht(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||Ct(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),o(n)):null===n||Rt(n)?(e.exit("atxHeading"),t(n)):Dt(n)?jt(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||Ct(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),s)}}};const bn=["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"],yn=["pre","script","style","textarea"],vn={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):kt(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):kt(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 kt(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(null===s||47===s||62===s||Ct(s)){const l=47===s,c=o.toLowerCase();return l||i||!yn.includes(c)?bn.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||xt(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 Dt(t)?(e.consume(t),h):k(t)}function b(t){return 47===t?(e.consume(t),k):58===t||95===t||kt(t)?(e.consume(t),y):Dt(t)?(e.consume(t),b):k(t)}function y(t){return 45===t||46===t||58===t||95===t||xt(t)?(e.consume(t),y):v(t)}function v(t){return 61===t?(e.consume(t),E):Dt(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):Dt(t)?(e.consume(t),E):w(t)}function S(t){return t===l?(e.consume(t),l=null,A):null===t||Rt(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||Ct(t)?v(t):(e.consume(t),w)}function A(e){return 47===e||62===e||Dt(e)?b(e):n(e)}function k(t){return 62===t?(e.consume(t),x):n(t)}function x(t){return null===t||Rt(t)?T(t):Dt(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):!Rt(t)||6!==a&&7!==a?null===t||Rt(t)?(e.exit("htmlFlowData"),O(t)):(e.consume(t),T):(e.exit("htmlFlowData"),e.check(En,M,O)(t))}function O(t){return e.check(Sn,_,M)(t)}function _(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return null===t||Rt(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 yn.includes(n)?(e.consume(t),L):T(t)}return kt(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||Rt(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),L)}function M(n){return e.exit("htmlFlow"),t(n)}}},En={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Wt,t,n)}}},Sn={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(Rt(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 wn={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):kt(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):kt(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):Rt(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):Rt(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):Rt(t)?(o=b,C(t)):(e.consume(t),b)}function y(t){return null===t?n(t):63===t?(e.consume(t),v):Rt(t)?(o=y,C(t)):(e.consume(t),y)}function v(e){return 62===e?R(e):y(e)}function E(t){return kt(t)?(e.consume(t),S):n(t)}function S(t){return 45===t||xt(t)?(e.consume(t),S):w(t)}function w(t){return Rt(t)?(o=w,C(t)):Dt(t)?(e.consume(t),w):R(t)}function A(t){return 45===t||xt(t)?(e.consume(t),A):47===t||62===t||Ct(t)?k(t):n(t)}function k(t){return 47===t?(e.consume(t),R):58===t||95===t||kt(t)?(e.consume(t),x):Rt(t)?(o=k,C(t)):Dt(t)?(e.consume(t),k):R(t)}function x(t){return 45===t||46===t||58===t||95===t||xt(t)?(e.consume(t),x):T(t)}function T(t){return 61===t?(e.consume(t),O):Rt(t)?(o=T,C(t)):Dt(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,_):Rt(t)?(o=O,C(t)):Dt(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):Rt(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||Ct(t)?k(t):(e.consume(t),I)}function N(e){return 47===e||62===e||Ct(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 Dt(t)?jt(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 An={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&&ht(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=bt(i,e.slice(r+1,r+s+3)),i=bt(i,[["enter",u,t]]),i=bt(i,Gt(t.parser.constructs.insideSpan.null,e.slice(r+s+4,a-3),t)),i=bt(i,[["exit",u,t],e[a-2],e[a-1],["exit",c,t]]),i=bt(i,e.slice(a+1)),i=bt(i,[["exit",l,t]]),ht(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(At(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(kn,c,i?c:u)(t):91===t?e.attempt(xn,c,i?l:u)(t):i?c(t):u(t)}function l(t){return e.attempt(Tn,c,u)(t)}function c(e){return t(e)}function u(e){return a._balanced=!0,n(e)}}},kn={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 Ct(t)?pn(e,a)(t):a(t)}function a(t){return 41===t?c(t):cn(e,i,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return Ct(t)?pn(e,s)(t):c(t)}function o(e){return n(e)}function s(t){return 34===t||39===t||40===t?dn(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return Ct(t)?pn(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)}}},xn={tokenize:function(e,t,n){const r=this;return function(t){return un.call(r,e,a,i,"reference","referenceMarker","referenceString")(t)};function a(e){return r.parser.defined.includes(At(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},Tn={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 On={name:"labelStartImage",resolveAll:An.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 _n={name:"labelStartLink",resolveAll:An.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 In={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),jt(e,t,"linePrefix")}}};const Nn={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||Rt(i))?(e.exit("thematicBreak"),t(i)):n(i)}function o(t){return t===r?(e.consume(t),a++,o):(e.exit("thematicBreakSequence"),Dt(t)?jt(e,i,"whitespace")(t):i(t))}}};const Rn={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Wt,a,i);function a(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,jt(e,t,"listItemIndent",r.containerState.size+1)(n)}function i(n){return r.containerState.furtherBlankLines||!Dt(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(Dn,t,o)(n))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,jt(e,e.attempt(Rn,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:_t(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(Nn,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 _t(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(Wt,r.interrupt?n:c,e.attempt(Cn,d,u))}function c(e){return r.containerState.initialBlankLine=!0,i++,d(e)}function u(t){return Dt(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)}}},Cn={partial:!0,tokenize:function(e,t,n){const r=this;return jt(e,function(e){const a=r.events[r.events.length-1];return!Dt(e)&&a&&"listItemPrefixWhitespace"===a[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},Dn={partial:!0,tokenize:function(e,t,n){const r=this;return jt(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 Pn={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"),Dt(t)?jt(e,o,"lineSuffix")(t):o(t))}function o(r){return null===r||Rt(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const Ln={tokenize:function(e){const t=this,n=e.attempt(Wt,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,jt(e,e.attempt(this.parser.constructs.flow,r,e.attempt(sn,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 Mn={resolveAll:Un()},Fn=Bn("string"),jn=Bn("text");function Bn(e){return{resolveAll:Un("text"===e?zn: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 Un(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 zn(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 $n={42:Rn,43:Rn,45:Rn,48:Rn,49:Rn,50:Rn,51:Rn,52:Rn,53:Rn,54:Rn,55:Rn,56:Rn,57:Rn,62:Yt},Gn={91:fn},qn={[-2]:Jt,[-1]:Jt,32:Jt},Hn={35:hn,42:Nn,45:[Pn,Nn],60:vn,61:Pn,95:Nn,96:Qt,126:Qt},Vn={38:Xt,92:Kt},Wn={[-5]:In,[-4]:In,[-3]:In,33:On,38:Xt,42:qt,60:[Vt,wn],91:_n,92:[mn,Kt],93:An,95:qt,96:tn},Yn={null:[qt,Mn]};var Kn=Object.freeze({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:Gn,disable:{null:[]},document:$n,flow:Hn,flowInitial:qn,insideSpan:Yn,string:Vn,text:Wn});function Xn(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){Rt(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=bt(o,e),f(),null!==o[o.length-1])return[];return b(t,0),c.events=Gt(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&&ht(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 Zn=/[\0\t\n\r]/g;const Qn=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Jn(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return wt(n.slice(t?2:1),t?16:10)}return mt(n)||e}const er={}.hasOwnProperty;function tr(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()}};rr(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]];er.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:nr(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:nr(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:nr(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+"` ("+ze({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=nr(e.end)}function u(){return ut(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=At(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:nr(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=nr(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=nr(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(Qn,Jn)}(t),n.identifier=At(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=At(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=wt(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=mt(t)}this.stack[this.stack.length-1].value+=r}function G(e){this.stack.pop().position.end=nr(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(;!an(e););return e}(function(e){const t={constructs:vt([Kn,...(e||{}).extensions||[]]),content:n(Bt),defined:[],document:n(Ut),flow:n(Ln),lazy:{},string:n(Fn),text:n(jn)};return t;function n(e){return function(n){return Xn(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(Zn.lastIndex=u,l=Zn.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 nr(e){return{line:e.line,column:e.column,offset:e.offset}}function rr(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?rr(e,r):ar(e,r)}}function ar(e,t){let n;for(n in t)if(er.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+"` ("+ze({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ze({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ze({start:t.start,end:t.end})+") is still open")}function or(e){const t=this;t.parser=function(n){return tr(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function sr(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 lr(e){const t=e.spread;return null==t?e.children.length>1:t}function cr(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const i=[];for(;r;)i.push(ur(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return i.push(ur(t.slice(a),a>0,!1)),i.join("")}function ur(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 dr={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=Ft(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 sr(e,t);const a={src:Ft(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:Ft(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 sr(e,t);const a={href:Ft(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:Ft(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=lr(n[r])}return t}(n):lr(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=Be(t.children[1]),o=je(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:cr(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:pr,yaml:pr,definition:pr,footnoteDefinition:pr};function pr(){}const fr="object"==typeof self?self:globalThis,gr=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),mr="",{toString:hr}={},{keys:br}=Object,yr=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=hr.call(e).slice(8,-1);switch(n){case"Array":return[1,mr];case"Object":return[2,mr];case"Date":return[3,mr];case"RegExp":return[4,mr];case"Map":return[5,mr];case"Set":return[6,mr];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},vr=([e,t])=>0===e&&("function"===t||"symbol"===t),Er=(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]=yr(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 br(r))!e&&vr(yr(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||!vr(yr(n))&&!vr(yr(a)))&&t.push([i(n),i(a)]);return n}case 6:{const t=[],n=a([o,t],r);for(const n of r)!e&&vr(yr(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 Sr="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?gr(Er(e,t)):structuredClone(e):(e,t)=>gr(Er(e,t));function wr(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 Ar(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const kr=function(e){if(null==e)return Tr;if("function"==typeof e)return xr(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=kr(e[n]);return xr(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return xr(n);function n(n){const r=n;let a;for(a in e)if(r[a]!==t[a])return!1;return!0}}(e);if("string"==typeof e)return function(e){return xr(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function xr(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function Tr(){return!0}const Or=[],_r=!0,Ir=!1,Nr="skip";function Rr(e,t,n,r){let a;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):a=t;const i=kr(a),o=r?-1:1;!function e(a,s,l){const c=a&&"object"==typeof a?a:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+a.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,p=Or;if((!t||i(a,s,l[l.length-1]||void 0))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[_r,e];return null==e?Or:[e]}(n(a,l)),p[0]===Ir))return p;if("children"in a&&a.children){const t=a;if(t.children&&p[0]!==Nr)for(u=(r?t.children.length:-1)+o,d=l.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,d)(),c[0]===Ir)return c;u="number"==typeof c[1]?c[1]:u+o}}return p}}(e,void 0,[])()}function Cr(e,t,n,r){let a,i,o;"function"==typeof t&&"function"!=typeof n?(i=void 0,o=t,a=n):(i=t,o=n,a=r),Rr(e,i,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)},a)}const Dr={}.hasOwnProperty,Pr={};function Lr(e,t){e.position&&(t.position=function(e){const t=Be(e),n=je(e);if(t&&n)return{start:t,end:n}}(e))}function Mr(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,Sr(a)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function Fr(e,t){const n=t.data||{},r=!("value"in t)||Dr.call(n,"hProperties")||Dr.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 Br(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function Ur(e,t){const n=function(e,t){const n=t||Pr,r=new Map,a=new Map,i=new Map,o={...dr,...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=Br(a.value)),!Array.isArray(a)&&"element"===a.type)){const e=a.children[0];e&&"text"===e.type&&(e.value=Br(e.value))}Array.isArray(a)?t.push(...a):t.push(a)}}}return t},applyData:Mr,definitionById:r,footnoteById:a,footnoteCounts:i,footnoteOrder:[],handlers:o,one:function(e,t){const n=e.type,r=s.handlers[n];if(Dr.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=Sr(n);return r.children=s.all(e),r}return Sr(e)}return(s.options.unknownHandler||Fr)(s,e,t)},options:n,patch:Lr,wrap:jr};return Cr(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||wr,r=e.options.footnoteBackLabel||Ar,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=Ft(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:{...Sr(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 zr(e,t){return e&&"run"in e?async function(n,r){const a=Ur(n,{file:r,...t});await e.run(a,r)}:function(n,r){return Ur(n,{file:r,...e||t})}}function $r(e){if(e)throw e}var Gr=Object.prototype.hasOwnProperty,qr=Object.prototype.toString,Hr=Object.defineProperty,Vr=Object.getOwnPropertyDescriptor,Wr=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===qr.call(e)},Yr=function(e){if(!e||"[object Object]"!==qr.call(e))return!1;var t,n=Gr.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Gr.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Gr.call(e,t)},Kr=function(e,t){Hr&&"__proto__"===t.name?Hr(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Xr=function(e,t){if("__proto__"===t){if(!Gr.call(e,t))return;if(Vr)return Vr(e,t).value}return e[t]},Zr=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=Xr(s,n),s!==(a=Xr(t,n))&&(u&&a&&(Yr(a)||(i=Wr(a)))?(i?(i=!1,o=r&&Wr(r)?r:[]):o=r&&Yr(r)?r:{},Kr(s,{name:n,newValue:e(u,o,a)})):void 0!==a&&Kr(s,{name:n,newValue:a}));return s};function Qr(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 Jr(){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 ea={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');ta(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(ta(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){ta(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;)ta(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){ta(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 ta(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const na={cwd:function(){return"/"}};function ra(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function aa(e){if("string"==typeof e)e=new URL(e);else if(!ra(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 ia=["history","path","basename","stem","extname","dirname"];class oa{constructor(e){let t;t=e?ra(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?"":na.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<ia.length;){const e=ia[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)ia.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?ea.basename(this.path):void 0}set basename(e){la(e,"basename"),sa(e,"basename"),this.path=ea.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?ea.dirname(this.path):void 0}set dirname(e){ca(this.basename,"dirname"),this.path=ea.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?ea.extname(this.path):void 0}set extname(e){if(sa(e,"extname"),ca(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=ea.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){ra(e)&&(e=aa(e)),la(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?ea.basename(this.path,this.extname):void 0}set stem(e){la(e,"stem"),sa(e,"stem"),this.path=ea.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 He(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 sa(e,t){if(e&&e.includes(ea.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ea.sep+"`")}function la(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function ca(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const ua=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},da={}.hasOwnProperty;class pa extends ua{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=Jr()}copy(){const e=new pa;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(Zr(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(ha("data",this.frozen),this.namespace[e]=t,this):da.call(this.namespace,e)&&this.namespace[e]||void 0:e?(ha("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=va(e),n=this.parser||this.Parser;return ga("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),ga("process",this.parser||this.Parser),ma("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,a){const i=va(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(),ga("processSync",this.parser||this.Parser),ma("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,$r(e),t=r}),ya("processSync","process",n),t}run(e,t,n){ba(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=va(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){$r(e),n=t,r=!0}),ya("runSync","run",r),n}stringify(e,t){this.freeze();const n=va(t),r=this.compiler||this.Compiler;return ma("stringify",r),ba(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(ha("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=Zr(!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];Qr(o)&&Qr(r)&&(r=Zr(!0,o,r)),n[a]=[e,r,...i]}}}}const fa=(new pa).freeze();function ga(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function ma(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function ha(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 ba(e){if(!Qr(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function ya(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function va(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new oa(e)}const Ea=[],Sa={allowDangerousHtml:!0},wa=/^(https?|ircs?|mailto|xmpp)$/i,Aa=[{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 ka(e){const t=function(e){const t=e.rehypePlugins||Ea,n=e.remarkPlugins||Ea,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Sa}:Sa,a=fa().use(or).use(n).use(zr,r).use(t);return a}(e),n=function(e){const t=e.children||"",n=new oa;"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||xa;for(const e of Aa)Object.hasOwn(t,e.from)&&x((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 Cr(e,c),Qe(e,{Fragment:w,components:a,ignoreInvalidStyle:!0,jsx:S,jsxs:E,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 lt)if(Object.hasOwn(lt,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=lt[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 xa(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||wa.test(e.slice(0,t))?e:""}function Ta(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 Oa(e,t,n){const r=kr((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([_a(e[0]),Ia(e[1])])}return t}(t);let i=-1;for(;++i<a.length;)Rr(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 _a(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 Ia(e){return"function"==typeof e?e:function(){return e}}const Na="phrasing",Ra=["autolink","link","image","label"];function Ca(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Da(e){this.config.enter.autolinkProtocol.call(this,e)}function Pa(e){this.config.exit.autolinkProtocol.call(this,e)}function La(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 Ma(e){this.config.exit.autolinkEmail.call(this,e)}function Fa(e){this.exit(e)}function ja(e){Oa(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Ba],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,Ua]],{ignore:["link","linkReference"]})}function Ba(e,t,n,r,a){let i="";if(!za(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=Ta(e,"(");let i=Ta(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 Ua(e,t,n,r){return!(!za(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function za(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||Lt(n)||Pt(n))&&(!t||47!==n)}function $a(){this.buffer()}function Ga(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function qa(){this.buffer()}function Ha(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Va(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=At(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Wa(e){this.exit(e)}function Ya(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=At(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Ka(e){this.exit(e)}function Xa(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 Za(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?Ja:Qa)));return s(),o},footnoteReference:Xa},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function Qa(e,t,n){return 0===t?e:Ja(e,t,n)}function Ja(e,t,n){return(n?"":" ")+e}Xa.peek=function(){return"["};const ei=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function ti(e){this.enter({type:"delete",children:[]},e)}function ni(e){this.exit(e)}function ri(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 ai(e){return e.length}function ii(e){return null==e?"":String(e)}function oi(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 si(e,t,n){return">"+(n?"":" ")+e}function li(e,t){return ci(e,t.inConstruct,!0)&&!ci(e,t.notInConstruct,!1)}function ci(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 ui(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if("\n"===n.unsafe[a].character&&li(n.stack,n.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return"\\\n"}function di(e,t,n){return(n?"":" ")+e}function pi(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 fi(e){return"&#x"+e.toString(16).toUpperCase()+";"}function gi(e,t,n){const r=$t(e),a=$t(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 mi(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=gi(r.before.charCodeAt(r.before.length-1),c,a);u.inside&&(l=fi(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=gi(r.after.charCodeAt(0),d,a);p.inside&&(l=l.slice(0,-1)+fi(d));const f=o.move(a);return i(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+f}function hi(e){return e.value||""}function bi(e,t,n,r){const a=pi(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 yi(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 vi(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 Ei(e,t){const n=ut(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 Si(e,t,n,r){const a=pi(n),i='"'===a?"Quote":"Apostrophe",o=n.createTracker(r);let s,l;if(Ei(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 wi(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 Ai(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 ki(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}ri.peek=function(){return"~"},mi.peek=function(e,t,n){return n.options.emphasis||"*"},hi.peek=function(){return"<"},bi.peek=function(){return"!"},yi.peek=function(){return"!"},vi.peek=function(){return"`"},Si.peek=function(e,t,n){return Ei(e,n)?"<":"["},wi.peek=function(){return"["};const xi=kr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Ti(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=gi(r.before.charCodeAt(r.before.length-1),c,a);u.inside&&(l=fi(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=gi(r.after.charCodeAt(0),d,a);p.inside&&(l=l.slice(0,-1)+fi(d));const f=o.move(a+a);return i(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+f}Ti.peek=function(e,t,n){return n.options.strong||"*"};const Oi={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()),si);return a(),o},break:ui,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,di);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=pi(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:mi,hardBreak:ui,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 Cr(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,Ir}),Boolean((!e.depth||e.depth<3)&&ut(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=fi(c.charCodeAt(0))+c.slice(1)),c=c?o+" "+c:o,n.options.closeAtx&&(c+=" "+o),l(),s(),c},html:hi,image:bi,imageReference:yi,inlineCode:vi,link:Si,linkReference:wi,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):Ai(n);const s=e.ordered?"."===o?")":".":function(e){const t=Ai(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),ki(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||Ai(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 xi(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:Ti,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(ki(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 _i(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 Ii(e){this.exit(e),this.data.inTable=void 0}function Ni(e){this.enter({type:"tableRow",children:[]},e)}function Ri(e){this.exit(e)}function Ci(e){this.enter({type:"tableCell",children:[]},e)}function Di(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Pi));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Pi(e,t){return"|"===t?t:e}function Li(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=Oi.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||ai,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=ii(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]=oi(r[d]);else{const e=oi(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 Mi(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function Fi(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=Oi.listItem(e,t,n,{...r,...s.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+o})),l}const Bi={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},Ui={tokenize:function(e,t,n){let r,a,i;return o;function o(t){return 46===t||95===t?e.check($i,l,s)(t):null===t||Ct(t)||Lt(t)||45!==t&&Pt(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},zi={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($i,t,i)(o):null===o||Ct(o)||Lt(o)?t(o):(e.consume(o),a)}function i(t){return 41===t&&r++,e.consume(t),a}},partial:!0},$i={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||Ct(o)||Lt(o)?t(o):n(o)}function a(e){return null===e||40===e||91===e||Ct(e)||Lt(e)?t(e):r(e)}function i(e){return kt(e)?o(e):n(e)}function o(t){return 59===t?(e.consume(t),r):kt(t)?(e.consume(t),o):n(t)}},partial:!0},Gi={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return xt(e)?n(e):t(e)}},partial:!0},qi={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!Ki.call(r,r.previous)||Ji(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Bi,e.attempt(Ui,e.attempt(zi,a),n),n)(t)};function a(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:Ki},Hi={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let a="",i=!1;return function(t){if((72===t||104===t)&&Xi.call(r,r.previous)&&!Ji(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(t),e.consume(t),o;return n(t)};function o(t){if(kt(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||Ot(t)||Ct(t)||Lt(t)||Pt(t)?n(t):e.attempt(Ui,e.attempt(zi,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:Xi},Vi={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let a,i;return function(t){if(!Qi(t)||!Zi.call(r,r.previous)||Ji(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(t)};function o(t){return Qi(t)?(e.consume(t),o):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(Gi,c,l)(t):45===t||95===t||xt(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&&kt(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(o)):n(o)}},previous:Zi},Wi={};let Yi=48;for(;Yi<123;)Wi[Yi]=Vi,Yi++,58===Yi?Yi=65:91===Yi&&(Yi=97);function Ki(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||Ct(e)}function Xi(e){return!kt(e)}function Zi(e){return!(47===e||Qi(e))}function Qi(e){return 43===e||45===e||46===e||95===e||xt(e)}function Ji(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}Wi[43]=Vi,Wi[45]=Vi,Wi[46]=Vi,Wi[95]=Vi,Wi[72]=[Vi,Hi],Wi[104]=[Vi,Hi],Wi[87]=[Vi,qi],Wi[119]=[Vi,qi];const eo={tokenize:function(e,t,n){const r=this;return jt(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 to(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=At(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 no(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 ro(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||Ct(s))return n(s);if(93===s){e.exit("chunkString");const i=e.exit("gfmFootnoteCallString");return a.includes(At(r.sliceSerialize(i)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return Ct(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 ao(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||Ct(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return i=At(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return Ct(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),jt(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function io(e,t,n){return e.check(Wt,t,e.attempt(eo,t,n))}function oo(e){e.exit("gfmFootnoteDefinition")}function so(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=$t(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=$t(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&&ht(o,o.length,0,Gt(s,e.slice(r+1,n),t)),ht(o,o.length,0,[["exit",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",a,t]]),ht(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 lo{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 co(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 uo(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):Rt(t)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):Dt(t)?jt(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||Ct(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,Dt(t)?jt(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 Dt(t)?jt(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||Rt(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 Dt(t)?jt(e,y,"whitespace")(t):y(t)}function y(n){return 124===n?p(n):(null===n||Rt(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||Rt(n)?(e.exit("tableRow"),t(n)):Dt(n)?jt(e,S,"whitespace")(n):(e.enter("data"),w(n))}function w(t){return null===t||124===t||Ct(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 po(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 lo;for(;++i<e.length;){const f=e[i],g=f[1];"enter"===f[0]?"tableHead"===g.type?(u=!1,0!==d&&(go(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=fo(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=fo(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=fo(p,t,l,s,i,a)):0!==c[1]&&(a=fo(p,t,c,s,i,a)),s=0):!s||"data"!==g.type&&"tableDelimiterMarker"!==g.type&&"tableDelimiterFiller"!==g.type||(c[3]=i)}for(0!==d&&go(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=co(t.events,i))}return e}function fo(e,t,n,r,a,i){const o=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(i.end=Object.assign({},mo(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const s=mo(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=mo(t.events,n[2]),i=mo(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({},mo(t.events,a)),e.add(a,0,[["exit",i,t]]),i=void 0),i}function go(e,t,n,r,a){const i=[],o=mo(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 mo(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const ho={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 Ct(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 Rt(r)?t(r):Dt(r)?e.check({tokenize:bo},t,n)(r):n(r)}}};function bo(e,t,n){return jt(e,function(e){return null===e?n(e):t(e)},"whitespace")}const yo={};function vo(e){const t=e||yo,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),i=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return vt([{text:Wi},{document:{91:{name:"gfmFootnoteDefinition",tokenize:ao,continuation:{tokenize:io},exit:oo}},text:{91:{name:"gfmFootnoteCall",tokenize:ro},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:to,resolveTo:no}}},so(e),{flow:{null:{name:"table",tokenize:uo,resolveAll:po}}},{text:{91:ho}}])}(t)),a.push([{transforms:[ja],enter:{literalAutolink:Ca,literalAutolinkEmail:Da,literalAutolinkHttp:Da,literalAutolinkWww:Da},exit:{literalAutolink:Fa,literalAutolinkEmail:Ma,literalAutolinkHttp:Pa,literalAutolinkWww:La}},{enter:{gfmFootnoteCallString:$a,gfmFootnoteCall:Ga,gfmFootnoteDefinitionLabelString:qa,gfmFootnoteDefinition:Ha},exit:{gfmFootnoteCallString:Va,gfmFootnoteCall:Wa,gfmFootnoteDefinitionLabelString:Ya,gfmFootnoteDefinition:Ka}},{canContainEols:["delete"],enter:{strikethrough:ti},exit:{strikethrough:ni}},{enter:{table:_i,tableData:Ci,tableHeader:Ci,tableRow:Ni},exit:{codeText:Di,table:Ii,tableData:Ri,tableHeader:Ri,tableRow:Ri}},{exit:{taskListCheckValueChecked:Mi,taskListCheckValueUnchecked:Mi,paragraph:Fi}}]),i.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Na,notInConstruct:Ra},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Na,notInConstruct:Ra},{character:":",before:"[ps]",after:"\\/",inConstruct:Na,notInConstruct:Ra}]},Za(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:ei}],handlers:{delete:ri}},Li(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:ji}}]}}(t))}function Eo(){return{type:"break"}}function So(){return function(e){!function(e){Oa(e,[/\r?\n|\r/g,Eo])}(e)}}function wo(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 Ao(e){return function(e){if(Array.isArray(e))return wo(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 wo(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)?wo(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 ko(e){return ko="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},ko(e)}function xo(e){var t=function(e,t){if("object"!=ko(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=ko(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ko(t)?t:t+""}function To(e,t,n){return(t=xo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oo(){return Oo=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},Oo.apply(null,arguments)}function _o(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 Io(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_o(Object(n),!0).forEach(function(t){To(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var No={};function Ro(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 No[r]||(No[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),No[r]}(e.filter(function(e){return"token"!==e})).reduce(function(e,t){return Io(Io({},e),n[t])},t)}function Co(e){return e.join(" ")}function Do(e){var t=e.node,n=e.stylesheet,r=e.style,i=void 0===r?{}:r,o=e.useInlineStyles,s=e.key,l=t.properties,c=t.type,u=t.tagName,d=t.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 Do({node:r,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(a)})})}}(n,o);if(o){var g=Object.keys(n).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=Io(Io({},l),{},{className:Co(h)||void 0,style:Ro(l.className,Object.assign({},l.style,i),n)})}else p=Io(Io({},l),{},{className:Co(l.className)});var b=f(t.children);return a.createElement(u,Oo({key:s},p),b)}}var Po=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Lo(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 Mo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lo(Object(n),!0).forEach(function(t){To(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Fo=/\n/g;function jo(e){var t=e.codeString,n=e.codeStyle,r=e.containerStyle,i=void 0===r?{float:"left",paddingRight:"10px"}:r,o=e.numberStyle,s=void 0===o?{}:o,l=e.startingLineNumber;return a.createElement("code",{style:Object.assign({},n,i)},function(e){var t=e.lines,n=e.startingLineNumber,r=e.style;return t.map(function(e,t){var i=t+n;return a.createElement("span",{key:"line-".concat(t),className:"react-syntax-highlighter-line-number",style:"function"==typeof r?r(i):r},"".concat(i,"\n"))})}({lines:t.replace(/\n$/,"").split("\n"),style:s,startingLineNumber:l}))}function Bo(e){return"".concat(e.toString().length,".25em")}function Uo(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 zo(e,t,n){var r={display:"inline-block",minWidth:Bo(n),paddingRight:"1em",textAlign:"right",userSelect:"none"},a="function"==typeof e?e(t):e;return Mo(Mo({},r),a)}function $o(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?Mo({},"function"==typeof s?s(n):s):{};if(f.className=f.className?[].concat(Ao(f.className.trim().split(/\s+/)),Ao(c)):c,n&&i){var g=zo(r,n,a);t.unshift(Uo(n,g))}return d&u&&(f.style=Mo({display:"flex"},f.style)),{type:"element",tagName:"span",properties:f,children:t}}function Go(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($o({children:[a],className:Ao(new Set(t))}));else if(a.children){var i=t.concat(a.properties.className);Go(a.children,i).forEach(function(e){return n.push(e)})}}return n}function qo(e,t,n,r,a,i,o,s,l){var c,u=Go(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 $o({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=zo(s,t,o);e.unshift(Uo(t,n))}return e}(e,i)}for(var m=function(){var e=u[f],t=e.children[0].value;if(t.match(Fo)){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($o({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=$o({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 Ho(e){var t=e.rows,n=e.stylesheet,r=e.useInlineStyles;return t.map(function(e,t){return Do({node:e,stylesheet:n,useInlineStyles:r,key:"code-segment-".concat(t)})})}function Vo(e){return e&&void 0!==e.highlightAuto}var Wo=function(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)Yo.call(n,r)&&(e[r]=n[r])}return e},Yo=Object.prototype.hasOwnProperty;var Ko=Zo,Xo=Zo.prototype;function Zo(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}Xo.space=null,Xo.normal={},Xo.property={};var Qo=Wo,Jo=Ko,es=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 Jo(Qo.apply(null,a),Qo.apply(null,i),n)};var ts=function(e){return e.toLowerCase()};var ns=as,rs=as.prototype;function as(e,t){this.property=e,this.attribute=t}rs.space=null,rs.attribute=null,rs.property=null,rs.boolean=!1,rs.booleanish=!1,rs.overloadedBoolean=!1,rs.number=!1,rs.commaSeparated=!1,rs.spaceSeparated=!1,rs.commaOrSpaceSeparated=!1,rs.mustUseProperty=!1,rs.defined=!1;var is={},os=0;function ss(){return Math.pow(2,++os)}is.boolean=ss(),is.booleanish=ss(),is.overloadedBoolean=ss(),is.number=ss(),is.spaceSeparated=ss(),is.commaSeparated=ss(),is.commaOrSpaceSeparated=ss();var ls=ns,cs=is,us=fs;fs.prototype=new ls,fs.prototype.defined=!0;var ds=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],ps=ds.length;function fs(e,t,n,r){var a,i=-1;for(gs(this,"space",r),ls.call(this,e,t);++i<ps;)gs(this,a=ds[i],(n&cs[a])===cs[a])}function gs(e,t,n){n&&(e[t]=n)}var ms=ts,hs=Ko,bs=us,ys=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 bs(t,s(i,t),o[t],r),-1!==a.indexOf(t)&&(n.mustUseProperty=!0),l[t]=n,c[ms(t)]=t,c[ms(n.attribute)]=t;return new hs(l,c,r)};var vs=ys({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 Es=ys({space:"xml",transform:function(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});var Ss=function(e,t){return t in e?e[t]:t};var ws=Ss,As=function(e,t){return ws(e,t.toLowerCase())};var ks=ys({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:As,properties:{xmlns:null,xmlnsXLink:null}}),xs=is,Ts=ys,Os=xs.booleanish,_s=xs.number,Is=xs.spaceSeparated,Ns=Ts({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Os,ariaAutoComplete:null,ariaBusy:Os,ariaChecked:Os,ariaColCount:_s,ariaColIndex:_s,ariaColSpan:_s,ariaControls:Is,ariaCurrent:null,ariaDescribedBy:Is,ariaDetails:null,ariaDisabled:Os,ariaDropEffect:Is,ariaErrorMessage:null,ariaExpanded:Os,ariaFlowTo:Is,ariaGrabbed:Os,ariaHasPopup:null,ariaHidden:Os,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Is,ariaLevel:_s,ariaLive:null,ariaModal:Os,ariaMultiLine:Os,ariaMultiSelectable:Os,ariaOrientation:null,ariaOwns:Is,ariaPlaceholder:null,ariaPosInSet:_s,ariaPressed:Os,ariaReadOnly:Os,ariaRelevant:null,ariaRequired:Os,ariaRoleDescription:Is,ariaRowCount:_s,ariaRowIndex:_s,ariaRowSpan:_s,ariaSelected:Os,ariaSetSize:_s,ariaSort:null,ariaValueMax:_s,ariaValueMin:_s,ariaValueNow:_s,ariaValueText:null,role:null}});var Rs=is,Cs=ys,Ds=As,Ps=Rs.boolean,Ls=Rs.overloadedBoolean,Ms=Rs.booleanish,Fs=Rs.number,js=Rs.spaceSeparated,Bs=Rs.commaSeparated,Us=es([Es,vs,ks,Ns,Cs({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Ds,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Bs,acceptCharset:js,accessKey:js,action:null,allow:null,allowFullScreen:Ps,allowPaymentRequest:Ps,allowUserMedia:Ps,alt:null,as:null,async:Ps,autoCapitalize:null,autoComplete:js,autoFocus:Ps,autoPlay:Ps,capture:Ps,charSet:null,checked:Ps,cite:null,className:js,cols:Fs,colSpan:null,content:null,contentEditable:Ms,controls:Ps,controlsList:js,coords:Fs|Bs,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ps,defer:Ps,dir:null,dirName:null,disabled:Ps,download:Ls,draggable:Ms,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ps,formTarget:null,headers:js,height:Fs,hidden:Ps,high:Fs,href:null,hrefLang:null,htmlFor:js,httpEquiv:js,id:null,imageSizes:null,imageSrcSet:Bs,inputMode:null,integrity:null,is:null,isMap:Ps,itemId:null,itemProp:js,itemRef:js,itemScope:Ps,itemType:js,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ps,low:Fs,manifest:null,max:null,maxLength:Fs,media:null,method:null,min:null,minLength:Fs,multiple:Ps,muted:Ps,name:null,nonce:null,noModule:Ps,noValidate:Ps,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:Ps,optimum:Fs,pattern:null,ping:js,placeholder:null,playsInline:Ps,poster:null,preload:null,readOnly:Ps,referrerPolicy:null,rel:js,required:Ps,reversed:Ps,rows:Fs,rowSpan:Fs,sandbox:js,scope:null,scoped:Ps,seamless:Ps,selected:Ps,shape:null,size:Fs,sizes:null,slot:null,span:Fs,spellCheck:Ms,src:null,srcDoc:null,srcLang:null,srcSet:Bs,start:Fs,step:null,style:null,tabIndex:Fs,target:null,title:null,translate:null,type:null,typeMustMatch:Ps,useMap:null,value:Ms,width:Fs,wrap:null,align:null,aLink:null,archive:js,axis:null,background:null,bgColor:null,border:Fs,borderColor:null,bottomMargin:Fs,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ps,declare:Ps,event:null,face:null,frame:null,frameBorder:null,hSpace:Fs,leftMargin:Fs,link:null,longDesc:null,lowSrc:null,marginHeight:Fs,marginWidth:Fs,noResize:Ps,noHref:Ps,noShade:Ps,noWrap:Ps,object:null,profile:null,prompt:null,rev:null,rightMargin:Fs,rules:null,scheme:null,scrolling:Ms,standby:null,summary:null,text:null,topMargin:Fs,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Fs,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ps,disableRemotePlayback:Ps,prefix:null,property:null,results:Fs,security:null,unselectable:null}})]),zs=ts,$s=us,Gs=ns,qs="data",Hs=function(e,t){var n=zs(t),r=t,a=Gs;if(n in e.normal)return e.property[e.normal[n]];n.length>4&&n.slice(0,4)===qs&&Vs.test(t)&&("-"===t.charAt(4)?r=function(e){var t=e.slice(5).replace(Ws,Xs);return qs+t.charAt(0).toUpperCase()+t.slice(1)}(t):t=function(e){var t=e.slice(4);if(Ws.test(t))return e;t=t.replace(Ys,Ks),"-"!==t.charAt(0)&&(t="-"+t);return qs+t}(t),a=$s);return new a(r,t)},Vs=/^data[-\w.:]+$/i,Ws=/-[a-z]/g,Ys=/[A-Z]/g;function Ks(e){return"-"+e.toLowerCase()}function Xs(e){return e.charAt(1).toUpperCase()}var Zs=function(e,t){var n,r,a,i=e||"",o=t||"div",s={},l=0;for(;l<i.length;)Qs.lastIndex=l,a=Qs.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:[]}},Qs=/[#.]/g;var Js={parse:function(e){var t=String(e||el).trim();return t===el?[]:t.split(nl)},stringify:function(e){return e.join(tl).trim()}},el="",tl=" ",nl=/[ \t\n\r\f]+/g;var rl={parse:function(e){var t,n=[],r=String(e||ol),a=r.indexOf(al),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(al,i);return n},stringify:function(e,t){var n=t||{},r=!1===n.padLeft?ol:il,a=n.padRight?il:ol;e[e.length-1]===ol&&(e=e.concat(ol));return e.join(a+al+r).trim()}},al=",",il=" ",ol="";var sl=Hs,ll=ts,cl=Zs,ul=Js.parse,dl=rl.parse,pl=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=cl(e,t),s=Array.prototype.slice.call(arguments,2),l=o.tagName.toLowerCase();o.tagName=r&&fl.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]);gl(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=sl(e,n)).property,"string"==typeof(o=r)&&(a.spaceSeparated?o=ul(o):a.commaSeparated?o=dl(o):a.commaOrSpaceSeparated&&(o=ul(dl(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 ml(e,t,n);a=n.length,r=-1,i=[];for(;++r<a;)i[r]=ml(e,t,n[r]);return i}(a,i,o))}},fl={}.hasOwnProperty;function gl(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;)gl(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 ml(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&&ll(n)!==ll(t)||(r=!0)),r}var hl=pl(Us,"div");hl.displayName="html";var bl=hl,yl=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57};var vl=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 El=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90};var Sl=El,wl=yl;var Al={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:"‌"},kl=function(e){return!!xl.call(Al,e)&&Al[e]},xl={}.hasOwnProperty;var Tl={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:"ÿ"},Ol={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:"Ÿ"},_l=yl,Il=vl,Nl=function(e){return Sl(e)||wl(e)},Rl=kl,Cl=function(e,t){var n,r,a={};t||(t={});for(r in Ml)n=t[r],a[r]=null==n?Ml[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:Ll,C--,R++;for(;++C<R;)if(o===jl&&(P=N[D]||1),(o=e.charCodeAt(C))===zl){if((l=e.charCodeAt(C+1))===Fl||l===jl||l===Bl||l===Ul||l===zl||l===Gl||l!=l||S&&l===S){M+=Pl(o),P++;continue}for(f=g=C+1,E=g,l===Hl?(E=++f,(l=e.charCodeAt(E))===Vl||l===Wl?(m=Xl,E=++f):m=Zl):m=Kl,n="",p="",i="",h=Jl[m],E--;++E<R&&h(l=e.charCodeAt(E));)i+=Pl(l),m===Kl&&Dl.call(Tl,i)&&(n=i,p=Tl[i]);(a=e.charCodeAt(E)===$l)&&(E++,(r=m===Kl&&Rl(i))&&(n=i,p=r)),v=1+E-g,(a||w)&&(i?m===Kl?(a&&!p?c(ac,1):(n!==i&&(v=1+(E=f+n.length)-f,a=!1),a||(u=n?ec:nc,t.attribute?(l=e.charCodeAt(E))===ql?(c(u,v),p=null):Nl(l)?p=null:c(u,v):c(u,v))),s=p):(a||c(tc,v),lc(s=parseInt(i,Ql[m]))?(c(oc,v),s=Pl(Yl)):s in Ol?(c(ic,v),s=Ol[s]):(d="",cc(s)&&c(ic,v),s>65535&&(d+=Pl((s-=65536)>>>10|55296),s=56320|1023&s),s=d+Pl(s))):m!==Kl&&c(rc,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+=Pl(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(_,sc[e],n,e)}function U(){M&&(F.push(M),A&&A.call(T,M,{start:b,end:j()}),M="")}}(e,a)},Dl={}.hasOwnProperty,Pl=String.fromCharCode,Ll=Function.prototype,Ml={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},Fl=9,jl=10,Bl=12,Ul=32,zl=38,$l=59,Gl=60,ql=61,Hl=35,Vl=88,Wl=120,Yl=65533,Kl="named",Xl="hexadecimal",Zl="decimal",Ql={};Ql[Xl]=16,Ql[Zl]=10;var Jl={};Jl[Kl]=Nl,Jl[Zl]=_l,Jl[Xl]=Il;var ec=1,tc=2,nc=3,rc=4,ac=5,ic=6,oc=7,sc={};function lc(e){return e>=55296&&e<=57343||e>1114111}function cc(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)}sc[ec]="Named character references must be terminated by a semicolon",sc[tc]="Numeric character references must be terminated by a semicolon",sc[nc]="Named character references cannot be empty",sc[rc]="Numeric character references cannot be empty",sc[ac]="Named character references must be known",sc[ic]="Numeric character references cannot be disallowed",sc[oc]="Numeric character references cannot be outside the permissible Unicode range";var uc={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,"&amp;").replace(/</g,"&lt;").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,"&quot;")+'"';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:{});
1
+ import{_ as e,a as t,C as n}from"./chat-widget-index-CbBUA9Lj.esm.js";import*as r from"react";import a,{isValidElement as i,Children as o,PureComponent as s,forwardRef as l,useRef as c,useImperativeHandle as u,useState as d,useCallback as p,useEffect as f,useMemo as g,cloneElement as m,createElement as h,useContext as b,createContext as y,Component as v}from"react";import{jsxs as E,jsx as S,Fragment as w}from"react/jsx-runtime";import"react-dom/client";import"react-dom";var A="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function k(){}function x(){}const T=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,O=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,_={};function I(e,t){return(_.jsx?O:T).test(e)}const N=/[ \t\n\f\r]/g;function R(e){return""===e.replace(N,"")}let C=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};function D(e,t){const n={},r={};for(const t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new C(n,r,t)}function P(e){return e.toLowerCase()}C.prototype.normal={},C.prototype.property={},C.prototype.space=void 0;let L=class{constructor(e,t){this.attribute=t,this.property=e}};L.prototype.attribute="",L.prototype.booleanish=!1,L.prototype.boolean=!1,L.prototype.commaOrSpaceSeparated=!1,L.prototype.commaSeparated=!1,L.prototype.defined=!1,L.prototype.mustUseProperty=!1,L.prototype.number=!1,L.prototype.overloadedBoolean=!1,L.prototype.property="",L.prototype.spaceSeparated=!1,L.prototype.space=void 0;let M=0;const F=q(),j=q(),B=q(),U=q(),z=q(),$=q(),G=q();function q(){return 2**++M}var H=Object.freeze({__proto__:null,boolean:F,booleanish:j,commaOrSpaceSeparated:G,commaSeparated:$,number:U,overloadedBoolean:B,spaceSeparated:z});const V=Object.keys(H);let W=class extends L{constructor(e,t,n,r){let a=-1;if(super(e,t),Y(this,"space",r),"number"==typeof n)for(;++a<V.length;){const e=V[a];Y(this,V[a],(n&H[e])===H[e])}}};function Y(e,t,n){n&&(e[t]=n)}function K(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const i=new W(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[P(r)]=r,n[P(i.attribute)]=r}return new C(t,n,e.space)}W.prototype.defined=!0;const X=K({properties:{ariaActiveDescendant:null,ariaAtomic:j,ariaAutoComplete:null,ariaBusy:j,ariaChecked:j,ariaColCount:U,ariaColIndex:U,ariaColSpan:U,ariaControls:z,ariaCurrent:null,ariaDescribedBy:z,ariaDetails:null,ariaDisabled:j,ariaDropEffect:z,ariaErrorMessage:null,ariaExpanded:j,ariaFlowTo:z,ariaGrabbed:j,ariaHasPopup:null,ariaHidden:j,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:z,ariaLevel:U,ariaLive:null,ariaModal:j,ariaMultiLine:j,ariaMultiSelectable:j,ariaOrientation:null,ariaOwns:z,ariaPlaceholder:null,ariaPosInSet:U,ariaPressed:j,ariaReadOnly:j,ariaRelevant:null,ariaRequired:j,ariaRoleDescription:z,ariaRowCount:U,ariaRowIndex:U,ariaRowSpan:U,ariaSelected:j,ariaSetSize:U,ariaSort:null,ariaValueMax:U,ariaValueMin:U,ariaValueNow:U,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function Z(e,t){return t in e?e[t]:t}function Q(e,t){return Z(e,t.toLowerCase())}const J=K({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:$,acceptCharset:z,accessKey:z,action:null,allow:null,allowFullScreen:F,allowPaymentRequest:F,allowUserMedia:F,alt:null,as:null,async:F,autoCapitalize:null,autoComplete:z,autoFocus:F,autoPlay:F,blocking:z,capture:null,charSet:null,checked:F,cite:null,className:z,cols:U,colSpan:null,content:null,contentEditable:j,controls:F,controlsList:z,coords:U|$,crossOrigin:null,data:null,dateTime:null,decoding:null,default:F,defer:F,dir:null,dirName:null,disabled:F,download:B,draggable:j,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:F,formTarget:null,headers:z,height:U,hidden:B,high:U,href:null,hrefLang:null,htmlFor:z,httpEquiv:z,id:null,imageSizes:null,imageSrcSet:null,inert:F,inputMode:null,integrity:null,is:null,isMap:F,itemId:null,itemProp:z,itemRef:z,itemScope:F,itemType:z,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:F,low:U,manifest:null,max:null,maxLength:U,media:null,method:null,min:null,minLength:U,multiple:F,muted:F,name:null,nonce:null,noModule:F,noValidate:F,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:F,optimum:U,pattern:null,ping:z,placeholder:null,playsInline:F,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:F,referrerPolicy:null,rel:z,required:F,reversed:F,rows:U,rowSpan:U,sandbox:z,scope:null,scoped:F,seamless:F,selected:F,shadowRootClonable:F,shadowRootDelegatesFocus:F,shadowRootMode:null,shape:null,size:U,sizes:null,slot:null,span:U,spellCheck:j,src:null,srcDoc:null,srcLang:null,srcSet:null,start:U,step:null,style:null,tabIndex:U,target:null,title:null,translate:null,type:null,typeMustMatch:F,useMap:null,value:j,width:U,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:z,axis:null,background:null,bgColor:null,border:U,borderColor:null,bottomMargin:U,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:F,declare:F,event:null,face:null,frame:null,frameBorder:null,hSpace:U,leftMargin:U,link:null,longDesc:null,lowSrc:null,marginHeight:U,marginWidth:U,noResize:F,noHref:F,noShade:F,noWrap:F,object:null,profile:null,prompt:null,rev:null,rightMargin:U,rules:null,scheme:null,scrolling:j,standby:null,summary:null,text:null,topMargin:U,valueType:null,version:null,vAlign:null,vLink:null,vSpace:U,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:F,disableRemotePlayback:F,prefix:null,property:null,results:U,security:null,unselectable:null},space:"html",transform:Q}),ee=K({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:G,accentHeight:U,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:U,amplitude:U,arabicForm:null,ascent:U,attributeName:null,attributeType:null,azimuth:U,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:U,by:null,calcMode:null,capHeight:U,className:z,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:U,diffuseConstant:U,direction:null,display:null,dur:null,divisor:U,dominantBaseline:null,download:F,dx:null,dy:null,edgeMode:null,editable:null,elevation:U,enableBackground:null,end:null,event:null,exponent:U,externalResourcesRequired:null,fill:null,fillOpacity:U,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:$,g2:$,glyphName:$,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:U,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:U,horizOriginX:U,horizOriginY:U,id:null,ideographic:U,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:U,k:U,k1:U,k2:U,k3:U,k4:U,kernelMatrix:G,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:U,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:U,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:U,overlineThickness:U,paintOrder:null,panose1:null,path:null,pathLength:U,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:z,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:U,pointsAtY:U,pointsAtZ:U,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:G,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:G,rev:G,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:G,requiredFeatures:G,requiredFonts:G,requiredFormats:G,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:U,specularExponent:U,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:U,strikethroughThickness:U,string:null,stroke:null,strokeDashArray:G,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:U,strokeOpacity:U,strokeWidth:null,style:null,surfaceScale:U,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:G,tabIndex:U,tableValues:null,target:null,targetX:U,targetY:U,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:G,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:U,underlineThickness:U,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:U,values:null,vAlphabetic:U,vMathematical:U,vectorEffect:null,vHanging:U,vIdeographic:U,version:null,vertAdvY:U,vertOriginX:U,vertOriginY:U,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:U,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Z}),te=K({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()}),ne=K({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Q}),re=K({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),ae={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,oe=/-[a-z]/g,se=/^data[-\w.:]+$/i;function le(e){return"-"+e.toLowerCase()}function ce(e){return e.charAt(1).toUpperCase()}const ue=D([X,J,te,ne,re],"html"),de=D([X,ee,te,ne,re],"svg");var pe={},fe=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ge=/\n/g,me=/^\s*/,he=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,be=/^:\s*/,ye=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,ve=/^[;\s]*/,Ee=/^\s+|\s+$/g,Se="";function we(e){return e?e.replace(Ee,Se):Se}var Ae=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(ge);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(me)}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;Se!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,Se===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(he);if(t){if(d(),!l(be))return s("property missing ':'");var n=l(ye),r=e({type:"declaration",property:we(t[0].replace(fe,Se)),value:n?we(n[0].replace(fe,Se)):Se});return l(ve),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}()},ke=A&&A.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pe,"__esModule",{value:!0}),pe.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;const r=(0,xe.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 xe=ke(Ae);var Te={};Object.defineProperty(Te,"__esModule",{value:!0}),Te.camelCase=void 0;var Oe=/^--[a-zA-Z0-9_-]+$/,_e=/-([a-z])/g,Ie=/^[^-]+$/,Ne=/^-(webkit|moz|ms|o|khtml)-/,Re=/^-(ms)-/,Ce=function(e,t){return t.toUpperCase()},De=function(e,t){return"".concat(t,"-")};Te.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||Ie.test(e)||Oe.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(Re,De):e.replace(Ne,De)).replace(_e,Ce))};var Pe=(A&&A.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(pe),Le=Te;function Me(e,t){var n={};return e&&"string"==typeof e?((0,Pe.default)(e,function(e,r){e&&r&&(n[(0,Le.camelCase)(e,t)]=r)}),n):n}Me.default=Me;var Fe=Me;const je=Ue("end"),Be=Ue("start");function Ue(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 ze(e){return e&&"object"==typeof e?"position"in e||"type"in e?Ge(e.position):"start"in e||"end"in e?Ge(e):"line"in e||"column"in e?$e(e):"":""}function $e(e){return qe(e&&e.line)+":"+qe(e&&e.column)}function Ge(e){return $e(e&&e.start)+"-"+$e(e&&e.end)}function qe(e){return e&&"number"==typeof e?e:1}class He 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=ze(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}}He.prototype.file="",He.prototype.name="",He.prototype.reason="",He.prototype.message="",He.prototype.stack="",He.prototype.column=void 0,He.prototype.line=void 0,He.prototype.ancestors=void 0,He.prototype.cause=void 0,He.prototype.fatal=void 0,He.prototype.place=void 0,He.prototype.ruleId=void 0,He.prototype.source=void 0;const Ve={}.hasOwnProperty,We=new Map,Ye=/[A-Z]/g,Ke=new Set(["table","tbody","thead","tfoot","tr"]),Xe=new Set(["td","th"]),Ze="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Qe(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=Be(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?de:ue,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},i=Je(a,e,void 0);return i&&"string"!=typeof i?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function Je(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=de,e.schema=a);e.ancestors.push(t);const i=at(e,t.tagName,!1),o=function(e,t){const n={};let r,a;for(a in t.properties)if("children"!==a&&Ve.call(t.properties,a)){const i=rt(e,a,t.properties[a]);if(i){const[a,o]=i;e.tableCellAlignToStyle&&"align"===a&&"string"==typeof o&&Xe.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=nt(e,t);Ke.has(t.tagName)&&(s=s.filter(function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&R(t.value):R(t));var t}));return et(e,o,i,t),tt(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=de,e.schema=a);e.ancestors.push(t);const i=null===t.name?e.Fragment:at(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];k(t.type);const a=t.expression;k(a.type);const i=a.properties[0];k(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];k(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=nt(e,t);return et(e,o,i,t),tt(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 tt(r,nt(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 et(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function tt(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function nt(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:We;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=Je(e,i,o);void 0!==s&&n.push(s)}return n}function rt(e,t,n){const r=function(e,t){const n=P(t);let r=t,a=L;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&se.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(oe,ce);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!oe.test(e)){let n=e.replace(ie,le);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}a=W}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 Fe(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const n=t,r=new He("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=Ze+"#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)Ve.call(e,n)&&(t[ot(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?ae[r.property]||r.property:r.attribute,n]}}function at(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,a=-1;for(;++a<e.length;){const t=I(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=I(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 Ve.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 He("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=Ze+"#cannot-handle-mdx-estrees-without-createevaluater",n}function ot(e){let t=e.replace(Ye,st);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function st(e){return"-"+e.toLowerCase()}const lt={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"]},ct={};function ut(e,t){return dt(e,"boolean"!=typeof ct.includeImageAlt||ct.includeImageAlt,"boolean"!=typeof ct.includeHtml||ct.includeHtml)}function dt(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 pt(e.children,t,n)}return Array.isArray(e)?pt(e,t,n):""}function pt(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=dt(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:"‌"},gt={}.hasOwnProperty;function mt(e){return!!gt.call(ft,e)&&ft[e]}function ht(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 bt(e,t){return e.length>0?(ht(e,e.length,0,t),e):t}const yt={}.hasOwnProperty;function vt(e){const t={};let n=-1;for(;++n<e.length;)Et(t,e[n]);return t}function Et(e,t){let n;for(n in t){const r=(yt.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let i;if(a)for(i in a){yt.call(r,i)||(r[i]=[]);const e=a[i];St(r[i],Array.isArray(e)?e:e?[e]:[])}}}function St(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);ht(e,0,0,r)}function wt(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 At(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const kt=Mt(/[A-Za-z]/),xt=Mt(/[\dA-Za-z]/),Tt=Mt(/[#-'*+\--9=?A-Z^-~]/);function Ot(e){return null!==e&&(e<32||127===e)}const _t=Mt(/\d/),It=Mt(/[\dA-Fa-f]/),Nt=Mt(/[!-/:-@[-`{-~]/);function Rt(e){return null!==e&&e<-2}function Ct(e){return null!==e&&(e<0||32===e)}function Dt(e){return-2===e||-1===e||32===e}const Pt=Mt(/\p{P}|\p{S}/u),Lt=Mt(/\s/);function Mt(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function Ft(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const i=e.charCodeAt(n);let o="";if(37===i&&xt(e.charCodeAt(n+1))&&xt(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 jt(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){if(Dt(r))return e.enter(n),o(r);return t(r)};function o(r){return Dt(r)&&i++<a?(e.consume(r),o):(e.exit(n),t(r))}}const Bt={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"),jt(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)):Rt(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),a)}}};const Ut={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 ht(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(zt,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(zt,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)):Rt(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++;ht(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}}},zt={tokenize:function(e,t,n){return jt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function $t(e){return null===e||Ct(e)||Lt(e)?1:Pt(e)?2:void 0}function Gt(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 qt={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};Ht(d,-s),Ht(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=bt(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=bt(l,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",a,t]]),l=bt(l,Gt(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=bt(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=bt(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,ht(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=$t(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=$t(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 Ht(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Vt={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 kt(t)?(e.consume(t),i):64===t?n(t):l(t)}function i(e){return 43===e||45===e||46===e||xt(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||xt(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||Ot(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),c):Tt(t)?(e.consume(t),l):n(t)}function c(e){return xt(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||xt(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}};const Wt={partial:!0,tokenize:function(e,t,n){return function(t){return Dt(t)?jt(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||Rt(e)?t(e):n(e)}}};const Yt={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(Dt(t))return jt(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return a(t)};function a(r){return e.attempt(Yt,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 Dt(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};const Kt={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 Nt(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const Xt={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=xt,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=It,c):(e.enter("characterReferenceValue"),a=7,i=_t,c(t))}function c(s){if(59===s&&o){const a=e.exit("characterReferenceValue");return i!==xt||mt(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 Zt={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)}}},Qt={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"),Dt(t)?jt(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"),Dt(t)?jt(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||Rt(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"),Dt(t)?jt(e,c,"whitespace")(t):c(t))}function c(n){return null===n||Rt(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(Zt,f,y)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||Rt(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):Dt(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),jt(e,d,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),u)}function d(t){return null===t||Rt(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||Rt(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&&Dt(t)?jt(e,h,"linePrefix",o+1)(t):h(t)}function h(t){return null===t||Rt(t)?e.check(Zt,f,y)(t):(e.enter("codeFlowValue"),b(t))}function b(t){return null===t||Rt(t)?(e.exit("codeFlowValue"),h(t)):(e.consume(t),b)}function y(n){return e.exit("codeFenced"),t(n)}}};const Jt={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),jt(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):Rt(t)?e.attempt(en,i,s)(t):(e.enter("codeFlowValue"),o(t))}function o(t){return null===t||Rt(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),o)}function s(n){return e.exit("codeIndented"),t(n)}}},en={partial:!0,tokenize:function(e,t,n){const r=this;return a;function a(t){return r.parser.lazy[r.now().line]?n(t):Rt(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):jt(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):Rt(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)):Rt(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||Rt(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 nn{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&&rn(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),rn(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),rn(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);rn(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);rn(this.left,t.reverse())}}}function rn(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 an(e){const t={};let n,r,a,i,o,s,l,c=-1;const u=new nn(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,on(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 ht(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function on(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 sn={resolve:function(e){return an(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):Rt(t)?e.check(ln,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}}},ln={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"),jt(e,a,"linePrefix")};function a(a){if(null===a||Rt(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 cn(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||Ot(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||Rt(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&&!Ct(a)?u<c&&40===a?(e.consume(a),u++,g):41===a?(e.consume(a),u--,g):null===a||32===a||40===a||Ot(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 un(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):Rt(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||Rt(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!Dt(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function dn(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):Rt(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),jt(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===o||null===t||Rt(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 pn(e,t){let n;return function r(a){if(Rt(a))return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r;if(Dt(a))return jt(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 un.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return a=At(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 Ct(t)?pn(e,s)(t):s(t)}function s(t){return cn(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(gn,c,c)(t)}function c(t){return Dt(t)?jt(e,u,"whitespace")(t):u(t)}function u(i){return null===i||Rt(i)?(e.exit("definition"),r.parser.defined.push(a),t(i)):n(i)}}},gn={partial:!0,tokenize:function(e,t,n){return function(t){return Ct(t)?pn(e,r)(t):n(t)};function r(t){return dn(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function a(t){return Dt(t)?jt(e,i,"whitespace")(t):i(t)}function i(e){return null===e||Rt(e)?t(e):n(e)}}};const mn={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return Rt(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const hn={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"},ht(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||Ct(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),o(n)):null===n||Rt(n)?(e.exit("atxHeading"),t(n)):Dt(n)?jt(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||Ct(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),s)}}};const bn=["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"],yn=["pre","script","style","textarea"],vn={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):kt(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):kt(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 kt(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(null===s||47===s||62===s||Ct(s)){const l=47===s,c=o.toLowerCase();return l||i||!yn.includes(c)?bn.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||xt(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 Dt(t)?(e.consume(t),h):k(t)}function b(t){return 47===t?(e.consume(t),k):58===t||95===t||kt(t)?(e.consume(t),y):Dt(t)?(e.consume(t),b):k(t)}function y(t){return 45===t||46===t||58===t||95===t||xt(t)?(e.consume(t),y):v(t)}function v(t){return 61===t?(e.consume(t),E):Dt(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):Dt(t)?(e.consume(t),E):w(t)}function S(t){return t===l?(e.consume(t),l=null,A):null===t||Rt(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||Ct(t)?v(t):(e.consume(t),w)}function A(e){return 47===e||62===e||Dt(e)?b(e):n(e)}function k(t){return 62===t?(e.consume(t),x):n(t)}function x(t){return null===t||Rt(t)?T(t):Dt(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):!Rt(t)||6!==a&&7!==a?null===t||Rt(t)?(e.exit("htmlFlowData"),O(t)):(e.consume(t),T):(e.exit("htmlFlowData"),e.check(En,M,O)(t))}function O(t){return e.check(Sn,_,M)(t)}function _(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return null===t||Rt(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 yn.includes(n)?(e.consume(t),L):T(t)}return kt(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||Rt(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),L)}function M(n){return e.exit("htmlFlow"),t(n)}}},En={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Wt,t,n)}}},Sn={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(Rt(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 wn={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):kt(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):kt(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):Rt(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):Rt(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):Rt(t)?(o=b,C(t)):(e.consume(t),b)}function y(t){return null===t?n(t):63===t?(e.consume(t),v):Rt(t)?(o=y,C(t)):(e.consume(t),y)}function v(e){return 62===e?R(e):y(e)}function E(t){return kt(t)?(e.consume(t),S):n(t)}function S(t){return 45===t||xt(t)?(e.consume(t),S):w(t)}function w(t){return Rt(t)?(o=w,C(t)):Dt(t)?(e.consume(t),w):R(t)}function A(t){return 45===t||xt(t)?(e.consume(t),A):47===t||62===t||Ct(t)?k(t):n(t)}function k(t){return 47===t?(e.consume(t),R):58===t||95===t||kt(t)?(e.consume(t),x):Rt(t)?(o=k,C(t)):Dt(t)?(e.consume(t),k):R(t)}function x(t){return 45===t||46===t||58===t||95===t||xt(t)?(e.consume(t),x):T(t)}function T(t){return 61===t?(e.consume(t),O):Rt(t)?(o=T,C(t)):Dt(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,_):Rt(t)?(o=O,C(t)):Dt(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):Rt(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||Ct(t)?k(t):(e.consume(t),I)}function N(e){return 47===e||62===e||Ct(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 Dt(t)?jt(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 An={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&&ht(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=bt(i,e.slice(r+1,r+s+3)),i=bt(i,[["enter",u,t]]),i=bt(i,Gt(t.parser.constructs.insideSpan.null,e.slice(r+s+4,a-3),t)),i=bt(i,[["exit",u,t],e[a-2],e[a-1],["exit",c,t]]),i=bt(i,e.slice(a+1)),i=bt(i,[["exit",l,t]]),ht(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(At(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(kn,c,i?c:u)(t):91===t?e.attempt(xn,c,i?l:u)(t):i?c(t):u(t)}function l(t){return e.attempt(Tn,c,u)(t)}function c(e){return t(e)}function u(e){return a._balanced=!0,n(e)}}},kn={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 Ct(t)?pn(e,a)(t):a(t)}function a(t){return 41===t?c(t):cn(e,i,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return Ct(t)?pn(e,s)(t):c(t)}function o(e){return n(e)}function s(t){return 34===t||39===t||40===t?dn(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return Ct(t)?pn(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)}}},xn={tokenize:function(e,t,n){const r=this;return function(t){return un.call(r,e,a,i,"reference","referenceMarker","referenceString")(t)};function a(e){return r.parser.defined.includes(At(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},Tn={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 On={name:"labelStartImage",resolveAll:An.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 _n={name:"labelStartLink",resolveAll:An.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 In={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),jt(e,t,"linePrefix")}}};const Nn={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||Rt(i))?(e.exit("thematicBreak"),t(i)):n(i)}function o(t){return t===r?(e.consume(t),a++,o):(e.exit("thematicBreakSequence"),Dt(t)?jt(e,i,"whitespace")(t):i(t))}}};const Rn={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Wt,a,i);function a(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,jt(e,t,"listItemIndent",r.containerState.size+1)(n)}function i(n){return r.containerState.furtherBlankLines||!Dt(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(Dn,t,o)(n))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,jt(e,e.attempt(Rn,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:_t(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(Nn,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 _t(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(Wt,r.interrupt?n:c,e.attempt(Cn,d,u))}function c(e){return r.containerState.initialBlankLine=!0,i++,d(e)}function u(t){return Dt(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)}}},Cn={partial:!0,tokenize:function(e,t,n){const r=this;return jt(e,function(e){const a=r.events[r.events.length-1];return!Dt(e)&&a&&"listItemPrefixWhitespace"===a[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},Dn={partial:!0,tokenize:function(e,t,n){const r=this;return jt(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 Pn={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"),Dt(t)?jt(e,o,"lineSuffix")(t):o(t))}function o(r){return null===r||Rt(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const Ln={tokenize:function(e){const t=this,n=e.attempt(Wt,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,jt(e,e.attempt(this.parser.constructs.flow,r,e.attempt(sn,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 Mn={resolveAll:Un()},Fn=Bn("string"),jn=Bn("text");function Bn(e){return{resolveAll:Un("text"===e?zn: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 Un(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 zn(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 $n={42:Rn,43:Rn,45:Rn,48:Rn,49:Rn,50:Rn,51:Rn,52:Rn,53:Rn,54:Rn,55:Rn,56:Rn,57:Rn,62:Yt},Gn={91:fn},qn={[-2]:Jt,[-1]:Jt,32:Jt},Hn={35:hn,42:Nn,45:[Pn,Nn],60:vn,61:Pn,95:Nn,96:Qt,126:Qt},Vn={38:Xt,92:Kt},Wn={[-5]:In,[-4]:In,[-3]:In,33:On,38:Xt,42:qt,60:[Vt,wn],91:_n,92:[mn,Kt],93:An,95:qt,96:tn},Yn={null:[qt,Mn]};var Kn=Object.freeze({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:Gn,disable:{null:[]},document:$n,flow:Hn,flowInitial:qn,insideSpan:Yn,string:Vn,text:Wn});function Xn(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){Rt(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=bt(o,e),f(),null!==o[o.length-1])return[];return b(t,0),c.events=Gt(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&&ht(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 Zn=/[\0\t\n\r]/g;const Qn=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Jn(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return wt(n.slice(t?2:1),t?16:10)}return mt(n)||e}const er={}.hasOwnProperty;function tr(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()}};rr(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]];er.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:nr(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:nr(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:nr(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+"` ("+ze({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=nr(e.end)}function u(){return ut(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=At(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:nr(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=nr(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=nr(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(Qn,Jn)}(t),n.identifier=At(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=At(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=wt(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=mt(t)}this.stack[this.stack.length-1].value+=r}function G(e){this.stack.pop().position.end=nr(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(;!an(e););return e}(function(e){const t={constructs:vt([Kn,...(e||{}).extensions||[]]),content:n(Bt),defined:[],document:n(Ut),flow:n(Ln),lazy:{},string:n(Fn),text:n(jn)};return t;function n(e){return function(n){return Xn(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(Zn.lastIndex=u,l=Zn.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 nr(e){return{line:e.line,column:e.column,offset:e.offset}}function rr(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?rr(e,r):ar(e,r)}}function ar(e,t){let n;for(n in t)if(er.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+"` ("+ze({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ze({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ze({start:t.start,end:t.end})+") is still open")}function or(e){const t=this;t.parser=function(n){return tr(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function sr(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 lr(e){const t=e.spread;return null==t?e.children.length>1:t}function cr(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const i=[];for(;r;)i.push(ur(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return i.push(ur(t.slice(a),a>0,!1)),i.join("")}function ur(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 dr={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=Ft(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 sr(e,t);const a={src:Ft(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:Ft(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 sr(e,t);const a={href:Ft(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:Ft(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=lr(n[r])}return t}(n):lr(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=Be(t.children[1]),o=je(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:cr(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:pr,yaml:pr,definition:pr,footnoteDefinition:pr};function pr(){}const fr="object"==typeof self?self:globalThis,gr=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),mr="",{toString:hr}={},{keys:br}=Object,yr=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=hr.call(e).slice(8,-1);switch(n){case"Array":return[1,mr];case"Object":return[2,mr];case"Date":return[3,mr];case"RegExp":return[4,mr];case"Map":return[5,mr];case"Set":return[6,mr];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},vr=([e,t])=>0===e&&("function"===t||"symbol"===t),Er=(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]=yr(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 br(r))!e&&vr(yr(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||!vr(yr(n))&&!vr(yr(a)))&&t.push([i(n),i(a)]);return n}case 6:{const t=[],n=a([o,t],r);for(const n of r)!e&&vr(yr(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 Sr="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?gr(Er(e,t)):structuredClone(e):(e,t)=>gr(Er(e,t));function wr(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 Ar(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const kr=function(e){if(null==e)return Tr;if("function"==typeof e)return xr(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=kr(e[n]);return xr(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return xr(n);function n(n){const r=n;let a;for(a in e)if(r[a]!==t[a])return!1;return!0}}(e);if("string"==typeof e)return function(e){return xr(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function xr(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function Tr(){return!0}const Or=[],_r=!0,Ir=!1,Nr="skip";function Rr(e,t,n,r){let a;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):a=t;const i=kr(a),o=r?-1:1;!function e(a,s,l){const c=a&&"object"==typeof a?a:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+a.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,p=Or;if((!t||i(a,s,l[l.length-1]||void 0))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[_r,e];return null==e?Or:[e]}(n(a,l)),p[0]===Ir))return p;if("children"in a&&a.children){const t=a;if(t.children&&p[0]!==Nr)for(u=(r?t.children.length:-1)+o,d=l.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,d)(),c[0]===Ir)return c;u="number"==typeof c[1]?c[1]:u+o}}return p}}(e,void 0,[])()}function Cr(e,t,n,r){let a,i,o;"function"==typeof t&&"function"!=typeof n?(i=void 0,o=t,a=n):(i=t,o=n,a=r),Rr(e,i,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)},a)}const Dr={}.hasOwnProperty,Pr={};function Lr(e,t){e.position&&(t.position=function(e){const t=Be(e),n=je(e);if(t&&n)return{start:t,end:n}}(e))}function Mr(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,Sr(a)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function Fr(e,t){const n=t.data||{},r=!("value"in t)||Dr.call(n,"hProperties")||Dr.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 Br(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function Ur(e,t){const n=function(e,t){const n=t||Pr,r=new Map,a=new Map,i=new Map,o={...dr,...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=Br(a.value)),!Array.isArray(a)&&"element"===a.type)){const e=a.children[0];e&&"text"===e.type&&(e.value=Br(e.value))}Array.isArray(a)?t.push(...a):t.push(a)}}}return t},applyData:Mr,definitionById:r,footnoteById:a,footnoteCounts:i,footnoteOrder:[],handlers:o,one:function(e,t){const n=e.type,r=s.handlers[n];if(Dr.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=Sr(n);return r.children=s.all(e),r}return Sr(e)}return(s.options.unknownHandler||Fr)(s,e,t)},options:n,patch:Lr,wrap:jr};return Cr(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||wr,r=e.options.footnoteBackLabel||Ar,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=Ft(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:{...Sr(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 zr(e,t){return e&&"run"in e?async function(n,r){const a=Ur(n,{file:r,...t});await e.run(a,r)}:function(n,r){return Ur(n,{file:r,...e||t})}}function $r(e){if(e)throw e}var Gr=Object.prototype.hasOwnProperty,qr=Object.prototype.toString,Hr=Object.defineProperty,Vr=Object.getOwnPropertyDescriptor,Wr=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===qr.call(e)},Yr=function(e){if(!e||"[object Object]"!==qr.call(e))return!1;var t,n=Gr.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Gr.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Gr.call(e,t)},Kr=function(e,t){Hr&&"__proto__"===t.name?Hr(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Xr=function(e,t){if("__proto__"===t){if(!Gr.call(e,t))return;if(Vr)return Vr(e,t).value}return e[t]},Zr=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=Xr(s,n),s!==(a=Xr(t,n))&&(u&&a&&(Yr(a)||(i=Wr(a)))?(i?(i=!1,o=r&&Wr(r)?r:[]):o=r&&Yr(r)?r:{},Kr(s,{name:n,newValue:e(u,o,a)})):void 0!==a&&Kr(s,{name:n,newValue:a}));return s};function Qr(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 Jr(){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 ea={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');ta(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(ta(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){ta(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;)ta(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){ta(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 ta(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const na={cwd:function(){return"/"}};function ra(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function aa(e){if("string"==typeof e)e=new URL(e);else if(!ra(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 ia=["history","path","basename","stem","extname","dirname"];class oa{constructor(e){let t;t=e?ra(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?"":na.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<ia.length;){const e=ia[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)ia.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?ea.basename(this.path):void 0}set basename(e){la(e,"basename"),sa(e,"basename"),this.path=ea.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?ea.dirname(this.path):void 0}set dirname(e){ca(this.basename,"dirname"),this.path=ea.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?ea.extname(this.path):void 0}set extname(e){if(sa(e,"extname"),ca(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=ea.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){ra(e)&&(e=aa(e)),la(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?ea.basename(this.path,this.extname):void 0}set stem(e){la(e,"stem"),sa(e,"stem"),this.path=ea.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 He(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 sa(e,t){if(e&&e.includes(ea.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ea.sep+"`")}function la(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function ca(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const ua=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},da={}.hasOwnProperty;class pa extends ua{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=Jr()}copy(){const e=new pa;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(Zr(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(ha("data",this.frozen),this.namespace[e]=t,this):da.call(this.namespace,e)&&this.namespace[e]||void 0:e?(ha("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=va(e),n=this.parser||this.Parser;return ga("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),ga("process",this.parser||this.Parser),ma("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,a){const i=va(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(),ga("processSync",this.parser||this.Parser),ma("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,$r(e),t=r}),ya("processSync","process",n),t}run(e,t,n){ba(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=va(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){$r(e),n=t,r=!0}),ya("runSync","run",r),n}stringify(e,t){this.freeze();const n=va(t),r=this.compiler||this.Compiler;return ma("stringify",r),ba(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(ha("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=Zr(!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];Qr(o)&&Qr(r)&&(r=Zr(!0,o,r)),n[a]=[e,r,...i]}}}}const fa=(new pa).freeze();function ga(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function ma(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function ha(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 ba(e){if(!Qr(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function ya(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function va(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new oa(e)}const Ea=[],Sa={allowDangerousHtml:!0},wa=/^(https?|ircs?|mailto|xmpp)$/i,Aa=[{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 ka(e){const t=function(e){const t=e.rehypePlugins||Ea,n=e.remarkPlugins||Ea,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Sa}:Sa,a=fa().use(or).use(n).use(zr,r).use(t);return a}(e),n=function(e){const t=e.children||"",n=new oa;"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||xa;for(const e of Aa)Object.hasOwn(t,e.from)&&x((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 Cr(e,c),Qe(e,{Fragment:w,components:a,ignoreInvalidStyle:!0,jsx:S,jsxs:E,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 lt)if(Object.hasOwn(lt,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=lt[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 xa(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||wa.test(e.slice(0,t))?e:""}function Ta(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 Oa(e,t,n){const r=kr((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([_a(e[0]),Ia(e[1])])}return t}(t);let i=-1;for(;++i<a.length;)Rr(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 _a(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 Ia(e){return"function"==typeof e?e:function(){return e}}const Na="phrasing",Ra=["autolink","link","image","label"];function Ca(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Da(e){this.config.enter.autolinkProtocol.call(this,e)}function Pa(e){this.config.exit.autolinkProtocol.call(this,e)}function La(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 Ma(e){this.config.exit.autolinkEmail.call(this,e)}function Fa(e){this.exit(e)}function ja(e){Oa(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Ba],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,Ua]],{ignore:["link","linkReference"]})}function Ba(e,t,n,r,a){let i="";if(!za(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=Ta(e,"(");let i=Ta(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 Ua(e,t,n,r){return!(!za(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function za(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||Lt(n)||Pt(n))&&(!t||47!==n)}function $a(){this.buffer()}function Ga(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function qa(){this.buffer()}function Ha(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Va(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=At(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Wa(e){this.exit(e)}function Ya(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=At(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Ka(e){this.exit(e)}function Xa(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 Za(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?Ja:Qa)));return s(),o},footnoteReference:Xa},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function Qa(e,t,n){return 0===t?e:Ja(e,t,n)}function Ja(e,t,n){return(n?"":" ")+e}Xa.peek=function(){return"["};const ei=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function ti(e){this.enter({type:"delete",children:[]},e)}function ni(e){this.exit(e)}function ri(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 ai(e){return e.length}function ii(e){return null==e?"":String(e)}function oi(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 si(e,t,n){return">"+(n?"":" ")+e}function li(e,t){return ci(e,t.inConstruct,!0)&&!ci(e,t.notInConstruct,!1)}function ci(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 ui(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if("\n"===n.unsafe[a].character&&li(n.stack,n.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return"\\\n"}function di(e,t,n){return(n?"":" ")+e}function pi(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 fi(e){return"&#x"+e.toString(16).toUpperCase()+";"}function gi(e,t,n){const r=$t(e),a=$t(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 mi(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=gi(r.before.charCodeAt(r.before.length-1),c,a);u.inside&&(l=fi(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=gi(r.after.charCodeAt(0),d,a);p.inside&&(l=l.slice(0,-1)+fi(d));const f=o.move(a);return i(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+f}function hi(e){return e.value||""}function bi(e,t,n,r){const a=pi(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 yi(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 vi(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 Ei(e,t){const n=ut(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 Si(e,t,n,r){const a=pi(n),i='"'===a?"Quote":"Apostrophe",o=n.createTracker(r);let s,l;if(Ei(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 wi(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 Ai(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 ki(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}ri.peek=function(){return"~"},mi.peek=function(e,t,n){return n.options.emphasis||"*"},hi.peek=function(){return"<"},bi.peek=function(){return"!"},yi.peek=function(){return"!"},vi.peek=function(){return"`"},Si.peek=function(e,t,n){return Ei(e,n)?"<":"["},wi.peek=function(){return"["};const xi=kr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Ti(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=gi(r.before.charCodeAt(r.before.length-1),c,a);u.inside&&(l=fi(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=gi(r.after.charCodeAt(0),d,a);p.inside&&(l=l.slice(0,-1)+fi(d));const f=o.move(a+a);return i(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+f}Ti.peek=function(e,t,n){return n.options.strong||"*"};const Oi={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()),si);return a(),o},break:ui,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,di);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=pi(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:mi,hardBreak:ui,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 Cr(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,Ir}),Boolean((!e.depth||e.depth<3)&&ut(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=fi(c.charCodeAt(0))+c.slice(1)),c=c?o+" "+c:o,n.options.closeAtx&&(c+=" "+o),l(),s(),c},html:hi,image:bi,imageReference:yi,inlineCode:vi,link:Si,linkReference:wi,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):Ai(n);const s=e.ordered?"."===o?")":".":function(e){const t=Ai(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),ki(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||Ai(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 xi(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:Ti,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(ki(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 _i(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 Ii(e){this.exit(e),this.data.inTable=void 0}function Ni(e){this.enter({type:"tableRow",children:[]},e)}function Ri(e){this.exit(e)}function Ci(e){this.enter({type:"tableCell",children:[]},e)}function Di(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Pi));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Pi(e,t){return"|"===t?t:e}function Li(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=Oi.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||ai,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=ii(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]=oi(r[d]);else{const e=oi(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 Mi(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function Fi(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=Oi.listItem(e,t,n,{...r,...s.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+o})),l}const Bi={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},Ui={tokenize:function(e,t,n){let r,a,i;return o;function o(t){return 46===t||95===t?e.check($i,l,s)(t):null===t||Ct(t)||Lt(t)||45!==t&&Pt(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},zi={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($i,t,i)(o):null===o||Ct(o)||Lt(o)?t(o):(e.consume(o),a)}function i(t){return 41===t&&r++,e.consume(t),a}},partial:!0},$i={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||Ct(o)||Lt(o)?t(o):n(o)}function a(e){return null===e||40===e||91===e||Ct(e)||Lt(e)?t(e):r(e)}function i(e){return kt(e)?o(e):n(e)}function o(t){return 59===t?(e.consume(t),r):kt(t)?(e.consume(t),o):n(t)}},partial:!0},Gi={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return xt(e)?n(e):t(e)}},partial:!0},qi={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!Ki.call(r,r.previous)||Ji(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Bi,e.attempt(Ui,e.attempt(zi,a),n),n)(t)};function a(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:Ki},Hi={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let a="",i=!1;return function(t){if((72===t||104===t)&&Xi.call(r,r.previous)&&!Ji(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(t),e.consume(t),o;return n(t)};function o(t){if(kt(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||Ot(t)||Ct(t)||Lt(t)||Pt(t)?n(t):e.attempt(Ui,e.attempt(zi,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:Xi},Vi={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let a,i;return function(t){if(!Qi(t)||!Zi.call(r,r.previous)||Ji(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(t)};function o(t){return Qi(t)?(e.consume(t),o):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(Gi,c,l)(t):45===t||95===t||xt(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&&kt(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(o)):n(o)}},previous:Zi},Wi={};let Yi=48;for(;Yi<123;)Wi[Yi]=Vi,Yi++,58===Yi?Yi=65:91===Yi&&(Yi=97);function Ki(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||Ct(e)}function Xi(e){return!kt(e)}function Zi(e){return!(47===e||Qi(e))}function Qi(e){return 43===e||45===e||46===e||95===e||xt(e)}function Ji(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}Wi[43]=Vi,Wi[45]=Vi,Wi[46]=Vi,Wi[95]=Vi,Wi[72]=[Vi,Hi],Wi[104]=[Vi,Hi],Wi[87]=[Vi,qi],Wi[119]=[Vi,qi];const eo={tokenize:function(e,t,n){const r=this;return jt(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 to(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=At(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 no(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 ro(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||Ct(s))return n(s);if(93===s){e.exit("chunkString");const i=e.exit("gfmFootnoteCallString");return a.includes(At(r.sliceSerialize(i)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return Ct(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 ao(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||Ct(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return i=At(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return Ct(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),jt(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function io(e,t,n){return e.check(Wt,t,e.attempt(eo,t,n))}function oo(e){e.exit("gfmFootnoteDefinition")}function so(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=$t(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=$t(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&&ht(o,o.length,0,Gt(s,e.slice(r+1,n),t)),ht(o,o.length,0,[["exit",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",a,t]]),ht(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 lo{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 co(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 uo(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):Rt(t)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):Dt(t)?jt(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||Ct(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,Dt(t)?jt(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 Dt(t)?jt(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||Rt(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 Dt(t)?jt(e,y,"whitespace")(t):y(t)}function y(n){return 124===n?p(n):(null===n||Rt(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||Rt(n)?(e.exit("tableRow"),t(n)):Dt(n)?jt(e,S,"whitespace")(n):(e.enter("data"),w(n))}function w(t){return null===t||124===t||Ct(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 po(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 lo;for(;++i<e.length;){const f=e[i],g=f[1];"enter"===f[0]?"tableHead"===g.type?(u=!1,0!==d&&(go(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=fo(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=fo(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=fo(p,t,l,s,i,a)):0!==c[1]&&(a=fo(p,t,c,s,i,a)),s=0):!s||"data"!==g.type&&"tableDelimiterMarker"!==g.type&&"tableDelimiterFiller"!==g.type||(c[3]=i)}for(0!==d&&go(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=co(t.events,i))}return e}function fo(e,t,n,r,a,i){const o=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(i.end=Object.assign({},mo(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const s=mo(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=mo(t.events,n[2]),i=mo(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({},mo(t.events,a)),e.add(a,0,[["exit",i,t]]),i=void 0),i}function go(e,t,n,r,a){const i=[],o=mo(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 mo(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const ho={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 Ct(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 Rt(r)?t(r):Dt(r)?e.check({tokenize:bo},t,n)(r):n(r)}}};function bo(e,t,n){return jt(e,function(e){return null===e?n(e):t(e)},"whitespace")}const yo={};function vo(e){const t=e||yo,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),i=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return vt([{text:Wi},{document:{91:{name:"gfmFootnoteDefinition",tokenize:ao,continuation:{tokenize:io},exit:oo}},text:{91:{name:"gfmFootnoteCall",tokenize:ro},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:to,resolveTo:no}}},so(e),{flow:{null:{name:"table",tokenize:uo,resolveAll:po}}},{text:{91:ho}}])}(t)),a.push([{transforms:[ja],enter:{literalAutolink:Ca,literalAutolinkEmail:Da,literalAutolinkHttp:Da,literalAutolinkWww:Da},exit:{literalAutolink:Fa,literalAutolinkEmail:Ma,literalAutolinkHttp:Pa,literalAutolinkWww:La}},{enter:{gfmFootnoteCallString:$a,gfmFootnoteCall:Ga,gfmFootnoteDefinitionLabelString:qa,gfmFootnoteDefinition:Ha},exit:{gfmFootnoteCallString:Va,gfmFootnoteCall:Wa,gfmFootnoteDefinitionLabelString:Ya,gfmFootnoteDefinition:Ka}},{canContainEols:["delete"],enter:{strikethrough:ti},exit:{strikethrough:ni}},{enter:{table:_i,tableData:Ci,tableHeader:Ci,tableRow:Ni},exit:{codeText:Di,table:Ii,tableData:Ri,tableHeader:Ri,tableRow:Ri}},{exit:{taskListCheckValueChecked:Mi,taskListCheckValueUnchecked:Mi,paragraph:Fi}}]),i.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Na,notInConstruct:Ra},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Na,notInConstruct:Ra},{character:":",before:"[ps]",after:"\\/",inConstruct:Na,notInConstruct:Ra}]},Za(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:ei}],handlers:{delete:ri}},Li(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:ji}}]}}(t))}function Eo(){return{type:"break"}}function So(){return function(e){!function(e){Oa(e,[/\r?\n|\r/g,Eo])}(e)}}function wo(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 Ao(e){return function(e){if(Array.isArray(e))return wo(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 wo(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)?wo(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 ko(e){return ko="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},ko(e)}function xo(e){var t=function(e,t){if("object"!=ko(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=ko(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ko(t)?t:t+""}function To(e,t,n){return(t=xo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oo(){return Oo=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},Oo.apply(null,arguments)}function _o(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 Io(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_o(Object(n),!0).forEach(function(t){To(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var No={};function Ro(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 No[r]||(No[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),No[r]}(e.filter(function(e){return"token"!==e})).reduce(function(e,t){return Io(Io({},e),n[t])},t)}function Co(e){return e.join(" ")}function Do(e){var t=e.node,n=e.stylesheet,r=e.style,i=void 0===r?{}:r,o=e.useInlineStyles,s=e.key,l=t.properties,c=t.type,u=t.tagName,d=t.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 Do({node:r,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(a)})})}}(n,o);if(o){var g=Object.keys(n).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=Io(Io({},l),{},{className:Co(h)||void 0,style:Ro(l.className,Object.assign({},l.style,i),n)})}else p=Io(Io({},l),{},{className:Co(l.className)});var b=f(t.children);return a.createElement(u,Oo({key:s},p),b)}}var Po=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Lo(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 Mo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lo(Object(n),!0).forEach(function(t){To(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Fo=/\n/g;function jo(e){var t=e.codeString,n=e.codeStyle,r=e.containerStyle,i=void 0===r?{float:"left",paddingRight:"10px"}:r,o=e.numberStyle,s=void 0===o?{}:o,l=e.startingLineNumber;return a.createElement("code",{style:Object.assign({},n,i)},function(e){var t=e.lines,n=e.startingLineNumber,r=e.style;return t.map(function(e,t){var i=t+n;return a.createElement("span",{key:"line-".concat(t),className:"react-syntax-highlighter-line-number",style:"function"==typeof r?r(i):r},"".concat(i,"\n"))})}({lines:t.replace(/\n$/,"").split("\n"),style:s,startingLineNumber:l}))}function Bo(e){return"".concat(e.toString().length,".25em")}function Uo(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 zo(e,t,n){var r={display:"inline-block",minWidth:Bo(n),paddingRight:"1em",textAlign:"right",userSelect:"none"},a="function"==typeof e?e(t):e;return Mo(Mo({},r),a)}function $o(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?Mo({},"function"==typeof s?s(n):s):{};if(f.className=f.className?[].concat(Ao(f.className.trim().split(/\s+/)),Ao(c)):c,n&&i){var g=zo(r,n,a);t.unshift(Uo(n,g))}return d&u&&(f.style=Mo({display:"flex"},f.style)),{type:"element",tagName:"span",properties:f,children:t}}function Go(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($o({children:[a],className:Ao(new Set(t))}));else if(a.children){var i=t.concat(a.properties.className);Go(a.children,i).forEach(function(e){return n.push(e)})}}return n}function qo(e,t,n,r,a,i,o,s,l){var c,u=Go(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 $o({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=zo(s,t,o);e.unshift(Uo(t,n))}return e}(e,i)}for(var m=function(){var e=u[f],t=e.children[0].value;if(t.match(Fo)){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($o({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=$o({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 Ho(e){var t=e.rows,n=e.stylesheet,r=e.useInlineStyles;return t.map(function(e,t){return Do({node:e,stylesheet:n,useInlineStyles:r,key:"code-segment-".concat(t)})})}function Vo(e){return e&&void 0!==e.highlightAuto}var Wo=function(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)Yo.call(n,r)&&(e[r]=n[r])}return e},Yo=Object.prototype.hasOwnProperty;var Ko=Zo,Xo=Zo.prototype;function Zo(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}Xo.space=null,Xo.normal={},Xo.property={};var Qo=Wo,Jo=Ko,es=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 Jo(Qo.apply(null,a),Qo.apply(null,i),n)};var ts=function(e){return e.toLowerCase()};var ns=as,rs=as.prototype;function as(e,t){this.property=e,this.attribute=t}rs.space=null,rs.attribute=null,rs.property=null,rs.boolean=!1,rs.booleanish=!1,rs.overloadedBoolean=!1,rs.number=!1,rs.commaSeparated=!1,rs.spaceSeparated=!1,rs.commaOrSpaceSeparated=!1,rs.mustUseProperty=!1,rs.defined=!1;var is={},os=0;function ss(){return Math.pow(2,++os)}is.boolean=ss(),is.booleanish=ss(),is.overloadedBoolean=ss(),is.number=ss(),is.spaceSeparated=ss(),is.commaSeparated=ss(),is.commaOrSpaceSeparated=ss();var ls=ns,cs=is,us=fs;fs.prototype=new ls,fs.prototype.defined=!0;var ds=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],ps=ds.length;function fs(e,t,n,r){var a,i=-1;for(gs(this,"space",r),ls.call(this,e,t);++i<ps;)gs(this,a=ds[i],(n&cs[a])===cs[a])}function gs(e,t,n){n&&(e[t]=n)}var ms=ts,hs=Ko,bs=us,ys=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 bs(t,s(i,t),o[t],r),-1!==a.indexOf(t)&&(n.mustUseProperty=!0),l[t]=n,c[ms(t)]=t,c[ms(n.attribute)]=t;return new hs(l,c,r)};var vs=ys({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 Es=ys({space:"xml",transform:function(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});var Ss=function(e,t){return t in e?e[t]:t};var ws=Ss,As=function(e,t){return ws(e,t.toLowerCase())};var ks=ys({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:As,properties:{xmlns:null,xmlnsXLink:null}}),xs=is,Ts=ys,Os=xs.booleanish,_s=xs.number,Is=xs.spaceSeparated,Ns=Ts({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Os,ariaAutoComplete:null,ariaBusy:Os,ariaChecked:Os,ariaColCount:_s,ariaColIndex:_s,ariaColSpan:_s,ariaControls:Is,ariaCurrent:null,ariaDescribedBy:Is,ariaDetails:null,ariaDisabled:Os,ariaDropEffect:Is,ariaErrorMessage:null,ariaExpanded:Os,ariaFlowTo:Is,ariaGrabbed:Os,ariaHasPopup:null,ariaHidden:Os,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Is,ariaLevel:_s,ariaLive:null,ariaModal:Os,ariaMultiLine:Os,ariaMultiSelectable:Os,ariaOrientation:null,ariaOwns:Is,ariaPlaceholder:null,ariaPosInSet:_s,ariaPressed:Os,ariaReadOnly:Os,ariaRelevant:null,ariaRequired:Os,ariaRoleDescription:Is,ariaRowCount:_s,ariaRowIndex:_s,ariaRowSpan:_s,ariaSelected:Os,ariaSetSize:_s,ariaSort:null,ariaValueMax:_s,ariaValueMin:_s,ariaValueNow:_s,ariaValueText:null,role:null}});var Rs=is,Cs=ys,Ds=As,Ps=Rs.boolean,Ls=Rs.overloadedBoolean,Ms=Rs.booleanish,Fs=Rs.number,js=Rs.spaceSeparated,Bs=Rs.commaSeparated,Us=es([Es,vs,ks,Ns,Cs({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Ds,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Bs,acceptCharset:js,accessKey:js,action:null,allow:null,allowFullScreen:Ps,allowPaymentRequest:Ps,allowUserMedia:Ps,alt:null,as:null,async:Ps,autoCapitalize:null,autoComplete:js,autoFocus:Ps,autoPlay:Ps,capture:Ps,charSet:null,checked:Ps,cite:null,className:js,cols:Fs,colSpan:null,content:null,contentEditable:Ms,controls:Ps,controlsList:js,coords:Fs|Bs,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ps,defer:Ps,dir:null,dirName:null,disabled:Ps,download:Ls,draggable:Ms,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ps,formTarget:null,headers:js,height:Fs,hidden:Ps,high:Fs,href:null,hrefLang:null,htmlFor:js,httpEquiv:js,id:null,imageSizes:null,imageSrcSet:Bs,inputMode:null,integrity:null,is:null,isMap:Ps,itemId:null,itemProp:js,itemRef:js,itemScope:Ps,itemType:js,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ps,low:Fs,manifest:null,max:null,maxLength:Fs,media:null,method:null,min:null,minLength:Fs,multiple:Ps,muted:Ps,name:null,nonce:null,noModule:Ps,noValidate:Ps,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:Ps,optimum:Fs,pattern:null,ping:js,placeholder:null,playsInline:Ps,poster:null,preload:null,readOnly:Ps,referrerPolicy:null,rel:js,required:Ps,reversed:Ps,rows:Fs,rowSpan:Fs,sandbox:js,scope:null,scoped:Ps,seamless:Ps,selected:Ps,shape:null,size:Fs,sizes:null,slot:null,span:Fs,spellCheck:Ms,src:null,srcDoc:null,srcLang:null,srcSet:Bs,start:Fs,step:null,style:null,tabIndex:Fs,target:null,title:null,translate:null,type:null,typeMustMatch:Ps,useMap:null,value:Ms,width:Fs,wrap:null,align:null,aLink:null,archive:js,axis:null,background:null,bgColor:null,border:Fs,borderColor:null,bottomMargin:Fs,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ps,declare:Ps,event:null,face:null,frame:null,frameBorder:null,hSpace:Fs,leftMargin:Fs,link:null,longDesc:null,lowSrc:null,marginHeight:Fs,marginWidth:Fs,noResize:Ps,noHref:Ps,noShade:Ps,noWrap:Ps,object:null,profile:null,prompt:null,rev:null,rightMargin:Fs,rules:null,scheme:null,scrolling:Ms,standby:null,summary:null,text:null,topMargin:Fs,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Fs,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ps,disableRemotePlayback:Ps,prefix:null,property:null,results:Fs,security:null,unselectable:null}})]),zs=ts,$s=us,Gs=ns,qs="data",Hs=function(e,t){var n=zs(t),r=t,a=Gs;if(n in e.normal)return e.property[e.normal[n]];n.length>4&&n.slice(0,4)===qs&&Vs.test(t)&&("-"===t.charAt(4)?r=function(e){var t=e.slice(5).replace(Ws,Xs);return qs+t.charAt(0).toUpperCase()+t.slice(1)}(t):t=function(e){var t=e.slice(4);if(Ws.test(t))return e;t=t.replace(Ys,Ks),"-"!==t.charAt(0)&&(t="-"+t);return qs+t}(t),a=$s);return new a(r,t)},Vs=/^data[-\w.:]+$/i,Ws=/-[a-z]/g,Ys=/[A-Z]/g;function Ks(e){return"-"+e.toLowerCase()}function Xs(e){return e.charAt(1).toUpperCase()}var Zs=function(e,t){var n,r,a,i=e||"",o=t||"div",s={},l=0;for(;l<i.length;)Qs.lastIndex=l,a=Qs.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:[]}},Qs=/[#.]/g;var Js={parse:function(e){var t=String(e||el).trim();return t===el?[]:t.split(nl)},stringify:function(e){return e.join(tl).trim()}},el="",tl=" ",nl=/[ \t\n\r\f]+/g;var rl={parse:function(e){var t,n=[],r=String(e||ol),a=r.indexOf(al),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(al,i);return n},stringify:function(e,t){var n=t||{},r=!1===n.padLeft?ol:il,a=n.padRight?il:ol;e[e.length-1]===ol&&(e=e.concat(ol));return e.join(a+al+r).trim()}},al=",",il=" ",ol="";var sl=Hs,ll=ts,cl=Zs,ul=Js.parse,dl=rl.parse,pl=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=cl(e,t),s=Array.prototype.slice.call(arguments,2),l=o.tagName.toLowerCase();o.tagName=r&&fl.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]);gl(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=sl(e,n)).property,"string"==typeof(o=r)&&(a.spaceSeparated?o=ul(o):a.commaSeparated?o=dl(o):a.commaOrSpaceSeparated&&(o=ul(dl(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 ml(e,t,n);a=n.length,r=-1,i=[];for(;++r<a;)i[r]=ml(e,t,n[r]);return i}(a,i,o))}},fl={}.hasOwnProperty;function gl(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;)gl(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 ml(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&&ll(n)!==ll(t)||(r=!0)),r}var hl=pl(Us,"div");hl.displayName="html";var bl=hl,yl=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57};var vl=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 El=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90};var Sl=El,wl=yl;var Al={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:"‌"},kl=function(e){return!!xl.call(Al,e)&&Al[e]},xl={}.hasOwnProperty;var Tl={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:"ÿ"},Ol={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:"Ÿ"},_l=yl,Il=vl,Nl=function(e){return Sl(e)||wl(e)},Rl=kl,Cl=function(e,t){var n,r,a={};t||(t={});for(r in Ml)n=t[r],a[r]=null==n?Ml[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:Ll,C--,R++;for(;++C<R;)if(o===jl&&(P=N[D]||1),(o=e.charCodeAt(C))===zl){if((l=e.charCodeAt(C+1))===Fl||l===jl||l===Bl||l===Ul||l===zl||l===Gl||l!=l||S&&l===S){M+=Pl(o),P++;continue}for(f=g=C+1,E=g,l===Hl?(E=++f,(l=e.charCodeAt(E))===Vl||l===Wl?(m=Xl,E=++f):m=Zl):m=Kl,n="",p="",i="",h=Jl[m],E--;++E<R&&h(l=e.charCodeAt(E));)i+=Pl(l),m===Kl&&Dl.call(Tl,i)&&(n=i,p=Tl[i]);(a=e.charCodeAt(E)===$l)&&(E++,(r=m===Kl&&Rl(i))&&(n=i,p=r)),v=1+E-g,(a||w)&&(i?m===Kl?(a&&!p?c(ac,1):(n!==i&&(v=1+(E=f+n.length)-f,a=!1),a||(u=n?ec:nc,t.attribute?(l=e.charCodeAt(E))===ql?(c(u,v),p=null):Nl(l)?p=null:c(u,v):c(u,v))),s=p):(a||c(tc,v),lc(s=parseInt(i,Ql[m]))?(c(oc,v),s=Pl(Yl)):s in Ol?(c(ic,v),s=Ol[s]):(d="",cc(s)&&c(ic,v),s>65535&&(d+=Pl((s-=65536)>>>10|55296),s=56320|1023&s),s=d+Pl(s))):m!==Kl&&c(rc,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+=Pl(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(_,sc[e],n,e)}function U(){M&&(F.push(M),A&&A.call(T,M,{start:b,end:j()}),M="")}}(e,a)},Dl={}.hasOwnProperty,Pl=String.fromCharCode,Ll=Function.prototype,Ml={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},Fl=9,jl=10,Bl=12,Ul=32,zl=38,$l=59,Gl=60,ql=61,Hl=35,Vl=88,Wl=120,Yl=65533,Kl="named",Xl="hexadecimal",Zl="decimal",Ql={};Ql[Xl]=16,Ql[Zl]=10;var Jl={};Jl[Kl]=Nl,Jl[Zl]=_l,Jl[Xl]=Il;var ec=1,tc=2,nc=3,rc=4,ac=5,ic=6,oc=7,sc={};function lc(e){return e>=55296&&e<=57343||e>1114111}function cc(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)}sc[ec]="Named character references must be terminated by a semicolon",sc[tc]="Numeric character references must be terminated by a semicolon",sc[nc]="Named character references cannot be empty",sc[rc]="Numeric character references cannot be empty",sc[ac]="Named character references must be known",sc[ic]="Numeric character references cannot be disallowed",sc[oc]="Numeric character references cannot be outside the permissible Unicode range";var uc={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,"&amp;").replace(/</g,"&lt;").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,"&quot;")+'"';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:{});
2
2
  /**
3
3
  * Prism: Lightweight, robust, elegant syntax highlighting
4
4
  *
@@ -28,4 +28,4 @@ import{_ as e,a as t,C as n}from"./chat-widget-index-yu9GyyYn.esm.js";import*as
28
28
  object-assign
29
29
  (c) Sindre Sorhus
30
30
  @license MIT
31
- */function Dz(){if(Ez)return vz;Ez=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return vz=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},vz}function Pz(){if(wz)return Sz;wz=1;return Sz="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Lz(){return kz?Az:(kz=1,Az=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var Mz=Cz();gz.exports=function(){if(_z)return Oz;_z=1;var e=Cz(),t=Dz(),n=Pz(),r=Lz(),a=function(){if(Tz)return xz;Tz=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Pz(),n={},r=Lz();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={})},xz=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){}}),Oz=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},Oz}()(Mz.isElement,!0)}else gz.exports=function(){if(Nz)return Iz;Nz=1;var e=Pz();function t(){}function n(){}return n.resetWarningCache=t,Iz=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 Fz=gz.exports;const{getOwnPropertyNames:jz,getOwnPropertySymbols:Bz}=Object,{hasOwnProperty:Uz}=Object.prototype;function zz(e,t){return function(n,r,a){return e(n,r,a)&&t(n,r,a)}}function $z(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 Gz(e){return jz(e).concat(Bz(e))}const qz=Object.hasOwn||((e,t)=>Uz.call(e,t));function Hz(e,t){return e===t||!e&&!t&&e!=e&&t!=t}const{getOwnPropertyDescriptor:Vz,keys:Wz}=Object;function Yz(e,t){return e.byteLength===t.byteLength&&s$(new Uint8Array(e),new Uint8Array(t))}function Kz(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 Xz(e,t){return e.byteLength===t.byteLength&&s$(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function Zz(e,t){return Hz(e.getTime(),t.getTime())}function Qz(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Jz(e,t){return e===t}function e$(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 t$=Hz;function n$(e,t,n){const r=Wz(e);let a=r.length;if(Wz(t).length!==a)return!1;for(;a-- >0;)if(!c$(e,t,n,r[a]))return!1;return!0}function r$(e,t,n){const r=Gz(e);let a,i,o,s=r.length;if(Gz(t).length!==s)return!1;for(;s-- >0;){if(a=r[s],!c$(e,t,n,a))return!1;if(i=Vz(e,a),o=Vz(t,a),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable))return!1}return!0}function a$(e,t){return Hz(e.valueOf(),t.valueOf())}function i$(e,t){return e.source===t.source&&e.flags===t.flags}function o$(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 s$(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 l$(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 c$(e,t,n,r){return!("_owner"!==r&&"__o"!==r&&"__v"!==r||!e.$$typeof&&!t.$$typeof)||qz(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const u$={"[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},d$=Object.prototype.toString;function p$({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=d$.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(u$[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 f$=g$();function g$(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:a=!1}=e,i=function({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:Yz,areArraysEqual:n?r$:Kz,areDataViewsEqual:Xz,areDatesEqual:Zz,areErrorsEqual:Qz,areFunctionsEqual:Jz,areMapsEqual:n?zz(e$,r$):e$,areNumbersEqual:t$,areObjectsEqual:n?r$:n$,arePrimitiveWrappersEqual:a$,areRegExpsEqual:i$,areSetsEqual:n?zz(o$,r$):o$,areTypedArraysEqual:n?zz(s$,r$):s$,areUrlsEqual:l$,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const e=$z(r.areArraysEqual),t=$z(r.areMapsEqual),n=$z(r.areObjectsEqual),a=$z(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:e,areMapsEqual:t,areObjectsEqual:n,areSetsEqual:a})}return r}(e),o=p$(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 m$(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 h$(e){return h$="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},h$(e)}function b$(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 y$(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 y$(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 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}function v$(){var e=function(){return null},t=!1,n=function n(r){if(!t){if(Array.isArray(r)){if(!r.length)return;var a=b$(r),i=a[0],o=a.slice(1);return"number"==typeof i?void m$(n.bind(null,o),i):(n(i),void m$(n.bind(null,o)))}"object"===h$(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 E$(e){return E$="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},E$(e)}function S$(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 w$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S$(Object(n),!0).forEach(function(t){A$(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function A$(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==E$(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==E$(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===E$(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}g$({strict:!0}),g$({circular:!0}),g$({circular:!0,strict:!0}),g$({createInternalComparator:()=>Hz}),g$({strict:!0,createInternalComparator:()=>Hz}),g$({circular:!0,createInternalComparator:()=>Hz}),g$({circular:!0,createInternalComparator:()=>Hz,strict:!0});var k$=function(e){return e},x$=function(e,t){return Object.keys(t).reduce(function(n,r){return w$(w$({},n),{},A$({},r,e(r,t[r])))},{})},T$=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(",")},O$="production"!==process.env.NODE_ENV,_$=function(e,t,n,r,a,i,o,s){if(O$&&"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 I$(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)||R$(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 N$(e){return function(e){if(Array.isArray(e))return C$(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||R$(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 R$(e,t){if(e){if("string"==typeof e)return C$(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)?C$(e,t):void 0}}function C$(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 D$=1e-4,P$=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},L$=function(e,t){return e.map(function(e,n){return e*Math.pow(t,n)}).reduce(function(e,t){return e+t})},M$=function(e,t){return function(n){var r=P$(e,t);return L$(r,n)}},F$=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=I$(l,4);r=c[0],a=c[1],i=c[2],o=c[3]}else _$(!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)}_$([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=M$(r,i),f=M$(a,o),g=(u=r,d=i,function(e){var t=P$(u,d),n=[].concat(N$(t.map(function(e,t){return e*t}).slice(1)),[0]);return L$(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)<D$||i<D$)return f(n);n=m(n-a/i)}return f(n)};return h.isStepper=!1,h},j$=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 F$(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)<D$&&Math.abs(i)<D$?[t,0]:[s,i]};return s.isStepper=!0,s.dt=o,s}();default:if("cubic-bezier"===r.split("(")[0])return F$(r);_$(!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:(_$(!1,"[configEasing]: first argument type should be function or string, instead received %s",t),null)};function B$(e){return B$="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},B$(e)}function U$(e){return function(e){if(Array.isArray(e))return V$(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||H$(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 z$(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 $$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z$(Object(n),!0).forEach(function(t){G$(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function G$(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==B$(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==B$(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===B$(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q$(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)||H$(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 H$(e,t){if(e){if("string"==typeof e)return V$(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)?V$(e,t):void 0}}function V$(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 W$=function(e,t,n){return e+(t-e)*n},Y$=function(e){return e.from!==e.to},K$=function e(t,n,r){var a=x$(function(e,n){if(Y$(n)){var r=q$(t(n.from,n.to,n.velocity),2),a=r[0],i=r[1];return $$($$({},n),{},{from:a,velocity:i})}return n},n);return r<1?x$(function(e,t){return Y$(t)?$$($$({},t),{},{velocity:W$(t.velocity,a[e].velocity,r),from:W$(t.from,a[e].from,r)}):t},n):e(t,a,r-1)},X$=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 $$($$({},n),{},G$({},r,[e[r],t[r]]))},{}),d=c.reduce(function(n,r){return $$($$({},n),{},G$({},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=K$(n,d,i),a($$($$($$({},e),t),x$(function(e,t){return t.from},d))),s=r,Object.values(d).filter(Y$).length&&(p=requestAnimationFrame(f))}:function(i){l||(l=i);var o=(i-l)/r,s=x$(function(e,t){return W$.apply(void 0,U$(t).concat([n(o)]))},u);if(a($$($$($$({},e),t),s)),o<1)p=requestAnimationFrame(f);else{var c=x$(function(e,t){return W$.apply(void 0,U$(t).concat([n(1)]))},u);a($$($$($$({},e),t),c))}},function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(p)}}};function Z$(e){return Z$="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},Z$(e)}var Q$=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function J$(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 eG(e){return function(e){if(Array.isArray(e))return tG(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 tG(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 tG(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 tG(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 nG(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 rG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nG(Object(n),!0).forEach(function(t){aG(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function aG(e,t,n){return(t=oG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iG(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,oG(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function oG(e){var t=function(e,t){if("object"!==Z$(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==Z$(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Z$(t)?t:String(t)}function sG(e,t){return sG=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sG(e,t)}function lG(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=dG(e);if(t){var a=dG(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return cG(this,n)}}function cG(e,t){if(t&&("object"===Z$(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return uG(e)}function uG(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dG(e){return dG=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},dG(e)}var pG=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&&sG(e,t)}(t,s);var e=lG(t);function t(n,r){var a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=(a=e.call(this,n,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(uG(a)),a.changeStyle=a.changeStyle.bind(uG(a)),!o||p<=0)return a.state={style:{}},"function"==typeof d&&(a.state={style:c}),cG(a);if(u&&u.length)a.state={style:u[0].style};else if(l){if("function"==typeof d)return a.state={style:l},cG(a);a.state={style:s?aG({},s,l):l}}else a.state={style:{}};return a}return iG(t,[{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(!(f$(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?aG({},a,u):u};(a&&l[a]!==u||!a&&l!==u)&&this.setState(d)}this.runAnimation(rG(rG({},this.props),{},{from:u,begin:0}))}}else{var p={style:a?aG({},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=X$(n,r,j$(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(eG(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(eG(e),[t.runJSAnimation.bind(t,{from:d.style,to:l,duration:i,easing:s}),i]);var f=T$(p,i,s),g=rG(rG(rG({},d.style),l),{},{transition:f});return[].concat(eG(e),[g,i,u]).filter(k$)},[o,Math.max(l,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=v$());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?aG({},r,a):a,p=T$(Object.keys(d),n,i);u.start([o,t,rG(rG({},d),{},{transition:p}),n,s])}else this.runJSAnimation(e)}},{key:"render",value:function(){var e=this.props,t=e.children;e.begin;var n=e.duration;e.attributeName,e.easing;var r=e.isActive;e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart;var i=J$(e,Q$),s=o.count(t),l=this.state.style;if("function"==typeof t)return t(l);if(!r||0===s||n<=0)return t;var c=function(e){var t=e.props,n=t.style,r=void 0===n?{}:n,a=t.className;return m(e,rG(rG({},i),{},{style:rG(rG({},r),l),className:a}))};return 1===s?c(o.only(t)):a.createElement("div",null,o.map(t,function(e){return c(e)}))}}]),t}();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)}function gG(){return gG=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},gG.apply(this,arguments)}function mG(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 hG(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 hG(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 hG(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 bG(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 yG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bG(Object(n),!0).forEach(function(t){vG(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vG(e,t,n){var r;return r=function(e,t){if("object"!=fG(e)||!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)}(t,"string"),(t="symbol"==fG(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}pG.displayName="Animate",pG.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},pG.propTypes={from:Fz.oneOfType([Fz.object,Fz.string]),to:Fz.oneOfType([Fz.object,Fz.string]),attributeName:Fz.string,duration:Fz.number,begin:Fz.number,easing:Fz.oneOfType([Fz.string,Fz.func]),steps:Fz.arrayOf(Fz.shape({duration:Fz.number.isRequired,style:Fz.object.isRequired,easing:Fz.oneOfType([Fz.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Fz.func]),properties:Fz.arrayOf("string"),onAnimationEnd:Fz.func})),children:Fz.oneOfType([Fz.node,Fz.func]),isActive:Fz.bool,canBegin:Fz.bool,onAnimationEnd:Fz.func,shouldReAnimate:Fz.bool,onAnimationStart:Fz.func,onAnimationReStart:Fz.func};var EG=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},SG=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},wG={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},AG=function(e){var t=yG(yG({},wG),e),n=c(),r=mG(d(-1),2),i=r[0],o=r[1];f(function(){if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&o(e)}catch(e){}},[]);var s=t.x,l=t.y,u=t.width,p=t.height,g=t.radius,m=t.className,h=t.animationEasing,b=t.animationDuration,y=t.animationBegin,v=t.isAnimationActive,E=t.isUpdateAnimationActive;if(s!==+s||l!==+l||u!==+u||p!==+p||0===u||0===p)return null;var S=fE("recharts-rectangle",m);return E?a.createElement(pG,{canBegin:i>0,from:{width:u,height:p,x:s,y:l},to:{width:u,height:p,x:s,y:l},duration:b,animationEasing:h,isActive:E},function(e){var r=e.width,o=e.height,s=e.x,l=e.y;return a.createElement(pG,{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},a.createElement("path",gG({},MA(t,!0),{className:S,d:EG(s,l,r,o,g),ref:n})))}):a.createElement("path",gG({},MA(t,!0),{className:S,d:EG(s,l,u,p,g)}))},kG=["points","className","baseLinePoints","connectNulls"];function xG(){return xG=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},xG.apply(this,arguments)}function TG(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 OG(e){return function(e){if(Array.isArray(e))return _G(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 _G(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 _G(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 _G(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 IG=function(e){return e&&e.x===+e.x&&e.y===+e.y},NG=function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach(function(e){IG(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])}),IG(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(OG(e),OG(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},RG=function(e){var t=e.points,n=e.className,r=e.baseLinePoints,i=e.connectNulls,o=TG(e,kG);if(!t||!t.length)return null;var s=fE("recharts-polygon",n);if(r&&r.length){var l=o.stroke&&"none"!==o.stroke,c=function(e,t,n){var r=NG(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(NG(t.reverse(),n).slice(1))}(t,r,i);return a.createElement("g",{className:s},a.createElement("path",xG({},MA(o,!0),{fill:"Z"===c.slice(-1)?o.fill:"none",stroke:"none",d:c})),l?a.createElement("path",xG({},MA(o,!0),{fill:"none",d:NG(t,i)})):null,l?a.createElement("path",xG({},MA(o,!0),{fill:"none",d:NG(r,i)})):null)}var u=NG(t,i);return a.createElement("path",xG({},MA(o,!0),{fill:"Z"===u.slice(-1)?o.fill:"none",className:s,d:u}))};function CG(){return CG=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},CG.apply(this,arguments)}var DG=function(e){var t=e.cx,n=e.cy,a=e.r,i=fE("recharts-dot",e.className);return t===+t&&n===+n&&a===+a?r.createElement("circle",CG({},MA(e,!1),EA(e),{className:i,cx:t,cy:n,r:a})):null};function PG(e){return PG="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},PG(e)}var LG=["x","y","top","left","width","height","className"];function MG(){return MG=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},MG.apply(this,arguments)}function FG(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 jG(e,t,n){var r;return r=function(e,t){if("object"!=PG(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=PG(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==PG(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BG(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 UG=function(e,t,n,r,a,i){return"M".concat(e,",").concat(a,"v").concat(r,"M").concat(i,",").concat(t,"h").concat(n)},zG=function(e){var t=e.x,n=void 0===t?0:t,r=e.y,i=void 0===r?0:r,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?FG(Object(n),!0).forEach(function(t){jG(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({x:n,y:i,top:s,left:c,width:d,height:f},BG(e,LG));return iA(n)&&iA(i)&&iA(d)&&iA(f)&&iA(s)&&iA(c)?a.createElement("path",MG({},MA(m,!0),{className:fE("recharts-cross",g),d:UG(n,i,d,f,s,c)})):null},$G=zF,GG=$F,qG=SI;var HG=function(e,t){return e&&e.length?$G(e,qG(t),GG):void 0},VG=zF,WG=SI,YG=WF;var KG=function(e,t){return e&&e.length?VG(e,WG(t),YG):void 0},XG=["cx","cy","angle","ticks","axisLine"],ZG=["ticks","tick","angle","tickFormatter","stroke"];function QG(e){return QG="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},QG(e)}function JG(){return JG=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},JG.apply(this,arguments)}function eq(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 tq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eq(Object(n),!0).forEach(function(t){lq(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eq(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nq(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 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,cq(r.key),r)}}function aq(e,t,n){return t=oq(t),function(e,t){if(t&&("object"===QG(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,iq()?Reflect.construct(t,n||[],oq(e).constructor):t.apply(e,n))}function iq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(iq=function(){return!!e})()}function oq(e){return oq=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oq(e)}function sq(e,t){return sq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sq(e,t)}function lq(e,t,n){return(t=cq(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cq(e){var t=function(e,t){if("object"!=QG(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=QG(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==QG(t)?t:t+""}var uq=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),aq(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&&sq(e,t)}(e,s),t=e,n=[{key:"getTickValueCoord",value:function(e){var t=e.coordinate,n=this.props,r=n.angle,a=n.cx,i=n.cy;return hU(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=HG(a,function(e){return e.coordinate||0});return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:KG(a,function(e){return e.coordinate||0}).coordinate||0,outerRadius:i.coordinate||0}}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,i=e.ticks,o=e.axisLine,s=nq(e,XG),l=i.reduce(function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]},[1/0,-1/0]),c=hU(t,n,l[0],r),u=hU(t,n,l[1],r),d=tq(tq(tq({},MA(s,!1)),{},{fill:"none"},MA(o,!1)),{},{x1:c.x,y1:c.y,x2:u.x,y2:u.y});return a.createElement("line",JG({className:"recharts-polar-radius-axis-line"},d))}},{key:"renderTicks",value:function(){var t=this,n=this.props,r=n.ticks,i=n.tick,o=n.angle,s=n.tickFormatter,l=n.stroke,c=nq(n,ZG),u=this.getTickTextAnchor(),d=MA(c,!1),p=MA(i,!1),f=r.map(function(n,r){var c=t.getTickValueCoord(n),f=tq(tq(tq(tq({textAnchor:u,transform:"rotate(".concat(90-o,", ").concat(c.x,", ").concat(c.y,")")},d),{},{stroke:"none",fill:l},p),{},{index:r},c),{},{payload:n});return a.createElement(WA,JG({className:fE("recharts-polar-radius-axis-tick",SU(i)),key:"tick-".concat(n.coordinate)},SA(t.props,n,r)),e.renderTickItem(i,f,s?s(n.value,r):n.value))});return a.createElement(WA,{className:"recharts-polar-radius-axis-ticks"},f)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.axisLine,r=e.tick;return t&&t.length?a.createElement(WA,{className:fE("recharts-polar-radius-axis",this.props.className)},n&&this.renderAxisLine(),r&&this.renderTicks(),CU.renderCallByParent(this.props,this.getViewBox())):null}}],r=[{key:"renderTickItem",value:function(e,t,n){return a.isValidElement(e)?a.cloneElement(e,t):qE(e)?e(t):a.createElement(rD,JG({},t,{className:"recharts-polar-radius-axis-tick-value"}),n)}}],n&&rq(t.prototype,n),r&&rq(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function dq(e){return dq="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},dq(e)}function pq(){return pq=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},pq.apply(this,arguments)}function fq(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 gq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fq(Object(n),!0).forEach(function(t){Eq(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fq(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mq(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,Sq(r.key),r)}}function hq(e,t,n){return t=yq(t),function(e,t){if(t&&("object"===dq(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,bq()?Reflect.construct(t,n||[],yq(e).constructor):t.apply(e,n))}function bq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(bq=function(){return!!e})()}function yq(e){return yq=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},yq(e)}function vq(e,t){return vq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vq(e,t)}function Eq(e,t,n){return(t=Sq(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sq(e){var t=function(e,t){if("object"!=dq(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=dq(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==dq(t)?t:t+""}lq(uq,"displayName","PolarRadiusAxis"),lq(uq,"axisType","radiusAxis"),lq(uq,"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 wq=Math.PI/180,Aq=1e-5,kq=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),hq(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&&vq(e,t)}(e,s),t=e,n=[{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=hU(n,r,a,e.coordinate),l=hU(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*wq);return n>Aq?"outer"===t?"start":"end":n<-Aq?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.radius,i=e.axisLine,o=e.axisLineType,s=gq(gq({},MA(this.props,!1)),{},{fill:"none"},MA(i,!1));if("circle"===o)return a.createElement(DG,pq({className:"recharts-polar-angle-axis-line"},s,{cx:t,cy:n,r:r}));var l=this.props.ticks.map(function(e){return hU(t,n,r,e.coordinate)});return a.createElement(RG,pq({className:"recharts-polar-angle-axis-line"},s,{points:l}))}},{key:"renderTicks",value:function(){var t=this,n=this.props,r=n.ticks,i=n.tick,o=n.tickLine,s=n.tickFormatter,l=n.stroke,c=MA(this.props,!1),u=MA(i,!1),d=gq(gq({},c),{},{fill:"none"},MA(o,!1)),p=r.map(function(n,r){var p=t.getTickLineCoord(n),f=gq(gq(gq({textAnchor:t.getTickTextAnchor(n)},c),{},{stroke:"none",fill:l},u),{},{index:r,payload:n,x:p.x2,y:p.y2});return a.createElement(WA,pq({className:fE("recharts-polar-angle-axis-tick",SU(i)),key:"tick-".concat(n.coordinate)},SA(t.props,n,r)),o&&a.createElement("line",pq({className:"recharts-polar-angle-axis-tick-line"},d,p)),i&&e.renderTickItem(i,f,s?s(n.value,r):n.value))});return a.createElement(WA,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.radius,r=e.axisLine;return n<=0||!t||!t.length?null:a.createElement(WA,{className:fE("recharts-polar-angle-axis",this.props.className)},r&&this.renderAxisLine(),this.renderTicks())}}],r=[{key:"renderTickItem",value:function(e,t,n){return a.isValidElement(e)?a.cloneElement(e,t):qE(e)?e(t):a.createElement(rD,pq({},t,{className:"recharts-polar-angle-axis-tick-value"}),n)}}],n&&mq(t.prototype,n),r&&mq(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Eq(kq,"displayName","PolarAngleAxis"),Eq(kq,"axisType","angleAxis"),Eq(kq,"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 xq=TO(Object.getPrototypeOf,Object),Tq=NE,Oq=xq,_q=RE,Iq=Function.prototype,Nq=Object.prototype,Rq=Iq.toString,Cq=Nq.hasOwnProperty,Dq=Rq.call(Object);var Pq=function(e){if(!_q(e)||"[object Object]"!=Tq(e))return!1;var t=Oq(e);if(null===t)return!0;var n=Cq.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Rq.call(n)==Dq},Lq=NE,Mq=RE;var Fq=function(e){return!0===e||!1===e||Mq(e)&&"[object Boolean]"==Lq(e)};function jq(e){return jq="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},jq(e)}function Bq(){return Bq=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},Bq.apply(this,arguments)}function Uq(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 zq(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 zq(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 zq(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 $q(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 Gq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$q(Object(n),!0).forEach(function(t){qq(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$q(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qq(e,t,n){var r;return r=function(e,t){if("object"!=jq(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=jq(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==jq(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hq,Vq=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")},Wq={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Yq=function(e){var t=Gq(Gq({},Wq),e),n=c(),r=Uq(d(-1),2),i=r[0],o=r[1];f(function(){if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&o(e)}catch(e){}},[]);var s=t.x,l=t.y,u=t.upperWidth,p=t.lowerWidth,g=t.height,m=t.className,h=t.animationEasing,b=t.animationDuration,y=t.animationBegin,v=t.isUpdateAnimationActive;if(s!==+s||l!==+l||u!==+u||p!==+p||g!==+g||0===u&&0===p||0===g)return null;var E=fE("recharts-trapezoid",m);return v?a.createElement(pG,{canBegin:i>0,from:{upperWidth:0,lowerWidth:0,height:g,x:s,y:l},to:{upperWidth:u,lowerWidth:p,height:g,x:s,y:l},duration:b,animationEasing:h,isActive:v},function(e){var r=e.upperWidth,o=e.lowerWidth,s=e.height,l=e.x,c=e.y;return a.createElement(pG,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:b,easing:h},a.createElement("path",Bq({},MA(t,!0),{className:E,d:Vq(l,c,r,o,s),ref:n})))}):a.createElement("g",null,a.createElement("path",Bq({},MA(t,!0),{className:E,d:Vq(s,l,u,p,g)})))},Kq=["option","shapeType","propTransformer","activeClassName","isActive"];function Xq(e){return Xq="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},Xq(e)}function Zq(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 Qq(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 Jq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qq(Object(n),!0).forEach(function(t){eH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qq(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function eH(e,t,n){var r;return r=function(e,t){if("object"!=Xq(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Xq(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==Xq(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tH(e,t){return Jq(Jq({},t),e)}function nH(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return a.createElement(AG,n);case"trapezoid":return a.createElement(Yq,n);case"sector":return a.createElement(tz,n);case"symbols":if(function(e){return"symbols"===e}(t))return a.createElement(jx,n);break;default:return null}}function rH(e){var t,n=e.option,r=e.shapeType,o=e.propTransformer,s=void 0===o?tH:o,l=e.activeClassName,c=void 0===l?"recharts-active-shape":l,u=e.isActive,d=Zq(e,Kq);if(i(n))t=m(n,Jq(Jq({},d),function(e){return i(e)?e.props:e}(n)));else if(qE(n))t=n(d);else if(Pq(n)&&!Fq(n)){var p=s(n,d);t=a.createElement(nH,{shapeType:r,elementProps:p})}else{var f=d;t=a.createElement(nH,{shapeType:r,elementProps:f})}return u?a.createElement(WA,{className:c},t):t}function aH(e,t){return null!=t&&"trapezoids"in e.props}function iH(e,t){return null!=t&&"sectors"in e.props}function oH(e,t){return null!=t&&"points"in e.props}function sH(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 lH(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function cH(e,t){var n=e.x===t.x,r=e.y===t.y,a=e.z===t.z;return n&&r&&a}function uH(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,a=function(e,t){var n;return aH(e,t)?n="trapezoids":iH(e,t)?n="sectors":oH(e,t)&&(n="points"),n}(n,t),i=function(e,t){var n,r;return aH(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:iH(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:oH(e,t)?t.payload:{}}(n,t),o=r.filter(function(e,r){var o=sj(i,e),s=n.props[a].filter(function(e){var r=function(e,t){var n;return aH(e,t)?n=sH:iH(e,t)?n=lH:oH(e,t)&&(n=cH),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 dH(e){return dH="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},dH(e)}function pH(){return pH=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},pH.apply(this,arguments)}function fH(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 gH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fH(Object(n),!0).forEach(function(t){EH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mH(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,SH(r.key),r)}}function hH(e,t,n){return t=yH(t),function(e,t){if(t&&("object"===dH(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,bH()?Reflect.construct(t,n||[],yH(e).constructor):t.apply(e,n))}function bH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(bH=function(){return!!e})()}function yH(e){return yH=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},yH(e)}function vH(e,t){return vH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vH(e,t)}function EH(e,t,n){return(t=SH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SH(e){var t=function(e,t){if("object"!=dH(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=dH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==dH(t)?t:t+""}var wH=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),EH(n=hH(this,e,[t]),"pieRef",null),EH(n,"sectorRefs",[]),EH(n,"id",lA("recharts-pie-")),EH(n,"handleAnimationEnd",function(){var e=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),qE(e)&&e()}),EH(n,"handleAnimationStart",function(){var e=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),qE(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&&vH(e,t)}(e,s),t=e,n=[{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(t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.label,i=n.labelLine,o=n.dataKey,s=n.valueKey,l=MA(this.props,!1),c=MA(r,!1),u=MA(i,!1),d=r&&r.offsetRadius||20,p=t.map(function(t,n){var p=(t.startAngle+t.endAngle)/2,f=hU(t.cx,t.cy,t.outerRadius+d,p),g=gH(gH(gH(gH({},l),t),{},{stroke:"none"},c),{},{index:n,textAnchor:e.getTextAnchor(f.x,t.cx)},f),m=gH(gH(gH(gH({},l),t),{},{fill:"none",stroke:t.fill},u),{},{index:n,points:[hU(t.cx,t.cy,t.outerRadius,p),f]}),h=o;return zw(o)&&zw(s)?h="value":zw(o)&&(h=s),a.createElement(WA,{key:"label-".concat(t.startAngle,"-").concat(t.endAngle,"-").concat(t.midAngle,"-").concat(n)},i&&e.renderLabelLineItem(i,m,"line"),e.renderLabelItem(r,g,FB(t,h)))});return a.createElement(WA,{className:"recharts-pie-labels"},p)}},{key:"renderSectorsStatically",value:function(e){var t=this,n=this.props,r=n.activeShape,i=n.blendStroke,o=n.inactiveShape;return e.map(function(n,s){if(0===(null==n?void 0:n.startAngle)&&0===(null==n?void 0:n.endAngle)&&1!==e.length)return null;var l=t.isActiveIndex(s),c=o&&t.hasActiveIndex()?o:null,u=l?r:c,d=gH(gH({},n),{},{stroke:i?n.fill:n.stroke,tabIndex:-1});return a.createElement(WA,pH({ref:function(e){e&&!t.sectorRefs.includes(e)&&t.sectorRefs.push(e)},tabIndex:-1,className:"recharts-pie-sector"},SA(t.props,n,s),{key:"sector-".concat(null==n?void 0:n.startAngle,"-").concat(null==n?void 0:n.endAngle,"-").concat(n.midAngle,"-").concat(s)}),a.createElement(rH,pH({option:u,isActive:l,shapeType:"sector"},d)))})}},{key:"renderSectorsWithAnimation",value:function(){var e=this,t=this.props,n=t.sectors,r=t.isAnimationActive,i=t.animationBegin,o=t.animationDuration,s=t.animationEasing,l=t.animationId,c=this.state,u=c.prevSectors,d=c.prevIsAnimationActive;return a.createElement(pG,{begin:i,duration:o,isActive:r,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(l,"-").concat(d),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(t){var r=t.t,i=[],o=(n&&n[0]).startAngle;return n.forEach(function(e,t){var n=u&&u[t],a=t>0?Uw(e,"paddingAngle",0):0;if(n){var s=dA(n.endAngle-n.startAngle,e.endAngle-e.startAngle),l=gH(gH({},e),{},{startAngle:o+a,endAngle:o+s(r)+a});i.push(l),o=l.endAngle}else{var c=e.endAngle,d=e.startAngle,p=dA(0,c-d)(r),f=gH(gH({},e),{},{startAngle:o+a,endAngle:o+p+a});i.push(f),o=f.endAngle}}),a.createElement(WA,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&&sj(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var e=this,t=this.props,n=t.hide,r=t.sectors,i=t.className,o=t.label,s=t.cx,l=t.cy,c=t.innerRadius,u=t.outerRadius,d=t.isAnimationActive,p=this.state.isAnimationFinished;if(n||!r||!r.length||!iA(s)||!iA(l)||!iA(c)||!iA(u))return null;var f=fE("recharts-pie",i);return a.createElement(WA,{tabIndex:this.props.rootTabIndex,className:f,ref:function(t){e.pieRef=t}},this.renderSectors(),o&&this.renderLabels(r),CU.renderCallByParent(this.props,null,!1),(!d||p)&&VU.renderCallByParent(this.props,r,!1))}}],r=[{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,t,n){if(a.isValidElement(e))return a.cloneElement(e,t);if(qE(e))return e(t);var r=fE("recharts-pie-label-line","boolean"!=typeof e?e.className:"");return a.createElement(fz,pH({},t,{key:n,type:"linear",className:r}))}},{key:"renderLabelItem",value:function(e,t,n){if(a.isValidElement(e))return a.cloneElement(e,t);var r=n;if(qE(e)&&(r=e(t),a.isValidElement(r)))return r;var i=fE("recharts-pie-label-text","boolean"==typeof e||qE(e)?"":e.className);return a.createElement(rD,pH({},t,{alignmentBaseline:"middle",className:i}),r)}}],n&&mH(t.prototype,n),r&&mH(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Hq=wH,EH(wH,"displayName","Pie"),EH(wH,"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:!RR,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0}),EH(wH,"parseDeltaAngle",function(e,t){return rA(t-e)*Math.min(Math.abs(t-e),360)}),EH(wH,"getRealPieData",function(e){var t=e.data,n=e.children,r=MA(e,!1),a=RA(n,EC);return t&&t.length?t.map(function(e,t){return gH(gH(gH({payload:e},r),e),a&&a[t]&&a[t].props)}):a&&a.length?a.map(function(e){return gH(gH({},r),e.props)}):[]}),EH(wH,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,a=t.width,i=t.height,o=bU(a,i);return{cx:r+cA(e.cx,a,a/2),cy:n+cA(e.cy,i,i/2),innerRadius:cA(e.innerRadius,o,0),outerRadius:cA(e.outerRadius,o,.8*o),maxRadius:e.maxRadius||Math.sqrt(a*a+i*i)/2}}),EH(wH,"getComposedData",function(e){var t=e.item,n=e.offset,r=void 0!==t.type.defaultProps?gH(gH({},t.type.defaultProps),t.props):t.props,a=Hq.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=Hq.parseCoordinateOfPie(r,n),m=Hq.parseDeltaAngle(o,s),h=Math.abs(m),b=c;zw(c)&&zw(d)?(KA(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),b="value"):zw(c)&&(KA(!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!==FB(e,b,0)}).length,S=h-E*f-(h>=360?E:E-1)*l,w=a.reduce(function(e,t){var n=FB(t,b,0);return e+(iA(n)?n:0)},0);w>0&&(y=a.map(function(e,t){var n,r=FB(e,b,0),a=FB(e,u,t),s=(iA(r)?r:0)/w,c=(n=t?v.endAngle+rA(m)*l*(0!==r?1:0):o)+rA(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=hU(g.cx,g.cy,h,d);return v=gH(gH(gH({percent:s,cornerRadius:i,name:a,tooltipPayload:y,midAngle:d,middleRadius:h,tooltipPosition:E},e),g),{},{value:FB(e,b),startAngle:n,endAngle:c,payload:e,paddingAngle:rA(m)*l})}));return gH(gH({},g),{},{sectors:y,data:a})});var AH=Math.ceil,kH=Math.max;var xH=function(e,t,n,r){for(var a=-1,i=kH(AH((t-e)/(n||1)),0),o=Array(i);i--;)o[r?i:++a]=e,e+=n;return o},TH=rC,OH=1/0;var _H=function(e){return e?(e=TH(e))===OH||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},IH=xH,NH=eR,RH=_H;var CH=function(e){return function(t,n,r){return r&&"number"!=typeof r&&NH(t,n,r)&&(n=r=void 0),t=RH(t),void 0===n?(n=t,t=0):n=RH(n),r=void 0===r?t<n?1:-1:RH(r),IH(t,n,r,e)}}();function DH(e){return DH="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},DH(e)}function PH(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 LH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PH(Object(n),!0).forEach(function(t){MH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function MH(e,t,n){var r;return r=function(e,t){if("object"!=DH(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=DH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==DH(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var FH=["Webkit","Moz","O","ms"];function jH(e){return jH="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},jH(e)}function BH(){return BH=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},BH.apply(this,arguments)}function UH(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?UH(Object(n),!0).forEach(function(t){WH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $H(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,YH(r.key),r)}}function GH(e,t,n){return t=HH(t),function(e,t){if(t&&("object"===jH(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,qH()?Reflect.construct(t,n||[],HH(e).constructor):t.apply(e,n))}function qH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(qH=function(){return!!e})()}function HH(e){return HH=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},HH(e)}function VH(e,t){return VH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},VH(e,t)}function WH(e,t,n){return(t=YH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YH(e){var t=function(e,t){if("object"!=jH(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=jH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==jH(t)?t:t+""}var KH=function(e){return e.changedTouches&&!!e.changedTouches.length},XH=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),WH(n=GH(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)}),WH(n,"handleTouchMove",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleDrag(e.changedTouches[0])}),WH(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()}),WH(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),WH(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),WH(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),WH(n,"handleSlideDragStart",function(e){var t=KH(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&&VH(e,t)}(e,s),t=e,n=[{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=FB(n[e],a,e);return qE(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=KH(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(WH(WH({},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(WH({},t,u),function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))})}}}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,o=e.fill,s=e.stroke;return a.createElement("rect",{stroke:s,fill:o,x:t,y:n,width:r,height:i})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,s=e.data,l=e.children,c=e.padding,u=o.only(l);return u?a.cloneElement(u,{x:t,y:n,width:r,height:i,margin:c,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(t,n){var r,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(t,this.props.x),b=zH(zH({},MA(this.props,!1)),{},{x:h,y:l,width:c,height:u}),y=p||"Min value: ".concat(null===(r=f[g])||void 0===r?void 0:r.name,", Max value: ").concat(null===(i=f[m])||void 0===i?void 0:i.name);return a.createElement(WA,{tabIndex:0,role:"slider","aria-label":y,"aria-valuenow":t,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[n],onTouchStart:this.travellerDragStartHandlers[n],onKeyDown:function(e){["ArrowLeft","ArrowRight"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),o.handleTravellerMoveKeyboard("ArrowRight"===e.key?1:-1,n))},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,t){var n=this.props,r=n.y,i=n.height,o=n.stroke,s=n.travellerWidth,l=Math.min(e,t)+s,c=Math.max(Math.abs(t-e)-s,0);return a.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:r,width:c,height:i})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=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 a.createElement(WA,{className:"recharts-brush-texts"},a.createElement(rD,BH({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,u)-5,y:r+i/2},d),this.getTextOfTick(t)),a.createElement(rD,BH({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,u)+o+5,y:r+i/2},d),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=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(!t||!t.length||!iA(i)||!iA(o)||!iA(s)||!iA(l)||s<=0||l<=0)return null;var b=fE("recharts-brush",n),y=1===a.Children.count(r),v=function(e,t){var n=e.replace(/(\w)/,function(e){return e.toUpperCase()}),r=FH.reduce(function(e,r){return LH(LH({},e),{},MH({},r+n,t))},{});return r[e]=t,r}("userSelect","none");return a.createElement(WA,{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())}}],r=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,n=e.y,r=e.width,i=e.height,o=e.stroke,s=Math.floor(n+i/2)-1;return a.createElement(a.Fragment,null,a.createElement("rect",{x:t,y:n,width:r,height:i,fill:o,stroke:"none"}),a.createElement("line",{x1:t+1,y1:s,x2:t+r-1,y2:s,fill:"none",stroke:"#fff"}),a.createElement("line",{x1:t+1,y1:s+2,x2:t+r-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,n){return a.isValidElement(t)?a.cloneElement(t,n):qE(t)?t(n):e.renderDefaultTraveller(n)}},{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 zH({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=CD().domain(CH(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}}],n&&$H(t.prototype,n),r&&$H(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();WH(XH,"displayName","Brush"),WH(XH,"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 ZH=bN;var QH=function(e,t){var n;return ZH(e,function(e,r,a){return!(n=t(e,r,a))}),!!n},JH=hT,eV=SI,tV=QH,nV=gE,rV=eR;var aV=function(e,t,n){var r=nV(e)?JH:tV;return n&&rV(e,t,n)&&(t=void 0),r(e,eV(t))},iV=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},oV=UN;var sV=function(e,t,n){"__proto__"==t&&oV?oV(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},lV=sV,cV=gN,uV=SI;var dV=function(e,t){var n={};return t=uV(t),cV(e,function(e,r,a){lV(n,r,t(e,r,a))}),n};var pV=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},fV=bN;var gV=function(e,t){var n=!0;return fV(e,function(e,r,a){return n=!!t(e,r,a)}),n},mV=pV,hV=gV,bV=SI,yV=gE,vV=eR;var EV=function(e,t,n){var r=yV(e)?mV:hV;return n&&vV(e,t,n)&&(t=void 0),r(e,bV(t))},SV=["x","y"];function wV(e){return wV="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},wV(e)}function AV(){return AV=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},AV.apply(this,arguments)}function kV(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 xV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kV(Object(n),!0).forEach(function(t){TV(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function TV(e,t,n){var r;return r=function(e,t){if("object"!=wV(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=wV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==wV(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OV(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 _V(e,t){var n=e.x,r=e.y,a=OV(e,SV),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 xV(xV(xV(xV(xV({},t),a),o?{x:o}:{}),l?{y:l}:{}),{},{height:u,width:p,name:t.name,radius:t.radius})}function IV(e){return a.createElement(rH,AV({shapeType:"rectangle",propTransformer:_V,activeClassName:"recharts-active-bar"},e))}var NV,RV=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=iA(n)||function(e){return zw(e)}(n);return a?e(n,r):(a||("production"!==process.env.NODE_ENV?dB(0,"minPointSize callback function received a value with type of ".concat(wV(n),". Currently only numbers or null/undefined are supported.")):dB()),t)}},CV=["value","background"];function DV(e){return DV="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},DV(e)}function PV(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 LV(){return LV=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},LV.apply(this,arguments)}function MV(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 FV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?MV(Object(n),!0).forEach(function(t){GV(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jV(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,qV(r.key),r)}}function BV(e,t,n){return t=zV(t),function(e,t){if(t&&("object"===DV(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,UV()?Reflect.construct(t,n||[],zV(e).constructor):t.apply(e,n))}function UV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(UV=function(){return!!e})()}function zV(e){return zV=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zV(e)}function $V(e,t){return $V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$V(e,t)}function GV(e,t,n){return(t=qV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qV(e){var t=function(e,t){if("object"!=DV(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=DV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==DV(t)?t:t+""}var HV=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 GV(t=BV(this,e,[].concat(r)),"state",{isAnimationFinished:!1}),GV(t,"id",lA("recharts-bar-")),GV(t,"handleAnimationEnd",function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()}),GV(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&&$V(e,t)}(e,s),t=e,n=[{key:"renderRectanglesStatically",value:function(e){var t=this,n=this.props,r=n.shape,i=n.dataKey,o=n.activeIndex,s=n.activeBar,l=MA(this.props,!1);return e&&e.map(function(e,n){var c=n===o,u=c?s:r,d=FV(FV(FV({},l),e),{},{isActive:c,option:u,index:n,dataKey:i,onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd});return a.createElement(WA,LV({className:"recharts-bar-rectangle"},SA(t.props,e,n),{key:"rectangle-".concat(null==e?void 0:e.x,"-").concat(null==e?void 0:e.y,"-").concat(null==e?void 0:e.value,"-").concat(n)}),a.createElement(IV,d))})}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,t=this.props,n=t.data,r=t.layout,i=t.isAnimationActive,o=t.animationBegin,s=t.animationDuration,l=t.animationEasing,c=t.animationId,u=this.state.prevData;return a.createElement(pG,{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(t){var i=t.t,o=n.map(function(e,t){var n=u&&u[t];if(n){var a=dA(n.x,e.x),o=dA(n.y,e.y),s=dA(n.width,e.width),l=dA(n.height,e.height);return FV(FV({},e),{},{x:a(i),y:o(i),width:s(i),height:l(i)})}if("horizontal"===r){var c=dA(0,e.height)(i);return FV(FV({},e),{},{y:e.y+e.height-c,height:c})}var d=dA(0,e.width)(i);return FV(FV({},e),{},{width:d})});return a.createElement(WA,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&&sj(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props,n=t.data,r=t.dataKey,i=t.activeIndex,o=MA(this.props.background,!1);return n.map(function(t,n){t.value;var s=t.background,l=PV(t,CV);if(!s)return null;var c=FV(FV(FV(FV(FV({},l),{},{fill:"#eee"},s),o),SA(e.props,t,n)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:r,index:n,className:"recharts-bar-background-rectangle"});return a.createElement(IV,LV({key:"background-bar-".concat(n),option:e.props.background,isActive:n===i},c))})}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.data,i=n.xAxis,o=n.yAxis,s=n.layout,l=RA(n.children,xB);if(!l)return null;var c="vertical"===s?r[0].height/2:r[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:FB(e,t)}},d={clipPath:e?"url(#clipPath-".concat(t,")"):null};return a.createElement(WA,d,l.map(function(e){return a.cloneElement(e,{key:"error-bar-".concat(t,"-").concat(e.props.dataKey),data:r,xAxis:i,yAxis:o,layout:s,offset:c,dataPointFormatter:u})}))}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.data,r=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(t||!n||!n.length)return null;var g=this.state.isAnimationFinished,m=fE("recharts-bar",r),h=i&&i.allowDataOverflow,b=o&&o.allowDataOverflow,y=h||b,v=zw(f)?this.id:f;return a.createElement(WA,{className:m},h||b?a.createElement("defs",null,a.createElement("clipPath",{id:"clipPath-".concat(v)},a.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,a.createElement(WA,{className:"recharts-bar-rectangles",clipPath:y?"url(#clipPath-".concat(v,")"):null},p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(y,v),(!d||g)&&VU.renderCallByParent(this.props,n))}}],r=[{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}}],n&&jV(t.prototype,n),r&&jV(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function VV(e){return VV="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},VV(e)}function WV(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,ZV(r.key),r)}}function YV(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 KV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?YV(Object(n),!0).forEach(function(t){XV(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function XV(e,t,n){return(t=ZV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZV(e){var t=function(e,t){if("object"!=VV(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=VV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==VV(t)?t:t+""}NV=HV,GV(HV,"displayName","Bar"),GV(HV,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!RR,animationBegin:0,animationDuration:400,animationEasing:"ease"}),GV(HV,"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?FV(FV({},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=RA(y,EC),k=d.map(function(e,t){var r,d,p,m,h,y;c?r=function(e,t){if(!t||2!==t.length||!iA(t[0])||!iA(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(!iA(e[0])||e[0]<n)&&(a[0]=n),(!iA(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=FB(e,b),Array.isArray(r)||(r=[w,r]));var E=RV(v,NV.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=eU({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=rA(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=eU({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+=rA(m||E)*(Math.abs(E)-Math.abs(m))}return FV(FV(FV({},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:[sU(n,e)],tooltipPosition:{x:d+m/2,y:p+h/2}})});return FV({data:k,layout:g},p)});var QV=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=!!CA(l,HV);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(fA);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 _=cA(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=WB(m,a,d),R=N.scale,C=N.realScaleType;R.domain(b).range(c),KB(R);var D=QB(R,KV(KV({},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=KV(KV(KV({},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=iU(P,D),m.hide||"xAxis"!==r?m.hide||(u[w]+=(g?-1:1)*P.width):u[w]+=(g?-1:1)*P.height,KV(KV({},i),{},XV({},o,P))},{})},JV=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)}},eW=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&&WV(t.prototype,n),r&&WV(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();XV(eW,"EPS",1e-4);var tW=function(e){var t=Object.keys(e).reduce(function(t,n){return KV(KV({},t),{},XV({},n,eW.create(e[n])))},{});return KV(KV({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,a=n.position;return dV(e,function(e,n){return t[n].apply(e,{bandAware:r,position:a})})},isInRange:function(e){return EV(e,function(e,n){return t[n].isInRange(e)})}})};var nW=SI,rW=PO,aW=jO;var iW=function(e){return function(t,n,r){var a=Object(t);if(!rW(t)){var i=nW(n);t=aW(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}},oW=_H;var sW=wI,lW=SI,cW=function(e){var t=oW(e),n=t%1;return t==t?n?t-n:t:0},uW=Math.max;var dW=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=null==n?0:cW(n);return a<0&&(a=uW(r+a,0)),sW(e,lW(t),a)},pW=iW(dW),fW=gw(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 gW(e){return gW="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},gW(e)}var mW=y(void 0),hW=y(void 0),bW=y(void 0),yW=y({}),vW=y(void 0),EW=y(0),SW=y(0),wW=function(e){var t=e.state,n=t.xAxisMap,r=t.yAxisMap,i=t.offset,o=e.clipPathId,s=e.children,l=e.width,c=e.height,u=fW(i);return a.createElement(mW.Provider,{value:n},a.createElement(hW.Provider,{value:r},a.createElement(yW.Provider,{value:i},a.createElement(bW.Provider,{value:u},a.createElement(vW.Provider,{value:o},a.createElement(EW.Provider,{value:c},a.createElement(SW.Provider,{value:l},s)))))))};function AW(e){var t=Object.keys(e);return 0===t.length?"There are no available ids.":"Available ids are: ".concat(t,".")}var kW=function(e){var t=b(mW);null==t&&("production"!==process.env.NODE_ENV?dB(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):dB());var n=t[e];return null==n&&("production"!==process.env.NODE_ENV?dB(0,'Could not find xAxis by id "'.concat(e,'" [').concat(gW(e),"]. ").concat(AW(t))):dB()),n},xW=function(e){var t=b(hW);null==t&&("production"!==process.env.NODE_ENV?dB(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):dB());var n=t[e];return null==n&&("production"!==process.env.NODE_ENV?dB(0,'Could not find yAxis by id "'.concat(e,'" [').concat(gW(e),"]. ").concat(AW(t))):dB()),n},TW=function(){return b(SW)},OW=function(){return b(EW)};function _W(e){return _W="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},_W(e)}function IW(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,FW(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function NW(e,t,n){return t=CW(t),function(e,t){if(t&&("object"===_W(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,RW()?Reflect.construct(t,n||[],CW(e).constructor):t.apply(e,n))}function RW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(RW=function(){return!!e})()}function CW(e){return CW=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},CW(e)}function DW(e,t){return DW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},DW(e,t)}function PW(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 LW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PW(Object(n),!0).forEach(function(t){MW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PW(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function MW(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"!=_W(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=_W(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==_W(t)?t:t+""}function jW(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 BW(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 BW(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 BW(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 UW(){return UW=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},UW.apply(this,arguments)}function zW(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,o=e.yAxisId,s=e.shape,l=e.className,c=e.alwaysShow,u=b(vW),d=kW(i),p=xW(o),f=b(bW);if(!u||!f)return null;KA(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var g=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(iV(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(iV(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 iV(l,"discard")&&aV(v,function(t){return!e.isInRange(t)})?null:v}return null}(tW({x:d.scale,y:p.scale}),oA(t),oA(n),r&&2===r.length,f,e.position,d.orientation,p.orientation,e);if(!g)return null;var m=jW(g,2),h=m[0],y=h.x,v=h.y,E=m[1],S=E.x,w=E.y,A=LW(LW({clipPath:iV(e,"hidden")?"url(#".concat(u,")"):void 0},MA(e,!0)),{},{x1:y,y1:v,x2:S,y2:w});return a.createElement(WA,{className:fE("recharts-reference-line",l)},function(e,t){return a.isValidElement(e)?a.cloneElement(e,t):qE(e)?e(t):a.createElement("line",UW({},t,{className:"recharts-reference-line-line"}))}(s,A),CU.renderCallByParent(e,function(e){var t=e.x1,n=e.y1,r=e.x2,a=e.y2;return JV({x:t,y:n},{x:r,y:a})}({x1:y,y1:v,x2:S,y2:w})))}var $W=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),NW(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&&DW(e,t)}(e,a.Component),IW(e,[{key:"render",value:function(){return a.createElement(zW,this.props)}}])}();function GW(){return GW=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},GW.apply(this,arguments)}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){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 VW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HW(Object(n),!0).forEach(function(t){QW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HW(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function WW(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 YW(e,t,n){return t=XW(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,KW()?Reflect.construct(t,n||[],XW(e).constructor):t.apply(e,n))}function KW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(KW=function(){return!!e})()}function XW(e){return XW=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},XW(e)}function ZW(e,t){return ZW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ZW(e,t)}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+""}MW($W,"displayName","ReferenceLine"),MW($W,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});var eY=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),YW(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&&ZW(e,t)}(e,a.Component),WW(e,[{key:"render",value:function(){var t=this.props,n=t.x,r=t.y,i=t.r,o=t.alwaysShow,s=t.clipPathId,l=oA(n),c=oA(r);if(KA(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=tW({x:r.scale,y:a.scale}),o=i.apply({x:t,y:n},{bandAware:!0});return iV(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=VW(VW({clipPath:iV(this.props,"hidden")?"url(#".concat(s,")"):void 0},MA(this.props,!0)),{},{cx:d,cy:p});return a.createElement(WA,{className:fE("recharts-reference-dot",m)},e.renderDot(g,h),CU.renderCallByParent(this.props,{x:d-i,y:p-i,width:2*i,height:2*i}))}}])}();function tY(){return tY=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},tY.apply(this,arguments)}function nY(e){return nY="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},nY(e)}function rY(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 aY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rY(Object(n),!0).forEach(function(t){uY(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function iY(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,dY(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function oY(e,t,n){return t=lY(t),function(e,t){if(t&&("object"===nY(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,sY()?Reflect.construct(t,n||[],lY(e).constructor):t.apply(e,n))}function sY(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(sY=function(){return!!e})()}function lY(e){return lY=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},lY(e)}function cY(e,t){return cY=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cY(e,t)}function uY(e,t,n){return(t=dY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dY(e){var t=function(e,t){if("object"!=nY(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=nY(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==nY(t)?t:t+""}QW(eY,"displayName","ReferenceDot"),QW(eY,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),QW(eY,"renderDot",function(e,t){return a.isValidElement(e)?a.cloneElement(e,t):qE(e)?e(t):a.createElement(DG,GW({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"}))});var pY=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),oY(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&&cY(e,t)}(e,a.Component),iY(e,[{key:"render",value:function(){var t=this.props,n=t.x1,r=t.x2,i=t.y1,o=t.y2,s=t.className,l=t.alwaysShow,c=t.clipPathId;KA(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var u=oA(n),d=oA(r),p=oA(i),f=oA(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=tW({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!iV(a,"discard")||d.isInRange(p)&&d.isInRange(f)?JV(p,f):null}(u,d,p,f,this.props);if(!m&&!g)return null;var h=iV(this.props,"hidden")?"url(#".concat(c,")"):void 0;return a.createElement(WA,{className:fE("recharts-reference-area",s)},e.renderRect(g,aY(aY({clipPath:h},MA(this.props,!0)),m)),CU.renderCallByParent(this.props,m))}}])}();function fY(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 gY(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 mY(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 hY(e){return hY="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},hY(e)}function bY(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 yY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bY(Object(n),!0).forEach(function(t){vY(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vY(e,t,n){var r;return r=function(e,t){if("object"!=hY(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=hY(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==hY(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EY(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(iA(l)||RR)return function(e,t){return fY(e,t+1)}(a,"number"==typeof l&&iA(l)?l:0);var p=[],f="top"===s||"bottom"===s?"width":"height",g=u&&"width"===f?_C(u,{fontSize:t,letterSpacing:n}):{width:0,height:0},m=function(e,r){var a=qE(c)?c(e.value,r):e.value;return"width"===f?gY(_C(a,{fontSize:t,letterSpacing:n}),g,d):_C(a,{fontSize:t,letterSpacing:n})[f]},h=a.length>=2?rA(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:fY(r,u)};var i,o=c,p=function(){return void 0===i&&(i=n(t,o)),i},f=t.coordinate,g=0===c||mY(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=yY(yY({},u),{},{tickCoord:p>0?u.coordinate-p*e:u.coordinate}),mY(e,u.tickCoord,function(){return d},l,c)&&(c=u.tickCoord-e*(d/2+a),o[s-1]=yY(yY({},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=yY(yY({},i),{},{tickCoord:u<0?i.coordinate-u*e:i.coordinate})}else o[t]=i=yY(yY({},i),{},{tickCoord:i.coordinate});mY(e,i.tickCoord,s,l,c)&&(l=i.tickCoord+e*(s()/2+a),o[t]=yY(yY({},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=yY(yY({},c),{},{tickCoord:d>0?c.coordinate-d*e:c.coordinate})}else i[t]=c=yY(yY({},c),{},{tickCoord:c.coordinate});mY(e,c.tickCoord,u,s,l)&&(l=c.tickCoord-e*(u()/2+a),i[t]=yY(yY({},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}))}uY(pY,"displayName","ReferenceArea"),uY(pY,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),uY(pY,"renderRect",function(e,t){return a.isValidElement(e)?a.cloneElement(e,t):qE(e)?e(t):a.createElement(AG,tY({},t,{className:"recharts-reference-area-rect"}))});var SY=["viewBox"],wY=["viewBox"],AY=["ticks"];function kY(e){return kY="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},kY(e)}function xY(){return xY=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},xY.apply(this,arguments)}function TY(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 OY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TY(Object(n),!0).forEach(function(t){PY(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _Y(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 IY(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,LY(r.key),r)}}function NY(e,t,n){return t=CY(t),function(e,t){if(t&&("object"===kY(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,RY()?Reflect.construct(t,n||[],CY(e).constructor):t.apply(e,n))}function RY(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(RY=function(){return!!e})()}function CY(e){return CY=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},CY(e)}function DY(e,t){return DY=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},DY(e,t)}function PY(e,t,n){return(t=LY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LY(e){var t=function(e,t){if("object"!=kY(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=kY(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==kY(t)?t:t+""}var MY=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=NY(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&&DY(e,t)}(e,v),t=e,n=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=_Y(e,SY),a=this.props,i=a.viewBox,o=_Y(a,wY);return!gA(n,i)||!gA(r,o)||!gA(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=iA(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,t=e.x,n=e.y,r=e.width,i=e.height,o=e.orientation,s=e.mirror,l=e.axisLine,c=OY(OY(OY({},MA(this.props,!1)),MA(l,!1)),{},{fill:"none"});if("top"===o||"bottom"===o){var u=+("top"===o&&!s||"bottom"===o&&s);c=OY(OY({},c),{},{x1:t,y1:n+u*i,x2:t+r,y2:n+u*i})}else{var d=+("left"===o&&!s||"right"===o&&s);c=OY(OY({},c),{},{x1:t+d*r,y1:n,x2:t+d*r,y2:n+i})}return a.createElement("line",xY({},c,{className:fE("recharts-cartesian-axis-line",Uw(l,"className"))}))}},{key:"renderTicks",value:function(t,n,r){var i=this,o=this.props,s=o.tickLine,l=o.stroke,c=o.tick,u=o.tickFormatter,d=o.unit,p=EY(OY(OY({},this.props),{},{ticks:t}),n,r),f=this.getTickTextAnchor(),g=this.getTickVerticalAnchor(),m=MA(this.props,!1),h=MA(c,!1),b=OY(OY({},m),{},{fill:"none"},MA(s,!1)),y=p.map(function(t,n){var r=i.getTickLineCoord(t),o=r.line,y=r.tick,v=OY(OY(OY(OY({textAnchor:f,verticalAnchor:g},m),{},{stroke:"none",fill:l},h),y),{},{index:n,payload:t,visibleTicksCount:p.length,tickFormatter:u});return a.createElement(WA,xY({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},SA(i.props,t,n)),s&&a.createElement("line",xY({},b,o,{className:fE("recharts-cartesian-axis-tick-line",Uw(s,"className"))})),c&&e.renderTickItem(c,v,"".concat(qE(u)?u(t.value,n):t.value).concat(d||"")))});return a.createElement("g",{className:"recharts-cartesian-axis-ticks"},y)}},{key:"render",value:function(){var e=this,t=this.props,n=t.axisLine,r=t.width,i=t.height,o=t.ticksGenerator,s=t.className;if(t.hide)return null;var l=this.props,c=l.ticks,u=_Y(l,AY),d=c;return qE(o)&&(d=c&&c.length>0?o(this.props):o(u)),r<=0||i<=0||!d||!d.length?null:a.createElement(WA,{className:fE("recharts-cartesian-axis",s),ref:function(t){e.layerReference=t}},n&&this.renderAxisLine(),this.renderTicks(d,this.state.fontSize,this.state.letterSpacing),CU.renderCallByParent(this.props))}}],r=[{key:"renderTickItem",value:function(e,t,n){var r=fE(t.className,"recharts-cartesian-axis-tick-value");return a.isValidElement(e)?a.cloneElement(e,OY(OY({},t),{},{className:r})):qE(e)?e(OY(OY({},t),{},{className:r})):a.createElement(rD,xY({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],n&&IY(t.prototype,n),r&&IY(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();PY(MY,"displayName","CartesianAxis"),PY(MY,"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 FY=["x1","y1","x2","y2","key"],jY=["offset"];function BY(e){return BY="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},BY(e)}function UY(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 zY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UY(Object(n),!0).forEach(function(t){$Y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $Y(e,t,n){var r;return r=function(e,t){if("object"!=BY(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=BY(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==BY(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GY(){return GY=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},GY.apply(this,arguments)}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}var HY=function(e){var t=e.fill;if(!t||"none"===t)return null;var n=e.fillOpacity,r=e.x,i=e.y,o=e.width,s=e.height,l=e.ry;return a.createElement("rect",{x:r,y:i,ry:l,width:o,height:s,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function VY(e,t){var n;if(a.isValidElement(e))n=a.cloneElement(e,t);else if(qE(e))n=e(t);else{var r=t.x1,i=t.y1,o=t.x2,s=t.y2,l=t.key,c=qY(t,FY),u=MA(c,!1);u.offset;var d=qY(u,jY);n=a.createElement("line",GY({},d,{x1:r,y1:i,x2:o,y2:s,fill:"none",key:l}))}return n}function WY(e){var t=e.x,n=e.width,r=e.horizontal,i=void 0===r||r,o=e.horizontalPoints;if(!i||!o||!o.length)return null;var s=o.map(function(r,a){var o=zY(zY({},e),{},{x1:t,y1:r,x2:t+n,y2:r,key:"line-".concat(a),index:a});return VY(i,o)});return a.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function YY(e){var t=e.y,n=e.height,r=e.vertical,i=void 0===r||r,o=e.verticalPoints;if(!i||!o||!o.length)return null;var s=o.map(function(r,a){var o=zY(zY({},e),{},{x1:r,y1:t,x2:r,y2:t+n,key:"line-".concat(a),index:a});return VY(i,o)});return a.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function KY(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,o=e.width,s=e.height,l=e.horizontalPoints,c=e.horizontal;if(!(void 0===c||c)||!t||!t.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%t.length;return a.createElement("rect",{key:"react-".concat(l),y:e,x:r,height:c,width:o,stroke:"none",fill:t[d],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return a.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function XY(e){var t=e.vertical,n=void 0===t||t,r=e.verticalFill,i=e.fillOpacity,o=e.x,s=e.y,l=e.width,c=e.height,u=e.verticalPoints;if(!n||!r||!r.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,t){var n=!d[t+1]?o+l-e:d[t+1]-e;if(n<=0)return null;var u=t%r.length;return a.createElement("rect",{key:"react-".concat(t),x:e,y:s,width:n,height:c,stroke:"none",fill:r[u],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return a.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},p)}var ZY=function(e,t){var n=e.xAxis,r=e.width,a=e.height,i=e.offset;return GB(EY(zY(zY(zY({},MY.defaultProps),n),{},{ticks:qB(n,!0),viewBox:{x:0,y:0,width:r,height:a}})),i.left,i.left+i.width,t)},QY=function(e,t){var n=e.yAxis,r=e.width,a=e.height,i=e.offset;return GB(EY(zY(zY(zY({},MY.defaultProps),n),{},{ticks:qB(n,!0),viewBox:{x:0,y:0,width:r,height:a}})),i.top,i.top+i.height,t)},JY={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function eK(e){var t,n,r,i,o,s,l,c,u=TW(),d=OW(),p=b(yW),f=zY(zY({},e),{},{stroke:null!==(t=e.stroke)&&void 0!==t?t:JY.stroke,fill:null!==(n=e.fill)&&void 0!==n?n:JY.fill,horizontal:null!==(r=e.horizontal)&&void 0!==r?r:JY.horizontal,horizontalFill:null!==(i=e.horizontalFill)&&void 0!==i?i:JY.horizontalFill,vertical:null!==(o=e.vertical)&&void 0!==o?o:JY.vertical,verticalFill:null!==(s=e.verticalFill)&&void 0!==s?s:JY.verticalFill,x:iA(e.x)?e.x:p.left,y:iA(e.y)?e.y:p.top,width:iA(e.width)?e.width:p.width,height:iA(e.height)?e.height:p.height}),g=f.x,m=f.y,h=f.width,y=f.height,v=f.syncWithTicks,E=f.horizontalValues,S=f.verticalValues,w=(l=b(mW),uA(l)),A=(c=b(hW),pW(c,function(e){return EV(e.domain,Number.isFinite)})||uA(c));if(!iA(h)||h<=0||!iA(y)||y<=0||!iA(g)||g!==+g||!iA(m)||m!==+m)return null;var k=f.verticalCoordinatesGenerator||ZY,x=f.horizontalCoordinatesGenerator||QY,T=f.horizontalPoints,O=f.verticalPoints;if((!T||!T.length)&&qE(x)){var _=E&&E.length,I=x({yAxis:A?zY(zY({},A),{},{ticks:_?E:A.ticks}):void 0,width:u,height:d,offset:p},!!_||v);KA(Array.isArray(I),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(BY(I),"]")),Array.isArray(I)&&(T=I)}if((!O||!O.length)&&qE(k)){var N=S&&S.length,R=k({xAxis:w?zY(zY({},w),{},{ticks:N?S:w.ticks}):void 0,width:u,height:d,offset:p},!!N||v);KA(Array.isArray(R),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(BY(R),"]")),Array.isArray(R)&&(O=R)}return a.createElement("g",{className:"recharts-cartesian-grid"},a.createElement(HY,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),a.createElement(WY,GY({},f,{offset:p,horizontalPoints:T,xAxis:w,yAxis:A})),a.createElement(YY,GY({},f,{offset:p,verticalPoints:O,xAxis:w,yAxis:A})),a.createElement(KY,GY({},f,{horizontalPoints:T})),a.createElement(XY,GY({},f,{verticalPoints:O})))}eK.displayName="CartesianGrid";var tK=["type","layout","connectNulls","ref"],nK=["key"];function rK(e){return rK="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},rK(e)}function aK(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 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){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 sK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oK(Object(n),!0).forEach(function(t){mK(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oK(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function lK(e){return function(e){if(Array.isArray(e))return cK(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 cK(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 cK(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 cK(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 uK(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,hK(r.key),r)}}function dK(e,t,n){return t=fK(t),function(e,t){if(t&&("object"===rK(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,pK()?Reflect.construct(t,n||[],fK(e).constructor):t.apply(e,n))}function pK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(pK=function(){return!!e})()}function fK(e){return fK=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fK(e)}function gK(e,t){return gK=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gK(e,t)}function mK(e,t,n){return(t=hK(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hK(e){var t=function(e,t){if("object"!=rK(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=rK(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==rK(t)?t:t+""}var bK=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 mK(t=dK(this,e,[].concat(r)),"state",{isAnimationFinished:!0,totalLength:0}),mK(t,"generateSimpleStrokeDasharray",function(e,t){return"".concat(t,"px ").concat(e-t,"px")}),mK(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(lK(a.slice(0,u)),[s-d]);break}var p=c.length%2==0?[0,l]:[l];return[].concat(lK(e.repeat(a,o)),lK(c),p).map(function(e){return"".concat(e,"px")}).join(", ")}),mK(t,"id",lA("recharts-line-")),mK(t,"pathRef",function(e){t.mainCurve=e}),mK(t,"handleAnimationEnd",function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()}),mK(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&&gK(e,t)}(e,s),t=e,n=[{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,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.points,i=n.xAxis,o=n.yAxis,s=n.layout,l=RA(n.children,xB);if(!l)return null;var c=function(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:FB(e.payload,t)}},u={clipPath:e?"url(#clipPath-".concat(t,")"):null};return a.createElement(WA,u,l.map(function(e){return a.cloneElement(e,{key:"bar-".concat(e.props.dataKey),data:r,xAxis:i,yAxis:o,layout:s,dataPointFormatter:c})}))}},{key:"renderDots",value:function(t,n,r){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.dot,s=i.points,l=i.dataKey,c=MA(this.props,!1),u=MA(o,!0),d=s.map(function(t,n){var r=sK(sK(sK({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:t?"url(#clipPath-".concat(n?"":"dots-").concat(r,")"):null};return a.createElement(WA,iK({className:"recharts-line-dots",key:"dots"},p),d)}},{key:"renderCurveStatically",value:function(e,t,n,r){var i=this.props,o=i.type,s=i.layout,l=i.connectNulls;i.ref;var c=aK(i,tK),u=sK(sK(sK({},MA(c,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:t?"url(#clipPath-".concat(n,")"):null,points:e},r),{},{type:o,layout:s,connectNulls:l});return a.createElement(fz,iK({},u,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,t){var n=this,r=this.props,i=r.points,o=r.strokeDasharray,s=r.isAnimationActive,l=r.animationBegin,c=r.animationDuration,u=r.animationEasing,d=r.animationId,p=r.animateNewValues,f=r.width,g=r.height,m=this.state,h=m.prevPoints,b=m.totalLength;return a.createElement(pG,{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(r){var a=r.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=dA(r.x,e.x),o=dA(r.y,e.y);return sK(sK({},e),{},{x:i(a),y:o(a)})}if(p){var l=dA(2*f,e.x),c=dA(g/2,e.y);return sK(sK({},e),{},{x:l(a),y:c(a)})}return sK(sK({},e),{},{x:e.x,y:e.y})});return n.renderCurveStatically(l,e,t)}var c,u=dA(0,b)(a);if(o){var d="".concat(o).split(/[,\s]+/gim).map(function(e){return parseFloat(e)});c=n.getStrokeDasharray(u,b,d)}else c=n.generateSimpleStrokeDasharray(b,u);return n.renderCurveStatically(i,e,t,{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||!sj(o,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var e,t=this.props,n=t.hide,r=t.dot,i=t.points,o=t.className,s=t.xAxis,l=t.yAxis,c=t.top,u=t.left,d=t.width,p=t.height,f=t.isAnimationActive,g=t.id;if(n||!i||!i.length)return null;var m=this.state.isAnimationFinished,h=1===i.length,b=fE("recharts-line",o),y=s&&s.allowDataOverflow,v=l&&l.allowDataOverflow,E=y||v,S=zw(g)?this.id:g,w=null!==(e=MA(r,!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=(LA(r)?r:{}).clipDot,_=void 0===O||O,I=2*k+T;return a.createElement(WA,{className:b},y||v?a.createElement("defs",null,a.createElement("clipPath",{id:"clipPath-".concat(S)},a.createElement("rect",{x:y?u:u-d/2,y:v?c:c-p/2,width:y?d:2*d,height:v?p:2*p})),!_&&a.createElement("clipPath",{id:"clipPath-dots-".concat(S)},a.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||r)&&this.renderDots(E,_,S),(!f||m)&&VU.renderCallByParent(this.props,i))}}],r=[{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(lK(e),[0]):e,r=[],a=0;a<t;++a)r=[].concat(lK(r),lK(n));return r}},{key:"renderDotItem",value:function(e,t){var n;if(a.isValidElement(e))n=a.cloneElement(e,t);else if(qE(e))n=e(t);else{var r=t.key,i=aK(t,nK),o=fE("recharts-line-dot","boolean"!=typeof e?e.className:"");n=a.createElement(DG,iK({key:r},i,{className:o}))}return n}}],n&&uK(t.prototype,n),r&&uK(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();mK(bK,"displayName","Line"),mK(bK,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!RR,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),mK(bK,"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=FB(e,o);return"horizontal"===u?{x:JB({axis:n,ticks:a,bandSize:s,entry:e,index:t}),y:zw(l)?null:r.scale(l),value:l,payload:e}:{x:zw(l)?null:n.scale(l),y:JB({axis:r,ticks:i,bandSize:s,entry:e,index:t}),value:l,payload:e}});return sK({points:d,layout:u},c)});var yK,vK=["layout","type","stroke","connectNulls","isRange","ref"],EK=["key"];function SK(e){return SK="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},SK(e)}function wK(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 AK(){return AK=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},AK.apply(this,arguments)}function kK(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 xK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kK(Object(n),!0).forEach(function(t){RK(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kK(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}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"===SK(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"!=SK(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=SK(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==SK(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}),RK(t,"id",lA("recharts-area-")),RK(t,"handleAnimationEnd",function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),qE(e)&&e()}),RK(t,"handleAnimationStart",function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),qE(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&&NK(e,t)}(e,s),t=e,n=[{key:"renderDots",value:function(t,n,r){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=MA(this.props,!1),p=MA(l,!0),f=c.map(function(t,n){var r=xK(xK(xK({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:t?"url(#clipPath-".concat(n?"":"dots-").concat(r,")"):null};return a.createElement(WA,AK({className:"recharts-area-dots"},g),f)}},{key:"renderHorizontalRect",value:function(e){var t=this.props,n=t.baseLine,r=t.points,i=t.strokeWidth,o=r[0].x,s=r[r.length-1].x,l=e*Math.abs(o-s),c=VF(r.map(function(e){return e.y||0}));return iA(n)&&"number"==typeof n?c=Math.max(n,c):n&&Array.isArray(n)&&n.length&&(c=Math.max(VF(n.map(function(e){return e.y||0})),c)),iA(c)?a.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 t=this.props,n=t.baseLine,r=t.points,i=t.strokeWidth,o=r[0].y,s=r[r.length-1].y,l=e*Math.abs(o-s),c=VF(r.map(function(e){return e.x||0}));return iA(n)&&"number"==typeof n?c=Math.max(n,c):n&&Array.isArray(n)&&n.length&&(c=Math.max(VF(n.map(function(e){return e.x||0})),c)),iA(c)?a.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,t,n,r){var i=this.props,o=i.layout,s=i.type,l=i.stroke,c=i.connectNulls,u=i.isRange;i.ref;var d=wK(i,vK);return a.createElement(WA,{clipPath:n?"url(#clipPath-".concat(r,")"):null},a.createElement(fz,AK({},MA(d,!0),{points:e,connectNulls:c,type:s,baseLine:t,layout:o,stroke:"none",className:"recharts-area-area"})),"none"!==l&&a.createElement(fz,AK({},MA(this.props,!1),{className:"recharts-area-curve",layout:o,type:s,connectNulls:c,fill:"none",points:e})),"none"!==l&&u&&a.createElement(fz,AK({},MA(this.props,!1),{className:"recharts-area-curve",layout:o,type:s,connectNulls:c,fill:"none",points:t})))}},{key:"renderAreaWithAnimation",value:function(e,t){var n=this,r=this.props,i=r.points,o=r.baseLine,s=r.isAnimationActive,l=r.animationBegin,c=r.animationDuration,u=r.animationEasing,d=r.animationId,p=this.state,f=p.prevPoints,g=p.prevBaseLine;return a.createElement(pG,{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(r){var s=r.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=dA(r.x,e.x),i=dA(r.y,e.y);return xK(xK({},e),{},{x:a(s),y:i(s)})}return e});return l=iA(o)&&"number"==typeof o?dA(g,o)(s):zw(o)||nA(o)?dA(g,0)(s):o.map(function(e,t){var n=Math.floor(t*c);if(g[n]){var r=g[n],a=dA(r.x,e.x),i=dA(r.y,e.y);return xK(xK({},e),{},{x:a(s),y:i(s)})}return e}),n.renderAreaStatically(u,l,e,t)}return a.createElement(WA,null,a.createElement("defs",null,a.createElement("clipPath",{id:"animationClipPath-".concat(t)},n.renderClipRect(s))),a.createElement(WA,{clipPath:"url(#animationClipPath-".concat(t,")")},n.renderAreaStatically(i,o,e,t)))})}},{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||!sj(s,r)||!sj(l,a))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,a,e,t)}},{key:"render",value:function(){var e,t=this.props,n=t.hide,r=t.dot,i=t.points,o=t.className,s=t.top,l=t.left,c=t.xAxis,u=t.yAxis,d=t.width,p=t.height,f=t.isAnimationActive,g=t.id;if(n||!i||!i.length)return null;var m=this.state.isAnimationFinished,h=1===i.length,b=fE("recharts-area",o),y=c&&c.allowDataOverflow,v=u&&u.allowDataOverflow,E=y||v,S=zw(g)?this.id:g,w=null!==(e=MA(r,!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=(LA(r)?r:{}).clipDot,_=void 0===O||O,I=2*k+T;return a.createElement(WA,{className:b},y||v?a.createElement("defs",null,a.createElement("clipPath",{id:"clipPath-".concat(S)},a.createElement("rect",{x:y?l:l-d/2,y:v?s:s-p/2,width:y?d:2*d,height:v?p:2*p})),!_&&a.createElement("clipPath",{id:"clipPath-dots-".concat(S)},a.createElement("rect",{x:l-I/2,y:s-I/2,width:d+I,height:p+I}))):null,h?null:this.renderArea(E,S),(r||h)&&this.renderDots(E,_,S),(!f||m)&&VU.renderCallByParent(this.props,i))}}],r=[{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}}],n&&TK(t.prototype,n),r&&TK(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function PK(e){return PK="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},PK(e)}function LK(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,zK(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function MK(e,t,n){return t=jK(t),function(e,t){if(t&&("object"===PK(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,FK()?Reflect.construct(t,n||[],jK(e).constructor):t.apply(e,n))}function FK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(FK=function(){return!!e})()}function jK(e){return jK=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},jK(e)}function BK(e,t){return BK=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},BK(e,t)}function UK(e,t,n){return(t=zK(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zK(e){var t=function(e,t){if("object"!=PK(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=PK(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==PK(t)?t:t+""}function $K(){return $K=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},$K.apply(this,arguments)}function GK(e){var t=e.xAxisId,n=TW(),a=OW(),i=kW(t);return null==i?null:r.createElement(MY,$K({},i,{className:fE("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:a},ticksGenerator:function(e){return qB(e,!0)}}))}yK=DK,RK(DK,"displayName","Area"),RK(DK,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!RR,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),RK(DK,"getBaseValue",function(e,t,n,r){var a=e.layout,i=e.baseValue,o=t.props.baseValue,s=null!=o?o:i;if(iA(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]}),RK(DK,"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=yK.getBaseValue(n,r,a,i),b="horizontal"===g,y=!1,v=p.map(function(e,t){var n;m?n=u[d+t]:(n=FB(e,c),Array.isArray(n)?y=!0:n=[h,n]);var r=null==n[1]||m&&null==FB(e,c);return b?{x:JB({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:JB({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),xK({points:v,baseLine:t,layout:g,isRange:y},f)}),RK(DK,"renderDotItem",function(e,t){var n;if(a.isValidElement(e))n=a.cloneElement(e,t);else if(qE(e))n=e(t);else{var r=fE("recharts-area-dot","boolean"!=typeof e?e.className:""),i=t.key,o=wK(t,EK);n=a.createElement(DG,AK({},o,{key:i,className:r}))}return n});var qK=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),MK(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&&BK(e,t)}(e,r.Component),LK(e,[{key:"render",value:function(){return r.createElement(GK,this.props)}}])}();function HK(e){return HK="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},HK(e)}function VK(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,QK(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function WK(e,t,n){return t=KK(t),function(e,t){if(t&&("object"===HK(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,YK()?Reflect.construct(t,n||[],KK(e).constructor):t.apply(e,n))}function YK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(YK=function(){return!!e})()}function KK(e){return KK=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},KK(e)}function XK(e,t){return XK=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},XK(e,t)}function ZK(e,t,n){return(t=QK(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QK(e){var t=function(e,t){if("object"!=HK(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=HK(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==HK(t)?t:t+""}function JK(){return JK=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},JK.apply(this,arguments)}UK(qK,"displayName","XAxis"),UK(qK,"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 eX=function(e){var t=e.yAxisId,n=TW(),a=OW(),i=xW(t);return null==i?null:r.createElement(MY,JK({},i,{className:fE("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:a},ticksGenerator:function(e){return qB(e,!0)}}))},tX=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),WK(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&&XK(e,t)}(e,r.Component),VK(e,[{key:"render",value:function(){return r.createElement(eX,this.props)}}])}();function nX(e){return function(e){if(Array.isArray(e))return rX(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 rX(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 rX(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 rX(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}ZK(tX,"displayName","YAxis"),ZK(tX,"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 aX=function(e,t,n,r,a){var i=RA(e,$W),o=RA(e,eY),s=[].concat(nX(i),nX(o)),l=RA(e,pY),c="".concat(r,"Id"),u=r[0],d=t;if(s.length&&(d=s.reduce(function(e,t){if(t.props[c]===n&&iV(t.props,"extendDomain")&&iA(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&&iV(t.props,"extendDomain")&&iA(t.props[p])&&iA(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 iA(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e},d)),d},iX={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}(iX);var oX=new(0,iX.exports),sX="recharts.syncMouseEvents";function lX(e){return lX="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},lX(e)}function cX(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,dX(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function uX(e,t,n){return(t=dX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dX(e){var t=function(e,t){if("object"!=lX(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=lX(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==lX(t)?t:t+""}var pX=function(){return cX(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),uX(this,"activeIndex",0),uX(this,"coordinateList",[]),uX(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 fX(e){var t=e.cx,n=e.cy,r=e.radius,a=e.startAngle,i=e.endAngle;return{points:[hU(t,n,r,a),hU(t,n,r,i)],cx:t,cy:n,radius:r,startAngle:a,endAngle:i}}function gX(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 fX(t);var s=t.cx,l=t.cy,c=t.innerRadius,u=t.outerRadius,d=t.angle,p=hU(s,l,c,d),f=hU(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 mX(e){return mX="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},mX(e)}function hX(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 bX(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hX(Object(n),!0).forEach(function(t){yX(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hX(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yX(e,t,n){var r;return r=function(e,t){if("object"!=mX(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=mX(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==mX(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vX(e){var t,n,r,a=e.element,o=e.tooltipEventType,s=e.isActive,l=e.activeCoordinate,c=e.activePayload,u=e.offset,d=e.activeTooltipIndex,p=e.tooltipAxisBandSize,f=e.layout,g=e.chartName,b=null!==(t=a.props.cursor)&&void 0!==t?t:null===(n=a.type.defaultProps)||void 0===n?void 0:n.cursor;if(!a||!b||!s||!l||"ScatterChart"!==g&&"axis"!==o)return null;var y=fz;if("ScatterChart"===g)r=l,y=zG;else if("BarChart"===g)r=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}}(f,l,u,p),y=AG;else if("radial"===f){var v=fX(l),E=v.cx,S=v.cy,w=v.radius;r={cx:E,cy:S,startAngle:v.startAngle,endAngle:v.endAngle,innerRadius:w,outerRadius:w},y=tz}else r={points:gX(f,l,u)},y=fz;var A=bX(bX(bX(bX({stroke:"#ccc",pointerEvents:"none"},u),r),MA(b,!1)),{},{payload:c,payloadIndex:d,className:fE("recharts-tooltip-cursor",b.className)});return i(b)?m(b,A):h(y,A)}var EX=["item"],SX=["children","className","width","height","style","compact","title","desc"];function wX(e){return wX="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},wX(e)}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 kX(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)||CX(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 xX(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 TX(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,FX(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function OX(e,t,n){return t=IX(t),function(e,t){if(t&&("object"===wX(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,_X()?Reflect.construct(t,n||[],IX(e).constructor):t.apply(e,n))}function _X(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_X=function(){return!!e})()}function IX(e){return IX=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},IX(e)}function NX(e,t){return NX=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},NX(e,t)}function RX(e){return function(e){if(Array.isArray(e))return DX(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||CX(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 CX(e,t){if(e){if("string"==typeof e)return DX(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)?DX(e,t):void 0}}function DX(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 PX(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 LX(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PX(Object(n),!0).forEach(function(t){MX(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PX(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function MX(e,t,n){return(t=FX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FX(e){var t=function(e,t){if("object"!=wX(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=wX(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==wX(t)?t:t+""}var jX={xAxis:["bottom","top"],yAxis:["left","right"]},BX={width:"100%",height:"100%"},UX={x:0,y:0};function zX(e){return e}var $X=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(RX(e),RX(n)):e},[]);return i.length>0?i:e&&e.length&&iA(r)&&iA(a)?e.slice(r,a+1):[]};function GX(e){return"number"===e?[0,"auto"]:void 0}var qX=function(e,t,n,r){var a=e.graphicalItems,i=e.tooltipAxis,o=$X(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=pA(void 0===u?o:u,i.dataKey,r):c=u&&u[n]||o[n];return c?[].concat(RX(a),[sU(s,c)]):a},[])},HX=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(rA(u-c)!==rA(d-u)){var f=[];if(rA(d-u)===rA(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=qX(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 LX(LX(LX({},r),hU(r.cx,r.cy,o,i)),{},{angle:i,radius:o})}var s=a.coordinate,l=r.angle;return LX(LX(LX({},r),hU(r.cx,r.cy,s,l)),{},{angle:l,radius:s})}return UX}(n,o,c,a);return{activeTooltipIndex:c,activeLabel:u,activePayload:d,activeCoordinate:p}}return null},VX=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=$B(c,a);return n.reduce(function(t,n){var f,g=void 0!==n.type.defaultProps?LX(LX({},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=$X(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&&iA(r)&&iA(a))return!0}return!1})(g.domain,b,m)&&(A=aU(g.domain,null,b),!p||"number"!==m&&"auto"===v||(x=jB(T,h,"category")));var _=GX(m);if(!A||0===A.length){var I,N=null!==(I=g.domain)&&void 0!==I?I:_;if(h){if(A=jB(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=CH(0,O)):y||(A=oU(N,A,n).reduce(function(e,t){return e.indexOf(t)>=0?e:[].concat(RX(e),[t])},[]))}else if("category"===m)A=y?A.filter(function(e){return""!==e&&!zw(e)}):oU(N,A,n).reduce(function(e,t){return e.indexOf(t)>=0||""===t||zw(t)?e:[].concat(RX(e),[t])},[]);else if("number"===m){var C=function(e,t,n,r,a){var i=t.map(function(t){return UB(e,t,n,a,r)}).filter(function(e){return!zw(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=jB(T,h,"category"))}else A=p?CH(0,O):o&&o[w]&&o[w].hasStack&&"number"===m?"expand"===d?[0,1]:tU(o[w].stackGroups,s,l):zB(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=aX(u,A,w,a,E),N&&(A=aU(N,A,b));else if("category"===m&&N){var D=N;A.every(function(e){return D.indexOf(e)>=0})&&(A=D)}}return LX(LX({},t),{},MX({},w,LX(LX({},g),{},{axisType:a,domain:A,categoricalDomain:x,duplicateDomain:k,originalDomain:null!==(f=g.domain)&&void 0!==f?f:_,isCategorical:p,layout:c})))},{})},WX=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=RA(c,a),p={};return d&&d.length?p=VX(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=$X(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:l}),p=d.length,f=$B(c,a),g=-1;return n.reduce(function(e,t){var m,h=(void 0!==t.type.defaultProps?LX(LX({},t.type.defaultProps),t.props):t.props)[i],b=GX("number");return e[h]?e:(g++,f?m=CH(0,p):o&&o[h]&&o[h].hasStack?(m=tU(o[h].stackGroups,s,l),m=aX(u,m,h,a)):(m=aU(b,zB(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=aX(u,m,h,a)),LX(LX({},e),{},MX({},h,LX(LX({axisType:a},r.defaultProps),{},{hide:!0,orientation:Uw(jX,"".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},YX=function(e){var t=e.children,n=e.defaultShowTooltip,r=CA(t,XH),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)}},KX=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"}},XX=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=CA(c,XH),p=CA(c,aN),f=Object.keys(o).reduce(function(e,t){var n=o[t],r=n.orientation;return n.mirror||n.hide?e:LX(LX({},e),{},MX({},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:LX(LX({},e),{},MX({},r,Uw(e,"".concat(r))+n.height))},{top:u.top||0,bottom:u.bottom||0}),m=LX(LX({},g),f),h=m.bottom;d&&(m.bottom+=d.props.height||XH.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=NB({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&&iA(e[p]))return LB(LB({},e),{},MB({},p,e[p]+(u||0)));if(("horizontal"===g||"vertical"===g&&"center"===p)&&"middle"!==f&&iA(e[f]))return LB(LB({},e),{},MB({},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 LX(LX({brushBottom:h},m),{},{width:Math.max(b,0),height:Math.max(y,0)})},ZX=function(e,t){return"xAxis"===t?e[t].width:"yAxis"===t?e[t].height:void 0},QX=function(e){var t=e.chartName,n=e.GraphicalChild,r=e.defaultTooltipEventType,o=void 0===r?"axis":r,s=e.validateTooltipEventTypes,c=void 0===s?["axis"]:s,u=e.axisComponents,d=e.legendContent,p=e.formatAxisMap,f=e.defaultProps,g=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=KX(c),m=g.numericAxisName,h=g.cateAxisName,b=function(e){return!(!e||!e.length)&&e.some(function(e){var t=OA(e&&e.type);return t&&t.indexOf("Bar")>=0})}(n),y=[];return n.forEach(function(n,g){var v=$X(e.data,{graphicalItems:[n],dataStartIndex:o,dataEndIndex:s}),E=void 0!==n.type.defaultProps?LX(LX({},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?dB(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:"")):dB());var l=o[s];return LX(LX({},e),{},MX(MX({},r.axisType,l),"".concat(r.axisType,"Ticks"),qB(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?LB(LB({},e.type.defaultProps),e.props):e.props).stackId;if(oA(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=OA(n.type).indexOf("Bar")>=0,N=iU(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 OA(e.type).indexOf("Bar")>=0});if(h&&h.length){var b=h[0].type.defaultProps,y=void 0!==b?LB(LB({},b),h[0].props):h[0].props,v=y.barSize,E=y[m];i[E]||(i[E]=[]);var S=zw(v)?t:v;i[E].push({item:h[0],stackList:h.slice(1),barSize:zw(S)?void 0:cA(S,n,0)})}}return i}({barSize:l,stackGroups:r,totalSize:ZX(x,h)});if(I){var D,P,L=zw(w)?f:w,M=null!==(D=null!==(P=iU(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=cA(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(CB(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=cA(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(CB(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 LX(LX({},e),{},{position:LX(LX({},e.position),{},{offset:e.position.offset-M/2})})}))}var F,j,B=n&&n.type&&n.type.getComposedData;B&&y.push({props:LX(LX({},B(LX(LX({},x),{},{displayedData:v,props:e,dataKey:S,item:n,bandSize:N,barPosition:R,offset:a,stackedData:_,layout:c,dataStartIndex:o,dataEndIndex:s}))),{},MX(MX(MX({key:n.key||"item-".concat(g)},m,x[m]),h,x[h]),"animationId",i)),childIndex:(F=n,j=e.children,NA(j).indexOf(F)),item:n})}),y},h=function(e,r){var a=e.props,i=e.dataStartIndex,o=e.dataEndIndex,s=e.updateId;if(!DA({props:a}))return null;var l=a.children,c=a.layout,d=a.stackOffset,f=a.data,m=a.reverseStackOrder,h=KX(c),b=h.numericAxisName,y=h.cateAxisName,v=RA(l,n),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?LB(LB({},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(oA(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[lA("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return LB(LB({},e),{},MB({},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 LB(LB({},t),{},MB({},i,{numericAxisId:n,cateAxisId:r,items:o.items,stackedData:ZB(e,o.items,a)}))},{})),LB(LB({},t),{},MB({},i,s))},{})}(f,v,"".concat(b,"Id"),"".concat(y,"Id"),d,m),S=u.reduce(function(e,t){var n="".concat(t.axisType,"Map");return LX(LX({},e),{},MX({},n,WX(a,LX(LX({},t),{},{graphicalItems:v,stackGroups:t.axisType===b&&E,dataStartIndex:i,dataEndIndex:o}))))},{}),w=XX(LX(LX({},S),{},{props:a,graphicalItems:v}),null==r?void 0:r.legendBBox);Object.keys(S).forEach(function(e){S[e]=p(a,S[e],w,e.replace("Map",""),t)});var A,k,x=S["".concat(y,"Map")],T=(A=uA(x),{tooltipTicks:k=qB(A,!1,!0),orderedTooltipTicks:aR(k,function(e){return e.coordinate}),tooltipAxis:A,tooltipAxisBandSize:iU(A,k)}),O=g(a,LX(LX({},S),{},{dataStartIndex:i,dataEndIndex:o,updateId:s,graphicalItems:v,stackGroups:E,offset:w}));return LX(LX({formattedGraphicalItems:O,graphicalItems:v,offset:w,stackGroups:E},T),S)},b=function(){function e(n){var r,i,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),MX(o=OX(this,e,[n]),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),MX(o,"accessibilityManager",new pX),MX(o,"handleLegendBBoxUpdate",function(e){if(e){var t=o.state,n=t.dataStartIndex,r=t.dataEndIndex,a=t.updateId;o.setState(LX({legendBBox:e},h({props:o.props,dataStartIndex:n,dataEndIndex:r,updateId:a},LX(LX({},o.state),{},{legendBBox:e}))))}}),MX(o,"handleReceiveSyncEvent",function(e,t,n){if(o.props.syncId===e){if(n===o.eventEmitterSymbol&&"function"!=typeof o.props.syncMethod)return;o.applySyncEvent(t)}}),MX(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 LX({dataStartIndex:t,dataEndIndex:n},h({props:o.props,dataStartIndex:t,dataEndIndex:n,updateId:r},o.state))}),o.triggerSyncEvent({dataStartIndex:t,dataEndIndex:n})}}),MX(o,"handleMouseEnter",function(e){var t=o.getMouseInfo(e);if(t){var n=LX(LX({},t),{},{isTooltipActive:!0});o.setState(n),o.triggerSyncEvent(n);var r=o.props.onMouseEnter;qE(r)&&r(n,e)}}),MX(o,"triggeredAfterMouseMove",function(e){var t=o.getMouseInfo(e),n=t?LX(LX({},t),{},{isTooltipActive:!0}):{isTooltipActive:!1};o.setState(n),o.triggerSyncEvent(n);var r=o.props.onMouseMove;qE(r)&&r(n,e)}),MX(o,"handleItemMouseEnter",function(e){o.setState(function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}})}),MX(o,"handleItemMouseLeave",function(){o.setState(function(){return{isTooltipActive:!1}})}),MX(o,"handleMouseMove",function(e){e.persist(),o.throttleTriggeredAfterMouseMove(e)}),MX(o,"handleMouseLeave",function(e){o.throttleTriggeredAfterMouseMove.cancel();var t={isTooltipActive:!1};o.setState(t),o.triggerSyncEvent(t);var n=o.props.onMouseLeave;qE(n)&&n(t,e)}),MX(o,"handleOuterEvent",function(e){var t,n=function(e){var t=e&&e.type;return t&&TA[t]?TA[t]:null}(e),r=Uw(o.props,"".concat(n));n&&qE(r)&&r(null!==(t=/.*touch.*/i.test(n)?o.getMouseInfo(e.changedTouches[0]):o.getMouseInfo(e))&&void 0!==t?t:{},e)}),MX(o,"handleClick",function(e){var t=o.getMouseInfo(e);if(t){var n=LX(LX({},t),{},{isTooltipActive:!0});o.setState(n),o.triggerSyncEvent(n);var r=o.props.onClick;qE(r)&&r(n,e)}}),MX(o,"handleMouseDown",function(e){var t=o.props.onMouseDown;qE(t)&&t(o.getMouseInfo(e),e)}),MX(o,"handleMouseUp",function(e){var t=o.props.onMouseUp;qE(t)&&t(o.getMouseInfo(e),e)}),MX(o,"handleTouchMove",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&o.throttleTriggeredAfterMouseMove(e.changedTouches[0])}),MX(o,"handleTouchStart",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&o.handleMouseDown(e.changedTouches[0])}),MX(o,"handleTouchEnd",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&o.handleMouseUp(e.changedTouches[0])}),MX(o,"handleDoubleClick",function(e){var t=o.props.onDoubleClick;qE(t)&&t(o.getMouseInfo(e),e)}),MX(o,"handleContextMenu",function(e){var t=o.props.onContextMenu;qE(t)&&t(o.getMouseInfo(e),e)}),MX(o,"triggerSyncEvent",function(e){void 0!==o.props.syncId&&oX.emit(sX,o.props.syncId,e,o.eventEmitterSymbol)}),MX(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(LX({dataStartIndex:i,dataEndIndex:s},h({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=LX(LX({},p),{},{x:p.left,y:p.top}),b=Math.min(l,m.x+m.width),y=Math.min(c,m.y+m.height),v=f[u]&&f[u].value,E=qX(o.state,o.props.data,u),S=f[u]?{x:"horizontal"===n?f[u].coordinate:b,y:"horizontal"===n?y:f[u].coordinate}:UX;o.setState(LX(LX({},e),{},{activeLabel:v,activeCoordinate:S,activePayload:E,activeTooltipIndex:u}))}else o.setState(e)}),MX(o,"renderCursor",function(e){var n,r=o.state,i=r.isTooltipActive,s=r.activeCoordinate,l=r.activePayload,c=r.offset,u=r.activeTooltipIndex,d=r.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 a.createElement(vX,{key:m,activeCoordinate:s,activePayload:l,activeTooltipIndex:u,chartName:t,element:e,isActive:f,layout:g,offset:c,tooltipAxisBandSize:d,tooltipEventType:p})}),MX(o,"renderPolarAxis",function(e,t,n){var r=Uw(e,"type.axisType"),a=Uw(o.state,"".concat(r,"Map")),i=e.type.defaultProps,s=void 0!==i?LX(LX({},i),e.props):e.props,l=a&&a[s["".concat(r,"Id")]];return m(e,LX(LX({},l),{},{className:fE(r,l.className),key:e.key||"".concat(t,"-").concat(n),ticks:qB(l,!0)}))}),MX(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=uA(s),u=uA(l),d=u.cx,p=u.cy,f=u.innerRadius,g=u.outerRadius;return m(e,{polarAngles:Array.isArray(r)?r:qB(u,!0).map(function(e){return e.coordinate}),polarRadius:Array.isArray(a)?a:qB(c,!0).map(function(e){return e.coordinate}),cx:d,cy:p,innerRadius:f,outerRadius:g,key:e.key||"polar-grid",radialLines:n})}),MX(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=NB({children:n,formattedGraphicalItems:e,legendWidth:s,legendContent:d});if(!l)return null;var c=l.item,u=xX(l,EX);return m(c,LX(LX({},u),{},{chartWidth:r,chartHeight:a,margin:i,onBBoxUpdate:o.handleLegendBBoxUpdate}))}),MX(o,"renderTooltip",function(){var e,t=o.props,n=t.children,r=t.accessibilityLayer,a=CA(n,GR);if(!a)return null;var i=o.state,s=i.isTooltipActive,l=i.activeCoordinate,c=i.activePayload,u=i.activeLabel,d=i.offset,p=null!==(e=a.props.active)&&void 0!==e?e:s;return m(a,{viewBox:LX(LX({},d),{},{x:d.left,y:d.top}),active:p,label:u,payload:p?c:[],coordinate:l,accessibilityLayer:r})}),MX(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 m(e,{key:e.key||"_recharts-brush",onChange:VB(o.handleBrushChange,e.props.onChange),data:r,x:iA(e.props.x)?e.props.x:i.left,y:iA(e.props.y)?e.props.y:i.top+i.height+i.brushBottom-(n.bottom||0),width:iA(e.props.width)?e.props.width:i.width,startIndex:s,endIndex:l,updateId:"brush-".concat(c)})}),MX(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,p=void 0===d?c.xAxisId:d,f=u.yAxisId,g=void 0===f?c.yAxisId:f;return m(e,{key:e.key||"".concat(t,"-").concat(n),xAxis:i[p],yAxis:s[g],viewBox:{x:l.left,y:l.top,width:l.width,height:l.height},clipPathId:r})}),MX(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?LX(LX({},n.item.type.defaultProps),n.item.props):n.item.props,u=c.activeDot,d=LX(LX({index:i,dataKey:c.dataKey,cx:r.x,cy:r.y,r:4,fill:BB(n.item),strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value},MA(u,!1)),EA(u));return s.push(e.renderActiveDot(u,d,"".concat(l,"-activePoint-").concat(i))),a?s.push(e.renderActiveDot(u,LX(LX({},d),{},{cx:a.x,cy:a.y}),"".concat(l,"-basePoint-").concat(i))):o&&s.push(null),s}),MX(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=CA(o.props.children,GR),p=r.props,f=p.points,g=p.isRange,h=p.baseLine,b=void 0!==r.item.type.defaultProps?LX(LX({},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:VB(o.handleItemMouseEnter,e.props.onClick)}:"axis"!==a&&(A={onMouseLeave:VB(o.handleItemMouseLeave,e.props.onMouseLeave),onMouseEnter:VB(o.handleItemMouseEnter,e.props.onMouseEnter)});var k=m(e,LX(LX({},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=LX(LX(LX({},r.props),A),{},{activeIndex:I});return[m(_,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=pA(f,D,u),C=g&&h&&pA(h,D,u)}else R=null==f?void 0:f[c],C=g&&h&&h[c];if(S||E){var P=void 0!==e.props.activeIndex?e.props.activeIndex:c;return[m(e,LX(LX(LX({},r.props),A),{},{activeIndex:P})),null,null]}if(!zw(R))return[k].concat(RX(o.renderActivePoints({item:r,activePoint:R,basePoint:C,childIndex:c,isRange:g})))}return g?[k,null,null]:[k,null]}),MX(o,"renderCustomized",function(e,t,n){return m(e,LX(LX({key:"recharts-customized-".concat(n)},o.props),o.state))}),MX(o,"renderMap",{CartesianGrid:{handler:zX,once:!0},ReferenceArea:{handler:o.renderReferenceElement},ReferenceLine:{handler:zX},ReferenceDot:{handler:o.renderReferenceElement},XAxis:{handler:zX},YAxis:{handler:zX},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!==(r=n.id)&&void 0!==r?r:lA("recharts"),"-clip"),o.throttleTriggeredAfterMouseMove=pC(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&&NX(e,t)}(e,v),TX(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=CA(t,GR);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=qX(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=LX(LX({},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){FA([CA(e.children,GR)],[CA(this.props.children,GR)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=CA(this.props.children,GR);if(e&&"boolean"==typeof e.props.shared){var t=e.props.shared?"axis":"item";return c.indexOf(t)>=0?t:o}return o}},{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=HX(this.state,this.props.data,this.props.layout,o);if("axis"!==u&&l&&c){var p=uA(l).scale,f=uA(c).scale,g=p&&p.invert?p.invert(a.chartX):null,m=f&&f.invert?f.invert(a.chartY):null;return LX(LX({},a),{},{xValue:g,yValue:m},d)}return d?LX(LX({},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=uA(l);return EU({x:a,y:i},u)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=CA(e,GR),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}),LX(LX({},EA(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){oX.on(sX,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){oX.removeListener(sX,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===OA(o.item.type)&&n===o.childIndex)return o}return null}},{key:"renderClipPath",value:function(){var e=this.clipPathId,t=this.state.offset,n=t.left,r=t.top,i=t.height,o=t.width;return a.createElement("defs",null,a.createElement("clipPath",{id:e},a.createElement("rect",{x:n,y:r,height:i,width:o})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce(function(e,t){var n=kX(t,2),r=n[0],a=n[1];return LX(LX({},e),{},MX({},r,a.scale))},{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce(function(e,t){var n=kX(t,2),r=n[0],a=n[1];return LX(LX({},e),{},MX({},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?LX(LX({},l.type.defaultProps),l.props):l.props,u=OA(l.type);if("Bar"===u){var d=(s.data||[]).find(function(t){return SG(e,t)});if(d)return{graphicalItem:o,payload:d}}else if("RadialBar"===u){var p=(s.data||[]).find(function(t){return EU(e,t)});if(p)return{graphicalItem:o,payload:p}}else if(aH(o,r)||iH(o,r)||oH(o,r)){var f=uH({graphicalItem:o,activeTooltipItem:r,itemData:c.data}),g=void 0===c.activeIndex?f:c.activeIndex;return{graphicalItem:LX(LX({},o),{},{childIndex:g}),payload:oH(o,r)?c.data[f]:o.props.data[f]}}}return null}},{key:"render",value:function(){var e=this;if(!DA(this))return null;var t,n,r=this.props,i=r.children,o=r.className,s=r.width,l=r.height,c=r.style,u=r.compact,d=r.title,p=r.desc,f=xX(r,SX),g=MA(f,!1);if(u)return a.createElement(wW,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},a.createElement(GA,AX({},g,{width:s,height:l,title:d,desc:p}),this.renderClipPath(),BA(i,this.renderMap)));this.props.accessibilityLayer&&(g.tabIndex=null!==(t=this.props.tabIndex)&&void 0!==t?t:0,g.role=null!==(n=this.props.role)&&void 0!==n?n:"application",g.onKeyDown=function(t){e.accessibilityManager.keyboardEvent(t)},g.onFocus=function(){e.accessibilityManager.focus()});var m=this.parseEventsOfWrapper();return a.createElement(wW,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},a.createElement("div",AX({className:fE("recharts-wrapper",o),style:LX({position:"relative",cursor:"default",width:s,height:l},c)},m,{ref:function(t){e.container=t}}),a.createElement(GA,AX({},g,{width:s,height:l,title:d,desc:p,style:BX}),this.renderClipPath(),BA(i,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}();MX(b,"displayName",t),MX(b,"defaultProps",LX({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),MX(b,"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=YX(e);return LX(LX(LX({},p),{},{updateId:0},h(LX(LX({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||!gA(c,t.prevMargin)){var f=YX(e),g={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},m=LX(LX({},HX(t,r,s)),{},{updateId:t.updateId+1}),b=LX(LX(LX({},f),g),m);return LX(LX(LX({},b),h(LX({props:e},b),t)),{},{prevDataKey:n,prevData:r,prevWidth:i,prevHeight:o,prevLayout:s,prevStackOffset:l,prevMargin:c,prevChildren:a})}if(!FA(a,t.prevChildren)){var y,v,E,S,w=CA(a,XH),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=!zw(r)&&!x?t.updateId:t.updateId+1;return LX(LX({updateId:T},h(LX(LX({props:e},t),{},{updateId:T,dataStartIndex:A,dataEndIndex:k}),t)),{},{prevChildren:a,dataStartIndex:A,dataEndIndex:k})}return null}),MX(b,"renderActiveDot",function(e,t,n){var r;return r=i(e)?m(e,t):qE(e)?e(t):a.createElement(DG,t),a.createElement(WA,{className:"recharts-active-dot",key:n},r)});var y=l(function(e,t){return a.createElement(b,AX({},e,{ref:t}))});return y.displayName=b.displayName,y},JX=QX({chartName:"LineChart",GraphicalChild:bK,axisComponents:[{axisType:"xAxis",AxisComp:qK},{axisType:"yAxis",AxisComp:tX}],formatAxisMap:QV}),eZ=QX({chartName:"BarChart",GraphicalChild:HV,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:qK},{axisType:"yAxis",AxisComp:tX}],formatAxisMap:QV}),tZ=QX({chartName:"PieChart",GraphicalChild:wH,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:kq},{axisType:"radiusAxis",AxisComp:uq}],formatAxisMap:function(e,t,n,r,a){var i=e.width,o=e.height,s=e.startAngle,l=e.endAngle,c=cA(e.cx,i,i/2),u=cA(e.cy,o,o/2),d=bU(i,o,n),p=cA(e.innerRadius,d,0),f=cA(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(zw(o.range))"angleAxis"===r?i=[s,l]:"radiusAxis"===r&&(i=[p,f]),g&&(i=[i[1],i[0]]);else{var m=pU(i=o.range,2);s=m[0],l=m[1]}var h=WB(o,a),b=h.realScaleType,y=h.scale;y.domain(d).range(i),KB(y);var v=QB(y,uU(uU({},o),{},{realScaleType:b})),E=uU(uU(uU({},o),v),{},{range:i,radius:f,realScaleType:b,scale:y,cx:c,cy:u,innerRadius:p,outerRadius:f,startAngle:s,endAngle:l});return uU(uU({},e),{},dU({},n,E))},{})},defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),nZ=QX({chartName:"AreaChart",GraphicalChild:DK,axisComponents:[{axisType:"xAxis",AxisComp:qK},{axisType:"yAxis",AxisComp:tX}],formatAxisMap:QV});function rZ(e){return e>=1e6?"".concat((e/1e6).toFixed(1),"M"):e>=1e3?"".concat((e/1e3).toFixed(1),"k"):String(e)}const aZ=/(^|[_\W])(price|salary|cost|amount|revenue|expense|total|value|budget|spend|income|sale|balance)/i;function iZ(e){return"string"==typeof e&&aZ.test(e)}function oZ(e){return"$".concat(rZ(e))}function sZ(e){return"$".concat(Number(e).toLocaleString("en-US",{maximumFractionDigits:2}))}function lZ(e){let{props:t,isDark:n=!1}=e;const r=Array.isArray(t.data)?t.data:[],a=iZ(t.yKey),i=t.valueLabel||void 0,o=n?"#374151":"#e2e8f0",s=n?"#1f2937":"#ffffff",l=n?"#9ca3af":"#64748b",c=n?"#f3f4f6":"#0f172a",u=n?"#374151":"#e2e8f0",d=n?"#111827":"#ffffff";if(0===r.length)return E("div",{style:{borderRadius:8,border:"1px solid ".concat(o),background:s,padding:12,margin:"8px 0"},children:[t.title&&S("div",{style:{fontSize:13,fontWeight:600,color:c,marginBottom:8},children:t.title}),S("div",{style:{color:l,fontSize:12},children:"No chartable data"})]});const p=r.some(e=>{var t;return String(null!==(t=e.label)&&void 0!==t?t:"").length>10}),f=p?-35:0,g=p?"end":"middle",m=p?48:20,h=p?250:220;return E("div",{style:{borderRadius:8,border:"1px solid ".concat(o),background:s,padding:12,margin:"8px 0"},children:[t.title&&S("h3",{style:{fontSize:13,fontWeight:600,color:c,marginBottom:8,marginTop:0},children:t.title}),S("div",{style:{height:h,width:"100%"},children:S(vC,{width:"100%",height:"100%",children:E(eZ,{data:r,margin:{top:16,right:12,left:12,bottom:m},children:[S(eK,{strokeDasharray:"3 3",stroke:u}),S(qK,{dataKey:"label",tick:{fontSize:11,fill:l},angle:f,textAnchor:g,interval:0,tickFormatter:e=>String(null!=e?e:"").replace(/[_\-]+/g," ").replace(/\b\w/g,e=>e.toUpperCase()),label:t.xAxisLabel?{value:t.xAxisLabel,position:"insideBottom",offset:-12,fontSize:11,fill:l}:void 0}),S(tX,{width:72,tick:{fontSize:11,fill:l},label:t.yAxisLabel?{value:t.yAxisLabel,angle:-90,position:"insideLeft",fontSize:11,fill:l}:void 0,tickFormatter:e=>a?oZ(e):t.unit?"".concat(rZ(e)," ").concat(t.unit):rZ(e)}),S(GR,{formatter:e=>a?sZ(e):t.unit?"".concat(Number(e).toLocaleString()," ").concat(t.unit):Number(e).toLocaleString(),contentStyle:{background:d,border:"1px solid ".concat(o),borderRadius:6,fontSize:12,color:c}}),S(HV,{dataKey:"value",name:i,fill:"#3b82f6",radius:[2,2,0,0],label:{position:"top",fill:l,fontSize:10,formatter:e=>a?oZ(e):rZ(e)}})]})})})]})}function cZ(e){let{props:t,isDark:n=!1}=e;const r=t.trend,a="up"===r?"#059669":"down"===r?"#e11d48":"#64748b",i="up"===r?"↑":"down"===r?"↓":"flat"===r?"→":null,o=n?"#1f2937":"#ffffff",s=n?"#f3f4f6":"#0f172a";return E("div",{style:{borderRadius:8,border:"1px solid ".concat(n?"#374151":"#e2e8f0"),background:o,padding:12,margin:"8px 0"},children:[S("p",{style:{fontSize:11,fontWeight:500,color:"#64748b",textTransform:"uppercase",letterSpacing:"0.05em",margin:0},children:t.label}),S("p",{style:{marginTop:4,fontSize:28,fontWeight:700,color:s,lineHeight:1.1,marginBottom:0},children:t.value}),t.change&&E("p",{style:{marginTop:4,fontSize:12,color:a,marginBottom:0},children:[i&&S("span",{style:{marginRight:4},children:i}),t.change]})]})}const uZ=["#3b82f6","#10b981","#f59e0b","#ef4444","#8b5cf6","#ec4899","#14b8a6","#f97316","#6366f1","#84cc16","#06b6d4","#a855f7"];function dZ(e){let{props:t,isDark:n=!1,donut:r=!1}=e;const a=Array.isArray(t.data)?t.data:[],i=iZ(t.yKey),o=n?"#374151":"#e2e8f0",s=n?"#1f2937":"#ffffff",l=n?"#f3f4f6":"#0f172a",c=n?"#111827":"#ffffff",u=n?"#9ca3af":"#64748b",d=a.map(e=>({name:e.label,value:e.value}));return E("div",{style:{borderRadius:8,border:"1px solid ".concat(o),background:s,padding:12,margin:"8px 0"},children:[t.title&&S("h3",{style:{fontSize:13,fontWeight:600,color:l,marginBottom:8,marginTop:0},children:t.title}),S("div",{style:{height:260,width:"100%"},children:S(vC,{width:"100%",height:"100%",children:E(tZ,{children:[S(wH,{data:d,dataKey:"value",nameKey:"name",cx:"50%",cy:"50%",outerRadius:85,innerRadius:r?48:0,paddingAngle:2,children:d.map((e,t)=>S(EC,{fill:uZ[t%uZ.length]},t))}),S(GR,{formatter:e=>i?sZ(e):Number(e).toLocaleString(),contentStyle:{background:c,border:"1px solid ".concat(o),borderRadius:6,fontSize:12,color:l}}),S(aN,{iconSize:10,iconType:"circle",wrapperStyle:{fontSize:11,color:u}})]})})})]})}function pZ(e){let{props:t,isDark:n=!1,area:r=!1}=e;const a=Array.isArray(t.data)?t.data:[],i=iZ(t.yKey),o=t.valueLabel||void 0,s=n?"#374151":"#e2e8f0",l=n?"#1f2937":"#ffffff",c=n?"#9ca3af":"#64748b",u=n?"#f3f4f6":"#0f172a",d=n?"#374151":"#e2e8f0",p=n?"#111827":"#ffffff";if(0===a.length)return E("div",{style:{borderRadius:8,border:"1px solid ".concat(s),background:l,padding:12,margin:"8px 0"},children:[t.title&&S("div",{style:{fontSize:13,fontWeight:600,color:u,marginBottom:8},children:t.title}),S("div",{style:{color:c,fontSize:12},children:"No chartable data"})]});const f=r?nZ:JX;return E("div",{style:{borderRadius:8,border:"1px solid ".concat(s),background:l,padding:12,margin:"8px 0"},children:[t.title&&S("h3",{style:{fontSize:13,fontWeight:600,color:u,marginBottom:8,marginTop:0},children:t.title}),S("div",{style:{height:220,width:"100%"},children:S(vC,{width:"100%",height:"100%",children:E(f,{data:a,margin:{top:8,right:12,left:12,bottom:20},children:[S(eK,{strokeDasharray:"3 3",stroke:d}),S(qK,{dataKey:"label",tick:{fontSize:11,fill:c},angle:0,textAnchor:"middle",interval:0,label:t.xAxisLabel?{value:t.xAxisLabel,position:"insideBottom",offset:-12,fontSize:11,fill:c}:void 0}),S(tX,{width:72,tick:{fontSize:11,fill:c},tickFormatter:e=>i?oZ(e):t.unit?"".concat(rZ(e)," ").concat(t.unit):rZ(e)}),S(GR,{formatter:e=>i?sZ(e):t.unit?"".concat(Number(e).toLocaleString()," ").concat(t.unit):Number(e).toLocaleString(),contentStyle:{background:p,border:"1px solid ".concat(s),borderRadius:6,fontSize:12,color:u}}),r?S(DK,{type:"monotone",dataKey:"value",name:o,stroke:"#3b82f6",fill:"#3b82f6",fillOpacity:.15,strokeWidth:2,dot:{r:3,fill:"#3b82f6"}}):S(bK,{type:"monotone",dataKey:"value",name:o,stroke:"#3b82f6",strokeWidth:2,dot:{r:3,fill:"#3b82f6"},activeDot:{r:5}})]})})})]})}const fZ=/\b(?:field|fields|column|columns|table|tables|sql|summed?|aggregat\w*|averaged?|counted)\b/i,gZ=/[A-Za-z_]\w*\.[A-Za-z_]\w*/;function mZ(e){if("string"!=typeof e)return"";let t,n=e.trim();do{t=n,n=n.replace(/\s*\(([^()]*)\)\s*$/,(e,t)=>fZ.test(t)||gZ.test(t)?"":e).trim()}while(n!==t);return n}function hZ(e){return"string"==typeof e&&/^https?:\/\//i.test(e)?e:void 0}function bZ(t){let{spec:n,isDark:r=!1,onButtonClick:a}=t;if(!n||"object"!=typeof n)return null;n=e(e({},n),{},{title:mZ(n.title)});const i=String(n.type||"").trim().toLowerCase().replace(/_/g,"-"),o=new Set(["bar","line","area","pie","donut","scatter","bubble","radar","radial-bar","radial","radialbar","treemap","funnel","sankey","composed","waterfall","gauge","histogram","kpi"]);if("revenue-insights"===i)return S(aQ,{spec:n,isDark:r});if("impact-analysis"===i)return S(oQ,{spec:n,isDark:r});if("deviation-analysis"===i)return S(sQ,{spec:n,isDark:r});if("main-drivers"===i)return S(lQ,{spec:n,isDark:r});if("key-observations"===i)return S(uQ,{spec:n,isDark:r});if("recommendations"===i)return S(dQ,{spec:n,isDark:r});if("kpi"===i){var s,l,c,u,d;const e=null!==(s=null!==(l=null!==(c=n.value)&&void 0!==c?c:n.amount)&&void 0!==l?l:n.metric)&&void 0!==s?s:n.kpi,t=null!=n.delta?Number(n.delta):null,a=null!==(u=n.change)&&void 0!==u?u:null!=t&&Number.isFinite(t)?t>=0?"+".concat(t):String(t):void 0,i=null!==(d=n.trend)&&void 0!==d?d:null!=t&&Number.isFinite(t)?t>0?"up":t<0?"down":"flat":void 0;return S(cZ,{props:{label:n.label||n.title||"",value:null!=e?String(e):"-",change:a,trend:i},isDark:r})}return"table"===i?S(EZ,{spec:n,isDark:r}):o.has(i)||Array.isArray(n.data)&&n.data.length>0?S(vZ,{spec:n,type:i,isDark:r}):"alert"===i?S(SZ,{spec:n,isDark:r}):"card"===i?S(wZ,{spec:n,isDark:r}):"button-group"===i?S(AZ,{spec:n,isDark:r,onButtonClick:a}):"form"===i?S(kZ,{spec:n,isDark:r}):"confirmation"===i?S(xZ,{spec:n,isDark:r,onButtonClick:a}):"menu"===i?S(RZ,{spec:n,isDark:r,onButtonClick:a}):"profile"===i?S(CZ,{spec:n,isDark:r,onButtonClick:a}):"timeline"===i?S(DZ,{spec:n,isDark:r}):"rating"===i?S(PZ,{spec:n,isDark:r}):"comparison"===i?S(LZ,{spec:n,isDark:r,onButtonClick:a}):"gallery"===i?S(MZ,{spec:n,isDark:r}):Array.isArray(n.data)&&n.data.length>0?S(vZ,{spec:n,type:"bar",isDark:r}):null}const yZ=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 vZ(e){let{spec:t,type:n,isDark:r}=e;const{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"}}(t.data,t.x,t.y),o=function(e,t,n){return(e||[]).map(e=>({label:$Z(null==e?void 0:e[t],t),value:Number(null==e?void 0:e[n])})).filter(e=>Number.isFinite(e.value))}(t.data,a,i),s=String(n||"").trim().toLowerCase(),l={title:t.title,data:o,unit:t.unit,xAxisLabel:t.xAxisLabel,yAxisLabel:t.yAxisLabel,yKey:i,valueLabel:UZ(i)};return"pie"===s?S(dZ,{props:l,isDark:r,donut:!1}):"donut"===s?S(dZ,{props:l,isDark:r,donut:!0}):"line"===s?S(pZ,{props:l,isDark:r,area:!1}):"area"===s?S(pZ,{props:l,isDark:r,area:!0}):S(lZ,{props:l,isDark:r})}function EZ(e){let{spec:t,isDark:n}=e;const r=Array.isArray(t.columns)&&t.columns.length>0?t.columns:Array.isArray(t.data)&&t.data[0]?Object.keys(t.data[0]):[],a=Array.isArray(t.data)?t.data:Array.isArray(t.rows)?t.rows:[];if(0===r.length||0===a.length)return S("div",{style:yZ(n),children:S("div",{style:{color:n?"#9ca3af":"#6b7280",fontSize:12},children:"Empty table"})});const i=n?"1px solid #374151":"1px solid #e5e7eb";return E("div",{style:yZ(n),children:[t.title&&S("div",{style:{fontWeight:600,marginBottom:8},children:t.title}),S("div",{style:{overflowX:"auto"},children:E("table",{style:{borderCollapse:"collapse",width:"100%",fontSize:12},children:[S("thead",{children:S("tr",{children:r.map(e=>S("th",{style:{border:i,padding:"6px 8px",background:"transparent",textAlign:"left",fontWeight:600},children:UZ(e)},e))})}),S("tbody",{children:a.map((e,t)=>S("tr",{children:r.map(t=>S("td",{style:{border:i,padding:"6px 8px"},children:e&&"object"==typeof e?YZ(e[t],t):""},t))},t))})]})})]})}function SZ(t){let{spec:n,isDark:r}=t;const a=String(n.level||"info").toLowerCase(),i={info:{bg:r?"hsl(204 33% 14%)":"hsl(204 100% 97%)",border:r?"hsl(199 89% 58%)":"hsl(199 89% 48%)",text:r?"#bae6fd":"#0c4a6e"},warn:{bg:r?"hsl(36 33% 14%)":"hsl(34 100% 95%)",border:r?"hsl(38 92% 60%)":"hsl(35 100% 50%)",text:r?"#fde68a":"#663c00"},error:{bg:r?"hsl(356 33% 16%)":"hsl(356 100% 97%)",border:r?"hsl(350 89% 65%)":"hsl(350 89% 60%)",text:r?"#fecdd3":"#9f1239"},success:{bg:r?"hsl(152 36% 14%)":"hsl(152 81% 96%)",border:r?"hsl(158 64% 52%)":"hsl(160 84% 39%)",text:r?"#a7f3d0":"#065f46"}};i.warning=i.warn;const o=i[a]||i.info;return E("div",{style:e(e({},yZ(r)),{},{background:o.bg,borderLeft:"4px solid ".concat(o.border),color:o.text}),children:[n.title&&S("div",{style:{fontWeight:600,marginBottom:4},children:n.title}),n.body&&S("div",{style:{fontSize:12},children:String(n.body)})]})}function wZ(e){let{spec:t,isDark:n}=e;return E("div",{style:yZ(n),children:[t.title&&S("div",{style:{fontWeight:600,marginBottom:6},children:t.title}),t.body&&S("div",{style:{fontSize:12},children:String(t.body)})]})}function AZ(e){let{spec:t,isDark:n,onButtonClick:r}=e;const a=Array.isArray(t.buttons)?t.buttons:[];return 0===a.length?null:E("div",{style:{margin:"8px 0"},children:[t.title&&S("div",{style:{fontSize:11,color:n?"#9ca3af":"#6b7280",textTransform:"uppercase",letterSpacing:"0.05em",marginBottom:6},children:t.title}),S("div",{style:{display:"flex",flexWrap:"wrap",gap:6},children:a.map((e,t)=>{var a,i;return S("button",{type:"button",onClick:r?()=>{var t,n,a,i;return r(String(null!==(t=null!==(n=e.value)&&void 0!==n?n:e.label)&&void 0!==t?t:""),String(null!==(a=null!==(i=e.label)&&void 0!==i?i:e.value)&&void 0!==a?a:""))}:void 0,disabled:!r,style:{border:"1px solid "+(n?"#374151":"#d1d5db"),background:n?"#1f2937":"#ffffff",color:n?"#f3f4f6":"#111827",padding:"6px 12px",borderRadius:6,fontSize:12,cursor:r?"pointer":"default",opacity:r?1:.6},children:String(null!==(a=null!==(i=e.label)&&void 0!==i?i:e.value)&&void 0!==a?a:"")},t)})})]})}function kZ(e){let{spec:t,isDark:n}=e;const r=(Array.isArray(t.fields)?t.fields:[]).filter(e=>e&&"hidden"!==e.type);return E("div",{style:yZ(n),children:[t.title&&S("div",{style:{fontWeight:600,marginBottom:8},children:t.title}),r.map((e,t)=>{var r,a;return E("div",{style:{marginBottom:4,fontSize:12},children:[E("span",{style:{color:n?"#9ca3af":"#6b7280"},children:[e.label||e.name,": "]}),S("span",{children:String(null!==(r=null!==(a=e.value)&&void 0!==a?a:e.placeholder)&&void 0!==r?r:"")})]},t)})]})}function xZ(e){let{spec:t,isDark:n,onButtonClick:r}=e;const a=t.yes||{label:"Yes",value:"yes"},i=t.no||{label:"No",value:"no"};return E("div",{style:yZ(n),children:[t.title&&S("div",{style:{fontWeight:600,marginBottom:6},children:t.title}),t.body&&S("div",{style:{fontSize:12,marginBottom:8},children:String(t.body)}),S(AZ,{spec:{buttons:[a,i]},isDark:n,onButtonClick:r})]})}const TZ="#2563eb";function OZ(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 _Z(e,t){return{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"6px 12px",borderRadius:6,fontSize:12,fontWeight:600,border:"none",background:TZ,color:"#ffffff",cursor:t?"default":"pointer",opacity:t?.5:1}}function IZ(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 NZ(e){let{score:t,maxScore:n=5,size:r=14,isDark:a}=e;const i=[];for(let e=0;e<n;e+=1){const n=t>=e+1,o=!n&&t>e&&t<e+1;i.push(E("svg",{width:r,height:r,viewBox:"0 0 24 24",fill:n?"#fbbf24":o?"url(#a2ui-half-star-".concat(e,")"):"none",stroke:n||o?"#fbbf24":a?"#4b5563":"#d1d5db",strokeWidth:"1.5",children:[o&&S("defs",{children:E("linearGradient",{id:"a2ui-half-star-".concat(e),children:[S("stop",{offset:"50%",stopColor:"#fbbf24"}),S("stop",{offset:"50%",stopColor:"transparent"})]})}),S("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"})]},e))}return S("div",{style:{display:"flex",alignItems:"center",gap:1},children:i})}function RZ(t){let{spec:n,isDark:r,onButtonClick:a}=t;const i=Array.isArray(n.items)?n.items:[];if(0===i.length)return null;const o=r?"1px solid #374151":"1px solid #e5e7eb",s=r?"#9ca3af":"#6b7280";return E("div",{style:{margin:"8px 0"},children:[(n.title||n.subtitle)&&E("div",{style:{marginBottom:8},children:[n.title&&S("div",{style:{fontSize:13,fontWeight:700},children:n.title}),n.subtitle&&S("div",{style:{fontSize:11,color:s},children:n.subtitle})]}),S("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(160px, 1fr))",gap:10},children:i.map((t,n)=>E("div",{style:{border:o,borderRadius:10,overflow:"hidden",background:r?"#1f2937":"#ffffff",display:"flex",flexDirection:"column"},children:[hZ(t.image)&&S("img",{src:hZ(t.image),alt:t.name||"",referrerPolicy:"no-referrer",onError:e=>{e.currentTarget.style.display="none"},style:{height:96,width:"100%",objectFit:"cover",background:r?"#111827":"#f9fafb"}}),E("div",{style:{padding:10,display:"flex",flexDirection:"column",gap:6,flex:1},children:[E("div",{style:{display:"flex",justifyContent:"space-between",gap:6,alignItems:"flex-start"},children:[S("div",{style:{fontSize:12,fontWeight:700,minWidth:0},children:t.name}),t.price&&S("div",{style:{fontSize:12,fontWeight:700,color:TZ,flexShrink:0},children:t.price})]}),t.description&&S("div",{style:{fontSize:11,color:s,lineHeight:1.4},children:t.description}),Array.isArray(t.tags)&&t.tags.length>0&&S("div",{style:{display:"flex",flexWrap:"wrap",gap:4},children:t.tags.map((e,t)=>S("span",{style:OZ(r),children:e},t))}),S("div",{style:{flex:1}}),t.actionLabel&&S("button",{type:"button",onClick:a?()=>{var e;return a(String(null!==(e=t.value)&&void 0!==e?e:t.actionLabel),String(t.actionLabel))}:void 0,disabled:!a,style:e(e({},_Z(0,!a)),{},{alignSelf:"flex-start",marginTop:4}),children:t.actionLabel})]})]},n))})]})}function CZ(e){let{spec:t,isDark:n,onButtonClick:r}=e;const a=Array.isArray(t.tags)?t.tags:[],i=Array.isArray(t.actions)?t.actions:[],o=n?"#9ca3af":"#6b7280";return E("div",{style:yZ(n),children:[E("div",{style:{display:"flex",gap:10,alignItems:"flex-start"},children:[S("div",{style:{flexShrink:0,height:44,width:44,borderRadius:"50%",overflow:"hidden",background:n?"rgba(37,99,235,0.20)":"#eff6ff",color:n?"#93c5fd":TZ,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700,fontSize:16},children:hZ(t.avatar)?S("img",{src:hZ(t.avatar),alt:t.name||"",referrerPolicy:"no-referrer",onError:e=>{e.currentTarget.style.display="none"},style:{height:"100%",width:"100%",objectFit:"cover"}}):String(t.name||"").charAt(0).toUpperCase()}),E("div",{style:{minWidth:0,flex:1},children:[S("div",{style:{fontSize:13,fontWeight:700},children:t.name}),t.role&&S("div",{style:{fontSize:11,color:o},children:t.role}),"number"==typeof t.rating&&E("div",{style:{marginTop:4,display:"flex",alignItems:"center",gap:6},children:[S(NZ,{score:t.rating,size:11,isDark:n}),E("span",{style:{fontSize:10,color:o},children:[t.rating.toFixed(1),"number"==typeof t.reviewCount?" (".concat(t.reviewCount,")"):""]})]})]})]}),a.length>0&&S("div",{style:{display:"flex",flexWrap:"wrap",gap:4,marginTop:8},children:a.map((e,t)=>S("span",{style:OZ(n),children:e},t))}),t.bio&&S("div",{style:{marginTop:8,fontSize:12,lineHeight:1.5},children:t.bio}),i.length>0&&S("div",{style:{display:"flex",flexWrap:"wrap",gap:6,marginTop:10},children:i.map((e,t)=>{const a="secondary"!==e.variant,i=hZ(e.url);if(i)return S("a",{href:i,target:"_blank",rel:"noopener noreferrer",style:IZ(n,!1),children:e.label},t);const o=e.value||e.label;return S("button",{type:"button",onClick:r?()=>r(String(o),String(e.label)):void 0,disabled:!r,style:a?_Z(0,!r):IZ(n,!r),children:e.label},t)})})]})}function DZ(t){let{spec:n,isDark:r}=t;const a=Array.isArray(n.steps)?n.steps:[];if(0===a.length)return null;const i=r?"#374151":"#e5e7eb",o=r?"#6b7280":"#9ca3af",s=e=>"done"===e?{background:"#10b981",border:"2px solid #10b981"}:"active"===e?{background:TZ,border:"2px solid ".concat(TZ),boxShadow:r?"0 0 0 4px rgba(37,99,235,0.25)":"0 0 0 4px #dbeafe"}:{background:r?"#1f2937":"#ffffff",border:"2px solid "+(r?"#4b5563":"#d1d5db")};return E("div",{style:yZ(r),children:[n.title&&S("div",{style:{fontWeight:700,fontSize:13,marginBottom:10},children:n.title}),S("div",{children:a.map((t,n)=>{const l=t.status||(0===n?"done":"pending"),c=n===a.length-1;return E("div",{style:{display:"flex",gap:10},children:[E("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[S("div",{style:e({height:12,width:12,borderRadius:"50%",flexShrink:0},s(l))}),!c&&S("div",{style:{width:1,flex:1,background:i,minHeight:16,margin:"2px 0"}})]}),E("div",{style:{minWidth:0,flex:1,paddingBottom:c?0:12},children:[E("div",{style:{display:"flex",justifyContent:"space-between",gap:6},children:[S("span",{style:{fontSize:12,fontWeight:600,color:"pending"===l?o:r?"#f3f4f6":"#111827"},children:t.label}),t.timestamp&&S("span",{style:{fontSize:10,color:o,flexShrink:0},children:t.timestamp})]}),t.description&&S("div",{style:{fontSize:11,color:r?"#9ca3af":"#6b7280",marginTop:2},children:t.description})]})]},n)})})]})}function PZ(e){let{spec:t,isDark:n}=e;const r=t.maxScore||5,a=n?"#9ca3af":"#6b7280";return E("div",{style:yZ(n),children:[t.title&&S("div",{style:{fontSize:11,textTransform:"uppercase",letterSpacing:"0.05em",color:a,marginBottom:4},children:t.title}),E("div",{style:{display:"flex",alignItems:"center",gap:8},children:[S("span",{style:{fontSize:22,fontWeight:700},children:Number(t.score).toFixed(1)}),S(NZ,{score:t.score,maxScore:r,size:15,isDark:n}),"number"==typeof t.reviewCount&&E("span",{style:{fontSize:11,color:a},children:["(",t.reviewCount," review",1===t.reviewCount?"":"s",")"]})]}),t.review&&E("div",{style:{marginTop:8,borderLeft:"2px solid "+(n?"#1e40af":"#bfdbfe"),paddingLeft:10,fontSize:12,fontStyle:"italic",color:n?"#d1d5db":"#374151",lineHeight:1.5},children:['"',t.review,'"',t.author&&E("div",{style:{marginTop:4,fontStyle:"normal",fontSize:10,color:a},children:["- ",t.author]})]})]})}function LZ(t){let{spec:n,isDark:r,onButtonClick:a}=t;const i=Array.isArray(n.plans)?n.plans:[];if(0===i.length)return null;const o=r?"#9ca3af":"#6b7280";return E("div",{style:{margin:"8px 0"},children:[n.title&&S("div",{style:{fontWeight:700,fontSize:13,marginBottom:8},children:n.title}),S("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(150px, 1fr))",gap:10},children:i.map((t,n)=>E("div",{style:{border:t.highlight?"1px solid ".concat(TZ):"1px solid "+(r?"#374151":"#e5e7eb"),background:t.highlight?r?"rgba(37,99,235,0.10)":"#eff6ff":r?"#1f2937":"#ffffff",borderRadius:10,padding:12,display:"flex",flexDirection:"column"},children:[t.highlight&&S("span",{style:{alignSelf:"flex-start",marginBottom:6,background:TZ,color:"#ffffff",fontSize:9,fontWeight:700,padding:"2px 7px",borderRadius:999},children:"Recommended"}),S("div",{style:{fontSize:13,fontWeight:700},children:t.name}),t.price&&E("div",{style:{marginTop:2,display:"flex",alignItems:"baseline",gap:3},children:[S("span",{style:{fontSize:18,fontWeight:700},children:t.price}),t.period&&E("span",{style:{fontSize:11,color:o},children:["/",t.period]})]}),Array.isArray(t.features)&&t.features.length>0&&S("ul",{style:{listStyle:"none",padding:0,margin:"8px 0 0",display:"flex",flexDirection:"column",gap:6,flex:1},children:t.features.map((e,t)=>E("li",{style:{display:"flex",gap:6,alignItems:"flex-start",fontSize:11,color:r?"#d1d5db":"#374151"},children:[S("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:S("polyline",{points:"20 6 9 17 4 12"})}),S("span",{children:e})]},t))}),t.actionLabel&&S("button",{type:"button",onClick:a?()=>{var e;return a(String(null!==(e=t.value)&&void 0!==e?e:t.actionLabel),String(t.actionLabel))}:void 0,disabled:!a,style:e(e({},t.highlight?_Z(0,!a):IZ(r,!a)),{},{marginTop:10}),children:t.actionLabel})]},n))})]})}function MZ(e){let{spec:t,isDark:n}=e;const r=Array.isArray(t.images)?t.images:[];if(0===r.length)return null;const a=n?"#9ca3af":"#6b7280";return E("div",{style:{margin:"8px 0"},children:[t.title&&S("div",{style:{fontWeight:700,fontSize:13,marginBottom:8},children:t.title}),S("div",{className:"slim-scrollbar-x",style:{display:"flex",gap:8,overflowX:"auto",paddingBottom:4},children:r.map((e,t)=>E("figure",{style:{flexShrink:0,width:140,margin:0,borderRadius:8,overflow:"hidden",border:"1px solid "+(n?"#374151":"#e5e7eb"),background:n?"#111827":"#f9fafb"},children:[S("img",{src:hZ(e.url),alt:e.caption||"Image ".concat(t+1),referrerPolicy:"no-referrer",onError:e=>{e.currentTarget.style.display="none"},style:{height:96,width:"100%",objectFit:"cover"}}),e.caption&&S("figcaption",{style:{padding:"5px 8px",fontSize:10,color:a,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.caption})]},t))})]})}const FZ=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],jZ=/(^|[_\W])(price|salary|cost|amount|revenue|expense|total|value|budget|spend|income|sale|balance)/i,BZ=/(^|[_\W])month/i;function UZ(e){if(null==e)return"";const t=String(e);return t?t.replace(/[_\-]+/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/\s+/g," ").trim().split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" "):""}const zZ=/^(\d{4})-(\d{2})(?:-\d{2})?(?:[T\s]|$)/;function $Z(e,t){if("string"==typeof t&&BZ.test(t)){const t="number"==typeof e?e:Number(e);if(Number.isInteger(t)&&t>=1&&t<=12)return FZ[t-1]}const n=function(e){if("string"!=typeof e)return null;const t=e.match(zZ);if(!t)return null;const n=parseInt(t[1],10),r=parseInt(t[2],10);return!Number.isInteger(r)||r<1||r>12?null:"".concat(FZ[r-1]," '").concat(String(n).slice(-2))}(e);return n||UZ(e)}const GZ=/^[a-z]+(_[a-z]+)+$/;const qZ=/^-?\d+(\.\d+)?$/,HZ=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],VZ=/^\d{4}-\d{2}-\d{2}([T ]\d{2}:\d{2}(:\d{2})?(\.\d+)?(Z|[+-]\d{2}:?\d{2})?)?$/;function WZ(e){return Number.isInteger(e)?e.toLocaleString("en-US"):Number(e.toFixed(2)).toLocaleString("en-US")}function YZ(e,t){if(null==e)return"";if("number"==typeof e)return WZ(e);if("object"==typeof e)return JSON.stringify(e);const n=String(e).trim(),r=function(e){if("string"!=typeof e)return null;if(!VZ.test(e.trim()))return null;const t=new Date(e);if(isNaN(t.getTime()))return null;const n=/[T ]\d{2}:\d{2}/.test(e)&&(0!==t.getUTCHours()||0!==t.getUTCMinutes()||0!==t.getUTCSeconds()),r="".concat(HZ[t.getUTCMonth()]," ").concat(t.getUTCDate(),", ").concat(t.getUTCFullYear());if(!n)return r;const a=t.getUTCHours(),i=a>=12?"PM":"AM",o=a%12||12,s=String(t.getUTCMinutes()).padStart(2,"0");return"".concat(r,", ").concat(o,":").concat(s," ").concat(i)}(n);if(r)return r;if("string"==typeof(a=t)&&jZ.test(a)&&qZ.test(n)){const e=Number(n);if(Number.isFinite(e))return WZ(e)}var a,i;return"string"!=typeof(i=e)?String(null!=i?i:""):i.length>40?i:GZ.test(i)?UZ(i):i}function KZ(e){let{size:t=14}=e;return E("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[S("polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17"}),S("polyline",{points:"16 7 22 7 22 13"})]})}function XZ(e){let{size:t=14}=e;return E("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[S("path",{d:"M16 16c0-1.7-2-3-2-3"}),S("path",{d:"M8 16c0-1.7 2-3 2-3"}),S("path",{d:"M7 21h10"}),S("path",{d:"M12 3v18"}),S("path",{d:"m17 7 5 9h-10z"}),S("path",{d:"m7 7-5 9h10z"})]})}function ZZ(e){let{size:t=14}=e;return E("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[S("circle",{cx:"5",cy:"6",r:"3"}),S("circle",{cx:"19",cy:"18",r:"3"}),S("path",{d:"M12 6h5a2 2 0 0 1 2 2v7"}),S("path",{d:"M12 18H7a2 2 0 0 1-2-2V9"})]})}function QZ(e){let{size:t=14}=e;return S("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:S("polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2"})})}function JZ(e){let{size:t=14}=e;return E("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[S("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"}),S("path",{d:"M9 18h6"}),S("path",{d:"M10 22h4"})]})}function eQ(e){let{size:t=14}=e;return E("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[S("circle",{cx:"12",cy:"12",r:"10"}),S("circle",{cx:"12",cy:"12",r:"6"}),S("circle",{cx:"12",cy:"12",r:"2"})]})}function tQ(e){let{type:t,icon:n,title:r,count:a,isDark:i,children:o}=e;const{accent:s,iconBg:l,iconFg:c}=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}}(t,i),u=i?"1px solid #374151":"1px solid #e5e7eb";return E("div",{style:{background:i?"#1f2937":"#ffffff",border:u,borderRadius:12,overflow:"hidden",margin:"8px 0",color:i?"#f3f4f6":"#0f172a"},children:[S("div",{style:{height:4,background:s}}),E("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,padding:"12px 14px 10px",borderBottom:u},children:[E("div",{style:{display:"flex",alignItems:"center",gap:8,fontSize:13,fontWeight:700},children:[S("span",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:22,height:22,borderRadius:6,background:l,color:c},children:n}),r]}),null!=a&&S("div",{style:{fontSize:11,color:i?"#9ca3af":"#64748b",fontVariantNumeric:"tabular-nums"},children:a})]}),S("div",{style:{padding:"12px 14px 14px",fontSize:13,lineHeight:1.55},children:o})]})}function nQ(e){let{delta:t,isDark:n}=e;if(!t)return null;const r=function(e){const t=String(e||"").trim();return t?t.startsWith("+")?"up":t.startsWith("-")||t.startsWith("−")?"dn":"flat":"flat"}(t),a=(n?{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"}})[r];return S("span",{style:{fontSize:9,fontWeight:600,padding:"1px 5px",borderRadius:3,marginLeft:4,background:a.bg,color:a.fg},children:t})}function rQ(e){let{items:t,isDark:n}=e;if(!t||!t.length)return null;const r=n?"1px solid #374151":"1px solid #e5e7eb",a=n?"#9ca3af":"#64748b",i=n?"#f3f4f6":"#0f172a",o=n?"#111827":"#f8fafc";return S("div",{style:{display:"flex",flexWrap:"wrap",gap:6,marginTop:4},children:t.map((e,t)=>E("span",{style:{display:"inline-flex",alignItems:"baseline",gap:4,fontSize:11,lineHeight:1,padding:"5px 8px",borderRadius:6,background:o,border:r},children:[e.label&&E("span",{style:{color:a},children:[e.label,":"]}),S("span",{style:{fontWeight:700,color:i,fontVariantNumeric:"tabular-nums"},children:e.value}),S(nQ,{delta:e.delta,isDark:n})]},t))})}function aQ(e){let{spec:t,isDark:n}=e;const r=Array.isArray(t.totals)?t.totals:[],a=n?"#9ca3af":"#64748b";return E(tQ,{type:"revenue-insights",icon:S(KZ,{}),title:t.title||"Revenue insights",count:null,isDark:n,children:[t.headline&&S("div",{style:{fontSize:18,fontWeight:700,marginBottom:4},children:t.headline}),t.narrative&&S("div",{style:{color:a,marginBottom:r.length?8:0},children:t.narrative}),r.length>0&&S("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(140px, 1fr))",gap:8,marginTop:8},children:r.map((e,t)=>E("div",{style:{background:n?"#111827":"#f8fafc",border:n?"1px solid #374151":"1px solid #e5e7eb",borderRadius:8,padding:"8px 10px"},children:[S("div",{style:{fontSize:11,color:a},children:e.label}),E("div",{style:{fontSize:16,fontWeight:700,fontVariantNumeric:"tabular-nums"},children:[e.value,S(nQ,{delta:e.delta,isDark:n})]})]},t))})]})}function iQ(e){let{items:t,sentiment:n,isDark:r}=e;if(!t||0===t.length)return null;const a="positive"===n?{bg:r?"rgba(16,185,129,0.10)":"#f0fdf4",bd:r?"rgba(52,211,153,0.30)":"#bbf7d0",tx:r?"#a7f3d0":"#14532d",dot:r?"#34d399":"#10b981"}:"negative"===n?{bg:r?"rgba(239,68,68,0.10)":"#fef2f2",bd:r?"rgba(248,113,113,0.30)":"#fecaca",tx:r?"#fecaca":"#7f1d1d",dot:r?"#f87171":"#ef4444"}:{bg:r?"#111827":"#f8fafc",bd:r?"#374151":"#e2e8f0",tx:r?"#f3f4f6":"#0f172a",dot:r?"#9ca3af":"#94a3b8"};return E("div",{children:[S("div",{style:{fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.4px",color:r?"#9ca3af":"#64748b",margin:"10px 0 6px"},children:"positive"===n?"Positive impact":"negative"===n?"Negative impact":"Neutral"}),t.map((e,t)=>E("div",{style:{background:a.bg,border:"1px solid ".concat(a.bd),borderRadius:8,padding:"8px 10px",margin:"4px 0",color:a.tx},children:[E("div",{style:{fontWeight:700,display:"block",marginBottom:2},children:[S("span",{style:{display:"inline-block",width:7,height:7,borderRadius:"50%",background:a.dot,marginRight:6,verticalAlign:"middle"}}),e.title]}),S("div",{children:e.description}),S(rQ,{items:e.metrics,isDark:r})]},t))]})}function oQ(e){let{spec:t,isDark:n}=e;return E(tQ,{type:"impact-analysis",icon:S(XZ,{}),title:t.title||"Impact analysis",count:null,isDark:n,children:[S(iQ,{items:t.positive,sentiment:"positive",isDark:n}),S(iQ,{items:t.negative,sentiment:"negative",isDark:n}),S(iQ,{items:t.neutral,sentiment:"neutral",isDark:n})]})}function sQ(e){let{spec:t,isDark:n}=e;const r=Array.isArray(t.deviations)?t.deviations:[],a=n?"1px solid #374151":"1px solid #e5e7eb",i=n?"#9ca3af":"#64748b",o=n?"#f3f4f6":"#0f172a";return E(tQ,{type:"deviation-analysis",icon:S(ZZ,{}),title:t.title||"Deviation analysis",count:null,isDark:n,children:[0===r.length?S("div",{style:{color:i,fontSize:12,padding:"14px 0",textAlign:"center"},children:"No deviations"}):S("div",{style:{overflowX:"auto"},children:E("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:12},children:[S("thead",{children:S("tr",{children:["Segment","Metric","Expected","Actual","Delta"].map(e=>S("th",{style:{padding:"7px 10px",borderBottom:a,textAlign:"left",fontSize:11,color:i,fontWeight:600,textTransform:"uppercase",letterSpacing:"0.3px"},children:e},e))})}),S("tbody",{children:r.map((e,t)=>{return E("tr",{children:[S("td",{style:{padding:"7px 10px",borderBottom:a,color:o},children:e.segment}),S("td",{style:{padding:"7px 10px",borderBottom:a,color:o},children:e.metric}),S("td",{style:{padding:"7px 10px",borderBottom:a,color:o,fontVariantNumeric:"tabular-nums"},children:e.expected}),S("td",{style:{padding:"7px 10px",borderBottom:a,color:o,fontVariantNumeric:"tabular-nums"},children:e.actual}),S("td",{style:{padding:"7px 10px",borderBottom:a,color:(r=e.tone,"up"===r?n?"#34d399":"#15803d":"dn"===r?n?"#f87171":"#b91c1c":n?"#9ca3af":"#64748b"),fontWeight:700,fontVariantNumeric:"tabular-nums"},children:e.delta})]},t);var r})})]})}),t.summary&&S("div",{style:{background:n?"#111827":"#f8fafc",border:a,borderRadius:6,padding:"8px 10px",marginTop:10,fontSize:12,color:o},children:t.summary})]})}function lQ(e){let{spec:t,isDark:n}=e;const r=Array.isArray(t.secondary)?t.secondary:[],a=n?"#9ca3af":"#64748b",i=n?"#9ca3af":"#64748b",o=t.primary;return E(tQ,{type:"main-drivers",icon:S(QZ,{}),title:t.title||"Main drivers",count:null,isDark:n,children:[o&&E("div",{style:{background:n?"rgba(139,92,246,0.10)":"#faf5ff",border:n?"1px solid rgba(167,139,250,0.30)":"1px solid #d8b4fe",borderRadius:8,padding:"10px 12px",marginBottom:r.length?10:0},children:[S("div",{style:{fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.4px",color:n?"#c4b5fd":"#7c3aed",marginBottom:4},children:"Primary driver"}),S("div",{style:{fontWeight:600},children:o.factor}),o.evidence&&S("div",{style:{color:a,fontSize:12,marginTop:4},children:o.evidence}),o.metric&&E("span",{style:{display:"inline-block",marginTop:6,background:n?"rgba(139,92,246,0.20)":"#ede9fe",color:n?"#ddd6fe":"#5b21b6",fontSize:11,fontWeight:600,padding:"2px 7px",borderRadius:6},children:[o.metric.label,": ",o.metric.value]})]}),r.length>0&&E(w,{children:[S("div",{style:{fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.4px",color:i,margin:"10px 0 6px"},children:"Secondary drivers"}),S("ul",{style:{paddingLeft:20,margin:0},children:r.map((e,t)=>E("li",{style:{marginBottom:6},children:[S("div",{style:{fontWeight:600},children:e.factor}),e.evidence&&S("div",{style:{color:a,fontSize:12,marginTop:2},children:e.evidence})]},t))})]})]})}function cQ(e){let{rankBgFg:t,rank:n,chips:r,text:a,narrative:i,metrics:o,impactPill:s,isDark:l}=e;const c=l?"#9ca3af":"#64748b";return E("div",{style:{display:"flex",gap:10,alignItems:"flex-start",padding:"10px 0",borderBottom:l?"1px dashed #374151":"1px dashed #e5e7eb"},children:[S("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:t.bg,color:t.fg},children:n}),E("div",{style:{flex:"1 1 auto",minWidth:0,display:"flex",flexDirection:"column",gap:5},children:[r,a&&S("div",{style:{fontSize:13,fontWeight:600},children:a}),i&&S("div",{style:{fontSize:12,color:c},children:i}),S(rQ,{items:o,isDark:l}),s]})]})}function uQ(e){let{spec:t,isDark:n}=e;const r=Array.isArray(t.items)?[...t.items].sort((e,t)=>(e.rank||0)-(t.rank||0)):[],a=n?{bg:"#064e3b",fg:"#a7f3d0"}:{bg:"#f0fdf4",fg:"#14532d"};return S(tQ,{type:"key-observations",icon:S(JZ,{}),title:t.title||"Key observations",count:r.length?"".concat(r.length," item").concat(1===r.length?"":"s"):null,isDark:n,children:0===r.length?S("div",{style:{color:n?"#9ca3af":"#64748b",fontSize:12,padding:"14px 0",textAlign:"center"},children:"No observations available."}):r.map((e,t)=>{const r=[];return e.category&&r.push(S("span",{style:pQ("cat",n),children:e.category},"cat")),e.priority&&r.push(S("span",{style:pQ("prio-"+e.priority,n),children:e.priority},"prio")),S(cQ,{rankBgFg:a,rank:e.rank||t+1,chips:r.length?S("div",{style:{display:"flex",flexWrap:"wrap",gap:5},children:r}):null,text:e.text,narrative:e.narrative,metrics:e.metrics,impactPill:null,isDark:n},t)})})}function dQ(e){let{spec:t,isDark:n}=e;const r=Array.isArray(t.items)?[...t.items].sort((e,t)=>(e.rank||0)-(t.rank||0)):[],a=n?{bg:"#312e81",fg:"#c7d2fe"}:{bg:"#4f46e5",fg:"#ffffff"};return S(tQ,{type:"recommendations",icon:S(eQ,{}),title:t.title||"Recommendations",count:r.length?"".concat(r.length," item").concat(1===r.length?"":"s"):null,isDark:n,children:0===r.length?S("div",{style:{color:n?"#9ca3af":"#64748b",fontSize:12,padding:"14px 0",textAlign:"center"},children:"No recommendations available."}):r.map((e,t)=>{const r=(e.affected_segments||[]).map((e,t)=>S("span",{style:pQ("seg",n),children:e},t)),i=e.expected_impact?E("span",{style:{alignSelf:"flex-start",display:"inline-flex",alignItems:"center",gap:4,marginTop:2,background:n?"rgba(16,185,129,0.18)":"#dcfce7",color:n?"#a7f3d0":"#166534",fontSize:10,fontWeight:700,padding:"4px 9px",borderRadius:999,border:n?"1px solid rgba(52,211,153,0.30)":"1px solid #bbf7d0"},children:["↑ ",e.expected_impact]}):null;return S(cQ,{rankBgFg:a,rank:e.rank||t+1,chips:r.length?S("div",{style:{display:"flex",flexWrap:"wrap",gap:5},children:r}):null,text:e.action,narrative:e.rationale,metrics:e.metrics,impactPill:i,isDark:n},t)})})}function pQ(t,n){const r={display:"inline-flex",alignItems:"center",fontSize:10,fontWeight:600,lineHeight:1,padding:"3px 7px",borderRadius:999,border:n?"1px solid #374151":"1px solid #e5e7eb",background:n?"#111827":"#f8fafc",color:n?"#9ca3af":"#64748b"};return"cat"===t?e(e({},r),{},{background:n?"rgba(99,102,241,0.20)":"#eef2ff",color:n?"#c7d2fe":"#4f46e5",border:"1px solid transparent"}):"seg"===t?e(e({},r),{},{background:n?"#1f2937":"#f1f5f9",color:n?"#f3f4f6":"#0f172a"}):"prio-high"===t?e(e({},r),{},{background:n?"rgba(239,68,68,0.18)":"#fef2f2",color:n?"#fecaca":"#7f1d1d",border:n?"1px solid rgba(248,113,113,0.30)":"1px solid #fecaca"}):"prio-medium"===t?e(e({},r),{},{background:n?"rgba(99,102,241,0.20)":"#eef2ff",color:n?"#c7d2fe":"#4f46e5",border:"1px solid transparent"}):r}const fQ=/\[([\d०-९][\d०-९\s,]*)\](?!\()/g,gQ={"०":"0","१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9"};function mQ(e){const t=[];for(const n of function(e){return e.replace(/[०-९]/g,e=>{var t;return null!==(t=gQ[e])&&void 0!==t?t:e})}(e).split(",")){const e=n.trim();if(/^\d+$/.test(e)){const n=parseInt(e,10);n>=1&&t.push(n)}}return t}function hQ(e){const t=new Set,n=[];for(const r of e)t.has(r)||(t.add(r),n.push(r));return n}function bQ(){return e=>{Cr(e,"text",(e,t,n)=>{if(null==t||null==n)return;if("element"===n.type&&("code"===n.tagName||"pre"===n.tagName))return;const r=function(e){if(!e)return[];const t=[];let n;for(fQ.lastIndex=0;null!==(n=fQ.exec(e));){const e=mQ(n[1]);0!==e.length&&t.push({start:n.index,end:fQ.lastIndex,indices:e})}if(0===t.length)return[{type:"text",value:e}];const r=[];for(const n of t){const t=r.length?r[r.length-1]:null;t&&/^\s*$/.test(e.slice(t.end,n.start))?(t.end=n.end,t.indices.push(...n.indices)):r.push({start:n.start,end:n.end,indices:[...n.indices]})}const a=[];let i=0;for(const t of r)t.start>i&&a.push({type:"text",value:e.slice(i,t.start)}),a.push({type:"cite",indices:hQ(t.indices)}),i=t.end;return i<e.length&&a.push({type:"text",value:e.slice(i)}),a}(e.value);if(1===r.length&&"text"===r[0].type)return;const a=r.map((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(t,1,...a),[Nr,t+a.length]})}}const yQ=["node","children"],vQ=["children"],EQ=["node","children"],SQ=["node","children"],wQ=["node","children"],AQ=["node","children","start"],kQ=["node","children","data-ol-index"],xQ=["node","children"],TQ=["node","children"],OQ=["node","children"],_Q=["node","children"],IQ=["node","children"],NQ=["node","children"],RQ=["node","children"],CQ=["className","children"],DQ=new Set(["eshal-ui","eshal-chart","chart"]);function PQ(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 LQ(e){return e.replace(/(\d+\.\d{2})0+(?!\d)/g,"$1")}function MQ(r){let{content:i,isStreaming:o,isDark:s=!1,isRtl:l=!1,textColor:c,fontFamily:u,fontSize:d,onButtonClick:p,provideCitations:f=!0}=r;return S(ka,{className:"max-w-none [&>*:last-child]:!mb-0 [&>*:first-child]:!mt-0",remarkPlugins:[vo,So],rehypePlugins:f?[bQ]:[],components:{span(r){var a;let{node:i,children:o}=r,s=t(r,yQ);const l=null!==(a=s["data-eshal-citation"])&&void 0!==a?a:s.dataEshalCitation;if("string"==typeof l&&l.length>0){const e=function(e){if(!e)return[];const t=[];for(const n of String(e).split(",")){const e=parseInt(n.trim(),10);Number.isFinite(e)&&e>=1&&t.push(e)}return hQ(t)}(l);if(e.length>0)return S(n,{indices:e})}return S("span",e(e({},s),{},{children:o}))},pre(n){let{children:r}=n,i=t(n,vQ);return function(e){return a.Children.toArray(e).some(e=>{var t;if(!a.isValidElement(e))return!1;const n=null===(t=e.props)||void 0===t?void 0:t.className;if("string"!=typeof n)return!1;const r=n.match(/language-([\w-]+)/);return!!r&&DQ.has(r[1])})}(r)?S(w,{children:r}):S("pre",e(e({},i),{},{children:r}))},a(n){let{node:r,children:a}=n,i=t(n,EQ);return S("a",e(e({className:"underline hover:opacity-80",dir:"ltr",style:{color:c||(s?"#f3f4f6":"#1A1A1A"),unicodeBidi:"isolate"},target:"_blank",rel:"noopener noreferrer"},i),{},{children:a}))},p(n){var r;let{node:a,children:i}=n,o=t(n,SQ);const l="li"===(null==a||null===(r=a.parent)||void 0===r?void 0:r.tagName);return S("p",e(e({className:"leading-relaxed [&:first-child]:!mt-0",style:{color:c||(s?"#f3f4f6":"#1A1A1A"),fontFamily:u||"Inter",fontSize:d||"14px",margin:0,marginTop:0,marginBottom:l?"0.125rem":"0.85rem",lineHeight:"1.6",padding:0}},o),{},{children:i}))},ul(n){let{node:r,children:a}=n,i=t(n,wQ);return S("ul",e(e({className:"list-disc [&:first-child]:!mt-0",style:{marginTop:0,marginBottom:"0.6rem",paddingInlineStart:"1.2rem"}},i),{},{children:a}))},ol(n){let{node:r,children:i,start:o=1}=n,s=t(n,AQ);const l=Number.isFinite(Number(o))?Number(o):1;let c=0;return S("ol",e(e({className:"[&:first-child]:!mt-0",style:{listStyle:"none",marginTop:0,marginBottom:"0.6rem",paddingInlineStart:0}},s),{},{children:a.Children.map(i,e=>{if(!a.isValidElement(e))return e;const t=l+c;return c+=1,a.cloneElement(e,{"data-ol-index":t})})}))},li(n){let{node:r,children:a,"data-ol-index":i}=n,o=t(n,kQ);const l={color:c||(s?"#f3f4f6":"#1A1A1A"),fontFamily:u||"Inter",fontSize:d||"14px",marginBottom:"0.3rem",lineHeight:"1.5"};return null!=i?E("li",e(e({style:e(e({},l),{},{listStyle:"none",display:"flex",alignItems:"baseline",gap:"0.4em"})},o),{},{children:[E("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:[i,"."]}),S("span",{style:{flex:"1 1 auto",minWidth:0},children:a})]})):S("li",e(e({className:"",style:l},o),{},{children:a}))},h1(n){let{node:r,children:a}=n,i=t(n,xQ);return S("h1",e(e({className:"text-xl font-bold [&:first-child]:!mt-0",style:{color:c||(s?"#f3f4f6":"#1A1A1A"),fontFamily:u||"Inter",marginTop:"0.7rem",marginBottom:"0.45rem",lineHeight:"1.35"}},i),{},{children:a}))},h2(n){let{node:r,children:a}=n,i=t(n,TQ);return S("h2",e(e({className:"text-lg font-semibold [&:first-child]:!mt-0",style:{color:c||(s?"#f3f4f6":"#1A1A1A"),fontFamily:u||"Inter",marginTop:"0.65rem",marginBottom:"0.4rem",lineHeight:"1.35"}},i),{},{children:a}))},h3(n){let{node:r,children:a}=n,i=t(n,OQ);return S("h3",e(e({className:"text-base font-semibold [&:first-child]:!mt-0",style:{color:c||(s?"#f3f4f6":"#1A1A1A"),fontFamily:u||"Inter",marginTop:"0.6rem",marginBottom:"0.35rem",lineHeight:"1.35"}},i),{},{children:a}))},blockquote(n){let{node:r,children:a}=n,i=t(n,_Q);return S("blockquote",e(e({className:"border-l-4 pl-4 italic ".concat(s?"border-gray-600 text-gray-300":"border-gray-300 text-gray-700")},i),{},{children:a}))},table(n){var r;let{node:a,children:i}=n,o=t(n,IQ);if((null==a||null===(r=a.children)||void 0===r?void 0:r.length)>0){var l;function c(e){return e?"string"==typeof e.value?e.value:Array.isArray(e.children)?e.children.map(c).join(""):"":""}const u=a.children.find(e=>"thead"===e.tagName),d=a.children.find(e=>"tbody"===e.tagName),p=null==u||null===(l=u.children)||void 0===l?void 0:l.find(e=>"tr"===e.tagName),f=((null==p?void 0:p.children)||[]).filter(e=>"th"===e.tagName).map(e=>c(e)),g=((null==d?void 0:d.children)||[]).filter(e=>"tr"===e.tagName),m=g.map(e=>(e.children||[]).filter(e=>"td"===e.tagName).map(e=>c(e)));if(f.length>0&&m.length>0){const h=m.map(e=>Object.fromEntries(f.map((t,n)=>{var r;return[t,null!==(r=e[n])&&void 0!==r?r:""]})));return S(bZ,{spec:{type:"table",columns:f,data:h},isDark:s})}}return S("div",{className:"overflow-x-auto my-3 rounded-lg border ".concat(s?"border-gray-700 bg-gray-900":"border-gray-200 bg-white"),children:S("table",e(e({className:"min-w-full border-collapse ".concat(s?"text-gray-100":"text-gray-900")},o),{},{children:i}))})},th(n){let{node:r,children:a}=n,i=t(n,NQ);return S("th",e(e({className:"border px-3 py-2 text-left font-medium ".concat(s?"border-gray-700 bg-gray-800/50 text-gray-300":"border-gray-200 bg-gray-50 text-gray-700")},i),{},{children:a}))},td(n){let{node:r,children:a}=n,i=t(n,RQ);return S("td",e(e({className:"border px-3 py-2 ".concat(s?"border-gray-700":"border-gray-200")},i),{},{children:a}))},code(n){let{className:r,children:a}=n,i=t(n,CQ);const o=/language-([\w-]+)/.exec(r||""),l=o?o[1]:null;if(l&&DQ.has(l)){const e=function(e){return"string"==typeof e?e:Array.isArray(e)?e.map(e=>"string"==typeof e?e:"").join(""):""}(a).trim();try{const t=JSON.parse(e);if(t&&"object"==typeof t)return S(bZ,{spec:t,isDark:s,onButtonClick:p})}catch(e){return null}return null}return o?S(uE,e(e({style:dE,language:l,PreTag:"div",wrapLines:!0},i),{},{children:String(a).replace(/\n$/,"")})):S("code",e(e({className:r},i),{},{children:a}))}},children:LQ(PQ(i,o))})}export{MQ as default,LQ as sanitizeExcessDecimalPrecision,PQ as sanitizeStreamingContent};
31
+ */function Dz(){if(Ez)return vz;Ez=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return vz=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},vz}function Pz(){if(wz)return Sz;wz=1;return Sz="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Lz(){return kz?Az:(kz=1,Az=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var Mz=Cz();gz.exports=function(){if(_z)return Oz;_z=1;var e=Cz(),t=Dz(),n=Pz(),r=Lz(),a=function(){if(Tz)return xz;Tz=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Pz(),n={},r=Lz();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={})},xz=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){}}),Oz=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},Oz}()(Mz.isElement,!0)}else gz.exports=function(){if(Nz)return Iz;Nz=1;var e=Pz();function t(){}function n(){}return n.resetWarningCache=t,Iz=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 Fz=gz.exports;const{getOwnPropertyNames:jz,getOwnPropertySymbols:Bz}=Object,{hasOwnProperty:Uz}=Object.prototype;function zz(e,t){return function(n,r,a){return e(n,r,a)&&t(n,r,a)}}function $z(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 Gz(e){return jz(e).concat(Bz(e))}const qz=Object.hasOwn||((e,t)=>Uz.call(e,t));function Hz(e,t){return e===t||!e&&!t&&e!=e&&t!=t}const{getOwnPropertyDescriptor:Vz,keys:Wz}=Object;function Yz(e,t){return e.byteLength===t.byteLength&&s$(new Uint8Array(e),new Uint8Array(t))}function Kz(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 Xz(e,t){return e.byteLength===t.byteLength&&s$(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function Zz(e,t){return Hz(e.getTime(),t.getTime())}function Qz(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Jz(e,t){return e===t}function e$(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 t$=Hz;function n$(e,t,n){const r=Wz(e);let a=r.length;if(Wz(t).length!==a)return!1;for(;a-- >0;)if(!c$(e,t,n,r[a]))return!1;return!0}function r$(e,t,n){const r=Gz(e);let a,i,o,s=r.length;if(Gz(t).length!==s)return!1;for(;s-- >0;){if(a=r[s],!c$(e,t,n,a))return!1;if(i=Vz(e,a),o=Vz(t,a),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable))return!1}return!0}function a$(e,t){return Hz(e.valueOf(),t.valueOf())}function i$(e,t){return e.source===t.source&&e.flags===t.flags}function o$(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 s$(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 l$(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 c$(e,t,n,r){return!("_owner"!==r&&"__o"!==r&&"__v"!==r||!e.$$typeof&&!t.$$typeof)||qz(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const u$={"[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},d$=Object.prototype.toString;function p$({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=d$.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(u$[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 f$=g$();function g$(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:a=!1}=e,i=function({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:Yz,areArraysEqual:n?r$:Kz,areDataViewsEqual:Xz,areDatesEqual:Zz,areErrorsEqual:Qz,areFunctionsEqual:Jz,areMapsEqual:n?zz(e$,r$):e$,areNumbersEqual:t$,areObjectsEqual:n?r$:n$,arePrimitiveWrappersEqual:a$,areRegExpsEqual:i$,areSetsEqual:n?zz(o$,r$):o$,areTypedArraysEqual:n?zz(s$,r$):s$,areUrlsEqual:l$,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const e=$z(r.areArraysEqual),t=$z(r.areMapsEqual),n=$z(r.areObjectsEqual),a=$z(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:e,areMapsEqual:t,areObjectsEqual:n,areSetsEqual:a})}return r}(e),o=p$(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 m$(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 h$(e){return h$="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},h$(e)}function b$(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 y$(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 y$(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 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}function v$(){var e=function(){return null},t=!1,n=function n(r){if(!t){if(Array.isArray(r)){if(!r.length)return;var a=b$(r),i=a[0],o=a.slice(1);return"number"==typeof i?void m$(n.bind(null,o),i):(n(i),void m$(n.bind(null,o)))}"object"===h$(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 E$(e){return E$="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},E$(e)}function S$(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 w$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S$(Object(n),!0).forEach(function(t){A$(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function A$(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==E$(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==E$(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===E$(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}g$({strict:!0}),g$({circular:!0}),g$({circular:!0,strict:!0}),g$({createInternalComparator:()=>Hz}),g$({strict:!0,createInternalComparator:()=>Hz}),g$({circular:!0,createInternalComparator:()=>Hz}),g$({circular:!0,createInternalComparator:()=>Hz,strict:!0});var k$=function(e){return e},x$=function(e,t){return Object.keys(t).reduce(function(n,r){return w$(w$({},n),{},A$({},r,e(r,t[r])))},{})},T$=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(",")},O$="production"!==process.env.NODE_ENV,_$=function(e,t,n,r,a,i,o,s){if(O$&&"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 I$(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)||R$(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 N$(e){return function(e){if(Array.isArray(e))return C$(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||R$(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 R$(e,t){if(e){if("string"==typeof e)return C$(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)?C$(e,t):void 0}}function C$(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 D$=1e-4,P$=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},L$=function(e,t){return e.map(function(e,n){return e*Math.pow(t,n)}).reduce(function(e,t){return e+t})},M$=function(e,t){return function(n){var r=P$(e,t);return L$(r,n)}},F$=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=I$(l,4);r=c[0],a=c[1],i=c[2],o=c[3]}else _$(!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)}_$([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=M$(r,i),f=M$(a,o),g=(u=r,d=i,function(e){var t=P$(u,d),n=[].concat(N$(t.map(function(e,t){return e*t}).slice(1)),[0]);return L$(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)<D$||i<D$)return f(n);n=m(n-a/i)}return f(n)};return h.isStepper=!1,h},j$=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 F$(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)<D$&&Math.abs(i)<D$?[t,0]:[s,i]};return s.isStepper=!0,s.dt=o,s}();default:if("cubic-bezier"===r.split("(")[0])return F$(r);_$(!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:(_$(!1,"[configEasing]: first argument type should be function or string, instead received %s",t),null)};function B$(e){return B$="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},B$(e)}function U$(e){return function(e){if(Array.isArray(e))return V$(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||H$(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 z$(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 $$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z$(Object(n),!0).forEach(function(t){G$(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function G$(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==B$(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==B$(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===B$(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q$(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)||H$(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 H$(e,t){if(e){if("string"==typeof e)return V$(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)?V$(e,t):void 0}}function V$(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 W$=function(e,t,n){return e+(t-e)*n},Y$=function(e){return e.from!==e.to},K$=function e(t,n,r){var a=x$(function(e,n){if(Y$(n)){var r=q$(t(n.from,n.to,n.velocity),2),a=r[0],i=r[1];return $$($$({},n),{},{from:a,velocity:i})}return n},n);return r<1?x$(function(e,t){return Y$(t)?$$($$({},t),{},{velocity:W$(t.velocity,a[e].velocity,r),from:W$(t.from,a[e].from,r)}):t},n):e(t,a,r-1)},X$=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 $$($$({},n),{},G$({},r,[e[r],t[r]]))},{}),d=c.reduce(function(n,r){return $$($$({},n),{},G$({},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=K$(n,d,i),a($$($$($$({},e),t),x$(function(e,t){return t.from},d))),s=r,Object.values(d).filter(Y$).length&&(p=requestAnimationFrame(f))}:function(i){l||(l=i);var o=(i-l)/r,s=x$(function(e,t){return W$.apply(void 0,U$(t).concat([n(o)]))},u);if(a($$($$($$({},e),t),s)),o<1)p=requestAnimationFrame(f);else{var c=x$(function(e,t){return W$.apply(void 0,U$(t).concat([n(1)]))},u);a($$($$($$({},e),t),c))}},function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(p)}}};function Z$(e){return Z$="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},Z$(e)}var Q$=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function J$(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 eG(e){return function(e){if(Array.isArray(e))return tG(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 tG(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 tG(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 tG(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 nG(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 rG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nG(Object(n),!0).forEach(function(t){aG(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function aG(e,t,n){return(t=oG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iG(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,oG(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function oG(e){var t=function(e,t){if("object"!==Z$(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==Z$(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Z$(t)?t:String(t)}function sG(e,t){return sG=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sG(e,t)}function lG(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=dG(e);if(t){var a=dG(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return cG(this,n)}}function cG(e,t){if(t&&("object"===Z$(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return uG(e)}function uG(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dG(e){return dG=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},dG(e)}var pG=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&&sG(e,t)}(t,s);var e=lG(t);function t(n,r){var a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=(a=e.call(this,n,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(uG(a)),a.changeStyle=a.changeStyle.bind(uG(a)),!o||p<=0)return a.state={style:{}},"function"==typeof d&&(a.state={style:c}),cG(a);if(u&&u.length)a.state={style:u[0].style};else if(l){if("function"==typeof d)return a.state={style:l},cG(a);a.state={style:s?aG({},s,l):l}}else a.state={style:{}};return a}return iG(t,[{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(!(f$(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?aG({},a,u):u};(a&&l[a]!==u||!a&&l!==u)&&this.setState(d)}this.runAnimation(rG(rG({},this.props),{},{from:u,begin:0}))}}else{var p={style:a?aG({},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=X$(n,r,j$(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(eG(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(eG(e),[t.runJSAnimation.bind(t,{from:d.style,to:l,duration:i,easing:s}),i]);var f=T$(p,i,s),g=rG(rG(rG({},d.style),l),{},{transition:f});return[].concat(eG(e),[g,i,u]).filter(k$)},[o,Math.max(l,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=v$());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?aG({},r,a):a,p=T$(Object.keys(d),n,i);u.start([o,t,rG(rG({},d),{},{transition:p}),n,s])}else this.runJSAnimation(e)}},{key:"render",value:function(){var e=this.props,t=e.children;e.begin;var n=e.duration;e.attributeName,e.easing;var r=e.isActive;e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart;var i=J$(e,Q$),s=o.count(t),l=this.state.style;if("function"==typeof t)return t(l);if(!r||0===s||n<=0)return t;var c=function(e){var t=e.props,n=t.style,r=void 0===n?{}:n,a=t.className;return m(e,rG(rG({},i),{},{style:rG(rG({},r),l),className:a}))};return 1===s?c(o.only(t)):a.createElement("div",null,o.map(t,function(e){return c(e)}))}}]),t}();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)}function gG(){return gG=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},gG.apply(this,arguments)}function mG(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 hG(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 hG(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 hG(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 bG(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 yG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bG(Object(n),!0).forEach(function(t){vG(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vG(e,t,n){var r;return r=function(e,t){if("object"!=fG(e)||!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)}(t,"string"),(t="symbol"==fG(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}pG.displayName="Animate",pG.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},pG.propTypes={from:Fz.oneOfType([Fz.object,Fz.string]),to:Fz.oneOfType([Fz.object,Fz.string]),attributeName:Fz.string,duration:Fz.number,begin:Fz.number,easing:Fz.oneOfType([Fz.string,Fz.func]),steps:Fz.arrayOf(Fz.shape({duration:Fz.number.isRequired,style:Fz.object.isRequired,easing:Fz.oneOfType([Fz.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Fz.func]),properties:Fz.arrayOf("string"),onAnimationEnd:Fz.func})),children:Fz.oneOfType([Fz.node,Fz.func]),isActive:Fz.bool,canBegin:Fz.bool,onAnimationEnd:Fz.func,shouldReAnimate:Fz.bool,onAnimationStart:Fz.func,onAnimationReStart:Fz.func};var EG=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},SG=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},wG={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},AG=function(e){var t=yG(yG({},wG),e),n=c(),r=mG(d(-1),2),i=r[0],o=r[1];f(function(){if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&o(e)}catch(e){}},[]);var s=t.x,l=t.y,u=t.width,p=t.height,g=t.radius,m=t.className,h=t.animationEasing,b=t.animationDuration,y=t.animationBegin,v=t.isAnimationActive,E=t.isUpdateAnimationActive;if(s!==+s||l!==+l||u!==+u||p!==+p||0===u||0===p)return null;var S=fE("recharts-rectangle",m);return E?a.createElement(pG,{canBegin:i>0,from:{width:u,height:p,x:s,y:l},to:{width:u,height:p,x:s,y:l},duration:b,animationEasing:h,isActive:E},function(e){var r=e.width,o=e.height,s=e.x,l=e.y;return a.createElement(pG,{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},a.createElement("path",gG({},MA(t,!0),{className:S,d:EG(s,l,r,o,g),ref:n})))}):a.createElement("path",gG({},MA(t,!0),{className:S,d:EG(s,l,u,p,g)}))},kG=["points","className","baseLinePoints","connectNulls"];function xG(){return xG=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},xG.apply(this,arguments)}function TG(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 OG(e){return function(e){if(Array.isArray(e))return _G(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 _G(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 _G(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 _G(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 IG=function(e){return e&&e.x===+e.x&&e.y===+e.y},NG=function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach(function(e){IG(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])}),IG(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(OG(e),OG(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},RG=function(e){var t=e.points,n=e.className,r=e.baseLinePoints,i=e.connectNulls,o=TG(e,kG);if(!t||!t.length)return null;var s=fE("recharts-polygon",n);if(r&&r.length){var l=o.stroke&&"none"!==o.stroke,c=function(e,t,n){var r=NG(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(NG(t.reverse(),n).slice(1))}(t,r,i);return a.createElement("g",{className:s},a.createElement("path",xG({},MA(o,!0),{fill:"Z"===c.slice(-1)?o.fill:"none",stroke:"none",d:c})),l?a.createElement("path",xG({},MA(o,!0),{fill:"none",d:NG(t,i)})):null,l?a.createElement("path",xG({},MA(o,!0),{fill:"none",d:NG(r,i)})):null)}var u=NG(t,i);return a.createElement("path",xG({},MA(o,!0),{fill:"Z"===u.slice(-1)?o.fill:"none",className:s,d:u}))};function CG(){return CG=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},CG.apply(this,arguments)}var DG=function(e){var t=e.cx,n=e.cy,a=e.r,i=fE("recharts-dot",e.className);return t===+t&&n===+n&&a===+a?r.createElement("circle",CG({},MA(e,!1),EA(e),{className:i,cx:t,cy:n,r:a})):null};function PG(e){return PG="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},PG(e)}var LG=["x","y","top","left","width","height","className"];function MG(){return MG=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},MG.apply(this,arguments)}function FG(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 jG(e,t,n){var r;return r=function(e,t){if("object"!=PG(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=PG(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==PG(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BG(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 UG=function(e,t,n,r,a,i){return"M".concat(e,",").concat(a,"v").concat(r,"M").concat(i,",").concat(t,"h").concat(n)},zG=function(e){var t=e.x,n=void 0===t?0:t,r=e.y,i=void 0===r?0:r,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?FG(Object(n),!0).forEach(function(t){jG(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({x:n,y:i,top:s,left:c,width:d,height:f},BG(e,LG));return iA(n)&&iA(i)&&iA(d)&&iA(f)&&iA(s)&&iA(c)?a.createElement("path",MG({},MA(m,!0),{className:fE("recharts-cross",g),d:UG(n,i,d,f,s,c)})):null},$G=zF,GG=$F,qG=SI;var HG=function(e,t){return e&&e.length?$G(e,qG(t),GG):void 0},VG=zF,WG=SI,YG=WF;var KG=function(e,t){return e&&e.length?VG(e,WG(t),YG):void 0},XG=["cx","cy","angle","ticks","axisLine"],ZG=["ticks","tick","angle","tickFormatter","stroke"];function QG(e){return QG="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},QG(e)}function JG(){return JG=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},JG.apply(this,arguments)}function eq(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 tq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eq(Object(n),!0).forEach(function(t){lq(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eq(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nq(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 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,cq(r.key),r)}}function aq(e,t,n){return t=oq(t),function(e,t){if(t&&("object"===QG(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,iq()?Reflect.construct(t,n||[],oq(e).constructor):t.apply(e,n))}function iq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(iq=function(){return!!e})()}function oq(e){return oq=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oq(e)}function sq(e,t){return sq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sq(e,t)}function lq(e,t,n){return(t=cq(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cq(e){var t=function(e,t){if("object"!=QG(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=QG(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==QG(t)?t:t+""}var uq=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),aq(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&&sq(e,t)}(e,s),t=e,n=[{key:"getTickValueCoord",value:function(e){var t=e.coordinate,n=this.props,r=n.angle,a=n.cx,i=n.cy;return hU(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=HG(a,function(e){return e.coordinate||0});return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:KG(a,function(e){return e.coordinate||0}).coordinate||0,outerRadius:i.coordinate||0}}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,i=e.ticks,o=e.axisLine,s=nq(e,XG),l=i.reduce(function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]},[1/0,-1/0]),c=hU(t,n,l[0],r),u=hU(t,n,l[1],r),d=tq(tq(tq({},MA(s,!1)),{},{fill:"none"},MA(o,!1)),{},{x1:c.x,y1:c.y,x2:u.x,y2:u.y});return a.createElement("line",JG({className:"recharts-polar-radius-axis-line"},d))}},{key:"renderTicks",value:function(){var t=this,n=this.props,r=n.ticks,i=n.tick,o=n.angle,s=n.tickFormatter,l=n.stroke,c=nq(n,ZG),u=this.getTickTextAnchor(),d=MA(c,!1),p=MA(i,!1),f=r.map(function(n,r){var c=t.getTickValueCoord(n),f=tq(tq(tq(tq({textAnchor:u,transform:"rotate(".concat(90-o,", ").concat(c.x,", ").concat(c.y,")")},d),{},{stroke:"none",fill:l},p),{},{index:r},c),{},{payload:n});return a.createElement(WA,JG({className:fE("recharts-polar-radius-axis-tick",SU(i)),key:"tick-".concat(n.coordinate)},SA(t.props,n,r)),e.renderTickItem(i,f,s?s(n.value,r):n.value))});return a.createElement(WA,{className:"recharts-polar-radius-axis-ticks"},f)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.axisLine,r=e.tick;return t&&t.length?a.createElement(WA,{className:fE("recharts-polar-radius-axis",this.props.className)},n&&this.renderAxisLine(),r&&this.renderTicks(),CU.renderCallByParent(this.props,this.getViewBox())):null}}],r=[{key:"renderTickItem",value:function(e,t,n){return a.isValidElement(e)?a.cloneElement(e,t):qE(e)?e(t):a.createElement(rD,JG({},t,{className:"recharts-polar-radius-axis-tick-value"}),n)}}],n&&rq(t.prototype,n),r&&rq(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function dq(e){return dq="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},dq(e)}function pq(){return pq=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},pq.apply(this,arguments)}function fq(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 gq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fq(Object(n),!0).forEach(function(t){Eq(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fq(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mq(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,Sq(r.key),r)}}function hq(e,t,n){return t=yq(t),function(e,t){if(t&&("object"===dq(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,bq()?Reflect.construct(t,n||[],yq(e).constructor):t.apply(e,n))}function bq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(bq=function(){return!!e})()}function yq(e){return yq=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},yq(e)}function vq(e,t){return vq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vq(e,t)}function Eq(e,t,n){return(t=Sq(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sq(e){var t=function(e,t){if("object"!=dq(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=dq(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==dq(t)?t:t+""}lq(uq,"displayName","PolarRadiusAxis"),lq(uq,"axisType","radiusAxis"),lq(uq,"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 wq=Math.PI/180,Aq=1e-5,kq=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),hq(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&&vq(e,t)}(e,s),t=e,n=[{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=hU(n,r,a,e.coordinate),l=hU(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*wq);return n>Aq?"outer"===t?"start":"end":n<-Aq?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.radius,i=e.axisLine,o=e.axisLineType,s=gq(gq({},MA(this.props,!1)),{},{fill:"none"},MA(i,!1));if("circle"===o)return a.createElement(DG,pq({className:"recharts-polar-angle-axis-line"},s,{cx:t,cy:n,r:r}));var l=this.props.ticks.map(function(e){return hU(t,n,r,e.coordinate)});return a.createElement(RG,pq({className:"recharts-polar-angle-axis-line"},s,{points:l}))}},{key:"renderTicks",value:function(){var t=this,n=this.props,r=n.ticks,i=n.tick,o=n.tickLine,s=n.tickFormatter,l=n.stroke,c=MA(this.props,!1),u=MA(i,!1),d=gq(gq({},c),{},{fill:"none"},MA(o,!1)),p=r.map(function(n,r){var p=t.getTickLineCoord(n),f=gq(gq(gq({textAnchor:t.getTickTextAnchor(n)},c),{},{stroke:"none",fill:l},u),{},{index:r,payload:n,x:p.x2,y:p.y2});return a.createElement(WA,pq({className:fE("recharts-polar-angle-axis-tick",SU(i)),key:"tick-".concat(n.coordinate)},SA(t.props,n,r)),o&&a.createElement("line",pq({className:"recharts-polar-angle-axis-tick-line"},d,p)),i&&e.renderTickItem(i,f,s?s(n.value,r):n.value))});return a.createElement(WA,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.radius,r=e.axisLine;return n<=0||!t||!t.length?null:a.createElement(WA,{className:fE("recharts-polar-angle-axis",this.props.className)},r&&this.renderAxisLine(),this.renderTicks())}}],r=[{key:"renderTickItem",value:function(e,t,n){return a.isValidElement(e)?a.cloneElement(e,t):qE(e)?e(t):a.createElement(rD,pq({},t,{className:"recharts-polar-angle-axis-tick-value"}),n)}}],n&&mq(t.prototype,n),r&&mq(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Eq(kq,"displayName","PolarAngleAxis"),Eq(kq,"axisType","angleAxis"),Eq(kq,"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 xq=TO(Object.getPrototypeOf,Object),Tq=NE,Oq=xq,_q=RE,Iq=Function.prototype,Nq=Object.prototype,Rq=Iq.toString,Cq=Nq.hasOwnProperty,Dq=Rq.call(Object);var Pq=function(e){if(!_q(e)||"[object Object]"!=Tq(e))return!1;var t=Oq(e);if(null===t)return!0;var n=Cq.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Rq.call(n)==Dq},Lq=NE,Mq=RE;var Fq=function(e){return!0===e||!1===e||Mq(e)&&"[object Boolean]"==Lq(e)};function jq(e){return jq="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},jq(e)}function Bq(){return Bq=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},Bq.apply(this,arguments)}function Uq(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 zq(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 zq(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 zq(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 $q(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 Gq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$q(Object(n),!0).forEach(function(t){qq(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$q(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qq(e,t,n){var r;return r=function(e,t){if("object"!=jq(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=jq(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==jq(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hq,Vq=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")},Wq={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Yq=function(e){var t=Gq(Gq({},Wq),e),n=c(),r=Uq(d(-1),2),i=r[0],o=r[1];f(function(){if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&o(e)}catch(e){}},[]);var s=t.x,l=t.y,u=t.upperWidth,p=t.lowerWidth,g=t.height,m=t.className,h=t.animationEasing,b=t.animationDuration,y=t.animationBegin,v=t.isUpdateAnimationActive;if(s!==+s||l!==+l||u!==+u||p!==+p||g!==+g||0===u&&0===p||0===g)return null;var E=fE("recharts-trapezoid",m);return v?a.createElement(pG,{canBegin:i>0,from:{upperWidth:0,lowerWidth:0,height:g,x:s,y:l},to:{upperWidth:u,lowerWidth:p,height:g,x:s,y:l},duration:b,animationEasing:h,isActive:v},function(e){var r=e.upperWidth,o=e.lowerWidth,s=e.height,l=e.x,c=e.y;return a.createElement(pG,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:b,easing:h},a.createElement("path",Bq({},MA(t,!0),{className:E,d:Vq(l,c,r,o,s),ref:n})))}):a.createElement("g",null,a.createElement("path",Bq({},MA(t,!0),{className:E,d:Vq(s,l,u,p,g)})))},Kq=["option","shapeType","propTransformer","activeClassName","isActive"];function Xq(e){return Xq="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},Xq(e)}function Zq(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 Qq(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 Jq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qq(Object(n),!0).forEach(function(t){eH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qq(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function eH(e,t,n){var r;return r=function(e,t){if("object"!=Xq(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Xq(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==Xq(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tH(e,t){return Jq(Jq({},t),e)}function nH(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return a.createElement(AG,n);case"trapezoid":return a.createElement(Yq,n);case"sector":return a.createElement(tz,n);case"symbols":if(function(e){return"symbols"===e}(t))return a.createElement(jx,n);break;default:return null}}function rH(e){var t,n=e.option,r=e.shapeType,o=e.propTransformer,s=void 0===o?tH:o,l=e.activeClassName,c=void 0===l?"recharts-active-shape":l,u=e.isActive,d=Zq(e,Kq);if(i(n))t=m(n,Jq(Jq({},d),function(e){return i(e)?e.props:e}(n)));else if(qE(n))t=n(d);else if(Pq(n)&&!Fq(n)){var p=s(n,d);t=a.createElement(nH,{shapeType:r,elementProps:p})}else{var f=d;t=a.createElement(nH,{shapeType:r,elementProps:f})}return u?a.createElement(WA,{className:c},t):t}function aH(e,t){return null!=t&&"trapezoids"in e.props}function iH(e,t){return null!=t&&"sectors"in e.props}function oH(e,t){return null!=t&&"points"in e.props}function sH(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 lH(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function cH(e,t){var n=e.x===t.x,r=e.y===t.y,a=e.z===t.z;return n&&r&&a}function uH(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,a=function(e,t){var n;return aH(e,t)?n="trapezoids":iH(e,t)?n="sectors":oH(e,t)&&(n="points"),n}(n,t),i=function(e,t){var n,r;return aH(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:iH(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:oH(e,t)?t.payload:{}}(n,t),o=r.filter(function(e,r){var o=sj(i,e),s=n.props[a].filter(function(e){var r=function(e,t){var n;return aH(e,t)?n=sH:iH(e,t)?n=lH:oH(e,t)&&(n=cH),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 dH(e){return dH="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},dH(e)}function pH(){return pH=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},pH.apply(this,arguments)}function fH(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 gH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fH(Object(n),!0).forEach(function(t){EH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mH(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,SH(r.key),r)}}function hH(e,t,n){return t=yH(t),function(e,t){if(t&&("object"===dH(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,bH()?Reflect.construct(t,n||[],yH(e).constructor):t.apply(e,n))}function bH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(bH=function(){return!!e})()}function yH(e){return yH=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},yH(e)}function vH(e,t){return vH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vH(e,t)}function EH(e,t,n){return(t=SH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SH(e){var t=function(e,t){if("object"!=dH(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=dH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==dH(t)?t:t+""}var wH=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),EH(n=hH(this,e,[t]),"pieRef",null),EH(n,"sectorRefs",[]),EH(n,"id",lA("recharts-pie-")),EH(n,"handleAnimationEnd",function(){var e=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),qE(e)&&e()}),EH(n,"handleAnimationStart",function(){var e=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),qE(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&&vH(e,t)}(e,s),t=e,n=[{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(t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.label,i=n.labelLine,o=n.dataKey,s=n.valueKey,l=MA(this.props,!1),c=MA(r,!1),u=MA(i,!1),d=r&&r.offsetRadius||20,p=t.map(function(t,n){var p=(t.startAngle+t.endAngle)/2,f=hU(t.cx,t.cy,t.outerRadius+d,p),g=gH(gH(gH(gH({},l),t),{},{stroke:"none"},c),{},{index:n,textAnchor:e.getTextAnchor(f.x,t.cx)},f),m=gH(gH(gH(gH({},l),t),{},{fill:"none",stroke:t.fill},u),{},{index:n,points:[hU(t.cx,t.cy,t.outerRadius,p),f]}),h=o;return zw(o)&&zw(s)?h="value":zw(o)&&(h=s),a.createElement(WA,{key:"label-".concat(t.startAngle,"-").concat(t.endAngle,"-").concat(t.midAngle,"-").concat(n)},i&&e.renderLabelLineItem(i,m,"line"),e.renderLabelItem(r,g,FB(t,h)))});return a.createElement(WA,{className:"recharts-pie-labels"},p)}},{key:"renderSectorsStatically",value:function(e){var t=this,n=this.props,r=n.activeShape,i=n.blendStroke,o=n.inactiveShape;return e.map(function(n,s){if(0===(null==n?void 0:n.startAngle)&&0===(null==n?void 0:n.endAngle)&&1!==e.length)return null;var l=t.isActiveIndex(s),c=o&&t.hasActiveIndex()?o:null,u=l?r:c,d=gH(gH({},n),{},{stroke:i?n.fill:n.stroke,tabIndex:-1});return a.createElement(WA,pH({ref:function(e){e&&!t.sectorRefs.includes(e)&&t.sectorRefs.push(e)},tabIndex:-1,className:"recharts-pie-sector"},SA(t.props,n,s),{key:"sector-".concat(null==n?void 0:n.startAngle,"-").concat(null==n?void 0:n.endAngle,"-").concat(n.midAngle,"-").concat(s)}),a.createElement(rH,pH({option:u,isActive:l,shapeType:"sector"},d)))})}},{key:"renderSectorsWithAnimation",value:function(){var e=this,t=this.props,n=t.sectors,r=t.isAnimationActive,i=t.animationBegin,o=t.animationDuration,s=t.animationEasing,l=t.animationId,c=this.state,u=c.prevSectors,d=c.prevIsAnimationActive;return a.createElement(pG,{begin:i,duration:o,isActive:r,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(l,"-").concat(d),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(t){var r=t.t,i=[],o=(n&&n[0]).startAngle;return n.forEach(function(e,t){var n=u&&u[t],a=t>0?Uw(e,"paddingAngle",0):0;if(n){var s=dA(n.endAngle-n.startAngle,e.endAngle-e.startAngle),l=gH(gH({},e),{},{startAngle:o+a,endAngle:o+s(r)+a});i.push(l),o=l.endAngle}else{var c=e.endAngle,d=e.startAngle,p=dA(0,c-d)(r),f=gH(gH({},e),{},{startAngle:o+a,endAngle:o+p+a});i.push(f),o=f.endAngle}}),a.createElement(WA,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&&sj(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var e=this,t=this.props,n=t.hide,r=t.sectors,i=t.className,o=t.label,s=t.cx,l=t.cy,c=t.innerRadius,u=t.outerRadius,d=t.isAnimationActive,p=this.state.isAnimationFinished;if(n||!r||!r.length||!iA(s)||!iA(l)||!iA(c)||!iA(u))return null;var f=fE("recharts-pie",i);return a.createElement(WA,{tabIndex:this.props.rootTabIndex,className:f,ref:function(t){e.pieRef=t}},this.renderSectors(),o&&this.renderLabels(r),CU.renderCallByParent(this.props,null,!1),(!d||p)&&VU.renderCallByParent(this.props,r,!1))}}],r=[{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,t,n){if(a.isValidElement(e))return a.cloneElement(e,t);if(qE(e))return e(t);var r=fE("recharts-pie-label-line","boolean"!=typeof e?e.className:"");return a.createElement(fz,pH({},t,{key:n,type:"linear",className:r}))}},{key:"renderLabelItem",value:function(e,t,n){if(a.isValidElement(e))return a.cloneElement(e,t);var r=n;if(qE(e)&&(r=e(t),a.isValidElement(r)))return r;var i=fE("recharts-pie-label-text","boolean"==typeof e||qE(e)?"":e.className);return a.createElement(rD,pH({},t,{alignmentBaseline:"middle",className:i}),r)}}],n&&mH(t.prototype,n),r&&mH(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Hq=wH,EH(wH,"displayName","Pie"),EH(wH,"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:!RR,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0}),EH(wH,"parseDeltaAngle",function(e,t){return rA(t-e)*Math.min(Math.abs(t-e),360)}),EH(wH,"getRealPieData",function(e){var t=e.data,n=e.children,r=MA(e,!1),a=RA(n,EC);return t&&t.length?t.map(function(e,t){return gH(gH(gH({payload:e},r),e),a&&a[t]&&a[t].props)}):a&&a.length?a.map(function(e){return gH(gH({},r),e.props)}):[]}),EH(wH,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,a=t.width,i=t.height,o=bU(a,i);return{cx:r+cA(e.cx,a,a/2),cy:n+cA(e.cy,i,i/2),innerRadius:cA(e.innerRadius,o,0),outerRadius:cA(e.outerRadius,o,.8*o),maxRadius:e.maxRadius||Math.sqrt(a*a+i*i)/2}}),EH(wH,"getComposedData",function(e){var t=e.item,n=e.offset,r=void 0!==t.type.defaultProps?gH(gH({},t.type.defaultProps),t.props):t.props,a=Hq.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=Hq.parseCoordinateOfPie(r,n),m=Hq.parseDeltaAngle(o,s),h=Math.abs(m),b=c;zw(c)&&zw(d)?(KA(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),b="value"):zw(c)&&(KA(!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!==FB(e,b,0)}).length,S=h-E*f-(h>=360?E:E-1)*l,w=a.reduce(function(e,t){var n=FB(t,b,0);return e+(iA(n)?n:0)},0);w>0&&(y=a.map(function(e,t){var n,r=FB(e,b,0),a=FB(e,u,t),s=(iA(r)?r:0)/w,c=(n=t?v.endAngle+rA(m)*l*(0!==r?1:0):o)+rA(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=hU(g.cx,g.cy,h,d);return v=gH(gH(gH({percent:s,cornerRadius:i,name:a,tooltipPayload:y,midAngle:d,middleRadius:h,tooltipPosition:E},e),g),{},{value:FB(e,b),startAngle:n,endAngle:c,payload:e,paddingAngle:rA(m)*l})}));return gH(gH({},g),{},{sectors:y,data:a})});var AH=Math.ceil,kH=Math.max;var xH=function(e,t,n,r){for(var a=-1,i=kH(AH((t-e)/(n||1)),0),o=Array(i);i--;)o[r?i:++a]=e,e+=n;return o},TH=rC,OH=1/0;var _H=function(e){return e?(e=TH(e))===OH||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},IH=xH,NH=eR,RH=_H;var CH=function(e){return function(t,n,r){return r&&"number"!=typeof r&&NH(t,n,r)&&(n=r=void 0),t=RH(t),void 0===n?(n=t,t=0):n=RH(n),r=void 0===r?t<n?1:-1:RH(r),IH(t,n,r,e)}}();function DH(e){return DH="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},DH(e)}function PH(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 LH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PH(Object(n),!0).forEach(function(t){MH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function MH(e,t,n){var r;return r=function(e,t){if("object"!=DH(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=DH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==DH(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var FH=["Webkit","Moz","O","ms"];function jH(e){return jH="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},jH(e)}function BH(){return BH=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},BH.apply(this,arguments)}function UH(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?UH(Object(n),!0).forEach(function(t){WH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $H(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,YH(r.key),r)}}function GH(e,t,n){return t=HH(t),function(e,t){if(t&&("object"===jH(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,qH()?Reflect.construct(t,n||[],HH(e).constructor):t.apply(e,n))}function qH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(qH=function(){return!!e})()}function HH(e){return HH=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},HH(e)}function VH(e,t){return VH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},VH(e,t)}function WH(e,t,n){return(t=YH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YH(e){var t=function(e,t){if("object"!=jH(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=jH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==jH(t)?t:t+""}var KH=function(e){return e.changedTouches&&!!e.changedTouches.length},XH=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),WH(n=GH(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)}),WH(n,"handleTouchMove",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleDrag(e.changedTouches[0])}),WH(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()}),WH(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),WH(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),WH(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),WH(n,"handleSlideDragStart",function(e){var t=KH(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&&VH(e,t)}(e,s),t=e,n=[{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=FB(n[e],a,e);return qE(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=KH(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(WH(WH({},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(WH({},t,u),function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))})}}}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,o=e.fill,s=e.stroke;return a.createElement("rect",{stroke:s,fill:o,x:t,y:n,width:r,height:i})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,s=e.data,l=e.children,c=e.padding,u=o.only(l);return u?a.cloneElement(u,{x:t,y:n,width:r,height:i,margin:c,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(t,n){var r,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(t,this.props.x),b=zH(zH({},MA(this.props,!1)),{},{x:h,y:l,width:c,height:u}),y=p||"Min value: ".concat(null===(r=f[g])||void 0===r?void 0:r.name,", Max value: ").concat(null===(i=f[m])||void 0===i?void 0:i.name);return a.createElement(WA,{tabIndex:0,role:"slider","aria-label":y,"aria-valuenow":t,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[n],onTouchStart:this.travellerDragStartHandlers[n],onKeyDown:function(e){["ArrowLeft","ArrowRight"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),o.handleTravellerMoveKeyboard("ArrowRight"===e.key?1:-1,n))},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,t){var n=this.props,r=n.y,i=n.height,o=n.stroke,s=n.travellerWidth,l=Math.min(e,t)+s,c=Math.max(Math.abs(t-e)-s,0);return a.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:r,width:c,height:i})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=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 a.createElement(WA,{className:"recharts-brush-texts"},a.createElement(rD,BH({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,u)-5,y:r+i/2},d),this.getTextOfTick(t)),a.createElement(rD,BH({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,u)+o+5,y:r+i/2},d),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=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(!t||!t.length||!iA(i)||!iA(o)||!iA(s)||!iA(l)||s<=0||l<=0)return null;var b=fE("recharts-brush",n),y=1===a.Children.count(r),v=function(e,t){var n=e.replace(/(\w)/,function(e){return e.toUpperCase()}),r=FH.reduce(function(e,r){return LH(LH({},e),{},MH({},r+n,t))},{});return r[e]=t,r}("userSelect","none");return a.createElement(WA,{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())}}],r=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,n=e.y,r=e.width,i=e.height,o=e.stroke,s=Math.floor(n+i/2)-1;return a.createElement(a.Fragment,null,a.createElement("rect",{x:t,y:n,width:r,height:i,fill:o,stroke:"none"}),a.createElement("line",{x1:t+1,y1:s,x2:t+r-1,y2:s,fill:"none",stroke:"#fff"}),a.createElement("line",{x1:t+1,y1:s+2,x2:t+r-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,n){return a.isValidElement(t)?a.cloneElement(t,n):qE(t)?t(n):e.renderDefaultTraveller(n)}},{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 zH({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=CD().domain(CH(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}}],n&&$H(t.prototype,n),r&&$H(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();WH(XH,"displayName","Brush"),WH(XH,"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 ZH=bN;var QH=function(e,t){var n;return ZH(e,function(e,r,a){return!(n=t(e,r,a))}),!!n},JH=hT,eV=SI,tV=QH,nV=gE,rV=eR;var aV=function(e,t,n){var r=nV(e)?JH:tV;return n&&rV(e,t,n)&&(t=void 0),r(e,eV(t))},iV=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},oV=UN;var sV=function(e,t,n){"__proto__"==t&&oV?oV(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},lV=sV,cV=gN,uV=SI;var dV=function(e,t){var n={};return t=uV(t),cV(e,function(e,r,a){lV(n,r,t(e,r,a))}),n};var pV=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},fV=bN;var gV=function(e,t){var n=!0;return fV(e,function(e,r,a){return n=!!t(e,r,a)}),n},mV=pV,hV=gV,bV=SI,yV=gE,vV=eR;var EV=function(e,t,n){var r=yV(e)?mV:hV;return n&&vV(e,t,n)&&(t=void 0),r(e,bV(t))},SV=["x","y"];function wV(e){return wV="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},wV(e)}function AV(){return AV=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},AV.apply(this,arguments)}function kV(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 xV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kV(Object(n),!0).forEach(function(t){TV(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function TV(e,t,n){var r;return r=function(e,t){if("object"!=wV(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=wV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==wV(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OV(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 _V(e,t){var n=e.x,r=e.y,a=OV(e,SV),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 xV(xV(xV(xV(xV({},t),a),o?{x:o}:{}),l?{y:l}:{}),{},{height:u,width:p,name:t.name,radius:t.radius})}function IV(e){return a.createElement(rH,AV({shapeType:"rectangle",propTransformer:_V,activeClassName:"recharts-active-bar"},e))}var NV,RV=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=iA(n)||function(e){return zw(e)}(n);return a?e(n,r):(a||("production"!==process.env.NODE_ENV?dB(0,"minPointSize callback function received a value with type of ".concat(wV(n),". Currently only numbers or null/undefined are supported.")):dB()),t)}},CV=["value","background"];function DV(e){return DV="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},DV(e)}function PV(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 LV(){return LV=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},LV.apply(this,arguments)}function MV(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 FV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?MV(Object(n),!0).forEach(function(t){GV(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jV(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,qV(r.key),r)}}function BV(e,t,n){return t=zV(t),function(e,t){if(t&&("object"===DV(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,UV()?Reflect.construct(t,n||[],zV(e).constructor):t.apply(e,n))}function UV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(UV=function(){return!!e})()}function zV(e){return zV=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zV(e)}function $V(e,t){return $V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$V(e,t)}function GV(e,t,n){return(t=qV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qV(e){var t=function(e,t){if("object"!=DV(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=DV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==DV(t)?t:t+""}var HV=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 GV(t=BV(this,e,[].concat(r)),"state",{isAnimationFinished:!1}),GV(t,"id",lA("recharts-bar-")),GV(t,"handleAnimationEnd",function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()}),GV(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&&$V(e,t)}(e,s),t=e,n=[{key:"renderRectanglesStatically",value:function(e){var t=this,n=this.props,r=n.shape,i=n.dataKey,o=n.activeIndex,s=n.activeBar,l=MA(this.props,!1);return e&&e.map(function(e,n){var c=n===o,u=c?s:r,d=FV(FV(FV({},l),e),{},{isActive:c,option:u,index:n,dataKey:i,onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd});return a.createElement(WA,LV({className:"recharts-bar-rectangle"},SA(t.props,e,n),{key:"rectangle-".concat(null==e?void 0:e.x,"-").concat(null==e?void 0:e.y,"-").concat(null==e?void 0:e.value,"-").concat(n)}),a.createElement(IV,d))})}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,t=this.props,n=t.data,r=t.layout,i=t.isAnimationActive,o=t.animationBegin,s=t.animationDuration,l=t.animationEasing,c=t.animationId,u=this.state.prevData;return a.createElement(pG,{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(t){var i=t.t,o=n.map(function(e,t){var n=u&&u[t];if(n){var a=dA(n.x,e.x),o=dA(n.y,e.y),s=dA(n.width,e.width),l=dA(n.height,e.height);return FV(FV({},e),{},{x:a(i),y:o(i),width:s(i),height:l(i)})}if("horizontal"===r){var c=dA(0,e.height)(i);return FV(FV({},e),{},{y:e.y+e.height-c,height:c})}var d=dA(0,e.width)(i);return FV(FV({},e),{},{width:d})});return a.createElement(WA,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&&sj(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props,n=t.data,r=t.dataKey,i=t.activeIndex,o=MA(this.props.background,!1);return n.map(function(t,n){t.value;var s=t.background,l=PV(t,CV);if(!s)return null;var c=FV(FV(FV(FV(FV({},l),{},{fill:"#eee"},s),o),SA(e.props,t,n)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:r,index:n,className:"recharts-bar-background-rectangle"});return a.createElement(IV,LV({key:"background-bar-".concat(n),option:e.props.background,isActive:n===i},c))})}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.data,i=n.xAxis,o=n.yAxis,s=n.layout,l=RA(n.children,xB);if(!l)return null;var c="vertical"===s?r[0].height/2:r[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:FB(e,t)}},d={clipPath:e?"url(#clipPath-".concat(t,")"):null};return a.createElement(WA,d,l.map(function(e){return a.cloneElement(e,{key:"error-bar-".concat(t,"-").concat(e.props.dataKey),data:r,xAxis:i,yAxis:o,layout:s,offset:c,dataPointFormatter:u})}))}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.data,r=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(t||!n||!n.length)return null;var g=this.state.isAnimationFinished,m=fE("recharts-bar",r),h=i&&i.allowDataOverflow,b=o&&o.allowDataOverflow,y=h||b,v=zw(f)?this.id:f;return a.createElement(WA,{className:m},h||b?a.createElement("defs",null,a.createElement("clipPath",{id:"clipPath-".concat(v)},a.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,a.createElement(WA,{className:"recharts-bar-rectangles",clipPath:y?"url(#clipPath-".concat(v,")"):null},p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(y,v),(!d||g)&&VU.renderCallByParent(this.props,n))}}],r=[{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}}],n&&jV(t.prototype,n),r&&jV(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function VV(e){return VV="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},VV(e)}function WV(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,ZV(r.key),r)}}function YV(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 KV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?YV(Object(n),!0).forEach(function(t){XV(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function XV(e,t,n){return(t=ZV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZV(e){var t=function(e,t){if("object"!=VV(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=VV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==VV(t)?t:t+""}NV=HV,GV(HV,"displayName","Bar"),GV(HV,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!RR,animationBegin:0,animationDuration:400,animationEasing:"ease"}),GV(HV,"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?FV(FV({},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=RA(y,EC),k=d.map(function(e,t){var r,d,p,m,h,y;c?r=function(e,t){if(!t||2!==t.length||!iA(t[0])||!iA(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(!iA(e[0])||e[0]<n)&&(a[0]=n),(!iA(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=FB(e,b),Array.isArray(r)||(r=[w,r]));var E=RV(v,NV.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=eU({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=rA(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=eU({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+=rA(m||E)*(Math.abs(E)-Math.abs(m))}return FV(FV(FV({},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:[sU(n,e)],tooltipPosition:{x:d+m/2,y:p+h/2}})});return FV({data:k,layout:g},p)});var QV=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=!!CA(l,HV);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(fA);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 _=cA(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=WB(m,a,d),R=N.scale,C=N.realScaleType;R.domain(b).range(c),KB(R);var D=QB(R,KV(KV({},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=KV(KV(KV({},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=iU(P,D),m.hide||"xAxis"!==r?m.hide||(u[w]+=(g?-1:1)*P.width):u[w]+=(g?-1:1)*P.height,KV(KV({},i),{},XV({},o,P))},{})},JV=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)}},eW=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&&WV(t.prototype,n),r&&WV(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();XV(eW,"EPS",1e-4);var tW=function(e){var t=Object.keys(e).reduce(function(t,n){return KV(KV({},t),{},XV({},n,eW.create(e[n])))},{});return KV(KV({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,a=n.position;return dV(e,function(e,n){return t[n].apply(e,{bandAware:r,position:a})})},isInRange:function(e){return EV(e,function(e,n){return t[n].isInRange(e)})}})};var nW=SI,rW=PO,aW=jO;var iW=function(e){return function(t,n,r){var a=Object(t);if(!rW(t)){var i=nW(n);t=aW(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}},oW=_H;var sW=wI,lW=SI,cW=function(e){var t=oW(e),n=t%1;return t==t?n?t-n:t:0},uW=Math.max;var dW=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=null==n?0:cW(n);return a<0&&(a=uW(r+a,0)),sW(e,lW(t),a)},pW=iW(dW),fW=gw(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 gW(e){return gW="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},gW(e)}var mW=y(void 0),hW=y(void 0),bW=y(void 0),yW=y({}),vW=y(void 0),EW=y(0),SW=y(0),wW=function(e){var t=e.state,n=t.xAxisMap,r=t.yAxisMap,i=t.offset,o=e.clipPathId,s=e.children,l=e.width,c=e.height,u=fW(i);return a.createElement(mW.Provider,{value:n},a.createElement(hW.Provider,{value:r},a.createElement(yW.Provider,{value:i},a.createElement(bW.Provider,{value:u},a.createElement(vW.Provider,{value:o},a.createElement(EW.Provider,{value:c},a.createElement(SW.Provider,{value:l},s)))))))};function AW(e){var t=Object.keys(e);return 0===t.length?"There are no available ids.":"Available ids are: ".concat(t,".")}var kW=function(e){var t=b(mW);null==t&&("production"!==process.env.NODE_ENV?dB(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):dB());var n=t[e];return null==n&&("production"!==process.env.NODE_ENV?dB(0,'Could not find xAxis by id "'.concat(e,'" [').concat(gW(e),"]. ").concat(AW(t))):dB()),n},xW=function(e){var t=b(hW);null==t&&("production"!==process.env.NODE_ENV?dB(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):dB());var n=t[e];return null==n&&("production"!==process.env.NODE_ENV?dB(0,'Could not find yAxis by id "'.concat(e,'" [').concat(gW(e),"]. ").concat(AW(t))):dB()),n},TW=function(){return b(SW)},OW=function(){return b(EW)};function _W(e){return _W="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},_W(e)}function IW(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,FW(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function NW(e,t,n){return t=CW(t),function(e,t){if(t&&("object"===_W(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,RW()?Reflect.construct(t,n||[],CW(e).constructor):t.apply(e,n))}function RW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(RW=function(){return!!e})()}function CW(e){return CW=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},CW(e)}function DW(e,t){return DW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},DW(e,t)}function PW(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 LW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PW(Object(n),!0).forEach(function(t){MW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PW(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function MW(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"!=_W(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=_W(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==_W(t)?t:t+""}function jW(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 BW(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 BW(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 BW(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 UW(){return UW=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},UW.apply(this,arguments)}function zW(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,o=e.yAxisId,s=e.shape,l=e.className,c=e.alwaysShow,u=b(vW),d=kW(i),p=xW(o),f=b(bW);if(!u||!f)return null;KA(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var g=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(iV(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(iV(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 iV(l,"discard")&&aV(v,function(t){return!e.isInRange(t)})?null:v}return null}(tW({x:d.scale,y:p.scale}),oA(t),oA(n),r&&2===r.length,f,e.position,d.orientation,p.orientation,e);if(!g)return null;var m=jW(g,2),h=m[0],y=h.x,v=h.y,E=m[1],S=E.x,w=E.y,A=LW(LW({clipPath:iV(e,"hidden")?"url(#".concat(u,")"):void 0},MA(e,!0)),{},{x1:y,y1:v,x2:S,y2:w});return a.createElement(WA,{className:fE("recharts-reference-line",l)},function(e,t){return a.isValidElement(e)?a.cloneElement(e,t):qE(e)?e(t):a.createElement("line",UW({},t,{className:"recharts-reference-line-line"}))}(s,A),CU.renderCallByParent(e,function(e){var t=e.x1,n=e.y1,r=e.x2,a=e.y2;return JV({x:t,y:n},{x:r,y:a})}({x1:y,y1:v,x2:S,y2:w})))}var $W=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),NW(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&&DW(e,t)}(e,a.Component),IW(e,[{key:"render",value:function(){return a.createElement(zW,this.props)}}])}();function GW(){return GW=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},GW.apply(this,arguments)}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){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 VW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HW(Object(n),!0).forEach(function(t){QW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HW(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function WW(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 YW(e,t,n){return t=XW(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,KW()?Reflect.construct(t,n||[],XW(e).constructor):t.apply(e,n))}function KW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(KW=function(){return!!e})()}function XW(e){return XW=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},XW(e)}function ZW(e,t){return ZW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ZW(e,t)}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+""}MW($W,"displayName","ReferenceLine"),MW($W,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});var eY=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),YW(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&&ZW(e,t)}(e,a.Component),WW(e,[{key:"render",value:function(){var t=this.props,n=t.x,r=t.y,i=t.r,o=t.alwaysShow,s=t.clipPathId,l=oA(n),c=oA(r);if(KA(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=tW({x:r.scale,y:a.scale}),o=i.apply({x:t,y:n},{bandAware:!0});return iV(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=VW(VW({clipPath:iV(this.props,"hidden")?"url(#".concat(s,")"):void 0},MA(this.props,!0)),{},{cx:d,cy:p});return a.createElement(WA,{className:fE("recharts-reference-dot",m)},e.renderDot(g,h),CU.renderCallByParent(this.props,{x:d-i,y:p-i,width:2*i,height:2*i}))}}])}();function tY(){return tY=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},tY.apply(this,arguments)}function nY(e){return nY="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},nY(e)}function rY(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 aY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rY(Object(n),!0).forEach(function(t){uY(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function iY(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,dY(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function oY(e,t,n){return t=lY(t),function(e,t){if(t&&("object"===nY(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,sY()?Reflect.construct(t,n||[],lY(e).constructor):t.apply(e,n))}function sY(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(sY=function(){return!!e})()}function lY(e){return lY=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},lY(e)}function cY(e,t){return cY=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cY(e,t)}function uY(e,t,n){return(t=dY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dY(e){var t=function(e,t){if("object"!=nY(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=nY(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==nY(t)?t:t+""}QW(eY,"displayName","ReferenceDot"),QW(eY,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),QW(eY,"renderDot",function(e,t){return a.isValidElement(e)?a.cloneElement(e,t):qE(e)?e(t):a.createElement(DG,GW({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"}))});var pY=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),oY(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&&cY(e,t)}(e,a.Component),iY(e,[{key:"render",value:function(){var t=this.props,n=t.x1,r=t.x2,i=t.y1,o=t.y2,s=t.className,l=t.alwaysShow,c=t.clipPathId;KA(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var u=oA(n),d=oA(r),p=oA(i),f=oA(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=tW({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!iV(a,"discard")||d.isInRange(p)&&d.isInRange(f)?JV(p,f):null}(u,d,p,f,this.props);if(!m&&!g)return null;var h=iV(this.props,"hidden")?"url(#".concat(c,")"):void 0;return a.createElement(WA,{className:fE("recharts-reference-area",s)},e.renderRect(g,aY(aY({clipPath:h},MA(this.props,!0)),m)),CU.renderCallByParent(this.props,m))}}])}();function fY(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 gY(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 mY(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 hY(e){return hY="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},hY(e)}function bY(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 yY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bY(Object(n),!0).forEach(function(t){vY(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vY(e,t,n){var r;return r=function(e,t){if("object"!=hY(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=hY(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==hY(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EY(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(iA(l)||RR)return function(e,t){return fY(e,t+1)}(a,"number"==typeof l&&iA(l)?l:0);var p=[],f="top"===s||"bottom"===s?"width":"height",g=u&&"width"===f?_C(u,{fontSize:t,letterSpacing:n}):{width:0,height:0},m=function(e,r){var a=qE(c)?c(e.value,r):e.value;return"width"===f?gY(_C(a,{fontSize:t,letterSpacing:n}),g,d):_C(a,{fontSize:t,letterSpacing:n})[f]},h=a.length>=2?rA(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:fY(r,u)};var i,o=c,p=function(){return void 0===i&&(i=n(t,o)),i},f=t.coordinate,g=0===c||mY(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=yY(yY({},u),{},{tickCoord:p>0?u.coordinate-p*e:u.coordinate}),mY(e,u.tickCoord,function(){return d},l,c)&&(c=u.tickCoord-e*(d/2+a),o[s-1]=yY(yY({},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=yY(yY({},i),{},{tickCoord:u<0?i.coordinate-u*e:i.coordinate})}else o[t]=i=yY(yY({},i),{},{tickCoord:i.coordinate});mY(e,i.tickCoord,s,l,c)&&(l=i.tickCoord+e*(s()/2+a),o[t]=yY(yY({},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=yY(yY({},c),{},{tickCoord:d>0?c.coordinate-d*e:c.coordinate})}else i[t]=c=yY(yY({},c),{},{tickCoord:c.coordinate});mY(e,c.tickCoord,u,s,l)&&(l=c.tickCoord-e*(u()/2+a),i[t]=yY(yY({},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}))}uY(pY,"displayName","ReferenceArea"),uY(pY,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),uY(pY,"renderRect",function(e,t){return a.isValidElement(e)?a.cloneElement(e,t):qE(e)?e(t):a.createElement(AG,tY({},t,{className:"recharts-reference-area-rect"}))});var SY=["viewBox"],wY=["viewBox"],AY=["ticks"];function kY(e){return kY="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},kY(e)}function xY(){return xY=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},xY.apply(this,arguments)}function TY(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 OY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TY(Object(n),!0).forEach(function(t){PY(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _Y(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 IY(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,LY(r.key),r)}}function NY(e,t,n){return t=CY(t),function(e,t){if(t&&("object"===kY(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,RY()?Reflect.construct(t,n||[],CY(e).constructor):t.apply(e,n))}function RY(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(RY=function(){return!!e})()}function CY(e){return CY=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},CY(e)}function DY(e,t){return DY=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},DY(e,t)}function PY(e,t,n){return(t=LY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LY(e){var t=function(e,t){if("object"!=kY(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=kY(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==kY(t)?t:t+""}var MY=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=NY(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&&DY(e,t)}(e,v),t=e,n=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=_Y(e,SY),a=this.props,i=a.viewBox,o=_Y(a,wY);return!gA(n,i)||!gA(r,o)||!gA(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=iA(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,t=e.x,n=e.y,r=e.width,i=e.height,o=e.orientation,s=e.mirror,l=e.axisLine,c=OY(OY(OY({},MA(this.props,!1)),MA(l,!1)),{},{fill:"none"});if("top"===o||"bottom"===o){var u=+("top"===o&&!s||"bottom"===o&&s);c=OY(OY({},c),{},{x1:t,y1:n+u*i,x2:t+r,y2:n+u*i})}else{var d=+("left"===o&&!s||"right"===o&&s);c=OY(OY({},c),{},{x1:t+d*r,y1:n,x2:t+d*r,y2:n+i})}return a.createElement("line",xY({},c,{className:fE("recharts-cartesian-axis-line",Uw(l,"className"))}))}},{key:"renderTicks",value:function(t,n,r){var i=this,o=this.props,s=o.tickLine,l=o.stroke,c=o.tick,u=o.tickFormatter,d=o.unit,p=EY(OY(OY({},this.props),{},{ticks:t}),n,r),f=this.getTickTextAnchor(),g=this.getTickVerticalAnchor(),m=MA(this.props,!1),h=MA(c,!1),b=OY(OY({},m),{},{fill:"none"},MA(s,!1)),y=p.map(function(t,n){var r=i.getTickLineCoord(t),o=r.line,y=r.tick,v=OY(OY(OY(OY({textAnchor:f,verticalAnchor:g},m),{},{stroke:"none",fill:l},h),y),{},{index:n,payload:t,visibleTicksCount:p.length,tickFormatter:u});return a.createElement(WA,xY({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},SA(i.props,t,n)),s&&a.createElement("line",xY({},b,o,{className:fE("recharts-cartesian-axis-tick-line",Uw(s,"className"))})),c&&e.renderTickItem(c,v,"".concat(qE(u)?u(t.value,n):t.value).concat(d||"")))});return a.createElement("g",{className:"recharts-cartesian-axis-ticks"},y)}},{key:"render",value:function(){var e=this,t=this.props,n=t.axisLine,r=t.width,i=t.height,o=t.ticksGenerator,s=t.className;if(t.hide)return null;var l=this.props,c=l.ticks,u=_Y(l,AY),d=c;return qE(o)&&(d=c&&c.length>0?o(this.props):o(u)),r<=0||i<=0||!d||!d.length?null:a.createElement(WA,{className:fE("recharts-cartesian-axis",s),ref:function(t){e.layerReference=t}},n&&this.renderAxisLine(),this.renderTicks(d,this.state.fontSize,this.state.letterSpacing),CU.renderCallByParent(this.props))}}],r=[{key:"renderTickItem",value:function(e,t,n){var r=fE(t.className,"recharts-cartesian-axis-tick-value");return a.isValidElement(e)?a.cloneElement(e,OY(OY({},t),{},{className:r})):qE(e)?e(OY(OY({},t),{},{className:r})):a.createElement(rD,xY({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],n&&IY(t.prototype,n),r&&IY(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();PY(MY,"displayName","CartesianAxis"),PY(MY,"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 FY=["x1","y1","x2","y2","key"],jY=["offset"];function BY(e){return BY="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},BY(e)}function UY(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 zY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UY(Object(n),!0).forEach(function(t){$Y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $Y(e,t,n){var r;return r=function(e,t){if("object"!=BY(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=BY(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==BY(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GY(){return GY=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},GY.apply(this,arguments)}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}var HY=function(e){var t=e.fill;if(!t||"none"===t)return null;var n=e.fillOpacity,r=e.x,i=e.y,o=e.width,s=e.height,l=e.ry;return a.createElement("rect",{x:r,y:i,ry:l,width:o,height:s,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function VY(e,t){var n;if(a.isValidElement(e))n=a.cloneElement(e,t);else if(qE(e))n=e(t);else{var r=t.x1,i=t.y1,o=t.x2,s=t.y2,l=t.key,c=qY(t,FY),u=MA(c,!1);u.offset;var d=qY(u,jY);n=a.createElement("line",GY({},d,{x1:r,y1:i,x2:o,y2:s,fill:"none",key:l}))}return n}function WY(e){var t=e.x,n=e.width,r=e.horizontal,i=void 0===r||r,o=e.horizontalPoints;if(!i||!o||!o.length)return null;var s=o.map(function(r,a){var o=zY(zY({},e),{},{x1:t,y1:r,x2:t+n,y2:r,key:"line-".concat(a),index:a});return VY(i,o)});return a.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function YY(e){var t=e.y,n=e.height,r=e.vertical,i=void 0===r||r,o=e.verticalPoints;if(!i||!o||!o.length)return null;var s=o.map(function(r,a){var o=zY(zY({},e),{},{x1:r,y1:t,x2:r,y2:t+n,key:"line-".concat(a),index:a});return VY(i,o)});return a.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function KY(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,o=e.width,s=e.height,l=e.horizontalPoints,c=e.horizontal;if(!(void 0===c||c)||!t||!t.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%t.length;return a.createElement("rect",{key:"react-".concat(l),y:e,x:r,height:c,width:o,stroke:"none",fill:t[d],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return a.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function XY(e){var t=e.vertical,n=void 0===t||t,r=e.verticalFill,i=e.fillOpacity,o=e.x,s=e.y,l=e.width,c=e.height,u=e.verticalPoints;if(!n||!r||!r.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,t){var n=!d[t+1]?o+l-e:d[t+1]-e;if(n<=0)return null;var u=t%r.length;return a.createElement("rect",{key:"react-".concat(t),x:e,y:s,width:n,height:c,stroke:"none",fill:r[u],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return a.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},p)}var ZY=function(e,t){var n=e.xAxis,r=e.width,a=e.height,i=e.offset;return GB(EY(zY(zY(zY({},MY.defaultProps),n),{},{ticks:qB(n,!0),viewBox:{x:0,y:0,width:r,height:a}})),i.left,i.left+i.width,t)},QY=function(e,t){var n=e.yAxis,r=e.width,a=e.height,i=e.offset;return GB(EY(zY(zY(zY({},MY.defaultProps),n),{},{ticks:qB(n,!0),viewBox:{x:0,y:0,width:r,height:a}})),i.top,i.top+i.height,t)},JY={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function eK(e){var t,n,r,i,o,s,l,c,u=TW(),d=OW(),p=b(yW),f=zY(zY({},e),{},{stroke:null!==(t=e.stroke)&&void 0!==t?t:JY.stroke,fill:null!==(n=e.fill)&&void 0!==n?n:JY.fill,horizontal:null!==(r=e.horizontal)&&void 0!==r?r:JY.horizontal,horizontalFill:null!==(i=e.horizontalFill)&&void 0!==i?i:JY.horizontalFill,vertical:null!==(o=e.vertical)&&void 0!==o?o:JY.vertical,verticalFill:null!==(s=e.verticalFill)&&void 0!==s?s:JY.verticalFill,x:iA(e.x)?e.x:p.left,y:iA(e.y)?e.y:p.top,width:iA(e.width)?e.width:p.width,height:iA(e.height)?e.height:p.height}),g=f.x,m=f.y,h=f.width,y=f.height,v=f.syncWithTicks,E=f.horizontalValues,S=f.verticalValues,w=(l=b(mW),uA(l)),A=(c=b(hW),pW(c,function(e){return EV(e.domain,Number.isFinite)})||uA(c));if(!iA(h)||h<=0||!iA(y)||y<=0||!iA(g)||g!==+g||!iA(m)||m!==+m)return null;var k=f.verticalCoordinatesGenerator||ZY,x=f.horizontalCoordinatesGenerator||QY,T=f.horizontalPoints,O=f.verticalPoints;if((!T||!T.length)&&qE(x)){var _=E&&E.length,I=x({yAxis:A?zY(zY({},A),{},{ticks:_?E:A.ticks}):void 0,width:u,height:d,offset:p},!!_||v);KA(Array.isArray(I),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(BY(I),"]")),Array.isArray(I)&&(T=I)}if((!O||!O.length)&&qE(k)){var N=S&&S.length,R=k({xAxis:w?zY(zY({},w),{},{ticks:N?S:w.ticks}):void 0,width:u,height:d,offset:p},!!N||v);KA(Array.isArray(R),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(BY(R),"]")),Array.isArray(R)&&(O=R)}return a.createElement("g",{className:"recharts-cartesian-grid"},a.createElement(HY,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),a.createElement(WY,GY({},f,{offset:p,horizontalPoints:T,xAxis:w,yAxis:A})),a.createElement(YY,GY({},f,{offset:p,verticalPoints:O,xAxis:w,yAxis:A})),a.createElement(KY,GY({},f,{horizontalPoints:T})),a.createElement(XY,GY({},f,{verticalPoints:O})))}eK.displayName="CartesianGrid";var tK=["type","layout","connectNulls","ref"],nK=["key"];function rK(e){return rK="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},rK(e)}function aK(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 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){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 sK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oK(Object(n),!0).forEach(function(t){mK(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oK(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function lK(e){return function(e){if(Array.isArray(e))return cK(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 cK(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 cK(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 cK(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 uK(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,hK(r.key),r)}}function dK(e,t,n){return t=fK(t),function(e,t){if(t&&("object"===rK(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,pK()?Reflect.construct(t,n||[],fK(e).constructor):t.apply(e,n))}function pK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(pK=function(){return!!e})()}function fK(e){return fK=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fK(e)}function gK(e,t){return gK=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gK(e,t)}function mK(e,t,n){return(t=hK(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hK(e){var t=function(e,t){if("object"!=rK(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=rK(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==rK(t)?t:t+""}var bK=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 mK(t=dK(this,e,[].concat(r)),"state",{isAnimationFinished:!0,totalLength:0}),mK(t,"generateSimpleStrokeDasharray",function(e,t){return"".concat(t,"px ").concat(e-t,"px")}),mK(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(lK(a.slice(0,u)),[s-d]);break}var p=c.length%2==0?[0,l]:[l];return[].concat(lK(e.repeat(a,o)),lK(c),p).map(function(e){return"".concat(e,"px")}).join(", ")}),mK(t,"id",lA("recharts-line-")),mK(t,"pathRef",function(e){t.mainCurve=e}),mK(t,"handleAnimationEnd",function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()}),mK(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&&gK(e,t)}(e,s),t=e,n=[{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,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.points,i=n.xAxis,o=n.yAxis,s=n.layout,l=RA(n.children,xB);if(!l)return null;var c=function(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:FB(e.payload,t)}},u={clipPath:e?"url(#clipPath-".concat(t,")"):null};return a.createElement(WA,u,l.map(function(e){return a.cloneElement(e,{key:"bar-".concat(e.props.dataKey),data:r,xAxis:i,yAxis:o,layout:s,dataPointFormatter:c})}))}},{key:"renderDots",value:function(t,n,r){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.dot,s=i.points,l=i.dataKey,c=MA(this.props,!1),u=MA(o,!0),d=s.map(function(t,n){var r=sK(sK(sK({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:t?"url(#clipPath-".concat(n?"":"dots-").concat(r,")"):null};return a.createElement(WA,iK({className:"recharts-line-dots",key:"dots"},p),d)}},{key:"renderCurveStatically",value:function(e,t,n,r){var i=this.props,o=i.type,s=i.layout,l=i.connectNulls;i.ref;var c=aK(i,tK),u=sK(sK(sK({},MA(c,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:t?"url(#clipPath-".concat(n,")"):null,points:e},r),{},{type:o,layout:s,connectNulls:l});return a.createElement(fz,iK({},u,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,t){var n=this,r=this.props,i=r.points,o=r.strokeDasharray,s=r.isAnimationActive,l=r.animationBegin,c=r.animationDuration,u=r.animationEasing,d=r.animationId,p=r.animateNewValues,f=r.width,g=r.height,m=this.state,h=m.prevPoints,b=m.totalLength;return a.createElement(pG,{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(r){var a=r.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=dA(r.x,e.x),o=dA(r.y,e.y);return sK(sK({},e),{},{x:i(a),y:o(a)})}if(p){var l=dA(2*f,e.x),c=dA(g/2,e.y);return sK(sK({},e),{},{x:l(a),y:c(a)})}return sK(sK({},e),{},{x:e.x,y:e.y})});return n.renderCurveStatically(l,e,t)}var c,u=dA(0,b)(a);if(o){var d="".concat(o).split(/[,\s]+/gim).map(function(e){return parseFloat(e)});c=n.getStrokeDasharray(u,b,d)}else c=n.generateSimpleStrokeDasharray(b,u);return n.renderCurveStatically(i,e,t,{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||!sj(o,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var e,t=this.props,n=t.hide,r=t.dot,i=t.points,o=t.className,s=t.xAxis,l=t.yAxis,c=t.top,u=t.left,d=t.width,p=t.height,f=t.isAnimationActive,g=t.id;if(n||!i||!i.length)return null;var m=this.state.isAnimationFinished,h=1===i.length,b=fE("recharts-line",o),y=s&&s.allowDataOverflow,v=l&&l.allowDataOverflow,E=y||v,S=zw(g)?this.id:g,w=null!==(e=MA(r,!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=(LA(r)?r:{}).clipDot,_=void 0===O||O,I=2*k+T;return a.createElement(WA,{className:b},y||v?a.createElement("defs",null,a.createElement("clipPath",{id:"clipPath-".concat(S)},a.createElement("rect",{x:y?u:u-d/2,y:v?c:c-p/2,width:y?d:2*d,height:v?p:2*p})),!_&&a.createElement("clipPath",{id:"clipPath-dots-".concat(S)},a.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||r)&&this.renderDots(E,_,S),(!f||m)&&VU.renderCallByParent(this.props,i))}}],r=[{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(lK(e),[0]):e,r=[],a=0;a<t;++a)r=[].concat(lK(r),lK(n));return r}},{key:"renderDotItem",value:function(e,t){var n;if(a.isValidElement(e))n=a.cloneElement(e,t);else if(qE(e))n=e(t);else{var r=t.key,i=aK(t,nK),o=fE("recharts-line-dot","boolean"!=typeof e?e.className:"");n=a.createElement(DG,iK({key:r},i,{className:o}))}return n}}],n&&uK(t.prototype,n),r&&uK(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();mK(bK,"displayName","Line"),mK(bK,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!RR,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),mK(bK,"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=FB(e,o);return"horizontal"===u?{x:JB({axis:n,ticks:a,bandSize:s,entry:e,index:t}),y:zw(l)?null:r.scale(l),value:l,payload:e}:{x:zw(l)?null:n.scale(l),y:JB({axis:r,ticks:i,bandSize:s,entry:e,index:t}),value:l,payload:e}});return sK({points:d,layout:u},c)});var yK,vK=["layout","type","stroke","connectNulls","isRange","ref"],EK=["key"];function SK(e){return SK="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},SK(e)}function wK(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 AK(){return AK=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},AK.apply(this,arguments)}function kK(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 xK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kK(Object(n),!0).forEach(function(t){RK(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kK(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}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"===SK(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"!=SK(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=SK(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==SK(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}),RK(t,"id",lA("recharts-area-")),RK(t,"handleAnimationEnd",function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),qE(e)&&e()}),RK(t,"handleAnimationStart",function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),qE(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&&NK(e,t)}(e,s),t=e,n=[{key:"renderDots",value:function(t,n,r){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=MA(this.props,!1),p=MA(l,!0),f=c.map(function(t,n){var r=xK(xK(xK({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:t?"url(#clipPath-".concat(n?"":"dots-").concat(r,")"):null};return a.createElement(WA,AK({className:"recharts-area-dots"},g),f)}},{key:"renderHorizontalRect",value:function(e){var t=this.props,n=t.baseLine,r=t.points,i=t.strokeWidth,o=r[0].x,s=r[r.length-1].x,l=e*Math.abs(o-s),c=VF(r.map(function(e){return e.y||0}));return iA(n)&&"number"==typeof n?c=Math.max(n,c):n&&Array.isArray(n)&&n.length&&(c=Math.max(VF(n.map(function(e){return e.y||0})),c)),iA(c)?a.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 t=this.props,n=t.baseLine,r=t.points,i=t.strokeWidth,o=r[0].y,s=r[r.length-1].y,l=e*Math.abs(o-s),c=VF(r.map(function(e){return e.x||0}));return iA(n)&&"number"==typeof n?c=Math.max(n,c):n&&Array.isArray(n)&&n.length&&(c=Math.max(VF(n.map(function(e){return e.x||0})),c)),iA(c)?a.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,t,n,r){var i=this.props,o=i.layout,s=i.type,l=i.stroke,c=i.connectNulls,u=i.isRange;i.ref;var d=wK(i,vK);return a.createElement(WA,{clipPath:n?"url(#clipPath-".concat(r,")"):null},a.createElement(fz,AK({},MA(d,!0),{points:e,connectNulls:c,type:s,baseLine:t,layout:o,stroke:"none",className:"recharts-area-area"})),"none"!==l&&a.createElement(fz,AK({},MA(this.props,!1),{className:"recharts-area-curve",layout:o,type:s,connectNulls:c,fill:"none",points:e})),"none"!==l&&u&&a.createElement(fz,AK({},MA(this.props,!1),{className:"recharts-area-curve",layout:o,type:s,connectNulls:c,fill:"none",points:t})))}},{key:"renderAreaWithAnimation",value:function(e,t){var n=this,r=this.props,i=r.points,o=r.baseLine,s=r.isAnimationActive,l=r.animationBegin,c=r.animationDuration,u=r.animationEasing,d=r.animationId,p=this.state,f=p.prevPoints,g=p.prevBaseLine;return a.createElement(pG,{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(r){var s=r.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=dA(r.x,e.x),i=dA(r.y,e.y);return xK(xK({},e),{},{x:a(s),y:i(s)})}return e});return l=iA(o)&&"number"==typeof o?dA(g,o)(s):zw(o)||nA(o)?dA(g,0)(s):o.map(function(e,t){var n=Math.floor(t*c);if(g[n]){var r=g[n],a=dA(r.x,e.x),i=dA(r.y,e.y);return xK(xK({},e),{},{x:a(s),y:i(s)})}return e}),n.renderAreaStatically(u,l,e,t)}return a.createElement(WA,null,a.createElement("defs",null,a.createElement("clipPath",{id:"animationClipPath-".concat(t)},n.renderClipRect(s))),a.createElement(WA,{clipPath:"url(#animationClipPath-".concat(t,")")},n.renderAreaStatically(i,o,e,t)))})}},{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||!sj(s,r)||!sj(l,a))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,a,e,t)}},{key:"render",value:function(){var e,t=this.props,n=t.hide,r=t.dot,i=t.points,o=t.className,s=t.top,l=t.left,c=t.xAxis,u=t.yAxis,d=t.width,p=t.height,f=t.isAnimationActive,g=t.id;if(n||!i||!i.length)return null;var m=this.state.isAnimationFinished,h=1===i.length,b=fE("recharts-area",o),y=c&&c.allowDataOverflow,v=u&&u.allowDataOverflow,E=y||v,S=zw(g)?this.id:g,w=null!==(e=MA(r,!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=(LA(r)?r:{}).clipDot,_=void 0===O||O,I=2*k+T;return a.createElement(WA,{className:b},y||v?a.createElement("defs",null,a.createElement("clipPath",{id:"clipPath-".concat(S)},a.createElement("rect",{x:y?l:l-d/2,y:v?s:s-p/2,width:y?d:2*d,height:v?p:2*p})),!_&&a.createElement("clipPath",{id:"clipPath-dots-".concat(S)},a.createElement("rect",{x:l-I/2,y:s-I/2,width:d+I,height:p+I}))):null,h?null:this.renderArea(E,S),(r||h)&&this.renderDots(E,_,S),(!f||m)&&VU.renderCallByParent(this.props,i))}}],r=[{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}}],n&&TK(t.prototype,n),r&&TK(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function PK(e){return PK="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},PK(e)}function LK(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,zK(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function MK(e,t,n){return t=jK(t),function(e,t){if(t&&("object"===PK(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,FK()?Reflect.construct(t,n||[],jK(e).constructor):t.apply(e,n))}function FK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(FK=function(){return!!e})()}function jK(e){return jK=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},jK(e)}function BK(e,t){return BK=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},BK(e,t)}function UK(e,t,n){return(t=zK(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zK(e){var t=function(e,t){if("object"!=PK(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=PK(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==PK(t)?t:t+""}function $K(){return $K=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},$K.apply(this,arguments)}function GK(e){var t=e.xAxisId,n=TW(),a=OW(),i=kW(t);return null==i?null:r.createElement(MY,$K({},i,{className:fE("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:a},ticksGenerator:function(e){return qB(e,!0)}}))}yK=DK,RK(DK,"displayName","Area"),RK(DK,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!RR,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),RK(DK,"getBaseValue",function(e,t,n,r){var a=e.layout,i=e.baseValue,o=t.props.baseValue,s=null!=o?o:i;if(iA(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]}),RK(DK,"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=yK.getBaseValue(n,r,a,i),b="horizontal"===g,y=!1,v=p.map(function(e,t){var n;m?n=u[d+t]:(n=FB(e,c),Array.isArray(n)?y=!0:n=[h,n]);var r=null==n[1]||m&&null==FB(e,c);return b?{x:JB({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:JB({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),xK({points:v,baseLine:t,layout:g,isRange:y},f)}),RK(DK,"renderDotItem",function(e,t){var n;if(a.isValidElement(e))n=a.cloneElement(e,t);else if(qE(e))n=e(t);else{var r=fE("recharts-area-dot","boolean"!=typeof e?e.className:""),i=t.key,o=wK(t,EK);n=a.createElement(DG,AK({},o,{key:i,className:r}))}return n});var qK=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),MK(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&&BK(e,t)}(e,r.Component),LK(e,[{key:"render",value:function(){return r.createElement(GK,this.props)}}])}();function HK(e){return HK="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},HK(e)}function VK(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,QK(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function WK(e,t,n){return t=KK(t),function(e,t){if(t&&("object"===HK(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,YK()?Reflect.construct(t,n||[],KK(e).constructor):t.apply(e,n))}function YK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(YK=function(){return!!e})()}function KK(e){return KK=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},KK(e)}function XK(e,t){return XK=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},XK(e,t)}function ZK(e,t,n){return(t=QK(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QK(e){var t=function(e,t){if("object"!=HK(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=HK(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==HK(t)?t:t+""}function JK(){return JK=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},JK.apply(this,arguments)}UK(qK,"displayName","XAxis"),UK(qK,"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 eX=function(e){var t=e.yAxisId,n=TW(),a=OW(),i=xW(t);return null==i?null:r.createElement(MY,JK({},i,{className:fE("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:a},ticksGenerator:function(e){return qB(e,!0)}}))},tX=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),WK(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&&XK(e,t)}(e,r.Component),VK(e,[{key:"render",value:function(){return r.createElement(eX,this.props)}}])}();function nX(e){return function(e){if(Array.isArray(e))return rX(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 rX(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 rX(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 rX(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}ZK(tX,"displayName","YAxis"),ZK(tX,"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 aX=function(e,t,n,r,a){var i=RA(e,$W),o=RA(e,eY),s=[].concat(nX(i),nX(o)),l=RA(e,pY),c="".concat(r,"Id"),u=r[0],d=t;if(s.length&&(d=s.reduce(function(e,t){if(t.props[c]===n&&iV(t.props,"extendDomain")&&iA(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&&iV(t.props,"extendDomain")&&iA(t.props[p])&&iA(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 iA(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e},d)),d},iX={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}(iX);var oX=new(0,iX.exports),sX="recharts.syncMouseEvents";function lX(e){return lX="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},lX(e)}function cX(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,dX(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function uX(e,t,n){return(t=dX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dX(e){var t=function(e,t){if("object"!=lX(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=lX(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==lX(t)?t:t+""}var pX=function(){return cX(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),uX(this,"activeIndex",0),uX(this,"coordinateList",[]),uX(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 fX(e){var t=e.cx,n=e.cy,r=e.radius,a=e.startAngle,i=e.endAngle;return{points:[hU(t,n,r,a),hU(t,n,r,i)],cx:t,cy:n,radius:r,startAngle:a,endAngle:i}}function gX(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 fX(t);var s=t.cx,l=t.cy,c=t.innerRadius,u=t.outerRadius,d=t.angle,p=hU(s,l,c,d),f=hU(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 mX(e){return mX="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},mX(e)}function hX(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 bX(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hX(Object(n),!0).forEach(function(t){yX(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hX(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yX(e,t,n){var r;return r=function(e,t){if("object"!=mX(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=mX(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==mX(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vX(e){var t,n,r,a=e.element,o=e.tooltipEventType,s=e.isActive,l=e.activeCoordinate,c=e.activePayload,u=e.offset,d=e.activeTooltipIndex,p=e.tooltipAxisBandSize,f=e.layout,g=e.chartName,b=null!==(t=a.props.cursor)&&void 0!==t?t:null===(n=a.type.defaultProps)||void 0===n?void 0:n.cursor;if(!a||!b||!s||!l||"ScatterChart"!==g&&"axis"!==o)return null;var y=fz;if("ScatterChart"===g)r=l,y=zG;else if("BarChart"===g)r=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}}(f,l,u,p),y=AG;else if("radial"===f){var v=fX(l),E=v.cx,S=v.cy,w=v.radius;r={cx:E,cy:S,startAngle:v.startAngle,endAngle:v.endAngle,innerRadius:w,outerRadius:w},y=tz}else r={points:gX(f,l,u)},y=fz;var A=bX(bX(bX(bX({stroke:"#ccc",pointerEvents:"none"},u),r),MA(b,!1)),{},{payload:c,payloadIndex:d,className:fE("recharts-tooltip-cursor",b.className)});return i(b)?m(b,A):h(y,A)}var EX=["item"],SX=["children","className","width","height","style","compact","title","desc"];function wX(e){return wX="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},wX(e)}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 kX(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)||CX(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 xX(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 TX(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,FX(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function OX(e,t,n){return t=IX(t),function(e,t){if(t&&("object"===wX(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,_X()?Reflect.construct(t,n||[],IX(e).constructor):t.apply(e,n))}function _X(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_X=function(){return!!e})()}function IX(e){return IX=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},IX(e)}function NX(e,t){return NX=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},NX(e,t)}function RX(e){return function(e){if(Array.isArray(e))return DX(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||CX(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 CX(e,t){if(e){if("string"==typeof e)return DX(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)?DX(e,t):void 0}}function DX(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 PX(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 LX(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PX(Object(n),!0).forEach(function(t){MX(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PX(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function MX(e,t,n){return(t=FX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FX(e){var t=function(e,t){if("object"!=wX(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=wX(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==wX(t)?t:t+""}var jX={xAxis:["bottom","top"],yAxis:["left","right"]},BX={width:"100%",height:"100%"},UX={x:0,y:0};function zX(e){return e}var $X=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(RX(e),RX(n)):e},[]);return i.length>0?i:e&&e.length&&iA(r)&&iA(a)?e.slice(r,a+1):[]};function GX(e){return"number"===e?[0,"auto"]:void 0}var qX=function(e,t,n,r){var a=e.graphicalItems,i=e.tooltipAxis,o=$X(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=pA(void 0===u?o:u,i.dataKey,r):c=u&&u[n]||o[n];return c?[].concat(RX(a),[sU(s,c)]):a},[])},HX=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(rA(u-c)!==rA(d-u)){var f=[];if(rA(d-u)===rA(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=qX(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 LX(LX(LX({},r),hU(r.cx,r.cy,o,i)),{},{angle:i,radius:o})}var s=a.coordinate,l=r.angle;return LX(LX(LX({},r),hU(r.cx,r.cy,s,l)),{},{angle:l,radius:s})}return UX}(n,o,c,a);return{activeTooltipIndex:c,activeLabel:u,activePayload:d,activeCoordinate:p}}return null},VX=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=$B(c,a);return n.reduce(function(t,n){var f,g=void 0!==n.type.defaultProps?LX(LX({},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=$X(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&&iA(r)&&iA(a))return!0}return!1})(g.domain,b,m)&&(A=aU(g.domain,null,b),!p||"number"!==m&&"auto"===v||(x=jB(T,h,"category")));var _=GX(m);if(!A||0===A.length){var I,N=null!==(I=g.domain)&&void 0!==I?I:_;if(h){if(A=jB(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=CH(0,O)):y||(A=oU(N,A,n).reduce(function(e,t){return e.indexOf(t)>=0?e:[].concat(RX(e),[t])},[]))}else if("category"===m)A=y?A.filter(function(e){return""!==e&&!zw(e)}):oU(N,A,n).reduce(function(e,t){return e.indexOf(t)>=0||""===t||zw(t)?e:[].concat(RX(e),[t])},[]);else if("number"===m){var C=function(e,t,n,r,a){var i=t.map(function(t){return UB(e,t,n,a,r)}).filter(function(e){return!zw(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=jB(T,h,"category"))}else A=p?CH(0,O):o&&o[w]&&o[w].hasStack&&"number"===m?"expand"===d?[0,1]:tU(o[w].stackGroups,s,l):zB(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=aX(u,A,w,a,E),N&&(A=aU(N,A,b));else if("category"===m&&N){var D=N;A.every(function(e){return D.indexOf(e)>=0})&&(A=D)}}return LX(LX({},t),{},MX({},w,LX(LX({},g),{},{axisType:a,domain:A,categoricalDomain:x,duplicateDomain:k,originalDomain:null!==(f=g.domain)&&void 0!==f?f:_,isCategorical:p,layout:c})))},{})},WX=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=RA(c,a),p={};return d&&d.length?p=VX(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=$X(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:l}),p=d.length,f=$B(c,a),g=-1;return n.reduce(function(e,t){var m,h=(void 0!==t.type.defaultProps?LX(LX({},t.type.defaultProps),t.props):t.props)[i],b=GX("number");return e[h]?e:(g++,f?m=CH(0,p):o&&o[h]&&o[h].hasStack?(m=tU(o[h].stackGroups,s,l),m=aX(u,m,h,a)):(m=aU(b,zB(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=aX(u,m,h,a)),LX(LX({},e),{},MX({},h,LX(LX({axisType:a},r.defaultProps),{},{hide:!0,orientation:Uw(jX,"".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},YX=function(e){var t=e.children,n=e.defaultShowTooltip,r=CA(t,XH),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)}},KX=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"}},XX=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=CA(c,XH),p=CA(c,aN),f=Object.keys(o).reduce(function(e,t){var n=o[t],r=n.orientation;return n.mirror||n.hide?e:LX(LX({},e),{},MX({},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:LX(LX({},e),{},MX({},r,Uw(e,"".concat(r))+n.height))},{top:u.top||0,bottom:u.bottom||0}),m=LX(LX({},g),f),h=m.bottom;d&&(m.bottom+=d.props.height||XH.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=NB({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&&iA(e[p]))return LB(LB({},e),{},MB({},p,e[p]+(u||0)));if(("horizontal"===g||"vertical"===g&&"center"===p)&&"middle"!==f&&iA(e[f]))return LB(LB({},e),{},MB({},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 LX(LX({brushBottom:h},m),{},{width:Math.max(b,0),height:Math.max(y,0)})},ZX=function(e,t){return"xAxis"===t?e[t].width:"yAxis"===t?e[t].height:void 0},QX=function(e){var t=e.chartName,n=e.GraphicalChild,r=e.defaultTooltipEventType,o=void 0===r?"axis":r,s=e.validateTooltipEventTypes,c=void 0===s?["axis"]:s,u=e.axisComponents,d=e.legendContent,p=e.formatAxisMap,f=e.defaultProps,g=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=KX(c),m=g.numericAxisName,h=g.cateAxisName,b=function(e){return!(!e||!e.length)&&e.some(function(e){var t=OA(e&&e.type);return t&&t.indexOf("Bar")>=0})}(n),y=[];return n.forEach(function(n,g){var v=$X(e.data,{graphicalItems:[n],dataStartIndex:o,dataEndIndex:s}),E=void 0!==n.type.defaultProps?LX(LX({},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?dB(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:"")):dB());var l=o[s];return LX(LX({},e),{},MX(MX({},r.axisType,l),"".concat(r.axisType,"Ticks"),qB(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?LB(LB({},e.type.defaultProps),e.props):e.props).stackId;if(oA(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=OA(n.type).indexOf("Bar")>=0,N=iU(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 OA(e.type).indexOf("Bar")>=0});if(h&&h.length){var b=h[0].type.defaultProps,y=void 0!==b?LB(LB({},b),h[0].props):h[0].props,v=y.barSize,E=y[m];i[E]||(i[E]=[]);var S=zw(v)?t:v;i[E].push({item:h[0],stackList:h.slice(1),barSize:zw(S)?void 0:cA(S,n,0)})}}return i}({barSize:l,stackGroups:r,totalSize:ZX(x,h)});if(I){var D,P,L=zw(w)?f:w,M=null!==(D=null!==(P=iU(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=cA(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(CB(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=cA(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(CB(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 LX(LX({},e),{},{position:LX(LX({},e.position),{},{offset:e.position.offset-M/2})})}))}var F,j,B=n&&n.type&&n.type.getComposedData;B&&y.push({props:LX(LX({},B(LX(LX({},x),{},{displayedData:v,props:e,dataKey:S,item:n,bandSize:N,barPosition:R,offset:a,stackedData:_,layout:c,dataStartIndex:o,dataEndIndex:s}))),{},MX(MX(MX({key:n.key||"item-".concat(g)},m,x[m]),h,x[h]),"animationId",i)),childIndex:(F=n,j=e.children,NA(j).indexOf(F)),item:n})}),y},h=function(e,r){var a=e.props,i=e.dataStartIndex,o=e.dataEndIndex,s=e.updateId;if(!DA({props:a}))return null;var l=a.children,c=a.layout,d=a.stackOffset,f=a.data,m=a.reverseStackOrder,h=KX(c),b=h.numericAxisName,y=h.cateAxisName,v=RA(l,n),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?LB(LB({},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(oA(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[lA("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return LB(LB({},e),{},MB({},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 LB(LB({},t),{},MB({},i,{numericAxisId:n,cateAxisId:r,items:o.items,stackedData:ZB(e,o.items,a)}))},{})),LB(LB({},t),{},MB({},i,s))},{})}(f,v,"".concat(b,"Id"),"".concat(y,"Id"),d,m),S=u.reduce(function(e,t){var n="".concat(t.axisType,"Map");return LX(LX({},e),{},MX({},n,WX(a,LX(LX({},t),{},{graphicalItems:v,stackGroups:t.axisType===b&&E,dataStartIndex:i,dataEndIndex:o}))))},{}),w=XX(LX(LX({},S),{},{props:a,graphicalItems:v}),null==r?void 0:r.legendBBox);Object.keys(S).forEach(function(e){S[e]=p(a,S[e],w,e.replace("Map",""),t)});var A,k,x=S["".concat(y,"Map")],T=(A=uA(x),{tooltipTicks:k=qB(A,!1,!0),orderedTooltipTicks:aR(k,function(e){return e.coordinate}),tooltipAxis:A,tooltipAxisBandSize:iU(A,k)}),O=g(a,LX(LX({},S),{},{dataStartIndex:i,dataEndIndex:o,updateId:s,graphicalItems:v,stackGroups:E,offset:w}));return LX(LX({formattedGraphicalItems:O,graphicalItems:v,offset:w,stackGroups:E},T),S)},b=function(){function e(n){var r,i,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),MX(o=OX(this,e,[n]),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),MX(o,"accessibilityManager",new pX),MX(o,"handleLegendBBoxUpdate",function(e){if(e){var t=o.state,n=t.dataStartIndex,r=t.dataEndIndex,a=t.updateId;o.setState(LX({legendBBox:e},h({props:o.props,dataStartIndex:n,dataEndIndex:r,updateId:a},LX(LX({},o.state),{},{legendBBox:e}))))}}),MX(o,"handleReceiveSyncEvent",function(e,t,n){if(o.props.syncId===e){if(n===o.eventEmitterSymbol&&"function"!=typeof o.props.syncMethod)return;o.applySyncEvent(t)}}),MX(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 LX({dataStartIndex:t,dataEndIndex:n},h({props:o.props,dataStartIndex:t,dataEndIndex:n,updateId:r},o.state))}),o.triggerSyncEvent({dataStartIndex:t,dataEndIndex:n})}}),MX(o,"handleMouseEnter",function(e){var t=o.getMouseInfo(e);if(t){var n=LX(LX({},t),{},{isTooltipActive:!0});o.setState(n),o.triggerSyncEvent(n);var r=o.props.onMouseEnter;qE(r)&&r(n,e)}}),MX(o,"triggeredAfterMouseMove",function(e){var t=o.getMouseInfo(e),n=t?LX(LX({},t),{},{isTooltipActive:!0}):{isTooltipActive:!1};o.setState(n),o.triggerSyncEvent(n);var r=o.props.onMouseMove;qE(r)&&r(n,e)}),MX(o,"handleItemMouseEnter",function(e){o.setState(function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}})}),MX(o,"handleItemMouseLeave",function(){o.setState(function(){return{isTooltipActive:!1}})}),MX(o,"handleMouseMove",function(e){e.persist(),o.throttleTriggeredAfterMouseMove(e)}),MX(o,"handleMouseLeave",function(e){o.throttleTriggeredAfterMouseMove.cancel();var t={isTooltipActive:!1};o.setState(t),o.triggerSyncEvent(t);var n=o.props.onMouseLeave;qE(n)&&n(t,e)}),MX(o,"handleOuterEvent",function(e){var t,n=function(e){var t=e&&e.type;return t&&TA[t]?TA[t]:null}(e),r=Uw(o.props,"".concat(n));n&&qE(r)&&r(null!==(t=/.*touch.*/i.test(n)?o.getMouseInfo(e.changedTouches[0]):o.getMouseInfo(e))&&void 0!==t?t:{},e)}),MX(o,"handleClick",function(e){var t=o.getMouseInfo(e);if(t){var n=LX(LX({},t),{},{isTooltipActive:!0});o.setState(n),o.triggerSyncEvent(n);var r=o.props.onClick;qE(r)&&r(n,e)}}),MX(o,"handleMouseDown",function(e){var t=o.props.onMouseDown;qE(t)&&t(o.getMouseInfo(e),e)}),MX(o,"handleMouseUp",function(e){var t=o.props.onMouseUp;qE(t)&&t(o.getMouseInfo(e),e)}),MX(o,"handleTouchMove",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&o.throttleTriggeredAfterMouseMove(e.changedTouches[0])}),MX(o,"handleTouchStart",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&o.handleMouseDown(e.changedTouches[0])}),MX(o,"handleTouchEnd",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&o.handleMouseUp(e.changedTouches[0])}),MX(o,"handleDoubleClick",function(e){var t=o.props.onDoubleClick;qE(t)&&t(o.getMouseInfo(e),e)}),MX(o,"handleContextMenu",function(e){var t=o.props.onContextMenu;qE(t)&&t(o.getMouseInfo(e),e)}),MX(o,"triggerSyncEvent",function(e){void 0!==o.props.syncId&&oX.emit(sX,o.props.syncId,e,o.eventEmitterSymbol)}),MX(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(LX({dataStartIndex:i,dataEndIndex:s},h({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=LX(LX({},p),{},{x:p.left,y:p.top}),b=Math.min(l,m.x+m.width),y=Math.min(c,m.y+m.height),v=f[u]&&f[u].value,E=qX(o.state,o.props.data,u),S=f[u]?{x:"horizontal"===n?f[u].coordinate:b,y:"horizontal"===n?y:f[u].coordinate}:UX;o.setState(LX(LX({},e),{},{activeLabel:v,activeCoordinate:S,activePayload:E,activeTooltipIndex:u}))}else o.setState(e)}),MX(o,"renderCursor",function(e){var n,r=o.state,i=r.isTooltipActive,s=r.activeCoordinate,l=r.activePayload,c=r.offset,u=r.activeTooltipIndex,d=r.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 a.createElement(vX,{key:m,activeCoordinate:s,activePayload:l,activeTooltipIndex:u,chartName:t,element:e,isActive:f,layout:g,offset:c,tooltipAxisBandSize:d,tooltipEventType:p})}),MX(o,"renderPolarAxis",function(e,t,n){var r=Uw(e,"type.axisType"),a=Uw(o.state,"".concat(r,"Map")),i=e.type.defaultProps,s=void 0!==i?LX(LX({},i),e.props):e.props,l=a&&a[s["".concat(r,"Id")]];return m(e,LX(LX({},l),{},{className:fE(r,l.className),key:e.key||"".concat(t,"-").concat(n),ticks:qB(l,!0)}))}),MX(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=uA(s),u=uA(l),d=u.cx,p=u.cy,f=u.innerRadius,g=u.outerRadius;return m(e,{polarAngles:Array.isArray(r)?r:qB(u,!0).map(function(e){return e.coordinate}),polarRadius:Array.isArray(a)?a:qB(c,!0).map(function(e){return e.coordinate}),cx:d,cy:p,innerRadius:f,outerRadius:g,key:e.key||"polar-grid",radialLines:n})}),MX(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=NB({children:n,formattedGraphicalItems:e,legendWidth:s,legendContent:d});if(!l)return null;var c=l.item,u=xX(l,EX);return m(c,LX(LX({},u),{},{chartWidth:r,chartHeight:a,margin:i,onBBoxUpdate:o.handleLegendBBoxUpdate}))}),MX(o,"renderTooltip",function(){var e,t=o.props,n=t.children,r=t.accessibilityLayer,a=CA(n,GR);if(!a)return null;var i=o.state,s=i.isTooltipActive,l=i.activeCoordinate,c=i.activePayload,u=i.activeLabel,d=i.offset,p=null!==(e=a.props.active)&&void 0!==e?e:s;return m(a,{viewBox:LX(LX({},d),{},{x:d.left,y:d.top}),active:p,label:u,payload:p?c:[],coordinate:l,accessibilityLayer:r})}),MX(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 m(e,{key:e.key||"_recharts-brush",onChange:VB(o.handleBrushChange,e.props.onChange),data:r,x:iA(e.props.x)?e.props.x:i.left,y:iA(e.props.y)?e.props.y:i.top+i.height+i.brushBottom-(n.bottom||0),width:iA(e.props.width)?e.props.width:i.width,startIndex:s,endIndex:l,updateId:"brush-".concat(c)})}),MX(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,p=void 0===d?c.xAxisId:d,f=u.yAxisId,g=void 0===f?c.yAxisId:f;return m(e,{key:e.key||"".concat(t,"-").concat(n),xAxis:i[p],yAxis:s[g],viewBox:{x:l.left,y:l.top,width:l.width,height:l.height},clipPathId:r})}),MX(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?LX(LX({},n.item.type.defaultProps),n.item.props):n.item.props,u=c.activeDot,d=LX(LX({index:i,dataKey:c.dataKey,cx:r.x,cy:r.y,r:4,fill:BB(n.item),strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value},MA(u,!1)),EA(u));return s.push(e.renderActiveDot(u,d,"".concat(l,"-activePoint-").concat(i))),a?s.push(e.renderActiveDot(u,LX(LX({},d),{},{cx:a.x,cy:a.y}),"".concat(l,"-basePoint-").concat(i))):o&&s.push(null),s}),MX(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=CA(o.props.children,GR),p=r.props,f=p.points,g=p.isRange,h=p.baseLine,b=void 0!==r.item.type.defaultProps?LX(LX({},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:VB(o.handleItemMouseEnter,e.props.onClick)}:"axis"!==a&&(A={onMouseLeave:VB(o.handleItemMouseLeave,e.props.onMouseLeave),onMouseEnter:VB(o.handleItemMouseEnter,e.props.onMouseEnter)});var k=m(e,LX(LX({},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=LX(LX(LX({},r.props),A),{},{activeIndex:I});return[m(_,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=pA(f,D,u),C=g&&h&&pA(h,D,u)}else R=null==f?void 0:f[c],C=g&&h&&h[c];if(S||E){var P=void 0!==e.props.activeIndex?e.props.activeIndex:c;return[m(e,LX(LX(LX({},r.props),A),{},{activeIndex:P})),null,null]}if(!zw(R))return[k].concat(RX(o.renderActivePoints({item:r,activePoint:R,basePoint:C,childIndex:c,isRange:g})))}return g?[k,null,null]:[k,null]}),MX(o,"renderCustomized",function(e,t,n){return m(e,LX(LX({key:"recharts-customized-".concat(n)},o.props),o.state))}),MX(o,"renderMap",{CartesianGrid:{handler:zX,once:!0},ReferenceArea:{handler:o.renderReferenceElement},ReferenceLine:{handler:zX},ReferenceDot:{handler:o.renderReferenceElement},XAxis:{handler:zX},YAxis:{handler:zX},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!==(r=n.id)&&void 0!==r?r:lA("recharts"),"-clip"),o.throttleTriggeredAfterMouseMove=pC(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&&NX(e,t)}(e,v),TX(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=CA(t,GR);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=qX(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=LX(LX({},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){FA([CA(e.children,GR)],[CA(this.props.children,GR)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=CA(this.props.children,GR);if(e&&"boolean"==typeof e.props.shared){var t=e.props.shared?"axis":"item";return c.indexOf(t)>=0?t:o}return o}},{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=HX(this.state,this.props.data,this.props.layout,o);if("axis"!==u&&l&&c){var p=uA(l).scale,f=uA(c).scale,g=p&&p.invert?p.invert(a.chartX):null,m=f&&f.invert?f.invert(a.chartY):null;return LX(LX({},a),{},{xValue:g,yValue:m},d)}return d?LX(LX({},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=uA(l);return EU({x:a,y:i},u)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=CA(e,GR),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}),LX(LX({},EA(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){oX.on(sX,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){oX.removeListener(sX,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===OA(o.item.type)&&n===o.childIndex)return o}return null}},{key:"renderClipPath",value:function(){var e=this.clipPathId,t=this.state.offset,n=t.left,r=t.top,i=t.height,o=t.width;return a.createElement("defs",null,a.createElement("clipPath",{id:e},a.createElement("rect",{x:n,y:r,height:i,width:o})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce(function(e,t){var n=kX(t,2),r=n[0],a=n[1];return LX(LX({},e),{},MX({},r,a.scale))},{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce(function(e,t){var n=kX(t,2),r=n[0],a=n[1];return LX(LX({},e),{},MX({},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?LX(LX({},l.type.defaultProps),l.props):l.props,u=OA(l.type);if("Bar"===u){var d=(s.data||[]).find(function(t){return SG(e,t)});if(d)return{graphicalItem:o,payload:d}}else if("RadialBar"===u){var p=(s.data||[]).find(function(t){return EU(e,t)});if(p)return{graphicalItem:o,payload:p}}else if(aH(o,r)||iH(o,r)||oH(o,r)){var f=uH({graphicalItem:o,activeTooltipItem:r,itemData:c.data}),g=void 0===c.activeIndex?f:c.activeIndex;return{graphicalItem:LX(LX({},o),{},{childIndex:g}),payload:oH(o,r)?c.data[f]:o.props.data[f]}}}return null}},{key:"render",value:function(){var e=this;if(!DA(this))return null;var t,n,r=this.props,i=r.children,o=r.className,s=r.width,l=r.height,c=r.style,u=r.compact,d=r.title,p=r.desc,f=xX(r,SX),g=MA(f,!1);if(u)return a.createElement(wW,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},a.createElement(GA,AX({},g,{width:s,height:l,title:d,desc:p}),this.renderClipPath(),BA(i,this.renderMap)));this.props.accessibilityLayer&&(g.tabIndex=null!==(t=this.props.tabIndex)&&void 0!==t?t:0,g.role=null!==(n=this.props.role)&&void 0!==n?n:"application",g.onKeyDown=function(t){e.accessibilityManager.keyboardEvent(t)},g.onFocus=function(){e.accessibilityManager.focus()});var m=this.parseEventsOfWrapper();return a.createElement(wW,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},a.createElement("div",AX({className:fE("recharts-wrapper",o),style:LX({position:"relative",cursor:"default",width:s,height:l},c)},m,{ref:function(t){e.container=t}}),a.createElement(GA,AX({},g,{width:s,height:l,title:d,desc:p,style:BX}),this.renderClipPath(),BA(i,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}();MX(b,"displayName",t),MX(b,"defaultProps",LX({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),MX(b,"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=YX(e);return LX(LX(LX({},p),{},{updateId:0},h(LX(LX({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||!gA(c,t.prevMargin)){var f=YX(e),g={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},m=LX(LX({},HX(t,r,s)),{},{updateId:t.updateId+1}),b=LX(LX(LX({},f),g),m);return LX(LX(LX({},b),h(LX({props:e},b),t)),{},{prevDataKey:n,prevData:r,prevWidth:i,prevHeight:o,prevLayout:s,prevStackOffset:l,prevMargin:c,prevChildren:a})}if(!FA(a,t.prevChildren)){var y,v,E,S,w=CA(a,XH),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=!zw(r)&&!x?t.updateId:t.updateId+1;return LX(LX({updateId:T},h(LX(LX({props:e},t),{},{updateId:T,dataStartIndex:A,dataEndIndex:k}),t)),{},{prevChildren:a,dataStartIndex:A,dataEndIndex:k})}return null}),MX(b,"renderActiveDot",function(e,t,n){var r;return r=i(e)?m(e,t):qE(e)?e(t):a.createElement(DG,t),a.createElement(WA,{className:"recharts-active-dot",key:n},r)});var y=l(function(e,t){return a.createElement(b,AX({},e,{ref:t}))});return y.displayName=b.displayName,y},JX=QX({chartName:"LineChart",GraphicalChild:bK,axisComponents:[{axisType:"xAxis",AxisComp:qK},{axisType:"yAxis",AxisComp:tX}],formatAxisMap:QV}),eZ=QX({chartName:"BarChart",GraphicalChild:HV,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:qK},{axisType:"yAxis",AxisComp:tX}],formatAxisMap:QV}),tZ=QX({chartName:"PieChart",GraphicalChild:wH,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:kq},{axisType:"radiusAxis",AxisComp:uq}],formatAxisMap:function(e,t,n,r,a){var i=e.width,o=e.height,s=e.startAngle,l=e.endAngle,c=cA(e.cx,i,i/2),u=cA(e.cy,o,o/2),d=bU(i,o,n),p=cA(e.innerRadius,d,0),f=cA(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(zw(o.range))"angleAxis"===r?i=[s,l]:"radiusAxis"===r&&(i=[p,f]),g&&(i=[i[1],i[0]]);else{var m=pU(i=o.range,2);s=m[0],l=m[1]}var h=WB(o,a),b=h.realScaleType,y=h.scale;y.domain(d).range(i),KB(y);var v=QB(y,uU(uU({},o),{},{realScaleType:b})),E=uU(uU(uU({},o),v),{},{range:i,radius:f,realScaleType:b,scale:y,cx:c,cy:u,innerRadius:p,outerRadius:f,startAngle:s,endAngle:l});return uU(uU({},e),{},dU({},n,E))},{})},defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),nZ=QX({chartName:"AreaChart",GraphicalChild:DK,axisComponents:[{axisType:"xAxis",AxisComp:qK},{axisType:"yAxis",AxisComp:tX}],formatAxisMap:QV});function rZ(e){return e>=1e6?"".concat((e/1e6).toFixed(1),"M"):e>=1e3?"".concat((e/1e3).toFixed(1),"k"):String(e)}const aZ=/(^|[_\W])(price|salary|cost|amount|revenue|expense|total|value|budget|spend|income|sale|balance)/i;function iZ(e){return"string"==typeof e&&aZ.test(e)}function oZ(e){return"$".concat(rZ(e))}function sZ(e){return"$".concat(Number(e).toLocaleString("en-US",{maximumFractionDigits:2}))}function lZ(e){let{props:t,isDark:n=!1}=e;const r=Array.isArray(t.data)?t.data:[],a=iZ(t.yKey),i=t.valueLabel||void 0,o=n?"#374151":"#e2e8f0",s=n?"#1f2937":"#ffffff",l=n?"#9ca3af":"#64748b",c=n?"#f3f4f6":"#0f172a",u=n?"#374151":"#e2e8f0",d=n?"#111827":"#ffffff";if(0===r.length)return E("div",{style:{borderRadius:8,border:"1px solid ".concat(o),background:s,padding:12,margin:"8px 0"},children:[t.title&&S("div",{style:{fontSize:13,fontWeight:600,color:c,marginBottom:8},children:t.title}),S("div",{style:{color:l,fontSize:12},children:"No chartable data"})]});const p=r.some(e=>{var t;return String(null!==(t=e.label)&&void 0!==t?t:"").length>10}),f=p?-35:0,g=p?"end":"middle",m=p?48:20,h=p?250:220;return E("div",{style:{borderRadius:8,border:"1px solid ".concat(o),background:s,padding:12,margin:"8px 0"},children:[t.title&&S("h3",{style:{fontSize:13,fontWeight:600,color:c,marginBottom:8,marginTop:0},children:t.title}),S("div",{style:{height:h,width:"100%"},children:S(vC,{width:"100%",height:"100%",children:E(eZ,{data:r,margin:{top:16,right:12,left:12,bottom:m},children:[S(eK,{strokeDasharray:"3 3",stroke:u}),S(qK,{dataKey:"label",tick:{fontSize:11,fill:l},angle:f,textAnchor:g,interval:0,tickFormatter:e=>String(null!=e?e:"").replace(/[_\-]+/g," ").replace(/\b\w/g,e=>e.toUpperCase()),label:t.xAxisLabel?{value:t.xAxisLabel,position:"insideBottom",offset:-12,fontSize:11,fill:l}:void 0}),S(tX,{width:72,tick:{fontSize:11,fill:l},label:t.yAxisLabel?{value:t.yAxisLabel,angle:-90,position:"insideLeft",fontSize:11,fill:l}:void 0,tickFormatter:e=>a?oZ(e):t.unit?"".concat(rZ(e)," ").concat(t.unit):rZ(e)}),S(GR,{formatter:e=>a?sZ(e):t.unit?"".concat(Number(e).toLocaleString()," ").concat(t.unit):Number(e).toLocaleString(),contentStyle:{background:d,border:"1px solid ".concat(o),borderRadius:6,fontSize:12,color:c}}),S(HV,{dataKey:"value",name:i,fill:"#3b82f6",radius:[2,2,0,0],label:{position:"top",fill:l,fontSize:10,formatter:e=>a?oZ(e):rZ(e)}})]})})})]})}function cZ(e){let{props:t,isDark:n=!1}=e;const r=t.trend,a="up"===r?"#059669":"down"===r?"#e11d48":"#64748b",i="up"===r?"↑":"down"===r?"↓":"flat"===r?"→":null,o=n?"#1f2937":"#ffffff",s=n?"#f3f4f6":"#0f172a";return E("div",{style:{borderRadius:8,border:"1px solid ".concat(n?"#374151":"#e2e8f0"),background:o,padding:12,margin:"8px 0"},children:[S("p",{style:{fontSize:11,fontWeight:500,color:"#64748b",textTransform:"uppercase",letterSpacing:"0.05em",margin:0},children:t.label}),S("p",{style:{marginTop:4,fontSize:28,fontWeight:700,color:s,lineHeight:1.1,marginBottom:0},children:t.value}),t.change&&E("p",{style:{marginTop:4,fontSize:12,color:a,marginBottom:0},children:[i&&S("span",{style:{marginRight:4},children:i}),t.change]})]})}const uZ=["#3b82f6","#10b981","#f59e0b","#ef4444","#8b5cf6","#ec4899","#14b8a6","#f97316","#6366f1","#84cc16","#06b6d4","#a855f7"];function dZ(e){let{props:t,isDark:n=!1,donut:r=!1}=e;const a=Array.isArray(t.data)?t.data:[],i=iZ(t.yKey),o=n?"#374151":"#e2e8f0",s=n?"#1f2937":"#ffffff",l=n?"#f3f4f6":"#0f172a",c=n?"#111827":"#ffffff",u=n?"#9ca3af":"#64748b",d=a.map(e=>({name:e.label,value:e.value}));return E("div",{style:{borderRadius:8,border:"1px solid ".concat(o),background:s,padding:12,margin:"8px 0"},children:[t.title&&S("h3",{style:{fontSize:13,fontWeight:600,color:l,marginBottom:8,marginTop:0},children:t.title}),S("div",{style:{height:260,width:"100%"},children:S(vC,{width:"100%",height:"100%",children:E(tZ,{children:[S(wH,{data:d,dataKey:"value",nameKey:"name",cx:"50%",cy:"50%",outerRadius:85,innerRadius:r?48:0,paddingAngle:2,children:d.map((e,t)=>S(EC,{fill:uZ[t%uZ.length]},t))}),S(GR,{formatter:e=>i?sZ(e):Number(e).toLocaleString(),contentStyle:{background:c,border:"1px solid ".concat(o),borderRadius:6,fontSize:12,color:l}}),S(aN,{iconSize:10,iconType:"circle",wrapperStyle:{fontSize:11,color:u}})]})})})]})}function pZ(e){let{props:t,isDark:n=!1,area:r=!1}=e;const a=Array.isArray(t.data)?t.data:[],i=iZ(t.yKey),o=t.valueLabel||void 0,s=n?"#374151":"#e2e8f0",l=n?"#1f2937":"#ffffff",c=n?"#9ca3af":"#64748b",u=n?"#f3f4f6":"#0f172a",d=n?"#374151":"#e2e8f0",p=n?"#111827":"#ffffff";if(0===a.length)return E("div",{style:{borderRadius:8,border:"1px solid ".concat(s),background:l,padding:12,margin:"8px 0"},children:[t.title&&S("div",{style:{fontSize:13,fontWeight:600,color:u,marginBottom:8},children:t.title}),S("div",{style:{color:c,fontSize:12},children:"No chartable data"})]});const f=r?nZ:JX;return E("div",{style:{borderRadius:8,border:"1px solid ".concat(s),background:l,padding:12,margin:"8px 0"},children:[t.title&&S("h3",{style:{fontSize:13,fontWeight:600,color:u,marginBottom:8,marginTop:0},children:t.title}),S("div",{style:{height:220,width:"100%"},children:S(vC,{width:"100%",height:"100%",children:E(f,{data:a,margin:{top:8,right:12,left:12,bottom:20},children:[S(eK,{strokeDasharray:"3 3",stroke:d}),S(qK,{dataKey:"label",tick:{fontSize:11,fill:c},angle:0,textAnchor:"middle",interval:0,label:t.xAxisLabel?{value:t.xAxisLabel,position:"insideBottom",offset:-12,fontSize:11,fill:c}:void 0}),S(tX,{width:72,tick:{fontSize:11,fill:c},tickFormatter:e=>i?oZ(e):t.unit?"".concat(rZ(e)," ").concat(t.unit):rZ(e)}),S(GR,{formatter:e=>i?sZ(e):t.unit?"".concat(Number(e).toLocaleString()," ").concat(t.unit):Number(e).toLocaleString(),contentStyle:{background:p,border:"1px solid ".concat(s),borderRadius:6,fontSize:12,color:u}}),r?S(DK,{type:"monotone",dataKey:"value",name:o,stroke:"#3b82f6",fill:"#3b82f6",fillOpacity:.15,strokeWidth:2,dot:{r:3,fill:"#3b82f6"}}):S(bK,{type:"monotone",dataKey:"value",name:o,stroke:"#3b82f6",strokeWidth:2,dot:{r:3,fill:"#3b82f6"},activeDot:{r:5}})]})})})]})}const fZ=/\b(?:field|fields|column|columns|table|tables|sql|summed?|aggregat\w*|averaged?|counted)\b/i,gZ=/[A-Za-z_]\w*\.[A-Za-z_]\w*/;function mZ(e){if("string"!=typeof e)return"";let t,n=e.trim();do{t=n,n=n.replace(/\s*\(([^()]*)\)\s*$/,(e,t)=>fZ.test(t)||gZ.test(t)?"":e).trim()}while(n!==t);return n}function hZ(e){return"string"==typeof e&&/^https?:\/\//i.test(e)?e:void 0}function bZ(t){let{spec:n,isDark:r=!1,onButtonClick:a}=t;if(!n||"object"!=typeof n)return null;n=e(e({},n),{},{title:mZ(n.title)});const i=String(n.type||"").trim().toLowerCase().replace(/_/g,"-"),o=new Set(["bar","line","area","pie","donut","scatter","bubble","radar","radial-bar","radial","radialbar","treemap","funnel","sankey","composed","waterfall","gauge","histogram","kpi"]);if("revenue-insights"===i)return S(aQ,{spec:n,isDark:r});if("impact-analysis"===i)return S(oQ,{spec:n,isDark:r});if("deviation-analysis"===i)return S(sQ,{spec:n,isDark:r});if("main-drivers"===i)return S(lQ,{spec:n,isDark:r});if("key-observations"===i)return S(uQ,{spec:n,isDark:r});if("recommendations"===i)return S(dQ,{spec:n,isDark:r});if("kpi"===i){var s,l,c,u,d;const e=null!==(s=null!==(l=null!==(c=n.value)&&void 0!==c?c:n.amount)&&void 0!==l?l:n.metric)&&void 0!==s?s:n.kpi,t=null!=n.delta?Number(n.delta):null,a=null!==(u=n.change)&&void 0!==u?u:null!=t&&Number.isFinite(t)?t>=0?"+".concat(t):String(t):void 0,i=null!==(d=n.trend)&&void 0!==d?d:null!=t&&Number.isFinite(t)?t>0?"up":t<0?"down":"flat":void 0;return S(cZ,{props:{label:n.label||n.title||"",value:null!=e?String(e):"-",change:a,trend:i},isDark:r})}return"table"===i?S(EZ,{spec:n,isDark:r}):o.has(i)||Array.isArray(n.data)&&n.data.length>0?S(vZ,{spec:n,type:i,isDark:r}):"alert"===i?S(SZ,{spec:n,isDark:r}):"card"===i?S(wZ,{spec:n,isDark:r}):"button-group"===i?S(AZ,{spec:n,isDark:r,onButtonClick:a}):"form"===i?S(kZ,{spec:n,isDark:r}):"confirmation"===i?S(xZ,{spec:n,isDark:r,onButtonClick:a}):"menu"===i?S(RZ,{spec:n,isDark:r,onButtonClick:a}):"profile"===i?S(CZ,{spec:n,isDark:r,onButtonClick:a}):"timeline"===i?S(DZ,{spec:n,isDark:r}):"rating"===i?S(PZ,{spec:n,isDark:r}):"comparison"===i?S(LZ,{spec:n,isDark:r,onButtonClick:a}):"gallery"===i?S(MZ,{spec:n,isDark:r}):Array.isArray(n.data)&&n.data.length>0?S(vZ,{spec:n,type:"bar",isDark:r}):null}const yZ=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 vZ(e){let{spec:t,type:n,isDark:r}=e;const{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"}}(t.data,t.x,t.y),o=function(e,t,n){return(e||[]).map(e=>({label:$Z(null==e?void 0:e[t],t),value:Number(null==e?void 0:e[n])})).filter(e=>Number.isFinite(e.value))}(t.data,a,i),s=String(n||"").trim().toLowerCase(),l={title:t.title,data:o,unit:t.unit,xAxisLabel:t.xAxisLabel,yAxisLabel:t.yAxisLabel,yKey:i,valueLabel:UZ(i)};return"pie"===s?S(dZ,{props:l,isDark:r,donut:!1}):"donut"===s?S(dZ,{props:l,isDark:r,donut:!0}):"line"===s?S(pZ,{props:l,isDark:r,area:!1}):"area"===s?S(pZ,{props:l,isDark:r,area:!0}):S(lZ,{props:l,isDark:r})}function EZ(e){let{spec:t,isDark:n}=e;const r=Array.isArray(t.columns)&&t.columns.length>0?t.columns:Array.isArray(t.data)&&t.data[0]?Object.keys(t.data[0]):[],a=Array.isArray(t.data)?t.data:Array.isArray(t.rows)?t.rows:[];if(0===r.length||0===a.length)return S("div",{style:yZ(n),children:S("div",{style:{color:n?"#9ca3af":"#6b7280",fontSize:12},children:"Empty table"})});const i=n?"1px solid #374151":"1px solid #e5e7eb";return E("div",{style:yZ(n),children:[t.title&&S("div",{style:{fontWeight:600,marginBottom:8},children:t.title}),S("div",{style:{overflowX:"auto"},children:E("table",{style:{borderCollapse:"collapse",width:"100%",fontSize:12},children:[S("thead",{children:S("tr",{children:r.map(e=>S("th",{style:{border:i,padding:"6px 8px",background:"transparent",textAlign:"left",fontWeight:600},children:UZ(e)},e))})}),S("tbody",{children:a.map((e,t)=>S("tr",{children:r.map(t=>S("td",{style:{border:i,padding:"6px 8px"},children:e&&"object"==typeof e?YZ(e[t],t):""},t))},t))})]})})]})}function SZ(t){let{spec:n,isDark:r}=t;const a=String(n.level||"info").toLowerCase(),i={info:{bg:r?"hsl(204 33% 14%)":"hsl(204 100% 97%)",border:r?"hsl(199 89% 58%)":"hsl(199 89% 48%)",text:r?"#bae6fd":"#0c4a6e"},warn:{bg:r?"hsl(36 33% 14%)":"hsl(34 100% 95%)",border:r?"hsl(38 92% 60%)":"hsl(35 100% 50%)",text:r?"#fde68a":"#663c00"},error:{bg:r?"hsl(356 33% 16%)":"hsl(356 100% 97%)",border:r?"hsl(350 89% 65%)":"hsl(350 89% 60%)",text:r?"#fecdd3":"#9f1239"},success:{bg:r?"hsl(152 36% 14%)":"hsl(152 81% 96%)",border:r?"hsl(158 64% 52%)":"hsl(160 84% 39%)",text:r?"#a7f3d0":"#065f46"}};i.warning=i.warn;const o=i[a]||i.info;return E("div",{style:e(e({},yZ(r)),{},{background:o.bg,borderLeft:"4px solid ".concat(o.border),color:o.text}),children:[n.title&&S("div",{style:{fontWeight:600,marginBottom:4},children:n.title}),n.body&&S("div",{style:{fontSize:12},children:String(n.body)})]})}function wZ(e){let{spec:t,isDark:n}=e;return E("div",{style:yZ(n),children:[t.title&&S("div",{style:{fontWeight:600,marginBottom:6},children:t.title}),t.body&&S("div",{style:{fontSize:12},children:String(t.body)})]})}function AZ(e){let{spec:t,isDark:n,onButtonClick:r}=e;const a=Array.isArray(t.buttons)?t.buttons:[];return 0===a.length?null:E("div",{style:{margin:"8px 0"},children:[t.title&&S("div",{style:{fontSize:11,color:n?"#9ca3af":"#6b7280",textTransform:"uppercase",letterSpacing:"0.05em",marginBottom:6},children:t.title}),S("div",{style:{display:"flex",flexWrap:"wrap",gap:6},children:a.map((e,t)=>{var a,i;return S("button",{type:"button",onClick:r?()=>{var t,n,a,i;return r(String(null!==(t=null!==(n=e.value)&&void 0!==n?n:e.label)&&void 0!==t?t:""),String(null!==(a=null!==(i=e.label)&&void 0!==i?i:e.value)&&void 0!==a?a:""))}:void 0,disabled:!r,style:{border:"1px solid "+(n?"#374151":"#d1d5db"),background:n?"#1f2937":"#ffffff",color:n?"#f3f4f6":"#111827",padding:"6px 12px",borderRadius:6,fontSize:12,cursor:r?"pointer":"default",opacity:r?1:.6},children:String(null!==(a=null!==(i=e.label)&&void 0!==i?i:e.value)&&void 0!==a?a:"")},t)})})]})}function kZ(e){let{spec:t,isDark:n}=e;const r=(Array.isArray(t.fields)?t.fields:[]).filter(e=>e&&"hidden"!==e.type);return E("div",{style:yZ(n),children:[t.title&&S("div",{style:{fontWeight:600,marginBottom:8},children:t.title}),r.map((e,t)=>{var r,a;return E("div",{style:{marginBottom:4,fontSize:12},children:[E("span",{style:{color:n?"#9ca3af":"#6b7280"},children:[e.label||e.name,": "]}),S("span",{children:String(null!==(r=null!==(a=e.value)&&void 0!==a?a:e.placeholder)&&void 0!==r?r:"")})]},t)})]})}function xZ(e){let{spec:t,isDark:n,onButtonClick:r}=e;const a=t.yes||{label:"Yes",value:"yes"},i=t.no||{label:"No",value:"no"};return E("div",{style:yZ(n),children:[t.title&&S("div",{style:{fontWeight:600,marginBottom:6},children:t.title}),t.body&&S("div",{style:{fontSize:12,marginBottom:8},children:String(t.body)}),S(AZ,{spec:{buttons:[a,i]},isDark:n,onButtonClick:r})]})}const TZ="#2563eb";function OZ(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 _Z(e,t){return{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"6px 12px",borderRadius:6,fontSize:12,fontWeight:600,border:"none",background:TZ,color:"#ffffff",cursor:t?"default":"pointer",opacity:t?.5:1}}function IZ(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 NZ(e){let{score:t,maxScore:n=5,size:r=14,isDark:a}=e;const i=[];for(let e=0;e<n;e+=1){const n=t>=e+1,o=!n&&t>e&&t<e+1;i.push(E("svg",{width:r,height:r,viewBox:"0 0 24 24",fill:n?"#fbbf24":o?"url(#a2ui-half-star-".concat(e,")"):"none",stroke:n||o?"#fbbf24":a?"#4b5563":"#d1d5db",strokeWidth:"1.5",children:[o&&S("defs",{children:E("linearGradient",{id:"a2ui-half-star-".concat(e),children:[S("stop",{offset:"50%",stopColor:"#fbbf24"}),S("stop",{offset:"50%",stopColor:"transparent"})]})}),S("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"})]},e))}return S("div",{style:{display:"flex",alignItems:"center",gap:1},children:i})}function RZ(t){let{spec:n,isDark:r,onButtonClick:a}=t;const i=Array.isArray(n.items)?n.items:[];if(0===i.length)return null;const o=r?"1px solid #374151":"1px solid #e5e7eb",s=r?"#9ca3af":"#6b7280";return E("div",{style:{margin:"8px 0"},children:[(n.title||n.subtitle)&&E("div",{style:{marginBottom:8},children:[n.title&&S("div",{style:{fontSize:13,fontWeight:700},children:n.title}),n.subtitle&&S("div",{style:{fontSize:11,color:s},children:n.subtitle})]}),S("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(160px, 1fr))",gap:10},children:i.map((t,n)=>E("div",{style:{border:o,borderRadius:10,overflow:"hidden",background:r?"#1f2937":"#ffffff",display:"flex",flexDirection:"column"},children:[hZ(t.image)&&S("img",{src:hZ(t.image),alt:t.name||"",referrerPolicy:"no-referrer",onError:e=>{e.currentTarget.style.display="none"},style:{height:96,width:"100%",objectFit:"cover",background:r?"#111827":"#f9fafb"}}),E("div",{style:{padding:10,display:"flex",flexDirection:"column",gap:6,flex:1},children:[E("div",{style:{display:"flex",justifyContent:"space-between",gap:6,alignItems:"flex-start"},children:[S("div",{style:{fontSize:12,fontWeight:700,minWidth:0},children:t.name}),t.price&&S("div",{style:{fontSize:12,fontWeight:700,color:TZ,flexShrink:0},children:t.price})]}),t.description&&S("div",{style:{fontSize:11,color:s,lineHeight:1.4},children:t.description}),Array.isArray(t.tags)&&t.tags.length>0&&S("div",{style:{display:"flex",flexWrap:"wrap",gap:4},children:t.tags.map((e,t)=>S("span",{style:OZ(r),children:e},t))}),S("div",{style:{flex:1}}),t.actionLabel&&S("button",{type:"button",onClick:a?()=>{var e;return a(String(null!==(e=t.value)&&void 0!==e?e:t.actionLabel),String(t.actionLabel))}:void 0,disabled:!a,style:e(e({},_Z(0,!a)),{},{alignSelf:"flex-start",marginTop:4}),children:t.actionLabel})]})]},n))})]})}function CZ(e){let{spec:t,isDark:n,onButtonClick:r}=e;const a=Array.isArray(t.tags)?t.tags:[],i=Array.isArray(t.actions)?t.actions:[],o=n?"#9ca3af":"#6b7280";return E("div",{style:yZ(n),children:[E("div",{style:{display:"flex",gap:10,alignItems:"flex-start"},children:[S("div",{style:{flexShrink:0,height:44,width:44,borderRadius:"50%",overflow:"hidden",background:n?"rgba(37,99,235,0.20)":"#eff6ff",color:n?"#93c5fd":TZ,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700,fontSize:16},children:hZ(t.avatar)?S("img",{src:hZ(t.avatar),alt:t.name||"",referrerPolicy:"no-referrer",onError:e=>{e.currentTarget.style.display="none"},style:{height:"100%",width:"100%",objectFit:"cover"}}):String(t.name||"").charAt(0).toUpperCase()}),E("div",{style:{minWidth:0,flex:1},children:[S("div",{style:{fontSize:13,fontWeight:700},children:t.name}),t.role&&S("div",{style:{fontSize:11,color:o},children:t.role}),"number"==typeof t.rating&&E("div",{style:{marginTop:4,display:"flex",alignItems:"center",gap:6},children:[S(NZ,{score:t.rating,size:11,isDark:n}),E("span",{style:{fontSize:10,color:o},children:[t.rating.toFixed(1),"number"==typeof t.reviewCount?" (".concat(t.reviewCount,")"):""]})]})]})]}),a.length>0&&S("div",{style:{display:"flex",flexWrap:"wrap",gap:4,marginTop:8},children:a.map((e,t)=>S("span",{style:OZ(n),children:e},t))}),t.bio&&S("div",{style:{marginTop:8,fontSize:12,lineHeight:1.5},children:t.bio}),i.length>0&&S("div",{style:{display:"flex",flexWrap:"wrap",gap:6,marginTop:10},children:i.map((e,t)=>{const a="secondary"!==e.variant,i=hZ(e.url);if(i)return S("a",{href:i,target:"_blank",rel:"noopener noreferrer",style:IZ(n,!1),children:e.label},t);const o=e.value||e.label;return S("button",{type:"button",onClick:r?()=>r(String(o),String(e.label)):void 0,disabled:!r,style:a?_Z(0,!r):IZ(n,!r),children:e.label},t)})})]})}function DZ(t){let{spec:n,isDark:r}=t;const a=Array.isArray(n.steps)?n.steps:[];if(0===a.length)return null;const i=r?"#374151":"#e5e7eb",o=r?"#6b7280":"#9ca3af",s=e=>"done"===e?{background:"#10b981",border:"2px solid #10b981"}:"active"===e?{background:TZ,border:"2px solid ".concat(TZ),boxShadow:r?"0 0 0 4px rgba(37,99,235,0.25)":"0 0 0 4px #dbeafe"}:{background:r?"#1f2937":"#ffffff",border:"2px solid "+(r?"#4b5563":"#d1d5db")};return E("div",{style:yZ(r),children:[n.title&&S("div",{style:{fontWeight:700,fontSize:13,marginBottom:10},children:n.title}),S("div",{children:a.map((t,n)=>{const l=t.status||(0===n?"done":"pending"),c=n===a.length-1;return E("div",{style:{display:"flex",gap:10},children:[E("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[S("div",{style:e({height:12,width:12,borderRadius:"50%",flexShrink:0},s(l))}),!c&&S("div",{style:{width:1,flex:1,background:i,minHeight:16,margin:"2px 0"}})]}),E("div",{style:{minWidth:0,flex:1,paddingBottom:c?0:12},children:[E("div",{style:{display:"flex",justifyContent:"space-between",gap:6},children:[S("span",{style:{fontSize:12,fontWeight:600,color:"pending"===l?o:r?"#f3f4f6":"#111827"},children:t.label}),t.timestamp&&S("span",{style:{fontSize:10,color:o,flexShrink:0},children:t.timestamp})]}),t.description&&S("div",{style:{fontSize:11,color:r?"#9ca3af":"#6b7280",marginTop:2},children:t.description})]})]},n)})})]})}function PZ(e){let{spec:t,isDark:n}=e;const r=t.maxScore||5,a=n?"#9ca3af":"#6b7280";return E("div",{style:yZ(n),children:[t.title&&S("div",{style:{fontSize:11,textTransform:"uppercase",letterSpacing:"0.05em",color:a,marginBottom:4},children:t.title}),E("div",{style:{display:"flex",alignItems:"center",gap:8},children:[S("span",{style:{fontSize:22,fontWeight:700},children:Number(t.score).toFixed(1)}),S(NZ,{score:t.score,maxScore:r,size:15,isDark:n}),"number"==typeof t.reviewCount&&E("span",{style:{fontSize:11,color:a},children:["(",t.reviewCount," review",1===t.reviewCount?"":"s",")"]})]}),t.review&&E("div",{style:{marginTop:8,borderLeft:"2px solid "+(n?"#1e40af":"#bfdbfe"),paddingLeft:10,fontSize:12,fontStyle:"italic",color:n?"#d1d5db":"#374151",lineHeight:1.5},children:['"',t.review,'"',t.author&&E("div",{style:{marginTop:4,fontStyle:"normal",fontSize:10,color:a},children:["- ",t.author]})]})]})}function LZ(t){let{spec:n,isDark:r,onButtonClick:a}=t;const i=Array.isArray(n.plans)?n.plans:[];if(0===i.length)return null;const o=r?"#9ca3af":"#6b7280";return E("div",{style:{margin:"8px 0"},children:[n.title&&S("div",{style:{fontWeight:700,fontSize:13,marginBottom:8},children:n.title}),S("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(150px, 1fr))",gap:10},children:i.map((t,n)=>E("div",{style:{border:t.highlight?"1px solid ".concat(TZ):"1px solid "+(r?"#374151":"#e5e7eb"),background:t.highlight?r?"rgba(37,99,235,0.10)":"#eff6ff":r?"#1f2937":"#ffffff",borderRadius:10,padding:12,display:"flex",flexDirection:"column"},children:[t.highlight&&S("span",{style:{alignSelf:"flex-start",marginBottom:6,background:TZ,color:"#ffffff",fontSize:9,fontWeight:700,padding:"2px 7px",borderRadius:999},children:"Recommended"}),S("div",{style:{fontSize:13,fontWeight:700},children:t.name}),t.price&&E("div",{style:{marginTop:2,display:"flex",alignItems:"baseline",gap:3},children:[S("span",{style:{fontSize:18,fontWeight:700},children:t.price}),t.period&&E("span",{style:{fontSize:11,color:o},children:["/",t.period]})]}),Array.isArray(t.features)&&t.features.length>0&&S("ul",{style:{listStyle:"none",padding:0,margin:"8px 0 0",display:"flex",flexDirection:"column",gap:6,flex:1},children:t.features.map((e,t)=>E("li",{style:{display:"flex",gap:6,alignItems:"flex-start",fontSize:11,color:r?"#d1d5db":"#374151"},children:[S("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:S("polyline",{points:"20 6 9 17 4 12"})}),S("span",{children:e})]},t))}),t.actionLabel&&S("button",{type:"button",onClick:a?()=>{var e;return a(String(null!==(e=t.value)&&void 0!==e?e:t.actionLabel),String(t.actionLabel))}:void 0,disabled:!a,style:e(e({},t.highlight?_Z(0,!a):IZ(r,!a)),{},{marginTop:10}),children:t.actionLabel})]},n))})]})}function MZ(e){let{spec:t,isDark:n}=e;const r=Array.isArray(t.images)?t.images:[];if(0===r.length)return null;const a=n?"#9ca3af":"#6b7280";return E("div",{style:{margin:"8px 0"},children:[t.title&&S("div",{style:{fontWeight:700,fontSize:13,marginBottom:8},children:t.title}),S("div",{className:"slim-scrollbar-x",style:{display:"flex",gap:8,overflowX:"auto",paddingBottom:4},children:r.map((e,t)=>E("figure",{style:{flexShrink:0,width:140,margin:0,borderRadius:8,overflow:"hidden",border:"1px solid "+(n?"#374151":"#e5e7eb"),background:n?"#111827":"#f9fafb"},children:[S("img",{src:hZ(e.url),alt:e.caption||"Image ".concat(t+1),referrerPolicy:"no-referrer",onError:e=>{e.currentTarget.style.display="none"},style:{height:96,width:"100%",objectFit:"cover"}}),e.caption&&S("figcaption",{style:{padding:"5px 8px",fontSize:10,color:a,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.caption})]},t))})]})}const FZ=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],jZ=/(^|[_\W])(price|salary|cost|amount|revenue|expense|total|value|budget|spend|income|sale|balance)/i,BZ=/(^|[_\W])month/i;function UZ(e){if(null==e)return"";const t=String(e);return t?t.replace(/[_\-]+/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/\s+/g," ").trim().split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" "):""}const zZ=/^(\d{4})-(\d{2})(?:-\d{2})?(?:[T\s]|$)/;function $Z(e,t){if("string"==typeof t&&BZ.test(t)){const t="number"==typeof e?e:Number(e);if(Number.isInteger(t)&&t>=1&&t<=12)return FZ[t-1]}const n=function(e){if("string"!=typeof e)return null;const t=e.match(zZ);if(!t)return null;const n=parseInt(t[1],10),r=parseInt(t[2],10);return!Number.isInteger(r)||r<1||r>12?null:"".concat(FZ[r-1]," '").concat(String(n).slice(-2))}(e);return n||UZ(e)}const GZ=/^[a-z]+(_[a-z]+)+$/;const qZ=/^-?\d+(\.\d+)?$/,HZ=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],VZ=/^\d{4}-\d{2}-\d{2}([T ]\d{2}:\d{2}(:\d{2})?(\.\d+)?(Z|[+-]\d{2}:?\d{2})?)?$/;function WZ(e){return Number.isInteger(e)?e.toLocaleString("en-US"):Number(e.toFixed(2)).toLocaleString("en-US")}function YZ(e,t){if(null==e)return"";if("number"==typeof e)return WZ(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(!VZ.test(t))return null;const n=/[T ]\d{2}:\d{2}/.test(t),r=/(Z|[+-]\d{2}:?\d{2})$/.test(t),a=n&&!r?"".concat(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="".concat(HZ[i.getUTCMonth()]," ").concat(i.getUTCDate(),", ").concat(i.getUTCFullYear());if(!o)return s;const l=i.getUTCHours(),c=l>=12?"PM":"AM",u=l%12||12,d=String(i.getUTCMinutes()).padStart(2,"0");return"".concat(s,", ").concat(u,":").concat(d," ").concat(c)}(n);if(r)return r;if("string"==typeof(a=t)&&jZ.test(a)&&qZ.test(n)){const e=Number(n);if(Number.isFinite(e))return WZ(e)}var a,i;return"string"!=typeof(i=e)?String(null!=i?i:""):i.length>40?i:GZ.test(i)?UZ(i):i}function KZ(e){let{size:t=14}=e;return E("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[S("polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17"}),S("polyline",{points:"16 7 22 7 22 13"})]})}function XZ(e){let{size:t=14}=e;return E("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[S("path",{d:"M16 16c0-1.7-2-3-2-3"}),S("path",{d:"M8 16c0-1.7 2-3 2-3"}),S("path",{d:"M7 21h10"}),S("path",{d:"M12 3v18"}),S("path",{d:"m17 7 5 9h-10z"}),S("path",{d:"m7 7-5 9h10z"})]})}function ZZ(e){let{size:t=14}=e;return E("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[S("circle",{cx:"5",cy:"6",r:"3"}),S("circle",{cx:"19",cy:"18",r:"3"}),S("path",{d:"M12 6h5a2 2 0 0 1 2 2v7"}),S("path",{d:"M12 18H7a2 2 0 0 1-2-2V9"})]})}function QZ(e){let{size:t=14}=e;return S("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:S("polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2"})})}function JZ(e){let{size:t=14}=e;return E("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[S("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"}),S("path",{d:"M9 18h6"}),S("path",{d:"M10 22h4"})]})}function eQ(e){let{size:t=14}=e;return E("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[S("circle",{cx:"12",cy:"12",r:"10"}),S("circle",{cx:"12",cy:"12",r:"6"}),S("circle",{cx:"12",cy:"12",r:"2"})]})}function tQ(e){let{type:t,icon:n,title:r,count:a,isDark:i,children:o}=e;const{accent:s,iconBg:l,iconFg:c}=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}}(t,i),u=i?"1px solid #374151":"1px solid #e5e7eb";return E("div",{style:{background:i?"#1f2937":"#ffffff",border:u,borderRadius:12,overflow:"hidden",margin:"8px 0",color:i?"#f3f4f6":"#0f172a"},children:[S("div",{style:{height:4,background:s}}),E("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,padding:"12px 14px 10px",borderBottom:u},children:[E("div",{style:{display:"flex",alignItems:"center",gap:8,fontSize:13,fontWeight:700},children:[S("span",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:22,height:22,borderRadius:6,background:l,color:c},children:n}),r]}),null!=a&&S("div",{style:{fontSize:11,color:i?"#9ca3af":"#64748b",fontVariantNumeric:"tabular-nums"},children:a})]}),S("div",{style:{padding:"12px 14px 14px",fontSize:13,lineHeight:1.55},children:o})]})}function nQ(e){let{delta:t,isDark:n}=e;if(!t)return null;const r=function(e){const t=String(e||"").trim();return t?t.startsWith("+")?"up":t.startsWith("-")||t.startsWith("−")?"dn":"flat":"flat"}(t),a=(n?{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"}})[r];return S("span",{style:{fontSize:9,fontWeight:600,padding:"1px 5px",borderRadius:3,marginLeft:4,background:a.bg,color:a.fg},children:t})}function rQ(e){let{items:t,isDark:n}=e;if(!t||!t.length)return null;const r=n?"1px solid #374151":"1px solid #e5e7eb",a=n?"#9ca3af":"#64748b",i=n?"#f3f4f6":"#0f172a",o=n?"#111827":"#f8fafc";return S("div",{style:{display:"flex",flexWrap:"wrap",gap:6,marginTop:4},children:t.map((e,t)=>E("span",{style:{display:"inline-flex",alignItems:"baseline",gap:4,fontSize:11,lineHeight:1,padding:"5px 8px",borderRadius:6,background:o,border:r},children:[e.label&&E("span",{style:{color:a},children:[e.label,":"]}),S("span",{style:{fontWeight:700,color:i,fontVariantNumeric:"tabular-nums"},children:e.value}),S(nQ,{delta:e.delta,isDark:n})]},t))})}function aQ(e){let{spec:t,isDark:n}=e;const r=Array.isArray(t.totals)?t.totals:[],a=n?"#9ca3af":"#64748b";return E(tQ,{type:"revenue-insights",icon:S(KZ,{}),title:t.title||"Revenue insights",count:null,isDark:n,children:[t.headline&&S("div",{style:{fontSize:18,fontWeight:700,marginBottom:4},children:t.headline}),t.narrative&&S("div",{style:{color:a,marginBottom:r.length?8:0},children:t.narrative}),r.length>0&&S("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(140px, 1fr))",gap:8,marginTop:8},children:r.map((e,t)=>E("div",{style:{background:n?"#111827":"#f8fafc",border:n?"1px solid #374151":"1px solid #e5e7eb",borderRadius:8,padding:"8px 10px"},children:[S("div",{style:{fontSize:11,color:a},children:e.label}),E("div",{style:{fontSize:16,fontWeight:700,fontVariantNumeric:"tabular-nums"},children:[e.value,S(nQ,{delta:e.delta,isDark:n})]})]},t))})]})}function iQ(e){let{items:t,sentiment:n,isDark:r}=e;if(!t||0===t.length)return null;const a="positive"===n?{bg:r?"rgba(16,185,129,0.10)":"#f0fdf4",bd:r?"rgba(52,211,153,0.30)":"#bbf7d0",tx:r?"#a7f3d0":"#14532d",dot:r?"#34d399":"#10b981"}:"negative"===n?{bg:r?"rgba(239,68,68,0.10)":"#fef2f2",bd:r?"rgba(248,113,113,0.30)":"#fecaca",tx:r?"#fecaca":"#7f1d1d",dot:r?"#f87171":"#ef4444"}:{bg:r?"#111827":"#f8fafc",bd:r?"#374151":"#e2e8f0",tx:r?"#f3f4f6":"#0f172a",dot:r?"#9ca3af":"#94a3b8"};return E("div",{children:[S("div",{style:{fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.4px",color:r?"#9ca3af":"#64748b",margin:"10px 0 6px"},children:"positive"===n?"Positive impact":"negative"===n?"Negative impact":"Neutral"}),t.map((e,t)=>E("div",{style:{background:a.bg,border:"1px solid ".concat(a.bd),borderRadius:8,padding:"8px 10px",margin:"4px 0",color:a.tx},children:[E("div",{style:{fontWeight:700,display:"block",marginBottom:2},children:[S("span",{style:{display:"inline-block",width:7,height:7,borderRadius:"50%",background:a.dot,marginRight:6,verticalAlign:"middle"}}),e.title]}),S("div",{children:e.description}),S(rQ,{items:e.metrics,isDark:r})]},t))]})}function oQ(e){let{spec:t,isDark:n}=e;return E(tQ,{type:"impact-analysis",icon:S(XZ,{}),title:t.title||"Impact analysis",count:null,isDark:n,children:[S(iQ,{items:t.positive,sentiment:"positive",isDark:n}),S(iQ,{items:t.negative,sentiment:"negative",isDark:n}),S(iQ,{items:t.neutral,sentiment:"neutral",isDark:n})]})}function sQ(e){let{spec:t,isDark:n}=e;const r=Array.isArray(t.deviations)?t.deviations:[],a=n?"1px solid #374151":"1px solid #e5e7eb",i=n?"#9ca3af":"#64748b",o=n?"#f3f4f6":"#0f172a";return E(tQ,{type:"deviation-analysis",icon:S(ZZ,{}),title:t.title||"Deviation analysis",count:null,isDark:n,children:[0===r.length?S("div",{style:{color:i,fontSize:12,padding:"14px 0",textAlign:"center"},children:"No deviations"}):S("div",{style:{overflowX:"auto"},children:E("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:12},children:[S("thead",{children:S("tr",{children:["Segment","Metric","Expected","Actual","Delta"].map(e=>S("th",{style:{padding:"7px 10px",borderBottom:a,textAlign:"left",fontSize:11,color:i,fontWeight:600,textTransform:"uppercase",letterSpacing:"0.3px"},children:e},e))})}),S("tbody",{children:r.map((e,t)=>{return E("tr",{children:[S("td",{style:{padding:"7px 10px",borderBottom:a,color:o},children:e.segment}),S("td",{style:{padding:"7px 10px",borderBottom:a,color:o},children:e.metric}),S("td",{style:{padding:"7px 10px",borderBottom:a,color:o,fontVariantNumeric:"tabular-nums"},children:e.expected}),S("td",{style:{padding:"7px 10px",borderBottom:a,color:o,fontVariantNumeric:"tabular-nums"},children:e.actual}),S("td",{style:{padding:"7px 10px",borderBottom:a,color:(r=e.tone,"up"===r?n?"#34d399":"#15803d":"dn"===r?n?"#f87171":"#b91c1c":n?"#9ca3af":"#64748b"),fontWeight:700,fontVariantNumeric:"tabular-nums"},children:e.delta})]},t);var r})})]})}),t.summary&&S("div",{style:{background:n?"#111827":"#f8fafc",border:a,borderRadius:6,padding:"8px 10px",marginTop:10,fontSize:12,color:o},children:t.summary})]})}function lQ(e){let{spec:t,isDark:n}=e;const r=Array.isArray(t.secondary)?t.secondary:[],a=n?"#9ca3af":"#64748b",i=n?"#9ca3af":"#64748b",o=t.primary;return E(tQ,{type:"main-drivers",icon:S(QZ,{}),title:t.title||"Main drivers",count:null,isDark:n,children:[o&&E("div",{style:{background:n?"rgba(139,92,246,0.10)":"#faf5ff",border:n?"1px solid rgba(167,139,250,0.30)":"1px solid #d8b4fe",borderRadius:8,padding:"10px 12px",marginBottom:r.length?10:0},children:[S("div",{style:{fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.4px",color:n?"#c4b5fd":"#7c3aed",marginBottom:4},children:"Primary driver"}),S("div",{style:{fontWeight:600},children:o.factor}),o.evidence&&S("div",{style:{color:a,fontSize:12,marginTop:4},children:o.evidence}),o.metric&&E("span",{style:{display:"inline-block",marginTop:6,background:n?"rgba(139,92,246,0.20)":"#ede9fe",color:n?"#ddd6fe":"#5b21b6",fontSize:11,fontWeight:600,padding:"2px 7px",borderRadius:6},children:[o.metric.label,": ",o.metric.value]})]}),r.length>0&&E(w,{children:[S("div",{style:{fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.4px",color:i,margin:"10px 0 6px"},children:"Secondary drivers"}),S("ul",{style:{paddingLeft:20,margin:0},children:r.map((e,t)=>E("li",{style:{marginBottom:6},children:[S("div",{style:{fontWeight:600},children:e.factor}),e.evidence&&S("div",{style:{color:a,fontSize:12,marginTop:2},children:e.evidence})]},t))})]})]})}function cQ(e){let{rankBgFg:t,rank:n,chips:r,text:a,narrative:i,metrics:o,impactPill:s,isDark:l}=e;const c=l?"#9ca3af":"#64748b";return E("div",{style:{display:"flex",gap:10,alignItems:"flex-start",padding:"10px 0",borderBottom:l?"1px dashed #374151":"1px dashed #e5e7eb"},children:[S("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:t.bg,color:t.fg},children:n}),E("div",{style:{flex:"1 1 auto",minWidth:0,display:"flex",flexDirection:"column",gap:5},children:[r,a&&S("div",{style:{fontSize:13,fontWeight:600},children:a}),i&&S("div",{style:{fontSize:12,color:c},children:i}),S(rQ,{items:o,isDark:l}),s]})]})}function uQ(e){let{spec:t,isDark:n}=e;const r=Array.isArray(t.items)?[...t.items].sort((e,t)=>(e.rank||0)-(t.rank||0)):[],a=n?{bg:"#064e3b",fg:"#a7f3d0"}:{bg:"#f0fdf4",fg:"#14532d"};return S(tQ,{type:"key-observations",icon:S(JZ,{}),title:t.title||"Key observations",count:r.length?"".concat(r.length," item").concat(1===r.length?"":"s"):null,isDark:n,children:0===r.length?S("div",{style:{color:n?"#9ca3af":"#64748b",fontSize:12,padding:"14px 0",textAlign:"center"},children:"No observations available."}):r.map((e,t)=>{const r=[];return e.category&&r.push(S("span",{style:pQ("cat",n),children:e.category},"cat")),e.priority&&r.push(S("span",{style:pQ("prio-"+e.priority,n),children:e.priority},"prio")),S(cQ,{rankBgFg:a,rank:e.rank||t+1,chips:r.length?S("div",{style:{display:"flex",flexWrap:"wrap",gap:5},children:r}):null,text:e.text,narrative:e.narrative,metrics:e.metrics,impactPill:null,isDark:n},t)})})}function dQ(e){let{spec:t,isDark:n}=e;const r=Array.isArray(t.items)?[...t.items].sort((e,t)=>(e.rank||0)-(t.rank||0)):[],a=n?{bg:"#312e81",fg:"#c7d2fe"}:{bg:"#4f46e5",fg:"#ffffff"};return S(tQ,{type:"recommendations",icon:S(eQ,{}),title:t.title||"Recommendations",count:r.length?"".concat(r.length," item").concat(1===r.length?"":"s"):null,isDark:n,children:0===r.length?S("div",{style:{color:n?"#9ca3af":"#64748b",fontSize:12,padding:"14px 0",textAlign:"center"},children:"No recommendations available."}):r.map((e,t)=>{const r=(e.affected_segments||[]).map((e,t)=>S("span",{style:pQ("seg",n),children:e},t)),i=e.expected_impact?E("span",{style:{alignSelf:"flex-start",display:"inline-flex",alignItems:"center",gap:4,marginTop:2,background:n?"rgba(16,185,129,0.18)":"#dcfce7",color:n?"#a7f3d0":"#166534",fontSize:10,fontWeight:700,padding:"4px 9px",borderRadius:999,border:n?"1px solid rgba(52,211,153,0.30)":"1px solid #bbf7d0"},children:["↑ ",e.expected_impact]}):null;return S(cQ,{rankBgFg:a,rank:e.rank||t+1,chips:r.length?S("div",{style:{display:"flex",flexWrap:"wrap",gap:5},children:r}):null,text:e.action,narrative:e.rationale,metrics:e.metrics,impactPill:i,isDark:n},t)})})}function pQ(t,n){const r={display:"inline-flex",alignItems:"center",fontSize:10,fontWeight:600,lineHeight:1,padding:"3px 7px",borderRadius:999,border:n?"1px solid #374151":"1px solid #e5e7eb",background:n?"#111827":"#f8fafc",color:n?"#9ca3af":"#64748b"};return"cat"===t?e(e({},r),{},{background:n?"rgba(99,102,241,0.20)":"#eef2ff",color:n?"#c7d2fe":"#4f46e5",border:"1px solid transparent"}):"seg"===t?e(e({},r),{},{background:n?"#1f2937":"#f1f5f9",color:n?"#f3f4f6":"#0f172a"}):"prio-high"===t?e(e({},r),{},{background:n?"rgba(239,68,68,0.18)":"#fef2f2",color:n?"#fecaca":"#7f1d1d",border:n?"1px solid rgba(248,113,113,0.30)":"1px solid #fecaca"}):"prio-medium"===t?e(e({},r),{},{background:n?"rgba(99,102,241,0.20)":"#eef2ff",color:n?"#c7d2fe":"#4f46e5",border:"1px solid transparent"}):r}const fQ=/\[([\d०-९][\d०-९\s,]*)\](?!\()/g,gQ={"०":"0","१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9"};function mQ(e){const t=[];for(const n of function(e){return e.replace(/[०-९]/g,e=>{var t;return null!==(t=gQ[e])&&void 0!==t?t:e})}(e).split(",")){const e=n.trim();if(/^\d+$/.test(e)){const n=parseInt(e,10);n>=1&&t.push(n)}}return t}function hQ(e){const t=new Set,n=[];for(const r of e)t.has(r)||(t.add(r),n.push(r));return n}function bQ(){return e=>{Cr(e,"text",(e,t,n)=>{if(null==t||null==n)return;if("element"===n.type&&("code"===n.tagName||"pre"===n.tagName))return;const r=function(e){if(!e)return[];const t=[];let n;for(fQ.lastIndex=0;null!==(n=fQ.exec(e));){const e=mQ(n[1]);0!==e.length&&t.push({start:n.index,end:fQ.lastIndex,indices:e})}if(0===t.length)return[{type:"text",value:e}];const r=[];for(const n of t){const t=r.length?r[r.length-1]:null;t&&/^\s*$/.test(e.slice(t.end,n.start))?(t.end=n.end,t.indices.push(...n.indices)):r.push({start:n.start,end:n.end,indices:[...n.indices]})}const a=[];let i=0;for(const t of r)t.start>i&&a.push({type:"text",value:e.slice(i,t.start)}),a.push({type:"cite",indices:hQ(t.indices)}),i=t.end;return i<e.length&&a.push({type:"text",value:e.slice(i)}),a}(e.value);if(1===r.length&&"text"===r[0].type)return;const a=r.map((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(t,1,...a),[Nr,t+a.length]})}}const yQ=["node","children"],vQ=["children"],EQ=["node","children"],SQ=["node","children"],wQ=["node","children"],AQ=["node","children","start"],kQ=["node","children","data-ol-index"],xQ=["node","children"],TQ=["node","children"],OQ=["node","children"],_Q=["node","children"],IQ=["node","children"],NQ=["node","children"],RQ=["node","children"],CQ=["className","children"],DQ=new Set(["eshal-ui","eshal-chart","chart"]);function PQ(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 LQ(e){return e.replace(/(\d+\.\d{2})0+(?!\d)/g,"$1")}function MQ(r){let{content:i,isStreaming:o,isDark:s=!1,isRtl:l=!1,textColor:c,fontFamily:u,fontSize:d,onButtonClick:p,provideCitations:f=!0}=r;return S(ka,{className:"max-w-none [&>*:last-child]:!mb-0 [&>*:first-child]:!mt-0",remarkPlugins:[vo,So],rehypePlugins:f?[bQ]:[],components:{span(r){var a;let{node:i,children:o}=r,s=t(r,yQ);const l=null!==(a=s["data-eshal-citation"])&&void 0!==a?a:s.dataEshalCitation;if("string"==typeof l&&l.length>0){const e=function(e){if(!e)return[];const t=[];for(const n of String(e).split(",")){const e=parseInt(n.trim(),10);Number.isFinite(e)&&e>=1&&t.push(e)}return hQ(t)}(l);if(e.length>0)return S(n,{indices:e})}return S("span",e(e({},s),{},{children:o}))},pre(n){let{children:r}=n,i=t(n,vQ);return function(e){return a.Children.toArray(e).some(e=>{var t;if(!a.isValidElement(e))return!1;const n=null===(t=e.props)||void 0===t?void 0:t.className;if("string"!=typeof n)return!1;const r=n.match(/language-([\w-]+)/);return!!r&&DQ.has(r[1])})}(r)?S(w,{children:r}):S("pre",e(e({},i),{},{children:r}))},a(n){let{node:r,children:a}=n,i=t(n,EQ);return S("a",e(e({className:"underline hover:opacity-80",dir:"ltr",style:{color:c||(s?"#f3f4f6":"#1A1A1A"),unicodeBidi:"isolate"},target:"_blank",rel:"noopener noreferrer"},i),{},{children:a}))},p(n){var r;let{node:a,children:i}=n,o=t(n,SQ);const l="li"===(null==a||null===(r=a.parent)||void 0===r?void 0:r.tagName);return S("p",e(e({className:"leading-relaxed [&:first-child]:!mt-0",style:{color:c||(s?"#f3f4f6":"#1A1A1A"),fontFamily:u||"Inter",fontSize:d||"14px",margin:0,marginTop:0,marginBottom:l?"0.125rem":"0.85rem",lineHeight:"1.6",padding:0}},o),{},{children:i}))},ul(n){let{node:r,children:a}=n,i=t(n,wQ);return S("ul",e(e({className:"list-disc [&:first-child]:!mt-0",style:{marginTop:0,marginBottom:"0.6rem",paddingInlineStart:"1.2rem"}},i),{},{children:a}))},ol(n){let{node:r,children:i,start:o=1}=n,s=t(n,AQ);const l=Number.isFinite(Number(o))?Number(o):1;let c=0;return S("ol",e(e({className:"[&:first-child]:!mt-0",style:{listStyle:"none",marginTop:0,marginBottom:"0.6rem",paddingInlineStart:0}},s),{},{children:a.Children.map(i,e=>{if(!a.isValidElement(e))return e;const t=l+c;return c+=1,a.cloneElement(e,{"data-ol-index":t})})}))},li(n){let{node:r,children:a,"data-ol-index":i}=n,o=t(n,kQ);const l={color:c||(s?"#f3f4f6":"#1A1A1A"),fontFamily:u||"Inter",fontSize:d||"14px",marginBottom:"0.3rem",lineHeight:"1.5"};return null!=i?E("li",e(e({style:e(e({},l),{},{listStyle:"none",display:"flex",alignItems:"baseline",gap:"0.4em"})},o),{},{children:[E("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:[i,"."]}),S("span",{style:{flex:"1 1 auto",minWidth:0},children:a})]})):S("li",e(e({className:"",style:l},o),{},{children:a}))},h1(n){let{node:r,children:a}=n,i=t(n,xQ);return S("h1",e(e({className:"text-xl font-bold [&:first-child]:!mt-0",style:{color:c||(s?"#f3f4f6":"#1A1A1A"),fontFamily:u||"Inter",marginTop:"0.7rem",marginBottom:"0.45rem",lineHeight:"1.35"}},i),{},{children:a}))},h2(n){let{node:r,children:a}=n,i=t(n,TQ);return S("h2",e(e({className:"text-lg font-semibold [&:first-child]:!mt-0",style:{color:c||(s?"#f3f4f6":"#1A1A1A"),fontFamily:u||"Inter",marginTop:"0.65rem",marginBottom:"0.4rem",lineHeight:"1.35"}},i),{},{children:a}))},h3(n){let{node:r,children:a}=n,i=t(n,OQ);return S("h3",e(e({className:"text-base font-semibold [&:first-child]:!mt-0",style:{color:c||(s?"#f3f4f6":"#1A1A1A"),fontFamily:u||"Inter",marginTop:"0.6rem",marginBottom:"0.35rem",lineHeight:"1.35"}},i),{},{children:a}))},blockquote(n){let{node:r,children:a}=n,i=t(n,_Q);return S("blockquote",e(e({className:"border-l-4 pl-4 italic ".concat(s?"border-gray-600 text-gray-300":"border-gray-300 text-gray-700")},i),{},{children:a}))},table(n){var r;let{node:a,children:i}=n,o=t(n,IQ);if((null==a||null===(r=a.children)||void 0===r?void 0:r.length)>0){var l;function c(e){return e?"string"==typeof e.value?e.value:Array.isArray(e.children)?e.children.map(c).join(""):"":""}const u=a.children.find(e=>"thead"===e.tagName),d=a.children.find(e=>"tbody"===e.tagName),p=null==u||null===(l=u.children)||void 0===l?void 0:l.find(e=>"tr"===e.tagName),f=((null==p?void 0:p.children)||[]).filter(e=>"th"===e.tagName).map(e=>c(e)),g=((null==d?void 0:d.children)||[]).filter(e=>"tr"===e.tagName),m=g.map(e=>(e.children||[]).filter(e=>"td"===e.tagName).map(e=>c(e)));if(f.length>0&&m.length>0){const h=m.map(e=>Object.fromEntries(f.map((t,n)=>{var r;return[t,null!==(r=e[n])&&void 0!==r?r:""]})));return S(bZ,{spec:{type:"table",columns:f,data:h},isDark:s})}}return S("div",{className:"overflow-x-auto my-3 rounded-lg border ".concat(s?"border-gray-700 bg-gray-900":"border-gray-200 bg-white"),children:S("table",e(e({className:"min-w-full border-collapse ".concat(s?"text-gray-100":"text-gray-900")},o),{},{children:i}))})},th(n){let{node:r,children:a}=n,i=t(n,NQ);return S("th",e(e({className:"border px-3 py-2 text-left font-medium ".concat(s?"border-gray-700 bg-gray-800/50 text-gray-300":"border-gray-200 bg-gray-50 text-gray-700")},i),{},{children:a}))},td(n){let{node:r,children:a}=n,i=t(n,RQ);return S("td",e(e({className:"border px-3 py-2 ".concat(s?"border-gray-700":"border-gray-200")},i),{},{children:a}))},code(n){let{className:r,children:a}=n,i=t(n,CQ);const o=/language-([\w-]+)/.exec(r||""),l=o?o[1]:null;if(l&&DQ.has(l)){const e=function(e){return"string"==typeof e?e:Array.isArray(e)?e.map(e=>"string"==typeof e?e:"").join(""):""}(a).trim();try{const t=JSON.parse(e);if(t&&"object"==typeof t)return S(bZ,{spec:t,isDark:s,onButtonClick:p})}catch(e){return null}return null}return o?S(uE,e(e({style:dE,language:l,PreTag:"div",wrapLines:!0},i),{},{children:String(a).replace(/\n$/,"")})):S("code",e(e({className:r},i),{},{children:a}))}},children:LQ(PQ(i,o))})}export{MQ as default,LQ as sanitizeExcessDecimalPrecision,PQ as sanitizeStreamingContent};