@xcelsior/ui-chat 2.0.4 → 2.0.5

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.
Files changed (46) hide show
  1. package/dist/index.d.mts +58 -5
  2. package/dist/index.d.ts +58 -5
  3. package/dist/index.js +1042 -427
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +1009 -397
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +2 -1
  8. package/src/components/BookingCancelledCard.tsx +103 -0
  9. package/src/components/BookingCards.stories.tsx +102 -0
  10. package/src/components/BookingConfirmationCard.tsx +170 -0
  11. package/src/components/BookingSlotPicker.stories.tsx +87 -0
  12. package/src/components/BookingSlotPicker.tsx +253 -0
  13. package/src/components/BrandIcons.stories.tsx +32 -1
  14. package/src/components/BrandIcons.tsx +21 -17
  15. package/src/components/Chat.tsx +43 -9
  16. package/src/components/ChatWidget.tsx +30 -2
  17. package/src/components/MessageItem.tsx +83 -72
  18. package/src/components/MessageList.tsx +4 -0
  19. package/src/hooks/useDraggablePosition.ts +147 -42
  20. package/src/hooks/useMessages.ts +106 -53
  21. package/src/hooks/useWebSocket.ts +17 -4
  22. package/src/index.tsx +11 -0
  23. package/src/types.ts +39 -2
  24. package/src/utils/api.ts +1 -0
  25. package/storybook-static/assets/BookingCancelledCard-XHuB-Ebp.js +31 -0
  26. package/storybook-static/assets/BookingCards.stories-DfJ482RS.js +66 -0
  27. package/storybook-static/assets/BookingSlotPicker-BkfssueW.js +1 -0
  28. package/storybook-static/assets/BookingSlotPicker.stories-fYlg1zLg.js +50 -0
  29. package/storybook-static/assets/BrandIcons-BsRAdWzL.js +4 -0
  30. package/storybook-static/assets/BrandIcons.stories-C6gBovfU.js +106 -0
  31. package/storybook-static/assets/Chat.stories-BrR7LHsz.js +830 -0
  32. package/storybook-static/assets/{Color-YHDXOIA2-CSuNIR0a.js → Color-YHDXOIA2-azE51u2m.js} +1 -1
  33. package/storybook-static/assets/{DocsRenderer-CFRXHY34-dpuOKTQp.js → DocsRenderer-CFRXHY34-jTmzKIDk.js} +3 -3
  34. package/storybook-static/assets/MessageItem-pEOwuLyh.js +34 -0
  35. package/storybook-static/assets/{MessageItem.stories-CsxqSqu-.js → MessageItem.stories-Cs5Vtkle.js} +2 -2
  36. package/storybook-static/assets/{entry-preview-C_-WO6GJ.js → entry-preview-vcpiajAT.js} +1 -1
  37. package/storybook-static/assets/globe-BtMvkLMD.js +31 -0
  38. package/storybook-static/assets/{iframe-BXTccXxS.js → iframe-Cx1n-SeE.js} +2 -2
  39. package/storybook-static/assets/{preview-Cyx3pE7Q.js → preview-Do3b3dZv.js} +2 -2
  40. package/storybook-static/iframe.html +1 -1
  41. package/storybook-static/index.json +1 -1
  42. package/storybook-static/project.json +1 -1
  43. package/storybook-static/assets/BrandIcons-Cjy5INAp.js +0 -4
  44. package/storybook-static/assets/BrandIcons.stories-BeVC6svr.js +0 -64
  45. package/storybook-static/assets/Chat.stories-BkbpOOSG.js +0 -830
  46. package/storybook-static/assets/MessageItem-Dlb6dSKL.js +0 -14
@@ -0,0 +1,34 @@
1
+ import{j as P}from"./jsx-runtime-Cf8x2fCZ.js";import{a as Wn}from"./BrandIcons-BsRAdWzL.js";import{g as Rt}from"./index--qcDGAq6.js";import{B as Pr}from"./BookingSlotPicker-BkfssueW.js";import{B as zr,a as vr}from"./BookingCancelledCard-XHuB-Ebp.js";import{t as te,c as Dr,d as Mr,f as _r,g as Lr,e as Nr,a as Yn,h as Qn,i as $e}from"./en-US-BukEqXxE.js";import{c as Ze}from"./globe-BtMvkLMD.js";/**
2
+ * @license lucide-react v0.477.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const Or=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],Kn=Ze("CheckCheck",Or);/**
7
+ * @license lucide-react v0.477.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */const Rr=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Fr=Ze("Check",Rr);/**
12
+ * @license lucide-react v0.477.0 - ISC
13
+ *
14
+ * This source code is licensed under the ISC license.
15
+ * See the LICENSE file in the root directory of this source tree.
16
+ */const Br=[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]],jr=Ze("Headphones",Br);/**
17
+ * @license lucide-react v0.477.0 - ISC
18
+ *
19
+ * This source code is licensed under the ISC license.
20
+ * See the LICENSE file in the root directory of this source tree.
21
+ */const Hr=[["path",{d:"M13.234 20.252 21 12.3",key:"1cbrk9"}],["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 0 2.828 2 2 0 0 0 2.828 0l8.414-8.586a4 4 0 0 0 0-5.656 4 4 0 0 0-5.656 0l-8.415 8.585a6 6 0 1 0 8.486 8.486",key:"1pkts6"}]],Ur=Ze("Paperclip",Hr);function Qe(e,n){const t=te(e),r=te(n),i=t.getTime()-r.getTime();return i<0?-1:i>0?1:i}function qr(e){return Dr(e,Date.now())}function Vr(e){return n=>{const r=(e?Math[e]:Math.trunc)(n);return r===0?0:r}}function $r(e,n){return+te(e)-+te(n)}function Xr(e){const n=te(e);return n.setHours(23,59,59,999),n}function Wr(e){const n=te(e);return+Xr(n)==+Mr(n)}function Yr(e,n){const t=te(e),r=te(n),i=Qe(t,r),l=Math.abs(_r(t,r));let o;if(l<1)o=0;else{t.getMonth()===1&&t.getDate()>27&&t.setDate(30),t.setMonth(t.getMonth()-i*l);let a=Qe(t,r)===-i;Wr(te(e))&&l===1&&Qe(e,r)===1&&(a=!1),o=i*(l-Number(a))}return o===0?0:o}function Qr(e,n,t){const r=$r(e,n)/1e3;return Vr(t==null?void 0:t.roundingMethod)(r)}function Kr(e,n,t){const r=Lr(),i=(t==null?void 0:t.locale)??r.locale??Nr,l=2520,o=Qe(e,n);if(isNaN(o))throw new RangeError("Invalid time value");const a=Object.assign({},t,{addSuffix:t==null?void 0:t.addSuffix,comparison:o});let c,u;o>0?(c=te(n),u=te(e)):(c=te(e),u=te(n));const s=Qr(u,c),p=(Yn(u)-Yn(c))/1e3,h=Math.round((s-p)/60);let f;if(h<2)return t!=null&&t.includeSeconds?s<5?i.formatDistance("lessThanXSeconds",5,a):s<10?i.formatDistance("lessThanXSeconds",10,a):s<20?i.formatDistance("lessThanXSeconds",20,a):s<40?i.formatDistance("halfAMinute",0,a):s<60?i.formatDistance("lessThanXMinutes",1,a):i.formatDistance("xMinutes",1,a):h===0?i.formatDistance("lessThanXMinutes",1,a):i.formatDistance("xMinutes",h,a);if(h<45)return i.formatDistance("xMinutes",h,a);if(h<90)return i.formatDistance("aboutXHours",1,a);if(h<Qn){const k=Math.round(h/60);return i.formatDistance("aboutXHours",k,a)}else{if(h<l)return i.formatDistance("xDays",1,a);if(h<$e){const k=Math.round(h/Qn);return i.formatDistance("xDays",k,a)}else if(h<$e*2)return f=Math.round(h/$e),i.formatDistance("aboutXMonths",f,a)}if(f=Yr(u,c),f<12){const k=Math.round(h/$e);return i.formatDistance("xMonths",k,a)}else{const k=f%12,S=Math.trunc(f/12);return k<3?i.formatDistance("aboutXYears",S,a):k<9?i.formatDistance("overXYears",S,a):i.formatDistance("almostXYears",S+1,a)}}function Gn(e,n){return Kr(e,qr(e),n)}function Gr(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const Jr=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Zr=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ei={};function Jn(e,n){return(ei.jsx?Zr:Jr).test(e)}const ni=/[ \t\n\f\r]/g;function ti(e){return typeof e=="object"?e.type==="text"?Zn(e.value):!1:Zn(e)}function Zn(e){return e.replace(ni,"")===""}class Ue{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}Ue.prototype.normal={};Ue.prototype.property={};Ue.prototype.space=void 0;function Ft(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new Ue(t,r,n)}function yn(e){return e.toLowerCase()}class Z{constructor(n,t){this.attribute=t,this.property=n}}Z.prototype.attribute="";Z.prototype.booleanish=!1;Z.prototype.boolean=!1;Z.prototype.commaOrSpaceSeparated=!1;Z.prototype.commaSeparated=!1;Z.prototype.defined=!1;Z.prototype.mustUseProperty=!1;Z.prototype.number=!1;Z.prototype.overloadedBoolean=!1;Z.prototype.property="";Z.prototype.spaceSeparated=!1;Z.prototype.space=void 0;let ri=0;const _=we(),W=we(),xn=we(),b=we(),$=we(),Ae=we(),ne=we();function we(){return 2**++ri}const kn=Object.freeze(Object.defineProperty({__proto__:null,boolean:_,booleanish:W,commaOrSpaceSeparated:ne,commaSeparated:Ae,number:b,overloadedBoolean:xn,spaceSeparated:$},Symbol.toStringTag,{value:"Module"})),rn=Object.keys(kn);class Pn extends Z{constructor(n,t,r,i){let l=-1;if(super(n,t),et(this,"space",i),typeof r=="number")for(;++l<rn.length;){const o=rn[l];et(this,rn[l],(r&kn[o])===kn[o])}}}Pn.prototype.defined=!0;function et(e,n,t){t&&(e[n]=t)}function ze(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const l=new Pn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),n[r]=l,t[yn(r)]=r,t[yn(l.attribute)]=r}return new Ue(n,t,e.space)}const Bt=ze({properties:{ariaActiveDescendant:null,ariaAtomic:W,ariaAutoComplete:null,ariaBusy:W,ariaChecked:W,ariaColCount:b,ariaColIndex:b,ariaColSpan:b,ariaControls:$,ariaCurrent:null,ariaDescribedBy:$,ariaDetails:null,ariaDisabled:W,ariaDropEffect:$,ariaErrorMessage:null,ariaExpanded:W,ariaFlowTo:$,ariaGrabbed:W,ariaHasPopup:null,ariaHidden:W,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:$,ariaLevel:b,ariaLive:null,ariaModal:W,ariaMultiLine:W,ariaMultiSelectable:W,ariaOrientation:null,ariaOwns:$,ariaPlaceholder:null,ariaPosInSet:b,ariaPressed:W,ariaReadOnly:W,ariaRelevant:null,ariaRequired:W,ariaRoleDescription:$,ariaRowCount:b,ariaRowIndex:b,ariaRowSpan:b,ariaSelected:W,ariaSetSize:b,ariaSort:null,ariaValueMax:b,ariaValueMin:b,ariaValueNow:b,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function jt(e,n){return n in e?e[n]:n}function Ht(e,n){return jt(e,n.toLowerCase())}const ii=ze({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ae,acceptCharset:$,accessKey:$,action:null,allow:null,allowFullScreen:_,allowPaymentRequest:_,allowUserMedia:_,alt:null,as:null,async:_,autoCapitalize:null,autoComplete:$,autoFocus:_,autoPlay:_,blocking:$,capture:null,charSet:null,checked:_,cite:null,className:$,cols:b,colSpan:null,content:null,contentEditable:W,controls:_,controlsList:$,coords:b|Ae,crossOrigin:null,data:null,dateTime:null,decoding:null,default:_,defer:_,dir:null,dirName:null,disabled:_,download:xn,draggable:W,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:_,formTarget:null,headers:$,height:b,hidden:xn,high:b,href:null,hrefLang:null,htmlFor:$,httpEquiv:$,id:null,imageSizes:null,imageSrcSet:null,inert:_,inputMode:null,integrity:null,is:null,isMap:_,itemId:null,itemProp:$,itemRef:$,itemScope:_,itemType:$,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:_,low:b,manifest:null,max:null,maxLength:b,media:null,method:null,min:null,minLength:b,multiple:_,muted:_,name:null,nonce:null,noModule:_,noValidate:_,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:_,optimum:b,pattern:null,ping:$,placeholder:null,playsInline:_,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:_,referrerPolicy:null,rel:$,required:_,reversed:_,rows:b,rowSpan:b,sandbox:$,scope:null,scoped:_,seamless:_,selected:_,shadowRootClonable:_,shadowRootDelegatesFocus:_,shadowRootMode:null,shape:null,size:b,sizes:null,slot:null,span:b,spellCheck:W,src:null,srcDoc:null,srcLang:null,srcSet:null,start:b,step:null,style:null,tabIndex:b,target:null,title:null,translate:null,type:null,typeMustMatch:_,useMap:null,value:W,width:b,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:$,axis:null,background:null,bgColor:null,border:b,borderColor:null,bottomMargin:b,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:_,declare:_,event:null,face:null,frame:null,frameBorder:null,hSpace:b,leftMargin:b,link:null,longDesc:null,lowSrc:null,marginHeight:b,marginWidth:b,noResize:_,noHref:_,noShade:_,noWrap:_,object:null,profile:null,prompt:null,rev:null,rightMargin:b,rules:null,scheme:null,scrolling:W,standby:null,summary:null,text:null,topMargin:b,valueType:null,version:null,vAlign:null,vLink:null,vSpace:b,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:_,disableRemotePlayback:_,prefix:null,property:null,results:b,security:null,unselectable:null},space:"html",transform:Ht}),li=ze({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:ne,accentHeight:b,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:b,amplitude:b,arabicForm:null,ascent:b,attributeName:null,attributeType:null,azimuth:b,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:b,by:null,calcMode:null,capHeight:b,className:$,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:b,diffuseConstant:b,direction:null,display:null,dur:null,divisor:b,dominantBaseline:null,download:_,dx:null,dy:null,edgeMode:null,editable:null,elevation:b,enableBackground:null,end:null,event:null,exponent:b,externalResourcesRequired:null,fill:null,fillOpacity:b,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:Ae,g2:Ae,glyphName:Ae,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:b,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:b,horizOriginX:b,horizOriginY:b,id:null,ideographic:b,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:b,k:b,k1:b,k2:b,k3:b,k4:b,kernelMatrix:ne,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:b,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:b,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:b,overlineThickness:b,paintOrder:null,panose1:null,path:null,pathLength:b,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:$,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:b,pointsAtY:b,pointsAtZ:b,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ne,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ne,rev:ne,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ne,requiredFeatures:ne,requiredFonts:ne,requiredFormats:ne,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:b,specularExponent:b,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:b,strikethroughThickness:b,string:null,stroke:null,strokeDashArray:ne,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:b,strokeOpacity:b,strokeWidth:null,style:null,surfaceScale:b,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ne,tabIndex:b,tableValues:null,target:null,targetX:b,targetY:b,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ne,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:b,underlineThickness:b,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:b,values:null,vAlphabetic:b,vMathematical:b,vectorEffect:null,vHanging:b,vIdeographic:b,version:null,vertAdvY:b,vertOriginX:b,vertOriginY:b,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:b,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:jt}),Ut=ze({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),qt=ze({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ht}),Vt=ze({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),oi={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"},ai=/[A-Z]/g,nt=/-[a-z]/g,ui=/^data[-\w.:]+$/i;function si(e,n){const t=yn(n);let r=n,i=Z;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&ui.test(n)){if(n.charAt(4)==="-"){const l=n.slice(5).replace(nt,fi);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=n.slice(4);if(!nt.test(l)){let o=l.replace(ai,ci);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}i=Pn}return new i(r,n)}function ci(e){return"-"+e.toLowerCase()}function fi(e){return e.charAt(1).toUpperCase()}const pi=Ft([Bt,ii,Ut,qt,Vt],"html"),zn=Ft([Bt,li,Ut,qt,Vt],"svg");function hi(e){return e.join(" ").trim()}var Ie={},ln,tt;function di(){if(tt)return ln;tt=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,a=/^\s+|\s+$/g,c=`
22
+ `,u="/",s="*",p="",h="comment",f="declaration";function k(I,x){if(typeof I!="string")throw new TypeError("First argument must be a string");if(!I)return[];x=x||{};var v=1,E=1;function B(z){var C=z.match(n);C&&(v+=C.length);var U=z.lastIndexOf(c);E=~U?z.length-U:E+z.length}function j(){var z={line:v,column:E};return function(C){return C.position=new y(z),L(),C}}function y(z){this.start=z,this.end={line:v,column:E},this.source=x.source}y.prototype.content=I;function O(z){var C=new Error(x.source+":"+v+":"+E+": "+z);if(C.reason=z,C.filename=x.source,C.line=v,C.column=E,C.source=I,!x.silent)throw C}function H(z){var C=z.exec(I);if(C){var U=C[0];return B(U),I=I.slice(U.length),C}}function L(){H(t)}function R(z){var C;for(z=z||[];C=T();)C!==!1&&z.push(C);return z}function T(){var z=j();if(!(u!=I.charAt(0)||s!=I.charAt(1))){for(var C=2;p!=I.charAt(C)&&(s!=I.charAt(C)||u!=I.charAt(C+1));)++C;if(C+=2,p===I.charAt(C-1))return O("End of comment missing");var U=I.slice(2,C-2);return E+=2,B(U),I=I.slice(C),E+=2,z({type:h,comment:U})}}function A(){var z=j(),C=H(r);if(C){if(T(),!H(i))return O("property missing ':'");var U=H(l),Y=z({type:f,property:S(C[0].replace(e,p)),value:U?S(U[0].replace(e,p)):p});return H(o),Y}}function V(){var z=[];R(z);for(var C;C=A();)C!==!1&&(z.push(C),R(z));return z}return L(),V()}function S(I){return I?I.replace(a,p):p}return ln=k,ln}var rt;function mi(){if(rt)return Ie;rt=1;var e=Ie&&Ie.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.default=t;const n=e(di());function t(r,i){let l=null;if(!r||typeof r!="string")return l;const o=(0,n.default)(r),a=typeof i=="function";return o.forEach(c=>{if(c.type!=="declaration")return;const{property:u,value:s}=c;a?i(u,s,c):s&&(l=l||{},l[u]=s)}),l}return Ie}var Le={},it;function gi(){if(it)return Le;it=1,Object.defineProperty(Le,"__esModule",{value:!0}),Le.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,t=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,l=function(u){return!u||t.test(u)||e.test(u)},o=function(u,s){return s.toUpperCase()},a=function(u,s){return"".concat(s,"-")},c=function(u,s){return s===void 0&&(s={}),l(u)?u:(u=u.toLowerCase(),s.reactCompat?u=u.replace(i,a):u=u.replace(r,a),u.replace(n,o))};return Le.camelCase=c,Le}var Ne,lt;function yi(){if(lt)return Ne;lt=1;var e=Ne&&Ne.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},n=e(mi()),t=gi();function r(i,l){var o={};return!i||typeof i!="string"||(0,n.default)(i,function(a,c){a&&c&&(o[(0,t.camelCase)(a,l)]=c)}),o}return r.default=r,Ne=r,Ne}var xi=yi();const ki=Rt(xi),$t=Xt("end"),vn=Xt("start");function Xt(e){return n;function n(t){const r=t&&t.position&&t.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function bi(e){const n=vn(e),t=$t(e);if(n&&t)return{start:n,end:t}}function Fe(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ot(e.position):"start"in e||"end"in e?ot(e):"line"in e||"column"in e?bn(e):""}function bn(e){return at(e&&e.line)+":"+at(e&&e.column)}function ot(e){return bn(e&&e.start)+"-"+bn(e&&e.end)}function at(e){return e&&typeof e=="number"?e:1}class K extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",l={},o=!1;if(t&&("line"in t&&"column"in t?l={place:t}:"start"in t&&"end"in t?l={place:t}:"type"in t?l={ancestors:[t],place:t.position}:l={...t}),typeof n=="string"?i=n:!l.cause&&n&&(o=!0,i=n.message,l.cause=n),!l.ruleId&&!l.source&&typeof r=="string"){const c=r.indexOf(":");c===-1?l.ruleId=r:(l.source=r.slice(0,c),l.ruleId=r.slice(c+1))}if(!l.place&&l.ancestors&&l.ancestors){const c=l.ancestors[l.ancestors.length-1];c&&(l.place=c.position)}const a=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=Fe(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}K.prototype.file="";K.prototype.name="";K.prototype.reason="";K.prototype.message="";K.prototype.stack="";K.prototype.column=void 0;K.prototype.line=void 0;K.prototype.ancestors=void 0;K.prototype.cause=void 0;K.prototype.fatal=void 0;K.prototype.place=void 0;K.prototype.ruleId=void 0;K.prototype.source=void 0;const Dn={}.hasOwnProperty,wi=new Map,Si=/[A-Z]/g,Ci=new Set(["table","tbody","thead","tfoot","tr"]),Ei=new Set(["td","th"]),Wt="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Ii(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=_i(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Mi(t,n.jsx,n.jsxs)}const i={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?zn:pi,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},l=Yt(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function Yt(e,n,t){if(n.type==="element")return Ti(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return Ai(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return zi(e,n,t);if(n.type==="mdxjsEsm")return Pi(e,n);if(n.type==="root")return vi(e,n,t);if(n.type==="text")return Di(e,n)}function Ti(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=zn,e.schema=i),e.ancestors.push(n);const l=Kt(e,n.tagName,!1),o=Li(e,n);let a=_n(e,n);return Ci.has(n.tagName)&&(a=a.filter(function(c){return typeof c=="string"?!ti(c):!0})),Qt(e,o,l,n),Mn(o,a),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function Ai(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}He(e,n.position)}function Pi(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);He(e,n.position)}function zi(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=zn,e.schema=i),e.ancestors.push(n);const l=n.name===null?e.Fragment:Kt(e,n.name,!0),o=Ni(e,n),a=_n(e,n);return Qt(e,o,l,n),Mn(o,a),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function vi(e,n,t){const r={};return Mn(r,_n(e,n)),e.create(n,e.Fragment,r,t)}function Di(e,n){return n.value}function Qt(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function Mn(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function Mi(e,n,t){return r;function r(i,l,o,a){const u=Array.isArray(o.children)?t:n;return a?u(l,o,a):u(l,o)}}function _i(e,n){return t;function t(r,i,l,o){const a=Array.isArray(l.children),c=vn(r);return n(i,l,o,a,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function Li(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&Dn.call(n.properties,i)){const l=Oi(e,i,n.properties[i]);if(l){const[o,a]=l;e.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&Ei.has(n.tagName)?r=a:t[o]=a}}if(r){const l=t.style||(t.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function Ni(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];l.type;const o=l.expression;o.type;const a=o.properties[0];a.type,Object.assign(t,e.evaluater.evaluateExpression(a.argument))}else He(e,n.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,l=e.evaluater.evaluateExpression(a.expression)}else He(e,n.position);else l=r.value===null?!0:r.value;t[i]=l}return t}function _n(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:wi;for(;++r<n.children.length;){const l=n.children[r];let o;if(e.passKeys){const c=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(c){const u=i.get(c)||0;o=c+"-"+u,i.set(c,u+1)}}const a=Yt(e,l,o);a!==void 0&&t.push(a)}return t}function Oi(e,n,t){const r=si(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?Gr(t):hi(t)),r.property==="style"){let i=typeof t=="object"?t:Ri(e,String(t));return e.stylePropertyNameCase==="css"&&(i=Fi(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?oi[r.property]||r.property:r.attribute,t]}}function Ri(e,n){try{return ki(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new K("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Wt+"#cannot-parse-style-attribute",i}}function Kt(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let l=-1,o;for(;++l<i.length;){const a=Jn(i[l])?{type:"Identifier",name:i[l]}:{type:"Literal",value:i[l]};o=o?{type:"MemberExpression",object:o,property:a,computed:!!(l&&a.type==="Literal"),optional:!1}:a}r=o}else r=Jn(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return Dn.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);He(e)}function He(e,n){const t=new K("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=Wt+"#cannot-handle-mdx-estrees-without-createevaluater",t}function Fi(e){const n={};let t;for(t in e)Dn.call(e,t)&&(n[Bi(t)]=e[t]);return n}function Bi(e){let n=e.replace(Si,ji);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function ji(e){return"-"+e.toLowerCase()}const on={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"]},Hi={};function Ui(e,n){const t=Hi,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Gt(e,r,i)}function Gt(e,n,t){if(qi(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return ut(e.children,n,t)}return Array.isArray(e)?ut(e,n,t):""}function ut(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=Gt(e[i],n,t);return r.join("")}function qi(e){return!!(e&&typeof e=="object")}const st=document.createElement("i");function Ln(e){const n="&"+e+";";st.innerHTML=n;const t=st.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function fe(e,n,t,r){const i=e.length;let l=0,o;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(n,t),e.splice(...o);else for(t&&e.splice(n,t);l<r.length;)o=r.slice(l,l+1e4),o.unshift(n,0),e.splice(...o),l+=1e4,n+=1e4}function ie(e,n){return e.length>0?(fe(e,e.length,0,n),e):n}const ct={}.hasOwnProperty;function Vi(e){const n={};let t=-1;for(;++t<e.length;)$i(n,e[t]);return n}function $i(e,n){let t;for(t in n){const i=(ct.call(e,t)?e[t]:void 0)||(e[t]={}),l=n[t];let o;if(l)for(o in l){ct.call(i,o)||(i[o]=[]);const a=l[o];Xi(i[o],Array.isArray(a)?a:a?[a]:[])}}}function Xi(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);fe(e,0,0,r)}function Jt(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function Pe(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ce=xe(/[A-Za-z]/),re=xe(/[\dA-Za-z]/),Wi=xe(/[#-'*+\--9=?A-Z^-~]/);function wn(e){return e!==null&&(e<32||e===127)}const Sn=xe(/\d/),Yi=xe(/[\dA-Fa-f]/),Qi=xe(/[!-/:-@[-`{-~]/);function D(e){return e!==null&&e<-2}function J(e){return e!==null&&(e<0||e===32)}function F(e){return e===-2||e===-1||e===32}const Ki=xe(new RegExp("\\p{P}|\\p{S}","u")),Gi=xe(/\s/);function xe(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function ve(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const l=e.charCodeAt(t);let o="";if(l===37&&re(e.charCodeAt(t+1))&&re(e.charCodeAt(t+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const a=e.charCodeAt(t+1);l<56320&&a>56319&&a<57344?(o=String.fromCharCode(l,a),i=1):o="�"}else o=String.fromCharCode(l);o&&(n.push(e.slice(r,t),encodeURIComponent(o)),r=t+i+1,o=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function X(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(c){return F(c)?(e.enter(t),a(c)):n(c)}function a(c){return F(c)&&l++<i?(e.consume(c),a):(e.exit(t),n(c))}}const Ji={tokenize:Zi};function Zi(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),X(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),l(a)}function l(a){const c=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=c),t=c,o(a)}function o(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return D(a)?(e.consume(a),e.exit("chunkText"),l):(e.consume(a),o)}}const el={tokenize:nl},ft={tokenize:tl};function nl(e){const n=this,t=[];let r=0,i,l,o;return a;function a(E){if(r<t.length){const B=t[r];return n.containerState=B[1],e.attempt(B[0].continuation,c,u)(E)}return u(E)}function c(E){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&v();const B=n.events.length;let j=B,y;for(;j--;)if(n.events[j][0]==="exit"&&n.events[j][1].type==="chunkFlow"){y=n.events[j][1].end;break}x(r);let O=B;for(;O<n.events.length;)n.events[O][1].end={...y},O++;return fe(n.events,j+1,0,n.events.slice(B)),n.events.length=O,u(E)}return a(E)}function u(E){if(r===t.length){if(!i)return h(E);if(i.currentConstruct&&i.currentConstruct.concrete)return k(E);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(ft,s,p)(E)}function s(E){return i&&v(),x(r),h(E)}function p(E){return n.parser.lazy[n.now().line]=r!==t.length,o=n.now().offset,k(E)}function h(E){return n.containerState={},e.attempt(ft,f,k)(E)}function f(E){return r++,t.push([n.currentConstruct,n.containerState]),h(E)}function k(E){if(E===null){i&&v(),x(0),e.consume(E);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),S(E)}function S(E){if(E===null){I(e.exit("chunkFlow"),!0),x(0),e.consume(E);return}return D(E)?(e.consume(E),I(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(E),S)}function I(E,B){const j=n.sliceStream(E);if(B&&j.push(null),E.previous=l,l&&(l.next=E),l=E,i.defineSkip(E.start),i.write(j),n.parser.lazy[E.start.line]){let y=i.events.length;for(;y--;)if(i.events[y][1].start.offset<o&&(!i.events[y][1].end||i.events[y][1].end.offset>o))return;const O=n.events.length;let H=O,L,R;for(;H--;)if(n.events[H][0]==="exit"&&n.events[H][1].type==="chunkFlow"){if(L){R=n.events[H][1].end;break}L=!0}for(x(r),y=O;y<n.events.length;)n.events[y][1].end={...R},y++;fe(n.events,H+1,0,n.events.slice(O)),n.events.length=y}}function x(E){let B=t.length;for(;B-- >E;){const j=t[B];n.containerState=j[1],j[0].exit.call(n,e)}t.length=E}function v(){i.write([null]),l=void 0,i=void 0,n.containerState._closeFlow=void 0}}function tl(e,n,t){return X(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function pt(e){if(e===null||J(e)||Gi(e))return 1;if(Ki(e))return 2}function Nn(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const l=e[i].resolveAll;l&&!r.includes(l)&&(n=l(n,t),r.push(l))}return n}const Cn={name:"attention",resolveAll:rl,tokenize:il};function rl(e,n){let t=-1,r,i,l,o,a,c,u,s;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const p={...e[r][1].end},h={...e[t][1].start};ht(p,-c),ht(h,c),o={type:c>1?"strongSequence":"emphasisSequence",start:p,end:{...e[r][1].end}},a={type:c>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:h},l={type:c>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:c>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},e[r][1].end={...o.start},e[t][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=ie(u,[["enter",e[r][1],n],["exit",e[r][1],n]])),u=ie(u,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",l,n]]),u=ie(u,Nn(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),u=ie(u,[["exit",l,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(s=2,u=ie(u,[["enter",e[t][1],n],["exit",e[t][1],n]])):s=0,fe(e,r-1,t-r+3,u),t=r+u.length-s-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function il(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=pt(r);let l;return o;function o(c){return l=c,e.enter("attentionSequence"),a(c)}function a(c){if(c===l)return e.consume(c),a;const u=e.exit("attentionSequence"),s=pt(c),p=!s||s===2&&i||t.includes(c),h=!i||i===2&&s||t.includes(r);return u._open=!!(l===42?p:p&&(i||!h)),u._close=!!(l===42?h:h&&(s||!p)),n(c)}}function ht(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const ll={name:"autolink",tokenize:ol};function ol(e,n,t){let r=0;return i;function i(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(f){return ce(f)?(e.consume(f),o):f===64?t(f):u(f)}function o(f){return f===43||f===45||f===46||re(f)?(r=1,a(f)):u(f)}function a(f){return f===58?(e.consume(f),r=0,c):(f===43||f===45||f===46||re(f))&&r++<32?(e.consume(f),a):(r=0,u(f))}function c(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),n):f===null||f===32||f===60||wn(f)?t(f):(e.consume(f),c)}function u(f){return f===64?(e.consume(f),s):Wi(f)?(e.consume(f),u):t(f)}function s(f){return re(f)?p(f):t(f)}function p(f){return f===46?(e.consume(f),r=0,s):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),n):h(f)}function h(f){if((f===45||re(f))&&r++<63){const k=f===45?h:p;return e.consume(f),k}return t(f)}}const en={partial:!0,tokenize:al};function al(e,n,t){return r;function r(l){return F(l)?X(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||D(l)?n(l):t(l)}}const Zt={continuation:{tokenize:sl},exit:cl,name:"blockQuote",tokenize:ul};function ul(e,n,t){const r=this;return i;function i(o){if(o===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),l}return t(o)}function l(o){return F(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(o))}}function sl(e,n,t){const r=this;return i;function i(o){return F(o)?X(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(Zt,n,t)(o)}}function cl(e){e.exit("blockQuote")}const er={name:"characterEscape",tokenize:fl};function fl(e,n,t){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return Qi(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(l)}}const nr={name:"characterReference",tokenize:pl};function pl(e,n,t){const r=this;let i=0,l,o;return a;function a(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),c}function c(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),l=31,o=re,s(p))}function u(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=Yi,s):(e.enter("characterReferenceValue"),l=7,o=Sn,s(p))}function s(p){if(p===59&&i){const h=e.exit("characterReferenceValue");return o===re&&!Ln(r.sliceSerialize(h))?t(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return o(p)&&i++<l?(e.consume(p),s):t(p)}}const dt={partial:!0,tokenize:dl},mt={concrete:!0,name:"codeFenced",tokenize:hl};function hl(e,n,t){const r=this,i={partial:!0,tokenize:j};let l=0,o=0,a;return c;function c(y){return u(y)}function u(y){const O=r.events[r.events.length-1];return l=O&&O[1].type==="linePrefix"?O[2].sliceSerialize(O[1],!0).length:0,a=y,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(y)}function s(y){return y===a?(o++,e.consume(y),s):o<3?t(y):(e.exit("codeFencedFenceSequence"),F(y)?X(e,p,"whitespace")(y):p(y))}function p(y){return y===null||D(y)?(e.exit("codeFencedFence"),r.interrupt?n(y):e.check(dt,S,B)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===null||D(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(y)):F(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),X(e,f,"whitespace")(y)):y===96&&y===a?t(y):(e.consume(y),h)}function f(y){return y===null||D(y)?p(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),k(y))}function k(y){return y===null||D(y)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(y)):y===96&&y===a?t(y):(e.consume(y),k)}function S(y){return e.attempt(i,B,I)(y)}function I(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),x}function x(y){return l>0&&F(y)?X(e,v,"linePrefix",l+1)(y):v(y)}function v(y){return y===null||D(y)?e.check(dt,S,B)(y):(e.enter("codeFlowValue"),E(y))}function E(y){return y===null||D(y)?(e.exit("codeFlowValue"),v(y)):(e.consume(y),E)}function B(y){return e.exit("codeFenced"),n(y)}function j(y,O,H){let L=0;return R;function R(C){return y.enter("lineEnding"),y.consume(C),y.exit("lineEnding"),T}function T(C){return y.enter("codeFencedFence"),F(C)?X(y,A,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):A(C)}function A(C){return C===a?(y.enter("codeFencedFenceSequence"),V(C)):H(C)}function V(C){return C===a?(L++,y.consume(C),V):L>=o?(y.exit("codeFencedFenceSequence"),F(C)?X(y,z,"whitespace")(C):z(C)):H(C)}function z(C){return C===null||D(C)?(y.exit("codeFencedFence"),O(C)):H(C)}}}function dl(e,n,t){const r=this;return i;function i(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}const an={name:"codeIndented",tokenize:gl},ml={partial:!0,tokenize:yl};function gl(e,n,t){const r=this;return i;function i(u){return e.enter("codeIndented"),X(e,l,"linePrefix",5)(u)}function l(u){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?o(u):t(u)}function o(u){return u===null?c(u):D(u)?e.attempt(ml,o,c)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||D(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function c(u){return e.exit("codeIndented"),n(u)}}function yl(e,n,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):D(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):X(e,l,"linePrefix",5)(o)}function l(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):D(o)?i(o):t(o)}}const xl={name:"codeText",previous:bl,resolve:kl,tokenize:wl};function kl(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function bl(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function wl(e,n,t){let r=0,i,l;return o;function o(p){return e.enter("codeText"),e.enter("codeTextSequence"),a(p)}function a(p){return p===96?(e.consume(p),r++,a):(e.exit("codeTextSequence"),c(p))}function c(p){return p===null?t(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),c):p===96?(l=e.enter("codeTextSequence"),i=0,s(p)):D(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("codeTextData"),u(p))}function u(p){return p===null||p===32||p===96||D(p)?(e.exit("codeTextData"),c(p)):(e.consume(p),u)}function s(p){return p===96?(e.consume(p),i++,s):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(p)):(l.type="codeTextData",u(p))}}class Sl{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Oe(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Oe(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Oe(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);Oe(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Oe(this.left,t.reverse())}}}function Oe(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function tr(e){const n={};let t=-1,r,i,l,o,a,c,u;const s=new Sl(e);for(;++t<s.length;){for(;t in n;)t=n[t];if(r=s.get(t),t&&r[1].type==="chunkFlow"&&s.get(t-1)[1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,l=0,l<c.length&&c[l][1].type==="lineEndingBlank"&&(l+=2),l<c.length&&c[l][1].type==="content"))for(;++l<c.length&&c[l][1].type!=="content";)c[l][1].type==="chunkText"&&(c[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,Cl(s,t)),t=n[t],u=!0);else if(r[1]._container){for(l=t,i=void 0;l--;)if(o=s.get(l),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(s.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=l);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...s.get(i)[1].start},a=s.slice(i,t),a.unshift(r),s.splice(i,t-i+1,a))}}return fe(e,0,Number.POSITIVE_INFINITY,s.slice(0)),!u}function Cl(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const l=[];let o=t._tokenizer;o||(o=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const a=o.events,c=[],u={};let s,p,h=-1,f=t,k=0,S=0;const I=[S];for(;f;){for(;e.get(++i)[1]!==f;);l.push(i),f._tokenizer||(s=r.sliceStream(f),f.next||s.push(null),p&&o.defineSkip(f.start),f._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(s),f._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),p=f,f=f.next}for(f=t;++h<a.length;)a[h][0]==="exit"&&a[h-1][0]==="enter"&&a[h][1].type===a[h-1][1].type&&a[h][1].start.line!==a[h][1].end.line&&(S=h+1,I.push(S),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(o.events=[],f?(f._tokenizer=void 0,f.previous=void 0):I.pop(),h=I.length;h--;){const x=a.slice(I[h],I[h+1]),v=l.pop();c.push([v,v+x.length-1]),e.splice(v,2,x)}for(c.reverse(),h=-1;++h<c.length;)u[k+c[h][0]]=k+c[h][1],k+=c[h][1]-c[h][0]-1;return u}const El={resolve:Tl,tokenize:Al},Il={partial:!0,tokenize:Pl};function Tl(e){return tr(e),e}function Al(e,n){let t;return r;function r(a){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?l(a):D(a)?e.check(Il,o,l)(a):(e.consume(a),i)}function l(a){return e.exit("chunkContent"),e.exit("content"),n(a)}function o(a){return e.consume(a),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function Pl(e,n,t){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),X(e,l,"linePrefix")}function l(o){if(o===null||D(o))return t(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}}function rr(e,n,t,r,i,l,o,a,c){const u=c||Number.POSITIVE_INFINITY;let s=0;return p;function p(x){return x===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(x),e.exit(l),h):x===null||x===32||x===41||wn(x)?t(x):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),S(x))}function h(x){return x===62?(e.enter(l),e.consume(x),e.exit(l),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),f(x))}function f(x){return x===62?(e.exit("chunkString"),e.exit(a),h(x)):x===null||x===60||D(x)?t(x):(e.consume(x),x===92?k:f)}function k(x){return x===60||x===62||x===92?(e.consume(x),f):f(x)}function S(x){return!s&&(x===null||x===41||J(x))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),n(x)):s<u&&x===40?(e.consume(x),s++,S):x===41?(e.consume(x),s--,S):x===null||x===32||x===40||wn(x)?t(x):(e.consume(x),x===92?I:S)}function I(x){return x===40||x===41||x===92?(e.consume(x),S):S(x)}}function ir(e,n,t,r,i,l){const o=this;let a=0,c;return u;function u(f){return e.enter(r),e.enter(i),e.consume(f),e.exit(i),e.enter(l),s}function s(f){return a>999||f===null||f===91||f===93&&!c||f===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?t(f):f===93?(e.exit(l),e.enter(i),e.consume(f),e.exit(i),e.exit(r),n):D(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),p(f))}function p(f){return f===null||f===91||f===93||D(f)||a++>999?(e.exit("chunkString"),s(f)):(e.consume(f),c||(c=!F(f)),f===92?h:p)}function h(f){return f===91||f===92||f===93?(e.consume(f),a++,p):p(f)}}function lr(e,n,t,r,i,l){let o;return a;function a(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),o=h===40?41:h,c):t(h)}function c(h){return h===o?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),n):(e.enter(l),u(h))}function u(h){return h===o?(e.exit(l),c(o)):h===null?t(h):D(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),X(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(h))}function s(h){return h===o||h===null||D(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?p:s)}function p(h){return h===o||h===92?(e.consume(h),s):s(h)}}function Be(e,n){let t;return r;function r(i){return D(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):F(i)?X(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const zl={name:"definition",tokenize:Dl},vl={partial:!0,tokenize:Ml};function Dl(e,n,t){const r=this;let i;return l;function l(f){return e.enter("definition"),o(f)}function o(f){return ir.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function a(f){return i=Pe(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),c):t(f)}function c(f){return J(f)?Be(e,u)(f):u(f)}function u(f){return rr(e,s,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function s(f){return e.attempt(vl,p,p)(f)}function p(f){return F(f)?X(e,h,"whitespace")(f):h(f)}function h(f){return f===null||D(f)?(e.exit("definition"),r.parser.defined.push(i),n(f)):t(f)}}function Ml(e,n,t){return r;function r(a){return J(a)?Be(e,i)(a):t(a)}function i(a){return lr(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return F(a)?X(e,o,"whitespace")(a):o(a)}function o(a){return a===null||D(a)?n(a):t(a)}}const _l={name:"hardBreakEscape",tokenize:Ll};function Ll(e,n,t){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return D(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}const Nl={name:"headingAtx",resolve:Ol,tokenize:Rl};function Ol(e,n){let t=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},l={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},fe(e,r,t-r+1,[["enter",i,n],["enter",l,n],["exit",l,n],["exit",i,n]])),e}function Rl(e,n,t){let r=0;return i;function i(s){return e.enter("atxHeading"),l(s)}function l(s){return e.enter("atxHeadingSequence"),o(s)}function o(s){return s===35&&r++<6?(e.consume(s),o):s===null||J(s)?(e.exit("atxHeadingSequence"),a(s)):t(s)}function a(s){return s===35?(e.enter("atxHeadingSequence"),c(s)):s===null||D(s)?(e.exit("atxHeading"),n(s)):F(s)?X(e,a,"whitespace")(s):(e.enter("atxHeadingText"),u(s))}function c(s){return s===35?(e.consume(s),c):(e.exit("atxHeadingSequence"),a(s))}function u(s){return s===null||s===35||J(s)?(e.exit("atxHeadingText"),a(s)):(e.consume(s),u)}}const Fl=["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"],gt=["pre","script","style","textarea"],Bl={concrete:!0,name:"htmlFlow",resolveTo:Ul,tokenize:ql},jl={partial:!0,tokenize:$l},Hl={partial:!0,tokenize:Vl};function Ul(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function ql(e,n,t){const r=this;let i,l,o,a,c;return u;function u(m){return s(m)}function s(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),p}function p(m){return m===33?(e.consume(m),h):m===47?(e.consume(m),l=!0,S):m===63?(e.consume(m),i=3,r.interrupt?n:d):ce(m)?(e.consume(m),o=String.fromCharCode(m),I):t(m)}function h(m){return m===45?(e.consume(m),i=2,f):m===91?(e.consume(m),i=5,a=0,k):ce(m)?(e.consume(m),i=4,r.interrupt?n:d):t(m)}function f(m){return m===45?(e.consume(m),r.interrupt?n:d):t(m)}function k(m){const ae="CDATA[";return m===ae.charCodeAt(a++)?(e.consume(m),a===ae.length?r.interrupt?n:A:k):t(m)}function S(m){return ce(m)?(e.consume(m),o=String.fromCharCode(m),I):t(m)}function I(m){if(m===null||m===47||m===62||J(m)){const ae=m===47,ke=o.toLowerCase();return!ae&&!l&&gt.includes(ke)?(i=1,r.interrupt?n(m):A(m)):Fl.includes(o.toLowerCase())?(i=6,ae?(e.consume(m),x):r.interrupt?n(m):A(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(m):l?v(m):E(m))}return m===45||re(m)?(e.consume(m),o+=String.fromCharCode(m),I):t(m)}function x(m){return m===62?(e.consume(m),r.interrupt?n:A):t(m)}function v(m){return F(m)?(e.consume(m),v):R(m)}function E(m){return m===47?(e.consume(m),R):m===58||m===95||ce(m)?(e.consume(m),B):F(m)?(e.consume(m),E):R(m)}function B(m){return m===45||m===46||m===58||m===95||re(m)?(e.consume(m),B):j(m)}function j(m){return m===61?(e.consume(m),y):F(m)?(e.consume(m),j):E(m)}function y(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),c=m,O):F(m)?(e.consume(m),y):H(m)}function O(m){return m===c?(e.consume(m),c=null,L):m===null||D(m)?t(m):(e.consume(m),O)}function H(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||J(m)?j(m):(e.consume(m),H)}function L(m){return m===47||m===62||F(m)?E(m):t(m)}function R(m){return m===62?(e.consume(m),T):t(m)}function T(m){return m===null||D(m)?A(m):F(m)?(e.consume(m),T):t(m)}function A(m){return m===45&&i===2?(e.consume(m),U):m===60&&i===1?(e.consume(m),Y):m===62&&i===4?(e.consume(m),oe):m===63&&i===3?(e.consume(m),d):m===93&&i===5?(e.consume(m),pe):D(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(jl,he,V)(m)):m===null||D(m)?(e.exit("htmlFlowData"),V(m)):(e.consume(m),A)}function V(m){return e.check(Hl,z,he)(m)}function z(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),C}function C(m){return m===null||D(m)?V(m):(e.enter("htmlFlowData"),A(m))}function U(m){return m===45?(e.consume(m),d):A(m)}function Y(m){return m===47?(e.consume(m),o="",le):A(m)}function le(m){if(m===62){const ae=o.toLowerCase();return gt.includes(ae)?(e.consume(m),oe):A(m)}return ce(m)&&o.length<8?(e.consume(m),o+=String.fromCharCode(m),le):A(m)}function pe(m){return m===93?(e.consume(m),d):A(m)}function d(m){return m===62?(e.consume(m),oe):m===45&&i===2?(e.consume(m),d):A(m)}function oe(m){return m===null||D(m)?(e.exit("htmlFlowData"),he(m)):(e.consume(m),oe)}function he(m){return e.exit("htmlFlow"),n(m)}}function Vl(e,n,t){const r=this;return i;function i(o){return D(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):t(o)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}function $l(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(en,n,t)}}const Xl={name:"htmlText",tokenize:Wl};function Wl(e,n,t){const r=this;let i,l,o;return a;function a(d){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(d),c}function c(d){return d===33?(e.consume(d),u):d===47?(e.consume(d),j):d===63?(e.consume(d),E):ce(d)?(e.consume(d),H):t(d)}function u(d){return d===45?(e.consume(d),s):d===91?(e.consume(d),l=0,k):ce(d)?(e.consume(d),v):t(d)}function s(d){return d===45?(e.consume(d),f):t(d)}function p(d){return d===null?t(d):d===45?(e.consume(d),h):D(d)?(o=p,Y(d)):(e.consume(d),p)}function h(d){return d===45?(e.consume(d),f):p(d)}function f(d){return d===62?U(d):d===45?h(d):p(d)}function k(d){const oe="CDATA[";return d===oe.charCodeAt(l++)?(e.consume(d),l===oe.length?S:k):t(d)}function S(d){return d===null?t(d):d===93?(e.consume(d),I):D(d)?(o=S,Y(d)):(e.consume(d),S)}function I(d){return d===93?(e.consume(d),x):S(d)}function x(d){return d===62?U(d):d===93?(e.consume(d),x):S(d)}function v(d){return d===null||d===62?U(d):D(d)?(o=v,Y(d)):(e.consume(d),v)}function E(d){return d===null?t(d):d===63?(e.consume(d),B):D(d)?(o=E,Y(d)):(e.consume(d),E)}function B(d){return d===62?U(d):E(d)}function j(d){return ce(d)?(e.consume(d),y):t(d)}function y(d){return d===45||re(d)?(e.consume(d),y):O(d)}function O(d){return D(d)?(o=O,Y(d)):F(d)?(e.consume(d),O):U(d)}function H(d){return d===45||re(d)?(e.consume(d),H):d===47||d===62||J(d)?L(d):t(d)}function L(d){return d===47?(e.consume(d),U):d===58||d===95||ce(d)?(e.consume(d),R):D(d)?(o=L,Y(d)):F(d)?(e.consume(d),L):U(d)}function R(d){return d===45||d===46||d===58||d===95||re(d)?(e.consume(d),R):T(d)}function T(d){return d===61?(e.consume(d),A):D(d)?(o=T,Y(d)):F(d)?(e.consume(d),T):L(d)}function A(d){return d===null||d===60||d===61||d===62||d===96?t(d):d===34||d===39?(e.consume(d),i=d,V):D(d)?(o=A,Y(d)):F(d)?(e.consume(d),A):(e.consume(d),z)}function V(d){return d===i?(e.consume(d),i=void 0,C):d===null?t(d):D(d)?(o=V,Y(d)):(e.consume(d),V)}function z(d){return d===null||d===34||d===39||d===60||d===61||d===96?t(d):d===47||d===62||J(d)?L(d):(e.consume(d),z)}function C(d){return d===47||d===62||J(d)?L(d):t(d)}function U(d){return d===62?(e.consume(d),e.exit("htmlTextData"),e.exit("htmlText"),n):t(d)}function Y(d){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),le}function le(d){return F(d)?X(e,pe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):pe(d)}function pe(d){return e.enter("htmlTextData"),o(d)}}const On={name:"labelEnd",resolveAll:Gl,resolveTo:Jl,tokenize:Zl},Yl={tokenize:eo},Ql={tokenize:no},Kl={tokenize:to};function Gl(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&fe(e,0,e.length,t),e}function Jl(e,n){let t=e.length,r=0,i,l,o,a;for(;t--;)if(i=e[t][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=t);const c={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[l][1].start},end:{...e[o][1].end}},s={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[o-2][1].start}};return a=[["enter",c,n],["enter",u,n]],a=ie(a,e.slice(l+1,l+r+3)),a=ie(a,[["enter",s,n]]),a=ie(a,Nn(n.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),n)),a=ie(a,[["exit",s,n],e[o-2],e[o-1],["exit",u,n]]),a=ie(a,e.slice(o+1)),a=ie(a,[["exit",c,n]]),fe(e,l,e.length,a),e}function Zl(e,n,t){const r=this;let i=r.events.length,l,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return a;function a(h){return l?l._inactive?p(h):(o=r.parser.defined.includes(Pe(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),c):t(h)}function c(h){return h===40?e.attempt(Yl,s,o?s:p)(h):h===91?e.attempt(Ql,s,o?u:p)(h):o?s(h):p(h)}function u(h){return e.attempt(Kl,s,p)(h)}function s(h){return n(h)}function p(h){return l._balanced=!0,t(h)}}function eo(e,n,t){return r;function r(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),i}function i(p){return J(p)?Be(e,l)(p):l(p)}function l(p){return p===41?s(p):rr(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function o(p){return J(p)?Be(e,c)(p):s(p)}function a(p){return t(p)}function c(p){return p===34||p===39||p===40?lr(e,u,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):s(p)}function u(p){return J(p)?Be(e,s)(p):s(p)}function s(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),n):t(p)}}function no(e,n,t){const r=this;return i;function i(a){return ir.call(r,e,l,o,"reference","referenceMarker","referenceString")(a)}function l(a){return r.parser.defined.includes(Pe(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function o(a){return t(a)}}function to(e,n,t){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),n):t(l)}}const ro={name:"labelStartImage",resolveAll:On.resolveAll,tokenize:io};function io(e,n,t){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),l}function l(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),o):t(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}const lo={name:"labelStartLink",resolveAll:On.resolveAll,tokenize:oo};function oo(e,n,t){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):n(o)}}const un={name:"lineEnding",tokenize:ao};function ao(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),X(e,n,"linePrefix")}}const Ke={name:"thematicBreak",tokenize:uo};function uo(e,n,t){let r=0,i;return l;function l(u){return e.enter("thematicBreak"),o(u)}function o(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),c(u)):r>=3&&(u===null||D(u))?(e.exit("thematicBreak"),n(u)):t(u)}function c(u){return u===i?(e.consume(u),r++,c):(e.exit("thematicBreakSequence"),F(u)?X(e,a,"whitespace")(u):a(u))}}const G={continuation:{tokenize:po},exit:mo,name:"list",tokenize:fo},so={partial:!0,tokenize:go},co={partial:!0,tokenize:ho};function fo(e,n,t){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(f){const k=r.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(k==="listUnordered"?!r.containerState.marker||f===r.containerState.marker:Sn(f)){if(r.containerState.type||(r.containerState.type=k,e.enter(k,{_container:!0})),k==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(Ke,t,u)(f):u(f);if(!r.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(f)}return t(f)}function c(f){return Sn(f)&&++o<10?(e.consume(f),c):(!r.interrupt||o<2)&&(r.containerState.marker?f===r.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),u(f)):t(f)}function u(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||f,e.check(en,r.interrupt?t:s,e.attempt(so,h,p))}function s(f){return r.containerState.initialBlankLine=!0,l++,h(f)}function p(f){return F(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),h):t(f)}function h(f){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(f)}}function po(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(en,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,X(e,n,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!F(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(co,n,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,X(e,e.attempt(G,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function ho(e,n,t){const r=this;return X(e,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?n(l):t(l)}}function mo(e){e.exit(this.containerState.type)}function go(e,n,t){const r=this;return X(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const o=r.events[r.events.length-1];return!F(l)&&o&&o[1].type==="listItemPrefixWhitespace"?n(l):t(l)}}const yt={name:"setextUnderline",resolveTo:yo,tokenize:xo};function yo(e,n){let t=e.length,r,i,l;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!l&&e[t][1].type==="definition"&&(l=t);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",o,n]),e.splice(l+1,0,["exit",e[r][1],n]),e[r][1].end={...e[l][1].end}):e[r][1]=o,e.push(["exit",o,n]),e}function xo(e,n,t){const r=this;let i;return l;function l(u){let s=r.events.length,p;for(;s--;)if(r.events[s][1].type!=="lineEnding"&&r.events[s][1].type!=="linePrefix"&&r.events[s][1].type!=="content"){p=r.events[s][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||p)?(e.enter("setextHeadingLine"),i=u,o(u)):t(u)}function o(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),F(u)?X(e,c,"lineSuffix")(u):c(u))}function c(u){return u===null||D(u)?(e.exit("setextHeadingLine"),n(u)):t(u)}}const ko={tokenize:bo};function bo(e){const n=this,t=e.attempt(en,r,e.attempt(this.parser.constructs.flowInitial,i,X(e,e.attempt(this.parser.constructs.flow,i,e.attempt(El,i)),"linePrefix")));return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const wo={resolveAll:ar()},So=or("string"),Co=or("text");function or(e){return{resolveAll:ar(e==="text"?Eo:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],l=t.attempt(i,o,a);return o;function o(s){return u(s)?l(s):a(s)}function a(s){if(s===null){t.consume(s);return}return t.enter("data"),t.consume(s),c}function c(s){return u(s)?(t.exit("data"),l(s)):(t.consume(s),c)}function u(s){if(s===null)return!0;const p=i[s];let h=-1;if(p)for(;++h<p.length;){const f=p[h];if(!f.previous||f.previous.call(r,r.previous))return!0}return!1}}}function ar(e){return n;function n(t,r){let i=-1,l;for(;++i<=t.length;)l===void 0?t[i]&&t[i][1].type==="data"&&(l=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==l+2&&(t[l][1].end=t[i-1][1].end,t.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(t,r):t}}function Eo(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let l=i.length,o=-1,a=0,c;for(;l--;){const u=i[l];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(u===-2)c=!0,a++;else if(u!==-1){l++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(a=0),a){const u={type:t===e.length||c||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?o:r.start._bufferIndex+o,_index:r.start._index+l,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(t,0,["enter",u,n],["exit",u,n]),t+=2)}t++}return e}const Io={42:G,43:G,45:G,48:G,49:G,50:G,51:G,52:G,53:G,54:G,55:G,56:G,57:G,62:Zt},To={91:zl},Ao={[-2]:an,[-1]:an,32:an},Po={35:Nl,42:Ke,45:[yt,Ke],60:Bl,61:yt,95:Ke,96:mt,126:mt},zo={38:nr,92:er},vo={[-5]:un,[-4]:un,[-3]:un,33:ro,38:nr,42:Cn,60:[ll,Xl],91:lo,92:[_l,er],93:On,95:Cn,96:xl},Do={null:[Cn,wo]},Mo={null:[42,95]},_o={null:[]},Lo=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Mo,contentInitial:To,disable:_o,document:Io,flow:Po,flowInitial:Ao,insideSpan:Do,string:zo,text:vo},Symbol.toStringTag,{value:"Module"}));function No(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},l=[];let o=[],a=[];const c={attempt:O(j),check:O(y),consume:v,enter:E,exit:B,interrupt:O(y,{interrupt:!0})},u={code:null,containerState:{},defineSkip:S,events:[],now:k,parser:e,previous:null,sliceSerialize:h,sliceStream:f,write:p};let s=n.tokenize.call(u,c);return n.resolveAll&&l.push(n),u;function p(T){return o=ie(o,T),I(),o[o.length-1]!==null?[]:(H(n,0),u.events=Nn(l,u.events,u),u.events)}function h(T,A){return Ro(f(T),A)}function f(T){return Oo(o,T)}function k(){const{_bufferIndex:T,_index:A,line:V,column:z,offset:C}=r;return{_bufferIndex:T,_index:A,line:V,column:z,offset:C}}function S(T){i[T.line]=T.column,R()}function I(){let T;for(;r._index<o.length;){const A=o[r._index];if(typeof A=="string")for(T=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===T&&r._bufferIndex<A.length;)x(A.charCodeAt(r._bufferIndex));else x(A)}}function x(T){s=s(T)}function v(T){D(T)?(r.line++,r.column=1,r.offset+=T===-3?2:1,R()):T!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=T}function E(T,A){const V=A||{};return V.type=T,V.start=k(),u.events.push(["enter",V,u]),a.push(V),V}function B(T){const A=a.pop();return A.end=k(),u.events.push(["exit",A,u]),A}function j(T,A){H(T,A.from)}function y(T,A){A.restore()}function O(T,A){return V;function V(z,C,U){let Y,le,pe,d;return Array.isArray(z)?he(z):"tokenize"in z?he([z]):oe(z);function oe(Q){return De;function De(ge){const Se=ge!==null&&Q[ge],Ce=ge!==null&&Q.null,Ve=[...Array.isArray(Se)?Se:Se?[Se]:[],...Array.isArray(Ce)?Ce:Ce?[Ce]:[]];return he(Ve)(ge)}}function he(Q){return Y=Q,le=0,Q.length===0?U:m(Q[le])}function m(Q){return De;function De(ge){return d=L(),pe=Q,Q.partial||(u.currentConstruct=Q),Q.name&&u.parser.constructs.disable.null.includes(Q.name)?ke():Q.tokenize.call(A?Object.assign(Object.create(u),A):u,c,ae,ke)(ge)}}function ae(Q){return T(pe,d),C}function ke(Q){return d.restore(),++le<Y.length?m(Y[le]):U}}}function H(T,A){T.resolveAll&&!l.includes(T)&&l.push(T),T.resolve&&fe(u.events,A,u.events.length-A,T.resolve(u.events.slice(A),u)),T.resolveTo&&(u.events=T.resolveTo(u.events,u))}function L(){const T=k(),A=u.previous,V=u.currentConstruct,z=u.events.length,C=Array.from(a);return{from:z,restore:U};function U(){r=T,u.previous=A,u.currentConstruct=V,u.events.length=z,a=C,R()}}function R(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Oo(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,l=n.end._bufferIndex;let o;if(t===i)o=[e[t].slice(r,l)];else{if(o=e.slice(t,i),r>-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function Ro(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const l=e[t];let o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
23
+ `;break}case-3:{o=`\r
24
+ `;break}case-2:{o=n?" ":" ";break}case-1:{if(!n&&i)continue;o=" ";break}default:o=String.fromCharCode(l)}i=l===-2,r.push(o)}return r.join("")}function Fo(e){const r={constructs:Vi([Lo,...(e||{}).extensions||[]]),content:i(Ji),defined:[],document:i(el),flow:i(ko),lazy:{},string:i(So),text:i(Co)};return r;function i(l){return o;function o(a){return No(r,l,a)}}}function Bo(e){for(;!tr(e););return e}const xt=/[\0\t\n\r]/g;function jo(){let e=1,n="",t=!0,r;return i;function i(l,o,a){const c=[];let u,s,p,h,f;for(l=n+(typeof l=="string"?l.toString():new TextDecoder(o||void 0).decode(l)),p=0,n="",t&&(l.charCodeAt(0)===65279&&p++,t=void 0);p<l.length;){if(xt.lastIndex=p,u=xt.exec(l),h=u&&u.index!==void 0?u.index:l.length,f=l.charCodeAt(h),!u){n=l.slice(p);break}if(f===10&&p===h&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),p<h&&(c.push(l.slice(p,h)),e+=h-p),f){case 0:{c.push(65533),e++;break}case 9:{for(s=Math.ceil(e/4)*4,c.push(-2);e++<s;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}p=h+1}return a&&(r&&c.push(-5),n&&c.push(n),c.push(null)),c}}const Ho=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Uo(e){return e.replace(Ho,qo)}function qo(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),l=i===120||i===88;return Jt(t.slice(l?2:1),l?16:10)}return Ln(t)||e}const ur={}.hasOwnProperty;function Vo(e,n,t){return typeof n!="string"&&(t=n,n=void 0),$o(t)(Bo(Fo(t).document().write(jo()(e,n,!0))))}function $o(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l($n),autolinkProtocol:L,autolinkEmail:L,atxHeading:l(Un),blockQuote:l(Ce),characterEscape:L,characterReference:L,codeFenced:l(Ve),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(Ve,o),codeText:l(kr,o),codeTextData:L,data:L,codeFlowValue:L,definition:l(br),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(wr),hardBreakEscape:l(qn),hardBreakTrailing:l(qn),htmlFlow:l(Vn,o),htmlFlowData:L,htmlText:l(Vn,o),htmlTextData:L,image:l(Sr),label:o,link:l($n),listItem:l(Cr),listItemValue:h,listOrdered:l(Xn,p),listUnordered:l(Xn),paragraph:l(Er),reference:m,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(Un),strong:l(Ir),thematicBreak:l(Ar)},exit:{atxHeading:c(),atxHeadingSequence:j,autolink:c(),autolinkEmail:Se,autolinkProtocol:ge,blockQuote:c(),characterEscapeValue:R,characterReferenceMarkerHexadecimal:ke,characterReferenceMarkerNumeric:ke,characterReferenceValue:Q,characterReference:De,codeFenced:c(I),codeFencedFence:S,codeFencedFenceInfo:f,codeFencedFenceMeta:k,codeFlowValue:R,codeIndented:c(x),codeText:c(C),codeTextData:R,data:R,definition:c(),definitionDestinationString:B,definitionLabelString:v,definitionTitleString:E,emphasis:c(),hardBreakEscape:c(A),hardBreakTrailing:c(A),htmlFlow:c(V),htmlFlowData:R,htmlText:c(z),htmlTextData:R,image:c(Y),label:pe,labelText:le,lineEnding:T,link:c(U),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:ae,resourceDestinationString:d,resourceTitleString:oe,resource:he,setextHeading:c(H),setextHeadingLineSequence:O,setextHeadingText:y,strong:c(),thematicBreak:c()}};sr(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(g){let w={type:"root",children:[]};const M={stack:[w],tokenStack:[],config:n,enter:a,exit:u,buffer:o,resume:s,data:t},N=[];let q=-1;for(;++q<g.length;)if(g[q][1].type==="listOrdered"||g[q][1].type==="listUnordered")if(g[q][0]==="enter")N.push(q);else{const ue=N.pop();q=i(g,ue,q)}for(q=-1;++q<g.length;){const ue=n[g[q][0]];ur.call(ue,g[q][1].type)&&ue[g[q][1].type].call(Object.assign({sliceSerialize:g[q][2].sliceSerialize},M),g[q][1])}if(M.tokenStack.length>0){const ue=M.tokenStack[M.tokenStack.length-1];(ue[1]||kt).call(M,void 0,ue[0])}for(w.position={start:ye(g.length>0?g[0][1].start:{line:1,column:1,offset:0}),end:ye(g.length>0?g[g.length-2][1].end:{line:1,column:1,offset:0})},q=-1;++q<n.transforms.length;)w=n.transforms[q](w)||w;return w}function i(g,w,M){let N=w-1,q=-1,ue=!1,be,de,Me,_e;for(;++N<=M;){const ee=g[N];switch(ee[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ee[0]==="enter"?q++:q--,_e=void 0;break}case"lineEndingBlank":{ee[0]==="enter"&&(be&&!_e&&!q&&!Me&&(Me=N),_e=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:_e=void 0}if(!q&&ee[0]==="enter"&&ee[1].type==="listItemPrefix"||q===-1&&ee[0]==="exit"&&(ee[1].type==="listUnordered"||ee[1].type==="listOrdered")){if(be){let Ee=N;for(de=void 0;Ee--;){const me=g[Ee];if(me[1].type==="lineEnding"||me[1].type==="lineEndingBlank"){if(me[0]==="exit")continue;de&&(g[de][1].type="lineEndingBlank",ue=!0),me[1].type="lineEnding",de=Ee}else if(!(me[1].type==="linePrefix"||me[1].type==="blockQuotePrefix"||me[1].type==="blockQuotePrefixWhitespace"||me[1].type==="blockQuoteMarker"||me[1].type==="listItemIndent"))break}Me&&(!de||Me<de)&&(be._spread=!0),be.end=Object.assign({},de?g[de][1].start:ee[1].end),g.splice(de||N,0,["exit",be,ee[2]]),N++,M++}if(ee[1].type==="listItemPrefix"){const Ee={type:"listItem",_spread:!1,start:Object.assign({},ee[1].start),end:void 0};be=Ee,g.splice(N,0,["enter",Ee,ee[2]]),N++,M++,Me=void 0,_e=!0}}}return g[w][1]._spread=ue,M}function l(g,w){return M;function M(N){a.call(this,g(N),N),w&&w.call(this,N)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(g,w,M){this.stack[this.stack.length-1].children.push(g),this.stack.push(g),this.tokenStack.push([w,M||void 0]),g.position={start:ye(w.start),end:void 0}}function c(g){return w;function w(M){g&&g.call(this,M),u.call(this,M)}}function u(g,w){const M=this.stack.pop(),N=this.tokenStack.pop();if(N)N[0].type!==g.type&&(w?w.call(this,g,N[0]):(N[1]||kt).call(this,g,N[0]));else throw new Error("Cannot close `"+g.type+"` ("+Fe({start:g.start,end:g.end})+"): it’s not open");M.position.end=ye(g.end)}function s(){return Ui(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function h(g){if(this.data.expectingFirstListItemValue){const w=this.stack[this.stack.length-2];w.start=Number.parseInt(this.sliceSerialize(g),10),this.data.expectingFirstListItemValue=void 0}}function f(){const g=this.resume(),w=this.stack[this.stack.length-1];w.lang=g}function k(){const g=this.resume(),w=this.stack[this.stack.length-1];w.meta=g}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function I(){const g=this.resume(),w=this.stack[this.stack.length-1];w.value=g.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const g=this.resume(),w=this.stack[this.stack.length-1];w.value=g.replace(/(\r?\n|\r)$/g,"")}function v(g){const w=this.resume(),M=this.stack[this.stack.length-1];M.label=w,M.identifier=Pe(this.sliceSerialize(g)).toLowerCase()}function E(){const g=this.resume(),w=this.stack[this.stack.length-1];w.title=g}function B(){const g=this.resume(),w=this.stack[this.stack.length-1];w.url=g}function j(g){const w=this.stack[this.stack.length-1];if(!w.depth){const M=this.sliceSerialize(g).length;w.depth=M}}function y(){this.data.setextHeadingSlurpLineEnding=!0}function O(g){const w=this.stack[this.stack.length-1];w.depth=this.sliceSerialize(g).codePointAt(0)===61?1:2}function H(){this.data.setextHeadingSlurpLineEnding=void 0}function L(g){const M=this.stack[this.stack.length-1].children;let N=M[M.length-1];(!N||N.type!=="text")&&(N=Tr(),N.position={start:ye(g.start),end:void 0},M.push(N)),this.stack.push(N)}function R(g){const w=this.stack.pop();w.value+=this.sliceSerialize(g),w.position.end=ye(g.end)}function T(g){const w=this.stack[this.stack.length-1];if(this.data.atHardBreak){const M=w.children[w.children.length-1];M.position.end=ye(g.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(w.type)&&(L.call(this,g),R.call(this,g))}function A(){this.data.atHardBreak=!0}function V(){const g=this.resume(),w=this.stack[this.stack.length-1];w.value=g}function z(){const g=this.resume(),w=this.stack[this.stack.length-1];w.value=g}function C(){const g=this.resume(),w=this.stack[this.stack.length-1];w.value=g}function U(){const g=this.stack[this.stack.length-1];if(this.data.inReference){const w=this.data.referenceType||"shortcut";g.type+="Reference",g.referenceType=w,delete g.url,delete g.title}else delete g.identifier,delete g.label;this.data.referenceType=void 0}function Y(){const g=this.stack[this.stack.length-1];if(this.data.inReference){const w=this.data.referenceType||"shortcut";g.type+="Reference",g.referenceType=w,delete g.url,delete g.title}else delete g.identifier,delete g.label;this.data.referenceType=void 0}function le(g){const w=this.sliceSerialize(g),M=this.stack[this.stack.length-2];M.label=Uo(w),M.identifier=Pe(w).toLowerCase()}function pe(){const g=this.stack[this.stack.length-1],w=this.resume(),M=this.stack[this.stack.length-1];if(this.data.inReference=!0,M.type==="link"){const N=g.children;M.children=N}else M.alt=w}function d(){const g=this.resume(),w=this.stack[this.stack.length-1];w.url=g}function oe(){const g=this.resume(),w=this.stack[this.stack.length-1];w.title=g}function he(){this.data.inReference=void 0}function m(){this.data.referenceType="collapsed"}function ae(g){const w=this.resume(),M=this.stack[this.stack.length-1];M.label=w,M.identifier=Pe(this.sliceSerialize(g)).toLowerCase(),this.data.referenceType="full"}function ke(g){this.data.characterReferenceType=g.type}function Q(g){const w=this.sliceSerialize(g),M=this.data.characterReferenceType;let N;M?(N=Jt(w,M==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):N=Ln(w);const q=this.stack[this.stack.length-1];q.value+=N}function De(g){const w=this.stack.pop();w.position.end=ye(g.end)}function ge(g){R.call(this,g);const w=this.stack[this.stack.length-1];w.url=this.sliceSerialize(g)}function Se(g){R.call(this,g);const w=this.stack[this.stack.length-1];w.url="mailto:"+this.sliceSerialize(g)}function Ce(){return{type:"blockquote",children:[]}}function Ve(){return{type:"code",lang:null,meta:null,value:""}}function kr(){return{type:"inlineCode",value:""}}function br(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function wr(){return{type:"emphasis",children:[]}}function Un(){return{type:"heading",depth:0,children:[]}}function qn(){return{type:"break"}}function Vn(){return{type:"html",value:""}}function Sr(){return{type:"image",title:null,url:"",alt:null}}function $n(){return{type:"link",title:null,url:"",children:[]}}function Xn(g){return{type:"list",ordered:g.type==="listOrdered",start:null,spread:g._spread,children:[]}}function Cr(g){return{type:"listItem",spread:g._spread,checked:null,children:[]}}function Er(){return{type:"paragraph",children:[]}}function Ir(){return{type:"strong",children:[]}}function Tr(){return{type:"text",value:""}}function Ar(){return{type:"thematicBreak"}}}function ye(e){return{line:e.line,column:e.column,offset:e.offset}}function sr(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?sr(e,r):Xo(e,r)}}function Xo(e,n){let t;for(t in n)if(ur.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function kt(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Fe({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Fe({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Fe({start:n.start,end:n.end})+") is still open")}function Wo(e){const n=this;n.parser=t;function t(r){return Vo(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function Yo(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function Qo(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
25
+ `}]}function Ko(e,n){const t=n.value?n.value+`
26
+ `:"",r={},i=n.lang?n.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:t}]};return n.meta&&(l.data={meta:n.meta}),e.patch(n,l),l=e.applyData(n,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(n,l),l}function Go(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Jo(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Zo(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),i=ve(r.toLowerCase()),l=e.footnoteOrder.indexOf(r);let o,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=l+1,a+=1,e.footnoteCounts.set(r,a);const c={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+i,id:t+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(n,c);const u={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(n,u),e.applyData(n,u)}function ea(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function na(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function cr(e,n){const t=n.referenceType;let r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];const i=e.all(n),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function ta(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return cr(e,n);const i={src:ve(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,l),e.applyData(n,l)}function ra(e,n){const t={src:ve(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,r),e.applyData(n,r)}function ia(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const r={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,r),e.applyData(n,r)}function la(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return cr(e,n);const i={href:ve(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,l),e.applyData(n,l)}function oa(e,n){const t={href:ve(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function aa(e,n,t){const r=e.all(n),i=t?ua(t):fr(n),l={},o=[];if(typeof n.checked=="boolean"){const s=r[0];let p;s&&s.type==="element"&&s.tagName==="p"?p=s:(p={type:"element",tagName:"p",properties:{},children:[]},r.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const s=r[a];(i||a!==0||s.type!=="element"||s.tagName!=="p")&&o.push({type:"text",value:`
27
+ `}),s.type==="element"&&s.tagName==="p"&&!i?o.push(...s.children):o.push(s)}const c=r[r.length-1];c&&(i||c.type!=="element"||c.tagName!=="p")&&o.push({type:"text",value:`
28
+ `});const u={type:"element",tagName:"li",properties:l,children:o};return e.patch(n,u),e.applyData(n,u)}function ua(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const t=e.children;let r=-1;for(;!n&&++r<t.length;)n=fr(t[r])}return n}function fr(e){const n=e.spread;return n??e.children.length>1}function sa(e,n){const t={},r=e.all(n);let i=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const l={type:"element",tagName:n.ordered?"ol":"ul",properties:t,children:e.wrap(r,!0)};return e.patch(n,l),e.applyData(n,l)}function ca(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function fa(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)}function pa(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function ha(e,n){const t=e.all(n),r=t.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],o),i.push(o)}if(t.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},a=vn(n.children[1]),c=$t(n.children[n.children.length-1]);a&&c&&(o.position={start:a,end:c}),i.push(o)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(n,l),e.applyData(n,l)}function da(e,n,t){const r=t?t.children:void 0,l=(r?r.indexOf(n):1)===0?"th":"td",o=t&&t.type==="table"?t.align:void 0,a=o?o.length:n.children.length;let c=-1;const u=[];for(;++c<a;){const p=n.children[c],h={},f=o?o[c]:void 0;f&&(h.align=f);let k={type:"element",tagName:l,properties:h,children:[]};p&&(k.children=e.all(p),e.patch(p,k),k=e.applyData(p,k)),u.push(k)}const s={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(n,s),e.applyData(n,s)}function ma(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}const bt=9,wt=32;function ga(e){const n=String(e),t=/\r?\n|\r/g;let r=t.exec(n),i=0;const l=[];for(;r;)l.push(St(n.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=t.exec(n);return l.push(St(n.slice(i),i>0,!1)),l.join("")}function St(e,n,t){let r=0,i=e.length;if(n){let l=e.codePointAt(r);for(;l===bt||l===wt;)r++,l=e.codePointAt(r)}if(t){let l=e.codePointAt(i-1);for(;l===bt||l===wt;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function ya(e,n){const t={type:"text",value:ga(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function xa(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const ka={blockquote:Yo,break:Qo,code:Ko,delete:Go,emphasis:Jo,footnoteReference:Zo,heading:ea,html:na,imageReference:ta,image:ra,inlineCode:ia,linkReference:la,link:oa,listItem:aa,list:sa,paragraph:ca,root:fa,strong:pa,table:ha,tableCell:ma,tableRow:da,text:ya,thematicBreak:xa,toml:Xe,yaml:Xe,definition:Xe,footnoteDefinition:Xe};function Xe(){}const pr=-1,nn=0,je=1,Ge=2,Rn=3,Fn=4,Bn=5,jn=6,hr=7,dr=8,Ct=typeof self=="object"?self:globalThis,ba=(e,n)=>{const t=(i,l)=>(e.set(l,i),i),r=i=>{if(e.has(i))return e.get(i);const[l,o]=n[i];switch(l){case nn:case pr:return t(o,i);case je:{const a=t([],i);for(const c of o)a.push(r(c));return a}case Ge:{const a=t({},i);for(const[c,u]of o)a[r(c)]=r(u);return a}case Rn:return t(new Date(o),i);case Fn:{const{source:a,flags:c}=o;return t(new RegExp(a,c),i)}case Bn:{const a=t(new Map,i);for(const[c,u]of o)a.set(r(c),r(u));return a}case jn:{const a=t(new Set,i);for(const c of o)a.add(r(c));return a}case hr:{const{name:a,message:c}=o;return t(new Ct[a](c),i)}case dr:return t(BigInt(o),i);case"BigInt":return t(Object(BigInt(o)),i);case"ArrayBuffer":return t(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:a}=new Uint8Array(o);return t(new DataView(a),o)}}return t(new Ct[l](o),i)};return r},Et=e=>ba(new Map,e)(0),Te="",{toString:wa}={},{keys:Sa}=Object,Re=e=>{const n=typeof e;if(n!=="object"||!e)return[nn,n];const t=wa.call(e).slice(8,-1);switch(t){case"Array":return[je,Te];case"Object":return[Ge,Te];case"Date":return[Rn,Te];case"RegExp":return[Fn,Te];case"Map":return[Bn,Te];case"Set":return[jn,Te];case"DataView":return[je,t]}return t.includes("Array")?[je,t]:t.includes("Error")?[hr,t]:[Ge,t]},We=([e,n])=>e===nn&&(n==="function"||n==="symbol"),Ca=(e,n,t,r)=>{const i=(o,a)=>{const c=r.push(o)-1;return t.set(a,c),c},l=o=>{if(t.has(o))return t.get(o);let[a,c]=Re(o);switch(a){case nn:{let s=o;switch(c){case"bigint":a=dr,s=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);s=null;break;case"undefined":return i([pr],o)}return i([a,s],o)}case je:{if(c){let h=o;return c==="DataView"?h=new Uint8Array(o.buffer):c==="ArrayBuffer"&&(h=new Uint8Array(o)),i([c,[...h]],o)}const s=[],p=i([a,s],o);for(const h of o)s.push(l(h));return p}case Ge:{if(c)switch(c){case"BigInt":return i([c,o.toString()],o);case"Boolean":case"Number":case"String":return i([c,o.valueOf()],o)}if(n&&"toJSON"in o)return l(o.toJSON());const s=[],p=i([a,s],o);for(const h of Sa(o))(e||!We(Re(o[h])))&&s.push([l(h),l(o[h])]);return p}case Rn:return i([a,o.toISOString()],o);case Fn:{const{source:s,flags:p}=o;return i([a,{source:s,flags:p}],o)}case Bn:{const s=[],p=i([a,s],o);for(const[h,f]of o)(e||!(We(Re(h))||We(Re(f))))&&s.push([l(h),l(f)]);return p}case jn:{const s=[],p=i([a,s],o);for(const h of o)(e||!We(Re(h)))&&s.push(l(h));return p}}const{message:u}=o;return i([a,{name:c,message:u}],o)};return l},It=(e,{json:n,lossy:t}={})=>{const r=[];return Ca(!(n||t),!!n,new Map,r)(e),r},Je=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?Et(It(e,n)):structuredClone(e):(e,n)=>Et(It(e,n));function Ea(e,n){const t=[{type:"text",value:"↩"}];return n>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),t}function Ia(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function Ta(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||Ea,r=e.options.footnoteBackLabel||Ia,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let c=-1;for(;++c<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[c]);if(!u)continue;const s=e.all(u),p=String(u.identifier).toUpperCase(),h=ve(p.toLowerCase());let f=0;const k=[],S=e.footnoteCounts.get(p);for(;S!==void 0&&++f<=S;){k.length>0&&k.push({type:"text",value:" "});let v=typeof t=="string"?t:t(c,f);typeof v=="string"&&(v={type:"text",value:v}),k.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+h+(f>1?"-"+f:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(c,f),className:["data-footnote-backref"]},children:Array.isArray(v)?v:[v]})}const I=s[s.length-1];if(I&&I.type==="element"&&I.tagName==="p"){const v=I.children[I.children.length-1];v&&v.type==="text"?v.value+=" ":I.children.push({type:"text",value:" "}),I.children.push(...k)}else s.push(...k);const x={type:"element",tagName:"li",properties:{id:n+"fn-"+h},children:e.wrap(s,!0)};e.patch(u,x),a.push(x)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...Je(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
29
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
30
+ `}]}}const mr=(function(e){if(e==null)return va;if(typeof e=="function")return tn(e);if(typeof e=="object")return Array.isArray(e)?Aa(e):Pa(e);if(typeof e=="string")return za(e);throw new Error("Expected function, string, or object as test")});function Aa(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=mr(e[t]);return tn(r);function r(...i){let l=-1;for(;++l<n.length;)if(n[l].apply(this,i))return!0;return!1}}function Pa(e){const n=e;return tn(t);function t(r){const i=r;let l;for(l in e)if(i[l]!==n[l])return!1;return!0}}function za(e){return tn(n);function n(t){return t&&t.type===e}}function tn(e){return n;function n(t,r,i){return!!(Da(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function va(){return!0}function Da(e){return e!==null&&typeof e=="object"&&"type"in e}const gr=[],Ma=!0,Tt=!1,_a="skip";function La(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;const l=mr(i),o=r?-1:1;a(e,void 0,[])();function a(c,u,s){const p=c&&typeof c=="object"?c:{};if(typeof p.type=="string"){const f=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(c.type+(f?"<"+f+">":""))+")"})}return h;function h(){let f=gr,k,S,I;if((!n||l(c,u,s[s.length-1]||void 0))&&(f=Na(t(c,s)),f[0]===Tt))return f;if("children"in c&&c.children){const x=c;if(x.children&&f[0]!==_a)for(S=(r?x.children.length:-1)+o,I=s.concat(x);S>-1&&S<x.children.length;){const v=x.children[S];if(k=a(v,S,I)(),k[0]===Tt)return k;S=typeof k[1]=="number"?k[1]:S+o}}return f}}}function Na(e){return Array.isArray(e)?e:typeof e=="number"?[Ma,e]:e==null?gr:[e]}function yr(e,n,t,r){let i,l,o;typeof n=="function"&&typeof t!="function"?(l=void 0,o=n,i=t):(l=n,o=t,i=r),La(e,l,a,i);function a(c,u){const s=u[u.length-1],p=s?s.children.indexOf(c):void 0;return o(c,p,s)}}const En={}.hasOwnProperty,Oa={};function Ra(e,n){const t=n||Oa,r=new Map,i=new Map,l=new Map,o={...ka,...t.handlers},a={all:u,applyData:Ba,definitionById:r,footnoteById:i,footnoteCounts:l,footnoteOrder:[],handlers:o,one:c,options:t,patch:Fa,wrap:Ha};return yr(e,function(s){if(s.type==="definition"||s.type==="footnoteDefinition"){const p=s.type==="definition"?r:i,h=String(s.identifier).toUpperCase();p.has(h)||p.set(h,s)}}),a;function c(s,p){const h=s.type,f=a.handlers[h];if(En.call(a.handlers,h)&&f)return f(a,s,p);if(a.options.passThrough&&a.options.passThrough.includes(h)){if("children"in s){const{children:S,...I}=s,x=Je(I);return x.children=a.all(s),x}return Je(s)}return(a.options.unknownHandler||ja)(a,s,p)}function u(s){const p=[];if("children"in s){const h=s.children;let f=-1;for(;++f<h.length;){const k=a.one(h[f],s);if(k){if(f&&h[f-1].type==="break"&&(!Array.isArray(k)&&k.type==="text"&&(k.value=At(k.value)),!Array.isArray(k)&&k.type==="element")){const S=k.children[0];S&&S.type==="text"&&(S.value=At(S.value))}Array.isArray(k)?p.push(...k):p.push(k)}}}return p}}function Fa(e,n){e.position&&(n.position=bi(e))}function Ba(e,n){let t=n;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,l=e.data.hProperties;if(typeof r=="string")if(t.type==="element")t.tagName=r;else{const o="children"in t?t.children:[t];t={type:"element",tagName:r,properties:{},children:o}}t.type==="element"&&l&&Object.assign(t.properties,Je(l)),"children"in t&&t.children&&i!==null&&i!==void 0&&(t.children=i)}return t}function ja(e,n){const t=n.data||{},r="value"in n&&!(En.call(t,"hProperties")||En.call(t,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Ha(e,n){const t=[];let r=-1;for(n&&t.push({type:"text",value:`
31
+ `});++r<e.length;)r&&t.push({type:"text",value:`
32
+ `}),t.push(e[r]);return n&&e.length>0&&t.push({type:"text",value:`
33
+ `}),t}function At(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function Pt(e,n){const t=Ra(e,n),r=t.one(e,void 0),i=Ta(t),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:`
34
+ `},i),l}function Ua(e,n){return e&&"run"in e?async function(t,r){const i=Pt(t,{file:r,...n});await e.run(i,r)}:function(t,r){return Pt(t,{file:r,...e||n})}}function zt(e){if(e)throw e}var sn,vt;function qa(){if(vt)return sn;vt=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):n.call(u)==="[object Array]"},l=function(u){if(!u||n.call(u)!=="[object Object]")return!1;var s=e.call(u,"constructor"),p=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!s&&!p)return!1;var h;for(h in u);return typeof h>"u"||e.call(u,h)},o=function(u,s){t&&s.name==="__proto__"?t(u,s.name,{enumerable:!0,configurable:!0,value:s.newValue,writable:!0}):u[s.name]=s.newValue},a=function(u,s){if(s==="__proto__")if(e.call(u,s)){if(r)return r(u,s).value}else return;return u[s]};return sn=function c(){var u,s,p,h,f,k,S=arguments[0],I=1,x=arguments.length,v=!1;for(typeof S=="boolean"&&(v=S,S=arguments[1]||{},I=2),(S==null||typeof S!="object"&&typeof S!="function")&&(S={});I<x;++I)if(u=arguments[I],u!=null)for(s in u)p=a(S,s),h=a(u,s),S!==h&&(v&&h&&(l(h)||(f=i(h)))?(f?(f=!1,k=p&&i(p)?p:[]):k=p&&l(p)?p:{},o(S,{name:s,newValue:c(v,k,h)})):typeof h<"u"&&o(S,{name:s,newValue:h}));return S},sn}var Va=qa();const cn=Rt(Va);function In(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function $a(){const e=[],n={run:t,use:r};return n;function t(...i){let l=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);a(null,...i);function a(c,...u){const s=e[++l];let p=-1;if(c){o(c);return}for(;++p<i.length;)(u[p]===null||u[p]===void 0)&&(u[p]=i[p]);i=u,s?Xa(s,a)(...u):o(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function Xa(e,n){let t;return r;function r(...o){const a=e.length>o.length;let c;a&&o.push(i);try{c=e.apply(this,o)}catch(u){const s=u;if(a&&t)throw s;return i(s)}a||(c&&c.then&&typeof c.then=="function"?c.then(l,i):c instanceof Error?i(c):l(c))}function i(o,...a){t||(t=!0,n(o,...a))}function l(o){i(null,o)}}const se={basename:Wa,dirname:Ya,extname:Qa,join:Ka,sep:"/"};function Wa(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');qe(e);let t=0,r=-1,i=e.length,l;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let o=-1,a=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else o<0&&(l=!0,o=i+1),a>-1&&(e.codePointAt(i)===n.codePointAt(a--)?a<0&&(r=i):(a=-1,r=o));return t===r?r=o:r<0&&(r=e.length),e.slice(t,r)}function Ya(e){if(qe(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function Qa(e){qe(e);let n=e.length,t=-1,r=0,i=-1,l=0,o;for(;n--;){const a=e.codePointAt(n);if(a===47){if(o){r=n+1;break}continue}t<0&&(o=!0,t=n+1),a===46?i<0?i=n:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||t<0||l===0||l===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function Ka(...e){let n=-1,t;for(;++n<e.length;)qe(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":Ga(t)}function Ga(e){qe(e);const n=e.codePointAt(0)===47;let t=Ja(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function Ja(e,n){let t="",r=0,i=-1,l=0,o=-1,a,c;for(;++o<=e.length;){if(o<e.length)a=e.codePointAt(o);else{if(a===47)break;a=47}if(a===47){if(!(i===o-1||l===1))if(i!==o-1&&l===2){if(t.length<2||r!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(c=t.lastIndexOf("/"),c!==t.length-1){c<0?(t="",r=0):(t=t.slice(0,c),r=t.length-1-t.lastIndexOf("/")),i=o,l=0;continue}}else if(t.length>0){t="",r=0,i=o,l=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,o):t=e.slice(i+1,o),r=o-i-1;i=o,l=0}else a===46&&l>-1?l++:l=-1}return t}function qe(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Za={cwd:eu};function eu(){return"/"}function Tn(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function nu(e){if(typeof e=="string")e=new URL(e);else if(!Tn(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return tu(e)}function tu(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const n=e.pathname;let t=-1;for(;++t<n.length;)if(n.codePointAt(t)===37&&n.codePointAt(t+1)===50){const r=n.codePointAt(t+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(n)}const fn=["history","path","basename","stem","extname","dirname"];class xr{constructor(n){let t;n?Tn(n)?t={path:n}:typeof n=="string"||ru(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":Za.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<fn.length;){const l=fn[r];l in t&&t[l]!==void 0&&t[l]!==null&&(this[l]=l==="history"?[...t[l]]:t[l])}let i;for(i in t)fn.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?se.basename(this.path):void 0}set basename(n){hn(n,"basename"),pn(n,"basename"),this.path=se.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?se.dirname(this.path):void 0}set dirname(n){Dt(this.basename,"dirname"),this.path=se.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?se.extname(this.path):void 0}set extname(n){if(pn(n,"extname"),Dt(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=se.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Tn(n)&&(n=nu(n)),hn(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?se.basename(this.path,this.extname):void 0}set stem(n){hn(n,"stem"),pn(n,"stem"),this.path=se.join(this.dirname||"",n+(this.extname||""))}fail(n,t,r){const i=this.message(n,t,r);throw i.fatal=!0,i}info(n,t,r){const i=this.message(n,t,r);return i.fatal=void 0,i}message(n,t,r){const i=new K(n,t,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function pn(e,n){if(e&&e.includes(se.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+se.sep+"`")}function hn(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function Dt(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function ru(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const iu=(function(e){const r=this.constructor.prototype,i=r[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,r),l}),lu={}.hasOwnProperty;class Hn extends iu{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=$a()}copy(){const n=new Hn;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(cn(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(gn("data",this.frozen),this.namespace[n]=t,this):lu.call(this.namespace,n)&&this.namespace[n]||void 0:n?(gn("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=t.call(n,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const t=Ye(n),r=this.parser||this.Parser;return dn("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),dn("process",this.parser||this.Parser),mn("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(l,o){const a=Ye(n),c=r.parse(a);r.run(c,a,function(s,p,h){if(s||!p||!h)return u(s);const f=p,k=r.stringify(f,h);uu(k)?h.value=k:h.result=k,u(s,h)});function u(s,p){s||!p?o(s):l?l(p):t(void 0,p)}}}processSync(n){let t=!1,r;return this.freeze(),dn("processSync",this.parser||this.Parser),mn("processSync",this.compiler||this.Compiler),this.process(n,i),_t("processSync","process",t),r;function i(l,o){t=!0,zt(l),r=o}}run(n,t,r){Mt(n),this.freeze();const i=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?l(void 0,r):new Promise(l);function l(o,a){const c=Ye(t);i.run(n,c,u);function u(s,p,h){const f=p||n;s?a(s):o?o(f):r(void 0,f,h)}}}runSync(n,t){let r=!1,i;return this.run(n,t,l),_t("runSync","run",r),i;function l(o,a){zt(o),i=a,r=!0}}stringify(n,t){this.freeze();const r=Ye(t),i=this.compiler||this.Compiler;return mn("stringify",i),Mt(n),i(n,r)}use(n,...t){const r=this.attachers,i=this.namespace;if(gn("use",this.frozen),n!=null)if(typeof n=="function")c(n,t);else if(typeof n=="object")Array.isArray(n)?a(n):o(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function l(u){if(typeof u=="function")c(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[s,...p]=u;c(s,p)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))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");a(u.plugins),u.settings&&(i.settings=cn(!0,i.settings,u.settings))}function a(u){let s=-1;if(u!=null)if(Array.isArray(u))for(;++s<u.length;){const p=u[s];l(p)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function c(u,s){let p=-1,h=-1;for(;++p<r.length;)if(r[p][0]===u){h=p;break}if(h===-1)r.push([u,...s]);else if(s.length>0){let[f,...k]=s;const S=r[h][1];In(S)&&In(f)&&(f=cn(!0,S,f)),r[h]=[u,f,...k]}}}}const ou=new Hn().freeze();function dn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function mn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function gn(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Mt(e){if(!In(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function _t(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Ye(e){return au(e)?e:new xr(e)}function au(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function uu(e){return typeof e=="string"||su(e)}function su(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const cu="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Lt=[],Nt={allowDangerousHtml:!0},fu=/^(https?|ircs?|mailto|xmpp)$/i,pu=[{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 hu(e){const n=du(e),t=mu(e);return gu(n.runSync(n.parse(t),t),e)}function du(e){const n=e.rehypePlugins||Lt,t=e.remarkPlugins||Lt,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Nt}:Nt;return ou().use(Wo).use(t).use(Ua,r).use(n)}function mu(e){const n=e.children||"",t=new xr;return typeof n=="string"&&(t.value=n),t}function gu(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,l=n.disallowedElements,o=n.skipHtml,a=n.unwrapDisallowed,c=n.urlTransform||yu;for(const s of pu)Object.hasOwn(n,s.from)&&(""+s.from+(s.to?"use `"+s.to+"` instead":"remove it")+cu+s.id,void 0);return n.className&&(e={type:"element",tagName:"div",properties:{className:n.className},children:e.type==="root"?e.children:[e]}),yr(e,u),Ii(e,{Fragment:P.Fragment,components:i,ignoreInvalidStyle:!0,jsx:P.jsx,jsxs:P.jsxs,passKeys:!0,passNode:!0});function u(s,p,h){if(s.type==="raw"&&h&&typeof p=="number")return o?h.children.splice(p,1):h.children[p]={type:"text",value:s.value},p;if(s.type==="element"){let f;for(f in on)if(Object.hasOwn(on,f)&&Object.hasOwn(s.properties,f)){const k=s.properties[f],S=on[f];(S===null||S.includes(s.tagName))&&(s.properties[f]=c(String(k||""),f,s))}}if(s.type==="element"){let f=t?!t.includes(s.tagName):l?l.includes(s.tagName):!1;if(!f&&r&&typeof p=="number"&&(f=!r(s,p,h)),f&&h&&typeof p=="number")return a&&s.children?h.children.splice(p,1,...s.children):h.children.splice(p,1),p}}}function yu(e){const n=e.indexOf(":"),t=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return n===-1||i!==-1&&n>i||t!==-1&&n>t||r!==-1&&n>r||fu.test(e.slice(0,n))?e:""}function xu(e,n){const t=(e==null?void 0:e.primary)||"#337eff",r=(e==null?void 0:e.text)||(n?"#1a1a2e":"#f7f7f8"),i=n?"rgba(0,0,0,0.9)":"rgba(255,255,255,0.95)",l=n?"rgba(0,0,0,0.06)":"rgba(255,255,255,0.08)",o=n?"rgba(0,0,0,0.04)":"rgba(0,0,0,0.25)",a=n?"1px solid rgba(0,0,0,0.08)":"1px solid rgba(255,255,255,0.06)",c=n?`3px solid ${t}60`:`3px solid ${t}80`;return{paragraph:{margin:"0 0 8px 0",lineHeight:"1.6",color:r},strong:{fontWeight:600,color:i},emphasis:{fontStyle:"italic",color:r},link:{color:t,textDecoration:"underline",textUnderlineOffset:"2px",cursor:"pointer"},list:{paddingLeft:"20px",margin:"8px 0",color:r},listItem:{margin:"4px 0",lineHeight:"1.5",color:r},code:{fontFamily:'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace',fontSize:"0.875em",backgroundColor:l,padding:"2px 6px",borderRadius:"4px",color:r},codeBlock:{fontFamily:'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace',fontSize:"0.8125em",backgroundColor:o,border:a,padding:"12px",borderRadius:"8px",overflowX:"auto",margin:"8px 0",color:r,lineHeight:"1.5",display:"block",whiteSpace:"pre"},heading:{fontWeight:600,marginTop:"12px",marginBottom:"6px",color:i,lineHeight:"1.3"},blockquote:{borderLeft:c,backgroundColor:n?"rgba(0,0,0,0.02)":"rgba(255,255,255,0.02)",margin:"8px 0",padding:"6px 12px",borderRadius:"0 4px 4px 0",color:r,fontStyle:"italic"},hr:{border:"none",borderTop:n?"1px solid rgba(0,0,0,0.1)":"1px solid rgba(255,255,255,0.08)",margin:"12px 0"}}}function ku(e){const n=(e==null?void 0:e.background)||"#00001a";if(!n.startsWith("#"))return!1;const t=n.replace("#","");if(t.length<6)return!1;const r=parseInt(t.substring(0,2),16),i=parseInt(t.substring(2,4),16),l=parseInt(t.substring(4,6),16);return(.299*r+.587*i+.114*l)/255>.5}function An({content:e,theme:n}){const t=ku(n),r=xu(n,t),i={display:"block"};return P.jsx("div",{style:i,children:P.jsx(hu,{components:{p:({children:l})=>P.jsx("p",{style:r.paragraph,children:l}),strong:({children:l})=>P.jsx("strong",{style:r.strong,children:l}),em:({children:l})=>P.jsx("em",{style:r.emphasis,children:l}),a:({href:l,children:o})=>P.jsx("a",{href:l,target:"_blank",rel:"noopener noreferrer",style:r.link,children:o}),ul:({children:l})=>P.jsx("ul",{style:{...r.list,listStyleType:"disc"},children:l}),ol:({children:l})=>P.jsx("ol",{style:{...r.list,listStyleType:"decimal"},children:l}),li:({children:l})=>P.jsx("li",{style:r.listItem,children:l}),code:(({children:l,className:o})=>o!=null&&o.startsWith("language-")?P.jsx("code",{className:o,style:r.codeBlock,children:l}):P.jsx("code",{style:r.code,children:l})),pre:({children:l})=>P.jsx("pre",{style:{margin:"8px 0",padding:0,backgroundColor:"transparent",border:"none",overflow:"visible"},children:l}),h1:({children:l})=>P.jsx("h1",{style:{...r.heading,fontSize:"1.15em"},children:l}),h2:({children:l})=>P.jsx("h2",{style:{...r.heading,fontSize:"1.1em"},children:l}),h3:({children:l})=>P.jsx("h3",{style:{...r.heading,fontSize:"1.05em"},children:l}),h4:({children:l})=>P.jsx("h4",{style:{...r.heading,fontSize:"1em"},children:l}),h5:({children:l})=>P.jsx("h5",{style:{...r.heading,fontSize:"0.95em"},children:l}),h6:({children:l})=>P.jsx("h6",{style:{...r.heading,fontSize:"0.9em"},children:l}),blockquote:({children:l})=>P.jsx("blockquote",{style:r.blockquote,children:l}),hr:()=>P.jsx("hr",{style:r.hr})},children:e})})}try{An.displayName="MarkdownMessage",An.__docgenInfo={description:"",displayName:"MarkdownMessage",props:{content:{defaultValue:null,description:"",name:"content",required:!0,type:{name:"string"}},theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"IChatTheme | undefined"}}}}}catch{}function Ot({message:e,currentUser:n,showAvatar:t=!0,showTimestamp:r=!0,theme:i}){var E,B,j,y,O,H;const l=e.senderType===n.type,o=e.senderType==="system",a=((E=e.metadata)==null?void 0:E.isAI)===!0,c=e.senderType==="bot",u=(i==null?void 0:i.background)||"#00001a",s=(()=>{if(!u.startsWith("#"))return!1;const L=u.replace("#",""),R=parseInt(L.substring(0,2),16),T=parseInt(L.substring(2,4),16),A=parseInt(L.substring(4,6),16);return(.299*R+.587*T+.114*A)/255>.5})(),p=(i==null?void 0:i.primary)||"#337eff",h=(i==null?void 0:i.primaryStrong)||"#005eff",f=(i==null?void 0:i.text)||(s?"#1a1a2e":"#f7f7f8"),k=(i==null?void 0:i.textMuted)||(s?"rgba(0,0,0,0.35)":"rgba(247,247,248,0.35)");if(e.messageType==="booking_slots"||e.messageType==="booking_confirmation"||e.messageType==="booking_cancelled")return P.jsxs("div",{className:"flex gap-2.5 mb-3 flex-row",children:[t&&P.jsx("div",{className:"flex-shrink-0 mt-auto mb-5",children:P.jsx(Wn,{size:28})}),P.jsxs("div",{className:"flex flex-col max-w-[85%] items-start",children:[P.jsx("span",{className:"mb-1 px-1 font-medium",style:{color:s?"rgba(0,0,0,0.45)":"rgba(247,247,248,0.4)",fontSize:"11px",letterSpacing:"0.019em"},children:"AI Assistant"}),e.messageType==="booking_slots"&&P.jsx(Pr,{data:(B=e.metadata)==null?void 0:B.bookingData,theme:i,onSlotSelected:(L,R)=>{var A;const T=(A=e.metadata)==null?void 0:A.onSlotSelected;T==null||T(L,R)},disabled:!!((j=e.metadata)!=null&&j.slotSelected)}),e.messageType==="booking_confirmation"&&P.jsx(zr,{data:(y=e.metadata)==null?void 0:y.bookingConfirmation,theme:i}),e.messageType==="booking_cancelled"&&P.jsx(vr,{data:(O=e.metadata)==null?void 0:O.bookingCancelled,theme:i}),r&&P.jsx("div",{className:"flex items-center gap-1.5 mt-1 px-1",children:P.jsx("span",{style:{fontSize:"11px",letterSpacing:"0.019em",color:k},children:Gn(new Date(e.createdAt),{addSuffix:!0})})})]})]});if(o)return P.jsx("div",{className:"flex justify-center my-3",children:P.jsx("div",{className:"px-4 py-1.5 rounded-full",style:{backgroundColor:s?"rgba(0,0,0,0.04)":"rgba(255,255,255,0.03)",boxShadow:s?"inset 0 0 0 1px rgba(0,0,0,0.06)":"inset 0 0 0 0.5px rgba(255,255,255,0.06)"},children:P.jsx("p",{style:{fontSize:"11px",letterSpacing:"0.019em",color:k},children:e.content})})});const I=l?null:(()=>{var L;return c||a?"AI Assistant":e.senderType==="agent"?((L=e.metadata)==null?void 0:L.agentName)||"Support Agent":null})(),x={background:`linear-gradient(135deg, ${p}, ${h})`,color:"#ffffff",borderRadius:"18px 18px 4px 18px",boxShadow:`0 2px 12px -3px ${p}40`},v=s?{backgroundColor:"rgba(0,0,0,0.04)",color:f,borderRadius:"18px 18px 18px 4px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.06)"}:{backgroundColor:"rgba(255,255,255,0.04)",color:f,borderRadius:"18px 18px 18px 4px",boxShadow:"inset 0 0 0 0.5px rgba(255,255,255,0.06), inset 0 1px 0 0 rgba(255,255,255,0.08)"};return P.jsxs("div",{className:`flex gap-2.5 mb-3 ${l?"flex-row-reverse":"flex-row"}`,children:[t&&!l&&P.jsx("div",{className:"flex-shrink-0 mt-auto mb-5",children:c||a?P.jsx(Wn,{size:28}):P.jsx("div",{className:"h-7 w-7 rounded-full flex items-center justify-center",style:{background:s?`linear-gradient(135deg, ${p}30, rgba(0,0,0,0.04))`:`linear-gradient(135deg, ${p}60, rgba(255,255,255,0.06))`,boxShadow:s?"inset 0 0 0 1px rgba(0,0,0,0.08)":"inset 0 0 0 0.5px rgba(255,255,255,0.1)"},children:P.jsx(jr,{size:14,stroke:s?p:"white",strokeWidth:2,"aria-hidden":"true"})})}),t&&l&&P.jsx("div",{className:"w-7 flex-shrink-0"}),P.jsxs("div",{className:`flex flex-col max-w-[75%] ${l?"items-end":"items-start"}`,children:[I&&P.jsx("span",{className:"mb-1 px-1 font-medium",style:{color:s?"rgba(0,0,0,0.45)":"rgba(247,247,248,0.4)",fontSize:"11px",letterSpacing:"0.019em"},children:I}),P.jsxs("div",{className:"px-4 py-2.5",style:{...l?x:v,fontSize:"14px",lineHeight:"1.5",letterSpacing:"0.006em"},children:[e.messageType==="text"&&(l?P.jsx("span",{style:{whiteSpace:"pre-wrap",wordBreak:"break-word"},children:e.content}):P.jsx(An,{content:e.content,theme:i})),e.messageType==="image"&&P.jsx("div",{children:P.jsx("img",{src:e.content,alt:"Attachment",className:"max-w-full h-auto rounded-lg",loading:"lazy"})}),e.messageType==="file"&&P.jsxs("div",{className:"flex items-center gap-2",children:[P.jsx(Ur,{size:18,strokeWidth:1.75,"aria-hidden":"true"}),P.jsx("a",{href:e.content,target:"_blank",rel:"noopener noreferrer",style:{color:l?"rgba(255,255,255,0.85)":p,textDecoration:"underline",textUnderlineOffset:"2px"},children:((H=e.metadata)==null?void 0:H.fileName)||"Download file"})]})]}),r&&P.jsxs("div",{className:`flex items-center gap-1.5 mt-1 px-1 ${l?"flex-row-reverse":"flex-row"}`,children:[P.jsx("span",{style:{fontSize:"11px",letterSpacing:"0.019em",color:k},children:Gn(new Date(e.createdAt),{addSuffix:!0})}),l&&e.status&&P.jsxs("span",{style:{color:k},children:[e.status==="sent"&&P.jsx(Fr,{size:14,strokeWidth:2.5,"aria-hidden":"true"}),e.status==="delivered"&&P.jsx(Kn,{size:14,strokeWidth:2.5,"aria-hidden":"true"}),e.status==="read"&&P.jsx(Kn,{size:14,strokeWidth:2.5,stroke:p,"aria-hidden":"true"})]})]})]})]})}try{Ot.displayName="MessageItem",Ot.__docgenInfo={description:"",displayName:"MessageItem",props:{message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"IMessage"}},currentUser:{defaultValue:null,description:"",name:"currentUser",required:!0,type:{name:"IUser"}},showAvatar:{defaultValue:{value:"true"},description:"",name:"showAvatar",required:!1,type:{name:"boolean | undefined"}},showTimestamp:{defaultValue:{value:"true"},description:"",name:"showTimestamp",required:!1,type:{name:"boolean | undefined"}},theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"IChatTheme | undefined"}}}}}catch{}export{Ot as M};
@@ -1,4 +1,4 @@
1
- import{j as t}from"./jsx-runtime-Cf8x2fCZ.js";import{M as r}from"./MessageItem-Dlb6dSKL.js";import"./index-yBjzXJbu.js";import"./BrandIcons-Cjy5INAp.js";import"./index--qcDGAq6.js";import"./en-US-BukEqXxE.js";const $e={title:"Components/MessageItem",component:r,parameters:{layout:"padded"},tags:["autodocs"]},s={name:"John Doe",email:"john@example.com",type:"customer",status:"online"},e={id:"1",conversationId:"conv-1",senderId:"user@example.com",senderType:"customer",content:"Hello, I need help with my account.",messageType:"text",createdAt:new Date().toISOString(),status:"sent"},a={args:{message:{...e,senderId:s.email,content:"Hello, I need help with my account."},currentUser:s,showAvatar:!0,showTimestamp:!0}},n={args:{message:{...e,senderId:"agent@example.com",senderType:"agent",content:"Hi! I'd be happy to help you with your account. What issue are you experiencing?"},currentUser:s,showAvatar:!0,showTimestamp:!0}},i={args:{message:{...e,senderId:"ai-assistant",senderType:"bot",content:`Hello! I'm the Xcelsior assistant. Based on our knowledge base, here are some common solutions:
1
+ import{j as t}from"./jsx-runtime-Cf8x2fCZ.js";import{M as r}from"./MessageItem-pEOwuLyh.js";import"./index-yBjzXJbu.js";import"./BrandIcons-BsRAdWzL.js";import"./index--qcDGAq6.js";import"./BookingSlotPicker-BkfssueW.js";import"./globe-BtMvkLMD.js";import"./BookingCancelledCard-XHuB-Ebp.js";import"./en-US-BukEqXxE.js";const ts={title:"Components/MessageItem",component:r,parameters:{layout:"padded"},tags:["autodocs"]},s={name:"John Doe",email:"john@example.com",type:"customer",status:"online"},e={id:"1",conversationId:"conv-1",senderId:"user@example.com",senderType:"customer",content:"Hello, I need help with my account.",messageType:"text",createdAt:new Date().toISOString(),status:"sent"},a={args:{message:{...e,senderId:s.email,content:"Hello, I need help with my account."},currentUser:s,showAvatar:!0,showTimestamp:!0}},n={args:{message:{...e,senderId:"agent@example.com",senderType:"agent",content:"Hi! I'd be happy to help you with your account. What issue are you experiencing?"},currentUser:s,showAvatar:!0,showTimestamp:!0}},i={args:{message:{...e,senderId:"ai-assistant",senderType:"bot",content:`Hello! I'm the Xcelsior assistant. Based on our knowledge base, here are some common solutions:
2
2
 
3
3
  1. Reset your password
4
4
  2. Verify your email
@@ -419,4 +419,4 @@ Would you like to know more about any specific service?\`,
419
419
  showAvatar: true,
420
420
  showTimestamp: true
421
421
  }
422
- }`,...(Ve=(Re=f.parameters)==null?void 0:Re.docs)==null?void 0:Ve.source},description:{story:"Full conversation flow: customer → bot → escalation → agent",...(Ke=(Ye=f.parameters)==null?void 0:Ye.docs)==null?void 0:Ke.description}}};const es=["CustomerMessage","AgentMessage","BotMessage","BotMessageLowConfidence","BotMessageFeedbackGood","BotMessageFeedbackWrong","BotMessageWithMarkdown","SystemMessage","EscalationNotice","AgentTookOver","ImageMessage","FileMessage","BotMarkdownMessage","BotCodeBlock","BotLongResponse","FullConversationFlow"];export{n as AgentMessage,l as AgentTookOver,b as BotCodeBlock,I as BotLongResponse,w as BotMarkdownMessage,i as BotMessage,m as BotMessageFeedbackGood,d as BotMessageFeedbackWrong,c as BotMessageLowConfidence,u as BotMessageWithMarkdown,a as CustomerMessage,g as EscalationNotice,y as FileMessage,f as FullConversationFlow,h as ImageMessage,p as SystemMessage,es as __namedExportsOrder,$e as default};
422
+ }`,...(Ve=(Re=f.parameters)==null?void 0:Re.docs)==null?void 0:Ve.source},description:{story:"Full conversation flow: customer → bot → escalation → agent",...(Ke=(Ye=f.parameters)==null?void 0:Ye.docs)==null?void 0:Ke.description}}};const rs=["CustomerMessage","AgentMessage","BotMessage","BotMessageLowConfidence","BotMessageFeedbackGood","BotMessageFeedbackWrong","BotMessageWithMarkdown","SystemMessage","EscalationNotice","AgentTookOver","ImageMessage","FileMessage","BotMarkdownMessage","BotCodeBlock","BotLongResponse","FullConversationFlow"];export{n as AgentMessage,l as AgentTookOver,b as BotCodeBlock,I as BotLongResponse,w as BotMarkdownMessage,i as BotMessage,m as BotMessageFeedbackGood,d as BotMessageFeedbackWrong,c as BotMessageLowConfidence,u as BotMessageWithMarkdown,a as CustomerMessage,g as EscalationNotice,y as FileMessage,f as FullConversationFlow,h as ImageMessage,p as SystemMessage,rs as __namedExportsOrder,ts as default};
@@ -1,2 +1,2 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./test-utils-BE0XkMtV.js","./index--qcDGAq6.js","./index-yBjzXJbu.js","./index-BLHw34Di.js","./react-18-CALspjOX.js"])))=>i.map(i=>d[i]);
2
- import{_ as Ee}from"./iframe-BXTccXxS.js";import{_ as Ae,a as O,b as ge}from"./chunk-XP5HYGXS-BpfKkqn7.js";import{r as k,R as Y,a as we}from"./index--qcDGAq6.js";import"./index-yBjzXJbu.js";var ne={};const{global:xe}=__STORYBOOK_MODULE_GLOBAL__;var Q=O({"../../node_modules/semver/internal/constants.js"(m,l){var r="2.0.0",a=Number.MAX_SAFE_INTEGER||9007199254740991,n=16,t=250,p=["major","premajor","minor","preminor","patch","prepatch","prerelease"];l.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:t,MAX_SAFE_INTEGER:a,RELEASE_TYPES:p,SEMVER_SPEC_VERSION:r,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}}),Z=O({"../../node_modules/semver/internal/debug.js"(m,l){var r=typeof process=="object"&&ne&&ne.NODE_DEBUG&&/\bsemver\b/i.test(ne.NODE_DEBUG)?(...a)=>console.error("SEMVER",...a):()=>{};l.exports=r}}),z=O({"../../node_modules/semver/internal/re.js"(m,l){var{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:a,MAX_LENGTH:n}=Q(),t=Z();m=l.exports={};var p=m.re=[],h=m.safeRe=[],e=m.src=[],f=m.safeSrc=[],i=m.t={},v=0,s="[a-zA-Z0-9-]",u=[["\\s",1],["\\d",n],[s,a]],E=I=>{for(let[T,A]of u)I=I.split(`${T}*`).join(`${T}{0,${A}}`).split(`${T}+`).join(`${T}{1,${A}}`);return I},o=(I,T,A)=>{let y=E(T),D=v++;t(I,D,T),i[I]=D,e[D]=T,f[D]=y,p[D]=new RegExp(T,A?"g":void 0),h[D]=new RegExp(y,A?"g":void 0)};o("NUMERICIDENTIFIER","0|[1-9]\\d*"),o("NUMERICIDENTIFIERLOOSE","\\d+"),o("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${s}*`),o("MAINVERSION",`(${e[i.NUMERICIDENTIFIER]})\\.(${e[i.NUMERICIDENTIFIER]})\\.(${e[i.NUMERICIDENTIFIER]})`),o("MAINVERSIONLOOSE",`(${e[i.NUMERICIDENTIFIERLOOSE]})\\.(${e[i.NUMERICIDENTIFIERLOOSE]})\\.(${e[i.NUMERICIDENTIFIERLOOSE]})`),o("PRERELEASEIDENTIFIER",`(?:${e[i.NUMERICIDENTIFIER]}|${e[i.NONNUMERICIDENTIFIER]})`),o("PRERELEASEIDENTIFIERLOOSE",`(?:${e[i.NUMERICIDENTIFIERLOOSE]}|${e[i.NONNUMERICIDENTIFIER]})`),o("PRERELEASE",`(?:-(${e[i.PRERELEASEIDENTIFIER]}(?:\\.${e[i.PRERELEASEIDENTIFIER]})*))`),o("PRERELEASELOOSE",`(?:-?(${e[i.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${e[i.PRERELEASEIDENTIFIERLOOSE]})*))`),o("BUILDIDENTIFIER",`${s}+`),o("BUILD",`(?:\\+(${e[i.BUILDIDENTIFIER]}(?:\\.${e[i.BUILDIDENTIFIER]})*))`),o("FULLPLAIN",`v?${e[i.MAINVERSION]}${e[i.PRERELEASE]}?${e[i.BUILD]}?`),o("FULL",`^${e[i.FULLPLAIN]}$`),o("LOOSEPLAIN",`[v=\\s]*${e[i.MAINVERSIONLOOSE]}${e[i.PRERELEASELOOSE]}?${e[i.BUILD]}?`),o("LOOSE",`^${e[i.LOOSEPLAIN]}$`),o("GTLT","((?:<|>)?=?)"),o("XRANGEIDENTIFIERLOOSE",`${e[i.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),o("XRANGEIDENTIFIER",`${e[i.NUMERICIDENTIFIER]}|x|X|\\*`),o("XRANGEPLAIN",`[v=\\s]*(${e[i.XRANGEIDENTIFIER]})(?:\\.(${e[i.XRANGEIDENTIFIER]})(?:\\.(${e[i.XRANGEIDENTIFIER]})(?:${e[i.PRERELEASE]})?${e[i.BUILD]}?)?)?`),o("XRANGEPLAINLOOSE",`[v=\\s]*(${e[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${e[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${e[i.XRANGEIDENTIFIERLOOSE]})(?:${e[i.PRERELEASELOOSE]})?${e[i.BUILD]}?)?)?`),o("XRANGE",`^${e[i.GTLT]}\\s*${e[i.XRANGEPLAIN]}$`),o("XRANGELOOSE",`^${e[i.GTLT]}\\s*${e[i.XRANGEPLAINLOOSE]}$`),o("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),o("COERCE",`${e[i.COERCEPLAIN]}(?:$|[^\\d])`),o("COERCEFULL",e[i.COERCEPLAIN]+`(?:${e[i.PRERELEASE]})?(?:${e[i.BUILD]})?(?:$|[^\\d])`),o("COERCERTL",e[i.COERCE],!0),o("COERCERTLFULL",e[i.COERCEFULL],!0),o("LONETILDE","(?:~>?)"),o("TILDETRIM",`(\\s*)${e[i.LONETILDE]}\\s+`,!0),m.tildeTrimReplace="$1~",o("TILDE",`^${e[i.LONETILDE]}${e[i.XRANGEPLAIN]}$`),o("TILDELOOSE",`^${e[i.LONETILDE]}${e[i.XRANGEPLAINLOOSE]}$`),o("LONECARET","(?:\\^)"),o("CARETTRIM",`(\\s*)${e[i.LONECARET]}\\s+`,!0),m.caretTrimReplace="$1^",o("CARET",`^${e[i.LONECARET]}${e[i.XRANGEPLAIN]}$`),o("CARETLOOSE",`^${e[i.LONECARET]}${e[i.XRANGEPLAINLOOSE]}$`),o("COMPARATORLOOSE",`^${e[i.GTLT]}\\s*(${e[i.LOOSEPLAIN]})$|^$`),o("COMPARATOR",`^${e[i.GTLT]}\\s*(${e[i.FULLPLAIN]})$|^$`),o("COMPARATORTRIM",`(\\s*)${e[i.GTLT]}\\s*(${e[i.LOOSEPLAIN]}|${e[i.XRANGEPLAIN]})`,!0),m.comparatorTrimReplace="$1$2$3",o("HYPHENRANGE",`^\\s*(${e[i.XRANGEPLAIN]})\\s+-\\s+(${e[i.XRANGEPLAIN]})\\s*$`),o("HYPHENRANGELOOSE",`^\\s*(${e[i.XRANGEPLAINLOOSE]})\\s+-\\s+(${e[i.XRANGEPLAINLOOSE]})\\s*$`),o("STAR","(<|>)?=?\\s*\\*"),o("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),o("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}}),me=O({"../../node_modules/semver/internal/parse-options.js"(m,l){var r=Object.freeze({loose:!0}),a=Object.freeze({}),n=t=>t?typeof t!="object"?r:t:a;l.exports=n}}),Le=O({"../../node_modules/semver/internal/identifiers.js"(m,l){var r=/^[0-9]+$/,a=(t,p)=>{let h=r.test(t),e=r.test(p);return h&&e&&(t=+t,p=+p),t===p?0:h&&!e?-1:e&&!h?1:t<p?-1:1},n=(t,p)=>a(p,t);l.exports={compareIdentifiers:a,rcompareIdentifiers:n}}}),q=O({"../../node_modules/semver/classes/semver.js"(m,l){var r=Z(),{MAX_LENGTH:a,MAX_SAFE_INTEGER:n}=Q(),{safeRe:t,safeSrc:p,t:h}=z(),e=me(),{compareIdentifiers:f}=Le(),i=class X{constructor(s,u){if(u=e(u),s instanceof X){if(s.loose===!!u.loose&&s.includePrerelease===!!u.includePrerelease)return s;s=s.version}else if(typeof s!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof s}".`);if(s.length>a)throw new TypeError(`version is longer than ${a} characters`);r("SemVer",s,u),this.options=u,this.loose=!!u.loose,this.includePrerelease=!!u.includePrerelease;let E=s.trim().match(u.loose?t[h.LOOSE]:t[h.FULL]);if(!E)throw new TypeError(`Invalid Version: ${s}`);if(this.raw=s,this.major=+E[1],this.minor=+E[2],this.patch=+E[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");E[4]?this.prerelease=E[4].split(".").map(o=>{if(/^[0-9]+$/.test(o)){let I=+o;if(I>=0&&I<n)return I}return o}):this.prerelease=[],this.build=E[5]?E[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(s){if(r("SemVer.compare",this.version,this.options,s),!(s instanceof X)){if(typeof s=="string"&&s===this.version)return 0;s=new X(s,this.options)}return s.version===this.version?0:this.compareMain(s)||this.comparePre(s)}compareMain(s){return s instanceof X||(s=new X(s,this.options)),f(this.major,s.major)||f(this.minor,s.minor)||f(this.patch,s.patch)}comparePre(s){if(s instanceof X||(s=new X(s,this.options)),this.prerelease.length&&!s.prerelease.length)return-1;if(!this.prerelease.length&&s.prerelease.length)return 1;if(!this.prerelease.length&&!s.prerelease.length)return 0;let u=0;do{let E=this.prerelease[u],o=s.prerelease[u];if(r("prerelease compare",u,E,o),E===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(E===void 0)return-1;if(E!==o)return f(E,o)}while(++u)}compareBuild(s){s instanceof X||(s=new X(s,this.options));let u=0;do{let E=this.build[u],o=s.build[u];if(r("build compare",u,E,o),E===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(E===void 0)return-1;if(E!==o)return f(E,o)}while(++u)}inc(s,u,E){if(s.startsWith("pre")){if(!u&&E===!1)throw new Error("invalid increment argument: identifier is empty");if(u){let o=new RegExp(`^${this.options.loose?p[h.PRERELEASELOOSE]:p[h.PRERELEASE]}$`),I=`-${u}`.match(o);if(!I||I[1]!==u)throw new Error(`invalid identifier: ${u}`)}}switch(s){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",u,E);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",u,E);break;case"prepatch":this.prerelease.length=0,this.inc("patch",u,E),this.inc("pre",u,E);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",u,E),this.inc("pre",u,E);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let o=Number(E)?1:0;if(this.prerelease.length===0)this.prerelease=[o];else{let I=this.prerelease.length;for(;--I>=0;)typeof this.prerelease[I]=="number"&&(this.prerelease[I]++,I=-2);if(I===-1){if(u===this.prerelease.join(".")&&E===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(o)}}if(u){let I=[u,o];E===!1&&(I=[u]),f(this.prerelease[0],u)===0?isNaN(this.prerelease[1])&&(this.prerelease=I):this.prerelease=I}break}default:throw new Error(`invalid increment argument: ${s}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};l.exports=i}}),H=O({"../../node_modules/semver/functions/parse.js"(m,l){var r=q(),a=(n,t,p=!1)=>{if(n instanceof r)return n;try{return new r(n,t)}catch(h){if(!p)return null;throw h}};l.exports=a}}),je=O({"../../node_modules/semver/functions/valid.js"(m,l){var r=H(),a=(n,t)=>{let p=r(n,t);return p?p.version:null};l.exports=a}}),Pe=O({"../../node_modules/semver/functions/clean.js"(m,l){var r=H(),a=(n,t)=>{let p=r(n.trim().replace(/^[=v]+/,""),t);return p?p.version:null};l.exports=a}}),Ce=O({"../../node_modules/semver/functions/inc.js"(m,l){var r=q(),a=(n,t,p,h,e)=>{typeof p=="string"&&(e=h,h=p,p=void 0);try{return new r(n instanceof r?n.version:n,p).inc(t,h,e).version}catch{return null}};l.exports=a}}),ye=O({"../../node_modules/semver/functions/diff.js"(m,l){var r=H(),a=(n,t)=>{let p=r(n,null,!0),h=r(t,null,!0),e=p.compare(h);if(e===0)return null;let f=e>0,i=f?p:h,v=f?h:p,s=!!i.prerelease.length;if(v.prerelease.length&&!s){if(!v.patch&&!v.minor)return"major";if(v.compareMain(i)===0)return v.minor&&!v.patch?"minor":"patch"}let u=s?"pre":"";return p.major!==h.major?u+"major":p.minor!==h.minor?u+"minor":p.patch!==h.patch?u+"patch":"prerelease"};l.exports=a}}),De=O({"../../node_modules/semver/functions/major.js"(m,l){var r=q(),a=(n,t)=>new r(n,t).major;l.exports=a}}),Ge=O({"../../node_modules/semver/functions/minor.js"(m,l){var r=q(),a=(n,t)=>new r(n,t).minor;l.exports=a}}),qe=O({"../../node_modules/semver/functions/patch.js"(m,l){var r=q(),a=(n,t)=>new r(n,t).patch;l.exports=a}}),Fe=O({"../../node_modules/semver/functions/prerelease.js"(m,l){var r=H(),a=(n,t)=>{let p=r(n,t);return p&&p.prerelease.length?p.prerelease:null};l.exports=a}}),V=O({"../../node_modules/semver/functions/compare.js"(m,l){var r=q(),a=(n,t,p)=>new r(n,p).compare(new r(t,p));l.exports=a}}),Ve=O({"../../node_modules/semver/functions/rcompare.js"(m,l){var r=V(),a=(n,t,p)=>r(t,n,p);l.exports=a}}),Ue=O({"../../node_modules/semver/functions/compare-loose.js"(m,l){var r=V(),a=(n,t)=>r(n,t,!0);l.exports=a}}),ce=O({"../../node_modules/semver/functions/compare-build.js"(m,l){var r=q(),a=(n,t,p)=>{let h=new r(n,p),e=new r(t,p);return h.compare(e)||h.compareBuild(e)};l.exports=a}}),Xe=O({"../../node_modules/semver/functions/sort.js"(m,l){var r=ce(),a=(n,t)=>n.sort((p,h)=>r(p,h,t));l.exports=a}}),be=O({"../../node_modules/semver/functions/rsort.js"(m,l){var r=ce(),a=(n,t)=>n.sort((p,h)=>r(h,p,t));l.exports=a}}),J=O({"../../node_modules/semver/functions/gt.js"(m,l){var r=V(),a=(n,t,p)=>r(n,t,p)>0;l.exports=a}}),he=O({"../../node_modules/semver/functions/lt.js"(m,l){var r=V(),a=(n,t,p)=>r(n,t,p)<0;l.exports=a}}),_e=O({"../../node_modules/semver/functions/eq.js"(m,l){var r=V(),a=(n,t,p)=>r(n,t,p)===0;l.exports=a}}),Ne=O({"../../node_modules/semver/functions/neq.js"(m,l){var r=V(),a=(n,t,p)=>r(n,t,p)!==0;l.exports=a}}),fe=O({"../../node_modules/semver/functions/gte.js"(m,l){var r=V(),a=(n,t,p)=>r(n,t,p)>=0;l.exports=a}}),ve=O({"../../node_modules/semver/functions/lte.js"(m,l){var r=V(),a=(n,t,p)=>r(n,t,p)<=0;l.exports=a}}),Oe=O({"../../node_modules/semver/functions/cmp.js"(m,l){var r=_e(),a=Ne(),n=J(),t=fe(),p=he(),h=ve(),e=(f,i,v,s)=>{switch(i){case"===":return typeof f=="object"&&(f=f.version),typeof v=="object"&&(v=v.version),f===v;case"!==":return typeof f=="object"&&(f=f.version),typeof v=="object"&&(v=v.version),f!==v;case"":case"=":case"==":return r(f,v,s);case"!=":return a(f,v,s);case">":return n(f,v,s);case">=":return t(f,v,s);case"<":return p(f,v,s);case"<=":return h(f,v,s);default:throw new TypeError(`Invalid operator: ${i}`)}};l.exports=e}}),ke=O({"../../node_modules/semver/functions/coerce.js"(m,l){var r=q(),a=H(),{safeRe:n,t}=z(),p=(h,e)=>{if(h instanceof r)return h;if(typeof h=="number"&&(h=String(h)),typeof h!="string")return null;e=e||{};let f=null;if(!e.rtl)f=h.match(e.includePrerelease?n[t.COERCEFULL]:n[t.COERCE]);else{let o=e.includePrerelease?n[t.COERCERTLFULL]:n[t.COERCERTL],I;for(;(I=o.exec(h))&&(!f||f.index+f[0].length!==h.length);)(!f||I.index+I[0].length!==f.index+f[0].length)&&(f=I),o.lastIndex=I.index+I[1].length+I[2].length;o.lastIndex=-1}if(f===null)return null;let i=f[2],v=f[3]||"0",s=f[4]||"0",u=e.includePrerelease&&f[5]?`-${f[5]}`:"",E=e.includePrerelease&&f[6]?`+${f[6]}`:"";return a(`${i}.${v}.${s}${u}${E}`,e)};l.exports=p}}),Me=O({"../../node_modules/semver/internal/lrucache.js"(m,l){var r=class{constructor(){this.max=1e3,this.map=new Map}get(a){let n=this.map.get(a);if(n!==void 0)return this.map.delete(a),this.map.set(a,n),n}delete(a){return this.map.delete(a)}set(a,n){if(!this.delete(a)&&n!==void 0){if(this.map.size>=this.max){let t=this.map.keys().next().value;this.delete(t)}this.map.set(a,n)}return this}};l.exports=r}}),U=O({"../../node_modules/semver/classes/range.js"(m,l){var r=/\s+/g,a=class K{constructor(c,L){if(L=p(L),c instanceof K)return c.loose===!!L.loose&&c.includePrerelease===!!L.includePrerelease?c:new K(c.raw,L);if(c instanceof h)return this.raw=c.value,this.set=[[c]],this.formatted=void 0,this;if(this.options=L,this.loose=!!L.loose,this.includePrerelease=!!L.includePrerelease,this.raw=c.trim().replace(r," "),this.set=this.raw.split("||").map(d=>this.parseRange(d.trim())).filter(d=>d.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let d=this.set[0];if(this.set=this.set.filter(_=>!T(_[0])),this.set.length===0)this.set=[d];else if(this.set.length>1){for(let _ of this.set)if(_.length===1&&A(_[0])){this.set=[_];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let c=0;c<this.set.length;c++){c>0&&(this.formatted+="||");let L=this.set[c];for(let d=0;d<L.length;d++)d>0&&(this.formatted+=" "),this.formatted+=L[d].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(c){let L=((this.options.includePrerelease&&o)|(this.options.loose&&I))+":"+c,d=t.get(L);if(d)return d;let _=this.options.loose,R=_?i[v.HYPHENRANGELOOSE]:i[v.HYPHENRANGE];c=c.replace(R,ae(this.options.includePrerelease)),e("hyphen replace",c),c=c.replace(i[v.COMPARATORTRIM],s),e("comparator trim",c),c=c.replace(i[v.TILDETRIM],u),e("tilde trim",c),c=c.replace(i[v.CARETTRIM],E),e("caret trim",c);let N=c.split(" ").map(j=>D(j,this.options)).join(" ").split(/\s+/).map(j=>se(j,this.options));_&&(N=N.filter(j=>(e("loose invalid filter",j,this.options),!!j.match(i[v.COMPARATORLOOSE])))),e("range list",N);let w=new Map,g=N.map(j=>new h(j,this.options));for(let j of g){if(T(j))return[j];w.set(j.value,j)}w.size>1&&w.has("")&&w.delete("");let x=[...w.values()];return t.set(L,x),x}intersects(c,L){if(!(c instanceof K))throw new TypeError("a Range is required");return this.set.some(d=>y(d,L)&&c.set.some(_=>y(_,L)&&d.every(R=>_.every(N=>R.intersects(N,L)))))}test(c){if(!c)return!1;if(typeof c=="string")try{c=new f(c,this.options)}catch{return!1}for(let L=0;L<this.set.length;L++)if(ie(this.set[L],c,this.options))return!0;return!1}};l.exports=a;var n=Me(),t=new n,p=me(),h=ee(),e=Z(),f=q(),{safeRe:i,t:v,comparatorTrimReplace:s,tildeTrimReplace:u,caretTrimReplace:E}=z(),{FLAG_INCLUDE_PRERELEASE:o,FLAG_LOOSE:I}=Q(),T=$=>$.value==="<0.0.0-0",A=$=>$.value==="",y=($,c)=>{let L=!0,d=$.slice(),_=d.pop();for(;L&&d.length;)L=d.every(R=>_.intersects(R,c)),_=d.pop();return L},D=($,c)=>(e("comp",$,c),$=C($,c),e("caret",$),$=b($,c),e("tildes",$),$=S($,c),e("xrange",$),$=te($,c),e("stars",$),$),P=$=>!$||$.toLowerCase()==="x"||$==="*",b=($,c)=>$.trim().split(/\s+/).map(L=>F(L,c)).join(" "),F=($,c)=>{let L=c.loose?i[v.TILDELOOSE]:i[v.TILDE];return $.replace(L,(d,_,R,N,w)=>{e("tilde",$,d,_,R,N,w);let g;return P(_)?g="":P(R)?g=`>=${_}.0.0 <${+_+1}.0.0-0`:P(N)?g=`>=${_}.${R}.0 <${_}.${+R+1}.0-0`:w?(e("replaceTilde pr",w),g=`>=${_}.${R}.${N}-${w} <${_}.${+R+1}.0-0`):g=`>=${_}.${R}.${N} <${_}.${+R+1}.0-0`,e("tilde return",g),g})},C=($,c)=>$.trim().split(/\s+/).map(L=>G(L,c)).join(" "),G=($,c)=>{e("caret",$,c);let L=c.loose?i[v.CARETLOOSE]:i[v.CARET],d=c.includePrerelease?"-0":"";return $.replace(L,(_,R,N,w,g)=>{e("caret",$,_,R,N,w,g);let x;return P(R)?x="":P(N)?x=`>=${R}.0.0${d} <${+R+1}.0.0-0`:P(w)?R==="0"?x=`>=${R}.${N}.0${d} <${R}.${+N+1}.0-0`:x=`>=${R}.${N}.0${d} <${+R+1}.0.0-0`:g?(e("replaceCaret pr",g),R==="0"?N==="0"?x=`>=${R}.${N}.${w}-${g} <${R}.${N}.${+w+1}-0`:x=`>=${R}.${N}.${w}-${g} <${R}.${+N+1}.0-0`:x=`>=${R}.${N}.${w}-${g} <${+R+1}.0.0-0`):(e("no pr"),R==="0"?N==="0"?x=`>=${R}.${N}.${w}${d} <${R}.${N}.${+w+1}-0`:x=`>=${R}.${N}.${w}${d} <${R}.${+N+1}.0-0`:x=`>=${R}.${N}.${w} <${+R+1}.0.0-0`),e("caret return",x),x})},S=($,c)=>(e("replaceXRanges",$,c),$.split(/\s+/).map(L=>B(L,c)).join(" ")),B=($,c)=>{$=$.trim();let L=c.loose?i[v.XRANGELOOSE]:i[v.XRANGE];return $.replace(L,(d,_,R,N,w,g)=>{e("xRange",$,d,_,R,N,w,g);let x=P(R),j=x||P(N),M=j||P(w),W=M;return _==="="&&W&&(_=""),g=c.includePrerelease?"-0":"",x?_===">"||_==="<"?d="<0.0.0-0":d="*":_&&W?(j&&(N=0),w=0,_===">"?(_=">=",j?(R=+R+1,N=0,w=0):(N=+N+1,w=0)):_==="<="&&(_="<",j?R=+R+1:N=+N+1),_==="<"&&(g="-0"),d=`${_+R}.${N}.${w}${g}`):j?d=`>=${R}.0.0${g} <${+R+1}.0.0-0`:M&&(d=`>=${R}.${N}.0${g} <${R}.${+N+1}.0-0`),e("xRange return",d),d})},te=($,c)=>(e("replaceStars",$,c),$.trim().replace(i[v.STAR],"")),se=($,c)=>(e("replaceGTE0",$,c),$.trim().replace(i[c.includePrerelease?v.GTE0PRE:v.GTE0],"")),ae=$=>(c,L,d,_,R,N,w,g,x,j,M,W)=>(P(d)?L="":P(_)?L=`>=${d}.0.0${$?"-0":""}`:P(R)?L=`>=${d}.${_}.0${$?"-0":""}`:N?L=`>=${L}`:L=`>=${L}${$?"-0":""}`,P(x)?g="":P(j)?g=`<${+x+1}.0.0-0`:P(M)?g=`<${x}.${+j+1}.0-0`:W?g=`<=${x}.${j}.${M}-${W}`:$?g=`<${x}.${j}.${+M+1}-0`:g=`<=${g}`,`${L} ${g}`.trim()),ie=($,c,L)=>{for(let d=0;d<$.length;d++)if(!$[d].test(c))return!1;if(c.prerelease.length&&!L.includePrerelease){for(let d=0;d<$.length;d++)if(e($[d].semver),$[d].semver!==h.ANY&&$[d].semver.prerelease.length>0){let _=$[d].semver;if(_.major===c.major&&_.minor===c.minor&&_.patch===c.patch)return!0}return!1}return!0}}}),ee=O({"../../node_modules/semver/classes/comparator.js"(m,l){var r=Symbol("SemVer ANY"),a=class ue{static get ANY(){return r}constructor(s,u){if(u=n(u),s instanceof ue){if(s.loose===!!u.loose)return s;s=s.value}s=s.trim().split(/\s+/).join(" "),e("comparator",s,u),this.options=u,this.loose=!!u.loose,this.parse(s),this.semver===r?this.value="":this.value=this.operator+this.semver.version,e("comp",this)}parse(s){let u=this.options.loose?t[p.COMPARATORLOOSE]:t[p.COMPARATOR],E=s.match(u);if(!E)throw new TypeError(`Invalid comparator: ${s}`);this.operator=E[1]!==void 0?E[1]:"",this.operator==="="&&(this.operator=""),E[2]?this.semver=new f(E[2],this.options.loose):this.semver=r}toString(){return this.value}test(s){if(e("Comparator.test",s,this.options.loose),this.semver===r||s===r)return!0;if(typeof s=="string")try{s=new f(s,this.options)}catch{return!1}return h(s,this.operator,this.semver,this.options)}intersects(s,u){if(!(s instanceof ue))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new i(s.value,u).test(this.value):s.operator===""?s.value===""?!0:new i(this.value,u).test(s.semver):(u=n(u),u.includePrerelease&&(this.value==="<0.0.0-0"||s.value==="<0.0.0-0")||!u.includePrerelease&&(this.value.startsWith("<0.0.0")||s.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&s.operator.startsWith(">")||this.operator.startsWith("<")&&s.operator.startsWith("<")||this.semver.version===s.semver.version&&this.operator.includes("=")&&s.operator.includes("=")||h(this.semver,"<",s.semver,u)&&this.operator.startsWith(">")&&s.operator.startsWith("<")||h(this.semver,">",s.semver,u)&&this.operator.startsWith("<")&&s.operator.startsWith(">")))}};l.exports=a;var n=me(),{safeRe:t,t:p}=z(),h=Oe(),e=Z(),f=q(),i=U()}}),re=O({"../../node_modules/semver/functions/satisfies.js"(m,l){var r=U(),a=(n,t,p)=>{try{t=new r(t,p)}catch{return!1}return t.test(n)};l.exports=a}}),He=O({"../../node_modules/semver/ranges/to-comparators.js"(m,l){var r=U(),a=(n,t)=>new r(n,t).set.map(p=>p.map(h=>h.value).join(" ").trim().split(" "));l.exports=a}}),Be=O({"../../node_modules/semver/ranges/max-satisfying.js"(m,l){var r=q(),a=U(),n=(t,p,h)=>{let e=null,f=null,i=null;try{i=new a(p,h)}catch{return null}return t.forEach(v=>{i.test(v)&&(!e||f.compare(v)===-1)&&(e=v,f=new r(e,h))}),e};l.exports=n}}),We=O({"../../node_modules/semver/ranges/min-satisfying.js"(m,l){var r=q(),a=U(),n=(t,p,h)=>{let e=null,f=null,i=null;try{i=new a(p,h)}catch{return null}return t.forEach(v=>{i.test(v)&&(!e||f.compare(v)===1)&&(e=v,f=new r(e,h))}),e};l.exports=n}}),Ye=O({"../../node_modules/semver/ranges/min-version.js"(m,l){var r=q(),a=U(),n=J(),t=(p,h)=>{p=new a(p,h);let e=new r("0.0.0");if(p.test(e)||(e=new r("0.0.0-0"),p.test(e)))return e;e=null;for(let f=0;f<p.set.length;++f){let i=p.set[f],v=null;i.forEach(s=>{let u=new r(s.semver.version);switch(s.operator){case">":u.prerelease.length===0?u.patch++:u.prerelease.push(0),u.raw=u.format();case"":case">=":(!v||n(u,v))&&(v=u);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${s.operator}`)}}),v&&(!e||n(e,v))&&(e=v)}return e&&p.test(e)?e:null};l.exports=t}}),ze=O({"../../node_modules/semver/ranges/valid.js"(m,l){var r=U(),a=(n,t)=>{try{return new r(n,t).range||"*"}catch{return null}};l.exports=a}}),$e=O({"../../node_modules/semver/ranges/outside.js"(m,l){var r=q(),a=ee(),{ANY:n}=a,t=U(),p=re(),h=J(),e=he(),f=ve(),i=fe(),v=(s,u,E,o)=>{s=new r(s,o),u=new t(u,o);let I,T,A,y,D;switch(E){case">":I=h,T=f,A=e,y=">",D=">=";break;case"<":I=e,T=i,A=h,y="<",D="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(p(s,u,o))return!1;for(let P=0;P<u.set.length;++P){let b=u.set[P],F=null,C=null;if(b.forEach(G=>{G.semver===n&&(G=new a(">=0.0.0")),F=F||G,C=C||G,I(G.semver,F.semver,o)?F=G:A(G.semver,C.semver,o)&&(C=G)}),F.operator===y||F.operator===D||(!C.operator||C.operator===y)&&T(s,C.semver)||C.operator===D&&A(s,C.semver))return!1}return!0};l.exports=v}}),Ke=O({"../../node_modules/semver/ranges/gtr.js"(m,l){var r=$e(),a=(n,t,p)=>r(n,t,">",p);l.exports=a}}),Qe=O({"../../node_modules/semver/ranges/ltr.js"(m,l){var r=$e(),a=(n,t,p)=>r(n,t,"<",p);l.exports=a}}),Ze=O({"../../node_modules/semver/ranges/intersects.js"(m,l){var r=U(),a=(n,t,p)=>(n=new r(n,p),t=new r(t,p),n.intersects(t,p));l.exports=a}}),Je=O({"../../node_modules/semver/ranges/simplify.js"(m,l){var r=re(),a=V();l.exports=(n,t,p)=>{let h=[],e=null,f=null,i=n.sort((E,o)=>a(E,o,p));for(let E of i)r(E,t,p)?(f=E,e||(e=E)):(f&&h.push([e,f]),f=null,e=null);e&&h.push([e,null]);let v=[];for(let[E,o]of h)E===o?v.push(E):!o&&E===i[0]?v.push("*"):o?E===i[0]?v.push(`<=${o}`):v.push(`${E} - ${o}`):v.push(`>=${E}`);let s=v.join(" || "),u=typeof t.raw=="string"?t.raw:String(t);return s.length<u.length?s:t}}}),er=O({"../../node_modules/semver/ranges/subset.js"(m,l){var r=U(),a=ee(),{ANY:n}=a,t=re(),p=V(),h=(u,E,o={})=>{if(u===E)return!0;u=new r(u,o),E=new r(E,o);let I=!1;e:for(let T of u.set){for(let A of E.set){let y=i(T,A,o);if(I=I||y!==null,y)continue e}if(I)return!1}return!0},e=[new a(">=0.0.0-0")],f=[new a(">=0.0.0")],i=(u,E,o)=>{if(u===E)return!0;if(u.length===1&&u[0].semver===n){if(E.length===1&&E[0].semver===n)return!0;o.includePrerelease?u=e:u=f}if(E.length===1&&E[0].semver===n){if(o.includePrerelease)return!0;E=f}let I=new Set,T,A;for(let S of u)S.operator===">"||S.operator===">="?T=v(T,S,o):S.operator==="<"||S.operator==="<="?A=s(A,S,o):I.add(S.semver);if(I.size>1)return null;let y;if(T&&A&&(y=p(T.semver,A.semver,o),y>0||y===0&&(T.operator!==">="||A.operator!=="<=")))return null;for(let S of I){if(T&&!t(S,String(T),o)||A&&!t(S,String(A),o))return null;for(let B of E)if(!t(S,String(B),o))return!1;return!0}let D,P,b,F,C=A&&!o.includePrerelease&&A.semver.prerelease.length?A.semver:!1,G=T&&!o.includePrerelease&&T.semver.prerelease.length?T.semver:!1;C&&C.prerelease.length===1&&A.operator==="<"&&C.prerelease[0]===0&&(C=!1);for(let S of E){if(F=F||S.operator===">"||S.operator===">=",b=b||S.operator==="<"||S.operator==="<=",T){if(G&&S.semver.prerelease&&S.semver.prerelease.length&&S.semver.major===G.major&&S.semver.minor===G.minor&&S.semver.patch===G.patch&&(G=!1),S.operator===">"||S.operator===">="){if(D=v(T,S,o),D===S&&D!==T)return!1}else if(T.operator===">="&&!t(T.semver,String(S),o))return!1}if(A){if(C&&S.semver.prerelease&&S.semver.prerelease.length&&S.semver.major===C.major&&S.semver.minor===C.minor&&S.semver.patch===C.patch&&(C=!1),S.operator==="<"||S.operator==="<="){if(P=s(A,S,o),P===S&&P!==A)return!1}else if(A.operator==="<="&&!t(A.semver,String(S),o))return!1}if(!S.operator&&(A||T)&&y!==0)return!1}return!(T&&b&&!A&&y!==0||A&&F&&!T&&y!==0||G||C)},v=(u,E,o)=>{if(!u)return E;let I=p(u.semver,E.semver,o);return I>0?u:I<0||E.operator===">"&&u.operator===">="?E:u},s=(u,E,o)=>{if(!u)return E;let I=p(u.semver,E.semver,o);return I<0?u:I>0||E.operator==="<"&&u.operator==="<="?E:u};l.exports=h}}),rr=O({"../../node_modules/semver/index.js"(m,l){var r=z(),a=Q(),n=q(),t=Le(),p=H(),h=je(),e=Pe(),f=Ce(),i=ye(),v=De(),s=Ge(),u=qe(),E=Fe(),o=V(),I=Ve(),T=Ue(),A=ce(),y=Xe(),D=be(),P=J(),b=he(),F=_e(),C=Ne(),G=fe(),S=ve(),B=Oe(),te=ke(),se=ee(),ae=U(),ie=re(),$=He(),c=Be(),L=We(),d=Ye(),_=ze(),R=$e(),N=Ke(),w=Qe(),g=Ze(),x=Je(),j=er();l.exports={parse:p,valid:h,clean:e,inc:f,diff:i,major:v,minor:s,patch:u,prerelease:E,compare:o,rcompare:I,compareLoose:T,compareBuild:A,sort:y,rsort:D,gt:P,lt:b,eq:F,neq:C,gte:G,lte:S,cmp:B,coerce:te,Comparator:se,Range:ae,satisfies:ie,toComparators:$,maxSatisfying:c,minSatisfying:L,minVersion:d,validRange:_,outside:R,gtr:N,ltr:w,intersects:g,simplifyRange:x,subset:j,SemVer:n,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:a.SEMVER_SPEC_VERSION,RELEASE_TYPES:a.RELEASE_TYPES,compareIdentifiers:t.compareIdentifiers,rcompareIdentifiers:t.rcompareIdentifiers}}}),tr={};ge(tr,{beforeAll:()=>Er,decorators:()=>pr,mount:()=>or,parameters:()=>ur,render:()=>ir,renderToCanvas:()=>lr});var de=Ae(rr()),sr={...we};function Re(m){globalThis.IS_REACT_ACT_ENVIRONMENT=m}function ar(){return globalThis.IS_REACT_ACT_ENVIRONMENT}var Se=async()=>{var m;if(typeof sr.act!="function"){let l=await Ee(()=>import("./test-utils-BE0XkMtV.js").then(r=>r.t),__vite__mapDeps([0,1,2,3]),import.meta.url);((m=l==null?void 0:l.default)==null?void 0:m.act)??l.act}return l=>l()},ir=(m,l)=>{let{id:r,component:a}=l;if(!a)throw new Error(`Unable to render story ${r} as the component annotation is missing from the default export`);return Y.createElement(a,{...m})},{FRAMEWORK_OPTIONS:le}=xe,nr=class extends k.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidMount(){let{hasError:m}=this.state,{showMain:l}=this.props;m||l()}componentDidCatch(m){let{showException:l}=this.props;l(m)}render(){let{hasError:m}=this.state,{children:l}=this.props;return m?null:l}},Ie=le!=null&&le.strictMode?k.StrictMode:k.Fragment,pe=[],oe=!1,Te=async()=>{if(oe||pe.length===0)return;oe=!0;let m=pe.shift();m&&await m(),oe=!1,Te()};async function lr({storyContext:m,unboundStoryFn:l,showMain:r,showException:a,forceRemount:n},t){let{renderElement:p,unmountElement:h}=await Ee(async()=>{const{renderElement:s,unmountElement:u}=await import("./react-18-CALspjOX.js");return{renderElement:s,unmountElement:u}},__vite__mapDeps([4,1,2,3]),import.meta.url),e=l,f=m.parameters.__isPortableStory?Y.createElement(e,{...m}):Y.createElement(nr,{showMain:r,showException:a},Y.createElement(e,{...m})),i=Ie?Y.createElement(Ie,null,f):f;n&&h(t);let v=await Se();return await new Promise(async(s,u)=>{pe.push(async()=>{try{await v(async()=>{var E,o;await p(i,t,(o=(E=m==null?void 0:m.parameters)==null?void 0:E.react)==null?void 0:o.rootOptions)}),s()}catch(E){u(E)}}),Te()}),async()=>{await v(()=>{h(t)})}}var or=m=>async l=>(l!=null&&(m.originalStoryFn=()=>l),await m.renderToCanvas(),m.canvas),ur={renderer:"react"},pr=[(m,l)=>{var n,t;if(!((t=(n=l.parameters)==null?void 0:n.react)!=null&&t.rsc))return m();let r=de.default.major(k.version),a=de.default.minor(k.version);if(r<18||r===18&&a<3)throw new Error("React Server Components require React >= 18.3");return k.createElement(k.Suspense,null,m())}],Er=async()=>{try{let{configure:m}=await Ee(async()=>{const{configure:r}=await import("./index-DrdPSA1J.js").then(a=>a.a);return{configure:r}},[],import.meta.url),l=await Se();m({unstable_advanceTimersWrapper:r=>l(r),asyncWrapper:async r=>{let a=ar();Re(!1);try{let n=await r();return await new Promise(t=>{setTimeout(()=>{t()},0),mr()&&jest.advanceTimersByTime(0)}),n}finally{Re(a)}},eventWrapper:r=>{let a;return l(()=>(a=r(),a)),a}})}catch{}};function mr(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}export{Er as beforeAll,pr as decorators,or as mount,ur as parameters,ir as render,lr as renderToCanvas};
2
+ import{_ as Ee}from"./iframe-Cx1n-SeE.js";import{_ as Ae,a as O,b as ge}from"./chunk-XP5HYGXS-BpfKkqn7.js";import{r as k,R as Y,a as we}from"./index--qcDGAq6.js";import"./index-yBjzXJbu.js";var ne={};const{global:xe}=__STORYBOOK_MODULE_GLOBAL__;var Q=O({"../../node_modules/semver/internal/constants.js"(m,l){var r="2.0.0",a=Number.MAX_SAFE_INTEGER||9007199254740991,n=16,t=250,p=["major","premajor","minor","preminor","patch","prepatch","prerelease"];l.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:t,MAX_SAFE_INTEGER:a,RELEASE_TYPES:p,SEMVER_SPEC_VERSION:r,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}}),Z=O({"../../node_modules/semver/internal/debug.js"(m,l){var r=typeof process=="object"&&ne&&ne.NODE_DEBUG&&/\bsemver\b/i.test(ne.NODE_DEBUG)?(...a)=>console.error("SEMVER",...a):()=>{};l.exports=r}}),z=O({"../../node_modules/semver/internal/re.js"(m,l){var{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:a,MAX_LENGTH:n}=Q(),t=Z();m=l.exports={};var p=m.re=[],h=m.safeRe=[],e=m.src=[],f=m.safeSrc=[],i=m.t={},v=0,s="[a-zA-Z0-9-]",u=[["\\s",1],["\\d",n],[s,a]],E=I=>{for(let[T,A]of u)I=I.split(`${T}*`).join(`${T}{0,${A}}`).split(`${T}+`).join(`${T}{1,${A}}`);return I},o=(I,T,A)=>{let y=E(T),D=v++;t(I,D,T),i[I]=D,e[D]=T,f[D]=y,p[D]=new RegExp(T,A?"g":void 0),h[D]=new RegExp(y,A?"g":void 0)};o("NUMERICIDENTIFIER","0|[1-9]\\d*"),o("NUMERICIDENTIFIERLOOSE","\\d+"),o("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${s}*`),o("MAINVERSION",`(${e[i.NUMERICIDENTIFIER]})\\.(${e[i.NUMERICIDENTIFIER]})\\.(${e[i.NUMERICIDENTIFIER]})`),o("MAINVERSIONLOOSE",`(${e[i.NUMERICIDENTIFIERLOOSE]})\\.(${e[i.NUMERICIDENTIFIERLOOSE]})\\.(${e[i.NUMERICIDENTIFIERLOOSE]})`),o("PRERELEASEIDENTIFIER",`(?:${e[i.NUMERICIDENTIFIER]}|${e[i.NONNUMERICIDENTIFIER]})`),o("PRERELEASEIDENTIFIERLOOSE",`(?:${e[i.NUMERICIDENTIFIERLOOSE]}|${e[i.NONNUMERICIDENTIFIER]})`),o("PRERELEASE",`(?:-(${e[i.PRERELEASEIDENTIFIER]}(?:\\.${e[i.PRERELEASEIDENTIFIER]})*))`),o("PRERELEASELOOSE",`(?:-?(${e[i.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${e[i.PRERELEASEIDENTIFIERLOOSE]})*))`),o("BUILDIDENTIFIER",`${s}+`),o("BUILD",`(?:\\+(${e[i.BUILDIDENTIFIER]}(?:\\.${e[i.BUILDIDENTIFIER]})*))`),o("FULLPLAIN",`v?${e[i.MAINVERSION]}${e[i.PRERELEASE]}?${e[i.BUILD]}?`),o("FULL",`^${e[i.FULLPLAIN]}$`),o("LOOSEPLAIN",`[v=\\s]*${e[i.MAINVERSIONLOOSE]}${e[i.PRERELEASELOOSE]}?${e[i.BUILD]}?`),o("LOOSE",`^${e[i.LOOSEPLAIN]}$`),o("GTLT","((?:<|>)?=?)"),o("XRANGEIDENTIFIERLOOSE",`${e[i.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),o("XRANGEIDENTIFIER",`${e[i.NUMERICIDENTIFIER]}|x|X|\\*`),o("XRANGEPLAIN",`[v=\\s]*(${e[i.XRANGEIDENTIFIER]})(?:\\.(${e[i.XRANGEIDENTIFIER]})(?:\\.(${e[i.XRANGEIDENTIFIER]})(?:${e[i.PRERELEASE]})?${e[i.BUILD]}?)?)?`),o("XRANGEPLAINLOOSE",`[v=\\s]*(${e[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${e[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${e[i.XRANGEIDENTIFIERLOOSE]})(?:${e[i.PRERELEASELOOSE]})?${e[i.BUILD]}?)?)?`),o("XRANGE",`^${e[i.GTLT]}\\s*${e[i.XRANGEPLAIN]}$`),o("XRANGELOOSE",`^${e[i.GTLT]}\\s*${e[i.XRANGEPLAINLOOSE]}$`),o("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),o("COERCE",`${e[i.COERCEPLAIN]}(?:$|[^\\d])`),o("COERCEFULL",e[i.COERCEPLAIN]+`(?:${e[i.PRERELEASE]})?(?:${e[i.BUILD]})?(?:$|[^\\d])`),o("COERCERTL",e[i.COERCE],!0),o("COERCERTLFULL",e[i.COERCEFULL],!0),o("LONETILDE","(?:~>?)"),o("TILDETRIM",`(\\s*)${e[i.LONETILDE]}\\s+`,!0),m.tildeTrimReplace="$1~",o("TILDE",`^${e[i.LONETILDE]}${e[i.XRANGEPLAIN]}$`),o("TILDELOOSE",`^${e[i.LONETILDE]}${e[i.XRANGEPLAINLOOSE]}$`),o("LONECARET","(?:\\^)"),o("CARETTRIM",`(\\s*)${e[i.LONECARET]}\\s+`,!0),m.caretTrimReplace="$1^",o("CARET",`^${e[i.LONECARET]}${e[i.XRANGEPLAIN]}$`),o("CARETLOOSE",`^${e[i.LONECARET]}${e[i.XRANGEPLAINLOOSE]}$`),o("COMPARATORLOOSE",`^${e[i.GTLT]}\\s*(${e[i.LOOSEPLAIN]})$|^$`),o("COMPARATOR",`^${e[i.GTLT]}\\s*(${e[i.FULLPLAIN]})$|^$`),o("COMPARATORTRIM",`(\\s*)${e[i.GTLT]}\\s*(${e[i.LOOSEPLAIN]}|${e[i.XRANGEPLAIN]})`,!0),m.comparatorTrimReplace="$1$2$3",o("HYPHENRANGE",`^\\s*(${e[i.XRANGEPLAIN]})\\s+-\\s+(${e[i.XRANGEPLAIN]})\\s*$`),o("HYPHENRANGELOOSE",`^\\s*(${e[i.XRANGEPLAINLOOSE]})\\s+-\\s+(${e[i.XRANGEPLAINLOOSE]})\\s*$`),o("STAR","(<|>)?=?\\s*\\*"),o("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),o("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}}),me=O({"../../node_modules/semver/internal/parse-options.js"(m,l){var r=Object.freeze({loose:!0}),a=Object.freeze({}),n=t=>t?typeof t!="object"?r:t:a;l.exports=n}}),Le=O({"../../node_modules/semver/internal/identifiers.js"(m,l){var r=/^[0-9]+$/,a=(t,p)=>{let h=r.test(t),e=r.test(p);return h&&e&&(t=+t,p=+p),t===p?0:h&&!e?-1:e&&!h?1:t<p?-1:1},n=(t,p)=>a(p,t);l.exports={compareIdentifiers:a,rcompareIdentifiers:n}}}),q=O({"../../node_modules/semver/classes/semver.js"(m,l){var r=Z(),{MAX_LENGTH:a,MAX_SAFE_INTEGER:n}=Q(),{safeRe:t,safeSrc:p,t:h}=z(),e=me(),{compareIdentifiers:f}=Le(),i=class X{constructor(s,u){if(u=e(u),s instanceof X){if(s.loose===!!u.loose&&s.includePrerelease===!!u.includePrerelease)return s;s=s.version}else if(typeof s!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof s}".`);if(s.length>a)throw new TypeError(`version is longer than ${a} characters`);r("SemVer",s,u),this.options=u,this.loose=!!u.loose,this.includePrerelease=!!u.includePrerelease;let E=s.trim().match(u.loose?t[h.LOOSE]:t[h.FULL]);if(!E)throw new TypeError(`Invalid Version: ${s}`);if(this.raw=s,this.major=+E[1],this.minor=+E[2],this.patch=+E[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");E[4]?this.prerelease=E[4].split(".").map(o=>{if(/^[0-9]+$/.test(o)){let I=+o;if(I>=0&&I<n)return I}return o}):this.prerelease=[],this.build=E[5]?E[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(s){if(r("SemVer.compare",this.version,this.options,s),!(s instanceof X)){if(typeof s=="string"&&s===this.version)return 0;s=new X(s,this.options)}return s.version===this.version?0:this.compareMain(s)||this.comparePre(s)}compareMain(s){return s instanceof X||(s=new X(s,this.options)),f(this.major,s.major)||f(this.minor,s.minor)||f(this.patch,s.patch)}comparePre(s){if(s instanceof X||(s=new X(s,this.options)),this.prerelease.length&&!s.prerelease.length)return-1;if(!this.prerelease.length&&s.prerelease.length)return 1;if(!this.prerelease.length&&!s.prerelease.length)return 0;let u=0;do{let E=this.prerelease[u],o=s.prerelease[u];if(r("prerelease compare",u,E,o),E===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(E===void 0)return-1;if(E!==o)return f(E,o)}while(++u)}compareBuild(s){s instanceof X||(s=new X(s,this.options));let u=0;do{let E=this.build[u],o=s.build[u];if(r("build compare",u,E,o),E===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(E===void 0)return-1;if(E!==o)return f(E,o)}while(++u)}inc(s,u,E){if(s.startsWith("pre")){if(!u&&E===!1)throw new Error("invalid increment argument: identifier is empty");if(u){let o=new RegExp(`^${this.options.loose?p[h.PRERELEASELOOSE]:p[h.PRERELEASE]}$`),I=`-${u}`.match(o);if(!I||I[1]!==u)throw new Error(`invalid identifier: ${u}`)}}switch(s){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",u,E);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",u,E);break;case"prepatch":this.prerelease.length=0,this.inc("patch",u,E),this.inc("pre",u,E);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",u,E),this.inc("pre",u,E);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let o=Number(E)?1:0;if(this.prerelease.length===0)this.prerelease=[o];else{let I=this.prerelease.length;for(;--I>=0;)typeof this.prerelease[I]=="number"&&(this.prerelease[I]++,I=-2);if(I===-1){if(u===this.prerelease.join(".")&&E===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(o)}}if(u){let I=[u,o];E===!1&&(I=[u]),f(this.prerelease[0],u)===0?isNaN(this.prerelease[1])&&(this.prerelease=I):this.prerelease=I}break}default:throw new Error(`invalid increment argument: ${s}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};l.exports=i}}),H=O({"../../node_modules/semver/functions/parse.js"(m,l){var r=q(),a=(n,t,p=!1)=>{if(n instanceof r)return n;try{return new r(n,t)}catch(h){if(!p)return null;throw h}};l.exports=a}}),je=O({"../../node_modules/semver/functions/valid.js"(m,l){var r=H(),a=(n,t)=>{let p=r(n,t);return p?p.version:null};l.exports=a}}),Pe=O({"../../node_modules/semver/functions/clean.js"(m,l){var r=H(),a=(n,t)=>{let p=r(n.trim().replace(/^[=v]+/,""),t);return p?p.version:null};l.exports=a}}),Ce=O({"../../node_modules/semver/functions/inc.js"(m,l){var r=q(),a=(n,t,p,h,e)=>{typeof p=="string"&&(e=h,h=p,p=void 0);try{return new r(n instanceof r?n.version:n,p).inc(t,h,e).version}catch{return null}};l.exports=a}}),ye=O({"../../node_modules/semver/functions/diff.js"(m,l){var r=H(),a=(n,t)=>{let p=r(n,null,!0),h=r(t,null,!0),e=p.compare(h);if(e===0)return null;let f=e>0,i=f?p:h,v=f?h:p,s=!!i.prerelease.length;if(v.prerelease.length&&!s){if(!v.patch&&!v.minor)return"major";if(v.compareMain(i)===0)return v.minor&&!v.patch?"minor":"patch"}let u=s?"pre":"";return p.major!==h.major?u+"major":p.minor!==h.minor?u+"minor":p.patch!==h.patch?u+"patch":"prerelease"};l.exports=a}}),De=O({"../../node_modules/semver/functions/major.js"(m,l){var r=q(),a=(n,t)=>new r(n,t).major;l.exports=a}}),Ge=O({"../../node_modules/semver/functions/minor.js"(m,l){var r=q(),a=(n,t)=>new r(n,t).minor;l.exports=a}}),qe=O({"../../node_modules/semver/functions/patch.js"(m,l){var r=q(),a=(n,t)=>new r(n,t).patch;l.exports=a}}),Fe=O({"../../node_modules/semver/functions/prerelease.js"(m,l){var r=H(),a=(n,t)=>{let p=r(n,t);return p&&p.prerelease.length?p.prerelease:null};l.exports=a}}),V=O({"../../node_modules/semver/functions/compare.js"(m,l){var r=q(),a=(n,t,p)=>new r(n,p).compare(new r(t,p));l.exports=a}}),Ve=O({"../../node_modules/semver/functions/rcompare.js"(m,l){var r=V(),a=(n,t,p)=>r(t,n,p);l.exports=a}}),Ue=O({"../../node_modules/semver/functions/compare-loose.js"(m,l){var r=V(),a=(n,t)=>r(n,t,!0);l.exports=a}}),ce=O({"../../node_modules/semver/functions/compare-build.js"(m,l){var r=q(),a=(n,t,p)=>{let h=new r(n,p),e=new r(t,p);return h.compare(e)||h.compareBuild(e)};l.exports=a}}),Xe=O({"../../node_modules/semver/functions/sort.js"(m,l){var r=ce(),a=(n,t)=>n.sort((p,h)=>r(p,h,t));l.exports=a}}),be=O({"../../node_modules/semver/functions/rsort.js"(m,l){var r=ce(),a=(n,t)=>n.sort((p,h)=>r(h,p,t));l.exports=a}}),J=O({"../../node_modules/semver/functions/gt.js"(m,l){var r=V(),a=(n,t,p)=>r(n,t,p)>0;l.exports=a}}),he=O({"../../node_modules/semver/functions/lt.js"(m,l){var r=V(),a=(n,t,p)=>r(n,t,p)<0;l.exports=a}}),_e=O({"../../node_modules/semver/functions/eq.js"(m,l){var r=V(),a=(n,t,p)=>r(n,t,p)===0;l.exports=a}}),Ne=O({"../../node_modules/semver/functions/neq.js"(m,l){var r=V(),a=(n,t,p)=>r(n,t,p)!==0;l.exports=a}}),fe=O({"../../node_modules/semver/functions/gte.js"(m,l){var r=V(),a=(n,t,p)=>r(n,t,p)>=0;l.exports=a}}),ve=O({"../../node_modules/semver/functions/lte.js"(m,l){var r=V(),a=(n,t,p)=>r(n,t,p)<=0;l.exports=a}}),Oe=O({"../../node_modules/semver/functions/cmp.js"(m,l){var r=_e(),a=Ne(),n=J(),t=fe(),p=he(),h=ve(),e=(f,i,v,s)=>{switch(i){case"===":return typeof f=="object"&&(f=f.version),typeof v=="object"&&(v=v.version),f===v;case"!==":return typeof f=="object"&&(f=f.version),typeof v=="object"&&(v=v.version),f!==v;case"":case"=":case"==":return r(f,v,s);case"!=":return a(f,v,s);case">":return n(f,v,s);case">=":return t(f,v,s);case"<":return p(f,v,s);case"<=":return h(f,v,s);default:throw new TypeError(`Invalid operator: ${i}`)}};l.exports=e}}),ke=O({"../../node_modules/semver/functions/coerce.js"(m,l){var r=q(),a=H(),{safeRe:n,t}=z(),p=(h,e)=>{if(h instanceof r)return h;if(typeof h=="number"&&(h=String(h)),typeof h!="string")return null;e=e||{};let f=null;if(!e.rtl)f=h.match(e.includePrerelease?n[t.COERCEFULL]:n[t.COERCE]);else{let o=e.includePrerelease?n[t.COERCERTLFULL]:n[t.COERCERTL],I;for(;(I=o.exec(h))&&(!f||f.index+f[0].length!==h.length);)(!f||I.index+I[0].length!==f.index+f[0].length)&&(f=I),o.lastIndex=I.index+I[1].length+I[2].length;o.lastIndex=-1}if(f===null)return null;let i=f[2],v=f[3]||"0",s=f[4]||"0",u=e.includePrerelease&&f[5]?`-${f[5]}`:"",E=e.includePrerelease&&f[6]?`+${f[6]}`:"";return a(`${i}.${v}.${s}${u}${E}`,e)};l.exports=p}}),Me=O({"../../node_modules/semver/internal/lrucache.js"(m,l){var r=class{constructor(){this.max=1e3,this.map=new Map}get(a){let n=this.map.get(a);if(n!==void 0)return this.map.delete(a),this.map.set(a,n),n}delete(a){return this.map.delete(a)}set(a,n){if(!this.delete(a)&&n!==void 0){if(this.map.size>=this.max){let t=this.map.keys().next().value;this.delete(t)}this.map.set(a,n)}return this}};l.exports=r}}),U=O({"../../node_modules/semver/classes/range.js"(m,l){var r=/\s+/g,a=class K{constructor(c,L){if(L=p(L),c instanceof K)return c.loose===!!L.loose&&c.includePrerelease===!!L.includePrerelease?c:new K(c.raw,L);if(c instanceof h)return this.raw=c.value,this.set=[[c]],this.formatted=void 0,this;if(this.options=L,this.loose=!!L.loose,this.includePrerelease=!!L.includePrerelease,this.raw=c.trim().replace(r," "),this.set=this.raw.split("||").map(d=>this.parseRange(d.trim())).filter(d=>d.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let d=this.set[0];if(this.set=this.set.filter(_=>!T(_[0])),this.set.length===0)this.set=[d];else if(this.set.length>1){for(let _ of this.set)if(_.length===1&&A(_[0])){this.set=[_];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let c=0;c<this.set.length;c++){c>0&&(this.formatted+="||");let L=this.set[c];for(let d=0;d<L.length;d++)d>0&&(this.formatted+=" "),this.formatted+=L[d].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(c){let L=((this.options.includePrerelease&&o)|(this.options.loose&&I))+":"+c,d=t.get(L);if(d)return d;let _=this.options.loose,R=_?i[v.HYPHENRANGELOOSE]:i[v.HYPHENRANGE];c=c.replace(R,ae(this.options.includePrerelease)),e("hyphen replace",c),c=c.replace(i[v.COMPARATORTRIM],s),e("comparator trim",c),c=c.replace(i[v.TILDETRIM],u),e("tilde trim",c),c=c.replace(i[v.CARETTRIM],E),e("caret trim",c);let N=c.split(" ").map(j=>D(j,this.options)).join(" ").split(/\s+/).map(j=>se(j,this.options));_&&(N=N.filter(j=>(e("loose invalid filter",j,this.options),!!j.match(i[v.COMPARATORLOOSE])))),e("range list",N);let w=new Map,g=N.map(j=>new h(j,this.options));for(let j of g){if(T(j))return[j];w.set(j.value,j)}w.size>1&&w.has("")&&w.delete("");let x=[...w.values()];return t.set(L,x),x}intersects(c,L){if(!(c instanceof K))throw new TypeError("a Range is required");return this.set.some(d=>y(d,L)&&c.set.some(_=>y(_,L)&&d.every(R=>_.every(N=>R.intersects(N,L)))))}test(c){if(!c)return!1;if(typeof c=="string")try{c=new f(c,this.options)}catch{return!1}for(let L=0;L<this.set.length;L++)if(ie(this.set[L],c,this.options))return!0;return!1}};l.exports=a;var n=Me(),t=new n,p=me(),h=ee(),e=Z(),f=q(),{safeRe:i,t:v,comparatorTrimReplace:s,tildeTrimReplace:u,caretTrimReplace:E}=z(),{FLAG_INCLUDE_PRERELEASE:o,FLAG_LOOSE:I}=Q(),T=$=>$.value==="<0.0.0-0",A=$=>$.value==="",y=($,c)=>{let L=!0,d=$.slice(),_=d.pop();for(;L&&d.length;)L=d.every(R=>_.intersects(R,c)),_=d.pop();return L},D=($,c)=>(e("comp",$,c),$=C($,c),e("caret",$),$=b($,c),e("tildes",$),$=S($,c),e("xrange",$),$=te($,c),e("stars",$),$),P=$=>!$||$.toLowerCase()==="x"||$==="*",b=($,c)=>$.trim().split(/\s+/).map(L=>F(L,c)).join(" "),F=($,c)=>{let L=c.loose?i[v.TILDELOOSE]:i[v.TILDE];return $.replace(L,(d,_,R,N,w)=>{e("tilde",$,d,_,R,N,w);let g;return P(_)?g="":P(R)?g=`>=${_}.0.0 <${+_+1}.0.0-0`:P(N)?g=`>=${_}.${R}.0 <${_}.${+R+1}.0-0`:w?(e("replaceTilde pr",w),g=`>=${_}.${R}.${N}-${w} <${_}.${+R+1}.0-0`):g=`>=${_}.${R}.${N} <${_}.${+R+1}.0-0`,e("tilde return",g),g})},C=($,c)=>$.trim().split(/\s+/).map(L=>G(L,c)).join(" "),G=($,c)=>{e("caret",$,c);let L=c.loose?i[v.CARETLOOSE]:i[v.CARET],d=c.includePrerelease?"-0":"";return $.replace(L,(_,R,N,w,g)=>{e("caret",$,_,R,N,w,g);let x;return P(R)?x="":P(N)?x=`>=${R}.0.0${d} <${+R+1}.0.0-0`:P(w)?R==="0"?x=`>=${R}.${N}.0${d} <${R}.${+N+1}.0-0`:x=`>=${R}.${N}.0${d} <${+R+1}.0.0-0`:g?(e("replaceCaret pr",g),R==="0"?N==="0"?x=`>=${R}.${N}.${w}-${g} <${R}.${N}.${+w+1}-0`:x=`>=${R}.${N}.${w}-${g} <${R}.${+N+1}.0-0`:x=`>=${R}.${N}.${w}-${g} <${+R+1}.0.0-0`):(e("no pr"),R==="0"?N==="0"?x=`>=${R}.${N}.${w}${d} <${R}.${N}.${+w+1}-0`:x=`>=${R}.${N}.${w}${d} <${R}.${+N+1}.0-0`:x=`>=${R}.${N}.${w} <${+R+1}.0.0-0`),e("caret return",x),x})},S=($,c)=>(e("replaceXRanges",$,c),$.split(/\s+/).map(L=>B(L,c)).join(" ")),B=($,c)=>{$=$.trim();let L=c.loose?i[v.XRANGELOOSE]:i[v.XRANGE];return $.replace(L,(d,_,R,N,w,g)=>{e("xRange",$,d,_,R,N,w,g);let x=P(R),j=x||P(N),M=j||P(w),W=M;return _==="="&&W&&(_=""),g=c.includePrerelease?"-0":"",x?_===">"||_==="<"?d="<0.0.0-0":d="*":_&&W?(j&&(N=0),w=0,_===">"?(_=">=",j?(R=+R+1,N=0,w=0):(N=+N+1,w=0)):_==="<="&&(_="<",j?R=+R+1:N=+N+1),_==="<"&&(g="-0"),d=`${_+R}.${N}.${w}${g}`):j?d=`>=${R}.0.0${g} <${+R+1}.0.0-0`:M&&(d=`>=${R}.${N}.0${g} <${R}.${+N+1}.0-0`),e("xRange return",d),d})},te=($,c)=>(e("replaceStars",$,c),$.trim().replace(i[v.STAR],"")),se=($,c)=>(e("replaceGTE0",$,c),$.trim().replace(i[c.includePrerelease?v.GTE0PRE:v.GTE0],"")),ae=$=>(c,L,d,_,R,N,w,g,x,j,M,W)=>(P(d)?L="":P(_)?L=`>=${d}.0.0${$?"-0":""}`:P(R)?L=`>=${d}.${_}.0${$?"-0":""}`:N?L=`>=${L}`:L=`>=${L}${$?"-0":""}`,P(x)?g="":P(j)?g=`<${+x+1}.0.0-0`:P(M)?g=`<${x}.${+j+1}.0-0`:W?g=`<=${x}.${j}.${M}-${W}`:$?g=`<${x}.${j}.${+M+1}-0`:g=`<=${g}`,`${L} ${g}`.trim()),ie=($,c,L)=>{for(let d=0;d<$.length;d++)if(!$[d].test(c))return!1;if(c.prerelease.length&&!L.includePrerelease){for(let d=0;d<$.length;d++)if(e($[d].semver),$[d].semver!==h.ANY&&$[d].semver.prerelease.length>0){let _=$[d].semver;if(_.major===c.major&&_.minor===c.minor&&_.patch===c.patch)return!0}return!1}return!0}}}),ee=O({"../../node_modules/semver/classes/comparator.js"(m,l){var r=Symbol("SemVer ANY"),a=class ue{static get ANY(){return r}constructor(s,u){if(u=n(u),s instanceof ue){if(s.loose===!!u.loose)return s;s=s.value}s=s.trim().split(/\s+/).join(" "),e("comparator",s,u),this.options=u,this.loose=!!u.loose,this.parse(s),this.semver===r?this.value="":this.value=this.operator+this.semver.version,e("comp",this)}parse(s){let u=this.options.loose?t[p.COMPARATORLOOSE]:t[p.COMPARATOR],E=s.match(u);if(!E)throw new TypeError(`Invalid comparator: ${s}`);this.operator=E[1]!==void 0?E[1]:"",this.operator==="="&&(this.operator=""),E[2]?this.semver=new f(E[2],this.options.loose):this.semver=r}toString(){return this.value}test(s){if(e("Comparator.test",s,this.options.loose),this.semver===r||s===r)return!0;if(typeof s=="string")try{s=new f(s,this.options)}catch{return!1}return h(s,this.operator,this.semver,this.options)}intersects(s,u){if(!(s instanceof ue))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new i(s.value,u).test(this.value):s.operator===""?s.value===""?!0:new i(this.value,u).test(s.semver):(u=n(u),u.includePrerelease&&(this.value==="<0.0.0-0"||s.value==="<0.0.0-0")||!u.includePrerelease&&(this.value.startsWith("<0.0.0")||s.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&s.operator.startsWith(">")||this.operator.startsWith("<")&&s.operator.startsWith("<")||this.semver.version===s.semver.version&&this.operator.includes("=")&&s.operator.includes("=")||h(this.semver,"<",s.semver,u)&&this.operator.startsWith(">")&&s.operator.startsWith("<")||h(this.semver,">",s.semver,u)&&this.operator.startsWith("<")&&s.operator.startsWith(">")))}};l.exports=a;var n=me(),{safeRe:t,t:p}=z(),h=Oe(),e=Z(),f=q(),i=U()}}),re=O({"../../node_modules/semver/functions/satisfies.js"(m,l){var r=U(),a=(n,t,p)=>{try{t=new r(t,p)}catch{return!1}return t.test(n)};l.exports=a}}),He=O({"../../node_modules/semver/ranges/to-comparators.js"(m,l){var r=U(),a=(n,t)=>new r(n,t).set.map(p=>p.map(h=>h.value).join(" ").trim().split(" "));l.exports=a}}),Be=O({"../../node_modules/semver/ranges/max-satisfying.js"(m,l){var r=q(),a=U(),n=(t,p,h)=>{let e=null,f=null,i=null;try{i=new a(p,h)}catch{return null}return t.forEach(v=>{i.test(v)&&(!e||f.compare(v)===-1)&&(e=v,f=new r(e,h))}),e};l.exports=n}}),We=O({"../../node_modules/semver/ranges/min-satisfying.js"(m,l){var r=q(),a=U(),n=(t,p,h)=>{let e=null,f=null,i=null;try{i=new a(p,h)}catch{return null}return t.forEach(v=>{i.test(v)&&(!e||f.compare(v)===1)&&(e=v,f=new r(e,h))}),e};l.exports=n}}),Ye=O({"../../node_modules/semver/ranges/min-version.js"(m,l){var r=q(),a=U(),n=J(),t=(p,h)=>{p=new a(p,h);let e=new r("0.0.0");if(p.test(e)||(e=new r("0.0.0-0"),p.test(e)))return e;e=null;for(let f=0;f<p.set.length;++f){let i=p.set[f],v=null;i.forEach(s=>{let u=new r(s.semver.version);switch(s.operator){case">":u.prerelease.length===0?u.patch++:u.prerelease.push(0),u.raw=u.format();case"":case">=":(!v||n(u,v))&&(v=u);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${s.operator}`)}}),v&&(!e||n(e,v))&&(e=v)}return e&&p.test(e)?e:null};l.exports=t}}),ze=O({"../../node_modules/semver/ranges/valid.js"(m,l){var r=U(),a=(n,t)=>{try{return new r(n,t).range||"*"}catch{return null}};l.exports=a}}),$e=O({"../../node_modules/semver/ranges/outside.js"(m,l){var r=q(),a=ee(),{ANY:n}=a,t=U(),p=re(),h=J(),e=he(),f=ve(),i=fe(),v=(s,u,E,o)=>{s=new r(s,o),u=new t(u,o);let I,T,A,y,D;switch(E){case">":I=h,T=f,A=e,y=">",D=">=";break;case"<":I=e,T=i,A=h,y="<",D="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(p(s,u,o))return!1;for(let P=0;P<u.set.length;++P){let b=u.set[P],F=null,C=null;if(b.forEach(G=>{G.semver===n&&(G=new a(">=0.0.0")),F=F||G,C=C||G,I(G.semver,F.semver,o)?F=G:A(G.semver,C.semver,o)&&(C=G)}),F.operator===y||F.operator===D||(!C.operator||C.operator===y)&&T(s,C.semver)||C.operator===D&&A(s,C.semver))return!1}return!0};l.exports=v}}),Ke=O({"../../node_modules/semver/ranges/gtr.js"(m,l){var r=$e(),a=(n,t,p)=>r(n,t,">",p);l.exports=a}}),Qe=O({"../../node_modules/semver/ranges/ltr.js"(m,l){var r=$e(),a=(n,t,p)=>r(n,t,"<",p);l.exports=a}}),Ze=O({"../../node_modules/semver/ranges/intersects.js"(m,l){var r=U(),a=(n,t,p)=>(n=new r(n,p),t=new r(t,p),n.intersects(t,p));l.exports=a}}),Je=O({"../../node_modules/semver/ranges/simplify.js"(m,l){var r=re(),a=V();l.exports=(n,t,p)=>{let h=[],e=null,f=null,i=n.sort((E,o)=>a(E,o,p));for(let E of i)r(E,t,p)?(f=E,e||(e=E)):(f&&h.push([e,f]),f=null,e=null);e&&h.push([e,null]);let v=[];for(let[E,o]of h)E===o?v.push(E):!o&&E===i[0]?v.push("*"):o?E===i[0]?v.push(`<=${o}`):v.push(`${E} - ${o}`):v.push(`>=${E}`);let s=v.join(" || "),u=typeof t.raw=="string"?t.raw:String(t);return s.length<u.length?s:t}}}),er=O({"../../node_modules/semver/ranges/subset.js"(m,l){var r=U(),a=ee(),{ANY:n}=a,t=re(),p=V(),h=(u,E,o={})=>{if(u===E)return!0;u=new r(u,o),E=new r(E,o);let I=!1;e:for(let T of u.set){for(let A of E.set){let y=i(T,A,o);if(I=I||y!==null,y)continue e}if(I)return!1}return!0},e=[new a(">=0.0.0-0")],f=[new a(">=0.0.0")],i=(u,E,o)=>{if(u===E)return!0;if(u.length===1&&u[0].semver===n){if(E.length===1&&E[0].semver===n)return!0;o.includePrerelease?u=e:u=f}if(E.length===1&&E[0].semver===n){if(o.includePrerelease)return!0;E=f}let I=new Set,T,A;for(let S of u)S.operator===">"||S.operator===">="?T=v(T,S,o):S.operator==="<"||S.operator==="<="?A=s(A,S,o):I.add(S.semver);if(I.size>1)return null;let y;if(T&&A&&(y=p(T.semver,A.semver,o),y>0||y===0&&(T.operator!==">="||A.operator!=="<=")))return null;for(let S of I){if(T&&!t(S,String(T),o)||A&&!t(S,String(A),o))return null;for(let B of E)if(!t(S,String(B),o))return!1;return!0}let D,P,b,F,C=A&&!o.includePrerelease&&A.semver.prerelease.length?A.semver:!1,G=T&&!o.includePrerelease&&T.semver.prerelease.length?T.semver:!1;C&&C.prerelease.length===1&&A.operator==="<"&&C.prerelease[0]===0&&(C=!1);for(let S of E){if(F=F||S.operator===">"||S.operator===">=",b=b||S.operator==="<"||S.operator==="<=",T){if(G&&S.semver.prerelease&&S.semver.prerelease.length&&S.semver.major===G.major&&S.semver.minor===G.minor&&S.semver.patch===G.patch&&(G=!1),S.operator===">"||S.operator===">="){if(D=v(T,S,o),D===S&&D!==T)return!1}else if(T.operator===">="&&!t(T.semver,String(S),o))return!1}if(A){if(C&&S.semver.prerelease&&S.semver.prerelease.length&&S.semver.major===C.major&&S.semver.minor===C.minor&&S.semver.patch===C.patch&&(C=!1),S.operator==="<"||S.operator==="<="){if(P=s(A,S,o),P===S&&P!==A)return!1}else if(A.operator==="<="&&!t(A.semver,String(S),o))return!1}if(!S.operator&&(A||T)&&y!==0)return!1}return!(T&&b&&!A&&y!==0||A&&F&&!T&&y!==0||G||C)},v=(u,E,o)=>{if(!u)return E;let I=p(u.semver,E.semver,o);return I>0?u:I<0||E.operator===">"&&u.operator===">="?E:u},s=(u,E,o)=>{if(!u)return E;let I=p(u.semver,E.semver,o);return I<0?u:I>0||E.operator==="<"&&u.operator==="<="?E:u};l.exports=h}}),rr=O({"../../node_modules/semver/index.js"(m,l){var r=z(),a=Q(),n=q(),t=Le(),p=H(),h=je(),e=Pe(),f=Ce(),i=ye(),v=De(),s=Ge(),u=qe(),E=Fe(),o=V(),I=Ve(),T=Ue(),A=ce(),y=Xe(),D=be(),P=J(),b=he(),F=_e(),C=Ne(),G=fe(),S=ve(),B=Oe(),te=ke(),se=ee(),ae=U(),ie=re(),$=He(),c=Be(),L=We(),d=Ye(),_=ze(),R=$e(),N=Ke(),w=Qe(),g=Ze(),x=Je(),j=er();l.exports={parse:p,valid:h,clean:e,inc:f,diff:i,major:v,minor:s,patch:u,prerelease:E,compare:o,rcompare:I,compareLoose:T,compareBuild:A,sort:y,rsort:D,gt:P,lt:b,eq:F,neq:C,gte:G,lte:S,cmp:B,coerce:te,Comparator:se,Range:ae,satisfies:ie,toComparators:$,maxSatisfying:c,minSatisfying:L,minVersion:d,validRange:_,outside:R,gtr:N,ltr:w,intersects:g,simplifyRange:x,subset:j,SemVer:n,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:a.SEMVER_SPEC_VERSION,RELEASE_TYPES:a.RELEASE_TYPES,compareIdentifiers:t.compareIdentifiers,rcompareIdentifiers:t.rcompareIdentifiers}}}),tr={};ge(tr,{beforeAll:()=>Er,decorators:()=>pr,mount:()=>or,parameters:()=>ur,render:()=>ir,renderToCanvas:()=>lr});var de=Ae(rr()),sr={...we};function Re(m){globalThis.IS_REACT_ACT_ENVIRONMENT=m}function ar(){return globalThis.IS_REACT_ACT_ENVIRONMENT}var Se=async()=>{var m;if(typeof sr.act!="function"){let l=await Ee(()=>import("./test-utils-BE0XkMtV.js").then(r=>r.t),__vite__mapDeps([0,1,2,3]),import.meta.url);((m=l==null?void 0:l.default)==null?void 0:m.act)??l.act}return l=>l()},ir=(m,l)=>{let{id:r,component:a}=l;if(!a)throw new Error(`Unable to render story ${r} as the component annotation is missing from the default export`);return Y.createElement(a,{...m})},{FRAMEWORK_OPTIONS:le}=xe,nr=class extends k.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidMount(){let{hasError:m}=this.state,{showMain:l}=this.props;m||l()}componentDidCatch(m){let{showException:l}=this.props;l(m)}render(){let{hasError:m}=this.state,{children:l}=this.props;return m?null:l}},Ie=le!=null&&le.strictMode?k.StrictMode:k.Fragment,pe=[],oe=!1,Te=async()=>{if(oe||pe.length===0)return;oe=!0;let m=pe.shift();m&&await m(),oe=!1,Te()};async function lr({storyContext:m,unboundStoryFn:l,showMain:r,showException:a,forceRemount:n},t){let{renderElement:p,unmountElement:h}=await Ee(async()=>{const{renderElement:s,unmountElement:u}=await import("./react-18-CALspjOX.js");return{renderElement:s,unmountElement:u}},__vite__mapDeps([4,1,2,3]),import.meta.url),e=l,f=m.parameters.__isPortableStory?Y.createElement(e,{...m}):Y.createElement(nr,{showMain:r,showException:a},Y.createElement(e,{...m})),i=Ie?Y.createElement(Ie,null,f):f;n&&h(t);let v=await Se();return await new Promise(async(s,u)=>{pe.push(async()=>{try{await v(async()=>{var E,o;await p(i,t,(o=(E=m==null?void 0:m.parameters)==null?void 0:E.react)==null?void 0:o.rootOptions)}),s()}catch(E){u(E)}}),Te()}),async()=>{await v(()=>{h(t)})}}var or=m=>async l=>(l!=null&&(m.originalStoryFn=()=>l),await m.renderToCanvas(),m.canvas),ur={renderer:"react"},pr=[(m,l)=>{var n,t;if(!((t=(n=l.parameters)==null?void 0:n.react)!=null&&t.rsc))return m();let r=de.default.major(k.version),a=de.default.minor(k.version);if(r<18||r===18&&a<3)throw new Error("React Server Components require React >= 18.3");return k.createElement(k.Suspense,null,m())}],Er=async()=>{try{let{configure:m}=await Ee(async()=>{const{configure:r}=await import("./index-DrdPSA1J.js").then(a=>a.a);return{configure:r}},[],import.meta.url),l=await Se();m({unstable_advanceTimersWrapper:r=>l(r),asyncWrapper:async r=>{let a=ar();Re(!1);try{let n=await r();return await new Promise(t=>{setTimeout(()=>{t()},0),mr()&&jest.advanceTimersByTime(0)}),n}finally{Re(a)}},eventWrapper:r=>{let a;return l(()=>(a=r(),a)),a}})}catch{}};function mr(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}export{Er as beforeAll,pr as decorators,or as mount,ur as parameters,ir as render,lr as renderToCanvas};