libre-webui 0.3.0 → 0.3.2
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/README.md +53 -21
- package/backend/dist/services/pluginService.d.ts.map +1 -1
- package/backend/dist/services/pluginService.js +9 -2
- package/backend/dist/services/pluginService.js.map +1 -1
- package/frontend/dist/assets/{index-BAlYrgVl.js → index-BbJ5OmoO.js} +4 -4
- package/frontend/dist/index.html +5 -5
- package/frontend/dist/js/{ArtifactContainer-DOyRNr2K.js → ArtifactContainer-BeIYvOxW.js} +1 -1
- package/frontend/dist/js/{ArtifactDemoPage-DuHnKjTy.js → ArtifactDemoPage-DLNsXpdK.js} +1 -1
- package/frontend/dist/js/{ChatPage-D4AGvUr9.js → ChatPage-B1ySV3lW.js} +2 -2
- package/frontend/dist/js/{GalleryPage-DPxs-JHF.js → GalleryPage-BRYMP7Q3.js} +1 -1
- package/frontend/dist/js/{ModelsPage-CDx8DvZ8.js → ModelsPage-7lF58OTC.js} +1 -1
- package/frontend/dist/js/{PersonasPage-CHDGv_Lh.js → PersonasPage-Cc_gMLv0.js} +1 -1
- package/frontend/dist/js/{UserManagementPage-COb0e5_w.js → UserManagementPage-DqV3zxVm.js} +1 -1
- package/frontend/dist/js/{markdown-vendor-DRtqGHm3.js → markdown-vendor-YWiGftdn.js} +1 -1
- package/frontend/dist/js/router-vendor-CnU0qKrY.js +3 -0
- package/frontend/dist/js/{ui-vendor-DA07XX1l.js → ui-vendor-CdKqcMKK.js} +1 -1
- package/frontend/dist/js/{utils-vendor-DNzxLBGx.js → utils-vendor-DEeF42mN.js} +1 -1
- package/package.json +1 -2
- package/frontend/dist/js/router-vendor-B-t91v39.js +0 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as Mu,g as Ol}from"./react-vendor-N--QU9DW.js";import{R as Re}from"./router-vendor-B-t91v39.js";var Pt={exports:{}},Ze={};var Ds;function Fu(){if(Ds)return Ze;Ds=1;var e=Mu(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(s,u,l){var c,d={},m=null,p=null;l!==void 0&&(m=""+l),u.key!==void 0&&(m=""+u.key),u.ref!==void 0&&(p=u.ref);for(c in u)r.call(u,c)&&!i.hasOwnProperty(c)&&(d[c]=u[c]);if(s&&s.defaultProps)for(c in u=s.defaultProps,u)d[c]===void 0&&(d[c]=u[c]);return{$$typeof:t,type:s,key:m,ref:p,props:d,_owner:a.current}}return Ze.Fragment=n,Ze.jsx=o,Ze.jsxs=o,Ze}var Ms;function Uu(){return Ms||(Ms=1,Pt.exports=Fu()),Pt.exports}var $t=Uu();const Bu="modulepreload",Pu=function(e){return"/"+e},Fs={},nf=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let u=function(l){return Promise.all(l.map(c=>Promise.resolve(c).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),s=o?.nonce||o?.getAttribute("nonce");a=u(n.map(l=>{if(l=Pu(l),l in Fs)return;Fs[l]=!0;const c=l.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${d}`))return;const m=document.createElement("link");if(m.rel=c?"stylesheet":Bu,c||(m.as="script"),m.crossOrigin="",m.href=l,s&&m.setAttribute("nonce",s),document.head.appendChild(m),c)return new Promise((p,h)=>{m.addEventListener("load",p),m.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${l}`)))})}))}function i(o){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o}return a.then(o=>{for(const s of o||[])s.status==="rejected"&&i(s.reason);return t().catch(i)})};function rf(){}function Us(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,i=!1;for(;!i;){r===-1&&(r=n.length,i=!0);const o=n.slice(a,r).trim();(o||!i)&&t.push(o),a=r+1,r=n.indexOf(",",a)}return t}function $u(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Gu=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,zu=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Hu={};function Bs(e,t){return(Hu.jsx?zu:Gu).test(e)}const ju=/[ \t\n\f\r]/g;function Vu(e){return typeof e=="object"?e.type==="text"?Ps(e.value):!1:Ps(e)}function Ps(e){return e.replace(ju,"")===""}class ut{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}ut.prototype.normal={};ut.prototype.property={};ut.prototype.space=void 0;function xl(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new ut(n,r,t)}function it(e){return e.toLowerCase()}class le{constructor(t,n){this.attribute=n,this.property=t}}le.prototype.attribute="";le.prototype.booleanish=!1;le.prototype.boolean=!1;le.prototype.commaOrSpaceSeparated=!1;le.prototype.commaSeparated=!1;le.prototype.defined=!1;le.prototype.mustUseProperty=!1;le.prototype.number=!1;le.prototype.overloadedBoolean=!1;le.prototype.property="";le.prototype.spaceSeparated=!1;le.prototype.space=void 0;let qu=0;const $=Oe(),ee=Oe(),tn=Oe(),I=Oe(),Y=Oe(),Be=Oe(),de=Oe();function Oe(){return 2**++qu}const nn=Object.freeze(Object.defineProperty({__proto__:null,boolean:$,booleanish:ee,commaOrSpaceSeparated:de,commaSeparated:Be,number:I,overloadedBoolean:tn,spaceSeparated:Y},Symbol.toStringTag,{value:"Module"})),Gt=Object.keys(nn);class bn extends le{constructor(t,n,r,a){let i=-1;if(super(t,n),$s(this,"space",a),typeof r=="number")for(;++i<Gt.length;){const o=Gt[i];$s(this,Gt[i],(r&nn[o])===nn[o])}}}bn.prototype.defined=!0;function $s(e,t,n){n&&(e[t]=n)}function $e(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const i=new bn(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[it(r)]=r,n[it(i.attribute)]=r}return new ut(t,n,e.space)}const Ll=$e({properties:{ariaActiveDescendant:null,ariaAtomic:ee,ariaAutoComplete:null,ariaBusy:ee,ariaChecked:ee,ariaColCount:I,ariaColIndex:I,ariaColSpan:I,ariaControls:Y,ariaCurrent:null,ariaDescribedBy:Y,ariaDetails:null,ariaDisabled:ee,ariaDropEffect:Y,ariaErrorMessage:null,ariaExpanded:ee,ariaFlowTo:Y,ariaGrabbed:ee,ariaHasPopup:null,ariaHidden:ee,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Y,ariaLevel:I,ariaLive:null,ariaModal:ee,ariaMultiLine:ee,ariaMultiSelectable:ee,ariaOrientation:null,ariaOwns:Y,ariaPlaceholder:null,ariaPosInSet:I,ariaPressed:ee,ariaReadOnly:ee,ariaRelevant:null,ariaRequired:ee,ariaRoleDescription:Y,ariaRowCount:I,ariaRowIndex:I,ariaRowSpan:I,ariaSelected:ee,ariaSetSize:I,ariaSort:null,ariaValueMax:I,ariaValueMin:I,ariaValueNow:I,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Dl(e,t){return t in e?e[t]:t}function Ml(e,t){return Dl(e,t.toLowerCase())}const Wu=$e({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Be,acceptCharset:Y,accessKey:Y,action:null,allow:null,allowFullScreen:$,allowPaymentRequest:$,allowUserMedia:$,alt:null,as:null,async:$,autoCapitalize:null,autoComplete:Y,autoFocus:$,autoPlay:$,blocking:Y,capture:null,charSet:null,checked:$,cite:null,className:Y,cols:I,colSpan:null,content:null,contentEditable:ee,controls:$,controlsList:Y,coords:I|Be,crossOrigin:null,data:null,dateTime:null,decoding:null,default:$,defer:$,dir:null,dirName:null,disabled:$,download:tn,draggable:ee,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:$,formTarget:null,headers:Y,height:I,hidden:tn,high:I,href:null,hrefLang:null,htmlFor:Y,httpEquiv:Y,id:null,imageSizes:null,imageSrcSet:null,inert:$,inputMode:null,integrity:null,is:null,isMap:$,itemId:null,itemProp:Y,itemRef:Y,itemScope:$,itemType:Y,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:$,low:I,manifest:null,max:null,maxLength:I,media:null,method:null,min:null,minLength:I,multiple:$,muted:$,name:null,nonce:null,noModule:$,noValidate:$,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:$,optimum:I,pattern:null,ping:Y,placeholder:null,playsInline:$,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:$,referrerPolicy:null,rel:Y,required:$,reversed:$,rows:I,rowSpan:I,sandbox:Y,scope:null,scoped:$,seamless:$,selected:$,shadowRootClonable:$,shadowRootDelegatesFocus:$,shadowRootMode:null,shape:null,size:I,sizes:null,slot:null,span:I,spellCheck:ee,src:null,srcDoc:null,srcLang:null,srcSet:null,start:I,step:null,style:null,tabIndex:I,target:null,title:null,translate:null,type:null,typeMustMatch:$,useMap:null,value:ee,width:I,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Y,axis:null,background:null,bgColor:null,border:I,borderColor:null,bottomMargin:I,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:$,declare:$,event:null,face:null,frame:null,frameBorder:null,hSpace:I,leftMargin:I,link:null,longDesc:null,lowSrc:null,marginHeight:I,marginWidth:I,noResize:$,noHref:$,noShade:$,noWrap:$,object:null,profile:null,prompt:null,rev:null,rightMargin:I,rules:null,scheme:null,scrolling:ee,standby:null,summary:null,text:null,topMargin:I,valueType:null,version:null,vAlign:null,vLink:null,vSpace:I,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:$,disableRemotePlayback:$,prefix:null,property:null,results:I,security:null,unselectable:null},space:"html",transform:Ml}),Yu=$e({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:de,accentHeight:I,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:I,amplitude:I,arabicForm:null,ascent:I,attributeName:null,attributeType:null,azimuth:I,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:I,by:null,calcMode:null,capHeight:I,className:Y,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:I,diffuseConstant:I,direction:null,display:null,dur:null,divisor:I,dominantBaseline:null,download:$,dx:null,dy:null,edgeMode:null,editable:null,elevation:I,enableBackground:null,end:null,event:null,exponent:I,externalResourcesRequired:null,fill:null,fillOpacity:I,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:Be,g2:Be,glyphName:Be,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:I,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:I,horizOriginX:I,horizOriginY:I,id:null,ideographic:I,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:I,k:I,k1:I,k2:I,k3:I,k4:I,kernelMatrix:de,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:I,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:I,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:I,overlineThickness:I,paintOrder:null,panose1:null,path:null,pathLength:I,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Y,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:I,pointsAtY:I,pointsAtZ:I,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:de,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:de,rev:de,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:de,requiredFeatures:de,requiredFonts:de,requiredFormats:de,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:I,specularExponent:I,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:I,strikethroughThickness:I,string:null,stroke:null,strokeDashArray:de,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:I,strokeOpacity:I,strokeWidth:null,style:null,surfaceScale:I,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:de,tabIndex:I,tableValues:null,target:null,targetX:I,targetY:I,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:de,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:I,underlineThickness:I,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:I,values:null,vAlphabetic:I,vMathematical:I,vectorEffect:null,vHanging:I,vIdeographic:I,version:null,vertAdvY:I,vertOriginX:I,vertOriginY:I,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:I,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Dl}),Fl=$e({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Ul=$e({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ml}),Bl=$e({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Ku={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"},Zu=/[A-Z]/g,Gs=/-[a-z]/g,Xu=/^data[-\w.:]+$/i;function Pl(e,t){const n=it(t);let r=t,a=le;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Xu.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Gs,Ju);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Gs.test(i)){let o=i.replace(Zu,Qu);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=bn}return new a(r,t)}function Qu(e){return"-"+e.toLowerCase()}function Ju(e){return e.charAt(1).toUpperCase()}const $l=xl([Ll,Wu,Fl,Ul,Bl],"html"),kt=xl([Ll,Yu,Fl,Ul,Bl],"svg");function zs(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function ec(e){return e.join(" ").trim()}var Me={},zt,Hs;function tc(){if(Hs)return zt;Hs=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,s=/^\s+|\s+$/g,u=`
|
|
1
|
+
import{r as Mu,g as Ol}from"./react-vendor-N--QU9DW.js";import{R as Re}from"./router-vendor-CnU0qKrY.js";var Pt={exports:{}},Ze={};var Ds;function Fu(){if(Ds)return Ze;Ds=1;var e=Mu(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(s,u,l){var c,d={},m=null,p=null;l!==void 0&&(m=""+l),u.key!==void 0&&(m=""+u.key),u.ref!==void 0&&(p=u.ref);for(c in u)r.call(u,c)&&!i.hasOwnProperty(c)&&(d[c]=u[c]);if(s&&s.defaultProps)for(c in u=s.defaultProps,u)d[c]===void 0&&(d[c]=u[c]);return{$$typeof:t,type:s,key:m,ref:p,props:d,_owner:a.current}}return Ze.Fragment=n,Ze.jsx=o,Ze.jsxs=o,Ze}var Ms;function Uu(){return Ms||(Ms=1,Pt.exports=Fu()),Pt.exports}var $t=Uu();const Bu="modulepreload",Pu=function(e){return"/"+e},Fs={},nf=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let u=function(l){return Promise.all(l.map(c=>Promise.resolve(c).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),s=o?.nonce||o?.getAttribute("nonce");a=u(n.map(l=>{if(l=Pu(l),l in Fs)return;Fs[l]=!0;const c=l.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${d}`))return;const m=document.createElement("link");if(m.rel=c?"stylesheet":Bu,c||(m.as="script"),m.crossOrigin="",m.href=l,s&&m.setAttribute("nonce",s),document.head.appendChild(m),c)return new Promise((p,h)=>{m.addEventListener("load",p),m.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${l}`)))})}))}function i(o){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o}return a.then(o=>{for(const s of o||[])s.status==="rejected"&&i(s.reason);return t().catch(i)})};function rf(){}function Us(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,i=!1;for(;!i;){r===-1&&(r=n.length,i=!0);const o=n.slice(a,r).trim();(o||!i)&&t.push(o),a=r+1,r=n.indexOf(",",a)}return t}function $u(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Gu=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,zu=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Hu={};function Bs(e,t){return(Hu.jsx?zu:Gu).test(e)}const ju=/[ \t\n\f\r]/g;function Vu(e){return typeof e=="object"?e.type==="text"?Ps(e.value):!1:Ps(e)}function Ps(e){return e.replace(ju,"")===""}class ut{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}ut.prototype.normal={};ut.prototype.property={};ut.prototype.space=void 0;function xl(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new ut(n,r,t)}function it(e){return e.toLowerCase()}class le{constructor(t,n){this.attribute=n,this.property=t}}le.prototype.attribute="";le.prototype.booleanish=!1;le.prototype.boolean=!1;le.prototype.commaOrSpaceSeparated=!1;le.prototype.commaSeparated=!1;le.prototype.defined=!1;le.prototype.mustUseProperty=!1;le.prototype.number=!1;le.prototype.overloadedBoolean=!1;le.prototype.property="";le.prototype.spaceSeparated=!1;le.prototype.space=void 0;let qu=0;const $=Oe(),ee=Oe(),tn=Oe(),I=Oe(),Y=Oe(),Be=Oe(),de=Oe();function Oe(){return 2**++qu}const nn=Object.freeze(Object.defineProperty({__proto__:null,boolean:$,booleanish:ee,commaOrSpaceSeparated:de,commaSeparated:Be,number:I,overloadedBoolean:tn,spaceSeparated:Y},Symbol.toStringTag,{value:"Module"})),Gt=Object.keys(nn);class bn extends le{constructor(t,n,r,a){let i=-1;if(super(t,n),$s(this,"space",a),typeof r=="number")for(;++i<Gt.length;){const o=Gt[i];$s(this,Gt[i],(r&nn[o])===nn[o])}}}bn.prototype.defined=!0;function $s(e,t,n){n&&(e[t]=n)}function $e(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const i=new bn(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[it(r)]=r,n[it(i.attribute)]=r}return new ut(t,n,e.space)}const Ll=$e({properties:{ariaActiveDescendant:null,ariaAtomic:ee,ariaAutoComplete:null,ariaBusy:ee,ariaChecked:ee,ariaColCount:I,ariaColIndex:I,ariaColSpan:I,ariaControls:Y,ariaCurrent:null,ariaDescribedBy:Y,ariaDetails:null,ariaDisabled:ee,ariaDropEffect:Y,ariaErrorMessage:null,ariaExpanded:ee,ariaFlowTo:Y,ariaGrabbed:ee,ariaHasPopup:null,ariaHidden:ee,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Y,ariaLevel:I,ariaLive:null,ariaModal:ee,ariaMultiLine:ee,ariaMultiSelectable:ee,ariaOrientation:null,ariaOwns:Y,ariaPlaceholder:null,ariaPosInSet:I,ariaPressed:ee,ariaReadOnly:ee,ariaRelevant:null,ariaRequired:ee,ariaRoleDescription:Y,ariaRowCount:I,ariaRowIndex:I,ariaRowSpan:I,ariaSelected:ee,ariaSetSize:I,ariaSort:null,ariaValueMax:I,ariaValueMin:I,ariaValueNow:I,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Dl(e,t){return t in e?e[t]:t}function Ml(e,t){return Dl(e,t.toLowerCase())}const Wu=$e({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Be,acceptCharset:Y,accessKey:Y,action:null,allow:null,allowFullScreen:$,allowPaymentRequest:$,allowUserMedia:$,alt:null,as:null,async:$,autoCapitalize:null,autoComplete:Y,autoFocus:$,autoPlay:$,blocking:Y,capture:null,charSet:null,checked:$,cite:null,className:Y,cols:I,colSpan:null,content:null,contentEditable:ee,controls:$,controlsList:Y,coords:I|Be,crossOrigin:null,data:null,dateTime:null,decoding:null,default:$,defer:$,dir:null,dirName:null,disabled:$,download:tn,draggable:ee,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:$,formTarget:null,headers:Y,height:I,hidden:tn,high:I,href:null,hrefLang:null,htmlFor:Y,httpEquiv:Y,id:null,imageSizes:null,imageSrcSet:null,inert:$,inputMode:null,integrity:null,is:null,isMap:$,itemId:null,itemProp:Y,itemRef:Y,itemScope:$,itemType:Y,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:$,low:I,manifest:null,max:null,maxLength:I,media:null,method:null,min:null,minLength:I,multiple:$,muted:$,name:null,nonce:null,noModule:$,noValidate:$,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:$,optimum:I,pattern:null,ping:Y,placeholder:null,playsInline:$,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:$,referrerPolicy:null,rel:Y,required:$,reversed:$,rows:I,rowSpan:I,sandbox:Y,scope:null,scoped:$,seamless:$,selected:$,shadowRootClonable:$,shadowRootDelegatesFocus:$,shadowRootMode:null,shape:null,size:I,sizes:null,slot:null,span:I,spellCheck:ee,src:null,srcDoc:null,srcLang:null,srcSet:null,start:I,step:null,style:null,tabIndex:I,target:null,title:null,translate:null,type:null,typeMustMatch:$,useMap:null,value:ee,width:I,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Y,axis:null,background:null,bgColor:null,border:I,borderColor:null,bottomMargin:I,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:$,declare:$,event:null,face:null,frame:null,frameBorder:null,hSpace:I,leftMargin:I,link:null,longDesc:null,lowSrc:null,marginHeight:I,marginWidth:I,noResize:$,noHref:$,noShade:$,noWrap:$,object:null,profile:null,prompt:null,rev:null,rightMargin:I,rules:null,scheme:null,scrolling:ee,standby:null,summary:null,text:null,topMargin:I,valueType:null,version:null,vAlign:null,vLink:null,vSpace:I,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:$,disableRemotePlayback:$,prefix:null,property:null,results:I,security:null,unselectable:null},space:"html",transform:Ml}),Yu=$e({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:de,accentHeight:I,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:I,amplitude:I,arabicForm:null,ascent:I,attributeName:null,attributeType:null,azimuth:I,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:I,by:null,calcMode:null,capHeight:I,className:Y,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:I,diffuseConstant:I,direction:null,display:null,dur:null,divisor:I,dominantBaseline:null,download:$,dx:null,dy:null,edgeMode:null,editable:null,elevation:I,enableBackground:null,end:null,event:null,exponent:I,externalResourcesRequired:null,fill:null,fillOpacity:I,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:Be,g2:Be,glyphName:Be,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:I,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:I,horizOriginX:I,horizOriginY:I,id:null,ideographic:I,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:I,k:I,k1:I,k2:I,k3:I,k4:I,kernelMatrix:de,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:I,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:I,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:I,overlineThickness:I,paintOrder:null,panose1:null,path:null,pathLength:I,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Y,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:I,pointsAtY:I,pointsAtZ:I,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:de,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:de,rev:de,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:de,requiredFeatures:de,requiredFonts:de,requiredFormats:de,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:I,specularExponent:I,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:I,strikethroughThickness:I,string:null,stroke:null,strokeDashArray:de,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:I,strokeOpacity:I,strokeWidth:null,style:null,surfaceScale:I,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:de,tabIndex:I,tableValues:null,target:null,targetX:I,targetY:I,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:de,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:I,underlineThickness:I,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:I,values:null,vAlphabetic:I,vMathematical:I,vectorEffect:null,vHanging:I,vIdeographic:I,version:null,vertAdvY:I,vertOriginX:I,vertOriginY:I,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:I,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Dl}),Fl=$e({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Ul=$e({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ml}),Bl=$e({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Ku={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"},Zu=/[A-Z]/g,Gs=/-[a-z]/g,Xu=/^data[-\w.:]+$/i;function Pl(e,t){const n=it(t);let r=t,a=le;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Xu.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Gs,Ju);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Gs.test(i)){let o=i.replace(Zu,Qu);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=bn}return new a(r,t)}function Qu(e){return"-"+e.toLowerCase()}function Ju(e){return e.charAt(1).toUpperCase()}const $l=xl([Ll,Wu,Fl,Ul,Bl],"html"),kt=xl([Ll,Yu,Fl,Ul,Bl],"svg");function zs(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function ec(e){return e.join(" ").trim()}var Me={},zt,Hs;function tc(){if(Hs)return zt;Hs=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,s=/^\s+|\s+$/g,u=`
|
|
2
2
|
`,l="/",c="*",d="",m="comment",p="declaration";function h(y,E){if(typeof y!="string")throw new TypeError("First argument must be a string");if(!y)return[];E=E||{};var _=1,A=1;function k(L){var R=L.match(t);R&&(_+=R.length);var G=L.lastIndexOf(u);A=~G?L.length-G:A+L.length}function O(){var L={line:_,column:A};return function(R){return R.position=new T(L),U(),R}}function T(L){this.start=L,this.end={line:_,column:A},this.source=E.source}T.prototype.content=y;function D(L){var R=new Error(E.source+":"+_+":"+A+": "+L);if(R.reason=L,R.filename=E.source,R.line=_,R.column=A,R.source=y,!E.silent)throw R}function M(L){var R=L.exec(y);if(R){var G=R[0];return k(G),y=y.slice(G.length),R}}function U(){M(n)}function F(L){var R;for(L=L||[];R=N();)R!==!1&&L.push(R);return L}function N(){var L=O();if(!(l!=y.charAt(0)||c!=y.charAt(1))){for(var R=2;d!=y.charAt(R)&&(c!=y.charAt(R)||l!=y.charAt(R+1));)++R;if(R+=2,d===y.charAt(R-1))return D("End of comment missing");var G=y.slice(2,R-2);return A+=2,k(G),y=y.slice(R),A+=2,L({type:m,comment:G})}}function v(){var L=O(),R=M(r);if(R){if(N(),!M(a))return D("property missing ':'");var G=M(i),z=L({type:p,property:S(R[0].replace(e,d)),value:G?S(G[0].replace(e,d)):d});return M(o),z}}function x(){var L=[];F(L);for(var R;R=v();)R!==!1&&(L.push(R),F(L));return L}return U(),x()}function S(y){return y?y.replace(s,d):d}return zt=h,zt}var js;function nc(){if(js)return Me;js=1;var e=Me&&Me.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Me,"__esModule",{value:!0}),Me.default=n;const t=e(tc());function n(r,a){let i=null;if(!r||typeof r!="string")return i;const o=(0,t.default)(r),s=typeof a=="function";return o.forEach(u=>{if(u.type!=="declaration")return;const{property:l,value:c}=u;s?a(l,c,u):c&&(i=i||{},i[l]=c)}),i}return Me}var Xe={},Vs;function rc(){if(Vs)return Xe;Vs=1,Object.defineProperty(Xe,"__esModule",{value:!0}),Xe.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,i=function(l){return!l||n.test(l)||e.test(l)},o=function(l,c){return c.toUpperCase()},s=function(l,c){return"".concat(c,"-")},u=function(l,c){return c===void 0&&(c={}),i(l)?l:(l=l.toLowerCase(),c.reactCompat?l=l.replace(a,s):l=l.replace(r,s),l.replace(t,o))};return Xe.camelCase=u,Xe}var Qe,qs;function ac(){if(qs)return Qe;qs=1;var e=Qe&&Qe.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(nc()),n=rc();function r(a,i){var o={};return!a||typeof a!="string"||(0,t.default)(a,function(s,u){s&&u&&(o[(0,n.camelCase)(s,i)]=u)}),o}return r.default=r,Qe=r,Qe}var ic=ac();const oc=Ol(ic),Gl=zl("end"),hn=zl("start");function zl(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function sc(e){const t=hn(e),n=Gl(e);if(t&&n)return{start:t,end:n}}function tt(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Ws(e.position):"start"in e||"end"in e?Ws(e):"line"in e||"column"in e?rn(e):""}function rn(e){return Ys(e&&e.line)+":"+Ys(e&&e.column)}function Ws(e){return rn(e&&e.start)+"-"+rn(e&&e.end)}function Ys(e){return e&&typeof e=="number"?e:1}class re extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",i={},o=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?a=t:!i.cause&&t&&(o=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?i.ruleId=r:(i.source=r.slice(0,u),i.ruleId=r.slice(u+1))}if(!i.place&&i.ancestors&&i.ancestors){const u=i.ancestors[i.ancestors.length-1];u&&(i.place=u.position)}const s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=s?s.line:void 0,this.name=tt(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}re.prototype.file="";re.prototype.name="";re.prototype.reason="";re.prototype.message="";re.prototype.stack="";re.prototype.column=void 0;re.prototype.line=void 0;re.prototype.ancestors=void 0;re.prototype.cause=void 0;re.prototype.fatal=void 0;re.prototype.place=void 0;re.prototype.ruleId=void 0;re.prototype.source=void 0;const En={}.hasOwnProperty,lc=new Map,uc=/[A-Z]/g,cc=new Set(["table","tbody","thead","tfoot","tr"]),dc=new Set(["td","th"]),Hl="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function pc(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Sc(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=yc(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?kt:$l,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=jl(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function jl(e,t,n){if(t.type==="element")return gc(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return mc(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return bc(e,t,n);if(t.type==="mdxjsEsm")return fc(e,t);if(t.type==="root")return hc(e,t,n);if(t.type==="text")return Ec(e,t)}function gc(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=kt,e.schema=a),e.ancestors.push(t);const i=ql(e,t.tagName,!1),o=Tc(e,t);let s=Sn(e,t);return cc.has(t.tagName)&&(s=s.filter(function(u){return typeof u=="string"?!Vu(u):!0})),Vl(e,o,i,t),yn(o,s),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function mc(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}ot(e,t.position)}function fc(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ot(e,t.position)}function bc(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=kt,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:ql(e,t.name,!0),o=Ac(e,t),s=Sn(e,t);return Vl(e,o,i,t),yn(o,s),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function hc(e,t,n){const r={};return yn(r,Sn(e,t)),e.create(t,e.Fragment,r,n)}function Ec(e,t){return t.value}function Vl(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function yn(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function yc(e,t,n){return r;function r(a,i,o,s){const l=Array.isArray(o.children)?n:t;return s?l(i,o,s):l(i,o)}}function Sc(e,t){return n;function n(r,a,i,o){const s=Array.isArray(i.children),u=hn(r);return t(a,i,o,s,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function Tc(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&En.call(t.properties,a)){const i=wc(e,a,t.properties[a]);if(i){const[o,s]=i;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&dc.has(t.tagName)?r=s:n[o]=s}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Ac(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const o=i.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else ot(e,t.position);else{const a=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,i=e.evaluater.evaluateExpression(s.expression)}else ot(e,t.position);else i=r.value===null?!0:r.value;n[a]=i}return n}function Sn(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:lc;for(;++r<t.children.length;){const i=t.children[r];let o;if(e.passKeys){const u=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(u){const l=a.get(u)||0;o=u+"-"+l,a.set(u,l+1)}}const s=jl(e,i,o);s!==void 0&&n.push(s)}return n}function wc(e,t,n){const r=Pl(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?$u(n):ec(n)),r.property==="style"){let a=typeof n=="object"?n:_c(e,String(n));return e.stylePropertyNameCase==="css"&&(a=Ic(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?Ku[r.property]||r.property:r.attribute,n]}}function _c(e,t){try{return oc(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,a=new re("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=Hl+"#cannot-parse-style-attribute",a}}function ql(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let i=-1,o;for(;++i<a.length;){const s=Bs(a[i])?{type:"Identifier",name:a[i]}:{type:"Literal",value:a[i]};o=o?{type:"MemberExpression",object:o,property:s,computed:!!(i&&s.type==="Literal"),optional:!1}:s}r=o}else r=Bs(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return En.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);ot(e)}function ot(e,t){const n=new re("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Hl+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Ic(e){const t={};let n;for(n in e)En.call(e,n)&&(t[kc(n)]=e[n]);return t}function kc(e){let t=e.replace(uc,Rc);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Rc(e){return"-"+e.toLowerCase()}const Ht={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"]},Nc={};function vc(e,t){const n=Nc,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Wl(e,r,a)}function Wl(e,t,n){if(Cc(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Ks(e.children,t,n)}return Array.isArray(e)?Ks(e,t,n):""}function Ks(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=Wl(e[a],t,n);return r.join("")}function Cc(e){return!!(e&&typeof e=="object")}const Zs=document.createElement("i");function st(e){const t="&"+e+";";Zs.innerHTML=t;const n=Zs.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function ye(e,t,n,r){const a=e.length;let i=0,o;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i<r.length;)o=r.slice(i,i+1e4),o.unshift(t,0),e.splice(...o),i+=1e4,t+=1e4}function me(e,t){return e.length>0?(ye(e,e.length,0,t),e):t}const Xs={}.hasOwnProperty;function Oc(e){const t={};let n=-1;for(;++n<e.length;)xc(t,e[n]);return t}function xc(e,t){let n;for(n in t){const a=(Xs.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){Xs.call(a,o)||(a[o]=[]);const s=i[o];Lc(a[o],Array.isArray(s)?s:s?[s]:[])}}}function Lc(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);ye(e,0,0,r)}function Yl(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Pe(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ee=ve(/[A-Za-z]/),pe=ve(/[\dA-Za-z]/),Dc=ve(/[#-'*+\--9=?A-Z^-~]/);function an(e){return e!==null&&(e<32||e===127)}const on=ve(/\d/),Mc=ve(/[\dA-Fa-f]/),Fc=ve(/[!-/:-@[-`{-~]/);function B(e){return e!==null&&e<-2}function se(e){return e!==null&&(e<0||e===32)}function V(e){return e===-2||e===-1||e===32}const Uc=ve(/\p{P}|\p{S}/u),Bc=ve(/\s/);function ve(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Ge(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const i=e.charCodeAt(n);let o="";if(i===37&&pe(e.charCodeAt(n+1))&&pe(e.charCodeAt(n+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(o=String.fromCharCode(i));else if(i>55295&&i<57344){const s=e.charCodeAt(n+1);i<56320&&s>56319&&s<57344?(o=String.fromCharCode(i,s),a=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+a+1,o=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function K(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(u){return V(u)?(e.enter(n),s(u)):t(u)}function s(u){return V(u)&&i++<a?(e.consume(u),s):(e.exit(n),t(u))}}const Pc={tokenize:$c};function $c(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),K(e,t,"linePrefix")}function a(s){return e.enter("paragraph"),i(s)}function i(s){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return B(s)?(e.consume(s),e.exit("chunkText"),i):(e.consume(s),o)}}const Gc={tokenize:zc},Qs={tokenize:Hc};function zc(e){const t=this,n=[];let r=0,a,i,o;return s;function s(A){if(r<n.length){const k=n[r];return t.containerState=k[1],e.attempt(k[0].continuation,u,l)(A)}return l(A)}function u(A){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&_();const k=t.events.length;let O=k,T;for(;O--;)if(t.events[O][0]==="exit"&&t.events[O][1].type==="chunkFlow"){T=t.events[O][1].end;break}E(r);let D=k;for(;D<t.events.length;)t.events[D][1].end={...T},D++;return ye(t.events,O+1,0,t.events.slice(k)),t.events.length=D,l(A)}return s(A)}function l(A){if(r===n.length){if(!a)return m(A);if(a.currentConstruct&&a.currentConstruct.concrete)return h(A);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Qs,c,d)(A)}function c(A){return a&&_(),E(r),m(A)}function d(A){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,h(A)}function m(A){return t.containerState={},e.attempt(Qs,p,h)(A)}function p(A){return r++,n.push([t.currentConstruct,t.containerState]),m(A)}function h(A){if(A===null){a&&_(),E(0),e.consume(A);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:i}),S(A)}function S(A){if(A===null){y(e.exit("chunkFlow"),!0),E(0),e.consume(A);return}return B(A)?(e.consume(A),y(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(A),S)}function y(A,k){const O=t.sliceStream(A);if(k&&O.push(null),A.previous=i,i&&(i.next=A),i=A,a.defineSkip(A.start),a.write(O),t.parser.lazy[A.start.line]){let T=a.events.length;for(;T--;)if(a.events[T][1].start.offset<o&&(!a.events[T][1].end||a.events[T][1].end.offset>o))return;const D=t.events.length;let M=D,U,F;for(;M--;)if(t.events[M][0]==="exit"&&t.events[M][1].type==="chunkFlow"){if(U){F=t.events[M][1].end;break}U=!0}for(E(r),T=D;T<t.events.length;)t.events[T][1].end={...F},T++;ye(t.events,M+1,0,t.events.slice(D)),t.events.length=T}}function E(A){let k=n.length;for(;k-- >A;){const O=n[k];t.containerState=O[1],O[0].exit.call(t,e)}n.length=A}function _(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function Hc(e,t,n){return K(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Js(e){if(e===null||se(e)||Bc(e))return 1;if(Uc(e))return 2}function Tn(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const i=e[a].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const sn={name:"attention",resolveAll:jc,tokenize:Vc};function jc(e,t){let n=-1,r,a,i,o,s,u,l,c;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},m={...e[n][1].start};el(d,-u),el(m,u),o={type:u>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},s={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:m},i={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:u>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=me(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=me(l,[["enter",a,t],["enter",o,t],["exit",o,t],["enter",i,t]]),l=me(l,Tn(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=me(l,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,l=me(l,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,ye(e,r-1,n-r+3,l),n=r+l.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Vc(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=Js(r);let i;return o;function o(u){return i=u,e.enter("attentionSequence"),s(u)}function s(u){if(u===i)return e.consume(u),s;const l=e.exit("attentionSequence"),c=Js(u),d=!c||c===2&&a||n.includes(u),m=!a||a===2&&c||n.includes(r);return l._open=!!(i===42?d:d&&(a||!m)),l._close=!!(i===42?m:m&&(c||!d)),t(u)}}function el(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const qc={name:"autolink",tokenize:Wc};function Wc(e,t,n){let r=0;return a;function a(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(p){return Ee(p)?(e.consume(p),o):p===64?n(p):l(p)}function o(p){return p===43||p===45||p===46||pe(p)?(r=1,s(p)):l(p)}function s(p){return p===58?(e.consume(p),r=0,u):(p===43||p===45||p===46||pe(p))&&r++<32?(e.consume(p),s):(r=0,l(p))}function u(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||an(p)?n(p):(e.consume(p),u)}function l(p){return p===64?(e.consume(p),c):Dc(p)?(e.consume(p),l):n(p)}function c(p){return pe(p)?d(p):n(p)}function d(p){return p===46?(e.consume(p),r=0,c):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):m(p)}function m(p){if((p===45||pe(p))&&r++<63){const h=p===45?m:d;return e.consume(p),h}return n(p)}}const Rt={partial:!0,tokenize:Yc};function Yc(e,t,n){return r;function r(i){return V(i)?K(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||B(i)?t(i):n(i)}}const Kl={continuation:{tokenize:Zc},exit:Xc,name:"blockQuote",tokenize:Kc};function Kc(e,t,n){const r=this;return a;function a(o){if(o===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),i}return n(o)}function i(o){return V(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function Zc(e,t,n){const r=this;return a;function a(o){return V(o)?K(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):i(o)}function i(o){return e.attempt(Kl,t,n)(o)}}function Xc(e){e.exit("blockQuote")}const Zl={name:"characterEscape",tokenize:Qc};function Qc(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),a}function a(i){return Fc(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const Xl={name:"characterReference",tokenize:Jc};function Jc(e,t,n){const r=this;let a=0,i,o;return s;function s(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),u}function u(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),i=31,o=pe,c(d))}function l(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=Mc,c):(e.enter("characterReferenceValue"),i=7,o=on,c(d))}function c(d){if(d===59&&a){const m=e.exit("characterReferenceValue");return o===pe&&!st(r.sliceSerialize(m))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(d)&&a++<i?(e.consume(d),c):n(d)}}const tl={partial:!0,tokenize:td},nl={concrete:!0,name:"codeFenced",tokenize:ed};function ed(e,t,n){const r=this,a={partial:!0,tokenize:O};let i=0,o=0,s;return u;function u(T){return l(T)}function l(T){const D=r.events[r.events.length-1];return i=D&&D[1].type==="linePrefix"?D[2].sliceSerialize(D[1],!0).length:0,s=T,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(T)}function c(T){return T===s?(o++,e.consume(T),c):o<3?n(T):(e.exit("codeFencedFenceSequence"),V(T)?K(e,d,"whitespace")(T):d(T))}function d(T){return T===null||B(T)?(e.exit("codeFencedFence"),r.interrupt?t(T):e.check(tl,S,k)(T)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(T))}function m(T){return T===null||B(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(T)):V(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),K(e,p,"whitespace")(T)):T===96&&T===s?n(T):(e.consume(T),m)}function p(T){return T===null||B(T)?d(T):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),h(T))}function h(T){return T===null||B(T)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(T)):T===96&&T===s?n(T):(e.consume(T),h)}function S(T){return e.attempt(a,k,y)(T)}function y(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),E}function E(T){return i>0&&V(T)?K(e,_,"linePrefix",i+1)(T):_(T)}function _(T){return T===null||B(T)?e.check(tl,S,k)(T):(e.enter("codeFlowValue"),A(T))}function A(T){return T===null||B(T)?(e.exit("codeFlowValue"),_(T)):(e.consume(T),A)}function k(T){return e.exit("codeFenced"),t(T)}function O(T,D,M){let U=0;return F;function F(R){return T.enter("lineEnding"),T.consume(R),T.exit("lineEnding"),N}function N(R){return T.enter("codeFencedFence"),V(R)?K(T,v,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):v(R)}function v(R){return R===s?(T.enter("codeFencedFenceSequence"),x(R)):M(R)}function x(R){return R===s?(U++,T.consume(R),x):U>=o?(T.exit("codeFencedFenceSequence"),V(R)?K(T,L,"whitespace")(R):L(R)):M(R)}function L(R){return R===null||B(R)?(T.exit("codeFencedFence"),D(R)):M(R)}}}function td(e,t,n){const r=this;return a;function a(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const jt={name:"codeIndented",tokenize:rd},nd={partial:!0,tokenize:ad};function rd(e,t,n){const r=this;return a;function a(l){return e.enter("codeIndented"),K(e,i,"linePrefix",5)(l)}function i(l){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(l):n(l)}function o(l){return l===null?u(l):B(l)?e.attempt(nd,o,u)(l):(e.enter("codeFlowValue"),s(l))}function s(l){return l===null||B(l)?(e.exit("codeFlowValue"),o(l)):(e.consume(l),s)}function u(l){return e.exit("codeIndented"),t(l)}}function ad(e,t,n){const r=this;return a;function a(o){return r.parser.lazy[r.now().line]?n(o):B(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):K(e,i,"linePrefix",5)(o)}function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):B(o)?a(o):n(o)}}const id={name:"codeText",previous:sd,resolve:od,tokenize:ld};function od(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function sd(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ld(e,t,n){let r=0,a,i;return o;function o(d){return e.enter("codeText"),e.enter("codeTextSequence"),s(d)}function s(d){return d===96?(e.consume(d),r++,s):(e.exit("codeTextSequence"),u(d))}function u(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),u):d===96?(i=e.enter("codeTextSequence"),a=0,c(d)):B(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("codeTextData"),l(d))}function l(d){return d===null||d===32||d===96||B(d)?(e.exit("codeTextData"),u(d)):(e.consume(d),l)}function c(d){return d===96?(e.consume(d),a++,c):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(i.type="codeTextData",l(d))}}class ud{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const a=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&Je(this.left,r),i.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),Je(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Je(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Je(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Je(this.left,n.reverse())}}}function Je(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Ql(e){const t={};let n=-1,r,a,i,o,s,u,l;const c=new ud(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,i=0,i<u.length&&u[i][1].type==="lineEndingBlank"&&(i+=2),i<u.length&&u[i][1].type==="content"))for(;++i<u.length&&u[i][1].type!=="content";)u[i][1].type==="chunkText"&&(u[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,cd(c,n)),n=t[n],l=!0);else if(r[1]._container){for(i=n,a=void 0;i--;)if(o=c.get(i),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(a&&(c.get(a)[1].type="lineEndingBlank"),o[1].type="lineEnding",a=i);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;a&&(r[1].end={...c.get(a)[1].start},s=c.slice(a,n),s.unshift(r),c.splice(a,n-a+1,s))}}return ye(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!l}function cd(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const i=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const s=o.events,u=[],l={};let c,d,m=-1,p=n,h=0,S=0;const y=[S];for(;p;){for(;e.get(++a)[1]!==p;);i.push(a),p._tokenizer||(c=r.sliceStream(p),p.next||c.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(c),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++m<s.length;)s[m][0]==="exit"&&s[m-1][0]==="enter"&&s[m][1].type===s[m-1][1].type&&s[m][1].start.line!==s[m][1].end.line&&(S=m+1,y.push(S),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):y.pop(),m=y.length;m--;){const E=s.slice(y[m],y[m+1]),_=i.pop();u.push([_,_+E.length-1]),e.splice(_,2,E)}for(u.reverse(),m=-1;++m<u.length;)l[h+u[m][0]]=h+u[m][1],h+=u[m][1]-u[m][0]-1;return l}const dd={resolve:gd,tokenize:md},pd={partial:!0,tokenize:fd};function gd(e){return Ql(e),e}function md(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(s)}function a(s){return s===null?i(s):B(s)?e.check(pd,o,i)(s):(e.consume(s),a)}function i(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function fd(e,t,n){const r=this;return a;function a(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),K(e,i,"linePrefix")}function i(o){if(o===null||B(o))return n(o);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function Jl(e,t,n,r,a,i,o,s,u){const l=u||Number.POSITIVE_INFINITY;let c=0;return d;function d(E){return E===60?(e.enter(r),e.enter(a),e.enter(i),e.consume(E),e.exit(i),m):E===null||E===32||E===41||an(E)?n(E):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),S(E))}function m(E){return E===62?(e.enter(i),e.consume(E),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(E))}function p(E){return E===62?(e.exit("chunkString"),e.exit(s),m(E)):E===null||E===60||B(E)?n(E):(e.consume(E),E===92?h:p)}function h(E){return E===60||E===62||E===92?(e.consume(E),p):p(E)}function S(E){return!c&&(E===null||E===41||se(E))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(E)):c<l&&E===40?(e.consume(E),c++,S):E===41?(e.consume(E),c--,S):E===null||E===32||E===40||an(E)?n(E):(e.consume(E),E===92?y:S)}function y(E){return E===40||E===41||E===92?(e.consume(E),S):S(E)}}function eu(e,t,n,r,a,i){const o=this;let s=0,u;return l;function l(p){return e.enter(r),e.enter(a),e.consume(p),e.exit(a),e.enter(i),c}function c(p){return s>999||p===null||p===91||p===93&&!u||p===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(p):p===93?(e.exit(i),e.enter(a),e.consume(p),e.exit(a),e.exit(r),t):B(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||B(p)||s++>999?(e.exit("chunkString"),c(p)):(e.consume(p),u||(u=!V(p)),p===92?m:d)}function m(p){return p===91||p===92||p===93?(e.consume(p),s++,d):d(p)}}function tu(e,t,n,r,a,i){let o;return s;function s(m){return m===34||m===39||m===40?(e.enter(r),e.enter(a),e.consume(m),e.exit(a),o=m===40?41:m,u):n(m)}function u(m){return m===o?(e.enter(a),e.consume(m),e.exit(a),e.exit(r),t):(e.enter(i),l(m))}function l(m){return m===o?(e.exit(i),u(o)):m===null?n(m):B(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),K(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(m))}function c(m){return m===o||m===null||B(m)?(e.exit("chunkString"),l(m)):(e.consume(m),m===92?d:c)}function d(m){return m===o||m===92?(e.consume(m),c):c(m)}}function nt(e,t){let n;return r;function r(a){return B(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):V(a)?K(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const bd={name:"definition",tokenize:Ed},hd={partial:!0,tokenize:yd};function Ed(e,t,n){const r=this;let a;return i;function i(p){return e.enter("definition"),o(p)}function o(p){return eu.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return a=Pe(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),u):n(p)}function u(p){return se(p)?nt(e,l)(p):l(p)}function l(p){return Jl(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(hd,d,d)(p)}function d(p){return V(p)?K(e,m,"whitespace")(p):m(p)}function m(p){return p===null||B(p)?(e.exit("definition"),r.parser.defined.push(a),t(p)):n(p)}}function yd(e,t,n){return r;function r(s){return se(s)?nt(e,a)(s):n(s)}function a(s){return tu(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function i(s){return V(s)?K(e,o,"whitespace")(s):o(s)}function o(s){return s===null||B(s)?t(s):n(s)}}const Sd={name:"hardBreakEscape",tokenize:Td};function Td(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return B(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const Ad={name:"headingAtx",resolve:wd,tokenize:_d};function wd(e,t){let n=e.length-2,r=3,a,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},ye(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function _d(e,t,n){let r=0;return a;function a(c){return e.enter("atxHeading"),i(c)}function i(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||se(c)?(e.exit("atxHeadingSequence"),s(c)):n(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),u(c)):c===null||B(c)?(e.exit("atxHeading"),t(c)):V(c)?K(e,s,"whitespace")(c):(e.enter("atxHeadingText"),l(c))}function u(c){return c===35?(e.consume(c),u):(e.exit("atxHeadingSequence"),s(c))}function l(c){return c===null||c===35||se(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),l)}}const Id=["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"],rl=["pre","script","style","textarea"],kd={concrete:!0,name:"htmlFlow",resolveTo:vd,tokenize:Cd},Rd={partial:!0,tokenize:xd},Nd={partial:!0,tokenize:Od};function vd(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 Cd(e,t,n){const r=this;let a,i,o,s,u;return l;function l(b){return c(b)}function c(b){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(b),d}function d(b){return b===33?(e.consume(b),m):b===47?(e.consume(b),i=!0,S):b===63?(e.consume(b),a=3,r.interrupt?t:f):Ee(b)?(e.consume(b),o=String.fromCharCode(b),y):n(b)}function m(b){return b===45?(e.consume(b),a=2,p):b===91?(e.consume(b),a=5,s=0,h):Ee(b)?(e.consume(b),a=4,r.interrupt?t:f):n(b)}function p(b){return b===45?(e.consume(b),r.interrupt?t:f):n(b)}function h(b){const ue="CDATA[";return b===ue.charCodeAt(s++)?(e.consume(b),s===ue.length?r.interrupt?t:v:h):n(b)}function S(b){return Ee(b)?(e.consume(b),o=String.fromCharCode(b),y):n(b)}function y(b){if(b===null||b===47||b===62||se(b)){const ue=b===47,be=o.toLowerCase();return!ue&&!i&&rl.includes(be)?(a=1,r.interrupt?t(b):v(b)):Id.includes(o.toLowerCase())?(a=6,ue?(e.consume(b),E):r.interrupt?t(b):v(b)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(b):i?_(b):A(b))}return b===45||pe(b)?(e.consume(b),o+=String.fromCharCode(b),y):n(b)}function E(b){return b===62?(e.consume(b),r.interrupt?t:v):n(b)}function _(b){return V(b)?(e.consume(b),_):F(b)}function A(b){return b===47?(e.consume(b),F):b===58||b===95||Ee(b)?(e.consume(b),k):V(b)?(e.consume(b),A):F(b)}function k(b){return b===45||b===46||b===58||b===95||pe(b)?(e.consume(b),k):O(b)}function O(b){return b===61?(e.consume(b),T):V(b)?(e.consume(b),O):A(b)}function T(b){return b===null||b===60||b===61||b===62||b===96?n(b):b===34||b===39?(e.consume(b),u=b,D):V(b)?(e.consume(b),T):M(b)}function D(b){return b===u?(e.consume(b),u=null,U):b===null||B(b)?n(b):(e.consume(b),D)}function M(b){return b===null||b===34||b===39||b===47||b===60||b===61||b===62||b===96||se(b)?O(b):(e.consume(b),M)}function U(b){return b===47||b===62||V(b)?A(b):n(b)}function F(b){return b===62?(e.consume(b),N):n(b)}function N(b){return b===null||B(b)?v(b):V(b)?(e.consume(b),N):n(b)}function v(b){return b===45&&a===2?(e.consume(b),G):b===60&&a===1?(e.consume(b),z):b===62&&a===4?(e.consume(b),q):b===63&&a===3?(e.consume(b),f):b===93&&a===5?(e.consume(b),X):B(b)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(Rd,Q,x)(b)):b===null||B(b)?(e.exit("htmlFlowData"),x(b)):(e.consume(b),v)}function x(b){return e.check(Nd,L,Q)(b)}function L(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),R}function R(b){return b===null||B(b)?x(b):(e.enter("htmlFlowData"),v(b))}function G(b){return b===45?(e.consume(b),f):v(b)}function z(b){return b===47?(e.consume(b),o="",Z):v(b)}function Z(b){if(b===62){const ue=o.toLowerCase();return rl.includes(ue)?(e.consume(b),q):v(b)}return Ee(b)&&o.length<8?(e.consume(b),o+=String.fromCharCode(b),Z):v(b)}function X(b){return b===93?(e.consume(b),f):v(b)}function f(b){return b===62?(e.consume(b),q):b===45&&a===2?(e.consume(b),f):v(b)}function q(b){return b===null||B(b)?(e.exit("htmlFlowData"),Q(b)):(e.consume(b),q)}function Q(b){return e.exit("htmlFlow"),t(b)}}function Od(e,t,n){const r=this;return a;function a(o){return B(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):n(o)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function xd(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Rt,t,n)}}const Ld={name:"htmlText",tokenize:Dd};function Dd(e,t,n){const r=this;let a,i,o;return s;function s(f){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(f),u}function u(f){return f===33?(e.consume(f),l):f===47?(e.consume(f),O):f===63?(e.consume(f),A):Ee(f)?(e.consume(f),M):n(f)}function l(f){return f===45?(e.consume(f),c):f===91?(e.consume(f),i=0,h):Ee(f)?(e.consume(f),_):n(f)}function c(f){return f===45?(e.consume(f),p):n(f)}function d(f){return f===null?n(f):f===45?(e.consume(f),m):B(f)?(o=d,z(f)):(e.consume(f),d)}function m(f){return f===45?(e.consume(f),p):d(f)}function p(f){return f===62?G(f):f===45?m(f):d(f)}function h(f){const q="CDATA[";return f===q.charCodeAt(i++)?(e.consume(f),i===q.length?S:h):n(f)}function S(f){return f===null?n(f):f===93?(e.consume(f),y):B(f)?(o=S,z(f)):(e.consume(f),S)}function y(f){return f===93?(e.consume(f),E):S(f)}function E(f){return f===62?G(f):f===93?(e.consume(f),E):S(f)}function _(f){return f===null||f===62?G(f):B(f)?(o=_,z(f)):(e.consume(f),_)}function A(f){return f===null?n(f):f===63?(e.consume(f),k):B(f)?(o=A,z(f)):(e.consume(f),A)}function k(f){return f===62?G(f):A(f)}function O(f){return Ee(f)?(e.consume(f),T):n(f)}function T(f){return f===45||pe(f)?(e.consume(f),T):D(f)}function D(f){return B(f)?(o=D,z(f)):V(f)?(e.consume(f),D):G(f)}function M(f){return f===45||pe(f)?(e.consume(f),M):f===47||f===62||se(f)?U(f):n(f)}function U(f){return f===47?(e.consume(f),G):f===58||f===95||Ee(f)?(e.consume(f),F):B(f)?(o=U,z(f)):V(f)?(e.consume(f),U):G(f)}function F(f){return f===45||f===46||f===58||f===95||pe(f)?(e.consume(f),F):N(f)}function N(f){return f===61?(e.consume(f),v):B(f)?(o=N,z(f)):V(f)?(e.consume(f),N):U(f)}function v(f){return f===null||f===60||f===61||f===62||f===96?n(f):f===34||f===39?(e.consume(f),a=f,x):B(f)?(o=v,z(f)):V(f)?(e.consume(f),v):(e.consume(f),L)}function x(f){return f===a?(e.consume(f),a=void 0,R):f===null?n(f):B(f)?(o=x,z(f)):(e.consume(f),x)}function L(f){return f===null||f===34||f===39||f===60||f===61||f===96?n(f):f===47||f===62||se(f)?U(f):(e.consume(f),L)}function R(f){return f===47||f===62||se(f)?U(f):n(f)}function G(f){return f===62?(e.consume(f),e.exit("htmlTextData"),e.exit("htmlText"),t):n(f)}function z(f){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Z}function Z(f){return V(f)?K(e,X,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):X(f)}function X(f){return e.enter("htmlTextData"),o(f)}}const An={name:"labelEnd",resolveAll:Bd,resolveTo:Pd,tokenize:$d},Md={tokenize:Gd},Fd={tokenize:zd},Ud={tokenize:Hd};function Bd(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const a=r.type==="labelImage"?4:2;r.type="data",t+=a}}return e.length!==n.length&&ye(e,0,e.length,n),e}function Pd(e,t){let n=e.length,r=0,a,i,o,s;for(;n--;)if(a=e[n][1],i){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(i=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(o=n);const u={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},l={type:"label",start:{...e[i][1].start},end:{...e[o][1].end}},c={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[o-2][1].start}};return s=[["enter",u,t],["enter",l,t]],s=me(s,e.slice(i+1,i+r+3)),s=me(s,[["enter",c,t]]),s=me(s,Tn(t.parser.constructs.insideSpan.null,e.slice(i+r+4,o-3),t)),s=me(s,[["exit",c,t],e[o-2],e[o-1],["exit",l,t]]),s=me(s,e.slice(o+1)),s=me(s,[["exit",u,t]]),ye(e,i,e.length,s),e}function $d(e,t,n){const r=this;let a=r.events.length,i,o;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){i=r.events[a][1];break}return s;function s(m){return i?i._inactive?d(m):(o=r.parser.defined.includes(Pe(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),u):n(m)}function u(m){return m===40?e.attempt(Md,c,o?c:d)(m):m===91?e.attempt(Fd,c,o?l:d)(m):o?c(m):d(m)}function l(m){return e.attempt(Ud,c,d)(m)}function c(m){return t(m)}function d(m){return i._balanced=!0,n(m)}}function Gd(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),a}function a(d){return se(d)?nt(e,i)(d):i(d)}function i(d){return d===41?c(d):Jl(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function o(d){return se(d)?nt(e,u)(d):c(d)}function s(d){return n(d)}function u(d){return d===34||d===39||d===40?tu(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function l(d){return se(d)?nt(e,c)(d):c(d)}function c(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function zd(e,t,n){const r=this;return a;function a(s){return eu.call(r,e,i,o,"reference","referenceMarker","referenceString")(s)}function i(s){return r.parser.defined.includes(Pe(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function o(s){return n(s)}}function Hd(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),a}function a(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const jd={name:"labelStartImage",resolveAll:An.resolveAll,tokenize:Vd};function Vd(e,t,n){const r=this;return a;function a(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),i}function i(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):n(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const qd={name:"labelStartLink",resolveAll:An.resolveAll,tokenize:Wd};function Wd(e,t,n){const r=this;return a;function a(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),i}function i(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Vt={name:"lineEnding",tokenize:Yd};function Yd(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),K(e,t,"linePrefix")}}const Tt={name:"thematicBreak",tokenize:Kd};function Kd(e,t,n){let r=0,a;return i;function i(l){return e.enter("thematicBreak"),o(l)}function o(l){return a=l,s(l)}function s(l){return l===a?(e.enter("thematicBreakSequence"),u(l)):r>=3&&(l===null||B(l))?(e.exit("thematicBreak"),t(l)):n(l)}function u(l){return l===a?(e.consume(l),r++,u):(e.exit("thematicBreakSequence"),V(l)?K(e,s,"whitespace")(l):s(l))}}const oe={continuation:{tokenize:Jd},exit:tp,name:"list",tokenize:Qd},Zd={partial:!0,tokenize:np},Xd={partial:!0,tokenize:ep};function Qd(e,t,n){const r=this,a=r.events[r.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,o=0;return s;function s(p){const h=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(h==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:on(p)){if(r.containerState.type||(r.containerState.type=h,e.enter(h,{_container:!0})),h==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(Tt,n,l)(p):l(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(p)}return n(p)}function u(p){return on(p)&&++o<10?(e.consume(p),u):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),l(p)):n(p)}function l(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Rt,r.interrupt?n:c,e.attempt(Zd,m,d))}function c(p){return r.containerState.initialBlankLine=!0,i++,m(p)}function d(p){return V(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),m):n(p)}function m(p){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function Jd(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Rt,a,i);function a(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,K(e,t,"listItemIndent",r.containerState.size+1)(s)}function i(s){return r.containerState.furtherBlankLines||!V(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Xd,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,K(e,e.attempt(oe,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function ep(e,t,n){const r=this;return K(e,a,"listItemIndent",r.containerState.size+1);function a(i){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(i):n(i)}}function tp(e){e.exit(this.containerState.type)}function np(e,t,n){const r=this;return K(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const o=r.events[r.events.length-1];return!V(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const al={name:"setextUnderline",resolveTo:rp,tokenize:ap};function rp(e,t){let n=e.length,r,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function ap(e,t,n){const r=this;let a;return i;function i(l){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),a=l,o(l)):n(l)}function o(l){return e.enter("setextHeadingLineSequence"),s(l)}function s(l){return l===a?(e.consume(l),s):(e.exit("setextHeadingLineSequence"),V(l)?K(e,u,"lineSuffix")(l):u(l))}function u(l){return l===null||B(l)?(e.exit("setextHeadingLine"),t(l)):n(l)}}const ip={tokenize:op};function op(e){const t=this,n=e.attempt(Rt,r,e.attempt(this.parser.constructs.flowInitial,a,K(e,e.attempt(this.parser.constructs.flow,a,e.attempt(dd,a)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const sp={resolveAll:ru()},lp=nu("string"),up=nu("text");function nu(e){return{resolveAll:ru(e==="text"?cp:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],i=n.attempt(a,o,s);return o;function o(c){return l(c)?i(c):s(c)}function s(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),u}function u(c){return l(c)?(n.exit("data"),i(c)):(n.consume(c),u)}function l(c){if(c===null)return!0;const d=a[c];let m=-1;if(d)for(;++m<d.length;){const p=d[m];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function ru(e){return t;function t(n,r){let a=-1,i;for(;++a<=n.length;)i===void 0?n[a]&&n[a][1].type==="data"&&(i=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==i+2&&(n[i][1].end=n[a-1][1].end,n.splice(i+2,a-i-2),a=i+2),i=void 0);return e?e(n,r):n}}function cp(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],a=t.sliceStream(r);let i=a.length,o=-1,s=0,u;for(;i--;){const l=a[i];if(typeof l=="string"){for(o=l.length;l.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(l===-2)u=!0,s++;else if(l!==-1){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const l={type:n===e.length||u||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?o:r.start._bufferIndex+o,_index:r.start._index+i,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...l.start},r.start.offset===r.end.offset?Object.assign(r,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}const dp={42:oe,43:oe,45:oe,48:oe,49:oe,50:oe,51:oe,52:oe,53:oe,54:oe,55:oe,56:oe,57:oe,62:Kl},pp={91:bd},gp={[-2]:jt,[-1]:jt,32:jt},mp={35:Ad,42:Tt,45:[al,Tt],60:kd,61:al,95:Tt,96:nl,126:nl},fp={38:Xl,92:Zl},bp={[-5]:Vt,[-4]:Vt,[-3]:Vt,33:jd,38:Xl,42:sn,60:[qc,Ld],91:qd,92:[Sd,Zl],93:An,95:sn,96:id},hp={null:[sn,sp]},Ep={null:[42,95]},yp={null:[]},Sp=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Ep,contentInitial:pp,disable:yp,document:dp,flow:mp,flowInitial:gp,insideSpan:hp,string:fp,text:bp},Symbol.toStringTag,{value:"Module"}));function Tp(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},i=[];let o=[],s=[];const u={attempt:D(O),check:D(T),consume:_,enter:A,exit:k,interrupt:D(T,{interrupt:!0})},l={code:null,containerState:{},defineSkip:S,events:[],now:h,parser:e,previous:null,sliceSerialize:m,sliceStream:p,write:d};let c=t.tokenize.call(l,u);return t.resolveAll&&i.push(t),l;function d(N){return o=me(o,N),y(),o[o.length-1]!==null?[]:(M(t,0),l.events=Tn(i,l.events,l),l.events)}function m(N,v){return wp(p(N),v)}function p(N){return Ap(o,N)}function h(){const{_bufferIndex:N,_index:v,line:x,column:L,offset:R}=r;return{_bufferIndex:N,_index:v,line:x,column:L,offset:R}}function S(N){a[N.line]=N.column,F()}function y(){let N;for(;r._index<o.length;){const v=o[r._index];if(typeof v=="string")for(N=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===N&&r._bufferIndex<v.length;)E(v.charCodeAt(r._bufferIndex));else E(v)}}function E(N){c=c(N)}function _(N){B(N)?(r.line++,r.column=1,r.offset+=N===-3?2:1,F()):N!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=N}function A(N,v){const x=v||{};return x.type=N,x.start=h(),l.events.push(["enter",x,l]),s.push(x),x}function k(N){const v=s.pop();return v.end=h(),l.events.push(["exit",v,l]),v}function O(N,v){M(N,v.from)}function T(N,v){v.restore()}function D(N,v){return x;function x(L,R,G){let z,Z,X,f;return Array.isArray(L)?Q(L):"tokenize"in L?Q([L]):q(L);function q(J){return we;function we(ge){const _e=ge!==null&&J[ge],Ie=ge!==null&&J.null,Le=[...Array.isArray(_e)?_e:_e?[_e]:[],...Array.isArray(Ie)?Ie:Ie?[Ie]:[]];return Q(Le)(ge)}}function Q(J){return z=J,Z=0,J.length===0?G:b(J[Z])}function b(J){return we;function we(ge){return f=U(),X=J,J.partial||(l.currentConstruct=J),J.name&&l.parser.constructs.disable.null.includes(J.name)?be():J.tokenize.call(v?Object.assign(Object.create(l),v):l,u,ue,be)(ge)}}function ue(J){return N(X,f),R}function be(J){return f.restore(),++Z<z.length?b(z[Z]):G}}}function M(N,v){N.resolveAll&&!i.includes(N)&&i.push(N),N.resolve&&ye(l.events,v,l.events.length-v,N.resolve(l.events.slice(v),l)),N.resolveTo&&(l.events=N.resolveTo(l.events,l))}function U(){const N=h(),v=l.previous,x=l.currentConstruct,L=l.events.length,R=Array.from(s);return{from:L,restore:G};function G(){r=N,l.previous=v,l.currentConstruct=x,l.events.length=L,s=R,F()}}function F(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function Ap(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,i=t.end._bufferIndex;let o;if(n===a)o=[e[n].slice(r,i)];else{if(o=e.slice(n,a),r>-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}i>0&&o.push(e[a].slice(0,i))}return o}function wp(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const i=e[n];let o;if(typeof i=="string")o=i;else switch(i){case-5:{o="\r";break}case-4:{o=`
|
|
3
3
|
`;break}case-3:{o=`\r
|
|
4
4
|
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&a)continue;o=" ";break}default:o=String.fromCharCode(i)}a=i===-2,r.push(o)}return r.join("")}function _p(e){const r={constructs:Oc([Sp,...(e||{}).extensions||[]]),content:a(Pc),defined:[],document:a(Gc),flow:a(ip),lazy:{},string:a(lp),text:a(up)};return r;function a(i){return o;function o(s){return Tp(r,i,s)}}}function Ip(e){for(;!Ql(e););return e}const il=/[\0\t\n\r]/g;function kp(){let e=1,t="",n=!0,r;return a;function a(i,o,s){const u=[];let l,c,d,m,p;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(o||void 0).decode(i)),d=0,t="",n&&(i.charCodeAt(0)===65279&&d++,n=void 0);d<i.length;){if(il.lastIndex=d,l=il.exec(i),m=l&&l.index!==void 0?l.index:i.length,p=i.charCodeAt(m),!l){t=i.slice(d);break}if(p===10&&d===m&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),d<m&&(u.push(i.slice(d,m)),e+=m-d),p){case 0:{u.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,u.push(-2);e++<c;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}d=m+1}return s&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}const Rp=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Np(e){return e.replace(Rp,vp)}function vp(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),i=a===120||a===88;return Yl(n.slice(i?2:1),i?16:10)}return st(n)||e}const au={}.hasOwnProperty;function Cp(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Op(n)(Ip(_p(n).document().write(kp()(e,t,!0))))}function Op(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(xs),autolinkProtocol:U,autolinkEmail:U,atxHeading:i(vs),blockQuote:i(Ie),characterEscape:U,characterReference:U,codeFenced:i(Le),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:i(Le,o),codeText:i(ku,o),codeTextData:U,data:U,codeFlowValue:U,definition:i(Ru),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:i(Nu),hardBreakEscape:i(Cs),hardBreakTrailing:i(Cs),htmlFlow:i(Os,o),htmlFlowData:U,htmlText:i(Os,o),htmlTextData:U,image:i(vu),label:o,link:i(xs),listItem:i(Cu),listItemValue:m,listOrdered:i(Ls,d),listUnordered:i(Ls),paragraph:i(Ou),reference:b,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:i(vs),strong:i(xu),thematicBreak:i(Du)},exit:{atxHeading:u(),atxHeadingSequence:O,autolink:u(),autolinkEmail:_e,autolinkProtocol:ge,blockQuote:u(),characterEscapeValue:F,characterReferenceMarkerHexadecimal:be,characterReferenceMarkerNumeric:be,characterReferenceValue:J,characterReference:we,codeFenced:u(y),codeFencedFence:S,codeFencedFenceInfo:p,codeFencedFenceMeta:h,codeFlowValue:F,codeIndented:u(E),codeText:u(R),codeTextData:F,data:F,definition:u(),definitionDestinationString:k,definitionLabelString:_,definitionTitleString:A,emphasis:u(),hardBreakEscape:u(v),hardBreakTrailing:u(v),htmlFlow:u(x),htmlFlowData:F,htmlText:u(L),htmlTextData:F,image:u(z),label:X,labelText:Z,lineEnding:N,link:u(G),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:ue,resourceDestinationString:f,resourceTitleString:q,resource:Q,setextHeading:u(M),setextHeadingLineSequence:D,setextHeadingText:T,strong:u(),thematicBreak:u()}};iu(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(w){let C={type:"root",children:[]};const P={stack:[C],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:c,data:n},j=[];let W=-1;for(;++W<w.length;)if(w[W][1].type==="listOrdered"||w[W][1].type==="listUnordered")if(w[W][0]==="enter")j.push(W);else{const fe=j.pop();W=a(w,fe,W)}for(W=-1;++W<w.length;){const fe=t[w[W][0]];au.call(fe,w[W][1].type)&&fe[w[W][1].type].call(Object.assign({sliceSerialize:w[W][2].sliceSerialize},P),w[W][1])}if(P.tokenStack.length>0){const fe=P.tokenStack[P.tokenStack.length-1];(fe[1]||ol).call(P,void 0,fe[0])}for(C.position={start:ke(w.length>0?w[0][1].start:{line:1,column:1,offset:0}),end:ke(w.length>0?w[w.length-2][1].end:{line:1,column:1,offset:0})},W=-1;++W<t.transforms.length;)C=t.transforms[W](C)||C;return C}function a(w,C,P){let j=C-1,W=-1,fe=!1,Ce,Te,Ye,Ke;for(;++j<=P;){const ce=w[j];switch(ce[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ce[0]==="enter"?W++:W--,Ke=void 0;break}case"lineEndingBlank":{ce[0]==="enter"&&(Ce&&!Ke&&!W&&!Ye&&(Ye=j),Ke=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ke=void 0}if(!W&&ce[0]==="enter"&&ce[1].type==="listItemPrefix"||W===-1&&ce[0]==="exit"&&(ce[1].type==="listUnordered"||ce[1].type==="listOrdered")){if(Ce){let De=j;for(Te=void 0;De--;){const Ae=w[De];if(Ae[1].type==="lineEnding"||Ae[1].type==="lineEndingBlank"){if(Ae[0]==="exit")continue;Te&&(w[Te][1].type="lineEndingBlank",fe=!0),Ae[1].type="lineEnding",Te=De}else if(!(Ae[1].type==="linePrefix"||Ae[1].type==="blockQuotePrefix"||Ae[1].type==="blockQuotePrefixWhitespace"||Ae[1].type==="blockQuoteMarker"||Ae[1].type==="listItemIndent"))break}Ye&&(!Te||Ye<Te)&&(Ce._spread=!0),Ce.end=Object.assign({},Te?w[Te][1].start:ce[1].end),w.splice(Te||j,0,["exit",Ce,ce[2]]),j++,P++}if(ce[1].type==="listItemPrefix"){const De={type:"listItem",_spread:!1,start:Object.assign({},ce[1].start),end:void 0};Ce=De,w.splice(j,0,["enter",De,ce[2]]),j++,P++,Ye=void 0,Ke=!0}}}return w[C][1]._spread=fe,P}function i(w,C){return P;function P(j){s.call(this,w(j),j),C&&C.call(this,j)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(w,C,P){this.stack[this.stack.length-1].children.push(w),this.stack.push(w),this.tokenStack.push([C,P||void 0]),w.position={start:ke(C.start),end:void 0}}function u(w){return C;function C(P){w&&w.call(this,P),l.call(this,P)}}function l(w,C){const P=this.stack.pop(),j=this.tokenStack.pop();if(j)j[0].type!==w.type&&(C?C.call(this,w,j[0]):(j[1]||ol).call(this,w,j[0]));else throw new Error("Cannot close `"+w.type+"` ("+tt({start:w.start,end:w.end})+"): it’s not open");P.position.end=ke(w.end)}function c(){return vc(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function m(w){if(this.data.expectingFirstListItemValue){const C=this.stack[this.stack.length-2];C.start=Number.parseInt(this.sliceSerialize(w),10),this.data.expectingFirstListItemValue=void 0}}function p(){const w=this.resume(),C=this.stack[this.stack.length-1];C.lang=w}function h(){const w=this.resume(),C=this.stack[this.stack.length-1];C.meta=w}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const w=this.resume(),C=this.stack[this.stack.length-1];C.value=w.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function E(){const w=this.resume(),C=this.stack[this.stack.length-1];C.value=w.replace(/(\r?\n|\r)$/g,"")}function _(w){const C=this.resume(),P=this.stack[this.stack.length-1];P.label=C,P.identifier=Pe(this.sliceSerialize(w)).toLowerCase()}function A(){const w=this.resume(),C=this.stack[this.stack.length-1];C.title=w}function k(){const w=this.resume(),C=this.stack[this.stack.length-1];C.url=w}function O(w){const C=this.stack[this.stack.length-1];if(!C.depth){const P=this.sliceSerialize(w).length;C.depth=P}}function T(){this.data.setextHeadingSlurpLineEnding=!0}function D(w){const C=this.stack[this.stack.length-1];C.depth=this.sliceSerialize(w).codePointAt(0)===61?1:2}function M(){this.data.setextHeadingSlurpLineEnding=void 0}function U(w){const P=this.stack[this.stack.length-1].children;let j=P[P.length-1];(!j||j.type!=="text")&&(j=Lu(),j.position={start:ke(w.start),end:void 0},P.push(j)),this.stack.push(j)}function F(w){const C=this.stack.pop();C.value+=this.sliceSerialize(w),C.position.end=ke(w.end)}function N(w){const C=this.stack[this.stack.length-1];if(this.data.atHardBreak){const P=C.children[C.children.length-1];P.position.end=ke(w.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(C.type)&&(U.call(this,w),F.call(this,w))}function v(){this.data.atHardBreak=!0}function x(){const w=this.resume(),C=this.stack[this.stack.length-1];C.value=w}function L(){const w=this.resume(),C=this.stack[this.stack.length-1];C.value=w}function R(){const w=this.resume(),C=this.stack[this.stack.length-1];C.value=w}function G(){const w=this.stack[this.stack.length-1];if(this.data.inReference){const C=this.data.referenceType||"shortcut";w.type+="Reference",w.referenceType=C,delete w.url,delete w.title}else delete w.identifier,delete w.label;this.data.referenceType=void 0}function z(){const w=this.stack[this.stack.length-1];if(this.data.inReference){const C=this.data.referenceType||"shortcut";w.type+="Reference",w.referenceType=C,delete w.url,delete w.title}else delete w.identifier,delete w.label;this.data.referenceType=void 0}function Z(w){const C=this.sliceSerialize(w),P=this.stack[this.stack.length-2];P.label=Np(C),P.identifier=Pe(C).toLowerCase()}function X(){const w=this.stack[this.stack.length-1],C=this.resume(),P=this.stack[this.stack.length-1];if(this.data.inReference=!0,P.type==="link"){const j=w.children;P.children=j}else P.alt=C}function f(){const w=this.resume(),C=this.stack[this.stack.length-1];C.url=w}function q(){const w=this.resume(),C=this.stack[this.stack.length-1];C.title=w}function Q(){this.data.inReference=void 0}function b(){this.data.referenceType="collapsed"}function ue(w){const C=this.resume(),P=this.stack[this.stack.length-1];P.label=C,P.identifier=Pe(this.sliceSerialize(w)).toLowerCase(),this.data.referenceType="full"}function be(w){this.data.characterReferenceType=w.type}function J(w){const C=this.sliceSerialize(w),P=this.data.characterReferenceType;let j;P?(j=Yl(C,P==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):j=st(C);const W=this.stack[this.stack.length-1];W.value+=j}function we(w){const C=this.stack.pop();C.position.end=ke(w.end)}function ge(w){F.call(this,w);const C=this.stack[this.stack.length-1];C.url=this.sliceSerialize(w)}function _e(w){F.call(this,w);const C=this.stack[this.stack.length-1];C.url="mailto:"+this.sliceSerialize(w)}function Ie(){return{type:"blockquote",children:[]}}function Le(){return{type:"code",lang:null,meta:null,value:""}}function ku(){return{type:"inlineCode",value:""}}function Ru(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Nu(){return{type:"emphasis",children:[]}}function vs(){return{type:"heading",depth:0,children:[]}}function Cs(){return{type:"break"}}function Os(){return{type:"html",value:""}}function vu(){return{type:"image",title:null,url:"",alt:null}}function xs(){return{type:"link",title:null,url:"",children:[]}}function Ls(w){return{type:"list",ordered:w.type==="listOrdered",start:null,spread:w._spread,children:[]}}function Cu(w){return{type:"listItem",spread:w._spread,checked:null,children:[]}}function Ou(){return{type:"paragraph",children:[]}}function xu(){return{type:"strong",children:[]}}function Lu(){return{type:"text",value:""}}function Du(){return{type:"thematicBreak"}}}function ke(e){return{line:e.line,column:e.column,offset:e.offset}}function iu(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?iu(e,r):xp(e,r)}}function xp(e,t){let n;for(n in t)if(au.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function ol(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+tt({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+tt({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+tt({start:t.start,end:t.end})+") is still open")}function Lp(e){const t=this;t.parser=n;function n(r){return Cp(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Dp(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Mp(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{r as Oe,g as Ie,a as Be}from"./react-vendor-N--QU9DW.js";var i=Oe();const dr=Ie(i);var le="popstate";function Me(e={}){function t(n,o){let{pathname:a,search:l,hash:s}=n.location;return J("",{pathname:a,search:l,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function r(n,o){return typeof o=="string"?o:I(o)}return de(t,r,null,e)}function Ue(e={}){function t(o,a){let{pathname:l="/",search:s="",hash:u=""}=F(o.location.hash.substring(1));return!l.startsWith("/")&&!l.startsWith(".")&&(l="/"+l),J("",{pathname:l,search:s,hash:u},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function r(o,a){let l=o.document.querySelector("base"),s="";if(l&&l.getAttribute("href")){let u=o.location.href,c=u.indexOf("#");s=c===-1?u:u.slice(0,c)}return s+"#"+(typeof a=="string"?a:I(a))}function n(o,a){C(o.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(a)})`)}return de(t,r,n,e)}function E(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function C(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Ae(){return Math.random().toString(36).substring(2,10)}function ie(e,t){return{usr:e.state,key:e.key,idx:t}}function J(e,t,r=null,n){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?F(t):t,state:r,key:t&&t.key||n||Ae()}}function I({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function F(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function de(e,t,r,n={}){let{window:o=document.defaultView,v5Compat:a=!1}=n,l=o.history,s="POP",u=null,c=d();c==null&&(c=0,l.replaceState({...l.state,idx:c},""));function d(){return(l.state||{idx:null}).idx}function f(){s="POP";let p=d(),v=p==null?null:p-c;c=p,u&&u({action:s,location:g.location,delta:v})}function m(p,v){s="PUSH";let h=J(g.location,p,v);r&&r(h,p),c=d()+1;let w=ie(h,c),S=g.createHref(h);try{l.pushState(w,"",S)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;o.location.assign(S)}a&&u&&u({action:s,location:g.location,delta:1})}function y(p,v){s="REPLACE";let h=J(g.location,p,v);r&&r(h,p),c=d();let w=ie(h,c),S=g.createHref(h);l.replaceState(w,"",S),a&&u&&u({action:s,location:g.location,delta:0})}function R(p){return _e(p)}let g={get action(){return s},get location(){return e(o,l)},listen(p){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(le,f),u=p,()=>{o.removeEventListener(le,f),u=null}},createHref(p){return t(o,p)},createURL:R,encodeLocation(p){let v=R(p);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:m,replace:y,go(p){return l.go(p)}};return g}function _e(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),E(r,"No window.location.(origin|href) available to create URL");let n=typeof e=="string"?e:I(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}function he(e,t,r="/"){return We(e,t,r,!1)}function We(e,t,r,n){let o=typeof t=="string"?F(t):t,a=$(o.pathname||"/",r);if(a==null)return null;let l=pe(e);He(l);let s=null;for(let u=0;s==null&&u<l.length;++u){let c=Ze(a);s=Xe(l[u],c,n)}return s}function pe(e,t=[],r=[],n="",o=!1){let a=(l,s,u=o,c)=>{let d={relativePath:c===void 0?l.path||"":c,caseSensitive:l.caseSensitive===!0,childrenIndex:s,route:l};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(n)&&u)return;E(d.relativePath.startsWith(n),`Absolute route path "${d.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(n.length)}let f=L([n,d.relativePath]),m=r.concat(d);l.children&&l.children.length>0&&(E(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),pe(l.children,t,m,f,u)),!(l.path==null&&!l.index)&&t.push({path:f,score:Ye(f,l.index),routesMeta:m})};return e.forEach((l,s)=>{if(l.path===""||!l.path?.includes("?"))a(l,s);else for(let u of me(l.path))a(l,s,!0,u)}),t}function me(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return o?[a,""]:[a];let l=me(n.join("/")),s=[];return s.push(...l.map(u=>u===""?a:[a,u].join("/"))),o&&s.push(...l),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function He(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Ge(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var je=/^:[\w-]+$/,ze=3,Je=2,Ve=1,Ke=10,qe=-2,se=e=>e==="*";function Ye(e,t){let r=e.split("/"),n=r.length;return r.some(se)&&(n+=qe),t&&(n+=Je),r.filter(o=>!se(o)).reduce((o,a)=>o+(je.test(a)?ze:a===""?Ve:Ke),n)}function Ge(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function Xe(e,t,r=!1){let{routesMeta:n}=e,o={},a="/",l=[];for(let s=0;s<n.length;++s){let u=n[s],c=s===n.length-1,d=a==="/"?t:t.slice(a.length)||"/",f=V({path:u.relativePath,caseSensitive:u.caseSensitive,end:c},d),m=u.route;if(!f&&c&&r&&!n[n.length-1].route.index&&(f=V({path:u.relativePath,caseSensitive:u.caseSensitive,end:!1},d)),!f)return null;Object.assign(o,f.params),l.push({params:o,pathname:L([a,f.pathname]),pathnameBase:nt(L([a,f.pathnameBase])),route:m}),f.pathnameBase!=="/"&&(a=L([a,f.pathnameBase]))}return l}function V(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=Qe(e.path,e.caseSensitive,e.end),o=t.match(r);if(!o)return null;let a=o[0],l=a.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:n.reduce((c,{paramName:d,isOptional:f},m)=>{if(d==="*"){let R=s[m]||"";l=a.slice(0,a.length-R.length).replace(/(.)\/+$/,"$1")}const y=s[m];return f&&!y?c[d]=void 0:c[d]=(y||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:l,pattern:e}}function Qe(e,t=!1,r=!0){C(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,s,u)=>(n.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function Ze(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return C(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function $(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}var ye=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,et=e=>ye.test(e);function tt(e,t="/"){let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?F(e):e,a;if(r)if(et(r))a=r;else{if(r.includes("//")){let l=r;r=r.replace(/\/\/+/g,"/"),C(!1,`Pathnames cannot have embedded double slashes - normalizing ${l} -> ${r}`)}r.startsWith("/")?a=ue(r.substring(1),"/"):a=ue(r,t)}else a=t;return{pathname:a,search:at(n),hash:ot(o)}}function ue(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function Y(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function rt(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Z(e){let t=rt(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function ee(e,t,r,n=!1){let o;typeof e=="string"?o=F(e):(o={...e},E(!o.pathname||!o.pathname.includes("?"),Y("?","pathname","search",o)),E(!o.pathname||!o.pathname.includes("#"),Y("#","pathname","hash",o)),E(!o.search||!o.search.includes("#"),Y("#","search","hash",o)));let a=e===""||o.pathname==="",l=a?"/":o.pathname,s;if(l==null)s=r;else{let f=t.length-1;if(!n&&l.startsWith("..")){let m=l.split("/");for(;m[0]==="..";)m.shift(),f-=1;o.pathname=m.join("/")}s=f>=0?t[f]:"/"}let u=tt(o,s),c=l&&l!=="/"&&l.endsWith("/"),d=(a||l===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(c||d)&&(u.pathname+="/"),u}var L=e=>e.join("/").replace(/\/\/+/g,"/"),nt=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),at=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ot=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,lt=class{constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function it(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function st(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var ge=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ve(e,t){let r=e;if(typeof r!="string"||!ye.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,o=!1;if(ge)try{let a=new URL(window.location.href),l=r.startsWith("//")?new URL(a.protocol+r):new URL(r),s=$(l.pathname,t);l.origin===a.origin&&s!=null?r=s+l.search+l.hash:o=!0}catch{C(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:o,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Re=["POST","PUT","PATCH","DELETE"];new Set(Re);var ut=["GET",...Re];new Set(ut);var B=i.createContext(null);B.displayName="DataRouter";var K=i.createContext(null);K.displayName="DataRouterState";var ct=i.createContext(!1),we=i.createContext({isTransitioning:!1});we.displayName="ViewTransition";var ft=i.createContext(new Map);ft.displayName="Fetchers";var dt=i.createContext(null);dt.displayName="Await";var b=i.createContext(null);b.displayName="Navigation";var _=i.createContext(null);_.displayName="Location";var P=i.createContext({outlet:null,matches:[],isDataRoute:!1});P.displayName="Route";var te=i.createContext(null);te.displayName="RouteError";var Ee="REACT_ROUTER_ERROR",ht="REDIRECT",pt="ROUTE_ERROR_RESPONSE";function mt(e){if(e.startsWith(`${Ee}:${ht}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function yt(e){if(e.startsWith(`${Ee}:${pt}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new lt(t.status,t.statusText,t.data)}catch{}}function gt(e,{relative:t}={}){E(M(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=i.useContext(b),{hash:o,pathname:a,search:l}=W(e,{relative:t}),s=a;return r!=="/"&&(s=a==="/"?r:L([r,a])),n.createHref({pathname:s,search:l,hash:o})}function M(){return i.useContext(_)!=null}function k(){return E(M(),"useLocation() may be used only in the context of a <Router> component."),i.useContext(_).location}var xe="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ce(e){i.useContext(b).static||i.useLayoutEffect(e)}function be(){let{isDataRoute:e}=i.useContext(P);return e?Tt():vt()}function vt(){E(M(),"useNavigate() may be used only in the context of a <Router> component.");let e=i.useContext(B),{basename:t,navigator:r}=i.useContext(b),{matches:n}=i.useContext(P),{pathname:o}=k(),a=JSON.stringify(Z(n)),l=i.useRef(!1);return Ce(()=>{l.current=!0}),i.useCallback((u,c={})=>{if(C(l.current,xe),!l.current)return;if(typeof u=="number"){r.go(u);return}let d=ee(u,JSON.parse(a),o,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:L([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,a,o,e])}i.createContext(null);function hr(){let{matches:e}=i.useContext(P),t=e[e.length-1];return t?t.params:{}}function W(e,{relative:t}={}){let{matches:r}=i.useContext(P),{pathname:n}=k(),o=JSON.stringify(Z(r));return i.useMemo(()=>ee(e,JSON.parse(o),n,t==="path"),[e,o,n,t])}function Rt(e,t){return Se(e,t)}function Se(e,t,r,n,o){E(M(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=i.useContext(b),{matches:l}=i.useContext(P),s=l[l.length-1],u=s?s.params:{},c=s?s.pathname:"/",d=s?s.pathnameBase:"/",f=s&&s.route;{let h=f&&f.path||"";Le(c,!f||h.endsWith("*")||h.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${h}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
2
|
+
|
|
3
|
+
Please change the parent <Route path="${h}"> to <Route path="${h==="/"?"*":`${h}/*`}">.`)}let m=k(),y;if(t){let h=typeof t=="string"?F(t):t;E(d==="/"||h.pathname?.startsWith(d),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${h.pathname}" was given in the \`location\` prop.`),y=h}else y=m;let R=y.pathname||"/",g=R;if(d!=="/"){let h=d.replace(/^\//,"").split("/");g="/"+R.replace(/^\//,"").split("/").slice(h.length).join("/")}let p=he(e,{pathname:g});C(f||p!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),C(p==null||p[p.length-1].route.element!==void 0||p[p.length-1].route.Component!==void 0||p[p.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let v=bt(p&&p.map(h=>Object.assign({},h,{params:Object.assign({},u,h.params),pathname:L([d,a.encodeLocation?a.encodeLocation(h.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:h.pathname]),pathnameBase:h.pathnameBase==="/"?d:L([d,a.encodeLocation?a.encodeLocation(h.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:h.pathnameBase])})),l,r,n,o);return t&&v?i.createElement(_.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...y},navigationType:"POP"}},v):v}function wt(){let e=kt(),t=it(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n},a={padding:"2px 4px",backgroundColor:n},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=i.createElement(i.Fragment,null,i.createElement("p",null,"💿 Hey developer 👋"),i.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",i.createElement("code",{style:a},"ErrorBoundary")," or"," ",i.createElement("code",{style:a},"errorElement")," prop on your route.")),i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),r?i.createElement("pre",{style:o},r):null,l)}var Et=i.createElement(wt,null),Pe=class extends i.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const r=yt(e.digest);r&&(e=r)}let t=e!==void 0?i.createElement(P.Provider,{value:this.props.routeContext},i.createElement(te.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?i.createElement(xt,{error:e},t):t}};Pe.contextType=ct;var G=new WeakMap;function xt({children:e,error:t}){let{basename:r}=i.useContext(b);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let n=mt(t.digest);if(n){let o=G.get(t);if(o)throw o;let a=ve(n.location,r);if(ge&&!G.get(t))if(a.isExternal||n.reloadDocument)window.location.href=a.absoluteURL||a.to;else{const l=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:n.replace}));throw G.set(t,l),l}return i.createElement("meta",{httpEquiv:"refresh",content:`0;url=${a.absoluteURL||a.to}`})}}return e}function Ct({routeContext:e,match:t,children:r}){let n=i.useContext(B);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),i.createElement(P.Provider,{value:e},r)}function bt(e,t=[],r=null,n=null,o=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,l=r?.errors;if(l!=null){let d=a.findIndex(f=>f.route.id&&l?.[f.route.id]!==void 0);E(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),a=a.slice(0,Math.min(a.length,d+1))}let s=!1,u=-1;if(r)for(let d=0;d<a.length;d++){let f=a[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=d),f.route.id){let{loaderData:m,errors:y}=r,R=f.route.loader&&!m.hasOwnProperty(f.route.id)&&(!y||y[f.route.id]===void 0);if(f.route.lazy||R){s=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}let c=r&&n?(d,f)=>{n(d,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:st(r.matches),errorInfo:f})}:void 0;return a.reduceRight((d,f,m)=>{let y,R=!1,g=null,p=null;r&&(y=l&&f.route.id?l[f.route.id]:void 0,g=f.route.errorElement||Et,s&&(u<0&&m===0?(Le("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),R=!0,p=null):u===m&&(R=!0,p=f.route.hydrateFallbackElement||null)));let v=t.concat(a.slice(0,m+1)),h=()=>{let w;return y?w=g:R?w=p:f.route.Component?w=i.createElement(f.route.Component,null):f.route.element?w=f.route.element:w=d,i.createElement(Ct,{match:f,routeContext:{outlet:d,matches:v,isDataRoute:r!=null},children:w})};return r&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?i.createElement(Pe,{location:r.location,revalidation:r.revalidation,component:g,error:y,children:h(),routeContext:{outlet:null,matches:v,isDataRoute:!0},onError:c}):h()},null)}function re(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function St(e){let t=i.useContext(B);return E(t,re(e)),t}function Pt(e){let t=i.useContext(K);return E(t,re(e)),t}function Lt(e){let t=i.useContext(P);return E(t,re(e)),t}function ne(e){let t=Lt(e),r=t.matches[t.matches.length-1];return E(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function $t(){return ne("useRouteId")}function kt(){let e=i.useContext(te),t=Pt("useRouteError"),r=ne("useRouteError");return e!==void 0?e:t.errors?.[r]}function Tt(){let{router:e}=St("useNavigate"),t=ne("useNavigate"),r=i.useRef(!1);return Ce(()=>{r.current=!0}),i.useCallback(async(o,a={})=>{C(r.current,xe),r.current&&(typeof o=="number"?await e.navigate(o):await e.navigate(o,{fromRouteId:t,...a}))},[e,t])}var ce={};function Le(e,t,r){!t&&!ce[e]&&(ce[e]=!0,C(!1,r))}i.memo(Dt);function Dt({routes:e,future:t,state:r,onError:n}){return Se(e,void 0,r,n,t)}function pr({to:e,replace:t,state:r,relative:n}){E(M(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=i.useContext(b);C(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:a}=i.useContext(P),{pathname:l}=k(),s=be(),u=ee(e,Z(a),l,n==="path"),c=JSON.stringify(u);return i.useEffect(()=>{s(JSON.parse(c),{replace:t,state:r,relative:n})},[s,c,n,t,r]),null}function Ft(e){E(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function $e({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:o,static:a=!1,unstable_useTransitions:l}){E(!M(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),u=i.useMemo(()=>({basename:s,navigator:o,static:a,unstable_useTransitions:l,future:{}}),[s,o,a,l]);typeof r=="string"&&(r=F(r));let{pathname:c="/",search:d="",hash:f="",state:m=null,key:y="default"}=r,R=i.useMemo(()=>{let g=$(c,s);return g==null?null:{location:{pathname:g,search:d,hash:f,state:m,key:y},navigationType:n}},[s,c,d,f,m,y,n]);return C(R!=null,`<Router basename="${s}"> is not able to match the URL "${c}${d}${f}" because it does not start with the basename, so the <Router> won't render anything.`),R==null?null:i.createElement(b.Provider,{value:u},i.createElement(_.Provider,{children:t,value:R}))}function mr({children:e,location:t}){return Rt(Q(e),t)}function Q(e,t=[]){let r=[];return i.Children.forEach(e,(n,o)=>{if(!i.isValidElement(n))return;let a=[...t,o];if(n.type===i.Fragment){r.push.apply(r,Q(n.props.children,a));return}E(n.type===Ft,`[${typeof n.type=="string"?n.type:n.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),E(!n.props.index||!n.props.children,"An index route cannot have child routes.");let l={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,middleware:n.props.middleware,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(l.children=Q(n.props.children,a)),r.push(l)}),r}var j="get",z="application/x-www-form-urlencoded";function q(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function Nt(e){return q(e)&&e.tagName.toLowerCase()==="button"}function Ot(e){return q(e)&&e.tagName.toLowerCase()==="form"}function It(e){return q(e)&&e.tagName.toLowerCase()==="input"}function Bt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Mt(e,t){return e.button===0&&(!t||t==="_self")&&!Bt(e)}var H=null;function Ut(){if(H===null)try{new FormData(document.createElement("form"),0),H=!1}catch{H=!0}return H}var At=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function X(e){return e!=null&&!At.has(e)?(C(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${z}"`),null):e}function _t(e,t){let r,n,o,a,l;if(Ot(e)){let s=e.getAttribute("action");n=s?$(s,t):null,r=e.getAttribute("method")||j,o=X(e.getAttribute("enctype"))||z,a=new FormData(e)}else if(Nt(e)||It(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let u=e.getAttribute("formaction")||s.getAttribute("action");if(n=u?$(u,t):null,r=e.getAttribute("formmethod")||s.getAttribute("method")||j,o=X(e.getAttribute("formenctype"))||X(s.getAttribute("enctype"))||z,a=new FormData(s,e),!Ut()){let{name:c,type:d,value:f}=e;if(d==="image"){let m=c?`${c}.`:"";a.append(`${m}x`,"0"),a.append(`${m}y`,"0")}else c&&a.append(c,f)}}else{if(q(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=j,n=null,o=z,l=e}return a&&o==="text/plain"&&(l=a,a=void 0),{action:n,method:r.toLowerCase(),encType:o,formData:a,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function ae(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Wt(e,t,r,n){let o=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${n}`:o.pathname=`${o.pathname}.${n}`:o.pathname==="/"?o.pathname=`_root.${n}`:t&&$(o.pathname,t)==="/"?o.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${n}`,o}async function Ht(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function jt(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function zt(e,t,r){let n=await Promise.all(e.map(async o=>{let a=t.routes[o.route.id];if(a){let l=await Ht(a,r);return l.links?l.links():[]}return[]}));return qt(n.flat(1).filter(jt).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function fe(e,t,r,n,o,a){let l=(u,c)=>r[c]?u.route.id!==r[c].route.id:!0,s=(u,c)=>r[c].pathname!==u.pathname||r[c].route.path?.endsWith("*")&&r[c].params["*"]!==u.params["*"];return a==="assets"?t.filter((u,c)=>l(u,c)||s(u,c)):a==="data"?t.filter((u,c)=>{let d=n.routes[u.route.id];if(!d||!d.hasLoader)return!1;if(l(u,c)||s(u,c))return!0;if(u.route.shouldRevalidate){let f=u.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:u.params,defaultShouldRevalidate:!0});if(typeof f=="boolean")return f}return!0}):[]}function Jt(e,t,{includeHydrateFallback:r}={}){return Vt(e.map(n=>{let o=t.routes[n.route.id];if(!o)return[];let a=[o.module];return o.clientActionModule&&(a=a.concat(o.clientActionModule)),o.clientLoaderModule&&(a=a.concat(o.clientLoaderModule)),r&&o.hydrateFallbackModule&&(a=a.concat(o.hydrateFallbackModule)),o.imports&&(a=a.concat(o.imports)),a}).flat(1))}function Vt(e){return[...new Set(e)]}function Kt(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}function qt(e,t){let r=new Set;return new Set(t),e.reduce((n,o)=>{let a=JSON.stringify(Kt(o));return r.has(a)||(r.add(a),n.push({key:a,link:o})),n},[])}function ke(){let e=i.useContext(B);return ae(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Yt(){let e=i.useContext(K);return ae(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var oe=i.createContext(void 0);oe.displayName="FrameworkContext";function Te(){let e=i.useContext(oe);return ae(e,"You must render this element inside a <HydratedRouter> element"),e}function Gt(e,t){let r=i.useContext(oe),[n,o]=i.useState(!1),[a,l]=i.useState(!1),{onFocus:s,onBlur:u,onMouseEnter:c,onMouseLeave:d,onTouchStart:f}=t,m=i.useRef(null);i.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let g=v=>{v.forEach(h=>{l(h.isIntersecting)})},p=new IntersectionObserver(g,{threshold:.5});return m.current&&p.observe(m.current),()=>{p.disconnect()}}},[e]),i.useEffect(()=>{if(n){let g=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(g)}}},[n]);let y=()=>{o(!0)},R=()=>{o(!1),l(!1)};return r?e!=="intent"?[a,m,{}]:[a,m,{onFocus:A(s,y),onBlur:A(u,R),onMouseEnter:A(c,y),onMouseLeave:A(d,R),onTouchStart:A(f,y)}]:[!1,m,{}]}function A(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function Xt({page:e,...t}){let{router:r}=ke(),n=i.useMemo(()=>he(r.routes,e,r.basename),[r.routes,e,r.basename]);return n?i.createElement(Zt,{page:e,matches:n,...t}):null}function Qt(e){let{manifest:t,routeModules:r}=Te(),[n,o]=i.useState([]);return i.useEffect(()=>{let a=!1;return zt(e,t,r).then(l=>{a||o(l)}),()=>{a=!0}},[e,t,r]),n}function Zt({page:e,matches:t,...r}){let n=k(),{future:o,manifest:a,routeModules:l}=Te(),{basename:s}=ke(),{loaderData:u,matches:c}=Yt(),d=i.useMemo(()=>fe(e,t,c,a,n,"data"),[e,t,c,a,n]),f=i.useMemo(()=>fe(e,t,c,a,n,"assets"),[e,t,c,a,n]),m=i.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let g=new Set,p=!1;if(t.forEach(h=>{let w=a.routes[h.route.id];!w||!w.hasLoader||(!d.some(S=>S.route.id===h.route.id)&&h.route.id in u&&l[h.route.id]?.shouldRevalidate||w.hasClientLoader?p=!0:g.add(h.route.id))}),g.size===0)return[];let v=Wt(e,s,o.unstable_trailingSlashAwareDataRequests,"data");return p&&g.size>0&&v.searchParams.set("_routes",t.filter(h=>g.has(h.route.id)).map(h=>h.route.id).join(",")),[v.pathname+v.search]},[s,o.unstable_trailingSlashAwareDataRequests,u,n,a,d,t,e,l]),y=i.useMemo(()=>Jt(f,a),[f,a]),R=Qt(f);return i.createElement(i.Fragment,null,m.map(g=>i.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...r})),y.map(g=>i.createElement("link",{key:g,rel:"modulepreload",href:g,...r})),R.map(({key:g,link:p})=>i.createElement("link",{key:g,nonce:r.nonce,...p})))}function er(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var tr=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{tr&&(window.__reactRouterVersion="7.12.0")}catch{}function yr({basename:e,children:t,unstable_useTransitions:r,window:n}){let o=i.useRef();o.current==null&&(o.current=Me({window:n,v5Compat:!0}));let a=o.current,[l,s]=i.useState({action:a.action,location:a.location}),u=i.useCallback(c=>{r===!1?s(c):i.startTransition(()=>s(c))},[r]);return i.useLayoutEffect(()=>a.listen(u),[a,u]),i.createElement($e,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:a,unstable_useTransitions:r})}function gr({basename:e,children:t,unstable_useTransitions:r,window:n}){let o=i.useRef();o.current==null&&(o.current=Ue({window:n,v5Compat:!0}));let a=o.current,[l,s]=i.useState({action:a.action,location:a.location}),u=i.useCallback(c=>{r===!1?s(c):i.startTransition(()=>s(c))},[r]);return i.useLayoutEffect(()=>a.listen(u),[a,u]),i.createElement($e,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:a,unstable_useTransitions:r})}var De=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Fe=i.forwardRef(function({onClick:t,discover:r="render",prefetch:n="none",relative:o,reloadDocument:a,replace:l,state:s,target:u,to:c,preventScrollReset:d,viewTransition:f,unstable_defaultShouldRevalidate:m,...y},R){let{basename:g,unstable_useTransitions:p}=i.useContext(b),v=typeof c=="string"&&De.test(c),h=ve(c,g);c=h.to;let w=gt(c,{relative:o}),[S,x,T]=Gt(n,y),D=or(c,{replace:l,state:s,target:u,preventScrollReset:d,relative:o,viewTransition:f,unstable_defaultShouldRevalidate:m,unstable_useTransitions:p});function N(U){t&&t(U),U.defaultPrevented||D(U)}let O=i.createElement("a",{...y,...T,href:h.absoluteURL||w,onClick:h.isExternal||a?t:N,ref:er(R,x),target:u,"data-discover":!v&&r==="render"?"true":void 0});return S&&!v?i.createElement(i.Fragment,null,O,i.createElement(Xt,{page:w})):O});Fe.displayName="Link";var rr=i.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:n="",end:o=!1,style:a,to:l,viewTransition:s,children:u,...c},d){let f=W(l,{relative:c.relative}),m=k(),y=i.useContext(K),{navigator:R,basename:g}=i.useContext(b),p=y!=null&&cr(f)&&s===!0,v=R.encodeLocation?R.encodeLocation(f).pathname:f.pathname,h=m.pathname,w=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;r||(h=h.toLowerCase(),w=w?w.toLowerCase():null,v=v.toLowerCase()),w&&g&&(w=$(w,g)||w);const S=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let x=h===v||!o&&h.startsWith(v)&&h.charAt(S)==="/",T=w!=null&&(w===v||!o&&w.startsWith(v)&&w.charAt(v.length)==="/"),D={isActive:x,isPending:T,isTransitioning:p},N=x?t:void 0,O;typeof n=="function"?O=n(D):O=[n,x?"active":null,T?"pending":null,p?"transitioning":null].filter(Boolean).join(" ");let U=typeof a=="function"?a(D):a;return i.createElement(Fe,{...c,"aria-current":N,className:O,ref:d,style:U,to:l,viewTransition:s},typeof u=="function"?u(D):u)});rr.displayName="NavLink";var nr=i.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:o,state:a,method:l=j,action:s,onSubmit:u,relative:c,preventScrollReset:d,viewTransition:f,unstable_defaultShouldRevalidate:m,...y},R)=>{let{unstable_useTransitions:g}=i.useContext(b),p=sr(),v=ur(s,{relative:c}),h=l.toLowerCase()==="get"?"get":"post",w=typeof s=="string"&&De.test(s),S=x=>{if(u&&u(x),x.defaultPrevented)return;x.preventDefault();let T=x.nativeEvent.submitter,D=T?.getAttribute("formmethod")||l,N=()=>p(T||x.currentTarget,{fetcherKey:t,method:D,navigate:r,replace:o,state:a,relative:c,preventScrollReset:d,viewTransition:f,unstable_defaultShouldRevalidate:m});g&&r!==!1?i.startTransition(()=>N()):N()};return i.createElement("form",{ref:R,method:h,action:v,onSubmit:n?u:S,...y,"data-discover":!w&&e==="render"?"true":void 0})});nr.displayName="Form";function ar(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ne(e){let t=i.useContext(B);return E(t,ar(e)),t}function or(e,{target:t,replace:r,state:n,preventScrollReset:o,relative:a,viewTransition:l,unstable_defaultShouldRevalidate:s,unstable_useTransitions:u}={}){let c=be(),d=k(),f=W(e,{relative:a});return i.useCallback(m=>{if(Mt(m,t)){m.preventDefault();let y=r!==void 0?r:I(d)===I(f),R=()=>c(e,{replace:y,state:n,preventScrollReset:o,relative:a,viewTransition:l,unstable_defaultShouldRevalidate:s});u?i.startTransition(()=>R()):R()}},[d,c,f,r,n,t,e,o,a,l,s,u])}var lr=0,ir=()=>`__${String(++lr)}__`;function sr(){let{router:e}=Ne("useSubmit"),{basename:t}=i.useContext(b),r=$t(),n=e.fetch,o=e.navigate;return i.useCallback(async(a,l={})=>{let{action:s,method:u,encType:c,formData:d,body:f}=_t(a,t);if(l.navigate===!1){let m=l.fetcherKey||ir();await n(m,r,l.action||s,{unstable_defaultShouldRevalidate:l.unstable_defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:d,body:f,formMethod:l.method||u,formEncType:l.encType||c,flushSync:l.flushSync})}else await o(l.action||s,{unstable_defaultShouldRevalidate:l.unstable_defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:d,body:f,formMethod:l.method||u,formEncType:l.encType||c,replace:l.replace,state:l.state,fromRouteId:r,flushSync:l.flushSync,viewTransition:l.viewTransition})},[n,o,t,r])}function ur(e,{relative:t}={}){let{basename:r}=i.useContext(b),n=i.useContext(P);E(n,"useFormAction must be used inside a RouteContext");let[o]=n.matches.slice(-1),a={...W(e||".",{relative:t})},l=k();if(e==null){a.search=l.search;let s=new URLSearchParams(a.search),u=s.getAll("index");if(u.some(d=>d==="")){s.delete("index"),u.filter(f=>f).forEach(f=>s.append("index",f));let d=s.toString();a.search=d?`?${d}`:""}}return(!e||e===".")&&o.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(a.pathname=a.pathname==="/"?r:L([r,a.pathname])),I(a)}function cr(e,{relative:t}={}){let r=i.useContext(we);E(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=Ne("useViewTransitionState"),o=W(e,{relative:t});if(!r.isTransitioning)return!1;let a=$(r.currentLocation.pathname,n)||r.currentLocation.pathname,l=$(r.nextLocation.pathname,n)||r.nextLocation.pathname;return V(o.pathname,l)!=null||V(o.pathname,a)!=null}var vr=Be();export{yr as B,gr as H,Fe as L,pr as N,dr as R,be as a,hr as b,vr as c,mr as d,Ft as e,i as r,k as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as d}from"./router-vendor-
|
|
1
|
+
import{r as d}from"./router-vendor-CnU0qKrY.js";let K={data:""},W=e=>{if(typeof window=="object"){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||K},X=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Y=/\/\*[^]*?\*\/| +/g,S=/\n+/g,M=(e,t)=>{let a="",c="",r="";for(let n in e){let s=e[n];n[0]=="@"?n[1]=="i"?a=n+" "+s+";":c+=n[1]=="f"?M(s,n):n+"{"+M(s,n[1]=="k"?"":t)+"}":typeof s=="object"?c+=M(s,t?t.replace(/([^,])+/g,i=>n.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,i):i?i+" "+l:l)):n):s!=null&&(n=/^--/.test(n)?n:n.replace(/[A-Z]/g,"-$&").toLowerCase(),r+=M.p?M.p(n,s):n+":"+s+";")}return a+(t&&r?t+"{"+r+"}":r)+c},g={},P=e=>{if(typeof e=="object"){let t="";for(let a in e)t+=a+P(e[a]);return t}return e},Q=(e,t,a,c,r)=>{let n=P(e),s=g[n]||(g[n]=(l=>{let y=0,h=11;for(;y<l.length;)h=101*h+l.charCodeAt(y++)>>>0;return"go"+h})(n));if(!g[s]){let l=n!==e?e:(y=>{let h,p,k=[{}];for(;h=X.exec(y.replace(Y,""));)h[4]?k.shift():h[3]?(p=h[3].replace(S," ").trim(),k.unshift(k[0][p]=k[0][p]||{})):k[0][h[1]]=h[2].replace(S," ").trim();return k[0]})(e);g[s]=M(r?{["@keyframes "+s]:l}:l,a?"":"."+s)}let i=a&&g.g?g.g:null;return a&&(g.g=g[s]),((l,y,h,p)=>{p?y.data=y.data.replace(p,l):y.data.indexOf(l)===-1&&(y.data=h?l+y.data:y.data+l)})(g[s],t,c,i),s},J=(e,t,a)=>e.reduce((c,r,n)=>{let s=t[n];if(s&&s.call){let i=s(a),l=i&&i.props&&i.props.className||/^go/.test(i)&&i;s=l?"."+l:i&&typeof i=="object"?i.props?"":M(i,""):i===!1?"":i}return c+r+(s??"")},"");function j(e){let t=this||{},a=e.call?e(t.p):e;return Q(a.unshift?a.raw?J(a,[].slice.call(arguments,1),t.p):a.reduce((c,r)=>Object.assign(c,r&&r.call?r(t.p):r),{}):a,W(t.target),t.g,t.o,t.k)}let I,H,L;j.bind({g:1});let x=j.bind({k:1});function e1(e,t,a,c){M.p=t,I=e,H=a,L=c}function _(e,t){let a=this||{};return function(){let c=arguments;function r(n,s){let i=Object.assign({},n),l=i.className||r.className;a.p=Object.assign({theme:H&&H()},i),a.o=/ *go\d+/.test(l),i.className=j.apply(a,c)+(l?" "+l:"");let y=e;return e[0]&&(y=i.as||e,delete i.as),L&&y[0]&&L(i),I(y,i)}return r}}var t1=e=>typeof e=="function",z=(e,t)=>t1(e)?e(t):e,a1=(()=>{let e=0;return()=>(++e).toString()})(),T=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),o1=20,E="default",F=(e,t)=>{let{toastLimit:a}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,a)};case 1:return{...e,toasts:e.toasts.map(s=>s.id===t.toast.id?{...s,...t.toast}:s)};case 2:let{toast:c}=t;return F(e,{type:e.toasts.find(s=>s.id===c.id)?1:0,toast:c});case 3:let{toastId:r}=t;return{...e,toasts:e.toasts.map(s=>s.id===r||r===void 0?{...s,dismissed:!0,visible:!1}:s)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(s=>s.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let n=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(s=>({...s,pauseDuration:s.pauseDuration+n}))}}},N=[],R={toasts:[],pausedAt:void 0,settings:{toastLimit:o1}},v={},U=(e,t=E)=>{v[t]=F(v[t]||R,e),N.forEach(([a,c])=>{a===t&&c(v[t])})},B=e=>Object.keys(v).forEach(t=>U(e,t)),s1=e=>Object.keys(v).find(t=>v[t].toasts.some(a=>a.id===e)),q=(e=E)=>t=>{U(t,e)},c1={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},n1=(e={},t=E)=>{let[a,c]=d.useState(v[t]||R),r=d.useRef(v[t]);d.useEffect(()=>(r.current!==v[t]&&c(v[t]),N.push([t,c]),()=>{let s=N.findIndex(([i])=>i===t);s>-1&&N.splice(s,1)}),[t]);let n=a.toasts.map(s=>{var i,l,y;return{...e,...e[s.type],...s,removeDelay:s.removeDelay||((i=e[s.type])==null?void 0:i.removeDelay)||e?.removeDelay,duration:s.duration||((l=e[s.type])==null?void 0:l.duration)||e?.duration||c1[s.type],style:{...e.style,...(y=e[s.type])==null?void 0:y.style,...s.style}}});return{...a,toasts:n}},r1=(e,t="blank",a)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...a,id:a?.id||a1()}),b=e=>(t,a)=>{let c=r1(t,e,a);return q(c.toasterId||s1(c.id))({type:2,toast:c}),c.id},u=(e,t)=>b("blank")(e,t);u.error=b("error");u.success=b("success");u.loading=b("loading");u.custom=b("custom");u.dismiss=(e,t)=>{let a={type:3,toastId:e};t?q(t)(a):B(a)};u.dismissAll=e=>u.dismiss(void 0,e);u.remove=(e,t)=>{let a={type:4,toastId:e};t?q(t)(a):B(a)};u.removeAll=e=>u.remove(void 0,e);u.promise=(e,t,a)=>{let c=u.loading(t.loading,{...a,...a?.loading});return typeof e=="function"&&(e=e()),e.then(r=>{let n=t.success?z(t.success,r):void 0;return n?u.success(n,{id:c,...a,...a?.success}):u.dismiss(c),r}).catch(r=>{let n=t.error?z(t.error,r):void 0;n?u.error(n,{id:c,...a,...a?.error}):u.dismiss(c)}),e};var i1=1e3,d1=(e,t="default")=>{let{toasts:a,pausedAt:c}=n1(e,t),r=d.useRef(new Map).current,n=d.useCallback((p,k=i1)=>{if(r.has(p))return;let m=setTimeout(()=>{r.delete(p),s({type:4,toastId:p})},k);r.set(p,m)},[]);d.useEffect(()=>{if(c)return;let p=Date.now(),k=a.map(m=>{if(m.duration===1/0)return;let w=(m.duration||0)+m.pauseDuration-(p-m.createdAt);if(w<0){m.visible&&u.dismiss(m.id);return}return setTimeout(()=>u.dismiss(m.id,t),w)});return()=>{k.forEach(m=>m&&clearTimeout(m))}},[a,c,t]);let s=d.useCallback(q(t),[t]),i=d.useCallback(()=>{s({type:5,time:Date.now()})},[s]),l=d.useCallback((p,k)=>{s({type:1,toast:{id:p,height:k}})},[s]),y=d.useCallback(()=>{c&&s({type:6,time:Date.now()})},[c,s]),h=d.useCallback((p,k)=>{let{reverseOrder:m=!1,gutter:w=8,defaultPosition:V}=k||{},A=a.filter(f=>(f.position||V)===(p.position||V)&&f.height),G=A.findIndex(f=>f.id===p.id),D=A.filter((f,C)=>C<G&&f.visible).length;return A.filter(f=>f.visible).slice(...m?[D+1]:[0,D]).reduce((f,C)=>f+(C.height||0)+w,0)},[a]);return d.useEffect(()=>{a.forEach(p=>{if(p.dismissed)n(p.id,p.removeDelay);else{let k=r.get(p.id);k&&(clearTimeout(k),r.delete(p.id))}})},[a,n]),{toasts:a,handlers:{updateHeight:l,startPause:i,endPause:y,calculateOffset:h}}},l1=x`
|
|
2
2
|
from {
|
|
3
3
|
transform: scale(0) rotate(45deg);
|
|
4
4
|
opacity: 0;
|