@pipedream/connect-react 1.0.0-preview.28 → 1.0.0-preview.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/connect-react.es.js +2606 -2608
- package/dist/connect-react.umd.d.ts +1 -1
- package/dist/connect-react.umd.js +22 -22
- package/package.json +1 -1
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
(function(ue,$){typeof exports=="object"&&typeof module<"u"?$(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"],$):(ue=typeof globalThis<"u"?globalThis:ue||self,$(ue["connect-react"]={},ue["react/jsx-runtime"],ue.React,ue["@emotion/react"],ue.ReactDOM))})(this,function(ue,$,X,ce,Hs){"use strict";var pm=ue=>{throw TypeError(ue)};var Tc=(ue,$,X)=>$.has(ue)||pm("Cannot "+X);var T=(ue,$,X)=>(Tc(ue,$,"read from private field"),X?X.call(ue):$.get(ue)),Se=(ue,$,X)=>$.has(ue)?pm("Cannot add the same private member more than once"):$ instanceof WeakSet?$.add(ue):$.set(ue,X),ae=(ue,$,X,ce)=>(Tc(ue,$,"write to private field"),ce?ce.call(ue,X):$.set(ue,X),X),Je=(ue,$,X)=>(Tc(ue,$,"access private method"),X);var Xs=(ue,$,X,ce)=>({set _(Hs){ae(ue,$,Hs,X)},get _(){return T(ue,$,ce)}});var jr,wr,wi,op,Si,Sr,Ei,sp,Ur,lp,Fi,Pi,Sn,Vt,Iu,Qr,Mn,Cr,ap,Qn,cp,qn,Ht,qr,$n,Wr,fp,dn,Cu,dp,bt,Er,Fr,Oi,Ti,Pr,_i,Bi,hp,en,Xe,xu,zt,$r,Gi,Or,Kn,Au,Ri,ki,Kr,ei,Tr,Li,qe,Uu,_c,Bc,Gc,Rc,kc,Lc,Dc,gm,pp;function mm(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const u=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,u.get?u:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Fe=mm(X);typeof document>"u"&&(globalThis.document={createElement:()=>{}});function aP(){}function cP(){}function bm(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const vm=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ym=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Im={};function Mc(e,t){return(Im.jsx?ym:vm).test(e)}const Cm=/[ \t\n\f\r]/g;function xm(e){return typeof e=="object"?e.type==="text"?Nc(e.value):!1:Nc(e)}function Nc(e){return e.replace(Cm,"")===""}class iu{constructor(t,r,u){this.property=t,this.normal=r,u&&(this.space=u)}}iu.prototype.property={},iu.prototype.normal={},iu.prototype.space=null;function Vc(e,t){const r={},u={};let o=-1;for(;++o<e.length;)Object.assign(r,e[o].property),Object.assign(u,e[o].normal);return new iu(r,u,t)}function zs(e){return e.toLowerCase()}class xn{constructor(t,r){this.property=t,this.attribute=r}}xn.prototype.space=null,xn.prototype.boolean=!1,xn.prototype.booleanish=!1,xn.prototype.overloadedBoolean=!1,xn.prototype.number=!1,xn.prototype.commaSeparated=!1,xn.prototype.spaceSeparated=!1,xn.prototype.commaOrSpaceSeparated=!1,xn.prototype.mustUseProperty=!1,xn.prototype.defined=!1;let Am=0;const _e=Xr(),St=Xr(),Wc=Xr(),te=Xr(),at=Xr(),mi=Xr(),an=Xr();function Xr(){return 2**++Am}const Zs=Object.freeze(Object.defineProperty({__proto__:null,boolean:_e,booleanish:St,commaOrSpaceSeparated:an,commaSeparated:mi,number:te,overloadedBoolean:Wc,spaceSeparated:at},Symbol.toStringTag,{value:"Module"})),Ys=Object.keys(Zs);class Js extends xn{constructor(t,r,u,o){let l=-1;if(super(t,r),Xc(this,"space",o),typeof u=="number")for(;++l<Ys.length;){const a=Ys[l];Xc(this,Ys[l],(u&Zs[a])===Zs[a])}}}Js.prototype.defined=!0;function Xc(e,t,r){r&&(e[t]=r)}const wm={}.hasOwnProperty;function bi(e){const t={},r={};let u;for(u in e.properties)if(wm.call(e.properties,u)){const o=e.properties[u],l=new Js(u,e.transform(e.attributes||{},u),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(u)&&(l.mustUseProperty=!0),t[u]=l,r[zs(u)]=u,r[zs(l.attribute)]=u}return new iu(t,r,e.space)}const Hc=bi({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}}),zc=bi({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Zc(e,t){return t in e?e[t]:t}function Yc(e,t){return Zc(e,t.toLowerCase())}const Jc=bi({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Yc,properties:{xmlns:null,xmlnsXLink:null}}),jc=bi({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:St,ariaAutoComplete:null,ariaBusy:St,ariaChecked:St,ariaColCount:te,ariaColIndex:te,ariaColSpan:te,ariaControls:at,ariaCurrent:null,ariaDescribedBy:at,ariaDetails:null,ariaDisabled:St,ariaDropEffect:at,ariaErrorMessage:null,ariaExpanded:St,ariaFlowTo:at,ariaGrabbed:St,ariaHasPopup:null,ariaHidden:St,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:at,ariaLevel:te,ariaLive:null,ariaModal:St,ariaMultiLine:St,ariaMultiSelectable:St,ariaOrientation:null,ariaOwns:at,ariaPlaceholder:null,ariaPosInSet:te,ariaPressed:St,ariaReadOnly:St,ariaRelevant:null,ariaRequired:St,ariaRoleDescription:at,ariaRowCount:te,ariaRowIndex:te,ariaRowSpan:te,ariaSelected:St,ariaSetSize:te,ariaSort:null,ariaValueMax:te,ariaValueMin:te,ariaValueNow:te,ariaValueText:null,role:null}}),Sm=bi({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Yc,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:mi,acceptCharset:at,accessKey:at,action:null,allow:null,allowFullScreen:_e,allowPaymentRequest:_e,allowUserMedia:_e,alt:null,as:null,async:_e,autoCapitalize:null,autoComplete:at,autoFocus:_e,autoPlay:_e,blocking:at,capture:null,charSet:null,checked:_e,cite:null,className:at,cols:te,colSpan:null,content:null,contentEditable:St,controls:_e,controlsList:at,coords:te|mi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:_e,defer:_e,dir:null,dirName:null,disabled:_e,download:Wc,draggable:St,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:_e,formTarget:null,headers:at,height:te,hidden:_e,high:te,href:null,hrefLang:null,htmlFor:at,httpEquiv:at,id:null,imageSizes:null,imageSrcSet:null,inert:_e,inputMode:null,integrity:null,is:null,isMap:_e,itemId:null,itemProp:at,itemRef:at,itemScope:_e,itemType:at,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:_e,low:te,manifest:null,max:null,maxLength:te,media:null,method:null,min:null,minLength:te,multiple:_e,muted:_e,name:null,nonce:null,noModule:_e,noValidate:_e,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:_e,optimum:te,pattern:null,ping:at,placeholder:null,playsInline:_e,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:_e,referrerPolicy:null,rel:at,required:_e,reversed:_e,rows:te,rowSpan:te,sandbox:at,scope:null,scoped:_e,seamless:_e,selected:_e,shadowRootClonable:_e,shadowRootDelegatesFocus:_e,shadowRootMode:null,shape:null,size:te,sizes:null,slot:null,span:te,spellCheck:St,src:null,srcDoc:null,srcLang:null,srcSet:null,start:te,step:null,style:null,tabIndex:te,target:null,title:null,translate:null,type:null,typeMustMatch:_e,useMap:null,value:St,width:te,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:at,axis:null,background:null,bgColor:null,border:te,borderColor:null,bottomMargin:te,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:_e,declare:_e,event:null,face:null,frame:null,frameBorder:null,hSpace:te,leftMargin:te,link:null,longDesc:null,lowSrc:null,marginHeight:te,marginWidth:te,noResize:_e,noHref:_e,noShade:_e,noWrap:_e,object:null,profile:null,prompt:null,rev:null,rightMargin:te,rules:null,scheme:null,scrolling:St,standby:null,summary:null,text:null,topMargin:te,valueType:null,version:null,vAlign:null,vLink:null,vSpace:te,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:_e,disableRemotePlayback:_e,prefix:null,property:null,results:te,security:null,unselectable:null}}),Em=bi({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:Zc,properties:{about:an,accentHeight:te,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:te,amplitude:te,arabicForm:null,ascent:te,attributeName:null,attributeType:null,azimuth:te,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:te,by:null,calcMode:null,capHeight:te,className:at,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:te,diffuseConstant:te,direction:null,display:null,dur:null,divisor:te,dominantBaseline:null,download:_e,dx:null,dy:null,edgeMode:null,editable:null,elevation:te,enableBackground:null,end:null,event:null,exponent:te,externalResourcesRequired:null,fill:null,fillOpacity:te,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:mi,g2:mi,glyphName:mi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:te,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:te,horizOriginX:te,horizOriginY:te,id:null,ideographic:te,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:te,k:te,k1:te,k2:te,k3:te,k4:te,kernelMatrix:an,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:te,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:te,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:te,overlineThickness:te,paintOrder:null,panose1:null,path:null,pathLength:te,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:at,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:te,pointsAtY:te,pointsAtZ:te,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:an,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:an,rev:an,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:an,requiredFeatures:an,requiredFonts:an,requiredFormats:an,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:te,specularExponent:te,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:te,strikethroughThickness:te,string:null,stroke:null,strokeDashArray:an,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:te,strokeOpacity:te,strokeWidth:null,style:null,surfaceScale:te,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:an,tabIndex:te,tableValues:null,target:null,targetX:te,targetY:te,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:an,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:te,underlineThickness:te,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:te,values:null,vAlphabetic:te,vMathematical:te,vectorEffect:null,vHanging:te,vIdeographic:te,version:null,vertAdvY:te,vertOriginX:te,vertOriginY:te,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:te,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Fm=/^data[-\w.:]+$/i,Uc=/-[a-z]/g,Pm=/[A-Z]/g;function Om(e,t){const r=zs(t);let u=t,o=xn;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Fm.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(Uc,_m);u="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!Uc.test(l)){let a=l.replace(Pm,Tm);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}o=Js}return new o(u,t)}function Tm(e){return"-"+e.toLowerCase()}function _m(e){return e.charAt(1).toUpperCase()}const Bm={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"},Gm=Vc([zc,Hc,Jc,jc,Sm],"html"),js=Vc([zc,Hc,Jc,jc,Em],"svg");function Rm(e){return e.join(" ").trim()}var Ln=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Us(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qc={},qc=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,km=/\n/g,Lm=/^\s*/,Dm=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Mm=/^:\s*/,Nm=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Vm=/^[;\s]*/,Wm=/^\s+|\s+$/g,Xm=`
|
|
2
|
-
`,$c="/",Kc="*",Hr="",Hm="comment",zm="declaration",Zm=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,u=1;function o(S){var A=S.match(km);A&&(r+=A.length);var F=S.lastIndexOf(Xm);u=~F?S.length-F:u+S.length}function l(){var S={line:r,column:u};return function(A){return A.position=new a(S),h(),A}}function a(S){this.start=S,this.end={line:r,column:u},this.source=t.source}a.prototype.content=e;function c(S){var A=new Error(t.source+":"+r+":"+u+": "+S);if(A.reason=S,A.filename=t.source,A.line=r,A.column=u,A.source=e,!t.silent)throw A}function f(S){var A=S.exec(e);if(A){var F=A[0];return o(F),e=e.slice(F.length),A}}function h(){f(Lm)}function p(S){var A;for(S=S||[];A=g();)A!==!1&&S.push(A);return S}function g(){var S=l();if(!($c!=e.charAt(0)||Kc!=e.charAt(1))){for(var A=2;Hr!=e.charAt(A)&&(Kc!=e.charAt(A)||$c!=e.charAt(A+1));)++A;if(A+=2,Hr===e.charAt(A-1))return c("End of comment missing");var F=e.slice(2,A-2);return u+=2,o(F),e=e.slice(A),u+=2,S({type:Hm,comment:F})}}function I(){var S=l(),A=f(Dm);if(A){if(g(),!f(Mm))return c("property missing ':'");var F=f(Nm),P=S({type:zm,property:ef(A[0].replace(qc,Hr)),value:F?ef(F[0].replace(qc,Hr)):Hr});return f(Vm),P}}function b(){var S=[];p(S);for(var A;A=I();)A!==!1&&(S.push(A),p(S));return S}return h(),b()};function ef(e){return e?e.replace(Wm,Hr):Hr}var Ym=Ln&&Ln.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Qc,"__esModule",{value:!0});var tf=Qc.default=jm,Jm=Ym(Zm);function jm(e,t){var r=null;if(!e||typeof e!="string")return r;var u=(0,Jm.default)(e),o=typeof t=="function";return u.forEach(function(l){if(l.type==="declaration"){var a=l.property,c=l.value;o?t(a,c,l):c&&(r=r||{},r[a]=c)}}),r}const Um=tf.default||tf,nf=rf("end"),Qs=rf("start");function rf(e){return t;function t(r){const u=r&&r.position&&r.position[e]||{};if(typeof u.line=="number"&&u.line>0&&typeof u.column=="number"&&u.column>0)return{line:u.line,column:u.column,offset:typeof u.offset=="number"&&u.offset>-1?u.offset:void 0}}}function Qm(e){const t=Qs(e),r=nf(e);if(t&&r)return{start:t,end:r}}function uu(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?uf(e.position):"start"in e||"end"in e?uf(e):"line"in e||"column"in e?qs(e):""}function qs(e){return of(e&&e.line)+":"+of(e&&e.column)}function uf(e){return qs(e&&e.start)+"-"+qs(e&&e.end)}function of(e){return e&&typeof e=="number"?e:1}class Nt extends Error{constructor(t,r,u){super(),typeof r=="string"&&(u=r,r=void 0);let o="",l={},a=!1;if(r&&("line"in r&&"column"in r?l={place:r}:"start"in r&&"end"in r?l={place:r}:"type"in r?l={ancestors:[r],place:r.position}:l={...r}),typeof t=="string"?o=t:!l.cause&&t&&(a=!0,o=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof u=="string"){const f=u.indexOf(":");f===-1?l.ruleId=u:(l.source=u.slice(0,f),l.ruleId=u.slice(f+1))}if(!l.place&&l.ancestors&&l.ancestors){const f=l.ancestors[l.ancestors.length-1];f&&(l.place=f.position)}const c=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file,this.message=o,this.line=c?c.line:void 0,this.name=uu(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=a&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual,this.expected,this.note,this.url}}Nt.prototype.file="",Nt.prototype.name="",Nt.prototype.reason="",Nt.prototype.message="",Nt.prototype.stack="",Nt.prototype.column=void 0,Nt.prototype.line=void 0,Nt.prototype.ancestors=void 0,Nt.prototype.cause=void 0,Nt.prototype.fatal=void 0,Nt.prototype.place=void 0,Nt.prototype.ruleId=void 0,Nt.prototype.source=void 0;const $s={}.hasOwnProperty,qm=new Map,$m=/[A-Z]/g,Km=/-([a-z])/g,eb=new Set(["table","tbody","thead","tfoot","tr"]),tb=new Set(["td","th"]),sf="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function nb(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let u;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");u=cb(r,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");u=ab(r,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:u,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?js:Gm,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=lf(o,e,void 0);return l&&typeof l!="string"?l:o.create(e,o.Fragment,{children:l||void 0},void 0)}function lf(e,t,r){if(t.type==="element")return rb(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return ib(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return ob(e,t,r);if(t.type==="mdxjsEsm")return ub(e,t);if(t.type==="root")return sb(e,t,r);if(t.type==="text")return lb(e,t)}function rb(e,t,r){const u=e.schema;let o=u;t.tagName.toLowerCase()==="svg"&&u.space==="html"&&(o=js,e.schema=o),e.ancestors.push(t);const l=cf(e,t.tagName,!1),a=fb(e,t);let c=el(e,t);return eb.has(t.tagName)&&(c=c.filter(function(f){return typeof f=="string"?!xm(f):!0})),af(e,a,l,t),Ks(a,c),e.ancestors.pop(),e.schema=u,e.create(t,l,a,r)}function ib(e,t){if(t.data&&t.data.estree&&e.evaluater){const u=t.data.estree.body[0];return u.type,e.evaluater.evaluateExpression(u.expression)}ou(e,t.position)}function ub(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ou(e,t.position)}function ob(e,t,r){const u=e.schema;let o=u;t.name==="svg"&&u.space==="html"&&(o=js,e.schema=o),e.ancestors.push(t);const l=t.name===null?e.Fragment:cf(e,t.name,!0),a=db(e,t),c=el(e,t);return af(e,a,l,t),Ks(a,c),e.ancestors.pop(),e.schema=u,e.create(t,l,a,r)}function sb(e,t,r){const u={};return Ks(u,el(e,t)),e.create(t,e.Fragment,u,r)}function lb(e,t){return t.value}function af(e,t,r,u){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=u)}function Ks(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function ab(e,t,r){return u;function u(o,l,a,c){const h=Array.isArray(a.children)?r:t;return c?h(l,a,c):h(l,a)}}function cb(e,t){return r;function r(u,o,l,a){const c=Array.isArray(l.children),f=Qs(u);return t(o,l,a,c,{columnNumber:f?f.column-1:void 0,fileName:e,lineNumber:f?f.line:void 0},void 0)}}function fb(e,t){const r={};let u,o;for(o in t.properties)if(o!=="children"&&$s.call(t.properties,o)){const l=hb(e,o,t.properties[o]);if(l){const[a,c]=l;e.tableCellAlignToStyle&&a==="align"&&typeof c=="string"&&tb.has(t.tagName)?u=c:r[a]=c}}if(u){const l=r.style||(r.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=u}return r}function db(e,t){const r={};for(const u of t.attributes)if(u.type==="mdxJsxExpressionAttribute")if(u.data&&u.data.estree&&e.evaluater){const l=u.data.estree.body[0];l.type;const a=l.expression;a.type;const c=a.properties[0];c.type,Object.assign(r,e.evaluater.evaluateExpression(c.argument))}else ou(e,t.position);else{const o=u.name;let l;if(u.value&&typeof u.value=="object")if(u.value.data&&u.value.data.estree&&e.evaluater){const c=u.value.data.estree.body[0];c.type,l=e.evaluater.evaluateExpression(c.expression)}else ou(e,t.position);else l=u.value===null?!0:u.value;r[o]=l}return r}function el(e,t){const r=[];let u=-1;const o=e.passKeys?new Map:qm;for(;++u<t.children.length;){const l=t.children[u];let a;if(e.passKeys){const f=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(f){const h=o.get(f)||0;a=f+"-"+h,o.set(f,h+1)}}const c=lf(e,l,a);c!==void 0&&r.push(c)}return r}function hb(e,t,r){const u=Om(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=u.commaSeparated?bm(r):Rm(r)),u.property==="style"){let o=typeof r=="object"?r:pb(e,String(r));return e.stylePropertyNameCase==="css"&&(o=gb(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&u.space?Bm[u.property]||u.property:u.attribute,r]}}function pb(e,t){const r={};try{Um(t,u)}catch(o){if(!e.ignoreInvalidStyle){const l=o,a=new Nt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:l,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=sf+"#cannot-parse-style-attribute",a}}return r;function u(o,l){let a=o;a.slice(0,2)!=="--"&&(a.slice(0,4)==="-ms-"&&(a="ms-"+a.slice(4)),a=a.replace(Km,bb)),r[a]=l}}function cf(e,t,r){let u;if(!r)u={type:"Literal",value:t};else if(t.includes(".")){const o=t.split(".");let l=-1,a;for(;++l<o.length;){const c=Mc(o[l])?{type:"Identifier",name:o[l]}:{type:"Literal",value:o[l]};a=a?{type:"MemberExpression",object:a,property:c,computed:!!(l&&c.type==="Literal"),optional:!1}:c}u=a}else u=Mc(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(u.type==="Literal"){const o=u.value;return $s.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(u);ou(e)}function ou(e,t){const r=new Nt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=sf+"#cannot-handle-mdx-estrees-without-createevaluater",r}function gb(e){const t={};let r;for(r in e)$s.call(e,r)&&(t[mb(r)]=e[r]);return t}function mb(e){let t=e.replace($m,vb);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function bb(e,t){return t.toUpperCase()}function vb(e){return"-"+e.toLowerCase()}const tl={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"]},yb={};function Ib(e,t){const r=yb,u=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,o=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return ff(e,u,o)}function ff(e,t,r){if(Cb(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return df(e.children,t,r)}return Array.isArray(e)?df(e,t,r):""}function df(e,t,r){const u=[];let o=-1;for(;++o<e.length;)u[o]=ff(e[o],t,r);return u.join("")}function Cb(e){return!!(e&&typeof e=="object")}const hf=document.createElement("i");function nl(e){const t="&"+e+";";hf.innerHTML=t;const r=hf.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function Yn(e,t,r,u){const o=e.length;let l=0,a;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,r=r>0?r:0,u.length<1e4)a=Array.from(u),a.unshift(t,r),e.splice(...a);else for(r&&e.splice(t,r);l<u.length;)a=u.slice(l,l+1e4),a.unshift(t,0),e.splice(...a),l+=1e4,t+=1e4}function An(e,t){return e.length>0?(Yn(e,e.length,0,t),e):t}const pf={}.hasOwnProperty;function xb(e){const t={};let r=-1;for(;++r<e.length;)Ab(t,e[r]);return t}function Ab(e,t){let r;for(r in t){const o=(pf.call(e,r)?e[r]:void 0)||(e[r]={}),l=t[r];let a;if(l)for(a in l){pf.call(o,a)||(o[a]=[]);const c=l[a];wb(o[a],Array.isArray(c)?c:c?[c]:[])}}}function wb(e,t){let r=-1;const u=[];for(;++r<t.length;)(t[r].add==="after"?e:u).push(t[r]);Yn(e,0,0,u)}function gf(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function vi(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Jn=xr(/[A-Za-z]/),cn=xr(/[\dA-Za-z]/),Sb=xr(/[#-'*+\--9=?A-Z^-~]/);function rl(e){return e!==null&&(e<32||e===127)}const il=xr(/\d/),Eb=xr(/[\dA-Fa-f]/),Fb=xr(/[!-/:-@[-`{-~]/);function Ae(e){return e!==null&&e<-2}function $t(e){return e!==null&&(e<0||e===32)}function Ue(e){return e===-2||e===-1||e===32}const Pb=xr(new RegExp("\\p{P}|\\p{S}","u")),Ob=xr(/\s/);function xr(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function yi(e){const t=[];let r=-1,u=0,o=0;for(;++r<e.length;){const l=e.charCodeAt(r);let a="";if(l===37&&cn(e.charCodeAt(r+1))&&cn(e.charCodeAt(r+2)))o=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(a=String.fromCharCode(l));else if(l>55295&&l<57344){const c=e.charCodeAt(r+1);l<56320&&c>56319&&c<57344?(a=String.fromCharCode(l,c),o=1):a="�"}else a=String.fromCharCode(l);a&&(t.push(e.slice(u,r),encodeURIComponent(a)),u=r+o+1,a=""),o&&(r+=o,o=0)}return t.join("")+e.slice(u)}function ct(e,t,r,u){const o=u?u-1:Number.POSITIVE_INFINITY;let l=0;return a;function a(f){return Ue(f)?(e.enter(r),c(f)):t(f)}function c(f){return Ue(f)&&l++<o?(e.consume(f),c):(e.exit(r),t(f))}}const Tb={tokenize:_b};function _b(e){const t=e.attempt(this.parser.constructs.contentInitial,u,o);let r;return t;function u(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),ct(e,t,"linePrefix")}function o(c){return e.enter("paragraph"),l(c)}function l(c){const f=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=f),r=f,a(c)}function a(c){if(c===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(c);return}return Ae(c)?(e.consume(c),e.exit("chunkText"),l):(e.consume(c),a)}}const Bb={tokenize:Gb},mf={tokenize:Rb};function Gb(e){const t=this,r=[];let u=0,o,l,a;return c;function c(k){if(u<r.length){const V=r[u];return t.containerState=V[1],e.attempt(V[0].continuation,f,h)(k)}return h(k)}function f(k){if(u++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&L();const V=t.events.length;let H=V,R;for(;H--;)if(t.events[H][0]==="exit"&&t.events[H][1].type==="chunkFlow"){R=t.events[H][1].end;break}P(u);let j=V;for(;j<t.events.length;)t.events[j][1].end={...R},j++;return Yn(t.events,H+1,0,t.events.slice(V)),t.events.length=j,h(k)}return c(k)}function h(k){if(u===r.length){if(!o)return I(k);if(o.currentConstruct&&o.currentConstruct.concrete)return S(k);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(mf,p,g)(k)}function p(k){return o&&L(),P(u),I(k)}function g(k){return t.parser.lazy[t.now().line]=u!==r.length,a=t.now().offset,S(k)}function I(k){return t.containerState={},e.attempt(mf,b,S)(k)}function b(k){return u++,r.push([t.currentConstruct,t.containerState]),I(k)}function S(k){if(k===null){o&&L(),P(0),e.consume(k);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:l}),A(k)}function A(k){if(k===null){F(e.exit("chunkFlow"),!0),P(0),e.consume(k);return}return Ae(k)?(e.consume(k),F(e.exit("chunkFlow")),u=0,t.interrupt=void 0,c):(e.consume(k),A)}function F(k,V){const H=t.sliceStream(k);if(V&&H.push(null),k.previous=l,l&&(l.next=k),l=k,o.defineSkip(k.start),o.write(H),t.parser.lazy[k.start.line]){let R=o.events.length;for(;R--;)if(o.events[R][1].start.offset<a&&(!o.events[R][1].end||o.events[R][1].end.offset>a))return;const j=t.events.length;let N=j,Z,U;for(;N--;)if(t.events[N][0]==="exit"&&t.events[N][1].type==="chunkFlow"){if(Z){U=t.events[N][1].end;break}Z=!0}for(P(u),R=j;R<t.events.length;)t.events[R][1].end={...U},R++;Yn(t.events,N+1,0,t.events.slice(j)),t.events.length=R}}function P(k){let V=r.length;for(;V-- >k;){const H=r[V];t.containerState=H[1],H[0].exit.call(t,e)}r.length=k}function L(){o.write([null]),l=void 0,o=void 0,t.containerState._closeFlow=void 0}}function Rb(e,t,r){return ct(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function bf(e){if(e===null||$t(e)||Ob(e))return 1;if(Pb(e))return 2}function ul(e,t,r){const u=[];let o=-1;for(;++o<e.length;){const l=e[o].resolveAll;l&&!u.includes(l)&&(t=l(t,r),u.push(l))}return t}const ol={name:"attention",resolveAll:kb,tokenize:Lb};function kb(e,t){let r=-1,u,o,l,a,c,f,h,p;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(u=r;u--;)if(e[u][0]==="exit"&&e[u][1].type==="attentionSequence"&&e[u][1]._open&&t.sliceSerialize(e[u][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[u][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[u][1].end.offset-e[u][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;f=e[u][1].end.offset-e[u][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const g={...e[u][1].end},I={...e[r][1].start};vf(g,-f),vf(I,f),a={type:f>1?"strongSequence":"emphasisSequence",start:g,end:{...e[u][1].end}},c={type:f>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:I},l={type:f>1?"strongText":"emphasisText",start:{...e[u][1].end},end:{...e[r][1].start}},o={type:f>1?"strong":"emphasis",start:{...a.start},end:{...c.end}},e[u][1].end={...a.start},e[r][1].start={...c.end},h=[],e[u][1].end.offset-e[u][1].start.offset&&(h=An(h,[["enter",e[u][1],t],["exit",e[u][1],t]])),h=An(h,[["enter",o,t],["enter",a,t],["exit",a,t],["enter",l,t]]),h=An(h,ul(t.parser.constructs.insideSpan.null,e.slice(u+1,r),t)),h=An(h,[["exit",l,t],["enter",c,t],["exit",c,t],["exit",o,t]]),e[r][1].end.offset-e[r][1].start.offset?(p=2,h=An(h,[["enter",e[r][1],t],["exit",e[r][1],t]])):p=0,Yn(e,u-1,r-u+3,h),r=u+h.length-p-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function Lb(e,t){const r=this.parser.constructs.attentionMarkers.null,u=this.previous,o=bf(u);let l;return a;function a(f){return l=f,e.enter("attentionSequence"),c(f)}function c(f){if(f===l)return e.consume(f),c;const h=e.exit("attentionSequence"),p=bf(f),g=!p||p===2&&o||r.includes(f),I=!o||o===2&&p||r.includes(u);return h._open=!!(l===42?g:g&&(o||!I)),h._close=!!(l===42?I:I&&(p||!g)),t(f)}}function vf(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Db={name:"autolink",tokenize:Mb};function Mb(e,t,r){let u=0;return o;function o(b){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(b){return Jn(b)?(e.consume(b),a):b===64?r(b):h(b)}function a(b){return b===43||b===45||b===46||cn(b)?(u=1,c(b)):h(b)}function c(b){return b===58?(e.consume(b),u=0,f):(b===43||b===45||b===46||cn(b))&&u++<32?(e.consume(b),c):(u=0,h(b))}function f(b){return b===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),t):b===null||b===32||b===60||rl(b)?r(b):(e.consume(b),f)}function h(b){return b===64?(e.consume(b),p):Sb(b)?(e.consume(b),h):r(b)}function p(b){return cn(b)?g(b):r(b)}function g(b){return b===46?(e.consume(b),u=0,p):b===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),t):I(b)}function I(b){if((b===45||cn(b))&&u++<63){const S=b===45?I:g;return e.consume(b),S}return r(b)}}const Qu={partial:!0,tokenize:Nb};function Nb(e,t,r){return u;function u(l){return Ue(l)?ct(e,o,"linePrefix")(l):o(l)}function o(l){return l===null||Ae(l)?t(l):r(l)}}const yf={continuation:{tokenize:Wb},exit:Xb,name:"blockQuote",tokenize:Vb};function Vb(e,t,r){const u=this;return o;function o(a){if(a===62){const c=u.containerState;return c.open||(e.enter("blockQuote",{_container:!0}),c.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),l}return r(a)}function l(a){return Ue(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function Wb(e,t,r){const u=this;return o;function o(a){return Ue(a)?ct(e,l,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):l(a)}function l(a){return e.attempt(yf,t,r)(a)}}function Xb(e){e.exit("blockQuote")}const If={name:"characterEscape",tokenize:Hb};function Hb(e,t,r){return u;function u(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),o}function o(l){return Fb(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(l)}}const Cf={name:"characterReference",tokenize:zb};function zb(e,t,r){const u=this;let o=0,l,a;return c;function c(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),f}function f(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),l=31,a=cn,p(g))}function h(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,a=Eb,p):(e.enter("characterReferenceValue"),l=7,a=il,p(g))}function p(g){if(g===59&&o){const I=e.exit("characterReferenceValue");return a===cn&&!nl(u.sliceSerialize(I))?r(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(g)&&o++<l?(e.consume(g),p):r(g)}}const xf={partial:!0,tokenize:Yb},Af={concrete:!0,name:"codeFenced",tokenize:Zb};function Zb(e,t,r){const u=this,o={partial:!0,tokenize:H};let l=0,a=0,c;return f;function f(R){return h(R)}function h(R){const j=u.events[u.events.length-1];return l=j&&j[1].type==="linePrefix"?j[2].sliceSerialize(j[1],!0).length:0,c=R,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(R)}function p(R){return R===c?(a++,e.consume(R),p):a<3?r(R):(e.exit("codeFencedFenceSequence"),Ue(R)?ct(e,g,"whitespace")(R):g(R))}function g(R){return R===null||Ae(R)?(e.exit("codeFencedFence"),u.interrupt?t(R):e.check(xf,A,V)(R)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),I(R))}function I(R){return R===null||Ae(R)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(R)):Ue(R)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ct(e,b,"whitespace")(R)):R===96&&R===c?r(R):(e.consume(R),I)}function b(R){return R===null||Ae(R)?g(R):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),S(R))}function S(R){return R===null||Ae(R)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(R)):R===96&&R===c?r(R):(e.consume(R),S)}function A(R){return e.attempt(o,V,F)(R)}function F(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),P}function P(R){return l>0&&Ue(R)?ct(e,L,"linePrefix",l+1)(R):L(R)}function L(R){return R===null||Ae(R)?e.check(xf,A,V)(R):(e.enter("codeFlowValue"),k(R))}function k(R){return R===null||Ae(R)?(e.exit("codeFlowValue"),L(R)):(e.consume(R),k)}function V(R){return e.exit("codeFenced"),t(R)}function H(R,j,N){let Z=0;return U;function U(ie){return R.enter("lineEnding"),R.consume(ie),R.exit("lineEnding"),Q}function Q(ie){return R.enter("codeFencedFence"),Ue(ie)?ct(R,K,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ie):K(ie)}function K(ie){return ie===c?(R.enter("codeFencedFenceSequence"),he(ie)):N(ie)}function he(ie){return ie===c?(Z++,R.consume(ie),he):Z>=a?(R.exit("codeFencedFenceSequence"),Ue(ie)?ct(R,Be,"whitespace")(ie):Be(ie)):N(ie)}function Be(ie){return ie===null||Ae(ie)?(R.exit("codeFencedFence"),j(ie)):N(ie)}}}function Yb(e,t,r){const u=this;return o;function o(a){return a===null?r(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),l)}function l(a){return u.parser.lazy[u.now().line]?r(a):t(a)}}const sl={name:"codeIndented",tokenize:jb},Jb={partial:!0,tokenize:Ub};function jb(e,t,r){const u=this;return o;function o(h){return e.enter("codeIndented"),ct(e,l,"linePrefix",5)(h)}function l(h){const p=u.events[u.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?a(h):r(h)}function a(h){return h===null?f(h):Ae(h)?e.attempt(Jb,a,f)(h):(e.enter("codeFlowValue"),c(h))}function c(h){return h===null||Ae(h)?(e.exit("codeFlowValue"),a(h)):(e.consume(h),c)}function f(h){return e.exit("codeIndented"),t(h)}}function Ub(e,t,r){const u=this;return o;function o(a){return u.parser.lazy[u.now().line]?r(a):Ae(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):ct(e,l,"linePrefix",5)(a)}function l(a){const c=u.events[u.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(a):Ae(a)?o(a):r(a)}}const Qb={name:"codeText",previous:$b,resolve:qb,tokenize:Kb};function qb(e){let t=e.length-4,r=3,u,o;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(u=r;++u<t;)if(e[u][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(u=r-1,t++;++u<=t;)o===void 0?u!==t&&e[u][1].type!=="lineEnding"&&(o=u):(u===t||e[u][1].type==="lineEnding")&&(e[o][1].type="codeTextData",u!==o+2&&(e[o][1].end=e[u-1][1].end,e.splice(o+2,u-o-2),t-=u-o-2,u=o+2),o=void 0);return e}function $b(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Kb(e,t,r){let u=0,o,l;return a;function a(g){return e.enter("codeText"),e.enter("codeTextSequence"),c(g)}function c(g){return g===96?(e.consume(g),u++,c):(e.exit("codeTextSequence"),f(g))}function f(g){return g===null?r(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),f):g===96?(l=e.enter("codeTextSequence"),o=0,p(g)):Ae(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),f):(e.enter("codeTextData"),h(g))}function h(g){return g===null||g===32||g===96||Ae(g)?(e.exit("codeTextData"),f(g)):(e.consume(g),h)}function p(g){return g===96?(e.consume(g),o++,p):o===u?(e.exit("codeTextSequence"),e.exit("codeText"),t(g)):(l.type="codeTextData",h(g))}}class e0{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,r){const u=r??Number.POSITIVE_INFINITY;return u<this.left.length?this.left.slice(t,u):t>this.left.length?this.right.slice(this.right.length-u+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-u+this.left.length).reverse())}splice(t,r,u){const o=r||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return u&&su(this.left,u),l.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),su(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),su(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 r=this.left.splice(t,Number.POSITIVE_INFINITY);su(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);su(this.left,r.reverse())}}}function su(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function wf(e){const t={};let r=-1,u,o,l,a,c,f,h;const p=new e0(e);for(;++r<p.length;){for(;r in t;)r=t[r];if(u=p.get(r),r&&u[1].type==="chunkFlow"&&p.get(r-1)[1].type==="listItemPrefix"&&(f=u[1]._tokenizer.events,l=0,l<f.length&&f[l][1].type==="lineEndingBlank"&&(l+=2),l<f.length&&f[l][1].type==="content"))for(;++l<f.length&&f[l][1].type!=="content";)f[l][1].type==="chunkText"&&(f[l][1]._isInFirstContentOfListItem=!0,l++);if(u[0]==="enter")u[1].contentType&&(Object.assign(t,t0(p,r)),r=t[r],h=!0);else if(u[1]._container){for(l=r,o=void 0;l--&&(a=p.get(l),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank");)a[0]==="enter"&&(o&&(p.get(o)[1].type="lineEndingBlank"),a[1].type="lineEnding",o=l);o&&(u[1].end={...p.get(o)[1].start},c=p.slice(o,r),c.unshift(u),p.splice(o,r-o+1,c))}}return Yn(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!h}function t0(e,t){const r=e.get(t)[1],u=e.get(t)[2];let o=t-1;const l=[],a=r._tokenizer||u.parser[r.contentType](r.start),c=a.events,f=[],h={};let p,g,I=-1,b=r,S=0,A=0;const F=[A];for(;b;){for(;e.get(++o)[1]!==b;);l.push(o),b._tokenizer||(p=u.sliceStream(b),b.next||p.push(null),g&&a.defineSkip(b.start),b._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(p),b._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),g=b,b=b.next}for(b=r;++I<c.length;)c[I][0]==="exit"&&c[I-1][0]==="enter"&&c[I][1].type===c[I-1][1].type&&c[I][1].start.line!==c[I][1].end.line&&(A=I+1,F.push(A),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(a.events=[],b?(b._tokenizer=void 0,b.previous=void 0):F.pop(),I=F.length;I--;){const P=c.slice(F[I],F[I+1]),L=l.pop();f.push([L,L+P.length-1]),e.splice(L,2,P)}for(f.reverse(),I=-1;++I<f.length;)h[S+f[I][0]]=S+f[I][1],S+=f[I][1]-f[I][0]-1;return h}const n0={resolve:i0,tokenize:u0},r0={partial:!0,tokenize:o0};function i0(e){return wf(e),e}function u0(e,t){let r;return u;function u(c){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),o(c)}function o(c){return c===null?l(c):Ae(c)?e.check(r0,a,l)(c):(e.consume(c),o)}function l(c){return e.exit("chunkContent"),e.exit("content"),t(c)}function a(c){return e.consume(c),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,o}}function o0(e,t,r){const u=this;return o;function o(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),ct(e,l,"linePrefix")}function l(a){if(a===null||Ae(a))return r(a);const c=u.events[u.events.length-1];return!u.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(a):e.interrupt(u.parser.constructs.flow,r,t)(a)}}function Sf(e,t,r,u,o,l,a,c,f){const h=f||Number.POSITIVE_INFINITY;let p=0;return g;function g(P){return P===60?(e.enter(u),e.enter(o),e.enter(l),e.consume(P),e.exit(l),I):P===null||P===32||P===41||rl(P)?r(P):(e.enter(u),e.enter(a),e.enter(c),e.enter("chunkString",{contentType:"string"}),A(P))}function I(P){return P===62?(e.enter(l),e.consume(P),e.exit(l),e.exit(o),e.exit(u),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),b(P))}function b(P){return P===62?(e.exit("chunkString"),e.exit(c),I(P)):P===null||P===60||Ae(P)?r(P):(e.consume(P),P===92?S:b)}function S(P){return P===60||P===62||P===92?(e.consume(P),b):b(P)}function A(P){return!p&&(P===null||P===41||$t(P))?(e.exit("chunkString"),e.exit(c),e.exit(a),e.exit(u),t(P)):p<h&&P===40?(e.consume(P),p++,A):P===41?(e.consume(P),p--,A):P===null||P===32||P===40||rl(P)?r(P):(e.consume(P),P===92?F:A)}function F(P){return P===40||P===41||P===92?(e.consume(P),A):A(P)}}function Ef(e,t,r,u,o,l){const a=this;let c=0,f;return h;function h(b){return e.enter(u),e.enter(o),e.consume(b),e.exit(o),e.enter(l),p}function p(b){return c>999||b===null||b===91||b===93&&!f||b===94&&!c&&"_hiddenFootnoteSupport"in a.parser.constructs?r(b):b===93?(e.exit(l),e.enter(o),e.consume(b),e.exit(o),e.exit(u),t):Ae(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),g(b))}function g(b){return b===null||b===91||b===93||Ae(b)||c++>999?(e.exit("chunkString"),p(b)):(e.consume(b),f||(f=!Ue(b)),b===92?I:g)}function I(b){return b===91||b===92||b===93?(e.consume(b),c++,g):g(b)}}function Ff(e,t,r,u,o,l){let a;return c;function c(I){return I===34||I===39||I===40?(e.enter(u),e.enter(o),e.consume(I),e.exit(o),a=I===40?41:I,f):r(I)}function f(I){return I===a?(e.enter(o),e.consume(I),e.exit(o),e.exit(u),t):(e.enter(l),h(I))}function h(I){return I===a?(e.exit(l),f(a)):I===null?r(I):Ae(I)?(e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),ct(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(I))}function p(I){return I===a||I===null||Ae(I)?(e.exit("chunkString"),h(I)):(e.consume(I),I===92?g:p)}function g(I){return I===a||I===92?(e.consume(I),p):p(I)}}function lu(e,t){let r;return u;function u(o){return Ae(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r=!0,u):Ue(o)?ct(e,u,r?"linePrefix":"lineSuffix")(o):t(o)}}const s0={name:"definition",tokenize:a0},l0={partial:!0,tokenize:c0};function a0(e,t,r){const u=this;let o;return l;function l(b){return e.enter("definition"),a(b)}function a(b){return Ef.call(u,e,c,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function c(b){return o=vi(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)),b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),f):r(b)}function f(b){return $t(b)?lu(e,h)(b):h(b)}function h(b){return Sf(e,p,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function p(b){return e.attempt(l0,g,g)(b)}function g(b){return Ue(b)?ct(e,I,"whitespace")(b):I(b)}function I(b){return b===null||Ae(b)?(e.exit("definition"),u.parser.defined.push(o),t(b)):r(b)}}function c0(e,t,r){return u;function u(c){return $t(c)?lu(e,o)(c):r(c)}function o(c){return Ff(e,l,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function l(c){return Ue(c)?ct(e,a,"whitespace")(c):a(c)}function a(c){return c===null||Ae(c)?t(c):r(c)}}const f0={name:"hardBreakEscape",tokenize:d0};function d0(e,t,r){return u;function u(l){return e.enter("hardBreakEscape"),e.consume(l),o}function o(l){return Ae(l)?(e.exit("hardBreakEscape"),t(l)):r(l)}}const h0={name:"headingAtx",resolve:p0,tokenize:g0};function p0(e,t){let r=e.length-2,u=3,o,l;return e[u][1].type==="whitespace"&&(u+=2),r-2>u&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(u===r-1||r-4>u&&e[r-2][1].type==="whitespace")&&(r-=u+1===r?2:4),r>u&&(o={type:"atxHeadingText",start:e[u][1].start,end:e[r][1].end},l={type:"chunkText",start:e[u][1].start,end:e[r][1].end,contentType:"text"},Yn(e,u,r-u+1,[["enter",o,t],["enter",l,t],["exit",l,t],["exit",o,t]])),e}function g0(e,t,r){let u=0;return o;function o(p){return e.enter("atxHeading"),l(p)}function l(p){return e.enter("atxHeadingSequence"),a(p)}function a(p){return p===35&&u++<6?(e.consume(p),a):p===null||$t(p)?(e.exit("atxHeadingSequence"),c(p)):r(p)}function c(p){return p===35?(e.enter("atxHeadingSequence"),f(p)):p===null||Ae(p)?(e.exit("atxHeading"),t(p)):Ue(p)?ct(e,c,"whitespace")(p):(e.enter("atxHeadingText"),h(p))}function f(p){return p===35?(e.consume(p),f):(e.exit("atxHeadingSequence"),c(p))}function h(p){return p===null||p===35||$t(p)?(e.exit("atxHeadingText"),c(p)):(e.consume(p),h)}}const m0=["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"],Pf=["pre","script","style","textarea"],b0={concrete:!0,name:"htmlFlow",resolveTo:I0,tokenize:C0},v0={partial:!0,tokenize:A0},y0={partial:!0,tokenize:x0};function I0(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 C0(e,t,r){const u=this;let o,l,a,c,f;return h;function h(w){return p(w)}function p(w){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(w),g}function g(w){return w===33?(e.consume(w),I):w===47?(e.consume(w),l=!0,A):w===63?(e.consume(w),o=3,u.interrupt?t:E):Jn(w)?(e.consume(w),a=String.fromCharCode(w),F):r(w)}function I(w){return w===45?(e.consume(w),o=2,b):w===91?(e.consume(w),o=5,c=0,S):Jn(w)?(e.consume(w),o=4,u.interrupt?t:E):r(w)}function b(w){return w===45?(e.consume(w),u.interrupt?t:E):r(w)}function S(w){const ze="CDATA[";return w===ze.charCodeAt(c++)?(e.consume(w),c===ze.length?u.interrupt?t:K:S):r(w)}function A(w){return Jn(w)?(e.consume(w),a=String.fromCharCode(w),F):r(w)}function F(w){if(w===null||w===47||w===62||$t(w)){const ze=w===47,ve=a.toLowerCase();return!ze&&!l&&Pf.includes(ve)?(o=1,u.interrupt?t(w):K(w)):m0.includes(a.toLowerCase())?(o=6,ze?(e.consume(w),P):u.interrupt?t(w):K(w)):(o=7,u.interrupt&&!u.parser.lazy[u.now().line]?r(w):l?L(w):k(w))}return w===45||cn(w)?(e.consume(w),a+=String.fromCharCode(w),F):r(w)}function P(w){return w===62?(e.consume(w),u.interrupt?t:K):r(w)}function L(w){return Ue(w)?(e.consume(w),L):U(w)}function k(w){return w===47?(e.consume(w),U):w===58||w===95||Jn(w)?(e.consume(w),V):Ue(w)?(e.consume(w),k):U(w)}function V(w){return w===45||w===46||w===58||w===95||cn(w)?(e.consume(w),V):H(w)}function H(w){return w===61?(e.consume(w),R):Ue(w)?(e.consume(w),H):k(w)}function R(w){return w===null||w===60||w===61||w===62||w===96?r(w):w===34||w===39?(e.consume(w),f=w,j):Ue(w)?(e.consume(w),R):N(w)}function j(w){return w===f?(e.consume(w),f=null,Z):w===null||Ae(w)?r(w):(e.consume(w),j)}function N(w){return w===null||w===34||w===39||w===47||w===60||w===61||w===62||w===96||$t(w)?H(w):(e.consume(w),N)}function Z(w){return w===47||w===62||Ue(w)?k(w):r(w)}function U(w){return w===62?(e.consume(w),Q):r(w)}function Q(w){return w===null||Ae(w)?K(w):Ue(w)?(e.consume(w),Q):r(w)}function K(w){return w===45&&o===2?(e.consume(w),me):w===60&&o===1?(e.consume(w),we):w===62&&o===4?(e.consume(w),He):w===63&&o===3?(e.consume(w),E):w===93&&o===5?(e.consume(w),tt):Ae(w)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(v0,be,he)(w)):w===null||Ae(w)?(e.exit("htmlFlowData"),he(w)):(e.consume(w),K)}function he(w){return e.check(y0,Be,be)(w)}function Be(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),ie}function ie(w){return w===null||Ae(w)?he(w):(e.enter("htmlFlowData"),K(w))}function me(w){return w===45?(e.consume(w),E):K(w)}function we(w){return w===47?(e.consume(w),a="",Pe):K(w)}function Pe(w){if(w===62){const ze=a.toLowerCase();return Pf.includes(ze)?(e.consume(w),He):K(w)}return Jn(w)&&a.length<8?(e.consume(w),a+=String.fromCharCode(w),Pe):K(w)}function tt(w){return w===93?(e.consume(w),E):K(w)}function E(w){return w===62?(e.consume(w),He):w===45&&o===2?(e.consume(w),E):K(w)}function He(w){return w===null||Ae(w)?(e.exit("htmlFlowData"),be(w)):(e.consume(w),He)}function be(w){return e.exit("htmlFlow"),t(w)}}function x0(e,t,r){const u=this;return o;function o(a){return Ae(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),l):r(a)}function l(a){return u.parser.lazy[u.now().line]?r(a):t(a)}}function A0(e,t,r){return u;function u(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(Qu,t,r)}}const w0={name:"htmlText",tokenize:S0};function S0(e,t,r){const u=this;let o,l,a;return c;function c(E){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(E),f}function f(E){return E===33?(e.consume(E),h):E===47?(e.consume(E),H):E===63?(e.consume(E),k):Jn(E)?(e.consume(E),N):r(E)}function h(E){return E===45?(e.consume(E),p):E===91?(e.consume(E),l=0,S):Jn(E)?(e.consume(E),L):r(E)}function p(E){return E===45?(e.consume(E),b):r(E)}function g(E){return E===null?r(E):E===45?(e.consume(E),I):Ae(E)?(a=g,we(E)):(e.consume(E),g)}function I(E){return E===45?(e.consume(E),b):g(E)}function b(E){return E===62?me(E):E===45?I(E):g(E)}function S(E){const He="CDATA[";return E===He.charCodeAt(l++)?(e.consume(E),l===He.length?A:S):r(E)}function A(E){return E===null?r(E):E===93?(e.consume(E),F):Ae(E)?(a=A,we(E)):(e.consume(E),A)}function F(E){return E===93?(e.consume(E),P):A(E)}function P(E){return E===62?me(E):E===93?(e.consume(E),P):A(E)}function L(E){return E===null||E===62?me(E):Ae(E)?(a=L,we(E)):(e.consume(E),L)}function k(E){return E===null?r(E):E===63?(e.consume(E),V):Ae(E)?(a=k,we(E)):(e.consume(E),k)}function V(E){return E===62?me(E):k(E)}function H(E){return Jn(E)?(e.consume(E),R):r(E)}function R(E){return E===45||cn(E)?(e.consume(E),R):j(E)}function j(E){return Ae(E)?(a=j,we(E)):Ue(E)?(e.consume(E),j):me(E)}function N(E){return E===45||cn(E)?(e.consume(E),N):E===47||E===62||$t(E)?Z(E):r(E)}function Z(E){return E===47?(e.consume(E),me):E===58||E===95||Jn(E)?(e.consume(E),U):Ae(E)?(a=Z,we(E)):Ue(E)?(e.consume(E),Z):me(E)}function U(E){return E===45||E===46||E===58||E===95||cn(E)?(e.consume(E),U):Q(E)}function Q(E){return E===61?(e.consume(E),K):Ae(E)?(a=Q,we(E)):Ue(E)?(e.consume(E),Q):Z(E)}function K(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(e.consume(E),o=E,he):Ae(E)?(a=K,we(E)):Ue(E)?(e.consume(E),K):(e.consume(E),Be)}function he(E){return E===o?(e.consume(E),o=void 0,ie):E===null?r(E):Ae(E)?(a=he,we(E)):(e.consume(E),he)}function Be(E){return E===null||E===34||E===39||E===60||E===61||E===96?r(E):E===47||E===62||$t(E)?Z(E):(e.consume(E),Be)}function ie(E){return E===47||E===62||$t(E)?Z(E):r(E)}function me(E){return E===62?(e.consume(E),e.exit("htmlTextData"),e.exit("htmlText"),t):r(E)}function we(E){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),Pe}function Pe(E){return Ue(E)?ct(e,tt,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):tt(E)}function tt(E){return e.enter("htmlTextData"),a(E)}}const ll={name:"labelEnd",resolveAll:O0,resolveTo:T0,tokenize:_0},E0={tokenize:B0},F0={tokenize:G0},P0={tokenize:R0};function O0(e){let t=-1;const r=[];for(;++t<e.length;){const u=e[t][1];if(r.push(e[t]),u.type==="labelImage"||u.type==="labelLink"||u.type==="labelEnd"){const o=u.type==="labelImage"?4:2;u.type="data",t+=o}}return e.length!==r.length&&Yn(e,0,e.length,r),e}function T0(e,t){let r=e.length,u=0,o,l,a,c;for(;r--;)if(o=e[r][1],l){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[r][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(a){if(e[r][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(l=r,o.type!=="labelLink")){u=2;break}}else o.type==="labelEnd"&&(a=r);const f={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[l][1].start},end:{...e[a][1].end}},p={type:"labelText",start:{...e[l+u+2][1].end},end:{...e[a-2][1].start}};return c=[["enter",f,t],["enter",h,t]],c=An(c,e.slice(l+1,l+u+3)),c=An(c,[["enter",p,t]]),c=An(c,ul(t.parser.constructs.insideSpan.null,e.slice(l+u+4,a-3),t)),c=An(c,[["exit",p,t],e[a-2],e[a-1],["exit",h,t]]),c=An(c,e.slice(a+1)),c=An(c,[["exit",f,t]]),Yn(e,l,e.length,c),e}function _0(e,t,r){const u=this;let o=u.events.length,l,a;for(;o--;)if((u.events[o][1].type==="labelImage"||u.events[o][1].type==="labelLink")&&!u.events[o][1]._balanced){l=u.events[o][1];break}return c;function c(I){return l?l._inactive?g(I):(a=u.parser.defined.includes(vi(u.sliceSerialize({start:l.end,end:u.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(I),e.exit("labelMarker"),e.exit("labelEnd"),f):r(I)}function f(I){return I===40?e.attempt(E0,p,a?p:g)(I):I===91?e.attempt(F0,p,a?h:g)(I):a?p(I):g(I)}function h(I){return e.attempt(P0,p,g)(I)}function p(I){return t(I)}function g(I){return l._balanced=!0,r(I)}}function B0(e,t,r){return u;function u(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),o}function o(g){return $t(g)?lu(e,l)(g):l(g)}function l(g){return g===41?p(g):Sf(e,a,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function a(g){return $t(g)?lu(e,f)(g):p(g)}function c(g){return r(g)}function f(g){return g===34||g===39||g===40?Ff(e,h,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):p(g)}function h(g){return $t(g)?lu(e,p)(g):p(g)}function p(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),t):r(g)}}function G0(e,t,r){const u=this;return o;function o(c){return Ef.call(u,e,l,a,"reference","referenceMarker","referenceString")(c)}function l(c){return u.parser.defined.includes(vi(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)))?t(c):r(c)}function a(c){return r(c)}}function R0(e,t,r){return u;function u(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),o}function o(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):r(l)}}const k0={name:"labelStartImage",resolveAll:ll.resolveAll,tokenize:L0};function L0(e,t,r){const u=this;return o;function o(c){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(c),e.exit("labelImageMarker"),l}function l(c){return c===91?(e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelImage"),a):r(c)}function a(c){return c===94&&"_hiddenFootnoteSupport"in u.parser.constructs?r(c):t(c)}}const D0={name:"labelStartLink",resolveAll:ll.resolveAll,tokenize:M0};function M0(e,t,r){const u=this;return o;function o(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),l}function l(a){return a===94&&"_hiddenFootnoteSupport"in u.parser.constructs?r(a):t(a)}}const al={name:"lineEnding",tokenize:N0};function N0(e,t){return r;function r(u){return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),ct(e,t,"linePrefix")}}const qu={name:"thematicBreak",tokenize:V0};function V0(e,t,r){let u=0,o;return l;function l(h){return e.enter("thematicBreak"),a(h)}function a(h){return o=h,c(h)}function c(h){return h===o?(e.enter("thematicBreakSequence"),f(h)):u>=3&&(h===null||Ae(h))?(e.exit("thematicBreak"),t(h)):r(h)}function f(h){return h===o?(e.consume(h),u++,f):(e.exit("thematicBreakSequence"),Ue(h)?ct(e,c,"whitespace")(h):c(h))}}const Kt={continuation:{tokenize:z0},exit:Y0,name:"list",tokenize:H0},W0={partial:!0,tokenize:J0},X0={partial:!0,tokenize:Z0};function H0(e,t,r){const u=this,o=u.events[u.events.length-1];let l=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,a=0;return c;function c(b){const S=u.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(S==="listUnordered"?!u.containerState.marker||b===u.containerState.marker:il(b)){if(u.containerState.type||(u.containerState.type=S,e.enter(S,{_container:!0})),S==="listUnordered")return e.enter("listItemPrefix"),b===42||b===45?e.check(qu,r,h)(b):h(b);if(!u.interrupt||b===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(b)}return r(b)}function f(b){return il(b)&&++a<10?(e.consume(b),f):(!u.interrupt||a<2)&&(u.containerState.marker?b===u.containerState.marker:b===41||b===46)?(e.exit("listItemValue"),h(b)):r(b)}function h(b){return e.enter("listItemMarker"),e.consume(b),e.exit("listItemMarker"),u.containerState.marker=u.containerState.marker||b,e.check(Qu,u.interrupt?r:p,e.attempt(W0,I,g))}function p(b){return u.containerState.initialBlankLine=!0,l++,I(b)}function g(b){return Ue(b)?(e.enter("listItemPrefixWhitespace"),e.consume(b),e.exit("listItemPrefixWhitespace"),I):r(b)}function I(b){return u.containerState.size=l+u.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(b)}}function z0(e,t,r){const u=this;return u.containerState._closeFlow=void 0,e.check(Qu,o,l);function o(c){return u.containerState.furtherBlankLines=u.containerState.furtherBlankLines||u.containerState.initialBlankLine,ct(e,t,"listItemIndent",u.containerState.size+1)(c)}function l(c){return u.containerState.furtherBlankLines||!Ue(c)?(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,a(c)):(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,e.attempt(X0,t,a)(c))}function a(c){return u.containerState._closeFlow=!0,u.interrupt=void 0,ct(e,e.attempt(Kt,t,r),"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function Z0(e,t,r){const u=this;return ct(e,o,"listItemIndent",u.containerState.size+1);function o(l){const a=u.events[u.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===u.containerState.size?t(l):r(l)}}function Y0(e){e.exit(this.containerState.type)}function J0(e,t,r){const u=this;return ct(e,o,"listItemPrefixWhitespace",u.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(l){const a=u.events[u.events.length-1];return!Ue(l)&&a&&a[1].type==="listItemPrefixWhitespace"?t(l):r(l)}}const Of={name:"setextUnderline",resolveTo:j0,tokenize:U0};function j0(e,t){let r=e.length,u,o,l;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){u=r;break}e[r][1].type==="paragraph"&&(o=r)}else e[r][1].type==="content"&&e.splice(r,1),!l&&e[r][1].type==="definition"&&(l=r);const a={type:"setextHeading",start:{...e[o][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",l?(e.splice(o,0,["enter",a,t]),e.splice(l+1,0,["exit",e[u][1],t]),e[u][1].end={...e[l][1].end}):e[u][1]=a,e.push(["exit",a,t]),e}function U0(e,t,r){const u=this;let o;return l;function l(h){let p=u.events.length,g;for(;p--;)if(u.events[p][1].type!=="lineEnding"&&u.events[p][1].type!=="linePrefix"&&u.events[p][1].type!=="content"){g=u.events[p][1].type==="paragraph";break}return!u.parser.lazy[u.now().line]&&(u.interrupt||g)?(e.enter("setextHeadingLine"),o=h,a(h)):r(h)}function a(h){return e.enter("setextHeadingLineSequence"),c(h)}function c(h){return h===o?(e.consume(h),c):(e.exit("setextHeadingLineSequence"),Ue(h)?ct(e,f,"lineSuffix")(h):f(h))}function f(h){return h===null||Ae(h)?(e.exit("setextHeadingLine"),t(h)):r(h)}}const Q0={tokenize:q0};function q0(e){const t=this,r=e.attempt(Qu,u,e.attempt(this.parser.constructs.flowInitial,o,ct(e,e.attempt(this.parser.constructs.flow,o,e.attempt(n0,o)),"linePrefix")));return r;function u(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function o(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const $0={resolveAll:_f()},K0=Tf("string"),ev=Tf("text");function Tf(e){return{resolveAll:_f(e==="text"?tv:void 0),tokenize:t};function t(r){const u=this,o=this.parser.constructs[e],l=r.attempt(o,a,c);return a;function a(p){return h(p)?l(p):c(p)}function c(p){if(p===null){r.consume(p);return}return r.enter("data"),r.consume(p),f}function f(p){return h(p)?(r.exit("data"),l(p)):(r.consume(p),f)}function h(p){if(p===null)return!0;const g=o[p];let I=-1;if(g)for(;++I<g.length;){const b=g[I];if(!b.previous||b.previous.call(u,u.previous))return!0}return!1}}}function _f(e){return t;function t(r,u){let o=-1,l;for(;++o<=r.length;)l===void 0?r[o]&&r[o][1].type==="data"&&(l=o,o++):(!r[o]||r[o][1].type!=="data")&&(o!==l+2&&(r[l][1].end=r[o-1][1].end,r.splice(l+2,o-l-2),o=l+2),l=void 0);return e?e(r,u):r}}function tv(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const u=e[r-1][1],o=t.sliceStream(u);let l=o.length,a=-1,c=0,f;for(;l--;){const h=o[l];if(typeof h=="string"){for(a=h.length;h.charCodeAt(a-1)===32;)c++,a--;if(a)break;a=-1}else if(h===-2)f=!0,c++;else if(h!==-1){l++;break}}if(c){const h={type:r===e.length||f||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?a:u.start._bufferIndex+a,_index:u.start._index+l,line:u.end.line,column:u.end.column-c,offset:u.end.offset-c},end:{...u.end}};u.end={...h.start},u.start.offset===u.end.offset?Object.assign(u,h):(e.splice(r,0,["enter",h,t],["exit",h,t]),r+=2)}r++}return e}const nv=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:s0},disable:{null:[]},document:{42:Kt,43:Kt,45:Kt,48:Kt,49:Kt,50:Kt,51:Kt,52:Kt,53:Kt,54:Kt,55:Kt,56:Kt,57:Kt,62:yf},flow:{35:h0,42:qu,45:[Of,qu],60:b0,61:Of,95:qu,96:Af,126:Af},flowInitial:{[-2]:sl,[-1]:sl,32:sl},insideSpan:{null:[ol,$0]},string:{38:Cf,92:If},text:{[-5]:al,[-4]:al,[-3]:al,33:k0,38:Cf,42:ol,60:[Db,w0],91:D0,92:[f0,If],93:ll,95:ol,96:Qb}},Symbol.toStringTag,{value:"Module"}));function rv(e,t,r){let u={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const o={},l=[];let a=[],c=[];const f={attempt:j(H),check:j(R),consume:L,enter:k,exit:V,interrupt:j(R,{interrupt:!0})},h={code:null,containerState:{},defineSkip:A,events:[],now:S,parser:e,previous:null,sliceSerialize:I,sliceStream:b,write:g};let p=t.tokenize.call(h,f);return t.resolveAll&&l.push(t),h;function g(Q){return a=An(a,Q),F(),a[a.length-1]!==null?[]:(N(t,0),h.events=ul(l,h.events,h),h.events)}function I(Q,K){return uv(b(Q),K)}function b(Q){return iv(a,Q)}function S(){const{_bufferIndex:Q,_index:K,line:he,column:Be,offset:ie}=u;return{_bufferIndex:Q,_index:K,line:he,column:Be,offset:ie}}function A(Q){o[Q.line]=Q.column,U()}function F(){let Q;for(;u._index<a.length;){const K=a[u._index];if(typeof K=="string")for(Q=u._index,u._bufferIndex<0&&(u._bufferIndex=0);u._index===Q&&u._bufferIndex<K.length;)P(K.charCodeAt(u._bufferIndex));else P(K)}}function P(Q){p=p(Q)}function L(Q){Ae(Q)?(u.line++,u.column=1,u.offset+=Q===-3?2:1,U()):Q!==-1&&(u.column++,u.offset++),u._bufferIndex<0?u._index++:(u._bufferIndex++,u._bufferIndex===a[u._index].length&&(u._bufferIndex=-1,u._index++)),h.previous=Q}function k(Q,K){const he=K||{};return he.type=Q,he.start=S(),h.events.push(["enter",he,h]),c.push(he),he}function V(Q){const K=c.pop();return K.end=S(),h.events.push(["exit",K,h]),K}function H(Q,K){N(Q,K.from)}function R(Q,K){K.restore()}function j(Q,K){return he;function he(Be,ie,me){let we,Pe,tt,E;return Array.isArray(Be)?be(Be):"tokenize"in Be?be([Be]):He(Be);function He(Le){return Et;function Et(Ve){const ft=Ve!==null&&Le[Ve],Zt=Ve!==null&&Le.null,Bt=[...Array.isArray(ft)?ft:ft?[ft]:[],...Array.isArray(Zt)?Zt:Zt?[Zt]:[]];return be(Bt)(Ve)}}function be(Le){return we=Le,Pe=0,Le.length===0?me:w(Le[Pe])}function w(Le){return Et;function Et(Ve){return E=Z(),tt=Le,Le.partial||(h.currentConstruct=Le),Le.name&&h.parser.constructs.disable.null.includes(Le.name)?ve():Le.tokenize.call(K?Object.assign(Object.create(h),K):h,f,ze,ve)(Ve)}}function ze(Le){return Q(tt,E),ie}function ve(Le){return E.restore(),++Pe<we.length?w(we[Pe]):me}}}function N(Q,K){Q.resolveAll&&!l.includes(Q)&&l.push(Q),Q.resolve&&Yn(h.events,K,h.events.length-K,Q.resolve(h.events.slice(K),h)),Q.resolveTo&&(h.events=Q.resolveTo(h.events,h))}function Z(){const Q=S(),K=h.previous,he=h.currentConstruct,Be=h.events.length,ie=Array.from(c);return{from:Be,restore:me};function me(){u=Q,h.previous=K,h.currentConstruct=he,h.events.length=Be,c=ie,U()}}function U(){u.line in o&&u.column<2&&(u.column=o[u.line],u.offset+=o[u.line]-1)}}function iv(e,t){const r=t.start._index,u=t.start._bufferIndex,o=t.end._index,l=t.end._bufferIndex;let a;if(r===o)a=[e[r].slice(u,l)];else{if(a=e.slice(r,o),u>-1){const c=a[0];typeof c=="string"?a[0]=c.slice(u):a.shift()}l>0&&a.push(e[o].slice(0,l))}return a}function uv(e,t){let r=-1;const u=[];let o;for(;++r<e.length;){const l=e[r];let a;if(typeof l=="string")a=l;else switch(l){case-5:{a="\r";break}case-4:{a=`
|
|
1
|
+
(function(ie,K){typeof exports=="object"&&typeof module<"u"?K(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"],K):(ie=typeof globalThis<"u"?globalThis:ie||self,K(ie["connect-react"]={},ie["react/jsx-runtime"],ie.React,ie["@emotion/react"],ie.ReactDOM))})(this,function(ie,K,H,ce,Hs){"use strict";var pm=ie=>{throw TypeError(ie)};var Tc=(ie,K,H)=>K.has(ie)||pm("Cannot "+H);var T=(ie,K,H)=>(Tc(ie,K,"read from private field"),H?H.call(ie):K.get(ie)),we=(ie,K,H)=>K.has(ie)?pm("Cannot add the same private member more than once"):K instanceof WeakSet?K.add(ie):K.set(ie,H),ae=(ie,K,H,ce)=>(Tc(ie,K,"write to private field"),ce?ce.call(ie,H):K.set(ie,H),H),Je=(ie,K,H)=>(Tc(ie,K,"access private method"),H);var Xs=(ie,K,H,ce)=>({set _(Hs){ae(ie,K,Hs,H)},get _(){return T(ie,K,ce)}});var jr,wr,wi,op,Si,Sr,Ei,sp,Ur,lp,Fi,Pi,wn,Wt,Iu,Qr,Mn,Cr,ap,Qn,cp,qn,Zt,qr,$n,Wr,fp,dn,Cu,dp,bt,Er,Fr,Oi,Ti,Pr,Bi,_i,hp,en,ze,xu,Yt,$r,Gi,Or,Kn,Au,Ri,ki,Kr,ei,Tr,Li,$e,Uu,Bc,_c,Gc,Rc,kc,Lc,Dc,gm,pp;function mm(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const u=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,u.get?u:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Pe=mm(H);typeof document>"u"&&(globalThis.document={createElement:()=>{}});function aP(){}function cP(){}function bm(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const vm=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ym=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Im={};function Mc(e,t){return(Im.jsx?ym:vm).test(e)}const Cm=/[ \t\n\f\r]/g;function xm(e){return typeof e=="object"?e.type==="text"?Nc(e.value):!1:Nc(e)}function Nc(e){return e.replace(Cm,"")===""}class iu{constructor(t,r,u){this.property=t,this.normal=r,u&&(this.space=u)}}iu.prototype.property={},iu.prototype.normal={},iu.prototype.space=null;function Vc(e,t){const r={},u={};let o=-1;for(;++o<e.length;)Object.assign(r,e[o].property),Object.assign(u,e[o].normal);return new iu(r,u,t)}function zs(e){return e.toLowerCase()}class Cn{constructor(t,r){this.property=t,this.attribute=r}}Cn.prototype.space=null,Cn.prototype.boolean=!1,Cn.prototype.booleanish=!1,Cn.prototype.overloadedBoolean=!1,Cn.prototype.number=!1,Cn.prototype.commaSeparated=!1,Cn.prototype.spaceSeparated=!1,Cn.prototype.commaOrSpaceSeparated=!1,Cn.prototype.mustUseProperty=!1,Cn.prototype.defined=!1;let Am=0;const _e=Xr(),wt=Xr(),Wc=Xr(),ee=Xr(),at=Xr(),mi=Xr(),an=Xr();function Xr(){return 2**++Am}const Zs=Object.freeze(Object.defineProperty({__proto__:null,boolean:_e,booleanish:wt,commaOrSpaceSeparated:an,commaSeparated:mi,number:ee,overloadedBoolean:Wc,spaceSeparated:at},Symbol.toStringTag,{value:"Module"})),Ys=Object.keys(Zs);class Js extends Cn{constructor(t,r,u,o){let l=-1;if(super(t,r),Xc(this,"space",o),typeof u=="number")for(;++l<Ys.length;){const a=Ys[l];Xc(this,Ys[l],(u&Zs[a])===Zs[a])}}}Js.prototype.defined=!0;function Xc(e,t,r){r&&(e[t]=r)}const wm={}.hasOwnProperty;function bi(e){const t={},r={};let u;for(u in e.properties)if(wm.call(e.properties,u)){const o=e.properties[u],l=new Js(u,e.transform(e.attributes||{},u),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(u)&&(l.mustUseProperty=!0),t[u]=l,r[zs(u)]=u,r[zs(l.attribute)]=u}return new iu(t,r,e.space)}const Hc=bi({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}}),zc=bi({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Zc(e,t){return t in e?e[t]:t}function Yc(e,t){return Zc(e,t.toLowerCase())}const Jc=bi({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Yc,properties:{xmlns:null,xmlnsXLink:null}}),jc=bi({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:wt,ariaAutoComplete:null,ariaBusy:wt,ariaChecked:wt,ariaColCount:ee,ariaColIndex:ee,ariaColSpan:ee,ariaControls:at,ariaCurrent:null,ariaDescribedBy:at,ariaDetails:null,ariaDisabled:wt,ariaDropEffect:at,ariaErrorMessage:null,ariaExpanded:wt,ariaFlowTo:at,ariaGrabbed:wt,ariaHasPopup:null,ariaHidden:wt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:at,ariaLevel:ee,ariaLive:null,ariaModal:wt,ariaMultiLine:wt,ariaMultiSelectable:wt,ariaOrientation:null,ariaOwns:at,ariaPlaceholder:null,ariaPosInSet:ee,ariaPressed:wt,ariaReadOnly:wt,ariaRelevant:null,ariaRequired:wt,ariaRoleDescription:at,ariaRowCount:ee,ariaRowIndex:ee,ariaRowSpan:ee,ariaSelected:wt,ariaSetSize:ee,ariaSort:null,ariaValueMax:ee,ariaValueMin:ee,ariaValueNow:ee,ariaValueText:null,role:null}}),Sm=bi({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Yc,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:mi,acceptCharset:at,accessKey:at,action:null,allow:null,allowFullScreen:_e,allowPaymentRequest:_e,allowUserMedia:_e,alt:null,as:null,async:_e,autoCapitalize:null,autoComplete:at,autoFocus:_e,autoPlay:_e,blocking:at,capture:null,charSet:null,checked:_e,cite:null,className:at,cols:ee,colSpan:null,content:null,contentEditable:wt,controls:_e,controlsList:at,coords:ee|mi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:_e,defer:_e,dir:null,dirName:null,disabled:_e,download:Wc,draggable:wt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:_e,formTarget:null,headers:at,height:ee,hidden:_e,high:ee,href:null,hrefLang:null,htmlFor:at,httpEquiv:at,id:null,imageSizes:null,imageSrcSet:null,inert:_e,inputMode:null,integrity:null,is:null,isMap:_e,itemId:null,itemProp:at,itemRef:at,itemScope:_e,itemType:at,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:_e,low:ee,manifest:null,max:null,maxLength:ee,media:null,method:null,min:null,minLength:ee,multiple:_e,muted:_e,name:null,nonce:null,noModule:_e,noValidate:_e,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:_e,optimum:ee,pattern:null,ping:at,placeholder:null,playsInline:_e,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:_e,referrerPolicy:null,rel:at,required:_e,reversed:_e,rows:ee,rowSpan:ee,sandbox:at,scope:null,scoped:_e,seamless:_e,selected:_e,shadowRootClonable:_e,shadowRootDelegatesFocus:_e,shadowRootMode:null,shape:null,size:ee,sizes:null,slot:null,span:ee,spellCheck:wt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ee,step:null,style:null,tabIndex:ee,target:null,title:null,translate:null,type:null,typeMustMatch:_e,useMap:null,value:wt,width:ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:at,axis:null,background:null,bgColor:null,border:ee,borderColor:null,bottomMargin:ee,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:_e,declare:_e,event:null,face:null,frame:null,frameBorder:null,hSpace:ee,leftMargin:ee,link:null,longDesc:null,lowSrc:null,marginHeight:ee,marginWidth:ee,noResize:_e,noHref:_e,noShade:_e,noWrap:_e,object:null,profile:null,prompt:null,rev:null,rightMargin:ee,rules:null,scheme:null,scrolling:wt,standby:null,summary:null,text:null,topMargin:ee,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ee,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:_e,disableRemotePlayback:_e,prefix:null,property:null,results:ee,security:null,unselectable:null}}),Em=bi({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:Zc,properties:{about:an,accentHeight:ee,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ee,amplitude:ee,arabicForm:null,ascent:ee,attributeName:null,attributeType:null,azimuth:ee,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ee,by:null,calcMode:null,capHeight:ee,className:at,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:ee,diffuseConstant:ee,direction:null,display:null,dur:null,divisor:ee,dominantBaseline:null,download:_e,dx:null,dy:null,edgeMode:null,editable:null,elevation:ee,enableBackground:null,end:null,event:null,exponent:ee,externalResourcesRequired:null,fill:null,fillOpacity:ee,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:mi,g2:mi,glyphName:mi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ee,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ee,horizOriginX:ee,horizOriginY:ee,id:null,ideographic:ee,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ee,k:ee,k1:ee,k2:ee,k3:ee,k4:ee,kernelMatrix:an,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ee,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:ee,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:ee,overlineThickness:ee,paintOrder:null,panose1:null,path:null,pathLength:ee,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:at,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ee,pointsAtY:ee,pointsAtZ:ee,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:an,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:an,rev:an,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:an,requiredFeatures:an,requiredFonts:an,requiredFormats:an,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:ee,specularExponent:ee,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ee,strikethroughThickness:ee,string:null,stroke:null,strokeDashArray:an,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ee,strokeOpacity:ee,strokeWidth:null,style:null,surfaceScale:ee,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:an,tabIndex:ee,tableValues:null,target:null,targetX:ee,targetY:ee,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:an,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ee,underlineThickness:ee,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ee,values:null,vAlphabetic:ee,vMathematical:ee,vectorEffect:null,vHanging:ee,vIdeographic:ee,version:null,vertAdvY:ee,vertOriginX:ee,vertOriginY:ee,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ee,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Fm=/^data[-\w.:]+$/i,Uc=/-[a-z]/g,Pm=/[A-Z]/g;function Om(e,t){const r=zs(t);let u=t,o=Cn;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Fm.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(Uc,Bm);u="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!Uc.test(l)){let a=l.replace(Pm,Tm);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}o=Js}return new o(u,t)}function Tm(e){return"-"+e.toLowerCase()}function Bm(e){return e.charAt(1).toUpperCase()}const _m={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"},Gm=Vc([zc,Hc,Jc,jc,Sm],"html"),js=Vc([zc,Hc,Jc,jc,Em],"svg");function Rm(e){return e.join(" ").trim()}var Ln=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Us(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qc={},qc=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,km=/\n/g,Lm=/^\s*/,Dm=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Mm=/^:\s*/,Nm=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Vm=/^[;\s]*/,Wm=/^\s+|\s+$/g,Xm=`
|
|
2
|
+
`,$c="/",Kc="*",Hr="",Hm="comment",zm="declaration",Zm=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,u=1;function o(S){var A=S.match(km);A&&(r+=A.length);var F=S.lastIndexOf(Xm);u=~F?S.length-F:u+S.length}function l(){var S={line:r,column:u};return function(A){return A.position=new a(S),h(),A}}function a(S){this.start=S,this.end={line:r,column:u},this.source=t.source}a.prototype.content=e;function c(S){var A=new Error(t.source+":"+r+":"+u+": "+S);if(A.reason=S,A.filename=t.source,A.line=r,A.column=u,A.source=e,!t.silent)throw A}function f(S){var A=S.exec(e);if(A){var F=A[0];return o(F),e=e.slice(F.length),A}}function h(){f(Lm)}function p(S){var A;for(S=S||[];A=g();)A!==!1&&S.push(A);return S}function g(){var S=l();if(!($c!=e.charAt(0)||Kc!=e.charAt(1))){for(var A=2;Hr!=e.charAt(A)&&(Kc!=e.charAt(A)||$c!=e.charAt(A+1));)++A;if(A+=2,Hr===e.charAt(A-1))return c("End of comment missing");var F=e.slice(2,A-2);return u+=2,o(F),e=e.slice(A),u+=2,S({type:Hm,comment:F})}}function I(){var S=l(),A=f(Dm);if(A){if(g(),!f(Mm))return c("property missing ':'");var F=f(Nm),P=S({type:zm,property:ef(A[0].replace(qc,Hr)),value:F?ef(F[0].replace(qc,Hr)):Hr});return f(Vm),P}}function b(){var S=[];p(S);for(var A;A=I();)A!==!1&&(S.push(A),p(S));return S}return h(),b()};function ef(e){return e?e.replace(Wm,Hr):Hr}var Ym=Ln&&Ln.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Qc,"__esModule",{value:!0});var tf=Qc.default=jm,Jm=Ym(Zm);function jm(e,t){var r=null;if(!e||typeof e!="string")return r;var u=(0,Jm.default)(e),o=typeof t=="function";return u.forEach(function(l){if(l.type==="declaration"){var a=l.property,c=l.value;o?t(a,c,l):c&&(r=r||{},r[a]=c)}}),r}const Um=tf.default||tf,nf=rf("end"),Qs=rf("start");function rf(e){return t;function t(r){const u=r&&r.position&&r.position[e]||{};if(typeof u.line=="number"&&u.line>0&&typeof u.column=="number"&&u.column>0)return{line:u.line,column:u.column,offset:typeof u.offset=="number"&&u.offset>-1?u.offset:void 0}}}function Qm(e){const t=Qs(e),r=nf(e);if(t&&r)return{start:t,end:r}}function uu(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?uf(e.position):"start"in e||"end"in e?uf(e):"line"in e||"column"in e?qs(e):""}function qs(e){return of(e&&e.line)+":"+of(e&&e.column)}function uf(e){return qs(e&&e.start)+"-"+qs(e&&e.end)}function of(e){return e&&typeof e=="number"?e:1}class Vt extends Error{constructor(t,r,u){super(),typeof r=="string"&&(u=r,r=void 0);let o="",l={},a=!1;if(r&&("line"in r&&"column"in r?l={place:r}:"start"in r&&"end"in r?l={place:r}:"type"in r?l={ancestors:[r],place:r.position}:l={...r}),typeof t=="string"?o=t:!l.cause&&t&&(a=!0,o=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof u=="string"){const f=u.indexOf(":");f===-1?l.ruleId=u:(l.source=u.slice(0,f),l.ruleId=u.slice(f+1))}if(!l.place&&l.ancestors&&l.ancestors){const f=l.ancestors[l.ancestors.length-1];f&&(l.place=f.position)}const c=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file,this.message=o,this.line=c?c.line:void 0,this.name=uu(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=a&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual,this.expected,this.note,this.url}}Vt.prototype.file="",Vt.prototype.name="",Vt.prototype.reason="",Vt.prototype.message="",Vt.prototype.stack="",Vt.prototype.column=void 0,Vt.prototype.line=void 0,Vt.prototype.ancestors=void 0,Vt.prototype.cause=void 0,Vt.prototype.fatal=void 0,Vt.prototype.place=void 0,Vt.prototype.ruleId=void 0,Vt.prototype.source=void 0;const $s={}.hasOwnProperty,qm=new Map,$m=/[A-Z]/g,Km=/-([a-z])/g,eb=new Set(["table","tbody","thead","tfoot","tr"]),tb=new Set(["td","th"]),sf="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function nb(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let u;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");u=cb(r,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");u=ab(r,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:u,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?js:Gm,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=lf(o,e,void 0);return l&&typeof l!="string"?l:o.create(e,o.Fragment,{children:l||void 0},void 0)}function lf(e,t,r){if(t.type==="element")return rb(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return ib(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return ob(e,t,r);if(t.type==="mdxjsEsm")return ub(e,t);if(t.type==="root")return sb(e,t,r);if(t.type==="text")return lb(e,t)}function rb(e,t,r){const u=e.schema;let o=u;t.tagName.toLowerCase()==="svg"&&u.space==="html"&&(o=js,e.schema=o),e.ancestors.push(t);const l=cf(e,t.tagName,!1),a=fb(e,t);let c=el(e,t);return eb.has(t.tagName)&&(c=c.filter(function(f){return typeof f=="string"?!xm(f):!0})),af(e,a,l,t),Ks(a,c),e.ancestors.pop(),e.schema=u,e.create(t,l,a,r)}function ib(e,t){if(t.data&&t.data.estree&&e.evaluater){const u=t.data.estree.body[0];return u.type,e.evaluater.evaluateExpression(u.expression)}ou(e,t.position)}function ub(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ou(e,t.position)}function ob(e,t,r){const u=e.schema;let o=u;t.name==="svg"&&u.space==="html"&&(o=js,e.schema=o),e.ancestors.push(t);const l=t.name===null?e.Fragment:cf(e,t.name,!0),a=db(e,t),c=el(e,t);return af(e,a,l,t),Ks(a,c),e.ancestors.pop(),e.schema=u,e.create(t,l,a,r)}function sb(e,t,r){const u={};return Ks(u,el(e,t)),e.create(t,e.Fragment,u,r)}function lb(e,t){return t.value}function af(e,t,r,u){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=u)}function Ks(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function ab(e,t,r){return u;function u(o,l,a,c){const h=Array.isArray(a.children)?r:t;return c?h(l,a,c):h(l,a)}}function cb(e,t){return r;function r(u,o,l,a){const c=Array.isArray(l.children),f=Qs(u);return t(o,l,a,c,{columnNumber:f?f.column-1:void 0,fileName:e,lineNumber:f?f.line:void 0},void 0)}}function fb(e,t){const r={};let u,o;for(o in t.properties)if(o!=="children"&&$s.call(t.properties,o)){const l=hb(e,o,t.properties[o]);if(l){const[a,c]=l;e.tableCellAlignToStyle&&a==="align"&&typeof c=="string"&&tb.has(t.tagName)?u=c:r[a]=c}}if(u){const l=r.style||(r.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=u}return r}function db(e,t){const r={};for(const u of t.attributes)if(u.type==="mdxJsxExpressionAttribute")if(u.data&&u.data.estree&&e.evaluater){const l=u.data.estree.body[0];l.type;const a=l.expression;a.type;const c=a.properties[0];c.type,Object.assign(r,e.evaluater.evaluateExpression(c.argument))}else ou(e,t.position);else{const o=u.name;let l;if(u.value&&typeof u.value=="object")if(u.value.data&&u.value.data.estree&&e.evaluater){const c=u.value.data.estree.body[0];c.type,l=e.evaluater.evaluateExpression(c.expression)}else ou(e,t.position);else l=u.value===null?!0:u.value;r[o]=l}return r}function el(e,t){const r=[];let u=-1;const o=e.passKeys?new Map:qm;for(;++u<t.children.length;){const l=t.children[u];let a;if(e.passKeys){const f=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(f){const h=o.get(f)||0;a=f+"-"+h,o.set(f,h+1)}}const c=lf(e,l,a);c!==void 0&&r.push(c)}return r}function hb(e,t,r){const u=Om(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=u.commaSeparated?bm(r):Rm(r)),u.property==="style"){let o=typeof r=="object"?r:pb(e,String(r));return e.stylePropertyNameCase==="css"&&(o=gb(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&u.space?_m[u.property]||u.property:u.attribute,r]}}function pb(e,t){const r={};try{Um(t,u)}catch(o){if(!e.ignoreInvalidStyle){const l=o,a=new Vt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:l,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=sf+"#cannot-parse-style-attribute",a}}return r;function u(o,l){let a=o;a.slice(0,2)!=="--"&&(a.slice(0,4)==="-ms-"&&(a="ms-"+a.slice(4)),a=a.replace(Km,bb)),r[a]=l}}function cf(e,t,r){let u;if(!r)u={type:"Literal",value:t};else if(t.includes(".")){const o=t.split(".");let l=-1,a;for(;++l<o.length;){const c=Mc(o[l])?{type:"Identifier",name:o[l]}:{type:"Literal",value:o[l]};a=a?{type:"MemberExpression",object:a,property:c,computed:!!(l&&c.type==="Literal"),optional:!1}:c}u=a}else u=Mc(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(u.type==="Literal"){const o=u.value;return $s.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(u);ou(e)}function ou(e,t){const r=new Vt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=sf+"#cannot-handle-mdx-estrees-without-createevaluater",r}function gb(e){const t={};let r;for(r in e)$s.call(e,r)&&(t[mb(r)]=e[r]);return t}function mb(e){let t=e.replace($m,vb);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function bb(e,t){return t.toUpperCase()}function vb(e){return"-"+e.toLowerCase()}const tl={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"]},yb={};function Ib(e,t){const r=yb,u=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,o=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return ff(e,u,o)}function ff(e,t,r){if(Cb(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return df(e.children,t,r)}return Array.isArray(e)?df(e,t,r):""}function df(e,t,r){const u=[];let o=-1;for(;++o<e.length;)u[o]=ff(e[o],t,r);return u.join("")}function Cb(e){return!!(e&&typeof e=="object")}const hf=document.createElement("i");function nl(e){const t="&"+e+";";hf.innerHTML=t;const r=hf.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function Yn(e,t,r,u){const o=e.length;let l=0,a;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,r=r>0?r:0,u.length<1e4)a=Array.from(u),a.unshift(t,r),e.splice(...a);else for(r&&e.splice(t,r);l<u.length;)a=u.slice(l,l+1e4),a.unshift(t,0),e.splice(...a),l+=1e4,t+=1e4}function xn(e,t){return e.length>0?(Yn(e,e.length,0,t),e):t}const pf={}.hasOwnProperty;function xb(e){const t={};let r=-1;for(;++r<e.length;)Ab(t,e[r]);return t}function Ab(e,t){let r;for(r in t){const o=(pf.call(e,r)?e[r]:void 0)||(e[r]={}),l=t[r];let a;if(l)for(a in l){pf.call(o,a)||(o[a]=[]);const c=l[a];wb(o[a],Array.isArray(c)?c:c?[c]:[])}}}function wb(e,t){let r=-1;const u=[];for(;++r<t.length;)(t[r].add==="after"?e:u).push(t[r]);Yn(e,0,0,u)}function gf(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function vi(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Jn=xr(/[A-Za-z]/),cn=xr(/[\dA-Za-z]/),Sb=xr(/[#-'*+\--9=?A-Z^-~]/);function rl(e){return e!==null&&(e<32||e===127)}const il=xr(/\d/),Eb=xr(/[\dA-Fa-f]/),Fb=xr(/[!-/:-@[-`{-~]/);function Ae(e){return e!==null&&e<-2}function $t(e){return e!==null&&(e<0||e===32)}function Ue(e){return e===-2||e===-1||e===32}const Pb=xr(new RegExp("\\p{P}|\\p{S}","u")),Ob=xr(/\s/);function xr(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function yi(e){const t=[];let r=-1,u=0,o=0;for(;++r<e.length;){const l=e.charCodeAt(r);let a="";if(l===37&&cn(e.charCodeAt(r+1))&&cn(e.charCodeAt(r+2)))o=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(a=String.fromCharCode(l));else if(l>55295&&l<57344){const c=e.charCodeAt(r+1);l<56320&&c>56319&&c<57344?(a=String.fromCharCode(l,c),o=1):a="�"}else a=String.fromCharCode(l);a&&(t.push(e.slice(u,r),encodeURIComponent(a)),u=r+o+1,a=""),o&&(r+=o,o=0)}return t.join("")+e.slice(u)}function ct(e,t,r,u){const o=u?u-1:Number.POSITIVE_INFINITY;let l=0;return a;function a(f){return Ue(f)?(e.enter(r),c(f)):t(f)}function c(f){return Ue(f)&&l++<o?(e.consume(f),c):(e.exit(r),t(f))}}const Tb={tokenize:Bb};function Bb(e){const t=e.attempt(this.parser.constructs.contentInitial,u,o);let r;return t;function u(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),ct(e,t,"linePrefix")}function o(c){return e.enter("paragraph"),l(c)}function l(c){const f=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=f),r=f,a(c)}function a(c){if(c===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(c);return}return Ae(c)?(e.consume(c),e.exit("chunkText"),l):(e.consume(c),a)}}const _b={tokenize:Gb},mf={tokenize:Rb};function Gb(e){const t=this,r=[];let u=0,o,l,a;return c;function c(k){if(u<r.length){const N=r[u];return t.containerState=N[1],e.attempt(N[0].continuation,f,h)(k)}return h(k)}function f(k){if(u++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&L();const N=t.events.length;let X=N,R;for(;X--;)if(t.events[X][0]==="exit"&&t.events[X][1].type==="chunkFlow"){R=t.events[X][1].end;break}P(u);let Y=N;for(;Y<t.events.length;)t.events[Y][1].end={...R},Y++;return Yn(t.events,X+1,0,t.events.slice(N)),t.events.length=Y,h(k)}return c(k)}function h(k){if(u===r.length){if(!o)return I(k);if(o.currentConstruct&&o.currentConstruct.concrete)return S(k);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(mf,p,g)(k)}function p(k){return o&&L(),P(u),I(k)}function g(k){return t.parser.lazy[t.now().line]=u!==r.length,a=t.now().offset,S(k)}function I(k){return t.containerState={},e.attempt(mf,b,S)(k)}function b(k){return u++,r.push([t.currentConstruct,t.containerState]),I(k)}function S(k){if(k===null){o&&L(),P(0),e.consume(k);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:l}),A(k)}function A(k){if(k===null){F(e.exit("chunkFlow"),!0),P(0),e.consume(k);return}return Ae(k)?(e.consume(k),F(e.exit("chunkFlow")),u=0,t.interrupt=void 0,c):(e.consume(k),A)}function F(k,N){const X=t.sliceStream(k);if(N&&X.push(null),k.previous=l,l&&(l.next=k),l=k,o.defineSkip(k.start),o.write(X),t.parser.lazy[k.start.line]){let R=o.events.length;for(;R--;)if(o.events[R][1].start.offset<a&&(!o.events[R][1].end||o.events[R][1].end.offset>a))return;const Y=t.events.length;let D=Y,j,Q;for(;D--;)if(t.events[D][0]==="exit"&&t.events[D][1].type==="chunkFlow"){if(j){Q=t.events[D][1].end;break}j=!0}for(P(u),R=Y;R<t.events.length;)t.events[R][1].end={...Q},R++;Yn(t.events,D+1,0,t.events.slice(Y)),t.events.length=R}}function P(k){let N=r.length;for(;N-- >k;){const X=r[N];t.containerState=X[1],X[0].exit.call(t,e)}r.length=k}function L(){o.write([null]),l=void 0,o=void 0,t.containerState._closeFlow=void 0}}function Rb(e,t,r){return ct(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function bf(e){if(e===null||$t(e)||Ob(e))return 1;if(Pb(e))return 2}function ul(e,t,r){const u=[];let o=-1;for(;++o<e.length;){const l=e[o].resolveAll;l&&!u.includes(l)&&(t=l(t,r),u.push(l))}return t}const ol={name:"attention",resolveAll:kb,tokenize:Lb};function kb(e,t){let r=-1,u,o,l,a,c,f,h,p;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(u=r;u--;)if(e[u][0]==="exit"&&e[u][1].type==="attentionSequence"&&e[u][1]._open&&t.sliceSerialize(e[u][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[u][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[u][1].end.offset-e[u][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;f=e[u][1].end.offset-e[u][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const g={...e[u][1].end},I={...e[r][1].start};vf(g,-f),vf(I,f),a={type:f>1?"strongSequence":"emphasisSequence",start:g,end:{...e[u][1].end}},c={type:f>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:I},l={type:f>1?"strongText":"emphasisText",start:{...e[u][1].end},end:{...e[r][1].start}},o={type:f>1?"strong":"emphasis",start:{...a.start},end:{...c.end}},e[u][1].end={...a.start},e[r][1].start={...c.end},h=[],e[u][1].end.offset-e[u][1].start.offset&&(h=xn(h,[["enter",e[u][1],t],["exit",e[u][1],t]])),h=xn(h,[["enter",o,t],["enter",a,t],["exit",a,t],["enter",l,t]]),h=xn(h,ul(t.parser.constructs.insideSpan.null,e.slice(u+1,r),t)),h=xn(h,[["exit",l,t],["enter",c,t],["exit",c,t],["exit",o,t]]),e[r][1].end.offset-e[r][1].start.offset?(p=2,h=xn(h,[["enter",e[r][1],t],["exit",e[r][1],t]])):p=0,Yn(e,u-1,r-u+3,h),r=u+h.length-p-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function Lb(e,t){const r=this.parser.constructs.attentionMarkers.null,u=this.previous,o=bf(u);let l;return a;function a(f){return l=f,e.enter("attentionSequence"),c(f)}function c(f){if(f===l)return e.consume(f),c;const h=e.exit("attentionSequence"),p=bf(f),g=!p||p===2&&o||r.includes(f),I=!o||o===2&&p||r.includes(u);return h._open=!!(l===42?g:g&&(o||!I)),h._close=!!(l===42?I:I&&(p||!g)),t(f)}}function vf(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Db={name:"autolink",tokenize:Mb};function Mb(e,t,r){let u=0;return o;function o(b){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(b){return Jn(b)?(e.consume(b),a):b===64?r(b):h(b)}function a(b){return b===43||b===45||b===46||cn(b)?(u=1,c(b)):h(b)}function c(b){return b===58?(e.consume(b),u=0,f):(b===43||b===45||b===46||cn(b))&&u++<32?(e.consume(b),c):(u=0,h(b))}function f(b){return b===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),t):b===null||b===32||b===60||rl(b)?r(b):(e.consume(b),f)}function h(b){return b===64?(e.consume(b),p):Sb(b)?(e.consume(b),h):r(b)}function p(b){return cn(b)?g(b):r(b)}function g(b){return b===46?(e.consume(b),u=0,p):b===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),t):I(b)}function I(b){if((b===45||cn(b))&&u++<63){const S=b===45?I:g;return e.consume(b),S}return r(b)}}const Qu={partial:!0,tokenize:Nb};function Nb(e,t,r){return u;function u(l){return Ue(l)?ct(e,o,"linePrefix")(l):o(l)}function o(l){return l===null||Ae(l)?t(l):r(l)}}const yf={continuation:{tokenize:Wb},exit:Xb,name:"blockQuote",tokenize:Vb};function Vb(e,t,r){const u=this;return o;function o(a){if(a===62){const c=u.containerState;return c.open||(e.enter("blockQuote",{_container:!0}),c.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),l}return r(a)}function l(a){return Ue(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function Wb(e,t,r){const u=this;return o;function o(a){return Ue(a)?ct(e,l,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):l(a)}function l(a){return e.attempt(yf,t,r)(a)}}function Xb(e){e.exit("blockQuote")}const If={name:"characterEscape",tokenize:Hb};function Hb(e,t,r){return u;function u(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),o}function o(l){return Fb(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(l)}}const Cf={name:"characterReference",tokenize:zb};function zb(e,t,r){const u=this;let o=0,l,a;return c;function c(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),f}function f(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),l=31,a=cn,p(g))}function h(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,a=Eb,p):(e.enter("characterReferenceValue"),l=7,a=il,p(g))}function p(g){if(g===59&&o){const I=e.exit("characterReferenceValue");return a===cn&&!nl(u.sliceSerialize(I))?r(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(g)&&o++<l?(e.consume(g),p):r(g)}}const xf={partial:!0,tokenize:Yb},Af={concrete:!0,name:"codeFenced",tokenize:Zb};function Zb(e,t,r){const u=this,o={partial:!0,tokenize:X};let l=0,a=0,c;return f;function f(R){return h(R)}function h(R){const Y=u.events[u.events.length-1];return l=Y&&Y[1].type==="linePrefix"?Y[2].sliceSerialize(Y[1],!0).length:0,c=R,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(R)}function p(R){return R===c?(a++,e.consume(R),p):a<3?r(R):(e.exit("codeFencedFenceSequence"),Ue(R)?ct(e,g,"whitespace")(R):g(R))}function g(R){return R===null||Ae(R)?(e.exit("codeFencedFence"),u.interrupt?t(R):e.check(xf,A,N)(R)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),I(R))}function I(R){return R===null||Ae(R)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(R)):Ue(R)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ct(e,b,"whitespace")(R)):R===96&&R===c?r(R):(e.consume(R),I)}function b(R){return R===null||Ae(R)?g(R):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),S(R))}function S(R){return R===null||Ae(R)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(R)):R===96&&R===c?r(R):(e.consume(R),S)}function A(R){return e.attempt(o,N,F)(R)}function F(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),P}function P(R){return l>0&&Ue(R)?ct(e,L,"linePrefix",l+1)(R):L(R)}function L(R){return R===null||Ae(R)?e.check(xf,A,N)(R):(e.enter("codeFlowValue"),k(R))}function k(R){return R===null||Ae(R)?(e.exit("codeFlowValue"),L(R)):(e.consume(R),k)}function N(R){return e.exit("codeFenced"),t(R)}function X(R,Y,D){let j=0;return Q;function Q(ue){return R.enter("lineEnding"),R.consume(ue),R.exit("lineEnding"),U}function U(ue){return R.enter("codeFencedFence"),Ue(ue)?ct(R,q,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ue):q(ue)}function q(ue){return ue===c?(R.enter("codeFencedFenceSequence"),be(ue)):D(ue)}function be(ue){return ue===c?(j++,R.consume(ue),be):j>=a?(R.exit("codeFencedFenceSequence"),Ue(ue)?ct(R,Se,"whitespace")(ue):Se(ue)):D(ue)}function Se(ue){return ue===null||Ae(ue)?(R.exit("codeFencedFence"),Y(ue)):D(ue)}}}function Yb(e,t,r){const u=this;return o;function o(a){return a===null?r(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),l)}function l(a){return u.parser.lazy[u.now().line]?r(a):t(a)}}const sl={name:"codeIndented",tokenize:jb},Jb={partial:!0,tokenize:Ub};function jb(e,t,r){const u=this;return o;function o(h){return e.enter("codeIndented"),ct(e,l,"linePrefix",5)(h)}function l(h){const p=u.events[u.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?a(h):r(h)}function a(h){return h===null?f(h):Ae(h)?e.attempt(Jb,a,f)(h):(e.enter("codeFlowValue"),c(h))}function c(h){return h===null||Ae(h)?(e.exit("codeFlowValue"),a(h)):(e.consume(h),c)}function f(h){return e.exit("codeIndented"),t(h)}}function Ub(e,t,r){const u=this;return o;function o(a){return u.parser.lazy[u.now().line]?r(a):Ae(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):ct(e,l,"linePrefix",5)(a)}function l(a){const c=u.events[u.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(a):Ae(a)?o(a):r(a)}}const Qb={name:"codeText",previous:$b,resolve:qb,tokenize:Kb};function qb(e){let t=e.length-4,r=3,u,o;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(u=r;++u<t;)if(e[u][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(u=r-1,t++;++u<=t;)o===void 0?u!==t&&e[u][1].type!=="lineEnding"&&(o=u):(u===t||e[u][1].type==="lineEnding")&&(e[o][1].type="codeTextData",u!==o+2&&(e[o][1].end=e[u-1][1].end,e.splice(o+2,u-o-2),t-=u-o-2,u=o+2),o=void 0);return e}function $b(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Kb(e,t,r){let u=0,o,l;return a;function a(g){return e.enter("codeText"),e.enter("codeTextSequence"),c(g)}function c(g){return g===96?(e.consume(g),u++,c):(e.exit("codeTextSequence"),f(g))}function f(g){return g===null?r(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),f):g===96?(l=e.enter("codeTextSequence"),o=0,p(g)):Ae(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),f):(e.enter("codeTextData"),h(g))}function h(g){return g===null||g===32||g===96||Ae(g)?(e.exit("codeTextData"),f(g)):(e.consume(g),h)}function p(g){return g===96?(e.consume(g),o++,p):o===u?(e.exit("codeTextSequence"),e.exit("codeText"),t(g)):(l.type="codeTextData",h(g))}}class e0{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,r){const u=r??Number.POSITIVE_INFINITY;return u<this.left.length?this.left.slice(t,u):t>this.left.length?this.right.slice(this.right.length-u+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-u+this.left.length).reverse())}splice(t,r,u){const o=r||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return u&&su(this.left,u),l.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),su(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),su(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 r=this.left.splice(t,Number.POSITIVE_INFINITY);su(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);su(this.left,r.reverse())}}}function su(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function wf(e){const t={};let r=-1,u,o,l,a,c,f,h;const p=new e0(e);for(;++r<p.length;){for(;r in t;)r=t[r];if(u=p.get(r),r&&u[1].type==="chunkFlow"&&p.get(r-1)[1].type==="listItemPrefix"&&(f=u[1]._tokenizer.events,l=0,l<f.length&&f[l][1].type==="lineEndingBlank"&&(l+=2),l<f.length&&f[l][1].type==="content"))for(;++l<f.length&&f[l][1].type!=="content";)f[l][1].type==="chunkText"&&(f[l][1]._isInFirstContentOfListItem=!0,l++);if(u[0]==="enter")u[1].contentType&&(Object.assign(t,t0(p,r)),r=t[r],h=!0);else if(u[1]._container){for(l=r,o=void 0;l--&&(a=p.get(l),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank");)a[0]==="enter"&&(o&&(p.get(o)[1].type="lineEndingBlank"),a[1].type="lineEnding",o=l);o&&(u[1].end={...p.get(o)[1].start},c=p.slice(o,r),c.unshift(u),p.splice(o,r-o+1,c))}}return Yn(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!h}function t0(e,t){const r=e.get(t)[1],u=e.get(t)[2];let o=t-1;const l=[],a=r._tokenizer||u.parser[r.contentType](r.start),c=a.events,f=[],h={};let p,g,I=-1,b=r,S=0,A=0;const F=[A];for(;b;){for(;e.get(++o)[1]!==b;);l.push(o),b._tokenizer||(p=u.sliceStream(b),b.next||p.push(null),g&&a.defineSkip(b.start),b._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(p),b._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),g=b,b=b.next}for(b=r;++I<c.length;)c[I][0]==="exit"&&c[I-1][0]==="enter"&&c[I][1].type===c[I-1][1].type&&c[I][1].start.line!==c[I][1].end.line&&(A=I+1,F.push(A),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(a.events=[],b?(b._tokenizer=void 0,b.previous=void 0):F.pop(),I=F.length;I--;){const P=c.slice(F[I],F[I+1]),L=l.pop();f.push([L,L+P.length-1]),e.splice(L,2,P)}for(f.reverse(),I=-1;++I<f.length;)h[S+f[I][0]]=S+f[I][1],S+=f[I][1]-f[I][0]-1;return h}const n0={resolve:i0,tokenize:u0},r0={partial:!0,tokenize:o0};function i0(e){return wf(e),e}function u0(e,t){let r;return u;function u(c){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),o(c)}function o(c){return c===null?l(c):Ae(c)?e.check(r0,a,l)(c):(e.consume(c),o)}function l(c){return e.exit("chunkContent"),e.exit("content"),t(c)}function a(c){return e.consume(c),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,o}}function o0(e,t,r){const u=this;return o;function o(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),ct(e,l,"linePrefix")}function l(a){if(a===null||Ae(a))return r(a);const c=u.events[u.events.length-1];return!u.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(a):e.interrupt(u.parser.constructs.flow,r,t)(a)}}function Sf(e,t,r,u,o,l,a,c,f){const h=f||Number.POSITIVE_INFINITY;let p=0;return g;function g(P){return P===60?(e.enter(u),e.enter(o),e.enter(l),e.consume(P),e.exit(l),I):P===null||P===32||P===41||rl(P)?r(P):(e.enter(u),e.enter(a),e.enter(c),e.enter("chunkString",{contentType:"string"}),A(P))}function I(P){return P===62?(e.enter(l),e.consume(P),e.exit(l),e.exit(o),e.exit(u),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),b(P))}function b(P){return P===62?(e.exit("chunkString"),e.exit(c),I(P)):P===null||P===60||Ae(P)?r(P):(e.consume(P),P===92?S:b)}function S(P){return P===60||P===62||P===92?(e.consume(P),b):b(P)}function A(P){return!p&&(P===null||P===41||$t(P))?(e.exit("chunkString"),e.exit(c),e.exit(a),e.exit(u),t(P)):p<h&&P===40?(e.consume(P),p++,A):P===41?(e.consume(P),p--,A):P===null||P===32||P===40||rl(P)?r(P):(e.consume(P),P===92?F:A)}function F(P){return P===40||P===41||P===92?(e.consume(P),A):A(P)}}function Ef(e,t,r,u,o,l){const a=this;let c=0,f;return h;function h(b){return e.enter(u),e.enter(o),e.consume(b),e.exit(o),e.enter(l),p}function p(b){return c>999||b===null||b===91||b===93&&!f||b===94&&!c&&"_hiddenFootnoteSupport"in a.parser.constructs?r(b):b===93?(e.exit(l),e.enter(o),e.consume(b),e.exit(o),e.exit(u),t):Ae(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),g(b))}function g(b){return b===null||b===91||b===93||Ae(b)||c++>999?(e.exit("chunkString"),p(b)):(e.consume(b),f||(f=!Ue(b)),b===92?I:g)}function I(b){return b===91||b===92||b===93?(e.consume(b),c++,g):g(b)}}function Ff(e,t,r,u,o,l){let a;return c;function c(I){return I===34||I===39||I===40?(e.enter(u),e.enter(o),e.consume(I),e.exit(o),a=I===40?41:I,f):r(I)}function f(I){return I===a?(e.enter(o),e.consume(I),e.exit(o),e.exit(u),t):(e.enter(l),h(I))}function h(I){return I===a?(e.exit(l),f(a)):I===null?r(I):Ae(I)?(e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),ct(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(I))}function p(I){return I===a||I===null||Ae(I)?(e.exit("chunkString"),h(I)):(e.consume(I),I===92?g:p)}function g(I){return I===a||I===92?(e.consume(I),p):p(I)}}function lu(e,t){let r;return u;function u(o){return Ae(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r=!0,u):Ue(o)?ct(e,u,r?"linePrefix":"lineSuffix")(o):t(o)}}const s0={name:"definition",tokenize:a0},l0={partial:!0,tokenize:c0};function a0(e,t,r){const u=this;let o;return l;function l(b){return e.enter("definition"),a(b)}function a(b){return Ef.call(u,e,c,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function c(b){return o=vi(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)),b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),f):r(b)}function f(b){return $t(b)?lu(e,h)(b):h(b)}function h(b){return Sf(e,p,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function p(b){return e.attempt(l0,g,g)(b)}function g(b){return Ue(b)?ct(e,I,"whitespace")(b):I(b)}function I(b){return b===null||Ae(b)?(e.exit("definition"),u.parser.defined.push(o),t(b)):r(b)}}function c0(e,t,r){return u;function u(c){return $t(c)?lu(e,o)(c):r(c)}function o(c){return Ff(e,l,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function l(c){return Ue(c)?ct(e,a,"whitespace")(c):a(c)}function a(c){return c===null||Ae(c)?t(c):r(c)}}const f0={name:"hardBreakEscape",tokenize:d0};function d0(e,t,r){return u;function u(l){return e.enter("hardBreakEscape"),e.consume(l),o}function o(l){return Ae(l)?(e.exit("hardBreakEscape"),t(l)):r(l)}}const h0={name:"headingAtx",resolve:p0,tokenize:g0};function p0(e,t){let r=e.length-2,u=3,o,l;return e[u][1].type==="whitespace"&&(u+=2),r-2>u&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(u===r-1||r-4>u&&e[r-2][1].type==="whitespace")&&(r-=u+1===r?2:4),r>u&&(o={type:"atxHeadingText",start:e[u][1].start,end:e[r][1].end},l={type:"chunkText",start:e[u][1].start,end:e[r][1].end,contentType:"text"},Yn(e,u,r-u+1,[["enter",o,t],["enter",l,t],["exit",l,t],["exit",o,t]])),e}function g0(e,t,r){let u=0;return o;function o(p){return e.enter("atxHeading"),l(p)}function l(p){return e.enter("atxHeadingSequence"),a(p)}function a(p){return p===35&&u++<6?(e.consume(p),a):p===null||$t(p)?(e.exit("atxHeadingSequence"),c(p)):r(p)}function c(p){return p===35?(e.enter("atxHeadingSequence"),f(p)):p===null||Ae(p)?(e.exit("atxHeading"),t(p)):Ue(p)?ct(e,c,"whitespace")(p):(e.enter("atxHeadingText"),h(p))}function f(p){return p===35?(e.consume(p),f):(e.exit("atxHeadingSequence"),c(p))}function h(p){return p===null||p===35||$t(p)?(e.exit("atxHeadingText"),c(p)):(e.consume(p),h)}}const m0=["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"],Pf=["pre","script","style","textarea"],b0={concrete:!0,name:"htmlFlow",resolveTo:I0,tokenize:C0},v0={partial:!0,tokenize:A0},y0={partial:!0,tokenize:x0};function I0(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 C0(e,t,r){const u=this;let o,l,a,c,f;return h;function h(w){return p(w)}function p(w){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(w),g}function g(w){return w===33?(e.consume(w),I):w===47?(e.consume(w),l=!0,A):w===63?(e.consume(w),o=3,u.interrupt?t:E):Jn(w)?(e.consume(w),a=String.fromCharCode(w),F):r(w)}function I(w){return w===45?(e.consume(w),o=2,b):w===91?(e.consume(w),o=5,c=0,S):Jn(w)?(e.consume(w),o=4,u.interrupt?t:E):r(w)}function b(w){return w===45?(e.consume(w),u.interrupt?t:E):r(w)}function S(w){const je="CDATA[";return w===je.charCodeAt(c++)?(e.consume(w),c===je.length?u.interrupt?t:q:S):r(w)}function A(w){return Jn(w)?(e.consume(w),a=String.fromCharCode(w),F):r(w)}function F(w){if(w===null||w===47||w===62||$t(w)){const je=w===47,ge=a.toLowerCase();return!je&&!l&&Pf.includes(ge)?(o=1,u.interrupt?t(w):q(w)):m0.includes(a.toLowerCase())?(o=6,je?(e.consume(w),P):u.interrupt?t(w):q(w)):(o=7,u.interrupt&&!u.parser.lazy[u.now().line]?r(w):l?L(w):k(w))}return w===45||cn(w)?(e.consume(w),a+=String.fromCharCode(w),F):r(w)}function P(w){return w===62?(e.consume(w),u.interrupt?t:q):r(w)}function L(w){return Ue(w)?(e.consume(w),L):Q(w)}function k(w){return w===47?(e.consume(w),Q):w===58||w===95||Jn(w)?(e.consume(w),N):Ue(w)?(e.consume(w),k):Q(w)}function N(w){return w===45||w===46||w===58||w===95||cn(w)?(e.consume(w),N):X(w)}function X(w){return w===61?(e.consume(w),R):Ue(w)?(e.consume(w),X):k(w)}function R(w){return w===null||w===60||w===61||w===62||w===96?r(w):w===34||w===39?(e.consume(w),f=w,Y):Ue(w)?(e.consume(w),R):D(w)}function Y(w){return w===f?(e.consume(w),f=null,j):w===null||Ae(w)?r(w):(e.consume(w),Y)}function D(w){return w===null||w===34||w===39||w===47||w===60||w===61||w===62||w===96||$t(w)?X(w):(e.consume(w),D)}function j(w){return w===47||w===62||Ue(w)?k(w):r(w)}function Q(w){return w===62?(e.consume(w),U):r(w)}function U(w){return w===null||Ae(w)?q(w):Ue(w)?(e.consume(w),U):r(w)}function q(w){return w===45&&o===2?(e.consume(w),pe):w===60&&o===1?(e.consume(w),Ee):w===62&&o===4?(e.consume(w),xe):w===63&&o===3?(e.consume(w),E):w===93&&o===5?(e.consume(w),Ke):Ae(w)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(v0,Le,be)(w)):w===null||Ae(w)?(e.exit("htmlFlowData"),be(w)):(e.consume(w),q)}function be(w){return e.check(y0,Se,Le)(w)}function Se(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),ue}function ue(w){return w===null||Ae(w)?be(w):(e.enter("htmlFlowData"),q(w))}function pe(w){return w===45?(e.consume(w),E):q(w)}function Ee(w){return w===47?(e.consume(w),a="",Oe):q(w)}function Oe(w){if(w===62){const je=a.toLowerCase();return Pf.includes(je)?(e.consume(w),xe):q(w)}return Jn(w)&&a.length<8?(e.consume(w),a+=String.fromCharCode(w),Oe):q(w)}function Ke(w){return w===93?(e.consume(w),E):q(w)}function E(w){return w===62?(e.consume(w),xe):w===45&&o===2?(e.consume(w),E):q(w)}function xe(w){return w===null||Ae(w)?(e.exit("htmlFlowData"),Le(w)):(e.consume(w),xe)}function Le(w){return e.exit("htmlFlow"),t(w)}}function x0(e,t,r){const u=this;return o;function o(a){return Ae(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),l):r(a)}function l(a){return u.parser.lazy[u.now().line]?r(a):t(a)}}function A0(e,t,r){return u;function u(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(Qu,t,r)}}const w0={name:"htmlText",tokenize:S0};function S0(e,t,r){const u=this;let o,l,a;return c;function c(E){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(E),f}function f(E){return E===33?(e.consume(E),h):E===47?(e.consume(E),X):E===63?(e.consume(E),k):Jn(E)?(e.consume(E),D):r(E)}function h(E){return E===45?(e.consume(E),p):E===91?(e.consume(E),l=0,S):Jn(E)?(e.consume(E),L):r(E)}function p(E){return E===45?(e.consume(E),b):r(E)}function g(E){return E===null?r(E):E===45?(e.consume(E),I):Ae(E)?(a=g,Ee(E)):(e.consume(E),g)}function I(E){return E===45?(e.consume(E),b):g(E)}function b(E){return E===62?pe(E):E===45?I(E):g(E)}function S(E){const xe="CDATA[";return E===xe.charCodeAt(l++)?(e.consume(E),l===xe.length?A:S):r(E)}function A(E){return E===null?r(E):E===93?(e.consume(E),F):Ae(E)?(a=A,Ee(E)):(e.consume(E),A)}function F(E){return E===93?(e.consume(E),P):A(E)}function P(E){return E===62?pe(E):E===93?(e.consume(E),P):A(E)}function L(E){return E===null||E===62?pe(E):Ae(E)?(a=L,Ee(E)):(e.consume(E),L)}function k(E){return E===null?r(E):E===63?(e.consume(E),N):Ae(E)?(a=k,Ee(E)):(e.consume(E),k)}function N(E){return E===62?pe(E):k(E)}function X(E){return Jn(E)?(e.consume(E),R):r(E)}function R(E){return E===45||cn(E)?(e.consume(E),R):Y(E)}function Y(E){return Ae(E)?(a=Y,Ee(E)):Ue(E)?(e.consume(E),Y):pe(E)}function D(E){return E===45||cn(E)?(e.consume(E),D):E===47||E===62||$t(E)?j(E):r(E)}function j(E){return E===47?(e.consume(E),pe):E===58||E===95||Jn(E)?(e.consume(E),Q):Ae(E)?(a=j,Ee(E)):Ue(E)?(e.consume(E),j):pe(E)}function Q(E){return E===45||E===46||E===58||E===95||cn(E)?(e.consume(E),Q):U(E)}function U(E){return E===61?(e.consume(E),q):Ae(E)?(a=U,Ee(E)):Ue(E)?(e.consume(E),U):j(E)}function q(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(e.consume(E),o=E,be):Ae(E)?(a=q,Ee(E)):Ue(E)?(e.consume(E),q):(e.consume(E),Se)}function be(E){return E===o?(e.consume(E),o=void 0,ue):E===null?r(E):Ae(E)?(a=be,Ee(E)):(e.consume(E),be)}function Se(E){return E===null||E===34||E===39||E===60||E===61||E===96?r(E):E===47||E===62||$t(E)?j(E):(e.consume(E),Se)}function ue(E){return E===47||E===62||$t(E)?j(E):r(E)}function pe(E){return E===62?(e.consume(E),e.exit("htmlTextData"),e.exit("htmlText"),t):r(E)}function Ee(E){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),Oe}function Oe(E){return Ue(E)?ct(e,Ke,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):Ke(E)}function Ke(E){return e.enter("htmlTextData"),a(E)}}const ll={name:"labelEnd",resolveAll:O0,resolveTo:T0,tokenize:B0},E0={tokenize:_0},F0={tokenize:G0},P0={tokenize:R0};function O0(e){let t=-1;const r=[];for(;++t<e.length;){const u=e[t][1];if(r.push(e[t]),u.type==="labelImage"||u.type==="labelLink"||u.type==="labelEnd"){const o=u.type==="labelImage"?4:2;u.type="data",t+=o}}return e.length!==r.length&&Yn(e,0,e.length,r),e}function T0(e,t){let r=e.length,u=0,o,l,a,c;for(;r--;)if(o=e[r][1],l){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[r][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(a){if(e[r][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(l=r,o.type!=="labelLink")){u=2;break}}else o.type==="labelEnd"&&(a=r);const f={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[l][1].start},end:{...e[a][1].end}},p={type:"labelText",start:{...e[l+u+2][1].end},end:{...e[a-2][1].start}};return c=[["enter",f,t],["enter",h,t]],c=xn(c,e.slice(l+1,l+u+3)),c=xn(c,[["enter",p,t]]),c=xn(c,ul(t.parser.constructs.insideSpan.null,e.slice(l+u+4,a-3),t)),c=xn(c,[["exit",p,t],e[a-2],e[a-1],["exit",h,t]]),c=xn(c,e.slice(a+1)),c=xn(c,[["exit",f,t]]),Yn(e,l,e.length,c),e}function B0(e,t,r){const u=this;let o=u.events.length,l,a;for(;o--;)if((u.events[o][1].type==="labelImage"||u.events[o][1].type==="labelLink")&&!u.events[o][1]._balanced){l=u.events[o][1];break}return c;function c(I){return l?l._inactive?g(I):(a=u.parser.defined.includes(vi(u.sliceSerialize({start:l.end,end:u.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(I),e.exit("labelMarker"),e.exit("labelEnd"),f):r(I)}function f(I){return I===40?e.attempt(E0,p,a?p:g)(I):I===91?e.attempt(F0,p,a?h:g)(I):a?p(I):g(I)}function h(I){return e.attempt(P0,p,g)(I)}function p(I){return t(I)}function g(I){return l._balanced=!0,r(I)}}function _0(e,t,r){return u;function u(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),o}function o(g){return $t(g)?lu(e,l)(g):l(g)}function l(g){return g===41?p(g):Sf(e,a,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function a(g){return $t(g)?lu(e,f)(g):p(g)}function c(g){return r(g)}function f(g){return g===34||g===39||g===40?Ff(e,h,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):p(g)}function h(g){return $t(g)?lu(e,p)(g):p(g)}function p(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),t):r(g)}}function G0(e,t,r){const u=this;return o;function o(c){return Ef.call(u,e,l,a,"reference","referenceMarker","referenceString")(c)}function l(c){return u.parser.defined.includes(vi(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)))?t(c):r(c)}function a(c){return r(c)}}function R0(e,t,r){return u;function u(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),o}function o(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):r(l)}}const k0={name:"labelStartImage",resolveAll:ll.resolveAll,tokenize:L0};function L0(e,t,r){const u=this;return o;function o(c){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(c),e.exit("labelImageMarker"),l}function l(c){return c===91?(e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelImage"),a):r(c)}function a(c){return c===94&&"_hiddenFootnoteSupport"in u.parser.constructs?r(c):t(c)}}const D0={name:"labelStartLink",resolveAll:ll.resolveAll,tokenize:M0};function M0(e,t,r){const u=this;return o;function o(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),l}function l(a){return a===94&&"_hiddenFootnoteSupport"in u.parser.constructs?r(a):t(a)}}const al={name:"lineEnding",tokenize:N0};function N0(e,t){return r;function r(u){return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),ct(e,t,"linePrefix")}}const qu={name:"thematicBreak",tokenize:V0};function V0(e,t,r){let u=0,o;return l;function l(h){return e.enter("thematicBreak"),a(h)}function a(h){return o=h,c(h)}function c(h){return h===o?(e.enter("thematicBreakSequence"),f(h)):u>=3&&(h===null||Ae(h))?(e.exit("thematicBreak"),t(h)):r(h)}function f(h){return h===o?(e.consume(h),u++,f):(e.exit("thematicBreakSequence"),Ue(h)?ct(e,c,"whitespace")(h):c(h))}}const Kt={continuation:{tokenize:z0},exit:Y0,name:"list",tokenize:H0},W0={partial:!0,tokenize:J0},X0={partial:!0,tokenize:Z0};function H0(e,t,r){const u=this,o=u.events[u.events.length-1];let l=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,a=0;return c;function c(b){const S=u.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(S==="listUnordered"?!u.containerState.marker||b===u.containerState.marker:il(b)){if(u.containerState.type||(u.containerState.type=S,e.enter(S,{_container:!0})),S==="listUnordered")return e.enter("listItemPrefix"),b===42||b===45?e.check(qu,r,h)(b):h(b);if(!u.interrupt||b===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(b)}return r(b)}function f(b){return il(b)&&++a<10?(e.consume(b),f):(!u.interrupt||a<2)&&(u.containerState.marker?b===u.containerState.marker:b===41||b===46)?(e.exit("listItemValue"),h(b)):r(b)}function h(b){return e.enter("listItemMarker"),e.consume(b),e.exit("listItemMarker"),u.containerState.marker=u.containerState.marker||b,e.check(Qu,u.interrupt?r:p,e.attempt(W0,I,g))}function p(b){return u.containerState.initialBlankLine=!0,l++,I(b)}function g(b){return Ue(b)?(e.enter("listItemPrefixWhitespace"),e.consume(b),e.exit("listItemPrefixWhitespace"),I):r(b)}function I(b){return u.containerState.size=l+u.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(b)}}function z0(e,t,r){const u=this;return u.containerState._closeFlow=void 0,e.check(Qu,o,l);function o(c){return u.containerState.furtherBlankLines=u.containerState.furtherBlankLines||u.containerState.initialBlankLine,ct(e,t,"listItemIndent",u.containerState.size+1)(c)}function l(c){return u.containerState.furtherBlankLines||!Ue(c)?(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,a(c)):(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,e.attempt(X0,t,a)(c))}function a(c){return u.containerState._closeFlow=!0,u.interrupt=void 0,ct(e,e.attempt(Kt,t,r),"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function Z0(e,t,r){const u=this;return ct(e,o,"listItemIndent",u.containerState.size+1);function o(l){const a=u.events[u.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===u.containerState.size?t(l):r(l)}}function Y0(e){e.exit(this.containerState.type)}function J0(e,t,r){const u=this;return ct(e,o,"listItemPrefixWhitespace",u.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(l){const a=u.events[u.events.length-1];return!Ue(l)&&a&&a[1].type==="listItemPrefixWhitespace"?t(l):r(l)}}const Of={name:"setextUnderline",resolveTo:j0,tokenize:U0};function j0(e,t){let r=e.length,u,o,l;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){u=r;break}e[r][1].type==="paragraph"&&(o=r)}else e[r][1].type==="content"&&e.splice(r,1),!l&&e[r][1].type==="definition"&&(l=r);const a={type:"setextHeading",start:{...e[o][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",l?(e.splice(o,0,["enter",a,t]),e.splice(l+1,0,["exit",e[u][1],t]),e[u][1].end={...e[l][1].end}):e[u][1]=a,e.push(["exit",a,t]),e}function U0(e,t,r){const u=this;let o;return l;function l(h){let p=u.events.length,g;for(;p--;)if(u.events[p][1].type!=="lineEnding"&&u.events[p][1].type!=="linePrefix"&&u.events[p][1].type!=="content"){g=u.events[p][1].type==="paragraph";break}return!u.parser.lazy[u.now().line]&&(u.interrupt||g)?(e.enter("setextHeadingLine"),o=h,a(h)):r(h)}function a(h){return e.enter("setextHeadingLineSequence"),c(h)}function c(h){return h===o?(e.consume(h),c):(e.exit("setextHeadingLineSequence"),Ue(h)?ct(e,f,"lineSuffix")(h):f(h))}function f(h){return h===null||Ae(h)?(e.exit("setextHeadingLine"),t(h)):r(h)}}const Q0={tokenize:q0};function q0(e){const t=this,r=e.attempt(Qu,u,e.attempt(this.parser.constructs.flowInitial,o,ct(e,e.attempt(this.parser.constructs.flow,o,e.attempt(n0,o)),"linePrefix")));return r;function u(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function o(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const $0={resolveAll:Bf()},K0=Tf("string"),ev=Tf("text");function Tf(e){return{resolveAll:Bf(e==="text"?tv:void 0),tokenize:t};function t(r){const u=this,o=this.parser.constructs[e],l=r.attempt(o,a,c);return a;function a(p){return h(p)?l(p):c(p)}function c(p){if(p===null){r.consume(p);return}return r.enter("data"),r.consume(p),f}function f(p){return h(p)?(r.exit("data"),l(p)):(r.consume(p),f)}function h(p){if(p===null)return!0;const g=o[p];let I=-1;if(g)for(;++I<g.length;){const b=g[I];if(!b.previous||b.previous.call(u,u.previous))return!0}return!1}}}function Bf(e){return t;function t(r,u){let o=-1,l;for(;++o<=r.length;)l===void 0?r[o]&&r[o][1].type==="data"&&(l=o,o++):(!r[o]||r[o][1].type!=="data")&&(o!==l+2&&(r[l][1].end=r[o-1][1].end,r.splice(l+2,o-l-2),o=l+2),l=void 0);return e?e(r,u):r}}function tv(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const u=e[r-1][1],o=t.sliceStream(u);let l=o.length,a=-1,c=0,f;for(;l--;){const h=o[l];if(typeof h=="string"){for(a=h.length;h.charCodeAt(a-1)===32;)c++,a--;if(a)break;a=-1}else if(h===-2)f=!0,c++;else if(h!==-1){l++;break}}if(c){const h={type:r===e.length||f||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?a:u.start._bufferIndex+a,_index:u.start._index+l,line:u.end.line,column:u.end.column-c,offset:u.end.offset-c},end:{...u.end}};u.end={...h.start},u.start.offset===u.end.offset?Object.assign(u,h):(e.splice(r,0,["enter",h,t],["exit",h,t]),r+=2)}r++}return e}const nv=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:s0},disable:{null:[]},document:{42:Kt,43:Kt,45:Kt,48:Kt,49:Kt,50:Kt,51:Kt,52:Kt,53:Kt,54:Kt,55:Kt,56:Kt,57:Kt,62:yf},flow:{35:h0,42:qu,45:[Of,qu],60:b0,61:Of,95:qu,96:Af,126:Af},flowInitial:{[-2]:sl,[-1]:sl,32:sl},insideSpan:{null:[ol,$0]},string:{38:Cf,92:If},text:{[-5]:al,[-4]:al,[-3]:al,33:k0,38:Cf,42:ol,60:[Db,w0],91:D0,92:[f0,If],93:ll,95:ol,96:Qb}},Symbol.toStringTag,{value:"Module"}));function rv(e,t,r){let u={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const o={},l=[];let a=[],c=[];const f={attempt:Y(X),check:Y(R),consume:L,enter:k,exit:N,interrupt:Y(R,{interrupt:!0})},h={code:null,containerState:{},defineSkip:A,events:[],now:S,parser:e,previous:null,sliceSerialize:I,sliceStream:b,write:g};let p=t.tokenize.call(h,f);return t.resolveAll&&l.push(t),h;function g(U){return a=xn(a,U),F(),a[a.length-1]!==null?[]:(D(t,0),h.events=ul(l,h.events,h),h.events)}function I(U,q){return uv(b(U),q)}function b(U){return iv(a,U)}function S(){const{_bufferIndex:U,_index:q,line:be,column:Se,offset:ue}=u;return{_bufferIndex:U,_index:q,line:be,column:Se,offset:ue}}function A(U){o[U.line]=U.column,Q()}function F(){let U;for(;u._index<a.length;){const q=a[u._index];if(typeof q=="string")for(U=u._index,u._bufferIndex<0&&(u._bufferIndex=0);u._index===U&&u._bufferIndex<q.length;)P(q.charCodeAt(u._bufferIndex));else P(q)}}function P(U){p=p(U)}function L(U){Ae(U)?(u.line++,u.column=1,u.offset+=U===-3?2:1,Q()):U!==-1&&(u.column++,u.offset++),u._bufferIndex<0?u._index++:(u._bufferIndex++,u._bufferIndex===a[u._index].length&&(u._bufferIndex=-1,u._index++)),h.previous=U}function k(U,q){const be=q||{};return be.type=U,be.start=S(),h.events.push(["enter",be,h]),c.push(be),be}function N(U){const q=c.pop();return q.end=S(),h.events.push(["exit",q,h]),q}function X(U,q){D(U,q.from)}function R(U,q){q.restore()}function Y(U,q){return be;function be(Se,ue,pe){let Ee,Oe,Ke,E;return Array.isArray(Se)?Le(Se):"tokenize"in Se?Le([Se]):xe(Se);function xe(Ne){return St;function St(Ve){const vt=Ve!==null&&Ne[Ve],Xt=Ve!==null&&Ne.null,Lt=[...Array.isArray(vt)?vt:vt?[vt]:[],...Array.isArray(Xt)?Xt:Xt?[Xt]:[]];return Le(Lt)(Ve)}}function Le(Ne){return Ee=Ne,Oe=0,Ne.length===0?pe:w(Ne[Oe])}function w(Ne){return St;function St(Ve){return E=j(),Ke=Ne,Ne.partial||(h.currentConstruct=Ne),Ne.name&&h.parser.constructs.disable.null.includes(Ne.name)?ge():Ne.tokenize.call(q?Object.assign(Object.create(h),q):h,f,je,ge)(Ve)}}function je(Ne){return U(Ke,E),ue}function ge(Ne){return E.restore(),++Oe<Ee.length?w(Ee[Oe]):pe}}}function D(U,q){U.resolveAll&&!l.includes(U)&&l.push(U),U.resolve&&Yn(h.events,q,h.events.length-q,U.resolve(h.events.slice(q),h)),U.resolveTo&&(h.events=U.resolveTo(h.events,h))}function j(){const U=S(),q=h.previous,be=h.currentConstruct,Se=h.events.length,ue=Array.from(c);return{from:Se,restore:pe};function pe(){u=U,h.previous=q,h.currentConstruct=be,h.events.length=Se,c=ue,Q()}}function Q(){u.line in o&&u.column<2&&(u.column=o[u.line],u.offset+=o[u.line]-1)}}function iv(e,t){const r=t.start._index,u=t.start._bufferIndex,o=t.end._index,l=t.end._bufferIndex;let a;if(r===o)a=[e[r].slice(u,l)];else{if(a=e.slice(r,o),u>-1){const c=a[0];typeof c=="string"?a[0]=c.slice(u):a.shift()}l>0&&a.push(e[o].slice(0,l))}return a}function uv(e,t){let r=-1;const u=[];let o;for(;++r<e.length;){const l=e[r];let a;if(typeof l=="string")a=l;else switch(l){case-5:{a="\r";break}case-4:{a=`
|
|
3
3
|
`;break}case-3:{a=`\r
|
|
4
|
-
`;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&o)continue;a=" ";break}default:a=String.fromCharCode(l)}o=l===-2,u.push(a)}return u.join("")}function ov(e){const u={constructs:xb([nv,...(e||{}).extensions||[]]),content:o(Tb),defined:[],document:o(Bb),flow:o(Q0),lazy:{},string:o(K0),text:o(ev)};return u;function o(l){return a;function a(c){return rv(u,l,c)}}}function sv(e){for(;!wf(e););return e}const Bf=/[\0\t\n\r]/g;function lv(){let e=1,t="",r=!0,u;return o;function o(l,a,c){const f=[];let h,p,g,I,b;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(a||void 0).decode(l)),g=0,t="",r&&(l.charCodeAt(0)===65279&&g++,r=void 0);g<l.length;){if(Bf.lastIndex=g,h=Bf.exec(l),I=h&&h.index!==void 0?h.index:l.length,b=l.charCodeAt(I),!h){t=l.slice(g);break}if(b===10&&g===I&&u)f.push(-3),u=void 0;else switch(u&&(f.push(-5),u=void 0),g<I&&(f.push(l.slice(g,I)),e+=I-g),b){case 0:{f.push(65533),e++;break}case 9:{for(p=Math.ceil(e/4)*4,f.push(-2);e++<p;)f.push(-1);break}case 10:{f.push(-4),e=1;break}default:u=!0,e=1}g=I+1}return c&&(u&&f.push(-5),t&&f.push(t),f.push(null)),f}}const av=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function cv(e){return e.replace(av,fv)}function fv(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const o=r.charCodeAt(1),l=o===120||o===88;return gf(r.slice(l?2:1),l?16:10)}return nl(r)||e}const Gf={}.hasOwnProperty;function dv(e,t,r){return typeof t!="string"&&(r=t,t=void 0),hv(r)(sv(ov(r).document().write(lv()(e,t,!0))))}function hv(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(vt),autolinkProtocol:Z,autolinkEmail:Z,atxHeading:l(ne),blockQuote:l(Zt),characterEscape:Z,characterReference:Z,codeFenced:l(Bt),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:l(Bt,a),codeText:l(Yt,a),codeTextData:Z,data:Z,codeFlowValue:Z,definition:l(hn),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:l(Ct),hardBreakEscape:l(le),hardBreakTrailing:l(le),htmlFlow:l(de,a),htmlFlowData:Z,htmlText:l(de,a),htmlTextData:Z,image:l(je),label:a,link:l(vt),listItem:l(Dt),listItemValue:I,listOrdered:l(yt,g),listUnordered:l(yt),paragraph:l(Nn),reference:w,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:l(ne),strong:l(nt),thematicBreak:l($e)},exit:{atxHeading:f(),atxHeadingSequence:H,autolink:f(),autolinkEmail:ft,autolinkProtocol:Ve,blockQuote:f(),characterEscapeValue:U,characterReferenceMarkerHexadecimal:ve,characterReferenceMarkerNumeric:ve,characterReferenceValue:Le,characterReference:Et,codeFenced:f(F),codeFencedFence:A,codeFencedFenceInfo:b,codeFencedFenceMeta:S,codeFlowValue:U,codeIndented:f(P),codeText:f(ie),codeTextData:U,data:U,definition:f(),definitionDestinationString:V,definitionLabelString:L,definitionTitleString:k,emphasis:f(),hardBreakEscape:f(K),hardBreakTrailing:f(K),htmlFlow:f(he),htmlFlowData:U,htmlText:f(Be),htmlTextData:U,image:f(we),label:tt,labelText:Pe,lineEnding:Q,link:f(me),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:ze,resourceDestinationString:E,resourceTitleString:He,resource:be,setextHeading:f(N),setextHeadingLineSequence:j,setextHeadingText:R,strong:f(),thematicBreak:f()}};Rf(t,(e||{}).mdastExtensions||[]);const r={};return u;function u(D){let ee={type:"root",children:[]};const ge={stack:[ee],tokenStack:[],config:t,enter:c,exit:h,buffer:a,resume:p,data:r},Ge=[];let Re=-1;for(;++Re<D.length;)if(D[Re][1].type==="listOrdered"||D[Re][1].type==="listUnordered")if(D[Re][0]==="enter")Ge.push(Re);else{const Gt=Ge.pop();Re=o(D,Gt,Re)}for(Re=-1;++Re<D.length;){const Gt=t[D[Re][0]];Gf.call(Gt,D[Re][1].type)&&Gt[D[Re][1].type].call(Object.assign({sliceSerialize:D[Re][2].sliceSerialize},ge),D[Re][1])}if(ge.tokenStack.length>0){const Gt=ge.tokenStack[ge.tokenStack.length-1];(Gt[1]||kf).call(ge,void 0,Gt[0])}for(ee.position={start:Ar(D.length>0?D[0][1].start:{line:1,column:1,offset:0}),end:Ar(D.length>0?D[D.length-2][1].end:{line:1,column:1,offset:0})},Re=-1;++Re<t.transforms.length;)ee=t.transforms[Re](ee)||ee;return ee}function o(D,ee,ge){let Ge=ee-1,Re=-1,Gt=!1,tn,Jt,En,nn;for(;++Ge<=ge;){const Ft=D[Ge];switch(Ft[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ft[0]==="enter"?Re++:Re--,nn=void 0;break}case"lineEndingBlank":{Ft[0]==="enter"&&(tn&&!nn&&!Re&&!En&&(En=Ge),nn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:nn=void 0}if(!Re&&Ft[0]==="enter"&&Ft[1].type==="listItemPrefix"||Re===-1&&Ft[0]==="exit"&&(Ft[1].type==="listUnordered"||Ft[1].type==="listOrdered")){if(tn){let pn=Ge;for(Jt=void 0;pn--;){const gn=D[pn];if(gn[1].type==="lineEnding"||gn[1].type==="lineEndingBlank"){if(gn[0]==="exit")continue;Jt&&(D[Jt][1].type="lineEndingBlank",Gt=!0),gn[1].type="lineEnding",Jt=pn}else if(!(gn[1].type==="linePrefix"||gn[1].type==="blockQuotePrefix"||gn[1].type==="blockQuotePrefixWhitespace"||gn[1].type==="blockQuoteMarker"||gn[1].type==="listItemIndent"))break}En&&(!Jt||En<Jt)&&(tn._spread=!0),tn.end=Object.assign({},Jt?D[Jt][1].start:Ft[1].end),D.splice(Jt||Ge,0,["exit",tn,Ft[2]]),Ge++,ge++}if(Ft[1].type==="listItemPrefix"){const pn={type:"listItem",_spread:!1,start:Object.assign({},Ft[1].start),end:void 0};tn=pn,D.splice(Ge,0,["enter",pn,Ft[2]]),Ge++,ge++,En=void 0,nn=!0}}}return D[ee][1]._spread=Gt,ge}function l(D,ee){return ge;function ge(Ge){c.call(this,D(Ge),Ge),ee&&ee.call(this,Ge)}}function a(){this.stack.push({type:"fragment",children:[]})}function c(D,ee,ge){this.stack[this.stack.length-1].children.push(D),this.stack.push(D),this.tokenStack.push([ee,ge||void 0]),D.position={start:Ar(ee.start),end:void 0}}function f(D){return ee;function ee(ge){D&&D.call(this,ge),h.call(this,ge)}}function h(D,ee){const ge=this.stack.pop(),Ge=this.tokenStack.pop();if(Ge)Ge[0].type!==D.type&&(ee?ee.call(this,D,Ge[0]):(Ge[1]||kf).call(this,D,Ge[0]));else throw new Error("Cannot close `"+D.type+"` ("+uu({start:D.start,end:D.end})+"): it’s not open");ge.position.end=Ar(D.end)}function p(){return Ib(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function I(D){if(this.data.expectingFirstListItemValue){const ee=this.stack[this.stack.length-2];ee.start=Number.parseInt(this.sliceSerialize(D),10),this.data.expectingFirstListItemValue=void 0}}function b(){const D=this.resume(),ee=this.stack[this.stack.length-1];ee.lang=D}function S(){const D=this.resume(),ee=this.stack[this.stack.length-1];ee.meta=D}function A(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function F(){const D=this.resume(),ee=this.stack[this.stack.length-1];ee.value=D.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function P(){const D=this.resume(),ee=this.stack[this.stack.length-1];ee.value=D.replace(/(\r?\n|\r)$/g,"")}function L(D){const ee=this.resume(),ge=this.stack[this.stack.length-1];ge.label=ee,ge.identifier=vi(this.sliceSerialize(D)).toLowerCase()}function k(){const D=this.resume(),ee=this.stack[this.stack.length-1];ee.title=D}function V(){const D=this.resume(),ee=this.stack[this.stack.length-1];ee.url=D}function H(D){const ee=this.stack[this.stack.length-1];if(!ee.depth){const ge=this.sliceSerialize(D).length;ee.depth=ge}}function R(){this.data.setextHeadingSlurpLineEnding=!0}function j(D){const ee=this.stack[this.stack.length-1];ee.depth=this.sliceSerialize(D).codePointAt(0)===61?1:2}function N(){this.data.setextHeadingSlurpLineEnding=void 0}function Z(D){const ge=this.stack[this.stack.length-1].children;let Ge=ge[ge.length-1];(!Ge||Ge.type!=="text")&&(Ge=rt(),Ge.position={start:Ar(D.start),end:void 0},ge.push(Ge)),this.stack.push(Ge)}function U(D){const ee=this.stack.pop();ee.value+=this.sliceSerialize(D),ee.position.end=Ar(D.end)}function Q(D){const ee=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ge=ee.children[ee.children.length-1];ge.position.end=Ar(D.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ee.type)&&(Z.call(this,D),U.call(this,D))}function K(){this.data.atHardBreak=!0}function he(){const D=this.resume(),ee=this.stack[this.stack.length-1];ee.value=D}function Be(){const D=this.resume(),ee=this.stack[this.stack.length-1];ee.value=D}function ie(){const D=this.resume(),ee=this.stack[this.stack.length-1];ee.value=D}function me(){const D=this.stack[this.stack.length-1];if(this.data.inReference){const ee=this.data.referenceType||"shortcut";D.type+="Reference",D.referenceType=ee,delete D.url,delete D.title}else delete D.identifier,delete D.label;this.data.referenceType=void 0}function we(){const D=this.stack[this.stack.length-1];if(this.data.inReference){const ee=this.data.referenceType||"shortcut";D.type+="Reference",D.referenceType=ee,delete D.url,delete D.title}else delete D.identifier,delete D.label;this.data.referenceType=void 0}function Pe(D){const ee=this.sliceSerialize(D),ge=this.stack[this.stack.length-2];ge.label=cv(ee),ge.identifier=vi(ee).toLowerCase()}function tt(){const D=this.stack[this.stack.length-1],ee=this.resume(),ge=this.stack[this.stack.length-1];if(this.data.inReference=!0,ge.type==="link"){const Ge=D.children;ge.children=Ge}else ge.alt=ee}function E(){const D=this.resume(),ee=this.stack[this.stack.length-1];ee.url=D}function He(){const D=this.resume(),ee=this.stack[this.stack.length-1];ee.title=D}function be(){this.data.inReference=void 0}function w(){this.data.referenceType="collapsed"}function ze(D){const ee=this.resume(),ge=this.stack[this.stack.length-1];ge.label=ee,ge.identifier=vi(this.sliceSerialize(D)).toLowerCase(),this.data.referenceType="full"}function ve(D){this.data.characterReferenceType=D.type}function Le(D){const ee=this.sliceSerialize(D),ge=this.data.characterReferenceType;let Ge;ge?(Ge=gf(ee,ge==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ge=nl(ee);const Re=this.stack[this.stack.length-1];Re.value+=Ge}function Et(D){const ee=this.stack.pop();ee.position.end=Ar(D.end)}function Ve(D){U.call(this,D);const ee=this.stack[this.stack.length-1];ee.url=this.sliceSerialize(D)}function ft(D){U.call(this,D);const ee=this.stack[this.stack.length-1];ee.url="mailto:"+this.sliceSerialize(D)}function Zt(){return{type:"blockquote",children:[]}}function Bt(){return{type:"code",lang:null,meta:null,value:""}}function Yt(){return{type:"inlineCode",value:""}}function hn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ct(){return{type:"emphasis",children:[]}}function ne(){return{type:"heading",depth:0,children:[]}}function le(){return{type:"break"}}function de(){return{type:"html",value:""}}function je(){return{type:"image",title:null,url:"",alt:null}}function vt(){return{type:"link",title:null,url:"",children:[]}}function yt(D){return{type:"list",ordered:D.type==="listOrdered",start:null,spread:D._spread,children:[]}}function Dt(D){return{type:"listItem",spread:D._spread,checked:null,children:[]}}function Nn(){return{type:"paragraph",children:[]}}function nt(){return{type:"strong",children:[]}}function rt(){return{type:"text",value:""}}function $e(){return{type:"thematicBreak"}}}function Ar(e){return{line:e.line,column:e.column,offset:e.offset}}function Rf(e,t){let r=-1;for(;++r<t.length;){const u=t[r];Array.isArray(u)?Rf(e,u):pv(e,u)}}function pv(e,t){let r;for(r in t)if(Gf.call(t,r))switch(r){case"canContainEols":{const u=t[r];u&&e[r].push(...u);break}case"transforms":{const u=t[r];u&&e[r].push(...u);break}case"enter":case"exit":{const u=t[r];u&&Object.assign(e[r],u);break}}}function kf(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+uu({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+uu({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+uu({start:t.start,end:t.end})+") is still open")}function gv(e){const t=this;t.parser=r;function r(u){return dv(u,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function mv(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function bv(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
4
|
+
`;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&o)continue;a=" ";break}default:a=String.fromCharCode(l)}o=l===-2,u.push(a)}return u.join("")}function ov(e){const u={constructs:xb([nv,...(e||{}).extensions||[]]),content:o(Tb),defined:[],document:o(_b),flow:o(Q0),lazy:{},string:o(K0),text:o(ev)};return u;function o(l){return a;function a(c){return rv(u,l,c)}}}function sv(e){for(;!wf(e););return e}const _f=/[\0\t\n\r]/g;function lv(){let e=1,t="",r=!0,u;return o;function o(l,a,c){const f=[];let h,p,g,I,b;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(a||void 0).decode(l)),g=0,t="",r&&(l.charCodeAt(0)===65279&&g++,r=void 0);g<l.length;){if(_f.lastIndex=g,h=_f.exec(l),I=h&&h.index!==void 0?h.index:l.length,b=l.charCodeAt(I),!h){t=l.slice(g);break}if(b===10&&g===I&&u)f.push(-3),u=void 0;else switch(u&&(f.push(-5),u=void 0),g<I&&(f.push(l.slice(g,I)),e+=I-g),b){case 0:{f.push(65533),e++;break}case 9:{for(p=Math.ceil(e/4)*4,f.push(-2);e++<p;)f.push(-1);break}case 10:{f.push(-4),e=1;break}default:u=!0,e=1}g=I+1}return c&&(u&&f.push(-5),t&&f.push(t),f.push(null)),f}}const av=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function cv(e){return e.replace(av,fv)}function fv(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const o=r.charCodeAt(1),l=o===120||o===88;return gf(r.slice(l?2:1),l?16:10)}return nl(r)||e}const Gf={}.hasOwnProperty;function dv(e,t,r){return typeof t!="string"&&(r=t,t=void 0),hv(r)(sv(ov(r).document().write(lv()(e,t,!0))))}function hv(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Bt),autolinkProtocol:j,autolinkEmail:j,atxHeading:l(oe),blockQuote:l(Xt),characterEscape:j,characterReference:j,codeFenced:l(Lt),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:l(Lt,a),codeText:l(Dt,a),codeTextData:j,data:j,codeFlowValue:j,definition:l(Nn),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:l(ne),hardBreakEscape:l(ye),hardBreakTrailing:l(ye),htmlFlow:l(Ge,a),htmlFlowData:j,htmlText:l(Ge,a),htmlTextData:j,image:l(yt),label:a,link:l(Bt),listItem:l(Mt),listItemValue:I,listOrdered:l(Sn,g),listUnordered:l(Sn),paragraph:l(nt),reference:w,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:l(oe),strong:l(Qe),thematicBreak:l(et)},exit:{atxHeading:f(),atxHeadingSequence:X,autolink:f(),autolinkEmail:vt,autolinkProtocol:Ve,blockQuote:f(),characterEscapeValue:Q,characterReferenceMarkerHexadecimal:ge,characterReferenceMarkerNumeric:ge,characterReferenceValue:Ne,characterReference:St,codeFenced:f(F),codeFencedFence:A,codeFencedFenceInfo:b,codeFencedFenceMeta:S,codeFlowValue:Q,codeIndented:f(P),codeText:f(ue),codeTextData:Q,data:Q,definition:f(),definitionDestinationString:N,definitionLabelString:L,definitionTitleString:k,emphasis:f(),hardBreakEscape:f(q),hardBreakTrailing:f(q),htmlFlow:f(be),htmlFlowData:Q,htmlText:f(Se),htmlTextData:Q,image:f(Ee),label:Ke,labelText:Oe,lineEnding:U,link:f(pe),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:je,resourceDestinationString:E,resourceTitleString:xe,resource:Le,setextHeading:f(D),setextHeadingLineSequence:Y,setextHeadingText:R,strong:f(),thematicBreak:f()}};Rf(t,(e||{}).mdastExtensions||[]);const r={};return u;function u(V){let te={type:"root",children:[]};const he={stack:[te],tokenStack:[],config:t,enter:c,exit:h,buffer:a,resume:p,data:r},Re=[];let ke=-1;for(;++ke<V.length;)if(V[ke][1].type==="listOrdered"||V[ke][1].type==="listUnordered")if(V[ke][0]==="enter")Re.push(ke);else{const _t=Re.pop();ke=o(V,_t,ke)}for(ke=-1;++ke<V.length;){const _t=t[V[ke][0]];Gf.call(_t,V[ke][1].type)&&_t[V[ke][1].type].call(Object.assign({sliceSerialize:V[ke][2].sliceSerialize},he),V[ke][1])}if(he.tokenStack.length>0){const _t=he.tokenStack[he.tokenStack.length-1];(_t[1]||kf).call(he,void 0,_t[0])}for(te.position={start:Ar(V.length>0?V[0][1].start:{line:1,column:1,offset:0}),end:Ar(V.length>0?V[V.length-2][1].end:{line:1,column:1,offset:0})},ke=-1;++ke<t.transforms.length;)te=t.transforms[ke](te)||te;return te}function o(V,te,he){let Re=te-1,ke=-1,_t=!1,tn,Jt,En,nn;for(;++Re<=he;){const Et=V[Re];switch(Et[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Et[0]==="enter"?ke++:ke--,nn=void 0;break}case"lineEndingBlank":{Et[0]==="enter"&&(tn&&!nn&&!ke&&!En&&(En=Re),nn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:nn=void 0}if(!ke&&Et[0]==="enter"&&Et[1].type==="listItemPrefix"||ke===-1&&Et[0]==="exit"&&(Et[1].type==="listUnordered"||Et[1].type==="listOrdered")){if(tn){let hn=Re;for(Jt=void 0;hn--;){const pn=V[hn];if(pn[1].type==="lineEnding"||pn[1].type==="lineEndingBlank"){if(pn[0]==="exit")continue;Jt&&(V[Jt][1].type="lineEndingBlank",_t=!0),pn[1].type="lineEnding",Jt=hn}else if(!(pn[1].type==="linePrefix"||pn[1].type==="blockQuotePrefix"||pn[1].type==="blockQuotePrefixWhitespace"||pn[1].type==="blockQuoteMarker"||pn[1].type==="listItemIndent"))break}En&&(!Jt||En<Jt)&&(tn._spread=!0),tn.end=Object.assign({},Jt?V[Jt][1].start:Et[1].end),V.splice(Jt||Re,0,["exit",tn,Et[2]]),Re++,he++}if(Et[1].type==="listItemPrefix"){const hn={type:"listItem",_spread:!1,start:Object.assign({},Et[1].start),end:void 0};tn=hn,V.splice(Re,0,["enter",hn,Et[2]]),Re++,he++,En=void 0,nn=!0}}}return V[te][1]._spread=_t,he}function l(V,te){return he;function he(Re){c.call(this,V(Re),Re),te&&te.call(this,Re)}}function a(){this.stack.push({type:"fragment",children:[]})}function c(V,te,he){this.stack[this.stack.length-1].children.push(V),this.stack.push(V),this.tokenStack.push([te,he||void 0]),V.position={start:Ar(te.start),end:void 0}}function f(V){return te;function te(he){V&&V.call(this,he),h.call(this,he)}}function h(V,te){const he=this.stack.pop(),Re=this.tokenStack.pop();if(Re)Re[0].type!==V.type&&(te?te.call(this,V,Re[0]):(Re[1]||kf).call(this,V,Re[0]));else throw new Error("Cannot close `"+V.type+"` ("+uu({start:V.start,end:V.end})+"): it’s not open");he.position.end=Ar(V.end)}function p(){return Ib(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function I(V){if(this.data.expectingFirstListItemValue){const te=this.stack[this.stack.length-2];te.start=Number.parseInt(this.sliceSerialize(V),10),this.data.expectingFirstListItemValue=void 0}}function b(){const V=this.resume(),te=this.stack[this.stack.length-1];te.lang=V}function S(){const V=this.resume(),te=this.stack[this.stack.length-1];te.meta=V}function A(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function F(){const V=this.resume(),te=this.stack[this.stack.length-1];te.value=V.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function P(){const V=this.resume(),te=this.stack[this.stack.length-1];te.value=V.replace(/(\r?\n|\r)$/g,"")}function L(V){const te=this.resume(),he=this.stack[this.stack.length-1];he.label=te,he.identifier=vi(this.sliceSerialize(V)).toLowerCase()}function k(){const V=this.resume(),te=this.stack[this.stack.length-1];te.title=V}function N(){const V=this.resume(),te=this.stack[this.stack.length-1];te.url=V}function X(V){const te=this.stack[this.stack.length-1];if(!te.depth){const he=this.sliceSerialize(V).length;te.depth=he}}function R(){this.data.setextHeadingSlurpLineEnding=!0}function Y(V){const te=this.stack[this.stack.length-1];te.depth=this.sliceSerialize(V).codePointAt(0)===61?1:2}function D(){this.data.setextHeadingSlurpLineEnding=void 0}function j(V){const he=this.stack[this.stack.length-1].children;let Re=he[he.length-1];(!Re||Re.type!=="text")&&(Re=ft(),Re.position={start:Ar(V.start),end:void 0},he.push(Re)),this.stack.push(Re)}function Q(V){const te=this.stack.pop();te.value+=this.sliceSerialize(V),te.position.end=Ar(V.end)}function U(V){const te=this.stack[this.stack.length-1];if(this.data.atHardBreak){const he=te.children[te.children.length-1];he.position.end=Ar(V.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(te.type)&&(j.call(this,V),Q.call(this,V))}function q(){this.data.atHardBreak=!0}function be(){const V=this.resume(),te=this.stack[this.stack.length-1];te.value=V}function Se(){const V=this.resume(),te=this.stack[this.stack.length-1];te.value=V}function ue(){const V=this.resume(),te=this.stack[this.stack.length-1];te.value=V}function pe(){const V=this.stack[this.stack.length-1];if(this.data.inReference){const te=this.data.referenceType||"shortcut";V.type+="Reference",V.referenceType=te,delete V.url,delete V.title}else delete V.identifier,delete V.label;this.data.referenceType=void 0}function Ee(){const V=this.stack[this.stack.length-1];if(this.data.inReference){const te=this.data.referenceType||"shortcut";V.type+="Reference",V.referenceType=te,delete V.url,delete V.title}else delete V.identifier,delete V.label;this.data.referenceType=void 0}function Oe(V){const te=this.sliceSerialize(V),he=this.stack[this.stack.length-2];he.label=cv(te),he.identifier=vi(te).toLowerCase()}function Ke(){const V=this.stack[this.stack.length-1],te=this.resume(),he=this.stack[this.stack.length-1];if(this.data.inReference=!0,he.type==="link"){const Re=V.children;he.children=Re}else he.alt=te}function E(){const V=this.resume(),te=this.stack[this.stack.length-1];te.url=V}function xe(){const V=this.resume(),te=this.stack[this.stack.length-1];te.title=V}function Le(){this.data.inReference=void 0}function w(){this.data.referenceType="collapsed"}function je(V){const te=this.resume(),he=this.stack[this.stack.length-1];he.label=te,he.identifier=vi(this.sliceSerialize(V)).toLowerCase(),this.data.referenceType="full"}function ge(V){this.data.characterReferenceType=V.type}function Ne(V){const te=this.sliceSerialize(V),he=this.data.characterReferenceType;let Re;he?(Re=gf(te,he==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Re=nl(te);const ke=this.stack[this.stack.length-1];ke.value+=Re}function St(V){const te=this.stack.pop();te.position.end=Ar(V.end)}function Ve(V){Q.call(this,V);const te=this.stack[this.stack.length-1];te.url=this.sliceSerialize(V)}function vt(V){Q.call(this,V);const te=this.stack[this.stack.length-1];te.url="mailto:"+this.sliceSerialize(V)}function Xt(){return{type:"blockquote",children:[]}}function Lt(){return{type:"code",lang:null,meta:null,value:""}}function Dt(){return{type:"inlineCode",value:""}}function Nn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ne(){return{type:"emphasis",children:[]}}function oe(){return{type:"heading",depth:0,children:[]}}function ye(){return{type:"break"}}function Ge(){return{type:"html",value:""}}function yt(){return{type:"image",title:null,url:"",alt:null}}function Bt(){return{type:"link",title:null,url:"",children:[]}}function Sn(V){return{type:"list",ordered:V.type==="listOrdered",start:null,spread:V._spread,children:[]}}function Mt(V){return{type:"listItem",spread:V._spread,checked:null,children:[]}}function nt(){return{type:"paragraph",children:[]}}function Qe(){return{type:"strong",children:[]}}function ft(){return{type:"text",value:""}}function et(){return{type:"thematicBreak"}}}function Ar(e){return{line:e.line,column:e.column,offset:e.offset}}function Rf(e,t){let r=-1;for(;++r<t.length;){const u=t[r];Array.isArray(u)?Rf(e,u):pv(e,u)}}function pv(e,t){let r;for(r in t)if(Gf.call(t,r))switch(r){case"canContainEols":{const u=t[r];u&&e[r].push(...u);break}case"transforms":{const u=t[r];u&&e[r].push(...u);break}case"enter":case"exit":{const u=t[r];u&&Object.assign(e[r],u);break}}}function kf(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+uu({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+uu({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+uu({start:t.start,end:t.end})+") is still open")}function gv(e){const t=this;t.parser=r;function r(u){return dv(u,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function mv(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function bv(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
5
5
|
`}]}function vv(e,t){const r=t.value?t.value+`
|
|
6
6
|
`:"",u={};t.lang&&(u.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:u,children:[{type:"text",value:r}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function yv(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Iv(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Cv(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",u=String(t.identifier).toUpperCase(),o=yi(u.toLowerCase()),l=e.footnoteOrder.indexOf(u);let a,c=e.footnoteCounts.get(u);c===void 0?(c=0,e.footnoteOrder.push(u),a=e.footnoteOrder.length):a=l+1,c+=1,e.footnoteCounts.set(u,c);const f={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(c>1?"-"+c:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,f);const h={type:"element",tagName:"sup",properties:{},children:[f]};return e.patch(t,h),e.applyData(t,h)}function xv(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Av(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function Lf(e,t){const r=t.referenceType;let u="]";if(r==="collapsed"?u+="[]":r==="full"&&(u+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+u}];const o=e.all(t),l=o[0];l&&l.type==="text"?l.value="["+l.value:o.unshift({type:"text",value:"["});const a=o[o.length-1];return a&&a.type==="text"?a.value+=u:o.push({type:"text",value:u}),o}function wv(e,t){const r=String(t.identifier).toUpperCase(),u=e.definitionById.get(r);if(!u)return Lf(e,t);const o={src:yi(u.url||""),alt:t.alt};u.title!==null&&u.title!==void 0&&(o.title=u.title);const l={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,l),e.applyData(t,l)}function Sv(e,t){const r={src:yi(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const u={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,u),e.applyData(t,u)}function Ev(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const u={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,u),e.applyData(t,u)}function Fv(e,t){const r=String(t.identifier).toUpperCase(),u=e.definitionById.get(r);if(!u)return Lf(e,t);const o={href:yi(u.url||"")};u.title!==null&&u.title!==void 0&&(o.title=u.title);const l={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function Pv(e,t){const r={href:yi(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const u={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,u),e.applyData(t,u)}function Ov(e,t,r){const u=e.all(t),o=r?Tv(r):Df(t),l={},a=[];if(typeof t.checked=="boolean"){const p=u[0];let g;p&&p.type==="element"&&p.tagName==="p"?g=p:(g={type:"element",tagName:"p",properties:{},children:[]},u.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let c=-1;for(;++c<u.length;){const p=u[c];(o||c!==0||p.type!=="element"||p.tagName!=="p")&&a.push({type:"text",value:`
|
|
7
7
|
`}),p.type==="element"&&p.tagName==="p"&&!o?a.push(...p.children):a.push(p)}const f=u[u.length-1];f&&(o||f.type!=="element"||f.tagName!=="p")&&a.push({type:"text",value:`
|
|
8
|
-
`});const h={type:"element",tagName:"li",properties:l,children:a};return e.patch(t,h),e.applyData(t,h)}function Tv(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let u=-1;for(;!t&&++u<r.length;)t=Df(r[u])}return t}function Df(e){const t=e.spread;return t??e.children.length>1}function
|
|
8
|
+
`});const h={type:"element",tagName:"li",properties:l,children:a};return e.patch(t,h),e.applyData(t,h)}function Tv(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let u=-1;for(;!t&&++u<r.length;)t=Df(r[u])}return t}function Df(e){const t=e.spread;return t??e.children.length>1}function Bv(e,t){const r={},u=e.all(t);let o=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++o<u.length;){const a=u[o];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const l={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(u,!0)};return e.patch(t,l),e.applyData(t,l)}function _v(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Gv(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function Rv(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function kv(e,t){const r=e.all(t),u=r.shift(),o=[];if(u){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([u],!0)};e.patch(t.children[0],a),o.push(a)}if(r.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},c=Qs(t.children[1]),f=nf(t.children[t.children.length-1]);c&&f&&(a.position={start:c,end:f}),o.push(a)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,l),e.applyData(t,l)}function Lv(e,t,r){const u=r?r.children:void 0,l=(u?u.indexOf(t):1)===0?"th":"td",a=r&&r.type==="table"?r.align:void 0,c=a?a.length:t.children.length;let f=-1;const h=[];for(;++f<c;){const g=t.children[f],I={},b=a?a[f]:void 0;b&&(I.align=b);let S={type:"element",tagName:l,properties:I,children:[]};g&&(S.children=e.all(g),e.patch(g,S),S=e.applyData(g,S)),h.push(S)}const p={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(t,p),e.applyData(t,p)}function Dv(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const Mf=9,Nf=32;function Mv(e){const t=String(e),r=/\r?\n|\r/g;let u=r.exec(t),o=0;const l=[];for(;u;)l.push(Vf(t.slice(o,u.index),o>0,!0),u[0]),o=u.index+u[0].length,u=r.exec(t);return l.push(Vf(t.slice(o),o>0,!1)),l.join("")}function Vf(e,t,r){let u=0,o=e.length;if(t){let l=e.codePointAt(u);for(;l===Mf||l===Nf;)u++,l=e.codePointAt(u)}if(r){let l=e.codePointAt(o-1);for(;l===Mf||l===Nf;)o--,l=e.codePointAt(o-1)}return o>u?e.slice(u,o):""}function Nv(e,t){const r={type:"text",value:Mv(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function Vv(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const Wv={blockquote:mv,break:bv,code:vv,delete:yv,emphasis:Iv,footnoteReference:Cv,heading:xv,html:Av,imageReference:wv,image:Sv,inlineCode:Ev,linkReference:Fv,link:Pv,listItem:Ov,list:Bv,paragraph:_v,root:Gv,strong:Rv,table:kv,tableCell:Dv,tableRow:Lv,text:Nv,thematicBreak:Vv,toml:$u,yaml:$u,definition:$u,footnoteDefinition:$u};function $u(){}const Wf=-1,Ku=0,eo=1,to=2,cl=3,fl=4,dl=5,hl=6,Xf=7,Hf=8,zf=typeof self=="object"?self:globalThis,Xv=(e,t)=>{const r=(o,l)=>(e.set(l,o),o),u=o=>{if(e.has(o))return e.get(o);const[l,a]=t[o];switch(l){case Ku:case Wf:return r(a,o);case eo:{const c=r([],o);for(const f of a)c.push(u(f));return c}case to:{const c=r({},o);for(const[f,h]of a)c[u(f)]=u(h);return c}case cl:return r(new Date(a),o);case fl:{const{source:c,flags:f}=a;return r(new RegExp(c,f),o)}case dl:{const c=r(new Map,o);for(const[f,h]of a)c.set(u(f),u(h));return c}case hl:{const c=r(new Set,o);for(const f of a)c.add(u(f));return c}case Xf:{const{name:c,message:f}=a;return r(new zf[c](f),o)}case Hf:return r(BigInt(a),o);case"BigInt":return r(Object(BigInt(a)),o)}return r(new zf[l](a),o)};return u},Zf=e=>Xv(new Map,e)(0),Ii="",{toString:Hv}={},{keys:zv}=Object,au=e=>{const t=typeof e;if(t!=="object"||!e)return[Ku,t];const r=Hv.call(e).slice(8,-1);switch(r){case"Array":return[eo,Ii];case"Object":return[to,Ii];case"Date":return[cl,Ii];case"RegExp":return[fl,Ii];case"Map":return[dl,Ii];case"Set":return[hl,Ii]}return r.includes("Array")?[eo,r]:r.includes("Error")?[Xf,r]:[to,r]},no=([e,t])=>e===Ku&&(t==="function"||t==="symbol"),Zv=(e,t,r,u)=>{const o=(a,c)=>{const f=u.push(a)-1;return r.set(c,f),f},l=a=>{if(r.has(a))return r.get(a);let[c,f]=au(a);switch(c){case Ku:{let p=a;switch(f){case"bigint":c=Hf,p=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+f);p=null;break;case"undefined":return o([Wf],a)}return o([c,p],a)}case eo:{if(f)return o([f,[...a]],a);const p=[],g=o([c,p],a);for(const I of a)p.push(l(I));return g}case to:{if(f)switch(f){case"BigInt":return o([f,a.toString()],a);case"Boolean":case"Number":case"String":return o([f,a.valueOf()],a)}if(t&&"toJSON"in a)return l(a.toJSON());const p=[],g=o([c,p],a);for(const I of zv(a))(e||!no(au(a[I])))&&p.push([l(I),l(a[I])]);return g}case cl:return o([c,a.toISOString()],a);case fl:{const{source:p,flags:g}=a;return o([c,{source:p,flags:g}],a)}case dl:{const p=[],g=o([c,p],a);for(const[I,b]of a)(e||!(no(au(I))||no(au(b))))&&p.push([l(I),l(b)]);return g}case hl:{const p=[],g=o([c,p],a);for(const I of a)(e||!no(au(I)))&&p.push(l(I));return g}}const{message:h}=a;return o([c,{name:f,message:h}],a)};return l},Yf=(e,{json:t,lossy:r}={})=>{const u=[];return Zv(!(t||r),!!t,new Map,u)(e),u},ro=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Zf(Yf(e,t)):structuredClone(e):(e,t)=>Zf(Yf(e,t));function Yv(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function Jv(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function jv(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||Yv,u=e.options.footnoteBackLabel||Jv,o=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},c=[];let f=-1;for(;++f<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[f]);if(!h)continue;const p=e.all(h),g=String(h.identifier).toUpperCase(),I=yi(g.toLowerCase());let b=0;const S=[],A=e.footnoteCounts.get(g);for(;A!==void 0&&++b<=A;){S.length>0&&S.push({type:"text",value:" "});let L=typeof r=="string"?r:r(f,b);typeof L=="string"&&(L={type:"text",value:L}),S.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+I+(b>1?"-"+b:""),dataFootnoteBackref:"",ariaLabel:typeof u=="string"?u:u(f,b),className:["data-footnote-backref"]},children:Array.isArray(L)?L:[L]})}const F=p[p.length-1];if(F&&F.type==="element"&&F.tagName==="p"){const L=F.children[F.children.length-1];L&&L.type==="text"?L.value+=" ":F.children.push({type:"text",value:" "}),F.children.push(...S)}else p.push(...S);const P={type:"element",tagName:"li",properties:{id:t+"fn-"+I},children:e.wrap(p,!0)};e.patch(h,P),c.push(P)}if(c.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...ro(a),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
|
|
9
9
|
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(c,!0)},{type:"text",value:`
|
|
10
10
|
`}]}}const Jf=function(e){if(e==null)return $v;if(typeof e=="function")return io(e);if(typeof e=="object")return Array.isArray(e)?Uv(e):Qv(e);if(typeof e=="string")return qv(e);throw new Error("Expected function, string, or object as test")};function Uv(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Jf(e[r]);return io(u);function u(...o){let l=-1;for(;++l<t.length;)if(t[l].apply(this,o))return!0;return!1}}function Qv(e){const t=e;return io(r);function r(u){const o=u;let l;for(l in e)if(o[l]!==t[l])return!1;return!0}}function qv(e){return io(t);function t(r){return r&&r.type===e}}function io(e){return t;function t(r,u,o){return!!(Kv(r)&&e.call(this,r,typeof u=="number"?u:void 0,o||void 0))}}function $v(){return!0}function Kv(e){return e!==null&&typeof e=="object"&&"type"in e}function IP(e){return e}const jf=[],ey=!0,Uf=!1,ty="skip";function ny(e,t,r,u){let o;typeof t=="function"&&typeof r!="function"?(u=r,r=t):o=t;const l=Jf(o),a=u?-1:1;c(e,void 0,[])();function c(f,h,p){const g=f&&typeof f=="object"?f:{};if(typeof g.type=="string"){const b=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(I,"name",{value:"node ("+(f.type+(b?"<"+b+">":""))+")"})}return I;function I(){let b=jf,S,A,F;if((!t||l(f,h,p[p.length-1]||void 0))&&(b=ry(r(f,p)),b[0]===Uf))return b;if("children"in f&&f.children){const P=f;if(P.children&&b[0]!==ty)for(A=(u?P.children.length:-1)+a,F=p.concat(P);A>-1&&A<P.children.length;){const L=P.children[A];if(S=c(L,A,F)(),S[0]===Uf)return S;A=typeof S[1]=="number"?S[1]:A+a}}return b}}}function ry(e){return Array.isArray(e)?e:typeof e=="number"?[ey,e]:e==null?jf:[e]}function Qf(e,t,r,u){let o,l,a;typeof t=="function"&&typeof r!="function"?(l=void 0,a=t,o=r):(l=t,a=r,o=u),ny(e,l,c,o);function c(f,h){const p=h[h.length-1],g=p?p.children.indexOf(f):void 0;return a(f,g,p)}}const pl={}.hasOwnProperty,iy={};function uy(e,t){const r=t||iy,u=new Map,o=new Map,l=new Map,a={...Wv,...r.handlers},c={all:h,applyData:sy,definitionById:u,footnoteById:o,footnoteCounts:l,footnoteOrder:[],handlers:a,one:f,options:r,patch:oy,wrap:ay};return Qf(e,function(p){if(p.type==="definition"||p.type==="footnoteDefinition"){const g=p.type==="definition"?u:o,I=String(p.identifier).toUpperCase();g.has(I)||g.set(I,p)}}),c;function f(p,g){const I=p.type,b=c.handlers[I];if(pl.call(c.handlers,I)&&b)return b(c,p,g);if(c.options.passThrough&&c.options.passThrough.includes(I)){if("children"in p){const{children:A,...F}=p,P=ro(F);return P.children=c.all(p),P}return ro(p)}return(c.options.unknownHandler||ly)(c,p,g)}function h(p){const g=[];if("children"in p){const I=p.children;let b=-1;for(;++b<I.length;){const S=c.one(I[b],p);if(S){if(b&&I[b-1].type==="break"&&(!Array.isArray(S)&&S.type==="text"&&(S.value=qf(S.value)),!Array.isArray(S)&&S.type==="element")){const A=S.children[0];A&&A.type==="text"&&(A.value=qf(A.value))}Array.isArray(S)?g.push(...S):g.push(S)}}}return g}}function oy(e,t){e.position&&(t.position=Qm(e))}function sy(e,t){let r=t;if(e&&e.data){const u=e.data.hName,o=e.data.hChildren,l=e.data.hProperties;if(typeof u=="string")if(r.type==="element")r.tagName=u;else{const a="children"in r?r.children:[r];r={type:"element",tagName:u,properties:{},children:a}}r.type==="element"&&l&&Object.assign(r.properties,ro(l)),"children"in r&&r.children&&o!==null&&o!==void 0&&(r.children=o)}return r}function ly(e,t){const r=t.data||{},u="value"in t&&!(pl.call(r,"hProperties")||pl.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,u),e.applyData(t,u)}function ay(e,t){const r=[];let u=-1;for(t&&r.push({type:"text",value:`
|
|
11
11
|
`});++u<e.length;)u&&r.push({type:"text",value:`
|
|
12
12
|
`}),r.push(e[u]);return t&&e.length>0&&r.push({type:"text",value:`
|
|
13
13
|
`}),r}function qf(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function $f(e,t){const r=uy(e,t),u=r.one(e,void 0),o=jv(r),l=Array.isArray(u)?{type:"root",children:u}:u||{type:"root",children:[]};return o&&l.children.push({type:"text",value:`
|
|
14
|
-
`},o),l}function cy(e,t){return e&&"run"in e?async function(r,u){const o=$f(r,{file:u,...t});await e.run(o,u)}:function(r,u){return $f(r,{file:u,...e||t})}}function Kf(e){if(e)throw e}var uo=Object.prototype.hasOwnProperty,ed=Object.prototype.toString,td=Object.defineProperty,nd=Object.getOwnPropertyDescriptor,rd=function(t){return typeof Array.isArray=="function"?Array.isArray(t):ed.call(t)==="[object Array]"},id=function(t){if(!t||ed.call(t)!=="[object Object]")return!1;var r=uo.call(t,"constructor"),u=t.constructor&&t.constructor.prototype&&uo.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!u)return!1;var o;for(o in t);return typeof o>"u"||uo.call(t,o)},ud=function(t,r){td&&r.name==="__proto__"?td(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},od=function(t,r){if(r==="__proto__")if(uo.call(t,r)){if(nd)return nd(t,r).value}else return;return t[r]},fy=function e(){var t,r,u,o,l,a,c=arguments[0],f=1,h=arguments.length,p=!1;for(typeof c=="boolean"&&(p=c,c=arguments[1]||{},f=2),(c==null||typeof c!="object"&&typeof c!="function")&&(c={});f<h;++f)if(t=arguments[f],t!=null)for(r in t)u=od(c,r),o=od(t,r),c!==o&&(p&&o&&(id(o)||(l=rd(o)))?(l?(l=!1,a=u&&rd(u)?u:[]):a=u&&id(u)?u:{},ud(c,{name:r,newValue:e(p,a,o)})):typeof o<"u"&&ud(c,{name:r,newValue:o}));return c};const gl=Us(fy);function ml(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 dy(){const e=[],t={run:r,use:u};return t;function r(...o){let l=-1;const a=o.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);c(null,...o);function c(f,...h){const p=e[++l];let g=-1;if(f){a(f);return}for(;++g<o.length;)(h[g]===null||h[g]===void 0)&&(h[g]=o[g]);o=h,p?hy(p,c)(...h):a(null,...h)}}function u(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}function hy(e,t){let r;return u;function u(...a){const c=e.length>a.length;let f;c&&a.push(o);try{f=e.apply(this,a)}catch(h){const p=h;if(c&&r)throw p;return o(p)}c||(f&&f.then&&typeof f.then=="function"?f.then(l,o):f instanceof Error?o(f):l(f))}function o(a,...c){r||(r=!0,t(a,...c))}function l(a){o(null,a)}}const jn={basename:py,dirname:gy,extname:my,join:by,sep:"/"};function py(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');cu(e);let r=0,u=-1,o=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(l){r=o+1;break}}else u<0&&(l=!0,u=o+1);return u<0?"":e.slice(r,u)}if(t===e)return"";let a=-1,c=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(l){r=o+1;break}}else a<0&&(l=!0,a=o+1),c>-1&&(e.codePointAt(o)===t.codePointAt(c--)?c<0&&(u=o):(c=-1,u=a));return r===u?u=a:u<0&&(u=e.length),e.slice(r,u)}function gy(e){if(cu(e),e.length===0)return".";let t=-1,r=e.length,u;for(;--r;)if(e.codePointAt(r)===47){if(u){t=r;break}}else u||(u=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function my(e){cu(e);let t=e.length,r=-1,u=0,o=-1,l=0,a;for(;t--;){const c=e.codePointAt(t);if(c===47){if(a){u=t+1;break}continue}r<0&&(a=!0,r=t+1),c===46?o<0?o=t:l!==1&&(l=1):o>-1&&(l=-1)}return o<0||r<0||l===0||l===1&&o===r-1&&o===u+1?"":e.slice(o,r)}function by(...e){let t=-1,r;for(;++t<e.length;)cu(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":vy(r)}function vy(e){cu(e);const t=e.codePointAt(0)===47;let r=yy(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function yy(e,t){let r="",u=0,o=-1,l=0,a=-1,c,f;for(;++a<=e.length;){if(a<e.length)c=e.codePointAt(a);else{if(c===47)break;c=47}if(c===47){if(!(o===a-1||l===1))if(o!==a-1&&l===2){if(r.length<2||u!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(f=r.lastIndexOf("/"),f!==r.length-1){f<0?(r="",u=0):(r=r.slice(0,f),u=r.length-1-r.lastIndexOf("/")),o=a,l=0;continue}}else if(r.length>0){r="",u=0,o=a,l=0;continue}}t&&(r=r.length>0?r+"/..":"..",u=2)}else r.length>0?r+="/"+e.slice(o+1,a):r=e.slice(o+1,a),u=a-o-1;o=a,l=0}else c===46&&l>-1?l++:l=-1}return r}function cu(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Iy={cwd:Cy};function Cy(){return"/"}function bl(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function xy(e){if(typeof e=="string")e=new URL(e);else if(!bl(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 Ay(e)}function Ay(e){if(e.hostname!==""){const u=new TypeError('File URL host must be "localhost" or empty on darwin');throw u.code="ERR_INVALID_FILE_URL_HOST",u}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const u=t.codePointAt(r+2);if(u===70||u===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}const vl=["history","path","basename","stem","extname","dirname"];class sd{constructor(t){let r;t?bl(t)?r={path:t}:typeof t=="string"||wy(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":Iy.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let u=-1;for(;++u<vl.length;){const l=vl[u];l in r&&r[l]!==void 0&&r[l]!==null&&(this[l]=l==="history"?[...r[l]]:r[l])}let o;for(o in r)vl.includes(o)||(this[o]=r[o])}get basename(){return typeof this.path=="string"?jn.basename(this.path):void 0}set basename(t){Il(t,"basename"),yl(t,"basename"),this.path=jn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?jn.dirname(this.path):void 0}set dirname(t){ld(this.basename,"dirname"),this.path=jn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?jn.extname(this.path):void 0}set extname(t){if(yl(t,"extname"),ld(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=jn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){bl(t)&&(t=xy(t)),Il(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?jn.basename(this.path,this.extname):void 0}set stem(t){Il(t,"stem"),yl(t,"stem"),this.path=jn.join(this.dirname||"",t+(this.extname||""))}fail(t,r,u){const o=this.message(t,r,u);throw o.fatal=!0,o}info(t,r,u){const o=this.message(t,r,u);return o.fatal=void 0,o}message(t,r,u){const o=new Nt(t,r,u);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function yl(e,t){if(e&&e.includes(jn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+jn.sep+"`")}function Il(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function ld(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function wy(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Sy=function(e){const u=this.constructor.prototype,o=u[e],l=function(){return o.apply(l,arguments)};return Object.setPrototypeOf(l,u),l},Ey={}.hasOwnProperty;class Cl extends Sy{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=dy()}copy(){const t=new Cl;let r=-1;for(;++r<this.attachers.length;){const u=this.attachers[r];t.use(...u)}return t.data(gl(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(wl("data",this.frozen),this.namespace[t]=r,this):Ey.call(this.namespace,t)&&this.namespace[t]||void 0:t?(wl("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[r,...u]=this.attachers[this.freezeIndex];if(u[0]===!1)continue;u[0]===!0&&(u[0]=void 0);const o=r.call(t,...u);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=oo(t),u=this.parser||this.Parser;return xl("parse",u),u(String(r),r)}process(t,r){const u=this;return this.freeze(),xl("process",this.parser||this.Parser),Al("process",this.compiler||this.Compiler),r?o(void 0,r):new Promise(o);function o(l,a){const c=oo(t),f=u.parse(c);u.run(f,c,function(p,g,I){if(p||!g||!I)return h(p);const b=g,S=u.stringify(b,I);Oy(S)?I.value=S:I.result=S,h(p,I)});function h(p,g){p||!g?a(p):l?l(g):r(void 0,g)}}}processSync(t){let r=!1,u;return this.freeze(),xl("processSync",this.parser||this.Parser),Al("processSync",this.compiler||this.Compiler),this.process(t,o),cd("processSync","process",r),u;function o(l,a){r=!0,Kf(l),u=a}}run(t,r,u){ad(t),this.freeze();const o=this.transformers;return!u&&typeof r=="function"&&(u=r,r=void 0),u?l(void 0,u):new Promise(l);function l(a,c){const f=oo(r);o.run(t,f,h);function h(p,g,I){const b=g||t;p?c(p):a?a(b):u(void 0,b,I)}}}runSync(t,r){let u=!1,o;return this.run(t,r,l),cd("runSync","run",u),o;function l(a,c){Kf(a),o=c,u=!0}}stringify(t,r){this.freeze();const u=oo(r),o=this.compiler||this.Compiler;return Al("stringify",o),ad(t),o(t,u)}use(t,...r){const u=this.attachers,o=this.namespace;if(wl("use",this.frozen),t!=null)if(typeof t=="function")f(t,r);else if(typeof t=="object")Array.isArray(t)?c(t):a(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function l(h){if(typeof h=="function")f(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[p,...g]=h;f(p,g)}else a(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function a(h){if(!("plugins"in h)&&!("settings"in h))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");c(h.plugins),h.settings&&(o.settings=gl(!0,o.settings,h.settings))}function c(h){let p=-1;if(h!=null)if(Array.isArray(h))for(;++p<h.length;){const g=h[p];l(g)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function f(h,p){let g=-1,I=-1;for(;++g<u.length;)if(u[g][0]===h){I=g;break}if(I===-1)u.push([h,...p]);else if(p.length>0){let[b,...S]=p;const A=u[I][1];ml(A)&&ml(b)&&(b=gl(!0,A,b)),u[I]=[h,b,...S]}}}}const Fy=new Cl().freeze();function xl(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Al(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function wl(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 ad(e){if(!ml(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function cd(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function oo(e){return Py(e)?e:new sd(e)}function Py(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Oy(e){return typeof e=="string"||Ty(e)}function Ty(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const _y="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",fd=[],dd={allowDangerousHtml:!0},By=/^(https?|ircs?|mailto|xmpp)$/i,Gy=[{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 hd(e){const t=e.allowedElements,r=e.allowElement,u=e.children||"",o=e.className,l=e.components,a=e.disallowedElements,c=e.rehypePlugins||fd,f=e.remarkPlugins||fd,h=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...dd}:dd,p=e.skipHtml,g=e.unwrapDisallowed,I=e.urlTransform||Ry,b=Fy().use(gv).use(f).use(cy,h).use(c),S=new sd;typeof u=="string"&&(S.value=u);for(const L of Gy)Object.hasOwn(e,L.from)&&(""+L.from+(L.to?"use `"+L.to+"` instead":"remove it")+_y+L.id,void 0);const A=b.parse(S);let F=b.runSync(A,S);return o&&(F={type:"element",tagName:"div",properties:{className:o},children:F.type==="root"?F.children:[F]}),Qf(F,P),nb(F,{Fragment:$.Fragment,components:l,ignoreInvalidStyle:!0,jsx:$.jsx,jsxs:$.jsxs,passKeys:!0,passNode:!0});function P(L,k,V){if(L.type==="raw"&&V&&typeof k=="number")return p?V.children.splice(k,1):V.children[k]={type:"text",value:L.value},k;if(L.type==="element"){let H;for(H in tl)if(Object.hasOwn(tl,H)&&Object.hasOwn(L.properties,H)){const R=L.properties[H],j=tl[H];(j===null||j.includes(L.tagName))&&(L.properties[H]=I(String(R||""),H,L))}}if(L.type==="element"){let H=t?!t.includes(L.tagName):a?a.includes(L.tagName):!1;if(!H&&r&&typeof k=="number"&&(H=!r(L,k,V)),H&&V&&typeof k=="number")return g&&L.children?V.children.splice(k,1,...L.children):V.children.splice(k,1),k}}}function Ry(e){const t=e.indexOf(":"),r=e.indexOf("?"),u=e.indexOf("#"),o=e.indexOf("/");return t<0||o>-1&&t>o||r>-1&&t>r||u>-1&&t>u||By.test(e.slice(0,t))?e:""}function so({prop:e}){const t={width:"100%",background:"#e2e3e5",borderRadius:"5px",paddingTop:"2px",paddingLeft:"10px",paddingRight:"10px",paddingBottom:"2px"},r={...t,background:"#fff3cd"},u={...t,background:"#d1ecf1"},o={...t,background:"#f8d7da"},l={...t,background:"#fffff2"};let a={};switch(e.alertType){case"info":a=u;break;case"neutral":a=l;break;case"warning":a=r;break;case"error":a=o;break;default:a=t}return $.jsx("div",{className:`pd-alert-${e.alertType}`,style:a,children:$.jsx(hd,{components:{a:({...c})=>$.jsx("a",{...c,target:"_blank",rel:"noopener noreferrer"})},children:e.content})})}var lo={exports:{}};lo.exports,function(e,t){var r=200,u="__lodash_hash_undefined__",o=1,l=2,a=9007199254740991,c="[object Arguments]",f="[object Array]",h="[object AsyncFunction]",p="[object Boolean]",g="[object Date]",I="[object Error]",b="[object Function]",S="[object GeneratorFunction]",A="[object Map]",F="[object Number]",P="[object Null]",L="[object Object]",k="[object Promise]",V="[object Proxy]",H="[object RegExp]",R="[object Set]",j="[object String]",N="[object Symbol]",Z="[object Undefined]",U="[object WeakMap]",Q="[object ArrayBuffer]",K="[object DataView]",he="[object Float32Array]",Be="[object Float64Array]",ie="[object Int8Array]",me="[object Int16Array]",we="[object Int32Array]",Pe="[object Uint8Array]",tt="[object Uint8ClampedArray]",E="[object Uint16Array]",He="[object Uint32Array]",be=/[\\^$.*+?()[\]{}|]/g,w=/^\[object .+?Constructor\]$/,ze=/^(?:0|[1-9]\d*)$/,ve={};ve[he]=ve[Be]=ve[ie]=ve[me]=ve[we]=ve[Pe]=ve[tt]=ve[E]=ve[He]=!0,ve[c]=ve[f]=ve[Q]=ve[p]=ve[K]=ve[g]=ve[I]=ve[b]=ve[A]=ve[F]=ve[L]=ve[H]=ve[R]=ve[j]=ve[U]=!1;var Le=typeof Ln=="object"&&Ln&&Ln.Object===Object&&Ln,Et=typeof self=="object"&&self&&self.Object===Object&&self,Ve=Le||Et||Function("return this")(),ft=t&&!t.nodeType&&t,Zt=ft&&!0&&e&&!e.nodeType&&e,Bt=Zt&&Zt.exports===ft,Yt=Bt&&Le.process,hn=function(){try{return Yt&&Yt.binding&&Yt.binding("util")}catch{}}(),Ct=hn&&hn.isTypedArray;function ne(C,B){for(var J=-1,oe=C==null?0:C.length,ot=0,Oe=[];++J<oe;){var dt=C[J];B(dt,J,C)&&(Oe[ot++]=dt)}return Oe}function le(C,B){for(var J=-1,oe=B.length,ot=C.length;++J<oe;)C[ot+J]=B[J];return C}function de(C,B){for(var J=-1,oe=C==null?0:C.length;++J<oe;)if(B(C[J],J,C))return!0;return!1}function je(C,B){for(var J=-1,oe=Array(C);++J<C;)oe[J]=B(J);return oe}function vt(C){return function(B){return C(B)}}function yt(C,B){return C.has(B)}function Dt(C,B){return C==null?void 0:C[B]}function Nn(C){var B=-1,J=Array(C.size);return C.forEach(function(oe,ot){J[++B]=[ot,oe]}),J}function nt(C,B){return function(J){return C(B(J))}}function rt(C){var B=-1,J=Array(C.size);return C.forEach(function(oe){J[++B]=oe}),J}var $e=Array.prototype,D=Function.prototype,ee=Object.prototype,ge=Ve["__core-js_shared__"],Ge=D.toString,Re=ee.hasOwnProperty,Gt=function(){var C=/[^.]+$/.exec(ge&&ge.keys&&ge.keys.IE_PROTO||"");return C?"Symbol(src)_1."+C:""}(),tn=ee.toString,Jt=RegExp("^"+Ge.call(Re).replace(be,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),En=Bt?Ve.Buffer:void 0,nn=Ve.Symbol,Ft=Ve.Uint8Array,pn=ee.propertyIsEnumerable,gn=$e.splice,lr=nn?nn.toStringTag:void 0,Ro=Object.getOwnPropertySymbols,ko=En?En.isBuffer:void 0,Lo=nt(Object.keys,Object),wu=mn(Ve,"DataView"),ti=mn(Ve,"Map"),Su=mn(Ve,"Promise"),Eu=mn(Ve,"Set"),Di=mn(Ve,"WeakMap"),ni=mn(Object,"create"),ta=fr(wu),na=fr(ti),Fu=fr(Su),ra=fr(Eu),Pu=fr(Di),Do=nn?nn.prototype:void 0,Ou=Do?Do.valueOf:void 0;function ar(C){var B=-1,J=C==null?0:C.length;for(this.clear();++B<J;){var oe=C[B];this.set(oe[0],oe[1])}}function ia(){this.__data__=ni?ni(null):{},this.size=0}function ua(C){var B=this.has(C)&&delete this.__data__[C];return this.size-=B?1:0,B}function oa(C){var B=this.__data__;if(ni){var J=B[C];return J===u?void 0:J}return Re.call(B,C)?B[C]:void 0}function sa(C){var B=this.__data__;return ni?B[C]!==void 0:Re.call(B,C)}function la(C,B){var J=this.__data__;return this.size+=this.has(C)?0:1,J[C]=ni&&B===void 0?u:B,this}ar.prototype.clear=ia,ar.prototype.delete=ua,ar.prototype.get=oa,ar.prototype.has=sa,ar.prototype.set=la;function Fn(C){var B=-1,J=C==null?0:C.length;for(this.clear();++B<J;){var oe=C[B];this.set(oe[0],oe[1])}}function aa(){this.__data__=[],this.size=0}function ca(C){var B=this.__data__,J=ri(B,C);if(J<0)return!1;var oe=B.length-1;return J==oe?B.pop():gn.call(B,J,1),--this.size,!0}function fa(C){var B=this.__data__,J=ri(B,C);return J<0?void 0:B[J][1]}function da(C){return ri(this.__data__,C)>-1}function ha(C,B){var J=this.__data__,oe=ri(J,C);return oe<0?(++this.size,J.push([C,B])):J[oe][1]=B,this}Fn.prototype.clear=aa,Fn.prototype.delete=ca,Fn.prototype.get=fa,Fn.prototype.has=da,Fn.prototype.set=ha;function cr(C){var B=-1,J=C==null?0:C.length;for(this.clear();++B<J;){var oe=C[B];this.set(oe[0],oe[1])}}function Mi(){this.size=0,this.__data__={hash:new ar,map:new(ti||Fn),string:new ar}}function pa(C){var B=_r(this,C).delete(C);return this.size-=B?1:0,B}function Ni(C){return _r(this,C).get(C)}function ga(C){return _r(this,C).has(C)}function ma(C,B){var J=_r(this,C),oe=J.size;return J.set(C,B),this.size+=J.size==oe?0:1,this}cr.prototype.clear=Mi,cr.prototype.delete=pa,cr.prototype.get=Ni,cr.prototype.has=ga,cr.prototype.set=ma;function Vi(C){var B=-1,J=C==null?0:C.length;for(this.__data__=new cr;++B<J;)this.add(C[B])}function Mo(C){return this.__data__.set(C,u),this}function No(C){return this.__data__.has(C)}Vi.prototype.add=Vi.prototype.push=Mo,Vi.prototype.has=No;function Vn(C){var B=this.__data__=new Fn(C);this.size=B.size}function ba(){this.__data__=new Fn,this.size=0}function va(C){var B=this.__data__,J=B.delete(C);return this.size=B.size,J}function ya(C){return this.__data__.get(C)}function Ia(C){return this.__data__.has(C)}function Vo(C,B){var J=this.__data__;if(J instanceof Fn){var oe=J.__data__;if(!ti||oe.length<r-1)return oe.push([C,B]),this.size=++J.size,this;J=this.__data__=new cr(oe)}return J.set(C,B),this.size=J.size,this}Vn.prototype.clear=ba,Vn.prototype.delete=va,Vn.prototype.get=ya,Vn.prototype.has=Ia,Vn.prototype.set=Vo;function Wo(C,B){var J=Hi(C),oe=!J&&Ko(C),ot=!J&&!oe&&Bu(C),Oe=!J&&!oe&&!ot&&ns(C),dt=J||oe||ot||Oe,Pt=dt?je(C.length,String):[],Ze=Pt.length;for(var st in C)Re.call(C,st)&&!(dt&&(st=="length"||ot&&(st=="offset"||st=="parent")||Oe&&(st=="buffer"||st=="byteLength"||st=="byteOffset")||jo(st,Ze)))&&Pt.push(st);return Pt}function ri(C,B){for(var J=C.length;J--;)if($o(C[J][0],B))return J;return-1}function Tu(C,B,J){var oe=B(C);return Hi(C)?oe:le(oe,J(C))}function ii(C){return C==null?C===void 0?Z:P:lr&&lr in Object(C)?Yo(C):Aa(C)}function _u(C){return oi(C)&&ii(C)==c}function ui(C,B,J,oe,ot){return C===B?!0:C==null||B==null||!oi(C)&&!oi(B)?C!==C&&B!==B:Xo(C,B,J,oe,ui,ot)}function Xo(C,B,J,oe,ot,Oe){var dt=Hi(C),Pt=Hi(B),Ze=dt?f:er(C),st=Pt?f:er(B);Ze=Ze==c?L:Ze,st=st==c?L:st;var xt=Ze==L,rn=st==L,Ot=Ze==st;if(Ot&&Bu(C)){if(!Bu(B))return!1;dt=!0,xt=!1}if(Ot&&!xt)return Oe||(Oe=new Vn),dt||ns(C)?Wi(C,B,J,oe,ot,Oe):xa(C,B,Ze,J,oe,ot,Oe);if(!(J&o)){var ht=xt&&Re.call(C,"__wrapped__"),jt=rn&&Re.call(B,"__wrapped__");if(ht||jt){var Wn=ht?C.value():C,Pn=jt?B.value():B;return Oe||(Oe=new Vn),ot(Wn,Pn,J,oe,Oe)}}return Ot?(Oe||(Oe=new Vn),Zo(C,B,J,oe,ot,Oe)):!1}function Ca(C){if(!ts(C)||Qo(C))return!1;var B=zi(C)?Jt:w;return B.test(fr(C))}function Ho(C){return oi(C)&&es(C.length)&&!!ve[ii(C)]}function zo(C){if(!qo(C))return Lo(C);var B=[];for(var J in Object(C))Re.call(C,J)&&J!="constructor"&&B.push(J);return B}function Wi(C,B,J,oe,ot,Oe){var dt=J&o,Pt=C.length,Ze=B.length;if(Pt!=Ze&&!(dt&&Ze>Pt))return!1;var st=Oe.get(C);if(st&&Oe.get(B))return st==B;var xt=-1,rn=!0,Ot=J&l?new Vi:void 0;for(Oe.set(C,B),Oe.set(B,C);++xt<Pt;){var ht=C[xt],jt=B[xt];if(oe)var Wn=dt?oe(jt,ht,xt,B,C,Oe):oe(ht,jt,xt,C,B,Oe);if(Wn!==void 0){if(Wn)continue;rn=!1;break}if(Ot){if(!de(B,function(Pn,tr){if(!yt(Ot,tr)&&(ht===Pn||ot(ht,Pn,J,oe,Oe)))return Ot.push(tr)})){rn=!1;break}}else if(!(ht===jt||ot(ht,jt,J,oe,Oe))){rn=!1;break}}return Oe.delete(C),Oe.delete(B),rn}function xa(C,B,J,oe,ot,Oe,dt){switch(J){case K:if(C.byteLength!=B.byteLength||C.byteOffset!=B.byteOffset)return!1;C=C.buffer,B=B.buffer;case Q:return!(C.byteLength!=B.byteLength||!Oe(new Ft(C),new Ft(B)));case p:case g:case F:return $o(+C,+B);case I:return C.name==B.name&&C.message==B.message;case H:case j:return C==B+"";case A:var Pt=Nn;case R:var Ze=oe&o;if(Pt||(Pt=rt),C.size!=B.size&&!Ze)return!1;var st=dt.get(C);if(st)return st==B;oe|=l,dt.set(C,B);var xt=Wi(Pt(C),Pt(B),oe,ot,Oe,dt);return dt.delete(C),xt;case N:if(Ou)return Ou.call(C)==Ou.call(B)}return!1}function Zo(C,B,J,oe,ot,Oe){var dt=J&o,Pt=Xi(C),Ze=Pt.length,st=Xi(B),xt=st.length;if(Ze!=xt&&!dt)return!1;for(var rn=Ze;rn--;){var Ot=Pt[rn];if(!(dt?Ot in B:Re.call(B,Ot)))return!1}var ht=Oe.get(C);if(ht&&Oe.get(B))return ht==B;var jt=!0;Oe.set(C,B),Oe.set(B,C);for(var Wn=dt;++rn<Ze;){Ot=Pt[rn];var Pn=C[Ot],tr=B[Ot];if(oe)var Gu=dt?oe(tr,Pn,Ot,B,C,Oe):oe(Pn,tr,Ot,C,B,Oe);if(!(Gu===void 0?Pn===tr||ot(Pn,tr,J,oe,Oe):Gu)){jt=!1;break}Wn||(Wn=Ot=="constructor")}if(jt&&!Wn){var si=C.constructor,Rt=B.constructor;si!=Rt&&"constructor"in C&&"constructor"in B&&!(typeof si=="function"&&si instanceof si&&typeof Rt=="function"&&Rt instanceof Rt)&&(jt=!1)}return Oe.delete(C),Oe.delete(B),jt}function Xi(C){return Tu(C,Ea,Jo)}function _r(C,B){var J=C.__data__;return Uo(B)?J[typeof B=="string"?"string":"hash"]:J.map}function mn(C,B){var J=Dt(C,B);return Ca(J)?J:void 0}function Yo(C){var B=Re.call(C,lr),J=C[lr];try{C[lr]=void 0;var oe=!0}catch{}var ot=tn.call(C);return oe&&(B?C[lr]=J:delete C[lr]),ot}var Jo=Ro?function(C){return C==null?[]:(C=Object(C),ne(Ro(C),function(B){return pn.call(C,B)}))}:ut,er=ii;(wu&&er(new wu(new ArrayBuffer(1)))!=K||ti&&er(new ti)!=A||Su&&er(Su.resolve())!=k||Eu&&er(new Eu)!=R||Di&&er(new Di)!=U)&&(er=function(C){var B=ii(C),J=B==L?C.constructor:void 0,oe=J?fr(J):"";if(oe)switch(oe){case ta:return K;case na:return A;case Fu:return k;case ra:return R;case Pu:return U}return B});function jo(C,B){return B=B??a,!!B&&(typeof C=="number"||ze.test(C))&&C>-1&&C%1==0&&C<B}function Uo(C){var B=typeof C;return B=="string"||B=="number"||B=="symbol"||B=="boolean"?C!=="__proto__":C===null}function Qo(C){return!!Gt&&Gt in C}function qo(C){var B=C&&C.constructor,J=typeof B=="function"&&B.prototype||ee;return C===J}function Aa(C){return tn.call(C)}function fr(C){if(C!=null){try{return Ge.call(C)}catch{}try{return C+""}catch{}}return""}function $o(C,B){return C===B||C!==C&&B!==B}var Ko=_u(function(){return arguments}())?_u:function(C){return oi(C)&&Re.call(C,"callee")&&!pn.call(C,"callee")},Hi=Array.isArray;function wa(C){return C!=null&&es(C.length)&&!zi(C)}var Bu=ko||it;function Sa(C,B){return ui(C,B)}function zi(C){if(!ts(C))return!1;var B=ii(C);return B==b||B==S||B==h||B==V}function es(C){return typeof C=="number"&&C>-1&&C%1==0&&C<=a}function ts(C){var B=typeof C;return C!=null&&(B=="object"||B=="function")}function oi(C){return C!=null&&typeof C=="object"}var ns=Ct?vt(Ct):Ho;function Ea(C){return wa(C)?Wo(C):zo(C)}function ut(){return[]}function it(){return!1}e.exports=Sa}(lo,lo.exports);var ky=lo.exports;const Ly=Us(ky);var fu=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(){}},zr=typeof window>"u"||"Deno"in globalThis;function wn(){}function Dy(e,t){return typeof e=="function"?e(t):e}function Sl(e){return typeof e=="number"&&e>=0&&e!==1/0}function pd(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ci(e,t){return typeof e=="function"?e(t):e}function Dn(e,t){return typeof e=="function"?e(t):e}function gd(e,t){const{type:r="all",exact:u,fetchStatus:o,predicate:l,queryKey:a,stale:c}=e;if(a){if(u){if(t.queryHash!==El(a,t.options))return!1}else if(!hu(t.queryKey,a))return!1}if(r!=="all"){const f=t.isActive();if(r==="active"&&!f||r==="inactive"&&f)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||o&&o!==t.state.fetchStatus||l&&!l(t))}function md(e,t){const{exact:r,status:u,predicate:o,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(r){if(du(t.options.mutationKey)!==du(l))return!1}else if(!hu(t.options.mutationKey,l))return!1}return!(u&&t.state.status!==u||o&&!o(t))}function El(e,t){return((t==null?void 0:t.queryKeyHashFn)||du)(e)}function du(e){return JSON.stringify(e,(t,r)=>Ol(r)?Object.keys(r).sort().reduce((u,o)=>(u[o]=r[o],u),{}):r)}function hu(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!hu(e[r],t[r])):!1}function Fl(e,t){if(e===t)return e;const r=bd(e)&&bd(t);if(r||Ol(e)&&Ol(t)){const u=r?e:Object.keys(e),o=u.length,l=r?t:Object.keys(t),a=l.length,c=r?[]:{};let f=0;for(let h=0;h<a;h++){const p=r?h:l[h];(!r&&u.includes(p)||r)&&e[p]===void 0&&t[p]===void 0?(c[p]=void 0,f++):(c[p]=Fl(e[p],t[p]),c[p]===e[p]&&e[p]!==void 0&&f++)}return o===a&&f===o?e:c}return t}function Pl(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function bd(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ol(e){if(!vd(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!vd(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function vd(e){return Object.prototype.toString.call(e)==="[object Object]"}function My(e){return new Promise(t=>{setTimeout(t,e)})}function Tl(e,t,r){if(typeof r.structuralSharing=="function")return r.structuralSharing(e,t);if(r.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return Fl(e,t)}catch(u){console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${r.queryHash}]: ${u}`)}return Fl(e,t)}return t}function Ny(e,t,r=0){const u=[...e,t];return r&&u.length>r?u.slice(1):u}function Vy(e,t,r=0){const u=[t,...e];return r&&u.length>r?u.slice(0,-1):u}var ao=Symbol();function yd(e,t){return process.env.NODE_ENV!=="production"&&e.queryFn===ao&&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===ao?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Wy=(op=class extends fu{constructor(){super();Se(this,jr);Se(this,wr);Se(this,wi);ae(this,wi,t=>{if(!zr&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){T(this,wr)||this.setEventListener(T(this,wi))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,wr))==null||t.call(this),ae(this,wr,void 0))}setEventListener(t){var r;ae(this,wi,t),(r=T(this,wr))==null||r.call(this),ae(this,wr,t(u=>{typeof u=="boolean"?this.setFocused(u):this.onFocus()}))}setFocused(t){T(this,jr)!==t&&(ae(this,jr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof T(this,jr)=="boolean"?T(this,jr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},jr=new WeakMap,wr=new WeakMap,wi=new WeakMap,op),_l=new Wy,Xy=(sp=class extends fu{constructor(){super();Se(this,Si,!0);Se(this,Sr);Se(this,Ei);ae(this,Ei,t=>{if(!zr&&window.addEventListener){const r=()=>t(!0),u=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",u,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",u)}}})}onSubscribe(){T(this,Sr)||this.setEventListener(T(this,Ei))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,Sr))==null||t.call(this),ae(this,Sr,void 0))}setEventListener(t){var r;ae(this,Ei,t),(r=T(this,Sr))==null||r.call(this),ae(this,Sr,t(this.setOnline.bind(this)))}setOnline(t){T(this,Si)!==t&&(ae(this,Si,t),this.listeners.forEach(u=>{u(t)}))}isOnline(){return T(this,Si)}},Si=new WeakMap,Sr=new WeakMap,Ei=new WeakMap,sp),co=new Xy;function Bl(){let e,t;const r=new Promise((o,l)=>{e=o,t=l});r.status="pending",r.catch(()=>{});function u(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{u({status:"fulfilled",value:o}),e(o)},r.reject=o=>{u({status:"rejected",reason:o}),t(o)},r}function Hy(e){return Math.min(1e3*2**e,3e4)}function Id(e){return(e??"online")==="online"?co.isOnline():!0}var Cd=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Gl(e){return e instanceof Cd}function xd(e){let t=!1,r=0,u=!1,o;const l=Bl(),a=A=>{var F;u||(I(new Cd(A)),(F=e.abort)==null||F.call(e))},c=()=>{t=!0},f=()=>{t=!1},h=()=>_l.isFocused()&&(e.networkMode==="always"||co.isOnline())&&e.canRun(),p=()=>Id(e.networkMode)&&e.canRun(),g=A=>{var F;u||(u=!0,(F=e.onSuccess)==null||F.call(e,A),o==null||o(),l.resolve(A))},I=A=>{var F;u||(u=!0,(F=e.onError)==null||F.call(e,A),o==null||o(),l.reject(A))},b=()=>new Promise(A=>{var F;o=P=>{(u||h())&&A(P)},(F=e.onPause)==null||F.call(e)}).then(()=>{var A;o=void 0,u||(A=e.onContinue)==null||A.call(e)}),S=()=>{if(u)return;let A;const F=r===0?e.initialPromise:void 0;try{A=F??e.fn()}catch(P){A=Promise.reject(P)}Promise.resolve(A).then(g).catch(P=>{var R;if(u)return;const L=e.retry??(zr?0:3),k=e.retryDelay??Hy,V=typeof k=="function"?k(r,P):k,H=L===!0||typeof L=="number"&&r<L||typeof L=="function"&&L(r,P);if(t||!H){I(P);return}r++,(R=e.onFail)==null||R.call(e,r,P),My(V).then(()=>h()?void 0:b()).then(()=>{t?I(P):S()})})};return{promise:l,cancel:a,continue:()=>(o==null||o(),l),cancelRetry:c,continueRetry:f,canStart:p,start:()=>(p()?S():b().then(S),l)}}function zy(){let e=[],t=0,r=c=>{c()},u=c=>{c()},o=c=>setTimeout(c,0);const l=c=>{t?e.push(c):o(()=>{r(c)})},a=()=>{const c=e;e=[],c.length&&o(()=>{u(()=>{c.forEach(f=>{r(f)})})})};return{batch:c=>{let f;t++;try{f=c()}finally{t--,t||a()}return f},batchCalls:c=>(...f)=>{l(()=>{c(...f)})},schedule:l,setNotifyFunction:c=>{r=c},setBatchNotifyFunction:c=>{u=c},setScheduler:c=>{o=c}}}var Lt=zy(),Ad=(lp=class{constructor(){Se(this,Ur)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Sl(this.gcTime)&&ae(this,Ur,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(zr?1/0:5*60*1e3))}clearGcTimeout(){T(this,Ur)&&(clearTimeout(T(this,Ur)),ae(this,Ur,void 0))}},Ur=new WeakMap,lp),Zy=(ap=class extends Ad{constructor(t){super();Se(this,Mn);Se(this,Fi);Se(this,Pi);Se(this,Sn);Se(this,Vt);Se(this,Iu);Se(this,Qr);ae(this,Qr,!1),ae(this,Iu,t.defaultOptions),this.setOptions(t.options),this.observers=[],ae(this,Sn,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ae(this,Fi,Yy(this.options)),this.state=t.state??T(this,Fi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=T(this,Vt))==null?void 0:t.promise}setOptions(t){this.options={...T(this,Iu),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,Sn).remove(this)}setData(t,r){const u=Tl(this.state.data,t,this.options);return Je(this,Mn,Cr).call(this,{data:u,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),u}setState(t,r){Je(this,Mn,Cr).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var u,o;const r=(u=T(this,Vt))==null?void 0:u.promise;return(o=T(this,Vt))==null||o.cancel(t),r?r.then(wn).catch(wn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(T(this,Fi))}isActive(){return this.observers.some(t=>Dn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ao||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||!pd(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(u=>u.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=T(this,Vt))==null||r.continue()}onOnline(){var r;const t=this.observers.find(u=>u.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=T(this,Vt))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),T(this,Sn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(T(this,Vt)&&(T(this,Qr)?T(this,Vt).cancel({revert:!0}):T(this,Vt).cancelRetry()),this.scheduleGc()),T(this,Sn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Je(this,Mn,Cr).call(this,{type:"invalidate"})}fetch(t,r){var f,h,p;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(T(this,Vt))return T(this,Vt).continueRetry(),T(this,Vt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const g=this.observers.find(I=>I.options.queryFn);g&&this.setOptions(g.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 u=new AbortController,o=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(ae(this,Qr,!0),u.signal)})},l=()=>{const g=yd(this.options,r),I={queryKey:this.queryKey,meta:this.meta};return o(I),ae(this,Qr,!1),this.options.persister?this.options.persister(g,I,this):g(I)},a={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:l};o(a),(f=this.options.behavior)==null||f.onFetch(a,this),ae(this,Pi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((h=a.fetchOptions)==null?void 0:h.meta))&&Je(this,Mn,Cr).call(this,{type:"fetch",meta:(p=a.fetchOptions)==null?void 0:p.meta});const c=g=>{var I,b,S,A;Gl(g)&&g.silent||Je(this,Mn,Cr).call(this,{type:"error",error:g}),Gl(g)||((b=(I=T(this,Sn).config).onError)==null||b.call(I,g,this),(A=(S=T(this,Sn).config).onSettled)==null||A.call(S,this.state.data,g,this)),this.scheduleGc()};return ae(this,Vt,xd({initialPromise:r==null?void 0:r.initialPromise,fn:a.fetchFn,abort:u.abort.bind(u),onSuccess:g=>{var I,b,S,A;if(g===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}`),c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(g)}catch(F){c(F);return}(b=(I=T(this,Sn).config).onSuccess)==null||b.call(I,g,this),(A=(S=T(this,Sn).config).onSettled)==null||A.call(S,g,this.state.error,this),this.scheduleGc()},onError:c,onFail:(g,I)=>{Je(this,Mn,Cr).call(this,{type:"failed",failureCount:g,error:I})},onPause:()=>{Je(this,Mn,Cr).call(this,{type:"pause"})},onContinue:()=>{Je(this,Mn,Cr).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),T(this,Vt).start()}},Fi=new WeakMap,Pi=new WeakMap,Sn=new WeakMap,Vt=new WeakMap,Iu=new WeakMap,Qr=new WeakMap,Mn=new WeakSet,Cr=function(t){const r=u=>{switch(t.type){case"failed":return{...u,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...u,fetchStatus:"paused"};case"continue":return{...u,fetchStatus:"fetching"};case"fetch":return{...u,...wd(u.data,this.options),fetchMeta:t.meta??null};case"success":return{...u,data:t.data,dataUpdateCount:u.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return Gl(o)&&o.revert&&T(this,Pi)?{...T(this,Pi),fetchStatus:"idle"}:{...u,error:o,errorUpdateCount:u.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:u.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...u,isInvalidated:!0};case"setState":return{...u,...t.state}}};this.state=r(this.state),Lt.batch(()=>{this.observers.forEach(u=>{u.onQueryUpdate()}),T(this,Sn).notify({query:this,type:"updated",action:t})})},ap);function wd(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Id(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Yy(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,u=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?u??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Jy=(cp=class extends fu{constructor(t={}){super();Se(this,Qn);this.config=t,ae(this,Qn,new Map)}build(t,r,u){const o=r.queryKey,l=r.queryHash??El(o,r);let a=this.get(l);return a||(a=new Zy({cache:this,queryKey:o,queryHash:l,options:t.defaultQueryOptions(r),state:u,defaultOptions:t.getQueryDefaults(o)}),this.add(a)),a}add(t){T(this,Qn).has(t.queryHash)||(T(this,Qn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=T(this,Qn).get(t.queryHash);r&&(t.destroy(),r===t&&T(this,Qn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Lt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return T(this,Qn).get(t)}getAll(){return[...T(this,Qn).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(u=>gd(r,u))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(u=>gd(t,u)):r}notify(t){Lt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){Lt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Lt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Qn=new WeakMap,cp),jy=(fp=class extends Ad{constructor(t){super();Se(this,$n);Se(this,qn);Se(this,Ht);Se(this,qr);this.mutationId=t.mutationId,ae(this,Ht,t.mutationCache),ae(this,qn,[]),this.state=t.state||Uy(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){T(this,qn).includes(t)||(T(this,qn).push(t),this.clearGcTimeout(),T(this,Ht).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ae(this,qn,T(this,qn).filter(r=>r!==t)),this.scheduleGc(),T(this,Ht).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){T(this,qn).length||(this.state.status==="pending"?this.scheduleGc():T(this,Ht).remove(this))}continue(){var t;return((t=T(this,qr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,l,a,c,f,h,p,g,I,b,S,A,F,P,L,k,V,H,R,j;ae(this,qr,xd({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(N,Z)=>{Je(this,$n,Wr).call(this,{type:"failed",failureCount:N,error:Z})},onPause:()=>{Je(this,$n,Wr).call(this,{type:"pause"})},onContinue:()=>{Je(this,$n,Wr).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,Ht).canRun(this)}));const r=this.state.status==="pending",u=!T(this,qr).canStart();try{if(!r){Je(this,$n,Wr).call(this,{type:"pending",variables:t,isPaused:u}),await((l=(o=T(this,Ht).config).onMutate)==null?void 0:l.call(o,t,this));const Z=await((c=(a=this.options).onMutate)==null?void 0:c.call(a,t));Z!==this.state.context&&Je(this,$n,Wr).call(this,{type:"pending",context:Z,variables:t,isPaused:u})}const N=await T(this,qr).start();return await((h=(f=T(this,Ht).config).onSuccess)==null?void 0:h.call(f,N,t,this.state.context,this)),await((g=(p=this.options).onSuccess)==null?void 0:g.call(p,N,t,this.state.context)),await((b=(I=T(this,Ht).config).onSettled)==null?void 0:b.call(I,N,null,this.state.variables,this.state.context,this)),await((A=(S=this.options).onSettled)==null?void 0:A.call(S,N,null,t,this.state.context)),Je(this,$n,Wr).call(this,{type:"success",data:N}),N}catch(N){try{throw await((P=(F=T(this,Ht).config).onError)==null?void 0:P.call(F,N,t,this.state.context,this)),await((k=(L=this.options).onError)==null?void 0:k.call(L,N,t,this.state.context)),await((H=(V=T(this,Ht).config).onSettled)==null?void 0:H.call(V,void 0,N,this.state.variables,this.state.context,this)),await((j=(R=this.options).onSettled)==null?void 0:j.call(R,void 0,N,t,this.state.context)),N}finally{Je(this,$n,Wr).call(this,{type:"error",error:N})}}finally{T(this,Ht).runNext(this)}}},qn=new WeakMap,Ht=new WeakMap,qr=new WeakMap,$n=new WeakSet,Wr=function(t){const r=u=>{switch(t.type){case"failed":return{...u,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...u,isPaused:!0};case"continue":return{...u,isPaused:!1};case"pending":return{...u,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{...u,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...u,data:void 0,error:t.error,failureCount:u.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Lt.batch(()=>{T(this,qn).forEach(u=>{u.onMutationUpdate(t)}),T(this,Ht).notify({mutation:this,type:"updated",action:t})})},fp);function Uy(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Qy=(dp=class extends fu{constructor(t={}){super();Se(this,dn);Se(this,Cu);this.config=t,ae(this,dn,new Map),ae(this,Cu,Date.now())}build(t,r,u){const o=new jy({mutationCache:this,mutationId:++Xs(this,Cu)._,options:t.defaultMutationOptions(r),state:u});return this.add(o),o}add(t){const r=fo(t),u=T(this,dn).get(r)??[];u.push(t),T(this,dn).set(r,u),this.notify({type:"added",mutation:t})}remove(t){var u;const r=fo(t);if(T(this,dn).has(r)){const o=(u=T(this,dn).get(r))==null?void 0:u.filter(l=>l!==t);o&&(o.length===0?T(this,dn).delete(r):T(this,dn).set(r,o))}this.notify({type:"removed",mutation:t})}canRun(t){var u;const r=(u=T(this,dn).get(fo(t)))==null?void 0:u.find(o=>o.state.status==="pending");return!r||r===t}runNext(t){var u;const r=(u=T(this,dn).get(fo(t)))==null?void 0:u.find(o=>o!==t&&o.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}clear(){Lt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...T(this,dn).values()].flat()}find(t){const r={exact:!0,...t};return this.getAll().find(u=>md(r,u))}findAll(t={}){return this.getAll().filter(r=>md(t,r))}notify(t){Lt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return Lt.batch(()=>Promise.all(t.map(r=>r.continue().catch(wn))))}},dn=new WeakMap,Cu=new WeakMap,dp);function fo(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Sd(e){return{onFetch:(t,r)=>{var p,g,I,b,S;const u=t.options,o=(I=(g=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:g.fetchMore)==null?void 0:I.direction,l=((b=t.state.data)==null?void 0:b.pages)||[],a=((S=t.state.data)==null?void 0:S.pageParams)||[];let c={pages:[],pageParams:[]},f=0;const h=async()=>{let A=!1;const F=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>(t.signal.aborted?A=!0:t.signal.addEventListener("abort",()=>{A=!0}),t.signal)})},P=yd(t.options,t.fetchOptions),L=async(k,V,H)=>{if(A)return Promise.reject();if(V==null&&k.pages.length)return Promise.resolve(k);const R={queryKey:t.queryKey,pageParam:V,direction:H?"backward":"forward",meta:t.options.meta};F(R);const j=await P(R),{maxPages:N}=t.options,Z=H?Vy:Ny;return{pages:Z(k.pages,j,N),pageParams:Z(k.pageParams,V,N)}};if(o&&l.length){const k=o==="backward",V=k?qy:Ed,H={pages:l,pageParams:a},R=V(u,H);c=await L(H,R,k)}else{const k=e??l.length;do{const V=f===0?a[0]??u.initialPageParam:Ed(u,c);if(f>0&&V==null)break;c=await L(c,V),f++}while(f<k)}return c};t.options.persister?t.fetchFn=()=>{var A,F;return(F=(A=t.options).persister)==null?void 0:F.call(A,h,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=h}}}function Ed(e,{pages:t,pageParams:r}){const u=t.length-1;return t.length>0?e.getNextPageParam(t[u],t,r[u],r):void 0}function qy(e,{pages:t,pageParams:r}){var u;return t.length>0?(u=e.getPreviousPageParam)==null?void 0:u.call(e,t[0],t,r[0],r):void 0}var $y=(hp=class{constructor(e={}){Se(this,bt);Se(this,Er);Se(this,Fr);Se(this,Oi);Se(this,Ti);Se(this,Pr);Se(this,_i);Se(this,Bi);ae(this,bt,e.queryCache||new Jy),ae(this,Er,e.mutationCache||new Qy),ae(this,Fr,e.defaultOptions||{}),ae(this,Oi,new Map),ae(this,Ti,new Map),ae(this,Pr,0)}mount(){Xs(this,Pr)._++,T(this,Pr)===1&&(ae(this,_i,_l.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,bt).onFocus())})),ae(this,Bi,co.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,bt).onOnline())})))}unmount(){var e,t;Xs(this,Pr)._--,T(this,Pr)===0&&((e=T(this,_i))==null||e.call(this),ae(this,_i,void 0),(t=T(this,Bi))==null||t.call(this),ae(this,Bi,void 0))}isFetching(e){return T(this,bt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return T(this,Er).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=T(this,bt).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const r=this.defaultQueryOptions(e),u=T(this,bt).build(this,r);return e.revalidateIfStale&&u.isStaleByTime(Ci(r.staleTime,u))&&this.prefetchQuery(r),Promise.resolve(t)}}getQueriesData(e){return T(this,bt).findAll(e).map(({queryKey:t,state:r})=>{const u=r.data;return[t,u]})}setQueryData(e,t,r){const u=this.defaultQueryOptions({queryKey:e}),o=T(this,bt).get(u.queryHash),l=o==null?void 0:o.state.data,a=Dy(t,l);if(a!==void 0)return T(this,bt).build(this,u).setData(a,{...r,manual:!0})}setQueriesData(e,t,r){return Lt.batch(()=>T(this,bt).findAll(e).map(({queryKey:u})=>[u,this.setQueryData(u,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=T(this,bt).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=T(this,bt);Lt.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=T(this,bt),u={type:"active",...e};return Lt.batch(()=>(r.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries(u,t)))}cancelQueries(e={},t={}){const r={revert:!0,...t},u=Lt.batch(()=>T(this,bt).findAll(e).map(o=>o.cancel(r)));return Promise.all(u).then(wn).catch(wn)}invalidateQueries(e={},t={}){return Lt.batch(()=>{if(T(this,bt).findAll(e).forEach(u=>{u.invalidate()}),e.refetchType==="none")return Promise.resolve();const r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)})}refetchQueries(e={},t){const r={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},u=Lt.batch(()=>T(this,bt).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let l=o.fetch(void 0,r);return r.throwOnError||(l=l.catch(wn)),o.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(u).then(wn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=T(this,bt).build(this,t);return r.isStaleByTime(Ci(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(wn).catch(wn)}fetchInfiniteQuery(e){return e.behavior=Sd(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(wn).catch(wn)}ensureInfiniteQueryData(e){return e.behavior=Sd(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return co.isOnline()?T(this,Er).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,bt)}getMutationCache(){return T(this,Er)}getDefaultOptions(){return T(this,Fr)}setDefaultOptions(e){ae(this,Fr,e)}setQueryDefaults(e,t){T(this,Oi).set(du(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...T(this,Oi).values()];let r={};return t.forEach(u=>{hu(e,u.queryKey)&&(r={...r,...u.defaultOptions})}),r}setMutationDefaults(e,t){T(this,Ti).set(du(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...T(this,Ti).values()];let r={};return t.forEach(u=>{hu(e,u.mutationKey)&&(r={...r,...u.defaultOptions})}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...T(this,Fr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=El(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===ao&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...T(this,Fr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){T(this,bt).clear(),T(this,Er).clear()}},bt=new WeakMap,Er=new WeakMap,Fr=new WeakMap,Oi=new WeakMap,Ti=new WeakMap,Pr=new WeakMap,_i=new WeakMap,Bi=new WeakMap,hp),Ky=(pp=class extends fu{constructor(t,r){super();Se(this,qe);Se(this,en);Se(this,Xe);Se(this,xu);Se(this,zt);Se(this,$r);Se(this,Gi);Se(this,Or);Se(this,Kn);Se(this,Au);Se(this,Ri);Se(this,ki);Se(this,Kr);Se(this,ei);Se(this,Tr);Se(this,Li,new Set);this.options=r,ae(this,en,t),ae(this,Kn,null),ae(this,Or,Bl()),this.options.experimental_prefetchInRender||T(this,Or).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(T(this,Xe).addObserver(this),Fd(T(this,Xe),this.options)?Je(this,qe,Uu).call(this):this.updateResult(),Je(this,qe,Rc).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Rl(T(this,Xe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Rl(T(this,Xe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Je(this,qe,kc).call(this),Je(this,qe,Lc).call(this),T(this,Xe).removeObserver(this)}setOptions(t,r){const u=this.options,o=T(this,Xe);if(this.options=T(this,en).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Dn(this.options.enabled,T(this,Xe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Je(this,qe,Dc).call(this),T(this,Xe).setOptions(this.options),u._defaulted&&!Pl(this.options,u)&&T(this,en).getQueryCache().notify({type:"observerOptionsUpdated",query:T(this,Xe),observer:this});const l=this.hasListeners();l&&Pd(T(this,Xe),o,this.options,u)&&Je(this,qe,Uu).call(this),this.updateResult(r),l&&(T(this,Xe)!==o||Dn(this.options.enabled,T(this,Xe))!==Dn(u.enabled,T(this,Xe))||Ci(this.options.staleTime,T(this,Xe))!==Ci(u.staleTime,T(this,Xe)))&&Je(this,qe,_c).call(this);const a=Je(this,qe,Bc).call(this);l&&(T(this,Xe)!==o||Dn(this.options.enabled,T(this,Xe))!==Dn(u.enabled,T(this,Xe))||a!==T(this,Tr))&&Je(this,qe,Gc).call(this,a)}getOptimisticResult(t){const r=T(this,en).getQueryCache().build(T(this,en),t),u=this.createResult(r,t);return tI(this,u)&&(ae(this,zt,u),ae(this,Gi,this.options),ae(this,$r,T(this,Xe).state)),u}getCurrentResult(){return T(this,zt)}trackResult(t,r){const u={};return Object.keys(t).forEach(o=>{Object.defineProperty(u,o,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(o),r==null||r(o),t[o])})}),u}trackProp(t){T(this,Li).add(t)}getCurrentQuery(){return T(this,Xe)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=T(this,en).defaultQueryOptions(t),u=T(this,en).getQueryCache().build(T(this,en),r);return u.fetch().then(()=>this.createResult(u,r))}fetch(t){return Je(this,qe,Uu).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),T(this,zt)))}createResult(t,r){var N;const u=T(this,Xe),o=this.options,l=T(this,zt),a=T(this,$r),c=T(this,Gi),h=t!==u?t.state:T(this,xu),{state:p}=t;let g={...p},I=!1,b;if(r._optimisticResults){const Z=this.hasListeners(),U=!Z&&Fd(t,r),Q=Z&&Pd(t,u,r,o);(U||Q)&&(g={...g,...wd(p.data,t.options)}),r._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:S,errorUpdatedAt:A,status:F}=g;if(r.select&&g.data!==void 0)if(l&&g.data===(a==null?void 0:a.data)&&r.select===T(this,Au))b=T(this,Ri);else try{ae(this,Au,r.select),b=r.select(g.data),b=Tl(l==null?void 0:l.data,b,r),ae(this,Ri,b),ae(this,Kn,null)}catch(Z){ae(this,Kn,Z)}else b=g.data;if(r.placeholderData!==void 0&&b===void 0&&F==="pending"){let Z;if(l!=null&&l.isPlaceholderData&&r.placeholderData===(c==null?void 0:c.placeholderData))Z=l.data;else if(Z=typeof r.placeholderData=="function"?r.placeholderData((N=T(this,ki))==null?void 0:N.state.data,T(this,ki)):r.placeholderData,r.select&&Z!==void 0)try{Z=r.select(Z),ae(this,Kn,null)}catch(U){ae(this,Kn,U)}Z!==void 0&&(F="success",b=Tl(l==null?void 0:l.data,Z,r),I=!0)}T(this,Kn)&&(S=T(this,Kn),b=T(this,Ri),A=Date.now(),F="error");const P=g.fetchStatus==="fetching",L=F==="pending",k=F==="error",V=L&&P,H=b!==void 0,j={status:F,fetchStatus:g.fetchStatus,isPending:L,isSuccess:F==="success",isError:k,isInitialLoading:V,isLoading:V,data:b,dataUpdatedAt:g.dataUpdatedAt,error:S,errorUpdatedAt:A,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>h.dataUpdateCount||g.errorUpdateCount>h.errorUpdateCount,isFetching:P,isRefetching:P&&!L,isLoadingError:k&&!H,isPaused:g.fetchStatus==="paused",isPlaceholderData:I,isRefetchError:k&&H,isStale:kl(t,r),refetch:this.refetch,promise:T(this,Or)};if(this.options.experimental_prefetchInRender){const Z=K=>{j.status==="error"?K.reject(j.error):j.data!==void 0&&K.resolve(j.data)},U=()=>{const K=ae(this,Or,j.promise=Bl());Z(K)},Q=T(this,Or);switch(Q.status){case"pending":t.queryHash===u.queryHash&&Z(Q);break;case"fulfilled":(j.status==="error"||j.data!==Q.value)&&U();break;case"rejected":(j.status!=="error"||j.error!==Q.reason)&&U();break}}return j}updateResult(t){const r=T(this,zt),u=this.createResult(T(this,Xe),this.options);if(ae(this,$r,T(this,Xe).state),ae(this,Gi,this.options),T(this,$r).data!==void 0&&ae(this,ki,T(this,Xe)),Pl(u,r))return;ae(this,zt,u);const o={},l=()=>{if(!r)return!0;const{notifyOnChangeProps:a}=this.options,c=typeof a=="function"?a():a;if(c==="all"||!c&&!T(this,Li).size)return!0;const f=new Set(c??T(this,Li));return this.options.throwOnError&&f.add("error"),Object.keys(T(this,zt)).some(h=>{const p=h;return T(this,zt)[p]!==r[p]&&f.has(p)})};(t==null?void 0:t.listeners)!==!1&&l()&&(o.listeners=!0),Je(this,qe,gm).call(this,{...o,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Je(this,qe,Rc).call(this)}},en=new WeakMap,Xe=new WeakMap,xu=new WeakMap,zt=new WeakMap,$r=new WeakMap,Gi=new WeakMap,Or=new WeakMap,Kn=new WeakMap,Au=new WeakMap,Ri=new WeakMap,ki=new WeakMap,Kr=new WeakMap,ei=new WeakMap,Tr=new WeakMap,Li=new WeakMap,qe=new WeakSet,Uu=function(t){Je(this,qe,Dc).call(this);let r=T(this,Xe).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(wn)),r},_c=function(){Je(this,qe,kc).call(this);const t=Ci(this.options.staleTime,T(this,Xe));if(zr||T(this,zt).isStale||!Sl(t))return;const u=pd(T(this,zt).dataUpdatedAt,t)+1;ae(this,Kr,setTimeout(()=>{T(this,zt).isStale||this.updateResult()},u))},Bc=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(T(this,Xe)):this.options.refetchInterval)??!1},Gc=function(t){Je(this,qe,Lc).call(this),ae(this,Tr,t),!(zr||Dn(this.options.enabled,T(this,Xe))===!1||!Sl(T(this,Tr))||T(this,Tr)===0)&&ae(this,ei,setInterval(()=>{(this.options.refetchIntervalInBackground||_l.isFocused())&&Je(this,qe,Uu).call(this)},T(this,Tr)))},Rc=function(){Je(this,qe,_c).call(this),Je(this,qe,Gc).call(this,Je(this,qe,Bc).call(this))},kc=function(){T(this,Kr)&&(clearTimeout(T(this,Kr)),ae(this,Kr,void 0))},Lc=function(){T(this,ei)&&(clearInterval(T(this,ei)),ae(this,ei,void 0))},Dc=function(){const t=T(this,en).getQueryCache().build(T(this,en),this.options);if(t===T(this,Xe))return;const r=T(this,Xe);ae(this,Xe,t),ae(this,xu,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},gm=function(t){Lt.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(T(this,zt))}),T(this,en).getQueryCache().notify({query:T(this,Xe),type:"observerResultsUpdated"})})},pp);function eI(e,t){return Dn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Fd(e,t){return eI(e,t)||e.state.data!==void 0&&Rl(e,t,t.refetchOnMount)}function Rl(e,t,r){if(Dn(t.enabled,e)!==!1){const u=typeof r=="function"?r(e):r;return u==="always"||u!==!1&&kl(e,t)}return!1}function Pd(e,t,r,u){return(e!==t||Dn(u.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&kl(e,r)}function kl(e,t){return Dn(t.enabled,e)!==!1&&e.isStaleByTime(Ci(t.staleTime,e))}function tI(e,t){return!Pl(e.getCurrentResult(),t)}var Od=Fe.createContext(void 0),nI=e=>{const t=Fe.useContext(Od);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},rI=({client:e,children:t})=>(Fe.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),$.jsx(Od.Provider,{value:e,children:t})),Td=Fe.createContext(!1),iI=()=>Fe.useContext(Td);Td.Provider;function uI(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var oI=Fe.createContext(uI()),sI=()=>Fe.useContext(oI);function lI(e,t){return typeof e=="function"?e(...t):!!e}function _d(){}var aI=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},cI=e=>{Fe.useEffect(()=>{e.clearReset()},[e])},fI=({result:e,errorResetBoundary:t,throwOnError:r,query:u})=>e.isError&&!t.isReset()&&!e.isFetching&&u&&lI(r,[e.error,u]),dI=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},hI=(e,t)=>e.isLoading&&e.isFetching&&!t,pI=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Bd=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function gI(e,t,r){var p,g,I,b,S;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 u=nI(),o=iI(),l=sI(),a=u.defaultQueryOptions(e);(g=(p=u.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||g.call(p,a),a._optimisticResults=o?"isRestoring":"optimistic",dI(a),aI(a,l),cI(l);const c=!u.getQueryCache().get(a.queryHash),[f]=Fe.useState(()=>new t(u,a)),h=f.getOptimisticResult(a);if(Fe.useSyncExternalStore(Fe.useCallback(A=>{const F=o?_d:f.subscribe(Lt.batchCalls(A));return f.updateResult(),F},[f,o]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),Fe.useEffect(()=>{f.setOptions(a,{listeners:!1})},[a,f]),pI(a,h))throw Bd(a,f,l);if(fI({result:h,errorResetBoundary:l,throwOnError:a.throwOnError,query:u.getQueryCache().get(a.queryHash)}))throw h.error;if((b=(I=u.getDefaultOptions().queries)==null?void 0:I._experimental_afterQuery)==null||b.call(I,a,h),a.experimental_prefetchInRender&&!zr&&hI(h,o)){const A=c?Bd(a,f,l):(S=u.getQueryCache().get(a.queryHash))==null?void 0:S.promise;A==null||A.catch(_d).finally(()=>{f.updateResult()})}return a.notifyOnChangeProps?h:f.trackResult(h)}function Zr(e,t){return gI(e,Ky)}const Gd=X.createContext(void 0),ur=()=>{const e=X.useContext(Gd);if(!e)throw new Error("Must be used inside FrontendClientProvider");return e},mI=({children:e,client:t})=>{const r=new $y({defaultOptions:{queries:{staleTime:36e5,refetchOnWindowFocus:!1}}});return $.jsx(rI,{client:r,children:$.jsx(Gd.Provider,{value:t,children:e})})};function Rd(e){return typeof e=="object"&&e&&"__lv"in e?e.__lv.value:e}function bI(e){if(typeof e=="object"&&e&&"selectedOptions"in e&&Array.isArray(e.selectedOptions)){const t=e.selectedOptions,r=[];for(const u of t)if(typeof u=="object"&&u&&"emitValue"in u){const o=u.emitValue;typeof o=="object"&&o&&"__lv"in o?r.push(o.__lv.value):r.push(o)}else return[];return r}return e&&typeof e=="object"&&Array.isArray(e.__lv)?e.__lv:Array.isArray(e)?e:[]}function vI(e){const t=bI(e.value);if(!e.prop.default&&typeof t>"u")return["required"];if(!e.prop.default&&Array.isArray(t)&&!t.length)return["empty array"]}function yI(e){const t=Rd(e.value);if(t==null||typeof t>"u")return["required"]}function II(e){const{prop:t,value:r}=e,u=Rd(r);if(!t.default&&(u==null||typeof u>"u"))return["required"];const o=typeof u=="number"?u:parseInt(String(u));if(Number.isNaN(o))return["not a number"];const l=[];return typeof t.min=="number"&&o<t.min&&l.push("number too small"),typeof t.max=="number"&&o>t.max&&l.push("number too big"),l}function CI(e){const{prop:t,value:r}=e;if(!t.default&&(r==null||typeof r>"u"))return["required"]}function xI(e){const t=e.auth_type==="oauth",r=JSON.parse(e.custom_fields_json||"[]");if("extracted_custom_fields_names"in e&&e.extracted_custom_fields_names){const u=(e.extracted_custom_fields_names||[]).map(o=>({name:o}));r.push(...u)}return r.map(u=>({...u,optional:u.optional||t}))}function AI(e){const{app:t,value:r}=e;if(!t)return["app field not registered"];if(!r)return["no app configured"];if(typeof r!="object")return["not an app"];const u=r;if("authProvisionId"in u&&!u.authProvisionId&&t.auth_type){const o=[];if(t.auth_type==="oauth"&&!u.oauth_access_token&&o.push("missing oauth token"),t.auth_type==="oauth"||t.auth_type==="keys"){const l=xI(t),a=u;for(const c of l)!c.optional&&!a[c.name]&&o.push(`missing custom field: ${c.name}`)}return t.auth_type!=="none"&&o.push("no auth provision configured"),o}}var ho={exports:{}};/**
|
|
14
|
+
`},o),l}function cy(e,t){return e&&"run"in e?async function(r,u){const o=$f(r,{file:u,...t});await e.run(o,u)}:function(r,u){return $f(r,{file:u,...e||t})}}function Kf(e){if(e)throw e}var uo=Object.prototype.hasOwnProperty,ed=Object.prototype.toString,td=Object.defineProperty,nd=Object.getOwnPropertyDescriptor,rd=function(t){return typeof Array.isArray=="function"?Array.isArray(t):ed.call(t)==="[object Array]"},id=function(t){if(!t||ed.call(t)!=="[object Object]")return!1;var r=uo.call(t,"constructor"),u=t.constructor&&t.constructor.prototype&&uo.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!u)return!1;var o;for(o in t);return typeof o>"u"||uo.call(t,o)},ud=function(t,r){td&&r.name==="__proto__"?td(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},od=function(t,r){if(r==="__proto__")if(uo.call(t,r)){if(nd)return nd(t,r).value}else return;return t[r]},fy=function e(){var t,r,u,o,l,a,c=arguments[0],f=1,h=arguments.length,p=!1;for(typeof c=="boolean"&&(p=c,c=arguments[1]||{},f=2),(c==null||typeof c!="object"&&typeof c!="function")&&(c={});f<h;++f)if(t=arguments[f],t!=null)for(r in t)u=od(c,r),o=od(t,r),c!==o&&(p&&o&&(id(o)||(l=rd(o)))?(l?(l=!1,a=u&&rd(u)?u:[]):a=u&&id(u)?u:{},ud(c,{name:r,newValue:e(p,a,o)})):typeof o<"u"&&ud(c,{name:r,newValue:o}));return c};const gl=Us(fy);function ml(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 dy(){const e=[],t={run:r,use:u};return t;function r(...o){let l=-1;const a=o.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);c(null,...o);function c(f,...h){const p=e[++l];let g=-1;if(f){a(f);return}for(;++g<o.length;)(h[g]===null||h[g]===void 0)&&(h[g]=o[g]);o=h,p?hy(p,c)(...h):a(null,...h)}}function u(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}function hy(e,t){let r;return u;function u(...a){const c=e.length>a.length;let f;c&&a.push(o);try{f=e.apply(this,a)}catch(h){const p=h;if(c&&r)throw p;return o(p)}c||(f&&f.then&&typeof f.then=="function"?f.then(l,o):f instanceof Error?o(f):l(f))}function o(a,...c){r||(r=!0,t(a,...c))}function l(a){o(null,a)}}const jn={basename:py,dirname:gy,extname:my,join:by,sep:"/"};function py(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');cu(e);let r=0,u=-1,o=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(l){r=o+1;break}}else u<0&&(l=!0,u=o+1);return u<0?"":e.slice(r,u)}if(t===e)return"";let a=-1,c=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(l){r=o+1;break}}else a<0&&(l=!0,a=o+1),c>-1&&(e.codePointAt(o)===t.codePointAt(c--)?c<0&&(u=o):(c=-1,u=a));return r===u?u=a:u<0&&(u=e.length),e.slice(r,u)}function gy(e){if(cu(e),e.length===0)return".";let t=-1,r=e.length,u;for(;--r;)if(e.codePointAt(r)===47){if(u){t=r;break}}else u||(u=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function my(e){cu(e);let t=e.length,r=-1,u=0,o=-1,l=0,a;for(;t--;){const c=e.codePointAt(t);if(c===47){if(a){u=t+1;break}continue}r<0&&(a=!0,r=t+1),c===46?o<0?o=t:l!==1&&(l=1):o>-1&&(l=-1)}return o<0||r<0||l===0||l===1&&o===r-1&&o===u+1?"":e.slice(o,r)}function by(...e){let t=-1,r;for(;++t<e.length;)cu(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":vy(r)}function vy(e){cu(e);const t=e.codePointAt(0)===47;let r=yy(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function yy(e,t){let r="",u=0,o=-1,l=0,a=-1,c,f;for(;++a<=e.length;){if(a<e.length)c=e.codePointAt(a);else{if(c===47)break;c=47}if(c===47){if(!(o===a-1||l===1))if(o!==a-1&&l===2){if(r.length<2||u!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(f=r.lastIndexOf("/"),f!==r.length-1){f<0?(r="",u=0):(r=r.slice(0,f),u=r.length-1-r.lastIndexOf("/")),o=a,l=0;continue}}else if(r.length>0){r="",u=0,o=a,l=0;continue}}t&&(r=r.length>0?r+"/..":"..",u=2)}else r.length>0?r+="/"+e.slice(o+1,a):r=e.slice(o+1,a),u=a-o-1;o=a,l=0}else c===46&&l>-1?l++:l=-1}return r}function cu(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Iy={cwd:Cy};function Cy(){return"/"}function bl(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function xy(e){if(typeof e=="string")e=new URL(e);else if(!bl(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 Ay(e)}function Ay(e){if(e.hostname!==""){const u=new TypeError('File URL host must be "localhost" or empty on darwin');throw u.code="ERR_INVALID_FILE_URL_HOST",u}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const u=t.codePointAt(r+2);if(u===70||u===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}const vl=["history","path","basename","stem","extname","dirname"];class sd{constructor(t){let r;t?bl(t)?r={path:t}:typeof t=="string"||wy(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":Iy.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let u=-1;for(;++u<vl.length;){const l=vl[u];l in r&&r[l]!==void 0&&r[l]!==null&&(this[l]=l==="history"?[...r[l]]:r[l])}let o;for(o in r)vl.includes(o)||(this[o]=r[o])}get basename(){return typeof this.path=="string"?jn.basename(this.path):void 0}set basename(t){Il(t,"basename"),yl(t,"basename"),this.path=jn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?jn.dirname(this.path):void 0}set dirname(t){ld(this.basename,"dirname"),this.path=jn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?jn.extname(this.path):void 0}set extname(t){if(yl(t,"extname"),ld(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=jn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){bl(t)&&(t=xy(t)),Il(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?jn.basename(this.path,this.extname):void 0}set stem(t){Il(t,"stem"),yl(t,"stem"),this.path=jn.join(this.dirname||"",t+(this.extname||""))}fail(t,r,u){const o=this.message(t,r,u);throw o.fatal=!0,o}info(t,r,u){const o=this.message(t,r,u);return o.fatal=void 0,o}message(t,r,u){const o=new Vt(t,r,u);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function yl(e,t){if(e&&e.includes(jn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+jn.sep+"`")}function Il(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function ld(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function wy(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Sy=function(e){const u=this.constructor.prototype,o=u[e],l=function(){return o.apply(l,arguments)};return Object.setPrototypeOf(l,u),l},Ey={}.hasOwnProperty;class Cl extends Sy{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=dy()}copy(){const t=new Cl;let r=-1;for(;++r<this.attachers.length;){const u=this.attachers[r];t.use(...u)}return t.data(gl(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(wl("data",this.frozen),this.namespace[t]=r,this):Ey.call(this.namespace,t)&&this.namespace[t]||void 0:t?(wl("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[r,...u]=this.attachers[this.freezeIndex];if(u[0]===!1)continue;u[0]===!0&&(u[0]=void 0);const o=r.call(t,...u);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=oo(t),u=this.parser||this.Parser;return xl("parse",u),u(String(r),r)}process(t,r){const u=this;return this.freeze(),xl("process",this.parser||this.Parser),Al("process",this.compiler||this.Compiler),r?o(void 0,r):new Promise(o);function o(l,a){const c=oo(t),f=u.parse(c);u.run(f,c,function(p,g,I){if(p||!g||!I)return h(p);const b=g,S=u.stringify(b,I);Oy(S)?I.value=S:I.result=S,h(p,I)});function h(p,g){p||!g?a(p):l?l(g):r(void 0,g)}}}processSync(t){let r=!1,u;return this.freeze(),xl("processSync",this.parser||this.Parser),Al("processSync",this.compiler||this.Compiler),this.process(t,o),cd("processSync","process",r),u;function o(l,a){r=!0,Kf(l),u=a}}run(t,r,u){ad(t),this.freeze();const o=this.transformers;return!u&&typeof r=="function"&&(u=r,r=void 0),u?l(void 0,u):new Promise(l);function l(a,c){const f=oo(r);o.run(t,f,h);function h(p,g,I){const b=g||t;p?c(p):a?a(b):u(void 0,b,I)}}}runSync(t,r){let u=!1,o;return this.run(t,r,l),cd("runSync","run",u),o;function l(a,c){Kf(a),o=c,u=!0}}stringify(t,r){this.freeze();const u=oo(r),o=this.compiler||this.Compiler;return Al("stringify",o),ad(t),o(t,u)}use(t,...r){const u=this.attachers,o=this.namespace;if(wl("use",this.frozen),t!=null)if(typeof t=="function")f(t,r);else if(typeof t=="object")Array.isArray(t)?c(t):a(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function l(h){if(typeof h=="function")f(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[p,...g]=h;f(p,g)}else a(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function a(h){if(!("plugins"in h)&&!("settings"in h))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");c(h.plugins),h.settings&&(o.settings=gl(!0,o.settings,h.settings))}function c(h){let p=-1;if(h!=null)if(Array.isArray(h))for(;++p<h.length;){const g=h[p];l(g)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function f(h,p){let g=-1,I=-1;for(;++g<u.length;)if(u[g][0]===h){I=g;break}if(I===-1)u.push([h,...p]);else if(p.length>0){let[b,...S]=p;const A=u[I][1];ml(A)&&ml(b)&&(b=gl(!0,A,b)),u[I]=[h,b,...S]}}}}const Fy=new Cl().freeze();function xl(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Al(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function wl(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 ad(e){if(!ml(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function cd(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function oo(e){return Py(e)?e:new sd(e)}function Py(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Oy(e){return typeof e=="string"||Ty(e)}function Ty(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const By="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",fd=[],dd={allowDangerousHtml:!0},_y=/^(https?|ircs?|mailto|xmpp)$/i,Gy=[{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 hd(e){const t=e.allowedElements,r=e.allowElement,u=e.children||"",o=e.className,l=e.components,a=e.disallowedElements,c=e.rehypePlugins||fd,f=e.remarkPlugins||fd,h=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...dd}:dd,p=e.skipHtml,g=e.unwrapDisallowed,I=e.urlTransform||Ry,b=Fy().use(gv).use(f).use(cy,h).use(c),S=new sd;typeof u=="string"&&(S.value=u);for(const L of Gy)Object.hasOwn(e,L.from)&&(""+L.from+(L.to?"use `"+L.to+"` instead":"remove it")+By+L.id,void 0);const A=b.parse(S);let F=b.runSync(A,S);return o&&(F={type:"element",tagName:"div",properties:{className:o},children:F.type==="root"?F.children:[F]}),Qf(F,P),nb(F,{Fragment:K.Fragment,components:l,ignoreInvalidStyle:!0,jsx:K.jsx,jsxs:K.jsxs,passKeys:!0,passNode:!0});function P(L,k,N){if(L.type==="raw"&&N&&typeof k=="number")return p?N.children.splice(k,1):N.children[k]={type:"text",value:L.value},k;if(L.type==="element"){let X;for(X in tl)if(Object.hasOwn(tl,X)&&Object.hasOwn(L.properties,X)){const R=L.properties[X],Y=tl[X];(Y===null||Y.includes(L.tagName))&&(L.properties[X]=I(String(R||""),X,L))}}if(L.type==="element"){let X=t?!t.includes(L.tagName):a?a.includes(L.tagName):!1;if(!X&&r&&typeof k=="number"&&(X=!r(L,k,N)),X&&N&&typeof k=="number")return g&&L.children?N.children.splice(k,1,...L.children):N.children.splice(k,1),k}}}function Ry(e){const t=e.indexOf(":"),r=e.indexOf("?"),u=e.indexOf("#"),o=e.indexOf("/");return t<0||o>-1&&t>o||r>-1&&t>r||u>-1&&t>u||_y.test(e.slice(0,t))?e:""}function so({prop:e}){const t={width:"100%",background:"#e2e3e5",borderRadius:"5px",paddingTop:"2px",paddingLeft:"10px",paddingRight:"10px",paddingBottom:"2px"},r={...t,background:"#fff3cd"},u={...t,background:"#d1ecf1"},o={...t,background:"#f8d7da"},l={...t,background:"#fffff2"};let a={};switch(e.alertType){case"info":a=u;break;case"neutral":a=l;break;case"warning":a=r;break;case"error":a=o;break;default:a=t}return K.jsx("div",{className:`pd-alert-${e.alertType}`,style:a,children:K.jsx(hd,{components:{a:({...c})=>K.jsx("a",{...c,target:"_blank",rel:"noopener noreferrer"})},children:e.content})})}var lo={exports:{}};lo.exports,function(e,t){var r=200,u="__lodash_hash_undefined__",o=1,l=2,a=9007199254740991,c="[object Arguments]",f="[object Array]",h="[object AsyncFunction]",p="[object Boolean]",g="[object Date]",I="[object Error]",b="[object Function]",S="[object GeneratorFunction]",A="[object Map]",F="[object Number]",P="[object Null]",L="[object Object]",k="[object Promise]",N="[object Proxy]",X="[object RegExp]",R="[object Set]",Y="[object String]",D="[object Symbol]",j="[object Undefined]",Q="[object WeakMap]",U="[object ArrayBuffer]",q="[object DataView]",be="[object Float32Array]",Se="[object Float64Array]",ue="[object Int8Array]",pe="[object Int16Array]",Ee="[object Int32Array]",Oe="[object Uint8Array]",Ke="[object Uint8ClampedArray]",E="[object Uint16Array]",xe="[object Uint32Array]",Le=/[\\^$.*+?()[\]{}|]/g,w=/^\[object .+?Constructor\]$/,je=/^(?:0|[1-9]\d*)$/,ge={};ge[be]=ge[Se]=ge[ue]=ge[pe]=ge[Ee]=ge[Oe]=ge[Ke]=ge[E]=ge[xe]=!0,ge[c]=ge[f]=ge[U]=ge[p]=ge[q]=ge[g]=ge[I]=ge[b]=ge[A]=ge[F]=ge[L]=ge[X]=ge[R]=ge[Y]=ge[Q]=!1;var Ne=typeof Ln=="object"&&Ln&&Ln.Object===Object&&Ln,St=typeof self=="object"&&self&&self.Object===Object&&self,Ve=Ne||St||Function("return this")(),vt=t&&!t.nodeType&&t,Xt=vt&&!0&&e&&!e.nodeType&&e,Lt=Xt&&Xt.exports===vt,Dt=Lt&&Ne.process,Nn=function(){try{return Dt&&Dt.binding&&Dt.binding("util")}catch{}}(),ne=Nn&&Nn.isTypedArray;function oe(C,_){for(var J=-1,se=C==null?0:C.length,ot=0,Te=[];++J<se;){var dt=C[J];_(dt,J,C)&&(Te[ot++]=dt)}return Te}function ye(C,_){for(var J=-1,se=_.length,ot=C.length;++J<se;)C[ot+J]=_[J];return C}function Ge(C,_){for(var J=-1,se=C==null?0:C.length;++J<se;)if(_(C[J],J,C))return!0;return!1}function yt(C,_){for(var J=-1,se=Array(C);++J<C;)se[J]=_(J);return se}function Bt(C){return function(_){return C(_)}}function Sn(C,_){return C.has(_)}function Mt(C,_){return C==null?void 0:C[_]}function nt(C){var _=-1,J=Array(C.size);return C.forEach(function(se,ot){J[++_]=[ot,se]}),J}function Qe(C,_){return function(J){return C(_(J))}}function ft(C){var _=-1,J=Array(C.size);return C.forEach(function(se){J[++_]=se}),J}var et=Array.prototype,V=Function.prototype,te=Object.prototype,he=Ve["__core-js_shared__"],Re=V.toString,ke=te.hasOwnProperty,_t=function(){var C=/[^.]+$/.exec(he&&he.keys&&he.keys.IE_PROTO||"");return C?"Symbol(src)_1."+C:""}(),tn=te.toString,Jt=RegExp("^"+Re.call(ke).replace(Le,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),En=Lt?Ve.Buffer:void 0,nn=Ve.Symbol,Et=Ve.Uint8Array,hn=te.propertyIsEnumerable,pn=et.splice,lr=nn?nn.toStringTag:void 0,Ro=Object.getOwnPropertySymbols,ko=En?En.isBuffer:void 0,Lo=Qe(Object.keys,Object),wu=gn(Ve,"DataView"),ti=gn(Ve,"Map"),Su=gn(Ve,"Promise"),Eu=gn(Ve,"Set"),Di=gn(Ve,"WeakMap"),ni=gn(Object,"create"),ta=fr(wu),na=fr(ti),Fu=fr(Su),ra=fr(Eu),Pu=fr(Di),Do=nn?nn.prototype:void 0,Ou=Do?Do.valueOf:void 0;function ar(C){var _=-1,J=C==null?0:C.length;for(this.clear();++_<J;){var se=C[_];this.set(se[0],se[1])}}function ia(){this.__data__=ni?ni(null):{},this.size=0}function ua(C){var _=this.has(C)&&delete this.__data__[C];return this.size-=_?1:0,_}function oa(C){var _=this.__data__;if(ni){var J=_[C];return J===u?void 0:J}return ke.call(_,C)?_[C]:void 0}function sa(C){var _=this.__data__;return ni?_[C]!==void 0:ke.call(_,C)}function la(C,_){var J=this.__data__;return this.size+=this.has(C)?0:1,J[C]=ni&&_===void 0?u:_,this}ar.prototype.clear=ia,ar.prototype.delete=ua,ar.prototype.get=oa,ar.prototype.has=sa,ar.prototype.set=la;function Fn(C){var _=-1,J=C==null?0:C.length;for(this.clear();++_<J;){var se=C[_];this.set(se[0],se[1])}}function aa(){this.__data__=[],this.size=0}function ca(C){var _=this.__data__,J=ri(_,C);if(J<0)return!1;var se=_.length-1;return J==se?_.pop():pn.call(_,J,1),--this.size,!0}function fa(C){var _=this.__data__,J=ri(_,C);return J<0?void 0:_[J][1]}function da(C){return ri(this.__data__,C)>-1}function ha(C,_){var J=this.__data__,se=ri(J,C);return se<0?(++this.size,J.push([C,_])):J[se][1]=_,this}Fn.prototype.clear=aa,Fn.prototype.delete=ca,Fn.prototype.get=fa,Fn.prototype.has=da,Fn.prototype.set=ha;function cr(C){var _=-1,J=C==null?0:C.length;for(this.clear();++_<J;){var se=C[_];this.set(se[0],se[1])}}function Mi(){this.size=0,this.__data__={hash:new ar,map:new(ti||Fn),string:new ar}}function pa(C){var _=Br(this,C).delete(C);return this.size-=_?1:0,_}function Ni(C){return Br(this,C).get(C)}function ga(C){return Br(this,C).has(C)}function ma(C,_){var J=Br(this,C),se=J.size;return J.set(C,_),this.size+=J.size==se?0:1,this}cr.prototype.clear=Mi,cr.prototype.delete=pa,cr.prototype.get=Ni,cr.prototype.has=ga,cr.prototype.set=ma;function Vi(C){var _=-1,J=C==null?0:C.length;for(this.__data__=new cr;++_<J;)this.add(C[_])}function Mo(C){return this.__data__.set(C,u),this}function No(C){return this.__data__.has(C)}Vi.prototype.add=Vi.prototype.push=Mo,Vi.prototype.has=No;function Vn(C){var _=this.__data__=new Fn(C);this.size=_.size}function ba(){this.__data__=new Fn,this.size=0}function va(C){var _=this.__data__,J=_.delete(C);return this.size=_.size,J}function ya(C){return this.__data__.get(C)}function Ia(C){return this.__data__.has(C)}function Vo(C,_){var J=this.__data__;if(J instanceof Fn){var se=J.__data__;if(!ti||se.length<r-1)return se.push([C,_]),this.size=++J.size,this;J=this.__data__=new cr(se)}return J.set(C,_),this.size=J.size,this}Vn.prototype.clear=ba,Vn.prototype.delete=va,Vn.prototype.get=ya,Vn.prototype.has=Ia,Vn.prototype.set=Vo;function Wo(C,_){var J=Hi(C),se=!J&&Ko(C),ot=!J&&!se&&_u(C),Te=!J&&!se&&!ot&&ns(C),dt=J||se||ot||Te,Ft=dt?yt(C.length,String):[],Ze=Ft.length;for(var st in C)ke.call(C,st)&&!(dt&&(st=="length"||ot&&(st=="offset"||st=="parent")||Te&&(st=="buffer"||st=="byteLength"||st=="byteOffset")||jo(st,Ze)))&&Ft.push(st);return Ft}function ri(C,_){for(var J=C.length;J--;)if($o(C[J][0],_))return J;return-1}function Tu(C,_,J){var se=_(C);return Hi(C)?se:ye(se,J(C))}function ii(C){return C==null?C===void 0?j:P:lr&&lr in Object(C)?Yo(C):Aa(C)}function Bu(C){return oi(C)&&ii(C)==c}function ui(C,_,J,se,ot){return C===_?!0:C==null||_==null||!oi(C)&&!oi(_)?C!==C&&_!==_:Xo(C,_,J,se,ui,ot)}function Xo(C,_,J,se,ot,Te){var dt=Hi(C),Ft=Hi(_),Ze=dt?f:er(C),st=Ft?f:er(_);Ze=Ze==c?L:Ze,st=st==c?L:st;var Ct=Ze==L,rn=st==L,Pt=Ze==st;if(Pt&&_u(C)){if(!_u(_))return!1;dt=!0,Ct=!1}if(Pt&&!Ct)return Te||(Te=new Vn),dt||ns(C)?Wi(C,_,J,se,ot,Te):xa(C,_,Ze,J,se,ot,Te);if(!(J&o)){var ht=Ct&&ke.call(C,"__wrapped__"),jt=rn&&ke.call(_,"__wrapped__");if(ht||jt){var Wn=ht?C.value():C,Pn=jt?_.value():_;return Te||(Te=new Vn),ot(Wn,Pn,J,se,Te)}}return Pt?(Te||(Te=new Vn),Zo(C,_,J,se,ot,Te)):!1}function Ca(C){if(!ts(C)||Qo(C))return!1;var _=zi(C)?Jt:w;return _.test(fr(C))}function Ho(C){return oi(C)&&es(C.length)&&!!ge[ii(C)]}function zo(C){if(!qo(C))return Lo(C);var _=[];for(var J in Object(C))ke.call(C,J)&&J!="constructor"&&_.push(J);return _}function Wi(C,_,J,se,ot,Te){var dt=J&o,Ft=C.length,Ze=_.length;if(Ft!=Ze&&!(dt&&Ze>Ft))return!1;var st=Te.get(C);if(st&&Te.get(_))return st==_;var Ct=-1,rn=!0,Pt=J&l?new Vi:void 0;for(Te.set(C,_),Te.set(_,C);++Ct<Ft;){var ht=C[Ct],jt=_[Ct];if(se)var Wn=dt?se(jt,ht,Ct,_,C,Te):se(ht,jt,Ct,C,_,Te);if(Wn!==void 0){if(Wn)continue;rn=!1;break}if(Pt){if(!Ge(_,function(Pn,tr){if(!Sn(Pt,tr)&&(ht===Pn||ot(ht,Pn,J,se,Te)))return Pt.push(tr)})){rn=!1;break}}else if(!(ht===jt||ot(ht,jt,J,se,Te))){rn=!1;break}}return Te.delete(C),Te.delete(_),rn}function xa(C,_,J,se,ot,Te,dt){switch(J){case q:if(C.byteLength!=_.byteLength||C.byteOffset!=_.byteOffset)return!1;C=C.buffer,_=_.buffer;case U:return!(C.byteLength!=_.byteLength||!Te(new Et(C),new Et(_)));case p:case g:case F:return $o(+C,+_);case I:return C.name==_.name&&C.message==_.message;case X:case Y:return C==_+"";case A:var Ft=nt;case R:var Ze=se&o;if(Ft||(Ft=ft),C.size!=_.size&&!Ze)return!1;var st=dt.get(C);if(st)return st==_;se|=l,dt.set(C,_);var Ct=Wi(Ft(C),Ft(_),se,ot,Te,dt);return dt.delete(C),Ct;case D:if(Ou)return Ou.call(C)==Ou.call(_)}return!1}function Zo(C,_,J,se,ot,Te){var dt=J&o,Ft=Xi(C),Ze=Ft.length,st=Xi(_),Ct=st.length;if(Ze!=Ct&&!dt)return!1;for(var rn=Ze;rn--;){var Pt=Ft[rn];if(!(dt?Pt in _:ke.call(_,Pt)))return!1}var ht=Te.get(C);if(ht&&Te.get(_))return ht==_;var jt=!0;Te.set(C,_),Te.set(_,C);for(var Wn=dt;++rn<Ze;){Pt=Ft[rn];var Pn=C[Pt],tr=_[Pt];if(se)var Gu=dt?se(tr,Pn,Pt,_,C,Te):se(Pn,tr,Pt,C,_,Te);if(!(Gu===void 0?Pn===tr||ot(Pn,tr,J,se,Te):Gu)){jt=!1;break}Wn||(Wn=Pt=="constructor")}if(jt&&!Wn){var si=C.constructor,Gt=_.constructor;si!=Gt&&"constructor"in C&&"constructor"in _&&!(typeof si=="function"&&si instanceof si&&typeof Gt=="function"&&Gt instanceof Gt)&&(jt=!1)}return Te.delete(C),Te.delete(_),jt}function Xi(C){return Tu(C,Ea,Jo)}function Br(C,_){var J=C.__data__;return Uo(_)?J[typeof _=="string"?"string":"hash"]:J.map}function gn(C,_){var J=Mt(C,_);return Ca(J)?J:void 0}function Yo(C){var _=ke.call(C,lr),J=C[lr];try{C[lr]=void 0;var se=!0}catch{}var ot=tn.call(C);return se&&(_?C[lr]=J:delete C[lr]),ot}var Jo=Ro?function(C){return C==null?[]:(C=Object(C),oe(Ro(C),function(_){return hn.call(C,_)}))}:ut,er=ii;(wu&&er(new wu(new ArrayBuffer(1)))!=q||ti&&er(new ti)!=A||Su&&er(Su.resolve())!=k||Eu&&er(new Eu)!=R||Di&&er(new Di)!=Q)&&(er=function(C){var _=ii(C),J=_==L?C.constructor:void 0,se=J?fr(J):"";if(se)switch(se){case ta:return q;case na:return A;case Fu:return k;case ra:return R;case Pu:return Q}return _});function jo(C,_){return _=_??a,!!_&&(typeof C=="number"||je.test(C))&&C>-1&&C%1==0&&C<_}function Uo(C){var _=typeof C;return _=="string"||_=="number"||_=="symbol"||_=="boolean"?C!=="__proto__":C===null}function Qo(C){return!!_t&&_t in C}function qo(C){var _=C&&C.constructor,J=typeof _=="function"&&_.prototype||te;return C===J}function Aa(C){return tn.call(C)}function fr(C){if(C!=null){try{return Re.call(C)}catch{}try{return C+""}catch{}}return""}function $o(C,_){return C===_||C!==C&&_!==_}var Ko=Bu(function(){return arguments}())?Bu:function(C){return oi(C)&&ke.call(C,"callee")&&!hn.call(C,"callee")},Hi=Array.isArray;function wa(C){return C!=null&&es(C.length)&&!zi(C)}var _u=ko||it;function Sa(C,_){return ui(C,_)}function zi(C){if(!ts(C))return!1;var _=ii(C);return _==b||_==S||_==h||_==N}function es(C){return typeof C=="number"&&C>-1&&C%1==0&&C<=a}function ts(C){var _=typeof C;return C!=null&&(_=="object"||_=="function")}function oi(C){return C!=null&&typeof C=="object"}var ns=ne?Bt(ne):Ho;function Ea(C){return wa(C)?Wo(C):zo(C)}function ut(){return[]}function it(){return!1}e.exports=Sa}(lo,lo.exports);var ky=lo.exports;const Ly=Us(ky);var fu=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(){}},zr=typeof window>"u"||"Deno"in globalThis;function An(){}function Dy(e,t){return typeof e=="function"?e(t):e}function Sl(e){return typeof e=="number"&&e>=0&&e!==1/0}function pd(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ci(e,t){return typeof e=="function"?e(t):e}function Dn(e,t){return typeof e=="function"?e(t):e}function gd(e,t){const{type:r="all",exact:u,fetchStatus:o,predicate:l,queryKey:a,stale:c}=e;if(a){if(u){if(t.queryHash!==El(a,t.options))return!1}else if(!hu(t.queryKey,a))return!1}if(r!=="all"){const f=t.isActive();if(r==="active"&&!f||r==="inactive"&&f)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||o&&o!==t.state.fetchStatus||l&&!l(t))}function md(e,t){const{exact:r,status:u,predicate:o,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(r){if(du(t.options.mutationKey)!==du(l))return!1}else if(!hu(t.options.mutationKey,l))return!1}return!(u&&t.state.status!==u||o&&!o(t))}function El(e,t){return((t==null?void 0:t.queryKeyHashFn)||du)(e)}function du(e){return JSON.stringify(e,(t,r)=>Ol(r)?Object.keys(r).sort().reduce((u,o)=>(u[o]=r[o],u),{}):r)}function hu(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!hu(e[r],t[r])):!1}function Fl(e,t){if(e===t)return e;const r=bd(e)&&bd(t);if(r||Ol(e)&&Ol(t)){const u=r?e:Object.keys(e),o=u.length,l=r?t:Object.keys(t),a=l.length,c=r?[]:{};let f=0;for(let h=0;h<a;h++){const p=r?h:l[h];(!r&&u.includes(p)||r)&&e[p]===void 0&&t[p]===void 0?(c[p]=void 0,f++):(c[p]=Fl(e[p],t[p]),c[p]===e[p]&&e[p]!==void 0&&f++)}return o===a&&f===o?e:c}return t}function Pl(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function bd(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ol(e){if(!vd(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!vd(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function vd(e){return Object.prototype.toString.call(e)==="[object Object]"}function My(e){return new Promise(t=>{setTimeout(t,e)})}function Tl(e,t,r){if(typeof r.structuralSharing=="function")return r.structuralSharing(e,t);if(r.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return Fl(e,t)}catch(u){console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${r.queryHash}]: ${u}`)}return Fl(e,t)}return t}function Ny(e,t,r=0){const u=[...e,t];return r&&u.length>r?u.slice(1):u}function Vy(e,t,r=0){const u=[t,...e];return r&&u.length>r?u.slice(0,-1):u}var ao=Symbol();function yd(e,t){return process.env.NODE_ENV!=="production"&&e.queryFn===ao&&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===ao?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Wy=(op=class extends fu{constructor(){super();we(this,jr);we(this,wr);we(this,wi);ae(this,wi,t=>{if(!zr&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){T(this,wr)||this.setEventListener(T(this,wi))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,wr))==null||t.call(this),ae(this,wr,void 0))}setEventListener(t){var r;ae(this,wi,t),(r=T(this,wr))==null||r.call(this),ae(this,wr,t(u=>{typeof u=="boolean"?this.setFocused(u):this.onFocus()}))}setFocused(t){T(this,jr)!==t&&(ae(this,jr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof T(this,jr)=="boolean"?T(this,jr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},jr=new WeakMap,wr=new WeakMap,wi=new WeakMap,op),Bl=new Wy,Xy=(sp=class extends fu{constructor(){super();we(this,Si,!0);we(this,Sr);we(this,Ei);ae(this,Ei,t=>{if(!zr&&window.addEventListener){const r=()=>t(!0),u=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",u,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",u)}}})}onSubscribe(){T(this,Sr)||this.setEventListener(T(this,Ei))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,Sr))==null||t.call(this),ae(this,Sr,void 0))}setEventListener(t){var r;ae(this,Ei,t),(r=T(this,Sr))==null||r.call(this),ae(this,Sr,t(this.setOnline.bind(this)))}setOnline(t){T(this,Si)!==t&&(ae(this,Si,t),this.listeners.forEach(u=>{u(t)}))}isOnline(){return T(this,Si)}},Si=new WeakMap,Sr=new WeakMap,Ei=new WeakMap,sp),co=new Xy;function _l(){let e,t;const r=new Promise((o,l)=>{e=o,t=l});r.status="pending",r.catch(()=>{});function u(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{u({status:"fulfilled",value:o}),e(o)},r.reject=o=>{u({status:"rejected",reason:o}),t(o)},r}function Hy(e){return Math.min(1e3*2**e,3e4)}function Id(e){return(e??"online")==="online"?co.isOnline():!0}var Cd=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Gl(e){return e instanceof Cd}function xd(e){let t=!1,r=0,u=!1,o;const l=_l(),a=A=>{var F;u||(I(new Cd(A)),(F=e.abort)==null||F.call(e))},c=()=>{t=!0},f=()=>{t=!1},h=()=>Bl.isFocused()&&(e.networkMode==="always"||co.isOnline())&&e.canRun(),p=()=>Id(e.networkMode)&&e.canRun(),g=A=>{var F;u||(u=!0,(F=e.onSuccess)==null||F.call(e,A),o==null||o(),l.resolve(A))},I=A=>{var F;u||(u=!0,(F=e.onError)==null||F.call(e,A),o==null||o(),l.reject(A))},b=()=>new Promise(A=>{var F;o=P=>{(u||h())&&A(P)},(F=e.onPause)==null||F.call(e)}).then(()=>{var A;o=void 0,u||(A=e.onContinue)==null||A.call(e)}),S=()=>{if(u)return;let A;const F=r===0?e.initialPromise:void 0;try{A=F??e.fn()}catch(P){A=Promise.reject(P)}Promise.resolve(A).then(g).catch(P=>{var R;if(u)return;const L=e.retry??(zr?0:3),k=e.retryDelay??Hy,N=typeof k=="function"?k(r,P):k,X=L===!0||typeof L=="number"&&r<L||typeof L=="function"&&L(r,P);if(t||!X){I(P);return}r++,(R=e.onFail)==null||R.call(e,r,P),My(N).then(()=>h()?void 0:b()).then(()=>{t?I(P):S()})})};return{promise:l,cancel:a,continue:()=>(o==null||o(),l),cancelRetry:c,continueRetry:f,canStart:p,start:()=>(p()?S():b().then(S),l)}}function zy(){let e=[],t=0,r=c=>{c()},u=c=>{c()},o=c=>setTimeout(c,0);const l=c=>{t?e.push(c):o(()=>{r(c)})},a=()=>{const c=e;e=[],c.length&&o(()=>{u(()=>{c.forEach(f=>{r(f)})})})};return{batch:c=>{let f;t++;try{f=c()}finally{t--,t||a()}return f},batchCalls:c=>(...f)=>{l(()=>{c(...f)})},schedule:l,setNotifyFunction:c=>{r=c},setBatchNotifyFunction:c=>{u=c},setScheduler:c=>{o=c}}}var kt=zy(),Ad=(lp=class{constructor(){we(this,Ur)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Sl(this.gcTime)&&ae(this,Ur,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(zr?1/0:5*60*1e3))}clearGcTimeout(){T(this,Ur)&&(clearTimeout(T(this,Ur)),ae(this,Ur,void 0))}},Ur=new WeakMap,lp),Zy=(ap=class extends Ad{constructor(t){super();we(this,Mn);we(this,Fi);we(this,Pi);we(this,wn);we(this,Wt);we(this,Iu);we(this,Qr);ae(this,Qr,!1),ae(this,Iu,t.defaultOptions),this.setOptions(t.options),this.observers=[],ae(this,wn,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ae(this,Fi,Yy(this.options)),this.state=t.state??T(this,Fi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=T(this,Wt))==null?void 0:t.promise}setOptions(t){this.options={...T(this,Iu),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,wn).remove(this)}setData(t,r){const u=Tl(this.state.data,t,this.options);return Je(this,Mn,Cr).call(this,{data:u,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),u}setState(t,r){Je(this,Mn,Cr).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var u,o;const r=(u=T(this,Wt))==null?void 0:u.promise;return(o=T(this,Wt))==null||o.cancel(t),r?r.then(An).catch(An):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(T(this,Fi))}isActive(){return this.observers.some(t=>Dn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ao||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||!pd(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(u=>u.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=T(this,Wt))==null||r.continue()}onOnline(){var r;const t=this.observers.find(u=>u.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=T(this,Wt))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),T(this,wn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(T(this,Wt)&&(T(this,Qr)?T(this,Wt).cancel({revert:!0}):T(this,Wt).cancelRetry()),this.scheduleGc()),T(this,wn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Je(this,Mn,Cr).call(this,{type:"invalidate"})}fetch(t,r){var f,h,p;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(T(this,Wt))return T(this,Wt).continueRetry(),T(this,Wt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const g=this.observers.find(I=>I.options.queryFn);g&&this.setOptions(g.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 u=new AbortController,o=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(ae(this,Qr,!0),u.signal)})},l=()=>{const g=yd(this.options,r),I={queryKey:this.queryKey,meta:this.meta};return o(I),ae(this,Qr,!1),this.options.persister?this.options.persister(g,I,this):g(I)},a={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:l};o(a),(f=this.options.behavior)==null||f.onFetch(a,this),ae(this,Pi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((h=a.fetchOptions)==null?void 0:h.meta))&&Je(this,Mn,Cr).call(this,{type:"fetch",meta:(p=a.fetchOptions)==null?void 0:p.meta});const c=g=>{var I,b,S,A;Gl(g)&&g.silent||Je(this,Mn,Cr).call(this,{type:"error",error:g}),Gl(g)||((b=(I=T(this,wn).config).onError)==null||b.call(I,g,this),(A=(S=T(this,wn).config).onSettled)==null||A.call(S,this.state.data,g,this)),this.scheduleGc()};return ae(this,Wt,xd({initialPromise:r==null?void 0:r.initialPromise,fn:a.fetchFn,abort:u.abort.bind(u),onSuccess:g=>{var I,b,S,A;if(g===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}`),c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(g)}catch(F){c(F);return}(b=(I=T(this,wn).config).onSuccess)==null||b.call(I,g,this),(A=(S=T(this,wn).config).onSettled)==null||A.call(S,g,this.state.error,this),this.scheduleGc()},onError:c,onFail:(g,I)=>{Je(this,Mn,Cr).call(this,{type:"failed",failureCount:g,error:I})},onPause:()=>{Je(this,Mn,Cr).call(this,{type:"pause"})},onContinue:()=>{Je(this,Mn,Cr).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),T(this,Wt).start()}},Fi=new WeakMap,Pi=new WeakMap,wn=new WeakMap,Wt=new WeakMap,Iu=new WeakMap,Qr=new WeakMap,Mn=new WeakSet,Cr=function(t){const r=u=>{switch(t.type){case"failed":return{...u,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...u,fetchStatus:"paused"};case"continue":return{...u,fetchStatus:"fetching"};case"fetch":return{...u,...wd(u.data,this.options),fetchMeta:t.meta??null};case"success":return{...u,data:t.data,dataUpdateCount:u.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return Gl(o)&&o.revert&&T(this,Pi)?{...T(this,Pi),fetchStatus:"idle"}:{...u,error:o,errorUpdateCount:u.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:u.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...u,isInvalidated:!0};case"setState":return{...u,...t.state}}};this.state=r(this.state),kt.batch(()=>{this.observers.forEach(u=>{u.onQueryUpdate()}),T(this,wn).notify({query:this,type:"updated",action:t})})},ap);function wd(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Id(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Yy(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,u=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?u??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Jy=(cp=class extends fu{constructor(t={}){super();we(this,Qn);this.config=t,ae(this,Qn,new Map)}build(t,r,u){const o=r.queryKey,l=r.queryHash??El(o,r);let a=this.get(l);return a||(a=new Zy({cache:this,queryKey:o,queryHash:l,options:t.defaultQueryOptions(r),state:u,defaultOptions:t.getQueryDefaults(o)}),this.add(a)),a}add(t){T(this,Qn).has(t.queryHash)||(T(this,Qn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=T(this,Qn).get(t.queryHash);r&&(t.destroy(),r===t&&T(this,Qn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){kt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return T(this,Qn).get(t)}getAll(){return[...T(this,Qn).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(u=>gd(r,u))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(u=>gd(t,u)):r}notify(t){kt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){kt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){kt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Qn=new WeakMap,cp),jy=(fp=class extends Ad{constructor(t){super();we(this,$n);we(this,qn);we(this,Zt);we(this,qr);this.mutationId=t.mutationId,ae(this,Zt,t.mutationCache),ae(this,qn,[]),this.state=t.state||Uy(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){T(this,qn).includes(t)||(T(this,qn).push(t),this.clearGcTimeout(),T(this,Zt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ae(this,qn,T(this,qn).filter(r=>r!==t)),this.scheduleGc(),T(this,Zt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){T(this,qn).length||(this.state.status==="pending"?this.scheduleGc():T(this,Zt).remove(this))}continue(){var t;return((t=T(this,qr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,l,a,c,f,h,p,g,I,b,S,A,F,P,L,k,N,X,R,Y;ae(this,qr,xd({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(D,j)=>{Je(this,$n,Wr).call(this,{type:"failed",failureCount:D,error:j})},onPause:()=>{Je(this,$n,Wr).call(this,{type:"pause"})},onContinue:()=>{Je(this,$n,Wr).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,Zt).canRun(this)}));const r=this.state.status==="pending",u=!T(this,qr).canStart();try{if(!r){Je(this,$n,Wr).call(this,{type:"pending",variables:t,isPaused:u}),await((l=(o=T(this,Zt).config).onMutate)==null?void 0:l.call(o,t,this));const j=await((c=(a=this.options).onMutate)==null?void 0:c.call(a,t));j!==this.state.context&&Je(this,$n,Wr).call(this,{type:"pending",context:j,variables:t,isPaused:u})}const D=await T(this,qr).start();return await((h=(f=T(this,Zt).config).onSuccess)==null?void 0:h.call(f,D,t,this.state.context,this)),await((g=(p=this.options).onSuccess)==null?void 0:g.call(p,D,t,this.state.context)),await((b=(I=T(this,Zt).config).onSettled)==null?void 0:b.call(I,D,null,this.state.variables,this.state.context,this)),await((A=(S=this.options).onSettled)==null?void 0:A.call(S,D,null,t,this.state.context)),Je(this,$n,Wr).call(this,{type:"success",data:D}),D}catch(D){try{throw await((P=(F=T(this,Zt).config).onError)==null?void 0:P.call(F,D,t,this.state.context,this)),await((k=(L=this.options).onError)==null?void 0:k.call(L,D,t,this.state.context)),await((X=(N=T(this,Zt).config).onSettled)==null?void 0:X.call(N,void 0,D,this.state.variables,this.state.context,this)),await((Y=(R=this.options).onSettled)==null?void 0:Y.call(R,void 0,D,t,this.state.context)),D}finally{Je(this,$n,Wr).call(this,{type:"error",error:D})}}finally{T(this,Zt).runNext(this)}}},qn=new WeakMap,Zt=new WeakMap,qr=new WeakMap,$n=new WeakSet,Wr=function(t){const r=u=>{switch(t.type){case"failed":return{...u,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...u,isPaused:!0};case"continue":return{...u,isPaused:!1};case"pending":return{...u,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{...u,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...u,data:void 0,error:t.error,failureCount:u.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),kt.batch(()=>{T(this,qn).forEach(u=>{u.onMutationUpdate(t)}),T(this,Zt).notify({mutation:this,type:"updated",action:t})})},fp);function Uy(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Qy=(dp=class extends fu{constructor(t={}){super();we(this,dn);we(this,Cu);this.config=t,ae(this,dn,new Map),ae(this,Cu,Date.now())}build(t,r,u){const o=new jy({mutationCache:this,mutationId:++Xs(this,Cu)._,options:t.defaultMutationOptions(r),state:u});return this.add(o),o}add(t){const r=fo(t),u=T(this,dn).get(r)??[];u.push(t),T(this,dn).set(r,u),this.notify({type:"added",mutation:t})}remove(t){var u;const r=fo(t);if(T(this,dn).has(r)){const o=(u=T(this,dn).get(r))==null?void 0:u.filter(l=>l!==t);o&&(o.length===0?T(this,dn).delete(r):T(this,dn).set(r,o))}this.notify({type:"removed",mutation:t})}canRun(t){var u;const r=(u=T(this,dn).get(fo(t)))==null?void 0:u.find(o=>o.state.status==="pending");return!r||r===t}runNext(t){var u;const r=(u=T(this,dn).get(fo(t)))==null?void 0:u.find(o=>o!==t&&o.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}clear(){kt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...T(this,dn).values()].flat()}find(t){const r={exact:!0,...t};return this.getAll().find(u=>md(r,u))}findAll(t={}){return this.getAll().filter(r=>md(t,r))}notify(t){kt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return kt.batch(()=>Promise.all(t.map(r=>r.continue().catch(An))))}},dn=new WeakMap,Cu=new WeakMap,dp);function fo(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Sd(e){return{onFetch:(t,r)=>{var p,g,I,b,S;const u=t.options,o=(I=(g=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:g.fetchMore)==null?void 0:I.direction,l=((b=t.state.data)==null?void 0:b.pages)||[],a=((S=t.state.data)==null?void 0:S.pageParams)||[];let c={pages:[],pageParams:[]},f=0;const h=async()=>{let A=!1;const F=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>(t.signal.aborted?A=!0:t.signal.addEventListener("abort",()=>{A=!0}),t.signal)})},P=yd(t.options,t.fetchOptions),L=async(k,N,X)=>{if(A)return Promise.reject();if(N==null&&k.pages.length)return Promise.resolve(k);const R={queryKey:t.queryKey,pageParam:N,direction:X?"backward":"forward",meta:t.options.meta};F(R);const Y=await P(R),{maxPages:D}=t.options,j=X?Vy:Ny;return{pages:j(k.pages,Y,D),pageParams:j(k.pageParams,N,D)}};if(o&&l.length){const k=o==="backward",N=k?qy:Ed,X={pages:l,pageParams:a},R=N(u,X);c=await L(X,R,k)}else{const k=e??l.length;do{const N=f===0?a[0]??u.initialPageParam:Ed(u,c);if(f>0&&N==null)break;c=await L(c,N),f++}while(f<k)}return c};t.options.persister?t.fetchFn=()=>{var A,F;return(F=(A=t.options).persister)==null?void 0:F.call(A,h,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=h}}}function Ed(e,{pages:t,pageParams:r}){const u=t.length-1;return t.length>0?e.getNextPageParam(t[u],t,r[u],r):void 0}function qy(e,{pages:t,pageParams:r}){var u;return t.length>0?(u=e.getPreviousPageParam)==null?void 0:u.call(e,t[0],t,r[0],r):void 0}var $y=(hp=class{constructor(e={}){we(this,bt);we(this,Er);we(this,Fr);we(this,Oi);we(this,Ti);we(this,Pr);we(this,Bi);we(this,_i);ae(this,bt,e.queryCache||new Jy),ae(this,Er,e.mutationCache||new Qy),ae(this,Fr,e.defaultOptions||{}),ae(this,Oi,new Map),ae(this,Ti,new Map),ae(this,Pr,0)}mount(){Xs(this,Pr)._++,T(this,Pr)===1&&(ae(this,Bi,Bl.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,bt).onFocus())})),ae(this,_i,co.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,bt).onOnline())})))}unmount(){var e,t;Xs(this,Pr)._--,T(this,Pr)===0&&((e=T(this,Bi))==null||e.call(this),ae(this,Bi,void 0),(t=T(this,_i))==null||t.call(this),ae(this,_i,void 0))}isFetching(e){return T(this,bt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return T(this,Er).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=T(this,bt).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const r=this.defaultQueryOptions(e),u=T(this,bt).build(this,r);return e.revalidateIfStale&&u.isStaleByTime(Ci(r.staleTime,u))&&this.prefetchQuery(r),Promise.resolve(t)}}getQueriesData(e){return T(this,bt).findAll(e).map(({queryKey:t,state:r})=>{const u=r.data;return[t,u]})}setQueryData(e,t,r){const u=this.defaultQueryOptions({queryKey:e}),o=T(this,bt).get(u.queryHash),l=o==null?void 0:o.state.data,a=Dy(t,l);if(a!==void 0)return T(this,bt).build(this,u).setData(a,{...r,manual:!0})}setQueriesData(e,t,r){return kt.batch(()=>T(this,bt).findAll(e).map(({queryKey:u})=>[u,this.setQueryData(u,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=T(this,bt).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=T(this,bt);kt.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=T(this,bt),u={type:"active",...e};return kt.batch(()=>(r.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries(u,t)))}cancelQueries(e={},t={}){const r={revert:!0,...t},u=kt.batch(()=>T(this,bt).findAll(e).map(o=>o.cancel(r)));return Promise.all(u).then(An).catch(An)}invalidateQueries(e={},t={}){return kt.batch(()=>{if(T(this,bt).findAll(e).forEach(u=>{u.invalidate()}),e.refetchType==="none")return Promise.resolve();const r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)})}refetchQueries(e={},t){const r={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},u=kt.batch(()=>T(this,bt).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let l=o.fetch(void 0,r);return r.throwOnError||(l=l.catch(An)),o.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(u).then(An)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=T(this,bt).build(this,t);return r.isStaleByTime(Ci(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(An).catch(An)}fetchInfiniteQuery(e){return e.behavior=Sd(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(An).catch(An)}ensureInfiniteQueryData(e){return e.behavior=Sd(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return co.isOnline()?T(this,Er).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,bt)}getMutationCache(){return T(this,Er)}getDefaultOptions(){return T(this,Fr)}setDefaultOptions(e){ae(this,Fr,e)}setQueryDefaults(e,t){T(this,Oi).set(du(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...T(this,Oi).values()];let r={};return t.forEach(u=>{hu(e,u.queryKey)&&(r={...r,...u.defaultOptions})}),r}setMutationDefaults(e,t){T(this,Ti).set(du(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...T(this,Ti).values()];let r={};return t.forEach(u=>{hu(e,u.mutationKey)&&(r={...r,...u.defaultOptions})}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...T(this,Fr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=El(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===ao&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...T(this,Fr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){T(this,bt).clear(),T(this,Er).clear()}},bt=new WeakMap,Er=new WeakMap,Fr=new WeakMap,Oi=new WeakMap,Ti=new WeakMap,Pr=new WeakMap,Bi=new WeakMap,_i=new WeakMap,hp),Ky=(pp=class extends fu{constructor(t,r){super();we(this,$e);we(this,en);we(this,ze);we(this,xu);we(this,Yt);we(this,$r);we(this,Gi);we(this,Or);we(this,Kn);we(this,Au);we(this,Ri);we(this,ki);we(this,Kr);we(this,ei);we(this,Tr);we(this,Li,new Set);this.options=r,ae(this,en,t),ae(this,Kn,null),ae(this,Or,_l()),this.options.experimental_prefetchInRender||T(this,Or).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(T(this,ze).addObserver(this),Fd(T(this,ze),this.options)?Je(this,$e,Uu).call(this):this.updateResult(),Je(this,$e,Rc).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Rl(T(this,ze),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Rl(T(this,ze),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Je(this,$e,kc).call(this),Je(this,$e,Lc).call(this),T(this,ze).removeObserver(this)}setOptions(t,r){const u=this.options,o=T(this,ze);if(this.options=T(this,en).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Dn(this.options.enabled,T(this,ze))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Je(this,$e,Dc).call(this),T(this,ze).setOptions(this.options),u._defaulted&&!Pl(this.options,u)&&T(this,en).getQueryCache().notify({type:"observerOptionsUpdated",query:T(this,ze),observer:this});const l=this.hasListeners();l&&Pd(T(this,ze),o,this.options,u)&&Je(this,$e,Uu).call(this),this.updateResult(r),l&&(T(this,ze)!==o||Dn(this.options.enabled,T(this,ze))!==Dn(u.enabled,T(this,ze))||Ci(this.options.staleTime,T(this,ze))!==Ci(u.staleTime,T(this,ze)))&&Je(this,$e,Bc).call(this);const a=Je(this,$e,_c).call(this);l&&(T(this,ze)!==o||Dn(this.options.enabled,T(this,ze))!==Dn(u.enabled,T(this,ze))||a!==T(this,Tr))&&Je(this,$e,Gc).call(this,a)}getOptimisticResult(t){const r=T(this,en).getQueryCache().build(T(this,en),t),u=this.createResult(r,t);return tI(this,u)&&(ae(this,Yt,u),ae(this,Gi,this.options),ae(this,$r,T(this,ze).state)),u}getCurrentResult(){return T(this,Yt)}trackResult(t,r){const u={};return Object.keys(t).forEach(o=>{Object.defineProperty(u,o,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(o),r==null||r(o),t[o])})}),u}trackProp(t){T(this,Li).add(t)}getCurrentQuery(){return T(this,ze)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=T(this,en).defaultQueryOptions(t),u=T(this,en).getQueryCache().build(T(this,en),r);return u.fetch().then(()=>this.createResult(u,r))}fetch(t){return Je(this,$e,Uu).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),T(this,Yt)))}createResult(t,r){var D;const u=T(this,ze),o=this.options,l=T(this,Yt),a=T(this,$r),c=T(this,Gi),h=t!==u?t.state:T(this,xu),{state:p}=t;let g={...p},I=!1,b;if(r._optimisticResults){const j=this.hasListeners(),Q=!j&&Fd(t,r),U=j&&Pd(t,u,r,o);(Q||U)&&(g={...g,...wd(p.data,t.options)}),r._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:S,errorUpdatedAt:A,status:F}=g;if(r.select&&g.data!==void 0)if(l&&g.data===(a==null?void 0:a.data)&&r.select===T(this,Au))b=T(this,Ri);else try{ae(this,Au,r.select),b=r.select(g.data),b=Tl(l==null?void 0:l.data,b,r),ae(this,Ri,b),ae(this,Kn,null)}catch(j){ae(this,Kn,j)}else b=g.data;if(r.placeholderData!==void 0&&b===void 0&&F==="pending"){let j;if(l!=null&&l.isPlaceholderData&&r.placeholderData===(c==null?void 0:c.placeholderData))j=l.data;else if(j=typeof r.placeholderData=="function"?r.placeholderData((D=T(this,ki))==null?void 0:D.state.data,T(this,ki)):r.placeholderData,r.select&&j!==void 0)try{j=r.select(j),ae(this,Kn,null)}catch(Q){ae(this,Kn,Q)}j!==void 0&&(F="success",b=Tl(l==null?void 0:l.data,j,r),I=!0)}T(this,Kn)&&(S=T(this,Kn),b=T(this,Ri),A=Date.now(),F="error");const P=g.fetchStatus==="fetching",L=F==="pending",k=F==="error",N=L&&P,X=b!==void 0,Y={status:F,fetchStatus:g.fetchStatus,isPending:L,isSuccess:F==="success",isError:k,isInitialLoading:N,isLoading:N,data:b,dataUpdatedAt:g.dataUpdatedAt,error:S,errorUpdatedAt:A,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>h.dataUpdateCount||g.errorUpdateCount>h.errorUpdateCount,isFetching:P,isRefetching:P&&!L,isLoadingError:k&&!X,isPaused:g.fetchStatus==="paused",isPlaceholderData:I,isRefetchError:k&&X,isStale:kl(t,r),refetch:this.refetch,promise:T(this,Or)};if(this.options.experimental_prefetchInRender){const j=q=>{Y.status==="error"?q.reject(Y.error):Y.data!==void 0&&q.resolve(Y.data)},Q=()=>{const q=ae(this,Or,Y.promise=_l());j(q)},U=T(this,Or);switch(U.status){case"pending":t.queryHash===u.queryHash&&j(U);break;case"fulfilled":(Y.status==="error"||Y.data!==U.value)&&Q();break;case"rejected":(Y.status!=="error"||Y.error!==U.reason)&&Q();break}}return Y}updateResult(t){const r=T(this,Yt),u=this.createResult(T(this,ze),this.options);if(ae(this,$r,T(this,ze).state),ae(this,Gi,this.options),T(this,$r).data!==void 0&&ae(this,ki,T(this,ze)),Pl(u,r))return;ae(this,Yt,u);const o={},l=()=>{if(!r)return!0;const{notifyOnChangeProps:a}=this.options,c=typeof a=="function"?a():a;if(c==="all"||!c&&!T(this,Li).size)return!0;const f=new Set(c??T(this,Li));return this.options.throwOnError&&f.add("error"),Object.keys(T(this,Yt)).some(h=>{const p=h;return T(this,Yt)[p]!==r[p]&&f.has(p)})};(t==null?void 0:t.listeners)!==!1&&l()&&(o.listeners=!0),Je(this,$e,gm).call(this,{...o,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Je(this,$e,Rc).call(this)}},en=new WeakMap,ze=new WeakMap,xu=new WeakMap,Yt=new WeakMap,$r=new WeakMap,Gi=new WeakMap,Or=new WeakMap,Kn=new WeakMap,Au=new WeakMap,Ri=new WeakMap,ki=new WeakMap,Kr=new WeakMap,ei=new WeakMap,Tr=new WeakMap,Li=new WeakMap,$e=new WeakSet,Uu=function(t){Je(this,$e,Dc).call(this);let r=T(this,ze).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(An)),r},Bc=function(){Je(this,$e,kc).call(this);const t=Ci(this.options.staleTime,T(this,ze));if(zr||T(this,Yt).isStale||!Sl(t))return;const u=pd(T(this,Yt).dataUpdatedAt,t)+1;ae(this,Kr,setTimeout(()=>{T(this,Yt).isStale||this.updateResult()},u))},_c=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(T(this,ze)):this.options.refetchInterval)??!1},Gc=function(t){Je(this,$e,Lc).call(this),ae(this,Tr,t),!(zr||Dn(this.options.enabled,T(this,ze))===!1||!Sl(T(this,Tr))||T(this,Tr)===0)&&ae(this,ei,setInterval(()=>{(this.options.refetchIntervalInBackground||Bl.isFocused())&&Je(this,$e,Uu).call(this)},T(this,Tr)))},Rc=function(){Je(this,$e,Bc).call(this),Je(this,$e,Gc).call(this,Je(this,$e,_c).call(this))},kc=function(){T(this,Kr)&&(clearTimeout(T(this,Kr)),ae(this,Kr,void 0))},Lc=function(){T(this,ei)&&(clearInterval(T(this,ei)),ae(this,ei,void 0))},Dc=function(){const t=T(this,en).getQueryCache().build(T(this,en),this.options);if(t===T(this,ze))return;const r=T(this,ze);ae(this,ze,t),ae(this,xu,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},gm=function(t){kt.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(T(this,Yt))}),T(this,en).getQueryCache().notify({query:T(this,ze),type:"observerResultsUpdated"})})},pp);function eI(e,t){return Dn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Fd(e,t){return eI(e,t)||e.state.data!==void 0&&Rl(e,t,t.refetchOnMount)}function Rl(e,t,r){if(Dn(t.enabled,e)!==!1){const u=typeof r=="function"?r(e):r;return u==="always"||u!==!1&&kl(e,t)}return!1}function Pd(e,t,r,u){return(e!==t||Dn(u.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&kl(e,r)}function kl(e,t){return Dn(t.enabled,e)!==!1&&e.isStaleByTime(Ci(t.staleTime,e))}function tI(e,t){return!Pl(e.getCurrentResult(),t)}var Od=Pe.createContext(void 0),nI=e=>{const t=Pe.useContext(Od);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},rI=({client:e,children:t})=>(Pe.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),K.jsx(Od.Provider,{value:e,children:t})),Td=Pe.createContext(!1),iI=()=>Pe.useContext(Td);Td.Provider;function uI(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var oI=Pe.createContext(uI()),sI=()=>Pe.useContext(oI);function lI(e,t){return typeof e=="function"?e(...t):!!e}function Bd(){}var aI=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},cI=e=>{Pe.useEffect(()=>{e.clearReset()},[e])},fI=({result:e,errorResetBoundary:t,throwOnError:r,query:u})=>e.isError&&!t.isReset()&&!e.isFetching&&u&&lI(r,[e.error,u]),dI=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},hI=(e,t)=>e.isLoading&&e.isFetching&&!t,pI=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,_d=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function gI(e,t,r){var p,g,I,b,S;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 u=nI(),o=iI(),l=sI(),a=u.defaultQueryOptions(e);(g=(p=u.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||g.call(p,a),a._optimisticResults=o?"isRestoring":"optimistic",dI(a),aI(a,l),cI(l);const c=!u.getQueryCache().get(a.queryHash),[f]=Pe.useState(()=>new t(u,a)),h=f.getOptimisticResult(a);if(Pe.useSyncExternalStore(Pe.useCallback(A=>{const F=o?Bd:f.subscribe(kt.batchCalls(A));return f.updateResult(),F},[f,o]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),Pe.useEffect(()=>{f.setOptions(a,{listeners:!1})},[a,f]),pI(a,h))throw _d(a,f,l);if(fI({result:h,errorResetBoundary:l,throwOnError:a.throwOnError,query:u.getQueryCache().get(a.queryHash)}))throw h.error;if((b=(I=u.getDefaultOptions().queries)==null?void 0:I._experimental_afterQuery)==null||b.call(I,a,h),a.experimental_prefetchInRender&&!zr&&hI(h,o)){const A=c?_d(a,f,l):(S=u.getQueryCache().get(a.queryHash))==null?void 0:S.promise;A==null||A.catch(Bd).finally(()=>{f.updateResult()})}return a.notifyOnChangeProps?h:f.trackResult(h)}function Zr(e,t){return gI(e,Ky)}const Gd=H.createContext(void 0),ur=()=>{const e=H.useContext(Gd);if(!e)throw new Error("Must be used inside FrontendClientProvider");return e},mI=({children:e,client:t})=>{const r=new $y({defaultOptions:{queries:{staleTime:36e5,refetchOnWindowFocus:!1}}});return K.jsx(rI,{client:r,children:K.jsx(Gd.Provider,{value:t,children:e})})};function Rd(e){return typeof e=="object"&&e&&"__lv"in e?e.__lv.value:e}function bI(e){if(typeof e=="object"&&e&&"selectedOptions"in e&&Array.isArray(e.selectedOptions)){const t=e.selectedOptions,r=[];for(const u of t)if(typeof u=="object"&&u&&"emitValue"in u){const o=u.emitValue;typeof o=="object"&&o&&"__lv"in o?r.push(o.__lv.value):r.push(o)}else return[];return r}return e&&typeof e=="object"&&Array.isArray(e.__lv)?e.__lv:Array.isArray(e)?e:[]}function vI(e){const t=bI(e.value);if(!e.prop.default&&typeof t>"u")return["required"];if(!e.prop.default&&Array.isArray(t)&&!t.length)return["empty array"]}function yI(e){const t=Rd(e.value);if(t==null||typeof t>"u")return["required"]}function II(e){const{prop:t,value:r}=e,u=Rd(r);if(!t.default&&(u==null||typeof u>"u"))return["required"];const o=typeof u=="number"?u:parseInt(String(u));if(Number.isNaN(o))return["not a number"];const l=[];return typeof t.min=="number"&&o<t.min&&l.push("number too small"),typeof t.max=="number"&&o>t.max&&l.push("number too big"),l}function CI(e){const{prop:t,value:r}=e;if(!t.default&&(r==null||typeof r>"u"))return["required"]}function xI(e){const t=e.auth_type==="oauth",r=JSON.parse(e.custom_fields_json||"[]");if("extracted_custom_fields_names"in e&&e.extracted_custom_fields_names){const u=(e.extracted_custom_fields_names||[]).map(o=>({name:o}));r.push(...u)}return r.map(u=>({...u,optional:u.optional||t}))}function AI(e){const{app:t,value:r}=e;if(!t)return["app field not registered"];if(!r)return["no app configured"];if(typeof r!="object")return["not an app"];const u=r;if("authProvisionId"in u&&!u.authProvisionId&&t.auth_type){const o=[];if(t.auth_type==="oauth"&&!u.oauth_access_token&&o.push("missing oauth token"),t.auth_type==="oauth"||t.auth_type==="keys"){const l=xI(t),a=u;for(const c of l)!c.optional&&!a[c.name]&&o.push(`missing custom field: ${c.name}`)}return t.auth_type!=="none"&&o.push("no auth provision configured"),o}}var ho={exports:{}};/**
|
|
15
15
|
* @license
|
|
16
16
|
* Lodash <https://lodash.com/>
|
|
17
17
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
18
18
|
* Released under MIT license <https://lodash.com/license>
|
|
19
19
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
20
20
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
21
|
-
*/ho.exports,function(e,t){(function(){var r,u="4.17.21",o=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",c="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",h=500,p="__lodash_placeholder__",g=1,I=2,b=4,S=1,A=2,F=1,P=2,L=4,k=8,V=16,H=32,R=64,j=128,N=256,Z=512,U=30,Q="...",K=800,he=16,Be=1,ie=2,me=3,we=1/0,Pe=9007199254740991,tt=17976931348623157e292,E=NaN,He=4294967295,be=He-1,w=He>>>1,ze=[["ary",j],["bind",F],["bindKey",P],["curry",k],["curryRight",V],["flip",Z],["partial",H],["partialRight",R],["rearg",N]],ve="[object Arguments]",Le="[object Array]",Et="[object AsyncFunction]",Ve="[object Boolean]",ft="[object Date]",Zt="[object DOMException]",Bt="[object Error]",Yt="[object Function]",hn="[object GeneratorFunction]",Ct="[object Map]",ne="[object Number]",le="[object Null]",de="[object Object]",je="[object Promise]",vt="[object Proxy]",yt="[object RegExp]",Dt="[object Set]",Nn="[object String]",nt="[object Symbol]",rt="[object Undefined]",$e="[object WeakMap]",D="[object WeakSet]",ee="[object ArrayBuffer]",ge="[object DataView]",Ge="[object Float32Array]",Re="[object Float64Array]",Gt="[object Int8Array]",tn="[object Int16Array]",Jt="[object Int32Array]",En="[object Uint8Array]",nn="[object Uint8ClampedArray]",Ft="[object Uint16Array]",pn="[object Uint32Array]",gn=/\b__p \+= '';/g,lr=/\b(__p \+=) '' \+/g,Ro=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ko=/&(?:amp|lt|gt|quot|#39);/g,Lo=/[&<>"']/g,wu=RegExp(ko.source),ti=RegExp(Lo.source),Su=/<%-([\s\S]+?)%>/g,Eu=/<%([\s\S]+?)%>/g,Di=/<%=([\s\S]+?)%>/g,ni=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ta=/^\w*$/,na=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fu=/[\\^$.*+?()[\]{}|]/g,ra=RegExp(Fu.source),Pu=/^\s+/,Do=/\s/,Ou=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ar=/\{\n\/\* \[wrapped with (.+)\] \*/,ia=/,? & /,ua=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,oa=/[()=,{}\[\]\/\s]/,sa=/\\(\\)?/g,la=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Fn=/\w*$/,aa=/^[-+]0x[0-9a-f]+$/i,ca=/^0b[01]+$/i,fa=/^\[object .+?Constructor\]$/,da=/^0o[0-7]+$/i,ha=/^(?:0|[1-9]\d*)$/,cr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Mi=/($^)/,pa=/['\n\r\u2028\u2029\\]/g,Ni="\\ud800-\\udfff",ga="\\u0300-\\u036f",ma="\\ufe20-\\ufe2f",Vi="\\u20d0-\\u20ff",Mo=ga+ma+Vi,No="\\u2700-\\u27bf",Vn="a-z\\xdf-\\xf6\\xf8-\\xff",ba="\\xac\\xb1\\xd7\\xf7",va="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ya="\\u2000-\\u206f",Ia=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Vo="A-Z\\xc0-\\xd6\\xd8-\\xde",Wo="\\ufe0e\\ufe0f",ri=ba+va+ya+Ia,Tu="['’]",ii="["+Ni+"]",_u="["+ri+"]",ui="["+Mo+"]",Xo="\\d+",Ca="["+No+"]",Ho="["+Vn+"]",zo="[^"+Ni+ri+Xo+No+Vn+Vo+"]",Wi="\\ud83c[\\udffb-\\udfff]",xa="(?:"+ui+"|"+Wi+")",Zo="[^"+Ni+"]",Xi="(?:\\ud83c[\\udde6-\\uddff]){2}",_r="[\\ud800-\\udbff][\\udc00-\\udfff]",mn="["+Vo+"]",Yo="\\u200d",Jo="(?:"+Ho+"|"+zo+")",er="(?:"+mn+"|"+zo+")",jo="(?:"+Tu+"(?:d|ll|m|re|s|t|ve))?",Uo="(?:"+Tu+"(?:D|LL|M|RE|S|T|VE))?",Qo=xa+"?",qo="["+Wo+"]?",Aa="(?:"+Yo+"(?:"+[Zo,Xi,_r].join("|")+")"+qo+Qo+")*",fr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$o="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ko=qo+Qo+Aa,Hi="(?:"+[Ca,Xi,_r].join("|")+")"+Ko,wa="(?:"+[Zo+ui+"?",ui,Xi,_r,ii].join("|")+")",Bu=RegExp(Tu,"g"),Sa=RegExp(ui,"g"),zi=RegExp(Wi+"(?="+Wi+")|"+wa+Ko,"g"),es=RegExp([mn+"?"+Ho+"+"+jo+"(?="+[_u,mn,"$"].join("|")+")",er+"+"+Uo+"(?="+[_u,mn+Jo,"$"].join("|")+")",mn+"?"+Jo+"+"+jo,mn+"+"+Uo,$o,fr,Xo,Hi].join("|"),"g"),ts=RegExp("["+Yo+Ni+Mo+Wo+"]"),oi=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ns=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ea=-1,ut={};ut[Ge]=ut[Re]=ut[Gt]=ut[tn]=ut[Jt]=ut[En]=ut[nn]=ut[Ft]=ut[pn]=!0,ut[ve]=ut[Le]=ut[ee]=ut[Ve]=ut[ge]=ut[ft]=ut[Bt]=ut[Yt]=ut[Ct]=ut[ne]=ut[de]=ut[yt]=ut[Dt]=ut[Nn]=ut[$e]=!1;var it={};it[ve]=it[Le]=it[ee]=it[ge]=it[Ve]=it[ft]=it[Ge]=it[Re]=it[Gt]=it[tn]=it[Jt]=it[Ct]=it[ne]=it[de]=it[yt]=it[Dt]=it[Nn]=it[nt]=it[En]=it[nn]=it[Ft]=it[pn]=!0,it[Bt]=it[Yt]=it[$e]=!1;var C={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò: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:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},B={"&":"&","<":"<",">":">",'"':""","'":"'"},J={"&":"&","<":"<",">":">",""":'"',"'":"'"},oe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ot=parseFloat,Oe=parseInt,dt=typeof Ln=="object"&&Ln&&Ln.Object===Object&&Ln,Pt=typeof self=="object"&&self&&self.Object===Object&&self,Ze=dt||Pt||Function("return this")(),st=t&&!t.nodeType&&t,xt=st&&!0&&e&&!e.nodeType&&e,rn=xt&&xt.exports===st,Ot=rn&&dt.process,ht=function(){try{var _=xt&&xt.require&&xt.require("util").types;return _||Ot&&Ot.binding&&Ot.binding("util")}catch{}}(),jt=ht&&ht.isArrayBuffer,Wn=ht&&ht.isDate,Pn=ht&&ht.isMap,tr=ht&&ht.isRegExp,Gu=ht&&ht.isSet,si=ht&&ht.isTypedArray;function Rt(_,W,M){switch(M.length){case 0:return _.call(W);case 1:return _.call(W,M[0]);case 2:return _.call(W,M[0],M[1]);case 3:return _.call(W,M[0],M[1],M[2])}return _.apply(W,M)}function Bx(_,W,M,se){for(var Ee=-1,Qe=_==null?0:_.length;++Ee<Qe;){var Tt=_[Ee];W(se,Tt,M(Tt),_)}return se}function On(_,W){for(var M=-1,se=_==null?0:_.length;++M<se&&W(_[M],M,_)!==!1;);return _}function Gx(_,W){for(var M=_==null?0:_.length;M--&&W(_[M],M,_)!==!1;);return _}function gp(_,W){for(var M=-1,se=_==null?0:_.length;++M<se;)if(!W(_[M],M,_))return!1;return!0}function Br(_,W){for(var M=-1,se=_==null?0:_.length,Ee=0,Qe=[];++M<se;){var Tt=_[M];W(Tt,M,_)&&(Qe[Ee++]=Tt)}return Qe}function rs(_,W){var M=_==null?0:_.length;return!!M&&Zi(_,W,0)>-1}function Fa(_,W,M){for(var se=-1,Ee=_==null?0:_.length;++se<Ee;)if(M(W,_[se]))return!0;return!1}function pt(_,W){for(var M=-1,se=_==null?0:_.length,Ee=Array(se);++M<se;)Ee[M]=W(_[M],M,_);return Ee}function Gr(_,W){for(var M=-1,se=W.length,Ee=_.length;++M<se;)_[Ee+M]=W[M];return _}function Pa(_,W,M,se){var Ee=-1,Qe=_==null?0:_.length;for(se&&Qe&&(M=_[++Ee]);++Ee<Qe;)M=W(M,_[Ee],Ee,_);return M}function Rx(_,W,M,se){var Ee=_==null?0:_.length;for(se&&Ee&&(M=_[--Ee]);Ee--;)M=W(M,_[Ee],Ee,_);return M}function Oa(_,W){for(var M=-1,se=_==null?0:_.length;++M<se;)if(W(_[M],M,_))return!0;return!1}var kx=Ta("length");function Lx(_){return _.split("")}function Dx(_){return _.match(ua)||[]}function mp(_,W,M){var se;return M(_,function(Ee,Qe,Tt){if(W(Ee,Qe,Tt))return se=Qe,!1}),se}function is(_,W,M,se){for(var Ee=_.length,Qe=M+(se?1:-1);se?Qe--:++Qe<Ee;)if(W(_[Qe],Qe,_))return Qe;return-1}function Zi(_,W,M){return W===W?Ux(_,W,M):is(_,bp,M)}function Mx(_,W,M,se){for(var Ee=M-1,Qe=_.length;++Ee<Qe;)if(se(_[Ee],W))return Ee;return-1}function bp(_){return _!==_}function vp(_,W){var M=_==null?0:_.length;return M?Ba(_,W)/M:E}function Ta(_){return function(W){return W==null?r:W[_]}}function _a(_){return function(W){return _==null?r:_[W]}}function yp(_,W,M,se,Ee){return Ee(_,function(Qe,Tt,lt){M=se?(se=!1,Qe):W(M,Qe,Tt,lt)}),M}function Nx(_,W){var M=_.length;for(_.sort(W);M--;)_[M]=_[M].value;return _}function Ba(_,W){for(var M,se=-1,Ee=_.length;++se<Ee;){var Qe=W(_[se]);Qe!==r&&(M=M===r?Qe:M+Qe)}return M}function Ga(_,W){for(var M=-1,se=Array(_);++M<_;)se[M]=W(M);return se}function Vx(_,W){return pt(W,function(M){return[M,_[M]]})}function Ip(_){return _&&_.slice(0,wp(_)+1).replace(Pu,"")}function bn(_){return function(W){return _(W)}}function Ra(_,W){return pt(W,function(M){return _[M]})}function Ru(_,W){return _.has(W)}function Cp(_,W){for(var M=-1,se=_.length;++M<se&&Zi(W,_[M],0)>-1;);return M}function xp(_,W){for(var M=_.length;M--&&Zi(W,_[M],0)>-1;);return M}function Wx(_,W){for(var M=_.length,se=0;M--;)_[M]===W&&++se;return se}var Xx=_a(C),Hx=_a(B);function zx(_){return"\\"+oe[_]}function Zx(_,W){return _==null?r:_[W]}function Yi(_){return ts.test(_)}function Yx(_){return oi.test(_)}function Jx(_){for(var W,M=[];!(W=_.next()).done;)M.push(W.value);return M}function ka(_){var W=-1,M=Array(_.size);return _.forEach(function(se,Ee){M[++W]=[Ee,se]}),M}function Ap(_,W){return function(M){return _(W(M))}}function Rr(_,W){for(var M=-1,se=_.length,Ee=0,Qe=[];++M<se;){var Tt=_[M];(Tt===W||Tt===p)&&(_[M]=p,Qe[Ee++]=M)}return Qe}function us(_){var W=-1,M=Array(_.size);return _.forEach(function(se){M[++W]=se}),M}function jx(_){var W=-1,M=Array(_.size);return _.forEach(function(se){M[++W]=[se,se]}),M}function Ux(_,W,M){for(var se=M-1,Ee=_.length;++se<Ee;)if(_[se]===W)return se;return-1}function Qx(_,W,M){for(var se=M+1;se--;)if(_[se]===W)return se;return se}function Ji(_){return Yi(_)?$x(_):kx(_)}function Xn(_){return Yi(_)?Kx(_):Lx(_)}function wp(_){for(var W=_.length;W--&&Do.test(_.charAt(W)););return W}var qx=_a(J);function $x(_){for(var W=zi.lastIndex=0;zi.test(_);)++W;return W}function Kx(_){return _.match(zi)||[]}function eA(_){return _.match(es)||[]}var tA=function _(W){W=W==null?Ze:ji.defaults(Ze.Object(),W,ji.pick(Ze,ns));var M=W.Array,se=W.Date,Ee=W.Error,Qe=W.Function,Tt=W.Math,lt=W.Object,La=W.RegExp,nA=W.String,Tn=W.TypeError,os=M.prototype,rA=Qe.prototype,Ui=lt.prototype,ss=W["__core-js_shared__"],ls=rA.toString,et=Ui.hasOwnProperty,iA=0,Sp=function(){var n=/[^.]+$/.exec(ss&&ss.keys&&ss.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),as=Ui.toString,uA=ls.call(lt),oA=Ze._,sA=La("^"+ls.call(et).replace(Fu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),cs=rn?W.Buffer:r,kr=W.Symbol,fs=W.Uint8Array,Ep=cs?cs.allocUnsafe:r,ds=Ap(lt.getPrototypeOf,lt),Fp=lt.create,Pp=Ui.propertyIsEnumerable,hs=os.splice,Op=kr?kr.isConcatSpreadable:r,ku=kr?kr.iterator:r,li=kr?kr.toStringTag:r,ps=function(){try{var n=hi(lt,"defineProperty");return n({},"",{}),n}catch{}}(),lA=W.clearTimeout!==Ze.clearTimeout&&W.clearTimeout,aA=se&&se.now!==Ze.Date.now&&se.now,cA=W.setTimeout!==Ze.setTimeout&&W.setTimeout,gs=Tt.ceil,ms=Tt.floor,Da=lt.getOwnPropertySymbols,fA=cs?cs.isBuffer:r,Tp=W.isFinite,dA=os.join,hA=Ap(lt.keys,lt),_t=Tt.max,Wt=Tt.min,pA=se.now,gA=W.parseInt,_p=Tt.random,mA=os.reverse,Ma=hi(W,"DataView"),Lu=hi(W,"Map"),Na=hi(W,"Promise"),Qi=hi(W,"Set"),Du=hi(W,"WeakMap"),Mu=hi(lt,"create"),bs=Du&&new Du,qi={},bA=pi(Ma),vA=pi(Lu),yA=pi(Na),IA=pi(Qi),CA=pi(Du),vs=kr?kr.prototype:r,Nu=vs?vs.valueOf:r,Bp=vs?vs.toString:r;function v(n){if(It(n)&&!Te(n)&&!(n instanceof We)){if(n instanceof _n)return n;if(et.call(n,"__wrapped__"))return Gg(n)}return new _n(n)}var $i=function(){function n(){}return function(i){if(!gt(i))return{};if(Fp)return Fp(i);n.prototype=i;var s=new n;return n.prototype=r,s}}();function ys(){}function _n(n,i){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=r}v.templateSettings={escape:Su,evaluate:Eu,interpolate:Di,variable:"",imports:{_:v}},v.prototype=ys.prototype,v.prototype.constructor=v,_n.prototype=$i(ys.prototype),_n.prototype.constructor=_n;function We(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=He,this.__views__=[]}function xA(){var n=new We(this.__wrapped__);return n.__actions__=un(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=un(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=un(this.__views__),n}function AA(){if(this.__filtered__){var n=new We(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function wA(){var n=this.__wrapped__.value(),i=this.__dir__,s=Te(n),d=i<0,m=s?n.length:0,y=Lw(0,m,this.__views__),x=y.start,O=y.end,G=O-x,z=d?O:x-1,Y=this.__iteratees__,q=Y.length,re=0,fe=Wt(G,this.__takeCount__);if(!s||!d&&m==G&&fe==G)return ng(n,this.__actions__);var Ce=[];e:for(;G--&&re<fe;){z+=i;for(var De=-1,xe=n[z];++De<q;){var Ne=Y[De],Ye=Ne.iteratee,In=Ne.type,qt=Ye(xe);if(In==ie)xe=qt;else if(!qt){if(In==Be)continue e;break e}}Ce[re++]=xe}return Ce}We.prototype=$i(ys.prototype),We.prototype.constructor=We;function ai(n){var i=-1,s=n==null?0:n.length;for(this.clear();++i<s;){var d=n[i];this.set(d[0],d[1])}}function SA(){this.__data__=Mu?Mu(null):{},this.size=0}function EA(n){var i=this.has(n)&&delete this.__data__[n];return this.size-=i?1:0,i}function FA(n){var i=this.__data__;if(Mu){var s=i[n];return s===f?r:s}return et.call(i,n)?i[n]:r}function PA(n){var i=this.__data__;return Mu?i[n]!==r:et.call(i,n)}function OA(n,i){var s=this.__data__;return this.size+=this.has(n)?0:1,s[n]=Mu&&i===r?f:i,this}ai.prototype.clear=SA,ai.prototype.delete=EA,ai.prototype.get=FA,ai.prototype.has=PA,ai.prototype.set=OA;function dr(n){var i=-1,s=n==null?0:n.length;for(this.clear();++i<s;){var d=n[i];this.set(d[0],d[1])}}function TA(){this.__data__=[],this.size=0}function _A(n){var i=this.__data__,s=Is(i,n);if(s<0)return!1;var d=i.length-1;return s==d?i.pop():hs.call(i,s,1),--this.size,!0}function BA(n){var i=this.__data__,s=Is(i,n);return s<0?r:i[s][1]}function GA(n){return Is(this.__data__,n)>-1}function RA(n,i){var s=this.__data__,d=Is(s,n);return d<0?(++this.size,s.push([n,i])):s[d][1]=i,this}dr.prototype.clear=TA,dr.prototype.delete=_A,dr.prototype.get=BA,dr.prototype.has=GA,dr.prototype.set=RA;function hr(n){var i=-1,s=n==null?0:n.length;for(this.clear();++i<s;){var d=n[i];this.set(d[0],d[1])}}function kA(){this.size=0,this.__data__={hash:new ai,map:new(Lu||dr),string:new ai}}function LA(n){var i=Bs(this,n).delete(n);return this.size-=i?1:0,i}function DA(n){return Bs(this,n).get(n)}function MA(n){return Bs(this,n).has(n)}function NA(n,i){var s=Bs(this,n),d=s.size;return s.set(n,i),this.size+=s.size==d?0:1,this}hr.prototype.clear=kA,hr.prototype.delete=LA,hr.prototype.get=DA,hr.prototype.has=MA,hr.prototype.set=NA;function ci(n){var i=-1,s=n==null?0:n.length;for(this.__data__=new hr;++i<s;)this.add(n[i])}function VA(n){return this.__data__.set(n,f),this}function WA(n){return this.__data__.has(n)}ci.prototype.add=ci.prototype.push=VA,ci.prototype.has=WA;function Hn(n){var i=this.__data__=new dr(n);this.size=i.size}function XA(){this.__data__=new dr,this.size=0}function HA(n){var i=this.__data__,s=i.delete(n);return this.size=i.size,s}function zA(n){return this.__data__.get(n)}function ZA(n){return this.__data__.has(n)}function YA(n,i){var s=this.__data__;if(s instanceof dr){var d=s.__data__;if(!Lu||d.length<o-1)return d.push([n,i]),this.size=++s.size,this;s=this.__data__=new hr(d)}return s.set(n,i),this.size=s.size,this}Hn.prototype.clear=XA,Hn.prototype.delete=HA,Hn.prototype.get=zA,Hn.prototype.has=ZA,Hn.prototype.set=YA;function Gp(n,i){var s=Te(n),d=!s&&gi(n),m=!s&&!d&&Vr(n),y=!s&&!d&&!m&&nu(n),x=s||d||m||y,O=x?Ga(n.length,nA):[],G=O.length;for(var z in n)(i||et.call(n,z))&&!(x&&(z=="length"||m&&(z=="offset"||z=="parent")||y&&(z=="buffer"||z=="byteLength"||z=="byteOffset")||br(z,G)))&&O.push(z);return O}function Rp(n){var i=n.length;return i?n[Qa(0,i-1)]:r}function JA(n,i){return Gs(un(n),fi(i,0,n.length))}function jA(n){return Gs(un(n))}function Va(n,i,s){(s!==r&&!zn(n[i],s)||s===r&&!(i in n))&&pr(n,i,s)}function Vu(n,i,s){var d=n[i];(!(et.call(n,i)&&zn(d,s))||s===r&&!(i in n))&&pr(n,i,s)}function Is(n,i){for(var s=n.length;s--;)if(zn(n[s][0],i))return s;return-1}function UA(n,i,s,d){return Lr(n,function(m,y,x){i(d,m,s(m),x)}),d}function kp(n,i){return n&&rr(i,kt(i),n)}function QA(n,i){return n&&rr(i,sn(i),n)}function pr(n,i,s){i=="__proto__"&&ps?ps(n,i,{configurable:!0,enumerable:!0,value:s,writable:!0}):n[i]=s}function Wa(n,i){for(var s=-1,d=i.length,m=M(d),y=n==null;++s<d;)m[s]=y?r:Cc(n,i[s]);return m}function fi(n,i,s){return n===n&&(s!==r&&(n=n<=s?n:s),i!==r&&(n=n>=i?n:i)),n}function Bn(n,i,s,d,m,y){var x,O=i&g,G=i&I,z=i&b;if(s&&(x=m?s(n,d,m,y):s(n)),x!==r)return x;if(!gt(n))return n;var Y=Te(n);if(Y){if(x=Mw(n),!O)return un(n,x)}else{var q=Xt(n),re=q==Yt||q==hn;if(Vr(n))return ug(n,O);if(q==de||q==ve||re&&!m){if(x=G||re?{}:wg(n),!O)return G?Fw(n,QA(x,n)):Ew(n,kp(x,n))}else{if(!it[q])return m?n:{};x=Nw(n,q,O)}}y||(y=new Hn);var fe=y.get(n);if(fe)return fe;y.set(n,x),Kg(n)?n.forEach(function(xe){x.add(Bn(xe,i,s,xe,n,y))}):qg(n)&&n.forEach(function(xe,Ne){x.set(Ne,Bn(xe,i,s,Ne,n,y))});var Ce=z?G?sc:oc:G?sn:kt,De=Y?r:Ce(n);return On(De||n,function(xe,Ne){De&&(Ne=xe,xe=n[Ne]),Vu(x,Ne,Bn(xe,i,s,Ne,n,y))}),x}function qA(n){var i=kt(n);return function(s){return Lp(s,n,i)}}function Lp(n,i,s){var d=s.length;if(n==null)return!d;for(n=lt(n);d--;){var m=s[d],y=i[m],x=n[m];if(x===r&&!(m in n)||!y(x))return!1}return!0}function Dp(n,i,s){if(typeof n!="function")throw new Tn(a);return Ju(function(){n.apply(r,s)},i)}function Wu(n,i,s,d){var m=-1,y=rs,x=!0,O=n.length,G=[],z=i.length;if(!O)return G;s&&(i=pt(i,bn(s))),d?(y=Fa,x=!1):i.length>=o&&(y=Ru,x=!1,i=new ci(i));e:for(;++m<O;){var Y=n[m],q=s==null?Y:s(Y);if(Y=d||Y!==0?Y:0,x&&q===q){for(var re=z;re--;)if(i[re]===q)continue e;G.push(Y)}else y(i,q,d)||G.push(Y)}return G}var Lr=cg(nr),Mp=cg(Ha,!0);function $A(n,i){var s=!0;return Lr(n,function(d,m,y){return s=!!i(d,m,y),s}),s}function Cs(n,i,s){for(var d=-1,m=n.length;++d<m;){var y=n[d],x=i(y);if(x!=null&&(O===r?x===x&&!yn(x):s(x,O)))var O=x,G=y}return G}function KA(n,i,s,d){var m=n.length;for(s=ke(s),s<0&&(s=-s>m?0:m+s),d=d===r||d>m?m:ke(d),d<0&&(d+=m),d=s>d?0:tm(d);s<d;)n[s++]=i;return n}function Np(n,i){var s=[];return Lr(n,function(d,m,y){i(d,m,y)&&s.push(d)}),s}function Mt(n,i,s,d,m){var y=-1,x=n.length;for(s||(s=Ww),m||(m=[]);++y<x;){var O=n[y];i>0&&s(O)?i>1?Mt(O,i-1,s,d,m):Gr(m,O):d||(m[m.length]=O)}return m}var Xa=fg(),Vp=fg(!0);function nr(n,i){return n&&Xa(n,i,kt)}function Ha(n,i){return n&&Vp(n,i,kt)}function xs(n,i){return Br(i,function(s){return vr(n[s])})}function di(n,i){i=Mr(i,n);for(var s=0,d=i.length;n!=null&&s<d;)n=n[ir(i[s++])];return s&&s==d?n:r}function Wp(n,i,s){var d=i(n);return Te(n)?d:Gr(d,s(n))}function Ut(n){return n==null?n===r?rt:le:li&&li in lt(n)?kw(n):jw(n)}function za(n,i){return n>i}function ew(n,i){return n!=null&&et.call(n,i)}function tw(n,i){return n!=null&&i in lt(n)}function nw(n,i,s){return n>=Wt(i,s)&&n<_t(i,s)}function Za(n,i,s){for(var d=s?Fa:rs,m=n[0].length,y=n.length,x=y,O=M(y),G=1/0,z=[];x--;){var Y=n[x];x&&i&&(Y=pt(Y,bn(i))),G=Wt(Y.length,G),O[x]=!s&&(i||m>=120&&Y.length>=120)?new ci(x&&Y):r}Y=n[0];var q=-1,re=O[0];e:for(;++q<m&&z.length<G;){var fe=Y[q],Ce=i?i(fe):fe;if(fe=s||fe!==0?fe:0,!(re?Ru(re,Ce):d(z,Ce,s))){for(x=y;--x;){var De=O[x];if(!(De?Ru(De,Ce):d(n[x],Ce,s)))continue e}re&&re.push(Ce),z.push(fe)}}return z}function rw(n,i,s,d){return nr(n,function(m,y,x){i(d,s(m),y,x)}),d}function Xu(n,i,s){i=Mr(i,n),n=Pg(n,i);var d=n==null?n:n[ir(Rn(i))];return d==null?r:Rt(d,n,s)}function Xp(n){return It(n)&&Ut(n)==ve}function iw(n){return It(n)&&Ut(n)==ee}function uw(n){return It(n)&&Ut(n)==ft}function Hu(n,i,s,d,m){return n===i?!0:n==null||i==null||!It(n)&&!It(i)?n!==n&&i!==i:ow(n,i,s,d,Hu,m)}function ow(n,i,s,d,m,y){var x=Te(n),O=Te(i),G=x?Le:Xt(n),z=O?Le:Xt(i);G=G==ve?de:G,z=z==ve?de:z;var Y=G==de,q=z==de,re=G==z;if(re&&Vr(n)){if(!Vr(i))return!1;x=!0,Y=!1}if(re&&!Y)return y||(y=new Hn),x||nu(n)?Cg(n,i,s,d,m,y):Gw(n,i,G,s,d,m,y);if(!(s&S)){var fe=Y&&et.call(n,"__wrapped__"),Ce=q&&et.call(i,"__wrapped__");if(fe||Ce){var De=fe?n.value():n,xe=Ce?i.value():i;return y||(y=new Hn),m(De,xe,s,d,y)}}return re?(y||(y=new Hn),Rw(n,i,s,d,m,y)):!1}function sw(n){return It(n)&&Xt(n)==Ct}function Ya(n,i,s,d){var m=s.length,y=m,x=!d;if(n==null)return!y;for(n=lt(n);m--;){var O=s[m];if(x&&O[2]?O[1]!==n[O[0]]:!(O[0]in n))return!1}for(;++m<y;){O=s[m];var G=O[0],z=n[G],Y=O[1];if(x&&O[2]){if(z===r&&!(G in n))return!1}else{var q=new Hn;if(d)var re=d(z,Y,G,n,i,q);if(!(re===r?Hu(Y,z,S|A,d,q):re))return!1}}return!0}function Hp(n){if(!gt(n)||Hw(n))return!1;var i=vr(n)?sA:fa;return i.test(pi(n))}function lw(n){return It(n)&&Ut(n)==yt}function aw(n){return It(n)&&Xt(n)==Dt}function cw(n){return It(n)&&Ns(n.length)&&!!ut[Ut(n)]}function zp(n){return typeof n=="function"?n:n==null?ln:typeof n=="object"?Te(n)?Jp(n[0],n[1]):Yp(n):dm(n)}function Ja(n){if(!Yu(n))return hA(n);var i=[];for(var s in lt(n))et.call(n,s)&&s!="constructor"&&i.push(s);return i}function fw(n){if(!gt(n))return Jw(n);var i=Yu(n),s=[];for(var d in n)d=="constructor"&&(i||!et.call(n,d))||s.push(d);return s}function ja(n,i){return n<i}function Zp(n,i){var s=-1,d=on(n)?M(n.length):[];return Lr(n,function(m,y,x){d[++s]=i(m,y,x)}),d}function Yp(n){var i=ac(n);return i.length==1&&i[0][2]?Eg(i[0][0],i[0][1]):function(s){return s===n||Ya(s,n,i)}}function Jp(n,i){return fc(n)&&Sg(i)?Eg(ir(n),i):function(s){var d=Cc(s,n);return d===r&&d===i?xc(s,n):Hu(i,d,S|A)}}function As(n,i,s,d,m){n!==i&&Xa(i,function(y,x){if(m||(m=new Hn),gt(y))dw(n,i,x,s,As,d,m);else{var O=d?d(hc(n,x),y,x+"",n,i,m):r;O===r&&(O=y),Va(n,x,O)}},sn)}function dw(n,i,s,d,m,y,x){var O=hc(n,s),G=hc(i,s),z=x.get(G);if(z){Va(n,s,z);return}var Y=y?y(O,G,s+"",n,i,x):r,q=Y===r;if(q){var re=Te(G),fe=!re&&Vr(G),Ce=!re&&!fe&&nu(G);Y=G,re||fe||Ce?Te(O)?Y=O:At(O)?Y=un(O):fe?(q=!1,Y=ug(G,!0)):Ce?(q=!1,Y=og(G,!0)):Y=[]:ju(G)||gi(G)?(Y=O,gi(O)?Y=nm(O):(!gt(O)||vr(O))&&(Y=wg(G))):q=!1}q&&(x.set(G,Y),m(Y,G,d,y,x),x.delete(G)),Va(n,s,Y)}function jp(n,i){var s=n.length;if(s)return i+=i<0?s:0,br(i,s)?n[i]:r}function Up(n,i,s){i.length?i=pt(i,function(y){return Te(y)?function(x){return di(x,y.length===1?y[0]:y)}:y}):i=[ln];var d=-1;i=pt(i,bn(Ie()));var m=Zp(n,function(y,x,O){var G=pt(i,function(z){return z(y)});return{criteria:G,index:++d,value:y}});return Nx(m,function(y,x){return Sw(y,x,s)})}function hw(n,i){return Qp(n,i,function(s,d){return xc(n,d)})}function Qp(n,i,s){for(var d=-1,m=i.length,y={};++d<m;){var x=i[d],O=di(n,x);s(O,x)&&zu(y,Mr(x,n),O)}return y}function pw(n){return function(i){return di(i,n)}}function Ua(n,i,s,d){var m=d?Mx:Zi,y=-1,x=i.length,O=n;for(n===i&&(i=un(i)),s&&(O=pt(n,bn(s)));++y<x;)for(var G=0,z=i[y],Y=s?s(z):z;(G=m(O,Y,G,d))>-1;)O!==n&&hs.call(O,G,1),hs.call(n,G,1);return n}function qp(n,i){for(var s=n?i.length:0,d=s-1;s--;){var m=i[s];if(s==d||m!==y){var y=m;br(m)?hs.call(n,m,1):Ka(n,m)}}return n}function Qa(n,i){return n+ms(_p()*(i-n+1))}function gw(n,i,s,d){for(var m=-1,y=_t(gs((i-n)/(s||1)),0),x=M(y);y--;)x[d?y:++m]=n,n+=s;return x}function qa(n,i){var s="";if(!n||i<1||i>Pe)return s;do i%2&&(s+=n),i=ms(i/2),i&&(n+=n);while(i);return s}function Me(n,i){return pc(Fg(n,i,ln),n+"")}function mw(n){return Rp(ru(n))}function bw(n,i){var s=ru(n);return Gs(s,fi(i,0,s.length))}function zu(n,i,s,d){if(!gt(n))return n;i=Mr(i,n);for(var m=-1,y=i.length,x=y-1,O=n;O!=null&&++m<y;){var G=ir(i[m]),z=s;if(G==="__proto__"||G==="constructor"||G==="prototype")return n;if(m!=x){var Y=O[G];z=d?d(Y,G,O):r,z===r&&(z=gt(Y)?Y:br(i[m+1])?[]:{})}Vu(O,G,z),O=O[G]}return n}var $p=bs?function(n,i){return bs.set(n,i),n}:ln,vw=ps?function(n,i){return ps(n,"toString",{configurable:!0,enumerable:!1,value:wc(i),writable:!0})}:ln;function yw(n){return Gs(ru(n))}function Gn(n,i,s){var d=-1,m=n.length;i<0&&(i=-i>m?0:m+i),s=s>m?m:s,s<0&&(s+=m),m=i>s?0:s-i>>>0,i>>>=0;for(var y=M(m);++d<m;)y[d]=n[d+i];return y}function Iw(n,i){var s;return Lr(n,function(d,m,y){return s=i(d,m,y),!s}),!!s}function ws(n,i,s){var d=0,m=n==null?d:n.length;if(typeof i=="number"&&i===i&&m<=w){for(;d<m;){var y=d+m>>>1,x=n[y];x!==null&&!yn(x)&&(s?x<=i:x<i)?d=y+1:m=y}return m}return $a(n,i,ln,s)}function $a(n,i,s,d){var m=0,y=n==null?0:n.length;if(y===0)return 0;i=s(i);for(var x=i!==i,O=i===null,G=yn(i),z=i===r;m<y;){var Y=ms((m+y)/2),q=s(n[Y]),re=q!==r,fe=q===null,Ce=q===q,De=yn(q);if(x)var xe=d||Ce;else z?xe=Ce&&(d||re):O?xe=Ce&&re&&(d||!fe):G?xe=Ce&&re&&!fe&&(d||!De):fe||De?xe=!1:xe=d?q<=i:q<i;xe?m=Y+1:y=Y}return Wt(y,be)}function Kp(n,i){for(var s=-1,d=n.length,m=0,y=[];++s<d;){var x=n[s],O=i?i(x):x;if(!s||!zn(O,G)){var G=O;y[m++]=x===0?0:x}}return y}function eg(n){return typeof n=="number"?n:yn(n)?E:+n}function vn(n){if(typeof n=="string")return n;if(Te(n))return pt(n,vn)+"";if(yn(n))return Bp?Bp.call(n):"";var i=n+"";return i=="0"&&1/n==-we?"-0":i}function Dr(n,i,s){var d=-1,m=rs,y=n.length,x=!0,O=[],G=O;if(s)x=!1,m=Fa;else if(y>=o){var z=i?null:_w(n);if(z)return us(z);x=!1,m=Ru,G=new ci}else G=i?[]:O;e:for(;++d<y;){var Y=n[d],q=i?i(Y):Y;if(Y=s||Y!==0?Y:0,x&&q===q){for(var re=G.length;re--;)if(G[re]===q)continue e;i&&G.push(q),O.push(Y)}else m(G,q,s)||(G!==O&&G.push(q),O.push(Y))}return O}function Ka(n,i){return i=Mr(i,n),n=Pg(n,i),n==null||delete n[ir(Rn(i))]}function tg(n,i,s,d){return zu(n,i,s(di(n,i)),d)}function Ss(n,i,s,d){for(var m=n.length,y=d?m:-1;(d?y--:++y<m)&&i(n[y],y,n););return s?Gn(n,d?0:y,d?y+1:m):Gn(n,d?y+1:0,d?m:y)}function ng(n,i){var s=n;return s instanceof We&&(s=s.value()),Pa(i,function(d,m){return m.func.apply(m.thisArg,Gr([d],m.args))},s)}function ec(n,i,s){var d=n.length;if(d<2)return d?Dr(n[0]):[];for(var m=-1,y=M(d);++m<d;)for(var x=n[m],O=-1;++O<d;)O!=m&&(y[m]=Wu(y[m]||x,n[O],i,s));return Dr(Mt(y,1),i,s)}function rg(n,i,s){for(var d=-1,m=n.length,y=i.length,x={};++d<m;){var O=d<y?i[d]:r;s(x,n[d],O)}return x}function tc(n){return At(n)?n:[]}function nc(n){return typeof n=="function"?n:ln}function Mr(n,i){return Te(n)?n:fc(n,i)?[n]:Bg(Ke(n))}var Cw=Me;function Nr(n,i,s){var d=n.length;return s=s===r?d:s,!i&&s>=d?n:Gn(n,i,s)}var ig=lA||function(n){return Ze.clearTimeout(n)};function ug(n,i){if(i)return n.slice();var s=n.length,d=Ep?Ep(s):new n.constructor(s);return n.copy(d),d}function rc(n){var i=new n.constructor(n.byteLength);return new fs(i).set(new fs(n)),i}function xw(n,i){var s=i?rc(n.buffer):n.buffer;return new n.constructor(s,n.byteOffset,n.byteLength)}function Aw(n){var i=new n.constructor(n.source,Fn.exec(n));return i.lastIndex=n.lastIndex,i}function ww(n){return Nu?lt(Nu.call(n)):{}}function og(n,i){var s=i?rc(n.buffer):n.buffer;return new n.constructor(s,n.byteOffset,n.length)}function sg(n,i){if(n!==i){var s=n!==r,d=n===null,m=n===n,y=yn(n),x=i!==r,O=i===null,G=i===i,z=yn(i);if(!O&&!z&&!y&&n>i||y&&x&&G&&!O&&!z||d&&x&&G||!s&&G||!m)return 1;if(!d&&!y&&!z&&n<i||z&&s&&m&&!d&&!y||O&&s&&m||!x&&m||!G)return-1}return 0}function Sw(n,i,s){for(var d=-1,m=n.criteria,y=i.criteria,x=m.length,O=s.length;++d<x;){var G=sg(m[d],y[d]);if(G){if(d>=O)return G;var z=s[d];return G*(z=="desc"?-1:1)}}return n.index-i.index}function lg(n,i,s,d){for(var m=-1,y=n.length,x=s.length,O=-1,G=i.length,z=_t(y-x,0),Y=M(G+z),q=!d;++O<G;)Y[O]=i[O];for(;++m<x;)(q||m<y)&&(Y[s[m]]=n[m]);for(;z--;)Y[O++]=n[m++];return Y}function ag(n,i,s,d){for(var m=-1,y=n.length,x=-1,O=s.length,G=-1,z=i.length,Y=_t(y-O,0),q=M(Y+z),re=!d;++m<Y;)q[m]=n[m];for(var fe=m;++G<z;)q[fe+G]=i[G];for(;++x<O;)(re||m<y)&&(q[fe+s[x]]=n[m++]);return q}function un(n,i){var s=-1,d=n.length;for(i||(i=M(d));++s<d;)i[s]=n[s];return i}function rr(n,i,s,d){var m=!s;s||(s={});for(var y=-1,x=i.length;++y<x;){var O=i[y],G=d?d(s[O],n[O],O,s,n):r;G===r&&(G=n[O]),m?pr(s,O,G):Vu(s,O,G)}return s}function Ew(n,i){return rr(n,cc(n),i)}function Fw(n,i){return rr(n,xg(n),i)}function Es(n,i){return function(s,d){var m=Te(s)?Bx:UA,y=i?i():{};return m(s,n,Ie(d,2),y)}}function Ki(n){return Me(function(i,s){var d=-1,m=s.length,y=m>1?s[m-1]:r,x=m>2?s[2]:r;for(y=n.length>3&&typeof y=="function"?(m--,y):r,x&&Qt(s[0],s[1],x)&&(y=m<3?r:y,m=1),i=lt(i);++d<m;){var O=s[d];O&&n(i,O,d,y)}return i})}function cg(n,i){return function(s,d){if(s==null)return s;if(!on(s))return n(s,d);for(var m=s.length,y=i?m:-1,x=lt(s);(i?y--:++y<m)&&d(x[y],y,x)!==!1;);return s}}function fg(n){return function(i,s,d){for(var m=-1,y=lt(i),x=d(i),O=x.length;O--;){var G=x[n?O:++m];if(s(y[G],G,y)===!1)break}return i}}function Pw(n,i,s){var d=i&F,m=Zu(n);function y(){var x=this&&this!==Ze&&this instanceof y?m:n;return x.apply(d?s:this,arguments)}return y}function dg(n){return function(i){i=Ke(i);var s=Yi(i)?Xn(i):r,d=s?s[0]:i.charAt(0),m=s?Nr(s,1).join(""):i.slice(1);return d[n]()+m}}function eu(n){return function(i){return Pa(cm(am(i).replace(Bu,"")),n,"")}}function Zu(n){return function(){var i=arguments;switch(i.length){case 0:return new n;case 1:return new n(i[0]);case 2:return new n(i[0],i[1]);case 3:return new n(i[0],i[1],i[2]);case 4:return new n(i[0],i[1],i[2],i[3]);case 5:return new n(i[0],i[1],i[2],i[3],i[4]);case 6:return new n(i[0],i[1],i[2],i[3],i[4],i[5]);case 7:return new n(i[0],i[1],i[2],i[3],i[4],i[5],i[6])}var s=$i(n.prototype),d=n.apply(s,i);return gt(d)?d:s}}function Ow(n,i,s){var d=Zu(n);function m(){for(var y=arguments.length,x=M(y),O=y,G=tu(m);O--;)x[O]=arguments[O];var z=y<3&&x[0]!==G&&x[y-1]!==G?[]:Rr(x,G);if(y-=z.length,y<s)return bg(n,i,Fs,m.placeholder,r,x,z,r,r,s-y);var Y=this&&this!==Ze&&this instanceof m?d:n;return Rt(Y,this,x)}return m}function hg(n){return function(i,s,d){var m=lt(i);if(!on(i)){var y=Ie(s,3);i=kt(i),s=function(O){return y(m[O],O,m)}}var x=n(i,s,d);return x>-1?m[y?i[x]:x]:r}}function pg(n){return mr(function(i){var s=i.length,d=s,m=_n.prototype.thru;for(n&&i.reverse();d--;){var y=i[d];if(typeof y!="function")throw new Tn(a);if(m&&!x&&_s(y)=="wrapper")var x=new _n([],!0)}for(d=x?d:s;++d<s;){y=i[d];var O=_s(y),G=O=="wrapper"?lc(y):r;G&&dc(G[0])&&G[1]==(j|k|H|N)&&!G[4].length&&G[9]==1?x=x[_s(G[0])].apply(x,G[3]):x=y.length==1&&dc(y)?x[O]():x.thru(y)}return function(){var z=arguments,Y=z[0];if(x&&z.length==1&&Te(Y))return x.plant(Y).value();for(var q=0,re=s?i[q].apply(this,z):Y;++q<s;)re=i[q].call(this,re);return re}})}function Fs(n,i,s,d,m,y,x,O,G,z){var Y=i&j,q=i&F,re=i&P,fe=i&(k|V),Ce=i&Z,De=re?r:Zu(n);function xe(){for(var Ne=arguments.length,Ye=M(Ne),In=Ne;In--;)Ye[In]=arguments[In];if(fe)var qt=tu(xe),Cn=Wx(Ye,qt);if(d&&(Ye=lg(Ye,d,m,fe)),y&&(Ye=ag(Ye,y,x,fe)),Ne-=Cn,fe&&Ne<z){var wt=Rr(Ye,qt);return bg(n,i,Fs,xe.placeholder,s,Ye,wt,O,G,z-Ne)}var Zn=q?s:this,Ir=re?Zn[n]:n;return Ne=Ye.length,O?Ye=Uw(Ye,O):Ce&&Ne>1&&Ye.reverse(),Y&&G<Ne&&(Ye.length=G),this&&this!==Ze&&this instanceof xe&&(Ir=De||Zu(Ir)),Ir.apply(Zn,Ye)}return xe}function gg(n,i){return function(s,d){return rw(s,n,i(d),{})}}function Ps(n,i){return function(s,d){var m;if(s===r&&d===r)return i;if(s!==r&&(m=s),d!==r){if(m===r)return d;typeof s=="string"||typeof d=="string"?(s=vn(s),d=vn(d)):(s=eg(s),d=eg(d)),m=n(s,d)}return m}}function ic(n){return mr(function(i){return i=pt(i,bn(Ie())),Me(function(s){var d=this;return n(i,function(m){return Rt(m,d,s)})})})}function Os(n,i){i=i===r?" ":vn(i);var s=i.length;if(s<2)return s?qa(i,n):i;var d=qa(i,gs(n/Ji(i)));return Yi(i)?Nr(Xn(d),0,n).join(""):d.slice(0,n)}function Tw(n,i,s,d){var m=i&F,y=Zu(n);function x(){for(var O=-1,G=arguments.length,z=-1,Y=d.length,q=M(Y+G),re=this&&this!==Ze&&this instanceof x?y:n;++z<Y;)q[z]=d[z];for(;G--;)q[z++]=arguments[++O];return Rt(re,m?s:this,q)}return x}function mg(n){return function(i,s,d){return d&&typeof d!="number"&&Qt(i,s,d)&&(s=d=r),i=yr(i),s===r?(s=i,i=0):s=yr(s),d=d===r?i<s?1:-1:yr(d),gw(i,s,d,n)}}function Ts(n){return function(i,s){return typeof i=="string"&&typeof s=="string"||(i=kn(i),s=kn(s)),n(i,s)}}function bg(n,i,s,d,m,y,x,O,G,z){var Y=i&k,q=Y?x:r,re=Y?r:x,fe=Y?y:r,Ce=Y?r:y;i|=Y?H:R,i&=~(Y?R:H),i&L||(i&=~(F|P));var De=[n,i,m,fe,q,Ce,re,O,G,z],xe=s.apply(r,De);return dc(n)&&Og(xe,De),xe.placeholder=d,Tg(xe,n,i)}function uc(n){var i=Tt[n];return function(s,d){if(s=kn(s),d=d==null?0:Wt(ke(d),292),d&&Tp(s)){var m=(Ke(s)+"e").split("e"),y=i(m[0]+"e"+(+m[1]+d));return m=(Ke(y)+"e").split("e"),+(m[0]+"e"+(+m[1]-d))}return i(s)}}var _w=Qi&&1/us(new Qi([,-0]))[1]==we?function(n){return new Qi(n)}:Fc;function vg(n){return function(i){var s=Xt(i);return s==Ct?ka(i):s==Dt?jx(i):Vx(i,n(i))}}function gr(n,i,s,d,m,y,x,O){var G=i&P;if(!G&&typeof n!="function")throw new Tn(a);var z=d?d.length:0;if(z||(i&=~(H|R),d=m=r),x=x===r?x:_t(ke(x),0),O=O===r?O:ke(O),z-=m?m.length:0,i&R){var Y=d,q=m;d=m=r}var re=G?r:lc(n),fe=[n,i,s,d,m,Y,q,y,x,O];if(re&&Yw(fe,re),n=fe[0],i=fe[1],s=fe[2],d=fe[3],m=fe[4],O=fe[9]=fe[9]===r?G?0:n.length:_t(fe[9]-z,0),!O&&i&(k|V)&&(i&=~(k|V)),!i||i==F)var Ce=Pw(n,i,s);else i==k||i==V?Ce=Ow(n,i,O):(i==H||i==(F|H))&&!m.length?Ce=Tw(n,i,s,d):Ce=Fs.apply(r,fe);var De=re?$p:Og;return Tg(De(Ce,fe),n,i)}function yg(n,i,s,d){return n===r||zn(n,Ui[s])&&!et.call(d,s)?i:n}function Ig(n,i,s,d,m,y){return gt(n)&>(i)&&(y.set(i,n),As(n,i,r,Ig,y),y.delete(i)),n}function Bw(n){return ju(n)?r:n}function Cg(n,i,s,d,m,y){var x=s&S,O=n.length,G=i.length;if(O!=G&&!(x&&G>O))return!1;var z=y.get(n),Y=y.get(i);if(z&&Y)return z==i&&Y==n;var q=-1,re=!0,fe=s&A?new ci:r;for(y.set(n,i),y.set(i,n);++q<O;){var Ce=n[q],De=i[q];if(d)var xe=x?d(De,Ce,q,i,n,y):d(Ce,De,q,n,i,y);if(xe!==r){if(xe)continue;re=!1;break}if(fe){if(!Oa(i,function(Ne,Ye){if(!Ru(fe,Ye)&&(Ce===Ne||m(Ce,Ne,s,d,y)))return fe.push(Ye)})){re=!1;break}}else if(!(Ce===De||m(Ce,De,s,d,y))){re=!1;break}}return y.delete(n),y.delete(i),re}function Gw(n,i,s,d,m,y,x){switch(s){case ge:if(n.byteLength!=i.byteLength||n.byteOffset!=i.byteOffset)return!1;n=n.buffer,i=i.buffer;case ee:return!(n.byteLength!=i.byteLength||!y(new fs(n),new fs(i)));case Ve:case ft:case ne:return zn(+n,+i);case Bt:return n.name==i.name&&n.message==i.message;case yt:case Nn:return n==i+"";case Ct:var O=ka;case Dt:var G=d&S;if(O||(O=us),n.size!=i.size&&!G)return!1;var z=x.get(n);if(z)return z==i;d|=A,x.set(n,i);var Y=Cg(O(n),O(i),d,m,y,x);return x.delete(n),Y;case nt:if(Nu)return Nu.call(n)==Nu.call(i)}return!1}function Rw(n,i,s,d,m,y){var x=s&S,O=oc(n),G=O.length,z=oc(i),Y=z.length;if(G!=Y&&!x)return!1;for(var q=G;q--;){var re=O[q];if(!(x?re in i:et.call(i,re)))return!1}var fe=y.get(n),Ce=y.get(i);if(fe&&Ce)return fe==i&&Ce==n;var De=!0;y.set(n,i),y.set(i,n);for(var xe=x;++q<G;){re=O[q];var Ne=n[re],Ye=i[re];if(d)var In=x?d(Ye,Ne,re,i,n,y):d(Ne,Ye,re,n,i,y);if(!(In===r?Ne===Ye||m(Ne,Ye,s,d,y):In)){De=!1;break}xe||(xe=re=="constructor")}if(De&&!xe){var qt=n.constructor,Cn=i.constructor;qt!=Cn&&"constructor"in n&&"constructor"in i&&!(typeof qt=="function"&&qt instanceof qt&&typeof Cn=="function"&&Cn instanceof Cn)&&(De=!1)}return y.delete(n),y.delete(i),De}function mr(n){return pc(Fg(n,r,Lg),n+"")}function oc(n){return Wp(n,kt,cc)}function sc(n){return Wp(n,sn,xg)}var lc=bs?function(n){return bs.get(n)}:Fc;function _s(n){for(var i=n.name+"",s=qi[i],d=et.call(qi,i)?s.length:0;d--;){var m=s[d],y=m.func;if(y==null||y==n)return m.name}return i}function tu(n){var i=et.call(v,"placeholder")?v:n;return i.placeholder}function Ie(){var n=v.iteratee||Sc;return n=n===Sc?zp:n,arguments.length?n(arguments[0],arguments[1]):n}function Bs(n,i){var s=n.__data__;return Xw(i)?s[typeof i=="string"?"string":"hash"]:s.map}function ac(n){for(var i=kt(n),s=i.length;s--;){var d=i[s],m=n[d];i[s]=[d,m,Sg(m)]}return i}function hi(n,i){var s=Zx(n,i);return Hp(s)?s:r}function kw(n){var i=et.call(n,li),s=n[li];try{n[li]=r;var d=!0}catch{}var m=as.call(n);return d&&(i?n[li]=s:delete n[li]),m}var cc=Da?function(n){return n==null?[]:(n=lt(n),Br(Da(n),function(i){return Pp.call(n,i)}))}:Pc,xg=Da?function(n){for(var i=[];n;)Gr(i,cc(n)),n=ds(n);return i}:Pc,Xt=Ut;(Ma&&Xt(new Ma(new ArrayBuffer(1)))!=ge||Lu&&Xt(new Lu)!=Ct||Na&&Xt(Na.resolve())!=je||Qi&&Xt(new Qi)!=Dt||Du&&Xt(new Du)!=$e)&&(Xt=function(n){var i=Ut(n),s=i==de?n.constructor:r,d=s?pi(s):"";if(d)switch(d){case bA:return ge;case vA:return Ct;case yA:return je;case IA:return Dt;case CA:return $e}return i});function Lw(n,i,s){for(var d=-1,m=s.length;++d<m;){var y=s[d],x=y.size;switch(y.type){case"drop":n+=x;break;case"dropRight":i-=x;break;case"take":i=Wt(i,n+x);break;case"takeRight":n=_t(n,i-x);break}}return{start:n,end:i}}function Dw(n){var i=n.match(ar);return i?i[1].split(ia):[]}function Ag(n,i,s){i=Mr(i,n);for(var d=-1,m=i.length,y=!1;++d<m;){var x=ir(i[d]);if(!(y=n!=null&&s(n,x)))break;n=n[x]}return y||++d!=m?y:(m=n==null?0:n.length,!!m&&Ns(m)&&br(x,m)&&(Te(n)||gi(n)))}function Mw(n){var i=n.length,s=new n.constructor(i);return i&&typeof n[0]=="string"&&et.call(n,"index")&&(s.index=n.index,s.input=n.input),s}function wg(n){return typeof n.constructor=="function"&&!Yu(n)?$i(ds(n)):{}}function Nw(n,i,s){var d=n.constructor;switch(i){case ee:return rc(n);case Ve:case ft:return new d(+n);case ge:return xw(n,s);case Ge:case Re:case Gt:case tn:case Jt:case En:case nn:case Ft:case pn:return og(n,s);case Ct:return new d;case ne:case Nn:return new d(n);case yt:return Aw(n);case Dt:return new d;case nt:return ww(n)}}function Vw(n,i){var s=i.length;if(!s)return n;var d=s-1;return i[d]=(s>1?"& ":"")+i[d],i=i.join(s>2?", ":" "),n.replace(Ou,`{
|
|
21
|
+
*/ho.exports,function(e,t){(function(){var r,u="4.17.21",o=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",c="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",h=500,p="__lodash_placeholder__",g=1,I=2,b=4,S=1,A=2,F=1,P=2,L=4,k=8,N=16,X=32,R=64,Y=128,D=256,j=512,Q=30,U="...",q=800,be=16,Se=1,ue=2,pe=3,Ee=1/0,Oe=9007199254740991,Ke=17976931348623157e292,E=NaN,xe=4294967295,Le=xe-1,w=xe>>>1,je=[["ary",Y],["bind",F],["bindKey",P],["curry",k],["curryRight",N],["flip",j],["partial",X],["partialRight",R],["rearg",D]],ge="[object Arguments]",Ne="[object Array]",St="[object AsyncFunction]",Ve="[object Boolean]",vt="[object Date]",Xt="[object DOMException]",Lt="[object Error]",Dt="[object Function]",Nn="[object GeneratorFunction]",ne="[object Map]",oe="[object Number]",ye="[object Null]",Ge="[object Object]",yt="[object Promise]",Bt="[object Proxy]",Sn="[object RegExp]",Mt="[object Set]",nt="[object String]",Qe="[object Symbol]",ft="[object Undefined]",et="[object WeakMap]",V="[object WeakSet]",te="[object ArrayBuffer]",he="[object DataView]",Re="[object Float32Array]",ke="[object Float64Array]",_t="[object Int8Array]",tn="[object Int16Array]",Jt="[object Int32Array]",En="[object Uint8Array]",nn="[object Uint8ClampedArray]",Et="[object Uint16Array]",hn="[object Uint32Array]",pn=/\b__p \+= '';/g,lr=/\b(__p \+=) '' \+/g,Ro=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ko=/&(?:amp|lt|gt|quot|#39);/g,Lo=/[&<>"']/g,wu=RegExp(ko.source),ti=RegExp(Lo.source),Su=/<%-([\s\S]+?)%>/g,Eu=/<%([\s\S]+?)%>/g,Di=/<%=([\s\S]+?)%>/g,ni=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ta=/^\w*$/,na=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fu=/[\\^$.*+?()[\]{}|]/g,ra=RegExp(Fu.source),Pu=/^\s+/,Do=/\s/,Ou=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ar=/\{\n\/\* \[wrapped with (.+)\] \*/,ia=/,? & /,ua=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,oa=/[()=,{}\[\]\/\s]/,sa=/\\(\\)?/g,la=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Fn=/\w*$/,aa=/^[-+]0x[0-9a-f]+$/i,ca=/^0b[01]+$/i,fa=/^\[object .+?Constructor\]$/,da=/^0o[0-7]+$/i,ha=/^(?:0|[1-9]\d*)$/,cr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Mi=/($^)/,pa=/['\n\r\u2028\u2029\\]/g,Ni="\\ud800-\\udfff",ga="\\u0300-\\u036f",ma="\\ufe20-\\ufe2f",Vi="\\u20d0-\\u20ff",Mo=ga+ma+Vi,No="\\u2700-\\u27bf",Vn="a-z\\xdf-\\xf6\\xf8-\\xff",ba="\\xac\\xb1\\xd7\\xf7",va="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ya="\\u2000-\\u206f",Ia=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Vo="A-Z\\xc0-\\xd6\\xd8-\\xde",Wo="\\ufe0e\\ufe0f",ri=ba+va+ya+Ia,Tu="['’]",ii="["+Ni+"]",Bu="["+ri+"]",ui="["+Mo+"]",Xo="\\d+",Ca="["+No+"]",Ho="["+Vn+"]",zo="[^"+Ni+ri+Xo+No+Vn+Vo+"]",Wi="\\ud83c[\\udffb-\\udfff]",xa="(?:"+ui+"|"+Wi+")",Zo="[^"+Ni+"]",Xi="(?:\\ud83c[\\udde6-\\uddff]){2}",Br="[\\ud800-\\udbff][\\udc00-\\udfff]",gn="["+Vo+"]",Yo="\\u200d",Jo="(?:"+Ho+"|"+zo+")",er="(?:"+gn+"|"+zo+")",jo="(?:"+Tu+"(?:d|ll|m|re|s|t|ve))?",Uo="(?:"+Tu+"(?:D|LL|M|RE|S|T|VE))?",Qo=xa+"?",qo="["+Wo+"]?",Aa="(?:"+Yo+"(?:"+[Zo,Xi,Br].join("|")+")"+qo+Qo+")*",fr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$o="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ko=qo+Qo+Aa,Hi="(?:"+[Ca,Xi,Br].join("|")+")"+Ko,wa="(?:"+[Zo+ui+"?",ui,Xi,Br,ii].join("|")+")",_u=RegExp(Tu,"g"),Sa=RegExp(ui,"g"),zi=RegExp(Wi+"(?="+Wi+")|"+wa+Ko,"g"),es=RegExp([gn+"?"+Ho+"+"+jo+"(?="+[Bu,gn,"$"].join("|")+")",er+"+"+Uo+"(?="+[Bu,gn+Jo,"$"].join("|")+")",gn+"?"+Jo+"+"+jo,gn+"+"+Uo,$o,fr,Xo,Hi].join("|"),"g"),ts=RegExp("["+Yo+Ni+Mo+Wo+"]"),oi=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ns=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ea=-1,ut={};ut[Re]=ut[ke]=ut[_t]=ut[tn]=ut[Jt]=ut[En]=ut[nn]=ut[Et]=ut[hn]=!0,ut[ge]=ut[Ne]=ut[te]=ut[Ve]=ut[he]=ut[vt]=ut[Lt]=ut[Dt]=ut[ne]=ut[oe]=ut[Ge]=ut[Sn]=ut[Mt]=ut[nt]=ut[et]=!1;var it={};it[ge]=it[Ne]=it[te]=it[he]=it[Ve]=it[vt]=it[Re]=it[ke]=it[_t]=it[tn]=it[Jt]=it[ne]=it[oe]=it[Ge]=it[Sn]=it[Mt]=it[nt]=it[Qe]=it[En]=it[nn]=it[Et]=it[hn]=!0,it[Lt]=it[Dt]=it[et]=!1;var C={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},_={"&":"&","<":"<",">":">",'"':""","'":"'"},J={"&":"&","<":"<",">":">",""":'"',"'":"'"},se={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ot=parseFloat,Te=parseInt,dt=typeof Ln=="object"&&Ln&&Ln.Object===Object&&Ln,Ft=typeof self=="object"&&self&&self.Object===Object&&self,Ze=dt||Ft||Function("return this")(),st=t&&!t.nodeType&&t,Ct=st&&!0&&e&&!e.nodeType&&e,rn=Ct&&Ct.exports===st,Pt=rn&&dt.process,ht=function(){try{var B=Ct&&Ct.require&&Ct.require("util").types;return B||Pt&&Pt.binding&&Pt.binding("util")}catch{}}(),jt=ht&&ht.isArrayBuffer,Wn=ht&&ht.isDate,Pn=ht&&ht.isMap,tr=ht&&ht.isRegExp,Gu=ht&&ht.isSet,si=ht&&ht.isTypedArray;function Gt(B,W,M){switch(M.length){case 0:return B.call(W);case 1:return B.call(W,M[0]);case 2:return B.call(W,M[0],M[1]);case 3:return B.call(W,M[0],M[1],M[2])}return B.apply(W,M)}function _x(B,W,M,le){for(var Fe=-1,qe=B==null?0:B.length;++Fe<qe;){var Ot=B[Fe];W(le,Ot,M(Ot),B)}return le}function On(B,W){for(var M=-1,le=B==null?0:B.length;++M<le&&W(B[M],M,B)!==!1;);return B}function Gx(B,W){for(var M=B==null?0:B.length;M--&&W(B[M],M,B)!==!1;);return B}function gp(B,W){for(var M=-1,le=B==null?0:B.length;++M<le;)if(!W(B[M],M,B))return!1;return!0}function _r(B,W){for(var M=-1,le=B==null?0:B.length,Fe=0,qe=[];++M<le;){var Ot=B[M];W(Ot,M,B)&&(qe[Fe++]=Ot)}return qe}function rs(B,W){var M=B==null?0:B.length;return!!M&&Zi(B,W,0)>-1}function Fa(B,W,M){for(var le=-1,Fe=B==null?0:B.length;++le<Fe;)if(M(W,B[le]))return!0;return!1}function pt(B,W){for(var M=-1,le=B==null?0:B.length,Fe=Array(le);++M<le;)Fe[M]=W(B[M],M,B);return Fe}function Gr(B,W){for(var M=-1,le=W.length,Fe=B.length;++M<le;)B[Fe+M]=W[M];return B}function Pa(B,W,M,le){var Fe=-1,qe=B==null?0:B.length;for(le&&qe&&(M=B[++Fe]);++Fe<qe;)M=W(M,B[Fe],Fe,B);return M}function Rx(B,W,M,le){var Fe=B==null?0:B.length;for(le&&Fe&&(M=B[--Fe]);Fe--;)M=W(M,B[Fe],Fe,B);return M}function Oa(B,W){for(var M=-1,le=B==null?0:B.length;++M<le;)if(W(B[M],M,B))return!0;return!1}var kx=Ta("length");function Lx(B){return B.split("")}function Dx(B){return B.match(ua)||[]}function mp(B,W,M){var le;return M(B,function(Fe,qe,Ot){if(W(Fe,qe,Ot))return le=qe,!1}),le}function is(B,W,M,le){for(var Fe=B.length,qe=M+(le?1:-1);le?qe--:++qe<Fe;)if(W(B[qe],qe,B))return qe;return-1}function Zi(B,W,M){return W===W?Ux(B,W,M):is(B,bp,M)}function Mx(B,W,M,le){for(var Fe=M-1,qe=B.length;++Fe<qe;)if(le(B[Fe],W))return Fe;return-1}function bp(B){return B!==B}function vp(B,W){var M=B==null?0:B.length;return M?_a(B,W)/M:E}function Ta(B){return function(W){return W==null?r:W[B]}}function Ba(B){return function(W){return B==null?r:B[W]}}function yp(B,W,M,le,Fe){return Fe(B,function(qe,Ot,lt){M=le?(le=!1,qe):W(M,qe,Ot,lt)}),M}function Nx(B,W){var M=B.length;for(B.sort(W);M--;)B[M]=B[M].value;return B}function _a(B,W){for(var M,le=-1,Fe=B.length;++le<Fe;){var qe=W(B[le]);qe!==r&&(M=M===r?qe:M+qe)}return M}function Ga(B,W){for(var M=-1,le=Array(B);++M<B;)le[M]=W(M);return le}function Vx(B,W){return pt(W,function(M){return[M,B[M]]})}function Ip(B){return B&&B.slice(0,wp(B)+1).replace(Pu,"")}function mn(B){return function(W){return B(W)}}function Ra(B,W){return pt(W,function(M){return B[M]})}function Ru(B,W){return B.has(W)}function Cp(B,W){for(var M=-1,le=B.length;++M<le&&Zi(W,B[M],0)>-1;);return M}function xp(B,W){for(var M=B.length;M--&&Zi(W,B[M],0)>-1;);return M}function Wx(B,W){for(var M=B.length,le=0;M--;)B[M]===W&&++le;return le}var Xx=Ba(C),Hx=Ba(_);function zx(B){return"\\"+se[B]}function Zx(B,W){return B==null?r:B[W]}function Yi(B){return ts.test(B)}function Yx(B){return oi.test(B)}function Jx(B){for(var W,M=[];!(W=B.next()).done;)M.push(W.value);return M}function ka(B){var W=-1,M=Array(B.size);return B.forEach(function(le,Fe){M[++W]=[Fe,le]}),M}function Ap(B,W){return function(M){return B(W(M))}}function Rr(B,W){for(var M=-1,le=B.length,Fe=0,qe=[];++M<le;){var Ot=B[M];(Ot===W||Ot===p)&&(B[M]=p,qe[Fe++]=M)}return qe}function us(B){var W=-1,M=Array(B.size);return B.forEach(function(le){M[++W]=le}),M}function jx(B){var W=-1,M=Array(B.size);return B.forEach(function(le){M[++W]=[le,le]}),M}function Ux(B,W,M){for(var le=M-1,Fe=B.length;++le<Fe;)if(B[le]===W)return le;return-1}function Qx(B,W,M){for(var le=M+1;le--;)if(B[le]===W)return le;return le}function Ji(B){return Yi(B)?$x(B):kx(B)}function Xn(B){return Yi(B)?Kx(B):Lx(B)}function wp(B){for(var W=B.length;W--&&Do.test(B.charAt(W)););return W}var qx=Ba(J);function $x(B){for(var W=zi.lastIndex=0;zi.test(B);)++W;return W}function Kx(B){return B.match(zi)||[]}function eA(B){return B.match(es)||[]}var tA=function B(W){W=W==null?Ze:ji.defaults(Ze.Object(),W,ji.pick(Ze,ns));var M=W.Array,le=W.Date,Fe=W.Error,qe=W.Function,Ot=W.Math,lt=W.Object,La=W.RegExp,nA=W.String,Tn=W.TypeError,os=M.prototype,rA=qe.prototype,Ui=lt.prototype,ss=W["__core-js_shared__"],ls=rA.toString,rt=Ui.hasOwnProperty,iA=0,Sp=function(){var n=/[^.]+$/.exec(ss&&ss.keys&&ss.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),as=Ui.toString,uA=ls.call(lt),oA=Ze._,sA=La("^"+ls.call(rt).replace(Fu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),cs=rn?W.Buffer:r,kr=W.Symbol,fs=W.Uint8Array,Ep=cs?cs.allocUnsafe:r,ds=Ap(lt.getPrototypeOf,lt),Fp=lt.create,Pp=Ui.propertyIsEnumerable,hs=os.splice,Op=kr?kr.isConcatSpreadable:r,ku=kr?kr.iterator:r,li=kr?kr.toStringTag:r,ps=function(){try{var n=hi(lt,"defineProperty");return n({},"",{}),n}catch{}}(),lA=W.clearTimeout!==Ze.clearTimeout&&W.clearTimeout,aA=le&&le.now!==Ze.Date.now&&le.now,cA=W.setTimeout!==Ze.setTimeout&&W.setTimeout,gs=Ot.ceil,ms=Ot.floor,Da=lt.getOwnPropertySymbols,fA=cs?cs.isBuffer:r,Tp=W.isFinite,dA=os.join,hA=Ap(lt.keys,lt),Tt=Ot.max,Ht=Ot.min,pA=le.now,gA=W.parseInt,Bp=Ot.random,mA=os.reverse,Ma=hi(W,"DataView"),Lu=hi(W,"Map"),Na=hi(W,"Promise"),Qi=hi(W,"Set"),Du=hi(W,"WeakMap"),Mu=hi(lt,"create"),bs=Du&&new Du,qi={},bA=pi(Ma),vA=pi(Lu),yA=pi(Na),IA=pi(Qi),CA=pi(Du),vs=kr?kr.prototype:r,Nu=vs?vs.valueOf:r,_p=vs?vs.toString:r;function v(n){if(It(n)&&!Be(n)&&!(n instanceof He)){if(n instanceof Bn)return n;if(rt.call(n,"__wrapped__"))return Gg(n)}return new Bn(n)}var $i=function(){function n(){}return function(i){if(!gt(i))return{};if(Fp)return Fp(i);n.prototype=i;var s=new n;return n.prototype=r,s}}();function ys(){}function Bn(n,i){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=r}v.templateSettings={escape:Su,evaluate:Eu,interpolate:Di,variable:"",imports:{_:v}},v.prototype=ys.prototype,v.prototype.constructor=v,Bn.prototype=$i(ys.prototype),Bn.prototype.constructor=Bn;function He(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=xe,this.__views__=[]}function xA(){var n=new He(this.__wrapped__);return n.__actions__=un(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=un(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=un(this.__views__),n}function AA(){if(this.__filtered__){var n=new He(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function wA(){var n=this.__wrapped__.value(),i=this.__dir__,s=Be(n),d=i<0,m=s?n.length:0,y=Lw(0,m,this.__views__),x=y.start,O=y.end,G=O-x,z=d?O:x-1,Z=this.__iteratees__,$=Z.length,re=0,fe=Ht(G,this.__takeCount__);if(!s||!d&&m==G&&fe==G)return ng(n,this.__actions__);var Ie=[];e:for(;G--&&re<fe;){z+=i;for(var Me=-1,Ce=n[z];++Me<$;){var Xe=Z[Me],Ye=Xe.iteratee,yn=Xe.type,qt=Ye(Ce);if(yn==ue)Ce=qt;else if(!qt){if(yn==Se)continue e;break e}}Ie[re++]=Ce}return Ie}He.prototype=$i(ys.prototype),He.prototype.constructor=He;function ai(n){var i=-1,s=n==null?0:n.length;for(this.clear();++i<s;){var d=n[i];this.set(d[0],d[1])}}function SA(){this.__data__=Mu?Mu(null):{},this.size=0}function EA(n){var i=this.has(n)&&delete this.__data__[n];return this.size-=i?1:0,i}function FA(n){var i=this.__data__;if(Mu){var s=i[n];return s===f?r:s}return rt.call(i,n)?i[n]:r}function PA(n){var i=this.__data__;return Mu?i[n]!==r:rt.call(i,n)}function OA(n,i){var s=this.__data__;return this.size+=this.has(n)?0:1,s[n]=Mu&&i===r?f:i,this}ai.prototype.clear=SA,ai.prototype.delete=EA,ai.prototype.get=FA,ai.prototype.has=PA,ai.prototype.set=OA;function dr(n){var i=-1,s=n==null?0:n.length;for(this.clear();++i<s;){var d=n[i];this.set(d[0],d[1])}}function TA(){this.__data__=[],this.size=0}function BA(n){var i=this.__data__,s=Is(i,n);if(s<0)return!1;var d=i.length-1;return s==d?i.pop():hs.call(i,s,1),--this.size,!0}function _A(n){var i=this.__data__,s=Is(i,n);return s<0?r:i[s][1]}function GA(n){return Is(this.__data__,n)>-1}function RA(n,i){var s=this.__data__,d=Is(s,n);return d<0?(++this.size,s.push([n,i])):s[d][1]=i,this}dr.prototype.clear=TA,dr.prototype.delete=BA,dr.prototype.get=_A,dr.prototype.has=GA,dr.prototype.set=RA;function hr(n){var i=-1,s=n==null?0:n.length;for(this.clear();++i<s;){var d=n[i];this.set(d[0],d[1])}}function kA(){this.size=0,this.__data__={hash:new ai,map:new(Lu||dr),string:new ai}}function LA(n){var i=_s(this,n).delete(n);return this.size-=i?1:0,i}function DA(n){return _s(this,n).get(n)}function MA(n){return _s(this,n).has(n)}function NA(n,i){var s=_s(this,n),d=s.size;return s.set(n,i),this.size+=s.size==d?0:1,this}hr.prototype.clear=kA,hr.prototype.delete=LA,hr.prototype.get=DA,hr.prototype.has=MA,hr.prototype.set=NA;function ci(n){var i=-1,s=n==null?0:n.length;for(this.__data__=new hr;++i<s;)this.add(n[i])}function VA(n){return this.__data__.set(n,f),this}function WA(n){return this.__data__.has(n)}ci.prototype.add=ci.prototype.push=VA,ci.prototype.has=WA;function Hn(n){var i=this.__data__=new dr(n);this.size=i.size}function XA(){this.__data__=new dr,this.size=0}function HA(n){var i=this.__data__,s=i.delete(n);return this.size=i.size,s}function zA(n){return this.__data__.get(n)}function ZA(n){return this.__data__.has(n)}function YA(n,i){var s=this.__data__;if(s instanceof dr){var d=s.__data__;if(!Lu||d.length<o-1)return d.push([n,i]),this.size=++s.size,this;s=this.__data__=new hr(d)}return s.set(n,i),this.size=s.size,this}Hn.prototype.clear=XA,Hn.prototype.delete=HA,Hn.prototype.get=zA,Hn.prototype.has=ZA,Hn.prototype.set=YA;function Gp(n,i){var s=Be(n),d=!s&&gi(n),m=!s&&!d&&Vr(n),y=!s&&!d&&!m&&nu(n),x=s||d||m||y,O=x?Ga(n.length,nA):[],G=O.length;for(var z in n)(i||rt.call(n,z))&&!(x&&(z=="length"||m&&(z=="offset"||z=="parent")||y&&(z=="buffer"||z=="byteLength"||z=="byteOffset")||br(z,G)))&&O.push(z);return O}function Rp(n){var i=n.length;return i?n[Qa(0,i-1)]:r}function JA(n,i){return Gs(un(n),fi(i,0,n.length))}function jA(n){return Gs(un(n))}function Va(n,i,s){(s!==r&&!zn(n[i],s)||s===r&&!(i in n))&&pr(n,i,s)}function Vu(n,i,s){var d=n[i];(!(rt.call(n,i)&&zn(d,s))||s===r&&!(i in n))&&pr(n,i,s)}function Is(n,i){for(var s=n.length;s--;)if(zn(n[s][0],i))return s;return-1}function UA(n,i,s,d){return Lr(n,function(m,y,x){i(d,m,s(m),x)}),d}function kp(n,i){return n&&rr(i,Rt(i),n)}function QA(n,i){return n&&rr(i,sn(i),n)}function pr(n,i,s){i=="__proto__"&&ps?ps(n,i,{configurable:!0,enumerable:!0,value:s,writable:!0}):n[i]=s}function Wa(n,i){for(var s=-1,d=i.length,m=M(d),y=n==null;++s<d;)m[s]=y?r:Cc(n,i[s]);return m}function fi(n,i,s){return n===n&&(s!==r&&(n=n<=s?n:s),i!==r&&(n=n>=i?n:i)),n}function _n(n,i,s,d,m,y){var x,O=i&g,G=i&I,z=i&b;if(s&&(x=m?s(n,d,m,y):s(n)),x!==r)return x;if(!gt(n))return n;var Z=Be(n);if(Z){if(x=Mw(n),!O)return un(n,x)}else{var $=zt(n),re=$==Dt||$==Nn;if(Vr(n))return ug(n,O);if($==Ge||$==ge||re&&!m){if(x=G||re?{}:wg(n),!O)return G?Fw(n,QA(x,n)):Ew(n,kp(x,n))}else{if(!it[$])return m?n:{};x=Nw(n,$,O)}}y||(y=new Hn);var fe=y.get(n);if(fe)return fe;y.set(n,x),Kg(n)?n.forEach(function(Ce){x.add(_n(Ce,i,s,Ce,n,y))}):qg(n)&&n.forEach(function(Ce,Xe){x.set(Xe,_n(Ce,i,s,Xe,n,y))});var Ie=z?G?sc:oc:G?sn:Rt,Me=Z?r:Ie(n);return On(Me||n,function(Ce,Xe){Me&&(Xe=Ce,Ce=n[Xe]),Vu(x,Xe,_n(Ce,i,s,Xe,n,y))}),x}function qA(n){var i=Rt(n);return function(s){return Lp(s,n,i)}}function Lp(n,i,s){var d=s.length;if(n==null)return!d;for(n=lt(n);d--;){var m=s[d],y=i[m],x=n[m];if(x===r&&!(m in n)||!y(x))return!1}return!0}function Dp(n,i,s){if(typeof n!="function")throw new Tn(a);return Ju(function(){n.apply(r,s)},i)}function Wu(n,i,s,d){var m=-1,y=rs,x=!0,O=n.length,G=[],z=i.length;if(!O)return G;s&&(i=pt(i,mn(s))),d?(y=Fa,x=!1):i.length>=o&&(y=Ru,x=!1,i=new ci(i));e:for(;++m<O;){var Z=n[m],$=s==null?Z:s(Z);if(Z=d||Z!==0?Z:0,x&&$===$){for(var re=z;re--;)if(i[re]===$)continue e;G.push(Z)}else y(i,$,d)||G.push(Z)}return G}var Lr=cg(nr),Mp=cg(Ha,!0);function $A(n,i){var s=!0;return Lr(n,function(d,m,y){return s=!!i(d,m,y),s}),s}function Cs(n,i,s){for(var d=-1,m=n.length;++d<m;){var y=n[d],x=i(y);if(x!=null&&(O===r?x===x&&!vn(x):s(x,O)))var O=x,G=y}return G}function KA(n,i,s,d){var m=n.length;for(s=De(s),s<0&&(s=-s>m?0:m+s),d=d===r||d>m?m:De(d),d<0&&(d+=m),d=s>d?0:tm(d);s<d;)n[s++]=i;return n}function Np(n,i){var s=[];return Lr(n,function(d,m,y){i(d,m,y)&&s.push(d)}),s}function Nt(n,i,s,d,m){var y=-1,x=n.length;for(s||(s=Ww),m||(m=[]);++y<x;){var O=n[y];i>0&&s(O)?i>1?Nt(O,i-1,s,d,m):Gr(m,O):d||(m[m.length]=O)}return m}var Xa=fg(),Vp=fg(!0);function nr(n,i){return n&&Xa(n,i,Rt)}function Ha(n,i){return n&&Vp(n,i,Rt)}function xs(n,i){return _r(i,function(s){return vr(n[s])})}function di(n,i){i=Mr(i,n);for(var s=0,d=i.length;n!=null&&s<d;)n=n[ir(i[s++])];return s&&s==d?n:r}function Wp(n,i,s){var d=i(n);return Be(n)?d:Gr(d,s(n))}function Ut(n){return n==null?n===r?ft:ye:li&&li in lt(n)?kw(n):jw(n)}function za(n,i){return n>i}function ew(n,i){return n!=null&&rt.call(n,i)}function tw(n,i){return n!=null&&i in lt(n)}function nw(n,i,s){return n>=Ht(i,s)&&n<Tt(i,s)}function Za(n,i,s){for(var d=s?Fa:rs,m=n[0].length,y=n.length,x=y,O=M(y),G=1/0,z=[];x--;){var Z=n[x];x&&i&&(Z=pt(Z,mn(i))),G=Ht(Z.length,G),O[x]=!s&&(i||m>=120&&Z.length>=120)?new ci(x&&Z):r}Z=n[0];var $=-1,re=O[0];e:for(;++$<m&&z.length<G;){var fe=Z[$],Ie=i?i(fe):fe;if(fe=s||fe!==0?fe:0,!(re?Ru(re,Ie):d(z,Ie,s))){for(x=y;--x;){var Me=O[x];if(!(Me?Ru(Me,Ie):d(n[x],Ie,s)))continue e}re&&re.push(Ie),z.push(fe)}}return z}function rw(n,i,s,d){return nr(n,function(m,y,x){i(d,s(m),y,x)}),d}function Xu(n,i,s){i=Mr(i,n),n=Pg(n,i);var d=n==null?n:n[ir(Rn(i))];return d==null?r:Gt(d,n,s)}function Xp(n){return It(n)&&Ut(n)==ge}function iw(n){return It(n)&&Ut(n)==te}function uw(n){return It(n)&&Ut(n)==vt}function Hu(n,i,s,d,m){return n===i?!0:n==null||i==null||!It(n)&&!It(i)?n!==n&&i!==i:ow(n,i,s,d,Hu,m)}function ow(n,i,s,d,m,y){var x=Be(n),O=Be(i),G=x?Ne:zt(n),z=O?Ne:zt(i);G=G==ge?Ge:G,z=z==ge?Ge:z;var Z=G==Ge,$=z==Ge,re=G==z;if(re&&Vr(n)){if(!Vr(i))return!1;x=!0,Z=!1}if(re&&!Z)return y||(y=new Hn),x||nu(n)?Cg(n,i,s,d,m,y):Gw(n,i,G,s,d,m,y);if(!(s&S)){var fe=Z&&rt.call(n,"__wrapped__"),Ie=$&&rt.call(i,"__wrapped__");if(fe||Ie){var Me=fe?n.value():n,Ce=Ie?i.value():i;return y||(y=new Hn),m(Me,Ce,s,d,y)}}return re?(y||(y=new Hn),Rw(n,i,s,d,m,y)):!1}function sw(n){return It(n)&&zt(n)==ne}function Ya(n,i,s,d){var m=s.length,y=m,x=!d;if(n==null)return!y;for(n=lt(n);m--;){var O=s[m];if(x&&O[2]?O[1]!==n[O[0]]:!(O[0]in n))return!1}for(;++m<y;){O=s[m];var G=O[0],z=n[G],Z=O[1];if(x&&O[2]){if(z===r&&!(G in n))return!1}else{var $=new Hn;if(d)var re=d(z,Z,G,n,i,$);if(!(re===r?Hu(Z,z,S|A,d,$):re))return!1}}return!0}function Hp(n){if(!gt(n)||Hw(n))return!1;var i=vr(n)?sA:fa;return i.test(pi(n))}function lw(n){return It(n)&&Ut(n)==Sn}function aw(n){return It(n)&&zt(n)==Mt}function cw(n){return It(n)&&Ns(n.length)&&!!ut[Ut(n)]}function zp(n){return typeof n=="function"?n:n==null?ln:typeof n=="object"?Be(n)?Jp(n[0],n[1]):Yp(n):dm(n)}function Ja(n){if(!Yu(n))return hA(n);var i=[];for(var s in lt(n))rt.call(n,s)&&s!="constructor"&&i.push(s);return i}function fw(n){if(!gt(n))return Jw(n);var i=Yu(n),s=[];for(var d in n)d=="constructor"&&(i||!rt.call(n,d))||s.push(d);return s}function ja(n,i){return n<i}function Zp(n,i){var s=-1,d=on(n)?M(n.length):[];return Lr(n,function(m,y,x){d[++s]=i(m,y,x)}),d}function Yp(n){var i=ac(n);return i.length==1&&i[0][2]?Eg(i[0][0],i[0][1]):function(s){return s===n||Ya(s,n,i)}}function Jp(n,i){return fc(n)&&Sg(i)?Eg(ir(n),i):function(s){var d=Cc(s,n);return d===r&&d===i?xc(s,n):Hu(i,d,S|A)}}function As(n,i,s,d,m){n!==i&&Xa(i,function(y,x){if(m||(m=new Hn),gt(y))dw(n,i,x,s,As,d,m);else{var O=d?d(hc(n,x),y,x+"",n,i,m):r;O===r&&(O=y),Va(n,x,O)}},sn)}function dw(n,i,s,d,m,y,x){var O=hc(n,s),G=hc(i,s),z=x.get(G);if(z){Va(n,s,z);return}var Z=y?y(O,G,s+"",n,i,x):r,$=Z===r;if($){var re=Be(G),fe=!re&&Vr(G),Ie=!re&&!fe&&nu(G);Z=G,re||fe||Ie?Be(O)?Z=O:xt(O)?Z=un(O):fe?($=!1,Z=ug(G,!0)):Ie?($=!1,Z=og(G,!0)):Z=[]:ju(G)||gi(G)?(Z=O,gi(O)?Z=nm(O):(!gt(O)||vr(O))&&(Z=wg(G))):$=!1}$&&(x.set(G,Z),m(Z,G,d,y,x),x.delete(G)),Va(n,s,Z)}function jp(n,i){var s=n.length;if(s)return i+=i<0?s:0,br(i,s)?n[i]:r}function Up(n,i,s){i.length?i=pt(i,function(y){return Be(y)?function(x){return di(x,y.length===1?y[0]:y)}:y}):i=[ln];var d=-1;i=pt(i,mn(ve()));var m=Zp(n,function(y,x,O){var G=pt(i,function(z){return z(y)});return{criteria:G,index:++d,value:y}});return Nx(m,function(y,x){return Sw(y,x,s)})}function hw(n,i){return Qp(n,i,function(s,d){return xc(n,d)})}function Qp(n,i,s){for(var d=-1,m=i.length,y={};++d<m;){var x=i[d],O=di(n,x);s(O,x)&&zu(y,Mr(x,n),O)}return y}function pw(n){return function(i){return di(i,n)}}function Ua(n,i,s,d){var m=d?Mx:Zi,y=-1,x=i.length,O=n;for(n===i&&(i=un(i)),s&&(O=pt(n,mn(s)));++y<x;)for(var G=0,z=i[y],Z=s?s(z):z;(G=m(O,Z,G,d))>-1;)O!==n&&hs.call(O,G,1),hs.call(n,G,1);return n}function qp(n,i){for(var s=n?i.length:0,d=s-1;s--;){var m=i[s];if(s==d||m!==y){var y=m;br(m)?hs.call(n,m,1):Ka(n,m)}}return n}function Qa(n,i){return n+ms(Bp()*(i-n+1))}function gw(n,i,s,d){for(var m=-1,y=Tt(gs((i-n)/(s||1)),0),x=M(y);y--;)x[d?y:++m]=n,n+=s;return x}function qa(n,i){var s="";if(!n||i<1||i>Oe)return s;do i%2&&(s+=n),i=ms(i/2),i&&(n+=n);while(i);return s}function We(n,i){return pc(Fg(n,i,ln),n+"")}function mw(n){return Rp(ru(n))}function bw(n,i){var s=ru(n);return Gs(s,fi(i,0,s.length))}function zu(n,i,s,d){if(!gt(n))return n;i=Mr(i,n);for(var m=-1,y=i.length,x=y-1,O=n;O!=null&&++m<y;){var G=ir(i[m]),z=s;if(G==="__proto__"||G==="constructor"||G==="prototype")return n;if(m!=x){var Z=O[G];z=d?d(Z,G,O):r,z===r&&(z=gt(Z)?Z:br(i[m+1])?[]:{})}Vu(O,G,z),O=O[G]}return n}var $p=bs?function(n,i){return bs.set(n,i),n}:ln,vw=ps?function(n,i){return ps(n,"toString",{configurable:!0,enumerable:!1,value:wc(i),writable:!0})}:ln;function yw(n){return Gs(ru(n))}function Gn(n,i,s){var d=-1,m=n.length;i<0&&(i=-i>m?0:m+i),s=s>m?m:s,s<0&&(s+=m),m=i>s?0:s-i>>>0,i>>>=0;for(var y=M(m);++d<m;)y[d]=n[d+i];return y}function Iw(n,i){var s;return Lr(n,function(d,m,y){return s=i(d,m,y),!s}),!!s}function ws(n,i,s){var d=0,m=n==null?d:n.length;if(typeof i=="number"&&i===i&&m<=w){for(;d<m;){var y=d+m>>>1,x=n[y];x!==null&&!vn(x)&&(s?x<=i:x<i)?d=y+1:m=y}return m}return $a(n,i,ln,s)}function $a(n,i,s,d){var m=0,y=n==null?0:n.length;if(y===0)return 0;i=s(i);for(var x=i!==i,O=i===null,G=vn(i),z=i===r;m<y;){var Z=ms((m+y)/2),$=s(n[Z]),re=$!==r,fe=$===null,Ie=$===$,Me=vn($);if(x)var Ce=d||Ie;else z?Ce=Ie&&(d||re):O?Ce=Ie&&re&&(d||!fe):G?Ce=Ie&&re&&!fe&&(d||!Me):fe||Me?Ce=!1:Ce=d?$<=i:$<i;Ce?m=Z+1:y=Z}return Ht(y,Le)}function Kp(n,i){for(var s=-1,d=n.length,m=0,y=[];++s<d;){var x=n[s],O=i?i(x):x;if(!s||!zn(O,G)){var G=O;y[m++]=x===0?0:x}}return y}function eg(n){return typeof n=="number"?n:vn(n)?E:+n}function bn(n){if(typeof n=="string")return n;if(Be(n))return pt(n,bn)+"";if(vn(n))return _p?_p.call(n):"";var i=n+"";return i=="0"&&1/n==-Ee?"-0":i}function Dr(n,i,s){var d=-1,m=rs,y=n.length,x=!0,O=[],G=O;if(s)x=!1,m=Fa;else if(y>=o){var z=i?null:Bw(n);if(z)return us(z);x=!1,m=Ru,G=new ci}else G=i?[]:O;e:for(;++d<y;){var Z=n[d],$=i?i(Z):Z;if(Z=s||Z!==0?Z:0,x&&$===$){for(var re=G.length;re--;)if(G[re]===$)continue e;i&&G.push($),O.push(Z)}else m(G,$,s)||(G!==O&&G.push($),O.push(Z))}return O}function Ka(n,i){return i=Mr(i,n),n=Pg(n,i),n==null||delete n[ir(Rn(i))]}function tg(n,i,s,d){return zu(n,i,s(di(n,i)),d)}function Ss(n,i,s,d){for(var m=n.length,y=d?m:-1;(d?y--:++y<m)&&i(n[y],y,n););return s?Gn(n,d?0:y,d?y+1:m):Gn(n,d?y+1:0,d?m:y)}function ng(n,i){var s=n;return s instanceof He&&(s=s.value()),Pa(i,function(d,m){return m.func.apply(m.thisArg,Gr([d],m.args))},s)}function ec(n,i,s){var d=n.length;if(d<2)return d?Dr(n[0]):[];for(var m=-1,y=M(d);++m<d;)for(var x=n[m],O=-1;++O<d;)O!=m&&(y[m]=Wu(y[m]||x,n[O],i,s));return Dr(Nt(y,1),i,s)}function rg(n,i,s){for(var d=-1,m=n.length,y=i.length,x={};++d<m;){var O=d<y?i[d]:r;s(x,n[d],O)}return x}function tc(n){return xt(n)?n:[]}function nc(n){return typeof n=="function"?n:ln}function Mr(n,i){return Be(n)?n:fc(n,i)?[n]:_g(tt(n))}var Cw=We;function Nr(n,i,s){var d=n.length;return s=s===r?d:s,!i&&s>=d?n:Gn(n,i,s)}var ig=lA||function(n){return Ze.clearTimeout(n)};function ug(n,i){if(i)return n.slice();var s=n.length,d=Ep?Ep(s):new n.constructor(s);return n.copy(d),d}function rc(n){var i=new n.constructor(n.byteLength);return new fs(i).set(new fs(n)),i}function xw(n,i){var s=i?rc(n.buffer):n.buffer;return new n.constructor(s,n.byteOffset,n.byteLength)}function Aw(n){var i=new n.constructor(n.source,Fn.exec(n));return i.lastIndex=n.lastIndex,i}function ww(n){return Nu?lt(Nu.call(n)):{}}function og(n,i){var s=i?rc(n.buffer):n.buffer;return new n.constructor(s,n.byteOffset,n.length)}function sg(n,i){if(n!==i){var s=n!==r,d=n===null,m=n===n,y=vn(n),x=i!==r,O=i===null,G=i===i,z=vn(i);if(!O&&!z&&!y&&n>i||y&&x&&G&&!O&&!z||d&&x&&G||!s&&G||!m)return 1;if(!d&&!y&&!z&&n<i||z&&s&&m&&!d&&!y||O&&s&&m||!x&&m||!G)return-1}return 0}function Sw(n,i,s){for(var d=-1,m=n.criteria,y=i.criteria,x=m.length,O=s.length;++d<x;){var G=sg(m[d],y[d]);if(G){if(d>=O)return G;var z=s[d];return G*(z=="desc"?-1:1)}}return n.index-i.index}function lg(n,i,s,d){for(var m=-1,y=n.length,x=s.length,O=-1,G=i.length,z=Tt(y-x,0),Z=M(G+z),$=!d;++O<G;)Z[O]=i[O];for(;++m<x;)($||m<y)&&(Z[s[m]]=n[m]);for(;z--;)Z[O++]=n[m++];return Z}function ag(n,i,s,d){for(var m=-1,y=n.length,x=-1,O=s.length,G=-1,z=i.length,Z=Tt(y-O,0),$=M(Z+z),re=!d;++m<Z;)$[m]=n[m];for(var fe=m;++G<z;)$[fe+G]=i[G];for(;++x<O;)(re||m<y)&&($[fe+s[x]]=n[m++]);return $}function un(n,i){var s=-1,d=n.length;for(i||(i=M(d));++s<d;)i[s]=n[s];return i}function rr(n,i,s,d){var m=!s;s||(s={});for(var y=-1,x=i.length;++y<x;){var O=i[y],G=d?d(s[O],n[O],O,s,n):r;G===r&&(G=n[O]),m?pr(s,O,G):Vu(s,O,G)}return s}function Ew(n,i){return rr(n,cc(n),i)}function Fw(n,i){return rr(n,xg(n),i)}function Es(n,i){return function(s,d){var m=Be(s)?_x:UA,y=i?i():{};return m(s,n,ve(d,2),y)}}function Ki(n){return We(function(i,s){var d=-1,m=s.length,y=m>1?s[m-1]:r,x=m>2?s[2]:r;for(y=n.length>3&&typeof y=="function"?(m--,y):r,x&&Qt(s[0],s[1],x)&&(y=m<3?r:y,m=1),i=lt(i);++d<m;){var O=s[d];O&&n(i,O,d,y)}return i})}function cg(n,i){return function(s,d){if(s==null)return s;if(!on(s))return n(s,d);for(var m=s.length,y=i?m:-1,x=lt(s);(i?y--:++y<m)&&d(x[y],y,x)!==!1;);return s}}function fg(n){return function(i,s,d){for(var m=-1,y=lt(i),x=d(i),O=x.length;O--;){var G=x[n?O:++m];if(s(y[G],G,y)===!1)break}return i}}function Pw(n,i,s){var d=i&F,m=Zu(n);function y(){var x=this&&this!==Ze&&this instanceof y?m:n;return x.apply(d?s:this,arguments)}return y}function dg(n){return function(i){i=tt(i);var s=Yi(i)?Xn(i):r,d=s?s[0]:i.charAt(0),m=s?Nr(s,1).join(""):i.slice(1);return d[n]()+m}}function eu(n){return function(i){return Pa(cm(am(i).replace(_u,"")),n,"")}}function Zu(n){return function(){var i=arguments;switch(i.length){case 0:return new n;case 1:return new n(i[0]);case 2:return new n(i[0],i[1]);case 3:return new n(i[0],i[1],i[2]);case 4:return new n(i[0],i[1],i[2],i[3]);case 5:return new n(i[0],i[1],i[2],i[3],i[4]);case 6:return new n(i[0],i[1],i[2],i[3],i[4],i[5]);case 7:return new n(i[0],i[1],i[2],i[3],i[4],i[5],i[6])}var s=$i(n.prototype),d=n.apply(s,i);return gt(d)?d:s}}function Ow(n,i,s){var d=Zu(n);function m(){for(var y=arguments.length,x=M(y),O=y,G=tu(m);O--;)x[O]=arguments[O];var z=y<3&&x[0]!==G&&x[y-1]!==G?[]:Rr(x,G);if(y-=z.length,y<s)return bg(n,i,Fs,m.placeholder,r,x,z,r,r,s-y);var Z=this&&this!==Ze&&this instanceof m?d:n;return Gt(Z,this,x)}return m}function hg(n){return function(i,s,d){var m=lt(i);if(!on(i)){var y=ve(s,3);i=Rt(i),s=function(O){return y(m[O],O,m)}}var x=n(i,s,d);return x>-1?m[y?i[x]:x]:r}}function pg(n){return mr(function(i){var s=i.length,d=s,m=Bn.prototype.thru;for(n&&i.reverse();d--;){var y=i[d];if(typeof y!="function")throw new Tn(a);if(m&&!x&&Bs(y)=="wrapper")var x=new Bn([],!0)}for(d=x?d:s;++d<s;){y=i[d];var O=Bs(y),G=O=="wrapper"?lc(y):r;G&&dc(G[0])&&G[1]==(Y|k|X|D)&&!G[4].length&&G[9]==1?x=x[Bs(G[0])].apply(x,G[3]):x=y.length==1&&dc(y)?x[O]():x.thru(y)}return function(){var z=arguments,Z=z[0];if(x&&z.length==1&&Be(Z))return x.plant(Z).value();for(var $=0,re=s?i[$].apply(this,z):Z;++$<s;)re=i[$].call(this,re);return re}})}function Fs(n,i,s,d,m,y,x,O,G,z){var Z=i&Y,$=i&F,re=i&P,fe=i&(k|N),Ie=i&j,Me=re?r:Zu(n);function Ce(){for(var Xe=arguments.length,Ye=M(Xe),yn=Xe;yn--;)Ye[yn]=arguments[yn];if(fe)var qt=tu(Ce),In=Wx(Ye,qt);if(d&&(Ye=lg(Ye,d,m,fe)),y&&(Ye=ag(Ye,y,x,fe)),Xe-=In,fe&&Xe<z){var At=Rr(Ye,qt);return bg(n,i,Fs,Ce.placeholder,s,Ye,At,O,G,z-Xe)}var Zn=$?s:this,Ir=re?Zn[n]:n;return Xe=Ye.length,O?Ye=Uw(Ye,O):Ie&&Xe>1&&Ye.reverse(),Z&&G<Xe&&(Ye.length=G),this&&this!==Ze&&this instanceof Ce&&(Ir=Me||Zu(Ir)),Ir.apply(Zn,Ye)}return Ce}function gg(n,i){return function(s,d){return rw(s,n,i(d),{})}}function Ps(n,i){return function(s,d){var m;if(s===r&&d===r)return i;if(s!==r&&(m=s),d!==r){if(m===r)return d;typeof s=="string"||typeof d=="string"?(s=bn(s),d=bn(d)):(s=eg(s),d=eg(d)),m=n(s,d)}return m}}function ic(n){return mr(function(i){return i=pt(i,mn(ve())),We(function(s){var d=this;return n(i,function(m){return Gt(m,d,s)})})})}function Os(n,i){i=i===r?" ":bn(i);var s=i.length;if(s<2)return s?qa(i,n):i;var d=qa(i,gs(n/Ji(i)));return Yi(i)?Nr(Xn(d),0,n).join(""):d.slice(0,n)}function Tw(n,i,s,d){var m=i&F,y=Zu(n);function x(){for(var O=-1,G=arguments.length,z=-1,Z=d.length,$=M(Z+G),re=this&&this!==Ze&&this instanceof x?y:n;++z<Z;)$[z]=d[z];for(;G--;)$[z++]=arguments[++O];return Gt(re,m?s:this,$)}return x}function mg(n){return function(i,s,d){return d&&typeof d!="number"&&Qt(i,s,d)&&(s=d=r),i=yr(i),s===r?(s=i,i=0):s=yr(s),d=d===r?i<s?1:-1:yr(d),gw(i,s,d,n)}}function Ts(n){return function(i,s){return typeof i=="string"&&typeof s=="string"||(i=kn(i),s=kn(s)),n(i,s)}}function bg(n,i,s,d,m,y,x,O,G,z){var Z=i&k,$=Z?x:r,re=Z?r:x,fe=Z?y:r,Ie=Z?r:y;i|=Z?X:R,i&=~(Z?R:X),i&L||(i&=~(F|P));var Me=[n,i,m,fe,$,Ie,re,O,G,z],Ce=s.apply(r,Me);return dc(n)&&Og(Ce,Me),Ce.placeholder=d,Tg(Ce,n,i)}function uc(n){var i=Ot[n];return function(s,d){if(s=kn(s),d=d==null?0:Ht(De(d),292),d&&Tp(s)){var m=(tt(s)+"e").split("e"),y=i(m[0]+"e"+(+m[1]+d));return m=(tt(y)+"e").split("e"),+(m[0]+"e"+(+m[1]-d))}return i(s)}}var Bw=Qi&&1/us(new Qi([,-0]))[1]==Ee?function(n){return new Qi(n)}:Fc;function vg(n){return function(i){var s=zt(i);return s==ne?ka(i):s==Mt?jx(i):Vx(i,n(i))}}function gr(n,i,s,d,m,y,x,O){var G=i&P;if(!G&&typeof n!="function")throw new Tn(a);var z=d?d.length:0;if(z||(i&=~(X|R),d=m=r),x=x===r?x:Tt(De(x),0),O=O===r?O:De(O),z-=m?m.length:0,i&R){var Z=d,$=m;d=m=r}var re=G?r:lc(n),fe=[n,i,s,d,m,Z,$,y,x,O];if(re&&Yw(fe,re),n=fe[0],i=fe[1],s=fe[2],d=fe[3],m=fe[4],O=fe[9]=fe[9]===r?G?0:n.length:Tt(fe[9]-z,0),!O&&i&(k|N)&&(i&=~(k|N)),!i||i==F)var Ie=Pw(n,i,s);else i==k||i==N?Ie=Ow(n,i,O):(i==X||i==(F|X))&&!m.length?Ie=Tw(n,i,s,d):Ie=Fs.apply(r,fe);var Me=re?$p:Og;return Tg(Me(Ie,fe),n,i)}function yg(n,i,s,d){return n===r||zn(n,Ui[s])&&!rt.call(d,s)?i:n}function Ig(n,i,s,d,m,y){return gt(n)&>(i)&&(y.set(i,n),As(n,i,r,Ig,y),y.delete(i)),n}function _w(n){return ju(n)?r:n}function Cg(n,i,s,d,m,y){var x=s&S,O=n.length,G=i.length;if(O!=G&&!(x&&G>O))return!1;var z=y.get(n),Z=y.get(i);if(z&&Z)return z==i&&Z==n;var $=-1,re=!0,fe=s&A?new ci:r;for(y.set(n,i),y.set(i,n);++$<O;){var Ie=n[$],Me=i[$];if(d)var Ce=x?d(Me,Ie,$,i,n,y):d(Ie,Me,$,n,i,y);if(Ce!==r){if(Ce)continue;re=!1;break}if(fe){if(!Oa(i,function(Xe,Ye){if(!Ru(fe,Ye)&&(Ie===Xe||m(Ie,Xe,s,d,y)))return fe.push(Ye)})){re=!1;break}}else if(!(Ie===Me||m(Ie,Me,s,d,y))){re=!1;break}}return y.delete(n),y.delete(i),re}function Gw(n,i,s,d,m,y,x){switch(s){case he:if(n.byteLength!=i.byteLength||n.byteOffset!=i.byteOffset)return!1;n=n.buffer,i=i.buffer;case te:return!(n.byteLength!=i.byteLength||!y(new fs(n),new fs(i)));case Ve:case vt:case oe:return zn(+n,+i);case Lt:return n.name==i.name&&n.message==i.message;case Sn:case nt:return n==i+"";case ne:var O=ka;case Mt:var G=d&S;if(O||(O=us),n.size!=i.size&&!G)return!1;var z=x.get(n);if(z)return z==i;d|=A,x.set(n,i);var Z=Cg(O(n),O(i),d,m,y,x);return x.delete(n),Z;case Qe:if(Nu)return Nu.call(n)==Nu.call(i)}return!1}function Rw(n,i,s,d,m,y){var x=s&S,O=oc(n),G=O.length,z=oc(i),Z=z.length;if(G!=Z&&!x)return!1;for(var $=G;$--;){var re=O[$];if(!(x?re in i:rt.call(i,re)))return!1}var fe=y.get(n),Ie=y.get(i);if(fe&&Ie)return fe==i&&Ie==n;var Me=!0;y.set(n,i),y.set(i,n);for(var Ce=x;++$<G;){re=O[$];var Xe=n[re],Ye=i[re];if(d)var yn=x?d(Ye,Xe,re,i,n,y):d(Xe,Ye,re,n,i,y);if(!(yn===r?Xe===Ye||m(Xe,Ye,s,d,y):yn)){Me=!1;break}Ce||(Ce=re=="constructor")}if(Me&&!Ce){var qt=n.constructor,In=i.constructor;qt!=In&&"constructor"in n&&"constructor"in i&&!(typeof qt=="function"&&qt instanceof qt&&typeof In=="function"&&In instanceof In)&&(Me=!1)}return y.delete(n),y.delete(i),Me}function mr(n){return pc(Fg(n,r,Lg),n+"")}function oc(n){return Wp(n,Rt,cc)}function sc(n){return Wp(n,sn,xg)}var lc=bs?function(n){return bs.get(n)}:Fc;function Bs(n){for(var i=n.name+"",s=qi[i],d=rt.call(qi,i)?s.length:0;d--;){var m=s[d],y=m.func;if(y==null||y==n)return m.name}return i}function tu(n){var i=rt.call(v,"placeholder")?v:n;return i.placeholder}function ve(){var n=v.iteratee||Sc;return n=n===Sc?zp:n,arguments.length?n(arguments[0],arguments[1]):n}function _s(n,i){var s=n.__data__;return Xw(i)?s[typeof i=="string"?"string":"hash"]:s.map}function ac(n){for(var i=Rt(n),s=i.length;s--;){var d=i[s],m=n[d];i[s]=[d,m,Sg(m)]}return i}function hi(n,i){var s=Zx(n,i);return Hp(s)?s:r}function kw(n){var i=rt.call(n,li),s=n[li];try{n[li]=r;var d=!0}catch{}var m=as.call(n);return d&&(i?n[li]=s:delete n[li]),m}var cc=Da?function(n){return n==null?[]:(n=lt(n),_r(Da(n),function(i){return Pp.call(n,i)}))}:Pc,xg=Da?function(n){for(var i=[];n;)Gr(i,cc(n)),n=ds(n);return i}:Pc,zt=Ut;(Ma&&zt(new Ma(new ArrayBuffer(1)))!=he||Lu&&zt(new Lu)!=ne||Na&&zt(Na.resolve())!=yt||Qi&&zt(new Qi)!=Mt||Du&&zt(new Du)!=et)&&(zt=function(n){var i=Ut(n),s=i==Ge?n.constructor:r,d=s?pi(s):"";if(d)switch(d){case bA:return he;case vA:return ne;case yA:return yt;case IA:return Mt;case CA:return et}return i});function Lw(n,i,s){for(var d=-1,m=s.length;++d<m;){var y=s[d],x=y.size;switch(y.type){case"drop":n+=x;break;case"dropRight":i-=x;break;case"take":i=Ht(i,n+x);break;case"takeRight":n=Tt(n,i-x);break}}return{start:n,end:i}}function Dw(n){var i=n.match(ar);return i?i[1].split(ia):[]}function Ag(n,i,s){i=Mr(i,n);for(var d=-1,m=i.length,y=!1;++d<m;){var x=ir(i[d]);if(!(y=n!=null&&s(n,x)))break;n=n[x]}return y||++d!=m?y:(m=n==null?0:n.length,!!m&&Ns(m)&&br(x,m)&&(Be(n)||gi(n)))}function Mw(n){var i=n.length,s=new n.constructor(i);return i&&typeof n[0]=="string"&&rt.call(n,"index")&&(s.index=n.index,s.input=n.input),s}function wg(n){return typeof n.constructor=="function"&&!Yu(n)?$i(ds(n)):{}}function Nw(n,i,s){var d=n.constructor;switch(i){case te:return rc(n);case Ve:case vt:return new d(+n);case he:return xw(n,s);case Re:case ke:case _t:case tn:case Jt:case En:case nn:case Et:case hn:return og(n,s);case ne:return new d;case oe:case nt:return new d(n);case Sn:return Aw(n);case Mt:return new d;case Qe:return ww(n)}}function Vw(n,i){var s=i.length;if(!s)return n;var d=s-1;return i[d]=(s>1?"& ":"")+i[d],i=i.join(s>2?", ":" "),n.replace(Ou,`{
|
|
22
22
|
/* [wrapped with `+i+`] */
|
|
23
|
-
`)}function Ww(n){return Te(n)||gi(n)||!!(Op&&n&&n[Op])}function br(n,i){var s=typeof n;return i=i??Pe,!!i&&(s=="number"||s!="symbol"&&ha.test(n))&&n>-1&&n%1==0&&n<i}function Qt(n,i,s){if(!gt(s))return!1;var d=typeof i;return(d=="number"?on(s)&&br(i,s.length):d=="string"&&i in s)?zn(s[i],n):!1}function fc(n,i){if(Te(n))return!1;var s=typeof n;return s=="number"||s=="symbol"||s=="boolean"||n==null||yn(n)?!0:ta.test(n)||!ni.test(n)||i!=null&&n in lt(i)}function Xw(n){var i=typeof n;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?n!=="__proto__":n===null}function dc(n){var i=_s(n),s=v[i];if(typeof s!="function"||!(i in We.prototype))return!1;if(n===s)return!0;var d=lc(s);return!!d&&n===d[0]}function Hw(n){return!!Sp&&Sp in n}var zw=ss?vr:Oc;function Yu(n){var i=n&&n.constructor,s=typeof i=="function"&&i.prototype||Ui;return n===s}function Sg(n){return n===n&&!gt(n)}function Eg(n,i){return function(s){return s==null?!1:s[n]===i&&(i!==r||n in lt(s))}}function Zw(n){var i=Ds(n,function(d){return s.size===h&&s.clear(),d}),s=i.cache;return i}function Yw(n,i){var s=n[1],d=i[1],m=s|d,y=m<(F|P|j),x=d==j&&s==k||d==j&&s==N&&n[7].length<=i[8]||d==(j|N)&&i[7].length<=i[8]&&s==k;if(!(y||x))return n;d&F&&(n[2]=i[2],m|=s&F?0:L);var O=i[3];if(O){var G=n[3];n[3]=G?lg(G,O,i[4]):O,n[4]=G?Rr(n[3],p):i[4]}return O=i[5],O&&(G=n[5],n[5]=G?ag(G,O,i[6]):O,n[6]=G?Rr(n[5],p):i[6]),O=i[7],O&&(n[7]=O),d&j&&(n[8]=n[8]==null?i[8]:Wt(n[8],i[8])),n[9]==null&&(n[9]=i[9]),n[0]=i[0],n[1]=m,n}function Jw(n){var i=[];if(n!=null)for(var s in lt(n))i.push(s);return i}function jw(n){return as.call(n)}function Fg(n,i,s){return i=_t(i===r?n.length-1:i,0),function(){for(var d=arguments,m=-1,y=_t(d.length-i,0),x=M(y);++m<y;)x[m]=d[i+m];m=-1;for(var O=M(i+1);++m<i;)O[m]=d[m];return O[i]=s(x),Rt(n,this,O)}}function Pg(n,i){return i.length<2?n:di(n,Gn(i,0,-1))}function Uw(n,i){for(var s=n.length,d=Wt(i.length,s),m=un(n);d--;){var y=i[d];n[d]=br(y,s)?m[y]:r}return n}function hc(n,i){if(!(i==="constructor"&&typeof n[i]=="function")&&i!="__proto__")return n[i]}var Og=_g($p),Ju=cA||function(n,i){return Ze.setTimeout(n,i)},pc=_g(vw);function Tg(n,i,s){var d=i+"";return pc(n,Vw(d,Qw(Dw(d),s)))}function _g(n){var i=0,s=0;return function(){var d=pA(),m=he-(d-s);if(s=d,m>0){if(++i>=K)return arguments[0]}else i=0;return n.apply(r,arguments)}}function Gs(n,i){var s=-1,d=n.length,m=d-1;for(i=i===r?d:i;++s<i;){var y=Qa(s,m),x=n[y];n[y]=n[s],n[s]=x}return n.length=i,n}var Bg=Zw(function(n){var i=[];return n.charCodeAt(0)===46&&i.push(""),n.replace(na,function(s,d,m,y){i.push(m?y.replace(sa,"$1"):d||s)}),i});function ir(n){if(typeof n=="string"||yn(n))return n;var i=n+"";return i=="0"&&1/n==-we?"-0":i}function pi(n){if(n!=null){try{return ls.call(n)}catch{}try{return n+""}catch{}}return""}function Qw(n,i){return On(ze,function(s){var d="_."+s[0];i&s[1]&&!rs(n,d)&&n.push(d)}),n.sort()}function Gg(n){if(n instanceof We)return n.clone();var i=new _n(n.__wrapped__,n.__chain__);return i.__actions__=un(n.__actions__),i.__index__=n.__index__,i.__values__=n.__values__,i}function qw(n,i,s){(s?Qt(n,i,s):i===r)?i=1:i=_t(ke(i),0);var d=n==null?0:n.length;if(!d||i<1)return[];for(var m=0,y=0,x=M(gs(d/i));m<d;)x[y++]=Gn(n,m,m+=i);return x}function $w(n){for(var i=-1,s=n==null?0:n.length,d=0,m=[];++i<s;){var y=n[i];y&&(m[d++]=y)}return m}function Kw(){var n=arguments.length;if(!n)return[];for(var i=M(n-1),s=arguments[0],d=n;d--;)i[d-1]=arguments[d];return Gr(Te(s)?un(s):[s],Mt(i,1))}var eS=Me(function(n,i){return At(n)?Wu(n,Mt(i,1,At,!0)):[]}),tS=Me(function(n,i){var s=Rn(i);return At(s)&&(s=r),At(n)?Wu(n,Mt(i,1,At,!0),Ie(s,2)):[]}),nS=Me(function(n,i){var s=Rn(i);return At(s)&&(s=r),At(n)?Wu(n,Mt(i,1,At,!0),r,s):[]});function rS(n,i,s){var d=n==null?0:n.length;return d?(i=s||i===r?1:ke(i),Gn(n,i<0?0:i,d)):[]}function iS(n,i,s){var d=n==null?0:n.length;return d?(i=s||i===r?1:ke(i),i=d-i,Gn(n,0,i<0?0:i)):[]}function uS(n,i){return n&&n.length?Ss(n,Ie(i,3),!0,!0):[]}function oS(n,i){return n&&n.length?Ss(n,Ie(i,3),!0):[]}function sS(n,i,s,d){var m=n==null?0:n.length;return m?(s&&typeof s!="number"&&Qt(n,i,s)&&(s=0,d=m),KA(n,i,s,d)):[]}function Rg(n,i,s){var d=n==null?0:n.length;if(!d)return-1;var m=s==null?0:ke(s);return m<0&&(m=_t(d+m,0)),is(n,Ie(i,3),m)}function kg(n,i,s){var d=n==null?0:n.length;if(!d)return-1;var m=d-1;return s!==r&&(m=ke(s),m=s<0?_t(d+m,0):Wt(m,d-1)),is(n,Ie(i,3),m,!0)}function Lg(n){var i=n==null?0:n.length;return i?Mt(n,1):[]}function lS(n){var i=n==null?0:n.length;return i?Mt(n,we):[]}function aS(n,i){var s=n==null?0:n.length;return s?(i=i===r?1:ke(i),Mt(n,i)):[]}function cS(n){for(var i=-1,s=n==null?0:n.length,d={};++i<s;){var m=n[i];d[m[0]]=m[1]}return d}function Dg(n){return n&&n.length?n[0]:r}function fS(n,i,s){var d=n==null?0:n.length;if(!d)return-1;var m=s==null?0:ke(s);return m<0&&(m=_t(d+m,0)),Zi(n,i,m)}function dS(n){var i=n==null?0:n.length;return i?Gn(n,0,-1):[]}var hS=Me(function(n){var i=pt(n,tc);return i.length&&i[0]===n[0]?Za(i):[]}),pS=Me(function(n){var i=Rn(n),s=pt(n,tc);return i===Rn(s)?i=r:s.pop(),s.length&&s[0]===n[0]?Za(s,Ie(i,2)):[]}),gS=Me(function(n){var i=Rn(n),s=pt(n,tc);return i=typeof i=="function"?i:r,i&&s.pop(),s.length&&s[0]===n[0]?Za(s,r,i):[]});function mS(n,i){return n==null?"":dA.call(n,i)}function Rn(n){var i=n==null?0:n.length;return i?n[i-1]:r}function bS(n,i,s){var d=n==null?0:n.length;if(!d)return-1;var m=d;return s!==r&&(m=ke(s),m=m<0?_t(d+m,0):Wt(m,d-1)),i===i?Qx(n,i,m):is(n,bp,m,!0)}function vS(n,i){return n&&n.length?jp(n,ke(i)):r}var yS=Me(Mg);function Mg(n,i){return n&&n.length&&i&&i.length?Ua(n,i):n}function IS(n,i,s){return n&&n.length&&i&&i.length?Ua(n,i,Ie(s,2)):n}function CS(n,i,s){return n&&n.length&&i&&i.length?Ua(n,i,r,s):n}var xS=mr(function(n,i){var s=n==null?0:n.length,d=Wa(n,i);return qp(n,pt(i,function(m){return br(m,s)?+m:m}).sort(sg)),d});function AS(n,i){var s=[];if(!(n&&n.length))return s;var d=-1,m=[],y=n.length;for(i=Ie(i,3);++d<y;){var x=n[d];i(x,d,n)&&(s.push(x),m.push(d))}return qp(n,m),s}function gc(n){return n==null?n:mA.call(n)}function wS(n,i,s){var d=n==null?0:n.length;return d?(s&&typeof s!="number"&&Qt(n,i,s)?(i=0,s=d):(i=i==null?0:ke(i),s=s===r?d:ke(s)),Gn(n,i,s)):[]}function SS(n,i){return ws(n,i)}function ES(n,i,s){return $a(n,i,Ie(s,2))}function FS(n,i){var s=n==null?0:n.length;if(s){var d=ws(n,i);if(d<s&&zn(n[d],i))return d}return-1}function PS(n,i){return ws(n,i,!0)}function OS(n,i,s){return $a(n,i,Ie(s,2),!0)}function TS(n,i){var s=n==null?0:n.length;if(s){var d=ws(n,i,!0)-1;if(zn(n[d],i))return d}return-1}function _S(n){return n&&n.length?Kp(n):[]}function BS(n,i){return n&&n.length?Kp(n,Ie(i,2)):[]}function GS(n){var i=n==null?0:n.length;return i?Gn(n,1,i):[]}function RS(n,i,s){return n&&n.length?(i=s||i===r?1:ke(i),Gn(n,0,i<0?0:i)):[]}function kS(n,i,s){var d=n==null?0:n.length;return d?(i=s||i===r?1:ke(i),i=d-i,Gn(n,i<0?0:i,d)):[]}function LS(n,i){return n&&n.length?Ss(n,Ie(i,3),!1,!0):[]}function DS(n,i){return n&&n.length?Ss(n,Ie(i,3)):[]}var MS=Me(function(n){return Dr(Mt(n,1,At,!0))}),NS=Me(function(n){var i=Rn(n);return At(i)&&(i=r),Dr(Mt(n,1,At,!0),Ie(i,2))}),VS=Me(function(n){var i=Rn(n);return i=typeof i=="function"?i:r,Dr(Mt(n,1,At,!0),r,i)});function WS(n){return n&&n.length?Dr(n):[]}function XS(n,i){return n&&n.length?Dr(n,Ie(i,2)):[]}function HS(n,i){return i=typeof i=="function"?i:r,n&&n.length?Dr(n,r,i):[]}function mc(n){if(!(n&&n.length))return[];var i=0;return n=Br(n,function(s){if(At(s))return i=_t(s.length,i),!0}),Ga(i,function(s){return pt(n,Ta(s))})}function Ng(n,i){if(!(n&&n.length))return[];var s=mc(n);return i==null?s:pt(s,function(d){return Rt(i,r,d)})}var zS=Me(function(n,i){return At(n)?Wu(n,i):[]}),ZS=Me(function(n){return ec(Br(n,At))}),YS=Me(function(n){var i=Rn(n);return At(i)&&(i=r),ec(Br(n,At),Ie(i,2))}),JS=Me(function(n){var i=Rn(n);return i=typeof i=="function"?i:r,ec(Br(n,At),r,i)}),jS=Me(mc);function US(n,i){return rg(n||[],i||[],Vu)}function QS(n,i){return rg(n||[],i||[],zu)}var qS=Me(function(n){var i=n.length,s=i>1?n[i-1]:r;return s=typeof s=="function"?(n.pop(),s):r,Ng(n,s)});function Vg(n){var i=v(n);return i.__chain__=!0,i}function $S(n,i){return i(n),n}function Rs(n,i){return i(n)}var KS=mr(function(n){var i=n.length,s=i?n[0]:0,d=this.__wrapped__,m=function(y){return Wa(y,n)};return i>1||this.__actions__.length||!(d instanceof We)||!br(s)?this.thru(m):(d=d.slice(s,+s+(i?1:0)),d.__actions__.push({func:Rs,args:[m],thisArg:r}),new _n(d,this.__chain__).thru(function(y){return i&&!y.length&&y.push(r),y}))});function eE(){return Vg(this)}function tE(){return new _n(this.value(),this.__chain__)}function nE(){this.__values__===r&&(this.__values__=em(this.value()));var n=this.__index__>=this.__values__.length,i=n?r:this.__values__[this.__index__++];return{done:n,value:i}}function rE(){return this}function iE(n){for(var i,s=this;s instanceof ys;){var d=Gg(s);d.__index__=0,d.__values__=r,i?m.__wrapped__=d:i=d;var m=d;s=s.__wrapped__}return m.__wrapped__=n,i}function uE(){var n=this.__wrapped__;if(n instanceof We){var i=n;return this.__actions__.length&&(i=new We(this)),i=i.reverse(),i.__actions__.push({func:Rs,args:[gc],thisArg:r}),new _n(i,this.__chain__)}return this.thru(gc)}function oE(){return ng(this.__wrapped__,this.__actions__)}var sE=Es(function(n,i,s){et.call(n,s)?++n[s]:pr(n,s,1)});function lE(n,i,s){var d=Te(n)?gp:$A;return s&&Qt(n,i,s)&&(i=r),d(n,Ie(i,3))}function aE(n,i){var s=Te(n)?Br:Np;return s(n,Ie(i,3))}var cE=hg(Rg),fE=hg(kg);function dE(n,i){return Mt(ks(n,i),1)}function hE(n,i){return Mt(ks(n,i),we)}function pE(n,i,s){return s=s===r?1:ke(s),Mt(ks(n,i),s)}function Wg(n,i){var s=Te(n)?On:Lr;return s(n,Ie(i,3))}function Xg(n,i){var s=Te(n)?Gx:Mp;return s(n,Ie(i,3))}var gE=Es(function(n,i,s){et.call(n,s)?n[s].push(i):pr(n,s,[i])});function mE(n,i,s,d){n=on(n)?n:ru(n),s=s&&!d?ke(s):0;var m=n.length;return s<0&&(s=_t(m+s,0)),Vs(n)?s<=m&&n.indexOf(i,s)>-1:!!m&&Zi(n,i,s)>-1}var bE=Me(function(n,i,s){var d=-1,m=typeof i=="function",y=on(n)?M(n.length):[];return Lr(n,function(x){y[++d]=m?Rt(i,x,s):Xu(x,i,s)}),y}),vE=Es(function(n,i,s){pr(n,s,i)});function ks(n,i){var s=Te(n)?pt:Zp;return s(n,Ie(i,3))}function yE(n,i,s,d){return n==null?[]:(Te(i)||(i=i==null?[]:[i]),s=d?r:s,Te(s)||(s=s==null?[]:[s]),Up(n,i,s))}var IE=Es(function(n,i,s){n[s?0:1].push(i)},function(){return[[],[]]});function CE(n,i,s){var d=Te(n)?Pa:yp,m=arguments.length<3;return d(n,Ie(i,4),s,m,Lr)}function xE(n,i,s){var d=Te(n)?Rx:yp,m=arguments.length<3;return d(n,Ie(i,4),s,m,Mp)}function AE(n,i){var s=Te(n)?Br:Np;return s(n,Ms(Ie(i,3)))}function wE(n){var i=Te(n)?Rp:mw;return i(n)}function SE(n,i,s){(s?Qt(n,i,s):i===r)?i=1:i=ke(i);var d=Te(n)?JA:bw;return d(n,i)}function EE(n){var i=Te(n)?jA:yw;return i(n)}function FE(n){if(n==null)return 0;if(on(n))return Vs(n)?Ji(n):n.length;var i=Xt(n);return i==Ct||i==Dt?n.size:Ja(n).length}function PE(n,i,s){var d=Te(n)?Oa:Iw;return s&&Qt(n,i,s)&&(i=r),d(n,Ie(i,3))}var OE=Me(function(n,i){if(n==null)return[];var s=i.length;return s>1&&Qt(n,i[0],i[1])?i=[]:s>2&&Qt(i[0],i[1],i[2])&&(i=[i[0]]),Up(n,Mt(i,1),[])}),Ls=aA||function(){return Ze.Date.now()};function TE(n,i){if(typeof i!="function")throw new Tn(a);return n=ke(n),function(){if(--n<1)return i.apply(this,arguments)}}function Hg(n,i,s){return i=s?r:i,i=n&&i==null?n.length:i,gr(n,j,r,r,r,r,i)}function zg(n,i){var s;if(typeof i!="function")throw new Tn(a);return n=ke(n),function(){return--n>0&&(s=i.apply(this,arguments)),n<=1&&(i=r),s}}var bc=Me(function(n,i,s){var d=F;if(s.length){var m=Rr(s,tu(bc));d|=H}return gr(n,d,i,s,m)}),Zg=Me(function(n,i,s){var d=F|P;if(s.length){var m=Rr(s,tu(Zg));d|=H}return gr(i,d,n,s,m)});function Yg(n,i,s){i=s?r:i;var d=gr(n,k,r,r,r,r,r,i);return d.placeholder=Yg.placeholder,d}function Jg(n,i,s){i=s?r:i;var d=gr(n,V,r,r,r,r,r,i);return d.placeholder=Jg.placeholder,d}function jg(n,i,s){var d,m,y,x,O,G,z=0,Y=!1,q=!1,re=!0;if(typeof n!="function")throw new Tn(a);i=kn(i)||0,gt(s)&&(Y=!!s.leading,q="maxWait"in s,y=q?_t(kn(s.maxWait)||0,i):y,re="trailing"in s?!!s.trailing:re);function fe(wt){var Zn=d,Ir=m;return d=m=r,z=wt,x=n.apply(Ir,Zn),x}function Ce(wt){return z=wt,O=Ju(Ne,i),Y?fe(wt):x}function De(wt){var Zn=wt-G,Ir=wt-z,hm=i-Zn;return q?Wt(hm,y-Ir):hm}function xe(wt){var Zn=wt-G,Ir=wt-z;return G===r||Zn>=i||Zn<0||q&&Ir>=y}function Ne(){var wt=Ls();if(xe(wt))return Ye(wt);O=Ju(Ne,De(wt))}function Ye(wt){return O=r,re&&d?fe(wt):(d=m=r,x)}function In(){O!==r&&ig(O),z=0,d=G=m=O=r}function qt(){return O===r?x:Ye(Ls())}function Cn(){var wt=Ls(),Zn=xe(wt);if(d=arguments,m=this,G=wt,Zn){if(O===r)return Ce(G);if(q)return ig(O),O=Ju(Ne,i),fe(G)}return O===r&&(O=Ju(Ne,i)),x}return Cn.cancel=In,Cn.flush=qt,Cn}var _E=Me(function(n,i){return Dp(n,1,i)}),BE=Me(function(n,i,s){return Dp(n,kn(i)||0,s)});function GE(n){return gr(n,Z)}function Ds(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new Tn(a);var s=function(){var d=arguments,m=i?i.apply(this,d):d[0],y=s.cache;if(y.has(m))return y.get(m);var x=n.apply(this,d);return s.cache=y.set(m,x)||y,x};return s.cache=new(Ds.Cache||hr),s}Ds.Cache=hr;function Ms(n){if(typeof n!="function")throw new Tn(a);return function(){var i=arguments;switch(i.length){case 0:return!n.call(this);case 1:return!n.call(this,i[0]);case 2:return!n.call(this,i[0],i[1]);case 3:return!n.call(this,i[0],i[1],i[2])}return!n.apply(this,i)}}function RE(n){return zg(2,n)}var kE=Cw(function(n,i){i=i.length==1&&Te(i[0])?pt(i[0],bn(Ie())):pt(Mt(i,1),bn(Ie()));var s=i.length;return Me(function(d){for(var m=-1,y=Wt(d.length,s);++m<y;)d[m]=i[m].call(this,d[m]);return Rt(n,this,d)})}),vc=Me(function(n,i){var s=Rr(i,tu(vc));return gr(n,H,r,i,s)}),Ug=Me(function(n,i){var s=Rr(i,tu(Ug));return gr(n,R,r,i,s)}),LE=mr(function(n,i){return gr(n,N,r,r,r,i)});function DE(n,i){if(typeof n!="function")throw new Tn(a);return i=i===r?i:ke(i),Me(n,i)}function ME(n,i){if(typeof n!="function")throw new Tn(a);return i=i==null?0:_t(ke(i),0),Me(function(s){var d=s[i],m=Nr(s,0,i);return d&&Gr(m,d),Rt(n,this,m)})}function NE(n,i,s){var d=!0,m=!0;if(typeof n!="function")throw new Tn(a);return gt(s)&&(d="leading"in s?!!s.leading:d,m="trailing"in s?!!s.trailing:m),jg(n,i,{leading:d,maxWait:i,trailing:m})}function VE(n){return Hg(n,1)}function WE(n,i){return vc(nc(i),n)}function XE(){if(!arguments.length)return[];var n=arguments[0];return Te(n)?n:[n]}function HE(n){return Bn(n,b)}function zE(n,i){return i=typeof i=="function"?i:r,Bn(n,b,i)}function ZE(n){return Bn(n,g|b)}function YE(n,i){return i=typeof i=="function"?i:r,Bn(n,g|b,i)}function JE(n,i){return i==null||Lp(n,i,kt(i))}function zn(n,i){return n===i||n!==n&&i!==i}var jE=Ts(za),UE=Ts(function(n,i){return n>=i}),gi=Xp(function(){return arguments}())?Xp:function(n){return It(n)&&et.call(n,"callee")&&!Pp.call(n,"callee")},Te=M.isArray,QE=jt?bn(jt):iw;function on(n){return n!=null&&Ns(n.length)&&!vr(n)}function At(n){return It(n)&&on(n)}function qE(n){return n===!0||n===!1||It(n)&&Ut(n)==Ve}var Vr=fA||Oc,$E=Wn?bn(Wn):uw;function KE(n){return It(n)&&n.nodeType===1&&!ju(n)}function e2(n){if(n==null)return!0;if(on(n)&&(Te(n)||typeof n=="string"||typeof n.splice=="function"||Vr(n)||nu(n)||gi(n)))return!n.length;var i=Xt(n);if(i==Ct||i==Dt)return!n.size;if(Yu(n))return!Ja(n).length;for(var s in n)if(et.call(n,s))return!1;return!0}function t2(n,i){return Hu(n,i)}function n2(n,i,s){s=typeof s=="function"?s:r;var d=s?s(n,i):r;return d===r?Hu(n,i,r,s):!!d}function yc(n){if(!It(n))return!1;var i=Ut(n);return i==Bt||i==Zt||typeof n.message=="string"&&typeof n.name=="string"&&!ju(n)}function r2(n){return typeof n=="number"&&Tp(n)}function vr(n){if(!gt(n))return!1;var i=Ut(n);return i==Yt||i==hn||i==Et||i==vt}function Qg(n){return typeof n=="number"&&n==ke(n)}function Ns(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=Pe}function gt(n){var i=typeof n;return n!=null&&(i=="object"||i=="function")}function It(n){return n!=null&&typeof n=="object"}var qg=Pn?bn(Pn):sw;function i2(n,i){return n===i||Ya(n,i,ac(i))}function u2(n,i,s){return s=typeof s=="function"?s:r,Ya(n,i,ac(i),s)}function o2(n){return $g(n)&&n!=+n}function s2(n){if(zw(n))throw new Ee(l);return Hp(n)}function l2(n){return n===null}function a2(n){return n==null}function $g(n){return typeof n=="number"||It(n)&&Ut(n)==ne}function ju(n){if(!It(n)||Ut(n)!=de)return!1;var i=ds(n);if(i===null)return!0;var s=et.call(i,"constructor")&&i.constructor;return typeof s=="function"&&s instanceof s&&ls.call(s)==uA}var Ic=tr?bn(tr):lw;function c2(n){return Qg(n)&&n>=-Pe&&n<=Pe}var Kg=Gu?bn(Gu):aw;function Vs(n){return typeof n=="string"||!Te(n)&&It(n)&&Ut(n)==Nn}function yn(n){return typeof n=="symbol"||It(n)&&Ut(n)==nt}var nu=si?bn(si):cw;function f2(n){return n===r}function d2(n){return It(n)&&Xt(n)==$e}function h2(n){return It(n)&&Ut(n)==D}var p2=Ts(ja),g2=Ts(function(n,i){return n<=i});function em(n){if(!n)return[];if(on(n))return Vs(n)?Xn(n):un(n);if(ku&&n[ku])return Jx(n[ku]());var i=Xt(n),s=i==Ct?ka:i==Dt?us:ru;return s(n)}function yr(n){if(!n)return n===0?n:0;if(n=kn(n),n===we||n===-we){var i=n<0?-1:1;return i*tt}return n===n?n:0}function ke(n){var i=yr(n),s=i%1;return i===i?s?i-s:i:0}function tm(n){return n?fi(ke(n),0,He):0}function kn(n){if(typeof n=="number")return n;if(yn(n))return E;if(gt(n)){var i=typeof n.valueOf=="function"?n.valueOf():n;n=gt(i)?i+"":i}if(typeof n!="string")return n===0?n:+n;n=Ip(n);var s=ca.test(n);return s||da.test(n)?Oe(n.slice(2),s?2:8):aa.test(n)?E:+n}function nm(n){return rr(n,sn(n))}function m2(n){return n?fi(ke(n),-Pe,Pe):n===0?n:0}function Ke(n){return n==null?"":vn(n)}var b2=Ki(function(n,i){if(Yu(i)||on(i)){rr(i,kt(i),n);return}for(var s in i)et.call(i,s)&&Vu(n,s,i[s])}),rm=Ki(function(n,i){rr(i,sn(i),n)}),Ws=Ki(function(n,i,s,d){rr(i,sn(i),n,d)}),v2=Ki(function(n,i,s,d){rr(i,kt(i),n,d)}),y2=mr(Wa);function I2(n,i){var s=$i(n);return i==null?s:kp(s,i)}var C2=Me(function(n,i){n=lt(n);var s=-1,d=i.length,m=d>2?i[2]:r;for(m&&Qt(i[0],i[1],m)&&(d=1);++s<d;)for(var y=i[s],x=sn(y),O=-1,G=x.length;++O<G;){var z=x[O],Y=n[z];(Y===r||zn(Y,Ui[z])&&!et.call(n,z))&&(n[z]=y[z])}return n}),x2=Me(function(n){return n.push(r,Ig),Rt(im,r,n)});function A2(n,i){return mp(n,Ie(i,3),nr)}function w2(n,i){return mp(n,Ie(i,3),Ha)}function S2(n,i){return n==null?n:Xa(n,Ie(i,3),sn)}function E2(n,i){return n==null?n:Vp(n,Ie(i,3),sn)}function F2(n,i){return n&&nr(n,Ie(i,3))}function P2(n,i){return n&&Ha(n,Ie(i,3))}function O2(n){return n==null?[]:xs(n,kt(n))}function T2(n){return n==null?[]:xs(n,sn(n))}function Cc(n,i,s){var d=n==null?r:di(n,i);return d===r?s:d}function _2(n,i){return n!=null&&Ag(n,i,ew)}function xc(n,i){return n!=null&&Ag(n,i,tw)}var B2=gg(function(n,i,s){i!=null&&typeof i.toString!="function"&&(i=as.call(i)),n[i]=s},wc(ln)),G2=gg(function(n,i,s){i!=null&&typeof i.toString!="function"&&(i=as.call(i)),et.call(n,i)?n[i].push(s):n[i]=[s]},Ie),R2=Me(Xu);function kt(n){return on(n)?Gp(n):Ja(n)}function sn(n){return on(n)?Gp(n,!0):fw(n)}function k2(n,i){var s={};return i=Ie(i,3),nr(n,function(d,m,y){pr(s,i(d,m,y),d)}),s}function L2(n,i){var s={};return i=Ie(i,3),nr(n,function(d,m,y){pr(s,m,i(d,m,y))}),s}var D2=Ki(function(n,i,s){As(n,i,s)}),im=Ki(function(n,i,s,d){As(n,i,s,d)}),M2=mr(function(n,i){var s={};if(n==null)return s;var d=!1;i=pt(i,function(y){return y=Mr(y,n),d||(d=y.length>1),y}),rr(n,sc(n),s),d&&(s=Bn(s,g|I|b,Bw));for(var m=i.length;m--;)Ka(s,i[m]);return s});function N2(n,i){return um(n,Ms(Ie(i)))}var V2=mr(function(n,i){return n==null?{}:hw(n,i)});function um(n,i){if(n==null)return{};var s=pt(sc(n),function(d){return[d]});return i=Ie(i),Qp(n,s,function(d,m){return i(d,m[0])})}function W2(n,i,s){i=Mr(i,n);var d=-1,m=i.length;for(m||(m=1,n=r);++d<m;){var y=n==null?r:n[ir(i[d])];y===r&&(d=m,y=s),n=vr(y)?y.call(n):y}return n}function X2(n,i,s){return n==null?n:zu(n,i,s)}function H2(n,i,s,d){return d=typeof d=="function"?d:r,n==null?n:zu(n,i,s,d)}var om=vg(kt),sm=vg(sn);function z2(n,i,s){var d=Te(n),m=d||Vr(n)||nu(n);if(i=Ie(i,4),s==null){var y=n&&n.constructor;m?s=d?new y:[]:gt(n)?s=vr(y)?$i(ds(n)):{}:s={}}return(m?On:nr)(n,function(x,O,G){return i(s,x,O,G)}),s}function Z2(n,i){return n==null?!0:Ka(n,i)}function Y2(n,i,s){return n==null?n:tg(n,i,nc(s))}function J2(n,i,s,d){return d=typeof d=="function"?d:r,n==null?n:tg(n,i,nc(s),d)}function ru(n){return n==null?[]:Ra(n,kt(n))}function j2(n){return n==null?[]:Ra(n,sn(n))}function U2(n,i,s){return s===r&&(s=i,i=r),s!==r&&(s=kn(s),s=s===s?s:0),i!==r&&(i=kn(i),i=i===i?i:0),fi(kn(n),i,s)}function Q2(n,i,s){return i=yr(i),s===r?(s=i,i=0):s=yr(s),n=kn(n),nw(n,i,s)}function q2(n,i,s){if(s&&typeof s!="boolean"&&Qt(n,i,s)&&(i=s=r),s===r&&(typeof i=="boolean"?(s=i,i=r):typeof n=="boolean"&&(s=n,n=r)),n===r&&i===r?(n=0,i=1):(n=yr(n),i===r?(i=n,n=0):i=yr(i)),n>i){var d=n;n=i,i=d}if(s||n%1||i%1){var m=_p();return Wt(n+m*(i-n+ot("1e-"+((m+"").length-1))),i)}return Qa(n,i)}var $2=eu(function(n,i,s){return i=i.toLowerCase(),n+(s?lm(i):i)});function lm(n){return Ac(Ke(n).toLowerCase())}function am(n){return n=Ke(n),n&&n.replace(cr,Xx).replace(Sa,"")}function K2(n,i,s){n=Ke(n),i=vn(i);var d=n.length;s=s===r?d:fi(ke(s),0,d);var m=s;return s-=i.length,s>=0&&n.slice(s,m)==i}function eF(n){return n=Ke(n),n&&ti.test(n)?n.replace(Lo,Hx):n}function tF(n){return n=Ke(n),n&&ra.test(n)?n.replace(Fu,"\\$&"):n}var nF=eu(function(n,i,s){return n+(s?"-":"")+i.toLowerCase()}),rF=eu(function(n,i,s){return n+(s?" ":"")+i.toLowerCase()}),iF=dg("toLowerCase");function uF(n,i,s){n=Ke(n),i=ke(i);var d=i?Ji(n):0;if(!i||d>=i)return n;var m=(i-d)/2;return Os(ms(m),s)+n+Os(gs(m),s)}function oF(n,i,s){n=Ke(n),i=ke(i);var d=i?Ji(n):0;return i&&d<i?n+Os(i-d,s):n}function sF(n,i,s){n=Ke(n),i=ke(i);var d=i?Ji(n):0;return i&&d<i?Os(i-d,s)+n:n}function lF(n,i,s){return s||i==null?i=0:i&&(i=+i),gA(Ke(n).replace(Pu,""),i||0)}function aF(n,i,s){return(s?Qt(n,i,s):i===r)?i=1:i=ke(i),qa(Ke(n),i)}function cF(){var n=arguments,i=Ke(n[0]);return n.length<3?i:i.replace(n[1],n[2])}var fF=eu(function(n,i,s){return n+(s?"_":"")+i.toLowerCase()});function dF(n,i,s){return s&&typeof s!="number"&&Qt(n,i,s)&&(i=s=r),s=s===r?He:s>>>0,s?(n=Ke(n),n&&(typeof i=="string"||i!=null&&!Ic(i))&&(i=vn(i),!i&&Yi(n))?Nr(Xn(n),0,s):n.split(i,s)):[]}var hF=eu(function(n,i,s){return n+(s?" ":"")+Ac(i)});function pF(n,i,s){return n=Ke(n),s=s==null?0:fi(ke(s),0,n.length),i=vn(i),n.slice(s,s+i.length)==i}function gF(n,i,s){var d=v.templateSettings;s&&Qt(n,i,s)&&(i=r),n=Ke(n),i=Ws({},i,d,yg);var m=Ws({},i.imports,d.imports,yg),y=kt(m),x=Ra(m,y),O,G,z=0,Y=i.interpolate||Mi,q="__p += '",re=La((i.escape||Mi).source+"|"+Y.source+"|"+(Y===Di?la:Mi).source+"|"+(i.evaluate||Mi).source+"|$","g"),fe="//# sourceURL="+(et.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ea+"]")+`
|
|
24
|
-
`;n.replace(re,function(
|
|
25
|
-
__e(`+
|
|
26
|
-
'`),qt&&(G=!0
|
|
23
|
+
`)}function Ww(n){return Be(n)||gi(n)||!!(Op&&n&&n[Op])}function br(n,i){var s=typeof n;return i=i??Oe,!!i&&(s=="number"||s!="symbol"&&ha.test(n))&&n>-1&&n%1==0&&n<i}function Qt(n,i,s){if(!gt(s))return!1;var d=typeof i;return(d=="number"?on(s)&&br(i,s.length):d=="string"&&i in s)?zn(s[i],n):!1}function fc(n,i){if(Be(n))return!1;var s=typeof n;return s=="number"||s=="symbol"||s=="boolean"||n==null||vn(n)?!0:ta.test(n)||!ni.test(n)||i!=null&&n in lt(i)}function Xw(n){var i=typeof n;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?n!=="__proto__":n===null}function dc(n){var i=Bs(n),s=v[i];if(typeof s!="function"||!(i in He.prototype))return!1;if(n===s)return!0;var d=lc(s);return!!d&&n===d[0]}function Hw(n){return!!Sp&&Sp in n}var zw=ss?vr:Oc;function Yu(n){var i=n&&n.constructor,s=typeof i=="function"&&i.prototype||Ui;return n===s}function Sg(n){return n===n&&!gt(n)}function Eg(n,i){return function(s){return s==null?!1:s[n]===i&&(i!==r||n in lt(s))}}function Zw(n){var i=Ds(n,function(d){return s.size===h&&s.clear(),d}),s=i.cache;return i}function Yw(n,i){var s=n[1],d=i[1],m=s|d,y=m<(F|P|Y),x=d==Y&&s==k||d==Y&&s==D&&n[7].length<=i[8]||d==(Y|D)&&i[7].length<=i[8]&&s==k;if(!(y||x))return n;d&F&&(n[2]=i[2],m|=s&F?0:L);var O=i[3];if(O){var G=n[3];n[3]=G?lg(G,O,i[4]):O,n[4]=G?Rr(n[3],p):i[4]}return O=i[5],O&&(G=n[5],n[5]=G?ag(G,O,i[6]):O,n[6]=G?Rr(n[5],p):i[6]),O=i[7],O&&(n[7]=O),d&Y&&(n[8]=n[8]==null?i[8]:Ht(n[8],i[8])),n[9]==null&&(n[9]=i[9]),n[0]=i[0],n[1]=m,n}function Jw(n){var i=[];if(n!=null)for(var s in lt(n))i.push(s);return i}function jw(n){return as.call(n)}function Fg(n,i,s){return i=Tt(i===r?n.length-1:i,0),function(){for(var d=arguments,m=-1,y=Tt(d.length-i,0),x=M(y);++m<y;)x[m]=d[i+m];m=-1;for(var O=M(i+1);++m<i;)O[m]=d[m];return O[i]=s(x),Gt(n,this,O)}}function Pg(n,i){return i.length<2?n:di(n,Gn(i,0,-1))}function Uw(n,i){for(var s=n.length,d=Ht(i.length,s),m=un(n);d--;){var y=i[d];n[d]=br(y,s)?m[y]:r}return n}function hc(n,i){if(!(i==="constructor"&&typeof n[i]=="function")&&i!="__proto__")return n[i]}var Og=Bg($p),Ju=cA||function(n,i){return Ze.setTimeout(n,i)},pc=Bg(vw);function Tg(n,i,s){var d=i+"";return pc(n,Vw(d,Qw(Dw(d),s)))}function Bg(n){var i=0,s=0;return function(){var d=pA(),m=be-(d-s);if(s=d,m>0){if(++i>=q)return arguments[0]}else i=0;return n.apply(r,arguments)}}function Gs(n,i){var s=-1,d=n.length,m=d-1;for(i=i===r?d:i;++s<i;){var y=Qa(s,m),x=n[y];n[y]=n[s],n[s]=x}return n.length=i,n}var _g=Zw(function(n){var i=[];return n.charCodeAt(0)===46&&i.push(""),n.replace(na,function(s,d,m,y){i.push(m?y.replace(sa,"$1"):d||s)}),i});function ir(n){if(typeof n=="string"||vn(n))return n;var i=n+"";return i=="0"&&1/n==-Ee?"-0":i}function pi(n){if(n!=null){try{return ls.call(n)}catch{}try{return n+""}catch{}}return""}function Qw(n,i){return On(je,function(s){var d="_."+s[0];i&s[1]&&!rs(n,d)&&n.push(d)}),n.sort()}function Gg(n){if(n instanceof He)return n.clone();var i=new Bn(n.__wrapped__,n.__chain__);return i.__actions__=un(n.__actions__),i.__index__=n.__index__,i.__values__=n.__values__,i}function qw(n,i,s){(s?Qt(n,i,s):i===r)?i=1:i=Tt(De(i),0);var d=n==null?0:n.length;if(!d||i<1)return[];for(var m=0,y=0,x=M(gs(d/i));m<d;)x[y++]=Gn(n,m,m+=i);return x}function $w(n){for(var i=-1,s=n==null?0:n.length,d=0,m=[];++i<s;){var y=n[i];y&&(m[d++]=y)}return m}function Kw(){var n=arguments.length;if(!n)return[];for(var i=M(n-1),s=arguments[0],d=n;d--;)i[d-1]=arguments[d];return Gr(Be(s)?un(s):[s],Nt(i,1))}var eS=We(function(n,i){return xt(n)?Wu(n,Nt(i,1,xt,!0)):[]}),tS=We(function(n,i){var s=Rn(i);return xt(s)&&(s=r),xt(n)?Wu(n,Nt(i,1,xt,!0),ve(s,2)):[]}),nS=We(function(n,i){var s=Rn(i);return xt(s)&&(s=r),xt(n)?Wu(n,Nt(i,1,xt,!0),r,s):[]});function rS(n,i,s){var d=n==null?0:n.length;return d?(i=s||i===r?1:De(i),Gn(n,i<0?0:i,d)):[]}function iS(n,i,s){var d=n==null?0:n.length;return d?(i=s||i===r?1:De(i),i=d-i,Gn(n,0,i<0?0:i)):[]}function uS(n,i){return n&&n.length?Ss(n,ve(i,3),!0,!0):[]}function oS(n,i){return n&&n.length?Ss(n,ve(i,3),!0):[]}function sS(n,i,s,d){var m=n==null?0:n.length;return m?(s&&typeof s!="number"&&Qt(n,i,s)&&(s=0,d=m),KA(n,i,s,d)):[]}function Rg(n,i,s){var d=n==null?0:n.length;if(!d)return-1;var m=s==null?0:De(s);return m<0&&(m=Tt(d+m,0)),is(n,ve(i,3),m)}function kg(n,i,s){var d=n==null?0:n.length;if(!d)return-1;var m=d-1;return s!==r&&(m=De(s),m=s<0?Tt(d+m,0):Ht(m,d-1)),is(n,ve(i,3),m,!0)}function Lg(n){var i=n==null?0:n.length;return i?Nt(n,1):[]}function lS(n){var i=n==null?0:n.length;return i?Nt(n,Ee):[]}function aS(n,i){var s=n==null?0:n.length;return s?(i=i===r?1:De(i),Nt(n,i)):[]}function cS(n){for(var i=-1,s=n==null?0:n.length,d={};++i<s;){var m=n[i];d[m[0]]=m[1]}return d}function Dg(n){return n&&n.length?n[0]:r}function fS(n,i,s){var d=n==null?0:n.length;if(!d)return-1;var m=s==null?0:De(s);return m<0&&(m=Tt(d+m,0)),Zi(n,i,m)}function dS(n){var i=n==null?0:n.length;return i?Gn(n,0,-1):[]}var hS=We(function(n){var i=pt(n,tc);return i.length&&i[0]===n[0]?Za(i):[]}),pS=We(function(n){var i=Rn(n),s=pt(n,tc);return i===Rn(s)?i=r:s.pop(),s.length&&s[0]===n[0]?Za(s,ve(i,2)):[]}),gS=We(function(n){var i=Rn(n),s=pt(n,tc);return i=typeof i=="function"?i:r,i&&s.pop(),s.length&&s[0]===n[0]?Za(s,r,i):[]});function mS(n,i){return n==null?"":dA.call(n,i)}function Rn(n){var i=n==null?0:n.length;return i?n[i-1]:r}function bS(n,i,s){var d=n==null?0:n.length;if(!d)return-1;var m=d;return s!==r&&(m=De(s),m=m<0?Tt(d+m,0):Ht(m,d-1)),i===i?Qx(n,i,m):is(n,bp,m,!0)}function vS(n,i){return n&&n.length?jp(n,De(i)):r}var yS=We(Mg);function Mg(n,i){return n&&n.length&&i&&i.length?Ua(n,i):n}function IS(n,i,s){return n&&n.length&&i&&i.length?Ua(n,i,ve(s,2)):n}function CS(n,i,s){return n&&n.length&&i&&i.length?Ua(n,i,r,s):n}var xS=mr(function(n,i){var s=n==null?0:n.length,d=Wa(n,i);return qp(n,pt(i,function(m){return br(m,s)?+m:m}).sort(sg)),d});function AS(n,i){var s=[];if(!(n&&n.length))return s;var d=-1,m=[],y=n.length;for(i=ve(i,3);++d<y;){var x=n[d];i(x,d,n)&&(s.push(x),m.push(d))}return qp(n,m),s}function gc(n){return n==null?n:mA.call(n)}function wS(n,i,s){var d=n==null?0:n.length;return d?(s&&typeof s!="number"&&Qt(n,i,s)?(i=0,s=d):(i=i==null?0:De(i),s=s===r?d:De(s)),Gn(n,i,s)):[]}function SS(n,i){return ws(n,i)}function ES(n,i,s){return $a(n,i,ve(s,2))}function FS(n,i){var s=n==null?0:n.length;if(s){var d=ws(n,i);if(d<s&&zn(n[d],i))return d}return-1}function PS(n,i){return ws(n,i,!0)}function OS(n,i,s){return $a(n,i,ve(s,2),!0)}function TS(n,i){var s=n==null?0:n.length;if(s){var d=ws(n,i,!0)-1;if(zn(n[d],i))return d}return-1}function BS(n){return n&&n.length?Kp(n):[]}function _S(n,i){return n&&n.length?Kp(n,ve(i,2)):[]}function GS(n){var i=n==null?0:n.length;return i?Gn(n,1,i):[]}function RS(n,i,s){return n&&n.length?(i=s||i===r?1:De(i),Gn(n,0,i<0?0:i)):[]}function kS(n,i,s){var d=n==null?0:n.length;return d?(i=s||i===r?1:De(i),i=d-i,Gn(n,i<0?0:i,d)):[]}function LS(n,i){return n&&n.length?Ss(n,ve(i,3),!1,!0):[]}function DS(n,i){return n&&n.length?Ss(n,ve(i,3)):[]}var MS=We(function(n){return Dr(Nt(n,1,xt,!0))}),NS=We(function(n){var i=Rn(n);return xt(i)&&(i=r),Dr(Nt(n,1,xt,!0),ve(i,2))}),VS=We(function(n){var i=Rn(n);return i=typeof i=="function"?i:r,Dr(Nt(n,1,xt,!0),r,i)});function WS(n){return n&&n.length?Dr(n):[]}function XS(n,i){return n&&n.length?Dr(n,ve(i,2)):[]}function HS(n,i){return i=typeof i=="function"?i:r,n&&n.length?Dr(n,r,i):[]}function mc(n){if(!(n&&n.length))return[];var i=0;return n=_r(n,function(s){if(xt(s))return i=Tt(s.length,i),!0}),Ga(i,function(s){return pt(n,Ta(s))})}function Ng(n,i){if(!(n&&n.length))return[];var s=mc(n);return i==null?s:pt(s,function(d){return Gt(i,r,d)})}var zS=We(function(n,i){return xt(n)?Wu(n,i):[]}),ZS=We(function(n){return ec(_r(n,xt))}),YS=We(function(n){var i=Rn(n);return xt(i)&&(i=r),ec(_r(n,xt),ve(i,2))}),JS=We(function(n){var i=Rn(n);return i=typeof i=="function"?i:r,ec(_r(n,xt),r,i)}),jS=We(mc);function US(n,i){return rg(n||[],i||[],Vu)}function QS(n,i){return rg(n||[],i||[],zu)}var qS=We(function(n){var i=n.length,s=i>1?n[i-1]:r;return s=typeof s=="function"?(n.pop(),s):r,Ng(n,s)});function Vg(n){var i=v(n);return i.__chain__=!0,i}function $S(n,i){return i(n),n}function Rs(n,i){return i(n)}var KS=mr(function(n){var i=n.length,s=i?n[0]:0,d=this.__wrapped__,m=function(y){return Wa(y,n)};return i>1||this.__actions__.length||!(d instanceof He)||!br(s)?this.thru(m):(d=d.slice(s,+s+(i?1:0)),d.__actions__.push({func:Rs,args:[m],thisArg:r}),new Bn(d,this.__chain__).thru(function(y){return i&&!y.length&&y.push(r),y}))});function eE(){return Vg(this)}function tE(){return new Bn(this.value(),this.__chain__)}function nE(){this.__values__===r&&(this.__values__=em(this.value()));var n=this.__index__>=this.__values__.length,i=n?r:this.__values__[this.__index__++];return{done:n,value:i}}function rE(){return this}function iE(n){for(var i,s=this;s instanceof ys;){var d=Gg(s);d.__index__=0,d.__values__=r,i?m.__wrapped__=d:i=d;var m=d;s=s.__wrapped__}return m.__wrapped__=n,i}function uE(){var n=this.__wrapped__;if(n instanceof He){var i=n;return this.__actions__.length&&(i=new He(this)),i=i.reverse(),i.__actions__.push({func:Rs,args:[gc],thisArg:r}),new Bn(i,this.__chain__)}return this.thru(gc)}function oE(){return ng(this.__wrapped__,this.__actions__)}var sE=Es(function(n,i,s){rt.call(n,s)?++n[s]:pr(n,s,1)});function lE(n,i,s){var d=Be(n)?gp:$A;return s&&Qt(n,i,s)&&(i=r),d(n,ve(i,3))}function aE(n,i){var s=Be(n)?_r:Np;return s(n,ve(i,3))}var cE=hg(Rg),fE=hg(kg);function dE(n,i){return Nt(ks(n,i),1)}function hE(n,i){return Nt(ks(n,i),Ee)}function pE(n,i,s){return s=s===r?1:De(s),Nt(ks(n,i),s)}function Wg(n,i){var s=Be(n)?On:Lr;return s(n,ve(i,3))}function Xg(n,i){var s=Be(n)?Gx:Mp;return s(n,ve(i,3))}var gE=Es(function(n,i,s){rt.call(n,s)?n[s].push(i):pr(n,s,[i])});function mE(n,i,s,d){n=on(n)?n:ru(n),s=s&&!d?De(s):0;var m=n.length;return s<0&&(s=Tt(m+s,0)),Vs(n)?s<=m&&n.indexOf(i,s)>-1:!!m&&Zi(n,i,s)>-1}var bE=We(function(n,i,s){var d=-1,m=typeof i=="function",y=on(n)?M(n.length):[];return Lr(n,function(x){y[++d]=m?Gt(i,x,s):Xu(x,i,s)}),y}),vE=Es(function(n,i,s){pr(n,s,i)});function ks(n,i){var s=Be(n)?pt:Zp;return s(n,ve(i,3))}function yE(n,i,s,d){return n==null?[]:(Be(i)||(i=i==null?[]:[i]),s=d?r:s,Be(s)||(s=s==null?[]:[s]),Up(n,i,s))}var IE=Es(function(n,i,s){n[s?0:1].push(i)},function(){return[[],[]]});function CE(n,i,s){var d=Be(n)?Pa:yp,m=arguments.length<3;return d(n,ve(i,4),s,m,Lr)}function xE(n,i,s){var d=Be(n)?Rx:yp,m=arguments.length<3;return d(n,ve(i,4),s,m,Mp)}function AE(n,i){var s=Be(n)?_r:Np;return s(n,Ms(ve(i,3)))}function wE(n){var i=Be(n)?Rp:mw;return i(n)}function SE(n,i,s){(s?Qt(n,i,s):i===r)?i=1:i=De(i);var d=Be(n)?JA:bw;return d(n,i)}function EE(n){var i=Be(n)?jA:yw;return i(n)}function FE(n){if(n==null)return 0;if(on(n))return Vs(n)?Ji(n):n.length;var i=zt(n);return i==ne||i==Mt?n.size:Ja(n).length}function PE(n,i,s){var d=Be(n)?Oa:Iw;return s&&Qt(n,i,s)&&(i=r),d(n,ve(i,3))}var OE=We(function(n,i){if(n==null)return[];var s=i.length;return s>1&&Qt(n,i[0],i[1])?i=[]:s>2&&Qt(i[0],i[1],i[2])&&(i=[i[0]]),Up(n,Nt(i,1),[])}),Ls=aA||function(){return Ze.Date.now()};function TE(n,i){if(typeof i!="function")throw new Tn(a);return n=De(n),function(){if(--n<1)return i.apply(this,arguments)}}function Hg(n,i,s){return i=s?r:i,i=n&&i==null?n.length:i,gr(n,Y,r,r,r,r,i)}function zg(n,i){var s;if(typeof i!="function")throw new Tn(a);return n=De(n),function(){return--n>0&&(s=i.apply(this,arguments)),n<=1&&(i=r),s}}var bc=We(function(n,i,s){var d=F;if(s.length){var m=Rr(s,tu(bc));d|=X}return gr(n,d,i,s,m)}),Zg=We(function(n,i,s){var d=F|P;if(s.length){var m=Rr(s,tu(Zg));d|=X}return gr(i,d,n,s,m)});function Yg(n,i,s){i=s?r:i;var d=gr(n,k,r,r,r,r,r,i);return d.placeholder=Yg.placeholder,d}function Jg(n,i,s){i=s?r:i;var d=gr(n,N,r,r,r,r,r,i);return d.placeholder=Jg.placeholder,d}function jg(n,i,s){var d,m,y,x,O,G,z=0,Z=!1,$=!1,re=!0;if(typeof n!="function")throw new Tn(a);i=kn(i)||0,gt(s)&&(Z=!!s.leading,$="maxWait"in s,y=$?Tt(kn(s.maxWait)||0,i):y,re="trailing"in s?!!s.trailing:re);function fe(At){var Zn=d,Ir=m;return d=m=r,z=At,x=n.apply(Ir,Zn),x}function Ie(At){return z=At,O=Ju(Xe,i),Z?fe(At):x}function Me(At){var Zn=At-G,Ir=At-z,hm=i-Zn;return $?Ht(hm,y-Ir):hm}function Ce(At){var Zn=At-G,Ir=At-z;return G===r||Zn>=i||Zn<0||$&&Ir>=y}function Xe(){var At=Ls();if(Ce(At))return Ye(At);O=Ju(Xe,Me(At))}function Ye(At){return O=r,re&&d?fe(At):(d=m=r,x)}function yn(){O!==r&&ig(O),z=0,d=G=m=O=r}function qt(){return O===r?x:Ye(Ls())}function In(){var At=Ls(),Zn=Ce(At);if(d=arguments,m=this,G=At,Zn){if(O===r)return Ie(G);if($)return ig(O),O=Ju(Xe,i),fe(G)}return O===r&&(O=Ju(Xe,i)),x}return In.cancel=yn,In.flush=qt,In}var BE=We(function(n,i){return Dp(n,1,i)}),_E=We(function(n,i,s){return Dp(n,kn(i)||0,s)});function GE(n){return gr(n,j)}function Ds(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new Tn(a);var s=function(){var d=arguments,m=i?i.apply(this,d):d[0],y=s.cache;if(y.has(m))return y.get(m);var x=n.apply(this,d);return s.cache=y.set(m,x)||y,x};return s.cache=new(Ds.Cache||hr),s}Ds.Cache=hr;function Ms(n){if(typeof n!="function")throw new Tn(a);return function(){var i=arguments;switch(i.length){case 0:return!n.call(this);case 1:return!n.call(this,i[0]);case 2:return!n.call(this,i[0],i[1]);case 3:return!n.call(this,i[0],i[1],i[2])}return!n.apply(this,i)}}function RE(n){return zg(2,n)}var kE=Cw(function(n,i){i=i.length==1&&Be(i[0])?pt(i[0],mn(ve())):pt(Nt(i,1),mn(ve()));var s=i.length;return We(function(d){for(var m=-1,y=Ht(d.length,s);++m<y;)d[m]=i[m].call(this,d[m]);return Gt(n,this,d)})}),vc=We(function(n,i){var s=Rr(i,tu(vc));return gr(n,X,r,i,s)}),Ug=We(function(n,i){var s=Rr(i,tu(Ug));return gr(n,R,r,i,s)}),LE=mr(function(n,i){return gr(n,D,r,r,r,i)});function DE(n,i){if(typeof n!="function")throw new Tn(a);return i=i===r?i:De(i),We(n,i)}function ME(n,i){if(typeof n!="function")throw new Tn(a);return i=i==null?0:Tt(De(i),0),We(function(s){var d=s[i],m=Nr(s,0,i);return d&&Gr(m,d),Gt(n,this,m)})}function NE(n,i,s){var d=!0,m=!0;if(typeof n!="function")throw new Tn(a);return gt(s)&&(d="leading"in s?!!s.leading:d,m="trailing"in s?!!s.trailing:m),jg(n,i,{leading:d,maxWait:i,trailing:m})}function VE(n){return Hg(n,1)}function WE(n,i){return vc(nc(i),n)}function XE(){if(!arguments.length)return[];var n=arguments[0];return Be(n)?n:[n]}function HE(n){return _n(n,b)}function zE(n,i){return i=typeof i=="function"?i:r,_n(n,b,i)}function ZE(n){return _n(n,g|b)}function YE(n,i){return i=typeof i=="function"?i:r,_n(n,g|b,i)}function JE(n,i){return i==null||Lp(n,i,Rt(i))}function zn(n,i){return n===i||n!==n&&i!==i}var jE=Ts(za),UE=Ts(function(n,i){return n>=i}),gi=Xp(function(){return arguments}())?Xp:function(n){return It(n)&&rt.call(n,"callee")&&!Pp.call(n,"callee")},Be=M.isArray,QE=jt?mn(jt):iw;function on(n){return n!=null&&Ns(n.length)&&!vr(n)}function xt(n){return It(n)&&on(n)}function qE(n){return n===!0||n===!1||It(n)&&Ut(n)==Ve}var Vr=fA||Oc,$E=Wn?mn(Wn):uw;function KE(n){return It(n)&&n.nodeType===1&&!ju(n)}function e2(n){if(n==null)return!0;if(on(n)&&(Be(n)||typeof n=="string"||typeof n.splice=="function"||Vr(n)||nu(n)||gi(n)))return!n.length;var i=zt(n);if(i==ne||i==Mt)return!n.size;if(Yu(n))return!Ja(n).length;for(var s in n)if(rt.call(n,s))return!1;return!0}function t2(n,i){return Hu(n,i)}function n2(n,i,s){s=typeof s=="function"?s:r;var d=s?s(n,i):r;return d===r?Hu(n,i,r,s):!!d}function yc(n){if(!It(n))return!1;var i=Ut(n);return i==Lt||i==Xt||typeof n.message=="string"&&typeof n.name=="string"&&!ju(n)}function r2(n){return typeof n=="number"&&Tp(n)}function vr(n){if(!gt(n))return!1;var i=Ut(n);return i==Dt||i==Nn||i==St||i==Bt}function Qg(n){return typeof n=="number"&&n==De(n)}function Ns(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=Oe}function gt(n){var i=typeof n;return n!=null&&(i=="object"||i=="function")}function It(n){return n!=null&&typeof n=="object"}var qg=Pn?mn(Pn):sw;function i2(n,i){return n===i||Ya(n,i,ac(i))}function u2(n,i,s){return s=typeof s=="function"?s:r,Ya(n,i,ac(i),s)}function o2(n){return $g(n)&&n!=+n}function s2(n){if(zw(n))throw new Fe(l);return Hp(n)}function l2(n){return n===null}function a2(n){return n==null}function $g(n){return typeof n=="number"||It(n)&&Ut(n)==oe}function ju(n){if(!It(n)||Ut(n)!=Ge)return!1;var i=ds(n);if(i===null)return!0;var s=rt.call(i,"constructor")&&i.constructor;return typeof s=="function"&&s instanceof s&&ls.call(s)==uA}var Ic=tr?mn(tr):lw;function c2(n){return Qg(n)&&n>=-Oe&&n<=Oe}var Kg=Gu?mn(Gu):aw;function Vs(n){return typeof n=="string"||!Be(n)&&It(n)&&Ut(n)==nt}function vn(n){return typeof n=="symbol"||It(n)&&Ut(n)==Qe}var nu=si?mn(si):cw;function f2(n){return n===r}function d2(n){return It(n)&&zt(n)==et}function h2(n){return It(n)&&Ut(n)==V}var p2=Ts(ja),g2=Ts(function(n,i){return n<=i});function em(n){if(!n)return[];if(on(n))return Vs(n)?Xn(n):un(n);if(ku&&n[ku])return Jx(n[ku]());var i=zt(n),s=i==ne?ka:i==Mt?us:ru;return s(n)}function yr(n){if(!n)return n===0?n:0;if(n=kn(n),n===Ee||n===-Ee){var i=n<0?-1:1;return i*Ke}return n===n?n:0}function De(n){var i=yr(n),s=i%1;return i===i?s?i-s:i:0}function tm(n){return n?fi(De(n),0,xe):0}function kn(n){if(typeof n=="number")return n;if(vn(n))return E;if(gt(n)){var i=typeof n.valueOf=="function"?n.valueOf():n;n=gt(i)?i+"":i}if(typeof n!="string")return n===0?n:+n;n=Ip(n);var s=ca.test(n);return s||da.test(n)?Te(n.slice(2),s?2:8):aa.test(n)?E:+n}function nm(n){return rr(n,sn(n))}function m2(n){return n?fi(De(n),-Oe,Oe):n===0?n:0}function tt(n){return n==null?"":bn(n)}var b2=Ki(function(n,i){if(Yu(i)||on(i)){rr(i,Rt(i),n);return}for(var s in i)rt.call(i,s)&&Vu(n,s,i[s])}),rm=Ki(function(n,i){rr(i,sn(i),n)}),Ws=Ki(function(n,i,s,d){rr(i,sn(i),n,d)}),v2=Ki(function(n,i,s,d){rr(i,Rt(i),n,d)}),y2=mr(Wa);function I2(n,i){var s=$i(n);return i==null?s:kp(s,i)}var C2=We(function(n,i){n=lt(n);var s=-1,d=i.length,m=d>2?i[2]:r;for(m&&Qt(i[0],i[1],m)&&(d=1);++s<d;)for(var y=i[s],x=sn(y),O=-1,G=x.length;++O<G;){var z=x[O],Z=n[z];(Z===r||zn(Z,Ui[z])&&!rt.call(n,z))&&(n[z]=y[z])}return n}),x2=We(function(n){return n.push(r,Ig),Gt(im,r,n)});function A2(n,i){return mp(n,ve(i,3),nr)}function w2(n,i){return mp(n,ve(i,3),Ha)}function S2(n,i){return n==null?n:Xa(n,ve(i,3),sn)}function E2(n,i){return n==null?n:Vp(n,ve(i,3),sn)}function F2(n,i){return n&&nr(n,ve(i,3))}function P2(n,i){return n&&Ha(n,ve(i,3))}function O2(n){return n==null?[]:xs(n,Rt(n))}function T2(n){return n==null?[]:xs(n,sn(n))}function Cc(n,i,s){var d=n==null?r:di(n,i);return d===r?s:d}function B2(n,i){return n!=null&&Ag(n,i,ew)}function xc(n,i){return n!=null&&Ag(n,i,tw)}var _2=gg(function(n,i,s){i!=null&&typeof i.toString!="function"&&(i=as.call(i)),n[i]=s},wc(ln)),G2=gg(function(n,i,s){i!=null&&typeof i.toString!="function"&&(i=as.call(i)),rt.call(n,i)?n[i].push(s):n[i]=[s]},ve),R2=We(Xu);function Rt(n){return on(n)?Gp(n):Ja(n)}function sn(n){return on(n)?Gp(n,!0):fw(n)}function k2(n,i){var s={};return i=ve(i,3),nr(n,function(d,m,y){pr(s,i(d,m,y),d)}),s}function L2(n,i){var s={};return i=ve(i,3),nr(n,function(d,m,y){pr(s,m,i(d,m,y))}),s}var D2=Ki(function(n,i,s){As(n,i,s)}),im=Ki(function(n,i,s,d){As(n,i,s,d)}),M2=mr(function(n,i){var s={};if(n==null)return s;var d=!1;i=pt(i,function(y){return y=Mr(y,n),d||(d=y.length>1),y}),rr(n,sc(n),s),d&&(s=_n(s,g|I|b,_w));for(var m=i.length;m--;)Ka(s,i[m]);return s});function N2(n,i){return um(n,Ms(ve(i)))}var V2=mr(function(n,i){return n==null?{}:hw(n,i)});function um(n,i){if(n==null)return{};var s=pt(sc(n),function(d){return[d]});return i=ve(i),Qp(n,s,function(d,m){return i(d,m[0])})}function W2(n,i,s){i=Mr(i,n);var d=-1,m=i.length;for(m||(m=1,n=r);++d<m;){var y=n==null?r:n[ir(i[d])];y===r&&(d=m,y=s),n=vr(y)?y.call(n):y}return n}function X2(n,i,s){return n==null?n:zu(n,i,s)}function H2(n,i,s,d){return d=typeof d=="function"?d:r,n==null?n:zu(n,i,s,d)}var om=vg(Rt),sm=vg(sn);function z2(n,i,s){var d=Be(n),m=d||Vr(n)||nu(n);if(i=ve(i,4),s==null){var y=n&&n.constructor;m?s=d?new y:[]:gt(n)?s=vr(y)?$i(ds(n)):{}:s={}}return(m?On:nr)(n,function(x,O,G){return i(s,x,O,G)}),s}function Z2(n,i){return n==null?!0:Ka(n,i)}function Y2(n,i,s){return n==null?n:tg(n,i,nc(s))}function J2(n,i,s,d){return d=typeof d=="function"?d:r,n==null?n:tg(n,i,nc(s),d)}function ru(n){return n==null?[]:Ra(n,Rt(n))}function j2(n){return n==null?[]:Ra(n,sn(n))}function U2(n,i,s){return s===r&&(s=i,i=r),s!==r&&(s=kn(s),s=s===s?s:0),i!==r&&(i=kn(i),i=i===i?i:0),fi(kn(n),i,s)}function Q2(n,i,s){return i=yr(i),s===r?(s=i,i=0):s=yr(s),n=kn(n),nw(n,i,s)}function q2(n,i,s){if(s&&typeof s!="boolean"&&Qt(n,i,s)&&(i=s=r),s===r&&(typeof i=="boolean"?(s=i,i=r):typeof n=="boolean"&&(s=n,n=r)),n===r&&i===r?(n=0,i=1):(n=yr(n),i===r?(i=n,n=0):i=yr(i)),n>i){var d=n;n=i,i=d}if(s||n%1||i%1){var m=Bp();return Ht(n+m*(i-n+ot("1e-"+((m+"").length-1))),i)}return Qa(n,i)}var $2=eu(function(n,i,s){return i=i.toLowerCase(),n+(s?lm(i):i)});function lm(n){return Ac(tt(n).toLowerCase())}function am(n){return n=tt(n),n&&n.replace(cr,Xx).replace(Sa,"")}function K2(n,i,s){n=tt(n),i=bn(i);var d=n.length;s=s===r?d:fi(De(s),0,d);var m=s;return s-=i.length,s>=0&&n.slice(s,m)==i}function eF(n){return n=tt(n),n&&ti.test(n)?n.replace(Lo,Hx):n}function tF(n){return n=tt(n),n&&ra.test(n)?n.replace(Fu,"\\$&"):n}var nF=eu(function(n,i,s){return n+(s?"-":"")+i.toLowerCase()}),rF=eu(function(n,i,s){return n+(s?" ":"")+i.toLowerCase()}),iF=dg("toLowerCase");function uF(n,i,s){n=tt(n),i=De(i);var d=i?Ji(n):0;if(!i||d>=i)return n;var m=(i-d)/2;return Os(ms(m),s)+n+Os(gs(m),s)}function oF(n,i,s){n=tt(n),i=De(i);var d=i?Ji(n):0;return i&&d<i?n+Os(i-d,s):n}function sF(n,i,s){n=tt(n),i=De(i);var d=i?Ji(n):0;return i&&d<i?Os(i-d,s)+n:n}function lF(n,i,s){return s||i==null?i=0:i&&(i=+i),gA(tt(n).replace(Pu,""),i||0)}function aF(n,i,s){return(s?Qt(n,i,s):i===r)?i=1:i=De(i),qa(tt(n),i)}function cF(){var n=arguments,i=tt(n[0]);return n.length<3?i:i.replace(n[1],n[2])}var fF=eu(function(n,i,s){return n+(s?"_":"")+i.toLowerCase()});function dF(n,i,s){return s&&typeof s!="number"&&Qt(n,i,s)&&(i=s=r),s=s===r?xe:s>>>0,s?(n=tt(n),n&&(typeof i=="string"||i!=null&&!Ic(i))&&(i=bn(i),!i&&Yi(n))?Nr(Xn(n),0,s):n.split(i,s)):[]}var hF=eu(function(n,i,s){return n+(s?" ":"")+Ac(i)});function pF(n,i,s){return n=tt(n),s=s==null?0:fi(De(s),0,n.length),i=bn(i),n.slice(s,s+i.length)==i}function gF(n,i,s){var d=v.templateSettings;s&&Qt(n,i,s)&&(i=r),n=tt(n),i=Ws({},i,d,yg);var m=Ws({},i.imports,d.imports,yg),y=Rt(m),x=Ra(m,y),O,G,z=0,Z=i.interpolate||Mi,$="__p += '",re=La((i.escape||Mi).source+"|"+Z.source+"|"+(Z===Di?la:Mi).source+"|"+(i.evaluate||Mi).source+"|$","g"),fe="//# sourceURL="+(rt.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ea+"]")+`
|
|
24
|
+
`;n.replace(re,function(Ce,Xe,Ye,yn,qt,In){return Ye||(Ye=yn),$+=n.slice(z,In).replace(pa,zx),Xe&&(O=!0,$+=`' +
|
|
25
|
+
__e(`+Xe+`) +
|
|
26
|
+
'`),qt&&(G=!0,$+=`';
|
|
27
27
|
`+qt+`;
|
|
28
|
-
__p += '`),Ye&&(
|
|
28
|
+
__p += '`),Ye&&($+=`' +
|
|
29
29
|
((__t = (`+Ye+`)) == null ? '' : __t) +
|
|
30
|
-
'`),z=
|
|
31
|
-
`;var
|
|
32
|
-
|
|
30
|
+
'`),z=In+Ce.length,Ce}),$+=`';
|
|
31
|
+
`;var Ie=rt.call(i,"variable")&&i.variable;if(!Ie)$=`with (obj) {
|
|
32
|
+
`+$+`
|
|
33
33
|
}
|
|
34
|
-
`;else if(oa.test(
|
|
35
|
-
`+(
|
|
34
|
+
`;else if(oa.test(Ie))throw new Fe(c);$=(G?$.replace(pn,""):$).replace(lr,"$1").replace(Ro,"$1;"),$="function("+(Ie||"obj")+`) {
|
|
35
|
+
`+(Ie?"":`obj || (obj = {});
|
|
36
36
|
`)+"var __t, __p = ''"+(O?", __e = _.escape":"")+(G?`, __j = Array.prototype.join;
|
|
37
37
|
function print() { __p += __j.call(arguments, '') }
|
|
38
38
|
`:`;
|
|
39
|
-
`)
|
|
40
|
-
}`;var De=fm(function(){return Qe(y,fe+"return "+q).apply(r,x)});if(De.source=q,yc(De))throw De;return De}function mF(n){return Ke(n).toLowerCase()}function bF(n){return Ke(n).toUpperCase()}function vF(n,i,s){if(n=Ke(n),n&&(s||i===r))return Ip(n);if(!n||!(i=vn(i)))return n;var d=Xn(n),m=Xn(i),y=Cp(d,m),x=xp(d,m)+1;return Nr(d,y,x).join("")}function yF(n,i,s){if(n=Ke(n),n&&(s||i===r))return n.slice(0,wp(n)+1);if(!n||!(i=vn(i)))return n;var d=Xn(n),m=xp(d,Xn(i))+1;return Nr(d,0,m).join("")}function IF(n,i,s){if(n=Ke(n),n&&(s||i===r))return n.replace(Pu,"");if(!n||!(i=vn(i)))return n;var d=Xn(n),m=Cp(d,Xn(i));return Nr(d,m).join("")}function CF(n,i){var s=U,d=Q;if(gt(i)){var m="separator"in i?i.separator:m;s="length"in i?ke(i.length):s,d="omission"in i?vn(i.omission):d}n=Ke(n);var y=n.length;if(Yi(n)){var x=Xn(n);y=x.length}if(s>=y)return n;var O=s-Ji(d);if(O<1)return d;var G=x?Nr(x,0,O).join(""):n.slice(0,O);if(m===r)return G+d;if(x&&(O+=G.length-O),Ic(m)){if(n.slice(O).search(m)){var z,Y=G;for(m.global||(m=La(m.source,Ke(Fn.exec(m))+"g")),m.lastIndex=0;z=m.exec(Y);)var q=z.index;G=G.slice(0,q===r?O:q)}}else if(n.indexOf(vn(m),O)!=O){var re=G.lastIndexOf(m);re>-1&&(G=G.slice(0,re))}return G+d}function xF(n){return n=Ke(n),n&&wu.test(n)?n.replace(ko,qx):n}var AF=eu(function(n,i,s){return n+(s?" ":"")+i.toUpperCase()}),Ac=dg("toUpperCase");function cm(n,i,s){return n=Ke(n),i=s?r:i,i===r?Yx(n)?eA(n):Dx(n):n.match(i)||[]}var fm=Me(function(n,i){try{return Rt(n,r,i)}catch(s){return yc(s)?s:new Ee(s)}}),wF=mr(function(n,i){return On(i,function(s){s=ir(s),pr(n,s,bc(n[s],n))}),n});function SF(n){var i=n==null?0:n.length,s=Ie();return n=i?pt(n,function(d){if(typeof d[1]!="function")throw new Tn(a);return[s(d[0]),d[1]]}):[],Me(function(d){for(var m=-1;++m<i;){var y=n[m];if(Rt(y[0],this,d))return Rt(y[1],this,d)}})}function EF(n){return qA(Bn(n,g))}function wc(n){return function(){return n}}function FF(n,i){return n==null||n!==n?i:n}var PF=pg(),OF=pg(!0);function ln(n){return n}function Sc(n){return zp(typeof n=="function"?n:Bn(n,g))}function TF(n){return Yp(Bn(n,g))}function _F(n,i){return Jp(n,Bn(i,g))}var BF=Me(function(n,i){return function(s){return Xu(s,n,i)}}),GF=Me(function(n,i){return function(s){return Xu(n,s,i)}});function Ec(n,i,s){var d=kt(i),m=xs(i,d);s==null&&!(gt(i)&&(m.length||!d.length))&&(s=i,i=n,n=this,m=xs(i,kt(i)));var y=!(gt(s)&&"chain"in s)||!!s.chain,x=vr(n);return On(m,function(O){var G=i[O];n[O]=G,x&&(n.prototype[O]=function(){var z=this.__chain__;if(y||z){var Y=n(this.__wrapped__),q=Y.__actions__=un(this.__actions__);return q.push({func:G,args:arguments,thisArg:n}),Y.__chain__=z,Y}return G.apply(n,Gr([this.value()],arguments))})}),n}function RF(){return Ze._===this&&(Ze._=oA),this}function Fc(){}function kF(n){return n=ke(n),Me(function(i){return jp(i,n)})}var LF=ic(pt),DF=ic(gp),MF=ic(Oa);function dm(n){return fc(n)?Ta(ir(n)):pw(n)}function NF(n){return function(i){return n==null?r:di(n,i)}}var VF=mg(),WF=mg(!0);function Pc(){return[]}function Oc(){return!1}function XF(){return{}}function HF(){return""}function zF(){return!0}function ZF(n,i){if(n=ke(n),n<1||n>Pe)return[];var s=He,d=Wt(n,He);i=Ie(i),n-=He;for(var m=Ga(d,i);++s<n;)i(s);return m}function YF(n){return Te(n)?pt(n,ir):yn(n)?[n]:un(Bg(Ke(n)))}function JF(n){var i=++iA;return Ke(n)+i}var jF=Ps(function(n,i){return n+i},0),UF=uc("ceil"),QF=Ps(function(n,i){return n/i},1),qF=uc("floor");function $F(n){return n&&n.length?Cs(n,ln,za):r}function KF(n,i){return n&&n.length?Cs(n,Ie(i,2),za):r}function eP(n){return vp(n,ln)}function tP(n,i){return vp(n,Ie(i,2))}function nP(n){return n&&n.length?Cs(n,ln,ja):r}function rP(n,i){return n&&n.length?Cs(n,Ie(i,2),ja):r}var iP=Ps(function(n,i){return n*i},1),uP=uc("round"),oP=Ps(function(n,i){return n-i},0);function sP(n){return n&&n.length?Ba(n,ln):0}function lP(n,i){return n&&n.length?Ba(n,Ie(i,2)):0}return v.after=TE,v.ary=Hg,v.assign=b2,v.assignIn=rm,v.assignInWith=Ws,v.assignWith=v2,v.at=y2,v.before=zg,v.bind=bc,v.bindAll=wF,v.bindKey=Zg,v.castArray=XE,v.chain=Vg,v.chunk=qw,v.compact=$w,v.concat=Kw,v.cond=SF,v.conforms=EF,v.constant=wc,v.countBy=sE,v.create=I2,v.curry=Yg,v.curryRight=Jg,v.debounce=jg,v.defaults=C2,v.defaultsDeep=x2,v.defer=_E,v.delay=BE,v.difference=eS,v.differenceBy=tS,v.differenceWith=nS,v.drop=rS,v.dropRight=iS,v.dropRightWhile=uS,v.dropWhile=oS,v.fill=sS,v.filter=aE,v.flatMap=dE,v.flatMapDeep=hE,v.flatMapDepth=pE,v.flatten=Lg,v.flattenDeep=lS,v.flattenDepth=aS,v.flip=GE,v.flow=PF,v.flowRight=OF,v.fromPairs=cS,v.functions=O2,v.functionsIn=T2,v.groupBy=gE,v.initial=dS,v.intersection=hS,v.intersectionBy=pS,v.intersectionWith=gS,v.invert=B2,v.invertBy=G2,v.invokeMap=bE,v.iteratee=Sc,v.keyBy=vE,v.keys=kt,v.keysIn=sn,v.map=ks,v.mapKeys=k2,v.mapValues=L2,v.matches=TF,v.matchesProperty=_F,v.memoize=Ds,v.merge=D2,v.mergeWith=im,v.method=BF,v.methodOf=GF,v.mixin=Ec,v.negate=Ms,v.nthArg=kF,v.omit=M2,v.omitBy=N2,v.once=RE,v.orderBy=yE,v.over=LF,v.overArgs=kE,v.overEvery=DF,v.overSome=MF,v.partial=vc,v.partialRight=Ug,v.partition=IE,v.pick=V2,v.pickBy=um,v.property=dm,v.propertyOf=NF,v.pull=yS,v.pullAll=Mg,v.pullAllBy=IS,v.pullAllWith=CS,v.pullAt=xS,v.range=VF,v.rangeRight=WF,v.rearg=LE,v.reject=AE,v.remove=AS,v.rest=DE,v.reverse=gc,v.sampleSize=SE,v.set=X2,v.setWith=H2,v.shuffle=EE,v.slice=wS,v.sortBy=OE,v.sortedUniq=_S,v.sortedUniqBy=BS,v.split=dF,v.spread=ME,v.tail=GS,v.take=RS,v.takeRight=kS,v.takeRightWhile=LS,v.takeWhile=DS,v.tap=$S,v.throttle=NE,v.thru=Rs,v.toArray=em,v.toPairs=om,v.toPairsIn=sm,v.toPath=YF,v.toPlainObject=nm,v.transform=z2,v.unary=VE,v.union=MS,v.unionBy=NS,v.unionWith=VS,v.uniq=WS,v.uniqBy=XS,v.uniqWith=HS,v.unset=Z2,v.unzip=mc,v.unzipWith=Ng,v.update=Y2,v.updateWith=J2,v.values=ru,v.valuesIn=j2,v.without=zS,v.words=cm,v.wrap=WE,v.xor=ZS,v.xorBy=YS,v.xorWith=JS,v.zip=jS,v.zipObject=US,v.zipObjectDeep=QS,v.zipWith=qS,v.entries=om,v.entriesIn=sm,v.extend=rm,v.extendWith=Ws,Ec(v,v),v.add=jF,v.attempt=fm,v.camelCase=$2,v.capitalize=lm,v.ceil=UF,v.clamp=U2,v.clone=HE,v.cloneDeep=ZE,v.cloneDeepWith=YE,v.cloneWith=zE,v.conformsTo=JE,v.deburr=am,v.defaultTo=FF,v.divide=QF,v.endsWith=K2,v.eq=zn,v.escape=eF,v.escapeRegExp=tF,v.every=lE,v.find=cE,v.findIndex=Rg,v.findKey=A2,v.findLast=fE,v.findLastIndex=kg,v.findLastKey=w2,v.floor=qF,v.forEach=Wg,v.forEachRight=Xg,v.forIn=S2,v.forInRight=E2,v.forOwn=F2,v.forOwnRight=P2,v.get=Cc,v.gt=jE,v.gte=UE,v.has=_2,v.hasIn=xc,v.head=Dg,v.identity=ln,v.includes=mE,v.indexOf=fS,v.inRange=Q2,v.invoke=R2,v.isArguments=gi,v.isArray=Te,v.isArrayBuffer=QE,v.isArrayLike=on,v.isArrayLikeObject=At,v.isBoolean=qE,v.isBuffer=Vr,v.isDate=$E,v.isElement=KE,v.isEmpty=e2,v.isEqual=t2,v.isEqualWith=n2,v.isError=yc,v.isFinite=r2,v.isFunction=vr,v.isInteger=Qg,v.isLength=Ns,v.isMap=qg,v.isMatch=i2,v.isMatchWith=u2,v.isNaN=o2,v.isNative=s2,v.isNil=a2,v.isNull=l2,v.isNumber=$g,v.isObject=gt,v.isObjectLike=It,v.isPlainObject=ju,v.isRegExp=Ic,v.isSafeInteger=c2,v.isSet=Kg,v.isString=Vs,v.isSymbol=yn,v.isTypedArray=nu,v.isUndefined=f2,v.isWeakMap=d2,v.isWeakSet=h2,v.join=mS,v.kebabCase=nF,v.last=Rn,v.lastIndexOf=bS,v.lowerCase=rF,v.lowerFirst=iF,v.lt=p2,v.lte=g2,v.max=$F,v.maxBy=KF,v.mean=eP,v.meanBy=tP,v.min=nP,v.minBy=rP,v.stubArray=Pc,v.stubFalse=Oc,v.stubObject=XF,v.stubString=HF,v.stubTrue=zF,v.multiply=iP,v.nth=vS,v.noConflict=RF,v.noop=Fc,v.now=Ls,v.pad=uF,v.padEnd=oF,v.padStart=sF,v.parseInt=lF,v.random=q2,v.reduce=CE,v.reduceRight=xE,v.repeat=aF,v.replace=cF,v.result=W2,v.round=uP,v.runInContext=_,v.sample=wE,v.size=FE,v.snakeCase=fF,v.some=PE,v.sortedIndex=SS,v.sortedIndexBy=ES,v.sortedIndexOf=FS,v.sortedLastIndex=PS,v.sortedLastIndexBy=OS,v.sortedLastIndexOf=TS,v.startCase=hF,v.startsWith=pF,v.subtract=oP,v.sum=sP,v.sumBy=lP,v.template=gF,v.times=ZF,v.toFinite=yr,v.toInteger=ke,v.toLength=tm,v.toLower=mF,v.toNumber=kn,v.toSafeInteger=m2,v.toString=Ke,v.toUpper=bF,v.trim=vF,v.trimEnd=yF,v.trimStart=IF,v.truncate=CF,v.unescape=xF,v.uniqueId=JF,v.upperCase=AF,v.upperFirst=Ac,v.each=Wg,v.eachRight=Xg,v.first=Dg,Ec(v,function(){var n={};return nr(v,function(i,s){et.call(v.prototype,s)||(n[s]=i)}),n}(),{chain:!1}),v.VERSION=u,On(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){v[n].placeholder=v}),On(["drop","take"],function(n,i){We.prototype[n]=function(s){s=s===r?1:_t(ke(s),0);var d=this.__filtered__&&!i?new We(this):this.clone();return d.__filtered__?d.__takeCount__=Wt(s,d.__takeCount__):d.__views__.push({size:Wt(s,He),type:n+(d.__dir__<0?"Right":"")}),d},We.prototype[n+"Right"]=function(s){return this.reverse()[n](s).reverse()}}),On(["filter","map","takeWhile"],function(n,i){var s=i+1,d=s==Be||s==me;We.prototype[n]=function(m){var y=this.clone();return y.__iteratees__.push({iteratee:Ie(m,3),type:s}),y.__filtered__=y.__filtered__||d,y}}),On(["head","last"],function(n,i){var s="take"+(i?"Right":"");We.prototype[n]=function(){return this[s](1).value()[0]}}),On(["initial","tail"],function(n,i){var s="drop"+(i?"":"Right");We.prototype[n]=function(){return this.__filtered__?new We(this):this[s](1)}}),We.prototype.compact=function(){return this.filter(ln)},We.prototype.find=function(n){return this.filter(n).head()},We.prototype.findLast=function(n){return this.reverse().find(n)},We.prototype.invokeMap=Me(function(n,i){return typeof n=="function"?new We(this):this.map(function(s){return Xu(s,n,i)})}),We.prototype.reject=function(n){return this.filter(Ms(Ie(n)))},We.prototype.slice=function(n,i){n=ke(n);var s=this;return s.__filtered__&&(n>0||i<0)?new We(s):(n<0?s=s.takeRight(-n):n&&(s=s.drop(n)),i!==r&&(i=ke(i),s=i<0?s.dropRight(-i):s.take(i-n)),s)},We.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},We.prototype.toArray=function(){return this.take(He)},nr(We.prototype,function(n,i){var s=/^(?:filter|find|map|reject)|While$/.test(i),d=/^(?:head|last)$/.test(i),m=v[d?"take"+(i=="last"?"Right":""):i],y=d||/^find/.test(i);m&&(v.prototype[i]=function(){var x=this.__wrapped__,O=d?[1]:arguments,G=x instanceof We,z=O[0],Y=G||Te(x),q=function(Ne){var Ye=m.apply(v,Gr([Ne],O));return d&&re?Ye[0]:Ye};Y&&s&&typeof z=="function"&&z.length!=1&&(G=Y=!1);var re=this.__chain__,fe=!!this.__actions__.length,Ce=y&&!re,De=G&&!fe;if(!y&&Y){x=De?x:new We(this);var xe=n.apply(x,O);return xe.__actions__.push({func:Rs,args:[q],thisArg:r}),new _n(xe,re)}return Ce&&De?n.apply(this,O):(xe=this.thru(q),Ce?d?xe.value()[0]:xe.value():xe)})}),On(["pop","push","shift","sort","splice","unshift"],function(n){var i=os[n],s=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",d=/^(?:pop|shift)$/.test(n);v.prototype[n]=function(){var m=arguments;if(d&&!this.__chain__){var y=this.value();return i.apply(Te(y)?y:[],m)}return this[s](function(x){return i.apply(Te(x)?x:[],m)})}}),nr(We.prototype,function(n,i){var s=v[i];if(s){var d=s.name+"";et.call(qi,d)||(qi[d]=[]),qi[d].push({name:i,func:s})}}),qi[Fs(r,P).name]=[{name:"wrapper",func:r}],We.prototype.clone=xA,We.prototype.reverse=AA,We.prototype.value=wA,v.prototype.at=KS,v.prototype.chain=eE,v.prototype.commit=tE,v.prototype.next=nE,v.prototype.plant=iE,v.prototype.reverse=uE,v.prototype.toJSON=v.prototype.valueOf=v.prototype.value=oE,v.prototype.first=v.prototype.head,ku&&(v.prototype[ku]=rE),v},ji=tA();xt?((xt.exports=ji)._=ji,st._=ji):Ze._=ji}).call(Ln)}(ho,ho.exports);var wI=ho.exports;const SI=Us(wI),pu=["$.service.db","$.interface.http","$.interface.apphook","$.interface.timer"],Ll=X.createContext(void 0),po=()=>{const e=X.useContext(Ll);if(!e)throw new Error("Must be used inside provider");return e},kd=({children:e,props:t})=>{const r=ur(),u=X.useId(),{component:o,configuredProps:l,propNames:a,userId:c,sdkResponse:f,enableDebugging:h}=t,p=o.key,[g,I]=X.useState(0),[b,S]=X.useState({}),[A,F]=X.useState(!1),[P,L]=X.useState({}),[k,V]=X.useState([]),[H]=X.useState(h===!0),[R,j]=X.useState({});X.useEffect(()=>{j({})},[o.key]);const N=ne=>R[ne.name];let Z=l||{};const[U,Q]=X.useState(Z),K=t.onUpdateConfiguredProps||Q;t.onUpdateConfiguredProps||(Z=U);const[he,Be]=X.useState(),[ie,me]=X.useState(),we={userId:c,componentId:p,configuredProps:Z,dynamicPropsId:he==null?void 0:he.id},Pe={...we},{isFetching:tt}=Zr({queryKey:["dynamicProps",Pe],queryFn:async()=>{var vt;const ne=await r.componentReloadProps(we),{dynamicProps:le,observations:de,errors:je}=ne;return de&&de.filter(yt=>yt.k==="error").length>0?hn(de):hn(je),le&&((vt=t.onUpdateDynamicProps)==null||vt.call(t,le),Be(le)),me(void 0),[]},enabled:ie!=null}),[E,He]=X.useState([]);X.useEffect(()=>{Bt()},[Z]);let be=(he==null?void 0:he.configurableProps)||t.component.configurable_props||[];if(a!=null&&a.length){const ne=[];for(const le of be)a.findIndex(de=>le.name===de)>=0&&ne.push(le);be=ne}ie!=null&&(be=be.slice(0,ie+1));const w=(ne,le)=>{const de=[];if(ne.optional||ne.hidden||ne.disabled||pu.includes(ne.type))return[];if(ne.type==="app"){const je=b[ne.name];if(je){const vt=je.extra.app;de.push(...AI({prop:ne,value:le,app:vt})??[])}else de.push("field not registered")}else ne.type==="boolean"?de.push(...yI({prop:ne,value:le})??[]):ne.type==="integer"?de.push(...II({prop:ne,value:le})??[]):ne.type==="string"?de.push(...CI({prop:ne,value:le})??[]):ne.type==="string[]"&&de.push(...vI({prop:ne,value:le})??[]);return de},ze=ne=>{let le;for(let de=0;de<be.length;de++){const je=be[de];if(je.hidden||je.optional&&!N(je))continue;if(ne[je.name]===void 0&&le==null&&(je.type==="app"||je.remoteOptions)){le=de;break}}I(le)},ve=ne=>{K(ne),ze(ne),Le(ne)},Le=ne=>{const le={};for(let de=0;de<be.length;de++){const je=be[de],vt=ne[je.name],yt=w(je,vt);yt.length&&(le[je.name]=yt)}L(le)};X.useEffect(()=>{ze(U)},[U]),X.useEffect(()=>{Le(Z)},[Z,ie,g]),X.useEffect(()=>{hn(f)},[f]),X.useEffect(()=>{const ne={};for(const le of be){if(le.hidden||pu.includes(le.type)||le.optional&&!N(le))continue;const de=Z[le.name];de===void 0?"default"in le&&le.default!=null&&(ne[le.name]=le.default):le.type==="integer"&&typeof de!="number"?delete ne[le.name]:ne[le.name]=de}Ly(ne,Z)||ve(ne)},[be]);const[Et,Ve]=X.useState(c);X.useEffect(()=>{Et!==c&&(ve({}),Ve(c))},[c]);const ft=(ne,le)=>{const de=be[ne],je={...Z};le===void 0?delete je[de.name]:je[de.name]=le,K(je),de.reloadProps&&me(ne),(de.type==="app"||de.remoteOptions)&&ze(je);const vt=w(de,le),yt={...P};vt.length?yt[de.name]=vt:delete yt[de.name],L(yt)},Zt=(ne,le)=>{const de={...R};le?de[ne.name]=!0:delete de[ne.name];const je=be.findIndex(vt=>vt.name===ne.name);le?(l==null?void 0:l[ne.name])!==void 0?ft(je,l[ne.name]):"default"in ne&&ne.default!=null&&ft(je,ne.default):ft(je,void 0),j(de)},Bt=()=>{const ne=[];for(const le of be){if(!le||le.optional||le.hidden||pu.includes(le.type))continue;const de=Z[le.name];w(le,de).length&&ne.push(le.name)}ne&&E&&SI.isEqual(ne,E)||He(ne)},Yt=ne=>{S(le=>(le[ne.prop.name]=ne,le)),Bt()},hn=ne=>{if(!ne)return;let le=[...k];const de=(nt,rt)=>{try{const $e=JSON.parse(nt),D={name:$e.name,message:$e.message};D.name&&D.message&&rt.push(D)}catch{}},je=(nt,rt)=>{const $e={name:nt.name,message:nt.message};$e.name&&$e.message&&rt.push($e)},vt=(nt,rt)=>{var D,ee;const $e={name:(D=nt.err)==null?void 0:D.name,message:(ee=nt.err)==null?void 0:ee.message};$e.name&&$e.message&&rt.push($e)},yt=(nt,rt)=>{const $e=nt.os||nt.observations;if(Array.isArray($e)&&$e.length>0)for(let D=0;D<$e.length;D++)$e[D].k==="error"&&vt($e[D],rt)},Dt=(nt,rt)=>{rt.push({name:nt.error,message:JSON.stringify(nt.details)})},Nn=(nt,rt)=>{var $e;try{const D=($e=JSON.parse(nt.message))==null?void 0:$e.data;D&&"observations"in D?yt(D,rt):D&&"error"in D&&"details"in D&&Dt(D,rt)}catch{}};if(Array.isArray(ne)&&ne.length>0)for(let nt=0;nt<ne.length;nt++){const rt=ne[nt];typeof rt=="string"?de(rt,le):typeof rt=="object"&&"name"in rt&&"message"in rt?je(rt,le):typeof rt=="object"&&rt.k==="error"&&vt(rt,le)}else typeof ne=="object"&&"os"in ne||"observations"in ne?yt(ne,le):typeof ne=="object"&&"message"in ne?Nn(ne,le):le=[];V(le)},Ct={id:u,isValid:!Object.keys(P).length,props:t,userId:c,component:o,configurableProps:be,configuredProps:Z,dynamicProps:he,dynamicPropsQueryIsFetching:tt,errors:P,fields:b,optionalPropIsEnabled:N,optionalPropSetEnabled:Zt,propsNeedConfiguring:E,queryDisabledIdx:g,registerField:Yt,setConfiguredProp:ft,setSubmitting:F,submitting:A,sdkErrors:k,enableDebugging:H};return $.jsx(Ll.Provider,{value:Ct,children:e})};function Yr(e){"@babel/helpers - typeof";return Yr=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},Yr(e)}function EI(e,t){if(Yr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var u=r.call(e,t||"default");if(Yr(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ld(e){var t=EI(e,"string");return Yr(t)=="symbol"?t:t+""}function gu(e,t,r){return(t=Ld(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);t&&(u=u.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,u)}return r}function pe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dd(Object(r),!0).forEach(function(u){gu(e,u,r[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dd(Object(r)).forEach(function(u){Object.defineProperty(e,u,Object.getOwnPropertyDescriptor(r,u))})}return e}function FI(e){if(Array.isArray(e))return e}function PI(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var u,o,l,a,c=[],f=!0,h=!1;try{if(l=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;f=!1}else for(;!(f=(u=l.call(r)).done)&&(c.push(u.value),c.length!==t);f=!0);}catch(p){h=!0,o=p}finally{try{if(!f&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(h)throw o}}return c}}function Dl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,u=Array(t);r<t;r++)u[r]=e[r];return u}function Md(e,t){if(e){if(typeof e=="string")return Dl(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Dl(e,t):void 0}}function OI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
41
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function or(e,t){return FI(e)||PI(e,t)||Md(e,t)||OI()}function TI(e,t){if(e==null)return{};var r={};for(var u in e)if({}.hasOwnProperty.call(e,u)){if(t.includes(u))continue;r[u]=e[u]}return r}function Un(e,t){if(e==null)return{};var r,u,o=TI(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(u=0;u<l.length;u++)r=l[u],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var
|
|
42
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xi(e){return MI(e)||NI(e)||Md(e)||VI()}function WI(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const XI=Math.min,HI=Math.max,mo=Math.round,bo=Math.floor,vo=e=>({x:e,y:e});function zI(e){const{x:t,y:r,width:u,height:o}=e;return{width:u,height:o,top:r,left:t,right:t+u,bottom:r+o,x:t,y:r}}function yo(){return typeof window<"u"}function Xd(e){return zd(e)?(e.nodeName||"").toLowerCase():"#document"}function sr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Hd(e){var t;return(t=(zd(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function zd(e){return yo()?e instanceof Node||e instanceof sr(e).Node:!1}function ZI(e){return yo()?e instanceof Element||e instanceof sr(e).Element:!1}function Nl(e){return yo()?e instanceof HTMLElement||e instanceof sr(e).HTMLElement:!1}function Zd(e){return!yo()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof sr(e).ShadowRoot}function Yd(e){const{overflow:t,overflowX:r,overflowY:u,display:o}=Vl(e);return/auto|scroll|overlay|hidden|clip/.test(t+u+r)&&!["inline","contents"].includes(o)}function YI(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function JI(e){return["html","body","#document"].includes(Xd(e))}function Vl(e){return sr(e).getComputedStyle(e)}function jI(e){if(Xd(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Zd(e)&&e.host||Hd(e);return Zd(t)?t.host:t}function Jd(e){const t=jI(e);return JI(t)?e.ownerDocument?e.ownerDocument.body:e.body:Nl(t)&&Yd(t)?t:Jd(t)}function Io(e,t,r){var u;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Jd(e),l=o===((u=e.ownerDocument)==null?void 0:u.body),a=sr(o);if(l){const c=Wl(a);return t.concat(a,a.visualViewport||[],Yd(o)?o:[],c&&r?Io(c):[])}return t.concat(o,Io(o,[],r))}function Wl(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function UI(e){const t=Vl(e);let r=parseFloat(t.width)||0,u=parseFloat(t.height)||0;const o=Nl(e),l=o?e.offsetWidth:r,a=o?e.offsetHeight:u,c=mo(r)!==l||mo(u)!==a;return c&&(r=l,u=a),{width:r,height:u,$:c}}function Xl(e){return ZI(e)?e:e.contextElement}function jd(e){const t=Xl(e);if(!Nl(t))return vo(1);const r=t.getBoundingClientRect(),{width:u,height:o,$:l}=UI(t);let a=(l?mo(r.width):r.width)/u,c=(l?mo(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const QI=vo(0);function qI(e){const t=sr(e);return!YI()||!t.visualViewport?QI:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function $I(e,t,r){return!1}function Ud(e,t,r,u){t===void 0&&(t=!1);const o=e.getBoundingClientRect(),l=Xl(e);let a=vo(1);t&&(a=jd(e));const c=$I()?qI(l):vo(0);let f=(o.left+c.x)/a.x,h=(o.top+c.y)/a.y,p=o.width/a.x,g=o.height/a.y;if(l){const I=sr(l),b=u;let S=I,A=Wl(S);for(;A&&u&&b!==S;){const F=jd(A),P=A.getBoundingClientRect(),L=Vl(A),k=P.left+(A.clientLeft+parseFloat(L.paddingLeft))*F.x,V=P.top+(A.clientTop+parseFloat(L.paddingTop))*F.y;f*=F.x,h*=F.y,p*=F.x,g*=F.y,f+=k,h+=V,S=sr(A),A=Wl(S)}}return zI({width:p,height:g,x:f,y:h})}function KI(e,t){let r=null,u;const o=Hd(e);function l(){var c;clearTimeout(u),(c=r)==null||c.disconnect(),r=null}function a(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),l();const{left:h,top:p,width:g,height:I}=e.getBoundingClientRect();if(c||t(),!g||!I)return;const b=bo(p),S=bo(o.clientWidth-(h+g)),A=bo(o.clientHeight-(p+I)),F=bo(h),L={rootMargin:-b+"px "+-S+"px "+-A+"px "+-F+"px",threshold:HI(0,XI(1,f))||1};let k=!0;function V(H){const R=H[0].intersectionRatio;if(R!==f){if(!k)return a();R?a(!1,R):u=setTimeout(()=>{a(!1,1e-7)},1e3)}k=!1}try{r=new IntersectionObserver(V,{...L,root:o.ownerDocument})}catch{r=new IntersectionObserver(V,L)}r.observe(e)}return a(!0),l}function e1(e,t,r,u){u===void 0&&(u={});const{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=u,h=Xl(e),p=o||l?[...h?Io(h):[],...Io(t)]:[];p.forEach(P=>{o&&P.addEventListener("scroll",r,{passive:!0}),l&&P.addEventListener("resize",r)});const g=h&&c?KI(h,r):null;let I=-1,b=null;a&&(b=new ResizeObserver(P=>{let[L]=P;L&&L.target===h&&b&&(b.unobserve(t),cancelAnimationFrame(I),I=requestAnimationFrame(()=>{var k;(k=b)==null||k.observe(t)})),r()}),h&&!f&&b.observe(h),b.observe(t));let S,A=f?Ud(e):null;f&&F();function F(){const P=Ud(e);A&&(P.x!==A.x||P.y!==A.y||P.width!==A.width||P.height!==A.height)&&r(),A=P,S=requestAnimationFrame(F)}return r(),()=>{var P;p.forEach(L=>{o&&L.removeEventListener("scroll",r),l&&L.removeEventListener("resize",r)}),g==null||g(),(P=b)==null||P.disconnect(),b=null,f&&cancelAnimationFrame(S)}}var Hl=X.useLayoutEffect,t1=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Co=function(){};function n1(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function r1(e,t){for(var r=arguments.length,u=new Array(r>2?r-2:0),o=2;o<r;o++)u[o-2]=arguments[o];var l=[].concat(u);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&l.push("".concat(n1(e,a)));return l.filter(function(c){return c}).map(function(c){return String(c).trim()}).join(" ")}var xo=function(t){return d1(t)?t.filter(Boolean):Yr(t)==="object"&&t!==null?[t]:[]},Qd=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 r=Un(t,t1);return pe({},r)},mt=function(t,r,u){var o=t.cx,l=t.getStyles,a=t.getClassNames,c=t.className;return{css:l(r,t),className:o(u??{},a(r,t),c)}};function Ao(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function i1(e){return Ao(e)?window.innerHeight:e.clientHeight}function qd(e){return Ao(e)?window.pageYOffset:e.scrollTop}function wo(e,t){if(Ao(e)){window.scrollTo(0,t);return}e.scrollTop=t}function u1(e){var t=getComputedStyle(e),r=t.position==="absolute",u=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),!(r&&t.position==="static")&&u.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}function o1(e,t,r,u){return r*((e=e/u-1)*e*e+1)+t}function So(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Co,o=qd(e),l=t-o,a=10,c=0;function f(){c+=a;var h=o1(c,o,l,r);wo(e,h),c<r?window.requestAnimationFrame(f):u(e)}f()}function $d(e,t){var r=e.getBoundingClientRect(),u=t.getBoundingClientRect(),o=t.offsetHeight/3;u.bottom+o>r.bottom?wo(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):u.top-o<r.top&&wo(e,Math.max(t.offsetTop-o,0))}function s1(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 Kd(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function l1(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var eh=!1,a1={get passive(){return eh=!0}},Eo=typeof window<"u"?window:{};Eo.addEventListener&&Eo.removeEventListener&&(Eo.addEventListener("p",Co,a1),Eo.removeEventListener("p",Co,!1));var c1=eh;function f1(e){return e!=null}function d1(e){return Array.isArray(e)}function mu(e,t,r){return e?t:r}function CP(e){return e}function xP(e){return e}var h1=function(t){for(var r=arguments.length,u=new Array(r>1?r-1:0),o=1;o<r;o++)u[o-1]=arguments[o];var l=Object.entries(t).filter(function(a){var c=or(a,1),f=c[0];return!u.includes(f)});return l.reduce(function(a,c){var f=or(c,2),h=f[0],p=f[1];return a[h]=p,a},{})},p1=["children","innerProps"],g1=["children","innerProps"];function m1(e){var t=e.maxHeight,r=e.menuEl,u=e.minHeight,o=e.placement,l=e.shouldScroll,a=e.isFixedPosition,c=e.controlHeight,f=u1(r),h={placement:"bottom",maxHeight:t};if(!r||!r.offsetParent)return h;var p=f.getBoundingClientRect(),g=p.height,I=r.getBoundingClientRect(),b=I.bottom,S=I.height,A=I.top,F=r.offsetParent.getBoundingClientRect(),P=F.top,L=a?window.innerHeight:i1(f),k=qd(f),V=parseInt(getComputedStyle(r).marginBottom,10),H=parseInt(getComputedStyle(r).marginTop,10),R=P-H,j=L-A,N=R+k,Z=g-k-A,U=b-L+k+V,Q=k+A-H,K=160;switch(o){case"auto":case"bottom":if(j>=S)return{placement:"bottom",maxHeight:t};if(Z>=S&&!a)return l&&So(f,U,K),{placement:"bottom",maxHeight:t};if(!a&&Z>=u||a&&j>=u){l&&So(f,U,K);var he=a?j-V:Z-V;return{placement:"bottom",maxHeight:he}}if(o==="auto"||a){var Be=t,ie=a?R:N;return ie>=u&&(Be=Math.min(ie-V-c,t)),{placement:"top",maxHeight:Be}}if(o==="bottom")return l&&wo(f,U),{placement:"bottom",maxHeight:t};break;case"top":if(R>=S)return{placement:"top",maxHeight:t};if(N>=S&&!a)return l&&So(f,Q,K),{placement:"top",maxHeight:t};if(!a&&N>=u||a&&R>=u){var me=t;return(!a&&N>=u||a&&R>=u)&&(me=a?R-H:N-H),l&&So(f,Q,K),{placement:"top",maxHeight:me}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return h}function b1(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var th=function(t){return t==="auto"?"bottom":t},v1=function(t,r){var u,o=t.placement,l=t.theme,a=l.borderRadius,c=l.spacing,f=l.colors;return pe((u={label:"menu"},gu(u,b1(o),"100%"),gu(u,"position","absolute"),gu(u,"width","100%"),gu(u,"zIndex",1),u),r?{}:{backgroundColor:f.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:c.menuGutter,marginTop:c.menuGutter})},nh=X.createContext(null),y1=function(t){var r=t.children,u=t.minMenuHeight,o=t.maxMenuHeight,l=t.menuPlacement,a=t.menuPosition,c=t.menuShouldScrollIntoView,f=t.theme,h=X.useContext(nh)||{},p=h.setPortalPlacement,g=X.useRef(null),I=X.useState(o),b=or(I,2),S=b[0],A=b[1],F=X.useState(null),P=or(F,2),L=P[0],k=P[1],V=f.spacing.controlHeight;return Hl(function(){var H=g.current;if(H){var R=a==="fixed",j=c&&!R,N=m1({maxHeight:o,menuEl:H,minHeight:u,placement:l,shouldScroll:j,isFixedPosition:R,controlHeight:V});A(N.maxHeight),k(N.placement),p==null||p(N.placement)}},[o,l,a,c,u,p,V]),r({ref:g,placerProps:pe(pe({},t),{},{placement:L||th(l),maxHeight:S})})},I1=function(t){var r=t.children,u=t.innerRef,o=t.innerProps;return ce.jsx("div",ye({},mt(t,"menu",{menu:!0}),{ref:u},o),r)},C1=I1,x1=function(t,r){var u=t.maxHeight,o=t.theme.spacing.baseUnit;return pe({maxHeight:u,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:o,paddingTop:o})},A1=function(t){var r=t.children,u=t.innerProps,o=t.innerRef,l=t.isMulti;return ce.jsx("div",ye({},mt(t,"menuList",{"menu-list":!0,"menu-list--is-multi":l}),{ref:o},u),r)},rh=function(t,r){var u=t.theme,o=u.spacing.baseUnit,l=u.colors;return pe({textAlign:"center"},r?{}:{color:l.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},w1=rh,S1=rh,E1=function(t){var r=t.children,u=r===void 0?"No options":r,o=t.innerProps,l=Un(t,p1);return ce.jsx("div",ye({},mt(pe(pe({},l),{},{children:u,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),u)},F1=function(t){var r=t.children,u=r===void 0?"Loading...":r,o=t.innerProps,l=Un(t,g1);return ce.jsx("div",ye({},mt(pe(pe({},l),{},{children:u,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),u)},P1=function(t){var r=t.rect,u=t.offset,o=t.position;return{left:r.left,position:o,top:u,width:r.width,zIndex:1}},O1=function(t){var r=t.appendTo,u=t.children,o=t.controlElement,l=t.innerProps,a=t.menuPlacement,c=t.menuPosition,f=X.useRef(null),h=X.useRef(null),p=X.useState(th(a)),g=or(p,2),I=g[0],b=g[1],S=X.useMemo(function(){return{setPortalPlacement:b}},[]),A=X.useState(null),F=or(A,2),P=F[0],L=F[1],k=X.useCallback(function(){if(o){var j=s1(o),N=c==="fixed"?0:window.pageYOffset,Z=j[I]+N;(Z!==(P==null?void 0:P.offset)||j.left!==(P==null?void 0:P.rect.left)||j.width!==(P==null?void 0:P.rect.width))&&L({offset:Z,rect:j})}},[o,c,I,P==null?void 0:P.offset,P==null?void 0:P.rect.left,P==null?void 0:P.rect.width]);Hl(function(){k()},[k]);var V=X.useCallback(function(){typeof h.current=="function"&&(h.current(),h.current=null),o&&f.current&&(h.current=e1(o,f.current,k,{elementResize:"ResizeObserver"in window}))},[o,k]);Hl(function(){V()},[V]);var H=X.useCallback(function(j){f.current=j,V()},[V]);if(!r&&c!=="fixed"||!P)return null;var R=ce.jsx("div",ye({ref:H},mt(pe(pe({},t),{},{offset:P.offset,position:c,rect:P.rect}),"menuPortal",{"menu-portal":!0}),l),u);return ce.jsx(nh.Provider,{value:S},r?Hs.createPortal(R,r):R)},T1=function(t){var r=t.isDisabled,u=t.isRtl;return{label:"container",direction:u?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},_1=function(t){var r=t.children,u=t.innerProps,o=t.isDisabled,l=t.isRtl;return ce.jsx("div",ye({},mt(t,"container",{"--is-disabled":o,"--is-rtl":l}),u),r)},B1=function(t,r){var u=t.theme.spacing,o=t.isMulti,l=t.hasValue,a=t.selectProps.controlShouldRenderValue;return pe({alignItems:"center",display:o&&l&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},r?{}:{padding:"".concat(u.baseUnit/2,"px ").concat(u.baseUnit*2,"px")})},G1=function(t){var r=t.children,u=t.innerProps,o=t.isMulti,l=t.hasValue;return ce.jsx("div",ye({},mt(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":l}),u),r)},R1=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},k1=function(t){var r=t.children,u=t.innerProps;return ce.jsx("div",ye({},mt(t,"indicatorsContainer",{indicators:!0}),u),r)},ih,L1=["size"],D1=["innerProps","isRtl","size"];function M1(){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 N1=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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09P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xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:M1},uh=function(t){var r=t.size,u=Un(t,L1);return ce.jsx("svg",ye({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:N1},u))},zl=function(t){return ce.jsx(uh,ye({size:20},t),ce.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"}))},oh=function(t){return ce.jsx(uh,ye({size:20},t),ce.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"}))},sh=function(t,r){var u=t.isFocused,o=t.theme,l=o.spacing.baseUnit,a=o.colors;return pe({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:u?a.neutral60:a.neutral20,padding:l*2,":hover":{color:u?a.neutral80:a.neutral40}})},V1=sh,W1=function(t){var r=t.children,u=t.innerProps;return ce.jsx("div",ye({},mt(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),u),r||ce.jsx(oh,null))},X1=sh,H1=function(t){var r=t.children,u=t.innerProps;return ce.jsx("div",ye({},mt(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),u),r||ce.jsx(zl,null))},z1=function(t,r){var u=t.isDisabled,o=t.theme,l=o.spacing.baseUnit,a=o.colors;return pe({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:u?a.neutral10:a.neutral20,marginBottom:l*2,marginTop:l*2})},Z1=function(t){var r=t.innerProps;return ce.jsx("span",ye({},r,mt(t,"indicatorSeparator",{"indicator-separator":!0})))},Y1=ce.keyframes(ih||(ih=WI([`
|
|
39
|
+
`)+$+`return __p
|
|
40
|
+
}`;var Me=fm(function(){return qe(y,fe+"return "+$).apply(r,x)});if(Me.source=$,yc(Me))throw Me;return Me}function mF(n){return tt(n).toLowerCase()}function bF(n){return tt(n).toUpperCase()}function vF(n,i,s){if(n=tt(n),n&&(s||i===r))return Ip(n);if(!n||!(i=bn(i)))return n;var d=Xn(n),m=Xn(i),y=Cp(d,m),x=xp(d,m)+1;return Nr(d,y,x).join("")}function yF(n,i,s){if(n=tt(n),n&&(s||i===r))return n.slice(0,wp(n)+1);if(!n||!(i=bn(i)))return n;var d=Xn(n),m=xp(d,Xn(i))+1;return Nr(d,0,m).join("")}function IF(n,i,s){if(n=tt(n),n&&(s||i===r))return n.replace(Pu,"");if(!n||!(i=bn(i)))return n;var d=Xn(n),m=Cp(d,Xn(i));return Nr(d,m).join("")}function CF(n,i){var s=Q,d=U;if(gt(i)){var m="separator"in i?i.separator:m;s="length"in i?De(i.length):s,d="omission"in i?bn(i.omission):d}n=tt(n);var y=n.length;if(Yi(n)){var x=Xn(n);y=x.length}if(s>=y)return n;var O=s-Ji(d);if(O<1)return d;var G=x?Nr(x,0,O).join(""):n.slice(0,O);if(m===r)return G+d;if(x&&(O+=G.length-O),Ic(m)){if(n.slice(O).search(m)){var z,Z=G;for(m.global||(m=La(m.source,tt(Fn.exec(m))+"g")),m.lastIndex=0;z=m.exec(Z);)var $=z.index;G=G.slice(0,$===r?O:$)}}else if(n.indexOf(bn(m),O)!=O){var re=G.lastIndexOf(m);re>-1&&(G=G.slice(0,re))}return G+d}function xF(n){return n=tt(n),n&&wu.test(n)?n.replace(ko,qx):n}var AF=eu(function(n,i,s){return n+(s?" ":"")+i.toUpperCase()}),Ac=dg("toUpperCase");function cm(n,i,s){return n=tt(n),i=s?r:i,i===r?Yx(n)?eA(n):Dx(n):n.match(i)||[]}var fm=We(function(n,i){try{return Gt(n,r,i)}catch(s){return yc(s)?s:new Fe(s)}}),wF=mr(function(n,i){return On(i,function(s){s=ir(s),pr(n,s,bc(n[s],n))}),n});function SF(n){var i=n==null?0:n.length,s=ve();return n=i?pt(n,function(d){if(typeof d[1]!="function")throw new Tn(a);return[s(d[0]),d[1]]}):[],We(function(d){for(var m=-1;++m<i;){var y=n[m];if(Gt(y[0],this,d))return Gt(y[1],this,d)}})}function EF(n){return qA(_n(n,g))}function wc(n){return function(){return n}}function FF(n,i){return n==null||n!==n?i:n}var PF=pg(),OF=pg(!0);function ln(n){return n}function Sc(n){return zp(typeof n=="function"?n:_n(n,g))}function TF(n){return Yp(_n(n,g))}function BF(n,i){return Jp(n,_n(i,g))}var _F=We(function(n,i){return function(s){return Xu(s,n,i)}}),GF=We(function(n,i){return function(s){return Xu(n,s,i)}});function Ec(n,i,s){var d=Rt(i),m=xs(i,d);s==null&&!(gt(i)&&(m.length||!d.length))&&(s=i,i=n,n=this,m=xs(i,Rt(i)));var y=!(gt(s)&&"chain"in s)||!!s.chain,x=vr(n);return On(m,function(O){var G=i[O];n[O]=G,x&&(n.prototype[O]=function(){var z=this.__chain__;if(y||z){var Z=n(this.__wrapped__),$=Z.__actions__=un(this.__actions__);return $.push({func:G,args:arguments,thisArg:n}),Z.__chain__=z,Z}return G.apply(n,Gr([this.value()],arguments))})}),n}function RF(){return Ze._===this&&(Ze._=oA),this}function Fc(){}function kF(n){return n=De(n),We(function(i){return jp(i,n)})}var LF=ic(pt),DF=ic(gp),MF=ic(Oa);function dm(n){return fc(n)?Ta(ir(n)):pw(n)}function NF(n){return function(i){return n==null?r:di(n,i)}}var VF=mg(),WF=mg(!0);function Pc(){return[]}function Oc(){return!1}function XF(){return{}}function HF(){return""}function zF(){return!0}function ZF(n,i){if(n=De(n),n<1||n>Oe)return[];var s=xe,d=Ht(n,xe);i=ve(i),n-=xe;for(var m=Ga(d,i);++s<n;)i(s);return m}function YF(n){return Be(n)?pt(n,ir):vn(n)?[n]:un(_g(tt(n)))}function JF(n){var i=++iA;return tt(n)+i}var jF=Ps(function(n,i){return n+i},0),UF=uc("ceil"),QF=Ps(function(n,i){return n/i},1),qF=uc("floor");function $F(n){return n&&n.length?Cs(n,ln,za):r}function KF(n,i){return n&&n.length?Cs(n,ve(i,2),za):r}function eP(n){return vp(n,ln)}function tP(n,i){return vp(n,ve(i,2))}function nP(n){return n&&n.length?Cs(n,ln,ja):r}function rP(n,i){return n&&n.length?Cs(n,ve(i,2),ja):r}var iP=Ps(function(n,i){return n*i},1),uP=uc("round"),oP=Ps(function(n,i){return n-i},0);function sP(n){return n&&n.length?_a(n,ln):0}function lP(n,i){return n&&n.length?_a(n,ve(i,2)):0}return v.after=TE,v.ary=Hg,v.assign=b2,v.assignIn=rm,v.assignInWith=Ws,v.assignWith=v2,v.at=y2,v.before=zg,v.bind=bc,v.bindAll=wF,v.bindKey=Zg,v.castArray=XE,v.chain=Vg,v.chunk=qw,v.compact=$w,v.concat=Kw,v.cond=SF,v.conforms=EF,v.constant=wc,v.countBy=sE,v.create=I2,v.curry=Yg,v.curryRight=Jg,v.debounce=jg,v.defaults=C2,v.defaultsDeep=x2,v.defer=BE,v.delay=_E,v.difference=eS,v.differenceBy=tS,v.differenceWith=nS,v.drop=rS,v.dropRight=iS,v.dropRightWhile=uS,v.dropWhile=oS,v.fill=sS,v.filter=aE,v.flatMap=dE,v.flatMapDeep=hE,v.flatMapDepth=pE,v.flatten=Lg,v.flattenDeep=lS,v.flattenDepth=aS,v.flip=GE,v.flow=PF,v.flowRight=OF,v.fromPairs=cS,v.functions=O2,v.functionsIn=T2,v.groupBy=gE,v.initial=dS,v.intersection=hS,v.intersectionBy=pS,v.intersectionWith=gS,v.invert=_2,v.invertBy=G2,v.invokeMap=bE,v.iteratee=Sc,v.keyBy=vE,v.keys=Rt,v.keysIn=sn,v.map=ks,v.mapKeys=k2,v.mapValues=L2,v.matches=TF,v.matchesProperty=BF,v.memoize=Ds,v.merge=D2,v.mergeWith=im,v.method=_F,v.methodOf=GF,v.mixin=Ec,v.negate=Ms,v.nthArg=kF,v.omit=M2,v.omitBy=N2,v.once=RE,v.orderBy=yE,v.over=LF,v.overArgs=kE,v.overEvery=DF,v.overSome=MF,v.partial=vc,v.partialRight=Ug,v.partition=IE,v.pick=V2,v.pickBy=um,v.property=dm,v.propertyOf=NF,v.pull=yS,v.pullAll=Mg,v.pullAllBy=IS,v.pullAllWith=CS,v.pullAt=xS,v.range=VF,v.rangeRight=WF,v.rearg=LE,v.reject=AE,v.remove=AS,v.rest=DE,v.reverse=gc,v.sampleSize=SE,v.set=X2,v.setWith=H2,v.shuffle=EE,v.slice=wS,v.sortBy=OE,v.sortedUniq=BS,v.sortedUniqBy=_S,v.split=dF,v.spread=ME,v.tail=GS,v.take=RS,v.takeRight=kS,v.takeRightWhile=LS,v.takeWhile=DS,v.tap=$S,v.throttle=NE,v.thru=Rs,v.toArray=em,v.toPairs=om,v.toPairsIn=sm,v.toPath=YF,v.toPlainObject=nm,v.transform=z2,v.unary=VE,v.union=MS,v.unionBy=NS,v.unionWith=VS,v.uniq=WS,v.uniqBy=XS,v.uniqWith=HS,v.unset=Z2,v.unzip=mc,v.unzipWith=Ng,v.update=Y2,v.updateWith=J2,v.values=ru,v.valuesIn=j2,v.without=zS,v.words=cm,v.wrap=WE,v.xor=ZS,v.xorBy=YS,v.xorWith=JS,v.zip=jS,v.zipObject=US,v.zipObjectDeep=QS,v.zipWith=qS,v.entries=om,v.entriesIn=sm,v.extend=rm,v.extendWith=Ws,Ec(v,v),v.add=jF,v.attempt=fm,v.camelCase=$2,v.capitalize=lm,v.ceil=UF,v.clamp=U2,v.clone=HE,v.cloneDeep=ZE,v.cloneDeepWith=YE,v.cloneWith=zE,v.conformsTo=JE,v.deburr=am,v.defaultTo=FF,v.divide=QF,v.endsWith=K2,v.eq=zn,v.escape=eF,v.escapeRegExp=tF,v.every=lE,v.find=cE,v.findIndex=Rg,v.findKey=A2,v.findLast=fE,v.findLastIndex=kg,v.findLastKey=w2,v.floor=qF,v.forEach=Wg,v.forEachRight=Xg,v.forIn=S2,v.forInRight=E2,v.forOwn=F2,v.forOwnRight=P2,v.get=Cc,v.gt=jE,v.gte=UE,v.has=B2,v.hasIn=xc,v.head=Dg,v.identity=ln,v.includes=mE,v.indexOf=fS,v.inRange=Q2,v.invoke=R2,v.isArguments=gi,v.isArray=Be,v.isArrayBuffer=QE,v.isArrayLike=on,v.isArrayLikeObject=xt,v.isBoolean=qE,v.isBuffer=Vr,v.isDate=$E,v.isElement=KE,v.isEmpty=e2,v.isEqual=t2,v.isEqualWith=n2,v.isError=yc,v.isFinite=r2,v.isFunction=vr,v.isInteger=Qg,v.isLength=Ns,v.isMap=qg,v.isMatch=i2,v.isMatchWith=u2,v.isNaN=o2,v.isNative=s2,v.isNil=a2,v.isNull=l2,v.isNumber=$g,v.isObject=gt,v.isObjectLike=It,v.isPlainObject=ju,v.isRegExp=Ic,v.isSafeInteger=c2,v.isSet=Kg,v.isString=Vs,v.isSymbol=vn,v.isTypedArray=nu,v.isUndefined=f2,v.isWeakMap=d2,v.isWeakSet=h2,v.join=mS,v.kebabCase=nF,v.last=Rn,v.lastIndexOf=bS,v.lowerCase=rF,v.lowerFirst=iF,v.lt=p2,v.lte=g2,v.max=$F,v.maxBy=KF,v.mean=eP,v.meanBy=tP,v.min=nP,v.minBy=rP,v.stubArray=Pc,v.stubFalse=Oc,v.stubObject=XF,v.stubString=HF,v.stubTrue=zF,v.multiply=iP,v.nth=vS,v.noConflict=RF,v.noop=Fc,v.now=Ls,v.pad=uF,v.padEnd=oF,v.padStart=sF,v.parseInt=lF,v.random=q2,v.reduce=CE,v.reduceRight=xE,v.repeat=aF,v.replace=cF,v.result=W2,v.round=uP,v.runInContext=B,v.sample=wE,v.size=FE,v.snakeCase=fF,v.some=PE,v.sortedIndex=SS,v.sortedIndexBy=ES,v.sortedIndexOf=FS,v.sortedLastIndex=PS,v.sortedLastIndexBy=OS,v.sortedLastIndexOf=TS,v.startCase=hF,v.startsWith=pF,v.subtract=oP,v.sum=sP,v.sumBy=lP,v.template=gF,v.times=ZF,v.toFinite=yr,v.toInteger=De,v.toLength=tm,v.toLower=mF,v.toNumber=kn,v.toSafeInteger=m2,v.toString=tt,v.toUpper=bF,v.trim=vF,v.trimEnd=yF,v.trimStart=IF,v.truncate=CF,v.unescape=xF,v.uniqueId=JF,v.upperCase=AF,v.upperFirst=Ac,v.each=Wg,v.eachRight=Xg,v.first=Dg,Ec(v,function(){var n={};return nr(v,function(i,s){rt.call(v.prototype,s)||(n[s]=i)}),n}(),{chain:!1}),v.VERSION=u,On(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){v[n].placeholder=v}),On(["drop","take"],function(n,i){He.prototype[n]=function(s){s=s===r?1:Tt(De(s),0);var d=this.__filtered__&&!i?new He(this):this.clone();return d.__filtered__?d.__takeCount__=Ht(s,d.__takeCount__):d.__views__.push({size:Ht(s,xe),type:n+(d.__dir__<0?"Right":"")}),d},He.prototype[n+"Right"]=function(s){return this.reverse()[n](s).reverse()}}),On(["filter","map","takeWhile"],function(n,i){var s=i+1,d=s==Se||s==pe;He.prototype[n]=function(m){var y=this.clone();return y.__iteratees__.push({iteratee:ve(m,3),type:s}),y.__filtered__=y.__filtered__||d,y}}),On(["head","last"],function(n,i){var s="take"+(i?"Right":"");He.prototype[n]=function(){return this[s](1).value()[0]}}),On(["initial","tail"],function(n,i){var s="drop"+(i?"":"Right");He.prototype[n]=function(){return this.__filtered__?new He(this):this[s](1)}}),He.prototype.compact=function(){return this.filter(ln)},He.prototype.find=function(n){return this.filter(n).head()},He.prototype.findLast=function(n){return this.reverse().find(n)},He.prototype.invokeMap=We(function(n,i){return typeof n=="function"?new He(this):this.map(function(s){return Xu(s,n,i)})}),He.prototype.reject=function(n){return this.filter(Ms(ve(n)))},He.prototype.slice=function(n,i){n=De(n);var s=this;return s.__filtered__&&(n>0||i<0)?new He(s):(n<0?s=s.takeRight(-n):n&&(s=s.drop(n)),i!==r&&(i=De(i),s=i<0?s.dropRight(-i):s.take(i-n)),s)},He.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},He.prototype.toArray=function(){return this.take(xe)},nr(He.prototype,function(n,i){var s=/^(?:filter|find|map|reject)|While$/.test(i),d=/^(?:head|last)$/.test(i),m=v[d?"take"+(i=="last"?"Right":""):i],y=d||/^find/.test(i);m&&(v.prototype[i]=function(){var x=this.__wrapped__,O=d?[1]:arguments,G=x instanceof He,z=O[0],Z=G||Be(x),$=function(Xe){var Ye=m.apply(v,Gr([Xe],O));return d&&re?Ye[0]:Ye};Z&&s&&typeof z=="function"&&z.length!=1&&(G=Z=!1);var re=this.__chain__,fe=!!this.__actions__.length,Ie=y&&!re,Me=G&&!fe;if(!y&&Z){x=Me?x:new He(this);var Ce=n.apply(x,O);return Ce.__actions__.push({func:Rs,args:[$],thisArg:r}),new Bn(Ce,re)}return Ie&&Me?n.apply(this,O):(Ce=this.thru($),Ie?d?Ce.value()[0]:Ce.value():Ce)})}),On(["pop","push","shift","sort","splice","unshift"],function(n){var i=os[n],s=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",d=/^(?:pop|shift)$/.test(n);v.prototype[n]=function(){var m=arguments;if(d&&!this.__chain__){var y=this.value();return i.apply(Be(y)?y:[],m)}return this[s](function(x){return i.apply(Be(x)?x:[],m)})}}),nr(He.prototype,function(n,i){var s=v[i];if(s){var d=s.name+"";rt.call(qi,d)||(qi[d]=[]),qi[d].push({name:i,func:s})}}),qi[Fs(r,P).name]=[{name:"wrapper",func:r}],He.prototype.clone=xA,He.prototype.reverse=AA,He.prototype.value=wA,v.prototype.at=KS,v.prototype.chain=eE,v.prototype.commit=tE,v.prototype.next=nE,v.prototype.plant=iE,v.prototype.reverse=uE,v.prototype.toJSON=v.prototype.valueOf=v.prototype.value=oE,v.prototype.first=v.prototype.head,ku&&(v.prototype[ku]=rE),v},ji=tA();Ct?((Ct.exports=ji)._=ji,st._=ji):Ze._=ji}).call(Ln)}(ho,ho.exports);var wI=ho.exports;const SI=Us(wI),pu=["$.service.db","$.interface.http","$.interface.apphook","$.interface.timer"],Ll=H.createContext(void 0),po=()=>{const e=H.useContext(Ll);if(!e)throw new Error("Must be used inside provider");return e},kd=({children:e,props:t})=>{const r=ur(),u=H.useId(),{component:o,configuredProps:l,propNames:a,userId:c,sdkResponse:f,enableDebugging:h}=t,p=o.key,[g,I]=H.useState(0),[b,S]=H.useState({}),[A,F]=H.useState(!1),[P,L]=H.useState({}),[k,N]=H.useState([]),[X,R]=H.useState({});H.useEffect(()=>{R({})},[o.key]);const Y=ne=>X[ne.name];let D=l||{};const[j,Q]=H.useState(D),U=t.onUpdateConfiguredProps||Q;t.onUpdateConfiguredProps||(D=j);const[q,be]=H.useState(),[Se,ue]=H.useState(),pe={userId:c,componentId:p,configuredProps:D,dynamicPropsId:q==null?void 0:q.id},Ee={...pe},{isFetching:Oe}=Zr({queryKey:["dynamicProps",Ee],queryFn:async()=>{var yt;const ne=await r.componentReloadProps(pe),{dynamicProps:oe,observations:ye,errors:Ge}=ne;return ye&&ye.filter(Bt=>Bt.k==="error").length>0?Dt(ye):Dt(Ge),oe&&((yt=t.onUpdateDynamicProps)==null||yt.call(t,oe),be(oe)),ue(void 0),[]},enabled:Se!=null}),[Ke,E]=H.useState([]);H.useEffect(()=>{Xt()},[D]);let xe=(q==null?void 0:q.configurableProps)||t.component.configurable_props||[];if(a!=null&&a.length){const ne=[];for(const oe of xe)a.findIndex(ye=>oe.name===ye)>=0&&ne.push(oe);xe=ne}Se!=null&&(xe=xe.slice(0,Se+1));const Le=(ne,oe)=>{const ye=[];if(ne.optional||ne.hidden||ne.disabled||pu.includes(ne.type))return[];if(ne.type==="app"){const Ge=b[ne.name];if(Ge){const yt=Ge.extra.app;ye.push(...AI({prop:ne,value:oe,app:yt})??[])}else ye.push("field not registered")}else ne.type==="boolean"?ye.push(...yI({prop:ne,value:oe})??[]):ne.type==="integer"?ye.push(...II({prop:ne,value:oe})??[]):ne.type==="string"?ye.push(...CI({prop:ne,value:oe})??[]):ne.type==="string[]"&&ye.push(...vI({prop:ne,value:oe})??[]);return ye},w=ne=>{let oe;for(let ye=0;ye<xe.length;ye++){const Ge=xe[ye];if(Ge.hidden||Ge.optional&&!Y(Ge))continue;if(ne[Ge.name]===void 0&&oe==null&&(Ge.type==="app"||Ge.remoteOptions)){oe=ye;break}}I(oe)},je=ne=>{U(ne),w(ne),ge(ne)},ge=ne=>{const oe={};for(let ye=0;ye<xe.length;ye++){const Ge=xe[ye],yt=ne[Ge.name],Bt=Le(Ge,yt);Bt.length&&(oe[Ge.name]=Bt)}L(oe)};H.useEffect(()=>{w(j)},[j]),H.useEffect(()=>{ge(D)},[D,Se,g]),H.useEffect(()=>{Dt(f)},[f]),H.useEffect(()=>{const ne={};for(const oe of xe){if(oe.hidden||pu.includes(oe.type)||oe.optional&&!Y(oe))continue;const ye=D[oe.name];ye===void 0?"default"in oe&&oe.default!=null&&(ne[oe.name]=oe.default):oe.type==="integer"&&typeof ye!="number"?delete ne[oe.name]:ne[oe.name]=ye}Ly(ne,D)||je(ne)},[xe]);const[Ne,St]=H.useState(c);H.useEffect(()=>{Ne!==c&&(je({}),St(c))},[c]);const Ve=(ne,oe)=>{const ye=xe[ne],Ge={...D};oe===void 0?delete Ge[ye.name]:Ge[ye.name]=oe,U(Ge),ye.reloadProps&&ue(ne),(ye.type==="app"||ye.remoteOptions)&&w(Ge);const yt=Le(ye,oe),Bt={...P};yt.length?Bt[ye.name]=yt:delete Bt[ye.name],L(Bt)},vt=(ne,oe)=>{const ye={...X};oe?ye[ne.name]=!0:delete ye[ne.name];const Ge=xe.findIndex(yt=>yt.name===ne.name);oe?(l==null?void 0:l[ne.name])!==void 0?Ve(Ge,l[ne.name]):"default"in ne&&ne.default!=null&&Ve(Ge,ne.default):Ve(Ge,void 0),R(ye)},Xt=()=>{const ne=[];for(const oe of xe){if(!oe||oe.optional||oe.hidden||pu.includes(oe.type))continue;const ye=D[oe.name];Le(oe,ye).length&&ne.push(oe.name)}ne&&Ke&&SI.isEqual(ne,Ke)||E(ne)},Lt=ne=>{S(oe=>(oe[ne.prop.name]=ne,oe)),Xt()},Dt=ne=>{if(!ne)return;let oe=[...k];const ye=(nt,Qe)=>{try{const ft=JSON.parse(nt),et={name:ft.name,message:ft.message};et.name&&et.message&&Qe.push(et)}catch{}},Ge=(nt,Qe)=>{const ft={name:nt.name,message:nt.message};ft.name&&ft.message&&Qe.push(ft)},yt=(nt,Qe)=>{var et,V;const ft={name:(et=nt.err)==null?void 0:et.name,message:(V=nt.err)==null?void 0:V.message};ft.name&&ft.message&&Qe.push(ft)},Bt=(nt,Qe)=>{const ft=nt.os||nt.observations;if(Array.isArray(ft)&&ft.length>0)for(let et=0;et<ft.length;et++)ft[et].k==="error"&&yt(ft[et],Qe)},Sn=(nt,Qe)=>{Qe.push({name:nt.error,message:JSON.stringify(nt.details)})},Mt=(nt,Qe)=>{var ft;try{const et=(ft=JSON.parse(nt.message))==null?void 0:ft.data;et&&"observations"in et?Bt(et,Qe):et&&"error"in et&&"details"in et&&Sn(et,Qe)}catch{}};if(Array.isArray(ne)&&ne.length>0)for(let nt=0;nt<ne.length;nt++){const Qe=ne[nt];typeof Qe=="string"?ye(Qe,oe):typeof Qe=="object"&&"name"in Qe&&"message"in Qe?Ge(Qe,oe):typeof Qe=="object"&&Qe.k==="error"&&yt(Qe,oe)}else typeof ne=="object"&&"os"in ne||"observations"in ne?Bt(ne,oe):typeof ne=="object"&&"message"in ne?Mt(ne,oe):oe=[];N(oe)},Nn={id:u,isValid:!Object.keys(P).length,props:t,userId:c,component:o,configurableProps:xe,configuredProps:D,dynamicProps:q,dynamicPropsQueryIsFetching:Oe,errors:P,fields:b,optionalPropIsEnabled:Y,optionalPropSetEnabled:vt,propsNeedConfiguring:Ke,queryDisabledIdx:g,registerField:Lt,setConfiguredProp:Ve,setSubmitting:F,submitting:A,sdkErrors:k,enableDebugging:h};return K.jsx(Ll.Provider,{value:Nn,children:e})};function Yr(e){"@babel/helpers - typeof";return Yr=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},Yr(e)}function EI(e,t){if(Yr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var u=r.call(e,t||"default");if(Yr(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ld(e){var t=EI(e,"string");return Yr(t)=="symbol"?t:t+""}function gu(e,t,r){return(t=Ld(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);t&&(u=u.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,u)}return r}function de(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dd(Object(r),!0).forEach(function(u){gu(e,u,r[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dd(Object(r)).forEach(function(u){Object.defineProperty(e,u,Object.getOwnPropertyDescriptor(r,u))})}return e}function FI(e){if(Array.isArray(e))return e}function PI(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var u,o,l,a,c=[],f=!0,h=!1;try{if(l=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;f=!1}else for(;!(f=(u=l.call(r)).done)&&(c.push(u.value),c.length!==t);f=!0);}catch(p){h=!0,o=p}finally{try{if(!f&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(h)throw o}}return c}}function Dl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,u=Array(t);r<t;r++)u[r]=e[r];return u}function Md(e,t){if(e){if(typeof e=="string")return Dl(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Dl(e,t):void 0}}function OI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
41
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function or(e,t){return FI(e)||PI(e,t)||Md(e,t)||OI()}function TI(e,t){if(e==null)return{};var r={};for(var u in e)if({}.hasOwnProperty.call(e,u)){if(t.includes(u))continue;r[u]=e[u]}return r}function Un(e,t){if(e==null)return{};var r,u,o=TI(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(u=0;u<l.length;u++)r=l[u],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var BI=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Nd(e){var t=e.defaultInputValue,r=t===void 0?"":t,u=e.defaultMenuIsOpen,o=u===void 0?!1:u,l=e.defaultValue,a=l===void 0?null:l,c=e.inputValue,f=e.menuIsOpen,h=e.onChange,p=e.onInputChange,g=e.onMenuClose,I=e.onMenuOpen,b=e.value,S=Un(e,BI),A=H.useState(c!==void 0?c:r),F=or(A,2),P=F[0],L=F[1],k=H.useState(f!==void 0?f:o),N=or(k,2),X=N[0],R=N[1],Y=H.useState(b!==void 0?b:a),D=or(Y,2),j=D[0],Q=D[1],U=H.useCallback(function(Oe,Ke){typeof h=="function"&&h(Oe,Ke),Q(Oe)},[h]),q=H.useCallback(function(Oe,Ke){var E;typeof p=="function"&&(E=p(Oe,Ke)),L(E!==void 0?E:Oe)},[p]),be=H.useCallback(function(){typeof I=="function"&&I(),R(!0)},[I]),Se=H.useCallback(function(){typeof g=="function"&&g(),R(!1)},[g]),ue=c!==void 0?c:P,pe=f!==void 0?f:X,Ee=b!==void 0?b:j;return de(de({},S),{},{inputValue:ue,menuIsOpen:pe,onChange:U,onInputChange:q,onMenuClose:Se,onMenuOpen:be,value:Ee})}function me(){return me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var u in r)({}).hasOwnProperty.call(r,u)&&(e[u]=r[u])}return e},me.apply(null,arguments)}function _I(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vd(e,t){for(var r=0;r<t.length;r++){var u=t[r];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,Ld(u.key),u)}}function GI(e,t,r){return t&&Vd(e.prototype,t),r&&Vd(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ml(e,t){return Ml=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,u){return r.__proto__=u,r},Ml(e,t)}function RI(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&&Ml(e,t)}function go(e){return go=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},go(e)}function Wd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Wd=function(){return!!e})()}function kI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LI(e,t){if(t&&(Yr(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kI(e)}function DI(e){var t=Wd();return function(){var r,u=go(e);if(t){var o=go(this).constructor;r=Reflect.construct(u,arguments,o)}else r=u.apply(this,arguments);return LI(this,r)}}function MI(e){if(Array.isArray(e))return Dl(e)}function NI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function VI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
42
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xi(e){return MI(e)||NI(e)||Md(e)||VI()}function WI(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const XI=Math.min,HI=Math.max,mo=Math.round,bo=Math.floor,vo=e=>({x:e,y:e});function zI(e){const{x:t,y:r,width:u,height:o}=e;return{width:u,height:o,top:r,left:t,right:t+u,bottom:r+o,x:t,y:r}}function yo(){return typeof window<"u"}function Xd(e){return zd(e)?(e.nodeName||"").toLowerCase():"#document"}function sr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Hd(e){var t;return(t=(zd(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function zd(e){return yo()?e instanceof Node||e instanceof sr(e).Node:!1}function ZI(e){return yo()?e instanceof Element||e instanceof sr(e).Element:!1}function Nl(e){return yo()?e instanceof HTMLElement||e instanceof sr(e).HTMLElement:!1}function Zd(e){return!yo()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof sr(e).ShadowRoot}function Yd(e){const{overflow:t,overflowX:r,overflowY:u,display:o}=Vl(e);return/auto|scroll|overlay|hidden|clip/.test(t+u+r)&&!["inline","contents"].includes(o)}function YI(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function JI(e){return["html","body","#document"].includes(Xd(e))}function Vl(e){return sr(e).getComputedStyle(e)}function jI(e){if(Xd(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Zd(e)&&e.host||Hd(e);return Zd(t)?t.host:t}function Jd(e){const t=jI(e);return JI(t)?e.ownerDocument?e.ownerDocument.body:e.body:Nl(t)&&Yd(t)?t:Jd(t)}function Io(e,t,r){var u;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Jd(e),l=o===((u=e.ownerDocument)==null?void 0:u.body),a=sr(o);if(l){const c=Wl(a);return t.concat(a,a.visualViewport||[],Yd(o)?o:[],c&&r?Io(c):[])}return t.concat(o,Io(o,[],r))}function Wl(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function UI(e){const t=Vl(e);let r=parseFloat(t.width)||0,u=parseFloat(t.height)||0;const o=Nl(e),l=o?e.offsetWidth:r,a=o?e.offsetHeight:u,c=mo(r)!==l||mo(u)!==a;return c&&(r=l,u=a),{width:r,height:u,$:c}}function Xl(e){return ZI(e)?e:e.contextElement}function jd(e){const t=Xl(e);if(!Nl(t))return vo(1);const r=t.getBoundingClientRect(),{width:u,height:o,$:l}=UI(t);let a=(l?mo(r.width):r.width)/u,c=(l?mo(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const QI=vo(0);function qI(e){const t=sr(e);return!YI()||!t.visualViewport?QI:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function $I(e,t,r){return!1}function Ud(e,t,r,u){t===void 0&&(t=!1);const o=e.getBoundingClientRect(),l=Xl(e);let a=vo(1);t&&(a=jd(e));const c=$I()?qI(l):vo(0);let f=(o.left+c.x)/a.x,h=(o.top+c.y)/a.y,p=o.width/a.x,g=o.height/a.y;if(l){const I=sr(l),b=u;let S=I,A=Wl(S);for(;A&&u&&b!==S;){const F=jd(A),P=A.getBoundingClientRect(),L=Vl(A),k=P.left+(A.clientLeft+parseFloat(L.paddingLeft))*F.x,N=P.top+(A.clientTop+parseFloat(L.paddingTop))*F.y;f*=F.x,h*=F.y,p*=F.x,g*=F.y,f+=k,h+=N,S=sr(A),A=Wl(S)}}return zI({width:p,height:g,x:f,y:h})}function KI(e,t){let r=null,u;const o=Hd(e);function l(){var c;clearTimeout(u),(c=r)==null||c.disconnect(),r=null}function a(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),l();const{left:h,top:p,width:g,height:I}=e.getBoundingClientRect();if(c||t(),!g||!I)return;const b=bo(p),S=bo(o.clientWidth-(h+g)),A=bo(o.clientHeight-(p+I)),F=bo(h),L={rootMargin:-b+"px "+-S+"px "+-A+"px "+-F+"px",threshold:HI(0,XI(1,f))||1};let k=!0;function N(X){const R=X[0].intersectionRatio;if(R!==f){if(!k)return a();R?a(!1,R):u=setTimeout(()=>{a(!1,1e-7)},1e3)}k=!1}try{r=new IntersectionObserver(N,{...L,root:o.ownerDocument})}catch{r=new IntersectionObserver(N,L)}r.observe(e)}return a(!0),l}function e1(e,t,r,u){u===void 0&&(u={});const{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=u,h=Xl(e),p=o||l?[...h?Io(h):[],...Io(t)]:[];p.forEach(P=>{o&&P.addEventListener("scroll",r,{passive:!0}),l&&P.addEventListener("resize",r)});const g=h&&c?KI(h,r):null;let I=-1,b=null;a&&(b=new ResizeObserver(P=>{let[L]=P;L&&L.target===h&&b&&(b.unobserve(t),cancelAnimationFrame(I),I=requestAnimationFrame(()=>{var k;(k=b)==null||k.observe(t)})),r()}),h&&!f&&b.observe(h),b.observe(t));let S,A=f?Ud(e):null;f&&F();function F(){const P=Ud(e);A&&(P.x!==A.x||P.y!==A.y||P.width!==A.width||P.height!==A.height)&&r(),A=P,S=requestAnimationFrame(F)}return r(),()=>{var P;p.forEach(L=>{o&&L.removeEventListener("scroll",r),l&&L.removeEventListener("resize",r)}),g==null||g(),(P=b)==null||P.disconnect(),b=null,f&&cancelAnimationFrame(S)}}var Hl=H.useLayoutEffect,t1=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Co=function(){};function n1(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function r1(e,t){for(var r=arguments.length,u=new Array(r>2?r-2:0),o=2;o<r;o++)u[o-2]=arguments[o];var l=[].concat(u);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&l.push("".concat(n1(e,a)));return l.filter(function(c){return c}).map(function(c){return String(c).trim()}).join(" ")}var xo=function(t){return d1(t)?t.filter(Boolean):Yr(t)==="object"&&t!==null?[t]:[]},Qd=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 r=Un(t,t1);return de({},r)},mt=function(t,r,u){var o=t.cx,l=t.getStyles,a=t.getClassNames,c=t.className;return{css:l(r,t),className:o(u??{},a(r,t),c)}};function Ao(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function i1(e){return Ao(e)?window.innerHeight:e.clientHeight}function qd(e){return Ao(e)?window.pageYOffset:e.scrollTop}function wo(e,t){if(Ao(e)){window.scrollTo(0,t);return}e.scrollTop=t}function u1(e){var t=getComputedStyle(e),r=t.position==="absolute",u=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),!(r&&t.position==="static")&&u.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}function o1(e,t,r,u){return r*((e=e/u-1)*e*e+1)+t}function So(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Co,o=qd(e),l=t-o,a=10,c=0;function f(){c+=a;var h=o1(c,o,l,r);wo(e,h),c<r?window.requestAnimationFrame(f):u(e)}f()}function $d(e,t){var r=e.getBoundingClientRect(),u=t.getBoundingClientRect(),o=t.offsetHeight/3;u.bottom+o>r.bottom?wo(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):u.top-o<r.top&&wo(e,Math.max(t.offsetTop-o,0))}function s1(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 Kd(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function l1(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var eh=!1,a1={get passive(){return eh=!0}},Eo=typeof window<"u"?window:{};Eo.addEventListener&&Eo.removeEventListener&&(Eo.addEventListener("p",Co,a1),Eo.removeEventListener("p",Co,!1));var c1=eh;function f1(e){return e!=null}function d1(e){return Array.isArray(e)}function mu(e,t,r){return e?t:r}function CP(e){return e}function xP(e){return e}var h1=function(t){for(var r=arguments.length,u=new Array(r>1?r-1:0),o=1;o<r;o++)u[o-1]=arguments[o];var l=Object.entries(t).filter(function(a){var c=or(a,1),f=c[0];return!u.includes(f)});return l.reduce(function(a,c){var f=or(c,2),h=f[0],p=f[1];return a[h]=p,a},{})},p1=["children","innerProps"],g1=["children","innerProps"];function m1(e){var t=e.maxHeight,r=e.menuEl,u=e.minHeight,o=e.placement,l=e.shouldScroll,a=e.isFixedPosition,c=e.controlHeight,f=u1(r),h={placement:"bottom",maxHeight:t};if(!r||!r.offsetParent)return h;var p=f.getBoundingClientRect(),g=p.height,I=r.getBoundingClientRect(),b=I.bottom,S=I.height,A=I.top,F=r.offsetParent.getBoundingClientRect(),P=F.top,L=a?window.innerHeight:i1(f),k=qd(f),N=parseInt(getComputedStyle(r).marginBottom,10),X=parseInt(getComputedStyle(r).marginTop,10),R=P-X,Y=L-A,D=R+k,j=g-k-A,Q=b-L+k+N,U=k+A-X,q=160;switch(o){case"auto":case"bottom":if(Y>=S)return{placement:"bottom",maxHeight:t};if(j>=S&&!a)return l&&So(f,Q,q),{placement:"bottom",maxHeight:t};if(!a&&j>=u||a&&Y>=u){l&&So(f,Q,q);var be=a?Y-N:j-N;return{placement:"bottom",maxHeight:be}}if(o==="auto"||a){var Se=t,ue=a?R:D;return ue>=u&&(Se=Math.min(ue-N-c,t)),{placement:"top",maxHeight:Se}}if(o==="bottom")return l&&wo(f,Q),{placement:"bottom",maxHeight:t};break;case"top":if(R>=S)return{placement:"top",maxHeight:t};if(D>=S&&!a)return l&&So(f,U,q),{placement:"top",maxHeight:t};if(!a&&D>=u||a&&R>=u){var pe=t;return(!a&&D>=u||a&&R>=u)&&(pe=a?R-X:D-X),l&&So(f,U,q),{placement:"top",maxHeight:pe}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return h}function b1(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var th=function(t){return t==="auto"?"bottom":t},v1=function(t,r){var u,o=t.placement,l=t.theme,a=l.borderRadius,c=l.spacing,f=l.colors;return de((u={label:"menu"},gu(u,b1(o),"100%"),gu(u,"position","absolute"),gu(u,"width","100%"),gu(u,"zIndex",1),u),r?{}:{backgroundColor:f.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:c.menuGutter,marginTop:c.menuGutter})},nh=H.createContext(null),y1=function(t){var r=t.children,u=t.minMenuHeight,o=t.maxMenuHeight,l=t.menuPlacement,a=t.menuPosition,c=t.menuShouldScrollIntoView,f=t.theme,h=H.useContext(nh)||{},p=h.setPortalPlacement,g=H.useRef(null),I=H.useState(o),b=or(I,2),S=b[0],A=b[1],F=H.useState(null),P=or(F,2),L=P[0],k=P[1],N=f.spacing.controlHeight;return Hl(function(){var X=g.current;if(X){var R=a==="fixed",Y=c&&!R,D=m1({maxHeight:o,menuEl:X,minHeight:u,placement:l,shouldScroll:Y,isFixedPosition:R,controlHeight:N});A(D.maxHeight),k(D.placement),p==null||p(D.placement)}},[o,l,a,c,u,p,N]),r({ref:g,placerProps:de(de({},t),{},{placement:L||th(l),maxHeight:S})})},I1=function(t){var r=t.children,u=t.innerRef,o=t.innerProps;return ce.jsx("div",me({},mt(t,"menu",{menu:!0}),{ref:u},o),r)},C1=I1,x1=function(t,r){var u=t.maxHeight,o=t.theme.spacing.baseUnit;return de({maxHeight:u,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:o,paddingTop:o})},A1=function(t){var r=t.children,u=t.innerProps,o=t.innerRef,l=t.isMulti;return ce.jsx("div",me({},mt(t,"menuList",{"menu-list":!0,"menu-list--is-multi":l}),{ref:o},u),r)},rh=function(t,r){var u=t.theme,o=u.spacing.baseUnit,l=u.colors;return de({textAlign:"center"},r?{}:{color:l.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},w1=rh,S1=rh,E1=function(t){var r=t.children,u=r===void 0?"No options":r,o=t.innerProps,l=Un(t,p1);return ce.jsx("div",me({},mt(de(de({},l),{},{children:u,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),u)},F1=function(t){var r=t.children,u=r===void 0?"Loading...":r,o=t.innerProps,l=Un(t,g1);return ce.jsx("div",me({},mt(de(de({},l),{},{children:u,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),u)},P1=function(t){var r=t.rect,u=t.offset,o=t.position;return{left:r.left,position:o,top:u,width:r.width,zIndex:1}},O1=function(t){var r=t.appendTo,u=t.children,o=t.controlElement,l=t.innerProps,a=t.menuPlacement,c=t.menuPosition,f=H.useRef(null),h=H.useRef(null),p=H.useState(th(a)),g=or(p,2),I=g[0],b=g[1],S=H.useMemo(function(){return{setPortalPlacement:b}},[]),A=H.useState(null),F=or(A,2),P=F[0],L=F[1],k=H.useCallback(function(){if(o){var Y=s1(o),D=c==="fixed"?0:window.pageYOffset,j=Y[I]+D;(j!==(P==null?void 0:P.offset)||Y.left!==(P==null?void 0:P.rect.left)||Y.width!==(P==null?void 0:P.rect.width))&&L({offset:j,rect:Y})}},[o,c,I,P==null?void 0:P.offset,P==null?void 0:P.rect.left,P==null?void 0:P.rect.width]);Hl(function(){k()},[k]);var N=H.useCallback(function(){typeof h.current=="function"&&(h.current(),h.current=null),o&&f.current&&(h.current=e1(o,f.current,k,{elementResize:"ResizeObserver"in window}))},[o,k]);Hl(function(){N()},[N]);var X=H.useCallback(function(Y){f.current=Y,N()},[N]);if(!r&&c!=="fixed"||!P)return null;var R=ce.jsx("div",me({ref:X},mt(de(de({},t),{},{offset:P.offset,position:c,rect:P.rect}),"menuPortal",{"menu-portal":!0}),l),u);return ce.jsx(nh.Provider,{value:S},r?Hs.createPortal(R,r):R)},T1=function(t){var r=t.isDisabled,u=t.isRtl;return{label:"container",direction:u?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},B1=function(t){var r=t.children,u=t.innerProps,o=t.isDisabled,l=t.isRtl;return ce.jsx("div",me({},mt(t,"container",{"--is-disabled":o,"--is-rtl":l}),u),r)},_1=function(t,r){var u=t.theme.spacing,o=t.isMulti,l=t.hasValue,a=t.selectProps.controlShouldRenderValue;return de({alignItems:"center",display:o&&l&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},r?{}:{padding:"".concat(u.baseUnit/2,"px ").concat(u.baseUnit*2,"px")})},G1=function(t){var r=t.children,u=t.innerProps,o=t.isMulti,l=t.hasValue;return ce.jsx("div",me({},mt(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":l}),u),r)},R1=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},k1=function(t){var r=t.children,u=t.innerProps;return ce.jsx("div",me({},mt(t,"indicatorsContainer",{indicators:!0}),u),r)},ih,L1=["size"],D1=["innerProps","isRtl","size"];function M1(){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 N1=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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0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MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:M1},uh=function(t){var r=t.size,u=Un(t,L1);return ce.jsx("svg",me({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:N1},u))},zl=function(t){return ce.jsx(uh,me({size:20},t),ce.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"}))},oh=function(t){return ce.jsx(uh,me({size:20},t),ce.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"}))},sh=function(t,r){var u=t.isFocused,o=t.theme,l=o.spacing.baseUnit,a=o.colors;return de({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:u?a.neutral60:a.neutral20,padding:l*2,":hover":{color:u?a.neutral80:a.neutral40}})},V1=sh,W1=function(t){var r=t.children,u=t.innerProps;return ce.jsx("div",me({},mt(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),u),r||ce.jsx(oh,null))},X1=sh,H1=function(t){var r=t.children,u=t.innerProps;return ce.jsx("div",me({},mt(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),u),r||ce.jsx(zl,null))},z1=function(t,r){var u=t.isDisabled,o=t.theme,l=o.spacing.baseUnit,a=o.colors;return de({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:u?a.neutral10:a.neutral20,marginBottom:l*2,marginTop:l*2})},Z1=function(t){var r=t.innerProps;return ce.jsx("span",me({},r,mt(t,"indicatorSeparator",{"indicator-separator":!0})))},Y1=ce.keyframes(ih||(ih=WI([`
|
|
43
43
|
0%, 80%, 100% { opacity: 0; }
|
|
44
44
|
40% { opacity: 1; }
|
|
45
|
-
`]))),J1=function(t,r){var u=t.isFocused,o=t.size,l=t.theme,a=l.colors,c=l.spacing.baseUnit;return pe({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},r?{}:{color:u?a.neutral60:a.neutral20,padding:c*2})},Zl=function(t){var r=t.delay,u=t.offset;return ce.jsx("span",{css:ce.css({animation:"".concat(Y1," 1s ease-in-out ").concat(r,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:u?"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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLF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t.size,l=o===void 0?4:o,a=Un(t,D1);return ce.jsx("div",ye({},mt(pe(pe({},a),{},{innerProps:r,isRtl:u,size:l}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),r),ce.jsx(Zl,{delay:0,offset:u}),ce.jsx(Zl,{delay:160,offset:!0}),ce.jsx(Zl,{delay:320,offset:!u}))},U1=function(t,r){var u=t.isDisabled,o=t.isFocused,l=t.theme,a=l.colors,c=l.borderRadius,f=l.spacing;return pe({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:f.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},r?{}:{backgroundColor:u?a.neutral5:a.neutral0,borderColor:u?a.neutral10:o?a.primary:a.neutral20,borderRadius:c,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:o?a.primary:a.neutral30}})},Q1=function(t){var r=t.children,u=t.isDisabled,o=t.isFocused,l=t.innerRef,a=t.innerProps,c=t.menuIsOpen;return ce.jsx("div",ye({ref:l},mt(t,"control",{control:!0,"control--is-disabled":u,"control--is-focused":o,"control--menu-is-open":c}),a,{"aria-disabled":u||void 0}),r)},q1=Q1,$1=["data"],K1=function(t,r){var u=t.theme.spacing;return r?{}:{paddingBottom:u.baseUnit*2,paddingTop:u.baseUnit*2}},eC=function(t){var r=t.children,u=t.cx,o=t.getStyles,l=t.getClassNames,a=t.Heading,c=t.headingProps,f=t.innerProps,h=t.label,p=t.theme,g=t.selectProps;return ce.jsx("div",ye({},mt(t,"group",{group:!0}),f),ce.jsx(a,ye({},c,{selectProps:g,theme:p,getStyles:o,getClassNames:l,cx:u}),h),ce.jsx("div",null,r))},tC=function(t,r){var u=t.theme,o=u.colors,l=u.spacing;return pe({label:"group",cursor:"default",display:"block"},r?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:l.baseUnit*3,paddingRight:l.baseUnit*3,textTransform:"uppercase"})},nC=function(t){var r=Qd(t);r.data;var u=Un(r,$1);return ce.jsx("div",ye({},mt(t,"groupHeading",{"group-heading":!0}),u))},rC=eC,iC=["innerRef","isDisabled","isHidden","inputClassName"],uC=function(t,r){var u=t.isDisabled,o=t.value,l=t.theme,a=l.spacing,c=l.colors;return pe(pe({visibility:u?"hidden":"visible",transform:o?"translateZ(0)":""},oC),r?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:c.neutral80})},lh={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},oC={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":pe({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},lh)},sC=function(t){return pe({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},lh)},lC=function(t){var r=t.cx,u=t.value,o=Qd(t),l=o.innerRef,a=o.isDisabled,c=o.isHidden,f=o.inputClassName,h=Un(o,iC);return ce.jsx("div",ye({},mt(t,"input",{"input-container":!0}),{"data-value":u||""}),ce.jsx("input",ye({className:r({input:!0},f),ref:l,style:sC(c),disabled:a},h)))},aC=lC,cC=function(t,r){var u=t.theme,o=u.spacing,l=u.borderRadius,a=u.colors;return pe({label:"multiValue",display:"flex",minWidth:0},r?{}:{backgroundColor:a.neutral10,borderRadius:l/2,margin:o.baseUnit/2})},fC=function(t,r){var u=t.theme,o=u.borderRadius,l=u.colors,a=t.cropWithEllipsis;return pe({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},r?{}:{borderRadius:o/2,color:l.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},dC=function(t,r){var u=t.theme,o=u.spacing,l=u.borderRadius,a=u.colors,c=t.isFocused;return pe({alignItems:"center",display:"flex"},r?{}:{borderRadius:l/2,backgroundColor:c?a.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},ah=function(t){var r=t.children,u=t.innerProps;return ce.jsx("div",u,r)},hC=ah,pC=ah;function gC(e){var t=e.children,r=e.innerProps;return ce.jsx("div",ye({role:"button"},r),t||ce.jsx(zl,{size:14}))}var mC=function(t){var r=t.children,u=t.components,o=t.data,l=t.innerProps,a=t.isDisabled,c=t.removeProps,f=t.selectProps,h=u.Container,p=u.Label,g=u.Remove;return ce.jsx(h,{data:o,innerProps:pe(pe({},mt(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),l),selectProps:f},ce.jsx(p,{data:o,innerProps:pe({},mt(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:f},r),ce.jsx(g,{data:o,innerProps:pe(pe({},mt(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(r||"option")},c),selectProps:f}))},bC=mC,vC=function(t,r){var u=t.isDisabled,o=t.isFocused,l=t.isSelected,a=t.theme,c=a.spacing,f=a.colors;return pe({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},r?{}:{backgroundColor:l?f.primary:o?f.primary25:"transparent",color:u?f.neutral20:l?f.neutral0:"inherit",padding:"".concat(c.baseUnit*2,"px ").concat(c.baseUnit*3,"px"),":active":{backgroundColor:u?void 0:l?f.primary:f.primary50}})},yC=function(t){var r=t.children,u=t.isDisabled,o=t.isFocused,l=t.isSelected,a=t.innerRef,c=t.innerProps;return ce.jsx("div",ye({},mt(t,"option",{option:!0,"option--is-disabled":u,"option--is-focused":o,"option--is-selected":l}),{ref:a,"aria-disabled":u},c),r)},IC=yC,CC=function(t,r){var u=t.theme,o=u.spacing,l=u.colors;return pe({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},r?{}:{color:l.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},xC=function(t){var r=t.children,u=t.innerProps;return ce.jsx("div",ye({},mt(t,"placeholder",{placeholder:!0}),u),r)},AC=xC,wC=function(t,r){var u=t.isDisabled,o=t.theme,l=o.spacing,a=o.colors;return pe({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r?{}:{color:u?a.neutral40:a.neutral80,marginLeft:l.baseUnit/2,marginRight:l.baseUnit/2})},SC=function(t){var r=t.children,u=t.isDisabled,o=t.innerProps;return ce.jsx("div",ye({},mt(t,"singleValue",{"single-value":!0,"single-value--is-disabled":u}),o),r)},EC=SC,bu={ClearIndicator:H1,Control:q1,DropdownIndicator:W1,DownChevron:oh,CrossIcon:zl,Group:rC,GroupHeading:nC,IndicatorsContainer:k1,IndicatorSeparator:Z1,Input:aC,LoadingIndicator:j1,Menu:C1,MenuList:A1,MenuPortal:O1,LoadingMessage:F1,NoOptionsMessage:E1,MultiValue:bC,MultiValueContainer:hC,MultiValueLabel:pC,MultiValueRemove:gC,Option:IC,Placeholder:AC,SelectContainer:_1,SingleValue:EC,ValueContainer:G1},FC=function(t){return pe(pe({},bu),t.components)},ch=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function PC(e,t){return!!(e===t||ch(e)&&ch(t))}function OC(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!PC(e[r],t[r]))return!1;return!0}function TC(e,t){t===void 0&&(t=OC);var r=null;function u(){for(var o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];if(r&&r.lastThis===this&&t(o,r.lastArgs))return r.lastResult;var a=e.apply(this,o);return r={lastResult:a,lastArgs:o,lastThis:this},a}return u.clear=function(){r=null},u}function _C(){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 BC=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:_C},GC=function(t){return ce.jsx("span",ye({css:BC},t))},fh=GC,RC={guidance:function(t){var r=t.isSearchable,u=t.isMulti,o=t.tabSelectsValue,l=t.context,a=t.isInitialFocus;switch(l){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(o?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(t["aria-label"]||"Select"," is focused ").concat(r?",type to refine list":"",", press Down to open the menu, ").concat(u?" 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 r=t.action,u=t.label,o=u===void 0?"":u,l=t.labels,a=t.isDisabled;switch(r){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(l.length>1?"s":""," ").concat(l.join(","),", selected.");case"select-option":return a?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(t){var r=t.context,u=t.focused,o=t.options,l=t.label,a=l===void 0?"":l,c=t.selectValue,f=t.isDisabled,h=t.isSelected,p=t.isAppleDevice,g=function(A,F){return A&&A.length?"".concat(A.indexOf(F)+1," of ").concat(A.length):""};if(r==="value"&&c)return"value ".concat(a," focused, ").concat(g(c,u),".");if(r==="menu"&&p){var I=f?" disabled":"",b="".concat(h?" selected":"").concat(I);return"".concat(a).concat(b,", ").concat(g(o,u),".")}return""},onFilter:function(t){var r=t.inputValue,u=t.resultsMessage;return"".concat(u).concat(r?" for search term "+r:"",".")}},kC=function(t){var r=t.ariaSelection,u=t.focusedOption,o=t.focusedValue,l=t.focusableOptions,a=t.isFocused,c=t.selectValue,f=t.selectProps,h=t.id,p=t.isAppleDevice,g=f.ariaLiveMessages,I=f.getOptionLabel,b=f.inputValue,S=f.isMulti,A=f.isOptionDisabled,F=f.isSearchable,P=f.menuIsOpen,L=f.options,k=f.screenReaderStatus,V=f.tabSelectsValue,H=f.isLoading,R=f["aria-label"],j=f["aria-live"],N=X.useMemo(function(){return pe(pe({},RC),g||{})},[g]),Z=X.useMemo(function(){var ie="";if(r&&N.onChange){var me=r.option,we=r.options,Pe=r.removedValue,tt=r.removedValues,E=r.value,He=function(Ve){return Array.isArray(Ve)?null:Ve},be=Pe||me||He(E),w=be?I(be):"",ze=we||tt||void 0,ve=ze?ze.map(I):[],Le=pe({isDisabled:be&&A(be,c),label:w,labels:ve},r);ie=N.onChange(Le)}return ie},[r,N,A,c,I]),U=X.useMemo(function(){var ie="",me=u||o,we=!!(u&&c&&c.includes(u));if(me&&N.onFocus){var Pe={focused:me,label:I(me),isDisabled:A(me,c),isSelected:we,options:l,context:me===u?"menu":"value",selectValue:c,isAppleDevice:p};ie=N.onFocus(Pe)}return ie},[u,o,I,A,N,l,c,p]),Q=X.useMemo(function(){var ie="";if(P&&L.length&&!H&&N.onFilter){var me=k({count:l.length});ie=N.onFilter({inputValue:b,resultsMessage:me})}return ie},[l,b,P,N,L,k,H]),K=(r==null?void 0:r.action)==="initial-input-focus",he=X.useMemo(function(){var ie="";if(N.guidance){var me=o?"value":P?"menu":"input";ie=N.guidance({"aria-label":R,context:me,isDisabled:u&&A(u,c),isMulti:S,isSearchable:F,tabSelectsValue:V,isInitialFocus:K})}return ie},[R,u,o,S,A,F,P,N,c,V,K]),Be=ce.jsx(X.Fragment,null,ce.jsx("span",{id:"aria-selection"},Z),ce.jsx("span",{id:"aria-focused"},U),ce.jsx("span",{id:"aria-results"},Q),ce.jsx("span",{id:"aria-guidance"},he));return ce.jsx(X.Fragment,null,ce.jsx(fh,{id:h},K&&Be),ce.jsx(fh,{"aria-live":j,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!K&&Be))},LC=kC,Yl=[{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źẑżžẓẕƶȥɀⱬꝣ"}],DC=new RegExp("["+Yl.map(function(e){return e.letters}).join("")+"]","g"),dh={},Jl=0;Jl<Yl.length;Jl++)for(var jl=Yl[Jl],Ul=0;Ul<jl.letters.length;Ul++)dh[jl.letters[Ul]]=jl.base;var hh=function(t){return t.replace(DC,function(r){return dh[r]})},MC=TC(hh),ph=function(t){return t.replace(/^\s+|\s+$/g,"")},NC=function(t){return"".concat(t.label," ").concat(t.value)},VC=function(t){return function(r,u){if(r.data.__isNew__)return!0;var o=pe({ignoreCase:!0,ignoreAccents:!0,stringify:NC,trim:!0,matchFrom:"any"},t),l=o.ignoreCase,a=o.ignoreAccents,c=o.stringify,f=o.trim,h=o.matchFrom,p=f?ph(u):u,g=f?ph(c(r)):c(r);return l&&(p=p.toLowerCase(),g=g.toLowerCase()),a&&(p=MC(p),g=hh(g)),h==="start"?g.substr(0,p.length)===p:g.indexOf(p)>-1}},WC=["innerRef"];function XC(e){var t=e.innerRef,r=Un(e,WC),u=h1(r,"onExited","in","enter","exit","appear");return ce.jsx("input",ye({ref:t},u,{css:ce.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+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2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preventDefault(),t.stopPropagation()};function zC(e){var t=e.isEnabled,r=e.onBottomArrive,u=e.onBottomLeave,o=e.onTopArrive,l=e.onTopLeave,a=X.useRef(!1),c=X.useRef(!1),f=X.useRef(0),h=X.useRef(null),p=X.useCallback(function(F,P){if(h.current!==null){var L=h.current,k=L.scrollTop,V=L.scrollHeight,H=L.clientHeight,R=h.current,j=P>0,N=V-H-k,Z=!1;N>P&&a.current&&(u&&u(F),a.current=!1),j&&c.current&&(l&&l(F),c.current=!1),j&&P>N?(r&&!a.current&&r(F),R.scrollTop=V,Z=!0,a.current=!0):!j&&-P>k&&(o&&!c.current&&o(F),R.scrollTop=0,Z=!0,c.current=!0),Z&&HC(F)}},[r,u,o,l]),g=X.useCallback(function(F){p(F,F.deltaY)},[p]),I=X.useCallback(function(F){f.current=F.changedTouches[0].clientY},[]),b=X.useCallback(function(F){var P=f.current-F.changedTouches[0].clientY;p(F,P)},[p]),S=X.useCallback(function(F){if(F){var P=c1?{passive:!1}:!1;F.addEventListener("wheel",g,P),F.addEventListener("touchstart",I,P),F.addEventListener("touchmove",b,P)}},[b,I,g]),A=X.useCallback(function(F){F&&(F.removeEventListener("wheel",g,!1),F.removeEventListener("touchstart",I,!1),F.removeEventListener("touchmove",b,!1))},[b,I,g]);return X.useEffect(function(){if(t){var F=h.current;return S(F),function(){A(F)}}},[t,S,A]),function(F){h.current=F}}var gh=["boxSizing","height","overflow","paddingRight","position"],mh={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function bh(e){e.cancelable&&e.preventDefault()}function vh(e){e.stopPropagation()}function yh(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;e===0?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function Ih(){return"ontouchstart"in window||navigator.maxTouchPoints}var Ch=!!(typeof window<"u"&&window.document&&window.document.createElement),vu=0,Ai={capture:!1,passive:!1};function ZC(e){var t=e.isEnabled,r=e.accountForScrollbars,u=r===void 0?!0:r,o=X.useRef({}),l=X.useRef(null),a=X.useCallback(function(f){if(Ch){var h=document.body,p=h&&h.style;if(u&&gh.forEach(function(S){var A=p&&p[S];o.current[S]=A}),u&&vu<1){var g=parseInt(o.current.paddingRight,10)||0,I=document.body?document.body.clientWidth:0,b=window.innerWidth-I+g||0;Object.keys(mh).forEach(function(S){var A=mh[S];p&&(p[S]=A)}),p&&(p.paddingRight="".concat(b,"px"))}h&&Ih()&&(h.addEventListener("touchmove",bh,Ai),f&&(f.addEventListener("touchstart",yh,Ai),f.addEventListener("touchmove",vh,Ai))),vu+=1}},[u]),c=X.useCallback(function(f){if(Ch){var h=document.body,p=h&&h.style;vu=Math.max(vu-1,0),u&&vu<1&&gh.forEach(function(g){var I=o.current[g];p&&(p[g]=I)}),h&&Ih()&&(h.removeEventListener("touchmove",bh,Ai),f&&(f.removeEventListener("touchstart",yh,Ai),f.removeEventListener("touchmove",vh,Ai)))}},[u]);return X.useEffect(function(){if(t){var f=l.current;return a(f),function(){c(f)}}},[t,a,c]),function(f){l.current=f}}function YC(){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 JC=function(t){var r=t.target;return r.ownerDocument.activeElement&&r.ownerDocument.activeElement.blur()},jC=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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3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uICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:YC};function UC(e){var t=e.children,r=e.lockEnabled,u=e.captureEnabled,o=u===void 0?!0:u,l=e.onBottomArrive,a=e.onBottomLeave,c=e.onTopArrive,f=e.onTopLeave,h=zC({isEnabled:o,onBottomArrive:l,onBottomLeave:a,onTopArrive:c,onTopLeave:f}),p=ZC({isEnabled:r}),g=function(b){h(b),p(b)};return ce.jsx(X.Fragment,null,r&&ce.jsx("div",{onClick:JC,css:jC}),t(g))}function QC(){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 qC=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:QC},$C=function(t){var r=t.name,u=t.onFocus;return ce.jsx("input",{required:!0,name:r,tabIndex:-1,"aria-hidden":"true",onFocus:u,css:qC,value:"",onChange:function(){}})},KC=$C;function Ql(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 ex(){return Ql(/^iPhone/i)}function xh(){return Ql(/^Mac/i)}function tx(){return Ql(/^iPad/i)||xh()&&navigator.maxTouchPoints>1}function nx(){return ex()||tx()}function rx(){return xh()||nx()}var ix=function(t){return t.label},Ah=function(t){return t.label},wh=function(t){return t.value},ux=function(t){return!!t.isDisabled},ox={clearIndicator:X1,container:T1,control:U1,dropdownIndicator:V1,group:K1,groupHeading:tC,indicatorsContainer:R1,indicatorSeparator:z1,input:uC,loadingIndicator:J1,loadingMessage:S1,menu:v1,menuList:x1,menuPortal:P1,multiValue:cC,multiValueLabel:fC,multiValueRemove:dC,noOptionsMessage:w1,option:vC,placeholder:CC,singleValue:wC,valueContainer:B1};function sx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=pe({},e);return Object.keys(t).forEach(function(u){var o=u;e[o]?r[o]=function(l,a){return t[o](e[o](l,a),a)}:r[o]=t[o]}),r}var lx={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%)"},ax=4,Sh=4,cx=38,fx=Sh*2,dx={baseUnit:Sh,controlHeight:cx,menuGutter:fx},yu={borderRadius:ax,colors:lx,spacing:dx},hx={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Kd(),captureMenuScroll:!Kd(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:VC(),formatGroupLabel:ix,getOptionLabel:Ah,getOptionValue:wh,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:ux,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!l1(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var r=t.count;return"".concat(r," result").concat(r!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Eh(e,t,r,u){var o=_h(e,t,r),l=Bh(e,t,r),a=Th(e,t),c=Po(e,t);return{type:"option",data:t,isDisabled:o,isSelected:l,label:a,value:c,index:u}}function Fo(e,t){return e.options.map(function(r,u){if("options"in r){var o=r.options.map(function(a,c){return Eh(e,a,t,c)}).filter(function(a){return Oh(e,a)});return o.length>0?{type:"group",data:r,options:o,index:u}:void 0}var l=Eh(e,r,t,u);return Oh(e,l)?l:void 0}).filter(f1)}function Fh(e){return e.reduce(function(t,r){return r.type==="group"?t.push.apply(t,xi(r.options.map(function(u){return u.data}))):t.push(r.data),t},[])}function Ph(e,t){return e.reduce(function(r,u){return u.type==="group"?r.push.apply(r,xi(u.options.map(function(o){return{data:o.data,id:"".concat(t,"-").concat(u.index,"-").concat(o.index)}}))):r.push({data:u.data,id:"".concat(t,"-").concat(u.index)}),r},[])}function px(e,t){return Fh(Fo(e,t))}function Oh(e,t){var r=e.inputValue,u=r===void 0?"":r,o=t.data,l=t.isSelected,a=t.label,c=t.value;return(!Rh(e)||!l)&&Gh(e,{label:a,value:c,data:o},u)}function gx(e,t){var r=e.focusedValue,u=e.selectValue,o=u.indexOf(r);if(o>-1){var l=t.indexOf(r);if(l>-1)return r;if(o<t.length)return t[o]}return null}function mx(e,t){var r=e.focusedOption;return r&&t.indexOf(r)>-1?r:t[0]}var ql=function(t,r){var u,o=(u=t.find(function(l){return l.data===r}))===null||u===void 0?void 0:u.id;return o||null},Th=function(t,r){return t.getOptionLabel(r)},Po=function(t,r){return t.getOptionValue(r)};function _h(e,t,r){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,r):!1}function Bh(e,t,r){if(r.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,r);var u=Po(e,t);return r.some(function(o){return Po(e,o)===u})}function Gh(e,t,r){return e.filterOption?e.filterOption(t,r):!0}var Rh=function(t){var r=t.hideSelectedOptions,u=t.isMulti;return r===void 0?u:r},bx=1,$l=function(e){RI(r,e);var t=DI(r);function r(u){var o;if(BI(this,r),o=t.call(this,u),o.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:""},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.isAppleDevice=rx(),o.controlRef=null,o.getControlRef=function(f){o.controlRef=f},o.focusedOptionRef=null,o.getFocusedOptionRef=function(f){o.focusedOptionRef=f},o.menuListRef=null,o.getMenuListRef=function(f){o.menuListRef=f},o.inputRef=null,o.getInputRef=function(f){o.inputRef=f},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(f,h){var p=o.props,g=p.onChange,I=p.name;h.name=I,o.ariaOnChange(f,h),g(f,h)},o.setValue=function(f,h,p){var g=o.props,I=g.closeMenuOnSelect,b=g.isMulti,S=g.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:S}),I&&(o.setState({inputIsHiddenAfterUpdate:!b}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(f,{action:h,option:p})},o.selectOption=function(f){var h=o.props,p=h.blurInputOnSelect,g=h.isMulti,I=h.name,b=o.state.selectValue,S=g&&o.isOptionSelected(f,b),A=o.isOptionDisabled(f,b);if(S){var F=o.getOptionValue(f);o.setValue(b.filter(function(P){return o.getOptionValue(P)!==F}),"deselect-option",f)}else if(!A)g?o.setValue([].concat(xi(b),[f]),"select-option",f):o.setValue(f,"select-option");else{o.ariaOnChange(f,{action:"select-option",option:f,name:I});return}p&&o.blurInput()},o.removeValue=function(f){var h=o.props.isMulti,p=o.state.selectValue,g=o.getOptionValue(f),I=p.filter(function(S){return o.getOptionValue(S)!==g}),b=mu(h,I,I[0]||null);o.onChange(b,{action:"remove-value",removedValue:f}),o.focusInput()},o.clearValue=function(){var f=o.state.selectValue;o.onChange(mu(o.props.isMulti,[],null),{action:"clear",removedValues:f})},o.popValue=function(){var f=o.props.isMulti,h=o.state.selectValue,p=h[h.length-1],g=h.slice(0,h.length-1),I=mu(f,g,g[0]||null);p&&o.onChange(I,{action:"pop-value",removedValue:p})},o.getFocusedOptionId=function(f){return ql(o.state.focusableOptionsWithIds,f)},o.getFocusableOptionsWithIds=function(){return Ph(Fo(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var f=arguments.length,h=new Array(f),p=0;p<f;p++)h[p]=arguments[p];return r1.apply(void 0,[o.props.classNamePrefix].concat(h))},o.getOptionLabel=function(f){return Th(o.props,f)},o.getOptionValue=function(f){return Po(o.props,f)},o.getStyles=function(f,h){var p=o.props.unstyled,g=ox[f](h,p);g.boxSizing="border-box";var I=o.props.styles[f];return I?I(g,h):g},o.getClassNames=function(f,h){var p,g;return(p=(g=o.props.classNames)[f])===null||p===void 0?void 0:p.call(g,h)},o.getElementId=function(f){return"".concat(o.state.instancePrefix,"-").concat(f)},o.getComponents=function(){return FC(o.props)},o.buildCategorizedOptions=function(){return Fo(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return Fh(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(f,h){o.setState({ariaSelection:pe({value:f},h)})},o.onMenuMouseDown=function(f){f.button===0&&(f.stopPropagation(),f.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(f){o.blockOptionHover=!1},o.onControlMouseDown=function(f){if(!f.defaultPrevented){var h=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?f.target.tagName!=="INPUT"&&f.target.tagName!=="TEXTAREA"&&o.onMenuClose():h&&o.openMenu("first"):(h&&(o.openAfterFocus=!0),o.focusInput()),f.target.tagName!=="INPUT"&&f.target.tagName!=="TEXTAREA"&&f.preventDefault()}},o.onDropdownIndicatorMouseDown=function(f){if(!(f&&f.type==="mousedown"&&f.button!==0)&&!o.props.isDisabled){var h=o.props,p=h.isMulti,g=h.menuIsOpen;o.focusInput(),g?(o.setState({inputIsHiddenAfterUpdate:!p}),o.onMenuClose()):o.openMenu("first"),f.preventDefault()}},o.onClearIndicatorMouseDown=function(f){f&&f.type==="mousedown"&&f.button!==0||(o.clearValue(),f.preventDefault(),o.openAfterFocus=!1,f.type==="touchend"?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(f){typeof o.props.closeMenuOnScroll=="boolean"?f.target instanceof HTMLElement&&Ao(f.target)&&o.props.onMenuClose():typeof o.props.closeMenuOnScroll=="function"&&o.props.closeMenuOnScroll(f)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(f){var h=f.touches,p=h&&h.item(0);p&&(o.initialTouchX=p.clientX,o.initialTouchY=p.clientY,o.userIsDragging=!1)},o.onTouchMove=function(f){var h=f.touches,p=h&&h.item(0);if(p){var g=Math.abs(p.clientX-o.initialTouchX),I=Math.abs(p.clientY-o.initialTouchY),b=5;o.userIsDragging=g>b||I>b}},o.onTouchEnd=function(f){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(f.target)&&o.menuListRef&&!o.menuListRef.contains(f.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(f){o.userIsDragging||o.onControlMouseDown(f)},o.onClearIndicatorTouchEnd=function(f){o.userIsDragging||o.onClearIndicatorMouseDown(f)},o.onDropdownIndicatorTouchEnd=function(f){o.userIsDragging||o.onDropdownIndicatorMouseDown(f)},o.handleInputChange=function(f){var h=o.props.inputValue,p=f.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(p,{action:"input-change",prevInputValue:h}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(f){o.props.onFocus&&o.props.onFocus(f),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(f){var h=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(f),o.onInputChange("",{action:"input-blur",prevInputValue:h}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(f){if(!(o.blockOptionHover||o.state.focusedOption===f)){var h=o.getFocusableOptions(),p=h.indexOf(f);o.setState({focusedOption:f,focusedOptionId:p>-1?o.getFocusedOptionId(f):null})}},o.shouldHideSelectedOptions=function(){return Rh(o.props)},o.onValueInputFocus=function(f){f.preventDefault(),f.stopPropagation(),o.focus()},o.onKeyDown=function(f){var h=o.props,p=h.isMulti,g=h.backspaceRemovesValue,I=h.escapeClearsValue,b=h.inputValue,S=h.isClearable,A=h.isDisabled,F=h.menuIsOpen,P=h.onKeyDown,L=h.tabSelectsValue,k=h.openMenuOnFocus,V=o.state,H=V.focusedOption,R=V.focusedValue,j=V.selectValue;if(!A&&!(typeof P=="function"&&(P(f),f.defaultPrevented))){switch(o.blockOptionHover=!0,f.key){case"ArrowLeft":if(!p||b)return;o.focusValue("previous");break;case"ArrowRight":if(!p||b)return;o.focusValue("next");break;case"Delete":case"Backspace":if(b)return;if(R)o.removeValue(R);else{if(!g)return;p?o.popValue():S&&o.clearValue()}break;case"Tab":if(o.isComposing||f.shiftKey||!F||!L||!H||k&&o.isOptionSelected(H,j))return;o.selectOption(H);break;case"Enter":if(f.keyCode===229)break;if(F){if(!H||o.isComposing)return;o.selectOption(H);break}return;case"Escape":F?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:b}),o.onMenuClose()):S&&I&&o.clearValue();break;case" ":if(b)return;if(!F){o.openMenu("first");break}if(!H)return;o.selectOption(H);break;case"ArrowUp":F?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":F?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!F)return;o.focusOption("pageup");break;case"PageDown":if(!F)return;o.focusOption("pagedown");break;case"Home":if(!F)return;o.focusOption("first");break;case"End":if(!F)return;o.focusOption("last");break;default:return}f.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++bx),o.state.selectValue=xo(u.value),u.menuIsOpen&&o.state.selectValue.length){var l=o.getFocusableOptionsWithIds(),a=o.buildFocusableOptions(),c=a.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=l,o.state.focusedOption=a[c],o.state.focusedOptionId=ql(l,a[c])}return o}return GI(r,[{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&&$d(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(o){var l=this.props,a=l.isDisabled,c=l.menuIsOpen,f=this.state.isFocused;(f&&!a&&o.isDisabled||f&&c&&!o.menuIsOpen)&&this.focusInput(),f&&a&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!f&&!a&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&($d(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(o,l){this.props.onInputChange(o,l)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var l=this,a=this.state,c=a.selectValue,f=a.isFocused,h=this.buildFocusableOptions(),p=o==="first"?0:h.length-1;if(!this.props.isMulti){var g=h.indexOf(c[0]);g>-1&&(p=g)}this.scrollToFocusedOptionOnUpdate=!(f&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:h[p],focusedOptionId:this.getFocusedOptionId(h[p])},function(){return l.onMenuOpen()})}},{key:"focusValue",value:function(o){var l=this.state,a=l.selectValue,c=l.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var f=a.indexOf(c);c||(f=-1);var h=a.length-1,p=-1;if(a.length){switch(o){case"previous":f===0?p=0:f===-1?p=h:p=f-1;break;case"next":f>-1&&f<h&&(p=f+1);break}this.setState({inputIsHidden:p!==-1,focusedValue:a[p]})}}}},{key:"focusOption",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",l=this.props.pageSize,a=this.state.focusedOption,c=this.getFocusableOptions();if(c.length){var f=0,h=c.indexOf(a);a||(h=-1),o==="up"?f=h>0?h-1:c.length-1:o==="down"?f=(h+1)%c.length:o==="pageup"?(f=h-l,f<0&&(f=0)):o==="pagedown"?(f=h+l,f>c.length-1&&(f=c.length-1)):o==="last"&&(f=c.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:c[f],focusedValue:null,focusedOptionId:this.getFocusedOptionId(c[f])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(yu):pe(pe({},yu),this.props.theme):yu}},{key:"getCommonProps",value:function(){var o=this.clearValue,l=this.cx,a=this.getStyles,c=this.getClassNames,f=this.getValue,h=this.selectOption,p=this.setValue,g=this.props,I=g.isMulti,b=g.isRtl,S=g.options,A=this.hasValue();return{clearValue:o,cx:l,getStyles:a,getClassNames:c,getValue:f,hasValue:A,isMulti:I,isRtl:b,options:S,selectOption:h,selectProps:g,setValue:p,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,l=o.isClearable,a=o.isMulti;return l===void 0?a:l}},{key:"isOptionDisabled",value:function(o,l){return _h(this.props,o,l)}},{key:"isOptionSelected",value:function(o,l){return Bh(this.props,o,l)}},{key:"filterOption",value:function(o,l){return Gh(this.props,o,l)}},{key:"formatOptionLabel",value:function(o,l){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,c=this.state.selectValue;return this.props.formatOptionLabel(o,{context:l,inputValue:a,selectValue:c})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{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 o=this.props,l=o.isDisabled,a=o.isSearchable,c=o.inputId,f=o.inputValue,h=o.tabIndex,p=o.form,g=o.menuIsOpen,I=o.required,b=this.getComponents(),S=b.Input,A=this.state,F=A.inputIsHidden,P=A.ariaSelection,L=this.commonProps,k=c||this.getElementId("input"),V=pe(pe(pe({"aria-autocomplete":"list","aria-expanded":g,"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":I,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},g&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?(P==null?void 0:P.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?Fe.createElement(S,ye({},L,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:k,innerRef:this.getInputRef,isDisabled:l,isHidden:F,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:h,form:p,type:"text",value:f},V)):Fe.createElement(XC,ye({id:k,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Co,onFocus:this.onInputFocus,disabled:l,tabIndex:h,inputMode:"none",form:p,value:""},V))}},{key:"renderPlaceholderOrValue",value:function(){var o=this,l=this.getComponents(),a=l.MultiValue,c=l.MultiValueContainer,f=l.MultiValueLabel,h=l.MultiValueRemove,p=l.SingleValue,g=l.Placeholder,I=this.commonProps,b=this.props,S=b.controlShouldRenderValue,A=b.isDisabled,F=b.isMulti,P=b.inputValue,L=b.placeholder,k=this.state,V=k.selectValue,H=k.focusedValue,R=k.isFocused;if(!this.hasValue()||!S)return P?null:Fe.createElement(g,ye({},I,{key:"placeholder",isDisabled:A,isFocused:R,innerProps:{id:this.getElementId("placeholder")}}),L);if(F)return V.map(function(N,Z){var U=N===H,Q="".concat(o.getOptionLabel(N),"-").concat(o.getOptionValue(N));return Fe.createElement(a,ye({},I,{components:{Container:c,Label:f,Remove:h},isFocused:U,isDisabled:A,key:Q,index:Z,removeProps:{onClick:function(){return o.removeValue(N)},onTouchEnd:function(){return o.removeValue(N)},onMouseDown:function(he){he.preventDefault()}},data:N}),o.formatOptionLabel(N,"value"))});if(P)return null;var j=V[0];return Fe.createElement(p,ye({},I,{data:j,isDisabled:A}),this.formatOptionLabel(j,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),l=o.ClearIndicator,a=this.commonProps,c=this.props,f=c.isDisabled,h=c.isLoading,p=this.state.isFocused;if(!this.isClearable()||!l||f||!this.hasValue()||h)return null;var g={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return Fe.createElement(l,ye({},a,{innerProps:g,isFocused:p}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),l=o.LoadingIndicator,a=this.commonProps,c=this.props,f=c.isDisabled,h=c.isLoading,p=this.state.isFocused;if(!l||!h)return null;var g={"aria-hidden":"true"};return Fe.createElement(l,ye({},a,{innerProps:g,isDisabled:f,isFocused:p}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),l=o.DropdownIndicator,a=o.IndicatorSeparator;if(!l||!a)return null;var c=this.commonProps,f=this.props.isDisabled,h=this.state.isFocused;return Fe.createElement(a,ye({},c,{isDisabled:f,isFocused:h}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),l=o.DropdownIndicator;if(!l)return null;var a=this.commonProps,c=this.props.isDisabled,f=this.state.isFocused,h={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return Fe.createElement(l,ye({},a,{innerProps:h,isDisabled:c,isFocused:f}))}},{key:"renderMenu",value:function(){var o=this,l=this.getComponents(),a=l.Group,c=l.GroupHeading,f=l.Menu,h=l.MenuList,p=l.MenuPortal,g=l.LoadingMessage,I=l.NoOptionsMessage,b=l.Option,S=this.commonProps,A=this.state.focusedOption,F=this.props,P=F.captureMenuScroll,L=F.inputValue,k=F.isLoading,V=F.loadingMessage,H=F.minMenuHeight,R=F.maxMenuHeight,j=F.menuIsOpen,N=F.menuPlacement,Z=F.menuPosition,U=F.menuPortalTarget,Q=F.menuShouldBlockScroll,K=F.menuShouldScrollIntoView,he=F.noOptionsMessage,Be=F.onMenuScrollToTop,ie=F.onMenuScrollToBottom;if(!j)return null;var me=function(w,ze){var ve=w.type,Le=w.data,Et=w.isDisabled,Ve=w.isSelected,ft=w.label,Zt=w.value,Bt=A===Le,Yt=Et?void 0:function(){return o.onOptionHover(Le)},hn=Et?void 0:function(){return o.selectOption(Le)},Ct="".concat(o.getElementId("option"),"-").concat(ze),ne={id:Ct,onClick:hn,onMouseMove:Yt,onMouseOver:Yt,tabIndex:-1,role:"option","aria-selected":o.isAppleDevice?void 0:Ve};return Fe.createElement(b,ye({},S,{innerProps:ne,data:Le,isDisabled:Et,isSelected:Ve,key:Ct,label:ft,type:ve,value:Zt,isFocused:Bt,innerRef:Bt?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(w.data,"menu"))},we;if(this.hasOptions())we=this.getCategorizedOptions().map(function(be){if(be.type==="group"){var w=be.data,ze=be.options,ve=be.index,Le="".concat(o.getElementId("group"),"-").concat(ve),Et="".concat(Le,"-heading");return Fe.createElement(a,ye({},S,{key:Le,data:w,options:ze,Heading:c,headingProps:{id:Et,data:be.data},label:o.formatGroupLabel(be.data)}),be.options.map(function(Ve){return me(Ve,"".concat(ve,"-").concat(Ve.index))}))}else if(be.type==="option")return me(be,"".concat(be.index))});else if(k){var Pe=V({inputValue:L});if(Pe===null)return null;we=Fe.createElement(g,S,Pe)}else{var tt=he({inputValue:L});if(tt===null)return null;we=Fe.createElement(I,S,tt)}var E={minMenuHeight:H,maxMenuHeight:R,menuPlacement:N,menuPosition:Z,menuShouldScrollIntoView:K},He=Fe.createElement(y1,ye({},S,E),function(be){var w=be.ref,ze=be.placerProps,ve=ze.placement,Le=ze.maxHeight;return Fe.createElement(f,ye({},S,E,{innerRef:w,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:k,placement:ve}),Fe.createElement(UC,{captureEnabled:P,onTopArrive:Be,onBottomArrive:ie,lockEnabled:Q},function(Et){return Fe.createElement(h,ye({},S,{innerRef:function(ft){o.getMenuListRef(ft),Et(ft)},innerProps:{role:"listbox","aria-multiselectable":S.isMulti,id:o.getElementId("listbox")},isLoading:k,maxHeight:Le,focusedOption:A}),we)}))});return U||Z==="fixed"?Fe.createElement(p,ye({},S,{appendTo:U,controlElement:this.controlRef,menuPlacement:N,menuPosition:Z}),He):He}},{key:"renderFormField",value:function(){var o=this,l=this.props,a=l.delimiter,c=l.isDisabled,f=l.isMulti,h=l.name,p=l.required,g=this.state.selectValue;if(p&&!this.hasValue()&&!c)return Fe.createElement(KC,{name:h,onFocus:this.onValueInputFocus});if(!(!h||c))if(f)if(a){var I=g.map(function(A){return o.getOptionValue(A)}).join(a);return Fe.createElement("input",{name:h,type:"hidden",value:I})}else{var b=g.length>0?g.map(function(A,F){return Fe.createElement("input",{key:"i-".concat(F),name:h,type:"hidden",value:o.getOptionValue(A)})}):Fe.createElement("input",{name:h,type:"hidden",value:""});return Fe.createElement("div",null,b)}else{var S=g[0]?this.getOptionValue(g[0]):"";return Fe.createElement("input",{name:h,type:"hidden",value:S})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,l=this.state,a=l.ariaSelection,c=l.focusedOption,f=l.focusedValue,h=l.isFocused,p=l.selectValue,g=this.getFocusableOptions();return Fe.createElement(LC,ye({},o,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:c,focusedValue:f,isFocused:h,selectValue:p,focusableOptions:g,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),l=o.Control,a=o.IndicatorsContainer,c=o.SelectContainer,f=o.ValueContainer,h=this.props,p=h.className,g=h.id,I=h.isDisabled,b=h.menuIsOpen,S=this.state.isFocused,A=this.commonProps=this.getCommonProps();return Fe.createElement(c,ye({},A,{className:p,innerProps:{id:g,onKeyDown:this.onKeyDown},isDisabled:I,isFocused:S}),this.renderLiveRegion(),Fe.createElement(l,ye({},A,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:I,isFocused:S,menuIsOpen:b}),Fe.createElement(f,ye({},A,{isDisabled:I}),this.renderPlaceholderOrValue(),this.renderInput()),Fe.createElement(a,ye({},A,{isDisabled:I}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,l){var a=l.prevProps,c=l.clearFocusValueOnUpdate,f=l.inputIsHiddenAfterUpdate,h=l.ariaSelection,p=l.isFocused,g=l.prevWasFocused,I=l.instancePrefix,b=o.options,S=o.value,A=o.menuIsOpen,F=o.inputValue,P=o.isMulti,L=xo(S),k={};if(a&&(S!==a.value||b!==a.options||A!==a.menuIsOpen||F!==a.inputValue)){var V=A?px(o,L):[],H=A?Ph(Fo(o,L),"".concat(I,"-option")):[],R=c?gx(l,L):null,j=mx(l,V),N=ql(H,j);k={selectValue:L,focusedOption:j,focusedOptionId:N,focusableOptionsWithIds:H,focusedValue:R,clearFocusValueOnUpdate:!1}}var Z=f!=null&&o!==a?{inputIsHidden:f,inputIsHiddenAfterUpdate:void 0}:{},U=h,Q=p&&g;return p&&!Q&&(U={value:mu(P,L,L[0]||null),options:L,action:"initial-input-focus"},Q=!g),(h==null?void 0:h.action)==="initial-input-focus"&&(U=null),pe(pe(pe({},k),Z),{},{prevProps:o,ariaSelection:U,prevWasFocused:Q})}}]),r}(X.Component);$l.defaultProps=hx;var vx=X.forwardRef(function(e,t){var r=Nd(e);return Fe.createElement($l,ye({ref:t},r))}),Oo=vx;const yx=yu,To={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}},kh={colors:{},spacing:{baseUnit:4,controlHeight:32,menuGutter:8},boxShadow:{button:"none",input:"none",card:"none",dropdown:"none"}};function Lh(e){if(!e)return yu;const t=typeof e=="function"?e(To):e,{colors:r,spacing:u,borderRadius:o}=_o(yx,t);return{borderRadius:o,colors:r,spacing:u}}function _o(e,...t){const r={borderRadius:e.borderRadius,colors:{...e.colors},spacing:{...e.spacing},boxShadow:{...e.boxShadow}};for(const u of t)u&&(r.borderRadius=u.borderRadius??r.borderRadius,Object.assign(r.boxShadow,u.boxShadow),Object.assign(r.colors,u.colors),Object.assign(r.spacing,u.spacing));return r}function Dh(e){const{field:t,markdown:r}=e,{prop:u}=t,{getClassNames:o,getStyles:l,theme:a}=fn(),c={color:a.colors.neutral50,fontWeight:400,fontSize:"0.75rem",gridArea:"description",textWrap:"balance",lineHeight:"1.5"};return u.type==="app"?$.jsx("p",{className:o("description",e),style:l("description",c,e),children:"Credentials are encrypted."}):u.description?$.jsxs("div",{className:o("description",e),style:l("description",c,e),children:[" ",$.jsx(hd,{components:{a:({...f})=>$.jsx("a",{...f,target:"_blank",rel:"noopener noreferrer"})},children:r})]}):null}function Mh(e){const{field:t}=e,{errors:r={},prop:u={},enableDebugging:o}=t;if(!o||!r[u.name])return null;const l=r[u.name].map(f=>({type:"alert",alertType:"error",content:f})),a={display:"grid",gridTemplateColumns:"max-content"},c=()=>$.jsx($.Fragment,{children:l.map((f,h)=>$.jsx(so,{prop:f},h))});return $.jsx("div",{className:"pd-errors",style:a,children:$.jsx(c,{})})}function Nh(e){const{text:t,field:r}=e,{id:u}=r,{getProps:o,theme:l}=fn(),a={color:l.colors.neutral90,fontWeight:450,gridArea:"label",lineHeight:"1.5"};return $.jsx("label",{htmlFor:u,...o("label",a,e),children:t})}const Vh=e=>{const{prop:t,enabled:r,onClick:u}=e,{getProps:o,theme:l}=fn(),a={color:l.colors.neutral60,display:"inline-flex",alignItems:"center",padding:`${l.spacing.baseUnit}px ${l.spacing.baseUnit*1.5}px ${l.spacing.baseUnit}px ${l.spacing.baseUnit*2.5}px`,border:`1px solid ${l.colors.neutral30}`,borderRadius:l.borderRadius,cursor:"pointer",fontSize:"0.8125rem",fontWeight:450,gap:l.spacing.baseUnit*2,textWrap:"nowrap"};return $.jsxs("button",{onClick:u,type:"button",...o("optionalFieldButton",a,e),children:[$.jsx("span",{children:r?"-":"+"}),$.jsx("span",{style:{marginRight:8},children:t.label||t.name})]})},Wh=e=>{const{onChange:t}=e,{getProps:r,theme:u}=fn(),o={backgroundColor:u.colors.primary,borderRadius:u.borderRadius,border:"solid 1px",borderColor:u.colors.primary25,color:u.colors.primary25,padding:"0.5rem",fontSize:"0.8125rem",fontWeight:"450",gridArea:"control",cursor:"pointer",width:"100%"};return $.jsx("button",{onClick:t,type:"button",...r("loadMoreButton",o,e),children:"Load More"})},Xh={Description:Dh,Errors:Mh,Label:Nh,OptionalFieldButton:Vh,Button:Wh},Bo=X.createContext({classNames:{},classNamePrefix:"",components:{},styles:{},theme:To,unstyled:!1});function Ix(){const e=X.useContext(Bo)??{},t=Lh(e.theme??{});function r(){return e.classNamePrefix??""}function u(c){var p;const f=`${(e==null?void 0:e.classNamePrefix)??"pd-"}${c}`,h={...((p=e.classNames)==null?void 0:p[c])??{}};return typeof(h==null?void 0:h.container)=="function"&&(h.container=typeof(h==null?void 0:h.container)=="function"?(...g)=>{var I;return[(I=h==null?void 0:h.container)==null?void 0:I.call(h,...g),f].join(" ")}:()=>f),h}function o(c,f){var h;return{...bu,...f??{},...((h=e==null?void 0:e.components)==null?void 0:h[c])??{}}}function l(c,f){var h;return sx(((h=e.styles)==null?void 0:h[c])??{},f??{})}function a(c,f){return{classNamePrefix:r(),classNames:u(c),components:o(c,f==null?void 0:f.components),styles:l(c,f==null?void 0:f.styles),theme:t}}return{getClassNamePrefix:r,getClassNames:u,getComponents:o,getProps:a,getStyles:l,theme:t}}function fn(){const e=X.useContext(Bo)??{},t=e.theme,r=e.unstyled?kh:To,u=typeof t=="function"?_o(r,t(r)):_o(r,t);function o(f,h){var I;const p=`${(e==null?void 0:e.classNamePrefix)??"pd-"}${f.toLowerCase()}`,g=(I=e.classNames)==null?void 0:I[f];if(typeof g=="function"){const b=g,S={...h??{},theme:u};return[p,b(S)].filter(Boolean).join(" ")}return[p,g].filter(Boolean).join(" ")}function l(){return{...Xh,...(e==null?void 0:e.components)??{}}}function a(f,h,p){var I;const g=(I=e.styles)==null?void 0:I[f];if(typeof g=="function"){const b=g,S={...p??{},theme:u};return b(h,S)}return g?{...h,...g}:h}function c(f,h,p){return{className:o(f,p),style:a(f,h,p)}}return{getClassNames:o,getComponents:l,getProps:c,getStyles:a,select:Ix(),theme:u}}const Cx=({children:e,...t})=>$.jsx(Bo.Provider,{value:t,children:e}),Kl=X.createContext(void 0),Jr=()=>{const e=X.useContext(Kl);if(!e)throw new Error("Must be used inside FormFieldContext.Provider");return e},Hh=(e,t)=>{var o;const r=ur(),u=Zr({...t==null?void 0:t.useQueryOpts,queryKey:["accounts",e],queryFn:()=>r.getAccounts(e)});return{...u,accounts:((o=u.data)==null?void 0:o.data)||[]}},xx=e=>$.jsx(bu.Option,{...e,children:e.data.name});function zh({app:e}){const t=ur(),r=Jr(),{id:u,prop:o,value:l,onChange:a}=r,{getProps:c,select:f,theme:h}=fn(),p={color:h.colors.neutral60,gridArea:"control"},g={backgroundColor:h.colors.primary,borderRadius:h.borderRadius,border:"solid 1px",borderColor:h.colors.primary25,color:h.colors.primary25,padding:"0.25rem 0.5rem",gridArea:"control"},I={components:{Option:xx},styles:{control:V=>({...V,gridArea:"control",boxShadow:h.boxShadow.input})}},b=f.getProps("controlAppSelect",I),S=void 0,{isLoading:A,accounts:F,refetch:P}=Hh({app:e.name_slug,oauth_app_id:S},{useQueryOpts:{enabled:!!e,suspense:!!e}}),L=async()=>{t.connectAccount({app:o.app,oauthAppId:S,onSuccess:async V=>{await P(),a({authProvisionId:V.id})},onError:()=>{}})},k=X.useMemo(()=>{let V=l;if(V!=null){for(const H of F)if(V.authProvisionId===H.id){V=H;break}}return V},[F,l]);return $.jsx("div",{...c("controlApp",p,{app:e,...r}),children:A?`Loading ${e.name} accounts...`:F.length?$.jsx(Oo,{instanceId:u,value:k,options:[...F,{id:"_new",name:`Connect new ${e.name} account...`}],...b,required:!0,placeholder:`Select ${e.name} account...`,isLoading:A,isClearable:!0,isSearchable:!0,getOptionLabel:V=>V.name,getOptionValue:V=>V.id,onChange:V=>{V?V.id==="_new"?L():a({authProvisionId:V.id}):a(void 0)}}):$.jsxs("button",{type:"button",...c("connectButton",g,{app:e,...r}),onClick:()=>L(),children:["Connect ",e.name]})})}function Zh(){const e=Jr(),{id:t,value:r,onChange:u}=e,{getProps:o}=fn(),l={width:"16px",height:"16px",gridArea:"control",margin:"0 0.5rem 0 0"};return $.jsx("input",{id:t,type:"checkbox",...o("controlBoolean",l,e),checked:r??!1,onChange:a=>u(a.target.checked)})}function Yh(){const e=Jr(),{id:t,onChange:r,prop:u,value:o}=e,{getProps:l,theme:a}=fn(),c={color:a.colors.neutral60,display:"block",border:"1px solid",borderColor:a.colors.neutral20,padding:6,width:"100%",borderRadius:a.borderRadius,gridArea:"control",boxShadow:a.boxShadow.input};let f="off",h="text",p=g=>g;switch(u.type){case"string":break;case"integer":h="number",p=g=>g?parseInt(g):void 0;break;default:throw new Error("unexpected prop.type for ControlInput: "+u.type)}return"secret"in u&&u.secret&&(h="password",f="new-password"),$.jsx("input",{id:t,type:h,name:u.name,value:o??"",onChange:g=>r(p(g.target.value)),...l("controlInput",c,e),min:"min"in u?u.min:void 0,max:"max"in u?u.max:void 0,autoComplete:f,"data-lpignore":"true","data-1p-ignore":"true",required:!u.optional})}var Ax=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],Jh=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0,u=arguments.length>2?arguments[2]:void 0,o=String(t).toLowerCase(),l=String(u.getOptionValue(r)).toLowerCase(),a=String(u.getOptionLabel(r)).toLowerCase();return l===o||a===o},ea={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,r,u,o){return!(!t||r.some(function(l){return Jh(t,l,o)})||u.some(function(l){return Jh(t,l,o)}))},getNewOptionData:function(t,r){return{label:r,value:t,__isNew__:!0}}};function wx(e){var t=e.allowCreateWhileLoading,r=t===void 0?!1:t,u=e.createOptionPosition,o=u===void 0?"last":u,l=e.formatCreateLabel,a=l===void 0?ea.formatCreateLabel:l,c=e.isValidNewOption,f=c===void 0?ea.isValidNewOption:c,h=e.getNewOptionData,p=h===void 0?ea.getNewOptionData:h,g=e.onCreateOption,I=e.options,b=I===void 0?[]:I,S=e.onChange,A=Un(e,Ax),F=A.getOptionValue,P=F===void 0?wh:F,L=A.getOptionLabel,k=L===void 0?Ah:L,V=A.inputValue,H=A.isLoading,R=A.isMulti,j=A.value,N=A.name,Z=X.useMemo(function(){return f(V,xo(j),b,{getOptionValue:P,getOptionLabel:k})?p(V,a(V)):void 0},[a,p,k,P,V,f,b,j]),U=X.useMemo(function(){return(r||!H)&&Z?o==="first"?[Z].concat(xi(b)):[].concat(xi(b),[Z]):b},[r,o,H,Z,b]),Q=X.useCallback(function(K,he){if(he.action!=="select-option")return S(K,he);var Be=Array.isArray(K)?K:[K];if(Be[Be.length-1]===Z){if(g)g(V);else{var ie=p(V,V),me={action:"create-option",name:N,option:ie};S(mu(R,[].concat(xi(xo(j)),[ie]),ie),me)}return}S(K,he)},[p,V,R,N,Z,g,S,j]);return pe(pe({},A),{},{options:U,onChange:Q})}var Sx=X.forwardRef(function(e,t){var r=Nd(e),u=wx(r);return Fe.createElement($l,ye({ref:t},u))}),Ex=Sx;function Go({isCreatable:e,options:t,selectProps:r,showLoadMoreButton:u,onLoadMore:o}){const l=Jr(),{id:a,prop:c,value:f,onChange:h}=l,{select:p,theme:g}=fn(),[I,b]=X.useState(t),[S,A]=X.useState(f);X.useEffect(()=>{b(t)},[t]),X.useEffect(()=>{A(f)},[f]);const F={styles:{container:N=>({...N,gridArea:"control",boxShadow:g.boxShadow.input})}},P=X.useMemo(()=>{let N=S;if(N!=null)if(Array.isArray(N)){if(typeof N[0]!="object"){const Z=[];for(const U of N){let Q={label:U,value:U};for(const K of I)if(K.value===U){Q=K;break}Z.push(Q)}N=Z}}else if(typeof N!="object")if((I==null?void 0:I[0])&&typeof I[0]=="object"){for(const U of I)if(U.value===S){N=U;break}}else N={label:S,value:S};else N.__lv&&(N=N.__lv);return N},[S,I]),L=({children:N,...Z})=>$.jsxs(bu.MenuList,{...Z,children:[N,$.jsx("div",{className:"pt-4",children:$.jsx(Wh,{onChange:o})})]}),k=p.getProps("controlSelect",F);u&&(k.components={...k.components,MenuList:L});const V=N=>{const Z=he=>typeof he=="object"?he:{label:he,value:he},U=Z(N);let Q=U;const K=I?[U,...I]:[U];b(K),c.type.endsWith("[]")&&(Array.isArray(S)?Q=[...S.map(Z),U]:Q=[U]),A(Q),H(Q)},H=N=>{if(N)if(Array.isArray(N))typeof N[0]=="object"&&"value"in N[0]?h({__lv:N}):h(N);else if(typeof N=="object"&&"value"in N)h({__lv:N});else throw new Error("unhandled option type");else h(void 0)},R={onCreateOption:c.remoteOptions?V:void 0},j=e?Ex:Oo;return $.jsx(j,{inputId:a,instanceId:a,options:I,value:P,isMulti:c.type.endsWith("[]"),isClearable:!0,required:!c.optional,...k,...r,...R,onChange:H})}function jh({queryEnabled:e}){const t=ur(),{userId:r,component:u,configurableProps:o,configuredProps:l,dynamicProps:a,props:{disableQueryDisabling:c}}=po(),{idx:f,prop:h}=Jr(),[p,g]=X.useState(""),[I,b]=X.useState(0),[S,A]=X.useState(!0),[F,P]=X.useState(void 0),[L,k]=X.useState({page:0,prevContext:{},data:[],values:new Set}),V={};for(let ie=0;ie<f;ie++){const me=o[ie];V[me.name]=l[me.name]}const H={userId:r,page:I,prevContext:F,componentId:u.key,propName:h.name,configuredProps:V,dynamicPropsId:a==null?void 0:a.id};h.useQuery&&(H.query=p||"");const R={...H};delete R.dynamicPropsId;const[j,N]=X.useState(),Z=()=>{b(L.page),P(L.prevContext),k({...L,prevContext:{}})},{isFetching:U,refetch:Q}=Zr({queryKey:["componentConfigure",R],queryFn:async()=>{N(void 0);const ie=await t.componentConfigure(H),{options:me,stringOptions:we,errors:Pe}=ie;if(Pe!=null&&Pe.length){try{N(JSON.parse(Pe[0]))}catch{N({name:"Error",message:Pe[0]})}return[]}let tt=[];if(me!=null&&me.length&&(tt=me),we!=null&&we.length){const w=[];for(const ze of we)w.push({label:ze,value:ze});tt=w}const E=[],He=new Set(L.values);for(const w of tt||[]){const ze=typeof w=="string"?w:w.value;He.has(ze)||(He.add(ze),E.push(w))}let be=L.data;return E.length?(be=[...L.data,...E],k({page:I+1,prevContext:ie.context,data:be,values:He})):A(!1),be},enabled:!!e}),K=()=>!U&&!j&&S,he=j?j.message:c?"Click to configure":e?void 0:"Configure props above first",Be=c?!1:!e;return $.jsx(Go,{isCreatable:!0,showLoadMoreButton:K(),onLoadMore:Z,options:L.data,selectProps:{isLoading:U,placeholder:he,isDisabled:Be,inputValue:h.useQuery?p:void 0,onInputChange(ie){h.useQuery&&(g(ie),Q())},onMenuOpen(){c&&!e&&Q()}}})}function Uh(e){const{field:t,form:r}=e,{queryDisabledIdx:u}=r,{prop:o,idx:l}=t,a="app"in t.extra?t.extra.app:void 0;if(o.remoteOptions||o.type==="$.discord.channel")return $.jsx(jh,{queryEnabled:u==null||u>=l});if("options"in o&&o.options){let c=o.options;return typeof c[0]!="object"&&(c=c.map(f=>({label:f,value:f}))),$.jsx(Go,{options:c,components:{IndicatorSeparator:()=>null}})}if(o.type.endsWith("[][]"))throw new Error("Unsupported property type: "+o.type);if(o.type.endsWith("[]"))return $.jsx(Go,{isCreatable:!0,options:[],components:{IndicatorSeparator:()=>null}});switch(o.type){case"app":return $.jsx(zh,{app:a});case"boolean":return $.jsx(Zh,{});case"string":case"integer":return $.jsx(Yh,{});default:throw new Error("Unsupported property type: "+o.type)}}function Qh(e){const{form:t,field:r}=e,{prop:u}=r,{getProps:o,getComponents:l}=fn(),a={display:"grid",gridTemplateAreas:r.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:c,Description:f,Errors:h}=l(),p="app"in r.extra?r.extra.app:void 0;if(p&&!p.auth_type)return null;let g=u.label||u.name;return p&&(g=`Connect ${p.name} account`),$.jsxs("div",{...o("field",a,e),children:[$.jsx(c,{text:g,field:r,form:t}),$.jsx(Uh,{field:r,form:t}),$.jsx(f,{markdown:u.description,field:r,form:t}),$.jsx(h,{field:r,form:t})]})}const qh=(e,t)=>{var o;const r=ur(),u=Zr({queryKey:["app",e],queryFn:()=>r.app(e),...t==null?void 0:t.useQueryOpts});return{...u,app:(o=u.data)==null?void 0:o.data}};function $h({prop:e,idx:t}){const r=po(),{id:u,configuredProps:o,registerField:l,setConfiguredProp:a,errors:c,enableDebugging:f}=r,h=e.type==="app"&&"app"in e?e.app:void 0,{app:p}=qh(h||"",{useQueryOpts:{enabled:!!h,suspense:!!h}}),I={id:`pd${u}${e.name}`,prop:e,idx:t,value:o[e.name],onChange(b){a(t,b)},extra:{app:p},errors:c,enableDebugging:f};return X.useEffect(()=>l(I),[I]),$.jsx(Kl.Provider,{value:I,children:$.jsx(Qh,{field:I,form:r})})}class Kh extends X.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 ep(e){const{form:t}=e,{propsNeedConfiguring:r,submitting:u}=t,{getProps:o,theme:l}=fn(),a=c=>{var f;return{width:"fit-content",textTransform:"capitalize",backgroundColor:c?l.colors.neutral10:l.colors.primary,color:c?l.colors.neutral40:l.colors.neutral0,padding:`${l.spacing.baseUnit*1.75}px ${l.spacing.baseUnit*16}px`,borderRadius:l.borderRadius,boxShadow:(f=l.boxShadow)==null?void 0:f.button,cursor:"pointer",fontSize:"0.875rem",opacity:u?.5:void 0,margin:"0.5rem 0 0 0"}};return $.jsx("input",{type:"submit",value:u?"Submitting...":"Submit",...o("controlSubmit",a(r.length||u),e),disabled:r.length||u})}const Fx=["ConfigurationError"];function tp(){const e=po(),{configurableProps:t,dynamicPropsQueryIsFetching:r,isValid:u,optionalPropIsEnabled:o,optionalPropSetEnabled:l,props:a,setSubmitting:c,sdkErrors:f,submitting:h,enableDebugging:p}=e,g=p||f.filter(U=>Fx.includes(U.name)).length>0,{hideOptionalProps:I,onSubmit:b}=a,[S,A]=X.useState([]);X.useEffect(()=>{h?A([]):f&&f.length&&A(f.map(U=>({type:"alert",alertType:"error",content:`# ${U.name}
|
|
46
|
-
${
|
|
45
|
+
`]))),J1=function(t,r){var u=t.isFocused,o=t.size,l=t.theme,a=l.colors,c=l.spacing.baseUnit;return de({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},r?{}:{color:u?a.neutral60:a.neutral20,padding:c*2})},Zl=function(t){var r=t.delay,u=t.offset;return ce.jsx("span",{css:ce.css({animation:"".concat(Y1," 1s ease-in-out ").concat(r,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:u?"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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0p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3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},j1=function(t){var r=t.innerProps,u=t.isRtl,o=t.size,l=o===void 0?4:o,a=Un(t,D1);return ce.jsx("div",me({},mt(de(de({},a),{},{innerProps:r,isRtl:u,size:l}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),r),ce.jsx(Zl,{delay:0,offset:u}),ce.jsx(Zl,{delay:160,offset:!0}),ce.jsx(Zl,{delay:320,offset:!u}))},U1=function(t,r){var u=t.isDisabled,o=t.isFocused,l=t.theme,a=l.colors,c=l.borderRadius,f=l.spacing;return de({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:f.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},r?{}:{backgroundColor:u?a.neutral5:a.neutral0,borderColor:u?a.neutral10:o?a.primary:a.neutral20,borderRadius:c,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:o?a.primary:a.neutral30}})},Q1=function(t){var r=t.children,u=t.isDisabled,o=t.isFocused,l=t.innerRef,a=t.innerProps,c=t.menuIsOpen;return ce.jsx("div",me({ref:l},mt(t,"control",{control:!0,"control--is-disabled":u,"control--is-focused":o,"control--menu-is-open":c}),a,{"aria-disabled":u||void 0}),r)},q1=Q1,$1=["data"],K1=function(t,r){var u=t.theme.spacing;return r?{}:{paddingBottom:u.baseUnit*2,paddingTop:u.baseUnit*2}},eC=function(t){var r=t.children,u=t.cx,o=t.getStyles,l=t.getClassNames,a=t.Heading,c=t.headingProps,f=t.innerProps,h=t.label,p=t.theme,g=t.selectProps;return ce.jsx("div",me({},mt(t,"group",{group:!0}),f),ce.jsx(a,me({},c,{selectProps:g,theme:p,getStyles:o,getClassNames:l,cx:u}),h),ce.jsx("div",null,r))},tC=function(t,r){var u=t.theme,o=u.colors,l=u.spacing;return de({label:"group",cursor:"default",display:"block"},r?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:l.baseUnit*3,paddingRight:l.baseUnit*3,textTransform:"uppercase"})},nC=function(t){var r=Qd(t);r.data;var u=Un(r,$1);return ce.jsx("div",me({},mt(t,"groupHeading",{"group-heading":!0}),u))},rC=eC,iC=["innerRef","isDisabled","isHidden","inputClassName"],uC=function(t,r){var u=t.isDisabled,o=t.value,l=t.theme,a=l.spacing,c=l.colors;return de(de({visibility:u?"hidden":"visible",transform:o?"translateZ(0)":""},oC),r?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:c.neutral80})},lh={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},oC={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":de({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},lh)},sC=function(t){return de({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},lh)},lC=function(t){var r=t.cx,u=t.value,o=Qd(t),l=o.innerRef,a=o.isDisabled,c=o.isHidden,f=o.inputClassName,h=Un(o,iC);return ce.jsx("div",me({},mt(t,"input",{"input-container":!0}),{"data-value":u||""}),ce.jsx("input",me({className:r({input:!0},f),ref:l,style:sC(c),disabled:a},h)))},aC=lC,cC=function(t,r){var u=t.theme,o=u.spacing,l=u.borderRadius,a=u.colors;return de({label:"multiValue",display:"flex",minWidth:0},r?{}:{backgroundColor:a.neutral10,borderRadius:l/2,margin:o.baseUnit/2})},fC=function(t,r){var u=t.theme,o=u.borderRadius,l=u.colors,a=t.cropWithEllipsis;return de({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},r?{}:{borderRadius:o/2,color:l.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},dC=function(t,r){var u=t.theme,o=u.spacing,l=u.borderRadius,a=u.colors,c=t.isFocused;return de({alignItems:"center",display:"flex"},r?{}:{borderRadius:l/2,backgroundColor:c?a.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},ah=function(t){var r=t.children,u=t.innerProps;return ce.jsx("div",u,r)},hC=ah,pC=ah;function gC(e){var t=e.children,r=e.innerProps;return ce.jsx("div",me({role:"button"},r),t||ce.jsx(zl,{size:14}))}var mC=function(t){var r=t.children,u=t.components,o=t.data,l=t.innerProps,a=t.isDisabled,c=t.removeProps,f=t.selectProps,h=u.Container,p=u.Label,g=u.Remove;return ce.jsx(h,{data:o,innerProps:de(de({},mt(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),l),selectProps:f},ce.jsx(p,{data:o,innerProps:de({},mt(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:f},r),ce.jsx(g,{data:o,innerProps:de(de({},mt(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(r||"option")},c),selectProps:f}))},bC=mC,vC=function(t,r){var u=t.isDisabled,o=t.isFocused,l=t.isSelected,a=t.theme,c=a.spacing,f=a.colors;return de({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},r?{}:{backgroundColor:l?f.primary:o?f.primary25:"transparent",color:u?f.neutral20:l?f.neutral0:"inherit",padding:"".concat(c.baseUnit*2,"px ").concat(c.baseUnit*3,"px"),":active":{backgroundColor:u?void 0:l?f.primary:f.primary50}})},yC=function(t){var r=t.children,u=t.isDisabled,o=t.isFocused,l=t.isSelected,a=t.innerRef,c=t.innerProps;return ce.jsx("div",me({},mt(t,"option",{option:!0,"option--is-disabled":u,"option--is-focused":o,"option--is-selected":l}),{ref:a,"aria-disabled":u},c),r)},IC=yC,CC=function(t,r){var u=t.theme,o=u.spacing,l=u.colors;return de({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},r?{}:{color:l.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},xC=function(t){var r=t.children,u=t.innerProps;return ce.jsx("div",me({},mt(t,"placeholder",{placeholder:!0}),u),r)},AC=xC,wC=function(t,r){var u=t.isDisabled,o=t.theme,l=o.spacing,a=o.colors;return de({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r?{}:{color:u?a.neutral40:a.neutral80,marginLeft:l.baseUnit/2,marginRight:l.baseUnit/2})},SC=function(t){var r=t.children,u=t.isDisabled,o=t.innerProps;return ce.jsx("div",me({},mt(t,"singleValue",{"single-value":!0,"single-value--is-disabled":u}),o),r)},EC=SC,bu={ClearIndicator:H1,Control:q1,DropdownIndicator:W1,DownChevron:oh,CrossIcon:zl,Group:rC,GroupHeading:nC,IndicatorsContainer:k1,IndicatorSeparator:Z1,Input:aC,LoadingIndicator:j1,Menu:C1,MenuList:A1,MenuPortal:O1,LoadingMessage:F1,NoOptionsMessage:E1,MultiValue:bC,MultiValueContainer:hC,MultiValueLabel:pC,MultiValueRemove:gC,Option:IC,Placeholder:AC,SelectContainer:B1,SingleValue:EC,ValueContainer:G1},FC=function(t){return de(de({},bu),t.components)},ch=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function PC(e,t){return!!(e===t||ch(e)&&ch(t))}function OC(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!PC(e[r],t[r]))return!1;return!0}function TC(e,t){t===void 0&&(t=OC);var r=null;function u(){for(var o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];if(r&&r.lastThis===this&&t(o,r.lastArgs))return r.lastResult;var a=e.apply(this,o);return r={lastResult:a,lastArgs:o,lastThis:this},a}return u.clear=function(){r=null},u}function BC(){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 _C=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:BC},GC=function(t){return ce.jsx("span",me({css:_C},t))},fh=GC,RC={guidance:function(t){var r=t.isSearchable,u=t.isMulti,o=t.tabSelectsValue,l=t.context,a=t.isInitialFocus;switch(l){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(o?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(t["aria-label"]||"Select"," is focused ").concat(r?",type to refine list":"",", press Down to open the menu, ").concat(u?" 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 r=t.action,u=t.label,o=u===void 0?"":u,l=t.labels,a=t.isDisabled;switch(r){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(l.length>1?"s":""," ").concat(l.join(","),", selected.");case"select-option":return a?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(t){var r=t.context,u=t.focused,o=t.options,l=t.label,a=l===void 0?"":l,c=t.selectValue,f=t.isDisabled,h=t.isSelected,p=t.isAppleDevice,g=function(A,F){return A&&A.length?"".concat(A.indexOf(F)+1," of ").concat(A.length):""};if(r==="value"&&c)return"value ".concat(a," focused, ").concat(g(c,u),".");if(r==="menu"&&p){var I=f?" disabled":"",b="".concat(h?" selected":"").concat(I);return"".concat(a).concat(b,", ").concat(g(o,u),".")}return""},onFilter:function(t){var r=t.inputValue,u=t.resultsMessage;return"".concat(u).concat(r?" for search term "+r:"",".")}},kC=function(t){var r=t.ariaSelection,u=t.focusedOption,o=t.focusedValue,l=t.focusableOptions,a=t.isFocused,c=t.selectValue,f=t.selectProps,h=t.id,p=t.isAppleDevice,g=f.ariaLiveMessages,I=f.getOptionLabel,b=f.inputValue,S=f.isMulti,A=f.isOptionDisabled,F=f.isSearchable,P=f.menuIsOpen,L=f.options,k=f.screenReaderStatus,N=f.tabSelectsValue,X=f.isLoading,R=f["aria-label"],Y=f["aria-live"],D=H.useMemo(function(){return de(de({},RC),g||{})},[g]),j=H.useMemo(function(){var ue="";if(r&&D.onChange){var pe=r.option,Ee=r.options,Oe=r.removedValue,Ke=r.removedValues,E=r.value,xe=function(Ve){return Array.isArray(Ve)?null:Ve},Le=Oe||pe||xe(E),w=Le?I(Le):"",je=Ee||Ke||void 0,ge=je?je.map(I):[],Ne=de({isDisabled:Le&&A(Le,c),label:w,labels:ge},r);ue=D.onChange(Ne)}return ue},[r,D,A,c,I]),Q=H.useMemo(function(){var ue="",pe=u||o,Ee=!!(u&&c&&c.includes(u));if(pe&&D.onFocus){var Oe={focused:pe,label:I(pe),isDisabled:A(pe,c),isSelected:Ee,options:l,context:pe===u?"menu":"value",selectValue:c,isAppleDevice:p};ue=D.onFocus(Oe)}return ue},[u,o,I,A,D,l,c,p]),U=H.useMemo(function(){var ue="";if(P&&L.length&&!X&&D.onFilter){var pe=k({count:l.length});ue=D.onFilter({inputValue:b,resultsMessage:pe})}return ue},[l,b,P,D,L,k,X]),q=(r==null?void 0:r.action)==="initial-input-focus",be=H.useMemo(function(){var ue="";if(D.guidance){var pe=o?"value":P?"menu":"input";ue=D.guidance({"aria-label":R,context:pe,isDisabled:u&&A(u,c),isMulti:S,isSearchable:F,tabSelectsValue:N,isInitialFocus:q})}return ue},[R,u,o,S,A,F,P,D,c,N,q]),Se=ce.jsx(H.Fragment,null,ce.jsx("span",{id:"aria-selection"},j),ce.jsx("span",{id:"aria-focused"},Q),ce.jsx("span",{id:"aria-results"},U),ce.jsx("span",{id:"aria-guidance"},be));return ce.jsx(H.Fragment,null,ce.jsx(fh,{id:h},q&&Se),ce.jsx(fh,{"aria-live":Y,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!q&&Se))},LC=kC,Yl=[{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źẑżžẓẕƶȥɀⱬꝣ"}],DC=new RegExp("["+Yl.map(function(e){return e.letters}).join("")+"]","g"),dh={},Jl=0;Jl<Yl.length;Jl++)for(var jl=Yl[Jl],Ul=0;Ul<jl.letters.length;Ul++)dh[jl.letters[Ul]]=jl.base;var hh=function(t){return t.replace(DC,function(r){return dh[r]})},MC=TC(hh),ph=function(t){return t.replace(/^\s+|\s+$/g,"")},NC=function(t){return"".concat(t.label," ").concat(t.value)},VC=function(t){return function(r,u){if(r.data.__isNew__)return!0;var o=de({ignoreCase:!0,ignoreAccents:!0,stringify:NC,trim:!0,matchFrom:"any"},t),l=o.ignoreCase,a=o.ignoreAccents,c=o.stringify,f=o.trim,h=o.matchFrom,p=f?ph(u):u,g=f?ph(c(r)):c(r);return l&&(p=p.toLowerCase(),g=g.toLowerCase()),a&&(p=MC(p),g=hh(g)),h==="start"?g.substr(0,p.length)===p:g.indexOf(p)>-1}},WC=["innerRef"];function XC(e){var t=e.innerRef,r=Un(e,WC),u=h1(r,"onExited","in","enter","exit","appear");return ce.jsx("input",me({ref:t},u,{css:ce.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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BoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var HC=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function zC(e){var t=e.isEnabled,r=e.onBottomArrive,u=e.onBottomLeave,o=e.onTopArrive,l=e.onTopLeave,a=H.useRef(!1),c=H.useRef(!1),f=H.useRef(0),h=H.useRef(null),p=H.useCallback(function(F,P){if(h.current!==null){var L=h.current,k=L.scrollTop,N=L.scrollHeight,X=L.clientHeight,R=h.current,Y=P>0,D=N-X-k,j=!1;D>P&&a.current&&(u&&u(F),a.current=!1),Y&&c.current&&(l&&l(F),c.current=!1),Y&&P>D?(r&&!a.current&&r(F),R.scrollTop=N,j=!0,a.current=!0):!Y&&-P>k&&(o&&!c.current&&o(F),R.scrollTop=0,j=!0,c.current=!0),j&&HC(F)}},[r,u,o,l]),g=H.useCallback(function(F){p(F,F.deltaY)},[p]),I=H.useCallback(function(F){f.current=F.changedTouches[0].clientY},[]),b=H.useCallback(function(F){var P=f.current-F.changedTouches[0].clientY;p(F,P)},[p]),S=H.useCallback(function(F){if(F){var P=c1?{passive:!1}:!1;F.addEventListener("wheel",g,P),F.addEventListener("touchstart",I,P),F.addEventListener("touchmove",b,P)}},[b,I,g]),A=H.useCallback(function(F){F&&(F.removeEventListener("wheel",g,!1),F.removeEventListener("touchstart",I,!1),F.removeEventListener("touchmove",b,!1))},[b,I,g]);return H.useEffect(function(){if(t){var F=h.current;return S(F),function(){A(F)}}},[t,S,A]),function(F){h.current=F}}var gh=["boxSizing","height","overflow","paddingRight","position"],mh={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function bh(e){e.cancelable&&e.preventDefault()}function vh(e){e.stopPropagation()}function yh(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;e===0?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function Ih(){return"ontouchstart"in window||navigator.maxTouchPoints}var Ch=!!(typeof window<"u"&&window.document&&window.document.createElement),vu=0,Ai={capture:!1,passive:!1};function ZC(e){var t=e.isEnabled,r=e.accountForScrollbars,u=r===void 0?!0:r,o=H.useRef({}),l=H.useRef(null),a=H.useCallback(function(f){if(Ch){var h=document.body,p=h&&h.style;if(u&&gh.forEach(function(S){var A=p&&p[S];o.current[S]=A}),u&&vu<1){var g=parseInt(o.current.paddingRight,10)||0,I=document.body?document.body.clientWidth:0,b=window.innerWidth-I+g||0;Object.keys(mh).forEach(function(S){var A=mh[S];p&&(p[S]=A)}),p&&(p.paddingRight="".concat(b,"px"))}h&&Ih()&&(h.addEventListener("touchmove",bh,Ai),f&&(f.addEventListener("touchstart",yh,Ai),f.addEventListener("touchmove",vh,Ai))),vu+=1}},[u]),c=H.useCallback(function(f){if(Ch){var h=document.body,p=h&&h.style;vu=Math.max(vu-1,0),u&&vu<1&&gh.forEach(function(g){var I=o.current[g];p&&(p[g]=I)}),h&&Ih()&&(h.removeEventListener("touchmove",bh,Ai),f&&(f.removeEventListener("touchstart",yh,Ai),f.removeEventListener("touchmove",vh,Ai)))}},[u]);return H.useEffect(function(){if(t){var f=l.current;return a(f),function(){c(f)}}},[t,a,c]),function(f){l.current=f}}function YC(){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 JC=function(t){var r=t.target;return r.ownerDocument.activeElement&&r.ownerDocument.activeElement.blur()},jC=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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxF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N0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:YC};function UC(e){var t=e.children,r=e.lockEnabled,u=e.captureEnabled,o=u===void 0?!0:u,l=e.onBottomArrive,a=e.onBottomLeave,c=e.onTopArrive,f=e.onTopLeave,h=zC({isEnabled:o,onBottomArrive:l,onBottomLeave:a,onTopArrive:c,onTopLeave:f}),p=ZC({isEnabled:r}),g=function(b){h(b),p(b)};return ce.jsx(H.Fragment,null,r&&ce.jsx("div",{onClick:JC,css:jC}),t(g))}function QC(){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 qC=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:QC},$C=function(t){var r=t.name,u=t.onFocus;return ce.jsx("input",{required:!0,name:r,tabIndex:-1,"aria-hidden":"true",onFocus:u,css:qC,value:"",onChange:function(){}})},KC=$C;function Ql(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 ex(){return Ql(/^iPhone/i)}function xh(){return Ql(/^Mac/i)}function tx(){return Ql(/^iPad/i)||xh()&&navigator.maxTouchPoints>1}function nx(){return ex()||tx()}function rx(){return xh()||nx()}var ix=function(t){return t.label},Ah=function(t){return t.label},wh=function(t){return t.value},ux=function(t){return!!t.isDisabled},ox={clearIndicator:X1,container:T1,control:U1,dropdownIndicator:V1,group:K1,groupHeading:tC,indicatorsContainer:R1,indicatorSeparator:z1,input:uC,loadingIndicator:J1,loadingMessage:S1,menu:v1,menuList:x1,menuPortal:P1,multiValue:cC,multiValueLabel:fC,multiValueRemove:dC,noOptionsMessage:w1,option:vC,placeholder:CC,singleValue:wC,valueContainer:_1};function sx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=de({},e);return Object.keys(t).forEach(function(u){var o=u;e[o]?r[o]=function(l,a){return t[o](e[o](l,a),a)}:r[o]=t[o]}),r}var lx={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%)"},ax=4,Sh=4,cx=38,fx=Sh*2,dx={baseUnit:Sh,controlHeight:cx,menuGutter:fx},yu={borderRadius:ax,colors:lx,spacing:dx},hx={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Kd(),captureMenuScroll:!Kd(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:VC(),formatGroupLabel:ix,getOptionLabel:Ah,getOptionValue:wh,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:ux,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!l1(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var r=t.count;return"".concat(r," result").concat(r!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Eh(e,t,r,u){var o=Bh(e,t,r),l=_h(e,t,r),a=Th(e,t),c=Po(e,t);return{type:"option",data:t,isDisabled:o,isSelected:l,label:a,value:c,index:u}}function Fo(e,t){return e.options.map(function(r,u){if("options"in r){var o=r.options.map(function(a,c){return Eh(e,a,t,c)}).filter(function(a){return Oh(e,a)});return o.length>0?{type:"group",data:r,options:o,index:u}:void 0}var l=Eh(e,r,t,u);return Oh(e,l)?l:void 0}).filter(f1)}function Fh(e){return e.reduce(function(t,r){return r.type==="group"?t.push.apply(t,xi(r.options.map(function(u){return u.data}))):t.push(r.data),t},[])}function Ph(e,t){return e.reduce(function(r,u){return u.type==="group"?r.push.apply(r,xi(u.options.map(function(o){return{data:o.data,id:"".concat(t,"-").concat(u.index,"-").concat(o.index)}}))):r.push({data:u.data,id:"".concat(t,"-").concat(u.index)}),r},[])}function px(e,t){return Fh(Fo(e,t))}function Oh(e,t){var r=e.inputValue,u=r===void 0?"":r,o=t.data,l=t.isSelected,a=t.label,c=t.value;return(!Rh(e)||!l)&&Gh(e,{label:a,value:c,data:o},u)}function gx(e,t){var r=e.focusedValue,u=e.selectValue,o=u.indexOf(r);if(o>-1){var l=t.indexOf(r);if(l>-1)return r;if(o<t.length)return t[o]}return null}function mx(e,t){var r=e.focusedOption;return r&&t.indexOf(r)>-1?r:t[0]}var ql=function(t,r){var u,o=(u=t.find(function(l){return l.data===r}))===null||u===void 0?void 0:u.id;return o||null},Th=function(t,r){return t.getOptionLabel(r)},Po=function(t,r){return t.getOptionValue(r)};function Bh(e,t,r){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,r):!1}function _h(e,t,r){if(r.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,r);var u=Po(e,t);return r.some(function(o){return Po(e,o)===u})}function Gh(e,t,r){return e.filterOption?e.filterOption(t,r):!0}var Rh=function(t){var r=t.hideSelectedOptions,u=t.isMulti;return r===void 0?u:r},bx=1,$l=function(e){RI(r,e);var t=DI(r);function r(u){var o;if(_I(this,r),o=t.call(this,u),o.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:""},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.isAppleDevice=rx(),o.controlRef=null,o.getControlRef=function(f){o.controlRef=f},o.focusedOptionRef=null,o.getFocusedOptionRef=function(f){o.focusedOptionRef=f},o.menuListRef=null,o.getMenuListRef=function(f){o.menuListRef=f},o.inputRef=null,o.getInputRef=function(f){o.inputRef=f},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(f,h){var p=o.props,g=p.onChange,I=p.name;h.name=I,o.ariaOnChange(f,h),g(f,h)},o.setValue=function(f,h,p){var g=o.props,I=g.closeMenuOnSelect,b=g.isMulti,S=g.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:S}),I&&(o.setState({inputIsHiddenAfterUpdate:!b}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(f,{action:h,option:p})},o.selectOption=function(f){var h=o.props,p=h.blurInputOnSelect,g=h.isMulti,I=h.name,b=o.state.selectValue,S=g&&o.isOptionSelected(f,b),A=o.isOptionDisabled(f,b);if(S){var F=o.getOptionValue(f);o.setValue(b.filter(function(P){return o.getOptionValue(P)!==F}),"deselect-option",f)}else if(!A)g?o.setValue([].concat(xi(b),[f]),"select-option",f):o.setValue(f,"select-option");else{o.ariaOnChange(f,{action:"select-option",option:f,name:I});return}p&&o.blurInput()},o.removeValue=function(f){var h=o.props.isMulti,p=o.state.selectValue,g=o.getOptionValue(f),I=p.filter(function(S){return o.getOptionValue(S)!==g}),b=mu(h,I,I[0]||null);o.onChange(b,{action:"remove-value",removedValue:f}),o.focusInput()},o.clearValue=function(){var f=o.state.selectValue;o.onChange(mu(o.props.isMulti,[],null),{action:"clear",removedValues:f})},o.popValue=function(){var f=o.props.isMulti,h=o.state.selectValue,p=h[h.length-1],g=h.slice(0,h.length-1),I=mu(f,g,g[0]||null);p&&o.onChange(I,{action:"pop-value",removedValue:p})},o.getFocusedOptionId=function(f){return ql(o.state.focusableOptionsWithIds,f)},o.getFocusableOptionsWithIds=function(){return Ph(Fo(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var f=arguments.length,h=new Array(f),p=0;p<f;p++)h[p]=arguments[p];return r1.apply(void 0,[o.props.classNamePrefix].concat(h))},o.getOptionLabel=function(f){return Th(o.props,f)},o.getOptionValue=function(f){return Po(o.props,f)},o.getStyles=function(f,h){var p=o.props.unstyled,g=ox[f](h,p);g.boxSizing="border-box";var I=o.props.styles[f];return I?I(g,h):g},o.getClassNames=function(f,h){var p,g;return(p=(g=o.props.classNames)[f])===null||p===void 0?void 0:p.call(g,h)},o.getElementId=function(f){return"".concat(o.state.instancePrefix,"-").concat(f)},o.getComponents=function(){return FC(o.props)},o.buildCategorizedOptions=function(){return Fo(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return Fh(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(f,h){o.setState({ariaSelection:de({value:f},h)})},o.onMenuMouseDown=function(f){f.button===0&&(f.stopPropagation(),f.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(f){o.blockOptionHover=!1},o.onControlMouseDown=function(f){if(!f.defaultPrevented){var h=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?f.target.tagName!=="INPUT"&&f.target.tagName!=="TEXTAREA"&&o.onMenuClose():h&&o.openMenu("first"):(h&&(o.openAfterFocus=!0),o.focusInput()),f.target.tagName!=="INPUT"&&f.target.tagName!=="TEXTAREA"&&f.preventDefault()}},o.onDropdownIndicatorMouseDown=function(f){if(!(f&&f.type==="mousedown"&&f.button!==0)&&!o.props.isDisabled){var h=o.props,p=h.isMulti,g=h.menuIsOpen;o.focusInput(),g?(o.setState({inputIsHiddenAfterUpdate:!p}),o.onMenuClose()):o.openMenu("first"),f.preventDefault()}},o.onClearIndicatorMouseDown=function(f){f&&f.type==="mousedown"&&f.button!==0||(o.clearValue(),f.preventDefault(),o.openAfterFocus=!1,f.type==="touchend"?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(f){typeof o.props.closeMenuOnScroll=="boolean"?f.target instanceof HTMLElement&&Ao(f.target)&&o.props.onMenuClose():typeof o.props.closeMenuOnScroll=="function"&&o.props.closeMenuOnScroll(f)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(f){var h=f.touches,p=h&&h.item(0);p&&(o.initialTouchX=p.clientX,o.initialTouchY=p.clientY,o.userIsDragging=!1)},o.onTouchMove=function(f){var h=f.touches,p=h&&h.item(0);if(p){var g=Math.abs(p.clientX-o.initialTouchX),I=Math.abs(p.clientY-o.initialTouchY),b=5;o.userIsDragging=g>b||I>b}},o.onTouchEnd=function(f){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(f.target)&&o.menuListRef&&!o.menuListRef.contains(f.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(f){o.userIsDragging||o.onControlMouseDown(f)},o.onClearIndicatorTouchEnd=function(f){o.userIsDragging||o.onClearIndicatorMouseDown(f)},o.onDropdownIndicatorTouchEnd=function(f){o.userIsDragging||o.onDropdownIndicatorMouseDown(f)},o.handleInputChange=function(f){var h=o.props.inputValue,p=f.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(p,{action:"input-change",prevInputValue:h}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(f){o.props.onFocus&&o.props.onFocus(f),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(f){var h=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(f),o.onInputChange("",{action:"input-blur",prevInputValue:h}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(f){if(!(o.blockOptionHover||o.state.focusedOption===f)){var h=o.getFocusableOptions(),p=h.indexOf(f);o.setState({focusedOption:f,focusedOptionId:p>-1?o.getFocusedOptionId(f):null})}},o.shouldHideSelectedOptions=function(){return Rh(o.props)},o.onValueInputFocus=function(f){f.preventDefault(),f.stopPropagation(),o.focus()},o.onKeyDown=function(f){var h=o.props,p=h.isMulti,g=h.backspaceRemovesValue,I=h.escapeClearsValue,b=h.inputValue,S=h.isClearable,A=h.isDisabled,F=h.menuIsOpen,P=h.onKeyDown,L=h.tabSelectsValue,k=h.openMenuOnFocus,N=o.state,X=N.focusedOption,R=N.focusedValue,Y=N.selectValue;if(!A&&!(typeof P=="function"&&(P(f),f.defaultPrevented))){switch(o.blockOptionHover=!0,f.key){case"ArrowLeft":if(!p||b)return;o.focusValue("previous");break;case"ArrowRight":if(!p||b)return;o.focusValue("next");break;case"Delete":case"Backspace":if(b)return;if(R)o.removeValue(R);else{if(!g)return;p?o.popValue():S&&o.clearValue()}break;case"Tab":if(o.isComposing||f.shiftKey||!F||!L||!X||k&&o.isOptionSelected(X,Y))return;o.selectOption(X);break;case"Enter":if(f.keyCode===229)break;if(F){if(!X||o.isComposing)return;o.selectOption(X);break}return;case"Escape":F?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:b}),o.onMenuClose()):S&&I&&o.clearValue();break;case" ":if(b)return;if(!F){o.openMenu("first");break}if(!X)return;o.selectOption(X);break;case"ArrowUp":F?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":F?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!F)return;o.focusOption("pageup");break;case"PageDown":if(!F)return;o.focusOption("pagedown");break;case"Home":if(!F)return;o.focusOption("first");break;case"End":if(!F)return;o.focusOption("last");break;default:return}f.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++bx),o.state.selectValue=xo(u.value),u.menuIsOpen&&o.state.selectValue.length){var l=o.getFocusableOptionsWithIds(),a=o.buildFocusableOptions(),c=a.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=l,o.state.focusedOption=a[c],o.state.focusedOptionId=ql(l,a[c])}return o}return GI(r,[{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&&$d(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(o){var l=this.props,a=l.isDisabled,c=l.menuIsOpen,f=this.state.isFocused;(f&&!a&&o.isDisabled||f&&c&&!o.menuIsOpen)&&this.focusInput(),f&&a&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!f&&!a&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&($d(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(o,l){this.props.onInputChange(o,l)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var l=this,a=this.state,c=a.selectValue,f=a.isFocused,h=this.buildFocusableOptions(),p=o==="first"?0:h.length-1;if(!this.props.isMulti){var g=h.indexOf(c[0]);g>-1&&(p=g)}this.scrollToFocusedOptionOnUpdate=!(f&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:h[p],focusedOptionId:this.getFocusedOptionId(h[p])},function(){return l.onMenuOpen()})}},{key:"focusValue",value:function(o){var l=this.state,a=l.selectValue,c=l.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var f=a.indexOf(c);c||(f=-1);var h=a.length-1,p=-1;if(a.length){switch(o){case"previous":f===0?p=0:f===-1?p=h:p=f-1;break;case"next":f>-1&&f<h&&(p=f+1);break}this.setState({inputIsHidden:p!==-1,focusedValue:a[p]})}}}},{key:"focusOption",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",l=this.props.pageSize,a=this.state.focusedOption,c=this.getFocusableOptions();if(c.length){var f=0,h=c.indexOf(a);a||(h=-1),o==="up"?f=h>0?h-1:c.length-1:o==="down"?f=(h+1)%c.length:o==="pageup"?(f=h-l,f<0&&(f=0)):o==="pagedown"?(f=h+l,f>c.length-1&&(f=c.length-1)):o==="last"&&(f=c.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:c[f],focusedValue:null,focusedOptionId:this.getFocusedOptionId(c[f])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(yu):de(de({},yu),this.props.theme):yu}},{key:"getCommonProps",value:function(){var o=this.clearValue,l=this.cx,a=this.getStyles,c=this.getClassNames,f=this.getValue,h=this.selectOption,p=this.setValue,g=this.props,I=g.isMulti,b=g.isRtl,S=g.options,A=this.hasValue();return{clearValue:o,cx:l,getStyles:a,getClassNames:c,getValue:f,hasValue:A,isMulti:I,isRtl:b,options:S,selectOption:h,selectProps:g,setValue:p,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,l=o.isClearable,a=o.isMulti;return l===void 0?a:l}},{key:"isOptionDisabled",value:function(o,l){return Bh(this.props,o,l)}},{key:"isOptionSelected",value:function(o,l){return _h(this.props,o,l)}},{key:"filterOption",value:function(o,l){return Gh(this.props,o,l)}},{key:"formatOptionLabel",value:function(o,l){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,c=this.state.selectValue;return this.props.formatOptionLabel(o,{context:l,inputValue:a,selectValue:c})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{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 o=this.props,l=o.isDisabled,a=o.isSearchable,c=o.inputId,f=o.inputValue,h=o.tabIndex,p=o.form,g=o.menuIsOpen,I=o.required,b=this.getComponents(),S=b.Input,A=this.state,F=A.inputIsHidden,P=A.ariaSelection,L=this.commonProps,k=c||this.getElementId("input"),N=de(de(de({"aria-autocomplete":"list","aria-expanded":g,"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":I,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},g&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?(P==null?void 0:P.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?Pe.createElement(S,me({},L,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:k,innerRef:this.getInputRef,isDisabled:l,isHidden:F,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:h,form:p,type:"text",value:f},N)):Pe.createElement(XC,me({id:k,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Co,onFocus:this.onInputFocus,disabled:l,tabIndex:h,inputMode:"none",form:p,value:""},N))}},{key:"renderPlaceholderOrValue",value:function(){var o=this,l=this.getComponents(),a=l.MultiValue,c=l.MultiValueContainer,f=l.MultiValueLabel,h=l.MultiValueRemove,p=l.SingleValue,g=l.Placeholder,I=this.commonProps,b=this.props,S=b.controlShouldRenderValue,A=b.isDisabled,F=b.isMulti,P=b.inputValue,L=b.placeholder,k=this.state,N=k.selectValue,X=k.focusedValue,R=k.isFocused;if(!this.hasValue()||!S)return P?null:Pe.createElement(g,me({},I,{key:"placeholder",isDisabled:A,isFocused:R,innerProps:{id:this.getElementId("placeholder")}}),L);if(F)return N.map(function(D,j){var Q=D===X,U="".concat(o.getOptionLabel(D),"-").concat(o.getOptionValue(D));return Pe.createElement(a,me({},I,{components:{Container:c,Label:f,Remove:h},isFocused:Q,isDisabled:A,key:U,index:j,removeProps:{onClick:function(){return o.removeValue(D)},onTouchEnd:function(){return o.removeValue(D)},onMouseDown:function(be){be.preventDefault()}},data:D}),o.formatOptionLabel(D,"value"))});if(P)return null;var Y=N[0];return Pe.createElement(p,me({},I,{data:Y,isDisabled:A}),this.formatOptionLabel(Y,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),l=o.ClearIndicator,a=this.commonProps,c=this.props,f=c.isDisabled,h=c.isLoading,p=this.state.isFocused;if(!this.isClearable()||!l||f||!this.hasValue()||h)return null;var g={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return Pe.createElement(l,me({},a,{innerProps:g,isFocused:p}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),l=o.LoadingIndicator,a=this.commonProps,c=this.props,f=c.isDisabled,h=c.isLoading,p=this.state.isFocused;if(!l||!h)return null;var g={"aria-hidden":"true"};return Pe.createElement(l,me({},a,{innerProps:g,isDisabled:f,isFocused:p}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),l=o.DropdownIndicator,a=o.IndicatorSeparator;if(!l||!a)return null;var c=this.commonProps,f=this.props.isDisabled,h=this.state.isFocused;return Pe.createElement(a,me({},c,{isDisabled:f,isFocused:h}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),l=o.DropdownIndicator;if(!l)return null;var a=this.commonProps,c=this.props.isDisabled,f=this.state.isFocused,h={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return Pe.createElement(l,me({},a,{innerProps:h,isDisabled:c,isFocused:f}))}},{key:"renderMenu",value:function(){var o=this,l=this.getComponents(),a=l.Group,c=l.GroupHeading,f=l.Menu,h=l.MenuList,p=l.MenuPortal,g=l.LoadingMessage,I=l.NoOptionsMessage,b=l.Option,S=this.commonProps,A=this.state.focusedOption,F=this.props,P=F.captureMenuScroll,L=F.inputValue,k=F.isLoading,N=F.loadingMessage,X=F.minMenuHeight,R=F.maxMenuHeight,Y=F.menuIsOpen,D=F.menuPlacement,j=F.menuPosition,Q=F.menuPortalTarget,U=F.menuShouldBlockScroll,q=F.menuShouldScrollIntoView,be=F.noOptionsMessage,Se=F.onMenuScrollToTop,ue=F.onMenuScrollToBottom;if(!Y)return null;var pe=function(w,je){var ge=w.type,Ne=w.data,St=w.isDisabled,Ve=w.isSelected,vt=w.label,Xt=w.value,Lt=A===Ne,Dt=St?void 0:function(){return o.onOptionHover(Ne)},Nn=St?void 0:function(){return o.selectOption(Ne)},ne="".concat(o.getElementId("option"),"-").concat(je),oe={id:ne,onClick:Nn,onMouseMove:Dt,onMouseOver:Dt,tabIndex:-1,role:"option","aria-selected":o.isAppleDevice?void 0:Ve};return Pe.createElement(b,me({},S,{innerProps:oe,data:Ne,isDisabled:St,isSelected:Ve,key:ne,label:vt,type:ge,value:Xt,isFocused:Lt,innerRef:Lt?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(w.data,"menu"))},Ee;if(this.hasOptions())Ee=this.getCategorizedOptions().map(function(Le){if(Le.type==="group"){var w=Le.data,je=Le.options,ge=Le.index,Ne="".concat(o.getElementId("group"),"-").concat(ge),St="".concat(Ne,"-heading");return Pe.createElement(a,me({},S,{key:Ne,data:w,options:je,Heading:c,headingProps:{id:St,data:Le.data},label:o.formatGroupLabel(Le.data)}),Le.options.map(function(Ve){return pe(Ve,"".concat(ge,"-").concat(Ve.index))}))}else if(Le.type==="option")return pe(Le,"".concat(Le.index))});else if(k){var Oe=N({inputValue:L});if(Oe===null)return null;Ee=Pe.createElement(g,S,Oe)}else{var Ke=be({inputValue:L});if(Ke===null)return null;Ee=Pe.createElement(I,S,Ke)}var E={minMenuHeight:X,maxMenuHeight:R,menuPlacement:D,menuPosition:j,menuShouldScrollIntoView:q},xe=Pe.createElement(y1,me({},S,E),function(Le){var w=Le.ref,je=Le.placerProps,ge=je.placement,Ne=je.maxHeight;return Pe.createElement(f,me({},S,E,{innerRef:w,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:k,placement:ge}),Pe.createElement(UC,{captureEnabled:P,onTopArrive:Se,onBottomArrive:ue,lockEnabled:U},function(St){return Pe.createElement(h,me({},S,{innerRef:function(vt){o.getMenuListRef(vt),St(vt)},innerProps:{role:"listbox","aria-multiselectable":S.isMulti,id:o.getElementId("listbox")},isLoading:k,maxHeight:Ne,focusedOption:A}),Ee)}))});return Q||j==="fixed"?Pe.createElement(p,me({},S,{appendTo:Q,controlElement:this.controlRef,menuPlacement:D,menuPosition:j}),xe):xe}},{key:"renderFormField",value:function(){var o=this,l=this.props,a=l.delimiter,c=l.isDisabled,f=l.isMulti,h=l.name,p=l.required,g=this.state.selectValue;if(p&&!this.hasValue()&&!c)return Pe.createElement(KC,{name:h,onFocus:this.onValueInputFocus});if(!(!h||c))if(f)if(a){var I=g.map(function(A){return o.getOptionValue(A)}).join(a);return Pe.createElement("input",{name:h,type:"hidden",value:I})}else{var b=g.length>0?g.map(function(A,F){return Pe.createElement("input",{key:"i-".concat(F),name:h,type:"hidden",value:o.getOptionValue(A)})}):Pe.createElement("input",{name:h,type:"hidden",value:""});return Pe.createElement("div",null,b)}else{var S=g[0]?this.getOptionValue(g[0]):"";return Pe.createElement("input",{name:h,type:"hidden",value:S})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,l=this.state,a=l.ariaSelection,c=l.focusedOption,f=l.focusedValue,h=l.isFocused,p=l.selectValue,g=this.getFocusableOptions();return Pe.createElement(LC,me({},o,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:c,focusedValue:f,isFocused:h,selectValue:p,focusableOptions:g,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),l=o.Control,a=o.IndicatorsContainer,c=o.SelectContainer,f=o.ValueContainer,h=this.props,p=h.className,g=h.id,I=h.isDisabled,b=h.menuIsOpen,S=this.state.isFocused,A=this.commonProps=this.getCommonProps();return Pe.createElement(c,me({},A,{className:p,innerProps:{id:g,onKeyDown:this.onKeyDown},isDisabled:I,isFocused:S}),this.renderLiveRegion(),Pe.createElement(l,me({},A,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:I,isFocused:S,menuIsOpen:b}),Pe.createElement(f,me({},A,{isDisabled:I}),this.renderPlaceholderOrValue(),this.renderInput()),Pe.createElement(a,me({},A,{isDisabled:I}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,l){var a=l.prevProps,c=l.clearFocusValueOnUpdate,f=l.inputIsHiddenAfterUpdate,h=l.ariaSelection,p=l.isFocused,g=l.prevWasFocused,I=l.instancePrefix,b=o.options,S=o.value,A=o.menuIsOpen,F=o.inputValue,P=o.isMulti,L=xo(S),k={};if(a&&(S!==a.value||b!==a.options||A!==a.menuIsOpen||F!==a.inputValue)){var N=A?px(o,L):[],X=A?Ph(Fo(o,L),"".concat(I,"-option")):[],R=c?gx(l,L):null,Y=mx(l,N),D=ql(X,Y);k={selectValue:L,focusedOption:Y,focusedOptionId:D,focusableOptionsWithIds:X,focusedValue:R,clearFocusValueOnUpdate:!1}}var j=f!=null&&o!==a?{inputIsHidden:f,inputIsHiddenAfterUpdate:void 0}:{},Q=h,U=p&&g;return p&&!U&&(Q={value:mu(P,L,L[0]||null),options:L,action:"initial-input-focus"},U=!g),(h==null?void 0:h.action)==="initial-input-focus"&&(Q=null),de(de(de({},k),j),{},{prevProps:o,ariaSelection:Q,prevWasFocused:U})}}]),r}(H.Component);$l.defaultProps=hx;var vx=H.forwardRef(function(e,t){var r=Nd(e);return Pe.createElement($l,me({ref:t},r))}),Oo=vx;const yx=yu,To={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}},kh={colors:{},spacing:{baseUnit:4,controlHeight:32,menuGutter:8},boxShadow:{button:"none",input:"none",card:"none",dropdown:"none"}};function Lh(e){if(!e)return yu;const t=typeof e=="function"?e(To):e,{colors:r,spacing:u,borderRadius:o}=Bo(yx,t);return{borderRadius:o,colors:r,spacing:u}}function Bo(e,...t){const r={borderRadius:e.borderRadius,colors:{...e.colors},spacing:{...e.spacing},boxShadow:{...e.boxShadow}};for(const u of t)u&&(r.borderRadius=u.borderRadius??r.borderRadius,Object.assign(r.boxShadow,u.boxShadow),Object.assign(r.colors,u.colors),Object.assign(r.spacing,u.spacing));return r}function Dh(e){const{field:t,markdown:r}=e,{prop:u}=t,{getClassNames:o,getStyles:l,theme:a}=fn(),c={color:a.colors.neutral50,fontWeight:400,fontSize:"0.75rem",gridArea:"description",textWrap:"balance",lineHeight:"1.5"};return u.type==="app"?K.jsx("p",{className:o("description",e),style:l("description",c,e),children:"Credentials are encrypted."}):u.description?K.jsxs("div",{className:o("description",e),style:l("description",c,e),children:[" ",K.jsx(hd,{components:{a:({...f})=>K.jsx("a",{...f,target:"_blank",rel:"noopener noreferrer"})},children:r})]}):null}function Mh(e){const{field:t}=e,{errors:r={},prop:u={},enableDebugging:o}=t;if(!o||!r[u.name])return null;const l=r[u.name].map(f=>({type:"alert",alertType:"error",content:f})),a={display:"grid",gridTemplateColumns:"max-content"},c=()=>K.jsx(K.Fragment,{children:l.map((f,h)=>K.jsx(so,{prop:f},h))});return K.jsx("div",{className:"pd-errors",style:a,children:K.jsx(c,{})})}function Nh(e){const{text:t,field:r}=e,{id:u}=r,{getProps:o,theme:l}=fn(),a={color:l.colors.neutral90,fontWeight:450,gridArea:"label",lineHeight:"1.5"};return K.jsx("label",{htmlFor:u,...o("label",a,e),children:t})}const Vh=e=>{const{prop:t,enabled:r,onClick:u}=e,{getProps:o,theme:l}=fn(),a={color:l.colors.neutral60,display:"inline-flex",alignItems:"center",padding:`${l.spacing.baseUnit}px ${l.spacing.baseUnit*1.5}px ${l.spacing.baseUnit}px ${l.spacing.baseUnit*2.5}px`,border:`1px solid ${l.colors.neutral30}`,borderRadius:l.borderRadius,cursor:"pointer",fontSize:"0.8125rem",fontWeight:450,gap:l.spacing.baseUnit*2,textWrap:"nowrap"};return K.jsxs("button",{onClick:u,type:"button",...o("optionalFieldButton",a,e),children:[K.jsx("span",{children:r?"-":"+"}),K.jsx("span",{style:{marginRight:8},children:t.label||t.name})]})},Wh=e=>{const{onChange:t}=e,{getProps:r,theme:u}=fn(),o={backgroundColor:u.colors.primary,borderRadius:u.borderRadius,border:"solid 1px",borderColor:u.colors.primary25,color:u.colors.primary25,padding:"0.5rem",fontSize:"0.8125rem",fontWeight:"450",gridArea:"control",cursor:"pointer",width:"100%"};return K.jsx("button",{onClick:t,type:"button",...r("loadMoreButton",o,e),children:"Load More"})},Xh={Description:Dh,Errors:Mh,Label:Nh,OptionalFieldButton:Vh,Button:Wh},_o=H.createContext({classNames:{},classNamePrefix:"",components:{},styles:{},theme:To,unstyled:!1});function Ix(){const e=H.useContext(_o)??{},t=Lh(e.theme??{});function r(){return e.classNamePrefix??""}function u(c){var p;const f=`${(e==null?void 0:e.classNamePrefix)??"pd-"}${c}`,h={...((p=e.classNames)==null?void 0:p[c])??{}};return typeof(h==null?void 0:h.container)=="function"&&(h.container=typeof(h==null?void 0:h.container)=="function"?(...g)=>{var I;return[(I=h==null?void 0:h.container)==null?void 0:I.call(h,...g),f].join(" ")}:()=>f),h}function o(c,f){var h;return{...bu,...f??{},...((h=e==null?void 0:e.components)==null?void 0:h[c])??{}}}function l(c,f){var h;return sx(((h=e.styles)==null?void 0:h[c])??{},f??{})}function a(c,f){return{classNamePrefix:r(),classNames:u(c),components:o(c,f==null?void 0:f.components),styles:l(c,f==null?void 0:f.styles),theme:t}}return{getClassNamePrefix:r,getClassNames:u,getComponents:o,getProps:a,getStyles:l,theme:t}}function fn(){const e=H.useContext(_o)??{},t=e.theme,r=e.unstyled?kh:To,u=typeof t=="function"?Bo(r,t(r)):Bo(r,t);function o(f,h){var I;const p=`${(e==null?void 0:e.classNamePrefix)??"pd-"}${f.toLowerCase()}`,g=(I=e.classNames)==null?void 0:I[f];if(typeof g=="function"){const b=g,S={...h??{},theme:u};return[p,b(S)].filter(Boolean).join(" ")}return[p,g].filter(Boolean).join(" ")}function l(){return{...Xh,...(e==null?void 0:e.components)??{}}}function a(f,h,p){var I;const g=(I=e.styles)==null?void 0:I[f];if(typeof g=="function"){const b=g,S={...p??{},theme:u};return b(h,S)}return g?{...h,...g}:h}function c(f,h,p){return{className:o(f,p),style:a(f,h,p)}}return{getClassNames:o,getComponents:l,getProps:c,getStyles:a,select:Ix(),theme:u}}const Cx=({children:e,...t})=>K.jsx(_o.Provider,{value:t,children:e}),Kl=H.createContext(void 0),Jr=()=>{const e=H.useContext(Kl);if(!e)throw new Error("Must be used inside FormFieldContext.Provider");return e},Hh=(e,t)=>{var o;const r=ur(),u=Zr({...t==null?void 0:t.useQueryOpts,queryKey:["accounts",e],queryFn:()=>r.getAccounts(e)});return{...u,accounts:((o=u.data)==null?void 0:o.data)||[]}},xx=e=>K.jsx(bu.Option,{...e,children:e.data.name});function zh({app:e}){const t=ur(),r=Jr(),{id:u,prop:o,value:l,onChange:a}=r,{getProps:c,select:f,theme:h}=fn(),p={color:h.colors.neutral60,gridArea:"control"},g={backgroundColor:h.colors.primary,borderRadius:h.borderRadius,border:"solid 1px",borderColor:h.colors.primary25,color:h.colors.primary25,padding:"0.25rem 0.5rem",gridArea:"control"},I={components:{Option:xx},styles:{control:N=>({...N,gridArea:"control",boxShadow:h.boxShadow.input})}},b=f.getProps("controlAppSelect",I),S=void 0,{isLoading:A,accounts:F,refetch:P}=Hh({app:e.name_slug,oauth_app_id:S},{useQueryOpts:{enabled:!!e,suspense:!!e}}),L=async()=>{t.connectAccount({app:o.app,oauthAppId:S,onSuccess:async N=>{await P(),a({authProvisionId:N.id})},onError:()=>{}})},k=H.useMemo(()=>{let N=l;if(N!=null){for(const X of F)if(N.authProvisionId===X.id){N=X;break}}return N},[F,l]);return K.jsx("div",{...c("controlApp",p,{app:e,...r}),children:A?`Loading ${e.name} accounts...`:F.length?K.jsx(Oo,{instanceId:u,value:k,options:[...F,{id:"_new",name:`Connect new ${e.name} account...`}],...b,required:!0,placeholder:`Select ${e.name} account...`,isLoading:A,isClearable:!0,isSearchable:!0,getOptionLabel:N=>N.name,getOptionValue:N=>N.id,onChange:N=>{N?N.id==="_new"?L():a({authProvisionId:N.id}):a(void 0)}}):K.jsxs("button",{type:"button",...c("connectButton",g,{app:e,...r}),onClick:()=>L(),children:["Connect ",e.name]})})}function Zh(){const e=Jr(),{id:t,value:r,onChange:u}=e,{getProps:o}=fn(),l={width:"16px",height:"16px",gridArea:"control",margin:"0 0.5rem 0 0"};return K.jsx("input",{id:t,type:"checkbox",...o("controlBoolean",l,e),checked:r??!1,onChange:a=>u(a.target.checked)})}function Yh(){const e=Jr(),{id:t,onChange:r,prop:u,value:o}=e,{getProps:l,theme:a}=fn(),c={color:a.colors.neutral60,display:"block",border:"1px solid",borderColor:a.colors.neutral20,padding:6,width:"100%",borderRadius:a.borderRadius,gridArea:"control",boxShadow:a.boxShadow.input};let f="off",h="text",p=g=>g;switch(u.type){case"string":break;case"integer":h="number",p=g=>g?parseInt(g):void 0;break;default:throw new Error("unexpected prop.type for ControlInput: "+u.type)}return"secret"in u&&u.secret&&(h="password",f="new-password"),K.jsx("input",{id:t,type:h,name:u.name,value:o??"",onChange:g=>r(p(g.target.value)),...l("controlInput",c,e),min:"min"in u?u.min:void 0,max:"max"in u?u.max:void 0,autoComplete:f,"data-lpignore":"true","data-1p-ignore":"true",required:!u.optional})}var Ax=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],Jh=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0,u=arguments.length>2?arguments[2]:void 0,o=String(t).toLowerCase(),l=String(u.getOptionValue(r)).toLowerCase(),a=String(u.getOptionLabel(r)).toLowerCase();return l===o||a===o},ea={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,r,u,o){return!(!t||r.some(function(l){return Jh(t,l,o)})||u.some(function(l){return Jh(t,l,o)}))},getNewOptionData:function(t,r){return{label:r,value:t,__isNew__:!0}}};function wx(e){var t=e.allowCreateWhileLoading,r=t===void 0?!1:t,u=e.createOptionPosition,o=u===void 0?"last":u,l=e.formatCreateLabel,a=l===void 0?ea.formatCreateLabel:l,c=e.isValidNewOption,f=c===void 0?ea.isValidNewOption:c,h=e.getNewOptionData,p=h===void 0?ea.getNewOptionData:h,g=e.onCreateOption,I=e.options,b=I===void 0?[]:I,S=e.onChange,A=Un(e,Ax),F=A.getOptionValue,P=F===void 0?wh:F,L=A.getOptionLabel,k=L===void 0?Ah:L,N=A.inputValue,X=A.isLoading,R=A.isMulti,Y=A.value,D=A.name,j=H.useMemo(function(){return f(N,xo(Y),b,{getOptionValue:P,getOptionLabel:k})?p(N,a(N)):void 0},[a,p,k,P,N,f,b,Y]),Q=H.useMemo(function(){return(r||!X)&&j?o==="first"?[j].concat(xi(b)):[].concat(xi(b),[j]):b},[r,o,X,j,b]),U=H.useCallback(function(q,be){if(be.action!=="select-option")return S(q,be);var Se=Array.isArray(q)?q:[q];if(Se[Se.length-1]===j){if(g)g(N);else{var ue=p(N,N),pe={action:"create-option",name:D,option:ue};S(mu(R,[].concat(xi(xo(Y)),[ue]),ue),pe)}return}S(q,be)},[p,N,R,D,j,g,S,Y]);return de(de({},A),{},{options:Q,onChange:U})}var Sx=H.forwardRef(function(e,t){var r=Nd(e),u=wx(r);return Pe.createElement($l,me({ref:t},u))}),Ex=Sx;function Go({isCreatable:e,options:t,selectProps:r,showLoadMoreButton:u,onLoadMore:o}){const l=Jr(),{id:a,prop:c,value:f,onChange:h}=l,{select:p,theme:g}=fn(),[I,b]=H.useState(t),[S,A]=H.useState(f);H.useEffect(()=>{b(t)},[t]),H.useEffect(()=>{A(f)},[f]);const F={styles:{container:D=>({...D,gridArea:"control",boxShadow:g.boxShadow.input})}},P=H.useMemo(()=>{let D=S;if(D!=null)if(Array.isArray(D)){if(typeof D[0]!="object"){const j=[];for(const Q of D){let U={label:Q,value:Q};for(const q of I)if(q.value===Q){U=q;break}j.push(U)}D=j}}else if(typeof D!="object")if((I==null?void 0:I[0])&&typeof I[0]=="object"){for(const Q of I)if(Q.value===S){D=Q;break}}else D={label:S,value:S};else D.__lv&&(D=D.__lv);return D},[S,I]),L=({children:D,...j})=>K.jsxs(bu.MenuList,{...j,children:[D,K.jsx("div",{className:"pt-4",children:K.jsx(Wh,{onChange:o})})]}),k=p.getProps("controlSelect",F);u&&(k.components={...k.components,MenuList:L});const N=D=>{const j=be=>typeof be=="object"?be:{label:be,value:be},Q=j(D);let U=Q;const q=I?[Q,...I]:[Q];b(q),c.type.endsWith("[]")&&(Array.isArray(S)?U=[...S.map(j),Q]:U=[Q]),A(U),X(U)},X=D=>{if(D)if(Array.isArray(D))typeof D[0]=="object"&&"value"in D[0]?h({__lv:D}):h(D);else if(typeof D=="object"&&"value"in D)h({__lv:D});else throw new Error("unhandled option type");else h(void 0)},R={onCreateOption:c.remoteOptions?N:void 0},Y=e?Ex:Oo;return K.jsx(Y,{inputId:a,instanceId:a,options:I,value:P,isMulti:c.type.endsWith("[]"),isClearable:!0,required:!c.optional,...k,...r,...R,onChange:X})}function jh({queryEnabled:e}){const t=ur(),{userId:r,component:u,configurableProps:o,configuredProps:l,dynamicProps:a,props:{disableQueryDisabling:c}}=po(),{idx:f,prop:h}=Jr(),[p,g]=H.useState(""),[I,b]=H.useState(0),[S,A]=H.useState(!0),[F,P]=H.useState(void 0),[L,k]=H.useState({page:0,prevContext:{},data:[],values:new Set}),N={};for(let ue=0;ue<f;ue++){const pe=o[ue];N[pe.name]=l[pe.name]}const X={userId:r,page:I,prevContext:F,componentId:u.key,propName:h.name,configuredProps:N,dynamicPropsId:a==null?void 0:a.id};h.useQuery&&(X.query=p||"");const R={...X};delete R.dynamicPropsId;const[Y,D]=H.useState(),j=()=>{b(L.page),P(L.prevContext),k({...L,prevContext:{}})},{isFetching:Q,refetch:U}=Zr({queryKey:["componentConfigure",R],queryFn:async()=>{D(void 0);const ue=await t.componentConfigure(X),{options:pe,stringOptions:Ee,errors:Oe}=ue;if(Oe!=null&&Oe.length){try{D(JSON.parse(Oe[0]))}catch{D({name:"Error",message:Oe[0]})}return[]}let Ke=[];if(pe!=null&&pe.length&&(Ke=pe),Ee!=null&&Ee.length){const w=[];for(const je of Ee)w.push({label:je,value:je});Ke=w}const E=[],xe=new Set(L.values);for(const w of Ke||[]){const je=typeof w=="string"?w:w.value;xe.has(je)||(xe.add(je),E.push(w))}let Le=L.data;return E.length?(Le=[...L.data,...E],k({page:I+1,prevContext:ue.context,data:Le,values:xe})):A(!1),Le},enabled:!!e}),q=()=>!Q&&!Y&&S,be=Y?Y.message:c?"Click to configure":e?void 0:"Configure props above first",Se=c?!1:!e;return K.jsx(Go,{isCreatable:!0,showLoadMoreButton:q(),onLoadMore:j,options:L.data,selectProps:{isLoading:Q,placeholder:be,isDisabled:Se,inputValue:h.useQuery?p:void 0,onInputChange(ue){h.useQuery&&(g(ue),U())},onMenuOpen(){c&&!e&&U()}}})}function Uh(e){const{field:t,form:r}=e,{queryDisabledIdx:u}=r,{prop:o,idx:l}=t,a="app"in t.extra?t.extra.app:void 0;if(o.remoteOptions||o.type==="$.discord.channel")return K.jsx(jh,{queryEnabled:u==null||u>=l});if("options"in o&&o.options){let c=o.options;return typeof c[0]!="object"&&(c=c.map(f=>({label:f,value:f}))),K.jsx(Go,{options:c,components:{IndicatorSeparator:()=>null}})}if(o.type.endsWith("[][]"))throw new Error("Unsupported property type: "+o.type);if(o.type.endsWith("[]"))return K.jsx(Go,{isCreatable:!0,options:[],components:{IndicatorSeparator:()=>null}});switch(o.type){case"app":return K.jsx(zh,{app:a});case"boolean":return K.jsx(Zh,{});case"string":case"integer":return K.jsx(Yh,{});default:throw new Error("Unsupported property type: "+o.type)}}function Qh(e){const{form:t,field:r}=e,{prop:u}=r,{getProps:o,getComponents:l}=fn(),a={display:"grid",gridTemplateAreas:r.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:c,Description:f,Errors:h}=l(),p="app"in r.extra?r.extra.app:void 0;if(p&&!p.auth_type)return null;let g=u.label||u.name;return p&&(g=`Connect ${p.name} account`),K.jsxs("div",{...o("field",a,e),children:[K.jsx(c,{text:g,field:r,form:t}),K.jsx(Uh,{field:r,form:t}),K.jsx(f,{markdown:u.description,field:r,form:t}),K.jsx(h,{field:r,form:t})]})}const qh=(e,t)=>{var o;const r=ur(),u=Zr({queryKey:["app",e],queryFn:()=>r.app(e),...t==null?void 0:t.useQueryOpts});return{...u,app:(o=u.data)==null?void 0:o.data}};function $h({prop:e,idx:t}){const r=po(),{id:u,configuredProps:o,registerField:l,setConfiguredProp:a,errors:c,enableDebugging:f}=r,h=e.type==="app"&&"app"in e?e.app:void 0,{app:p}=qh(h||"",{useQueryOpts:{enabled:!!h,suspense:!!h}}),I={id:`pd${u}${e.name}`,prop:e,idx:t,value:o[e.name],onChange(b){a(t,b)},extra:{app:p},errors:c,enableDebugging:f};return H.useEffect(()=>l(I),[I]),K.jsx(Kl.Provider,{value:I,children:K.jsx(Qh,{field:I,form:r})})}class Kh extends H.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 ep(e){const{form:t}=e,{propsNeedConfiguring:r,submitting:u}=t,{getProps:o,theme:l}=fn(),a=c=>{var f;return{width:"fit-content",textTransform:"capitalize",backgroundColor:c?l.colors.neutral10:l.colors.primary,color:c?l.colors.neutral40:l.colors.neutral0,padding:`${l.spacing.baseUnit*1.75}px ${l.spacing.baseUnit*16}px`,borderRadius:l.borderRadius,boxShadow:(f=l.boxShadow)==null?void 0:f.button,cursor:"pointer",fontSize:"0.875rem",opacity:u?.5:void 0,margin:"0.5rem 0 0 0"}};return K.jsx("input",{type:"submit",value:u?"Submitting...":"Submit",...o("controlSubmit",a(r.length||u),e),disabled:r.length||u})}const Fx=["ConfigurationError"];function tp(){const e=po(),{configurableProps:t,dynamicPropsQueryIsFetching:r,isValid:u,optionalPropIsEnabled:o,optionalPropSetEnabled:l,props:a,setSubmitting:c,sdkErrors:f,submitting:h,enableDebugging:p}=e,g=p||f.filter(Q=>Fx.includes(Q.name)).length>0,{hideOptionalProps:I,onSubmit:b}=a,[S,A]=H.useState([]);H.useEffect(()=>{h?A([]):f&&f.length&&A(f.map(Q=>({type:"alert",alertType:"error",content:`# ${Q.name}
|
|
46
|
+
${Q.message}`})))},[f,h]);const{getComponents:F,getProps:P,theme:L}=fn(),{OptionalFieldButton:k}=F(),N={display:"flex",flexDirection:"column",gap:"1.5rem"},X={display:"flex",flexWrap:"wrap",gap:"0.375rem"},R={fontWeight:600,textTransform:"capitalize",color:L.colors.neutral60,fontSize:"0.875rem",lineHeight:"1.375",margin:"0 0 0.5rem 0"},Y=async Q=>{if(b&&(Q.preventDefault(),u)){c(!0);try{await b(e)}finally{c(!1)}}},D=[],j=[];for(let Q=0;Q<t.length;Q++){const U=t[Q];if(!U.hidden&&!pu.includes(U.type)){if(U.optional){const q=o(U);if(j.push([U,q]),!q)continue}D.push([U,Q])}}return K.jsx(Kh,{fallback:Q=>K.jsxs("p",{style:{color:"red"},children:["Error: ",Q&&typeof Q=="object"&&"message"in Q&&typeof Q.message=="string"?Q.message:"Unknown"]}),children:K.jsx(H.Suspense,{fallback:K.jsx("p",{children:"Loading form..."}),children:K.jsxs("form",{...P("componentForm",N,a),onSubmit:Y,children:[D.map(([Q,U])=>Q.type==="alert"?K.jsx(so,{prop:Q},Q.name):K.jsx($h,{prop:Q,idx:U},Q.name)),r&&K.jsx("p",{children:"Loading dynamic props..."}),!I&&j.length?K.jsxs("div",{children:[K.jsx("div",{...P("heading",R,a),children:"Optional Props"}),K.jsx("div",{...P("optionalFields",X,a),children:j.map(([Q,U])=>K.jsx(k,{prop:Q,enabled:U,onClick:()=>l(Q,!U)},Q.name))})]}):null,g&&(S==null?void 0:S.map((Q,U)=>K.jsx(so,{prop:Q},U))),b&&K.jsx(ep,{form:e})]})})})}function np(e){return K.jsx(kd,{props:e,children:K.jsx(tp,{})})}const rp=({key:e},t)=>{var o;const r=ur(),u=Zr({queryKey:["component",e],queryFn:()=>r.component({key:e}),enabled:!!e,...t==null?void 0:t.useQueryOpts});return{...u,component:(o=u.data)==null?void 0:o.data}};function Px(e){const{isLoading:t,error:r,component:u}=rp({key:e.componentKey});if(!e.componentKey)throw new Error("componentKey required");return t?K.jsx("p",{children:"Loading..."}):r?K.jsxs("p",{children:["Error: ",r.message]}):u?K.jsx(np,{component:u,...e}):K.jsx("p",{children:"Component not found"})}function Ox(){const e=Jr(),{id:t,onChange:r,value:u}=e,{getProps:o,theme:l}=fn(),a={display:"block",gridArea:"control",width:"100%",fontSize:"0.875rem",boxShadow:l.boxShadow.input};let c=u;return typeof c=="object"&&(c=JSON.stringify(c)),K.jsx("textarea",{id:t,value:c,onChange:f=>r(f.target.value),...o("controlAny",a,e)})}const ip=e=>{var u;const t=ur(),r=Zr({queryKey:["apps",e],queryFn:()=>t.apps(e)});return{...r,apps:(u=r.data)==null?void 0:u.data}};function Tx({value:e,onChange:t}){const[r,u]=H.useState(""),o=H.useId(),{isLoading:l,apps:a}=ip({q:r}),{Option:c}=bu;return K.jsx(Oo,{instanceId:o,className:"react-select-container text-sm",classNamePrefix:"react-select",components:{Option:f=>K.jsx(c,{...f,children:K.jsxs("div",{style:{display:"flex",gap:10},children:[K.jsx("img",{src:`https://pipedream.com/s.v0/${f.data.id}/logo/48`,style:{height:24,width:24},alt:f.data.name}),K.jsx("span",{style:{whiteSpace:"nowrap"},children:f.data.name})]})}),IndicatorSeparator:()=>null},options:a||[],getOptionLabel:f=>f.name||f.name_slug,getOptionValue:f=>f.name_slug,value:e,onChange:f=>t==null?void 0:t(f||void 0),onInputChange:f=>u(f),isLoading:l})}const up=e=>{var u;const t=ur(),r=Zr({queryKey:["components",e],queryFn:()=>t.components(e)});return{...r,components:((u=r.data)==null?void 0:u.data)||[]}};function Bx({app:e,componentType:t,value:r,onChange:u}){const o=H.useId(),{isLoading:l,components:a}=up({app:e==null?void 0:e.name_slug,componentType:t});return K.jsx(Oo,{instanceId:o,className:"react-select-container text-sm",classNamePrefix:"react-select",options:a,getOptionLabel:c=>c.name||c.key,getOptionValue:c=>c.key,value:r,onChange:c=>u==null?void 0:u(c||void 0),isLoading:l,components:{IndicatorSeparator:()=>null}})}ie.Alert=so,ie.ComponentForm=np,ie.ComponentFormContainer=Px,ie.Control=Uh,ie.ControlAny=Ox,ie.ControlApp=zh,ie.ControlBoolean=Zh,ie.ControlInput=Yh,ie.ControlSelect=Go,ie.ControlSubmit=ep,ie.CustomizationContext=_o,ie.CustomizeProvider=Cx,ie.Description=Dh,ie.ErrorBoundary=Kh,ie.Errors=Mh,ie.Field=Qh,ie.FormContext=Ll,ie.FormContextProvider=kd,ie.FormFieldContext=Kl,ie.FrontendClientProvider=mI,ie.InternalComponentForm=tp,ie.InternalField=$h,ie.Label=Nh,ie.OptionalFieldButton=Vh,ie.RemoteOptionsContainer=jh,ie.SelectApp=Tx,ie.SelectComponent=Bx,ie.defaultComponents=Xh,ie.defaultTheme=To,ie.getReactSelectTheme=Lh,ie.mergeTheme=Bo,ie.skippablePropTypes=pu,ie.unstyledTheme=kh,ie.useAccounts=Hh,ie.useApp=qh,ie.useApps=ip,ie.useComponent=rp,ie.useComponents=up,ie.useCustomize=fn,ie.useFormContext=po,ie.useFormFieldContext=Jr,ie.useFrontendClient=ur,Object.defineProperty(ie,Symbol.toStringTag,{value:"Module"})});
|