@pipedream/connect-react 1.5.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,21 +1,21 @@
1
- (function(z,B){typeof exports=="object"&&typeof module<"u"?B(exports,require("react/jsx-runtime"),require("react"),require("@emotion/react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","@emotion/react","react-dom"],B):(z=typeof globalThis<"u"?globalThis:z||self,B(z["connect-react"]={},z["react/jsx-runtime"],z.React,z["@emotion/react"],z.ReactDOM))})(this,function(z,B,G,_,Kr){"use strict";var Cu=z=>{throw TypeError(z)};var yo=(z,B,G)=>B.has(z)||Cu("Cannot "+G);var x=(z,B,G)=>(yo(z,B,"read from private field"),G?G.call(z):B.get(z)),ne=(z,B,G)=>B.has(z)?Cu("Cannot add the same private member more than once"):B instanceof WeakSet?B.add(z):B.set(z,G),j=(z,B,G,_)=>(yo(z,B,"write to private field"),_?_.call(z,G):B.set(z,G),G),fe=(z,B,G)=>(yo(z,B,"access private method"),G);var $r=(z,B,G,_)=>({set _(Kr){j(z,B,Kr,G)},get _(){return x(z,B,_)}});var $t,Tt,In,eu,Cn,Ot,xn,tu,Kt,nu,An,wn,nt,Le,$n,en,at,Pt,ru,mt,iu,bt,Xe,tn,yt,Jt,ou,Ue,Kn,su,Ee,Vt,Dt,Sn,En,Nt,kn,Fn,au,je,pe,er,ze,nn,Pn,Lt,vt,tr,Gn,Bn,rn,on,Rt,Tn,ye,lr,vo,Io,Co,xo,Ao,wo,So,xu,lu;function Au(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const re=Au(G);function Wy(){}function Zy(){}function wu(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Su=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Eu=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ku={};function Eo(e,t){return(ku.jsx?Eu:Su).test(e)}const Fu=/[ \t\n\f\r]/g;function Pu(e){return typeof e=="object"?e.type==="text"?ko(e.value):!1:ko(e)}function ko(e){return e.replace(Fu,"")===""}class Dn{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Dn.prototype.property={},Dn.prototype.normal={},Dn.prototype.space=null;function Fo(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new Dn(n,r,t)}function ei(e){return e.toLowerCase()}class Ke{constructor(t,n){this.property=t,this.attribute=n}}Ke.prototype.space=null,Ke.prototype.boolean=!1,Ke.prototype.booleanish=!1,Ke.prototype.overloadedBoolean=!1,Ke.prototype.number=!1,Ke.prototype.commaSeparated=!1,Ke.prototype.spaceSeparated=!1,Ke.prototype.commaOrSpaceSeparated=!1,Ke.prototype.mustUseProperty=!1,Ke.prototype.defined=!1;let Gu=0;const ie=Yt(),Fe=Yt(),Po=Yt(),M=Yt(),Ie=Yt(),dn=Yt(),Ye=Yt();function Yt(){return 2**++Gu}const ti=Object.freeze(Object.defineProperty({__proto__:null,boolean:ie,booleanish:Fe,commaOrSpaceSeparated:Ye,commaSeparated:dn,number:M,overloadedBoolean:Po,spaceSeparated:Ie},Symbol.toStringTag,{value:"Module"})),ni=Object.keys(ti);class ri extends Ke{constructor(t,n,r,i){let o=-1;if(super(t,n),Go(this,"space",i),typeof r=="number")for(;++o<ni.length;){const s=ni[o];Go(this,ni[o],(r&ti[s])===ti[s])}}}ri.prototype.defined=!0;function Go(e,t,n){n&&(e[t]=n)}const Bu={}.hasOwnProperty;function pn(e){const t={},n={};let r;for(r in e.properties)if(Bu.call(e.properties,r)){const i=e.properties[r],o=new ri(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[ei(r)]=r,n[ei(o.attribute)]=r}return new Dn(t,n,e.space)}const Bo=pn({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),To=pn({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Oo(e,t){return t in e?e[t]:t}function Vo(e,t){return Oo(e,t.toLowerCase())}const Do=pn({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Vo,properties:{xmlns:null,xmlnsXLink:null}}),No=pn({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Fe,ariaAutoComplete:null,ariaBusy:Fe,ariaChecked:Fe,ariaColCount:M,ariaColIndex:M,ariaColSpan:M,ariaControls:Ie,ariaCurrent:null,ariaDescribedBy:Ie,ariaDetails:null,ariaDisabled:Fe,ariaDropEffect:Ie,ariaErrorMessage:null,ariaExpanded:Fe,ariaFlowTo:Ie,ariaGrabbed:Fe,ariaHasPopup:null,ariaHidden:Fe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ie,ariaLevel:M,ariaLive:null,ariaModal:Fe,ariaMultiLine:Fe,ariaMultiSelectable:Fe,ariaOrientation:null,ariaOwns:Ie,ariaPlaceholder:null,ariaPosInSet:M,ariaPressed:Fe,ariaReadOnly:Fe,ariaRelevant:null,ariaRequired:Fe,ariaRoleDescription:Ie,ariaRowCount:M,ariaRowIndex:M,ariaRowSpan:M,ariaSelected:Fe,ariaSetSize:M,ariaSort:null,ariaValueMax:M,ariaValueMin:M,ariaValueNow:M,ariaValueText:null,role:null}}),Tu=pn({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Vo,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:dn,acceptCharset:Ie,accessKey:Ie,action:null,allow:null,allowFullScreen:ie,allowPaymentRequest:ie,allowUserMedia:ie,alt:null,as:null,async:ie,autoCapitalize:null,autoComplete:Ie,autoFocus:ie,autoPlay:ie,blocking:Ie,capture:null,charSet:null,checked:ie,cite:null,className:Ie,cols:M,colSpan:null,content:null,contentEditable:Fe,controls:ie,controlsList:Ie,coords:M|dn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ie,defer:ie,dir:null,dirName:null,disabled:ie,download:Po,draggable:Fe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ie,formTarget:null,headers:Ie,height:M,hidden:ie,high:M,href:null,hrefLang:null,htmlFor:Ie,httpEquiv:Ie,id:null,imageSizes:null,imageSrcSet:null,inert:ie,inputMode:null,integrity:null,is:null,isMap:ie,itemId:null,itemProp:Ie,itemRef:Ie,itemScope:ie,itemType:Ie,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ie,low:M,manifest:null,max:null,maxLength:M,media:null,method:null,min:null,minLength:M,multiple:ie,muted:ie,name:null,nonce:null,noModule:ie,noValidate:ie,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:ie,optimum:M,pattern:null,ping:Ie,placeholder:null,playsInline:ie,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ie,referrerPolicy:null,rel:Ie,required:ie,reversed:ie,rows:M,rowSpan:M,sandbox:Ie,scope:null,scoped:ie,seamless:ie,selected:ie,shadowRootClonable:ie,shadowRootDelegatesFocus:ie,shadowRootMode:null,shape:null,size:M,sizes:null,slot:null,span:M,spellCheck:Fe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:M,step:null,style:null,tabIndex:M,target:null,title:null,translate:null,type:null,typeMustMatch:ie,useMap:null,value:Fe,width:M,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ie,axis:null,background:null,bgColor:null,border:M,borderColor:null,bottomMargin:M,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ie,declare:ie,event:null,face:null,frame:null,frameBorder:null,hSpace:M,leftMargin:M,link:null,longDesc:null,lowSrc:null,marginHeight:M,marginWidth:M,noResize:ie,noHref:ie,noShade:ie,noWrap:ie,object:null,profile:null,prompt:null,rev:null,rightMargin:M,rules:null,scheme:null,scrolling:Fe,standby:null,summary:null,text:null,topMargin:M,valueType:null,version:null,vAlign:null,vLink:null,vSpace:M,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ie,disableRemotePlayback:ie,prefix:null,property:null,results:M,security:null,unselectable:null}}),Ou=pn({space:"svg",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"},transform:Oo,properties:{about:Ye,accentHeight:M,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:M,amplitude:M,arabicForm:null,ascent:M,attributeName:null,attributeType:null,azimuth:M,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:M,by:null,calcMode:null,capHeight:M,className:Ie,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:M,diffuseConstant:M,direction:null,display:null,dur:null,divisor:M,dominantBaseline:null,download:ie,dx:null,dy:null,edgeMode:null,editable:null,elevation:M,enableBackground:null,end:null,event:null,exponent:M,externalResourcesRequired:null,fill:null,fillOpacity:M,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:dn,g2:dn,glyphName:dn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:M,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:M,horizOriginX:M,horizOriginY:M,id:null,ideographic:M,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:M,k:M,k1:M,k2:M,k3:M,k4:M,kernelMatrix:Ye,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:M,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:M,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:M,overlineThickness:M,paintOrder:null,panose1:null,path:null,pathLength:M,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ie,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:M,pointsAtY:M,pointsAtZ:M,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ye,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ye,rev:Ye,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ye,requiredFeatures:Ye,requiredFonts:Ye,requiredFormats:Ye,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:M,specularExponent:M,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:M,strikethroughThickness:M,string:null,stroke:null,strokeDashArray:Ye,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:M,strokeOpacity:M,strokeWidth:null,style:null,surfaceScale:M,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ye,tabIndex:M,tableValues:null,target:null,targetX:M,targetY:M,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ye,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:M,underlineThickness:M,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:M,values:null,vAlphabetic:M,vMathematical:M,vectorEffect:null,vHanging:M,vIdeographic:M,version:null,vertAdvY:M,vertOriginX:M,vertOriginY:M,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:M,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Vu=/^data[-\w.:]+$/i,Lo=/-[a-z]/g,Du=/[A-Z]/g;function Nu(e,t){const n=ei(t);let r=t,i=Ke;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Vu.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Lo,Ru);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Lo.test(o)){let s=o.replace(Du,Lu);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=ri}return new i(r,t)}function Lu(e){return"-"+e.toLowerCase()}function Ru(e){return e.charAt(1).toUpperCase()}const Mu={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"},Xu=Fo([To,Bo,Do,No,Tu],"html"),ii=Fo([To,Bo,Do,No,Ou],"svg");function zu(e){return e.join(" ").trim()}var fn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ro(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mo={},Xo=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Hu=/\n/g,Wu=/^\s*/,Zu=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,ju=/^:\s*/,Ju=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Yu=/^[;\s]*/,_u=/^\s+|\s+$/g,Uu=`
2
- `,zo="/",Ho="*",_t="",qu="comment",Qu="declaration",$u=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(b){var g=b.match(Hu);g&&(n+=g.length);var I=b.lastIndexOf(Uu);r=~I?b.length-I:r+b.length}function o(){var b={line:n,column:r};return function(g){return g.position=new s(b),u(),g}}function s(b){this.start=b,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function a(b){var g=new Error(t.source+":"+n+":"+r+": "+b);if(g.reason=b,g.filename=t.source,g.line=n,g.column=r,g.source=e,!t.silent)throw g}function l(b){var g=b.exec(e);if(g){var I=g[0];return i(I),e=e.slice(I.length),g}}function u(){l(Wu)}function c(b){var g;for(b=b||[];g=d();)g!==!1&&b.push(g);return b}function d(){var b=o();if(!(zo!=e.charAt(0)||Ho!=e.charAt(1))){for(var g=2;_t!=e.charAt(g)&&(Ho!=e.charAt(g)||zo!=e.charAt(g+1));)++g;if(g+=2,_t===e.charAt(g-1))return a("End of comment missing");var I=e.slice(2,g-2);return r+=2,i(I),e=e.slice(g),r+=2,b({type:qu,comment:I})}}function f(){var b=o(),g=l(Zu);if(g){if(d(),!l(ju))return a("property missing ':'");var I=l(Ju),v=b({type:Qu,property:Wo(g[0].replace(Xo,_t)),value:I?Wo(I[0].replace(Xo,_t)):_t});return l(Yu),v}}function p(){var b=[];c(b);for(var g;g=f();)g!==!1&&(b.push(g),c(b));return b}return u(),p()};function Wo(e){return e?e.replace(_u,_t):_t}var Ku=fn&&fn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Mo,"__esModule",{value:!0});var Zo=Mo.default=tc,ec=Ku($u);function tc(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,ec.default)(e),i=typeof t=="function";return r.forEach(function(o){if(o.type==="declaration"){var s=o.property,a=o.value;i?t(s,a,o):a&&(n=n||{},n[s]=a)}}),n}const nc=Zo.default||Zo,jo=Jo("end"),oi=Jo("start");function Jo(e){return t;function t(n){const r=n&&n.position&&n.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 rc(e){const t=oi(e),n=jo(e);if(t&&n)return{start:t,end:n}}function Nn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Yo(e.position):"start"in e||"end"in e?Yo(e):"line"in e||"column"in e?si(e):""}function si(e){return _o(e&&e.line)+":"+_o(e&&e.column)}function Yo(e){return si(e&&e.start)+"-"+si(e&&e.end)}function _o(e){return e&&typeof e=="number"?e:1}class De extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},s=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(s=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?o.ruleId=r:(o.source=r.slice(0,l),o.ruleId=r.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.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=Nn(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}De.prototype.file="",De.prototype.name="",De.prototype.reason="",De.prototype.message="",De.prototype.stack="",De.prototype.column=void 0,De.prototype.line=void 0,De.prototype.ancestors=void 0,De.prototype.cause=void 0,De.prototype.fatal=void 0,De.prototype.place=void 0,De.prototype.ruleId=void 0,De.prototype.source=void 0;const ai={}.hasOwnProperty,ic=new Map,oc=/[A-Z]/g,sc=/-([a-z])/g,ac=new Set(["table","tbody","thead","tfoot","tr"]),lc=new Set(["td","th"]),Uo="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function uc(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=bc(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=mc(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?ii:Xu,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=qo(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function qo(e,t,n){if(t.type==="element")return cc(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return dc(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return fc(e,t,n);if(t.type==="mdxjsEsm")return pc(e,t);if(t.type==="root")return hc(e,t,n);if(t.type==="text")return gc(e,t)}function cc(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=ii,e.schema=i),e.ancestors.push(t);const o=$o(e,t.tagName,!1),s=yc(e,t);let a=ui(e,t);return ac.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!Pu(l):!0})),Qo(e,s,o,t),li(s,a),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function dc(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Ln(e,t.position)}function pc(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ln(e,t.position)}function fc(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=ii,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:$o(e,t.name,!0),s=vc(e,t),a=ui(e,t);return Qo(e,s,o,t),li(s,a),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function hc(e,t,n){const r={};return li(r,ui(e,t)),e.create(t,e.Fragment,r,n)}function gc(e,t){return t.value}function Qo(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function li(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function mc(e,t,n){return r;function r(i,o,s,a){const u=Array.isArray(s.children)?n:t;return a?u(o,s,a):u(o,s)}}function bc(e,t){return n;function n(r,i,o,s){const a=Array.isArray(o.children),l=oi(r);return t(i,o,s,a,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function yc(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&ai.call(t.properties,i)){const o=Ic(e,i,t.properties[i]);if(o){const[s,a]=o;e.tableCellAlignToStyle&&s==="align"&&typeof a=="string"&&lc.has(t.tagName)?r=a:n[s]=a}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function vc(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const s=o.expression;s.type;const a=s.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Ln(e,t.position);else{const i=r.name;let o;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,o=e.evaluater.evaluateExpression(a.expression)}else Ln(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function ui(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:ic;for(;++r<t.children.length;){const o=t.children[r];let s;if(e.passKeys){const l=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(l){const u=i.get(l)||0;s=l+"-"+u,i.set(l,u+1)}}const a=qo(e,o,s);a!==void 0&&n.push(a)}return n}function Ic(e,t,n){const r=Nu(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?wu(n):zu(n)),r.property==="style"){let i=typeof n=="object"?n:Cc(e,String(n));return e.stylePropertyNameCase==="css"&&(i=xc(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Mu[r.property]||r.property:r.attribute,n]}}function Cc(e,t){const n={};try{nc(t,r)}catch(i){if(!e.ignoreInvalidStyle){const o=i,s=new De("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=Uo+"#cannot-parse-style-attribute",s}}return n;function r(i,o){let s=i;s.slice(0,2)!=="--"&&(s.slice(0,4)==="-ms-"&&(s="ms-"+s.slice(4)),s=s.replace(sc,wc)),n[s]=o}}function $o(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,s;for(;++o<i.length;){const a=Eo(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};s=s?{type:"MemberExpression",object:s,property:a,computed:!!(o&&a.type==="Literal"),optional:!1}:a}r=s}else r=Eo(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return ai.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Ln(e)}function Ln(e,t){const n=new De("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Uo+"#cannot-handle-mdx-estrees-without-createevaluater",n}function xc(e){const t={};let n;for(n in e)ai.call(e,n)&&(t[Ac(n)]=e[n]);return t}function Ac(e){let t=e.replace(oc,Sc);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function wc(e,t){return t.toUpperCase()}function Sc(e){return"-"+e.toLowerCase()}const ci={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"]},Ec={};function kc(e,t){const n=Ec,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Ko(e,r,i)}function Ko(e,t,n){if(Fc(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return es(e.children,t,n)}return Array.isArray(e)?es(e,t,n):""}function es(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Ko(e[i],t,n);return r.join("")}function Fc(e){return!!(e&&typeof e=="object")}const ur={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
3
- `,Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"​",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"⁡",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"⁣",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"},Pc={}.hasOwnProperty;function ts(e){return Pc.call(ur,e)?ur[e]:!1}function dt(e,t,n,r){const i=e.length;let o=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);o<r.length;)s=r.slice(o,o+1e4),s.unshift(t,0),e.splice(...s),o+=1e4,t+=1e4}function et(e,t){return e.length>0?(dt(e,e.length,0,t),e):t}const ns={}.hasOwnProperty;function Gc(e){const t={};let n=-1;for(;++n<e.length;)Bc(t,e[n]);return t}function Bc(e,t){let n;for(n in t){const i=(ns.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let s;if(o)for(s in o){ns.call(i,s)||(i[s]=[]);const a=o[s];Tc(i[s],Array.isArray(a)?a:a?[a]:[])}}}function Tc(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);dt(e,0,0,r)}function rs(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function hn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const pt=Gt(/[A-Za-z]/),_e=Gt(/[\dA-Za-z]/),Oc=Gt(/[#-'*+\--9=?A-Z^-~]/);function di(e){return e!==null&&(e<32||e===127)}const pi=Gt(/\d/),Vc=Gt(/[\dA-Fa-f]/),Dc=Gt(/[!-/:-@[-`{-~]/);function te(e){return e!==null&&e<-2}function We(e){return e!==null&&(e<0||e===32)}function me(e){return e===-2||e===-1||e===32}const Nc=Gt(new RegExp("\\p{P}|\\p{S}","u")),Lc=Gt(/\s/);function Gt(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function gn(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let s="";if(o===37&&_e(e.charCodeAt(n+1))&&_e(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){const a=e.charCodeAt(n+1);o<56320&&a>56319&&a<57344?(s=String.fromCharCode(o,a),i=1):s="�"}else s=String.fromCharCode(o);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Ce(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return s;function s(l){return me(l)?(e.enter(n),a(l)):t(l)}function a(l){return me(l)&&o++<i?(e.consume(l),a):(e.exit(n),t(l))}}const Rc={tokenize:Mc};function Mc(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Ce(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,s(a)}function s(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return te(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),s)}}const Xc={tokenize:zc},is={tokenize:Hc};function zc(e){const t=this,n=[];let r=0,i,o,s;return a;function a(A){if(r<n.length){const E=n[r];return t.containerState=E[1],e.attempt(E[0].continuation,l,u)(A)}return u(A)}function l(A){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&S();const E=t.events.length;let k=E,C;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){C=t.events[k][1].end;break}v(r);let N=E;for(;N<t.events.length;)t.events[N][1].end={...C},N++;return dt(t.events,k+1,0,t.events.slice(E)),t.events.length=N,u(A)}return a(A)}function u(A){if(r===n.length){if(!i)return f(A);if(i.currentConstruct&&i.currentConstruct.concrete)return b(A);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(is,c,d)(A)}function c(A){return i&&S(),v(r),f(A)}function d(A){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,b(A)}function f(A){return t.containerState={},e.attempt(is,p,b)(A)}function p(A){return r++,n.push([t.currentConstruct,t.containerState]),f(A)}function b(A){if(A===null){i&&S(),v(0),e.consume(A);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),g(A)}function g(A){if(A===null){I(e.exit("chunkFlow"),!0),v(0),e.consume(A);return}return te(A)?(e.consume(A),I(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(A),g)}function I(A,E){const k=t.sliceStream(A);if(E&&k.push(null),A.previous=o,o&&(o.next=A),o=A,i.defineSkip(A.start),i.write(k),t.parser.lazy[A.start.line]){let C=i.events.length;for(;C--;)if(i.events[C][1].start.offset<s&&(!i.events[C][1].end||i.events[C][1].end.offset>s))return;const N=t.events.length;let L=N,F,R;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){if(F){R=t.events[L][1].end;break}F=!0}for(v(r),C=N;C<t.events.length;)t.events[C][1].end={...R},C++;dt(t.events,L+1,0,t.events.slice(N)),t.events.length=C}}function v(A){let E=n.length;for(;E-- >A;){const k=n[E];t.containerState=k[1],k[0].exit.call(t,e)}n.length=A}function S(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Hc(e,t,n){return Ce(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function os(e){if(e===null||We(e)||Lc(e))return 1;if(Nc(e))return 2}function fi(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const hi={name:"attention",resolveAll:Wc,tokenize:Zc};function Wc(e,t){let n=-1,r,i,o,s,a,l,u,c;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},f={...e[n][1].start};ss(d,-l),ss(f,l),s={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},o={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...s.start},end:{...a.end}},e[r][1].end={...s.start},e[n][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=et(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=et(u,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",o,t]]),u=et(u,fi(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=et(u,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=et(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,dt(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Zc(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=os(r);let o;return s;function s(l){return o=l,e.enter("attentionSequence"),a(l)}function a(l){if(l===o)return e.consume(l),a;const u=e.exit("attentionSequence"),c=os(l),d=!c||c===2&&i||n.includes(l),f=!i||i===2&&c||n.includes(r);return u._open=!!(o===42?d:d&&(i||!f)),u._close=!!(o===42?f:f&&(c||!d)),t(l)}}function ss(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const jc={name:"autolink",tokenize:Jc};function Jc(e,t,n){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(p){return pt(p)?(e.consume(p),s):p===64?n(p):u(p)}function s(p){return p===43||p===45||p===46||_e(p)?(r=1,a(p)):u(p)}function a(p){return p===58?(e.consume(p),r=0,l):(p===43||p===45||p===46||_e(p))&&r++<32?(e.consume(p),a):(r=0,u(p))}function l(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||di(p)?n(p):(e.consume(p),l)}function u(p){return p===64?(e.consume(p),c):Oc(p)?(e.consume(p),u):n(p)}function c(p){return _e(p)?d(p):n(p)}function d(p){return p===46?(e.consume(p),r=0,c):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):f(p)}function f(p){if((p===45||_e(p))&&r++<63){const b=p===45?f:d;return e.consume(p),b}return n(p)}}const cr={partial:!0,tokenize:Yc};function Yc(e,t,n){return r;function r(o){return me(o)?Ce(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||te(o)?t(o):n(o)}}const as={continuation:{tokenize:Uc},exit:qc,name:"blockQuote",tokenize:_c};function _c(e,t,n){const r=this;return i;function i(s){if(s===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),o}return n(s)}function o(s){return me(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function Uc(e,t,n){const r=this;return i;function i(s){return me(s)?Ce(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):o(s)}function o(s){return e.attempt(as,t,n)(s)}}function qc(e){e.exit("blockQuote")}const ls={name:"characterEscape",tokenize:Qc};function Qc(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return Dc(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const us={name:"characterReference",tokenize:$c};function $c(e,t,n){const r=this;let i=0,o,s;return a;function a(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,s=_e,c(d))}function u(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,s=Vc,c):(e.enter("characterReferenceValue"),o=7,s=pi,c(d))}function c(d){if(d===59&&i){const f=e.exit("characterReferenceValue");return s===_e&&!ts(r.sliceSerialize(f))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(d)&&i++<o?(e.consume(d),c):n(d)}}const cs={partial:!0,tokenize:ed},ds={concrete:!0,name:"codeFenced",tokenize:Kc};function Kc(e,t,n){const r=this,i={partial:!0,tokenize:k};let o=0,s=0,a;return l;function l(C){return u(C)}function u(C){const N=r.events[r.events.length-1];return o=N&&N[1].type==="linePrefix"?N[2].sliceSerialize(N[1],!0).length:0,a=C,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(C)}function c(C){return C===a?(s++,e.consume(C),c):s<3?n(C):(e.exit("codeFencedFenceSequence"),me(C)?Ce(e,d,"whitespace")(C):d(C))}function d(C){return C===null||te(C)?(e.exit("codeFencedFence"),r.interrupt?t(C):e.check(cs,g,E)(C)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(C))}function f(C){return C===null||te(C)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(C)):me(C)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ce(e,p,"whitespace")(C)):C===96&&C===a?n(C):(e.consume(C),f)}function p(C){return C===null||te(C)?d(C):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(C))}function b(C){return C===null||te(C)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(C)):C===96&&C===a?n(C):(e.consume(C),b)}function g(C){return e.attempt(i,E,I)(C)}function I(C){return e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),v}function v(C){return o>0&&me(C)?Ce(e,S,"linePrefix",o+1)(C):S(C)}function S(C){return C===null||te(C)?e.check(cs,g,E)(C):(e.enter("codeFlowValue"),A(C))}function A(C){return C===null||te(C)?(e.exit("codeFlowValue"),S(C)):(e.consume(C),A)}function E(C){return e.exit("codeFenced"),t(C)}function k(C,N,L){let F=0;return R;function R(H){return C.enter("lineEnding"),C.consume(H),C.exit("lineEnding"),T}function T(H){return C.enter("codeFencedFence"),me(H)?Ce(C,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):O(H)}function O(H){return H===a?(C.enter("codeFencedFenceSequence"),K(H)):L(H)}function K(H){return H===a?(F++,C.consume(H),K):F>=s?(C.exit("codeFencedFenceSequence"),me(H)?Ce(C,oe,"whitespace")(H):oe(H)):L(H)}function oe(H){return H===null||te(H)?(C.exit("codeFencedFence"),N(H)):L(H)}}}function ed(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o)}function o(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const gi={name:"codeIndented",tokenize:nd},td={partial:!0,tokenize:rd};function nd(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),Ce(e,o,"linePrefix",5)(u)}function o(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(u):n(u)}function s(u){return u===null?l(u):te(u)?e.attempt(td,s,l)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||te(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),a)}function l(u){return e.exit("codeIndented"),t(u)}}function rd(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):te(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):Ce(e,o,"linePrefix",5)(s)}function o(s){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):te(s)?i(s):n(s)}}const id={name:"codeText",previous:sd,resolve:od,tokenize:ad};function od(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||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),t-=r-i-2,r=i+2),i=void 0);return e}function sd(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ad(e,t,n){let r=0,i,o;return s;function s(d){return e.enter("codeText"),e.enter("codeTextSequence"),a(d)}function a(d){return d===96?(e.consume(d),r++,a):(e.exit("codeTextSequence"),l(d))}function l(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),l):d===96?(o=e.enter("codeTextSequence"),i=0,c(d)):te(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(d))}function u(d){return d===null||d===32||d===96||te(d)?(e.exit("codeTextData"),l(d)):(e.consume(d),u)}function c(d){return d===96?(e.consume(d),i++,c):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(o.type="codeTextData",u(d))}}class ld{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Rn(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Rn(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Rn(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Rn(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Rn(this.left,n.reverse())}}}function Rn(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function ps(e){const t={};let n=-1,r,i,o,s,a,l,u;const c=new ld(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,ud(c,n)),n=t[n],u=!0);else if(r[1]._container){for(o=n,i=void 0;o--&&(s=c.get(o),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank");)s[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=o);i&&(r[1].end={...c.get(i)[1].start},a=c.slice(i,n),a.unshift(r),c.splice(i,n-i+1,a))}}return dt(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function ud(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[],s=n._tokenizer||r.parser[n.contentType](n.start),a=s.events,l=[],u={};let c,d,f=-1,p=n,b=0,g=0;const I=[g];for(;p;){for(;e.get(++i)[1]!==p;);o.push(i),p._tokenizer||(c=r.sliceStream(p),p.next||c.push(null),d&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<a.length;)a[f][0]==="exit"&&a[f-1][0]==="enter"&&a[f][1].type===a[f-1][1].type&&a[f][1].start.line!==a[f][1].end.line&&(g=f+1,I.push(g),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):I.pop(),f=I.length;f--;){const v=a.slice(I[f],I[f+1]),S=o.pop();l.push([S,S+v.length-1]),e.splice(S,2,v)}for(l.reverse(),f=-1;++f<l.length;)u[b+l[f][0]]=b+l[f][1],b+=l[f][1]-l[f][0]-1;return u}const cd={resolve:pd,tokenize:fd},dd={partial:!0,tokenize:hd};function pd(e){return ps(e),e}function fd(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):te(a)?e.check(dd,s,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function s(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function hd(e,t,n){const r=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Ce(e,o,"linePrefix")}function o(s){if(s===null||te(s))return n(s);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?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function fs(e,t,n,r,i,o,s,a,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return d;function d(v){return v===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(v),e.exit(o),f):v===null||v===32||v===41||di(v)?n(v):(e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),g(v))}function f(v){return v===62?(e.enter(o),e.consume(v),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(v))}function p(v){return v===62?(e.exit("chunkString"),e.exit(a),f(v)):v===null||v===60||te(v)?n(v):(e.consume(v),v===92?b:p)}function b(v){return v===60||v===62||v===92?(e.consume(v),p):p(v)}function g(v){return!c&&(v===null||v===41||We(v))?(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(r),t(v)):c<u&&v===40?(e.consume(v),c++,g):v===41?(e.consume(v),c--,g):v===null||v===32||v===40||di(v)?n(v):(e.consume(v),v===92?I:g)}function I(v){return v===40||v===41||v===92?(e.consume(v),g):g(v)}}function hs(e,t,n,r,i,o){const s=this;let a=0,l;return u;function u(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(o),c}function c(p){return a>999||p===null||p===91||p===93&&!l||p===94&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?n(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):te(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||te(p)||a++>999?(e.exit("chunkString"),c(p)):(e.consume(p),l||(l=!me(p)),p===92?f:d)}function f(p){return p===91||p===92||p===93?(e.consume(p),a++,d):d(p)}}function gs(e,t,n,r,i,o){let s;return a;function a(f){return f===34||f===39||f===40?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),s=f===40?41:f,l):n(f)}function l(f){return f===s?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(e.enter(o),u(f))}function u(f){return f===s?(e.exit(o),l(s)):f===null?n(f):te(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Ce(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===s||f===null||te(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?d:c)}function d(f){return f===s||f===92?(e.consume(f),c):c(f)}}function Mn(e,t){let n;return r;function r(i){return te(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):me(i)?Ce(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const gd={name:"definition",tokenize:bd},md={partial:!0,tokenize:yd};function bd(e,t,n){const r=this;let i;return o;function o(p){return e.enter("definition"),s(p)}function s(p){return hs.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=hn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l):n(p)}function l(p){return We(p)?Mn(e,u)(p):u(p)}function u(p){return fs(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(md,d,d)(p)}function d(p){return me(p)?Ce(e,f,"whitespace")(p):f(p)}function f(p){return p===null||te(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function yd(e,t,n){return r;function r(a){return We(a)?Mn(e,i)(a):n(a)}function i(a){return gs(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return me(a)?Ce(e,s,"whitespace")(a):s(a)}function s(a){return a===null||te(a)?t(a):n(a)}}const vd={name:"hardBreakEscape",tokenize:Id};function Id(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return te(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const Cd={name:"headingAtx",resolve:xd,tokenize:Ad};function xd(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},dt(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function Ad(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&r++<6?(e.consume(c),s):c===null||We(c)?(e.exit("atxHeadingSequence"),a(c)):n(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||te(c)?(e.exit("atxHeading"),t(c)):me(c)?Ce(e,a,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||We(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}const wd=["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"],ms=["pre","script","style","textarea"],Sd={concrete:!0,name:"htmlFlow",resolveTo:Fd,tokenize:Pd},Ed={partial:!0,tokenize:Bd},kd={partial:!0,tokenize:Gd};function Fd(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Pd(e,t,n){const r=this;let i,o,s,a,l;return u;function u(m){return c(m)}function c(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),d}function d(m){return m===33?(e.consume(m),f):m===47?(e.consume(m),o=!0,g):m===63?(e.consume(m),i=3,r.interrupt?t:y):pt(m)?(e.consume(m),s=String.fromCharCode(m),I):n(m)}function f(m){return m===45?(e.consume(m),i=2,p):m===91?(e.consume(m),i=5,a=0,b):pt(m)?(e.consume(m),i=4,r.interrupt?t:y):n(m)}function p(m){return m===45?(e.consume(m),r.interrupt?t:y):n(m)}function b(m){const he="CDATA[";return m===he.charCodeAt(a++)?(e.consume(m),a===he.length?r.interrupt?t:O:b):n(m)}function g(m){return pt(m)?(e.consume(m),s=String.fromCharCode(m),I):n(m)}function I(m){if(m===null||m===47||m===62||We(m)){const he=m===47,Q=s.toLowerCase();return!he&&!o&&ms.includes(Q)?(i=1,r.interrupt?t(m):O(m)):wd.includes(s.toLowerCase())?(i=6,he?(e.consume(m),v):r.interrupt?t(m):O(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(m):o?S(m):A(m))}return m===45||_e(m)?(e.consume(m),s+=String.fromCharCode(m),I):n(m)}function v(m){return m===62?(e.consume(m),r.interrupt?t:O):n(m)}function S(m){return me(m)?(e.consume(m),S):R(m)}function A(m){return m===47?(e.consume(m),R):m===58||m===95||pt(m)?(e.consume(m),E):me(m)?(e.consume(m),A):R(m)}function E(m){return m===45||m===46||m===58||m===95||_e(m)?(e.consume(m),E):k(m)}function k(m){return m===61?(e.consume(m),C):me(m)?(e.consume(m),k):A(m)}function C(m){return m===null||m===60||m===61||m===62||m===96?n(m):m===34||m===39?(e.consume(m),l=m,N):me(m)?(e.consume(m),C):L(m)}function N(m){return m===l?(e.consume(m),l=null,F):m===null||te(m)?n(m):(e.consume(m),N)}function L(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||We(m)?k(m):(e.consume(m),L)}function F(m){return m===47||m===62||me(m)?A(m):n(m)}function R(m){return m===62?(e.consume(m),T):n(m)}function T(m){return m===null||te(m)?O(m):me(m)?(e.consume(m),T):n(m)}function O(m){return m===45&&i===2?(e.consume(m),Y):m===60&&i===1?(e.consume(m),ue):m===62&&i===4?(e.consume(m),Ae):m===63&&i===3?(e.consume(m),y):m===93&&i===5?(e.consume(m),ve):te(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Ed,ce,K)(m)):m===null||te(m)?(e.exit("htmlFlowData"),K(m)):(e.consume(m),O)}function K(m){return e.check(kd,oe,ce)(m)}function oe(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),H}function H(m){return m===null||te(m)?K(m):(e.enter("htmlFlowData"),O(m))}function Y(m){return m===45?(e.consume(m),y):O(m)}function ue(m){return m===47?(e.consume(m),s="",le):O(m)}function le(m){if(m===62){const he=s.toLowerCase();return ms.includes(he)?(e.consume(m),Ae):O(m)}return pt(m)&&s.length<8?(e.consume(m),s+=String.fromCharCode(m),le):O(m)}function ve(m){return m===93?(e.consume(m),y):O(m)}function y(m){return m===62?(e.consume(m),Ae):m===45&&i===2?(e.consume(m),y):O(m)}function Ae(m){return m===null||te(m)?(e.exit("htmlFlowData"),ce(m)):(e.consume(m),Ae)}function ce(m){return e.exit("htmlFlow"),t(m)}}function Gd(e,t,n){const r=this;return i;function i(s){return te(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):n(s)}function o(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function Bd(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(cr,t,n)}}const Td={name:"htmlText",tokenize:Od};function Od(e,t,n){const r=this;let i,o,s;return a;function a(y){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(y),l}function l(y){return y===33?(e.consume(y),u):y===47?(e.consume(y),k):y===63?(e.consume(y),A):pt(y)?(e.consume(y),L):n(y)}function u(y){return y===45?(e.consume(y),c):y===91?(e.consume(y),o=0,b):pt(y)?(e.consume(y),S):n(y)}function c(y){return y===45?(e.consume(y),p):n(y)}function d(y){return y===null?n(y):y===45?(e.consume(y),f):te(y)?(s=d,ue(y)):(e.consume(y),d)}function f(y){return y===45?(e.consume(y),p):d(y)}function p(y){return y===62?Y(y):y===45?f(y):d(y)}function b(y){const Ae="CDATA[";return y===Ae.charCodeAt(o++)?(e.consume(y),o===Ae.length?g:b):n(y)}function g(y){return y===null?n(y):y===93?(e.consume(y),I):te(y)?(s=g,ue(y)):(e.consume(y),g)}function I(y){return y===93?(e.consume(y),v):g(y)}function v(y){return y===62?Y(y):y===93?(e.consume(y),v):g(y)}function S(y){return y===null||y===62?Y(y):te(y)?(s=S,ue(y)):(e.consume(y),S)}function A(y){return y===null?n(y):y===63?(e.consume(y),E):te(y)?(s=A,ue(y)):(e.consume(y),A)}function E(y){return y===62?Y(y):A(y)}function k(y){return pt(y)?(e.consume(y),C):n(y)}function C(y){return y===45||_e(y)?(e.consume(y),C):N(y)}function N(y){return te(y)?(s=N,ue(y)):me(y)?(e.consume(y),N):Y(y)}function L(y){return y===45||_e(y)?(e.consume(y),L):y===47||y===62||We(y)?F(y):n(y)}function F(y){return y===47?(e.consume(y),Y):y===58||y===95||pt(y)?(e.consume(y),R):te(y)?(s=F,ue(y)):me(y)?(e.consume(y),F):Y(y)}function R(y){return y===45||y===46||y===58||y===95||_e(y)?(e.consume(y),R):T(y)}function T(y){return y===61?(e.consume(y),O):te(y)?(s=T,ue(y)):me(y)?(e.consume(y),T):F(y)}function O(y){return y===null||y===60||y===61||y===62||y===96?n(y):y===34||y===39?(e.consume(y),i=y,K):te(y)?(s=O,ue(y)):me(y)?(e.consume(y),O):(e.consume(y),oe)}function K(y){return y===i?(e.consume(y),i=void 0,H):y===null?n(y):te(y)?(s=K,ue(y)):(e.consume(y),K)}function oe(y){return y===null||y===34||y===39||y===60||y===61||y===96?n(y):y===47||y===62||We(y)?F(y):(e.consume(y),oe)}function H(y){return y===47||y===62||We(y)?F(y):n(y)}function Y(y){return y===62?(e.consume(y),e.exit("htmlTextData"),e.exit("htmlText"),t):n(y)}function ue(y){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),le}function le(y){return me(y)?Ce(e,ve,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(y):ve(y)}function ve(y){return e.enter("htmlTextData"),s(y)}}const mi={name:"labelEnd",resolveAll:Ld,resolveTo:Rd,tokenize:Md},Vd={tokenize:Xd},Dd={tokenize:zd},Nd={tokenize:Hd};function Ld(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&dt(e,0,e.length,n),e}function Rd(e,t){let n=e.length,r=0,i,o,s,a;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(s=n);const l={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[s][1].end}},c={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[s-2][1].start}};return a=[["enter",l,t],["enter",u,t]],a=et(a,e.slice(o+1,o+r+3)),a=et(a,[["enter",c,t]]),a=et(a,fi(t.parser.constructs.insideSpan.null,e.slice(o+r+4,s-3),t)),a=et(a,[["exit",c,t],e[s-2],e[s-1],["exit",u,t]]),a=et(a,e.slice(s+1)),a=et(a,[["exit",l,t]]),dt(e,o,e.length,a),e}function Md(e,t,n){const r=this;let i=r.events.length,o,s;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return a;function a(f){return o?o._inactive?d(f):(s=r.parser.defined.includes(hn(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),l):n(f)}function l(f){return f===40?e.attempt(Vd,c,s?c:d)(f):f===91?e.attempt(Dd,c,s?u:d)(f):s?c(f):d(f)}function u(f){return e.attempt(Nd,c,d)(f)}function c(f){return t(f)}function d(f){return o._balanced=!0,n(f)}}function Xd(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return We(d)?Mn(e,o)(d):o(d)}function o(d){return d===41?c(d):fs(e,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function s(d){return We(d)?Mn(e,l)(d):c(d)}function a(d){return n(d)}function l(d){return d===34||d===39||d===40?gs(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function u(d){return We(d)?Mn(e,c)(d):c(d)}function c(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function zd(e,t,n){const r=this;return i;function i(a){return hs.call(r,e,o,s,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(hn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function s(a){return n(a)}}function Hd(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const Wd={name:"labelStartImage",resolveAll:mi.resolveAll,tokenize:Zd};function Zd(e,t,n){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),s):n(a)}function s(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const jd={name:"labelStartLink",resolveAll:mi.resolveAll,tokenize:Jd};function Jd(e,t,n){const r=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),o}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const bi={name:"lineEnding",tokenize:Yd};function Yd(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Ce(e,t,"linePrefix")}}const dr={name:"thematicBreak",tokenize:_d};function _d(e,t,n){let r=0,i;return o;function o(u){return e.enter("thematicBreak"),s(u)}function s(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||te(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),me(u)?Ce(e,a,"whitespace")(u):a(u))}}const Ze={continuation:{tokenize:$d},exit:ep,name:"list",tokenize:Qd},Ud={partial:!0,tokenize:tp},qd={partial:!0,tokenize:Kd};function Qd(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return a;function a(p){const b=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:pi(p)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(dr,n,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(p)}return n(p)}function l(p){return pi(p)&&++s<10?(e.consume(p),l):(!r.interrupt||s<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(cr,r.interrupt?n:c,e.attempt(Ud,f,d))}function c(p){return r.containerState.initialBlankLine=!0,o++,f(p)}function d(p){return me(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):n(p)}function f(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function $d(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(cr,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ce(e,t,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!me(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(qd,t,s)(a))}function s(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ce(e,e.attempt(Ze,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function Kd(e,t,n){const r=this;return Ce(e,i,"listItemIndent",r.containerState.size+1);function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(o):n(o)}}function ep(e){e.exit(this.containerState.type)}function tp(e,t,n){const r=this;return Ce(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const s=r.events[r.events.length-1];return!me(o)&&s&&s[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const bs={name:"setextUnderline",resolveTo:np,tokenize:rp};function np(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const s={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",s,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function rp(e,t,n){const r=this;let i;return o;function o(u){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=u,s(u)):n(u)}function s(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),me(u)?Ce(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||te(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const ip={tokenize:op};function op(e){const t=this,n=e.attempt(cr,r,e.attempt(this.parser.constructs.flowInitial,i,Ce(e,e.attempt(this.parser.constructs.flow,i,e.attempt(cd,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const sp={resolveAll:vs()},ap=ys("string"),lp=ys("text");function ys(e){return{resolveAll:vs(e==="text"?up:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,s,a);return s;function s(c){return u(c)?o(c):a(c)}function a(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),o(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const d=i[c];let f=-1;if(d)for(;++f<d.length;){const p=d[f];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function vs(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function up(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,s=-1,a=0,l;for(;o--;){const u=i[o];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)a++,s--;if(s)break;s=-1}else if(u===-2)l=!0,a++;else if(u!==-1){o++;break}}if(a){const u={type:n===e.length||l||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:r.start._bufferIndex+s,_index:r.start._index+o,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(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const cp=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:gd},disable:{null:[]},document:{42:Ze,43:Ze,45:Ze,48:Ze,49:Ze,50:Ze,51:Ze,52:Ze,53:Ze,54:Ze,55:Ze,56:Ze,57:Ze,62:as},flow:{35:Cd,42:dr,45:[bs,dr],60:Sd,61:bs,95:dr,96:ds,126:ds},flowInitial:{[-2]:gi,[-1]:gi,32:gi},insideSpan:{null:[hi,sp]},string:{38:us,92:ls},text:{[-5]:bi,[-4]:bi,[-3]:bi,33:Wd,38:us,42:hi,60:[jc,Td],91:jd,92:[vd,ls],93:mi,95:hi,96:id}},Symbol.toStringTag,{value:"Module"}));function dp(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let s=[],a=[];const l={attempt:N(k),check:N(C),consume:S,enter:A,exit:E,interrupt:N(C,{interrupt:!0})},u={code:null,containerState:{},defineSkip:g,events:[],now:b,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d};let c=t.tokenize.call(u,l);return t.resolveAll&&o.push(t),u;function d(T){return s=et(s,T),I(),s[s.length-1]!==null?[]:(L(t,0),u.events=fi(o,u.events,u),u.events)}function f(T,O){return fp(p(T),O)}function p(T){return pp(s,T)}function b(){const{_bufferIndex:T,_index:O,line:K,column:oe,offset:H}=r;return{_bufferIndex:T,_index:O,line:K,column:oe,offset:H}}function g(T){i[T.line]=T.column,R()}function I(){let T;for(;r._index<s.length;){const O=s[r._index];if(typeof O=="string")for(T=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===T&&r._bufferIndex<O.length;)v(O.charCodeAt(r._bufferIndex));else v(O)}}function v(T){c=c(T)}function S(T){te(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===s[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=T}function A(T,O){const K=O||{};return K.type=T,K.start=b(),u.events.push(["enter",K,u]),a.push(K),K}function E(T){const O=a.pop();return O.end=b(),u.events.push(["exit",O,u]),O}function k(T,O){L(T,O.from)}function C(T,O){O.restore()}function N(T,O){return K;function K(oe,H,Y){let ue,le,ve,y;return Array.isArray(oe)?ce(oe):"tokenize"in oe?ce([oe]):Ae(oe);function Ae(de){return Pe;function Pe(be){const Oe=be!==null&&de[be],qe=be!==null&&de.null,rt=[...Array.isArray(Oe)?Oe:Oe?[Oe]:[],...Array.isArray(qe)?qe:qe?[qe]:[]];return ce(rt)(be)}}function ce(de){return ue=de,le=0,de.length===0?Y:m(de[le])}function m(de){return Pe;function Pe(be){return y=F(),ve=de,de.partial||(u.currentConstruct=de),de.name&&u.parser.constructs.disable.null.includes(de.name)?Q():de.tokenize.call(O?Object.assign(Object.create(u),O):u,l,he,Q)(be)}}function he(de){return T(ve,y),H}function Q(de){return y.restore(),++le<ue.length?m(ue[le]):Y}}}function L(T,O){T.resolveAll&&!o.includes(T)&&o.push(T),T.resolve&&dt(u.events,O,u.events.length-O,T.resolve(u.events.slice(O),u)),T.resolveTo&&(u.events=T.resolveTo(u.events,u))}function F(){const T=b(),O=u.previous,K=u.currentConstruct,oe=u.events.length,H=Array.from(a);return{from:oe,restore:Y};function Y(){r=T,u.previous=O,u.currentConstruct=K,u.events.length=oe,a=H,R()}}function R(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function pp(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let s;if(n===i)s=[e[n].slice(r,o)];else{if(s=e.slice(n,i),r>-1){const a=s[0];typeof a=="string"?s[0]=a.slice(r):s.shift()}o>0&&s.push(e[i].slice(0,o))}return s}function fp(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let s;if(typeof o=="string")s=o;else switch(o){case-5:{s="\r";break}case-4:{s=`
4
- `;break}case-3:{s=`\r
5
- `;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(o)}i=o===-2,r.push(s)}return r.join("")}function hp(e){const r={constructs:Gc([cp,...(e||{}).extensions||[]]),content:i(Rc),defined:[],document:i(Xc),flow:i(ip),lazy:{},string:i(ap),text:i(lp)};return r;function i(o){return s;function s(a){return dp(r,o,a)}}}function gp(e){for(;!ps(e););return e}const Is=/[\0\t\n\r]/g;function mp(){let e=1,t="",n=!0,r;return i;function i(o,s,a){const l=[];let u,c,d,f,p;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),d=0,t="",n&&(o.charCodeAt(0)===65279&&d++,n=void 0);d<o.length;){if(Is.lastIndex=d,u=Is.exec(o),f=u&&u.index!==void 0?u.index:o.length,p=o.charCodeAt(f),!u){t=o.slice(d);break}if(p===10&&d===f&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),d<f&&(l.push(o.slice(d,f)),e+=f-d),p){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}d=f+1}return a&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const bp={}.hasOwnProperty;function yp(e){return bp.call(ur,e)?ur[e]:!1}const vp=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ip(e){return e.replace(vp,Cp)}function Cp(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return rs(n.slice(o?2:1),o?16:10)}return yp(n)||e}const Cs={}.hasOwnProperty;function xp(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Ap(n)(gp(hp(n).document().write(mp()(e,t,!0))))}function Ap(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(J),autolinkProtocol:F,autolinkEmail:F,atxHeading:o(Xt),blockQuote:o(qe),characterEscape:F,characterReference:F,codeFenced:o(rt),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(rt,s),codeText:o(Qe,s),codeTextData:F,data:F,codeFlowValue:F,definition:o(Mt),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(It),hardBreakEscape:o(zt),hardBreakTrailing:o(zt),htmlFlow:o(On,s),htmlFlowData:F,htmlText:o(On,s),htmlTextData:F,image:o(X),label:s,link:o(J),listItem:o(ge),listItemValue:f,listOrdered:o(ee,d),listUnordered:o(ee),paragraph:o(Ge),reference:m,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(Xt),strong:o(He),thematicBreak:o(rr)},exit:{atxHeading:l(),atxHeadingSequence:k,autolink:l(),autolinkEmail:Oe,autolinkProtocol:be,blockQuote:l(),characterEscapeValue:R,characterReferenceMarkerHexadecimal:Q,characterReferenceMarkerNumeric:Q,characterReferenceValue:de,characterReference:Pe,codeFenced:l(I),codeFencedFence:g,codeFencedFenceInfo:p,codeFencedFenceMeta:b,codeFlowValue:R,codeIndented:l(v),codeText:l(H),codeTextData:R,data:R,definition:l(),definitionDestinationString:E,definitionLabelString:S,definitionTitleString:A,emphasis:l(),hardBreakEscape:l(O),hardBreakTrailing:l(O),htmlFlow:l(K),htmlFlowData:R,htmlText:l(oe),htmlTextData:R,image:l(ue),label:ve,labelText:le,lineEnding:T,link:l(Y),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:he,resourceDestinationString:y,resourceTitleString:Ae,resource:ce,setextHeading:l(L),setextHeadingLineSequence:N,setextHeadingText:C,strong:l(),thematicBreak:l()}};xs(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(P){let V={type:"root",children:[]};const W={stack:[V],tokenStack:[],config:t,enter:a,exit:u,buffer:s,resume:c,data:n},U=[];let se=-1;for(;++se<P.length;)if(P[se][1].type==="listOrdered"||P[se][1].type==="listUnordered")if(P[se][0]==="enter")U.push(se);else{const Je=U.pop();se=i(P,Je,se)}for(se=-1;++se<P.length;){const Je=t[P[se][0]];Cs.call(Je,P[se][1].type)&&Je[P[se][1].type].call(Object.assign({sliceSerialize:P[se][2].sliceSerialize},W),P[se][1])}if(W.tokenStack.length>0){const Je=W.tokenStack[W.tokenStack.length-1];(Je[1]||As).call(W,void 0,Je[0])}for(V.position={start:Bt(P.length>0?P[0][1].start:{line:1,column:1,offset:0}),end:Bt(P.length>0?P[P.length-2][1].end:{line:1,column:1,offset:0})},se=-1;++se<t.transforms.length;)V=t.transforms[se](V)||V;return V}function i(P,V,W){let U=V-1,se=-1,Je=!1,Ct,lt,Ht,xt;for(;++U<=W;){const Re=P[U];switch(Re[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Re[0]==="enter"?se++:se--,xt=void 0;break}case"lineEndingBlank":{Re[0]==="enter"&&(Ct&&!xt&&!se&&!Ht&&(Ht=U),xt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:xt=void 0}if(!se&&Re[0]==="enter"&&Re[1].type==="listItemPrefix"||se===-1&&Re[0]==="exit"&&(Re[1].type==="listUnordered"||Re[1].type==="listOrdered")){if(Ct){let Et=U;for(lt=void 0;Et--;){const ut=P[Et];if(ut[1].type==="lineEnding"||ut[1].type==="lineEndingBlank"){if(ut[0]==="exit")continue;lt&&(P[lt][1].type="lineEndingBlank",Je=!0),ut[1].type="lineEnding",lt=Et}else if(!(ut[1].type==="linePrefix"||ut[1].type==="blockQuotePrefix"||ut[1].type==="blockQuotePrefixWhitespace"||ut[1].type==="blockQuoteMarker"||ut[1].type==="listItemIndent"))break}Ht&&(!lt||Ht<lt)&&(Ct._spread=!0),Ct.end=Object.assign({},lt?P[lt][1].start:Re[1].end),P.splice(lt||U,0,["exit",Ct,Re[2]]),U++,W++}if(Re[1].type==="listItemPrefix"){const Et={type:"listItem",_spread:!1,start:Object.assign({},Re[1].start),end:void 0};Ct=Et,P.splice(U,0,["enter",Et,Re[2]]),U++,W++,Ht=void 0,xt=!0}}}return P[V][1]._spread=Je,W}function o(P,V){return W;function W(U){a.call(this,P(U),U),V&&V.call(this,U)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(P,V,W){this.stack[this.stack.length-1].children.push(P),this.stack.push(P),this.tokenStack.push([V,W||void 0]),P.position={start:Bt(V.start),end:void 0}}function l(P){return V;function V(W){P&&P.call(this,W),u.call(this,W)}}function u(P,V){const W=this.stack.pop(),U=this.tokenStack.pop();if(U)U[0].type!==P.type&&(V?V.call(this,P,U[0]):(U[1]||As).call(this,P,U[0]));else throw new Error("Cannot close `"+P.type+"` ("+Nn({start:P.start,end:P.end})+"): it’s not open");W.position.end=Bt(P.end)}function c(){return kc(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(P){if(this.data.expectingFirstListItemValue){const V=this.stack[this.stack.length-2];V.start=Number.parseInt(this.sliceSerialize(P),10),this.data.expectingFirstListItemValue=void 0}}function p(){const P=this.resume(),V=this.stack[this.stack.length-1];V.lang=P}function b(){const P=this.resume(),V=this.stack[this.stack.length-1];V.meta=P}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function I(){const P=this.resume(),V=this.stack[this.stack.length-1];V.value=P.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function v(){const P=this.resume(),V=this.stack[this.stack.length-1];V.value=P.replace(/(\r?\n|\r)$/g,"")}function S(P){const V=this.resume(),W=this.stack[this.stack.length-1];W.label=V,W.identifier=hn(this.sliceSerialize(P)).toLowerCase()}function A(){const P=this.resume(),V=this.stack[this.stack.length-1];V.title=P}function E(){const P=this.resume(),V=this.stack[this.stack.length-1];V.url=P}function k(P){const V=this.stack[this.stack.length-1];if(!V.depth){const W=this.sliceSerialize(P).length;V.depth=W}}function C(){this.data.setextHeadingSlurpLineEnding=!0}function N(P){const V=this.stack[this.stack.length-1];V.depth=this.sliceSerialize(P).codePointAt(0)===61?1:2}function L(){this.data.setextHeadingSlurpLineEnding=void 0}function F(P){const W=this.stack[this.stack.length-1].children;let U=W[W.length-1];(!U||U.type!=="text")&&(U=nr(),U.position={start:Bt(P.start),end:void 0},W.push(U)),this.stack.push(U)}function R(P){const V=this.stack.pop();V.value+=this.sliceSerialize(P),V.position.end=Bt(P.end)}function T(P){const V=this.stack[this.stack.length-1];if(this.data.atHardBreak){const W=V.children[V.children.length-1];W.position.end=Bt(P.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(V.type)&&(F.call(this,P),R.call(this,P))}function O(){this.data.atHardBreak=!0}function K(){const P=this.resume(),V=this.stack[this.stack.length-1];V.value=P}function oe(){const P=this.resume(),V=this.stack[this.stack.length-1];V.value=P}function H(){const P=this.resume(),V=this.stack[this.stack.length-1];V.value=P}function Y(){const P=this.stack[this.stack.length-1];if(this.data.inReference){const V=this.data.referenceType||"shortcut";P.type+="Reference",P.referenceType=V,delete P.url,delete P.title}else delete P.identifier,delete P.label;this.data.referenceType=void 0}function ue(){const P=this.stack[this.stack.length-1];if(this.data.inReference){const V=this.data.referenceType||"shortcut";P.type+="Reference",P.referenceType=V,delete P.url,delete P.title}else delete P.identifier,delete P.label;this.data.referenceType=void 0}function le(P){const V=this.sliceSerialize(P),W=this.stack[this.stack.length-2];W.label=Ip(V),W.identifier=hn(V).toLowerCase()}function ve(){const P=this.stack[this.stack.length-1],V=this.resume(),W=this.stack[this.stack.length-1];if(this.data.inReference=!0,W.type==="link"){const U=P.children;W.children=U}else W.alt=V}function y(){const P=this.resume(),V=this.stack[this.stack.length-1];V.url=P}function Ae(){const P=this.resume(),V=this.stack[this.stack.length-1];V.title=P}function ce(){this.data.inReference=void 0}function m(){this.data.referenceType="collapsed"}function he(P){const V=this.resume(),W=this.stack[this.stack.length-1];W.label=V,W.identifier=hn(this.sliceSerialize(P)).toLowerCase(),this.data.referenceType="full"}function Q(P){this.data.characterReferenceType=P.type}function de(P){const V=this.sliceSerialize(P),W=this.data.characterReferenceType;let U;W?(U=rs(V,W==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):U=ts(V);const se=this.stack[this.stack.length-1];se.value+=U}function Pe(P){const V=this.stack.pop();V.position.end=Bt(P.end)}function be(P){R.call(this,P);const V=this.stack[this.stack.length-1];V.url=this.sliceSerialize(P)}function Oe(P){R.call(this,P);const V=this.stack[this.stack.length-1];V.url="mailto:"+this.sliceSerialize(P)}function qe(){return{type:"blockquote",children:[]}}function rt(){return{type:"code",lang:null,meta:null,value:""}}function Qe(){return{type:"inlineCode",value:""}}function Mt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function It(){return{type:"emphasis",children:[]}}function Xt(){return{type:"heading",depth:0,children:[]}}function zt(){return{type:"break"}}function On(){return{type:"html",value:""}}function X(){return{type:"image",title:null,url:"",alt:null}}function J(){return{type:"link",title:null,url:"",children:[]}}function ee(P){return{type:"list",ordered:P.type==="listOrdered",start:null,spread:P._spread,children:[]}}function ge(P){return{type:"listItem",spread:P._spread,checked:null,children:[]}}function Ge(){return{type:"paragraph",children:[]}}function He(){return{type:"strong",children:[]}}function nr(){return{type:"text",value:""}}function rr(){return{type:"thematicBreak"}}}function Bt(e){return{line:e.line,column:e.column,offset:e.offset}}function xs(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?xs(e,r):wp(e,r)}}function wp(e,t){let n;for(n in t)if(Cs.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function As(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Nn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Nn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Nn({start:t.start,end:t.end})+") is still open")}function Sp(e){const t=this;t.parser=n;function n(r){return xp(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Ep(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function kp(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
6
- `}]}function Fp(e,t){const n=t.value?t.value+`
7
- `:"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function Pp(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Gp(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Bp(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=gn(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let s,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=o+1,a+=1,e.footnoteCounts.set(r,a);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function Tp(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Op(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function ws(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function Vp(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ws(e,t);const i={src:gn(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function Dp(e,t){const n={src:gn(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Np(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Lp(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ws(e,t);const i={href:gn(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function Rp(e,t){const n={href:gn(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Mp(e,t,n){const r=e.all(t),i=n?Xp(n):Ss(t),o={},s=[];if(typeof t.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const c=r[a];(i||a!==0||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
8
- `}),c.type==="element"&&c.tagName==="p"&&!i?s.push(...c.children):s.push(c)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
9
- `});const u={type:"element",tagName:"li",properties:o,children:s};return e.patch(t,u),e.applyData(t,u)}function Xp(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Ss(n[r])}return t}function Ss(e){const t=e.spread;return t??e.children.length>1}function zp(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const s=r[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function Hp(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Wp(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Zp(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function jp(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),i.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=oi(t.children[1]),l=jo(t.children[t.children.length-1]);a&&l&&(s.position={start:a,end:l}),i.push(s)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function Jp(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,a=s?s.length:t.children.length;let l=-1;const u=[];for(;++l<a;){const d=t.children[l],f={},p=s?s[l]:void 0;p&&(f.align=p);let b={type:"element",tagName:o,properties:f,children:[]};d&&(b.children=e.all(d),e.patch(d,b),b=e.applyData(d,b)),u.push(b)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function Yp(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Es=9,ks=32;function _p(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(Fs(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(Fs(t.slice(i),i>0,!1)),o.join("")}function Fs(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===Es||o===ks;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===Es||o===ks;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Up(e,t){const n={type:"text",value:_p(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function qp(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Qp={blockquote:Ep,break:kp,code:Fp,delete:Pp,emphasis:Gp,footnoteReference:Bp,heading:Tp,html:Op,imageReference:Vp,image:Dp,inlineCode:Np,linkReference:Lp,link:Rp,listItem:Mp,list:zp,paragraph:Hp,root:Wp,strong:Zp,table:jp,tableCell:Yp,tableRow:Jp,text:Up,thematicBreak:qp,toml:pr,yaml:pr,definition:pr,footnoteDefinition:pr};function pr(){}const Ps=-1,fr=0,hr=1,gr=2,yi=3,vi=4,Ii=5,Ci=6,Gs=7,Bs=8,Ts=typeof self=="object"?self:globalThis,$p=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,s]=t[i];switch(o){case fr:case Ps:return n(s,i);case hr:{const a=n([],i);for(const l of s)a.push(r(l));return a}case gr:{const a=n({},i);for(const[l,u]of s)a[r(l)]=r(u);return a}case yi:return n(new Date(s),i);case vi:{const{source:a,flags:l}=s;return n(new RegExp(a,l),i)}case Ii:{const a=n(new Map,i);for(const[l,u]of s)a.set(r(l),r(u));return a}case Ci:{const a=n(new Set,i);for(const l of s)a.add(r(l));return a}case Gs:{const{name:a,message:l}=s;return n(new Ts[a](l),i)}case Bs:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i)}return n(new Ts[o](s),i)};return r},Os=e=>$p(new Map,e)(0),mn="",{toString:Kp}={},{keys:ef}=Object,Xn=e=>{const t=typeof e;if(t!=="object"||!e)return[fr,t];const n=Kp.call(e).slice(8,-1);switch(n){case"Array":return[hr,mn];case"Object":return[gr,mn];case"Date":return[yi,mn];case"RegExp":return[vi,mn];case"Map":return[Ii,mn];case"Set":return[Ci,mn]}return n.includes("Array")?[hr,n]:n.includes("Error")?[Gs,n]:[gr,n]},mr=([e,t])=>e===fr&&(t==="function"||t==="symbol"),tf=(e,t,n,r)=>{const i=(s,a)=>{const l=r.push(s)-1;return n.set(a,l),l},o=s=>{if(n.has(s))return n.get(s);let[a,l]=Xn(s);switch(a){case fr:{let c=s;switch(l){case"bigint":a=Bs,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([Ps],s)}return i([a,c],s)}case hr:{if(l)return i([l,[...s]],s);const c=[],d=i([a,c],s);for(const f of s)c.push(o(f));return d}case gr:{if(l)switch(l){case"BigInt":return i([l,s.toString()],s);case"Boolean":case"Number":case"String":return i([l,s.valueOf()],s)}if(t&&"toJSON"in s)return o(s.toJSON());const c=[],d=i([a,c],s);for(const f of ef(s))(e||!mr(Xn(s[f])))&&c.push([o(f),o(s[f])]);return d}case yi:return i([a,s.toISOString()],s);case vi:{const{source:c,flags:d}=s;return i([a,{source:c,flags:d}],s)}case Ii:{const c=[],d=i([a,c],s);for(const[f,p]of s)(e||!(mr(Xn(f))||mr(Xn(p))))&&c.push([o(f),o(p)]);return d}case Ci:{const c=[],d=i([a,c],s);for(const f of s)(e||!mr(Xn(f)))&&c.push(o(f));return d}}const{message:u}=s;return i([a,{name:l,message:u}],s)};return o},Vs=(e,{json:t,lossy:n}={})=>{const r=[];return tf(!(t||n),!!t,new Map,r)(e),r},br=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Os(Vs(e,t)):structuredClone(e):(e,t)=>Os(Vs(e,t));function nf(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function rf(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function of(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||nf,r=e.options.footnoteBackLabel||rf,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const c=e.all(u),d=String(u.identifier).toUpperCase(),f=gn(d.toLowerCase());let p=0;const b=[],g=e.footnoteCounts.get(d);for(;g!==void 0&&++p<=g;){b.length>0&&b.push({type:"text",value:" "});let S=typeof n=="string"?n:n(l,p);typeof S=="string"&&(S={type:"text",value:S}),b.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,p),className:["data-footnote-backref"]},children:Array.isArray(S)?S:[S]})}const I=c[c.length-1];if(I&&I.type==="element"&&I.tagName==="p"){const S=I.children[I.children.length-1];S&&S.type==="text"?S.value+=" ":I.children.push({type:"text",value:" "}),I.children.push(...b)}else c.push(...b);const v={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(c,!0)};e.patch(u,v),a.push(v)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...br(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
10
- `},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
11
- `}]}}const Ds=function(e){if(e==null)return uf;if(typeof e=="function")return yr(e);if(typeof e=="object")return Array.isArray(e)?sf(e):af(e);if(typeof e=="string")return lf(e);throw new Error("Expected function, string, or object as test")};function sf(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Ds(e[n]);return yr(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function af(e){const t=e;return yr(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function lf(e){return yr(t);function t(n){return n&&n.type===e}}function yr(e){return t;function t(n,r,i){return!!(cf(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function uf(){return!0}function cf(e){return e!==null&&typeof e=="object"&&"type"in e}function ev(e){return e}const Ns=[],df=!0,Ls=!1,pf="skip";function ff(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=Ds(i),s=r?-1:1;a(e,void 0,[])();function a(l,u,c){const d=l&&typeof l=="object"?l:{};if(typeof d.type=="string"){const p=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(l.type+(p?"<"+p+">":""))+")"})}return f;function f(){let p=Ns,b,g,I;if((!t||o(l,u,c[c.length-1]||void 0))&&(p=hf(n(l,c)),p[0]===Ls))return p;if("children"in l&&l.children){const v=l;if(v.children&&p[0]!==pf)for(g=(r?v.children.length:-1)+s,I=c.concat(v);g>-1&&g<v.children.length;){const S=v.children[g];if(b=a(S,g,I)(),b[0]===Ls)return b;g=typeof b[1]=="number"?b[1]:g+s}}return p}}}function hf(e){return Array.isArray(e)?e:typeof e=="number"?[df,e]:e==null?Ns:[e]}function Rs(e,t,n,r){let i,o,s;typeof t=="function"&&typeof n!="function"?(o=void 0,s=t,i=n):(o=t,s=n,i=r),ff(e,o,a,i);function a(l,u){const c=u[u.length-1],d=c?c.children.indexOf(l):void 0;return s(l,d,c)}}const xi={}.hasOwnProperty,gf={};function mf(e,t){const n=t||gf,r=new Map,i=new Map,o=new Map,s={...Qp,...n.handlers},a={all:u,applyData:yf,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:s,one:l,options:n,patch:bf,wrap:If};return Rs(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const d=c.type==="definition"?r:i,f=String(c.identifier).toUpperCase();d.has(f)||d.set(f,c)}}),a;function l(c,d){const f=c.type,p=a.handlers[f];if(xi.call(a.handlers,f)&&p)return p(a,c,d);if(a.options.passThrough&&a.options.passThrough.includes(f)){if("children"in c){const{children:g,...I}=c,v=br(I);return v.children=a.all(c),v}return br(c)}return(a.options.unknownHandler||vf)(a,c,d)}function u(c){const d=[];if("children"in c){const f=c.children;let p=-1;for(;++p<f.length;){const b=a.one(f[p],c);if(b){if(p&&f[p-1].type==="break"&&(!Array.isArray(b)&&b.type==="text"&&(b.value=Ms(b.value)),!Array.isArray(b)&&b.type==="element")){const g=b.children[0];g&&g.type==="text"&&(g.value=Ms(g.value))}Array.isArray(b)?d.push(...b):d.push(b)}}}return d}}function bf(e,t){e.position&&(t.position=rc(e))}function yf(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&o&&Object.assign(n.properties,br(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function vf(e,t){const n=t.data||{},r="value"in t&&!(xi.call(n,"hProperties")||xi.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function If(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
12
- `});++r<e.length;)r&&n.push({type:"text",value:`
13
- `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
14
- `}),n}function Ms(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Xs(e,t){const n=mf(e,t),r=n.one(e,void 0),i=of(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
15
- `},i),o}function Cf(e,t){return e&&"run"in e?async function(n,r){const i=Xs(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Xs(n,{file:r,...e||t})}}function zs(e){if(e)throw e}var vr=Object.prototype.hasOwnProperty,Hs=Object.prototype.toString,Ws=Object.defineProperty,Zs=Object.getOwnPropertyDescriptor,js=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Hs.call(t)==="[object Array]"},Js=function(t){if(!t||Hs.call(t)!=="[object Object]")return!1;var n=vr.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&vr.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||vr.call(t,i)},Ys=function(t,n){Ws&&n.name==="__proto__"?Ws(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},_s=function(t,n){if(n==="__proto__")if(vr.call(t,n)){if(Zs)return Zs(t,n).value}else return;return t[n]},xf=function e(){var t,n,r,i,o,s,a=arguments[0],l=1,u=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},l=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});l<u;++l)if(t=arguments[l],t!=null)for(n in t)r=_s(a,n),i=_s(t,n),a!==i&&(c&&i&&(Js(i)||(o=js(i)))?(o?(o=!1,s=r&&js(r)?r:[]):s=r&&Js(r)?r:{},Ys(a,{name:n,newValue:e(c,s,i)})):typeof i<"u"&&Ys(a,{name:n,newValue:i}));return a};const Ai=Ro(xf);function wi(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Af(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);a(null,...i);function a(l,...u){const c=e[++o];let d=-1;if(l){s(l);return}for(;++d<i.length;)(u[d]===null||u[d]===void 0)&&(u[d]=i[d]);i=u,c?wf(c,a)(...u):s(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function wf(e,t){let n;return r;function r(...s){const a=e.length>s.length;let l;a&&s.push(i);try{l=e.apply(this,s)}catch(u){const c=u;if(a&&n)throw c;return i(c)}a||(l&&l.then&&typeof l.then=="function"?l.then(o,i):l instanceof Error?i(l):o(l))}function i(s,...a){n||(n=!0,t(s,...a))}function o(s){i(null,s)}}const ft={basename:Sf,dirname:Ef,extname:kf,join:Ff,sep:"/"};function Sf(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');zn(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else s<0&&(o=!0,s=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(r=i):(a=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function Ef(e){if(zn(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function kf(e){zn(e);let t=e.length,n=-1,r=0,i=-1,o=0,s;for(;t--;){const a=e.codePointAt(t);if(a===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),a===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Ff(...e){let t=-1,n;for(;++t<e.length;)zn(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Pf(n)}function Pf(e){zn(e);const t=e.codePointAt(0)===47;let n=Gf(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Gf(e,t){let n="",r=0,i=-1,o=0,s=-1,a,l;for(;++s<=e.length;){if(s<e.length)a=e.codePointAt(s);else{if(a===47)break;a=47}if(a===47){if(!(i===s-1||o===1))if(i!==s-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=s,o=0;continue}}else if(n.length>0){n="",r=0,i=s,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,o=0}else a===46&&o>-1?o++:o=-1}return n}function zn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Bf={cwd:Tf};function Tf(){return"/"}function Si(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Of(e){if(typeof e=="string")e=new URL(e);else if(!Si(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Vf(e)}function Vf(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 t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+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(t)}const Ei=["history","path","basename","stem","extname","dirname"];class Us{constructor(t){let n;t?Si(t)?n={path:t}:typeof t=="string"||Df(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Bf.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Ei.length;){const o=Ei[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)Ei.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?ft.basename(this.path):void 0}set basename(t){Fi(t,"basename"),ki(t,"basename"),this.path=ft.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ft.dirname(this.path):void 0}set dirname(t){qs(this.basename,"dirname"),this.path=ft.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ft.extname(this.path):void 0}set extname(t){if(ki(t,"extname"),qs(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ft.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Si(t)&&(t=Of(t)),Fi(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ft.basename(this.path,this.extname):void 0}set stem(t){Fi(t,"stem"),ki(t,"stem"),this.path=ft.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new De(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function ki(e,t){if(e&&e.includes(ft.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ft.sep+"`")}function Fi(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function qs(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Df(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Nf=function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o},Lf={}.hasOwnProperty;class Pi extends Nf{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=Af()}copy(){const t=new Pi;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Ai(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Ti("data",this.frozen),this.namespace[t]=n,this):Lf.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Ti("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Ir(t),r=this.parser||this.Parser;return Gi("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Gi("process",this.parser||this.Parser),Bi("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,s){const a=Ir(t),l=r.parse(a);r.run(l,a,function(c,d,f){if(c||!d||!f)return u(c);const p=d,b=r.stringify(p,f);Xf(b)?f.value=b:f.result=b,u(c,f)});function u(c,d){c||!d?s(c):o?o(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),Gi("processSync",this.parser||this.Parser),Bi("processSync",this.compiler||this.Compiler),this.process(t,i),$s("processSync","process",n),r;function i(o,s){n=!0,zs(o),r=s}}run(t,n,r){Qs(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(s,a){const l=Ir(n);i.run(t,l,u);function u(c,d,f){const p=d||t;c?a(c):s?s(p):r(void 0,p,f)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),$s("runSync","run",r),i;function o(s,a){zs(s),i=a,r=!0}}stringify(t,n){this.freeze();const r=Ir(n),i=this.compiler||this.Compiler;return Bi("stringify",i),Qs(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Ti("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...d]=u;l(c,d)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(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=Ai(!0,i.settings,u.settings))}function a(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const d=u[c];o(d)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let d=-1,f=-1;for(;++d<r.length;)if(r[d][0]===u){f=d;break}if(f===-1)r.push([u,...c]);else if(c.length>0){let[p,...b]=c;const g=r[f][1];wi(g)&&wi(p)&&(p=Ai(!0,g,p)),r[f]=[u,p,...b]}}}}const Rf=new Pi().freeze();function Gi(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Bi(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ti(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Qs(e){if(!wi(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function $s(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ir(e){return Mf(e)?e:new Us(e)}function Mf(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Xf(e){return typeof e=="string"||zf(e)}function zf(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Hf="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ks=[],ea={allowDangerousHtml:!0},Wf=/^(https?|ircs?|mailto|xmpp)$/i,Zf=[{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 ta(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,o=e.components,s=e.disallowedElements,a=e.rehypePlugins||Ks,l=e.remarkPlugins||Ks,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...ea}:ea,c=e.skipHtml,d=e.unwrapDisallowed,f=e.urlTransform||jf,p=Rf().use(Sp).use(l).use(Cf,u).use(a),b=new Us;typeof r=="string"&&(b.value=r);for(const S of Zf)Object.hasOwn(e,S.from)&&(""+S.from+(S.to?"use `"+S.to+"` instead":"remove it")+Hf+S.id,void 0);const g=p.parse(b);let I=p.runSync(g,b);return i&&(I={type:"element",tagName:"div",properties:{className:i},children:I.type==="root"?I.children:[I]}),Rs(I,v),uc(I,{Fragment:B.Fragment,components:o,ignoreInvalidStyle:!0,jsx:B.jsx,jsxs:B.jsxs,passKeys:!0,passNode:!0});function v(S,A,E){if(S.type==="raw"&&E&&typeof A=="number")return c?E.children.splice(A,1):E.children[A]={type:"text",value:S.value},A;if(S.type==="element"){let k;for(k in ci)if(Object.hasOwn(ci,k)&&Object.hasOwn(S.properties,k)){const C=S.properties[k],N=ci[k];(N===null||N.includes(S.tagName))&&(S.properties[k]=f(String(C||""),k,S))}}if(S.type==="element"){let k=t?!t.includes(S.tagName):s?s.includes(S.tagName):!1;if(!k&&n&&typeof A=="number"&&(k=!n(S,A,E)),k&&E&&typeof A=="number")return d&&S.children?E.children.splice(A,1,...S.children):E.children.splice(A,1),A}}}function jf(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||n>-1&&t>n||r>-1&&t>r||Wf.test(e.slice(0,t))?e:""}function Cr({prop:e}){const t={width:"100%",background:"#e2e3e5",borderRadius:"5px",paddingTop:"2px",paddingLeft:"10px",paddingRight:"10px",paddingBottom:"2px"},n={...t,background:"#fff3cd"},r={...t,background:"#d1ecf1"},i={...t,background:"#f8d7da"},o={...t,background:"#fffff2"};let s={};switch(e.alertType){case"info":s=r;break;case"neutral":s=o;break;case"warning":s=n;break;case"error":s=i;break;default:s=t}return B.jsx("div",{className:`pd-alert-${e.alertType}`,style:s,children:B.jsx(ta,{components:{a:({...a})=>B.jsx("a",{...a,target:"_blank",rel:"noopener noreferrer"})},children:e.content})})}var xr={exports:{}};xr.exports,function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,o=2,s=9007199254740991,a="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Function]",b="[object GeneratorFunction]",g="[object Map]",I="[object Number]",v="[object Null]",S="[object Object]",A="[object Promise]",E="[object Proxy]",k="[object RegExp]",C="[object Set]",N="[object String]",L="[object Symbol]",F="[object Undefined]",R="[object WeakMap]",T="[object ArrayBuffer]",O="[object DataView]",K="[object Float32Array]",oe="[object Float64Array]",H="[object Int8Array]",Y="[object Int16Array]",ue="[object Int32Array]",le="[object Uint8Array]",ve="[object Uint8ClampedArray]",y="[object Uint16Array]",Ae="[object Uint32Array]",ce=/[\\^$.*+?()[\]{}|]/g,m=/^\[object .+?Constructor\]$/,he=/^(?:0|[1-9]\d*)$/,Q={};Q[K]=Q[oe]=Q[H]=Q[Y]=Q[ue]=Q[le]=Q[ve]=Q[y]=Q[Ae]=!0,Q[a]=Q[l]=Q[T]=Q[c]=Q[O]=Q[d]=Q[f]=Q[p]=Q[g]=Q[I]=Q[S]=Q[k]=Q[C]=Q[N]=Q[R]=!1;var de=typeof fn=="object"&&fn&&fn.Object===Object&&fn,Pe=typeof self=="object"&&self&&self.Object===Object&&self,be=de||Pe||Function("return this")(),Oe=t&&!t.nodeType&&t,qe=Oe&&!0&&e&&!e.nodeType&&e,rt=qe&&qe.exports===Oe,Qe=rt&&de.process,Mt=function(){try{return Qe&&Qe.binding&&Qe.binding("util")}catch{}}(),It=Mt&&Mt.isTypedArray;function Xt(h,w){for(var D=-1,Z=h==null?0:h.length,xe=0,ae=[];++D<Z;){var ke=h[D];w(ke,D,h)&&(ae[xe++]=ke)}return ae}function zt(h,w){for(var D=-1,Z=w.length,xe=h.length;++D<Z;)h[xe+D]=w[D];return h}function On(h,w){for(var D=-1,Z=h==null?0:h.length;++D<Z;)if(w(h[D],D,h))return!0;return!1}function X(h,w){for(var D=-1,Z=Array(h);++D<h;)Z[D]=w(D);return Z}function J(h){return function(w){return h(w)}}function ee(h,w){return h.has(w)}function ge(h,w){return h==null?void 0:h[w]}function Ge(h){var w=-1,D=Array(h.size);return h.forEach(function(Z,xe){D[++w]=[xe,Z]}),D}function He(h,w){return function(D){return h(w(D))}}function nr(h){var w=-1,D=Array(h.size);return h.forEach(function(Z){D[++w]=Z}),D}var rr=Array.prototype,P=Function.prototype,V=Object.prototype,W=be["__core-js_shared__"],U=P.toString,se=V.hasOwnProperty,Je=function(){var h=/[^.]+$/.exec(W&&W.keys&&W.keys.IE_PROTO||"");return h?"Symbol(src)_1."+h:""}(),Ct=V.toString,lt=RegExp("^"+U.call(se).replace(ce,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ht=rt?be.Buffer:void 0,xt=be.Symbol,Re=be.Uint8Array,Et=V.propertyIsEnumerable,ut=rr.splice,sn=xt?xt.toStringTag:void 0,uu=Object.getOwnPropertySymbols,Yb=Ht?Ht.isBuffer:void 0,_b=He(Object.keys,Object),po=Vn(be,"DataView"),ir=Vn(be,"Map"),fo=Vn(be,"Promise"),ho=Vn(be,"Set"),go=Vn(be,"WeakMap"),or=Vn(Object,"create"),Ub=un(po),qb=un(ir),Qb=un(fo),$b=un(ho),Kb=un(go),cu=xt?xt.prototype:void 0,mo=cu?cu.valueOf:void 0;function an(h){var w=-1,D=h==null?0:h.length;for(this.clear();++w<D;){var Z=h[w];this.set(Z[0],Z[1])}}function ey(){this.__data__=or?or(null):{},this.size=0}function ty(h){var w=this.has(h)&&delete this.__data__[h];return this.size-=w?1:0,w}function ny(h){var w=this.__data__;if(or){var D=w[h];return D===r?void 0:D}return se.call(w,h)?w[h]:void 0}function ry(h){var w=this.__data__;return or?w[h]!==void 0:se.call(w,h)}function iy(h,w){var D=this.__data__;return this.size+=this.has(h)?0:1,D[h]=or&&w===void 0?r:w,this}an.prototype.clear=ey,an.prototype.delete=ty,an.prototype.get=ny,an.prototype.has=ry,an.prototype.set=iy;function kt(h){var w=-1,D=h==null?0:h.length;for(this.clear();++w<D;){var Z=h[w];this.set(Z[0],Z[1])}}function oy(){this.__data__=[],this.size=0}function sy(h){var w=this.__data__,D=Yr(w,h);if(D<0)return!1;var Z=w.length-1;return D==Z?w.pop():ut.call(w,D,1),--this.size,!0}function ay(h){var w=this.__data__,D=Yr(w,h);return D<0?void 0:w[D][1]}function ly(h){return Yr(this.__data__,h)>-1}function uy(h,w){var D=this.__data__,Z=Yr(D,h);return Z<0?(++this.size,D.push([h,w])):D[Z][1]=w,this}kt.prototype.clear=oy,kt.prototype.delete=sy,kt.prototype.get=ay,kt.prototype.has=ly,kt.prototype.set=uy;function ln(h){var w=-1,D=h==null?0:h.length;for(this.clear();++w<D;){var Z=h[w];this.set(Z[0],Z[1])}}function cy(){this.size=0,this.__data__={hash:new an,map:new(ir||kt),string:new an}}function dy(h){var w=_r(this,h).delete(h);return this.size-=w?1:0,w}function py(h){return _r(this,h).get(h)}function fy(h){return _r(this,h).has(h)}function hy(h,w){var D=_r(this,h),Z=D.size;return D.set(h,w),this.size+=D.size==Z?0:1,this}ln.prototype.clear=cy,ln.prototype.delete=dy,ln.prototype.get=py,ln.prototype.has=fy,ln.prototype.set=hy;function Jr(h){var w=-1,D=h==null?0:h.length;for(this.__data__=new ln;++w<D;)this.add(h[w])}function gy(h){return this.__data__.set(h,r),this}function my(h){return this.__data__.has(h)}Jr.prototype.add=Jr.prototype.push=gy,Jr.prototype.has=my;function Wt(h){var w=this.__data__=new kt(h);this.size=w.size}function by(){this.__data__=new kt,this.size=0}function yy(h){var w=this.__data__,D=w.delete(h);return this.size=w.size,D}function vy(h){return this.__data__.get(h)}function Iy(h){return this.__data__.has(h)}function Cy(h,w){var D=this.__data__;if(D instanceof kt){var Z=D.__data__;if(!ir||Z.length<n-1)return Z.push([h,w]),this.size=++D.size,this;D=this.__data__=new ln(Z)}return D.set(h,w),this.size=D.size,this}Wt.prototype.clear=by,Wt.prototype.delete=yy,Wt.prototype.get=vy,Wt.prototype.has=Iy,Wt.prototype.set=Cy;function xy(h,w){var D=Ur(h),Z=!D&&Ly(h),xe=!D&&!Z&&bo(h),ae=!D&&!Z&&!xe&&vu(h),ke=D||Z||xe||ae,Be=ke?X(h.length,String):[],Ve=Be.length;for(var we in h)se.call(h,we)&&!(ke&&(we=="length"||xe&&(we=="offset"||we=="parent")||ae&&(we=="buffer"||we=="byteLength"||we=="byteOffset")||Ty(we,Ve)))&&Be.push(we);return Be}function Yr(h,w){for(var D=h.length;D--;)if(gu(h[D][0],w))return D;return-1}function Ay(h,w,D){var Z=w(h);return Ur(h)?Z:zt(Z,D(h))}function sr(h){return h==null?h===void 0?F:v:sn&&sn in Object(h)?Gy(h):Ny(h)}function du(h){return ar(h)&&sr(h)==a}function pu(h,w,D,Z,xe){return h===w?!0:h==null||w==null||!ar(h)&&!ar(w)?h!==h&&w!==w:wy(h,w,D,Z,pu,xe)}function wy(h,w,D,Z,xe,ae){var ke=Ur(h),Be=Ur(w),Ve=ke?l:Zt(h),we=Be?l:Zt(w);Ve=Ve==a?S:Ve,we=we==a?S:we;var $e=Ve==S,ct=we==S,Me=Ve==we;if(Me&&bo(h)){if(!bo(w))return!1;ke=!0,$e=!1}if(Me&&!$e)return ae||(ae=new Wt),ke||vu(h)?fu(h,w,D,Z,xe,ae):Fy(h,w,Ve,D,Z,xe,ae);if(!(D&i)){var it=$e&&se.call(h,"__wrapped__"),ot=ct&&se.call(w,"__wrapped__");if(it||ot){var jt=it?h.value():h,Ft=ot?w.value():w;return ae||(ae=new Wt),xe(jt,Ft,D,Z,ae)}}return Me?(ae||(ae=new Wt),Py(h,w,D,Z,xe,ae)):!1}function Sy(h){if(!yu(h)||Vy(h))return!1;var w=mu(h)?lt:m;return w.test(un(h))}function Ey(h){return ar(h)&&bu(h.length)&&!!Q[sr(h)]}function ky(h){if(!Dy(h))return _b(h);var w=[];for(var D in Object(h))se.call(h,D)&&D!="constructor"&&w.push(D);return w}function fu(h,w,D,Z,xe,ae){var ke=D&i,Be=h.length,Ve=w.length;if(Be!=Ve&&!(ke&&Ve>Be))return!1;var we=ae.get(h);if(we&&ae.get(w))return we==w;var $e=-1,ct=!0,Me=D&o?new Jr:void 0;for(ae.set(h,w),ae.set(w,h);++$e<Be;){var it=h[$e],ot=w[$e];if(Z)var jt=ke?Z(ot,it,$e,w,h,ae):Z(it,ot,$e,h,w,ae);if(jt!==void 0){if(jt)continue;ct=!1;break}if(Me){if(!On(w,function(Ft,cn){if(!ee(Me,cn)&&(it===Ft||xe(it,Ft,D,Z,ae)))return Me.push(cn)})){ct=!1;break}}else if(!(it===ot||xe(it,ot,D,Z,ae))){ct=!1;break}}return ae.delete(h),ae.delete(w),ct}function Fy(h,w,D,Z,xe,ae,ke){switch(D){case O:if(h.byteLength!=w.byteLength||h.byteOffset!=w.byteOffset)return!1;h=h.buffer,w=w.buffer;case T:return!(h.byteLength!=w.byteLength||!ae(new Re(h),new Re(w)));case c:case d:case I:return gu(+h,+w);case f:return h.name==w.name&&h.message==w.message;case k:case N:return h==w+"";case g:var Be=Ge;case C:var Ve=Z&i;if(Be||(Be=nr),h.size!=w.size&&!Ve)return!1;var we=ke.get(h);if(we)return we==w;Z|=o,ke.set(h,w);var $e=fu(Be(h),Be(w),Z,xe,ae,ke);return ke.delete(h),$e;case L:if(mo)return mo.call(h)==mo.call(w)}return!1}function Py(h,w,D,Z,xe,ae){var ke=D&i,Be=hu(h),Ve=Be.length,we=hu(w),$e=we.length;if(Ve!=$e&&!ke)return!1;for(var ct=Ve;ct--;){var Me=Be[ct];if(!(ke?Me in w:se.call(w,Me)))return!1}var it=ae.get(h);if(it&&ae.get(w))return it==w;var ot=!0;ae.set(h,w),ae.set(w,h);for(var jt=ke;++ct<Ve;){Me=Be[ct];var Ft=h[Me],cn=w[Me];if(Z)var Iu=ke?Z(cn,Ft,Me,w,h,ae):Z(Ft,cn,Me,h,w,ae);if(!(Iu===void 0?Ft===cn||xe(Ft,cn,D,Z,ae):Iu)){ot=!1;break}jt||(jt=Me=="constructor")}if(ot&&!jt){var qr=h.constructor,Qr=w.constructor;qr!=Qr&&"constructor"in h&&"constructor"in w&&!(typeof qr=="function"&&qr instanceof qr&&typeof Qr=="function"&&Qr instanceof Qr)&&(ot=!1)}return ae.delete(h),ae.delete(w),ot}function hu(h){return Ay(h,Xy,By)}function _r(h,w){var D=h.__data__;return Oy(w)?D[typeof w=="string"?"string":"hash"]:D.map}function Vn(h,w){var D=ge(h,w);return Sy(D)?D:void 0}function Gy(h){var w=se.call(h,sn),D=h[sn];try{h[sn]=void 0;var Z=!0}catch{}var xe=Ct.call(h);return Z&&(w?h[sn]=D:delete h[sn]),xe}var By=uu?function(h){return h==null?[]:(h=Object(h),Xt(uu(h),function(w){return Et.call(h,w)}))}:zy,Zt=sr;(po&&Zt(new po(new ArrayBuffer(1)))!=O||ir&&Zt(new ir)!=g||fo&&Zt(fo.resolve())!=A||ho&&Zt(new ho)!=C||go&&Zt(new go)!=R)&&(Zt=function(h){var w=sr(h),D=w==S?h.constructor:void 0,Z=D?un(D):"";if(Z)switch(Z){case Ub:return O;case qb:return g;case Qb:return A;case $b:return C;case Kb:return R}return w});function Ty(h,w){return w=w??s,!!w&&(typeof h=="number"||he.test(h))&&h>-1&&h%1==0&&h<w}function Oy(h){var w=typeof h;return w=="string"||w=="number"||w=="symbol"||w=="boolean"?h!=="__proto__":h===null}function Vy(h){return!!Je&&Je in h}function Dy(h){var w=h&&h.constructor,D=typeof w=="function"&&w.prototype||V;return h===D}function Ny(h){return Ct.call(h)}function un(h){if(h!=null){try{return U.call(h)}catch{}try{return h+""}catch{}}return""}function gu(h,w){return h===w||h!==h&&w!==w}var Ly=du(function(){return arguments}())?du:function(h){return ar(h)&&se.call(h,"callee")&&!Et.call(h,"callee")},Ur=Array.isArray;function Ry(h){return h!=null&&bu(h.length)&&!mu(h)}var bo=Yb||Hy;function My(h,w){return pu(h,w)}function mu(h){if(!yu(h))return!1;var w=sr(h);return w==p||w==b||w==u||w==E}function bu(h){return typeof h=="number"&&h>-1&&h%1==0&&h<=s}function yu(h){var w=typeof h;return h!=null&&(w=="object"||w=="function")}function ar(h){return h!=null&&typeof h=="object"}var vu=It?J(It):Ey;function Xy(h){return Ry(h)?xy(h):ky(h)}function zy(){return[]}function Hy(){return!1}e.exports=My}(xr,xr.exports);var Jf=xr.exports;const na=Ro(Jf);var Hn=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ut=typeof window>"u"||"Deno"in globalThis;function tt(){}function Yf(e,t){return typeof e=="function"?e(t):e}function Oi(e){return typeof e=="number"&&e>=0&&e!==1/0}function ra(e,t){return Math.max(e+(t||0)-Date.now(),0)}function bn(e,t){return typeof e=="function"?e(t):e}function st(e,t){return typeof e=="function"?e(t):e}function ia(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==Vi(s,t.options))return!1}else if(!Zn(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||i&&i!==t.state.fetchStatus||o&&!o(t))}function oa(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Wn(t.options.mutationKey)!==Wn(o))return!1}else if(!Zn(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Vi(e,t){return((t==null?void 0:t.queryKeyHashFn)||Wn)(e)}function Wn(e){return JSON.stringify(e,(t,n)=>Li(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Zn(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Zn(e[n],t[n])):!1}function Di(e,t){if(e===t)return e;const n=sa(e)&&sa(t);if(n||Li(e)&&Li(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),s=o.length,a=n?[]:{};let l=0;for(let u=0;u<s;u++){const c=n?u:o[u];(!n&&r.includes(c)||n)&&e[c]===void 0&&t[c]===void 0?(a[c]=void 0,l++):(a[c]=Di(e[c],t[c]),a[c]===e[c]&&e[c]!==void 0&&l++)}return i===s&&l===i?e:a}return t}function Ni(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function sa(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Li(e){if(!aa(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!aa(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function aa(e){return Object.prototype.toString.call(e)==="[object Object]"}function _f(e){return new Promise(t=>{setTimeout(t,e)})}function Ri(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return Di(e,t)}catch(r){console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`)}return Di(e,t)}return t}function Uf(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function qf(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ar=Symbol();function la(e,t){return process.env.NODE_ENV!=="production"&&e.queryFn===Ar&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Ar?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Qf=(eu=class extends Hn{constructor(){super();ne(this,$t);ne(this,Tt);ne(this,In);j(this,In,t=>{if(!Ut&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){x(this,Tt)||this.setEventListener(x(this,In))}onUnsubscribe(){var t;this.hasListeners()||((t=x(this,Tt))==null||t.call(this),j(this,Tt,void 0))}setEventListener(t){var n;j(this,In,t),(n=x(this,Tt))==null||n.call(this),j(this,Tt,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){x(this,$t)!==t&&(j(this,$t,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof x(this,$t)=="boolean"?x(this,$t):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},$t=new WeakMap,Tt=new WeakMap,In=new WeakMap,eu),Mi=new Qf,$f=(tu=class extends Hn{constructor(){super();ne(this,Cn,!0);ne(this,Ot);ne(this,xn);j(this,xn,t=>{if(!Ut&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){x(this,Ot)||this.setEventListener(x(this,xn))}onUnsubscribe(){var t;this.hasListeners()||((t=x(this,Ot))==null||t.call(this),j(this,Ot,void 0))}setEventListener(t){var n;j(this,xn,t),(n=x(this,Ot))==null||n.call(this),j(this,Ot,t(this.setOnline.bind(this)))}setOnline(t){x(this,Cn)!==t&&(j(this,Cn,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return x(this,Cn)}},Cn=new WeakMap,Ot=new WeakMap,xn=new WeakMap,tu),wr=new $f;function Xi(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function Kf(e){return Math.min(1e3*2**e,3e4)}function ua(e){return(e??"online")==="online"?wr.isOnline():!0}var ca=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function zi(e){return e instanceof ca}function da(e){let t=!1,n=0,r=!1,i;const o=Xi(),s=g=>{var I;r||(f(new ca(g)),(I=e.abort)==null||I.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>Mi.isFocused()&&(e.networkMode==="always"||wr.isOnline())&&e.canRun(),c=()=>ua(e.networkMode)&&e.canRun(),d=g=>{var I;r||(r=!0,(I=e.onSuccess)==null||I.call(e,g),i==null||i(),o.resolve(g))},f=g=>{var I;r||(r=!0,(I=e.onError)==null||I.call(e,g),i==null||i(),o.reject(g))},p=()=>new Promise(g=>{var I;i=v=>{(r||u())&&g(v)},(I=e.onPause)==null||I.call(e)}).then(()=>{var g;i=void 0,r||(g=e.onContinue)==null||g.call(e)}),b=()=>{if(r)return;let g;const I=n===0?e.initialPromise:void 0;try{g=I??e.fn()}catch(v){g=Promise.reject(v)}Promise.resolve(g).then(d).catch(v=>{var C;if(r)return;const S=e.retry??(Ut?0:3),A=e.retryDelay??Kf,E=typeof A=="function"?A(n,v):A,k=S===!0||typeof S=="number"&&n<S||typeof S=="function"&&S(n,v);if(t||!k){f(v);return}n++,(C=e.onFail)==null||C.call(e,n,v),_f(E).then(()=>u()?void 0:p()).then(()=>{t?f(v):b()})})};return{promise:o,cancel:s,continue:()=>(i==null||i(),o),cancelRetry:a,continueRetry:l,canStart:c,start:()=>(c()?b():p().then(b),o)}}function eh(){let e=[],t=0,n=a=>{a()},r=a=>{a()},i=a=>setTimeout(a,0);const o=a=>{t?e.push(a):i(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&i(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||s()}return l},batchCalls:a=>(...l)=>{o(()=>{a(...l)})},schedule:o,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{i=a}}}var Te=eh(),pa=(nu=class{constructor(){ne(this,Kt)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Oi(this.gcTime)&&j(this,Kt,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ut?1/0:5*60*1e3))}clearGcTimeout(){x(this,Kt)&&(clearTimeout(x(this,Kt)),j(this,Kt,void 0))}},Kt=new WeakMap,nu),th=(ru=class extends pa{constructor(t){super();ne(this,at);ne(this,An);ne(this,wn);ne(this,nt);ne(this,Le);ne(this,$n);ne(this,en);j(this,en,!1),j(this,$n,t.defaultOptions),this.setOptions(t.options),this.observers=[],j(this,nt,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,j(this,An,nh(this.options)),this.state=t.state??x(this,An),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=x(this,Le))==null?void 0:t.promise}setOptions(t){this.options={...x(this,$n),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&x(this,nt).remove(this)}setData(t,n){const r=Ri(this.state.data,t,this.options);return fe(this,at,Pt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){fe(this,at,Pt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=x(this,Le))==null?void 0:r.promise;return(i=x(this,Le))==null||i.cancel(t),n?n.then(tt).catch(tt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(x(this,An))}isActive(){return this.observers.some(t=>st(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ar||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!ra(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=x(this,Le))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=x(this,Le))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),x(this,nt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(x(this,Le)&&(x(this,en)?x(this,Le).cancel({revert:!0}):x(this,Le).cancelRetry()),this.scheduleGc()),x(this,nt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||fe(this,at,Pt).call(this,{type:"invalidate"})}fetch(t,n){var l,u,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(x(this,Le))return x(this,Le).continueRetry(),x(this,Le).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(f=>f.options.queryFn);d&&this.setOptions(d.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const r=new AbortController,i=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(j(this,en,!0),r.signal)})},o=()=>{const d=la(this.options,n),f={queryKey:this.queryKey,meta:this.meta};return i(f),j(this,en,!1),this.options.persister?this.options.persister(d,f,this):d(f)},s={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};i(s),(l=this.options.behavior)==null||l.onFetch(s,this),j(this,wn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=s.fetchOptions)==null?void 0:u.meta))&&fe(this,at,Pt).call(this,{type:"fetch",meta:(c=s.fetchOptions)==null?void 0:c.meta});const a=d=>{var f,p,b,g;zi(d)&&d.silent||fe(this,at,Pt).call(this,{type:"error",error:d}),zi(d)||((p=(f=x(this,nt).config).onError)==null||p.call(f,d,this),(g=(b=x(this,nt).config).onSettled)==null||g.call(b,this.state.data,d,this)),this.scheduleGc()};return j(this,Le,da({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:d=>{var f,p,b,g;if(d===void 0){process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(I){a(I);return}(p=(f=x(this,nt).config).onSuccess)==null||p.call(f,d,this),(g=(b=x(this,nt).config).onSettled)==null||g.call(b,d,this.state.error,this),this.scheduleGc()},onError:a,onFail:(d,f)=>{fe(this,at,Pt).call(this,{type:"failed",failureCount:d,error:f})},onPause:()=>{fe(this,at,Pt).call(this,{type:"pause"})},onContinue:()=>{fe(this,at,Pt).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),x(this,Le).start()}},An=new WeakMap,wn=new WeakMap,nt=new WeakMap,Le=new WeakMap,$n=new WeakMap,en=new WeakMap,at=new WeakSet,Pt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...fa(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return zi(i)&&i.revert&&x(this,wn)?{...x(this,wn),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Te.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),x(this,nt).notify({query:this,type:"updated",action:t})})},ru);function fa(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ua(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function nh(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var rh=(iu=class extends Hn{constructor(t={}){super();ne(this,mt);this.config=t,j(this,mt,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??Vi(i,n);let s=this.get(o);return s||(s=new th({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){x(this,mt).has(t.queryHash)||(x(this,mt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=x(this,mt).get(t.queryHash);n&&(t.destroy(),n===t&&x(this,mt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Te.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return x(this,mt).get(t)}getAll(){return[...x(this,mt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ia(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>ia(t,r)):n}notify(t){Te.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Te.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Te.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},mt=new WeakMap,iu),ih=(ou=class extends pa{constructor(t){super();ne(this,yt);ne(this,bt);ne(this,Xe);ne(this,tn);this.mutationId=t.mutationId,j(this,Xe,t.mutationCache),j(this,bt,[]),this.state=t.state||oh(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){x(this,bt).includes(t)||(x(this,bt).push(t),this.clearGcTimeout(),x(this,Xe).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){j(this,bt,x(this,bt).filter(n=>n!==t)),this.scheduleGc(),x(this,Xe).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){x(this,bt).length||(this.state.status==="pending"?this.scheduleGc():x(this,Xe).remove(this))}continue(){var t;return((t=x(this,tn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,s,a,l,u,c,d,f,p,b,g,I,v,S,A,E,k,C,N;j(this,tn,da({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(L,F)=>{fe(this,yt,Jt).call(this,{type:"failed",failureCount:L,error:F})},onPause:()=>{fe(this,yt,Jt).call(this,{type:"pause"})},onContinue:()=>{fe(this,yt,Jt).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>x(this,Xe).canRun(this)}));const n=this.state.status==="pending",r=!x(this,tn).canStart();try{if(!n){fe(this,yt,Jt).call(this,{type:"pending",variables:t,isPaused:r}),await((o=(i=x(this,Xe).config).onMutate)==null?void 0:o.call(i,t,this));const F=await((a=(s=this.options).onMutate)==null?void 0:a.call(s,t));F!==this.state.context&&fe(this,yt,Jt).call(this,{type:"pending",context:F,variables:t,isPaused:r})}const L=await x(this,tn).start();return await((u=(l=x(this,Xe).config).onSuccess)==null?void 0:u.call(l,L,t,this.state.context,this)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,L,t,this.state.context)),await((p=(f=x(this,Xe).config).onSettled)==null?void 0:p.call(f,L,null,this.state.variables,this.state.context,this)),await((g=(b=this.options).onSettled)==null?void 0:g.call(b,L,null,t,this.state.context)),fe(this,yt,Jt).call(this,{type:"success",data:L}),L}catch(L){try{throw await((v=(I=x(this,Xe).config).onError)==null?void 0:v.call(I,L,t,this.state.context,this)),await((A=(S=this.options).onError)==null?void 0:A.call(S,L,t,this.state.context)),await((k=(E=x(this,Xe).config).onSettled)==null?void 0:k.call(E,void 0,L,this.state.variables,this.state.context,this)),await((N=(C=this.options).onSettled)==null?void 0:N.call(C,void 0,L,t,this.state.context)),L}finally{fe(this,yt,Jt).call(this,{type:"error",error:L})}}finally{x(this,Xe).runNext(this)}}},bt=new WeakMap,Xe=new WeakMap,tn=new WeakMap,yt=new WeakSet,Jt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Te.batch(()=>{x(this,bt).forEach(r=>{r.onMutationUpdate(t)}),x(this,Xe).notify({mutation:this,type:"updated",action:t})})},ou);function oh(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var sh=(su=class extends Hn{constructor(t={}){super();ne(this,Ue);ne(this,Kn);this.config=t,j(this,Ue,new Map),j(this,Kn,Date.now())}build(t,n,r){const i=new ih({mutationCache:this,mutationId:++$r(this,Kn)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=Sr(t),r=x(this,Ue).get(n)??[];r.push(t),x(this,Ue).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=Sr(t);if(x(this,Ue).has(n)){const i=(r=x(this,Ue).get(n))==null?void 0:r.filter(o=>o!==t);i&&(i.length===0?x(this,Ue).delete(n):x(this,Ue).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=x(this,Ue).get(Sr(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=x(this,Ue).get(Sr(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){Te.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...x(this,Ue).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>oa(n,r))}findAll(t={}){return this.getAll().filter(n=>oa(t,n))}notify(t){Te.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Te.batch(()=>Promise.all(t.map(n=>n.continue().catch(tt))))}},Ue=new WeakMap,Kn=new WeakMap,su);function Sr(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function ha(e){return{onFetch:(t,n)=>{var c,d,f,p,b;const r=t.options,i=(f=(d=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,o=((p=t.state.data)==null?void 0:p.pages)||[],s=((b=t.state.data)==null?void 0:b.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let g=!1;const I=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},v=la(t.options,t.fetchOptions),S=async(A,E,k)=>{if(g)return Promise.reject();if(E==null&&A.pages.length)return Promise.resolve(A);const C={queryKey:t.queryKey,pageParam:E,direction:k?"backward":"forward",meta:t.options.meta};I(C);const N=await v(C),{maxPages:L}=t.options,F=k?qf:Uf;return{pages:F(A.pages,N,L),pageParams:F(A.pageParams,E,L)}};if(i&&o.length){const A=i==="backward",E=A?ah:ga,k={pages:o,pageParams:s},C=E(r,k);a=await S(k,C,A)}else{const A=e??o.length;do{const E=l===0?s[0]??r.initialPageParam:ga(r,a);if(l>0&&E==null)break;a=await S(a,E),l++}while(l<A)}return a};t.options.persister?t.fetchFn=()=>{var g,I;return(I=(g=t.options).persister)==null?void 0:I.call(g,u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function ga(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function ah(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var lh=(au=class{constructor(e={}){ne(this,Ee);ne(this,Vt);ne(this,Dt);ne(this,Sn);ne(this,En);ne(this,Nt);ne(this,kn);ne(this,Fn);j(this,Ee,e.queryCache||new rh),j(this,Vt,e.mutationCache||new sh),j(this,Dt,e.defaultOptions||{}),j(this,Sn,new Map),j(this,En,new Map),j(this,Nt,0)}mount(){$r(this,Nt)._++,x(this,Nt)===1&&(j(this,kn,Mi.subscribe(async e=>{e&&(await this.resumePausedMutations(),x(this,Ee).onFocus())})),j(this,Fn,wr.subscribe(async e=>{e&&(await this.resumePausedMutations(),x(this,Ee).onOnline())})))}unmount(){var e,t;$r(this,Nt)._--,x(this,Nt)===0&&((e=x(this,kn))==null||e.call(this),j(this,kn,void 0),(t=x(this,Fn))==null||t.call(this),j(this,Fn,void 0))}isFetching(e){return x(this,Ee).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return x(this,Vt).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=x(this,Ee).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=x(this,Ee).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(bn(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return x(this,Ee).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=x(this,Ee).get(r.queryHash),o=i==null?void 0:i.state.data,s=Yf(t,o);if(s!==void 0)return x(this,Ee).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Te.batch(()=>x(this,Ee).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=x(this,Ee).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=x(this,Ee);Te.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=x(this,Ee),r={type:"active",...e};return Te.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Te.batch(()=>x(this,Ee).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(tt).catch(tt)}invalidateQueries(e={},t={}){return Te.batch(()=>{if(x(this,Ee).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=Te.batch(()=>x(this,Ee).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(tt)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(tt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=x(this,Ee).build(this,t);return n.isStaleByTime(bn(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(tt).catch(tt)}fetchInfiniteQuery(e){return e.behavior=ha(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(tt).catch(tt)}ensureInfiniteQueryData(e){return e.behavior=ha(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return wr.isOnline()?x(this,Vt).resumePausedMutations():Promise.resolve()}getQueryCache(){return x(this,Ee)}getMutationCache(){return x(this,Vt)}getDefaultOptions(){return x(this,Dt)}setDefaultOptions(e){j(this,Dt,e)}setQueryDefaults(e,t){x(this,Sn).set(Wn(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...x(this,Sn).values()];let n={};return t.forEach(r=>{Zn(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){x(this,En).set(Wn(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...x(this,En).values()];let n={};return t.forEach(r=>{Zn(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...x(this,Dt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Vi(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===Ar&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...x(this,Dt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){x(this,Ee).clear(),x(this,Vt).clear()}},Ee=new WeakMap,Vt=new WeakMap,Dt=new WeakMap,Sn=new WeakMap,En=new WeakMap,Nt=new WeakMap,kn=new WeakMap,Fn=new WeakMap,au),uh=(lu=class extends Hn{constructor(t,n){super();ne(this,ye);ne(this,je);ne(this,pe);ne(this,er);ne(this,ze);ne(this,nn);ne(this,Pn);ne(this,Lt);ne(this,vt);ne(this,tr);ne(this,Gn);ne(this,Bn);ne(this,rn);ne(this,on);ne(this,Rt);ne(this,Tn,new Set);this.options=n,j(this,je,t),j(this,vt,null),j(this,Lt,Xi()),this.options.experimental_prefetchInRender||x(this,Lt).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(x(this,pe).addObserver(this),ma(x(this,pe),this.options)?fe(this,ye,lr).call(this):this.updateResult(),fe(this,ye,xo).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Hi(x(this,pe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Hi(x(this,pe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,fe(this,ye,Ao).call(this),fe(this,ye,wo).call(this),x(this,pe).removeObserver(this)}setOptions(t,n){const r=this.options,i=x(this,pe);if(this.options=x(this,je).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof st(this.options.enabled,x(this,pe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");fe(this,ye,So).call(this),x(this,pe).setOptions(this.options),r._defaulted&&!Ni(this.options,r)&&x(this,je).getQueryCache().notify({type:"observerOptionsUpdated",query:x(this,pe),observer:this});const o=this.hasListeners();o&&ba(x(this,pe),i,this.options,r)&&fe(this,ye,lr).call(this),this.updateResult(n),o&&(x(this,pe)!==i||st(this.options.enabled,x(this,pe))!==st(r.enabled,x(this,pe))||bn(this.options.staleTime,x(this,pe))!==bn(r.staleTime,x(this,pe)))&&fe(this,ye,vo).call(this);const s=fe(this,ye,Io).call(this);o&&(x(this,pe)!==i||st(this.options.enabled,x(this,pe))!==st(r.enabled,x(this,pe))||s!==x(this,Rt))&&fe(this,ye,Co).call(this,s)}getOptimisticResult(t){const n=x(this,je).getQueryCache().build(x(this,je),t),r=this.createResult(n,t);return dh(this,r)&&(j(this,ze,r),j(this,Pn,this.options),j(this,nn,x(this,pe).state)),r}getCurrentResult(){return x(this,ze)}trackResult(t,n){const r={};return Object.keys(t).forEach(i=>{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),t[i])})}),r}trackProp(t){x(this,Tn).add(t)}getCurrentQuery(){return x(this,pe)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=x(this,je).defaultQueryOptions(t),r=x(this,je).getQueryCache().build(x(this,je),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return fe(this,ye,lr).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),x(this,ze)))}createResult(t,n){var L;const r=x(this,pe),i=this.options,o=x(this,ze),s=x(this,nn),a=x(this,Pn),u=t!==r?t.state:x(this,er),{state:c}=t;let d={...c},f=!1,p;if(n._optimisticResults){const F=this.hasListeners(),R=!F&&ma(t,n),T=F&&ba(t,r,n,i);(R||T)&&(d={...d,...fa(c.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:b,errorUpdatedAt:g,status:I}=d;if(n.select&&d.data!==void 0)if(o&&d.data===(s==null?void 0:s.data)&&n.select===x(this,tr))p=x(this,Gn);else try{j(this,tr,n.select),p=n.select(d.data),p=Ri(o==null?void 0:o.data,p,n),j(this,Gn,p),j(this,vt,null)}catch(F){j(this,vt,F)}else p=d.data;if(n.placeholderData!==void 0&&p===void 0&&I==="pending"){let F;if(o!=null&&o.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))F=o.data;else if(F=typeof n.placeholderData=="function"?n.placeholderData((L=x(this,Bn))==null?void 0:L.state.data,x(this,Bn)):n.placeholderData,n.select&&F!==void 0)try{F=n.select(F),j(this,vt,null)}catch(R){j(this,vt,R)}F!==void 0&&(I="success",p=Ri(o==null?void 0:o.data,F,n),f=!0)}x(this,vt)&&(b=x(this,vt),p=x(this,Gn),g=Date.now(),I="error");const v=d.fetchStatus==="fetching",S=I==="pending",A=I==="error",E=S&&v,k=p!==void 0,N={status:I,fetchStatus:d.fetchStatus,isPending:S,isSuccess:I==="success",isError:A,isInitialLoading:E,isLoading:E,data:p,dataUpdatedAt:d.dataUpdatedAt,error:b,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>u.dataUpdateCount||d.errorUpdateCount>u.errorUpdateCount,isFetching:v,isRefetching:v&&!S,isLoadingError:A&&!k,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:A&&k,isStale:Wi(t,n),refetch:this.refetch,promise:x(this,Lt)};if(this.options.experimental_prefetchInRender){const F=O=>{N.status==="error"?O.reject(N.error):N.data!==void 0&&O.resolve(N.data)},R=()=>{const O=j(this,Lt,N.promise=Xi());F(O)},T=x(this,Lt);switch(T.status){case"pending":t.queryHash===r.queryHash&&F(T);break;case"fulfilled":(N.status==="error"||N.data!==T.value)&&R();break;case"rejected":(N.status!=="error"||N.error!==T.reason)&&R();break}}return N}updateResult(t){const n=x(this,ze),r=this.createResult(x(this,pe),this.options);if(j(this,nn,x(this,pe).state),j(this,Pn,this.options),x(this,nn).data!==void 0&&j(this,Bn,x(this,pe)),Ni(r,n))return;j(this,ze,r);const i={},o=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,a=typeof s=="function"?s():s;if(a==="all"||!a&&!x(this,Tn).size)return!0;const l=new Set(a??x(this,Tn));return this.options.throwOnError&&l.add("error"),Object.keys(x(this,ze)).some(u=>{const c=u;return x(this,ze)[c]!==n[c]&&l.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(i.listeners=!0),fe(this,ye,xu).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&fe(this,ye,xo).call(this)}},je=new WeakMap,pe=new WeakMap,er=new WeakMap,ze=new WeakMap,nn=new WeakMap,Pn=new WeakMap,Lt=new WeakMap,vt=new WeakMap,tr=new WeakMap,Gn=new WeakMap,Bn=new WeakMap,rn=new WeakMap,on=new WeakMap,Rt=new WeakMap,Tn=new WeakMap,ye=new WeakSet,lr=function(t){fe(this,ye,So).call(this);let n=x(this,pe).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(tt)),n},vo=function(){fe(this,ye,Ao).call(this);const t=bn(this.options.staleTime,x(this,pe));if(Ut||x(this,ze).isStale||!Oi(t))return;const r=ra(x(this,ze).dataUpdatedAt,t)+1;j(this,rn,setTimeout(()=>{x(this,ze).isStale||this.updateResult()},r))},Io=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(x(this,pe)):this.options.refetchInterval)??!1},Co=function(t){fe(this,ye,wo).call(this),j(this,Rt,t),!(Ut||st(this.options.enabled,x(this,pe))===!1||!Oi(x(this,Rt))||x(this,Rt)===0)&&j(this,on,setInterval(()=>{(this.options.refetchIntervalInBackground||Mi.isFocused())&&fe(this,ye,lr).call(this)},x(this,Rt)))},xo=function(){fe(this,ye,vo).call(this),fe(this,ye,Co).call(this,fe(this,ye,Io).call(this))},Ao=function(){x(this,rn)&&(clearTimeout(x(this,rn)),j(this,rn,void 0))},wo=function(){x(this,on)&&(clearInterval(x(this,on)),j(this,on,void 0))},So=function(){const t=x(this,je).getQueryCache().build(x(this,je),this.options);if(t===x(this,pe))return;const n=x(this,pe);j(this,pe,t),j(this,er,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},xu=function(t){Te.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(x(this,ze))}),x(this,je).getQueryCache().notify({query:x(this,pe),type:"observerResultsUpdated"})})},lu);function ch(e,t){return st(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function ma(e,t){return ch(e,t)||e.state.data!==void 0&&Hi(e,t,t.refetchOnMount)}function Hi(e,t,n){if(st(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Wi(e,t)}return!1}function ba(e,t,n,r){return(e!==t||st(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Wi(e,n)}function Wi(e,t){return st(t.enabled,e)!==!1&&e.isStaleByTime(bn(t.staleTime,e))}function dh(e,t){return!Ni(e.getCurrentResult(),t)}var ya=re.createContext(void 0),ph=e=>{const t=re.useContext(ya);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},fh=({client:e,children:t})=>(re.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),B.jsx(ya.Provider,{value:e,children:t})),va=re.createContext(!1),hh=()=>re.useContext(va);va.Provider;function gh(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var mh=re.createContext(gh()),bh=()=>re.useContext(mh);function yh(e,t){return typeof e=="function"?e(...t):!!e}function Ia(){}var vh=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Ih=e=>{re.useEffect(()=>{e.clearReset()},[e])},Ch=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&yh(n,[e.error,r]),xh=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},Ah=(e,t)=>e.isLoading&&e.isFetching&&!t,wh=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Ca=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Sh(e,t,n){var c,d,f,p,b;if(process.env.NODE_ENV!=="production"&&(typeof e!="object"||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=ph(),i=hh(),o=bh(),s=r.defaultQueryOptions(e);(d=(c=r.getDefaultOptions().queries)==null?void 0:c._experimental_beforeQuery)==null||d.call(c,s),s._optimisticResults=i?"isRestoring":"optimistic",xh(s),vh(s,o),Ih(o);const a=!r.getQueryCache().get(s.queryHash),[l]=re.useState(()=>new t(r,s)),u=l.getOptimisticResult(s);if(re.useSyncExternalStore(re.useCallback(g=>{const I=i?Ia:l.subscribe(Te.batchCalls(g));return l.updateResult(),I},[l,i]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),re.useEffect(()=>{l.setOptions(s,{listeners:!1})},[s,l]),wh(s,u))throw Ca(s,l,o);if(Ch({result:u,errorResetBoundary:o,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash)}))throw u.error;if((p=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||p.call(f,s,u),s.experimental_prefetchInRender&&!Ut&&Ah(u,i)){const g=a?Ca(s,l,o):(b=r.getQueryCache().get(s.queryHash))==null?void 0:b.promise;g==null||g.catch(Ia).finally(()=>{l.updateResult()})}return s.notifyOnChangeProps?u:l.trackResult(u)}function qt(e,t){return Sh(e,uh)}const xa=G.createContext(void 0),At=()=>{const e=G.useContext(xa);if(!e)throw new Error("Must be used inside FrontendClientProvider");return e},Eh=({children:e,client:t})=>{const n=new lh({defaultOptions:{queries:{staleTime:36e5,refetchOnWindowFocus:!1}}});return B.jsx(fh,{client:n,children:B.jsx(xa.Provider,{value:t,children:e})})};function Aa(e){return typeof e=="object"&&e&&"__lv"in e?e.__lv.value:e}function kh(e){if(typeof e=="object"&&e&&"selectedOptions"in e&&Array.isArray(e.selectedOptions)){const t=e.selectedOptions,n=[];for(const r of t)if(typeof r=="object"&&r&&"emitValue"in r){const i=r.emitValue;typeof i=="object"&&i&&"__lv"in i?n.push(i.__lv.value):n.push(i)}else return[];return n}return e&&typeof e=="object"&&Array.isArray(e.__lv)?e.__lv:Array.isArray(e)?e:[]}function Fh(e){const t=kh(e.value);if(!e.prop.default&&typeof t>"u")return["required"];if(!e.prop.default&&Array.isArray(t)&&!t.length)return["empty array"]}function Ph(e){const t=Aa(e.value);if(t==null||typeof t>"u")return["required"]}function Gh(e){const{prop:t,value:n}=e,r=Aa(n);if(!t.default&&(r==null||typeof r>"u"))return["required"];const i=typeof r=="number"?r:parseInt(String(r));if(Number.isNaN(i))return["not a number"];const o=[];return typeof t.min=="number"&&i<t.min&&o.push("number too small"),typeof t.max=="number"&&i>t.max&&o.push("number too big"),o}function Bh(e){const{prop:t,value:n}=e;if(!t.default&&(n==null||typeof n>"u"))return["required"]}function Th(e){const t=e.auth_type==="oauth",n=JSON.parse(e.custom_fields_json||"[]");if("extracted_custom_fields_names"in e&&e.extracted_custom_fields_names){const r=(e.extracted_custom_fields_names||[]).map(i=>({name:i}));n.push(...r)}return n.map(r=>({...r,optional:r.optional||t}))}function Oh(e){const{app:t,value:n}=e;if(!t)return["app field not registered"];if(!t.auth_type)return;if(!n)return["no app configured"];if(typeof n!="object")return["not an app"];const r=n;if("authProvisionId"in r&&!r.authProvisionId){const i=[];if(t.auth_type==="oauth"&&!r.oauth_access_token&&i.push("missing oauth token"),t.auth_type==="oauth"||t.auth_type==="keys"){const o=Th(t),s=r;for(const a of o)!a.optional&&!s[a.name]&&i.push(`missing custom field: ${a.name}`)}return i}}const Vh=(e,t)=>{if(e!==void 0&&e!=="")return t!==void 0&&t!==""?{resolvedId:e,warningType:"both"}:{resolvedId:e};if(t!==void 0&&t!=="")return{resolvedId:t,warningType:"deprecated"};throw new Error("Either externalUserId or userId must be provided")},jn=["$.service.db","$.interface.http","$.interface.apphook","$.interface.timer","dir"],Zi=G.createContext(void 0),Jn=()=>{const e=G.useContext(Zi);if(!e)throw new Error("Must be used inside provider");return e},wa=({children:e,props:t})=>{const n=At(),r=G.useId(),{component:i,configuredProps:o,propNames:s,externalUserId:a,userId:l,sdkResponse:u,enableDebugging:c,oauthAppConfig:d}=t,{resolvedId:f,warningType:p}=G.useMemo(()=>Vh(a,l),[a,l]);G.useEffect(()=>{process.env.NODE_ENV!=="production"&&(p==="both"?console.warn("[connect-react] Both externalUserId and userId provided. Using externalUserId. Please remove userId to avoid this warning."):p==="deprecated"&&console.warn("[connect-react] userId is deprecated. Please use externalUserId instead."))},[p]);const b=i.key,[g,I]=G.useState(0),[v,S]=G.useState({}),[A,E]=G.useState(!1),[k,C]=G.useState({}),[N,L]=G.useState([]),[F,R]=G.useState({});G.useEffect(()=>{R({})},[i.key]);const T=X=>F[X.name];let O=o||{};const[K,oe]=G.useState(O),H=t.onUpdateConfiguredProps||oe;t.onUpdateConfiguredProps||(O=K);const[Y,ue]=G.useState(),[le,ve]=G.useState(),y={externalUserId:f,componentId:b,configuredProps:O,dynamicPropsId:Y==null?void 0:Y.id},Ae={...y},{isFetching:ce}=qt({queryKey:["dynamicProps",Ae],queryFn:async()=>{var Ge;const X=await n.reloadComponentProps(y),{dynamicProps:J,observations:ee,errors:ge}=X;return ee&&ee.filter(He=>He.k==="error").length>0?zt(ee):zt(ge),J&&((Ge=t.onUpdateDynamicProps)==null||Ge.call(t,J),ue(J)),ve(void 0),[]},enabled:le!=null}),[m,he]=G.useState([]);G.useEffect(()=>{It()},[O]);const Q=G.useMemo(()=>{let X=(Y==null?void 0:Y.configurableProps)||t.component.configurable_props||[];if(s!=null&&s.length){const J=[];for(const ee of X)s.findIndex(ge=>ee.name===ge)>=0&&J.push(ee);X=J}return le!=null&&(X=Array.isArray(X)?X.slice(0,le+1):X),X},[Y==null?void 0:Y.configurableProps,t.component.configurable_props,s,le]),de=(X,J)=>{const ee=[];if(X.optional||X.hidden||X.disabled||jn.includes(X.type))return[];if(X.type==="app"){const ge=v[X.name];if(ge){const Ge=ge.extra.app;ee.push(...Oh({prop:X,value:J,app:Ge})??[])}else ee.push("field not registered")}else X.type==="boolean"?ee.push(...Ph({prop:X,value:J})??[]):X.type==="integer"?ee.push(...Gh({prop:X,value:J})??[]):X.type==="string"?ee.push(...Bh({prop:X,value:J})??[]):X.type==="string[]"&&ee.push(...Fh({prop:X,value:J})??[]);return ee},Pe=X=>{let J;for(let ee=0;ee<Q.length;ee++){const ge=Q[ee];if(ge.hidden||ge.optional&&!T(ge))continue;if(X[ge.name]===void 0&&J==null&&(ge.type==="app"||ge.remoteOptions)){J=ee;break}}I(J)},be=X=>{H(X),Pe(X),Oe(X)},Oe=X=>{const J={};for(let ee=0;ee<Q.length;ee++){const ge=Q[ee],Ge=X[ge.name],He=de(ge,Ge);He.length&&(J[ge.name]=He)}C(J)};G.useEffect(()=>{Pe(K)},[K]),G.useEffect(()=>{Oe(O)},[O,le,g]),G.useEffect(()=>{zt(u)},[u]),G.useEffect(()=>{const X={};for(const J of Q){if(J.hidden||jn.includes(J.type)||J.optional&&!T(J))continue;const ee=O[J.name];ee===void 0?"default"in J&&J.default!=null&&(X[J.name]=J.default):J.type==="integer"&&typeof ee!="number"?delete X[J.name]:X[J.name]=ee}na(X,O)||be(X)},[Q]);const[qe,rt]=G.useState(f);G.useEffect(()=>{qe!==f&&(be({}),rt(f))},[f]);const Qe=(X,J)=>{const ee=Q[X],ge={...O};J===void 0?delete ge[ee.name]:ge[ee.name]=J,H(ge),ee.reloadProps&&ve(X),(ee.type==="app"||ee.remoteOptions)&&Pe(ge);const Ge=de(ee,J),He={...k};Ge.length?He[ee.name]=Ge:delete He[ee.name],C(He)},Mt=(X,J)=>{const ee={...F};J?ee[X.name]=!0:delete ee[X.name];const ge=Q.findIndex(Ge=>Ge.name===X.name);J?(o==null?void 0:o[X.name])!==void 0?Qe(ge,o[X.name]):"default"in X&&X.default!=null&&Qe(ge,X.default):Qe(ge,void 0),R(ee)},It=()=>{const X=[];for(const J of Q){if(!J||J.optional||J.hidden||jn.includes(J.type))continue;const ee=O[J.name];de(J,ee).length&&X.push(J.name)}X&&m&&na(X,m)||he(X)},Xt=X=>{S(J=>(J[X.prop.name]=X,J)),It()},zt=X=>{if(!X)return;let J=[...N];const ee=(P,V)=>{try{const W=JSON.parse(P),U={name:W.name,message:W.message};U.name&&U.message&&V.push(U)}catch{}},ge=(P,V)=>{const W={name:P.name,message:P.message};W.name&&W.message&&V.push(W)},Ge=(P,V)=>{var U,se;const W={name:(U=P.err)==null?void 0:U.name,message:(se=P.err)==null?void 0:se.message};W.name&&W.message&&V.push(W)},He=(P,V)=>{const W=P.os||P.observations;if(Array.isArray(W)&&W.length>0)for(let U=0;U<W.length;U++)W[U].k==="error"&&Ge(W[U],V)},nr=(P,V)=>{V.push({name:P.error,message:JSON.stringify(P.details)})},rr=(P,V)=>{var W;try{const U=(W=JSON.parse(P.message))==null?void 0:W.data;U&&"observations"in U?He(U,V):U&&"error"in U&&"details"in U&&nr(U,V)}catch{}};if(Array.isArray(X)&&X.length>0)for(let P=0;P<X.length;P++){const V=X[P];typeof V=="string"?ee(V,J):typeof V=="object"&&"name"in V&&"message"in V?ge(V,J):typeof V=="object"&&V.k==="error"&&Ge(V,J)}else typeof X=="object"&&"os"in X||"observations"in X?He(X,J):typeof X=="object"&&"message"in X?rr(X,J):J=[];L(J)},On={id:r,isValid:!Object.keys(k).length,props:t,externalUserId:f,userId:f,component:i,configurableProps:Q,configuredProps:O,dynamicProps:Y,dynamicPropsQueryIsFetching:ce,errors:k,fields:v,optionalPropIsEnabled:T,optionalPropSetEnabled:Mt,propsNeedConfiguring:m,queryDisabledIdx:g,registerField:Xt,setConfiguredProp:Qe,setSubmitting:E,submitting:A,sdkErrors:N,enableDebugging:c,oauthAppConfig:d};return B.jsx(Zi.Provider,{value:On,children:e})};function Qt(e){"@babel/helpers - typeof";return Qt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qt(e)}function Dh(e,t){if(Qt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Qt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sa(e){var t=Dh(e,"string");return Qt(t)=="symbol"?t:t+""}function Yn(e,t,n){return(t=Sa(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ea(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ea(Object(n),!0).forEach(function(r){Yn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ea(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nh(e){if(Array.isArray(e))return e}function Lh(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}function ji(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ka(e,t){if(e){if(typeof e=="string")return ji(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ji(e,t):void 0}}function Rh(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
16
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wt(e,t){return Nh(e)||Lh(e,t)||ka(e,t)||Rh()}function Mh(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function ht(e,t){if(e==null)return{};var n,r,i=Mh(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Xh=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Fa(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,o=e.defaultValue,s=o===void 0?null:o,a=e.inputValue,l=e.menuIsOpen,u=e.onChange,c=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,p=e.value,b=ht(e,Xh),g=G.useState(a!==void 0?a:n),I=wt(g,2),v=I[0],S=I[1],A=G.useState(l!==void 0?l:i),E=wt(A,2),k=E[0],C=E[1],N=G.useState(p!==void 0?p:s),L=wt(N,2),F=L[0],R=L[1],T=G.useCallback(function(le,ve){typeof u=="function"&&u(le,ve),R(le)},[u]),O=G.useCallback(function(le,ve){var y;typeof c=="function"&&(y=c(le,ve)),S(y!==void 0?y:le)},[c]),K=G.useCallback(function(){typeof f=="function"&&f(),C(!0)},[f]),oe=G.useCallback(function(){typeof d=="function"&&d(),C(!1)},[d]),H=a!==void 0?a:v,Y=l!==void 0?l:k,ue=p!==void 0?p:F;return q(q({},b),{},{inputValue:H,menuIsOpen:Y,onChange:T,onInputChange:O,onMenuClose:oe,onMenuOpen:K,value:ue})}function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$.apply(null,arguments)}function zh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Sa(r.key),r)}}function Hh(e,t,n){return t&&Pa(e.prototype,t),n&&Pa(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ji(e,t){return Ji=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Ji(e,t)}function Wh(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ji(e,t)}function Er(e){return Er=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Er(e)}function Ga(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ga=function(){return!!e})()}function Zh(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jh(e,t){if(t&&(Qt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zh(e)}function Jh(e){var t=Ga();return function(){var n,r=Er(e);if(t){var i=Er(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return jh(this,n)}}function Yh(e){if(Array.isArray(e))return ji(e)}function _h(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Uh(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
17
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yn(e){return Yh(e)||_h(e)||ka(e)||Uh()}function qh(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const Qh=Math.min,$h=Math.max,kr=Math.round,Fr=Math.floor,Pr=e=>({x:e,y:e});function Kh(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Gr(){return typeof window<"u"}function Ba(e){return Oa(e)?(e.nodeName||"").toLowerCase():"#document"}function St(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ta(e){var t;return(t=(Oa(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Oa(e){return Gr()?e instanceof Node||e instanceof St(e).Node:!1}function eg(e){return Gr()?e instanceof Element||e instanceof St(e).Element:!1}function Yi(e){return Gr()?e instanceof HTMLElement||e instanceof St(e).HTMLElement:!1}function Va(e){return!Gr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof St(e).ShadowRoot}function Da(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=_i(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function tg(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ng(e){return["html","body","#document"].includes(Ba(e))}function _i(e){return St(e).getComputedStyle(e)}function rg(e){if(Ba(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Va(e)&&e.host||Ta(e);return Va(t)?t.host:t}function Na(e){const t=rg(e);return ng(t)?e.ownerDocument?e.ownerDocument.body:e.body:Yi(t)&&Da(t)?t:Na(t)}function Br(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Na(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=St(i);if(o){const a=Ui(s);return t.concat(s,s.visualViewport||[],Da(i)?i:[],a&&n?Br(a):[])}return t.concat(i,Br(i,[],n))}function Ui(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ig(e){const t=_i(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Yi(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=kr(n)!==o||kr(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function qi(e){return eg(e)?e:e.contextElement}function La(e){const t=qi(e);if(!Yi(t))return Pr(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=ig(t);let s=(o?kr(n.width):n.width)/r,a=(o?kr(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const og=Pr(0);function sg(e){const t=St(e);return!tg()||!t.visualViewport?og:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ag(e,t,n){return!1}function Ra(e,t,n,r){t===void 0&&(t=!1);const i=e.getBoundingClientRect(),o=qi(e);let s=Pr(1);t&&(s=La(e));const a=ag()?sg(o):Pr(0);let l=(i.left+a.x)/s.x,u=(i.top+a.y)/s.y,c=i.width/s.x,d=i.height/s.y;if(o){const f=St(o),p=r;let b=f,g=Ui(b);for(;g&&r&&p!==b;){const I=La(g),v=g.getBoundingClientRect(),S=_i(g),A=v.left+(g.clientLeft+parseFloat(S.paddingLeft))*I.x,E=v.top+(g.clientTop+parseFloat(S.paddingTop))*I.y;l*=I.x,u*=I.y,c*=I.x,d*=I.y,l+=A,u+=E,b=St(g),g=Ui(b)}}return Kh({width:c,height:d,x:l,y:u})}function lg(e,t){let n=null,r;const i=Ta(e);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const{left:u,top:c,width:d,height:f}=e.getBoundingClientRect();if(a||t(),!d||!f)return;const p=Fr(c),b=Fr(i.clientWidth-(u+d)),g=Fr(i.clientHeight-(c+f)),I=Fr(u),S={rootMargin:-p+"px "+-b+"px "+-g+"px "+-I+"px",threshold:$h(0,Qh(1,l))||1};let A=!0;function E(k){const C=k[0].intersectionRatio;if(C!==l){if(!A)return s();C?s(!1,C):r=setTimeout(()=>{s(!1,1e-7)},1e3)}A=!1}try{n=new IntersectionObserver(E,{...S,root:i.ownerDocument})}catch{n=new IntersectionObserver(E,S)}n.observe(e)}return s(!0),o}function ug(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=qi(e),c=i||o?[...u?Br(u):[],...Br(t)]:[];c.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),o&&v.addEventListener("resize",n)});const d=u&&a?lg(u,n):null;let f=-1,p=null;s&&(p=new ResizeObserver(v=>{let[S]=v;S&&S.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var A;(A=p)==null||A.observe(t)})),n()}),u&&!l&&p.observe(u),p.observe(t));let b,g=l?Ra(e):null;l&&I();function I(){const v=Ra(e);g&&(v.x!==g.x||v.y!==g.y||v.width!==g.width||v.height!==g.height)&&n(),g=v,b=requestAnimationFrame(I)}return n(),()=>{var v;c.forEach(S=>{i&&S.removeEventListener("scroll",n),o&&S.removeEventListener("resize",n)}),d==null||d(),(v=p)==null||v.disconnect(),p=null,l&&cancelAnimationFrame(b)}}var Qi=G.useLayoutEffect,cg=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Tr=function(){};function dg(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function pg(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=[].concat(r);if(t&&e)for(var s in t)t.hasOwnProperty(s)&&t[s]&&o.push("".concat(dg(e,s)));return o.filter(function(a){return a}).map(function(a){return String(a).trim()}).join(" ")}var Or=function(t){return Cg(t)?t.filter(Boolean):Qt(t)==="object"&&t!==null?[t]:[]},Ma=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=ht(t,cg);return q({},n)},Se=function(t,n,r){var i=t.cx,o=t.getStyles,s=t.getClassNames,a=t.className;return{css:o(n,t),className:i(r??{},s(n,t),a)}};function Vr(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function fg(e){return Vr(e)?window.innerHeight:e.clientHeight}function Xa(e){return Vr(e)?window.pageYOffset:e.scrollTop}function Dr(e,t){if(Vr(e)){window.scrollTo(0,t);return}e.scrollTop=t}function hg(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function gg(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Nr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Tr,i=Xa(e),o=t-i,s=10,a=0;function l(){a+=s;var u=gg(a,i,o,n);Dr(e,u),a<n?window.requestAnimationFrame(l):r(e)}l()}function za(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?Dr(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&Dr(e,Math.max(t.offsetTop-i,0))}function mg(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function Ha(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function bg(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var Wa=!1,yg={get passive(){return Wa=!0}},Lr=typeof window<"u"?window:{};Lr.addEventListener&&Lr.removeEventListener&&(Lr.addEventListener("p",Tr,yg),Lr.removeEventListener("p",Tr,!1));var vg=Wa;function Ig(e){return e!=null}function Cg(e){return Array.isArray(e)}function _n(e,t,n){return e?t:n}function tv(e){return e}function nv(e){return e}var xg=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=Object.entries(t).filter(function(s){var a=wt(s,1),l=a[0];return!r.includes(l)});return o.reduce(function(s,a){var l=wt(a,2),u=l[0],c=l[1];return s[u]=c,s},{})},Ag=["children","innerProps"],wg=["children","innerProps"];function Sg(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,s=e.isFixedPosition,a=e.controlHeight,l=hg(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=l.getBoundingClientRect(),d=c.height,f=n.getBoundingClientRect(),p=f.bottom,b=f.height,g=f.top,I=n.offsetParent.getBoundingClientRect(),v=I.top,S=s?window.innerHeight:fg(l),A=Xa(l),E=parseInt(getComputedStyle(n).marginBottom,10),k=parseInt(getComputedStyle(n).marginTop,10),C=v-k,N=S-g,L=C+A,F=d-A-g,R=p-S+A+E,T=A+g-k,O=160;switch(i){case"auto":case"bottom":if(N>=b)return{placement:"bottom",maxHeight:t};if(F>=b&&!s)return o&&Nr(l,R,O),{placement:"bottom",maxHeight:t};if(!s&&F>=r||s&&N>=r){o&&Nr(l,R,O);var K=s?N-E:F-E;return{placement:"bottom",maxHeight:K}}if(i==="auto"||s){var oe=t,H=s?C:L;return H>=r&&(oe=Math.min(H-E-a,t)),{placement:"top",maxHeight:oe}}if(i==="bottom")return o&&Dr(l,R),{placement:"bottom",maxHeight:t};break;case"top":if(C>=b)return{placement:"top",maxHeight:t};if(L>=b&&!s)return o&&Nr(l,T,O),{placement:"top",maxHeight:t};if(!s&&L>=r||s&&C>=r){var Y=t;return(!s&&L>=r||s&&C>=r)&&(Y=s?C-k:L-k),o&&Nr(l,T,O),{placement:"top",maxHeight:Y}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return u}function Eg(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var Za=function(t){return t==="auto"?"bottom":t},kg=function(t,n){var r,i=t.placement,o=t.theme,s=o.borderRadius,a=o.spacing,l=o.colors;return q((r={label:"menu"},Yn(r,Eg(i),"100%"),Yn(r,"position","absolute"),Yn(r,"width","100%"),Yn(r,"zIndex",1),r),n?{}:{backgroundColor:l.neutral0,borderRadius:s,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},ja=G.createContext(null),Fg=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,o=t.menuPlacement,s=t.menuPosition,a=t.menuShouldScrollIntoView,l=t.theme,u=G.useContext(ja)||{},c=u.setPortalPlacement,d=G.useRef(null),f=G.useState(i),p=wt(f,2),b=p[0],g=p[1],I=G.useState(null),v=wt(I,2),S=v[0],A=v[1],E=l.spacing.controlHeight;return Qi(function(){var k=d.current;if(k){var C=s==="fixed",N=a&&!C,L=Sg({maxHeight:i,menuEl:k,minHeight:r,placement:o,shouldScroll:N,isFixedPosition:C,controlHeight:E});g(L.maxHeight),A(L.placement),c==null||c(L.placement)}},[i,o,s,a,r,c,E]),n({ref:d,placerProps:q(q({},t),{},{placement:S||Za(o),maxHeight:b})})},Pg=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return _.jsx("div",$({},Se(t,"menu",{menu:!0}),{ref:r},i),n)},Gg=Pg,Bg=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return q({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},Tg=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,o=t.isMulti;return _.jsx("div",$({},Se(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:i},r),n)},Ja=function(t,n){var r=t.theme,i=r.spacing.baseUnit,o=r.colors;return q({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},Og=Ja,Vg=Ja,Dg=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,o=ht(t,Ag);return _.jsx("div",$({},Se(q(q({},o),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},Ng=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,o=ht(t,wg);return _.jsx("div",$({},Se(q(q({},o),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},Lg=function(t){var n=t.rect,r=t.offset,i=t.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},Rg=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,o=t.innerProps,s=t.menuPlacement,a=t.menuPosition,l=G.useRef(null),u=G.useRef(null),c=G.useState(Za(s)),d=wt(c,2),f=d[0],p=d[1],b=G.useMemo(function(){return{setPortalPlacement:p}},[]),g=G.useState(null),I=wt(g,2),v=I[0],S=I[1],A=G.useCallback(function(){if(i){var N=mg(i),L=a==="fixed"?0:window.pageYOffset,F=N[f]+L;(F!==(v==null?void 0:v.offset)||N.left!==(v==null?void 0:v.rect.left)||N.width!==(v==null?void 0:v.rect.width))&&S({offset:F,rect:N})}},[i,a,f,v==null?void 0:v.offset,v==null?void 0:v.rect.left,v==null?void 0:v.rect.width]);Qi(function(){A()},[A]);var E=G.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),i&&l.current&&(u.current=ug(i,l.current,A,{elementResize:"ResizeObserver"in window}))},[i,A]);Qi(function(){E()},[E]);var k=G.useCallback(function(N){l.current=N,E()},[E]);if(!n&&a!=="fixed"||!v)return null;var C=_.jsx("div",$({ref:k},Se(q(q({},t),{},{offset:v.offset,position:a,rect:v.rect}),"menuPortal",{"menu-portal":!0}),o),r);return _.jsx(ja.Provider,{value:b},n?Kr.createPortal(C,n):C)},Mg=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},Xg=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,o=t.isRtl;return _.jsx("div",$({},Se(t,"container",{"--is-disabled":i,"--is-rtl":o}),r),n)},zg=function(t,n){var r=t.theme.spacing,i=t.isMulti,o=t.hasValue,s=t.selectProps.controlShouldRenderValue;return q({alignItems:"center",display:i&&o&&s?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},Hg=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,o=t.hasValue;return _.jsx("div",$({},Se(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o}),r),n)},Wg=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Zg=function(t){var n=t.children,r=t.innerProps;return _.jsx("div",$({},Se(t,"indicatorsContainer",{indicators:!0}),r),n)},Ya,jg=["size"],Jg=["innerProps","isRtl","size"];function Yg(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var _g=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi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ZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:Yg},_a=function(t){var n=t.size,r=ht(t,jg);return _.jsx("svg",$({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:_g},r))},$i=function(t){return _.jsx(_a,$({size:20},t),_.jsx("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Ua=function(t){return _.jsx(_a,$({size:20},t),_.jsx("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},qa=function(t,n){var r=t.isFocused,i=t.theme,o=i.spacing.baseUnit,s=i.colors;return q({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?s.neutral60:s.neutral20,padding:o*2,":hover":{color:r?s.neutral80:s.neutral40}})},Ug=qa,qg=function(t){var n=t.children,r=t.innerProps;return _.jsx("div",$({},Se(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||_.jsx(Ua,null))},Qg=qa,$g=function(t){var n=t.children,r=t.innerProps;return _.jsx("div",$({},Se(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||_.jsx($i,null))},Kg=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing.baseUnit,s=i.colors;return q({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?s.neutral10:s.neutral20,marginBottom:o*2,marginTop:o*2})},em=function(t){var n=t.innerProps;return _.jsx("span",$({},n,Se(t,"indicatorSeparator",{"indicator-separator":!0})))},tm=_.keyframes(Ya||(Ya=qh([`
1
+ (function(Y,P){typeof exports=="object"&&typeof module<"u"?P(exports,require("react/jsx-runtime"),require("react"),require("@tanstack/react-query"),require("@emotion/react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","@tanstack/react-query","@emotion/react","react-dom"],P):(Y=typeof globalThis<"u"?globalThis:Y||self,P(Y["connect-react"]={},Y["react/jsx-runtime"],Y.React,Y.reactQuery,Y["@emotion/react"],Y.ReactDOM))})(this,function(Y,P,F,it,j,ba){"use strict";function ya(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const ce=ya(F);function lm(){}function am(){}function Ia(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const va=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ca=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,xa={};function qr(e,t){return(xa.jsx?Ca:va).test(e)}const Aa=/[ \t\n\f\r]/g;function wa(e){return typeof e=="object"?e.type==="text"?Qr(e.value):!1:Qr(e)}function Qr(e){return e.replace(Aa,"")===""}class Rt{constructor(t,n,i){this.property=t,this.normal=n,i&&(this.space=i)}}Rt.prototype.property={},Rt.prototype.normal={},Rt.prototype.space=null;function $r(e,t){const n={},i={};let r=-1;for(;++r<e.length;)Object.assign(n,e[r].property),Object.assign(i,e[r].normal);return new Rt(n,i,t)}function Zn(e){return e.toLowerCase()}class ze{constructor(t,n){this.property=t,this.attribute=n}}ze.prototype.space=null,ze.prototype.boolean=!1,ze.prototype.booleanish=!1,ze.prototype.overloadedBoolean=!1,ze.prototype.number=!1,ze.prototype.commaSeparated=!1,ze.prototype.spaceSeparated=!1,ze.prototype.commaOrSpaceSeparated=!1,ze.prototype.mustUseProperty=!1,ze.prototype.defined=!1;let Sa=0;const ee=vt(),Ce=vt(),Kr=vt(),L=vt(),ge=vt(),Gt=vt(),De=vt();function vt(){return 2**++Sa}const jn=Object.freeze(Object.defineProperty({__proto__:null,boolean:ee,booleanish:Ce,commaOrSpaceSeparated:De,commaSeparated:Gt,number:L,overloadedBoolean:Kr,spaceSeparated:ge},Symbol.toStringTag,{value:"Module"})),Jn=Object.keys(jn);class Yn extends ze{constructor(t,n,i,r){let o=-1;if(super(t,n),ei(this,"space",r),typeof i=="number")for(;++o<Jn.length;){const l=Jn[o];ei(this,Jn[o],(i&jn[l])===jn[l])}}}Yn.prototype.defined=!0;function ei(e,t,n){n&&(e[t]=n)}const Ea={}.hasOwnProperty;function Bt(e){const t={},n={};let i;for(i in e.properties)if(Ea.call(e.properties,i)){const r=e.properties[i],o=new Yn(i,e.transform(e.attributes||{},i),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(o.mustUseProperty=!0),t[i]=o,n[Zn(i)]=i,n[Zn(o.attribute)]=i}return new Rt(t,n,e.space)}const ti=Bt({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),ni=Bt({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function ri(e,t){return t in e?e[t]:t}function ii(e,t){return ri(e,t.toLowerCase())}const oi=Bt({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:ii,properties:{xmlns:null,xmlnsXLink:null}}),li=Bt({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Ce,ariaAutoComplete:null,ariaBusy:Ce,ariaChecked:Ce,ariaColCount:L,ariaColIndex:L,ariaColSpan:L,ariaControls:ge,ariaCurrent:null,ariaDescribedBy:ge,ariaDetails:null,ariaDisabled:Ce,ariaDropEffect:ge,ariaErrorMessage:null,ariaExpanded:Ce,ariaFlowTo:ge,ariaGrabbed:Ce,ariaHasPopup:null,ariaHidden:Ce,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ge,ariaLevel:L,ariaLive:null,ariaModal:Ce,ariaMultiLine:Ce,ariaMultiSelectable:Ce,ariaOrientation:null,ariaOwns:ge,ariaPlaceholder:null,ariaPosInSet:L,ariaPressed:Ce,ariaReadOnly:Ce,ariaRelevant:null,ariaRequired:Ce,ariaRoleDescription:ge,ariaRowCount:L,ariaRowIndex:L,ariaRowSpan:L,ariaSelected:Ce,ariaSetSize:L,ariaSort:null,ariaValueMax:L,ariaValueMin:L,ariaValueNow:L,ariaValueText:null,role:null}}),ka=Bt({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:ii,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Gt,acceptCharset:ge,accessKey:ge,action:null,allow:null,allowFullScreen:ee,allowPaymentRequest:ee,allowUserMedia:ee,alt:null,as:null,async:ee,autoCapitalize:null,autoComplete:ge,autoFocus:ee,autoPlay:ee,blocking:ge,capture:null,charSet:null,checked:ee,cite:null,className:ge,cols:L,colSpan:null,content:null,contentEditable:Ce,controls:ee,controlsList:ge,coords:L|Gt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ee,defer:ee,dir:null,dirName:null,disabled:ee,download:Kr,draggable:Ce,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ee,formTarget:null,headers:ge,height:L,hidden:ee,high:L,href:null,hrefLang:null,htmlFor:ge,httpEquiv:ge,id:null,imageSizes:null,imageSrcSet:null,inert:ee,inputMode:null,integrity:null,is:null,isMap:ee,itemId:null,itemProp:ge,itemRef:ge,itemScope:ee,itemType:ge,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ee,low:L,manifest:null,max:null,maxLength:L,media:null,method:null,min:null,minLength:L,multiple:ee,muted:ee,name:null,nonce:null,noModule:ee,noValidate:ee,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:ee,optimum:L,pattern:null,ping:ge,placeholder:null,playsInline:ee,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ee,referrerPolicy:null,rel:ge,required:ee,reversed:ee,rows:L,rowSpan:L,sandbox:ge,scope:null,scoped:ee,seamless:ee,selected:ee,shadowRootClonable:ee,shadowRootDelegatesFocus:ee,shadowRootMode:null,shape:null,size:L,sizes:null,slot:null,span:L,spellCheck:Ce,src:null,srcDoc:null,srcLang:null,srcSet:null,start:L,step:null,style:null,tabIndex:L,target:null,title:null,translate:null,type:null,typeMustMatch:ee,useMap:null,value:Ce,width:L,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ge,axis:null,background:null,bgColor:null,border:L,borderColor:null,bottomMargin:L,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ee,declare:ee,event:null,face:null,frame:null,frameBorder:null,hSpace:L,leftMargin:L,link:null,longDesc:null,lowSrc:null,marginHeight:L,marginWidth:L,noResize:ee,noHref:ee,noShade:ee,noWrap:ee,object:null,profile:null,prompt:null,rev:null,rightMargin:L,rules:null,scheme:null,scrolling:Ce,standby:null,summary:null,text:null,topMargin:L,valueType:null,version:null,vAlign:null,vLink:null,vSpace:L,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ee,disableRemotePlayback:ee,prefix:null,property:null,results:L,security:null,unselectable:null}}),Fa=Bt({space:"svg",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"},transform:ri,properties:{about:De,accentHeight:L,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:L,amplitude:L,arabicForm:null,ascent:L,attributeName:null,attributeType:null,azimuth:L,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:L,by:null,calcMode:null,capHeight:L,className:ge,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:L,diffuseConstant:L,direction:null,display:null,dur:null,divisor:L,dominantBaseline:null,download:ee,dx:null,dy:null,edgeMode:null,editable:null,elevation:L,enableBackground:null,end:null,event:null,exponent:L,externalResourcesRequired:null,fill:null,fillOpacity:L,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:Gt,g2:Gt,glyphName:Gt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:L,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:L,horizOriginX:L,horizOriginY:L,id:null,ideographic:L,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:L,k:L,k1:L,k2:L,k3:L,k4:L,kernelMatrix:De,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:L,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:L,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:L,overlineThickness:L,paintOrder:null,panose1:null,path:null,pathLength:L,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ge,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:L,pointsAtY:L,pointsAtZ:L,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:De,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:De,rev:De,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:De,requiredFeatures:De,requiredFonts:De,requiredFormats:De,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:L,specularExponent:L,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:L,strikethroughThickness:L,string:null,stroke:null,strokeDashArray:De,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:L,strokeOpacity:L,strokeWidth:null,style:null,surfaceScale:L,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:De,tabIndex:L,tableValues:null,target:null,targetX:L,targetY:L,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:De,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:L,underlineThickness:L,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:L,values:null,vAlphabetic:L,vMathematical:L,vectorEffect:null,vHanging:L,vIdeographic:L,version:null,vertAdvY:L,vertOriginX:L,vertOriginY:L,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:L,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Ga=/^data[-\w.:]+$/i,ai=/-[a-z]/g,Ba=/[A-Z]/g;function Pa(e,t){const n=Zn(t);let i=t,r=ze;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Ga.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(ai,Va);i="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!ai.test(o)){let l=o.replace(Ba,Ta);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}r=Yn}return new r(i,t)}function Ta(e){return"-"+e.toLowerCase()}function Va(e){return e.charAt(1).toUpperCase()}const Oa={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"},Na=$r([ni,ti,oi,li,ka],"html"),_n=$r([ni,ti,oi,li,Fa],"svg");function Da(e){return e.join(" ").trim()}var Pt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ui(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var si={},ci=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,La=/\n/g,Ma=/^\s*/,Ra=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Xa=/^:\s*/,za=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ha=/^[;\s]*/,Wa=/^\s+|\s+$/g,Za=`
2
+ `,pi="/",di="*",Ct="",ja="comment",Ja="declaration",Ya=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,i=1;function r(y){var b=y.match(La);b&&(n+=b.length);var x=y.lastIndexOf(Za);i=~x?y.length-x:i+y.length}function o(){var y={line:n,column:i};return function(b){return b.position=new l(y),s(),b}}function l(y){this.start=y,this.end={line:n,column:i},this.source=t.source}l.prototype.content=e;function u(y){var b=new Error(t.source+":"+n+":"+i+": "+y);if(b.reason=y,b.filename=t.source,b.line=n,b.column=i,b.source=e,!t.silent)throw b}function a(y){var b=y.exec(e);if(b){var x=b[0];return r(x),e=e.slice(x.length),b}}function s(){a(Ma)}function c(y){var b;for(y=y||[];b=d();)b!==!1&&y.push(b);return y}function d(){var y=o();if(!(pi!=e.charAt(0)||di!=e.charAt(1))){for(var b=2;Ct!=e.charAt(b)&&(di!=e.charAt(b)||pi!=e.charAt(b+1));)++b;if(b+=2,Ct===e.charAt(b-1))return u("End of comment missing");var x=e.slice(2,b-2);return i+=2,r(x),e=e.slice(b),i+=2,y({type:ja,comment:x})}}function f(){var y=o(),b=a(Ra);if(b){if(d(),!a(Xa))return u("property missing ':'");var x=a(za),I=y({type:Ja,property:fi(b[0].replace(ci,Ct)),value:x?fi(x[0].replace(ci,Ct)):Ct});return a(Ha),I}}function p(){var y=[];c(y);for(var b;b=f();)b!==!1&&(y.push(b),c(y));return y}return s(),p()};function fi(e){return e?e.replace(Wa,Ct):Ct}var _a=Pt&&Pt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(si,"__esModule",{value:!0});var gi=si.default=qa,Ua=_a(Ya);function qa(e,t){var n=null;if(!e||typeof e!="string")return n;var i=(0,Ua.default)(e),r=typeof t=="function";return i.forEach(function(o){if(o.type==="declaration"){var l=o.property,u=o.value;r?t(l,u,o):u&&(n=n||{},n[l]=u)}}),n}const Qa=gi.default||gi,hi=mi("end"),Un=mi("start");function mi(e){return t;function t(n){const i=n&&n.position&&n.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function $a(e){const t=Un(e),n=hi(e);if(t&&n)return{start:t,end:n}}function Xt(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?bi(e.position):"start"in e||"end"in e?bi(e):"line"in e||"column"in e?qn(e):""}function qn(e){return yi(e&&e.line)+":"+yi(e&&e.column)}function bi(e){return qn(e&&e.start)+"-"+qn(e&&e.end)}function yi(e){return e&&typeof e=="number"?e:1}class Fe extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let r="",o={},l=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?r=t:!o.cause&&t&&(l=!0,r=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof i=="string"){const a=i.indexOf(":");a===-1?o.ruleId=i:(o.source=i.slice(0,a),o.ruleId=i.slice(a+1))}if(!o.place&&o.ancestors&&o.ancestors){const a=o.ancestors[o.ancestors.length-1];a&&(o.place=a.position)}const u=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=u?u.line:void 0,this.name=Xt(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}Fe.prototype.file="",Fe.prototype.name="",Fe.prototype.reason="",Fe.prototype.message="",Fe.prototype.stack="",Fe.prototype.column=void 0,Fe.prototype.line=void 0,Fe.prototype.ancestors=void 0,Fe.prototype.cause=void 0,Fe.prototype.fatal=void 0,Fe.prototype.place=void 0,Fe.prototype.ruleId=void 0,Fe.prototype.source=void 0;const Qn={}.hasOwnProperty,Ka=new Map,eu=/[A-Z]/g,tu=/-([a-z])/g,nu=new Set(["table","tbody","thead","tfoot","tr"]),ru=new Set(["td","th"]),Ii="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function iu(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=du(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=pu(n,t.jsx,t.jsxs)}const r={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?_n:Na,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=vi(r,e,void 0);return o&&typeof o!="string"?o:r.create(e,r.Fragment,{children:o||void 0},void 0)}function vi(e,t,n){if(t.type==="element")return ou(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return lu(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return uu(e,t,n);if(t.type==="mdxjsEsm")return au(e,t);if(t.type==="root")return su(e,t,n);if(t.type==="text")return cu(e,t)}function ou(e,t,n){const i=e.schema;let r=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(r=_n,e.schema=r),e.ancestors.push(t);const o=xi(e,t.tagName,!1),l=fu(e,t);let u=Kn(e,t);return nu.has(t.tagName)&&(u=u.filter(function(a){return typeof a=="string"?!wa(a):!0})),Ci(e,l,o,t),$n(l,u),e.ancestors.pop(),e.schema=i,e.create(t,o,l,n)}function lu(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}zt(e,t.position)}function au(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);zt(e,t.position)}function uu(e,t,n){const i=e.schema;let r=i;t.name==="svg"&&i.space==="html"&&(r=_n,e.schema=r),e.ancestors.push(t);const o=t.name===null?e.Fragment:xi(e,t.name,!0),l=gu(e,t),u=Kn(e,t);return Ci(e,l,o,t),$n(l,u),e.ancestors.pop(),e.schema=i,e.create(t,o,l,n)}function su(e,t,n){const i={};return $n(i,Kn(e,t)),e.create(t,e.Fragment,i,n)}function cu(e,t){return t.value}function Ci(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function $n(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function pu(e,t,n){return i;function i(r,o,l,u){const s=Array.isArray(l.children)?n:t;return u?s(o,l,u):s(o,l)}}function du(e,t){return n;function n(i,r,o,l){const u=Array.isArray(o.children),a=Un(i);return t(r,o,l,u,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}function fu(e,t){const n={};let i,r;for(r in t.properties)if(r!=="children"&&Qn.call(t.properties,r)){const o=hu(e,r,t.properties[r]);if(o){const[l,u]=o;e.tableCellAlignToStyle&&l==="align"&&typeof u=="string"&&ru.has(t.tagName)?i=u:n[l]=u}}if(i){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function gu(e,t){const n={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const o=i.data.estree.body[0];o.type;const l=o.expression;l.type;const u=l.properties[0];u.type,Object.assign(n,e.evaluater.evaluateExpression(u.argument))}else zt(e,t.position);else{const r=i.name;let o;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const u=i.value.data.estree.body[0];u.type,o=e.evaluater.evaluateExpression(u.expression)}else zt(e,t.position);else o=i.value===null?!0:i.value;n[r]=o}return n}function Kn(e,t){const n=[];let i=-1;const r=e.passKeys?new Map:Ka;for(;++i<t.children.length;){const o=t.children[i];let l;if(e.passKeys){const a=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(a){const s=r.get(a)||0;l=a+"-"+s,r.set(a,s+1)}}const u=vi(e,o,l);u!==void 0&&n.push(u)}return n}function hu(e,t,n){const i=Pa(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?Ia(n):Da(n)),i.property==="style"){let r=typeof n=="object"?n:mu(e,String(n));return e.stylePropertyNameCase==="css"&&(r=bu(r)),["style",r]}return[e.elementAttributeNameCase==="react"&&i.space?Oa[i.property]||i.property:i.attribute,n]}}function mu(e,t){const n={};try{Qa(t,i)}catch(r){if(!e.ignoreInvalidStyle){const o=r,l=new Fe("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=Ii+"#cannot-parse-style-attribute",l}}return n;function i(r,o){let l=r;l.slice(0,2)!=="--"&&(l.slice(0,4)==="-ms-"&&(l="ms-"+l.slice(4)),l=l.replace(tu,Iu)),n[l]=o}}function xi(e,t,n){let i;if(!n)i={type:"Literal",value:t};else if(t.includes(".")){const r=t.split(".");let o=-1,l;for(;++o<r.length;){const u=qr(r[o])?{type:"Identifier",name:r[o]}:{type:"Literal",value:r[o]};l=l?{type:"MemberExpression",object:l,property:u,computed:!!(o&&u.type==="Literal"),optional:!1}:u}i=l}else i=qr(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const r=i.value;return Qn.call(e.components,r)?e.components[r]:r}if(e.evaluater)return e.evaluater.evaluateExpression(i);zt(e)}function zt(e,t){const n=new Fe("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Ii+"#cannot-handle-mdx-estrees-without-createevaluater",n}function bu(e){const t={};let n;for(n in e)Qn.call(e,n)&&(t[yu(n)]=e[n]);return t}function yu(e){let t=e.replace(eu,vu);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Iu(e,t){return t.toUpperCase()}function vu(e){return"-"+e.toLowerCase()}const er={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"]},Cu={};function xu(e,t){const n=Cu,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,r=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Ai(e,i,r)}function Ai(e,t,n){if(Au(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return wi(e.children,t,n)}return Array.isArray(e)?wi(e,t,n):""}function wi(e,t,n){const i=[];let r=-1;for(;++r<e.length;)i[r]=Ai(e[r],t,n);return i.join("")}function Au(e){return!!(e&&typeof e=="object")}const rn={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
3
+ `,Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"​",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"⁡",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"⁣",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"},wu={}.hasOwnProperty;function Si(e){return wu.call(rn,e)?rn[e]:!1}function Ue(e,t,n,i){const r=e.length;let o=0,l;if(t<0?t=-t>r?0:r+t:t=t>r?r:t,n=n>0?n:0,i.length<1e4)l=Array.from(i),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o<i.length;)l=i.slice(o,o+1e4),l.unshift(t,0),e.splice(...l),o+=1e4,t+=1e4}function He(e,t){return e.length>0?(Ue(e,e.length,0,t),e):t}const Ei={}.hasOwnProperty;function Su(e){const t={};let n=-1;for(;++n<e.length;)Eu(t,e[n]);return t}function Eu(e,t){let n;for(n in t){const r=(Ei.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let l;if(o)for(l in o){Ei.call(r,l)||(r[l]=[]);const u=o[l];ku(r[l],Array.isArray(u)?u:u?[u]:[])}}}function ku(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);Ue(e,0,0,i)}function ki(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Tt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const qe=pt(/[A-Za-z]/),Le=pt(/[\dA-Za-z]/),Fu=pt(/[#-'*+\--9=?A-Z^-~]/);function tr(e){return e!==null&&(e<32||e===127)}const nr=pt(/\d/),Gu=pt(/[\dA-Fa-f]/),Bu=pt(/[!-/:-@[-`{-~]/);function K(e){return e!==null&&e<-2}function Te(e){return e!==null&&(e<0||e===32)}function pe(e){return e===-2||e===-1||e===32}const Pu=pt(new RegExp("\\p{P}|\\p{S}","u")),Tu=pt(/\s/);function pt(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Vt(e){const t=[];let n=-1,i=0,r=0;for(;++n<e.length;){const o=e.charCodeAt(n);let l="";if(o===37&&Le(e.charCodeAt(n+1))&&Le(e.charCodeAt(n+2)))r=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const u=e.charCodeAt(n+1);o<56320&&u>56319&&u<57344?(l=String.fromCharCode(o,u),r=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(i,n),encodeURIComponent(l)),i=n+r+1,l=""),r&&(n+=r,r=0)}return t.join("")+e.slice(i)}function he(e,t,n,i){const r=i?i-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(a){return pe(a)?(e.enter(n),u(a)):t(a)}function u(a){return pe(a)&&o++<r?(e.consume(a),u):(e.exit(n),t(a))}}const Vu={tokenize:Ou};function Ou(e){const t=e.attempt(this.parser.constructs.contentInitial,i,r);let n;return t;function i(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),he(e,t,"linePrefix")}function r(u){return e.enter("paragraph"),o(u)}function o(u){const a=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=a),n=a,l(u)}function l(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return K(u)?(e.consume(u),e.exit("chunkText"),o):(e.consume(u),l)}}const Nu={tokenize:Du},Fi={tokenize:Lu};function Du(e){const t=this,n=[];let i=0,r,o,l;return u;function u(A){if(i<n.length){const E=n[i];return t.containerState=E[1],e.attempt(E[0].continuation,a,s)(A)}return s(A)}function a(A){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&S();const E=t.events.length;let k=E,C;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){C=t.events[k][1].end;break}I(i);let M=E;for(;M<t.events.length;)t.events[M][1].end={...C},M++;return Ue(t.events,k+1,0,t.events.slice(E)),t.events.length=M,s(A)}return u(A)}function s(A){if(i===n.length){if(!r)return f(A);if(r.currentConstruct&&r.currentConstruct.concrete)return y(A);t.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Fi,c,d)(A)}function c(A){return r&&S(),I(i),f(A)}function d(A){return t.parser.lazy[t.now().line]=i!==n.length,l=t.now().offset,y(A)}function f(A){return t.containerState={},e.attempt(Fi,p,y)(A)}function p(A){return i++,n.push([t.currentConstruct,t.containerState]),f(A)}function y(A){if(A===null){r&&S(),I(0),e.consume(A);return}return r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),b(A)}function b(A){if(A===null){x(e.exit("chunkFlow"),!0),I(0),e.consume(A);return}return K(A)?(e.consume(A),x(e.exit("chunkFlow")),i=0,t.interrupt=void 0,u):(e.consume(A),b)}function x(A,E){const k=t.sliceStream(A);if(E&&k.push(null),A.previous=o,o&&(o.next=A),o=A,r.defineSkip(A.start),r.write(k),t.parser.lazy[A.start.line]){let C=r.events.length;for(;C--;)if(r.events[C][1].start.offset<l&&(!r.events[C][1].end||r.events[C][1].end.offset>l))return;const M=t.events.length;let V=M,D,O;for(;V--;)if(t.events[V][0]==="exit"&&t.events[V][1].type==="chunkFlow"){if(D){O=t.events[V][1].end;break}D=!0}for(I(i),C=M;C<t.events.length;)t.events[C][1].end={...O},C++;Ue(t.events,V+1,0,t.events.slice(M)),t.events.length=C}}function I(A){let E=n.length;for(;E-- >A;){const k=n[E];t.containerState=k[1],k[0].exit.call(t,e)}n.length=A}function S(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}function Lu(e,t,n){return he(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Gi(e){if(e===null||Te(e)||Tu(e))return 1;if(Pu(e))return 2}function rr(e,t,n){const i=[];let r=-1;for(;++r<e.length;){const o=e[r].resolveAll;o&&!i.includes(o)&&(t=o(t,n),i.push(o))}return t}const ir={name:"attention",resolveAll:Mu,tokenize:Ru};function Mu(e,t){let n=-1,i,r,o,l,u,a,s,c;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;a=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[i][1].end},f={...e[n][1].start};Bi(d,-a),Bi(f,a),l={type:a>1?"strongSequence":"emphasisSequence",start:d,end:{...e[i][1].end}},u={type:a>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},o={type:a>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},r={type:a>1?"strong":"emphasis",start:{...l.start},end:{...u.end}},e[i][1].end={...l.start},e[n][1].start={...u.end},s=[],e[i][1].end.offset-e[i][1].start.offset&&(s=He(s,[["enter",e[i][1],t],["exit",e[i][1],t]])),s=He(s,[["enter",r,t],["enter",l,t],["exit",l,t],["enter",o,t]]),s=He(s,rr(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),s=He(s,[["exit",o,t],["enter",u,t],["exit",u,t],["exit",r,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,s=He(s,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,Ue(e,i-1,n-i+3,s),n=i+s.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Ru(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,r=Gi(i);let o;return l;function l(a){return o=a,e.enter("attentionSequence"),u(a)}function u(a){if(a===o)return e.consume(a),u;const s=e.exit("attentionSequence"),c=Gi(a),d=!c||c===2&&r||n.includes(a),f=!r||r===2&&c||n.includes(i);return s._open=!!(o===42?d:d&&(r||!f)),s._close=!!(o===42?f:f&&(c||!d)),t(a)}}function Bi(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Xu={name:"autolink",tokenize:zu};function zu(e,t,n){let i=0;return r;function r(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(p){return qe(p)?(e.consume(p),l):p===64?n(p):s(p)}function l(p){return p===43||p===45||p===46||Le(p)?(i=1,u(p)):s(p)}function u(p){return p===58?(e.consume(p),i=0,a):(p===43||p===45||p===46||Le(p))&&i++<32?(e.consume(p),u):(i=0,s(p))}function a(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||tr(p)?n(p):(e.consume(p),a)}function s(p){return p===64?(e.consume(p),c):Fu(p)?(e.consume(p),s):n(p)}function c(p){return Le(p)?d(p):n(p)}function d(p){return p===46?(e.consume(p),i=0,c):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):f(p)}function f(p){if((p===45||Le(p))&&i++<63){const y=p===45?f:d;return e.consume(p),y}return n(p)}}const on={partial:!0,tokenize:Hu};function Hu(e,t,n){return i;function i(o){return pe(o)?he(e,r,"linePrefix")(o):r(o)}function r(o){return o===null||K(o)?t(o):n(o)}}const Pi={continuation:{tokenize:Zu},exit:ju,name:"blockQuote",tokenize:Wu};function Wu(e,t,n){const i=this;return r;function r(l){if(l===62){const u=i.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return n(l)}function o(l){return pe(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function Zu(e,t,n){const i=this;return r;function r(l){return pe(l)?he(e,o,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(Pi,t,n)(l)}}function ju(e){e.exit("blockQuote")}const Ti={name:"characterEscape",tokenize:Ju};function Ju(e,t,n){return i;function i(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),r}function r(o){return Bu(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const Vi={name:"characterReference",tokenize:Yu};function Yu(e,t,n){const i=this;let r=0,o,l;return u;function u(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),a}function a(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),o=31,l=Le,c(d))}function s(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=Gu,c):(e.enter("characterReferenceValue"),o=7,l=nr,c(d))}function c(d){if(d===59&&r){const f=e.exit("characterReferenceValue");return l===Le&&!Si(i.sliceSerialize(f))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(d)&&r++<o?(e.consume(d),c):n(d)}}const Oi={partial:!0,tokenize:Uu},Ni={concrete:!0,name:"codeFenced",tokenize:_u};function _u(e,t,n){const i=this,r={partial:!0,tokenize:k};let o=0,l=0,u;return a;function a(C){return s(C)}function s(C){const M=i.events[i.events.length-1];return o=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,u=C,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(C)}function c(C){return C===u?(l++,e.consume(C),c):l<3?n(C):(e.exit("codeFencedFenceSequence"),pe(C)?he(e,d,"whitespace")(C):d(C))}function d(C){return C===null||K(C)?(e.exit("codeFencedFence"),i.interrupt?t(C):e.check(Oi,b,E)(C)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(C))}function f(C){return C===null||K(C)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(C)):pe(C)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),he(e,p,"whitespace")(C)):C===96&&C===u?n(C):(e.consume(C),f)}function p(C){return C===null||K(C)?d(C):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(C))}function y(C){return C===null||K(C)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(C)):C===96&&C===u?n(C):(e.consume(C),y)}function b(C){return e.attempt(r,E,x)(C)}function x(C){return e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),I}function I(C){return o>0&&pe(C)?he(e,S,"linePrefix",o+1)(C):S(C)}function S(C){return C===null||K(C)?e.check(Oi,b,E)(C):(e.enter("codeFlowValue"),A(C))}function A(C){return C===null||K(C)?(e.exit("codeFlowValue"),S(C)):(e.consume(C),A)}function E(C){return e.exit("codeFenced"),t(C)}function k(C,M,V){let D=0;return O;function O(X){return C.enter("lineEnding"),C.consume(X),C.exit("lineEnding"),N}function N(X){return C.enter("codeFencedFence"),pe(X)?he(C,T,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(X):T(X)}function T(X){return X===u?(C.enter("codeFencedFenceSequence"),$(X)):V(X)}function $(X){return X===u?(D++,C.consume(X),$):D>=l?(C.exit("codeFencedFenceSequence"),pe(X)?he(C,ne,"whitespace")(X):ne(X)):V(X)}function ne(X){return X===null||K(X)?(C.exit("codeFencedFence"),M(X)):V(X)}}}function Uu(e,t,n){const i=this;return r;function r(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return i.parser.lazy[i.now().line]?n(l):t(l)}}const or={name:"codeIndented",tokenize:Qu},qu={partial:!0,tokenize:$u};function Qu(e,t,n){const i=this;return r;function r(s){return e.enter("codeIndented"),he(e,o,"linePrefix",5)(s)}function o(s){const c=i.events[i.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?l(s):n(s)}function l(s){return s===null?a(s):K(s)?e.attempt(qu,l,a)(s):(e.enter("codeFlowValue"),u(s))}function u(s){return s===null||K(s)?(e.exit("codeFlowValue"),l(s)):(e.consume(s),u)}function a(s){return e.exit("codeIndented"),t(s)}}function $u(e,t,n){const i=this;return r;function r(l){return i.parser.lazy[i.now().line]?n(l):K(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),r):he(e,o,"linePrefix",5)(l)}function o(l){const u=i.events[i.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(l):K(l)?r(l):n(l)}}const Ku={name:"codeText",previous:ts,resolve:es,tokenize:ns};function es(e){let t=e.length-4,n=3,i,r;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)r===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(r=i):(i===t||e[i][1].type==="lineEnding")&&(e[r][1].type="codeTextData",i!==r+2&&(e[r][1].end=e[i-1][1].end,e.splice(r+2,i-r-2),t-=i-r-2,i=r+2),r=void 0);return e}function ts(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ns(e,t,n){let i=0,r,o;return l;function l(d){return e.enter("codeText"),e.enter("codeTextSequence"),u(d)}function u(d){return d===96?(e.consume(d),i++,u):(e.exit("codeTextSequence"),a(d))}function a(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),a):d===96?(o=e.enter("codeTextSequence"),r=0,c(d)):K(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),a):(e.enter("codeTextData"),s(d))}function s(d){return d===null||d===32||d===96||K(d)?(e.exit("codeTextData"),a(d)):(e.consume(d),s)}function c(d){return d===96?(e.consume(d),r++,c):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(o.type="codeTextData",s(d))}}class rs{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const r=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return i&&Ht(this.left,i),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Ht(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ht(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Ht(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ht(this.left,n.reverse())}}}function Ht(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Di(e){const t={};let n=-1,i,r,o,l,u,a,s;const c=new rs(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(i=c.get(n),n&&i[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(a=i[1]._tokenizer.events,o=0,o<a.length&&a[o][1].type==="lineEndingBlank"&&(o+=2),o<a.length&&a[o][1].type==="content"))for(;++o<a.length&&a[o][1].type!=="content";)a[o][1].type==="chunkText"&&(a[o][1]._isInFirstContentOfListItem=!0,o++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,is(c,n)),n=t[n],s=!0);else if(i[1]._container){for(o=n,r=void 0;o--&&(l=c.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank");)l[0]==="enter"&&(r&&(c.get(r)[1].type="lineEndingBlank"),l[1].type="lineEnding",r=o);r&&(i[1].end={...c.get(r)[1].start},u=c.slice(r,n),u.unshift(i),c.splice(r,n-r+1,u))}}return Ue(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!s}function is(e,t){const n=e.get(t)[1],i=e.get(t)[2];let r=t-1;const o=[],l=n._tokenizer||i.parser[n.contentType](n.start),u=l.events,a=[],s={};let c,d,f=-1,p=n,y=0,b=0;const x=[b];for(;p;){for(;e.get(++r)[1]!==p;);o.push(r),p._tokenizer||(c=i.sliceStream(p),p.next||c.push(null),d&&l.defineSkip(p.start),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(c),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<u.length;)u[f][0]==="exit"&&u[f-1][0]==="enter"&&u[f][1].type===u[f-1][1].type&&u[f][1].start.line!==u[f][1].end.line&&(b=f+1,x.push(b),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(l.events=[],p?(p._tokenizer=void 0,p.previous=void 0):x.pop(),f=x.length;f--;){const I=u.slice(x[f],x[f+1]),S=o.pop();a.push([S,S+I.length-1]),e.splice(S,2,I)}for(a.reverse(),f=-1;++f<a.length;)s[y+a[f][0]]=y+a[f][1],y+=a[f][1]-a[f][0]-1;return s}const os={resolve:as,tokenize:us},ls={partial:!0,tokenize:ss};function as(e){return Di(e),e}function us(e,t){let n;return i;function i(u){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(u)}function r(u){return u===null?o(u):K(u)?e.check(ls,l,o)(u):(e.consume(u),r)}function o(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function l(u){return e.consume(u),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}function ss(e,t,n){const i=this;return r;function r(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),he(e,o,"linePrefix")}function o(l){if(l===null||K(l))return n(l);const u=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(l):e.interrupt(i.parser.constructs.flow,n,t)(l)}}function Li(e,t,n,i,r,o,l,u,a){const s=a||Number.POSITIVE_INFINITY;let c=0;return d;function d(I){return I===60?(e.enter(i),e.enter(r),e.enter(o),e.consume(I),e.exit(o),f):I===null||I===32||I===41||tr(I)?n(I):(e.enter(i),e.enter(l),e.enter(u),e.enter("chunkString",{contentType:"string"}),b(I))}function f(I){return I===62?(e.enter(o),e.consume(I),e.exit(o),e.exit(r),e.exit(i),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),p(I))}function p(I){return I===62?(e.exit("chunkString"),e.exit(u),f(I)):I===null||I===60||K(I)?n(I):(e.consume(I),I===92?y:p)}function y(I){return I===60||I===62||I===92?(e.consume(I),p):p(I)}function b(I){return!c&&(I===null||I===41||Te(I))?(e.exit("chunkString"),e.exit(u),e.exit(l),e.exit(i),t(I)):c<s&&I===40?(e.consume(I),c++,b):I===41?(e.consume(I),c--,b):I===null||I===32||I===40||tr(I)?n(I):(e.consume(I),I===92?x:b)}function x(I){return I===40||I===41||I===92?(e.consume(I),b):b(I)}}function Mi(e,t,n,i,r,o){const l=this;let u=0,a;return s;function s(p){return e.enter(i),e.enter(r),e.consume(p),e.exit(r),e.enter(o),c}function c(p){return u>999||p===null||p===91||p===93&&!a||p===94&&!u&&"_hiddenFootnoteSupport"in l.parser.constructs?n(p):p===93?(e.exit(o),e.enter(r),e.consume(p),e.exit(r),e.exit(i),t):K(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||K(p)||u++>999?(e.exit("chunkString"),c(p)):(e.consume(p),a||(a=!pe(p)),p===92?f:d)}function f(p){return p===91||p===92||p===93?(e.consume(p),u++,d):d(p)}}function Ri(e,t,n,i,r,o){let l;return u;function u(f){return f===34||f===39||f===40?(e.enter(i),e.enter(r),e.consume(f),e.exit(r),l=f===40?41:f,a):n(f)}function a(f){return f===l?(e.enter(r),e.consume(f),e.exit(r),e.exit(i),t):(e.enter(o),s(f))}function s(f){return f===l?(e.exit(o),a(l)):f===null?n(f):K(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),he(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===l||f===null||K(f)?(e.exit("chunkString"),s(f)):(e.consume(f),f===92?d:c)}function d(f){return f===l||f===92?(e.consume(f),c):c(f)}}function Wt(e,t){let n;return i;function i(r){return K(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n=!0,i):pe(r)?he(e,i,n?"linePrefix":"lineSuffix")(r):t(r)}}const cs={name:"definition",tokenize:ds},ps={partial:!0,tokenize:fs};function ds(e,t,n){const i=this;let r;return o;function o(p){return e.enter("definition"),l(p)}function l(p){return Mi.call(i,e,u,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function u(p){return r=Tt(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),a):n(p)}function a(p){return Te(p)?Wt(e,s)(p):s(p)}function s(p){return Li(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(ps,d,d)(p)}function d(p){return pe(p)?he(e,f,"whitespace")(p):f(p)}function f(p){return p===null||K(p)?(e.exit("definition"),i.parser.defined.push(r),t(p)):n(p)}}function fs(e,t,n){return i;function i(u){return Te(u)?Wt(e,r)(u):n(u)}function r(u){return Ri(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function o(u){return pe(u)?he(e,l,"whitespace")(u):l(u)}function l(u){return u===null||K(u)?t(u):n(u)}}const gs={name:"hardBreakEscape",tokenize:hs};function hs(e,t,n){return i;function i(o){return e.enter("hardBreakEscape"),e.consume(o),r}function r(o){return K(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const ms={name:"headingAtx",resolve:bs,tokenize:ys};function bs(e,t){let n=e.length-2,i=3,r,o;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(r={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},o={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},Ue(e,i,n-i+1,[["enter",r,t],["enter",o,t],["exit",o,t],["exit",r,t]])),e}function ys(e,t,n){let i=0;return r;function r(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),l(c)}function l(c){return c===35&&i++<6?(e.consume(c),l):c===null||Te(c)?(e.exit("atxHeadingSequence"),u(c)):n(c)}function u(c){return c===35?(e.enter("atxHeadingSequence"),a(c)):c===null||K(c)?(e.exit("atxHeading"),t(c)):pe(c)?he(e,u,"whitespace")(c):(e.enter("atxHeadingText"),s(c))}function a(c){return c===35?(e.consume(c),a):(e.exit("atxHeadingSequence"),u(c))}function s(c){return c===null||c===35||Te(c)?(e.exit("atxHeadingText"),u(c)):(e.consume(c),s)}}const Is=["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"],Xi=["pre","script","style","textarea"],vs={concrete:!0,name:"htmlFlow",resolveTo:As,tokenize:ws},Cs={partial:!0,tokenize:Es},xs={partial:!0,tokenize:Ss};function As(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function ws(e,t,n){const i=this;let r,o,l,u,a;return s;function s(h){return c(h)}function c(h){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(h),d}function d(h){return h===33?(e.consume(h),f):h===47?(e.consume(h),o=!0,b):h===63?(e.consume(h),r=3,i.interrupt?t:m):qe(h)?(e.consume(h),l=String.fromCharCode(h),x):n(h)}function f(h){return h===45?(e.consume(h),r=2,p):h===91?(e.consume(h),r=5,u=0,y):qe(h)?(e.consume(h),r=4,i.interrupt?t:m):n(h)}function p(h){return h===45?(e.consume(h),i.interrupt?t:m):n(h)}function y(h){const se="CDATA[";return h===se.charCodeAt(u++)?(e.consume(h),u===se.length?i.interrupt?t:T:y):n(h)}function b(h){return qe(h)?(e.consume(h),l=String.fromCharCode(h),x):n(h)}function x(h){if(h===null||h===47||h===62||Te(h)){const se=h===47,U=l.toLowerCase();return!se&&!o&&Xi.includes(U)?(r=1,i.interrupt?t(h):T(h)):Is.includes(l.toLowerCase())?(r=6,se?(e.consume(h),I):i.interrupt?t(h):T(h)):(r=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(h):o?S(h):A(h))}return h===45||Le(h)?(e.consume(h),l+=String.fromCharCode(h),x):n(h)}function I(h){return h===62?(e.consume(h),i.interrupt?t:T):n(h)}function S(h){return pe(h)?(e.consume(h),S):O(h)}function A(h){return h===47?(e.consume(h),O):h===58||h===95||qe(h)?(e.consume(h),E):pe(h)?(e.consume(h),A):O(h)}function E(h){return h===45||h===46||h===58||h===95||Le(h)?(e.consume(h),E):k(h)}function k(h){return h===61?(e.consume(h),C):pe(h)?(e.consume(h),k):A(h)}function C(h){return h===null||h===60||h===61||h===62||h===96?n(h):h===34||h===39?(e.consume(h),a=h,M):pe(h)?(e.consume(h),C):V(h)}function M(h){return h===a?(e.consume(h),a=null,D):h===null||K(h)?n(h):(e.consume(h),M)}function V(h){return h===null||h===34||h===39||h===47||h===60||h===61||h===62||h===96||Te(h)?k(h):(e.consume(h),V)}function D(h){return h===47||h===62||pe(h)?A(h):n(h)}function O(h){return h===62?(e.consume(h),N):n(h)}function N(h){return h===null||K(h)?T(h):pe(h)?(e.consume(h),N):n(h)}function T(h){return h===45&&r===2?(e.consume(h),Z):h===60&&r===1?(e.consume(h),oe):h===62&&r===4?(e.consume(h),be):h===63&&r===3?(e.consume(h),m):h===93&&r===5?(e.consume(h),fe):K(h)&&(r===6||r===7)?(e.exit("htmlFlowData"),e.check(Cs,le,$)(h)):h===null||K(h)?(e.exit("htmlFlowData"),$(h)):(e.consume(h),T)}function $(h){return e.check(xs,ne,le)(h)}function ne(h){return e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),X}function X(h){return h===null||K(h)?$(h):(e.enter("htmlFlowData"),T(h))}function Z(h){return h===45?(e.consume(h),m):T(h)}function oe(h){return h===47?(e.consume(h),l="",re):T(h)}function re(h){if(h===62){const se=l.toLowerCase();return Xi.includes(se)?(e.consume(h),be):T(h)}return qe(h)&&l.length<8?(e.consume(h),l+=String.fromCharCode(h),re):T(h)}function fe(h){return h===93?(e.consume(h),m):T(h)}function m(h){return h===62?(e.consume(h),be):h===45&&r===2?(e.consume(h),m):T(h)}function be(h){return h===null||K(h)?(e.exit("htmlFlowData"),le(h)):(e.consume(h),be)}function le(h){return e.exit("htmlFlow"),t(h)}}function Ss(e,t,n){const i=this;return r;function r(l){return K(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):n(l)}function o(l){return i.parser.lazy[i.now().line]?n(l):t(l)}}function Es(e,t,n){return i;function i(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(on,t,n)}}const ks={name:"htmlText",tokenize:Fs};function Fs(e,t,n){const i=this;let r,o,l;return u;function u(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),a}function a(m){return m===33?(e.consume(m),s):m===47?(e.consume(m),k):m===63?(e.consume(m),A):qe(m)?(e.consume(m),V):n(m)}function s(m){return m===45?(e.consume(m),c):m===91?(e.consume(m),o=0,y):qe(m)?(e.consume(m),S):n(m)}function c(m){return m===45?(e.consume(m),p):n(m)}function d(m){return m===null?n(m):m===45?(e.consume(m),f):K(m)?(l=d,oe(m)):(e.consume(m),d)}function f(m){return m===45?(e.consume(m),p):d(m)}function p(m){return m===62?Z(m):m===45?f(m):d(m)}function y(m){const be="CDATA[";return m===be.charCodeAt(o++)?(e.consume(m),o===be.length?b:y):n(m)}function b(m){return m===null?n(m):m===93?(e.consume(m),x):K(m)?(l=b,oe(m)):(e.consume(m),b)}function x(m){return m===93?(e.consume(m),I):b(m)}function I(m){return m===62?Z(m):m===93?(e.consume(m),I):b(m)}function S(m){return m===null||m===62?Z(m):K(m)?(l=S,oe(m)):(e.consume(m),S)}function A(m){return m===null?n(m):m===63?(e.consume(m),E):K(m)?(l=A,oe(m)):(e.consume(m),A)}function E(m){return m===62?Z(m):A(m)}function k(m){return qe(m)?(e.consume(m),C):n(m)}function C(m){return m===45||Le(m)?(e.consume(m),C):M(m)}function M(m){return K(m)?(l=M,oe(m)):pe(m)?(e.consume(m),M):Z(m)}function V(m){return m===45||Le(m)?(e.consume(m),V):m===47||m===62||Te(m)?D(m):n(m)}function D(m){return m===47?(e.consume(m),Z):m===58||m===95||qe(m)?(e.consume(m),O):K(m)?(l=D,oe(m)):pe(m)?(e.consume(m),D):Z(m)}function O(m){return m===45||m===46||m===58||m===95||Le(m)?(e.consume(m),O):N(m)}function N(m){return m===61?(e.consume(m),T):K(m)?(l=N,oe(m)):pe(m)?(e.consume(m),N):D(m)}function T(m){return m===null||m===60||m===61||m===62||m===96?n(m):m===34||m===39?(e.consume(m),r=m,$):K(m)?(l=T,oe(m)):pe(m)?(e.consume(m),T):(e.consume(m),ne)}function $(m){return m===r?(e.consume(m),r=void 0,X):m===null?n(m):K(m)?(l=$,oe(m)):(e.consume(m),$)}function ne(m){return m===null||m===34||m===39||m===60||m===61||m===96?n(m):m===47||m===62||Te(m)?D(m):(e.consume(m),ne)}function X(m){return m===47||m===62||Te(m)?D(m):n(m)}function Z(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),t):n(m)}function oe(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),re}function re(m){return pe(m)?he(e,fe,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):fe(m)}function fe(m){return e.enter("htmlTextData"),l(m)}}const lr={name:"labelEnd",resolveAll:Ts,resolveTo:Vs,tokenize:Os},Gs={tokenize:Ns},Bs={tokenize:Ds},Ps={tokenize:Ls};function Ts(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const r=i.type==="labelImage"?4:2;i.type="data",t+=r}}return e.length!==n.length&&Ue(e,0,e.length,n),e}function Vs(e,t){let n=e.length,i=0,r,o,l,u;for(;n--;)if(r=e[n][1],o){if(r.type==="link"||r.type==="labelLink"&&r._inactive)break;e[n][0]==="enter"&&r.type==="labelLink"&&(r._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(r.type==="labelImage"||r.type==="labelLink")&&!r._balanced&&(o=n,r.type!=="labelLink")){i=2;break}}else r.type==="labelEnd"&&(l=n);const a={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},s={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},c={type:"labelText",start:{...e[o+i+2][1].end},end:{...e[l-2][1].start}};return u=[["enter",a,t],["enter",s,t]],u=He(u,e.slice(o+1,o+i+3)),u=He(u,[["enter",c,t]]),u=He(u,rr(t.parser.constructs.insideSpan.null,e.slice(o+i+4,l-3),t)),u=He(u,[["exit",c,t],e[l-2],e[l-1],["exit",s,t]]),u=He(u,e.slice(l+1)),u=He(u,[["exit",a,t]]),Ue(e,o,e.length,u),e}function Os(e,t,n){const i=this;let r=i.events.length,o,l;for(;r--;)if((i.events[r][1].type==="labelImage"||i.events[r][1].type==="labelLink")&&!i.events[r][1]._balanced){o=i.events[r][1];break}return u;function u(f){return o?o._inactive?d(f):(l=i.parser.defined.includes(Tt(i.sliceSerialize({start:o.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),a):n(f)}function a(f){return f===40?e.attempt(Gs,c,l?c:d)(f):f===91?e.attempt(Bs,c,l?s:d)(f):l?c(f):d(f)}function s(f){return e.attempt(Ps,c,d)(f)}function c(f){return t(f)}function d(f){return o._balanced=!0,n(f)}}function Ns(e,t,n){return i;function i(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),r}function r(d){return Te(d)?Wt(e,o)(d):o(d)}function o(d){return d===41?c(d):Li(e,l,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function l(d){return Te(d)?Wt(e,a)(d):c(d)}function u(d){return n(d)}function a(d){return d===34||d===39||d===40?Ri(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function s(d){return Te(d)?Wt(e,c)(d):c(d)}function c(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function Ds(e,t,n){const i=this;return r;function r(u){return Mi.call(i,e,o,l,"reference","referenceMarker","referenceString")(u)}function o(u){return i.parser.defined.includes(Tt(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(u):n(u)}function l(u){return n(u)}}function Ls(e,t,n){return i;function i(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),r}function r(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const Ms={name:"labelStartImage",resolveAll:lr.resolveAll,tokenize:Rs};function Rs(e,t,n){const i=this;return r;function r(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),o}function o(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),l):n(u)}function l(u){return u===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(u):t(u)}}const Xs={name:"labelStartLink",resolveAll:lr.resolveAll,tokenize:zs};function zs(e,t,n){const i=this;return r;function r(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(l):t(l)}}const ar={name:"lineEnding",tokenize:Hs};function Hs(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),he(e,t,"linePrefix")}}const ln={name:"thematicBreak",tokenize:Ws};function Ws(e,t,n){let i=0,r;return o;function o(s){return e.enter("thematicBreak"),l(s)}function l(s){return r=s,u(s)}function u(s){return s===r?(e.enter("thematicBreakSequence"),a(s)):i>=3&&(s===null||K(s))?(e.exit("thematicBreak"),t(s)):n(s)}function a(s){return s===r?(e.consume(s),i++,a):(e.exit("thematicBreakSequence"),pe(s)?he(e,u,"whitespace")(s):u(s))}}const Ve={continuation:{tokenize:Ys},exit:Us,name:"list",tokenize:Js},Zs={partial:!0,tokenize:qs},js={partial:!0,tokenize:_s};function Js(e,t,n){const i=this,r=i.events[i.events.length-1];let o=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0,l=0;return u;function u(p){const y=i.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!i.containerState.marker||p===i.containerState.marker:nr(p)){if(i.containerState.type||(i.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(ln,n,s)(p):s(p);if(!i.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(p)}return n(p)}function a(p){return nr(p)&&++l<10?(e.consume(p),a):(!i.interrupt||l<2)&&(i.containerState.marker?p===i.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),s(p)):n(p)}function s(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||p,e.check(on,i.interrupt?n:c,e.attempt(Zs,f,d))}function c(p){return i.containerState.initialBlankLine=!0,o++,f(p)}function d(p){return pe(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):n(p)}function f(p){return i.containerState.size=o+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function Ys(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(on,r,o);function r(u){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,he(e,t,"listItemIndent",i.containerState.size+1)(u)}function o(u){return i.containerState.furtherBlankLines||!pe(u)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,l(u)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(js,t,l)(u))}function l(u){return i.containerState._closeFlow=!0,i.interrupt=void 0,he(e,e.attempt(Ve,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function _s(e,t,n){const i=this;return he(e,r,"listItemIndent",i.containerState.size+1);function r(o){const l=i.events[i.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===i.containerState.size?t(o):n(o)}}function Us(e){e.exit(this.containerState.type)}function qs(e,t,n){const i=this;return he(e,r,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function r(o){const l=i.events[i.events.length-1];return!pe(o)&&l&&l[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const zi={name:"setextUnderline",resolveTo:Qs,tokenize:$s};function Qs(e,t){let n=e.length,i,r,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(r=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",l,t]),e.splice(o+1,0,["exit",e[i][1],t]),e[i][1].end={...e[o][1].end}):e[i][1]=l,e.push(["exit",l,t]),e}function $s(e,t,n){const i=this;let r;return o;function o(s){let c=i.events.length,d;for(;c--;)if(i.events[c][1].type!=="lineEnding"&&i.events[c][1].type!=="linePrefix"&&i.events[c][1].type!=="content"){d=i.events[c][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||d)?(e.enter("setextHeadingLine"),r=s,l(s)):n(s)}function l(s){return e.enter("setextHeadingLineSequence"),u(s)}function u(s){return s===r?(e.consume(s),u):(e.exit("setextHeadingLineSequence"),pe(s)?he(e,a,"lineSuffix")(s):a(s))}function a(s){return s===null||K(s)?(e.exit("setextHeadingLine"),t(s)):n(s)}}const Ks={tokenize:ec};function ec(e){const t=this,n=e.attempt(on,i,e.attempt(this.parser.constructs.flowInitial,r,he(e,e.attempt(this.parser.constructs.flow,r,e.attempt(os,r)),"linePrefix")));return n;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const tc={resolveAll:Wi()},nc=Hi("string"),rc=Hi("text");function Hi(e){return{resolveAll:Wi(e==="text"?ic:void 0),tokenize:t};function t(n){const i=this,r=this.parser.constructs[e],o=n.attempt(r,l,u);return l;function l(c){return s(c)?o(c):u(c)}function u(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),a}function a(c){return s(c)?(n.exit("data"),o(c)):(n.consume(c),a)}function s(c){if(c===null)return!0;const d=r[c];let f=-1;if(d)for(;++f<d.length;){const p=d[f];if(!p.previous||p.previous.call(i,i.previous))return!0}return!1}}}function Wi(e){return t;function t(n,i){let r=-1,o;for(;++r<=n.length;)o===void 0?n[r]&&n[r][1].type==="data"&&(o=r,r++):(!n[r]||n[r][1].type!=="data")&&(r!==o+2&&(n[o][1].end=n[r-1][1].end,n.splice(o+2,r-o-2),r=o+2),o=void 0);return e?e(n,i):n}}function ic(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const i=e[n-1][1],r=t.sliceStream(i);let o=r.length,l=-1,u=0,a;for(;o--;){const s=r[o];if(typeof s=="string"){for(l=s.length;s.charCodeAt(l-1)===32;)u++,l--;if(l)break;l=-1}else if(s===-2)a=!0,u++;else if(s!==-1){o++;break}}if(u){const s={type:n===e.length||a||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:i.start._bufferIndex+l,_index:i.start._index+o,line:i.end.line,column:i.end.column-u,offset:i.end.offset-u},end:{...i.end}};i.end={...s.start},i.start.offset===i.end.offset?Object.assign(i,s):(e.splice(n,0,["enter",s,t],["exit",s,t]),n+=2)}n++}return e}const oc=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:cs},disable:{null:[]},document:{42:Ve,43:Ve,45:Ve,48:Ve,49:Ve,50:Ve,51:Ve,52:Ve,53:Ve,54:Ve,55:Ve,56:Ve,57:Ve,62:Pi},flow:{35:ms,42:ln,45:[zi,ln],60:vs,61:zi,95:ln,96:Ni,126:Ni},flowInitial:{[-2]:or,[-1]:or,32:or},insideSpan:{null:[ir,tc]},string:{38:Vi,92:Ti},text:{[-5]:ar,[-4]:ar,[-3]:ar,33:Ms,38:Vi,42:ir,60:[Xu,ks],91:Xs,92:[gs,Ti],93:lr,95:ir,96:Ku}},Symbol.toStringTag,{value:"Module"}));function lc(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const r={},o=[];let l=[],u=[];const a={attempt:M(k),check:M(C),consume:S,enter:A,exit:E,interrupt:M(C,{interrupt:!0})},s={code:null,containerState:{},defineSkip:b,events:[],now:y,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d};let c=t.tokenize.call(s,a);return t.resolveAll&&o.push(t),s;function d(N){return l=He(l,N),x(),l[l.length-1]!==null?[]:(V(t,0),s.events=rr(o,s.events,s),s.events)}function f(N,T){return uc(p(N),T)}function p(N){return ac(l,N)}function y(){const{_bufferIndex:N,_index:T,line:$,column:ne,offset:X}=i;return{_bufferIndex:N,_index:T,line:$,column:ne,offset:X}}function b(N){r[N.line]=N.column,O()}function x(){let N;for(;i._index<l.length;){const T=l[i._index];if(typeof T=="string")for(N=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===N&&i._bufferIndex<T.length;)I(T.charCodeAt(i._bufferIndex));else I(T)}}function I(N){c=c(N)}function S(N){K(N)?(i.line++,i.column=1,i.offset+=N===-3?2:1,O()):N!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===l[i._index].length&&(i._bufferIndex=-1,i._index++)),s.previous=N}function A(N,T){const $=T||{};return $.type=N,$.start=y(),s.events.push(["enter",$,s]),u.push($),$}function E(N){const T=u.pop();return T.end=y(),s.events.push(["exit",T,s]),T}function k(N,T){V(N,T.from)}function C(N,T){T.restore()}function M(N,T){return $;function $(ne,X,Z){let oe,re,fe,m;return Array.isArray(ne)?le(ne):"tokenize"in ne?le([ne]):be(ne);function be(ae){return xe;function xe(de){const Ee=de!==null&&ae[de],Me=de!==null&&ae.null,We=[...Array.isArray(Ee)?Ee:Ee?[Ee]:[],...Array.isArray(Me)?Me:Me?[Me]:[]];return le(We)(de)}}function le(ae){return oe=ae,re=0,ae.length===0?Z:h(ae[re])}function h(ae){return xe;function xe(de){return m=D(),fe=ae,ae.partial||(s.currentConstruct=ae),ae.name&&s.parser.constructs.disable.null.includes(ae.name)?U():ae.tokenize.call(T?Object.assign(Object.create(s),T):s,a,se,U)(de)}}function se(ae){return N(fe,m),X}function U(ae){return m.restore(),++re<oe.length?h(oe[re]):Z}}}function V(N,T){N.resolveAll&&!o.includes(N)&&o.push(N),N.resolve&&Ue(s.events,T,s.events.length-T,N.resolve(s.events.slice(T),s)),N.resolveTo&&(s.events=N.resolveTo(s.events,s))}function D(){const N=y(),T=s.previous,$=s.currentConstruct,ne=s.events.length,X=Array.from(u);return{from:ne,restore:Z};function Z(){i=N,s.previous=T,s.currentConstruct=$,s.events.length=ne,u=X,O()}}function O(){i.line in r&&i.column<2&&(i.column=r[i.line],i.offset+=r[i.line]-1)}}function ac(e,t){const n=t.start._index,i=t.start._bufferIndex,r=t.end._index,o=t.end._bufferIndex;let l;if(n===r)l=[e[n].slice(i,o)];else{if(l=e.slice(n,r),i>-1){const u=l[0];typeof u=="string"?l[0]=u.slice(i):l.shift()}o>0&&l.push(e[r].slice(0,o))}return l}function uc(e,t){let n=-1;const i=[];let r;for(;++n<e.length;){const o=e[n];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
4
+ `;break}case-3:{l=`\r
5
+ `;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&r)continue;l=" ";break}default:l=String.fromCharCode(o)}r=o===-2,i.push(l)}return i.join("")}function sc(e){const i={constructs:Su([oc,...(e||{}).extensions||[]]),content:r(Vu),defined:[],document:r(Nu),flow:r(Ks),lazy:{},string:r(nc),text:r(rc)};return i;function r(o){return l;function l(u){return lc(i,o,u)}}}function cc(e){for(;!Di(e););return e}const Zi=/[\0\t\n\r]/g;function pc(){let e=1,t="",n=!0,i;return r;function r(o,l,u){const a=[];let s,c,d,f,p;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),d=0,t="",n&&(o.charCodeAt(0)===65279&&d++,n=void 0);d<o.length;){if(Zi.lastIndex=d,s=Zi.exec(o),f=s&&s.index!==void 0?s.index:o.length,p=o.charCodeAt(f),!s){t=o.slice(d);break}if(p===10&&d===f&&i)a.push(-3),i=void 0;else switch(i&&(a.push(-5),i=void 0),d<f&&(a.push(o.slice(d,f)),e+=f-d),p){case 0:{a.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,a.push(-2);e++<c;)a.push(-1);break}case 10:{a.push(-4),e=1;break}default:i=!0,e=1}d=f+1}return u&&(i&&a.push(-5),t&&a.push(t),a.push(null)),a}}const dc={}.hasOwnProperty;function fc(e){return dc.call(rn,e)?rn[e]:!1}const gc=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function hc(e){return e.replace(gc,mc)}function mc(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),o=r===120||r===88;return ki(n.slice(o?2:1),o?16:10)}return fc(n)||e}const ji={}.hasOwnProperty;function bc(e,t,n){return typeof t!="string"&&(n=t,t=void 0),yc(n)(cc(sc(n).document().write(pc()(e,t,!0))))}function yc(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(W),autolinkProtocol:D,autolinkEmail:D,atxHeading:o(gt),blockQuote:o(Me),characterEscape:D,characterReference:D,codeFenced:o(We),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(We,l),codeText:o(Re,l),codeTextData:D,data:D,codeFlowValue:D,definition:o(ft),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(tt),hardBreakEscape:o(ht),hardBreakTrailing:o(ht),htmlFlow:o(Lt,l),htmlFlowData:D,htmlText:o(Lt,l),htmlTextData:D,image:o(R),label:l,link:o(W),listItem:o(ue),listItemValue:f,listOrdered:o(Q,d),listUnordered:o(Q),paragraph:o(Ae),reference:h,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(gt),strong:o(we),thematicBreak:o($t)},exit:{atxHeading:a(),atxHeadingSequence:k,autolink:a(),autolinkEmail:Ee,autolinkProtocol:de,blockQuote:a(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:U,characterReferenceMarkerNumeric:U,characterReferenceValue:ae,characterReference:xe,codeFenced:a(x),codeFencedFence:b,codeFencedFenceInfo:p,codeFencedFenceMeta:y,codeFlowValue:O,codeIndented:a(I),codeText:a(X),codeTextData:O,data:O,definition:a(),definitionDestinationString:E,definitionLabelString:S,definitionTitleString:A,emphasis:a(),hardBreakEscape:a(T),hardBreakTrailing:a(T),htmlFlow:a($),htmlFlowData:O,htmlText:a(ne),htmlTextData:O,image:a(oe),label:fe,labelText:re,lineEnding:N,link:a(Z),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:se,resourceDestinationString:m,resourceTitleString:be,resource:le,setextHeading:a(V),setextHeadingLineSequence:M,setextHeadingText:C,strong:a(),thematicBreak:a()}};Ji(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(w){let G={type:"root",children:[]};const H={stack:[G],tokenStack:[],config:t,enter:u,exit:s,buffer:l,resume:c,data:n},_=[];let ie=-1;for(;++ie<w.length;)if(w[ie][1].type==="listOrdered"||w[ie][1].type==="listUnordered")if(w[ie][0]==="enter")_.push(ie);else{const Ne=_.pop();ie=r(w,Ne,ie)}for(ie=-1;++ie<w.length;){const Ne=t[w[ie][0]];ji.call(Ne,w[ie][1].type)&&Ne[w[ie][1].type].call(Object.assign({sliceSerialize:w[ie][2].sliceSerialize},H),w[ie][1])}if(H.tokenStack.length>0){const Ne=H.tokenStack[H.tokenStack.length-1];(Ne[1]||Yi).call(H,void 0,Ne[0])}for(G.position={start:dt(w.length>0?w[0][1].start:{line:1,column:1,offset:0}),end:dt(w.length>0?w[w.length-2][1].end:{line:1,column:1,offset:0})},ie=-1;++ie<t.transforms.length;)G=t.transforms[ie](G)||G;return G}function r(w,G,H){let _=G-1,ie=-1,Ne=!1,nt,Je,mt,rt;for(;++_<=H;){const Be=w[_];switch(Be[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Be[0]==="enter"?ie++:ie--,rt=void 0;break}case"lineEndingBlank":{Be[0]==="enter"&&(nt&&!rt&&!ie&&!mt&&(mt=_),rt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:rt=void 0}if(!ie&&Be[0]==="enter"&&Be[1].type==="listItemPrefix"||ie===-1&&Be[0]==="exit"&&(Be[1].type==="listUnordered"||Be[1].type==="listOrdered")){if(nt){let ut=_;for(Je=void 0;ut--;){const Ye=w[ut];if(Ye[1].type==="lineEnding"||Ye[1].type==="lineEndingBlank"){if(Ye[0]==="exit")continue;Je&&(w[Je][1].type="lineEndingBlank",Ne=!0),Ye[1].type="lineEnding",Je=ut}else if(!(Ye[1].type==="linePrefix"||Ye[1].type==="blockQuotePrefix"||Ye[1].type==="blockQuotePrefixWhitespace"||Ye[1].type==="blockQuoteMarker"||Ye[1].type==="listItemIndent"))break}mt&&(!Je||mt<Je)&&(nt._spread=!0),nt.end=Object.assign({},Je?w[Je][1].start:Be[1].end),w.splice(Je||_,0,["exit",nt,Be[2]]),_++,H++}if(Be[1].type==="listItemPrefix"){const ut={type:"listItem",_spread:!1,start:Object.assign({},Be[1].start),end:void 0};nt=ut,w.splice(_,0,["enter",ut,Be[2]]),_++,H++,mt=void 0,rt=!0}}}return w[G][1]._spread=Ne,H}function o(w,G){return H;function H(_){u.call(this,w(_),_),G&&G.call(this,_)}}function l(){this.stack.push({type:"fragment",children:[]})}function u(w,G,H){this.stack[this.stack.length-1].children.push(w),this.stack.push(w),this.tokenStack.push([G,H||void 0]),w.position={start:dt(G.start),end:void 0}}function a(w){return G;function G(H){w&&w.call(this,H),s.call(this,H)}}function s(w,G){const H=this.stack.pop(),_=this.tokenStack.pop();if(_)_[0].type!==w.type&&(G?G.call(this,w,_[0]):(_[1]||Yi).call(this,w,_[0]));else throw new Error("Cannot close `"+w.type+"` ("+Xt({start:w.start,end:w.end})+"): it’s not open");H.position.end=dt(w.end)}function c(){return xu(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(w){if(this.data.expectingFirstListItemValue){const G=this.stack[this.stack.length-2];G.start=Number.parseInt(this.sliceSerialize(w),10),this.data.expectingFirstListItemValue=void 0}}function p(){const w=this.resume(),G=this.stack[this.stack.length-1];G.lang=w}function y(){const w=this.resume(),G=this.stack[this.stack.length-1];G.meta=w}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function x(){const w=this.resume(),G=this.stack[this.stack.length-1];G.value=w.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function I(){const w=this.resume(),G=this.stack[this.stack.length-1];G.value=w.replace(/(\r?\n|\r)$/g,"")}function S(w){const G=this.resume(),H=this.stack[this.stack.length-1];H.label=G,H.identifier=Tt(this.sliceSerialize(w)).toLowerCase()}function A(){const w=this.resume(),G=this.stack[this.stack.length-1];G.title=w}function E(){const w=this.resume(),G=this.stack[this.stack.length-1];G.url=w}function k(w){const G=this.stack[this.stack.length-1];if(!G.depth){const H=this.sliceSerialize(w).length;G.depth=H}}function C(){this.data.setextHeadingSlurpLineEnding=!0}function M(w){const G=this.stack[this.stack.length-1];G.depth=this.sliceSerialize(w).codePointAt(0)===61?1:2}function V(){this.data.setextHeadingSlurpLineEnding=void 0}function D(w){const H=this.stack[this.stack.length-1].children;let _=H[H.length-1];(!_||_.type!=="text")&&(_=At(),_.position={start:dt(w.start),end:void 0},H.push(_)),this.stack.push(_)}function O(w){const G=this.stack.pop();G.value+=this.sliceSerialize(w),G.position.end=dt(w.end)}function N(w){const G=this.stack[this.stack.length-1];if(this.data.atHardBreak){const H=G.children[G.children.length-1];H.position.end=dt(w.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(G.type)&&(D.call(this,w),O.call(this,w))}function T(){this.data.atHardBreak=!0}function $(){const w=this.resume(),G=this.stack[this.stack.length-1];G.value=w}function ne(){const w=this.resume(),G=this.stack[this.stack.length-1];G.value=w}function X(){const w=this.resume(),G=this.stack[this.stack.length-1];G.value=w}function Z(){const w=this.stack[this.stack.length-1];if(this.data.inReference){const G=this.data.referenceType||"shortcut";w.type+="Reference",w.referenceType=G,delete w.url,delete w.title}else delete w.identifier,delete w.label;this.data.referenceType=void 0}function oe(){const w=this.stack[this.stack.length-1];if(this.data.inReference){const G=this.data.referenceType||"shortcut";w.type+="Reference",w.referenceType=G,delete w.url,delete w.title}else delete w.identifier,delete w.label;this.data.referenceType=void 0}function re(w){const G=this.sliceSerialize(w),H=this.stack[this.stack.length-2];H.label=hc(G),H.identifier=Tt(G).toLowerCase()}function fe(){const w=this.stack[this.stack.length-1],G=this.resume(),H=this.stack[this.stack.length-1];if(this.data.inReference=!0,H.type==="link"){const _=w.children;H.children=_}else H.alt=G}function m(){const w=this.resume(),G=this.stack[this.stack.length-1];G.url=w}function be(){const w=this.resume(),G=this.stack[this.stack.length-1];G.title=w}function le(){this.data.inReference=void 0}function h(){this.data.referenceType="collapsed"}function se(w){const G=this.resume(),H=this.stack[this.stack.length-1];H.label=G,H.identifier=Tt(this.sliceSerialize(w)).toLowerCase(),this.data.referenceType="full"}function U(w){this.data.characterReferenceType=w.type}function ae(w){const G=this.sliceSerialize(w),H=this.data.characterReferenceType;let _;H?(_=ki(G,H==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):_=Si(G);const ie=this.stack[this.stack.length-1];ie.value+=_}function xe(w){const G=this.stack.pop();G.position.end=dt(w.end)}function de(w){O.call(this,w);const G=this.stack[this.stack.length-1];G.url=this.sliceSerialize(w)}function Ee(w){O.call(this,w);const G=this.stack[this.stack.length-1];G.url="mailto:"+this.sliceSerialize(w)}function Me(){return{type:"blockquote",children:[]}}function We(){return{type:"code",lang:null,meta:null,value:""}}function Re(){return{type:"inlineCode",value:""}}function ft(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function tt(){return{type:"emphasis",children:[]}}function gt(){return{type:"heading",depth:0,children:[]}}function ht(){return{type:"break"}}function Lt(){return{type:"html",value:""}}function R(){return{type:"image",title:null,url:"",alt:null}}function W(){return{type:"link",title:null,url:"",children:[]}}function Q(w){return{type:"list",ordered:w.type==="listOrdered",start:null,spread:w._spread,children:[]}}function ue(w){return{type:"listItem",spread:w._spread,checked:null,children:[]}}function Ae(){return{type:"paragraph",children:[]}}function we(){return{type:"strong",children:[]}}function At(){return{type:"text",value:""}}function $t(){return{type:"thematicBreak"}}}function dt(e){return{line:e.line,column:e.column,offset:e.offset}}function Ji(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?Ji(e,i):Ic(e,i)}}function Ic(e,t){let n;for(n in t)if(ji.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function Yi(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Xt({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Xt({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Xt({start:t.start,end:t.end})+") is still open")}function vc(e){const t=this;t.parser=n;function n(i){return bc(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Cc(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function xc(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
6
+ `}]}function Ac(e,t){const n=t.value?t.value+`
7
+ `:"",i={};t.lang&&(i.className=["language-"+t.lang]);let r={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(r.data={meta:t.meta}),e.patch(t,r),r=e.applyData(t,r),r={type:"element",tagName:"pre",properties:{},children:[r]},e.patch(t,r),r}function wc(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Sc(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ec(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),r=Vt(i.toLowerCase()),o=e.footnoteOrder.indexOf(i);let l,u=e.footnoteCounts.get(i);u===void 0?(u=0,e.footnoteOrder.push(i),l=e.footnoteOrder.length):l=o+1,u+=1,e.footnoteCounts.set(i,u);const a={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+r,id:n+"fnref-"+r+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,a);const s={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(t,s),e.applyData(t,s)}function kc(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Fc(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function _i(e,t){const n=t.referenceType;let i="]";if(n==="collapsed"?i+="[]":n==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const r=e.all(t),o=r[0];o&&o.type==="text"?o.value="["+o.value:r.unshift({type:"text",value:"["});const l=r[r.length-1];return l&&l.type==="text"?l.value+=i:r.push({type:"text",value:i}),r}function Gc(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return _i(e,t);const r={src:Vt(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(r.title=i.title);const o={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,o),e.applyData(t,o)}function Bc(e,t){const n={src:Vt(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,i),e.applyData(t,i)}function Pc(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const i={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,i),e.applyData(t,i)}function Tc(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return _i(e,t);const r={href:Vt(i.url||"")};i.title!==null&&i.title!==void 0&&(r.title=i.title);const o={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function Vc(e,t){const n={href:Vt(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Oc(e,t,n){const i=e.all(t),r=n?Nc(n):Ui(t),o={},l=[];if(typeof t.checked=="boolean"){const c=i[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},i.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let u=-1;for(;++u<i.length;){const c=i[u];(r||u!==0||c.type!=="element"||c.tagName!=="p")&&l.push({type:"text",value:`
8
+ `}),c.type==="element"&&c.tagName==="p"&&!r?l.push(...c.children):l.push(c)}const a=i[i.length-1];a&&(r||a.type!=="element"||a.tagName!=="p")&&l.push({type:"text",value:`
9
+ `});const s={type:"element",tagName:"li",properties:o,children:l};return e.patch(t,s),e.applyData(t,s)}function Nc(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let i=-1;for(;!t&&++i<n.length;)t=Ui(n[i])}return t}function Ui(e){const t=e.spread;return t??e.children.length>1}function Dc(e,t){const n={},i=e.all(t);let r=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++r<i.length;){const l=i[r];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function Lc(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Mc(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Rc(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Xc(e,t){const n=e.all(t),i=n.shift(),r=[];if(i){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],l),r.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},u=Un(t.children[1]),a=hi(t.children[t.children.length-1]);u&&a&&(l.position={start:u,end:a}),r.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function zc(e,t,n){const i=n?n.children:void 0,o=(i?i.indexOf(t):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,u=l?l.length:t.children.length;let a=-1;const s=[];for(;++a<u;){const d=t.children[a],f={},p=l?l[a]:void 0;p&&(f.align=p);let y={type:"element",tagName:o,properties:f,children:[]};d&&(y.children=e.all(d),e.patch(d,y),y=e.applyData(d,y)),s.push(y)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,c),e.applyData(t,c)}function Hc(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const qi=9,Qi=32;function Wc(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),r=0;const o=[];for(;i;)o.push($i(t.slice(r,i.index),r>0,!0),i[0]),r=i.index+i[0].length,i=n.exec(t);return o.push($i(t.slice(r),r>0,!1)),o.join("")}function $i(e,t,n){let i=0,r=e.length;if(t){let o=e.codePointAt(i);for(;o===qi||o===Qi;)i++,o=e.codePointAt(i)}if(n){let o=e.codePointAt(r-1);for(;o===qi||o===Qi;)r--,o=e.codePointAt(r-1)}return r>i?e.slice(i,r):""}function Zc(e,t){const n={type:"text",value:Wc(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function jc(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Jc={blockquote:Cc,break:xc,code:Ac,delete:wc,emphasis:Sc,footnoteReference:Ec,heading:kc,html:Fc,imageReference:Gc,image:Bc,inlineCode:Pc,linkReference:Tc,link:Vc,listItem:Oc,list:Dc,paragraph:Lc,root:Mc,strong:Rc,table:Xc,tableCell:Hc,tableRow:zc,text:Zc,thematicBreak:jc,toml:an,yaml:an,definition:an,footnoteDefinition:an};function an(){}const Ki=-1,un=0,sn=1,cn=2,ur=3,sr=4,cr=5,pr=6,eo=7,to=8,no=typeof self=="object"?self:globalThis,Yc=(e,t)=>{const n=(r,o)=>(e.set(o,r),r),i=r=>{if(e.has(r))return e.get(r);const[o,l]=t[r];switch(o){case un:case Ki:return n(l,r);case sn:{const u=n([],r);for(const a of l)u.push(i(a));return u}case cn:{const u=n({},r);for(const[a,s]of l)u[i(a)]=i(s);return u}case ur:return n(new Date(l),r);case sr:{const{source:u,flags:a}=l;return n(new RegExp(u,a),r)}case cr:{const u=n(new Map,r);for(const[a,s]of l)u.set(i(a),i(s));return u}case pr:{const u=n(new Set,r);for(const a of l)u.add(i(a));return u}case eo:{const{name:u,message:a}=l;return n(new no[u](a),r)}case to:return n(BigInt(l),r);case"BigInt":return n(Object(BigInt(l)),r)}return n(new no[o](l),r)};return i},ro=e=>Yc(new Map,e)(0),Ot="",{toString:_c}={},{keys:Uc}=Object,Zt=e=>{const t=typeof e;if(t!=="object"||!e)return[un,t];const n=_c.call(e).slice(8,-1);switch(n){case"Array":return[sn,Ot];case"Object":return[cn,Ot];case"Date":return[ur,Ot];case"RegExp":return[sr,Ot];case"Map":return[cr,Ot];case"Set":return[pr,Ot]}return n.includes("Array")?[sn,n]:n.includes("Error")?[eo,n]:[cn,n]},pn=([e,t])=>e===un&&(t==="function"||t==="symbol"),qc=(e,t,n,i)=>{const r=(l,u)=>{const a=i.push(l)-1;return n.set(u,a),a},o=l=>{if(n.has(l))return n.get(l);let[u,a]=Zt(l);switch(u){case un:{let c=l;switch(a){case"bigint":u=to,c=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);c=null;break;case"undefined":return r([Ki],l)}return r([u,c],l)}case sn:{if(a)return r([a,[...l]],l);const c=[],d=r([u,c],l);for(const f of l)c.push(o(f));return d}case cn:{if(a)switch(a){case"BigInt":return r([a,l.toString()],l);case"Boolean":case"Number":case"String":return r([a,l.valueOf()],l)}if(t&&"toJSON"in l)return o(l.toJSON());const c=[],d=r([u,c],l);for(const f of Uc(l))(e||!pn(Zt(l[f])))&&c.push([o(f),o(l[f])]);return d}case ur:return r([u,l.toISOString()],l);case sr:{const{source:c,flags:d}=l;return r([u,{source:c,flags:d}],l)}case cr:{const c=[],d=r([u,c],l);for(const[f,p]of l)(e||!(pn(Zt(f))||pn(Zt(p))))&&c.push([o(f),o(p)]);return d}case pr:{const c=[],d=r([u,c],l);for(const f of l)(e||!pn(Zt(f)))&&c.push(o(f));return d}}const{message:s}=l;return r([u,{name:a,message:s}],l)};return o},io=(e,{json:t,lossy:n}={})=>{const i=[];return qc(!(t||n),!!t,new Map,i)(e),i},dn=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?ro(io(e,t)):structuredClone(e):(e,t)=>ro(io(e,t));function Qc(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function $c(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Kc(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Qc,i=e.options.footnoteBackLabel||$c,r=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let a=-1;for(;++a<e.footnoteOrder.length;){const s=e.footnoteById.get(e.footnoteOrder[a]);if(!s)continue;const c=e.all(s),d=String(s.identifier).toUpperCase(),f=Vt(d.toLowerCase());let p=0;const y=[],b=e.footnoteCounts.get(d);for(;b!==void 0&&++p<=b;){y.length>0&&y.push({type:"text",value:" "});let S=typeof n=="string"?n:n(a,p);typeof S=="string"&&(S={type:"text",value:S}),y.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(a,p),className:["data-footnote-backref"]},children:Array.isArray(S)?S:[S]})}const x=c[c.length-1];if(x&&x.type==="element"&&x.tagName==="p"){const S=x.children[x.children.length-1];S&&S.type==="text"?S.value+=" ":x.children.push({type:"text",value:" "}),x.children.push(...y)}else c.push(...y);const I={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(c,!0)};e.patch(s,I),u.push(I)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...dn(l),id:"footnote-label"},children:[{type:"text",value:r}]},{type:"text",value:`
10
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(u,!0)},{type:"text",value:`
11
+ `}]}}const oo=function(e){if(e==null)return rp;if(typeof e=="function")return fn(e);if(typeof e=="object")return Array.isArray(e)?ep(e):tp(e);if(typeof e=="string")return np(e);throw new Error("Expected function, string, or object as test")};function ep(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=oo(e[n]);return fn(i);function i(...r){let o=-1;for(;++o<t.length;)if(t[o].apply(this,r))return!0;return!1}}function tp(e){const t=e;return fn(n);function n(i){const r=i;let o;for(o in e)if(r[o]!==t[o])return!1;return!0}}function np(e){return fn(t);function t(n){return n&&n.type===e}}function fn(e){return t;function t(n,i,r){return!!(ip(n)&&e.call(this,n,typeof i=="number"?i:void 0,r||void 0))}}function rp(){return!0}function ip(e){return e!==null&&typeof e=="object"&&"type"in e}function bm(e){return e}const lo=[],op=!0,ao=!1,lp="skip";function ap(e,t,n,i){let r;typeof t=="function"&&typeof n!="function"?(i=n,n=t):r=t;const o=oo(r),l=i?-1:1;u(e,void 0,[])();function u(a,s,c){const d=a&&typeof a=="object"?a:{};if(typeof d.type=="string"){const p=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(a.type+(p?"<"+p+">":""))+")"})}return f;function f(){let p=lo,y,b,x;if((!t||o(a,s,c[c.length-1]||void 0))&&(p=up(n(a,c)),p[0]===ao))return p;if("children"in a&&a.children){const I=a;if(I.children&&p[0]!==lp)for(b=(i?I.children.length:-1)+l,x=c.concat(I);b>-1&&b<I.children.length;){const S=I.children[b];if(y=u(S,b,x)(),y[0]===ao)return y;b=typeof y[1]=="number"?y[1]:b+l}}return p}}}function up(e){return Array.isArray(e)?e:typeof e=="number"?[op,e]:e==null?lo:[e]}function uo(e,t,n,i){let r,o,l;typeof t=="function"&&typeof n!="function"?(o=void 0,l=t,r=n):(o=t,l=n,r=i),ap(e,o,u,r);function u(a,s){const c=s[s.length-1],d=c?c.children.indexOf(a):void 0;return l(a,d,c)}}const dr={}.hasOwnProperty,sp={};function cp(e,t){const n=t||sp,i=new Map,r=new Map,o=new Map,l={...Jc,...n.handlers},u={all:s,applyData:dp,definitionById:i,footnoteById:r,footnoteCounts:o,footnoteOrder:[],handlers:l,one:a,options:n,patch:pp,wrap:gp};return uo(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const d=c.type==="definition"?i:r,f=String(c.identifier).toUpperCase();d.has(f)||d.set(f,c)}}),u;function a(c,d){const f=c.type,p=u.handlers[f];if(dr.call(u.handlers,f)&&p)return p(u,c,d);if(u.options.passThrough&&u.options.passThrough.includes(f)){if("children"in c){const{children:b,...x}=c,I=dn(x);return I.children=u.all(c),I}return dn(c)}return(u.options.unknownHandler||fp)(u,c,d)}function s(c){const d=[];if("children"in c){const f=c.children;let p=-1;for(;++p<f.length;){const y=u.one(f[p],c);if(y){if(p&&f[p-1].type==="break"&&(!Array.isArray(y)&&y.type==="text"&&(y.value=so(y.value)),!Array.isArray(y)&&y.type==="element")){const b=y.children[0];b&&b.type==="text"&&(b.value=so(b.value))}Array.isArray(y)?d.push(...y):d.push(y)}}}return d}}function pp(e,t){e.position&&(t.position=$a(e))}function dp(e,t){let n=t;if(e&&e.data){const i=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const l="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:l}}n.type==="element"&&o&&Object.assign(n.properties,dn(o)),"children"in n&&n.children&&r!==null&&r!==void 0&&(n.children=r)}return n}function fp(e,t){const n=t.data||{},i="value"in t&&!(dr.call(n,"hProperties")||dr.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function gp(e,t){const n=[];let i=-1;for(t&&n.push({type:"text",value:`
12
+ `});++i<e.length;)i&&n.push({type:"text",value:`
13
+ `}),n.push(e[i]);return t&&e.length>0&&n.push({type:"text",value:`
14
+ `}),n}function so(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function co(e,t){const n=cp(e,t),i=n.one(e,void 0),r=Kc(n),o=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return r&&o.children.push({type:"text",value:`
15
+ `},r),o}function hp(e,t){return e&&"run"in e?async function(n,i){const r=co(n,{file:i,...t});await e.run(r,i)}:function(n,i){return co(n,{file:i,...e||t})}}function po(e){if(e)throw e}var gn=Object.prototype.hasOwnProperty,fo=Object.prototype.toString,go=Object.defineProperty,ho=Object.getOwnPropertyDescriptor,mo=function(t){return typeof Array.isArray=="function"?Array.isArray(t):fo.call(t)==="[object Array]"},bo=function(t){if(!t||fo.call(t)!=="[object Object]")return!1;var n=gn.call(t,"constructor"),i=t.constructor&&t.constructor.prototype&&gn.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!i)return!1;var r;for(r in t);return typeof r>"u"||gn.call(t,r)},yo=function(t,n){go&&n.name==="__proto__"?go(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Io=function(t,n){if(n==="__proto__")if(gn.call(t,n)){if(ho)return ho(t,n).value}else return;return t[n]},mp=function e(){var t,n,i,r,o,l,u=arguments[0],a=1,s=arguments.length,c=!1;for(typeof u=="boolean"&&(c=u,u=arguments[1]||{},a=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});a<s;++a)if(t=arguments[a],t!=null)for(n in t)i=Io(u,n),r=Io(t,n),u!==r&&(c&&r&&(bo(r)||(o=mo(r)))?(o?(o=!1,l=i&&mo(i)?i:[]):l=i&&bo(i)?i:{},yo(u,{name:n,newValue:e(c,l,r)})):typeof r<"u"&&yo(u,{name:n,newValue:r}));return u};const fr=ui(mp);function gr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function bp(){const e=[],t={run:n,use:i};return t;function n(...r){let o=-1;const l=r.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);u(null,...r);function u(a,...s){const c=e[++o];let d=-1;if(a){l(a);return}for(;++d<r.length;)(s[d]===null||s[d]===void 0)&&(s[d]=r[d]);r=s,c?yp(c,u)(...s):l(null,...s)}}function i(r){if(typeof r!="function")throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}}function yp(e,t){let n;return i;function i(...l){const u=e.length>l.length;let a;u&&l.push(r);try{a=e.apply(this,l)}catch(s){const c=s;if(u&&n)throw c;return r(c)}u||(a&&a.then&&typeof a.then=="function"?a.then(o,r):a instanceof Error?r(a):o(a))}function r(l,...u){n||(n=!0,t(l,...u))}function o(l){r(null,l)}}const Qe={basename:Ip,dirname:vp,extname:Cp,join:xp,sep:"/"};function Ip(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');jt(e);let n=0,i=-1,r=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;r--;)if(e.codePointAt(r)===47){if(o){n=r+1;break}}else i<0&&(o=!0,i=r+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let l=-1,u=t.length-1;for(;r--;)if(e.codePointAt(r)===47){if(o){n=r+1;break}}else l<0&&(o=!0,l=r+1),u>-1&&(e.codePointAt(r)===t.codePointAt(u--)?u<0&&(i=r):(u=-1,i=l));return n===i?i=l:i<0&&(i=e.length),e.slice(n,i)}function vp(e){if(jt(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Cp(e){jt(e);let t=e.length,n=-1,i=0,r=-1,o=0,l;for(;t--;){const u=e.codePointAt(t);if(u===47){if(l){i=t+1;break}continue}n<0&&(l=!0,n=t+1),u===46?r<0?r=t:o!==1&&(o=1):r>-1&&(o=-1)}return r<0||n<0||o===0||o===1&&r===n-1&&r===i+1?"":e.slice(r,n)}function xp(...e){let t=-1,n;for(;++t<e.length;)jt(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Ap(n)}function Ap(e){jt(e);const t=e.codePointAt(0)===47;let n=wp(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function wp(e,t){let n="",i=0,r=-1,o=0,l=-1,u,a;for(;++l<=e.length;){if(l<e.length)u=e.codePointAt(l);else{if(u===47)break;u=47}if(u===47){if(!(r===l-1||o===1))if(r!==l-1&&o===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(a=n.lastIndexOf("/"),a!==n.length-1){a<0?(n="",i=0):(n=n.slice(0,a),i=n.length-1-n.lastIndexOf("/")),r=l,o=0;continue}}else if(n.length>0){n="",i=0,r=l,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(r+1,l):n=e.slice(r+1,l),i=l-r-1;r=l,o=0}else u===46&&o>-1?o++:o=-1}return n}function jt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Sp={cwd:Ep};function Ep(){return"/"}function hr(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function kp(e){if(typeof e=="string")e=new URL(e);else if(!hr(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Fp(e)}function Fp(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const i=t.codePointAt(n+2);if(i===70||i===102){const r=new TypeError("File URL path must not include encoded / characters");throw r.code="ERR_INVALID_FILE_URL_PATH",r}}return decodeURIComponent(t)}const mr=["history","path","basename","stem","extname","dirname"];class vo{constructor(t){let n;t?hr(t)?n={path:t}:typeof t=="string"||Gp(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Sp.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<mr.length;){const o=mr[i];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let r;for(r in n)mr.includes(r)||(this[r]=n[r])}get basename(){return typeof this.path=="string"?Qe.basename(this.path):void 0}set basename(t){yr(t,"basename"),br(t,"basename"),this.path=Qe.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Qe.dirname(this.path):void 0}set dirname(t){Co(this.basename,"dirname"),this.path=Qe.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Qe.extname(this.path):void 0}set extname(t){if(br(t,"extname"),Co(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Qe.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){hr(t)&&(t=kp(t)),yr(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Qe.basename(this.path,this.extname):void 0}set stem(t){yr(t,"stem"),br(t,"stem"),this.path=Qe.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const r=this.message(t,n,i);throw r.fatal=!0,r}info(t,n,i){const r=this.message(t,n,i);return r.fatal=void 0,r}message(t,n,i){const r=new Fe(t,n,i);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function br(e,t){if(e&&e.includes(Qe.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Qe.sep+"`")}function yr(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Co(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Gp(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Bp=function(e){const i=this.constructor.prototype,r=i[e],o=function(){return r.apply(o,arguments)};return Object.setPrototypeOf(o,i),o},Pp={}.hasOwnProperty;class Ir extends Bp{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=bp()}copy(){const t=new Ir;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(fr(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(xr("data",this.frozen),this.namespace[t]=n,this):Pp.call(this.namespace,t)&&this.namespace[t]||void 0:t?(xr("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const r=n.call(t,...i);typeof r=="function"&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=hn(t),i=this.parser||this.Parser;return vr("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),vr("process",this.parser||this.Parser),Cr("process",this.compiler||this.Compiler),n?r(void 0,n):new Promise(r);function r(o,l){const u=hn(t),a=i.parse(u);i.run(a,u,function(c,d,f){if(c||!d||!f)return s(c);const p=d,y=i.stringify(p,f);Op(y)?f.value=y:f.result=y,s(c,f)});function s(c,d){c||!d?l(c):o?o(d):n(void 0,d)}}}processSync(t){let n=!1,i;return this.freeze(),vr("processSync",this.parser||this.Parser),Cr("processSync",this.compiler||this.Compiler),this.process(t,r),Ao("processSync","process",n),i;function r(o,l){n=!0,po(o),i=l}}run(t,n,i){xo(t),this.freeze();const r=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?o(void 0,i):new Promise(o);function o(l,u){const a=hn(n);r.run(t,a,s);function s(c,d,f){const p=d||t;c?u(c):l?l(p):i(void 0,p,f)}}}runSync(t,n){let i=!1,r;return this.run(t,n,o),Ao("runSync","run",i),r;function o(l,u){po(l),r=u,i=!0}}stringify(t,n){this.freeze();const i=hn(n),r=this.compiler||this.Compiler;return Cr("stringify",r),xo(t),r(t,i)}use(t,...n){const i=this.attachers,r=this.namespace;if(xr("use",this.frozen),t!=null)if(typeof t=="function")a(t,n);else if(typeof t=="object")Array.isArray(t)?u(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(s){if(typeof s=="function")a(s,[]);else if(typeof s=="object")if(Array.isArray(s)){const[c,...d]=s;a(c,d)}else l(s);else throw new TypeError("Expected usable value, not `"+s+"`")}function l(s){if(!("plugins"in s)&&!("settings"in s))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");u(s.plugins),s.settings&&(r.settings=fr(!0,r.settings,s.settings))}function u(s){let c=-1;if(s!=null)if(Array.isArray(s))for(;++c<s.length;){const d=s[c];o(d)}else throw new TypeError("Expected a list of plugins, not `"+s+"`")}function a(s,c){let d=-1,f=-1;for(;++d<i.length;)if(i[d][0]===s){f=d;break}if(f===-1)i.push([s,...c]);else if(c.length>0){let[p,...y]=c;const b=i[f][1];gr(b)&&gr(p)&&(p=fr(!0,b,p)),i[f]=[s,p,...y]}}}}const Tp=new Ir().freeze();function vr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Cr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function xr(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function xo(e){if(!gr(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ao(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function hn(e){return Vp(e)?e:new vo(e)}function Vp(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Op(e){return typeof e=="string"||Np(e)}function Np(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Dp="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",wo=[],So={allowDangerousHtml:!0},Lp=/^(https?|ircs?|mailto|xmpp)$/i,Mp=[{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 Eo(e){const t=e.allowedElements,n=e.allowElement,i=e.children||"",r=e.className,o=e.components,l=e.disallowedElements,u=e.rehypePlugins||wo,a=e.remarkPlugins||wo,s=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...So}:So,c=e.skipHtml,d=e.unwrapDisallowed,f=e.urlTransform||Rp,p=Tp().use(vc).use(a).use(hp,s).use(u),y=new vo;typeof i=="string"&&(y.value=i);for(const S of Mp)Object.hasOwn(e,S.from)&&(""+S.from+(S.to?"use `"+S.to+"` instead":"remove it")+Dp+S.id,void 0);const b=p.parse(y);let x=p.runSync(b,y);return r&&(x={type:"element",tagName:"div",properties:{className:r},children:x.type==="root"?x.children:[x]}),uo(x,I),iu(x,{Fragment:P.Fragment,components:o,ignoreInvalidStyle:!0,jsx:P.jsx,jsxs:P.jsxs,passKeys:!0,passNode:!0});function I(S,A,E){if(S.type==="raw"&&E&&typeof A=="number")return c?E.children.splice(A,1):E.children[A]={type:"text",value:S.value},A;if(S.type==="element"){let k;for(k in er)if(Object.hasOwn(er,k)&&Object.hasOwn(S.properties,k)){const C=S.properties[k],M=er[k];(M===null||M.includes(S.tagName))&&(S.properties[k]=f(String(C||""),k,S))}}if(S.type==="element"){let k=t?!t.includes(S.tagName):l?l.includes(S.tagName):!1;if(!k&&n&&typeof A=="number"&&(k=!n(S,A,E)),k&&E&&typeof A=="number")return d&&S.children?E.children.splice(A,1,...S.children):E.children.splice(A,1),A}}}function Rp(e){const t=e.indexOf(":"),n=e.indexOf("?"),i=e.indexOf("#"),r=e.indexOf("/");return t<0||r>-1&&t>r||n>-1&&t>n||i>-1&&t>i||Lp.test(e.slice(0,t))?e:""}function mn({prop:e}){const t={width:"100%",background:"#e2e3e5",borderRadius:"5px",paddingTop:"2px",paddingLeft:"10px",paddingRight:"10px",paddingBottom:"2px"},n={...t,background:"#fff3cd"},i={...t,background:"#d1ecf1"},r={...t,background:"#f8d7da"},o={...t,background:"#fffff2"};let l={};switch(e.alertType){case"info":l=i;break;case"neutral":l=o;break;case"warning":l=n;break;case"error":l=r;break;default:l=t}return P.jsx("div",{className:`pd-alert-${e.alertType}`,style:l,children:P.jsx(Eo,{components:{a:({...u})=>P.jsx("a",{...u,target:"_blank",rel:"noopener noreferrer"})},children:e.content})})}var bn={exports:{}};bn.exports,function(e,t){var n=200,i="__lodash_hash_undefined__",r=1,o=2,l=9007199254740991,u="[object Arguments]",a="[object Array]",s="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Function]",y="[object GeneratorFunction]",b="[object Map]",x="[object Number]",I="[object Null]",S="[object Object]",A="[object Promise]",E="[object Proxy]",k="[object RegExp]",C="[object Set]",M="[object String]",V="[object Symbol]",D="[object Undefined]",O="[object WeakMap]",N="[object ArrayBuffer]",T="[object DataView]",$="[object Float32Array]",ne="[object Float64Array]",X="[object Int8Array]",Z="[object Int16Array]",oe="[object Int32Array]",re="[object Uint8Array]",fe="[object Uint8ClampedArray]",m="[object Uint16Array]",be="[object Uint32Array]",le=/[\\^$.*+?()[\]{}|]/g,h=/^\[object .+?Constructor\]$/,se=/^(?:0|[1-9]\d*)$/,U={};U[$]=U[ne]=U[X]=U[Z]=U[oe]=U[re]=U[fe]=U[m]=U[be]=!0,U[u]=U[a]=U[N]=U[c]=U[T]=U[d]=U[f]=U[p]=U[b]=U[x]=U[S]=U[k]=U[C]=U[M]=U[O]=!1;var ae=typeof Pt=="object"&&Pt&&Pt.Object===Object&&Pt,xe=typeof self=="object"&&self&&self.Object===Object&&self,de=ae||xe||Function("return this")(),Ee=t&&!t.nodeType&&t,Me=Ee&&!0&&e&&!e.nodeType&&e,We=Me&&Me.exports===Ee,Re=We&&ae.process,ft=function(){try{return Re&&Re.binding&&Re.binding("util")}catch{}}(),tt=ft&&ft.isTypedArray;function gt(g,v){for(var B=-1,z=g==null?0:g.length,me=0,te=[];++B<z;){var ve=g[B];v(ve,B,g)&&(te[me++]=ve)}return te}function ht(g,v){for(var B=-1,z=v.length,me=g.length;++B<z;)g[me+B]=v[B];return g}function Lt(g,v){for(var B=-1,z=g==null?0:g.length;++B<z;)if(v(g[B],B,g))return!0;return!1}function R(g,v){for(var B=-1,z=Array(g);++B<g;)z[B]=v(B);return z}function W(g){return function(v){return g(v)}}function Q(g,v){return g.has(v)}function ue(g,v){return g==null?void 0:g[v]}function Ae(g){var v=-1,B=Array(g.size);return g.forEach(function(z,me){B[++v]=[me,z]}),B}function we(g,v){return function(B){return g(v(B))}}function At(g){var v=-1,B=Array(g.size);return g.forEach(function(z){B[++v]=z}),B}var $t=Array.prototype,w=Function.prototype,G=Object.prototype,H=de["__core-js_shared__"],_=w.toString,ie=G.hasOwnProperty,Ne=function(){var g=/[^.]+$/.exec(H&&H.keys&&H.keys.IE_PROTO||"");return g?"Symbol(src)_1."+g:""}(),nt=G.toString,Je=RegExp("^"+_.call(ie).replace(le,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mt=We?de.Buffer:void 0,rt=de.Symbol,Be=de.Uint8Array,ut=G.propertyIsEnumerable,Ye=$t.splice,wt=rt?rt.toStringTag:void 0,oa=Object.getOwnPropertySymbols,ch=mt?mt.isBuffer:void 0,ph=we(Object.keys,Object),Zr=Mt(de,"DataView"),Kt=Mt(de,"Map"),jr=Mt(de,"Promise"),Jr=Mt(de,"Set"),Yr=Mt(de,"WeakMap"),en=Mt(Object,"create"),dh=kt(Zr),fh=kt(Kt),gh=kt(jr),hh=kt(Jr),mh=kt(Yr),la=rt?rt.prototype:void 0,_r=la?la.valueOf:void 0;function St(g){var v=-1,B=g==null?0:g.length;for(this.clear();++v<B;){var z=g[v];this.set(z[0],z[1])}}function bh(){this.__data__=en?en(null):{},this.size=0}function yh(g){var v=this.has(g)&&delete this.__data__[g];return this.size-=v?1:0,v}function Ih(g){var v=this.__data__;if(en){var B=v[g];return B===i?void 0:B}return ie.call(v,g)?v[g]:void 0}function vh(g){var v=this.__data__;return en?v[g]!==void 0:ie.call(v,g)}function Ch(g,v){var B=this.__data__;return this.size+=this.has(g)?0:1,B[g]=en&&v===void 0?i:v,this}St.prototype.clear=bh,St.prototype.delete=yh,St.prototype.get=Ih,St.prototype.has=vh,St.prototype.set=Ch;function st(g){var v=-1,B=g==null?0:g.length;for(this.clear();++v<B;){var z=g[v];this.set(z[0],z[1])}}function xh(){this.__data__=[],this.size=0}function Ah(g){var v=this.__data__,B=Rn(v,g);if(B<0)return!1;var z=v.length-1;return B==z?v.pop():Ye.call(v,B,1),--this.size,!0}function wh(g){var v=this.__data__,B=Rn(v,g);return B<0?void 0:v[B][1]}function Sh(g){return Rn(this.__data__,g)>-1}function Eh(g,v){var B=this.__data__,z=Rn(B,g);return z<0?(++this.size,B.push([g,v])):B[z][1]=v,this}st.prototype.clear=xh,st.prototype.delete=Ah,st.prototype.get=wh,st.prototype.has=Sh,st.prototype.set=Eh;function Et(g){var v=-1,B=g==null?0:g.length;for(this.clear();++v<B;){var z=g[v];this.set(z[0],z[1])}}function kh(){this.size=0,this.__data__={hash:new St,map:new(Kt||st),string:new St}}function Fh(g){var v=Xn(this,g).delete(g);return this.size-=v?1:0,v}function Gh(g){return Xn(this,g).get(g)}function Bh(g){return Xn(this,g).has(g)}function Ph(g,v){var B=Xn(this,g),z=B.size;return B.set(g,v),this.size+=B.size==z?0:1,this}Et.prototype.clear=kh,Et.prototype.delete=Fh,Et.prototype.get=Gh,Et.prototype.has=Bh,Et.prototype.set=Ph;function Mn(g){var v=-1,B=g==null?0:g.length;for(this.__data__=new Et;++v<B;)this.add(g[v])}function Th(g){return this.__data__.set(g,i),this}function Vh(g){return this.__data__.has(g)}Mn.prototype.add=Mn.prototype.push=Th,Mn.prototype.has=Vh;function bt(g){var v=this.__data__=new st(g);this.size=v.size}function Oh(){this.__data__=new st,this.size=0}function Nh(g){var v=this.__data__,B=v.delete(g);return this.size=v.size,B}function Dh(g){return this.__data__.get(g)}function Lh(g){return this.__data__.has(g)}function Mh(g,v){var B=this.__data__;if(B instanceof st){var z=B.__data__;if(!Kt||z.length<n-1)return z.push([g,v]),this.size=++B.size,this;B=this.__data__=new Et(z)}return B.set(g,v),this.size=B.size,this}bt.prototype.clear=Oh,bt.prototype.delete=Nh,bt.prototype.get=Dh,bt.prototype.has=Lh,bt.prototype.set=Mh;function Rh(g,v){var B=zn(g),z=!B&&em(g),me=!B&&!z&&Ur(g),te=!B&&!z&&!me&&ha(g),ve=B||z||me||te,Se=ve?R(g.length,String):[],ke=Se.length;for(var ye in g)ie.call(g,ye)&&!(ve&&(ye=="length"||me&&(ye=="offset"||ye=="parent")||te&&(ye=="buffer"||ye=="byteLength"||ye=="byteOffset")||Uh(ye,ke)))&&Se.push(ye);return Se}function Rn(g,v){for(var B=g.length;B--;)if(pa(g[B][0],v))return B;return-1}function Xh(g,v,B){var z=v(g);return zn(g)?z:ht(z,B(g))}function tn(g){return g==null?g===void 0?D:I:wt&&wt in Object(g)?Yh(g):Kh(g)}function aa(g){return nn(g)&&tn(g)==u}function ua(g,v,B,z,me){return g===v?!0:g==null||v==null||!nn(g)&&!nn(v)?g!==g&&v!==v:zh(g,v,B,z,ua,me)}function zh(g,v,B,z,me,te){var ve=zn(g),Se=zn(v),ke=ve?a:yt(g),ye=Se?a:yt(v);ke=ke==u?S:ke,ye=ye==u?S:ye;var Xe=ke==S,_e=ye==S,Pe=ke==ye;if(Pe&&Ur(g)){if(!Ur(v))return!1;ve=!0,Xe=!1}if(Pe&&!Xe)return te||(te=new bt),ve||ha(g)?sa(g,v,B,z,me,te):jh(g,v,ke,B,z,me,te);if(!(B&r)){var Ze=Xe&&ie.call(g,"__wrapped__"),je=_e&&ie.call(v,"__wrapped__");if(Ze||je){var It=Ze?g.value():g,ct=je?v.value():v;return te||(te=new bt),me(It,ct,B,z,te)}}return Pe?(te||(te=new bt),Jh(g,v,B,z,me,te)):!1}function Hh(g){if(!ga(g)||Qh(g))return!1;var v=da(g)?Je:h;return v.test(kt(g))}function Wh(g){return nn(g)&&fa(g.length)&&!!U[tn(g)]}function Zh(g){if(!$h(g))return ph(g);var v=[];for(var B in Object(g))ie.call(g,B)&&B!="constructor"&&v.push(B);return v}function sa(g,v,B,z,me,te){var ve=B&r,Se=g.length,ke=v.length;if(Se!=ke&&!(ve&&ke>Se))return!1;var ye=te.get(g);if(ye&&te.get(v))return ye==v;var Xe=-1,_e=!0,Pe=B&o?new Mn:void 0;for(te.set(g,v),te.set(v,g);++Xe<Se;){var Ze=g[Xe],je=v[Xe];if(z)var It=ve?z(je,Ze,Xe,v,g,te):z(Ze,je,Xe,g,v,te);if(It!==void 0){if(It)continue;_e=!1;break}if(Pe){if(!Lt(v,function(ct,Ft){if(!Q(Pe,Ft)&&(Ze===ct||me(Ze,ct,B,z,te)))return Pe.push(Ft)})){_e=!1;break}}else if(!(Ze===je||me(Ze,je,B,z,te))){_e=!1;break}}return te.delete(g),te.delete(v),_e}function jh(g,v,B,z,me,te,ve){switch(B){case T:if(g.byteLength!=v.byteLength||g.byteOffset!=v.byteOffset)return!1;g=g.buffer,v=v.buffer;case N:return!(g.byteLength!=v.byteLength||!te(new Be(g),new Be(v)));case c:case d:case x:return pa(+g,+v);case f:return g.name==v.name&&g.message==v.message;case k:case M:return g==v+"";case b:var Se=Ae;case C:var ke=z&r;if(Se||(Se=At),g.size!=v.size&&!ke)return!1;var ye=ve.get(g);if(ye)return ye==v;z|=o,ve.set(g,v);var Xe=sa(Se(g),Se(v),z,me,te,ve);return ve.delete(g),Xe;case V:if(_r)return _r.call(g)==_r.call(v)}return!1}function Jh(g,v,B,z,me,te){var ve=B&r,Se=ca(g),ke=Se.length,ye=ca(v),Xe=ye.length;if(ke!=Xe&&!ve)return!1;for(var _e=ke;_e--;){var Pe=Se[_e];if(!(ve?Pe in v:ie.call(v,Pe)))return!1}var Ze=te.get(g);if(Ze&&te.get(v))return Ze==v;var je=!0;te.set(g,v),te.set(v,g);for(var It=ve;++_e<ke;){Pe=Se[_e];var ct=g[Pe],Ft=v[Pe];if(z)var ma=ve?z(Ft,ct,Pe,v,g,te):z(ct,Ft,Pe,g,v,te);if(!(ma===void 0?ct===Ft||me(ct,Ft,B,z,te):ma)){je=!1;break}It||(It=Pe=="constructor")}if(je&&!It){var Hn=g.constructor,Wn=v.constructor;Hn!=Wn&&"constructor"in g&&"constructor"in v&&!(typeof Hn=="function"&&Hn instanceof Hn&&typeof Wn=="function"&&Wn instanceof Wn)&&(je=!1)}return te.delete(g),te.delete(v),je}function ca(g){return Xh(g,rm,_h)}function Xn(g,v){var B=g.__data__;return qh(v)?B[typeof v=="string"?"string":"hash"]:B.map}function Mt(g,v){var B=ue(g,v);return Hh(B)?B:void 0}function Yh(g){var v=ie.call(g,wt),B=g[wt];try{g[wt]=void 0;var z=!0}catch{}var me=nt.call(g);return z&&(v?g[wt]=B:delete g[wt]),me}var _h=oa?function(g){return g==null?[]:(g=Object(g),gt(oa(g),function(v){return ut.call(g,v)}))}:im,yt=tn;(Zr&&yt(new Zr(new ArrayBuffer(1)))!=T||Kt&&yt(new Kt)!=b||jr&&yt(jr.resolve())!=A||Jr&&yt(new Jr)!=C||Yr&&yt(new Yr)!=O)&&(yt=function(g){var v=tn(g),B=v==S?g.constructor:void 0,z=B?kt(B):"";if(z)switch(z){case dh:return T;case fh:return b;case gh:return A;case hh:return C;case mh:return O}return v});function Uh(g,v){return v=v??l,!!v&&(typeof g=="number"||se.test(g))&&g>-1&&g%1==0&&g<v}function qh(g){var v=typeof g;return v=="string"||v=="number"||v=="symbol"||v=="boolean"?g!=="__proto__":g===null}function Qh(g){return!!Ne&&Ne in g}function $h(g){var v=g&&g.constructor,B=typeof v=="function"&&v.prototype||G;return g===B}function Kh(g){return nt.call(g)}function kt(g){if(g!=null){try{return _.call(g)}catch{}try{return g+""}catch{}}return""}function pa(g,v){return g===v||g!==g&&v!==v}var em=aa(function(){return arguments}())?aa:function(g){return nn(g)&&ie.call(g,"callee")&&!ut.call(g,"callee")},zn=Array.isArray;function tm(g){return g!=null&&fa(g.length)&&!da(g)}var Ur=ch||om;function nm(g,v){return ua(g,v)}function da(g){if(!ga(g))return!1;var v=tn(g);return v==p||v==y||v==s||v==E}function fa(g){return typeof g=="number"&&g>-1&&g%1==0&&g<=l}function ga(g){var v=typeof g;return g!=null&&(v=="object"||v=="function")}function nn(g){return g!=null&&typeof g=="object"}var ha=tt?W(tt):Wh;function rm(g){return tm(g)?Rh(g):Zh(g)}function im(){return[]}function om(){return!1}e.exports=nm}(bn,bn.exports);var Xp=bn.exports;const ko=ui(Xp),Fo=F.createContext(void 0),ot=()=>{const e=F.useContext(Fo);if(!e)throw new Error("Must be used inside FrontendClientProvider");return e},zp=({children:e,client:t})=>{const n=new it.QueryClient({defaultOptions:{queries:{staleTime:36e5,refetchOnWindowFocus:!1}}});return P.jsx(it.QueryClientProvider,{client:n,children:P.jsx(Fo.Provider,{value:t,children:e})})};function Go(e){return typeof e=="object"&&e&&"__lv"in e?e.__lv.value:e}function Hp(e){if(typeof e=="object"&&e&&"selectedOptions"in e&&Array.isArray(e.selectedOptions)){const t=e.selectedOptions,n=[];for(const i of t)if(typeof i=="object"&&i&&"emitValue"in i){const r=i.emitValue;typeof r=="object"&&r&&"__lv"in r?n.push(r.__lv.value):n.push(r)}else return[];return n}return e&&typeof e=="object"&&Array.isArray(e.__lv)?e.__lv:Array.isArray(e)?e:[]}function Wp(e){const t=Hp(e.value);if(!e.prop.default&&typeof t>"u")return["required"];if(!e.prop.default&&Array.isArray(t)&&!t.length)return["empty array"]}function Zp(e){const t=Go(e.value);if(t==null||typeof t>"u")return["required"]}function jp(e){const{prop:t,value:n}=e,i=Go(n);if(!t.default&&(i==null||typeof i>"u"))return["required"];const r=typeof i=="number"?i:parseInt(String(i));if(Number.isNaN(r))return["not a number"];const o=[];return typeof t.min=="number"&&r<t.min&&o.push("number too small"),typeof t.max=="number"&&r>t.max&&o.push("number too big"),o}function Jp(e){const{prop:t,value:n}=e;if(!t.default&&(n==null||typeof n>"u"))return["required"]}function Yp(e){const t=e.authType==="oauth",n=JSON.parse(e.customFieldsJson||"[]");if("extracted_custom_fields_names"in e&&e.extracted_custom_fields_names){const i=(e.extracted_custom_fields_names||[]).map(r=>({name:r}));n.push(...i)}return n.map(i=>({...i,optional:i.optional||t}))}function _p(e){const{app:t,value:n}=e;if(!t)return["app field not registered"];if(!t.authType)return;if(!n)return["no app configured"];if(typeof n!="object")return["not an app"];const i=n;if("authProvisionId"in i&&!i.authProvisionId){const r=[];if(t.authType==="oauth"&&!i.oauth_access_token&&r.push("missing oauth token"),t.authType==="oauth"||t.authType==="keys"){const o=Yp(t),l=i;for(const u of o)!u.optional&&!l[u.name]&&r.push(`missing custom field: ${u.name}`)}return r}}const Up=(e,t)=>{if(e!==void 0&&e!=="")return t!==void 0&&t!==""?{resolvedId:e,warningType:"both"}:{resolvedId:e};if(t!==void 0&&t!=="")return{resolvedId:t,warningType:"deprecated"};throw new Error("Either externalUserId or userId must be provided")};function qp(e){return typeof e=="string"}function $e(e,t){return e.type===t}function Ar(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&"value"in e&&(typeof e.value=="string"||typeof e.value=="number")}function Oe(e){if(e==null)return{label:"",value:""};if(typeof e!="object")return{label:String(e),value:e};if("__lv"in e)return Oe(e.__lv);if("lv"in e)return Oe(e.lv);if("value"in e){const{label:t,value:n}=e;return{label:String(t||n),value:n}}return{label:String(e),value:e}}const Jt=["$.service.db","$.interface.http","$.interface.apphook","$.interface.timer","dir"],wr=F.createContext(void 0),Yt=()=>{const e=F.useContext(wr);if(!e)throw new Error("Must be used inside provider");return e},Bo=({children:e,props:t})=>{const n=ot(),i=F.useId(),{component:r,configuredProps:o,propNames:l,externalUserId:u,userId:a,sdkResponse:s,enableDebugging:c,oauthAppConfig:d}=t,{resolvedId:f,warningType:p}=F.useMemo(()=>Up(u,a),[u,a]);F.useEffect(()=>{process.env.NODE_ENV!=="production"&&(p==="both"?console.warn("[connect-react] Both externalUserId and userId provided. Using externalUserId. Please remove userId to avoid this warning."):p==="deprecated"&&console.warn("[connect-react] userId is deprecated. Please use externalUserId instead."))},[p]);const y=r.key,[b,x]=F.useState(0),[I,S]=F.useState({}),[A,E]=F.useState(!1),[k,C]=F.useState({}),[M,V]=F.useState([]),[D,O]=F.useState({});F.useEffect(()=>{O({})},[r.key]);const N=R=>D[R.name];let T=o||{};const[$,ne]=F.useState(T),X=t.onUpdateConfiguredProps||ne;t.onUpdateConfiguredProps||(T=$);const[Z,oe]=F.useState(),[re,fe]=F.useState(),m={externalUserId:f,id:y,configuredProps:T,dynamicPropsId:Z==null?void 0:Z.id},be={...m},{isFetching:le}=it.useQuery({queryKey:["dynamicProps",be],queryFn:async()=>{var we;const R=await n.components.reloadProps(m),{dynamicProps:W,observations:Q,errors:ue}=R,Ae=W;return Q&&Q.filter(At=>At.k==="error").length>0?ht(Q):ht(ue),W&&Ae&&((we=t.onUpdateDynamicProps)==null||we.call(t,W),oe(Ae)),fe(void 0),[]},enabled:re!=null}),[h,se]=F.useState([]);F.useEffect(()=>{tt()},[T]);const U=F.useMemo(()=>{let R=(Z==null?void 0:Z.configurableProps)||t.component.configurableProps||[];if(l!=null&&l.length){const W=[];for(const Q of R)l.findIndex(ue=>Q.name===ue)>=0&&W.push(Q);R=W}return re!=null&&(R=Array.isArray(R)?R.slice(0,re+1):R),R},[Z==null?void 0:Z.configurableProps,t.component.configurableProps,l,re]),ae=(R,W)=>{const Q=[];if(R.optional||R.hidden||R.disabled||Jt.includes(R.type))return[];if($e(R,"app")){const ue=I[R.name];if(ue){const Ae="app"in ue.extra?ue.extra.app:void 0;Q.push(..._p({prop:R,value:W,app:Ae})??[])}else Q.push("field not registered")}else $e(R,"boolean")?Q.push(...Zp({prop:R,value:W})??[]):$e(R,"integer")?Q.push(...jp({prop:R,value:W})??[]):$e(R,"string")?Q.push(...Jp({prop:R,value:W})??[]):$e(R,"string[]")&&Q.push(...Wp({prop:R,value:W})??[]);return Q},xe=R=>{let W;for(let Q=0;Q<U.length;Q++){const ue=U[Q];if(ue.hidden||ue.optional&&!N(ue))continue;if(R[ue.name]===void 0&&W==null&&(ue.type==="app"||ue.remoteOptions)){W=Q;break}}x(W)},de=R=>{X(R),xe(R),Ee(R)},Ee=R=>{const W={};for(let Q=0;Q<U.length;Q++){const ue=U[Q],Ae=R[ue.name],we=ae(ue,Ae);we.length&&(W[ue.name]=we)}C(W)};F.useEffect(()=>{xe($)},[$]),F.useEffect(()=>{Ee(T)},[T,re,b]),F.useEffect(()=>{ht(s)},[s]),F.useEffect(()=>{const R={};for(const W of U){if(W.hidden||Jt.includes(W.type)||W.optional&&!N(W))continue;const Q=T[W.name];Q===void 0?"default"in W&&W.default!=null&&(R[W.name]=W.default):W.type==="integer"&&typeof Q!="number"?delete R[W.name]:R[W.name]=Q}ko(R,T)||de(R)},[U]);const[Me,We]=F.useState(f);F.useEffect(()=>{Me!==f&&(de({}),We(f))},[f]);const Re=(R,W)=>{const Q=U[R],ue={...T};W===void 0?delete ue[Q.name]:ue[Q.name]=W,X(ue),Q.reloadProps&&fe(R),(Q.type==="app"||Q.remoteOptions)&&xe(ue);const Ae=ae(Q,W),we={...k};Ae.length?we[Q.name]=Ae:delete we[Q.name],C(we)},ft=(R,W)=>{const Q={...D};W?Q[R.name]=!0:delete Q[R.name];const ue=U.findIndex(Ae=>Ae.name===R.name);W?(o==null?void 0:o[R.name])!==void 0?Re(ue,o[R.name]):"default"in R&&R.default!=null&&Re(ue,R.default):Re(ue,void 0),O(Q)},tt=()=>{const R=[];for(const W of U){if(!W||W.optional||W.hidden||Jt.includes(W.type))continue;const Q=T[W.name];ae(W,Q).length&&R.push(W.name)}R&&h&&ko(R,h)||se(R)},gt=R=>{S(W=>(W[R.prop.name]=R,W)),tt()},ht=R=>{if(!R)return;let W=[...M];const Q=(w,G)=>{try{const H=JSON.parse(w),_={name:H.name,message:H.message};_.name&&_.message&&G.push(_)}catch{}},ue=(w,G)=>{const H={name:w.name,message:w.message};H.name&&H.message&&G.push(H)},Ae=(w,G)=>{if(!(!("err"in w)||!w.err)&&w.err.name&&w.err.message){const H={name:w.err.name,message:w.err.message};G.push(H)}},we=(w,G)=>{if(Array.isArray(w)&&w.length>0)for(let H=0;H<w.length;H++)w[H].k==="error"&&Ae(w[H],G)},At=(w,G)=>{G.push({name:w.error,message:JSON.stringify(w.details)})},$t=(w,G)=>{var H;try{const _=(H=JSON.parse(w.message))==null?void 0:H.data;_&&"os"in _?we(_.os,G):_&&"observations"in _?we(_.observations,G):_&&"error"in _&&"details"in _&&At(_,G)}catch{}};if(Array.isArray(R)&&R.length>0)for(let w=0;w<R.length;w++){const G=R[w];typeof G=="string"?Q(G,W):typeof G=="object"&&"name"in G&&"message"in G&&"stack"in G?ue(G,W):typeof G=="object"&&G.k==="error"&&Ae(G,W)}else typeof R=="object"&&R&&"observations"in R?we(R.observations,W):typeof R=="object"&&R&&"os"in R?we(R.os,W):typeof R=="object"&&"message"in R?$t(R,W):W=[];V(W)},Lt={id:i,isValid:!Object.keys(k).length,props:t,externalUserId:f,userId:f,component:r,configurableProps:U,configuredProps:T,dynamicProps:Z,dynamicPropsQueryIsFetching:le,errors:k,fields:I,optionalPropIsEnabled:N,optionalPropSetEnabled:ft,propsNeedConfiguring:h,queryDisabledIdx:b,registerField:gt,setConfiguredProp:Re,setSubmitting:E,submitting:A,sdkErrors:M,enableDebugging:c,oauthAppConfig:d};return P.jsx(wr.Provider,{value:Lt,children:e})};function xt(e){"@babel/helpers - typeof";return xt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xt(e)}function Qp(e,t){if(xt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(xt(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Po(e){var t=Qp(e,"string");return xt(t)=="symbol"?t:t+""}function _t(e,t,n){return(t=Po(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function To(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?To(Object(n),!0).forEach(function(i){_t(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):To(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function $p(e){if(Array.isArray(e))return e}function Kp(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,r,o,l,u=[],a=!0,s=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;a=!1}else for(;!(a=(i=o.call(n)).done)&&(u.push(i.value),u.length!==t);a=!0);}catch(c){s=!0,r=c}finally{try{if(!a&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(s)throw r}}return u}}function Sr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function Vo(e,t){if(e){if(typeof e=="string")return Sr(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sr(e,t):void 0}}function ed(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
16
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lt(e,t){return $p(e)||Kp(e,t)||Vo(e,t)||ed()}function td(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.includes(i))continue;n[i]=e[i]}return n}function Ke(e,t){if(e==null)return{};var n,i,r=td(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var nd=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Oo(e){var t=e.defaultInputValue,n=t===void 0?"":t,i=e.defaultMenuIsOpen,r=i===void 0?!1:i,o=e.defaultValue,l=o===void 0?null:o,u=e.inputValue,a=e.menuIsOpen,s=e.onChange,c=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,p=e.value,y=Ke(e,nd),b=F.useState(u!==void 0?u:n),x=lt(b,2),I=x[0],S=x[1],A=F.useState(a!==void 0?a:r),E=lt(A,2),k=E[0],C=E[1],M=F.useState(p!==void 0?p:l),V=lt(M,2),D=V[0],O=V[1],N=F.useCallback(function(re,fe){typeof s=="function"&&s(re,fe),O(re)},[s]),T=F.useCallback(function(re,fe){var m;typeof c=="function"&&(m=c(re,fe)),S(m!==void 0?m:re)},[c]),$=F.useCallback(function(){typeof f=="function"&&f(),C(!0)},[f]),ne=F.useCallback(function(){typeof d=="function"&&d(),C(!1)},[d]),X=u!==void 0?u:I,Z=a!==void 0?a:k,oe=p!==void 0?p:D;return J(J({},y),{},{inputValue:X,menuIsOpen:Z,onChange:N,onInputChange:T,onMenuClose:ne,onMenuOpen:$,value:oe})}function q(){return q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},q.apply(null,arguments)}function rd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function No(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Po(i.key),i)}}function id(e,t,n){return t&&No(e.prototype,t),n&&No(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Er(e,t){return Er=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Er(e,t)}function od(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Er(e,t)}function yn(e){return yn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},yn(e)}function Do(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Do=function(){return!!e})()}function ld(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ad(e,t){if(t&&(xt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ld(e)}function ud(e){var t=Do();return function(){var n,i=yn(e);if(t){var r=yn(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return ad(this,n)}}function sd(e){if(Array.isArray(e))return Sr(e)}function cd(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pd(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
17
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nt(e){return sd(e)||cd(e)||Vo(e)||pd()}function dd(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const fd=Math.min,gd=Math.max,In=Math.round,vn=Math.floor,Cn=e=>({x:e,y:e});function hd(e){const{x:t,y:n,width:i,height:r}=e;return{width:i,height:r,top:n,left:t,right:t+i,bottom:n+r,x:t,y:n}}function xn(){return typeof window<"u"}function Lo(e){return Ro(e)?(e.nodeName||"").toLowerCase():"#document"}function at(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Mo(e){var t;return(t=(Ro(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ro(e){return xn()?e instanceof Node||e instanceof at(e).Node:!1}function md(e){return xn()?e instanceof Element||e instanceof at(e).Element:!1}function kr(e){return xn()?e instanceof HTMLElement||e instanceof at(e).HTMLElement:!1}function Xo(e){return!xn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof at(e).ShadowRoot}function zo(e){const{overflow:t,overflowX:n,overflowY:i,display:r}=Fr(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!["inline","contents"].includes(r)}function bd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function yd(e){return["html","body","#document"].includes(Lo(e))}function Fr(e){return at(e).getComputedStyle(e)}function Id(e){if(Lo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Xo(e)&&e.host||Mo(e);return Xo(t)?t.host:t}function Ho(e){const t=Id(e);return yd(t)?e.ownerDocument?e.ownerDocument.body:e.body:kr(t)&&zo(t)?t:Ho(t)}function An(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=Ho(e),o=r===((i=e.ownerDocument)==null?void 0:i.body),l=at(r);if(o){const u=Gr(l);return t.concat(l,l.visualViewport||[],zo(r)?r:[],u&&n?An(u):[])}return t.concat(r,An(r,[],n))}function Gr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function vd(e){const t=Fr(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const r=kr(e),o=r?e.offsetWidth:n,l=r?e.offsetHeight:i,u=In(n)!==o||In(i)!==l;return u&&(n=o,i=l),{width:n,height:i,$:u}}function Br(e){return md(e)?e:e.contextElement}function Wo(e){const t=Br(e);if(!kr(t))return Cn(1);const n=t.getBoundingClientRect(),{width:i,height:r,$:o}=vd(t);let l=(o?In(n.width):n.width)/i,u=(o?In(n.height):n.height)/r;return(!l||!Number.isFinite(l))&&(l=1),(!u||!Number.isFinite(u))&&(u=1),{x:l,y:u}}const Cd=Cn(0);function xd(e){const t=at(e);return!bd()||!t.visualViewport?Cd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ad(e,t,n){return!1}function Zo(e,t,n,i){t===void 0&&(t=!1);const r=e.getBoundingClientRect(),o=Br(e);let l=Cn(1);t&&(l=Wo(e));const u=Ad()?xd(o):Cn(0);let a=(r.left+u.x)/l.x,s=(r.top+u.y)/l.y,c=r.width/l.x,d=r.height/l.y;if(o){const f=at(o),p=i;let y=f,b=Gr(y);for(;b&&i&&p!==y;){const x=Wo(b),I=b.getBoundingClientRect(),S=Fr(b),A=I.left+(b.clientLeft+parseFloat(S.paddingLeft))*x.x,E=I.top+(b.clientTop+parseFloat(S.paddingTop))*x.y;a*=x.x,s*=x.y,c*=x.x,d*=x.y,a+=A,s+=E,y=at(b),b=Gr(y)}}return hd({width:c,height:d,x:a,y:s})}function wd(e,t){let n=null,i;const r=Mo(e);function o(){var u;clearTimeout(i),(u=n)==null||u.disconnect(),n=null}function l(u,a){u===void 0&&(u=!1),a===void 0&&(a=1),o();const{left:s,top:c,width:d,height:f}=e.getBoundingClientRect();if(u||t(),!d||!f)return;const p=vn(c),y=vn(r.clientWidth-(s+d)),b=vn(r.clientHeight-(c+f)),x=vn(s),S={rootMargin:-p+"px "+-y+"px "+-b+"px "+-x+"px",threshold:gd(0,fd(1,a))||1};let A=!0;function E(k){const C=k[0].intersectionRatio;if(C!==a){if(!A)return l();C?l(!1,C):i=setTimeout(()=>{l(!1,1e-7)},1e3)}A=!1}try{n=new IntersectionObserver(E,{...S,root:r.ownerDocument})}catch{n=new IntersectionObserver(E,S)}n.observe(e)}return l(!0),o}function Sd(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:a=!1}=i,s=Br(e),c=r||o?[...s?An(s):[],...An(t)]:[];c.forEach(I=>{r&&I.addEventListener("scroll",n,{passive:!0}),o&&I.addEventListener("resize",n)});const d=s&&u?wd(s,n):null;let f=-1,p=null;l&&(p=new ResizeObserver(I=>{let[S]=I;S&&S.target===s&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var A;(A=p)==null||A.observe(t)})),n()}),s&&!a&&p.observe(s),p.observe(t));let y,b=a?Zo(e):null;a&&x();function x(){const I=Zo(e);b&&(I.x!==b.x||I.y!==b.y||I.width!==b.width||I.height!==b.height)&&n(),b=I,y=requestAnimationFrame(x)}return n(),()=>{var I;c.forEach(S=>{r&&S.removeEventListener("scroll",n),o&&S.removeEventListener("resize",n)}),d==null||d(),(I=p)==null||I.disconnect(),p=null,a&&cancelAnimationFrame(y)}}var Pr=F.useLayoutEffect,Ed=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],wn=function(){};function kd(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function Fd(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];var o=[].concat(i);if(t&&e)for(var l in t)t.hasOwnProperty(l)&&t[l]&&o.push("".concat(kd(e,l)));return o.filter(function(u){return u}).map(function(u){return String(u).trim()}).join(" ")}var Sn=function(t){return Ld(t)?t.filter(Boolean):xt(t)==="object"&&t!==null?[t]:[]},jo=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=Ke(t,Ed);return J({},n)},Ie=function(t,n,i){var r=t.cx,o=t.getStyles,l=t.getClassNames,u=t.className;return{css:o(n,t),className:r(i??{},l(n,t),u)}};function En(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Gd(e){return En(e)?window.innerHeight:e.clientHeight}function Jo(e){return En(e)?window.pageYOffset:e.scrollTop}function kn(e,t){if(En(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Bd(e){var t=getComputedStyle(e),n=t.position==="absolute",i=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var r=e;r=r.parentElement;)if(t=getComputedStyle(r),!(n&&t.position==="static")&&i.test(t.overflow+t.overflowY+t.overflowX))return r;return document.documentElement}function Pd(e,t,n,i){return n*((e=e/i-1)*e*e+1)+t}function Fn(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:wn,r=Jo(e),o=t-r,l=10,u=0;function a(){u+=l;var s=Pd(u,r,o,n);kn(e,s),u<n?window.requestAnimationFrame(a):i(e)}a()}function Yo(e,t){var n=e.getBoundingClientRect(),i=t.getBoundingClientRect(),r=t.offsetHeight/3;i.bottom+r>n.bottom?kn(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):i.top-r<n.top&&kn(e,Math.max(t.offsetTop-r,0))}function Td(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function _o(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function Vd(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var Uo=!1,Od={get passive(){return Uo=!0}},Gn=typeof window<"u"?window:{};Gn.addEventListener&&Gn.removeEventListener&&(Gn.addEventListener("p",wn,Od),Gn.removeEventListener("p",wn,!1));var Nd=Uo;function Dd(e){return e!=null}function Ld(e){return Array.isArray(e)}function Ut(e,t,n){return e?t:n}function ym(e){return e}function Im(e){return e}var Md=function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];var o=Object.entries(t).filter(function(l){var u=lt(l,1),a=u[0];return!i.includes(a)});return o.reduce(function(l,u){var a=lt(u,2),s=a[0],c=a[1];return l[s]=c,l},{})},Rd=["children","innerProps"],Xd=["children","innerProps"];function zd(e){var t=e.maxHeight,n=e.menuEl,i=e.minHeight,r=e.placement,o=e.shouldScroll,l=e.isFixedPosition,u=e.controlHeight,a=Bd(n),s={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return s;var c=a.getBoundingClientRect(),d=c.height,f=n.getBoundingClientRect(),p=f.bottom,y=f.height,b=f.top,x=n.offsetParent.getBoundingClientRect(),I=x.top,S=l?window.innerHeight:Gd(a),A=Jo(a),E=parseInt(getComputedStyle(n).marginBottom,10),k=parseInt(getComputedStyle(n).marginTop,10),C=I-k,M=S-b,V=C+A,D=d-A-b,O=p-S+A+E,N=A+b-k,T=160;switch(r){case"auto":case"bottom":if(M>=y)return{placement:"bottom",maxHeight:t};if(D>=y&&!l)return o&&Fn(a,O,T),{placement:"bottom",maxHeight:t};if(!l&&D>=i||l&&M>=i){o&&Fn(a,O,T);var $=l?M-E:D-E;return{placement:"bottom",maxHeight:$}}if(r==="auto"||l){var ne=t,X=l?C:V;return X>=i&&(ne=Math.min(X-E-u,t)),{placement:"top",maxHeight:ne}}if(r==="bottom")return o&&kn(a,O),{placement:"bottom",maxHeight:t};break;case"top":if(C>=y)return{placement:"top",maxHeight:t};if(V>=y&&!l)return o&&Fn(a,N,T),{placement:"top",maxHeight:t};if(!l&&V>=i||l&&C>=i){var Z=t;return(!l&&V>=i||l&&C>=i)&&(Z=l?C-k:V-k),o&&Fn(a,N,T),{placement:"top",maxHeight:Z}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return s}function Hd(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var qo=function(t){return t==="auto"?"bottom":t},Wd=function(t,n){var i,r=t.placement,o=t.theme,l=o.borderRadius,u=o.spacing,a=o.colors;return J((i={label:"menu"},_t(i,Hd(r),"100%"),_t(i,"position","absolute"),_t(i,"width","100%"),_t(i,"zIndex",1),i),n?{}:{backgroundColor:a.neutral0,borderRadius:l,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:u.menuGutter,marginTop:u.menuGutter})},Qo=F.createContext(null),Zd=function(t){var n=t.children,i=t.minMenuHeight,r=t.maxMenuHeight,o=t.menuPlacement,l=t.menuPosition,u=t.menuShouldScrollIntoView,a=t.theme,s=F.useContext(Qo)||{},c=s.setPortalPlacement,d=F.useRef(null),f=F.useState(r),p=lt(f,2),y=p[0],b=p[1],x=F.useState(null),I=lt(x,2),S=I[0],A=I[1],E=a.spacing.controlHeight;return Pr(function(){var k=d.current;if(k){var C=l==="fixed",M=u&&!C,V=zd({maxHeight:r,menuEl:k,minHeight:i,placement:o,shouldScroll:M,isFixedPosition:C,controlHeight:E});b(V.maxHeight),A(V.placement),c==null||c(V.placement)}},[r,o,l,u,i,c,E]),n({ref:d,placerProps:J(J({},t),{},{placement:S||qo(o),maxHeight:y})})},jd=function(t){var n=t.children,i=t.innerRef,r=t.innerProps;return j.jsx("div",q({},Ie(t,"menu",{menu:!0}),{ref:i},r),n)},Jd=jd,Yd=function(t,n){var i=t.maxHeight,r=t.theme.spacing.baseUnit;return J({maxHeight:i,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:r,paddingTop:r})},_d=function(t){var n=t.children,i=t.innerProps,r=t.innerRef,o=t.isMulti;return j.jsx("div",q({},Ie(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},i),n)},$o=function(t,n){var i=t.theme,r=i.spacing.baseUnit,o=i.colors;return J({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(r*2,"px ").concat(r*3,"px")})},Ud=$o,qd=$o,Qd=function(t){var n=t.children,i=n===void 0?"No options":n,r=t.innerProps,o=Ke(t,Rd);return j.jsx("div",q({},Ie(J(J({},o),{},{children:i,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),i)},$d=function(t){var n=t.children,i=n===void 0?"Loading...":n,r=t.innerProps,o=Ke(t,Xd);return j.jsx("div",q({},Ie(J(J({},o),{},{children:i,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),i)},Kd=function(t){var n=t.rect,i=t.offset,r=t.position;return{left:n.left,position:r,top:i,width:n.width,zIndex:1}},ef=function(t){var n=t.appendTo,i=t.children,r=t.controlElement,o=t.innerProps,l=t.menuPlacement,u=t.menuPosition,a=F.useRef(null),s=F.useRef(null),c=F.useState(qo(l)),d=lt(c,2),f=d[0],p=d[1],y=F.useMemo(function(){return{setPortalPlacement:p}},[]),b=F.useState(null),x=lt(b,2),I=x[0],S=x[1],A=F.useCallback(function(){if(r){var M=Td(r),V=u==="fixed"?0:window.pageYOffset,D=M[f]+V;(D!==(I==null?void 0:I.offset)||M.left!==(I==null?void 0:I.rect.left)||M.width!==(I==null?void 0:I.rect.width))&&S({offset:D,rect:M})}},[r,u,f,I==null?void 0:I.offset,I==null?void 0:I.rect.left,I==null?void 0:I.rect.width]);Pr(function(){A()},[A]);var E=F.useCallback(function(){typeof s.current=="function"&&(s.current(),s.current=null),r&&a.current&&(s.current=Sd(r,a.current,A,{elementResize:"ResizeObserver"in window}))},[r,A]);Pr(function(){E()},[E]);var k=F.useCallback(function(M){a.current=M,E()},[E]);if(!n&&u!=="fixed"||!I)return null;var C=j.jsx("div",q({ref:k},Ie(J(J({},t),{},{offset:I.offset,position:u,rect:I.rect}),"menuPortal",{"menu-portal":!0}),o),i);return j.jsx(Qo.Provider,{value:y},n?ba.createPortal(C,n):C)},tf=function(t){var n=t.isDisabled,i=t.isRtl;return{label:"container",direction:i?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},nf=function(t){var n=t.children,i=t.innerProps,r=t.isDisabled,o=t.isRtl;return j.jsx("div",q({},Ie(t,"container",{"--is-disabled":r,"--is-rtl":o}),i),n)},rf=function(t,n){var i=t.theme.spacing,r=t.isMulti,o=t.hasValue,l=t.selectProps.controlShouldRenderValue;return J({alignItems:"center",display:r&&o&&l?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(i.baseUnit/2,"px ").concat(i.baseUnit*2,"px")})},of=function(t){var n=t.children,i=t.innerProps,r=t.isMulti,o=t.hasValue;return j.jsx("div",q({},Ie(t,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),i),n)},lf=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},af=function(t){var n=t.children,i=t.innerProps;return j.jsx("div",q({},Ie(t,"indicatorsContainer",{indicators:!0}),i),n)},Ko,uf=["size"],sf=["innerProps","isRtl","size"];function cf(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var pf=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0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Q9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:cf},el=function(t){var n=t.size,i=Ke(t,uf);return j.jsx("svg",q({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:pf},i))},Tr=function(t){return j.jsx(el,q({size:20},t),j.jsx("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},tl=function(t){return j.jsx(el,q({size:20},t),j.jsx("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},nl=function(t,n){var i=t.isFocused,r=t.theme,o=r.spacing.baseUnit,l=r.colors;return J({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:i?l.neutral60:l.neutral20,padding:o*2,":hover":{color:i?l.neutral80:l.neutral40}})},df=nl,ff=function(t){var n=t.children,i=t.innerProps;return j.jsx("div",q({},Ie(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),i),n||j.jsx(tl,null))},gf=nl,hf=function(t){var n=t.children,i=t.innerProps;return j.jsx("div",q({},Ie(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),i),n||j.jsx(Tr,null))},mf=function(t,n){var i=t.isDisabled,r=t.theme,o=r.spacing.baseUnit,l=r.colors;return J({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:i?l.neutral10:l.neutral20,marginBottom:o*2,marginTop:o*2})},bf=function(t){var n=t.innerProps;return j.jsx("span",q({},n,Ie(t,"indicatorSeparator",{"indicator-separator":!0})))},yf=j.keyframes(Ko||(Ko=dd([`
18
18
  0%, 80%, 100% { opacity: 0; }
19
19
  40% { opacity: 1; }
20
- `]))),nm=function(t,n){var r=t.isFocused,i=t.size,o=t.theme,s=o.colors,a=o.spacing.baseUnit;return q({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?s.neutral60:s.neutral20,padding:a*2})},Ki=function(t){var n=t.delay,r=t.offset;return _.jsx("span",{css:_.css({animation:"".concat(tm," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTd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bGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},rm=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,o=i===void 0?4:i,s=ht(t,Jg);return _.jsx("div",$({},Se(q(q({},s),{},{innerProps:n,isRtl:r,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),_.jsx(Ki,{delay:0,offset:r}),_.jsx(Ki,{delay:160,offset:!0}),_.jsx(Ki,{delay:320,offset:!r}))},im=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.theme,s=o.colors,a=o.borderRadius,l=o.spacing;return q({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?s.neutral5:s.neutral0,borderColor:r?s.neutral10:i?s.primary:s.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(s.primary):void 0,"&:hover":{borderColor:i?s.primary:s.neutral30}})},om=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.innerRef,s=t.innerProps,a=t.menuIsOpen;return _.jsx("div",$({ref:o},Se(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":a}),s,{"aria-disabled":r||void 0}),n)},sm=om,am=["data"],lm=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},um=function(t){var n=t.children,r=t.cx,i=t.getStyles,o=t.getClassNames,s=t.Heading,a=t.headingProps,l=t.innerProps,u=t.label,c=t.theme,d=t.selectProps;return _.jsx("div",$({},Se(t,"group",{group:!0}),l),_.jsx(s,$({},a,{selectProps:d,theme:c,getStyles:i,getClassNames:o,cx:r}),u),_.jsx("div",null,n))},cm=function(t,n){var r=t.theme,i=r.colors,o=r.spacing;return q({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},dm=function(t){var n=Ma(t);n.data;var r=ht(n,am);return _.jsx("div",$({},Se(t,"groupHeading",{"group-heading":!0}),r))},pm=um,fm=["innerRef","isDisabled","isHidden","inputClassName"],hm=function(t,n){var r=t.isDisabled,i=t.value,o=t.theme,s=o.spacing,a=o.colors;return q(q({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},gm),n?{}:{margin:s.baseUnit/2,paddingBottom:s.baseUnit/2,paddingTop:s.baseUnit/2,color:a.neutral80})},Qa={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},gm={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":q({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Qa)},mm=function(t){return q({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},Qa)},bm=function(t){var n=t.cx,r=t.value,i=Ma(t),o=i.innerRef,s=i.isDisabled,a=i.isHidden,l=i.inputClassName,u=ht(i,fm);return _.jsx("div",$({},Se(t,"input",{"input-container":!0}),{"data-value":r||""}),_.jsx("input",$({className:n({input:!0},l),ref:o,style:mm(a),disabled:s},u)))},ym=bm,vm=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,s=r.colors;return q({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:s.neutral10,borderRadius:o/2,margin:i.baseUnit/2})},Im=function(t,n){var r=t.theme,i=r.borderRadius,o=r.colors,s=t.cropWithEllipsis;return q({overflow:"hidden",textOverflow:s||s===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Cm=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,s=r.colors,a=t.isFocused;return q({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:a?s.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:s.dangerLight,color:s.danger}})},$a=function(t){var n=t.children,r=t.innerProps;return _.jsx("div",r,n)},xm=$a,Am=$a;function wm(e){var t=e.children,n=e.innerProps;return _.jsx("div",$({role:"button"},n),t||_.jsx($i,{size:14}))}var Sm=function(t){var n=t.children,r=t.components,i=t.data,o=t.innerProps,s=t.isDisabled,a=t.removeProps,l=t.selectProps,u=r.Container,c=r.Label,d=r.Remove;return _.jsx(u,{data:i,innerProps:q(q({},Se(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),o),selectProps:l},_.jsx(c,{data:i,innerProps:q({},Se(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),_.jsx(d,{data:i,innerProps:q(q({},Se(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},a),selectProps:l}))},Em=Sm,km=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.isSelected,s=t.theme,a=s.spacing,l=s.colors;return q({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?l.primary:i?l.primary25:"transparent",color:r?l.neutral20:o?l.neutral0:"inherit",padding:"".concat(a.baseUnit*2,"px ").concat(a.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:o?l.primary:l.primary50}})},Fm=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.isSelected,s=t.innerRef,a=t.innerProps;return _.jsx("div",$({},Se(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":o}),{ref:s,"aria-disabled":r},a),n)},Pm=Fm,Gm=function(t,n){var r=t.theme,i=r.spacing,o=r.colors;return q({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},Bm=function(t){var n=t.children,r=t.innerProps;return _.jsx("div",$({},Se(t,"placeholder",{placeholder:!0}),r),n)},Tm=Bm,Om=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing,s=i.colors;return q({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?s.neutral40:s.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},Vm=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return _.jsx("div",$({},Se(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},Dm=Vm,Un={ClearIndicator:$g,Control:sm,DropdownIndicator:qg,DownChevron:Ua,CrossIcon:$i,Group:pm,GroupHeading:dm,IndicatorsContainer:Zg,IndicatorSeparator:em,Input:ym,LoadingIndicator:rm,Menu:Gg,MenuList:Tg,MenuPortal:Rg,LoadingMessage:Ng,NoOptionsMessage:Dg,MultiValue:Em,MultiValueContainer:xm,MultiValueLabel:Am,MultiValueRemove:wm,Option:Pm,Placeholder:Tm,SelectContainer:Xg,SingleValue:Dm,ValueContainer:Hg},Nm=function(t){return q(q({},Un),t.components)},Ka=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Lm(e,t){return!!(e===t||Ka(e)&&Ka(t))}function Rm(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Lm(e[n],t[n]))return!1;return!0}function Mm(e,t){t===void 0&&(t=Rm);var n=null;function r(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(n&&n.lastThis===this&&t(i,n.lastArgs))return n.lastResult;var s=e.apply(this,i);return n={lastResult:s,lastArgs:i,lastThis:this},s}return r.clear=function(){n=null},r}function Xm(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var zm=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:Xm},Hm=function(t){return _.jsx("span",$({css:zm},t))},el=Hm,Wm={guidance:function(t){var n=t.isSearchable,r=t.isMulti,i=t.tabSelectsValue,o=t.context,s=t.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return s?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,r=t.label,i=r===void 0?"":r,o=t.labels,s=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(i,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return s?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,i=t.options,o=t.label,s=o===void 0?"":o,a=t.selectValue,l=t.isDisabled,u=t.isSelected,c=t.isAppleDevice,d=function(g,I){return g&&g.length?"".concat(g.indexOf(I)+1," of ").concat(g.length):""};if(n==="value"&&a)return"value ".concat(s," focused, ").concat(d(a,r),".");if(n==="menu"&&c){var f=l?" disabled":"",p="".concat(u?" selected":"").concat(f);return"".concat(s).concat(p,", ").concat(d(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},Zm=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.focusableOptions,s=t.isFocused,a=t.selectValue,l=t.selectProps,u=t.id,c=t.isAppleDevice,d=l.ariaLiveMessages,f=l.getOptionLabel,p=l.inputValue,b=l.isMulti,g=l.isOptionDisabled,I=l.isSearchable,v=l.menuIsOpen,S=l.options,A=l.screenReaderStatus,E=l.tabSelectsValue,k=l.isLoading,C=l["aria-label"],N=l["aria-live"],L=G.useMemo(function(){return q(q({},Wm),d||{})},[d]),F=G.useMemo(function(){var H="";if(n&&L.onChange){var Y=n.option,ue=n.options,le=n.removedValue,ve=n.removedValues,y=n.value,Ae=function(be){return Array.isArray(be)?null:be},ce=le||Y||Ae(y),m=ce?f(ce):"",he=ue||ve||void 0,Q=he?he.map(f):[],de=q({isDisabled:ce&&g(ce,a),label:m,labels:Q},n);H=L.onChange(de)}return H},[n,L,g,a,f]),R=G.useMemo(function(){var H="",Y=r||i,ue=!!(r&&a&&a.includes(r));if(Y&&L.onFocus){var le={focused:Y,label:f(Y),isDisabled:g(Y,a),isSelected:ue,options:o,context:Y===r?"menu":"value",selectValue:a,isAppleDevice:c};H=L.onFocus(le)}return H},[r,i,f,g,L,o,a,c]),T=G.useMemo(function(){var H="";if(v&&S.length&&!k&&L.onFilter){var Y=A({count:o.length});H=L.onFilter({inputValue:p,resultsMessage:Y})}return H},[o,p,v,L,S,A,k]),O=(n==null?void 0:n.action)==="initial-input-focus",K=G.useMemo(function(){var H="";if(L.guidance){var Y=i?"value":v?"menu":"input";H=L.guidance({"aria-label":C,context:Y,isDisabled:r&&g(r,a),isMulti:b,isSearchable:I,tabSelectsValue:E,isInitialFocus:O})}return H},[C,r,i,b,g,I,v,L,a,E,O]),oe=_.jsx(G.Fragment,null,_.jsx("span",{id:"aria-selection"},F),_.jsx("span",{id:"aria-focused"},R),_.jsx("span",{id:"aria-results"},T),_.jsx("span",{id:"aria-guidance"},K));return _.jsx(G.Fragment,null,_.jsx(el,{id:u},O&&oe),_.jsx(el,{"aria-live":N,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!O&&oe))},jm=Zm,eo=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Jm=new RegExp("["+eo.map(function(e){return e.letters}).join("")+"]","g"),tl={},to=0;to<eo.length;to++)for(var no=eo[to],ro=0;ro<no.letters.length;ro++)tl[no.letters[ro]]=no.base;var nl=function(t){return t.replace(Jm,function(n){return tl[n]})},Ym=Mm(nl),rl=function(t){return t.replace(/^\s+|\s+$/g,"")},_m=function(t){return"".concat(t.label," ").concat(t.value)},Um=function(t){return function(n,r){if(n.data.__isNew__)return!0;var i=q({ignoreCase:!0,ignoreAccents:!0,stringify:_m,trim:!0,matchFrom:"any"},t),o=i.ignoreCase,s=i.ignoreAccents,a=i.stringify,l=i.trim,u=i.matchFrom,c=l?rl(r):r,d=l?rl(a(n)):a(n);return o&&(c=c.toLowerCase(),d=d.toLowerCase()),s&&(c=Ym(c),d=nl(d)),u==="start"?d.substr(0,c.length)===c:d.indexOf(c)>-1}},qm=["innerRef"];function Qm(e){var t=e.innerRef,n=ht(e,qm),r=xg(n,"onExited","in","enter","exit","appear");return _.jsx("input",$({ref:t},r,{css:_.css({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var $m=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function Km(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,o=e.onTopLeave,s=G.useRef(!1),a=G.useRef(!1),l=G.useRef(0),u=G.useRef(null),c=G.useCallback(function(I,v){if(u.current!==null){var S=u.current,A=S.scrollTop,E=S.scrollHeight,k=S.clientHeight,C=u.current,N=v>0,L=E-k-A,F=!1;L>v&&s.current&&(r&&r(I),s.current=!1),N&&a.current&&(o&&o(I),a.current=!1),N&&v>L?(n&&!s.current&&n(I),C.scrollTop=E,F=!0,s.current=!0):!N&&-v>A&&(i&&!a.current&&i(I),C.scrollTop=0,F=!0,a.current=!0),F&&$m(I)}},[n,r,i,o]),d=G.useCallback(function(I){c(I,I.deltaY)},[c]),f=G.useCallback(function(I){l.current=I.changedTouches[0].clientY},[]),p=G.useCallback(function(I){var v=l.current-I.changedTouches[0].clientY;c(I,v)},[c]),b=G.useCallback(function(I){if(I){var v=vg?{passive:!1}:!1;I.addEventListener("wheel",d,v),I.addEventListener("touchstart",f,v),I.addEventListener("touchmove",p,v)}},[p,f,d]),g=G.useCallback(function(I){I&&(I.removeEventListener("wheel",d,!1),I.removeEventListener("touchstart",f,!1),I.removeEventListener("touchmove",p,!1))},[p,f,d]);return G.useEffect(function(){if(t){var I=u.current;return b(I),function(){g(I)}}},[t,b,g]),function(I){u.current=I}}var il=["boxSizing","height","overflow","paddingRight","position"],ol={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function sl(e){e.cancelable&&e.preventDefault()}function al(e){e.stopPropagation()}function ll(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function ul(){return"ontouchstart"in window||navigator.maxTouchPoints}var cl=!!(typeof window<"u"&&window.document&&window.document.createElement),qn=0,vn={capture:!1,passive:!1};function eb(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=G.useRef({}),o=G.useRef(null),s=G.useCallback(function(l){if(cl){var u=document.body,c=u&&u.style;if(r&&il.forEach(function(b){var g=c&&c[b];i.current[b]=g}),r&&qn<1){var d=parseInt(i.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,p=window.innerWidth-f+d||0;Object.keys(ol).forEach(function(b){var g=ol[b];c&&(c[b]=g)}),c&&(c.paddingRight="".concat(p,"px"))}u&&ul()&&(u.addEventListener("touchmove",sl,vn),l&&(l.addEventListener("touchstart",ll,vn),l.addEventListener("touchmove",al,vn))),qn+=1}},[r]),a=G.useCallback(function(l){if(cl){var u=document.body,c=u&&u.style;qn=Math.max(qn-1,0),r&&qn<1&&il.forEach(function(d){var f=i.current[d];c&&(c[d]=f)}),u&&ul()&&(u.removeEventListener("touchmove",sl,vn),l&&(l.removeEventListener("touchstart",ll,vn),l.removeEventListener("touchmove",al,vn)))}},[r]);return G.useEffect(function(){if(t){var l=o.current;return s(l),function(){a(l)}}},[t,s,a]),function(l){o.current=l}}function tb(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var nb=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},rb=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2Fw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,r=e.captureEnabled,i=r===void 0?!0:r,o=e.onBottomArrive,s=e.onBottomLeave,a=e.onTopArrive,l=e.onTopLeave,u=Km({isEnabled:i,onBottomArrive:o,onBottomLeave:s,onTopArrive:a,onTopLeave:l}),c=eb({isEnabled:n}),d=function(p){u(p),c(p)};return _.jsx(G.Fragment,null,n&&_.jsx("div",{onClick:nb,css:rb}),t(d))}function ob(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var sb=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:ob},ab=function(t){var n=t.name,r=t.onFocus;return _.jsx("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:sb,value:"",onChange:function(){}})},lb=ab;function io(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function ub(){return io(/^iPhone/i)}function dl(){return io(/^Mac/i)}function cb(){return io(/^iPad/i)||dl()&&navigator.maxTouchPoints>1}function db(){return ub()||cb()}function pb(){return dl()||db()}var fb=function(t){return t.label},pl=function(t){return t.label},fl=function(t){return t.value},hb=function(t){return!!t.isDisabled},gb={clearIndicator:Qg,container:Mg,control:im,dropdownIndicator:Ug,group:lm,groupHeading:cm,indicatorsContainer:Wg,indicatorSeparator:Kg,input:hm,loadingIndicator:nm,loadingMessage:Vg,menu:kg,menuList:Bg,menuPortal:Lg,multiValue:vm,multiValueLabel:Im,multiValueRemove:Cm,noOptionsMessage:Og,option:km,placeholder:Gm,singleValue:Om,valueContainer:zg};function mb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=q({},e);return Object.keys(t).forEach(function(r){var i=r;e[i]?n[i]=function(o,s){return t[i](e[i](o,s),s)}:n[i]=t[i]}),n}var bb={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},yb=4,hl=4,vb=38,Ib=hl*2,Cb={baseUnit:hl,controlHeight:vb,menuGutter:Ib},Qn={borderRadius:yb,colors:bb,spacing:Cb},xb={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Ha(),captureMenuScroll:!Ha(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Um(),formatGroupLabel:fb,getOptionLabel:pl,getOptionValue:fl,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:hb,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!bg(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function gl(e,t,n,r){var i=Il(e,t,n),o=Cl(e,t,n),s=vl(e,t),a=Mr(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:s,value:a,index:r}}function Rr(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(s,a){return gl(e,s,t,a)}).filter(function(s){return yl(e,s)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=gl(e,n,t,r);return yl(e,o)?o:void 0}).filter(Ig)}function ml(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,yn(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function bl(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,yn(r.options.map(function(i){return{data:i.data,id:"".concat(t,"-").concat(r.index,"-").concat(i.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function Ab(e,t){return ml(Rr(e,t))}function yl(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,o=t.isSelected,s=t.label,a=t.value;return(!Al(e)||!o)&&xl(e,{label:s,value:a,data:i},r)}function wb(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var o=t.indexOf(n);if(o>-1)return n;if(i<t.length)return t[i]}return null}function Sb(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var oo=function(t,n){var r,i=(r=t.find(function(o){return o.data===n}))===null||r===void 0?void 0:r.id;return i||null},vl=function(t,n){return t.getOptionLabel(n)},Mr=function(t,n){return t.getOptionValue(n)};function Il(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function Cl(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=Mr(e,t);return n.some(function(i){return Mr(e,i)===r})}function xl(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var Al=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},Eb=1,so=function(e){Wh(n,e);var t=Jh(n);function n(r){var i;if(zh(this,n),i=t.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.isAppleDevice=pb(),i.controlRef=null,i.getControlRef=function(l){i.controlRef=l},i.focusedOptionRef=null,i.getFocusedOptionRef=function(l){i.focusedOptionRef=l},i.menuListRef=null,i.getMenuListRef=function(l){i.menuListRef=l},i.inputRef=null,i.getInputRef=function(l){i.inputRef=l},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(l,u){var c=i.props,d=c.onChange,f=c.name;u.name=f,i.ariaOnChange(l,u),d(l,u)},i.setValue=function(l,u,c){var d=i.props,f=d.closeMenuOnSelect,p=d.isMulti,b=d.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:b}),f&&(i.setState({inputIsHiddenAfterUpdate:!p}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(l,{action:u,option:c})},i.selectOption=function(l){var u=i.props,c=u.blurInputOnSelect,d=u.isMulti,f=u.name,p=i.state.selectValue,b=d&&i.isOptionSelected(l,p),g=i.isOptionDisabled(l,p);if(b){var I=i.getOptionValue(l);i.setValue(p.filter(function(v){return i.getOptionValue(v)!==I}),"deselect-option",l)}else if(!g)d?i.setValue([].concat(yn(p),[l]),"select-option",l):i.setValue(l,"select-option");else{i.ariaOnChange(l,{action:"select-option",option:l,name:f});return}c&&i.blurInput()},i.removeValue=function(l){var u=i.props.isMulti,c=i.state.selectValue,d=i.getOptionValue(l),f=c.filter(function(b){return i.getOptionValue(b)!==d}),p=_n(u,f,f[0]||null);i.onChange(p,{action:"remove-value",removedValue:l}),i.focusInput()},i.clearValue=function(){var l=i.state.selectValue;i.onChange(_n(i.props.isMulti,[],null),{action:"clear",removedValues:l})},i.popValue=function(){var l=i.props.isMulti,u=i.state.selectValue,c=u[u.length-1],d=u.slice(0,u.length-1),f=_n(l,d,d[0]||null);c&&i.onChange(f,{action:"pop-value",removedValue:c})},i.getFocusedOptionId=function(l){return oo(i.state.focusableOptionsWithIds,l)},i.getFocusableOptionsWithIds=function(){return bl(Rr(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];return pg.apply(void 0,[i.props.classNamePrefix].concat(u))},i.getOptionLabel=function(l){return vl(i.props,l)},i.getOptionValue=function(l){return Mr(i.props,l)},i.getStyles=function(l,u){var c=i.props.unstyled,d=gb[l](u,c);d.boxSizing="border-box";var f=i.props.styles[l];return f?f(d,u):d},i.getClassNames=function(l,u){var c,d;return(c=(d=i.props.classNames)[l])===null||c===void 0?void 0:c.call(d,u)},i.getElementId=function(l){return"".concat(i.state.instancePrefix,"-").concat(l)},i.getComponents=function(){return Nm(i.props)},i.buildCategorizedOptions=function(){return Rr(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return ml(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(l,u){i.setState({ariaSelection:q({value:l},u)})},i.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),i.focusInput())},i.onMenuMouseMove=function(l){i.blockOptionHover=!1},i.onControlMouseDown=function(l){if(!l.defaultPrevented){var u=i.props.openMenuOnClick;i.state.isFocused?i.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&i.onMenuClose():u&&i.openMenu("first"):(u&&(i.openAfterFocus=!0),i.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},i.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!i.props.isDisabled){var u=i.props,c=u.isMulti,d=u.menuIsOpen;i.focusInput(),d?(i.setState({inputIsHiddenAfterUpdate:!c}),i.onMenuClose()):i.openMenu("first"),l.preventDefault()}},i.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(i.clearValue(),l.preventDefault(),i.openAfterFocus=!1,l.type==="touchend"?i.focusInput():setTimeout(function(){return i.focusInput()}))},i.onScroll=function(l){typeof i.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&Vr(l.target)&&i.props.onMenuClose():typeof i.props.closeMenuOnScroll=="function"&&i.props.closeMenuOnScroll(l)&&i.props.onMenuClose()},i.onCompositionStart=function(){i.isComposing=!0},i.onCompositionEnd=function(){i.isComposing=!1},i.onTouchStart=function(l){var u=l.touches,c=u&&u.item(0);c&&(i.initialTouchX=c.clientX,i.initialTouchY=c.clientY,i.userIsDragging=!1)},i.onTouchMove=function(l){var u=l.touches,c=u&&u.item(0);if(c){var d=Math.abs(c.clientX-i.initialTouchX),f=Math.abs(c.clientY-i.initialTouchY),p=5;i.userIsDragging=d>p||f>p}},i.onTouchEnd=function(l){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(l.target)&&i.menuListRef&&!i.menuListRef.contains(l.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(l){i.userIsDragging||i.onControlMouseDown(l)},i.onClearIndicatorTouchEnd=function(l){i.userIsDragging||i.onClearIndicatorMouseDown(l)},i.onDropdownIndicatorTouchEnd=function(l){i.userIsDragging||i.onDropdownIndicatorMouseDown(l)},i.handleInputChange=function(l){var u=i.props.inputValue,c=l.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(c,{action:"input-change",prevInputValue:u}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(l){i.props.onFocus&&i.props.onFocus(l),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(l){var u=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(l),i.onInputChange("",{action:"input-blur",prevInputValue:u}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(l){if(!(i.blockOptionHover||i.state.focusedOption===l)){var u=i.getFocusableOptions(),c=u.indexOf(l);i.setState({focusedOption:l,focusedOptionId:c>-1?i.getFocusedOptionId(l):null})}},i.shouldHideSelectedOptions=function(){return Al(i.props)},i.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),i.focus()},i.onKeyDown=function(l){var u=i.props,c=u.isMulti,d=u.backspaceRemovesValue,f=u.escapeClearsValue,p=u.inputValue,b=u.isClearable,g=u.isDisabled,I=u.menuIsOpen,v=u.onKeyDown,S=u.tabSelectsValue,A=u.openMenuOnFocus,E=i.state,k=E.focusedOption,C=E.focusedValue,N=E.selectValue;if(!g&&!(typeof v=="function"&&(v(l),l.defaultPrevented))){switch(i.blockOptionHover=!0,l.key){case"ArrowLeft":if(!c||p)return;i.focusValue("previous");break;case"ArrowRight":if(!c||p)return;i.focusValue("next");break;case"Delete":case"Backspace":if(p)return;if(C)i.removeValue(C);else{if(!d)return;c?i.popValue():b&&i.clearValue()}break;case"Tab":if(i.isComposing||l.shiftKey||!I||!S||!k||A&&i.isOptionSelected(k,N))return;i.selectOption(k);break;case"Enter":if(l.keyCode===229)break;if(I){if(!k||i.isComposing)return;i.selectOption(k);break}return;case"Escape":I?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:p}),i.onMenuClose()):b&&f&&i.clearValue();break;case" ":if(p)return;if(!I){i.openMenu("first");break}if(!k)return;i.selectOption(k);break;case"ArrowUp":I?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":I?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!I)return;i.focusOption("pageup");break;case"PageDown":if(!I)return;i.focusOption("pagedown");break;case"Home":if(!I)return;i.focusOption("first");break;case"End":if(!I)return;i.focusOption("last");break;default:return}l.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++Eb),i.state.selectValue=Or(r.value),r.menuIsOpen&&i.state.selectValue.length){var o=i.getFocusableOptionsWithIds(),s=i.buildFocusableOptions(),a=s.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=o,i.state.focusedOption=s[a],i.state.focusedOptionId=oo(o,s[a])}return i}return Hh(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&za(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var o=this.props,s=o.isDisabled,a=o.menuIsOpen,l=this.state.isFocused;(l&&!s&&i.isDisabled||l&&a&&!i.menuIsOpen)&&this.focusInput(),l&&s&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!s&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(za(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,o){this.props.onInputChange(i,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var o=this,s=this.state,a=s.selectValue,l=s.isFocused,u=this.buildFocusableOptions(),c=i==="first"?0:u.length-1;if(!this.props.isMulti){var d=u.indexOf(a[0]);d>-1&&(c=d)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[c],focusedOptionId:this.getFocusedOptionId(u[c])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(i){var o=this.state,s=o.selectValue,a=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=s.indexOf(a);a||(l=-1);var u=s.length-1,c=-1;if(s.length){switch(i){case"previous":l===0?c=0:l===-1?c=u:c=l-1;break;case"next":l>-1&&l<u&&(c=l+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:s[c]})}}}},{key:"focusOption",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,s=this.state.focusedOption,a=this.getFocusableOptions();if(a.length){var l=0,u=a.indexOf(s);s||(u=-1),i==="up"?l=u>0?u-1:a.length-1:i==="down"?l=(u+1)%a.length:i==="pageup"?(l=u-o,l<0&&(l=0)):i==="pagedown"?(l=u+o,l>a.length-1&&(l=a.length-1)):i==="last"&&(l=a.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:a[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(a[l])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Qn):q(q({},Qn),this.props.theme):Qn}},{key:"getCommonProps",value:function(){var i=this.clearValue,o=this.cx,s=this.getStyles,a=this.getClassNames,l=this.getValue,u=this.selectOption,c=this.setValue,d=this.props,f=d.isMulti,p=d.isRtl,b=d.options,g=this.hasValue();return{clearValue:i,cx:o,getStyles:s,getClassNames:a,getValue:l,hasValue:g,isMulti:f,isRtl:p,options:b,selectOption:u,selectProps:d,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,o=i.isClearable,s=i.isMulti;return o===void 0?s:o}},{key:"isOptionDisabled",value:function(i,o){return Il(this.props,i,o)}},{key:"isOptionSelected",value:function(i,o){return Cl(this.props,i,o)}},{key:"filterOption",value:function(i,o){return xl(this.props,i,o)}},{key:"formatOptionLabel",value:function(i,o){if(typeof this.props.formatOptionLabel=="function"){var s=this.props.inputValue,a=this.state.selectValue;return this.props.formatOptionLabel(i,{context:o,inputValue:s,selectValue:a})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,o=i.isDisabled,s=i.isSearchable,a=i.inputId,l=i.inputValue,u=i.tabIndex,c=i.form,d=i.menuIsOpen,f=i.required,p=this.getComponents(),b=p.Input,g=this.state,I=g.inputIsHidden,v=g.ariaSelection,S=this.commonProps,A=a||this.getElementId("input"),E=q(q(q({"aria-autocomplete":"list","aria-expanded":d,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":f,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!s&&{"aria-readonly":!0}),this.hasValue()?(v==null?void 0:v.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return s?re.createElement(b,$({},S,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:A,innerRef:this.getInputRef,isDisabled:o,isHidden:I,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:l},E)):re.createElement(Qm,$({id:A,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Tr,onFocus:this.onInputFocus,disabled:o,tabIndex:u,inputMode:"none",form:c,value:""},E))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,o=this.getComponents(),s=o.MultiValue,a=o.MultiValueContainer,l=o.MultiValueLabel,u=o.MultiValueRemove,c=o.SingleValue,d=o.Placeholder,f=this.commonProps,p=this.props,b=p.controlShouldRenderValue,g=p.isDisabled,I=p.isMulti,v=p.inputValue,S=p.placeholder,A=this.state,E=A.selectValue,k=A.focusedValue,C=A.isFocused;if(!this.hasValue()||!b)return v?null:re.createElement(d,$({},f,{key:"placeholder",isDisabled:g,isFocused:C,innerProps:{id:this.getElementId("placeholder")}}),S);if(I)return E.map(function(L,F){var R=L===k,T="".concat(i.getOptionLabel(L),"-").concat(i.getOptionValue(L));return re.createElement(s,$({},f,{components:{Container:a,Label:l,Remove:u},isFocused:R,isDisabled:g,key:T,index:F,removeProps:{onClick:function(){return i.removeValue(L)},onTouchEnd:function(){return i.removeValue(L)},onMouseDown:function(K){K.preventDefault()}},data:L}),i.formatOptionLabel(L,"value"))});if(v)return null;var N=E[0];return re.createElement(c,$({},f,{data:N,isDisabled:g}),this.formatOptionLabel(N,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),o=i.ClearIndicator,s=this.commonProps,a=this.props,l=a.isDisabled,u=a.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||l||!this.hasValue()||u)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return re.createElement(o,$({},s,{innerProps:d,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),o=i.LoadingIndicator,s=this.commonProps,a=this.props,l=a.isDisabled,u=a.isLoading,c=this.state.isFocused;if(!o||!u)return null;var d={"aria-hidden":"true"};return re.createElement(o,$({},s,{innerProps:d,isDisabled:l,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator,s=i.IndicatorSeparator;if(!o||!s)return null;var a=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused;return re.createElement(s,$({},a,{isDisabled:l,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator;if(!o)return null;var s=this.commonProps,a=this.props.isDisabled,l=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return re.createElement(o,$({},s,{innerProps:u,isDisabled:a,isFocused:l}))}},{key:"renderMenu",value:function(){var i=this,o=this.getComponents(),s=o.Group,a=o.GroupHeading,l=o.Menu,u=o.MenuList,c=o.MenuPortal,d=o.LoadingMessage,f=o.NoOptionsMessage,p=o.Option,b=this.commonProps,g=this.state.focusedOption,I=this.props,v=I.captureMenuScroll,S=I.inputValue,A=I.isLoading,E=I.loadingMessage,k=I.minMenuHeight,C=I.maxMenuHeight,N=I.menuIsOpen,L=I.menuPlacement,F=I.menuPosition,R=I.menuPortalTarget,T=I.menuShouldBlockScroll,O=I.menuShouldScrollIntoView,K=I.noOptionsMessage,oe=I.onMenuScrollToTop,H=I.onMenuScrollToBottom;if(!N)return null;var Y=function(m,he){var Q=m.type,de=m.data,Pe=m.isDisabled,be=m.isSelected,Oe=m.label,qe=m.value,rt=g===de,Qe=Pe?void 0:function(){return i.onOptionHover(de)},Mt=Pe?void 0:function(){return i.selectOption(de)},It="".concat(i.getElementId("option"),"-").concat(he),Xt={id:It,onClick:Mt,onMouseMove:Qe,onMouseOver:Qe,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:be};return re.createElement(p,$({},b,{innerProps:Xt,data:de,isDisabled:Pe,isSelected:be,key:It,label:Oe,type:Q,value:qe,isFocused:rt,innerRef:rt?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(m.data,"menu"))},ue;if(this.hasOptions())ue=this.getCategorizedOptions().map(function(ce){if(ce.type==="group"){var m=ce.data,he=ce.options,Q=ce.index,de="".concat(i.getElementId("group"),"-").concat(Q),Pe="".concat(de,"-heading");return re.createElement(s,$({},b,{key:de,data:m,options:he,Heading:a,headingProps:{id:Pe,data:ce.data},label:i.formatGroupLabel(ce.data)}),ce.options.map(function(be){return Y(be,"".concat(Q,"-").concat(be.index))}))}else if(ce.type==="option")return Y(ce,"".concat(ce.index))});else if(A){var le=E({inputValue:S});if(le===null)return null;ue=re.createElement(d,b,le)}else{var ve=K({inputValue:S});if(ve===null)return null;ue=re.createElement(f,b,ve)}var y={minMenuHeight:k,maxMenuHeight:C,menuPlacement:L,menuPosition:F,menuShouldScrollIntoView:O},Ae=re.createElement(Fg,$({},b,y),function(ce){var m=ce.ref,he=ce.placerProps,Q=he.placement,de=he.maxHeight;return re.createElement(l,$({},b,y,{innerRef:m,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:A,placement:Q}),re.createElement(ib,{captureEnabled:v,onTopArrive:oe,onBottomArrive:H,lockEnabled:T},function(Pe){return re.createElement(u,$({},b,{innerRef:function(Oe){i.getMenuListRef(Oe),Pe(Oe)},innerProps:{role:"listbox","aria-multiselectable":b.isMulti,id:i.getElementId("listbox")},isLoading:A,maxHeight:de,focusedOption:g}),ue)}))});return R||F==="fixed"?re.createElement(c,$({},b,{appendTo:R,controlElement:this.controlRef,menuPlacement:L,menuPosition:F}),Ae):Ae}},{key:"renderFormField",value:function(){var i=this,o=this.props,s=o.delimiter,a=o.isDisabled,l=o.isMulti,u=o.name,c=o.required,d=this.state.selectValue;if(c&&!this.hasValue()&&!a)return re.createElement(lb,{name:u,onFocus:this.onValueInputFocus});if(!(!u||a))if(l)if(s){var f=d.map(function(g){return i.getOptionValue(g)}).join(s);return re.createElement("input",{name:u,type:"hidden",value:f})}else{var p=d.length>0?d.map(function(g,I){return re.createElement("input",{key:"i-".concat(I),name:u,type:"hidden",value:i.getOptionValue(g)})}):re.createElement("input",{name:u,type:"hidden",value:""});return re.createElement("div",null,p)}else{var b=d[0]?this.getOptionValue(d[0]):"";return re.createElement("input",{name:u,type:"hidden",value:b})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,o=this.state,s=o.ariaSelection,a=o.focusedOption,l=o.focusedValue,u=o.isFocused,c=o.selectValue,d=this.getFocusableOptions();return re.createElement(jm,$({},i,{id:this.getElementId("live-region"),ariaSelection:s,focusedOption:a,focusedValue:l,isFocused:u,selectValue:c,focusableOptions:d,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),o=i.Control,s=i.IndicatorsContainer,a=i.SelectContainer,l=i.ValueContainer,u=this.props,c=u.className,d=u.id,f=u.isDisabled,p=u.menuIsOpen,b=this.state.isFocused,g=this.commonProps=this.getCommonProps();return re.createElement(a,$({},g,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:b}),this.renderLiveRegion(),re.createElement(o,$({},g,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:b,menuIsOpen:p}),re.createElement(l,$({},g,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),re.createElement(s,$({},g,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,o){var s=o.prevProps,a=o.clearFocusValueOnUpdate,l=o.inputIsHiddenAfterUpdate,u=o.ariaSelection,c=o.isFocused,d=o.prevWasFocused,f=o.instancePrefix,p=i.options,b=i.value,g=i.menuIsOpen,I=i.inputValue,v=i.isMulti,S=Or(b),A={};if(s&&(b!==s.value||p!==s.options||g!==s.menuIsOpen||I!==s.inputValue)){var E=g?Ab(i,S):[],k=g?bl(Rr(i,S),"".concat(f,"-option")):[],C=a?wb(o,S):null,N=Sb(o,E),L=oo(k,N);A={selectValue:S,focusedOption:N,focusedOptionId:L,focusableOptionsWithIds:k,focusedValue:C,clearFocusValueOnUpdate:!1}}var F=l!=null&&i!==s?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},R=u,T=c&&d;return c&&!T&&(R={value:_n(v,S,S[0]||null),options:S,action:"initial-input-focus"},T=!d),(u==null?void 0:u.action)==="initial-input-focus"&&(R=null),q(q(q({},A),F),{},{prevProps:i,ariaSelection:R,prevWasFocused:T})}}]),n}(G.Component);so.defaultProps=xb;var kb=G.forwardRef(function(e,t){var n=Fa(e);return re.createElement(so,$({ref:t},n))}),Xr=kb;const Fb=Qn,zr={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},boxShadow:{button:"rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px -1px",card:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",dropdown:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",input:"0 1px 2px 0 rgb(0 0 0 / 0.05)"},spacing:{baseUnit:4,controlHeight:32,menuGutter:8}},wl={colors:{},spacing:{baseUnit:4,controlHeight:32,menuGutter:8},boxShadow:{button:"none",input:"none",card:"none",dropdown:"none"}};function Sl(e){if(!e)return Qn;const t=typeof e=="function"?e(zr):e,{colors:n,spacing:r,borderRadius:i}=Hr(Fb,t);return{borderRadius:i,colors:n,spacing:r}}function Hr(e,...t){const n={borderRadius:e.borderRadius,colors:{...e.colors},spacing:{...e.spacing},boxShadow:{...e.boxShadow}};for(const r of t)r&&(n.borderRadius=r.borderRadius??n.borderRadius,Object.assign(n.boxShadow,r.boxShadow),Object.assign(n.colors,r.colors),Object.assign(n.spacing,r.spacing));return n}const Pb=({...e})=>{const[t,n]=G.useState(!1),r={textDecoration:"underline",textUnderlineOffset:"3px",color:"inherit",transition:"opacity 0.2s ease",opacity:t?.7:1};return B.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"2px"},children:[B.jsx("a",{...e,target:"_blank",rel:"noopener noreferrer",style:r,onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1)}),B.jsx("span",{style:{fontSize:"0.7em",opacity:.7},children:"↗"})]})};function El(e){const{field:t,markdown:n}=e,{prop:r}=t,{getClassNames:i,getStyles:o,theme:s}=Ne(),a=G.useMemo(()=>({color:s.colors.neutral50,fontWeight:400,fontSize:"0.75rem",gridArea:"description",textWrap:"balance",lineHeight:"1.5"}),[s.colors.neutral50]),l=G.useMemo(()=>({a:Pb}),[]),u=e;return r.type==="app"?B.jsx("p",{className:i("description",u),style:o("description",a,u),children:"Credentials are encrypted."}):r.description?B.jsxs("div",{className:i("description",u),style:o("description",a,u),children:[" ",B.jsx(ta,{components:l,children:n})]}):null}function kl(e){const{field:t}=e,{errors:n={},prop:r={},enableDebugging:i}=t;if(!i||!n[r.name])return null;const o=n[r.name].map(l=>({type:"alert",alertType:"error",content:l})),s={display:"grid",gridTemplateColumns:"max-content"},a=()=>B.jsx(B.Fragment,{children:o.map((l,u)=>B.jsx(Cr,{prop:l},u))});return B.jsx("div",{className:"pd-errors",style:s,children:B.jsx(a,{})})}function Fl(e){const{text:t,field:n}=e,{id:r}=n,{getProps:i,theme:o}=Ne(),s={color:o.colors.neutral90,fontWeight:450,gridArea:"label",lineHeight:"1.5"};return B.jsx("label",{htmlFor:r,...i("label",s,e),children:t})}const Pl=e=>{const{prop:t,enabled:n,onClick:r}=e,{getProps:i,theme:o}=Ne(),s={color:o.colors.neutral60,display:"inline-flex",alignItems:"center",padding:`${o.spacing.baseUnit}px ${o.spacing.baseUnit*1.5}px ${o.spacing.baseUnit}px ${o.spacing.baseUnit*2.5}px`,border:`1px solid ${o.colors.neutral30}`,borderRadius:o.borderRadius,cursor:"pointer",fontSize:"0.8125rem",fontWeight:450,gap:o.spacing.baseUnit*2,textWrap:"nowrap"};return B.jsxs("button",{onClick:r,type:"button",...i("optionalFieldButton",s,e),children:[B.jsx("span",{children:n?"-":"+"}),B.jsx("span",{style:{marginRight:8},children:t.label||t.name})]})},Gl=e=>{const{onChange:t}=e,{getProps:n,theme:r}=Ne(),i={backgroundColor:r.colors.primary,borderRadius:r.borderRadius,border:"solid 1px",borderColor:r.colors.primary25,color:r.colors.primary25,padding:"0.5rem",fontSize:"0.8125rem",fontWeight:"450",gridArea:"control",cursor:"pointer",width:"100%"};return B.jsx("button",{onClick:t,type:"button",...n("loadMoreButton",i,e),children:"Load More"})},Bl={Description:El,Errors:kl,Label:Fl,OptionalFieldButton:Pl,Button:Gl},Wr=G.createContext({classNames:{},classNamePrefix:"",components:{},styles:{},theme:zr,unstyled:!1});function Gb(){const e=G.useContext(Wr)??{},t=Sl(e.theme??{});function n(){return e.classNamePrefix??""}function r(a){var c;const l=`${(e==null?void 0:e.classNamePrefix)??"pd-"}${a}`,u={...((c=e.classNames)==null?void 0:c[a])??{}};return typeof(u==null?void 0:u.container)=="function"&&(u.container=typeof(u==null?void 0:u.container)=="function"?(...d)=>{var f;return[(f=u==null?void 0:u.container)==null?void 0:f.call(u,...d),l].join(" ")}:()=>l),u}function i(a,l){var u;return{...Un,...l??{},...((u=e==null?void 0:e.components)==null?void 0:u[a])??{}}}function o(a,l){var u;return mb(((u=e.styles)==null?void 0:u[a])??{},l??{})}function s(a,l){return{classNamePrefix:n(),classNames:r(a),components:i(a,l==null?void 0:l.components),styles:o(a,l==null?void 0:l.styles),theme:t}}return{getClassNamePrefix:n,getClassNames:r,getComponents:i,getProps:s,getStyles:o,theme:t}}function Ne(){const e=G.useContext(Wr)??{},t=e.theme,n=e.unstyled?wl:zr,r=typeof t=="function"?Hr(n,t(n)):Hr(n,t);function i(l,u){var f;const c=`${(e==null?void 0:e.classNamePrefix)??"pd-"}${l.toLowerCase()}`,d=(f=e.classNames)==null?void 0:f[l];if(typeof d=="function"){const p=d,b={...u??{},theme:r};return[c,p(b)].filter(Boolean).join(" ")}return[c,d].filter(Boolean).join(" ")}function o(){return{...Bl,...(e==null?void 0:e.components)??{}}}function s(l,u,c){var f;const d=(f=e.styles)==null?void 0:f[l];if(typeof d=="function"){const p=d,b={...c??{},theme:r};return p(u,b)}return d?{...u,...d}:u}function a(l,u,c){return{className:i(l,c),style:s(l,u,c)}}return{getClassNames:i,getComponents:o,getProps:a,getStyles:s,select:Gb(),theme:r}}const Bb=({children:e,...t})=>B.jsx(Wr.Provider,{value:t,children:e}),ao=G.createContext(void 0),gt=()=>{const e=G.useContext(ao);if(!e)throw new Error("Must be used inside FormFieldContext.Provider");return e},Tl=(e,t)=>{var i;const n=At(),r=qt({...t==null?void 0:t.useQueryOpts,queryKey:["accounts",e],queryFn:()=>n.getAccounts(e)});return{...r,accounts:((i=r.data)==null?void 0:i.data)||[]}},Tb=e=>B.jsx(Un.Option,{...e,children:e.data.name});function Ol({app:e}){const t=At(),{externalUserId:n,oauthAppConfig:r}=Jn(),i=gt(),{id:o,prop:s,value:a,onChange:l}=i,{getProps:u,select:c,theme:d}=Ne(),f={color:d.colors.neutral60,gridArea:"control"},p={backgroundColor:d.colors.primary,borderRadius:d.borderRadius,border:"solid 1px",borderColor:d.colors.primary25,color:d.colors.primary25,padding:"0.25rem 0.5rem",gridArea:"control"},b={components:{Option:Tb},styles:{control:C=>({...C,gridArea:"control",boxShadow:d.boxShadow.input})}},g=c.getProps("controlAppSelect",b),I=r==null?void 0:r[e.name_slug],{isLoading:v,accounts:S,refetch:A}=Tl({externalUserId:n,app:e.name_slug,oauth_app_id:I},{useQueryOpts:{enabled:!!e,suspense:!!e}}),E=async()=>{t.connectAccount({app:s.app,oauthAppId:I,onSuccess:async C=>{await A(),l({authProvisionId:C.id})},onError:()=>{}})},k=G.useMemo(()=>{let C=a;if(C!=null){for(const N of S)if(C.authProvisionId===N.id){C=N;break}}return C},[S,a]);return B.jsx("div",{...u("controlApp",f,{app:e,...i}),children:v?`Loading ${e.name} accounts...`:S.length?B.jsx(Xr,{instanceId:o,value:k,options:[...S,{id:"_new",name:`Connect new ${e.name} account...`}],...g,required:!0,placeholder:`Select ${e.name} account...`,isLoading:v,isClearable:!0,isSearchable:!0,getOptionLabel:C=>C.name,getOptionValue:C=>C.id,onChange:C=>{C?C.id==="_new"?E():l({authProvisionId:C.id}):l(void 0)}}):B.jsxs("button",{type:"button",...u("connectButton",p,{app:e,...i}),onClick:()=>E(),children:["Connect ",e.name]})})}const Vl=e=>({color:e.colors.neutral60,border:"1px solid",borderColor:e.colors.neutral20,padding:6,borderRadius:e.borderRadius,boxShadow:e.boxShadow.input,flex:1}),lo=e=>({color:e.colors.neutral60,display:"inline-flex",alignItems:"center",padding:`${e.spacing.baseUnit}px ${e.spacing.baseUnit*1.5}px ${e.spacing.baseUnit}px ${e.spacing.baseUnit*2.5}px`,border:`1px solid ${e.colors.neutral30}`,borderRadius:e.borderRadius,cursor:"pointer",fontSize:"0.8125rem",fontWeight:450,gap:e.spacing.baseUnit*2,textWrap:"nowrap",backgroundColor:"white"}),Dl=e=>({...lo(e),flex:"0 0 auto",padding:"6px 8px"}),Nl=()=>({gridArea:"control",display:"flex",flexDirection:"column",gap:"0.5rem"}),Ll=()=>({display:"flex",gap:"0.5rem",alignItems:"center"});function Ob(){var A;const e=gt(),{onChange:t,prop:n,value:r}=e,{getProps:i,theme:o}=Ne(),s=()=>{if(!r||!Array.isArray(r))return[""];const E=r.map(k=>typeof k=="string"?k:JSON.stringify(k));return E.length>0?E:[""]},[a,l]=G.useState(s);G.useEffect(()=>{l(s())},[r]);const u=E=>{const k=E.filter(C=>C.trim()!=="");if(k.length===0){t(void 0);return}t(k)},c=(E,k)=>{const C=[...a];C[E]=k,l(C),u(C)},d=()=>{const E=[...a,""];l(E)},f=E=>{const k=a.filter((C,N)=>N!==E);l(k.length>0?k:[""]),u(k)},p=Nl(),b=Ll(),g=Vl(o),I=lo(o),v=Dl(o),S=((A=a[a.length-1])==null?void 0:A.trim())||a.length>1;return B.jsxs("div",{...i("controlArray",p,e),children:[a.map((E,k)=>B.jsxs("div",{style:b,children:[B.jsx("input",{type:"text",value:E,onChange:C=>c(k,C.target.value),placeholder:"",style:g,required:!n.optional&&k===0}),a.length>1&&B.jsx("button",{type:"button",onClick:()=>f(k),style:v,"aria-label":"Remove value",children:"×"})]},k)),S&&B.jsxs("button",{type:"button",onClick:d,style:{...I,alignSelf:"flex-start",paddingRight:`${o.spacing.baseUnit*2}px`},children:[B.jsx("span",{children:"+"}),B.jsx("span",{children:"Add more"})]})]})}function Rl(){const e=gt(),{id:t,value:n,onChange:r}=e,{getProps:i}=Ne(),o={width:"16px",height:"16px",gridArea:"control",margin:"0 0.5rem 0 0"};return B.jsx("input",{id:t,type:"checkbox",...i("controlBoolean",o,e),checked:n??!1,onChange:s=>r(s.target.checked)})}function Ml(){const e=gt(),{id:t,onChange:n,prop:r,value:i}=e,{getProps:o,theme:s}=Ne(),a={color:s.colors.neutral60,display:"block",border:"1px solid",borderColor:s.colors.neutral20,padding:6,width:"100%",borderRadius:s.borderRadius,gridArea:"control",boxShadow:s.boxShadow.input};let l="off",u="text",c=d=>d;switch(r.type){case"string":break;case"integer":u="number",c=d=>d?parseInt(d):void 0;break;default:throw new Error("unexpected prop.type for ControlInput: "+r.type)}return"secret"in r&&r.secret&&(u="password",l="new-password"),B.jsx("input",{id:t,type:u,name:r.name,value:i??"",onChange:d=>n(c(d.target.value)),...o("controlInput",a,e),min:"min"in r?r.min:void 0,max:"max"in r?r.max:void 0,autoComplete:l,"data-lpignore":"true","data-1p-ignore":"true",required:!r.optional})}function Vb(){const e=gt(),{onChange:t,prop:n,value:r}=e,{getProps:i,theme:o}=Ne(),s=A=>{if(A===null||typeof A!="object"||A instanceof Date||A instanceof Function||A instanceof RegExp)return!1;const E=Object.getPrototypeOf(A);return E===Object.prototype||E===null},a=()=>{if(!r||typeof r!="object"||Array.isArray(r))return[{key:"",value:""}];if(!s(r))return[{key:"",value:""}];const A=Object.entries(r).map(([E,k])=>({key:E,value:typeof k=="string"?k:(()=>{try{return JSON.stringify(k)}catch{return String(k)}})()}));return A.length>0?A:[{key:"",value:""}]},[l,u]=G.useState(a);G.useEffect(()=>{if(!r||typeof r!="object"||Array.isArray(r)){u([{key:"",value:""}]);return}if(!s(r)){u([{key:"",value:""}]);return}const A=Object.entries(r).map(([E,k])=>({key:E,value:typeof k=="string"?k:(()=>{try{return JSON.stringify(k)}catch{return String(k)}})()}));u(A.length>0?A:[{key:"",value:""}])},[r]);const c=A=>{const E=A.filter(C=>C.key.trim()!=="");if(E.length===0){t(void 0);return}const k={};E.forEach(C=>{if(C.key.trim())try{k[C.key]=JSON.parse(C.value)}catch{k[C.key]=C.value}}),t(k)},d=(A,E,k)=>{const C=[...l];C[A]={...C[A],[E]:k},u(C),c(C)},f=()=>{const A=[...l,{key:"",value:""}];u(A)},p=A=>{const E=l.filter((k,C)=>C!==A);u(E.length>0?E:[{key:"",value:""}]),c(E)},b=Nl(),g=Ll(),I=Vl(o),v=lo(o),S=Dl(o);return B.jsxs("div",{...i("controlObject",b,e),children:[l.map((A,E)=>B.jsxs("div",{style:g,children:[B.jsx("input",{type:"text",value:A.key,onChange:k=>d(E,"key",k.target.value),placeholder:"Key",style:I,required:!n.optional&&E===0}),B.jsx("input",{type:"text",value:A.value,onChange:k=>d(E,"value",k.target.value),placeholder:"Value",style:I}),l.length>1&&B.jsx("button",{type:"button",onClick:()=>p(E),style:S,"aria-label":"Remove pair",children:"×"})]},E)),B.jsxs("button",{type:"button",onClick:f,style:{...v,alignSelf:"flex-start",paddingRight:`${o.spacing.baseUnit*2}px`},children:[B.jsx("span",{children:"+"}),B.jsx("span",{children:"Add more"})]})]})}var Db=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],Xl=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=String(t).toLowerCase(),o=String(r.getOptionValue(n)).toLowerCase(),s=String(r.getOptionLabel(n)).toLowerCase();return o===i||s===i},uo={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,n,r,i){return!(!t||n.some(function(o){return Xl(t,o,i)})||r.some(function(o){return Xl(t,o,i)}))},getNewOptionData:function(t,n){return{label:n,value:t,__isNew__:!0}}};function Nb(e){var t=e.allowCreateWhileLoading,n=t===void 0?!1:t,r=e.createOptionPosition,i=r===void 0?"last":r,o=e.formatCreateLabel,s=o===void 0?uo.formatCreateLabel:o,a=e.isValidNewOption,l=a===void 0?uo.isValidNewOption:a,u=e.getNewOptionData,c=u===void 0?uo.getNewOptionData:u,d=e.onCreateOption,f=e.options,p=f===void 0?[]:f,b=e.onChange,g=ht(e,Db),I=g.getOptionValue,v=I===void 0?fl:I,S=g.getOptionLabel,A=S===void 0?pl:S,E=g.inputValue,k=g.isLoading,C=g.isMulti,N=g.value,L=g.name,F=G.useMemo(function(){return l(E,Or(N),p,{getOptionValue:v,getOptionLabel:A})?c(E,s(E)):void 0},[s,c,A,v,E,l,p,N]),R=G.useMemo(function(){return(n||!k)&&F?i==="first"?[F].concat(yn(p)):[].concat(yn(p),[F]):p},[n,i,k,F,p]),T=G.useCallback(function(O,K){if(K.action!=="select-option")return b(O,K);var oe=Array.isArray(O)?O:[O];if(oe[oe.length-1]===F){if(d)d(E);else{var H=c(E,E),Y={action:"create-option",name:L,option:H};b(_n(C,[].concat(yn(Or(N)),[H]),H),Y)}return}b(O,K)},[c,E,C,L,F,d,b,N]);return q(q({},g),{},{options:R,onChange:T})}var Lb=G.forwardRef(function(e,t){var n=Fa(e),r=Nb(n);return re.createElement(so,$({ref:t},r))}),Rb=Lb;function Mb(e){return typeof e=="string"}function Zr(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&"value"in e&&(typeof e.value=="string"||typeof e.value=="number")}function co(e){if(typeof e=="string")return e;if(!e||typeof e!="object")return{label:"",value:""};if("__lv"in e){const i=e.__lv;let o="",s=i==null?void 0:i.value;return i!=null&&i.label&&typeof i.label=="object"&&"label"in i.label?o=String(i.label.label||""):o=String((i==null?void 0:i.label)||(i==null?void 0:i.value)||""),i!=null&&i.value&&typeof i.value=="object"&&"value"in i.value&&(s=i.value.value),{label:o,value:s}}const t=e;let n="",r=t.value;return t.label&&typeof t.label=="object"&&"label"in t.label?n=String(t.label.label||""):n=String(t.label||t.value||""),t.value&&typeof t.value=="object"&&"value"in t.value&&(r=t.value.value),{label:n,value:r}}function jr({isCreatable:e,options:t,selectProps:n,showLoadMoreButton:r,onLoadMore:i}){const o=gt(),{id:s,prop:a,value:l,onChange:u}=o,{select:c,theme:d}=Ne(),[f,p]=G.useState(t),[b,g]=G.useState(l);G.useEffect(()=>{const F=t.map(co);p(F)},[t]),G.useEffect(()=>{g(l)},[l]);const I={styles:{container:F=>({...F,gridArea:"control",boxShadow:d.boxShadow.input})}},v=G.useMemo(()=>{let F=b;if(F!=null){if(Array.isArray(F)){if(!Zr(F[0])){const R=[];for(const T of F){let O={label:String(T),value:T};for(const K of f)if(K.value===T){O=K;break}R.push(O)}F=R}}else if(F&&typeof F=="object"&&"__lv"in F)F=F.__lv;else if(!Zr(F))if((f==null?void 0:f[0])&&Zr(f[0])){for(const T of f)if(T.value===b){F=T;break}}else F={label:String(b),value:b}}return F},[b,f]),S=({children:F,...R})=>B.jsxs(Un.MenuList,{...R,children:[F,B.jsx("div",{className:"pt-4",children:B.jsx(Gl,{onChange:i||(()=>{})})})]}),A=c.getProps("controlSelect",I);r&&(A.components={...A.components,MenuList:S});const E=F=>{const R=H=>{if(Zr(H))return H;const Y=String(H);return{label:Y,value:Y}},T=R(F);let O=T;const K=f.map(co),oe=[T,...K];p(oe),a.type.endsWith("[]")&&(Array.isArray(b)?O=[...b.map(R),T]:O=[T]),g(O),k(O)},k=F=>{if(F)if(Array.isArray(F))typeof F[0]=="object"&&F[0]&&"value"in F[0]?u({__lv:F}):u(F);else if(typeof F=="object"&&F&&"value"in F)u({__lv:F});else throw new Error("unhandled option type");else u(void 0)},C={onCreateOption:a.remoteOptions?E:void 0},N=e?Rb:Xr,L=f.map(co);return B.jsx(N,{inputId:s,instanceId:s,options:L,value:v,isMulti:a.type.endsWith("[]"),isClearable:!0,required:!a.optional,getOptionLabel:F=>typeof F=="string"?F:String((F==null?void 0:F.label)||(F==null?void 0:F.value)||""),getOptionValue:F=>typeof F=="string"?F:String((F==null?void 0:F.value)||""),onChange:k,...A,...n,...C})}const Xb=e=>typeof e=="object"&&e!==null&&"query"in e&&typeof e.query=="string";function zl(){var f;const e=gt(),{id:t,onChange:n,prop:r,value:i}=e,{getProps:o,theme:s}=Ne(),l=((f=r.auth)==null?void 0:f.app)||"postgresql";let u="";Xb(i)?u=i.query:typeof i=="string"&&(u=i);const c=p=>{n({app:l,query:p,params:[]})},d={color:s.colors.neutral60,display:"block",border:"1px solid",borderColor:s.colors.neutral20,padding:6,width:"100%",borderRadius:s.borderRadius,gridArea:"control",boxShadow:s.boxShadow.input,fontSize:"0.875rem",fontFamily:"monospace",minHeight:"120px",resize:"vertical"};return B.jsx("textarea",{id:t,name:r.name,value:u,onChange:p=>c(p.target.value),placeholder:"SELECT * FROM table_name",required:!r.optional,...o("controlSql",d,e)})}function Hl({queryEnabled:e}){const t=At(),{externalUserId:n,component:r,configurableProps:i,configuredProps:o,dynamicProps:s,props:{disableQueryDisabling:a}}=Jn(),{idx:l,prop:u}=gt(),[c,d]=G.useState(""),[f,p]=G.useState(0),[b,g]=G.useState(!0),[I,v]=G.useState(void 0),[S,A]=G.useState({page:0,prevContext:{},data:[],values:new Set}),E={};for(let H=0;H<l;H++){const Y=i[H];E[Y.name]=o[Y.name]}const k={externalUserId:n,page:f,prevContext:I,componentId:r.key,propName:u.name,configuredProps:E,dynamicPropsId:s==null?void 0:s.id};u.useQuery&&(k.query=c||"");const C={...k};delete C.dynamicPropsId;const[N,L]=G.useState(),F=()=>{p(S.page),v(S.prevContext),A({...S,prevContext:{}})},{isFetching:R,refetch:T}=qt({queryKey:["componentConfigure",C],queryFn:async()=>{L(void 0);const H=await t.componentConfigure(k),{options:Y,stringOptions:ue,errors:le}=H;if(le!=null&&le.length){try{L(JSON.parse(le[0]))}catch{L({name:"Error",message:le[0]})}return[]}let ve=[];if(Y!=null&&Y.length&&(ve=Y),ue!=null&&ue.length){const m=[];for(const he of ue)m.push({label:he,value:he});ve=m}const y=[],Ae=new Set(S.values);for(const m of ve||[]){let he;if(Mb(m))he=m;else if(m&&typeof m=="object"&&"value"in m&&m.value!=null)he=m.value;else{console.warn("Skipping invalid option:",m);continue}Ae.has(he)||(Ae.add(he),y.push(m))}let ce=S.data;return y.length?(ce=[...S.data,...y],A({page:f+1,prevContext:H.context,data:ce,values:Ae})):g(!1),ce},enabled:!!e}),O=()=>!R&&!N&&b,K=N?N.message:a?"Click to configure":e?void 0:"Configure props above first",oe=a?!1:!e;return B.jsx(jr,{isCreatable:!0,showLoadMoreButton:O(),onLoadMore:F,options:S.data,selectProps:{isLoading:R,placeholder:K,isDisabled:oe,inputValue:u.useQuery?c:void 0,onInputChange(H){u.useQuery&&(d(H),T())},onMenuOpen(){a&&!e&&T()}}})}function Wl(e){const{field:t,form:n}=e,{queryDisabledIdx:r}=n,{prop:i,idx:o}=t,s="app"in t.extra?t.extra.app:void 0;if(i.remoteOptions||i.type==="$.discord.channel"||i.type==="$.discord.channel[]")return B.jsx(Hl,{queryEnabled:r==null||r>=o});if("options"in i&&i.options){let a=i.options;return typeof a[0]!="object"&&(a=a.map(l=>({label:l,value:l}))),B.jsx(jr,{options:a,components:{IndicatorSeparator:()=>null}})}if(i.type.endsWith("[][]"))throw new Error("Unsupported property type: "+i.type);if(i.type.endsWith("[]"))return!("options"in i)||!i.options?B.jsx(Ob,{}):B.jsx(jr,{isCreatable:!0,options:[],components:{IndicatorSeparator:()=>null}});switch(i.type){case"app":return B.jsx(Ol,{app:s});case"boolean":return B.jsx(Rl,{});case"string":case"integer":return B.jsx(Ml,{});case"object":return B.jsx(Vb,{});case"sql":return B.jsx(zl,{});default:throw new Error("Unsupported property type: "+i.type)}}function Zl(e){const{form:t,field:n}=e,{prop:r}=n,{getProps:i,getComponents:o}=Ne(),s={display:"grid",gridTemplateAreas:n.prop.type=="boolean"?'"control label" "description description" "error error"':'"label label" "control control" "description description" "error error"',gridTemplateColumns:"min-content auto",gap:"0.25rem 0",alignItems:"center",fontSize:"0.875rem"},{Label:a,Description:l,Errors:u}=o(),c="app"in n.extra?n.extra.app:void 0;if(c&&!c.auth_type)return null;let d=r.label||r.name;return c&&(d=`Connect ${c.name} account`),B.jsxs("div",{...i("field",s,e),children:[B.jsx(a,{text:d,field:n,form:t}),B.jsx(Wl,{field:n,form:t}),B.jsx(l,{markdown:r.description,field:n,form:t}),B.jsx(u,{field:n,form:t})]})}const jl=(e,t)=>{var i;const n=At(),r=qt({queryKey:["app",e],queryFn:()=>n.app(e),...t==null?void 0:t.useQueryOpts});return{...r,app:(i=r.data)==null?void 0:i.data}};function Jl({prop:e,idx:t}){const n=Jn(),{id:r,configuredProps:i,registerField:o,setConfiguredProp:s,errors:a,enableDebugging:l}=n,u=e.type==="app"&&"app"in e?e.app:void 0,{app:c}=jl(u||"",{useQueryOpts:{enabled:!!u,suspense:!!u}}),f={id:`pd${r}${e.name}`,prop:e,idx:t,value:i[e.name],onChange(p){s(t,p)},extra:{app:c},errors:a,enableDebugging:l};return G.useEffect(()=>o(f),[f]),B.jsx(ao.Provider,{value:f,children:B.jsx(Zl,{field:f,form:n})})}class Yl extends G.Component{constructor(){super(...arguments),this.state={err:void 0}}static getDerivedStateFromError(t){return{err:t}}render(){const{err:t}=this.state;return t?this.props.fallback(t):this.props.children}}function _l(e){const{form:t}=e,{propsNeedConfiguring:n,submitting:r}=t,{getProps:i,theme:o}=Ne(),s=a=>{var l;return{width:"fit-content",textTransform:"capitalize",backgroundColor:a?o.colors.neutral10:o.colors.primary,color:a?o.colors.neutral40:o.colors.neutral0,padding:`${o.spacing.baseUnit*1.75}px ${o.spacing.baseUnit*16}px`,borderRadius:o.borderRadius,boxShadow:(l=o.boxShadow)==null?void 0:l.button,cursor:"pointer",fontSize:"0.875rem",opacity:r?.5:void 0,margin:"0.5rem 0 0 0"}};return B.jsx("input",{type:"submit",value:r?"Submitting...":"Submit",...i("controlSubmit",s(n.length||r),e),disabled:n.length||r})}const zb=["ConfigurationError"];function Ul(){const e=Jn(),{configurableProps:t,dynamicPropsQueryIsFetching:n,isValid:r,optionalPropIsEnabled:i,optionalPropSetEnabled:o,props:s,setSubmitting:a,sdkErrors:l,submitting:u,enableDebugging:c}=e,d=c||l.filter(R=>zb.includes(R.name)).length>0,{hideOptionalProps:f,onSubmit:p}=s,[b,g]=G.useState([]);G.useEffect(()=>{u?g([]):l&&l.length&&g(l.map(R=>({type:"alert",alertType:"error",content:`# ${R.name}
21
- ${R.message}`})))},[l,u]);const{getComponents:I,getProps:v,theme:S}=Ne(),{OptionalFieldButton:A}=I(),E={display:"flex",flexDirection:"column",gap:"1.5rem"},k={display:"flex",flexWrap:"wrap",gap:"0.375rem"},C={fontWeight:600,textTransform:"capitalize",color:S.colors.neutral60,fontSize:"0.875rem",lineHeight:"1.375",margin:"0 0 0.5rem 0"},N=async R=>{if(p&&(R.preventDefault(),r)){a(!0);try{await p(e)}finally{a(!1)}}},L=[],F=[];for(let R=0;R<t.length;R++){const T=t[R];if(!T.hidden&&!jn.includes(T.type)){if(T.optional){const O=i(T);if(F.push([T,O]),!O)continue}L.push([T,R])}}return B.jsx(Yl,{fallback:R=>B.jsxs("p",{style:{color:"red"},children:["Error: ",R&&typeof R=="object"&&"message"in R&&typeof R.message=="string"?R.message:"Unknown"]}),children:B.jsx(G.Suspense,{fallback:B.jsx("p",{children:"Loading form..."}),children:B.jsxs("form",{...v("componentForm",E,s),onSubmit:N,children:[L.map(([R,T])=>R.type==="alert"?B.jsx(Cr,{prop:R},R.name):B.jsx(Jl,{prop:R,idx:T},R.name)),n&&B.jsx("p",{children:"Loading dynamic props..."}),!f&&F.length?B.jsxs("div",{children:[B.jsx("div",{...v("heading",C,s),children:"Optional Props"}),B.jsx("div",{...v("optionalFields",k,s),children:F.map(([R,T])=>B.jsx(A,{prop:R,enabled:T,onClick:()=>o(R,!T)},R.name))})]}):null,d&&(b==null?void 0:b.map((R,T)=>B.jsx(Cr,{prop:R},T))),p&&B.jsx(_l,{form:e})]})})})}function ql(e){return B.jsx(wa,{props:e,children:B.jsx(Ul,{})})}const Ql=({key:e},t)=>{var i;const n=At(),r=qt({queryKey:["component",e],queryFn:()=>n.component({key:e}),enabled:!!e,...t==null?void 0:t.useQueryOpts});return{...r,component:(i=r.data)==null?void 0:i.data}};function Hb(e){const{isLoading:t,error:n,component:r}=Ql({key:e.componentKey});if(!e.componentKey)throw new Error("componentKey required");return t?B.jsx("p",{children:"Loading..."}):n?B.jsxs("p",{children:["Error: ",n.message]}):r?B.jsx(ql,{component:r,...e}):B.jsx("p",{children:"Component not found"})}function Wb(){const e=gt(),{id:t,onChange:n,value:r}=e,{getProps:i,theme:o}=Ne(),s={display:"block",gridArea:"control",width:"100%",fontSize:"0.875rem",boxShadow:o.boxShadow.input};let a=r;return typeof a=="object"&&(a=JSON.stringify(a)),B.jsx("textarea",{id:t,value:a,onChange:l=>n(l.target.value),...i("controlAny",s,e)})}const $l=e=>{var r;const t=At(),n=qt({queryKey:["apps",e],queryFn:()=>t.apps(e)});return{...n,apps:((r=n.data)==null?void 0:r.data)||[]}};function Zb({value:e,onChange:t,appsOptions:n}){const[r,i]=G.useState(""),[o,s]=G.useState(""),a=G.useId();G.useEffect(()=>{const p=setTimeout(()=>{s(r)},300);return()=>clearTimeout(p)},[r]);const{isLoading:l,apps:u}=$l({...n??{},q:o}),{Option:c,SingleValue:d}=Un,f=(u==null?void 0:u.find(p=>p.name_slug===(e==null?void 0:e.name_slug)))||(e!=null&&e.name_slug?e:null);return B.jsx(Xr,{instanceId:a,className:"react-select-container text-sm",classNamePrefix:"react-select",components:{Option:p=>B.jsx(c,{...p,children:B.jsxs("div",{style:{display:"flex",gap:10},children:[B.jsx("img",{src:`https://pipedream.com/s.v0/${p.data.id}/logo/48`,style:{height:24,width:24},alt:p.data.name}),B.jsx("span",{style:{whiteSpace:"nowrap"},children:p.data.name})]})}),SingleValue:p=>B.jsx(d,{...p,children:B.jsxs("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[B.jsx("img",{src:`https://pipedream.com/s.v0/${p.data.id}/logo/48`,style:{height:24,width:24},alt:p.data.name}),B.jsx("span",{style:{whiteSpace:"nowrap"},children:p.data.name})]})}),IndicatorSeparator:()=>null},options:u||[],getOptionLabel:p=>p.name||p.name_slug,getOptionValue:p=>p.name_slug,value:f,onChange:p=>t==null?void 0:t(p||void 0),onInputChange:(p,{action:b})=>{b==="input-change"&&i(p)},isLoading:l})}const Kl=e=>{var r;const t=At(),n=qt({queryKey:["components",e],queryFn:()=>t.getComponents(e)});return{...n,components:((r=n.data)==null?void 0:r.data)||[]}};function jb({app:e,componentType:t,value:n,onChange:r}){const i=G.useId(),{isLoading:o,components:s}=Kl({app:e==null?void 0:e.name_slug,componentType:t}),a=(s==null?void 0:s.find(l=>l.key===(n==null?void 0:n.key)))||null;return B.jsx(Xr,{instanceId:i,className:"react-select-container text-sm",classNamePrefix:"react-select",options:s,getOptionLabel:l=>l.name||l.key,getOptionValue:l=>l.key,value:a,onChange:l=>r==null?void 0:r(l||void 0),isLoading:o,components:{IndicatorSeparator:()=>null}})}const Jb={buildTime:new Date().toISOString(),source:"local-development"};z.Alert=Cr,z.ComponentForm=ql,z.ComponentFormContainer=Hb,z.Control=Wl,z.ControlAny=Wb,z.ControlApp=Ol,z.ControlBoolean=Rl,z.ControlInput=Ml,z.ControlSelect=jr,z.ControlSql=zl,z.ControlSubmit=_l,z.CustomizationContext=Wr,z.CustomizeProvider=Bb,z.DEBUG_INFO=Jb,z.Description=El,z.ErrorBoundary=Yl,z.Errors=kl,z.Field=Zl,z.FormContext=Zi,z.FormContextProvider=wa,z.FormFieldContext=ao,z.FrontendClientProvider=Eh,z.InternalComponentForm=Ul,z.InternalField=Jl,z.Label=Fl,z.OptionalFieldButton=Pl,z.RemoteOptionsContainer=Hl,z.SelectApp=Zb,z.SelectComponent=jb,z.defaultComponents=Bl,z.defaultTheme=zr,z.getReactSelectTheme=Sl,z.mergeTheme=Hr,z.skippablePropTypes=jn,z.unstyledTheme=wl,z.useAccounts=Tl,z.useApp=jl,z.useApps=$l,z.useComponent=Ql,z.useComponents=Kl,z.useCustomize=Ne,z.useFormContext=Jn,z.useFormFieldContext=gt,z.useFrontendClient=At,Object.defineProperty(z,Symbol.toStringTag,{value:"Module"})});
20
+ `]))),If=function(t,n){var i=t.isFocused,r=t.size,o=t.theme,l=o.colors,u=o.spacing.baseUnit;return J({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},n?{}:{color:i?l.neutral60:l.neutral20,padding:u*2})},Vr=function(t){var n=t.delay,i=t.offset;return j.jsx("span",{css:j.css({animation:"".concat(yf," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:i?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbn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0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},vf=function(t){var n=t.innerProps,i=t.isRtl,r=t.size,o=r===void 0?4:r,l=Ke(t,sf);return j.jsx("div",q({},Ie(J(J({},l),{},{innerProps:n,isRtl:i,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),j.jsx(Vr,{delay:0,offset:i}),j.jsx(Vr,{delay:160,offset:!0}),j.jsx(Vr,{delay:320,offset:!i}))},Cf=function(t,n){var i=t.isDisabled,r=t.isFocused,o=t.theme,l=o.colors,u=o.borderRadius,a=o.spacing;return J({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:i?l.neutral5:l.neutral0,borderColor:i?l.neutral10:r?l.primary:l.neutral20,borderRadius:u,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(l.primary):void 0,"&:hover":{borderColor:r?l.primary:l.neutral30}})},xf=function(t){var n=t.children,i=t.isDisabled,r=t.isFocused,o=t.innerRef,l=t.innerProps,u=t.menuIsOpen;return j.jsx("div",q({ref:o},Ie(t,"control",{control:!0,"control--is-disabled":i,"control--is-focused":r,"control--menu-is-open":u}),l,{"aria-disabled":i||void 0}),n)},Af=xf,wf=["data"],Sf=function(t,n){var i=t.theme.spacing;return n?{}:{paddingBottom:i.baseUnit*2,paddingTop:i.baseUnit*2}},Ef=function(t){var n=t.children,i=t.cx,r=t.getStyles,o=t.getClassNames,l=t.Heading,u=t.headingProps,a=t.innerProps,s=t.label,c=t.theme,d=t.selectProps;return j.jsx("div",q({},Ie(t,"group",{group:!0}),a),j.jsx(l,q({},u,{selectProps:d,theme:c,getStyles:r,getClassNames:o,cx:i}),s),j.jsx("div",null,n))},kf=function(t,n){var i=t.theme,r=i.colors,o=i.spacing;return J({label:"group",cursor:"default",display:"block"},n?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},Ff=function(t){var n=jo(t);n.data;var i=Ke(n,wf);return j.jsx("div",q({},Ie(t,"groupHeading",{"group-heading":!0}),i))},Gf=Ef,Bf=["innerRef","isDisabled","isHidden","inputClassName"],Pf=function(t,n){var i=t.isDisabled,r=t.value,o=t.theme,l=o.spacing,u=o.colors;return J(J({visibility:i?"hidden":"visible",transform:r?"translateZ(0)":""},Tf),n?{}:{margin:l.baseUnit/2,paddingBottom:l.baseUnit/2,paddingTop:l.baseUnit/2,color:u.neutral80})},rl={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Tf={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":J({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},rl)},Vf=function(t){return J({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},rl)},Of=function(t){var n=t.cx,i=t.value,r=jo(t),o=r.innerRef,l=r.isDisabled,u=r.isHidden,a=r.inputClassName,s=Ke(r,Bf);return j.jsx("div",q({},Ie(t,"input",{"input-container":!0}),{"data-value":i||""}),j.jsx("input",q({className:n({input:!0},a),ref:o,style:Vf(u),disabled:l},s)))},Nf=Of,Df=function(t,n){var i=t.theme,r=i.spacing,o=i.borderRadius,l=i.colors;return J({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:l.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},Lf=function(t,n){var i=t.theme,r=i.borderRadius,o=i.colors,l=t.cropWithEllipsis;return J({overflow:"hidden",textOverflow:l||l===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Mf=function(t,n){var i=t.theme,r=i.spacing,o=i.borderRadius,l=i.colors,u=t.isFocused;return J({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:u?l.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:l.dangerLight,color:l.danger}})},il=function(t){var n=t.children,i=t.innerProps;return j.jsx("div",i,n)},Rf=il,Xf=il;function zf(e){var t=e.children,n=e.innerProps;return j.jsx("div",q({role:"button"},n),t||j.jsx(Tr,{size:14}))}var Hf=function(t){var n=t.children,i=t.components,r=t.data,o=t.innerProps,l=t.isDisabled,u=t.removeProps,a=t.selectProps,s=i.Container,c=i.Label,d=i.Remove;return j.jsx(s,{data:r,innerProps:J(J({},Ie(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":l})),o),selectProps:a},j.jsx(c,{data:r,innerProps:J({},Ie(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:a},n),j.jsx(d,{data:r,innerProps:J(J({},Ie(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},u),selectProps:a}))},Wf=Hf,Zf=function(t,n){var i=t.isDisabled,r=t.isFocused,o=t.isSelected,l=t.theme,u=l.spacing,a=l.colors;return J({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?a.primary:r?a.primary25:"transparent",color:i?a.neutral20:o?a.neutral0:"inherit",padding:"".concat(u.baseUnit*2,"px ").concat(u.baseUnit*3,"px"),":active":{backgroundColor:i?void 0:o?a.primary:a.primary50}})},jf=function(t){var n=t.children,i=t.isDisabled,r=t.isFocused,o=t.isSelected,l=t.innerRef,u=t.innerProps;return j.jsx("div",q({},Ie(t,"option",{option:!0,"option--is-disabled":i,"option--is-focused":r,"option--is-selected":o}),{ref:l,"aria-disabled":i},u),n)},Jf=jf,Yf=function(t,n){var i=t.theme,r=i.spacing,o=i.colors;return J({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},_f=function(t){var n=t.children,i=t.innerProps;return j.jsx("div",q({},Ie(t,"placeholder",{placeholder:!0}),i),n)},Uf=_f,qf=function(t,n){var i=t.isDisabled,r=t.theme,o=r.spacing,l=r.colors;return J({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:i?l.neutral40:l.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},Qf=function(t){var n=t.children,i=t.isDisabled,r=t.innerProps;return j.jsx("div",q({},Ie(t,"singleValue",{"single-value":!0,"single-value--is-disabled":i}),r),n)},$f=Qf,Bn={ClearIndicator:hf,Control:Af,DropdownIndicator:ff,DownChevron:tl,CrossIcon:Tr,Group:Gf,GroupHeading:Ff,IndicatorsContainer:af,IndicatorSeparator:bf,Input:Nf,LoadingIndicator:vf,Menu:Jd,MenuList:_d,MenuPortal:ef,LoadingMessage:$d,NoOptionsMessage:Qd,MultiValue:Wf,MultiValueContainer:Rf,MultiValueLabel:Xf,MultiValueRemove:zf,Option:Jf,Placeholder:Uf,SelectContainer:nf,SingleValue:$f,ValueContainer:of},Kf=function(t){return J(J({},Bn),t.components)},ol=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function eg(e,t){return!!(e===t||ol(e)&&ol(t))}function tg(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!eg(e[n],t[n]))return!1;return!0}function ng(e,t){t===void 0&&(t=tg);var n=null;function i(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var l=e.apply(this,r);return n={lastResult:l,lastArgs:r,lastThis:this},l}return i.clear=function(){n=null},i}function rg(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var ig=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:rg},og=function(t){return j.jsx("span",q({css:ig},t))},ll=og,lg={guidance:function(t){var n=t.isSearchable,i=t.isMulti,r=t.tabSelectsValue,o=t.context,l=t.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return l?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(i?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,i=t.label,r=i===void 0?"":i,o=t.labels,l=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return l?"option ".concat(r," is disabled. Select another option."):"option ".concat(r,", selected.");default:return""}},onFocus:function(t){var n=t.context,i=t.focused,r=t.options,o=t.label,l=o===void 0?"":o,u=t.selectValue,a=t.isDisabled,s=t.isSelected,c=t.isAppleDevice,d=function(b,x){return b&&b.length?"".concat(b.indexOf(x)+1," of ").concat(b.length):""};if(n==="value"&&u)return"value ".concat(l," focused, ").concat(d(u,i),".");if(n==="menu"&&c){var f=a?" disabled":"",p="".concat(s?" selected":"").concat(f);return"".concat(l).concat(p,", ").concat(d(r,i),".")}return""},onFilter:function(t){var n=t.inputValue,i=t.resultsMessage;return"".concat(i).concat(n?" for search term "+n:"",".")}},ag=function(t){var n=t.ariaSelection,i=t.focusedOption,r=t.focusedValue,o=t.focusableOptions,l=t.isFocused,u=t.selectValue,a=t.selectProps,s=t.id,c=t.isAppleDevice,d=a.ariaLiveMessages,f=a.getOptionLabel,p=a.inputValue,y=a.isMulti,b=a.isOptionDisabled,x=a.isSearchable,I=a.menuIsOpen,S=a.options,A=a.screenReaderStatus,E=a.tabSelectsValue,k=a.isLoading,C=a["aria-label"],M=a["aria-live"],V=F.useMemo(function(){return J(J({},lg),d||{})},[d]),D=F.useMemo(function(){var X="";if(n&&V.onChange){var Z=n.option,oe=n.options,re=n.removedValue,fe=n.removedValues,m=n.value,be=function(de){return Array.isArray(de)?null:de},le=re||Z||be(m),h=le?f(le):"",se=oe||fe||void 0,U=se?se.map(f):[],ae=J({isDisabled:le&&b(le,u),label:h,labels:U},n);X=V.onChange(ae)}return X},[n,V,b,u,f]),O=F.useMemo(function(){var X="",Z=i||r,oe=!!(i&&u&&u.includes(i));if(Z&&V.onFocus){var re={focused:Z,label:f(Z),isDisabled:b(Z,u),isSelected:oe,options:o,context:Z===i?"menu":"value",selectValue:u,isAppleDevice:c};X=V.onFocus(re)}return X},[i,r,f,b,V,o,u,c]),N=F.useMemo(function(){var X="";if(I&&S.length&&!k&&V.onFilter){var Z=A({count:o.length});X=V.onFilter({inputValue:p,resultsMessage:Z})}return X},[o,p,I,V,S,A,k]),T=(n==null?void 0:n.action)==="initial-input-focus",$=F.useMemo(function(){var X="";if(V.guidance){var Z=r?"value":I?"menu":"input";X=V.guidance({"aria-label":C,context:Z,isDisabled:i&&b(i,u),isMulti:y,isSearchable:x,tabSelectsValue:E,isInitialFocus:T})}return X},[C,i,r,y,b,x,I,V,u,E,T]),ne=j.jsx(F.Fragment,null,j.jsx("span",{id:"aria-selection"},D),j.jsx("span",{id:"aria-focused"},O),j.jsx("span",{id:"aria-results"},N),j.jsx("span",{id:"aria-guidance"},$));return j.jsx(F.Fragment,null,j.jsx(ll,{id:s},T&&ne),j.jsx(ll,{"aria-live":M,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},l&&!T&&ne))},ug=ag,Or=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],sg=new RegExp("["+Or.map(function(e){return e.letters}).join("")+"]","g"),al={},Nr=0;Nr<Or.length;Nr++)for(var Dr=Or[Nr],Lr=0;Lr<Dr.letters.length;Lr++)al[Dr.letters[Lr]]=Dr.base;var ul=function(t){return t.replace(sg,function(n){return al[n]})},cg=ng(ul),sl=function(t){return t.replace(/^\s+|\s+$/g,"")},pg=function(t){return"".concat(t.label," ").concat(t.value)},dg=function(t){return function(n,i){if(n.data.__isNew__)return!0;var r=J({ignoreCase:!0,ignoreAccents:!0,stringify:pg,trim:!0,matchFrom:"any"},t),o=r.ignoreCase,l=r.ignoreAccents,u=r.stringify,a=r.trim,s=r.matchFrom,c=a?sl(i):i,d=a?sl(u(n)):u(n);return o&&(c=c.toLowerCase(),d=d.toLowerCase()),l&&(c=cg(c),d=ul(d)),s==="start"?d.substr(0,c.length)===c:d.indexOf(c)>-1}},fg=["innerRef"];function gg(e){var t=e.innerRef,n=Ke(e,fg),i=Md(n,"onExited","in","enter","exit","appear");return j.jsx("input",q({ref:t},i,{css:j.css({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var hg=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function mg(e){var t=e.isEnabled,n=e.onBottomArrive,i=e.onBottomLeave,r=e.onTopArrive,o=e.onTopLeave,l=F.useRef(!1),u=F.useRef(!1),a=F.useRef(0),s=F.useRef(null),c=F.useCallback(function(x,I){if(s.current!==null){var S=s.current,A=S.scrollTop,E=S.scrollHeight,k=S.clientHeight,C=s.current,M=I>0,V=E-k-A,D=!1;V>I&&l.current&&(i&&i(x),l.current=!1),M&&u.current&&(o&&o(x),u.current=!1),M&&I>V?(n&&!l.current&&n(x),C.scrollTop=E,D=!0,l.current=!0):!M&&-I>A&&(r&&!u.current&&r(x),C.scrollTop=0,D=!0,u.current=!0),D&&hg(x)}},[n,i,r,o]),d=F.useCallback(function(x){c(x,x.deltaY)},[c]),f=F.useCallback(function(x){a.current=x.changedTouches[0].clientY},[]),p=F.useCallback(function(x){var I=a.current-x.changedTouches[0].clientY;c(x,I)},[c]),y=F.useCallback(function(x){if(x){var I=Nd?{passive:!1}:!1;x.addEventListener("wheel",d,I),x.addEventListener("touchstart",f,I),x.addEventListener("touchmove",p,I)}},[p,f,d]),b=F.useCallback(function(x){x&&(x.removeEventListener("wheel",d,!1),x.removeEventListener("touchstart",f,!1),x.removeEventListener("touchmove",p,!1))},[p,f,d]);return F.useEffect(function(){if(t){var x=s.current;return y(x),function(){b(x)}}},[t,y,b]),function(x){s.current=x}}var cl=["boxSizing","height","overflow","paddingRight","position"],pl={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function dl(e){e.cancelable&&e.preventDefault()}function fl(e){e.stopPropagation()}function gl(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function hl(){return"ontouchstart"in window||navigator.maxTouchPoints}var ml=!!(typeof window<"u"&&window.document&&window.document.createElement),qt=0,Dt={capture:!1,passive:!1};function bg(e){var t=e.isEnabled,n=e.accountForScrollbars,i=n===void 0?!0:n,r=F.useRef({}),o=F.useRef(null),l=F.useCallback(function(a){if(ml){var s=document.body,c=s&&s.style;if(i&&cl.forEach(function(y){var b=c&&c[y];r.current[y]=b}),i&&qt<1){var d=parseInt(r.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,p=window.innerWidth-f+d||0;Object.keys(pl).forEach(function(y){var b=pl[y];c&&(c[y]=b)}),c&&(c.paddingRight="".concat(p,"px"))}s&&hl()&&(s.addEventListener("touchmove",dl,Dt),a&&(a.addEventListener("touchstart",gl,Dt),a.addEventListener("touchmove",fl,Dt))),qt+=1}},[i]),u=F.useCallback(function(a){if(ml){var s=document.body,c=s&&s.style;qt=Math.max(qt-1,0),i&&qt<1&&cl.forEach(function(d){var f=r.current[d];c&&(c[d]=f)}),s&&hl()&&(s.removeEventListener("touchmove",dl,Dt),a&&(a.removeEventListener("touchstart",gl,Dt),a.removeEventListener("touchmove",fl,Dt)))}},[i]);return F.useEffect(function(){if(t){var a=o.current;return l(a),function(){u(a)}}},[t,l,u]),function(a){o.current=a}}function yg(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Ig=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},vg=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhU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NvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:yg};function Cg(e){var t=e.children,n=e.lockEnabled,i=e.captureEnabled,r=i===void 0?!0:i,o=e.onBottomArrive,l=e.onBottomLeave,u=e.onTopArrive,a=e.onTopLeave,s=mg({isEnabled:r,onBottomArrive:o,onBottomLeave:l,onTopArrive:u,onTopLeave:a}),c=bg({isEnabled:n}),d=function(p){s(p),c(p)};return j.jsx(F.Fragment,null,n&&j.jsx("div",{onClick:Ig,css:vg}),t(d))}function xg(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Ag=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:xg},wg=function(t){var n=t.name,i=t.onFocus;return j.jsx("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:i,css:Ag,value:"",onChange:function(){}})},Sg=wg;function Mr(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Eg(){return Mr(/^iPhone/i)}function bl(){return Mr(/^Mac/i)}function kg(){return Mr(/^iPad/i)||bl()&&navigator.maxTouchPoints>1}function Fg(){return Eg()||kg()}function Gg(){return bl()||Fg()}var Bg=function(t){return t.label},yl=function(t){return t.label},Il=function(t){return t.value},Pg=function(t){return!!t.isDisabled},Tg={clearIndicator:gf,container:tf,control:Cf,dropdownIndicator:df,group:Sf,groupHeading:kf,indicatorsContainer:lf,indicatorSeparator:mf,input:Pf,loadingIndicator:If,loadingMessage:qd,menu:Wd,menuList:Yd,menuPortal:Kd,multiValue:Df,multiValueLabel:Lf,multiValueRemove:Mf,noOptionsMessage:Ud,option:Zf,placeholder:Yf,singleValue:qf,valueContainer:rf};function Vg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=J({},e);return Object.keys(t).forEach(function(i){var r=i;e[r]?n[r]=function(o,l){return t[r](e[r](o,l),l)}:n[r]=t[r]}),n}var Og={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},Ng=4,vl=4,Dg=38,Lg=vl*2,Mg={baseUnit:vl,controlHeight:Dg,menuGutter:Lg},Qt={borderRadius:Ng,colors:Og,spacing:Mg},Rg={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:_o(),captureMenuScroll:!_o(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:dg(),formatGroupLabel:Bg,getOptionLabel:yl,getOptionValue:Il,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Pg,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Vd(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Cl(e,t,n,i){var r=El(e,t,n),o=kl(e,t,n),l=Sl(e,t),u=Tn(e,t);return{type:"option",data:t,isDisabled:r,isSelected:o,label:l,value:u,index:i}}function Pn(e,t){return e.options.map(function(n,i){if("options"in n){var r=n.options.map(function(l,u){return Cl(e,l,t,u)}).filter(function(l){return wl(e,l)});return r.length>0?{type:"group",data:n,options:r,index:i}:void 0}var o=Cl(e,n,t,i);return wl(e,o)?o:void 0}).filter(Dd)}function xl(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,Nt(n.options.map(function(i){return i.data}))):t.push(n.data),t},[])}function Al(e,t){return e.reduce(function(n,i){return i.type==="group"?n.push.apply(n,Nt(i.options.map(function(r){return{data:r.data,id:"".concat(t,"-").concat(i.index,"-").concat(r.index)}}))):n.push({data:i.data,id:"".concat(t,"-").concat(i.index)}),n},[])}function Xg(e,t){return xl(Pn(e,t))}function wl(e,t){var n=e.inputValue,i=n===void 0?"":n,r=t.data,o=t.isSelected,l=t.label,u=t.value;return(!Gl(e)||!o)&&Fl(e,{label:l,value:u,data:r},i)}function zg(e,t){var n=e.focusedValue,i=e.selectValue,r=i.indexOf(n);if(r>-1){var o=t.indexOf(n);if(o>-1)return n;if(r<t.length)return t[r]}return null}function Hg(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var Rr=function(t,n){var i,r=(i=t.find(function(o){return o.data===n}))===null||i===void 0?void 0:i.id;return r||null},Sl=function(t,n){return t.getOptionLabel(n)},Tn=function(t,n){return t.getOptionValue(n)};function El(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function kl(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var i=Tn(e,t);return n.some(function(r){return Tn(e,r)===i})}function Fl(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var Gl=function(t){var n=t.hideSelectedOptions,i=t.isMulti;return n===void 0?i:n},Wg=1,Xr=function(e){od(n,e);var t=ud(n);function n(i){var r;if(rd(this,n),r=t.call(this,i),r.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.isAppleDevice=Gg(),r.controlRef=null,r.getControlRef=function(a){r.controlRef=a},r.focusedOptionRef=null,r.getFocusedOptionRef=function(a){r.focusedOptionRef=a},r.menuListRef=null,r.getMenuListRef=function(a){r.menuListRef=a},r.inputRef=null,r.getInputRef=function(a){r.inputRef=a},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(a,s){var c=r.props,d=c.onChange,f=c.name;s.name=f,r.ariaOnChange(a,s),d(a,s)},r.setValue=function(a,s,c){var d=r.props,f=d.closeMenuOnSelect,p=d.isMulti,y=d.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:y}),f&&(r.setState({inputIsHiddenAfterUpdate:!p}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(a,{action:s,option:c})},r.selectOption=function(a){var s=r.props,c=s.blurInputOnSelect,d=s.isMulti,f=s.name,p=r.state.selectValue,y=d&&r.isOptionSelected(a,p),b=r.isOptionDisabled(a,p);if(y){var x=r.getOptionValue(a);r.setValue(p.filter(function(I){return r.getOptionValue(I)!==x}),"deselect-option",a)}else if(!b)d?r.setValue([].concat(Nt(p),[a]),"select-option",a):r.setValue(a,"select-option");else{r.ariaOnChange(a,{action:"select-option",option:a,name:f});return}c&&r.blurInput()},r.removeValue=function(a){var s=r.props.isMulti,c=r.state.selectValue,d=r.getOptionValue(a),f=c.filter(function(y){return r.getOptionValue(y)!==d}),p=Ut(s,f,f[0]||null);r.onChange(p,{action:"remove-value",removedValue:a}),r.focusInput()},r.clearValue=function(){var a=r.state.selectValue;r.onChange(Ut(r.props.isMulti,[],null),{action:"clear",removedValues:a})},r.popValue=function(){var a=r.props.isMulti,s=r.state.selectValue,c=s[s.length-1],d=s.slice(0,s.length-1),f=Ut(a,d,d[0]||null);c&&r.onChange(f,{action:"pop-value",removedValue:c})},r.getFocusedOptionId=function(a){return Rr(r.state.focusableOptionsWithIds,a)},r.getFocusableOptionsWithIds=function(){return Al(Pn(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return Fd.apply(void 0,[r.props.classNamePrefix].concat(s))},r.getOptionLabel=function(a){return Sl(r.props,a)},r.getOptionValue=function(a){return Tn(r.props,a)},r.getStyles=function(a,s){var c=r.props.unstyled,d=Tg[a](s,c);d.boxSizing="border-box";var f=r.props.styles[a];return f?f(d,s):d},r.getClassNames=function(a,s){var c,d;return(c=(d=r.props.classNames)[a])===null||c===void 0?void 0:c.call(d,s)},r.getElementId=function(a){return"".concat(r.state.instancePrefix,"-").concat(a)},r.getComponents=function(){return Kf(r.props)},r.buildCategorizedOptions=function(){return Pn(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return xl(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(a,s){r.setState({ariaSelection:J({value:a},s)})},r.onMenuMouseDown=function(a){a.button===0&&(a.stopPropagation(),a.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(a){r.blockOptionHover=!1},r.onControlMouseDown=function(a){if(!a.defaultPrevented){var s=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?a.target.tagName!=="INPUT"&&a.target.tagName!=="TEXTAREA"&&r.onMenuClose():s&&r.openMenu("first"):(s&&(r.openAfterFocus=!0),r.focusInput()),a.target.tagName!=="INPUT"&&a.target.tagName!=="TEXTAREA"&&a.preventDefault()}},r.onDropdownIndicatorMouseDown=function(a){if(!(a&&a.type==="mousedown"&&a.button!==0)&&!r.props.isDisabled){var s=r.props,c=s.isMulti,d=s.menuIsOpen;r.focusInput(),d?(r.setState({inputIsHiddenAfterUpdate:!c}),r.onMenuClose()):r.openMenu("first"),a.preventDefault()}},r.onClearIndicatorMouseDown=function(a){a&&a.type==="mousedown"&&a.button!==0||(r.clearValue(),a.preventDefault(),r.openAfterFocus=!1,a.type==="touchend"?r.focusInput():setTimeout(function(){return r.focusInput()}))},r.onScroll=function(a){typeof r.props.closeMenuOnScroll=="boolean"?a.target instanceof HTMLElement&&En(a.target)&&r.props.onMenuClose():typeof r.props.closeMenuOnScroll=="function"&&r.props.closeMenuOnScroll(a)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(a){var s=a.touches,c=s&&s.item(0);c&&(r.initialTouchX=c.clientX,r.initialTouchY=c.clientY,r.userIsDragging=!1)},r.onTouchMove=function(a){var s=a.touches,c=s&&s.item(0);if(c){var d=Math.abs(c.clientX-r.initialTouchX),f=Math.abs(c.clientY-r.initialTouchY),p=5;r.userIsDragging=d>p||f>p}},r.onTouchEnd=function(a){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(a.target)&&r.menuListRef&&!r.menuListRef.contains(a.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(a){r.userIsDragging||r.onControlMouseDown(a)},r.onClearIndicatorTouchEnd=function(a){r.userIsDragging||r.onClearIndicatorMouseDown(a)},r.onDropdownIndicatorTouchEnd=function(a){r.userIsDragging||r.onDropdownIndicatorMouseDown(a)},r.handleInputChange=function(a){var s=r.props.inputValue,c=a.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(c,{action:"input-change",prevInputValue:s}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(a){r.props.onFocus&&r.props.onFocus(a),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(a){var s=r.props.inputValue;if(r.menuListRef&&r.menuListRef.contains(document.activeElement)){r.inputRef.focus();return}r.props.onBlur&&r.props.onBlur(a),r.onInputChange("",{action:"input-blur",prevInputValue:s}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1})},r.onOptionHover=function(a){if(!(r.blockOptionHover||r.state.focusedOption===a)){var s=r.getFocusableOptions(),c=s.indexOf(a);r.setState({focusedOption:a,focusedOptionId:c>-1?r.getFocusedOptionId(a):null})}},r.shouldHideSelectedOptions=function(){return Gl(r.props)},r.onValueInputFocus=function(a){a.preventDefault(),a.stopPropagation(),r.focus()},r.onKeyDown=function(a){var s=r.props,c=s.isMulti,d=s.backspaceRemovesValue,f=s.escapeClearsValue,p=s.inputValue,y=s.isClearable,b=s.isDisabled,x=s.menuIsOpen,I=s.onKeyDown,S=s.tabSelectsValue,A=s.openMenuOnFocus,E=r.state,k=E.focusedOption,C=E.focusedValue,M=E.selectValue;if(!b&&!(typeof I=="function"&&(I(a),a.defaultPrevented))){switch(r.blockOptionHover=!0,a.key){case"ArrowLeft":if(!c||p)return;r.focusValue("previous");break;case"ArrowRight":if(!c||p)return;r.focusValue("next");break;case"Delete":case"Backspace":if(p)return;if(C)r.removeValue(C);else{if(!d)return;c?r.popValue():y&&r.clearValue()}break;case"Tab":if(r.isComposing||a.shiftKey||!x||!S||!k||A&&r.isOptionSelected(k,M))return;r.selectOption(k);break;case"Enter":if(a.keyCode===229)break;if(x){if(!k||r.isComposing)return;r.selectOption(k);break}return;case"Escape":x?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:p}),r.onMenuClose()):y&&f&&r.clearValue();break;case" ":if(p)return;if(!x){r.openMenu("first");break}if(!k)return;r.selectOption(k);break;case"ArrowUp":x?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":x?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!x)return;r.focusOption("pageup");break;case"PageDown":if(!x)return;r.focusOption("pagedown");break;case"Home":if(!x)return;r.focusOption("first");break;case"End":if(!x)return;r.focusOption("last");break;default:return}a.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++Wg),r.state.selectValue=Sn(i.value),i.menuIsOpen&&r.state.selectValue.length){var o=r.getFocusableOptionsWithIds(),l=r.buildFocusableOptions(),u=l.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=o,r.state.focusedOption=l[u],r.state.focusedOptionId=Rr(o,l[u])}return r}return id(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Yo(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(r){var o=this.props,l=o.isDisabled,u=o.menuIsOpen,a=this.state.isFocused;(a&&!l&&r.isDisabled||a&&u&&!r.menuIsOpen)&&this.focusInput(),a&&l&&!r.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!a&&!l&&r.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Yo(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(r,o){this.props.onInputChange(r,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(r){var o=this,l=this.state,u=l.selectValue,a=l.isFocused,s=this.buildFocusableOptions(),c=r==="first"?0:s.length-1;if(!this.props.isMulti){var d=s.indexOf(u[0]);d>-1&&(c=d)}this.scrollToFocusedOptionOnUpdate=!(a&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:s[c],focusedOptionId:this.getFocusedOptionId(s[c])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(r){var o=this.state,l=o.selectValue,u=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var a=l.indexOf(u);u||(a=-1);var s=l.length-1,c=-1;if(l.length){switch(r){case"previous":a===0?c=0:a===-1?c=s:c=a-1;break;case"next":a>-1&&a<s&&(c=a+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:l[c]})}}}},{key:"focusOption",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,l=this.state.focusedOption,u=this.getFocusableOptions();if(u.length){var a=0,s=u.indexOf(l);l||(s=-1),r==="up"?a=s>0?s-1:u.length-1:r==="down"?a=(s+1)%u.length:r==="pageup"?(a=s-o,a<0&&(a=0)):r==="pagedown"?(a=s+o,a>u.length-1&&(a=u.length-1)):r==="last"&&(a=u.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:u[a],focusedValue:null,focusedOptionId:this.getFocusedOptionId(u[a])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Qt):J(J({},Qt),this.props.theme):Qt}},{key:"getCommonProps",value:function(){var r=this.clearValue,o=this.cx,l=this.getStyles,u=this.getClassNames,a=this.getValue,s=this.selectOption,c=this.setValue,d=this.props,f=d.isMulti,p=d.isRtl,y=d.options,b=this.hasValue();return{clearValue:r,cx:o,getStyles:l,getClassNames:u,getValue:a,hasValue:b,isMulti:f,isRtl:p,options:y,selectOption:s,selectProps:d,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var r=this.state.selectValue;return r.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var r=this.props,o=r.isClearable,l=r.isMulti;return o===void 0?l:o}},{key:"isOptionDisabled",value:function(r,o){return El(this.props,r,o)}},{key:"isOptionSelected",value:function(r,o){return kl(this.props,r,o)}},{key:"filterOption",value:function(r,o){return Fl(this.props,r,o)}},{key:"formatOptionLabel",value:function(r,o){if(typeof this.props.formatOptionLabel=="function"){var l=this.props.inputValue,u=this.state.selectValue;return this.props.formatOptionLabel(r,{context:o,inputValue:l,selectValue:u})}else return this.getOptionLabel(r)}},{key:"formatGroupLabel",value:function(r){return this.props.formatGroupLabel(r)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var r=this.props,o=r.isDisabled,l=r.isSearchable,u=r.inputId,a=r.inputValue,s=r.tabIndex,c=r.form,d=r.menuIsOpen,f=r.required,p=this.getComponents(),y=p.Input,b=this.state,x=b.inputIsHidden,I=b.ariaSelection,S=this.commonProps,A=u||this.getElementId("input"),E=J(J(J({"aria-autocomplete":"list","aria-expanded":d,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":f,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!l&&{"aria-readonly":!0}),this.hasValue()?(I==null?void 0:I.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return l?ce.createElement(y,q({},S,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:A,innerRef:this.getInputRef,isDisabled:o,isHidden:x,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:c,type:"text",value:a},E)):ce.createElement(gg,q({id:A,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:wn,onFocus:this.onInputFocus,disabled:o,tabIndex:s,inputMode:"none",form:c,value:""},E))}},{key:"renderPlaceholderOrValue",value:function(){var r=this,o=this.getComponents(),l=o.MultiValue,u=o.MultiValueContainer,a=o.MultiValueLabel,s=o.MultiValueRemove,c=o.SingleValue,d=o.Placeholder,f=this.commonProps,p=this.props,y=p.controlShouldRenderValue,b=p.isDisabled,x=p.isMulti,I=p.inputValue,S=p.placeholder,A=this.state,E=A.selectValue,k=A.focusedValue,C=A.isFocused;if(!this.hasValue()||!y)return I?null:ce.createElement(d,q({},f,{key:"placeholder",isDisabled:b,isFocused:C,innerProps:{id:this.getElementId("placeholder")}}),S);if(x)return E.map(function(V,D){var O=V===k,N="".concat(r.getOptionLabel(V),"-").concat(r.getOptionValue(V));return ce.createElement(l,q({},f,{components:{Container:u,Label:a,Remove:s},isFocused:O,isDisabled:b,key:N,index:D,removeProps:{onClick:function(){return r.removeValue(V)},onTouchEnd:function(){return r.removeValue(V)},onMouseDown:function($){$.preventDefault()}},data:V}),r.formatOptionLabel(V,"value"))});if(I)return null;var M=E[0];return ce.createElement(c,q({},f,{data:M,isDisabled:b}),this.formatOptionLabel(M,"value"))}},{key:"renderClearIndicator",value:function(){var r=this.getComponents(),o=r.ClearIndicator,l=this.commonProps,u=this.props,a=u.isDisabled,s=u.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||a||!this.hasValue()||s)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return ce.createElement(o,q({},l,{innerProps:d,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var r=this.getComponents(),o=r.LoadingIndicator,l=this.commonProps,u=this.props,a=u.isDisabled,s=u.isLoading,c=this.state.isFocused;if(!o||!s)return null;var d={"aria-hidden":"true"};return ce.createElement(o,q({},l,{innerProps:d,isDisabled:a,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var r=this.getComponents(),o=r.DropdownIndicator,l=r.IndicatorSeparator;if(!o||!l)return null;var u=this.commonProps,a=this.props.isDisabled,s=this.state.isFocused;return ce.createElement(l,q({},u,{isDisabled:a,isFocused:s}))}},{key:"renderDropdownIndicator",value:function(){var r=this.getComponents(),o=r.DropdownIndicator;if(!o)return null;var l=this.commonProps,u=this.props.isDisabled,a=this.state.isFocused,s={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return ce.createElement(o,q({},l,{innerProps:s,isDisabled:u,isFocused:a}))}},{key:"renderMenu",value:function(){var r=this,o=this.getComponents(),l=o.Group,u=o.GroupHeading,a=o.Menu,s=o.MenuList,c=o.MenuPortal,d=o.LoadingMessage,f=o.NoOptionsMessage,p=o.Option,y=this.commonProps,b=this.state.focusedOption,x=this.props,I=x.captureMenuScroll,S=x.inputValue,A=x.isLoading,E=x.loadingMessage,k=x.minMenuHeight,C=x.maxMenuHeight,M=x.menuIsOpen,V=x.menuPlacement,D=x.menuPosition,O=x.menuPortalTarget,N=x.menuShouldBlockScroll,T=x.menuShouldScrollIntoView,$=x.noOptionsMessage,ne=x.onMenuScrollToTop,X=x.onMenuScrollToBottom;if(!M)return null;var Z=function(h,se){var U=h.type,ae=h.data,xe=h.isDisabled,de=h.isSelected,Ee=h.label,Me=h.value,We=b===ae,Re=xe?void 0:function(){return r.onOptionHover(ae)},ft=xe?void 0:function(){return r.selectOption(ae)},tt="".concat(r.getElementId("option"),"-").concat(se),gt={id:tt,onClick:ft,onMouseMove:Re,onMouseOver:Re,tabIndex:-1,role:"option","aria-selected":r.isAppleDevice?void 0:de};return ce.createElement(p,q({},y,{innerProps:gt,data:ae,isDisabled:xe,isSelected:de,key:tt,label:Ee,type:U,value:Me,isFocused:We,innerRef:We?r.getFocusedOptionRef:void 0}),r.formatOptionLabel(h.data,"menu"))},oe;if(this.hasOptions())oe=this.getCategorizedOptions().map(function(le){if(le.type==="group"){var h=le.data,se=le.options,U=le.index,ae="".concat(r.getElementId("group"),"-").concat(U),xe="".concat(ae,"-heading");return ce.createElement(l,q({},y,{key:ae,data:h,options:se,Heading:u,headingProps:{id:xe,data:le.data},label:r.formatGroupLabel(le.data)}),le.options.map(function(de){return Z(de,"".concat(U,"-").concat(de.index))}))}else if(le.type==="option")return Z(le,"".concat(le.index))});else if(A){var re=E({inputValue:S});if(re===null)return null;oe=ce.createElement(d,y,re)}else{var fe=$({inputValue:S});if(fe===null)return null;oe=ce.createElement(f,y,fe)}var m={minMenuHeight:k,maxMenuHeight:C,menuPlacement:V,menuPosition:D,menuShouldScrollIntoView:T},be=ce.createElement(Zd,q({},y,m),function(le){var h=le.ref,se=le.placerProps,U=se.placement,ae=se.maxHeight;return ce.createElement(a,q({},y,m,{innerRef:h,innerProps:{onMouseDown:r.onMenuMouseDown,onMouseMove:r.onMenuMouseMove},isLoading:A,placement:U}),ce.createElement(Cg,{captureEnabled:I,onTopArrive:ne,onBottomArrive:X,lockEnabled:N},function(xe){return ce.createElement(s,q({},y,{innerRef:function(Ee){r.getMenuListRef(Ee),xe(Ee)},innerProps:{role:"listbox","aria-multiselectable":y.isMulti,id:r.getElementId("listbox")},isLoading:A,maxHeight:ae,focusedOption:b}),oe)}))});return O||D==="fixed"?ce.createElement(c,q({},y,{appendTo:O,controlElement:this.controlRef,menuPlacement:V,menuPosition:D}),be):be}},{key:"renderFormField",value:function(){var r=this,o=this.props,l=o.delimiter,u=o.isDisabled,a=o.isMulti,s=o.name,c=o.required,d=this.state.selectValue;if(c&&!this.hasValue()&&!u)return ce.createElement(Sg,{name:s,onFocus:this.onValueInputFocus});if(!(!s||u))if(a)if(l){var f=d.map(function(b){return r.getOptionValue(b)}).join(l);return ce.createElement("input",{name:s,type:"hidden",value:f})}else{var p=d.length>0?d.map(function(b,x){return ce.createElement("input",{key:"i-".concat(x),name:s,type:"hidden",value:r.getOptionValue(b)})}):ce.createElement("input",{name:s,type:"hidden",value:""});return ce.createElement("div",null,p)}else{var y=d[0]?this.getOptionValue(d[0]):"";return ce.createElement("input",{name:s,type:"hidden",value:y})}}},{key:"renderLiveRegion",value:function(){var r=this.commonProps,o=this.state,l=o.ariaSelection,u=o.focusedOption,a=o.focusedValue,s=o.isFocused,c=o.selectValue,d=this.getFocusableOptions();return ce.createElement(ug,q({},r,{id:this.getElementId("live-region"),ariaSelection:l,focusedOption:u,focusedValue:a,isFocused:s,selectValue:c,focusableOptions:d,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var r=this.getComponents(),o=r.Control,l=r.IndicatorsContainer,u=r.SelectContainer,a=r.ValueContainer,s=this.props,c=s.className,d=s.id,f=s.isDisabled,p=s.menuIsOpen,y=this.state.isFocused,b=this.commonProps=this.getCommonProps();return ce.createElement(u,q({},b,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:y}),this.renderLiveRegion(),ce.createElement(o,q({},b,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:y,menuIsOpen:p}),ce.createElement(a,q({},b,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),ce.createElement(l,q({},b,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(r,o){var l=o.prevProps,u=o.clearFocusValueOnUpdate,a=o.inputIsHiddenAfterUpdate,s=o.ariaSelection,c=o.isFocused,d=o.prevWasFocused,f=o.instancePrefix,p=r.options,y=r.value,b=r.menuIsOpen,x=r.inputValue,I=r.isMulti,S=Sn(y),A={};if(l&&(y!==l.value||p!==l.options||b!==l.menuIsOpen||x!==l.inputValue)){var E=b?Xg(r,S):[],k=b?Al(Pn(r,S),"".concat(f,"-option")):[],C=u?zg(o,S):null,M=Hg(o,E),V=Rr(k,M);A={selectValue:S,focusedOption:M,focusedOptionId:V,focusableOptionsWithIds:k,focusedValue:C,clearFocusValueOnUpdate:!1}}var D=a!=null&&r!==l?{inputIsHidden:a,inputIsHiddenAfterUpdate:void 0}:{},O=s,N=c&&d;return c&&!N&&(O={value:Ut(I,S,S[0]||null),options:S,action:"initial-input-focus"},N=!d),(s==null?void 0:s.action)==="initial-input-focus"&&(O=null),J(J(J({},A),D),{},{prevProps:r,ariaSelection:O,prevWasFocused:N})}}]),n}(F.Component);Xr.defaultProps=Rg;var Zg=F.forwardRef(function(e,t){var n=Oo(e);return ce.createElement(Xr,q({ref:t},n))}),Vn=Zg;const jg=Qt,On={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},boxShadow:{button:"rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px -1px",card:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",dropdown:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",input:"0 1px 2px 0 rgb(0 0 0 / 0.05)"},spacing:{baseUnit:4,controlHeight:32,menuGutter:8}},Bl={colors:{},spacing:{baseUnit:4,controlHeight:32,menuGutter:8},boxShadow:{button:"none",input:"none",card:"none",dropdown:"none"}};function Pl(e){if(!e)return Qt;const t=typeof e=="function"?e(On):e,{colors:n,spacing:i,borderRadius:r}=Nn(jg,t);return{borderRadius:r,colors:n,spacing:i}}function Nn(e,...t){const n={borderRadius:e.borderRadius,colors:{...e.colors},spacing:{...e.spacing},boxShadow:{...e.boxShadow}};for(const i of t)i&&(n.borderRadius=i.borderRadius??n.borderRadius,Object.assign(n.boxShadow,i.boxShadow),Object.assign(n.colors,i.colors),Object.assign(n.spacing,i.spacing));return n}const Jg=({...e})=>{const[t,n]=F.useState(!1),i={textDecoration:"underline",textUnderlineOffset:"3px",color:"inherit",transition:"opacity 0.2s ease",opacity:t?.7:1};return P.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"2px"},children:[P.jsx("a",{...e,target:"_blank",rel:"noopener noreferrer",style:i,onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1)}),P.jsx("span",{style:{fontSize:"0.7em",opacity:.7},children:"↗"})]})};function Tl(e){const{field:t,markdown:n}=e,{prop:i}=t,{getClassNames:r,getStyles:o,theme:l}=Ge(),u=F.useMemo(()=>({color:l.colors.neutral50,fontWeight:400,fontSize:"0.75rem",gridArea:"description",textWrap:"balance",lineHeight:"1.5"}),[l.colors.neutral50]),a=F.useMemo(()=>({a:Jg}),[]),s=e;return i.type==="app"?P.jsx("p",{className:r("description",s),style:o("description",u,s),children:"Credentials are encrypted."}):i.description?P.jsxs("div",{className:r("description",s),style:o("description",u,s),children:[" ",P.jsx(Eo,{components:a,children:n})]}):null}function Vl(e){const{field:t}=e,{enableDebugging:n,errors:i={},prop:r={}}=t;if(!n||!i[r.name])return null;const o=i[r.name].map(a=>({type:"alert",alertType:"error",content:a,name:r.name})),l={display:"grid",gridTemplateColumns:"max-content"},u=()=>P.jsx(P.Fragment,{children:o.map((a,s)=>P.jsx(mn,{prop:a},s))});return P.jsx("div",{className:"pd-errors",style:l,children:P.jsx(u,{})})}function Ol(e){const{text:t,field:n}=e,{id:i}=n,{getProps:r,theme:o}=Ge(),l={color:o.colors.neutral90,fontWeight:450,gridArea:"label",lineHeight:"1.5"};return P.jsx("label",{htmlFor:i,...r("label",l,e),children:t})}const Yg=e=>{const{onChange:t}=e,{getProps:n,theme:i}=Ge(),r={backgroundColor:i.colors.primary,borderRadius:i.borderRadius,border:"solid 1px",borderColor:i.colors.primary25,color:i.colors.primary25,padding:"0.5rem",fontSize:"0.8125rem",fontWeight:"450",gridArea:"control",cursor:"pointer",width:"100%"};return P.jsx("button",{onClick:t,type:"button",...n("loadMoreButton",r,e),children:"Load More"})},Nl=e=>{const{prop:t,enabled:n,onClick:i}=e,{getProps:r,theme:o}=Ge(),l={color:o.colors.neutral60,display:"inline-flex",alignItems:"center",padding:`${o.spacing.baseUnit}px ${o.spacing.baseUnit*1.5}px ${o.spacing.baseUnit}px ${o.spacing.baseUnit*2.5}px`,border:`1px solid ${o.colors.neutral30}`,borderRadius:o.borderRadius,cursor:"pointer",fontSize:"0.8125rem",fontWeight:450,gap:o.spacing.baseUnit*2,textWrap:"nowrap"};return P.jsxs("button",{onClick:i,type:"button",...r("optionalFieldButton",l,e),children:[P.jsx("span",{children:n?"-":"+"}),P.jsx("span",{style:{marginRight:8},children:t.label||t.name})]})},Dl={Description:Tl,Errors:Vl,Label:Ol,OptionalFieldButton:Nl,Button:Yg},Dn=F.createContext({classNames:{},classNamePrefix:"",components:{},styles:{},theme:On,unstyled:!1});function _g(){const e=F.useContext(Dn)??{},t=Pl(e.theme??{});function n(){return e.classNamePrefix??""}function i(u){var c;const a=`${(e==null?void 0:e.classNamePrefix)??"pd-"}${u}`,s={...((c=e.classNames)==null?void 0:c[u])??{}};return typeof(s==null?void 0:s.container)=="function"&&(s.container=typeof(s==null?void 0:s.container)=="function"?(...d)=>{var f;return[(f=s==null?void 0:s.container)==null?void 0:f.call(s,...d),a].join(" ")}:()=>a),s}function r(u,a){var s;return{...Bn,...a??{},...((s=e==null?void 0:e.components)==null?void 0:s[u])??{}}}function o(u,a){var c;const s=(c=e.styles)==null?void 0:c[u];return Vg(s??{},a??{})}function l(u,a){return{classNamePrefix:n(),classNames:i(u),components:r(u,a==null?void 0:a.components),styles:o(u,a==null?void 0:a.styles),theme:t}}return{getClassNamePrefix:n,getClassNames:i,getComponents:r,getProps:l,getStyles:o,theme:t}}function Ge(){const e=F.useContext(Dn)??{},t=e.theme,n=e.unstyled?Bl:On,i=typeof t=="function"?Nn(n,t(n)):Nn(n,t);function r(a,s){var f;const c=`${(e==null?void 0:e.classNamePrefix)??"pd-"}${a.toLowerCase()}`,d=(f=e.classNames)==null?void 0:f[a];if(typeof d=="function"){const p=d,y={...s??{},theme:i};return[c,p(y)].filter(Boolean).join(" ")}return[c,d].filter(Boolean).join(" ")}function o(){return{...Dl,...(e==null?void 0:e.components)??{}}}function l(a,s,c){var f;const d=(f=e.styles)==null?void 0:f[a];if(typeof d=="function"){const p=d,y={...c??{},theme:i};return p(s,y)}return d?{...s,...d}:s}function u(a,s,c){return{className:r(a,c),style:l(a,s,c)}}return{getClassNames:r,getComponents:o,getProps:u,getStyles:l,select:_g(),theme:i}}const Ug=({children:e,...t})=>P.jsx(Dn.Provider,{value:t,children:e}),zr=F.createContext(void 0),et=()=>{const e=F.useContext(zr);if(!e)throw new Error("Must be used inside FormFieldContext.Provider");return e},Ll=(e,t)=>{const n=ot(),i={externalUserId:e.external_user_id,app:e.app,oauthAppId:e.oauth_app_id},r=it.useQuery({...t==null?void 0:t.useQueryOpts,queryKey:["accounts",e],queryFn:async()=>(await n.accounts.list(i)).data});return{...r,accounts:r.data||[]}},qg=e=>P.jsx(Bn.Option,{...e,children:e.data.name});function Ml({app:e}){const t=ot(),{externalUserId:n,oauthAppConfig:i}=Yt(),r=et(),{id:o,prop:l,value:u,onChange:a}=r,{getProps:s,select:c,theme:d}=Ge(),f={color:d.colors.neutral60,gridArea:"control"},p={backgroundColor:d.colors.primary,borderRadius:d.borderRadius,border:"solid 1px",borderColor:d.colors.primary25,color:d.colors.primary25,padding:"0.25rem 0.5rem",gridArea:"control"},y={components:{Option:qg},styles:{control:V=>({...V,gridArea:"control",boxShadow:d.boxShadow.input})}},b=c.getProps("controlAppSelect",y),x=i==null?void 0:i[e.nameSlug],{isLoading:I,accounts:S,refetch:A}=Ll({external_user_id:n,app:e.nameSlug,oauth_app_id:x},{useQueryOpts:{enabled:!!e,suspense:!!e}}),E=async()=>{t.connectAccount({app:l.app,oauthAppId:x,onSuccess:async V=>{await A(),a({authProvisionId:V.id})},onError:()=>{}})},k={id:"_new",name:`Connect new ${e.name} account...`},C=F.useMemo(()=>[...S,k],[S]),M=F.useMemo(()=>{if(u!=null&&u.authProvisionId){for(const V of S)if(u.authProvisionId===V.id)return V}return k},[S,u]);return P.jsx("div",{...s("controlApp",f,{app:e,...r}),children:I?`Loading ${e.name} accounts...`:S.length?P.jsx(Vn,{instanceId:o,value:M,options:C,...b,required:!0,placeholder:`Select ${e.name} account...`,isLoading:I,isClearable:!0,isSearchable:!0,getOptionLabel:V=>V.name??"",getOptionValue:V=>V.id,onChange:V=>{V?V.id==="_new"?E():a({authProvisionId:V.id}):a(void 0)}}):P.jsxs("button",{type:"button",...s("connectButton",p,{app:e,...r}),onClick:()=>E(),children:["Connect ",e.name]})})}const Rl=e=>({color:e.colors.neutral60,border:"1px solid",borderColor:e.colors.neutral20,padding:6,borderRadius:e.borderRadius,boxShadow:e.boxShadow.input,flex:1}),Hr=e=>({color:e.colors.neutral60,display:"inline-flex",alignItems:"center",padding:`${e.spacing.baseUnit}px ${e.spacing.baseUnit*1.5}px ${e.spacing.baseUnit}px ${e.spacing.baseUnit*2.5}px`,border:`1px solid ${e.colors.neutral30}`,borderRadius:e.borderRadius,cursor:"pointer",fontSize:"0.8125rem",fontWeight:450,gap:e.spacing.baseUnit*2,textWrap:"nowrap",backgroundColor:"white"}),Xl=e=>({...Hr(e),flex:"0 0 auto",padding:"6px 8px"}),zl=()=>({gridArea:"control",display:"flex",flexDirection:"column",gap:"0.5rem"}),Hl=()=>({display:"flex",gap:"0.5rem",alignItems:"center"});function Qg(){var A;const e=et(),{onChange:t,prop:n,value:i}=e,{getProps:r,theme:o}=Ge(),l=()=>{if(!i||!Array.isArray(i))return[""];const E=i.map(k=>typeof k=="string"?k:JSON.stringify(k));return E.length>0?E:[""]},[u,a]=F.useState(l);F.useEffect(()=>{a(l())},[i]);const s=E=>{const k=E.filter(C=>C.trim()!=="");if(k.length===0){t(void 0);return}t(k)},c=(E,k)=>{const C=[...u];C[E]=k,a(C),s(C)},d=()=>{const E=[...u,""];a(E)},f=E=>{const k=u.filter((C,M)=>M!==E);a(k.length>0?k:[""]),s(k)},p=zl(),y=Hl(),b=Rl(o),x=Hr(o),I=Xl(o),S=((A=u[u.length-1])==null?void 0:A.trim())||u.length>1;return P.jsxs("div",{...r("controlArray",p,e),children:[u.map((E,k)=>P.jsxs("div",{style:y,children:[P.jsx("input",{type:"text",value:E,onChange:C=>c(k,C.target.value),placeholder:"",style:b,required:!n.optional&&k===0}),u.length>1&&P.jsx("button",{type:"button",onClick:()=>f(k),style:I,"aria-label":"Remove value",children:"×"})]},k)),S&&P.jsxs("button",{type:"button",onClick:d,style:{...x,alignSelf:"flex-start",paddingRight:`${o.spacing.baseUnit*2}px`},children:[P.jsx("span",{children:"+"}),P.jsx("span",{children:"Add more"})]})]})}function Wl(){const e=et(),{id:t,value:n,onChange:i}=e,{getProps:r}=Ge(),o={width:"16px",height:"16px",gridArea:"control",margin:"0 0.5rem 0 0"};return P.jsx("input",{id:t,type:"checkbox",...r("controlBoolean",o,e),checked:n??!1,onChange:l=>i(l.target.checked)})}function Zl(){const e=et(),{id:t,onChange:n,prop:i,value:r}=e,{getProps:o,theme:l}=Ge(),u={color:l.colors.neutral60,display:"block",border:"1px solid",borderColor:l.colors.neutral20,padding:6,width:"100%",borderRadius:l.borderRadius,gridArea:"control",boxShadow:l.boxShadow.input};let a="off",s="text",c=p=>p;switch(i.type){case"string":break;case"integer":s="number",c=p=>p?parseInt(p):void 0;break;default:throw new Error("unexpected prop.type for ControlInput: "+i.type)}"secret"in i&&i.secret&&(s="password",a="new-password");const d=$e(i,"integer")?i.min:void 0,f=$e(i,"integer")?i.max:void 0;return P.jsx("input",{id:t,type:s,name:i.name,value:String(r??""),onChange:p=>n(c(p.target.value)),...o("controlInput",u,e),min:d,max:f,autoComplete:a,"data-lpignore":"true","data-1p-ignore":"true",required:!i.optional})}function $g(){const e=et(),{onChange:t,prop:n,value:i}=e,{getProps:r,theme:o}=Ge(),l=A=>{if(A===null||typeof A!="object"||A instanceof Date||A instanceof Function||A instanceof RegExp)return!1;const E=Object.getPrototypeOf(A);return E===Object.prototype||E===null},u=()=>{if(!i||typeof i!="object"||Array.isArray(i))return[{key:"",value:""}];if(!l(i))return[{key:"",value:""}];const A=Object.entries(i).map(([E,k])=>({key:E,value:typeof k=="string"?k:(()=>{try{return JSON.stringify(k)}catch{return String(k)}})()}));return A.length>0?A:[{key:"",value:""}]},[a,s]=F.useState(u);F.useEffect(()=>{if(!i||typeof i!="object"||Array.isArray(i)){s([{key:"",value:""}]);return}if(!l(i)){s([{key:"",value:""}]);return}const A=Object.entries(i).map(([E,k])=>({key:E,value:typeof k=="string"?k:(()=>{try{return JSON.stringify(k)}catch{return String(k)}})()}));s(A.length>0?A:[{key:"",value:""}])},[i]);const c=A=>{const E=A.filter(C=>C.key.trim()!=="");if(E.length===0){t(void 0);return}const k={};E.forEach(C=>{if(C.key.trim())try{k[C.key]=JSON.parse(C.value)}catch{k[C.key]=C.value}}),t(k)},d=(A,E,k)=>{const C=[...a];C[A]={...C[A],[E]:k},s(C),c(C)},f=()=>{const A=[...a,{key:"",value:""}];s(A)},p=A=>{const E=a.filter((k,C)=>C!==A);s(E.length>0?E:[{key:"",value:""}]),c(E)},y=zl(),b=Hl(),x=Rl(o),I=Hr(o),S=Xl(o);return P.jsxs("div",{...r("controlObject",y,e),children:[a.map((A,E)=>P.jsxs("div",{style:b,children:[P.jsx("input",{type:"text",value:A.key,onChange:k=>d(E,"key",k.target.value),placeholder:"Key",style:x,required:!n.optional&&E===0}),P.jsx("input",{type:"text",value:A.value,onChange:k=>d(E,"value",k.target.value),placeholder:"Value",style:x}),a.length>1&&P.jsx("button",{type:"button",onClick:()=>p(E),style:S,"aria-label":"Remove pair",children:"×"})]},E)),P.jsxs("button",{type:"button",onClick:f,style:{...I,alignSelf:"flex-start",paddingRight:`${o.spacing.baseUnit*2}px`},children:[P.jsx("span",{children:"+"}),P.jsx("span",{children:"Add more"})]})]})}var Kg=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],jl=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=String(t).toLowerCase(),o=String(i.getOptionValue(n)).toLowerCase(),l=String(i.getOptionLabel(n)).toLowerCase();return o===r||l===r},Wr={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,n,i,r){return!(!t||n.some(function(o){return jl(t,o,r)})||i.some(function(o){return jl(t,o,r)}))},getNewOptionData:function(t,n){return{label:n,value:t,__isNew__:!0}}};function eh(e){var t=e.allowCreateWhileLoading,n=t===void 0?!1:t,i=e.createOptionPosition,r=i===void 0?"last":i,o=e.formatCreateLabel,l=o===void 0?Wr.formatCreateLabel:o,u=e.isValidNewOption,a=u===void 0?Wr.isValidNewOption:u,s=e.getNewOptionData,c=s===void 0?Wr.getNewOptionData:s,d=e.onCreateOption,f=e.options,p=f===void 0?[]:f,y=e.onChange,b=Ke(e,Kg),x=b.getOptionValue,I=x===void 0?Il:x,S=b.getOptionLabel,A=S===void 0?yl:S,E=b.inputValue,k=b.isLoading,C=b.isMulti,M=b.value,V=b.name,D=F.useMemo(function(){return a(E,Sn(M),p,{getOptionValue:I,getOptionLabel:A})?c(E,l(E)):void 0},[l,c,A,I,E,a,p,M]),O=F.useMemo(function(){return(n||!k)&&D?r==="first"?[D].concat(Nt(p)):[].concat(Nt(p),[D]):p},[n,r,k,D,p]),N=F.useCallback(function(T,$){if($.action!=="select-option")return y(T,$);var ne=Array.isArray(T)?T:[T];if(ne[ne.length-1]===D){if(d)d(E);else{var X=c(E,E),Z={action:"create-option",name:V,option:X};y(Ut(C,[].concat(Nt(Sn(M)),[X]),X),Z)}return}y(T,$)},[c,E,C,V,D,d,y,M]);return J(J({},b),{},{options:O,onChange:N})}var th=F.forwardRef(function(e,t){var n=Oo(e),i=eh(n);return ce.createElement(Xr,q({ref:t},i))}),nh=th;function Ln({isCreatable:e,options:t,selectProps:n,showLoadMoreButton:i,onLoadMore:r,components:o}){const l=et(),{id:u,prop:a,value:s,onChange:c}=l,{select:d,theme:f}=Ge(),[p,y]=F.useState(t),[b,x]=F.useState(s);F.useEffect(()=>{const D=t.map(Oe);y(D)},[t]),F.useEffect(()=>{x(s)},[s]);const I={styles:{container:D=>({...D,gridArea:"control",boxShadow:f.boxShadow.input})}},S=F.useMemo(()=>{if(b==null)return null;if(Array.isArray(b)){if(!Ar(b[0]))return b.map(D=>p.find(O=>O.value===D)||Oe(D))}else{if(b&&typeof b=="object"&&"__lv"in b)return Oe(b.__lv);if(!Ar(b))if((p==null?void 0:p[0])&&Ar(p[0])){for(const O of p)if(O.value===b)return O}else return Oe(b)}return null},[b,p]),A=d.getProps("controlSelect",I);({...A.components,...o});const E=D=>{const O=Oe(D);let N=O;const T=p.map(Oe),$=[O,...T];y($),a.type.endsWith("[]")&&(Array.isArray(b)?N=[...b.map(Oe),O]:N=[O]),x(N),k(N)},k=D=>{if(D)if(Array.isArray(D))typeof D[0]=="object"&&D[0]&&"value"in D[0]?c({__lv:D}):c(D);else if(typeof D=="object"&&D&&"value"in D)c({__lv:D});else throw new Error("unhandled option type");else c(void 0)},C={onCreateOption:a.remoteOptions?E:void 0},M=e?nh:Vn,V=p.map(Oe);return P.jsx(M,{inputId:u,instanceId:u,options:V,value:S,isMulti:a.type.endsWith("[]"),isClearable:!0,required:!a.optional,getOptionLabel:D=>Oe(D).label,getOptionValue:D=>String(Oe(D).value),onChange:k,...A,...n,...C})}const rh=e=>typeof e=="object"&&e!==null&&"query"in e&&typeof e.query=="string";function Jl(){var d;const e=et(),{id:t,onChange:n,prop:i,value:r}=e;if(!$e(i,"sql"))throw new Error("ControlSql used with non-sql prop");const{getProps:o,theme:l}=Ge(),u=((d=i.auth)==null?void 0:d.app)||"postgresql";let a="";rh(r)?a=r.query:typeof r=="string"&&(a=r);const s=f=>{n({app:u,query:f,params:[]})},c={color:l.colors.neutral60,display:"block",border:"1px solid",borderColor:l.colors.neutral20,padding:6,width:"100%",borderRadius:l.borderRadius,gridArea:"control",boxShadow:l.boxShadow.input,fontSize:"0.875rem",fontFamily:"monospace",minHeight:"120px",resize:"vertical"};return P.jsx("textarea",{id:t,name:i.name,value:a,onChange:f=>s(f.target.value),placeholder:"SELECT * FROM table_name",required:!i.optional,...o("controlSql",c,e)})}function Yl({queryEnabled:e}){const t=ot(),{externalUserId:n,component:i,configurableProps:r,configuredProps:o,dynamicProps:l,props:{disableQueryDisabling:u}}=Yt(),{idx:a,prop:s}=et(),[c,d]=F.useState(""),[f,p]=F.useState(0),[y,b]=F.useState(!0),[x,I]=F.useState(void 0),[S,A]=F.useState({page:0,prevContext:{},data:[],values:new Set}),E={};for(let X=0;X<a;X++){const Z=r[X];E[Z.name]=o[Z.name]}const k={externalUserId:n,page:f,prevContext:x,id:i.key,propName:s.name,configuredProps:E,dynamicPropsId:l==null?void 0:l.id};s.useQuery&&(k.query=c||"");const C={...k};delete C.dynamicPropsId;const[M,V]=F.useState(),D=()=>{p(S.page),I(S.prevContext),A({...S,prevContext:{}})},{isFetching:O,refetch:N}=it.useQuery({queryKey:["componentConfigure",C],queryFn:async()=>{V(void 0);const X=await t.components.configureProp(k),{options:Z,stringOptions:oe,errors:re}=X;if(re!=null&&re.length){try{V(JSON.parse(re[0]))}catch{V({name:"Error",message:re[0]})}return[]}let fe=[];if(Z!=null&&Z.length&&(fe=Z),oe!=null&&oe.length){const h=[];for(const se of oe)h.push({label:se,value:se});fe=h}const m=[],be=new Set(S.values);for(const h of fe||[]){let se;if(qp(h))se=h;else if(h&&typeof h=="object"&&"value"in h&&h.value!=null)se=h.value;else{console.warn("Skipping invalid option:",h);continue}be.has(se)||(be.add(se),m.push(h))}let le=S.data;return m.length?(le=[...S.data,...m],A({page:f+1,prevContext:X.context,data:le,values:be})):b(!1),le},enabled:!!e}),T=()=>!O&&!M&&y,$=M?M.message:u?"Click to configure":e?void 0:"Configure props above first",ne=u?!1:!e;return P.jsx(Ln,{isCreatable:!0,showLoadMoreButton:T(),onLoadMore:D,options:S.data.map(Oe),selectProps:{isLoading:O,placeholder:$,isDisabled:ne,inputValue:s.useQuery?c:void 0,onInputChange(X){s.useQuery&&(d(X),N())},onMenuOpen(){u&&!e&&N()}}})}function _l(e){const{field:t,form:n}=e,{queryDisabledIdx:i}=n,{prop:r,idx:o}=t,l="app"in t.extra?t.extra.app:void 0;if(r.remoteOptions||r.type==="$.discord.channel"||r.type==="$.discord.channel[]")return P.jsx(Yl,{queryEnabled:i==null||i>=o});if("options"in r&&Array.isArray(r.options)&&r.options.length>0){const u=r.options.map(Oe);return P.jsx(Ln,{options:u,components:{IndicatorSeparator:()=>null}})}if(r.type.endsWith("[][]"))throw new Error("Unsupported property type: "+r.type);if(r.type.endsWith("[]"))return!("options"in r)||!r.options?P.jsx(Qg,{}):P.jsx(Ln,{isCreatable:!0,options:[],components:{IndicatorSeparator:()=>null}});switch(r.type){case"app":return P.jsx(Ml,{app:l});case"boolean":return P.jsx(Wl,{});case"string":case"integer":return P.jsx(Zl,{});case"object":return P.jsx($g,{});case"sql":return P.jsx(Jl,{});default:throw new Error("Unsupported property type: "+r.type)}}function Ul(e){const{form:t,field:n}=e,{prop:i}=n,{getProps:r,getComponents:o}=Ge(),l={display:"grid",gridTemplateAreas:n.prop.type=="boolean"?'"control label" "description description" "error error"':'"label label" "control control" "description description" "error error"',gridTemplateColumns:"min-content auto",gap:"0.25rem 0",alignItems:"center",fontSize:"0.875rem"},{Label:u,Description:a,Errors:s}=o(),c="app"in n.extra?n.extra.app:void 0;if(c&&!c.authType)return null;let d=i.label||i.name;c&&(d=`Connect ${c.name} account`);const f=e;return P.jsxs("div",{...r("field",l,f),children:[P.jsx(u,{text:d,field:n,form:t}),P.jsx(_l,{field:n,form:t}),P.jsx(a,{markdown:i.description,field:n,form:t}),P.jsx(s,{field:n,form:t})]})}const ql=(e,t)=>{var r;const n=ot(),i=it.useQuery({queryKey:["app",e],queryFn:()=>n.apps.retrieve(e),...t==null?void 0:t.useQueryOpts});return{...i,app:(r=i.data)==null?void 0:r.data}};function Ql({prop:e,idx:t}){const n=Yt(),{id:i,configuredProps:r,registerField:o,setConfiguredProp:l,errors:u,enableDebugging:a}=n;let s;$e(e,"app")&&(s=e.app);const{app:c}=ql(s||"",{useQueryOpts:{enabled:!!s,suspense:!!s}}),f={id:`pd${i}${e.name}`,prop:e,idx:t,value:r[e.name],onChange(p){l(t,p)},extra:{app:c},errors:u,enableDebugging:a};return F.useEffect(()=>o(f),[f]),P.jsx(zr.Provider,{value:f,children:P.jsx(Ul,{field:f,form:n})})}class $l extends F.Component{constructor(){super(...arguments),this.state={err:void 0}}static getDerivedStateFromError(t){return{err:t}}render(){const{err:t}=this.state;return t?this.props.fallback(t):this.props.children}}function Kl(e){const{form:t}=e,{propsNeedConfiguring:n,submitting:i}=t,{getProps:r,theme:o}=Ge(),l=u=>{var a;return{width:"fit-content",textTransform:"capitalize",backgroundColor:u?o.colors.neutral10:o.colors.primary,color:u?o.colors.neutral40:o.colors.neutral0,padding:`${o.spacing.baseUnit*1.75}px ${o.spacing.baseUnit*16}px`,borderRadius:o.borderRadius,boxShadow:(a=o.boxShadow)==null?void 0:a.button,cursor:"pointer",fontSize:"0.875rem",opacity:i?.5:void 0,margin:"0.5rem 0 0 0"}};return P.jsx("input",{type:"submit",value:i?"Submitting...":"Submit",...r("controlSubmit",l(!!n.length||i),e),disabled:!!n.length||i})}const ih=["ConfigurationError"];function ea(){const e=Yt(),{configurableProps:t,dynamicPropsQueryIsFetching:n,isValid:i,optionalPropIsEnabled:r,optionalPropSetEnabled:o,props:l,setSubmitting:u,sdkErrors:a,submitting:s,enableDebugging:c}=e,d=c||a.filter(O=>ih.includes(O.name)).length>0,{hideOptionalProps:f,onSubmit:p}=l,[y,b]=F.useState([]);F.useEffect(()=>{s?b([]):a&&a.length&&b(a.map(O=>({type:"alert",alertType:"error",content:`# ${O.name}
21
+ ${O.message}`,name:O.name})))},[a,s]);const{getComponents:x,getProps:I,theme:S}=Ge(),{OptionalFieldButton:A}=x(),E={display:"flex",flexDirection:"column",gap:"1.5rem"},k={display:"flex",flexWrap:"wrap",gap:"0.375rem"},C={fontWeight:600,textTransform:"capitalize",color:S.colors.neutral60,fontSize:"0.875rem",lineHeight:"1.375",margin:"0 0 0.5rem 0"},M=async O=>{if(p&&(O.preventDefault(),i)){u(!0);try{await p(e)}finally{u(!1)}}},V=[],D=[];for(let O=0;O<t.length;O++){const N=t[O];if(!N.hidden&&!Jt.includes(N.type)){if(N.optional){const T=r(N);if(D.push([N,T]),!T)continue}V.push([N,O])}}return P.jsx($l,{fallback:O=>P.jsxs("p",{style:{color:"red"},children:["Error: ",O&&typeof O=="object"&&"message"in O&&typeof O.message=="string"?O.message:"Unknown"]}),children:P.jsx(F.Suspense,{fallback:P.jsx("p",{children:"Loading form..."}),children:P.jsxs("form",{...I("componentForm",E,l),onSubmit:M,children:[V.map(([O,N])=>$e(O,"alert")?P.jsx(mn,{prop:O},O.name):P.jsx(Ql,{prop:O,idx:N},O.name)),n&&P.jsx("p",{children:"Loading dynamic props..."}),!f&&D.length?P.jsxs("div",{children:[P.jsx("div",{...I("heading",C,l),children:"Optional Props"}),P.jsx("div",{...I("optionalFields",k,l),children:D.map(([O,N])=>P.jsx(A,{prop:O,enabled:N,onClick:()=>o(O,!N)},O.name))})]}):null,d&&(y==null?void 0:y.map((O,N)=>P.jsx(mn,{prop:O},N))),p&&P.jsx(Kl,{form:e})]})})})}function ta(e){return P.jsx(Bo,{props:e,children:P.jsx(ea,{})})}const na=({key:e},t)=>{var r;const n=ot(),i=it.useQuery({queryKey:["component",e],queryFn:()=>n.components.retrieve(e),enabled:!!e,...t==null?void 0:t.useQueryOpts});return{...i,component:(r=i.data)==null?void 0:r.data}};function oh(e){const{isLoading:t,error:n,component:i}=na({key:e.componentKey});if(!e.componentKey)throw new Error("componentKey required");return t?P.jsx("p",{children:"Loading..."}):n?P.jsxs("p",{children:["Error: ",n.message]}):i?P.jsx(ta,{component:i,...e}):P.jsx("p",{children:"Component not found"})}function lh(){const e=et(),{id:t,onChange:n,value:i}=e,{getProps:r,theme:o}=Ge(),l={display:"block",gridArea:"control",width:"100%",fontSize:"0.875rem",boxShadow:o.boxShadow.input};let u=i;return typeof u=="object"&&(u=JSON.stringify(u)),P.jsx("textarea",{id:t,value:u,onChange:a=>n(a.target.value),...r("controlAny",l,e)})}const ra=e=>{var i;const t=ot(),n=it.useQuery({queryKey:["apps",e],queryFn:()=>t.apps.list(e)});return{...n,apps:((i=n.data)==null?void 0:i.data)||[]}};function ah({value:e,onChange:t,appsOptions:n}){const[i,r]=F.useState(""),[o,l]=F.useState(""),u=F.useId();F.useEffect(()=>{const p=setTimeout(()=>{l(i)},300);return()=>clearTimeout(p)},[i]);const{isLoading:a,apps:s}=ra({...n??{},q:o}),{Option:c,SingleValue:d}=Bn,f=(s==null?void 0:s.find(p=>p.nameSlug===(e==null?void 0:e.nameSlug)))||(e!=null&&e.nameSlug?e:null);return P.jsx(Vn,{instanceId:u,className:"react-select-container text-sm",classNamePrefix:"react-select",components:{Option:p=>P.jsx(c,{...p,children:P.jsxs("div",{style:{display:"flex",gap:10},children:[P.jsx("img",{src:`https://pipedream.com/s.v0/${p.data.id}/logo/48`,style:{height:24,width:24},alt:p.data.name}),P.jsx("span",{style:{whiteSpace:"nowrap"},children:p.data.name})]})}),SingleValue:p=>P.jsx(d,{...p,children:P.jsxs("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[P.jsx("img",{src:`https://pipedream.com/s.v0/${p.data.id}/logo/48`,style:{height:24,width:24},alt:p.data.name}),P.jsx("span",{style:{whiteSpace:"nowrap"},children:p.data.name})]})}),IndicatorSeparator:()=>null},options:s||[],getOptionLabel:p=>p.name||p.nameSlug,getOptionValue:p=>p.nameSlug,value:f,onChange:p=>t==null?void 0:t(p||void 0),onInputChange:(p,{action:y})=>{y==="input-change"&&r(p)},isLoading:a})}const ia=e=>{var i;const t=ot(),n=it.useQuery({queryKey:["components",e],queryFn:()=>t.components.list(e)});return{...n,components:((i=n.data)==null?void 0:i.data)||[]}};function uh({app:e,componentType:t,value:n,onChange:i}){const r=F.useId(),{isLoading:o,components:l}=ia({app:e==null?void 0:e.nameSlug,componentType:t}),u=(l==null?void 0:l.find(a=>a.key===(n==null?void 0:n.key)))||null;return P.jsx(Vn,{instanceId:r,className:"react-select-container text-sm",classNamePrefix:"react-select",options:l,getOptionLabel:a=>a.name||a.key,getOptionValue:a=>a.key,value:u,onChange:a=>i==null?void 0:i(a||void 0),isLoading:o,components:{IndicatorSeparator:()=>null}})}const sh={buildTime:new Date().toISOString(),source:"local-development"};Y.Alert=mn,Y.ComponentForm=ta,Y.ComponentFormContainer=oh,Y.Control=_l,Y.ControlAny=lh,Y.ControlApp=Ml,Y.ControlBoolean=Wl,Y.ControlInput=Zl,Y.ControlSelect=Ln,Y.ControlSql=Jl,Y.ControlSubmit=Kl,Y.CustomizationContext=Dn,Y.CustomizeProvider=Ug,Y.DEBUG_INFO=sh,Y.Description=Tl,Y.ErrorBoundary=$l,Y.Errors=Vl,Y.Field=Ul,Y.FormContext=wr,Y.FormContextProvider=Bo,Y.FormFieldContext=zr,Y.FrontendClientProvider=zp,Y.InternalComponentForm=ea,Y.InternalField=Ql,Y.Label=Ol,Y.OptionalFieldButton=Nl,Y.RemoteOptionsContainer=Yl,Y.SelectApp=ah,Y.SelectComponent=uh,Y.defaultComponents=Dl,Y.defaultTheme=On,Y.getReactSelectTheme=Pl,Y.mergeTheme=Nn,Y.skippablePropTypes=Jt,Y.unstyledTheme=Bl,Y.useAccounts=Ll,Y.useApp=ql,Y.useApps=ra,Y.useComponent=na,Y.useComponents=ia,Y.useCustomize=Ge,Y.useFormContext=Yt,Y.useFormFieldContext=et,Y.useFrontendClient=ot,Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"})});