import{r as k,i as mt,m as At,k as ie,l as Ie,p as ce,ci as ll,cj as rt,ap as Ue,an as nn,bn as ol,ar as Tt,n as zt,ck as zn,au as Se,av as mn,aw as dn,aq as Br,X as _r,bp as gn,cl as al,U as $t,a0 as sl,P as ul,cm as Hr,j as yn,cn as bn,V as Ln,bo as cl,bF as fl,co as pl,cp as hl,cq as ml,cr as dl,cs as gl,ct as yl,cu as Vr,cv as Be,cw as bl,W as xl,cx as kl,bG as wl,a3 as Cl,aX as Sl,bs as vl,bv as El,bu as $l,aO as Il,cy as Ol,cz as Fl,cA as Wr,cB as Pl,cC as Al,cD as Tl,cE as zl,cF as Ll,aJ as Dl,cG as Ml,cH as Rl,R as me,aW as jl,G as Nl,a$ as xn,cI as Bl,cJ as U,q as St,A as _l}from"./index-c51caa49.js";import{u as Hl,i as Vl,a as Wl,I as Lt,g as ql,b as Ul,c as Gl}from"./index-d69c6bc3.js";import{h as Xl,k as Ql,j as Kl}from"./PrivateIndicator-3ba4829d.js";const Dn=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Mn=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Bt=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return Mn(n.overflowY,t)||Mn(n.overflowX,t)||(r=>{const i=(l=>{if(!l.ownerDocument||!l.ownerDocument.defaultView)return null;try{return l.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeight<r.scrollHeight||i.clientWidth<r.scrollWidth)})(e)}return!1},bt=(e,t,n,r,i,l,o,a)=>l<e&&o>t||l>e&&o<t?0:l<=e&&a<=n||o>=t&&a>=n?l-e-r:o>t&&a<n||l<e&&a>n?o-t+i:0,Yl=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},Rn=(e,t)=>{var n,r,i,l;if(typeof document>"u")return[];const{scrollMode:o,block:a,inline:s,boundary:c,skipOverflowHiddenElements:f}=t,u=typeof c=="function"?c:A=>A!==c;if(!Dn(e))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,p=[];let h=e;for(;Dn(h)&&u(h);){if(h=Yl(h),h===m){p.push(h);break}h!=null&&h===document.body&&Bt(h)&&!Bt(document.documentElement)||h!=null&&Bt(h,f)&&p.push(h)}const y=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,S=(l=(i=window.visualViewport)==null?void 0:i.height)!=null?l:innerHeight,{scrollX:b,scrollY:v}=window,{height:C,width:I,top:T,right:x,bottom:$,left:F}=e.getBoundingClientRect();let P=a==="start"||a==="nearest"?T:a==="end"?$:T+C/2,w=s==="center"?F+I/2:s==="end"?x:F;const O=[];for(let A=0;A<p.length;A++){const D=p[A],{height:N,width:M,top:Q,right:q,bottom:J,left:G}=D.getBoundingClientRect();if(o==="if-needed"&&T>=0&&F>=0&&$<=S&&x<=y&&T>=Q&&$<=J&&F>=G&&x<=q)return O;const d=getComputedStyle(D),j=parseInt(d.borderLeftWidth,10),R=parseInt(d.borderTopWidth,10),g=parseInt(d.borderRightWidth,10),V=parseInt(d.borderBottomWidth,10);let Z=0,B=0;const H="offsetWidth"in D?D.offsetWidth-D.clientWidth-j-g:0,K="offsetHeight"in D?D.offsetHeight-D.clientHeight-R-V:0,te="offsetWidth"in D?D.offsetWidth===0?0:M/D.offsetWidth:0,ne="offsetHeight"in D?D.offsetHeight===0?0:N/D.offsetHeight:0;if(m===D)Z=a==="start"?P:a==="end"?P-S:a==="nearest"?bt(v,v+S,S,R,V,v+P,v+P+C,C):P-S/2,B=s==="start"?w:s==="center"?w-y/2:s==="end"?w-y:bt(b,b+y,y,j,g,b+w,b+w+I,I),Z=Math.max(0,Z+v),B=Math.max(0,B+b);else{Z=a==="start"?P-Q-R:a==="end"?P-J+V+K:a==="nearest"?bt(Q,J,N,R,V+K,P,P+C,C):P-(Q+N/2)+K/2,B=s==="start"?w-G-j:s==="center"?w-(G+M/2)+H/2:s==="end"?w-q+g+H:bt(G,q,M,j,g+H,w,w+I,I);const{scrollLeft:de,scrollTop:ke}=D;Z=Math.max(0,Math.min(ke+Z/ne,D.scrollHeight-N/ne+K)),B=Math.max(0,Math.min(de+B/te,D.scrollWidth-M/te+H)),P+=ke-Z,w+=de-B}O.push({el:D,top:Z,left:B})}return O},Jl=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function Zl(e,t){if(!e.isConnected||!(i=>{let l=i;for(;l&&l.parentNode;){if(l.parentNode===document)return!0;l=l.parentNode instanceof ShadowRoot?l.parentNode.host:l.parentNode}return!1})(e))return;const n=(i=>{const l=window.getComputedStyle(i);return{top:parseFloat(l.scrollMarginTop)||0,right:parseFloat(l.scrollMarginRight)||0,bottom:parseFloat(l.scrollMarginBottom)||0,left:parseFloat(l.scrollMarginLeft)||0}})(e);if((i=>typeof i=="object"&&typeof i.behavior=="function")(t))return t.behavior(Rn(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:i,top:l,left:o}of Rn(e,Jl(t))){const a=l-n.top+n.bottom,s=o-n.left+n.right;i.scroll({top:a,left:s,behavior:r})}}const eo=k.createContext({}),qr=eo,to=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},no=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},ro=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:i}=e,l={};for(let o=i;o>=0;o--)o===0?(l[`${r}${t}-${o}`]={display:"none"},l[`${r}-push-${o}`]={insetInlineStart:"auto"},l[`${r}-pull-${o}`]={insetInlineEnd:"auto"},l[`${r}${t}-push-${o}`]={insetInlineStart:"auto"},l[`${r}${t}-pull-${o}`]={insetInlineEnd:"auto"},l[`${r}${t}-offset-${o}`]={marginInlineStart:0},l[`${r}${t}-order-${o}`]={order:0}):(l[`${r}${t}-${o}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${o/i*100}%`,maxWidth:`${o/i*100}%`}],l[`${r}${t}-push-${o}`]={insetInlineStart:`${o/i*100}%`},l[`${r}${t}-pull-${o}`]={insetInlineEnd:`${o/i*100}%`},l[`${r}${t}-offset-${o}`]={marginInlineStart:`${o/i*100}%`},l[`${r}${t}-order-${o}`]={order:o});return l[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},l},rn=(e,t)=>ro(e,t),io=(e,t,n)=>({[`@media (min-width: ${ie(t)})`]:Object.assign({},rn(e,n))}),lo=()=>({}),oo=()=>({}),ao=mt("Grid",to,lo),so=mt("Grid",e=>{const t=At(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[no(t),rn(t,""),rn(t,"-xs"),Object.keys(n).map(r=>io(t,n[r],r)).reduce((r,i)=>Object.assign(Object.assign({},r),i),{})]},oo);var uo=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function jn(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const co=["xs","sm","md","lg","xl","xxl"],fo=k.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=k.useContext(Ie),{gutter:i,wrap:l}=k.useContext(qr),{prefixCls:o,span:a,order:s,offset:c,push:f,pull:u,className:m,children:p,flex:h,style:y}=e,S=uo(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),b=n("col",o),[v,C,I]=so(b),T={};let x={};co.forEach(P=>{let w={};const O=e[P];typeof O=="number"?w.span=O:typeof O=="object"&&(w=O||{}),delete S[P],x=Object.assign(Object.assign({},x),{[`${b}-${P}-${w.span}`]:w.span!==void 0,[`${b}-${P}-order-${w.order}`]:w.order||w.order===0,[`${b}-${P}-offset-${w.offset}`]:w.offset||w.offset===0,[`${b}-${P}-push-${w.push}`]:w.push||w.push===0,[`${b}-${P}-pull-${w.pull}`]:w.pull||w.pull===0,[`${b}-rtl`]:r==="rtl"}),w.flex&&(x[`${b}-${P}-flex`]=!0,T[`--${b}-${P}-flex`]=jn(w.flex))});const $=ce(b,{[`${b}-${a}`]:a!==void 0,[`${b}-order-${s}`]:s,[`${b}-offset-${c}`]:c,[`${b}-push-${f}`]:f,[`${b}-pull-${u}`]:u},m,x,C,I),F={};if(i&&i[0]>0){const P=i[0]/2;F.paddingLeft=P,F.paddingRight=P}return h&&(F.flex=jn(h),l===!1&&!F.minWidth&&(F.minWidth=0)),v(k.createElement("div",Object.assign({},S,{style:Object.assign(Object.assign(Object.assign({},F),y),T),className:$,ref:t}),p))}),kn=fo;var po=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Nn(e,t){const[n,r]=k.useState(typeof e=="string"?e:""),i=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let l=0;l<rt.length;l++){const o=rt[l];if(!t[o])continue;const a=e[o];if(a!==void 0){r(a);return}}};return k.useEffect(()=>{i()},[JSON.stringify(e),t]),n}const ho=k.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:i,className:l,style:o,children:a,gutter:s=0,wrap:c}=e,f=po(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:u,direction:m}=k.useContext(Ie),[p,h]=k.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[y,S]=k.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),b=Nn(i,y),v=Nn(r,y),C=k.useRef(s),I=ll();k.useEffect(()=>{const q=I.subscribe(J=>{S(J);const G=C.current||0;(!Array.isArray(G)&&typeof G=="object"||Array.isArray(G)&&(typeof G[0]=="object"||typeof G[1]=="object"))&&h(J)});return()=>I.unsubscribe(q)},[]);const T=()=>{const q=[void 0,void 0];return(Array.isArray(s)?s:[s,void 0]).forEach((G,d)=>{if(typeof G=="object")for(let j=0;j<rt.length;j++){const R=rt[j];if(p[R]&&G[R]!==void 0){q[d]=G[R];break}}else q[d]=G}),q},x=u("row",n),[$,F,P]=ao(x),w=T(),O=ce(x,{[`${x}-no-wrap`]:c===!1,[`${x}-${v}`]:v,[`${x}-${b}`]:b,[`${x}-rtl`]:m==="rtl"},l,F,P),A={},D=w[0]!=null&&w[0]>0?w[0]/-2:void 0;D&&(A.marginLeft=D,A.marginRight=D);const[N,M]=w;A.rowGap=M;const Q=k.useMemo(()=>({gutter:[N,M],wrap:c}),[N,M,c]);return $(k.createElement(qr.Provider,{value:Q},k.createElement("div",Object.assign({},f,{className:O,style:Object.assign(Object.assign({},A),o),ref:t}),a)))}),Ur=ho,mo=e=>{const{getPrefixCls:t,direction:n}=k.useContext(Ie),{prefixCls:r,className:i}=e,l=t("input-group",r),o=t("input"),[a,s]=Hl(o),c=ce(l,{[`${l}-lg`]:e.size==="large",[`${l}-sm`]:e.size==="small",[`${l}-compact`]:e.compact,[`${l}-rtl`]:n==="rtl"},s,i),f=k.useContext(Ue),u=k.useMemo(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return a(k.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},k.createElement(Ue.Provider,{value:u},e.children)))},go=mo,yo=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},bo=mt(["Input","OTP"],e=>{const t=At(e,Vl(e));return[yo(t)]},Wl);var xo=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const ko=k.forwardRef((e,t)=>{const{value:n,onChange:r,onActiveChange:i,index:l,mask:o}=e,a=xo(e,["value","onChange","onActiveChange","index","mask"]),s=n&&typeof o=="string"?o:n,c=h=>{r(l,h.target.value)},f=k.useRef(null);k.useImperativeHandle(t,()=>f.current);const u=()=>{nn(()=>{var h;const y=(h=f.current)===null||h===void 0?void 0:h.input;document.activeElement===y&&y&&y.select()})},m=h=>{let{key:y}=h;y==="ArrowLeft"?i(l-1):y==="ArrowRight"&&i(l+1),u()},p=h=>{h.key==="Backspace"&&!n&&i(l-1),u()};return k.createElement(Lt,Object.assign({type:o===!0?"password":"text"},a,{ref:f,value:s,onInput:c,onFocus:u,onKeyDown:m,onKeyUp:p,onMouseDown:u,onMouseUp:u}))}),wo=ko;var Co=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function xt(e){return(e||"").split("")}const So=k.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:i,defaultValue:l,value:o,onChange:a,formatter:s,variant:c,disabled:f,status:u,autoFocus:m,mask:p,type:h}=e,y=Co(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask","type"]),{getPrefixCls:S,direction:b}=k.useContext(Ie),v=S("otp",n),C=ol(y,{aria:!0,data:!0,attr:!0}),I=Tt(v),[T,x,$]=bo(v,I),F=zt(R=>i??R),P=k.useContext(Ue),w=ql(P.status,u),O=k.useMemo(()=>Object.assign(Object.assign({},P),{status:w,hasFeedback:!1,feedbackIcon:null}),[P,w]),A=k.useRef(null),D=k.useRef({});k.useImperativeHandle(t,()=>({focus:()=>{var R;(R=D.current[0])===null||R===void 0||R.focus()},blur:()=>{var R;for(let g=0;g<r;g+=1)(R=D.current[g])===null||R===void 0||R.blur()},nativeElement:A.current}));const N=R=>s?s(R):R,[M,Q]=k.useState(xt(N(l||"")));k.useEffect(()=>{o!==void 0&&Q(xt(o))},[o]);const q=zn(R=>{Q(R),a&&R.length===r&&R.every(g=>g)&&R.some((g,V)=>M[V]!==g)&&a(R.join(""))}),J=zn((R,g)=>{let V=Se(M);for(let B=0;B<R;B+=1)V[B]||(V[B]="");g.length<=1?V[R]=g:V=V.slice(0,R).concat(xt(g)),V=V.slice(0,r);for(let B=V.length-1;B>=0&&!V[B];B-=1)V.pop();const Z=N(V.map(B=>B||" ").join(""));return V=xt(Z).map((B,H)=>B===" "&&!V[H]?V[H]:B),V}),G=(R,g)=>{var V;const Z=J(R,g),B=Math.min(R+g.length,r-1);B!==R&&((V=D.current[B])===null||V===void 0||V.focus()),q(Z)},d=R=>{var g;(g=D.current[R])===null||g===void 0||g.focus()},j={variant:c,disabled:f,status:w,mask:p,type:h};return T(k.createElement("div",Object.assign({},C,{ref:A,className:ce(v,{[`${v}-sm`]:F==="small",[`${v}-lg`]:F==="large",[`${v}-rtl`]:b==="rtl"},$,x)}),k.createElement(Ue.Provider,{value:O},Array.from({length:r}).map((R,g)=>{const V=`otp-${g}`,Z=M[g]||"";return k.createElement(wo,Object.assign({ref:B=>{D.current[g]=B},key:V,index:g,size:F,htmlSize:1,className:`${v}-input`,onChange:G,value:Z,onActiveChange:d,autoFocus:g===0&&m},j))}))))}),vo=So;var Eo={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};const $o=Eo;var Io=function(t,n){return k.createElement(mn,dn({},t,{ref:n,icon:$o}))},Oo=k.forwardRef(Io);const Fo=Oo;var Po={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};const Ao=Po;var To=function(t,n){return k.createElement(mn,dn({},t,{ref:n,icon:Ao}))},zo=k.forwardRef(To);const Lo=zo;var Do=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Mo=e=>e?k.createElement(Lo,null):k.createElement(Fo,null),Ro={click:"onClick",hover:"onMouseOver"},jo=k.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:i=!0,iconRender:l=Mo}=e,o=k.useContext(Br),a=n??o,s=typeof i=="object"&&i.visible!==void 0,[c,f]=k.useState(()=>s?i.visible:!1),u=k.useRef(null);k.useEffect(()=>{s&&f(i.visible)},[s,i]);const m=Ul(u),p=()=>{a||(c&&m(),f(w=>{var O;const A=!w;return typeof i=="object"&&((O=i.onVisibleChange)===null||O===void 0||O.call(i,A)),A}))},h=w=>{const O=Ro[r]||"",A=l(c),D={[O]:p,className:`${w}-icon`,key:"passwordIcon",onMouseDown:N=>{N.preventDefault()},onMouseUp:N=>{N.preventDefault()}};return k.cloneElement(k.isValidElement(A)?A:k.createElement("span",null,A),D)},{className:y,prefixCls:S,inputPrefixCls:b,size:v}=e,C=Do(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:I}=k.useContext(Ie),T=I("input",b),x=I("input-password",S),$=i&&h(x),F=ce(x,y,{[`${x}-${v}`]:!!v}),P=Object.assign(Object.assign({},_r(C,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:F,prefixCls:T,suffix:$});return v&&(P.size=v),k.createElement(Lt,Object.assign({ref:gn(t,u)},P))}),No=jo;var Bo=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const _o=k.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:i,size:l,suffix:o,enterButton:a=!1,addonAfter:s,loading:c,disabled:f,onSearch:u,onChange:m,onCompositionStart:p,onCompositionEnd:h}=e,y=Bo(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:S,direction:b}=k.useContext(Ie),v=k.useRef(!1),C=S("input-search",n),I=S("input",r),{compactSize:T}=al(C,b),x=zt(d=>{var j;return(j=l??T)!==null&&j!==void 0?j:d}),$=k.useRef(null),F=d=>{d!=null&&d.target&&d.type==="click"&&u&&u(d.target.value,d,{source:"clear"}),m==null||m(d)},P=d=>{var j;document.activeElement===((j=$.current)===null||j===void 0?void 0:j.input)&&d.preventDefault()},w=d=>{var j,R;u&&u((R=(j=$.current)===null||j===void 0?void 0:j.input)===null||R===void 0?void 0:R.value,d,{source:"input"})},O=d=>{v.current||c||w(d)},A=typeof a=="boolean"?k.createElement(Xl,null):null,D=`${C}-button`;let N;const M=a||{},Q=M.type&&M.type.__ANT_BUTTON===!0;Q||M.type==="button"?N=$t(M,Object.assign({onMouseDown:P,onClick:d=>{var j,R;(R=(j=M==null?void 0:M.props)===null||j===void 0?void 0:j.onClick)===null||R===void 0||R.call(j,d),w(d)},key:"enterButton"},Q?{className:D,size:x}:{})):N=k.createElement(sl,{className:D,type:a?"primary":void 0,size:x,disabled:f,key:"enterButton",onMouseDown:P,onClick:w,loading:c,icon:A},a),s&&(N=[N,$t(s,{key:"addonAfter"})]);const q=ce(C,{[`${C}-rtl`]:b==="rtl",[`${C}-${x}`]:!!x,[`${C}-with-button`]:!!a},i),J=d=>{v.current=!0,p==null||p(d)},G=d=>{v.current=!1,h==null||h(d)};return k.createElement(Lt,Object.assign({ref:gn($,t),onPressEnter:O},y,{size:x,onCompositionStart:J,onCompositionEnd:G,prefixCls:I,addonAfter:N,suffix:o,onChange:F,className:q,disabled:f}))}),Ho=_o,it=Lt;it.Group=go;it.Search=Ho;it.TextArea=Gl;it.Password=No;it.OTP=vo;const Mh=it;function It(e){const[t,n]=k.useState(e);return k.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const Vo=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},
                     opacity ${e.motionDurationSlow} ${e.motionEaseInOut},
                     transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},Wo=Vo,qo=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n  input[type='radio']:focus,\n  input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${ie(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Bn=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},Uo=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},yn(e)),qo(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},Bn(e,e.controlHeightSM)),"&-large":Object.assign({},Bn(e,e.controlHeightLG))})}},Go=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:i,antCls:l,labelRequiredMarkColor:o,labelColor:a,labelFontSize:s,labelHeight:c,labelColonMarginInlineStart:f,labelColonMarginInlineEnd:u,itemMarginBottom:m}=e;return{[t]:Object.assign(Object.assign({},yn(e)),{marginBottom:m,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
        &-hidden${l}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:a,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:o,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:f,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${i}-col-'"]):not([class*="' ${i}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:Hr,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},_n=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},Xo=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
        > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Ae=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Gr=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Ae(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Qo=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,
        ${r}-col-24${n}-label,
        ${r}-col-xl-24${n}-label`]:Ae(e)}},[`@media (max-width: ${ie(e.screenXSMax)})`]:[Gr(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Ae(e)}}}],[`@media (max-width: ${ie(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Ae(e)}}},[`@media (max-width: ${ie(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Ae(e)}}},[`@media (max-width: ${ie(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Ae(e)}}}}},Ko=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label,
      ${n}-col-24${t}-label,
      ${n}-col-xl-24${t}-label`]:Ae(e),[`@media (max-width: ${ie(e.screenXSMax)})`]:[Gr(e),{[t]:{[`${n}-col-xs-24${t}-label`]:Ae(e)}}],[`@media (max-width: ${ie(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:Ae(e)}},[`@media (max-width: ${ie(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:Ae(e)}},[`@media (max-width: ${ie(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:Ae(e)}}}},Yo=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Xr=(e,t)=>At(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),wn=mt("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=Xr(e,n);return[Uo(r),Go(r),Wo(r),_n(r,r.componentCls),_n(r,r.formItemCls),Xo(r),Qo(r),Ko(r),ul(r),Hr]},Yo,{order:-1e3}),Hn=[];function _t(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const Jo=e=>{let{help:t,helpStatus:n,errors:r=Hn,warnings:i=Hn,className:l,fieldId:o,onVisibleChanged:a}=e;const{prefixCls:s}=k.useContext(bn),c=`${s}-item-explain`,f=Tt(s),[u,m,p]=wn(s,f),h=k.useMemo(()=>Ln(s),[s]),y=It(r),S=It(i),b=k.useMemo(()=>t!=null?[_t(t,"help",n)]:[].concat(Se(y.map((C,I)=>_t(C,"error","error",I))),Se(S.map((C,I)=>_t(C,"warning","warning",I)))),[t,n,y,S]),v={};return o&&(v.id=`${o}_help`),u(k.createElement(cl,{motionDeadline:h.motionDeadline,motionName:`${s}-show-help`,visible:!!b.length,onVisibleChanged:a},C=>{const{className:I,style:T}=C;return k.createElement("div",Object.assign({},v,{className:ce(c,I,p,f,l,m),style:T,role:"alert"}),k.createElement(fl,Object.assign({keys:b},Ln(s),{motionName:`${s}-show-help-item`,component:!1}),x=>{const{key:$,error:F,errorStatus:P,className:w,style:O}=x;return k.createElement("div",{key:$,className:ce(w,{[`${c}-${P}`]:P}),style:O},F)}))}))},Qr=Jo,Zo=["parentNode"],ea="form_item";function ft(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function Kr(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:Zo.includes(n)?`${ea}_${n}`:n}function Yr(e,t,n,r,i,l){let o=r;return l!==void 0?o=l:n.validating?o="validating":e.length?o="error":t.length?o="warning":(n.touched||i&&n.validated)&&(o="success"),o}function Vn(e){return ft(e).join("_")}function ta(e,t){const n=t.getFieldInstance(e),r=hl(n);if(r)return r;const i=Kr(ft(e),t.__INTERNAL__.name);if(i)return document.getElementById(i)}function Jr(e){const[t]=pl(),n=k.useRef({}),r=k.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:i=>l=>{const o=Vn(i);l?n.current[o]=l:delete n.current[o]}},scrollToField:function(i){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=ta(i,r);o&&Zl(o,Object.assign({scrollMode:"if-needed",block:"nearest"},l))},getFieldInstance:i=>{const l=Vn(i);return n.current[l]}}),[e,t]);return[r]}var na=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const ra=(e,t)=>{const n=k.useContext(Br),{getPrefixCls:r,direction:i,form:l}=k.useContext(Ie),{prefixCls:o,className:a,rootClassName:s,size:c,disabled:f=n,form:u,colon:m,labelAlign:p,labelWrap:h,labelCol:y,wrapperCol:S,hideRequiredMark:b,layout:v="horizontal",scrollToFirstError:C,requiredMark:I,onFinishFailed:T,name:x,style:$,feedbackIcons:F,variant:P}=e,w=na(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),O=zt(c),A=k.useContext(ml),D=k.useMemo(()=>I!==void 0?I:b?!1:l&&l.requiredMark!==void 0?l.requiredMark:!0,[b,I,l]),N=m??(l==null?void 0:l.colon),M=r("form",o),Q=Tt(M),[q,J,G]=wn(M,Q),d=ce(M,`${M}-${v}`,{[`${M}-hide-required-mark`]:D===!1,[`${M}-rtl`]:i==="rtl",[`${M}-${O}`]:O},G,Q,J,l==null?void 0:l.className,a,s),[j]=Jr(u),{__INTERNAL__:R}=j;R.name=x;const g=k.useMemo(()=>({name:x,labelAlign:p,labelCol:y,labelWrap:h,wrapperCol:S,vertical:v==="vertical",colon:N,requiredMark:D,itemRef:R.itemRef,form:j,feedbackIcons:F}),[x,p,y,S,v,N,D,j,F]),V=k.useRef(null);k.useImperativeHandle(t,()=>{var H;return Object.assign(Object.assign({},j),{nativeElement:(H=V.current)===null||H===void 0?void 0:H.nativeElement})});const Z=(H,K)=>{if(H){let te={block:"nearest"};typeof H=="object"&&(te=H),j.scrollToField(K,te)}},B=H=>{if(T==null||T(H),H.errorFields.length){const K=H.errorFields[0].name;if(C!==void 0){Z(C,K);return}l&&l.scrollToFirstError!==void 0&&Z(l.scrollToFirstError,K)}};return q(k.createElement(dl.Provider,{value:P},k.createElement(gl,{disabled:f},k.createElement(yl.Provider,{value:O},k.createElement(Vr,{validateMessages:A},k.createElement(Be.Provider,{value:g},k.createElement(bl,Object.assign({id:x},w,{name:x,onFinishFailed:B,form:j,ref:V,style:Object.assign(Object.assign({},l==null?void 0:l.style),$),className:d}))))))))},ia=k.forwardRef(ra),la=ia;function oa(e){if(typeof e=="function")return e;const t=xl(e);return t.length<=1?t[0]:t}const Zr=()=>{const{status:e,errors:t=[],warnings:n=[]}=k.useContext(Ue);return{status:e,errors:t,warnings:n}};Zr.Context=Ue;const aa=Zr;function sa(e){const[t,n]=k.useState(e),r=k.useRef(null),i=k.useRef([]),l=k.useRef(!1);k.useEffect(()=>(l.current=!1,()=>{l.current=!0,nn.cancel(r.current),r.current=null}),[]);function o(a){l.current||(r.current===null&&(i.current=[],r.current=nn(()=>{r.current=null,n(s=>{let c=s;return i.current.forEach(f=>{c=f(c)}),c})})),i.current.push(a))}return[t,o]}function ua(){const{itemRef:e}=k.useContext(Be),t=k.useRef({});function n(r,i){const l=i&&typeof i=="object"&&i.ref,o=r.join("_");return(t.current.name!==o||t.current.originRef!==l)&&(t.current.name=o,t.current.originRef=l,t.current.ref=gn(e(r),l)),t.current.ref}return n}const ca=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},fa=kl(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=Xr(e,n);return[ca(r)]}),pa=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:i,errors:l,warnings:o,_internalItemRender:a,extra:s,help:c,fieldId:f,marginBottom:u,onErrorVisibleChanged:m}=e,p=`${t}-item`,h=k.useContext(Be),y=r||h.wrapperCol||{},S=ce(`${p}-control`,y.className),b=k.useMemo(()=>Object.assign({},h),[h]);delete b.labelCol,delete b.wrapperCol;const v=k.createElement("div",{className:`${p}-control-input`},k.createElement("div",{className:`${p}-control-input-content`},i)),C=k.useMemo(()=>({prefixCls:t,status:n}),[t,n]),I=u!==null||l.length||o.length?k.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},k.createElement(bn.Provider,{value:C},k.createElement(Qr,{fieldId:f,errors:l,warnings:o,help:c,helpStatus:n,className:`${p}-explain-connected`,onVisibleChanged:m})),!!u&&k.createElement("div",{style:{width:0,height:u}})):null,T={};f&&(T.id=`${f}_extra`);const x=s?k.createElement("div",Object.assign({},T,{className:`${p}-extra`}),s):null,$=a&&a.mark==="pro_table_render"&&a.render?a.render(e,{input:v,errorList:I,extra:x}):k.createElement(k.Fragment,null,v,I,x);return k.createElement(Be.Provider,{value:b},k.createElement(kn,Object.assign({},y,{className:S}),$),k.createElement(fa,{prefixCls:t}))},ha=pa;var ma={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};const da=ma;var ga=function(t,n){return k.createElement(mn,dn({},t,{ref:n,icon:da}))},ya=k.forwardRef(ga);const ba=ya;var xa=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function ka(e){return e?typeof e=="object"&&!k.isValidElement(e)?e:{title:e}:null}const wa=e=>{let{prefixCls:t,label:n,htmlFor:r,labelCol:i,labelAlign:l,colon:o,required:a,requiredMark:s,tooltip:c,vertical:f}=e;var u;const[m]=wl("Form"),{labelAlign:p,labelCol:h,labelWrap:y,colon:S}=k.useContext(Be);if(!n)return null;const b=i||h||{},v=l||p,C=`${t}-item-label`,I=ce(C,v==="left"&&`${C}-left`,b.className,{[`${C}-wrap`]:!!y});let T=n;const x=o===!0||S!==!1&&o!==!1;x&&!f&&typeof n=="string"&&n.trim()&&(T=n.replace(/[:|:]\s*$/,""));const F=ka(c);if(F){const{icon:A=k.createElement(ba,null)}=F,D=xa(F,["icon"]),N=k.createElement(Cl,Object.assign({},D),k.cloneElement(A,{className:`${t}-item-tooltip`,title:"",onClick:M=>{M.preventDefault()},tabIndex:null}));T=k.createElement(k.Fragment,null,T,N)}const P=s==="optional",w=typeof s=="function";w?T=s(T,{required:!!a}):P&&!a&&(T=k.createElement(k.Fragment,null,T,k.createElement("span",{className:`${t}-item-optional`,title:""},(m==null?void 0:m.optional)||((u=Sl.Form)===null||u===void 0?void 0:u.optional))));const O=ce({[`${t}-item-required`]:a,[`${t}-item-required-mark-optional`]:P||w,[`${t}-item-no-colon`]:!x});return k.createElement(kn,Object.assign({},b,{className:I}),k.createElement("label",{htmlFor:r,className:O,title:typeof n=="string"?n:""},T))},Ca=wa,Sa={success:vl,warning:El,error:$l,validating:Il};function ei(e){let{children:t,errors:n,warnings:r,hasFeedback:i,validateStatus:l,prefixCls:o,meta:a,noStyle:s}=e;const c=`${o}-item`,{feedbackIcons:f}=k.useContext(Be),u=Yr(n,r,a,null,!!i,l),{isFormItemInput:m,status:p,hasFeedback:h,feedbackIcon:y}=k.useContext(Ue),S=k.useMemo(()=>{var b;let v;if(i){const I=i!==!0&&i.icons||f,T=u&&((b=I==null?void 0:I({status:u,errors:n,warnings:r}))===null||b===void 0?void 0:b[u]),x=u&&Sa[u];v=T!==!1&&x?k.createElement("span",{className:ce(`${c}-feedback-icon`,`${c}-feedback-icon-${u}`)},T||k.createElement(x,null)):null}const C={status:u||"",errors:n,warnings:r,hasFeedback:!!i,feedbackIcon:v,isFormItemInput:!0};return s&&(C.status=(u??p)||"",C.isFormItemInput=m,C.hasFeedback=!!(i??h),C.feedbackIcon=i!==void 0?C.feedbackIcon:y),C},[u,i,s,m,p]);return k.createElement(Ue.Provider,{value:S},t)}var va=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Ea(e){const{prefixCls:t,className:n,rootClassName:r,style:i,help:l,errors:o,warnings:a,validateStatus:s,meta:c,hasFeedback:f,hidden:u,children:m,fieldId:p,required:h,isRequired:y,onSubItemMetaChange:S,layout:b}=e,v=va(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),C=`${t}-item`,{requiredMark:I,vertical:T}=k.useContext(Be),x=T||b==="vertical",$=k.useRef(null),F=It(o),P=It(a),w=l!=null,O=!!(w||o.length||a.length),A=!!$.current&&Ol($.current),[D,N]=k.useState(null);Fl(()=>{if(O&&$.current){const G=getComputedStyle($.current);N(parseInt(G.marginBottom,10))}},[O,A]);const M=G=>{G||N(null)},q=function(){let G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const d=G?F:c.errors,j=G?P:c.warnings;return Yr(d,j,c,"",!!f,s)}(),J=ce(C,n,r,{[`${C}-with-help`]:w||F.length||P.length,[`${C}-has-feedback`]:q&&f,[`${C}-has-success`]:q==="success",[`${C}-has-warning`]:q==="warning",[`${C}-has-error`]:q==="error",[`${C}-is-validating`]:q==="validating",[`${C}-hidden`]:u,[`${C}-${b}`]:b});return k.createElement("div",{className:J,style:i,ref:$},k.createElement(Ur,Object.assign({className:`${C}-row`},_r(v,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),k.createElement(Ca,Object.assign({htmlFor:p},e,{requiredMark:I,required:h??y,prefixCls:t,vertical:x})),k.createElement(ha,Object.assign({},e,c,{errors:F,warnings:P,prefixCls:t,status:q,help:l,marginBottom:D,onErrorVisibleChanged:M}),k.createElement(Wr.Provider,{value:S},k.createElement(ei,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:f,validateStatus:q},m)))),!!D&&k.createElement("div",{className:`${C}-margin-offset`,style:{marginBottom:-D}}))}const $a="__SPLIT__";function Ia(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(i=>{const l=e[i],o=t[i];return l===o||typeof l=="function"||typeof o=="function"})}const Oa=k.memo(e=>{let{children:t}=e;return t},(e,t)=>Ia(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function Wn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Fa(e){const{name:t,noStyle:n,className:r,dependencies:i,prefixCls:l,shouldUpdate:o,rules:a,children:s,required:c,label:f,messageVariables:u,trigger:m="onChange",validateTrigger:p,hidden:h,help:y,layout:S}=e,{getPrefixCls:b}=k.useContext(Ie),{name:v}=k.useContext(Be),C=oa(s),I=typeof C=="function",T=k.useContext(Wr),{validateTrigger:x}=k.useContext(Pl),$=p!==void 0?p:x,F=t!=null,P=b("form",l),w=Tt(P),[O,A,D]=wn(P,w);Dl();const N=k.useContext(Al),M=k.useRef(),[Q,q]=sa({}),[J,G]=Tl(()=>Wn()),d=H=>{const K=N==null?void 0:N.getKey(H.name);if(G(H.destroy?Wn():H,!0),n&&y!==!1&&T){let te=H.name;if(H.destroy)te=M.current||te;else if(K!==void 0){const[ne,de]=K;te=[ne].concat(Se(de)),M.current=te}T(H,te)}},j=(H,K)=>{q(te=>{const ne=Object.assign({},te),ke=[].concat(Se(H.name.slice(0,-1)),Se(K)).join($a);return H.destroy?delete ne[ke]:ne[ke]=H,ne})},[R,g]=k.useMemo(()=>{const H=Se(J.errors),K=Se(J.warnings);return Object.values(Q).forEach(te=>{H.push.apply(H,Se(te.errors||[])),K.push.apply(K,Se(te.warnings||[]))}),[H,K]},[Q,J.errors,J.warnings]),V=ua();function Z(H,K,te){return n&&!h?k.createElement(ei,{prefixCls:P,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:J,errors:R,warnings:g,noStyle:!0},H):k.createElement(Ea,Object.assign({key:"row"},e,{className:ce(r,D,w,A),prefixCls:P,fieldId:K,isRequired:te,errors:R,warnings:g,meta:J,onSubItemMetaChange:j,layout:S}),H)}if(!F&&!I&&!i)return O(Z(C));let B={};return typeof f=="string"?B.label=f:t&&(B.label=String(t)),u&&(B=Object.assign(Object.assign({},B),u)),O(k.createElement(zl,Object.assign({},e,{messageVariables:B,trigger:m,validateTrigger:$,onMetaChange:d}),(H,K,te)=>{const ne=ft(t).length&&K?K.name:[],de=Kr(ne,v),ke=c!==void 0?c:!!(a!=null&&a.some(ue=>{if(ue&&typeof ue=="object"&&ue.required&&!ue.warningOnly)return!0;if(typeof ue=="function"){const be=ue(te);return(be==null?void 0:be.required)&&!(be!=null&&be.warningOnly)}return!1})),ze=Object.assign({},H);let Me=null;if(Array.isArray(C)&&F)Me=C;else if(!(I&&(!(o||i)||F))){if(!(i&&!I&&!F))if(k.isValidElement(C)){const ue=Object.assign(Object.assign({},C.props),ze);if(ue.id||(ue.id=de),y||R.length>0||g.length>0||e.extra){const we=[];(y||R.length>0)&&we.push(`${de}_help`),e.extra&&we.push(`${de}_extra`),ue["aria-describedby"]=we.join(" ")}R.length>0&&(ue["aria-invalid"]="true"),ke&&(ue["aria-required"]="true"),Ll(C)&&(ue.ref=V(ne,C)),new Set([].concat(Se(ft(m)),Se(ft($)))).forEach(we=>{ue[we]=function(){for(var Re,Xe,ae,pe,ge,Ve=arguments.length,at=new Array(Ve),et=0;et<Ve;et++)at[et]=arguments[et];(ae=ze[we])===null||ae===void 0||(Re=ae).call.apply(Re,[ze].concat(at)),(ge=(pe=C.props)[we])===null||ge===void 0||(Xe=ge).call.apply(Xe,[pe].concat(at))}});const Ze=[ue["aria-required"],ue["aria-invalid"],ue["aria-describedby"]];Me=k.createElement(Oa,{control:ze,update:C,childProps:Ze},$t(C,ue))}else I&&(o||i)&&!F?Me=C(te):Me=C}return Z(Me,de,ke)}))}const ti=Fa;ti.useStatus=aa;const Pa=ti;var Aa=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Ta=e=>{var{prefixCls:t,children:n}=e,r=Aa(e,["prefixCls","children"]);const{getPrefixCls:i}=k.useContext(Ie),l=i("form",t),o=k.useMemo(()=>({prefixCls:l,status:"error"}),[l]);return k.createElement(Ml,Object.assign({},r),(a,s,c)=>k.createElement(bn.Provider,{value:o},n(a.map(f=>Object.assign(Object.assign({},f),{fieldKey:f.key})),s,{errors:c.errors,warnings:c.warnings})))},za=Ta;function La(){const{form:e}=k.useContext(Be);return e}const _e=la;_e.Item=Pa;_e.List=za;_e.ErrorList=Qr;_e.useForm=Jr;_e.useFormInstance=La;_e.useWatch=Rl;_e.Provider=Vr;_e.create=()=>{};const Rh=_e,Da=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];n&&Object.keys(n).forEach(r=>{const i=n[r];i!==void 0&&(e[r]=i)})}return e},Ma=Da,Cn=me.createContext({});Cn.Consumer;var ni=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Ra=e=>{var{prefixCls:t,className:n,avatar:r,title:i,description:l}=e,o=ni(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:a}=k.useContext(Ie),s=a("list",t),c=ce(`${s}-item-meta`,n),f=me.createElement("div",{className:`${s}-item-meta-content`},i&&me.createElement("h4",{className:`${s}-item-meta-title`},i),l&&me.createElement("div",{className:`${s}-item-meta-description`},l));return me.createElement("div",Object.assign({},o,{className:c}),r&&me.createElement("div",{className:`${s}-item-meta-avatar`},r),(i||l)&&f)},ja=me.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:i,extra:l,styles:o,className:a,classNames:s,colStyle:c}=e,f=ni(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:u,itemLayout:m}=k.useContext(Cn),{getPrefixCls:p,list:h}=k.useContext(Ie),y=$=>{var F,P;return ce((P=(F=h==null?void 0:h.item)===null||F===void 0?void 0:F.classNames)===null||P===void 0?void 0:P[$],s==null?void 0:s[$])},S=$=>{var F,P;return Object.assign(Object.assign({},(P=(F=h==null?void 0:h.item)===null||F===void 0?void 0:F.styles)===null||P===void 0?void 0:P[$]),o==null?void 0:o[$])},b=()=>{let $=!1;return k.Children.forEach(r,F=>{typeof F=="string"&&($=!0)}),$&&k.Children.count(r)>1},v=()=>m==="vertical"?!!l:!b(),C=p("list",n),I=i&&i.length>0&&me.createElement("ul",{className:ce(`${C}-item-action`,y("actions")),key:"actions",style:S("actions")},i.map(($,F)=>me.createElement("li",{key:`${C}-item-action-${F}`},$,F!==i.length-1&&me.createElement("em",{className:`${C}-item-action-split`})))),T=u?"div":"li",x=me.createElement(T,Object.assign({},f,u?{}:{ref:t},{className:ce(`${C}-item`,{[`${C}-item-no-flex`]:!v()},a)}),m==="vertical"&&l?[me.createElement("div",{className:`${C}-item-main`,key:"content"},r,I),me.createElement("div",{className:ce(`${C}-item-extra`,y("extra")),key:"extra",style:S("extra")},l)]:[r,I,$t(l,{key:"extra"})]);return u?me.createElement(kn,{ref:t,flex:1,style:c},x):x}),ri=ja;ri.Meta=Ra;const Na=ri,Ba=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:i,itemPaddingSM:l,itemPaddingLG:o,marginLG:a,borderRadiusLG:s}=e;return{[t]:{border:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:s,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${ie(i)} ${ie(a)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:l}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:o}}}},_a=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:i,marginSM:l,margin:o}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:i}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:l}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${ie(o)}`}}}}}},Ha=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:i,paddingSM:l,marginLG:o,padding:a,itemPadding:s,colorPrimary:c,itemPaddingSM:f,itemPaddingLG:u,paddingXS:m,margin:p,colorText:h,colorTextDescription:y,motionDurationSlow:S,lineWidth:b,headerBg:v,footerBg:C,emptyTextPadding:I,metaMarginBottom:T,avatarMarginRight:x,titleMarginBottom:$,descriptionFontSize:F}=e;return{[t]:Object.assign(Object.assign({},yn(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:v},[`${t}-footer`]:{background:C},[`${t}-header, ${t}-footer`]:{paddingBlock:l},[`${t}-pagination`]:{marginBlockStart:o,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:i,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:s,color:h,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:x},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:h},[`${t}-item-meta-title`]:{margin:`0 0 ${ie(e.marginXXS)} 0`,color:h,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:h,transition:`all ${S}`,"&:hover":{color:c}}},[`${t}-item-meta-description`]:{color:y,fontSize:F,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${ie(m)}`,color:y,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:b,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${ie(a)} 0`,color:y,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:I,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:p,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:o},[`${t}-item-meta`]:{marginBlockEnd:T,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:$,color:h,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:a,marginInlineStart:"auto","> li":{padding:`0 ${ie(a)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:u},[`${t}-sm ${t}-item`]:{padding:f},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},Va=e=>({contentWidth:220,itemPadding:`${ie(e.paddingContentVertical)} 0`,itemPaddingSM:`${ie(e.paddingContentVerticalSM)} ${ie(e.paddingContentHorizontal)}`,itemPaddingLG:`${ie(e.paddingContentVerticalLG)} ${ie(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),Wa=mt("List",e=>{const t=At(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[Ha(t),Ba(t),_a(t)]},Va);var qa=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Ua(e,t){var{pagination:n=!1,prefixCls:r,bordered:i=!1,split:l=!0,className:o,rootClassName:a,style:s,children:c,itemLayout:f,loadMore:u,grid:m,dataSource:p=[],size:h,header:y,footer:S,loading:b=!1,rowKey:v,renderItem:C,locale:I}=e,T=qa(e,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]);const x=n&&typeof n=="object"?n:{},[$,F]=k.useState(x.defaultCurrent||1),[P,w]=k.useState(x.defaultPageSize||10),{getPrefixCls:O,renderEmpty:A,direction:D,list:N}=k.useContext(Ie),M={current:1,total:0},Q=ae=>(pe,ge)=>{var Ve;F(pe),w(ge),n&&((Ve=n==null?void 0:n[ae])===null||Ve===void 0||Ve.call(n,pe,ge))},q=Q("onChange"),J=Q("onShowSizeChange"),G=(ae,pe)=>{if(!C)return null;let ge;return typeof v=="function"?ge=v(ae):v?ge=ae[v]:ge=ae.key,ge||(ge=`list-item-${pe}`),k.createElement(k.Fragment,{key:ge},C(ae,pe))},d=()=>!!(u||n||S),j=O("list",r),[R,g,V]=Wa(j);let Z=b;typeof Z=="boolean"&&(Z={spinning:Z});const B=!!(Z!=null&&Z.spinning),H=zt(h);let K="";switch(H){case"large":K="lg";break;case"small":K="sm";break}const te=ce(j,{[`${j}-vertical`]:f==="vertical",[`${j}-${K}`]:K,[`${j}-split`]:l,[`${j}-bordered`]:i,[`${j}-loading`]:B,[`${j}-grid`]:!!m,[`${j}-something-after-last-item`]:d(),[`${j}-rtl`]:D==="rtl"},N==null?void 0:N.className,o,a,g,V),ne=Ma(M,{total:p.length,current:$,pageSize:P},n||{}),de=Math.ceil(ne.total/ne.pageSize);ne.current>de&&(ne.current=de);const ke=n&&k.createElement("div",{className:ce(`${j}-pagination`)},k.createElement(Ql,Object.assign({align:"end"},ne,{onChange:q,onShowSizeChange:J})));let ze=Se(p);n&&p.length>(ne.current-1)*ne.pageSize&&(ze=Se(p).splice((ne.current-1)*ne.pageSize,ne.pageSize));const Me=Object.keys(m||{}).some(ae=>["xs","sm","md","lg","xl","xxl"].includes(ae)),ue=jl(Me),be=k.useMemo(()=>{for(let ae=0;ae<rt.length;ae+=1){const pe=rt[ae];if(ue[pe])return pe}},[ue]),Ze=k.useMemo(()=>{if(!m)return;const ae=be&&m[be]?m[be]:m.column;if(ae)return{width:`${100/ae}%`,maxWidth:`${100/ae}%`}},[JSON.stringify(m),be]);let we=B&&k.createElement("div",{style:{minHeight:53}});if(ze.length>0){const ae=ze.map((pe,ge)=>G(pe,ge));we=m?k.createElement(Ur,{gutter:m.gutter},k.Children.map(ae,pe=>k.createElement("div",{key:pe==null?void 0:pe.key,style:Ze},pe))):k.createElement("ul",{className:`${j}-items`},ae)}else!c&&!B&&(we=k.createElement("div",{className:`${j}-empty-text`},(I==null?void 0:I.emptyText)||(A==null?void 0:A("List"))||k.createElement(Kl,{componentName:"List"})));const Re=ne.position||"bottom",Xe=k.useMemo(()=>({grid:m,itemLayout:f}),[JSON.stringify(m),f]);return R(k.createElement(Cn.Provider,{value:Xe},k.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},N==null?void 0:N.style),s),className:te},T),(Re==="top"||Re==="both")&&ke,y&&k.createElement("div",{className:`${j}-header`},y),k.createElement(Nl,Object.assign({},Z),we,c),S&&k.createElement("div",{className:`${j}-footer`},S),u||(Re==="bottom"||Re==="both")&&ke)))}const Ga=k.forwardRef(Ua),ii=Ga;ii.Item=Na;const jh=ii,qn=["http","https","mailto","tel"];function Xa(e){const t=(e||"").trim(),n=t.charAt(0);if(n==="#"||n==="/")return t;const r=t.indexOf(":");if(r===-1)return t;let i=-1;for(;++i<qn.length;){const l=qn[i];if(r===l.length&&t.slice(0,l.length).toLowerCase()===l)return t}return i=t.indexOf("?"),i!==-1&&r>i||(i=t.indexOf("#"),i!==-1&&r>i)?t:"javascript:void(0)"}/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */var Qa=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)};const li=xn(Qa);function pt(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Un(e.position):"start"in e||"end"in e?Un(e):"line"in e||"column"in e?ln(e):""}function ln(e){return Gn(e&&e.line)+":"+Gn(e&&e.column)}function Un(e){return ln(e&&e.start)+"-"+ln(e&&e.end)}function Gn(e){return e&&typeof e=="number"?e:1}class Oe extends Error{constructor(t,n,r){const i=[null,null];let l={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof n=="string"&&(r=n,n=void 0),typeof r=="string"){const o=r.indexOf(":");o===-1?i[1]=r:(i[0]=r.slice(0,o),i[1]=r.slice(o+1))}n&&("type"in n||"position"in n?n.position&&(l=n.position):"start"in n||"end"in n?l=n:("line"in n||"column"in n)&&(l.start=n)),this.name=pt(n)||"1:1",this.message=typeof t=="object"?t.message:t,this.stack="",typeof t=="object"&&t.stack&&(this.stack=t.stack),this.reason=this.message,this.fatal,this.line=l.start.line,this.column=l.start.column,this.position=l,this.source=i[0],this.ruleId=i[1],this.file,this.actual,this.expected,this.url,this.note}}Oe.prototype.file="";Oe.prototype.name="";Oe.prototype.reason="";Oe.prototype.message="";Oe.prototype.stack="";Oe.prototype.fatal=null;Oe.prototype.column=null;Oe.prototype.line=null;Oe.prototype.source=null;Oe.prototype.ruleId=null;Oe.prototype.position=null;const Le={basename:Ka,dirname:Ya,extname:Ja,join:Za,sep:"/"};function Ka(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');dt(e);let n=0,r=-1,i=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.charCodeAt(i)===47){if(l){n=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,a=t.length-1;for(;i--;)if(e.charCodeAt(i)===47){if(l){n=i+1;break}}else o<0&&(l=!0,o=i+1),a>-1&&(e.charCodeAt(i)===t.charCodeAt(a--)?a<0&&(r=i):(a=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function Ya(e){if(dt(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.charCodeAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.charCodeAt(0)===47?"/":".":t===1&&e.charCodeAt(0)===47?"//":e.slice(0,t)}function Ja(e){dt(e);let t=e.length,n=-1,r=0,i=-1,l=0,o;for(;t--;){const a=e.charCodeAt(t);if(a===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),a===46?i<0?i=t:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||n<0||l===0||l===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Za(...e){let t=-1,n;for(;++t<e.length;)dt(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":es(n)}function es(e){dt(e);const t=e.charCodeAt(0)===47;let n=ts(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function ts(e,t){let n="",r=0,i=-1,l=0,o=-1,a,s;for(;++o<=e.length;){if(o<e.length)a=e.charCodeAt(o);else{if(a===47)break;a=47}if(a===47){if(!(i===o-1||l===1))if(i!==o-1&&l===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",r=0):(n=n.slice(0,s),r=n.length-1-n.lastIndexOf("/")),i=o,l=0;continue}}else if(n.length>0){n="",r=0,i=o,l=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,l=0}else a===46&&l>-1?l++:l=-1}return n}function dt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const ns={cwd:rs};function rs(){return"/"}function on(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function is(e){if(typeof e=="string")e=new URL(e);else if(!on(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return ls(e)}function ls(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.charCodeAt(n)===37&&t.charCodeAt(n+1)===50){const r=t.charCodeAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Ht=["history","path","basename","stem","extname","dirname"];class oi{constructor(t){let n;t?typeof t=="string"||os(t)?n={value:t}:on(t)?n={path:t}:n=t:n={},this.data={},this.messages=[],this.history=[],this.cwd=ns.cwd(),this.value,this.stored,this.result,this.map;let r=-1;for(;++r<Ht.length;){const l=Ht[r];l in n&&n[l]!==void 0&&n[l]!==null&&(this[l]=l==="history"?[...n[l]]:n[l])}let i;for(i in n)Ht.includes(i)||(this[i]=n[i])}get path(){return this.history[this.history.length-1]}set path(t){on(t)&&(t=is(t)),Wt(t,"path"),this.path!==t&&this.history.push(t)}get dirname(){return typeof this.path=="string"?Le.dirname(this.path):void 0}set dirname(t){Xn(this.basename,"dirname"),this.path=Le.join(t||"",this.basename)}get basename(){return typeof this.path=="string"?Le.basename(this.path):void 0}set basename(t){Wt(t,"basename"),Vt(t,"basename"),this.path=Le.join(this.dirname||"",t)}get extname(){return typeof this.path=="string"?Le.extname(this.path):void 0}set extname(t){if(Vt(t,"extname"),Xn(this.dirname,"extname"),t){if(t.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Le.join(this.dirname,this.stem+(t||""))}get stem(){return typeof this.path=="string"?Le.basename(this.path,this.extname):void 0}set stem(t){Wt(t,"stem"),Vt(t,"stem"),this.path=Le.join(this.dirname||"",t+(this.extname||""))}toString(t){return(this.value||"").toString(t||void 0)}message(t,n,r){const i=new Oe(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=null,i}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}}function Vt(e,t){if(e&&e.includes(Le.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Le.sep+"`")}function Wt(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Xn(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function os(e){return li(e)}function Qn(e){if(e)throw e}var vt=Object.prototype.hasOwnProperty,ai=Object.prototype.toString,Kn=Object.defineProperty,Yn=Object.getOwnPropertyDescriptor,Jn=function(t){return typeof Array.isArray=="function"?Array.isArray(t):ai.call(t)==="[object Array]"},Zn=function(t){if(!t||ai.call(t)!=="[object Object]")return!1;var n=vt.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&vt.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||vt.call(t,i)},er=function(t,n){Kn&&n.name==="__proto__"?Kn(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},tr=function(t,n){if(n==="__proto__")if(vt.call(t,n)){if(Yn)return Yn(t,n).value}else return;return t[n]},as=function e(){var t,n,r,i,l,o,a=arguments[0],s=1,c=arguments.length,f=!1;for(typeof a=="boolean"&&(f=a,a=arguments[1]||{},s=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});s<c;++s)if(t=arguments[s],t!=null)for(n in t)r=tr(a,n),i=tr(t,n),a!==i&&(f&&i&&(Zn(i)||(l=Jn(i)))?(l?(l=!1,o=r&&Jn(r)?r:[]):o=r&&Zn(r)?r:{},er(a,{name:n,newValue:e(f,o,i)})):typeof i<"u"&&er(a,{name:n,newValue:i}));return a};const nr=xn(as);function an(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function ss(){const e=[],t={run:n,use:r};return t;function n(...i){let l=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);a(null,...i);function a(s,...c){const f=e[++l];let u=-1;if(s){o(s);return}for(;++u<i.length;)(c[u]===null||c[u]===void 0)&&(c[u]=i[u]);i=c,f?us(f,a)(...c):o(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function us(e,t){let n;return r;function r(...o){const a=e.length>o.length;let s;a&&o.push(i);try{s=e.apply(this,o)}catch(c){const f=c;if(a&&n)throw f;return i(f)}a||(s instanceof Promise?s.then(l,i):s instanceof Error?i(s):l(s))}function i(o,...a){n||(n=!0,t(o,...a))}function l(o){i(null,o)}}const cs=ui().freeze(),si={}.hasOwnProperty;function ui(){const e=ss(),t=[];let n={},r,i=-1;return l.data=o,l.Parser=void 0,l.Compiler=void 0,l.freeze=a,l.attachers=t,l.use=s,l.parse=c,l.stringify=f,l.run=u,l.runSync=m,l.process=p,l.processSync=h,l;function l(){const y=ui();let S=-1;for(;++S<t.length;)y.use(...t[S]);return y.data(nr(!0,{},n)),y}function o(y,S){return typeof y=="string"?arguments.length===2?(Gt("data",r),n[y]=S,l):si.call(n,y)&&n[y]||null:y?(Gt("data",r),n=y,l):n}function a(){if(r)return l;for(;++i<t.length;){const[y,...S]=t[i];if(S[0]===!1)continue;S[0]===!0&&(S[0]=void 0);const b=y.call(l,...S);typeof b=="function"&&e.use(b)}return r=!0,i=Number.POSITIVE_INFINITY,l}function s(y,...S){let b;if(Gt("use",r),y!=null)if(typeof y=="function")T(y,...S);else if(typeof y=="object")Array.isArray(y)?I(y):C(y);else throw new TypeError("Expected usable value, not `"+y+"`");return b&&(n.settings=Object.assign(n.settings||{},b)),l;function v(x){if(typeof x=="function")T(x);else if(typeof x=="object")if(Array.isArray(x)){const[$,...F]=x;T($,...F)}else C(x);else throw new TypeError("Expected usable value, not `"+x+"`")}function C(x){I(x.plugins),x.settings&&(b=Object.assign(b||{},x.settings))}function I(x){let $=-1;if(x!=null)if(Array.isArray(x))for(;++$<x.length;){const F=x[$];v(F)}else throw new TypeError("Expected a list of plugins, not `"+x+"`")}function T(x,$){let F=-1,P;for(;++F<t.length;)if(t[F][0]===x){P=t[F];break}P?(an(P[1])&&an($)&&($=nr(!0,P[1],$)),P[1]=$):t.push([...arguments])}}function c(y){l.freeze();const S=ct(y),b=l.Parser;return qt("parse",b),rr(b,"parse")?new b(String(S),S).parse():b(String(S),S)}function f(y,S){l.freeze();const b=ct(S),v=l.Compiler;return Ut("stringify",v),ir(y),rr(v,"compile")?new v(y,b).compile():v(y,b)}function u(y,S,b){if(ir(y),l.freeze(),!b&&typeof S=="function"&&(b=S,S=void 0),!b)return new Promise(v);v(null,b);function v(C,I){e.run(y,ct(S),T);function T(x,$,F){$=$||y,x?I(x):C?C($):b(null,$,F)}}}function m(y,S){let b,v;return l.run(y,S,C),lr("runSync","run",v),b;function C(I,T){Qn(I),b=T,v=!0}}function p(y,S){if(l.freeze(),qt("process",l.Parser),Ut("process",l.Compiler),!S)return new Promise(b);b(null,S);function b(v,C){const I=ct(y);l.run(l.parse(I),I,(x,$,F)=>{if(x||!$||!F)T(x);else{const P=l.stringify($,F);P==null||(hs(P)?F.value=P:F.result=P),T(x,F)}});function T(x,$){x||!$?C(x):v?v($):S(null,$)}}}function h(y){let S;l.freeze(),qt("processSync",l.Parser),Ut("processSync",l.Compiler);const b=ct(y);return l.process(b,v),lr("processSync","process",S),b;function v(C){S=!0,Qn(C)}}}function rr(e,t){return typeof e=="function"&&e.prototype&&(fs(e.prototype)||t in e.prototype)}function fs(e){let t;for(t in e)if(si.call(e,t))return!0;return!1}function qt(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function Ut(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function Gt(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ir(e){if(!an(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function lr(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ct(e){return ps(e)?e:new oi(e)}function ps(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function hs(e){return typeof e=="string"||li(e)}const ms={};function ds(e,t){const n=t||ms,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return ci(e,r,i)}function ci(e,t,n){if(gs(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 or(e.children,t,n)}return Array.isArray(e)?or(e,t,n):""}function or(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=ci(e[i],t,n);return r.join("")}function gs(e){return!!(e&&typeof e=="object")}function Ee(e,t,n,r){const i=e.length;let l=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i: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);l<r.length;)o=r.slice(l,l+1e4),o.unshift(t,0),e.splice(...o),l+=1e4,t+=1e4}function $e(e,t){return e.length>0?(Ee(e,e.length,0,t),e):t}const ar={}.hasOwnProperty;function fi(e){const t={};let n=-1;for(;++n<e.length;)ys(t,e[n]);return t}function ys(e,t){let n;for(n in t){const i=(ar.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let o;if(l)for(o in l){ar.call(i,o)||(i[o]=[]);const a=l[o];bs(i[o],Array.isArray(a)?a:a?[a]:[])}}}function bs(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Ee(e,0,0,r)}const xs=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,xe=Ge(/[A-Za-z]/),ye=Ge(/[\dA-Za-z]/),ks=Ge(/[#-'*+\--9=?A-Z^-~]/);function Ot(e){return e!==null&&(e<32||e===127)}const sn=Ge(/\d/),ws=Ge(/[\dA-Fa-f]/),Cs=Ge(/[!-/:-@[-`{-~]/);function _(e){return e!==null&&e<-2}function oe(e){return e!==null&&(e<0||e===32)}function Y(e){return e===-2||e===-1||e===32}const Dt=Ge(xs),Ye=Ge(/\s/);function Ge(e){return t;function t(n){return n!==null&&e.test(String.fromCharCode(n))}}function ee(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(s){return Y(s)?(e.enter(n),a(s)):t(s)}function a(s){return Y(s)&&l++<i?(e.consume(s),a):(e.exit(n),t(s))}}const Ss={tokenize:vs};function vs(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),ee(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),l(a)}function l(a){const s=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=s),n=s,o(a)}function o(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return _(a)?(e.consume(a),e.exit("chunkText"),l):(e.consume(a),o)}}const Es={tokenize:$s},sr={tokenize:Is};function $s(e){const t=this,n=[];let r=0,i,l,o;return a;function a(C){if(r<n.length){const I=n[r];return t.containerState=I[1],e.attempt(I[0].continuation,s,c)(C)}return c(C)}function s(C){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();const I=t.events.length;let T=I,x;for(;T--;)if(t.events[T][0]==="exit"&&t.events[T][1].type==="chunkFlow"){x=t.events[T][1].end;break}b(r);let $=I;for(;$<t.events.length;)t.events[$][1].end=Object.assign({},x),$++;return Ee(t.events,T+1,0,t.events.slice(I)),t.events.length=$,c(C)}return a(C)}function c(C){if(r===n.length){if(!i)return m(C);if(i.currentConstruct&&i.currentConstruct.concrete)return h(C);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(sr,f,u)(C)}function f(C){return i&&v(),b(r),m(C)}function u(C){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,h(C)}function m(C){return t.containerState={},e.attempt(sr,p,h)(C)}function p(C){return r++,n.push([t.currentConstruct,t.containerState]),m(C)}function h(C){if(C===null){i&&v(),b(0),e.consume(C);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:l,_tokenizer:i}),y(C)}function y(C){if(C===null){S(e.exit("chunkFlow"),!0),b(0),e.consume(C);return}return _(C)?(e.consume(C),S(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(C),y)}function S(C,I){const T=t.sliceStream(C);if(I&&T.push(null),C.previous=l,l&&(l.next=C),l=C,i.defineSkip(C.start),i.write(T),t.parser.lazy[C.start.line]){let x=i.events.length;for(;x--;)if(i.events[x][1].start.offset<o&&(!i.events[x][1].end||i.events[x][1].end.offset>o))return;const $=t.events.length;let F=$,P,w;for(;F--;)if(t.events[F][0]==="exit"&&t.events[F][1].type==="chunkFlow"){if(P){w=t.events[F][1].end;break}P=!0}for(b(r),x=$;x<t.events.length;)t.events[x][1].end=Object.assign({},w),x++;Ee(t.events,F+1,0,t.events.slice($)),t.events.length=x}}function b(C){let I=n.length;for(;I-- >C;){const T=n[I];t.containerState=T[1],T[0].exit.call(t,e)}n.length=C}function v(){i.write([null]),l=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Is(e,t,n){return ee(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ft(e){if(e===null||oe(e)||Ye(e))return 1;if(Dt(e))return 2}function Mt(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const l=e[i].resolveAll;l&&!r.includes(l)&&(t=l(t,n),r.push(l))}return t}const un={name:"attention",tokenize:Fs,resolveAll:Os};function Os(e,t){let n=-1,r,i,l,o,a,s,c,f;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;s=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 u=Object.assign({},e[r][1].end),m=Object.assign({},e[n][1].start);ur(u,-s),ur(m,s),o={type:s>1?"strongSequence":"emphasisSequence",start:u,end:Object.assign({},e[r][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:m},l={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},a.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=$e(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=$e(c,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",l,t]]),c=$e(c,Mt(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=$e(c,[["exit",l,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,c=$e(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,Ee(e,r-1,n-r+3,c),n=r+c.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Fs(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Ft(r);let l;return o;function o(s){return l=s,e.enter("attentionSequence"),a(s)}function a(s){if(s===l)return e.consume(s),a;const c=e.exit("attentionSequence"),f=Ft(s),u=!f||f===2&&i||n.includes(s),m=!i||i===2&&f||n.includes(r);return c._open=!!(l===42?u:u&&(i||!m)),c._close=!!(l===42?m:m&&(f||!u)),t(s)}}function ur(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Ps={name:"autolink",tokenize:As};function As(e,t,n){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(p){return xe(p)?(e.consume(p),o):c(p)}function o(p){return p===43||p===45||p===46||ye(p)?(r=1,a(p)):c(p)}function a(p){return p===58?(e.consume(p),r=0,s):(p===43||p===45||p===46||ye(p))&&r++<32?(e.consume(p),a):(r=0,c(p))}function s(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||Ot(p)?n(p):(e.consume(p),s)}function c(p){return p===64?(e.consume(p),f):ks(p)?(e.consume(p),c):n(p)}function f(p){return ye(p)?u(p):n(p)}function u(p){return p===46?(e.consume(p),r=0,f):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||ye(p))&&r++<63){const h=p===45?m:u;return e.consume(p),h}return n(p)}}const gt={tokenize:Ts,partial:!0};function Ts(e,t,n){return r;function r(l){return Y(l)?ee(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||_(l)?t(l):n(l)}}const pi={name:"blockQuote",tokenize:zs,continuation:{tokenize:Ls},exit:Ds};function zs(e,t,n){const r=this;return i;function i(o){if(o===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),l}return n(o)}function l(o){return Y(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function Ls(e,t,n){const r=this;return i;function i(o){return Y(o)?ee(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(pi,t,n)(o)}}function Ds(e){e.exit("blockQuote")}const hi={name:"characterEscape",tokenize:Ms};function Ms(e,t,n){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return Cs(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const cr=document.createElement("i");function Sn(e){const t="&"+e+";";cr.innerHTML=t;const n=cr.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const mi={name:"characterReference",tokenize:Rs};function Rs(e,t,n){const r=this;let i=0,l,o;return a;function a(u){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),s}function s(u){return u===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(u),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),l=31,o=ye,f(u))}function c(u){return u===88||u===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(u),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=ws,f):(e.enter("characterReferenceValue"),l=7,o=sn,f(u))}function f(u){if(u===59&&i){const m=e.exit("characterReferenceValue");return o===ye&&!Sn(r.sliceSerialize(m))?n(u):(e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(u)&&i++<l?(e.consume(u),f):n(u)}}const fr={tokenize:Ns,partial:!0},pr={name:"codeFenced",tokenize:js,concrete:!0};function js(e,t,n){const r=this,i={tokenize:T,partial:!0};let l=0,o=0,a;return s;function s(x){return c(x)}function c(x){const $=r.events[r.events.length-1];return l=$&&$[1].type==="linePrefix"?$[2].sliceSerialize($[1],!0).length:0,a=x,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(x)}function f(x){return x===a?(o++,e.consume(x),f):o<3?n(x):(e.exit("codeFencedFenceSequence"),Y(x)?ee(e,u,"whitespace")(x):u(x))}function u(x){return x===null||_(x)?(e.exit("codeFencedFence"),r.interrupt?t(x):e.check(fr,y,I)(x)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(x))}function m(x){return x===null||_(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(x)):Y(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ee(e,p,"whitespace")(x)):x===96&&x===a?n(x):(e.consume(x),m)}function p(x){return x===null||_(x)?u(x):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),h(x))}function h(x){return x===null||_(x)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(x)):x===96&&x===a?n(x):(e.consume(x),h)}function y(x){return e.attempt(i,I,S)(x)}function S(x){return e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),b}function b(x){return l>0&&Y(x)?ee(e,v,"linePrefix",l+1)(x):v(x)}function v(x){return x===null||_(x)?e.check(fr,y,I)(x):(e.enter("codeFlowValue"),C(x))}function C(x){return x===null||_(x)?(e.exit("codeFlowValue"),v(x)):(e.consume(x),C)}function I(x){return e.exit("codeFenced"),t(x)}function T(x,$,F){let P=0;return w;function w(M){return x.enter("lineEnding"),x.consume(M),x.exit("lineEnding"),O}function O(M){return x.enter("codeFencedFence"),Y(M)?ee(x,A,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):A(M)}function A(M){return M===a?(x.enter("codeFencedFenceSequence"),D(M)):F(M)}function D(M){return M===a?(P++,x.consume(M),D):P>=o?(x.exit("codeFencedFenceSequence"),Y(M)?ee(x,N,"whitespace")(M):N(M)):F(M)}function N(M){return M===null||_(M)?(x.exit("codeFencedFence"),$(M)):F(M)}}}function Ns(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const Xt={name:"codeIndented",tokenize:_s},Bs={tokenize:Hs,partial:!0};function _s(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),ee(e,l,"linePrefix",4+1)(c)}function l(c){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?s(c):_(c)?e.attempt(Bs,o,s)(c):(e.enter("codeFlowValue"),a(c))}function a(c){return c===null||_(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),a)}function s(c){return e.exit("codeIndented"),t(c)}}function Hs(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):_(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):ee(e,l,"linePrefix",4+1)(o)}function l(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):_(o)?i(o):n(o)}}const Vs={name:"codeText",tokenize:Us,resolve:Ws,previous:qs};function Ws(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function qs(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Us(e,t,n){let r=0,i,l;return o;function o(u){return e.enter("codeText"),e.enter("codeTextSequence"),a(u)}function a(u){return u===96?(e.consume(u),r++,a):(e.exit("codeTextSequence"),s(u))}function s(u){return u===null?n(u):u===32?(e.enter("space"),e.consume(u),e.exit("space"),s):u===96?(l=e.enter("codeTextSequence"),i=0,f(u)):_(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s):(e.enter("codeTextData"),c(u))}function c(u){return u===null||u===32||u===96||_(u)?(e.exit("codeTextData"),s(u)):(e.consume(u),c)}function f(u){return u===96?(e.consume(u),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(u)):(l.type="codeTextData",c(u))}}function di(e){const t={};let n=-1,r,i,l,o,a,s,c;for(;++n<e.length;){for(;n in t;)n=t[n];if(r=e[n],n&&r[1].type==="chunkFlow"&&e[n-1][1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,l=0,l<s.length&&s[l][1].type==="lineEndingBlank"&&(l+=2),l<s.length&&s[l][1].type==="content"))for(;++l<s.length&&s[l][1].type!=="content";)s[l][1].type==="chunkText"&&(s[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Gs(e,n)),n=t[n],c=!0);else if(r[1]._container){for(l=n,i=void 0;l--&&(o=e[l],o[1].type==="lineEnding"||o[1].type==="lineEndingBlank");)o[0]==="enter"&&(i&&(e[i][1].type="lineEndingBlank"),o[1].type="lineEnding",i=l);i&&(r[1].end=Object.assign({},e[i][1].start),a=e.slice(i,n),a.unshift(r),Ee(e,i,n-i+1,a))}}return!c}function Gs(e,t){const n=e[t][1],r=e[t][2];let i=t-1;const l=[],o=n._tokenizer||r.parser[n.contentType](n.start),a=o.events,s=[],c={};let f,u,m=-1,p=n,h=0,y=0;const S=[y];for(;p;){for(;e[++i][1]!==p;);l.push(i),p._tokenizer||(f=r.sliceStream(p),p.next||f.push(null),u&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(f),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),u=p,p=p.next}for(p=n;++m<a.length;)a[m][0]==="exit"&&a[m-1][0]==="enter"&&a[m][1].type===a[m-1][1].type&&a[m][1].start.line!==a[m][1].end.line&&(y=m+1,S.push(y),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):S.pop(),m=S.length;m--;){const b=a.slice(S[m],S[m+1]),v=l.pop();s.unshift([v,v+b.length-1]),Ee(e,v,2,b)}for(m=-1;++m<s.length;)c[h+s[m][0]]=h+s[m][1],h+=s[m][1]-s[m][0]-1;return c}const Xs={tokenize:Ys,resolve:Ks},Qs={tokenize:Js,partial:!0};function Ks(e){return di(e),e}function Ys(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?l(a):_(a)?e.check(Qs,o,l)(a):(e.consume(a),i)}function l(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function o(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function Js(e,t,n){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),ee(e,l,"linePrefix")}function l(o){if(o===null||_(o))return n(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function gi(e,t,n,r,i,l,o,a,s){const c=s||Number.POSITIVE_INFINITY;let f=0;return u;function u(b){return b===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(b),e.exit(l),m):b===null||b===32||b===41||Ot(b)?n(b):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),y(b))}function m(b){return b===62?(e.enter(l),e.consume(b),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===62?(e.exit("chunkString"),e.exit(a),m(b)):b===null||b===60||_(b)?n(b):(e.consume(b),b===92?h:p)}function h(b){return b===60||b===62||b===92?(e.consume(b),p):p(b)}function y(b){return!f&&(b===null||b===41||oe(b))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(b)):f<c&&b===40?(e.consume(b),f++,y):b===41?(e.consume(b),f--,y):b===null||b===32||b===40||Ot(b)?n(b):(e.consume(b),b===92?S:y)}function S(b){return b===40||b===41||b===92?(e.consume(b),y):y(b)}}function yi(e,t,n,r,i,l){const o=this;let a=0,s;return c;function c(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(l),f}function f(p){return a>999||p===null||p===91||p===93&&!s||p===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?n(p):p===93?(e.exit(l),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):_(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),u(p))}function u(p){return p===null||p===91||p===93||_(p)||a++>999?(e.exit("chunkString"),f(p)):(e.consume(p),s||(s=!Y(p)),p===92?m:u)}function m(p){return p===91||p===92||p===93?(e.consume(p),a++,u):u(p)}}function bi(e,t,n,r,i,l){let o;return a;function a(m){return m===34||m===39||m===40?(e.enter(r),e.enter(i),e.consume(m),e.exit(i),o=m===40?41:m,s):n(m)}function s(m){return m===o?(e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):(e.enter(l),c(m))}function c(m){return m===o?(e.exit(l),s(o)):m===null?n(m):_(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),ee(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(m))}function f(m){return m===o||m===null||_(m)?(e.exit("chunkString"),c(m)):(e.consume(m),m===92?u:f)}function u(m){return m===o||m===92?(e.consume(m),f):f(m)}}function ht(e,t){let n;return r;function r(i){return _(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Y(i)?ee(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function Te(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Zs={name:"definition",tokenize:tu},eu={tokenize:nu,partial:!0};function tu(e,t,n){const r=this;let i;return l;function l(p){return e.enter("definition"),o(p)}function o(p){return yi.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=Te(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),s):n(p)}function s(p){return oe(p)?ht(e,c)(p):c(p)}function c(p){return gi(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function f(p){return e.attempt(eu,u,u)(p)}function u(p){return Y(p)?ee(e,m,"whitespace")(p):m(p)}function m(p){return p===null||_(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function nu(e,t,n){return r;function r(a){return oe(a)?ht(e,i)(a):n(a)}function i(a){return bi(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return Y(a)?ee(e,o,"whitespace")(a):o(a)}function o(a){return a===null||_(a)?t(a):n(a)}}const ru={name:"hardBreakEscape",tokenize:iu};function iu(e,t,n){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return _(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const lu={name:"headingAtx",tokenize:au,resolve:ou};function ou(e,t){let n=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},l={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Ee(e,r,n-r+1,[["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t]])),e}function au(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),l(f)}function l(f){return e.enter("atxHeadingSequence"),o(f)}function o(f){return f===35&&r++<6?(e.consume(f),o):f===null||oe(f)?(e.exit("atxHeadingSequence"),a(f)):n(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),s(f)):f===null||_(f)?(e.exit("atxHeading"),t(f)):Y(f)?ee(e,a,"whitespace")(f):(e.enter("atxHeadingText"),c(f))}function s(f){return f===35?(e.consume(f),s):(e.exit("atxHeadingSequence"),a(f))}function c(f){return f===null||f===35||oe(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),c)}}const su=["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"],hr=["pre","script","style","textarea"],uu={name:"htmlFlow",tokenize:hu,resolveTo:pu,concrete:!0},cu={tokenize:du,partial:!0},fu={tokenize:mu,partial:!0};function pu(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 hu(e,t,n){const r=this;let i,l,o,a,s;return c;function c(g){return f(g)}function f(g){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(g),u}function u(g){return g===33?(e.consume(g),m):g===47?(e.consume(g),l=!0,y):g===63?(e.consume(g),i=3,r.interrupt?t:d):xe(g)?(e.consume(g),o=String.fromCharCode(g),S):n(g)}function m(g){return g===45?(e.consume(g),i=2,p):g===91?(e.consume(g),i=5,a=0,h):xe(g)?(e.consume(g),i=4,r.interrupt?t:d):n(g)}function p(g){return g===45?(e.consume(g),r.interrupt?t:d):n(g)}function h(g){const V="CDATA[";return g===V.charCodeAt(a++)?(e.consume(g),a===V.length?r.interrupt?t:A:h):n(g)}function y(g){return xe(g)?(e.consume(g),o=String.fromCharCode(g),S):n(g)}function S(g){if(g===null||g===47||g===62||oe(g)){const V=g===47,Z=o.toLowerCase();return!V&&!l&&hr.includes(Z)?(i=1,r.interrupt?t(g):A(g)):su.includes(o.toLowerCase())?(i=6,V?(e.consume(g),b):r.interrupt?t(g):A(g)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(g):l?v(g):C(g))}return g===45||ye(g)?(e.consume(g),o+=String.fromCharCode(g),S):n(g)}function b(g){return g===62?(e.consume(g),r.interrupt?t:A):n(g)}function v(g){return Y(g)?(e.consume(g),v):w(g)}function C(g){return g===47?(e.consume(g),w):g===58||g===95||xe(g)?(e.consume(g),I):Y(g)?(e.consume(g),C):w(g)}function I(g){return g===45||g===46||g===58||g===95||ye(g)?(e.consume(g),I):T(g)}function T(g){return g===61?(e.consume(g),x):Y(g)?(e.consume(g),T):C(g)}function x(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),s=g,$):Y(g)?(e.consume(g),x):F(g)}function $(g){return g===s?(e.consume(g),s=null,P):g===null||_(g)?n(g):(e.consume(g),$)}function F(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||oe(g)?T(g):(e.consume(g),F)}function P(g){return g===47||g===62||Y(g)?C(g):n(g)}function w(g){return g===62?(e.consume(g),O):n(g)}function O(g){return g===null||_(g)?A(g):Y(g)?(e.consume(g),O):n(g)}function A(g){return g===45&&i===2?(e.consume(g),Q):g===60&&i===1?(e.consume(g),q):g===62&&i===4?(e.consume(g),j):g===63&&i===3?(e.consume(g),d):g===93&&i===5?(e.consume(g),G):_(g)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(cu,R,D)(g)):g===null||_(g)?(e.exit("htmlFlowData"),D(g)):(e.consume(g),A)}function D(g){return e.check(fu,N,R)(g)}function N(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),M}function M(g){return g===null||_(g)?D(g):(e.enter("htmlFlowData"),A(g))}function Q(g){return g===45?(e.consume(g),d):A(g)}function q(g){return g===47?(e.consume(g),o="",J):A(g)}function J(g){if(g===62){const V=o.toLowerCase();return hr.includes(V)?(e.consume(g),j):A(g)}return xe(g)&&o.length<8?(e.consume(g),o+=String.fromCharCode(g),J):A(g)}function G(g){return g===93?(e.consume(g),d):A(g)}function d(g){return g===62?(e.consume(g),j):g===45&&i===2?(e.consume(g),d):A(g)}function j(g){return g===null||_(g)?(e.exit("htmlFlowData"),R(g)):(e.consume(g),j)}function R(g){return e.exit("htmlFlow"),t(g)}}function mu(e,t,n){const r=this;return i;function i(o){return _(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):n(o)}function l(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function du(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(gt,t,n)}}const gu={name:"htmlText",tokenize:yu};function yu(e,t,n){const r=this;let i,l,o;return a;function a(d){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(d),s}function s(d){return d===33?(e.consume(d),c):d===47?(e.consume(d),T):d===63?(e.consume(d),C):xe(d)?(e.consume(d),F):n(d)}function c(d){return d===45?(e.consume(d),f):d===91?(e.consume(d),l=0,h):xe(d)?(e.consume(d),v):n(d)}function f(d){return d===45?(e.consume(d),p):n(d)}function u(d){return d===null?n(d):d===45?(e.consume(d),m):_(d)?(o=u,q(d)):(e.consume(d),u)}function m(d){return d===45?(e.consume(d),p):u(d)}function p(d){return d===62?Q(d):d===45?m(d):u(d)}function h(d){const j="CDATA[";return d===j.charCodeAt(l++)?(e.consume(d),l===j.length?y:h):n(d)}function y(d){return d===null?n(d):d===93?(e.consume(d),S):_(d)?(o=y,q(d)):(e.consume(d),y)}function S(d){return d===93?(e.consume(d),b):y(d)}function b(d){return d===62?Q(d):d===93?(e.consume(d),b):y(d)}function v(d){return d===null||d===62?Q(d):_(d)?(o=v,q(d)):(e.consume(d),v)}function C(d){return d===null?n(d):d===63?(e.consume(d),I):_(d)?(o=C,q(d)):(e.consume(d),C)}function I(d){return d===62?Q(d):C(d)}function T(d){return xe(d)?(e.consume(d),x):n(d)}function x(d){return d===45||ye(d)?(e.consume(d),x):$(d)}function $(d){return _(d)?(o=$,q(d)):Y(d)?(e.consume(d),$):Q(d)}function F(d){return d===45||ye(d)?(e.consume(d),F):d===47||d===62||oe(d)?P(d):n(d)}function P(d){return d===47?(e.consume(d),Q):d===58||d===95||xe(d)?(e.consume(d),w):_(d)?(o=P,q(d)):Y(d)?(e.consume(d),P):Q(d)}function w(d){return d===45||d===46||d===58||d===95||ye(d)?(e.consume(d),w):O(d)}function O(d){return d===61?(e.consume(d),A):_(d)?(o=O,q(d)):Y(d)?(e.consume(d),O):P(d)}function A(d){return d===null||d===60||d===61||d===62||d===96?n(d):d===34||d===39?(e.consume(d),i=d,D):_(d)?(o=A,q(d)):Y(d)?(e.consume(d),A):(e.consume(d),N)}function D(d){return d===i?(e.consume(d),i=void 0,M):d===null?n(d):_(d)?(o=D,q(d)):(e.consume(d),D)}function N(d){return d===null||d===34||d===39||d===60||d===61||d===96?n(d):d===47||d===62||oe(d)?P(d):(e.consume(d),N)}function M(d){return d===47||d===62||oe(d)?P(d):n(d)}function Q(d){return d===62?(e.consume(d),e.exit("htmlTextData"),e.exit("htmlText"),t):n(d)}function q(d){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),J}function J(d){return Y(d)?ee(e,G,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):G(d)}function G(d){return e.enter("htmlTextData"),o(d)}}const vn={name:"labelEnd",tokenize:Su,resolveTo:Cu,resolveAll:wu},bu={tokenize:vu},xu={tokenize:Eu},ku={tokenize:$u};function wu(e){let t=-1;for(;++t<e.length;){const n=e[t][1];(n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd")&&(e.splice(t+1,n.type==="labelImage"?4:2),n.type="data",t++)}return e}function Cu(e,t){let n=e.length,r=0,i,l,o,a;for(;n--;)if(i=e[n][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=n);const s={type:e[l][1].type==="labelLink"?"link":"image",start:Object.assign({},e[l][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[l][1].start),end:Object.assign({},e[o][1].end)},f={type:"labelText",start:Object.assign({},e[l+r+2][1].end),end:Object.assign({},e[o-2][1].start)};return a=[["enter",s,t],["enter",c,t]],a=$e(a,e.slice(l+1,l+r+3)),a=$e(a,[["enter",f,t]]),a=$e(a,Mt(t.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),t)),a=$e(a,[["exit",f,t],e[o-2],e[o-1],["exit",c,t]]),a=$e(a,e.slice(o+1)),a=$e(a,[["exit",s,t]]),Ee(e,l,e.length,a),e}function Su(e,t,n){const r=this;let i=r.events.length,l,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return a;function a(m){return l?l._inactive?u(m):(o=r.parser.defined.includes(Te(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),s):n(m)}function s(m){return m===40?e.attempt(bu,f,o?f:u)(m):m===91?e.attempt(xu,f,o?c:u)(m):o?f(m):u(m)}function c(m){return e.attempt(ku,f,u)(m)}function f(m){return t(m)}function u(m){return l._balanced=!0,n(m)}}function vu(e,t,n){return r;function r(u){return e.enter("resource"),e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),i}function i(u){return oe(u)?ht(e,l)(u):l(u)}function l(u){return u===41?f(u):gi(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(u)}function o(u){return oe(u)?ht(e,s)(u):f(u)}function a(u){return n(u)}function s(u){return u===34||u===39||u===40?bi(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(u):f(u)}function c(u){return oe(u)?ht(e,f)(u):f(u)}function f(u){return u===41?(e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),e.exit("resource"),t):n(u)}}function Eu(e,t,n){const r=this;return i;function i(a){return yi.call(r,e,l,o,"reference","referenceMarker","referenceString")(a)}function l(a){return r.parser.defined.includes(Te(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function o(a){return n(a)}}function $u(e,t,n){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):n(l)}}const Iu={name:"labelStartImage",tokenize:Ou,resolveAll:vn.resolveAll};function Ou(e,t,n){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),l}function l(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),o):n(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const Fu={name:"labelStartLink",tokenize:Pu,resolveAll:vn.resolveAll};function Pu(e,t,n){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Qt={name:"lineEnding",tokenize:Au};function Au(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ee(e,t,"linePrefix")}}const Et={name:"thematicBreak",tokenize:Tu};function Tu(e,t,n){let r=0,i;return l;function l(c){return e.enter("thematicBreak"),o(c)}function o(c){return i=c,a(c)}function a(c){return c===i?(e.enter("thematicBreakSequence"),s(c)):r>=3&&(c===null||_(c))?(e.exit("thematicBreak"),t(c)):n(c)}function s(c){return c===i?(e.consume(c),r++,s):(e.exit("thematicBreakSequence"),Y(c)?ee(e,a,"whitespace")(c):a(c))}}const Ce={name:"list",tokenize:Du,continuation:{tokenize:Mu},exit:ju},zu={tokenize:Nu,partial:!0},Lu={tokenize:Ru,partial:!0};function Du(e,t,n){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(p){const h=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(h==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:sn(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(Et,n,c)(p):c(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(p)}return n(p)}function s(p){return sn(p)&&++o<10?(e.consume(p),s):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),c(p)):n(p)}function c(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(gt,r.interrupt?n:f,e.attempt(zu,m,u))}function f(p){return r.containerState.initialBlankLine=!0,l++,m(p)}function u(p){return Y(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),m):n(p)}function m(p){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function Mu(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(gt,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ee(e,t,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!Y(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Lu,t,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,ee(e,e.attempt(Ce,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function Ru(e,t,n){const r=this;return ee(e,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(l):n(l)}}function ju(e){e.exit(this.containerState.type)}function Nu(e,t,n){const r=this;return ee(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(l){const o=r.events[r.events.length-1];return!Y(l)&&o&&o[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const mr={name:"setextUnderline",tokenize:_u,resolveTo:Bu};function Bu(e,t){let n=e.length,r,i,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",o,t]),e.splice(l+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[l][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function _u(e,t,n){const r=this;let i;return l;function l(c){let f=r.events.length,u;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){u=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||u)?(e.enter("setextHeadingLine"),i=c,o(c)):n(c)}function o(c){return e.enter("setextHeadingLineSequence"),a(c)}function a(c){return c===i?(e.consume(c),a):(e.exit("setextHeadingLineSequence"),Y(c)?ee(e,s,"lineSuffix")(c):s(c))}function s(c){return c===null||_(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const Hu={tokenize:Vu};function Vu(e){const t=this,n=e.attempt(gt,r,e.attempt(this.parser.constructs.flowInitial,i,ee(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Xs,i)),"linePrefix")));return n;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Wu={resolveAll:ki()},qu=xi("string"),Uu=xi("text");function xi(e){return{tokenize:t,resolveAll:ki(e==="text"?Gu:void 0)};function t(n){const r=this,i=this.parser.constructs[e],l=n.attempt(i,o,a);return o;function o(f){return c(f)?l(f):a(f)}function a(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),s}function s(f){return c(f)?(n.exit("data"),l(f)):(n.consume(f),s)}function c(f){if(f===null)return!0;const u=i[f];let m=-1;if(u)for(;++m<u.length;){const p=u[m];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function ki(e){return t;function t(n,r){let i=-1,l;for(;++i<=n.length;)l===void 0?n[i]&&n[i][1].type==="data"&&(l=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==l+2&&(n[l][1].end=n[i-1][1].end,n.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(n,r):n}}function Gu(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let l=i.length,o=-1,a=0,s;for(;l--;){const c=i[l];if(typeof c=="string"){for(o=c.length;c.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(c===-2)s=!0,a++;else if(c!==-1){l++;break}}if(a){const c={type:n===e.length||s||a<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-a,offset:r.end.offset-a,_index:r.start._index+l,_bufferIndex:l?o:r.start._bufferIndex+o},end:Object.assign({},r.end)};r.end=Object.assign({},c.start),r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}function Xu(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},l=[];let o=[],a=[];const s={consume:v,enter:C,exit:I,attempt:$(T),check:$(x),interrupt:$(x,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:p,sliceSerialize:m,now:h,defineSkip:y,write:u};let f=t.tokenize.call(c,s);return t.resolveAll&&l.push(t),c;function u(O){return o=$e(o,O),S(),o[o.length-1]!==null?[]:(F(t,0),c.events=Mt(l,c.events,c),c.events)}function m(O,A){return Ku(p(O),A)}function p(O){return Qu(o,O)}function h(){const{line:O,column:A,offset:D,_index:N,_bufferIndex:M}=r;return{line:O,column:A,offset:D,_index:N,_bufferIndex:M}}function y(O){i[O.line]=O.column,w()}function S(){let O;for(;r._index<o.length;){const A=o[r._index];if(typeof A=="string")for(O=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===O&&r._bufferIndex<A.length;)b(A.charCodeAt(r._bufferIndex));else b(A)}}function b(O){f=f(O)}function v(O){_(O)?(r.line++,r.column=1,r.offset+=O===-3?2:1,w()):O!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=O}function C(O,A){const D=A||{};return D.type=O,D.start=h(),c.events.push(["enter",D,c]),a.push(D),D}function I(O){const A=a.pop();return A.end=h(),c.events.push(["exit",A,c]),A}function T(O,A){F(O,A.from)}function x(O,A){A.restore()}function $(O,A){return D;function D(N,M,Q){let q,J,G,d;return Array.isArray(N)?R(N):"tokenize"in N?R([N]):j(N);function j(B){return H;function H(K){const te=K!==null&&B[K],ne=K!==null&&B.null,de=[...Array.isArray(te)?te:te?[te]:[],...Array.isArray(ne)?ne:ne?[ne]:[]];return R(de)(K)}}function R(B){return q=B,J=0,B.length===0?Q:g(B[J])}function g(B){return H;function H(K){return d=P(),G=B,B.partial||(c.currentConstruct=B),B.name&&c.parser.constructs.disable.null.includes(B.name)?Z():B.tokenize.call(A?Object.assign(Object.create(c),A):c,s,V,Z)(K)}}function V(B){return O(G,d),M}function Z(B){return d.restore(),++J<q.length?g(q[J]):Q}}}function F(O,A){O.resolveAll&&!l.includes(O)&&l.push(O),O.resolve&&Ee(c.events,A,c.events.length-A,O.resolve(c.events.slice(A),c)),O.resolveTo&&(c.events=O.resolveTo(c.events,c))}function P(){const O=h(),A=c.previous,D=c.currentConstruct,N=c.events.length,M=Array.from(a);return{restore:Q,from:N};function Q(){r=O,c.previous=A,c.currentConstruct=D,c.events.length=N,a=M,w()}}function w(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Qu(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,l=t.end._bufferIndex;let o;if(n===i)o=[e[n].slice(r,l)];else{if(o=e.slice(n,i),r>-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function Ku(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const l=e[n];let o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
`;break}case-3:{o=`\r
`;break}case-2:{o=t?" ":"	";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(l)}i=l===-2,r.push(o)}return r.join("")}const Yu={42:Ce,43:Ce,45:Ce,48:Ce,49:Ce,50:Ce,51:Ce,52:Ce,53:Ce,54:Ce,55:Ce,56:Ce,57:Ce,62:pi},Ju={91:Zs},Zu={[-2]:Xt,[-1]:Xt,32:Xt},ec={35:lu,42:Et,45:[mr,Et],60:uu,61:mr,95:Et,96:pr,126:pr},tc={38:mi,92:hi},nc={[-5]:Qt,[-4]:Qt,[-3]:Qt,33:Iu,38:mi,42:un,60:[Ps,gu],91:Fu,92:[ru,hi],93:vn,95:un,96:Vs},rc={null:[un,Wu]},ic={null:[42,95]},lc={null:[]},oc=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:ic,contentInitial:Ju,disable:lc,document:Yu,flow:ec,flowInitial:Zu,insideSpan:rc,string:tc,text:nc},Symbol.toStringTag,{value:"Module"}));function ac(e){const n=fi([oc,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:n,content:i(Ss),document:i(Es),flow:i(Hu),string:i(qu),text:i(Uu)};return r;function i(l){return o;function o(a){return Xu(r,l,a)}}}const dr=/[\0\t\n\r]/g;function sc(){let e=1,t="",n=!0,r;return i;function i(l,o,a){const s=[];let c,f,u,m,p;for(l=t+l.toString(o),u=0,t="",n&&(l.charCodeAt(0)===65279&&u++,n=void 0);u<l.length;){if(dr.lastIndex=u,c=dr.exec(l),m=c&&c.index!==void 0?c.index:l.length,p=l.charCodeAt(m),!c){t=l.slice(u);break}if(p===10&&u===m&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),u<m&&(s.push(l.slice(u,m)),e+=m-u),p){case 0:{s.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,s.push(-2);e++<f;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}u=m+1}return a&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}function uc(e){for(;!di(e););return e}function wi(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.fromCharCode(n)}const cc=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ci(e){return e.replace(cc,fc)}function fc(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),l=i===120||i===88;return wi(n.slice(l?2:1),l?16:10)}return Sn(n)||e}const Si={}.hasOwnProperty,pc=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),hc(n)(uc(ac(n).document().write(sc()(e,t,!0))))};function hc(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Xe),autolinkProtocol:O,autolinkEmail:O,atxHeading:a(be),blockQuote:a(de),characterEscape:O,characterReference:O,codeFenced:a(ke),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(ke,s),codeText:a(ze,s),codeTextData:O,data:O,codeFlowValue:O,definition:a(Me),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(ue),hardBreakEscape:a(Ze),hardBreakTrailing:a(Ze),htmlFlow:a(we,s),htmlFlowData:O,htmlText:a(we,s),htmlTextData:O,image:a(Re),label:s,link:a(Xe),listItem:a(pe),listItemValue:h,listOrdered:a(ae,p),listUnordered:a(ae),paragraph:a(ge),reference:Z,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(be),strong:a(Ve),thematicBreak:a(et)},exit:{atxHeading:f(),atxHeadingSequence:$,autolink:f(),autolinkEmail:ne,autolinkProtocol:te,blockQuote:f(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:H,characterReferenceMarkerNumeric:H,characterReferenceValue:K,codeFenced:f(v),codeFencedFence:b,codeFencedFenceInfo:y,codeFencedFenceMeta:S,codeFlowValue:A,codeIndented:f(C),codeText:f(q),codeTextData:A,data:A,definition:f(),definitionDestinationString:x,definitionLabelString:I,definitionTitleString:T,emphasis:f(),hardBreakEscape:f(N),hardBreakTrailing:f(N),htmlFlow:f(M),htmlFlowData:A,htmlText:f(Q),htmlTextData:A,image:f(G),label:j,labelText:d,lineEnding:D,link:f(J),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:B,resourceDestinationString:R,resourceTitleString:g,resource:V,setextHeading:f(w),setextHeadingLineSequence:P,setextHeadingText:F,strong:f(),thematicBreak:f()}};vi(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(E){let L={type:"root",children:[]};const W={stack:[L],tokenStack:[],config:t,enter:c,exit:u,buffer:s,resume:m,setData:l,getData:o},re=[];let le=-1;for(;++le<E.length;)if(E[le][1].type==="listOrdered"||E[le][1].type==="listUnordered")if(E[le][0]==="enter")re.push(le);else{const Pe=re.pop();le=i(E,Pe,le)}for(le=-1;++le<E.length;){const Pe=t[E[le][0]];Si.call(Pe,E[le][1].type)&&Pe[E[le][1].type].call(Object.assign({sliceSerialize:E[le][2].sliceSerialize},W),E[le][1])}if(W.tokenStack.length>0){const Pe=W.tokenStack[W.tokenStack.length-1];(Pe[1]||gr).call(W,void 0,Pe[0])}for(L.position={start:qe(E.length>0?E[0][1].start:{line:1,column:1,offset:0}),end:qe(E.length>0?E[E.length-2][1].end:{line:1,column:1,offset:0})},le=-1;++le<t.transforms.length;)L=t.transforms[le](L)||L;return L}function i(E,L,W){let re=L-1,le=-1,Pe=!1,We,je,st,ut;for(;++re<=W;){const fe=E[re];if(fe[1].type==="listUnordered"||fe[1].type==="listOrdered"||fe[1].type==="blockQuote"?(fe[0]==="enter"?le++:le--,ut=void 0):fe[1].type==="lineEndingBlank"?fe[0]==="enter"&&(We&&!ut&&!le&&!st&&(st=re),ut=void 0):fe[1].type==="linePrefix"||fe[1].type==="listItemValue"||fe[1].type==="listItemMarker"||fe[1].type==="listItemPrefix"||fe[1].type==="listItemPrefixWhitespace"||(ut=void 0),!le&&fe[0]==="enter"&&fe[1].type==="listItemPrefix"||le===-1&&fe[0]==="exit"&&(fe[1].type==="listUnordered"||fe[1].type==="listOrdered")){if(We){let Nt=re;for(je=void 0;Nt--;){const Ne=E[Nt];if(Ne[1].type==="lineEnding"||Ne[1].type==="lineEndingBlank"){if(Ne[0]==="exit")continue;je&&(E[je][1].type="lineEndingBlank",Pe=!0),Ne[1].type="lineEnding",je=Nt}else if(!(Ne[1].type==="linePrefix"||Ne[1].type==="blockQuotePrefix"||Ne[1].type==="blockQuotePrefixWhitespace"||Ne[1].type==="blockQuoteMarker"||Ne[1].type==="listItemIndent"))break}st&&(!je||st<je)&&(We._spread=!0),We.end=Object.assign({},je?E[je][1].start:fe[1].end),E.splice(je||re,0,["exit",We,fe[2]]),re++,W++}fe[1].type==="listItemPrefix"&&(We={type:"listItem",_spread:!1,start:Object.assign({},fe[1].start),end:void 0},E.splice(re,0,["enter",We,fe[2]]),re++,W++,st=void 0,ut=!0)}}return E[L][1]._spread=Pe,W}function l(E,L){n[E]=L}function o(E){return n[E]}function a(E,L){return W;function W(re){c.call(this,E(re),re),L&&L.call(this,re)}}function s(){this.stack.push({type:"fragment",children:[]})}function c(E,L,W){return this.stack[this.stack.length-1].children.push(E),this.stack.push(E),this.tokenStack.push([L,W]),E.position={start:qe(L.start)},E}function f(E){return L;function L(W){E&&E.call(this,W),u.call(this,W)}}function u(E,L){const W=this.stack.pop(),re=this.tokenStack.pop();if(re)re[0].type!==E.type&&(L?L.call(this,E,re[0]):(re[1]||gr).call(this,E,re[0]));else throw new Error("Cannot close `"+E.type+"` ("+pt({start:E.start,end:E.end})+"): it’s not open");return W.position.end=qe(E.end),W}function m(){return ds(this.stack.pop())}function p(){l("expectingFirstListItemValue",!0)}function h(E){if(o("expectingFirstListItemValue")){const L=this.stack[this.stack.length-2];L.start=Number.parseInt(this.sliceSerialize(E),10),l("expectingFirstListItemValue")}}function y(){const E=this.resume(),L=this.stack[this.stack.length-1];L.lang=E}function S(){const E=this.resume(),L=this.stack[this.stack.length-1];L.meta=E}function b(){o("flowCodeInside")||(this.buffer(),l("flowCodeInside",!0))}function v(){const E=this.resume(),L=this.stack[this.stack.length-1];L.value=E.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),l("flowCodeInside")}function C(){const E=this.resume(),L=this.stack[this.stack.length-1];L.value=E.replace(/(\r?\n|\r)$/g,"")}function I(E){const L=this.resume(),W=this.stack[this.stack.length-1];W.label=L,W.identifier=Te(this.sliceSerialize(E)).toLowerCase()}function T(){const E=this.resume(),L=this.stack[this.stack.length-1];L.title=E}function x(){const E=this.resume(),L=this.stack[this.stack.length-1];L.url=E}function $(E){const L=this.stack[this.stack.length-1];if(!L.depth){const W=this.sliceSerialize(E).length;L.depth=W}}function F(){l("setextHeadingSlurpLineEnding",!0)}function P(E){const L=this.stack[this.stack.length-1];L.depth=this.sliceSerialize(E).charCodeAt(0)===61?1:2}function w(){l("setextHeadingSlurpLineEnding")}function O(E){const L=this.stack[this.stack.length-1];let W=L.children[L.children.length-1];(!W||W.type!=="text")&&(W=at(),W.position={start:qe(E.start)},L.children.push(W)),this.stack.push(W)}function A(E){const L=this.stack.pop();L.value+=this.sliceSerialize(E),L.position.end=qe(E.end)}function D(E){const L=this.stack[this.stack.length-1];if(o("atHardBreak")){const W=L.children[L.children.length-1];W.position.end=qe(E.end),l("atHardBreak");return}!o("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(L.type)&&(O.call(this,E),A.call(this,E))}function N(){l("atHardBreak",!0)}function M(){const E=this.resume(),L=this.stack[this.stack.length-1];L.value=E}function Q(){const E=this.resume(),L=this.stack[this.stack.length-1];L.value=E}function q(){const E=this.resume(),L=this.stack[this.stack.length-1];L.value=E}function J(){const E=this.stack[this.stack.length-1];if(o("inReference")){const L=o("referenceType")||"shortcut";E.type+="Reference",E.referenceType=L,delete E.url,delete E.title}else delete E.identifier,delete E.label;l("referenceType")}function G(){const E=this.stack[this.stack.length-1];if(o("inReference")){const L=o("referenceType")||"shortcut";E.type+="Reference",E.referenceType=L,delete E.url,delete E.title}else delete E.identifier,delete E.label;l("referenceType")}function d(E){const L=this.sliceSerialize(E),W=this.stack[this.stack.length-2];W.label=Ci(L),W.identifier=Te(L).toLowerCase()}function j(){const E=this.stack[this.stack.length-1],L=this.resume(),W=this.stack[this.stack.length-1];if(l("inReference",!0),W.type==="link"){const re=E.children;W.children=re}else W.alt=L}function R(){const E=this.resume(),L=this.stack[this.stack.length-1];L.url=E}function g(){const E=this.resume(),L=this.stack[this.stack.length-1];L.title=E}function V(){l("inReference")}function Z(){l("referenceType","collapsed")}function B(E){const L=this.resume(),W=this.stack[this.stack.length-1];W.label=L,W.identifier=Te(this.sliceSerialize(E)).toLowerCase(),l("referenceType","full")}function H(E){l("characterReferenceType",E.type)}function K(E){const L=this.sliceSerialize(E),W=o("characterReferenceType");let re;W?(re=wi(L,W==="characterReferenceMarkerNumeric"?10:16),l("characterReferenceType")):re=Sn(L);const le=this.stack.pop();le.value+=re,le.position.end=qe(E.end)}function te(E){A.call(this,E);const L=this.stack[this.stack.length-1];L.url=this.sliceSerialize(E)}function ne(E){A.call(this,E);const L=this.stack[this.stack.length-1];L.url="mailto:"+this.sliceSerialize(E)}function de(){return{type:"blockquote",children:[]}}function ke(){return{type:"code",lang:null,meta:null,value:""}}function ze(){return{type:"inlineCode",value:""}}function Me(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ue(){return{type:"emphasis",children:[]}}function be(){return{type:"heading",depth:void 0,children:[]}}function Ze(){return{type:"break"}}function we(){return{type:"html",value:""}}function Re(){return{type:"image",title:null,url:"",alt:null}}function Xe(){return{type:"link",title:null,url:"",children:[]}}function ae(E){return{type:"list",ordered:E.type==="listOrdered",start:null,spread:E._spread,children:[]}}function pe(E){return{type:"listItem",spread:E._spread,checked:null,children:[]}}function ge(){return{type:"paragraph",children:[]}}function Ve(){return{type:"strong",children:[]}}function at(){return{type:"text",value:""}}function et(){return{type:"thematicBreak"}}}function qe(e){return{line:e.line,column:e.column,offset:e.offset}}function vi(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?vi(e,r):mc(e,r)}}function mc(e,t){let n;for(n in t)if(Si.call(t,n)){if(n==="canContainEols"){const r=t[n];r&&e[n].push(...r)}else if(n==="transforms"){const r=t[n];r&&e[n].push(...r)}else if(n==="enter"||n==="exit"){const r=t[n];r&&Object.assign(e[n],r)}}}function gr(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+pt({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+pt({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+pt({start:t.start,end:t.end})+") is still open")}function dc(e){Object.assign(this,{Parser:n=>{const r=this.data("settings");return pc(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function gc(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 yc(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
`}]}function bc(e,t){const n=t.value?t.value+`
`:"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,i={};r&&(i.className=["language-"+r]);let l={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function xc(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function kc(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function lt(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const l=e.charCodeAt(n);let o="";if(l===37&&ye(e.charCodeAt(n+1))&&ye(e.charCodeAt(n+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const a=e.charCodeAt(n+1);l<56320&&a>56319&&a<57344?(o=String.fromCharCode(l,a),i=1):o="�"}else o=String.fromCharCode(l);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Ei(e,t){const n=String(t.identifier).toUpperCase(),r=lt(n.toLowerCase()),i=e.footnoteOrder.indexOf(n);let l;i===-1?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,l=e.footnoteOrder.length):(e.footnoteCounts[n]++,l=i+1);const o=e.footnoteCounts[n],a={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,a);const s={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(t,s),e.applyData(t,s)}function wc(e,t){const n=e.footnoteById;let r=1;for(;r in n;)r++;const i=String(r);return n[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position},Ei(e,{type:"footnoteReference",identifier:i,position:t.position})}function Cc(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Sc(e,t){if(e.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null}function $i(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return{type:"text",value:"!["+t.alt+r};const i=e.all(t),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function vc(e,t){const n=e.definition(t.identifier);if(!n)return $i(e,t);const r={src:lt(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function Ec(e,t){const n={src:lt(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function $c(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Ic(e,t){const n=e.definition(t.identifier);if(!n)return $i(e,t);const r={href:lt(n.url||"")};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Oc(e,t){const n={href:lt(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Fc(e,t,n){const r=e.all(t),i=n?Pc(n):Ii(t),l={},o=[];if(typeof t.checked=="boolean"){const f=r[0];let u;f&&f.type==="element"&&f.tagName==="p"?u=f:(u={type:"element",tagName:"p",properties:{},children:[]},r.unshift(u)),u.children.length>0&&u.children.unshift({type:"text",value:" "}),u.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const f=r[a];(i||a!==0||f.type!=="element"||f.tagName!=="p")&&o.push({type:"text",value:`
`}),f.type==="element"&&f.tagName==="p"&&!i?o.push(...f.children):o.push(f)}const s=r[r.length-1];s&&(i||s.type!=="element"||s.tagName!=="p")&&o.push({type:"text",value:`
`});const c={type:"element",tagName:"li",properties:l,children:o};return e.patch(t,c),e.applyData(t,c)}function Pc(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Ii(n[r])}return t}function Ii(e){const t=e.spread;return t??e.children.length>1}function Ac(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,l),e.applyData(t,l)}function Tc(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function zc(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Lc(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const En=Oi("start"),$n=Oi("end");function Dc(e){return{start:En(e),end:$n(e)}}function Oi(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};return{line:r.line||null,column:r.column||null,offset:r.offset>-1?r.offset:null}}}function Mc(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=En(t.children[1]),s=$n(t.children[t.children.length-1]);a.line&&s.line&&(o.position={start:a,end:s}),i.push(o)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)}function Rc(e,t,n){const r=n?n.children:void 0,l=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,a=o?o.length:t.children.length;let s=-1;const c=[];for(;++s<a;){const u=t.children[s],m={},p=o?o[s]:void 0;p&&(m.align=p);let h={type:"element",tagName:l,properties:m,children:[]};u&&(h.children=e.all(u),e.patch(u,h),h=e.applyData(t,h)),c.push(h)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,f),e.applyData(t,f)}function jc(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const yr=9,br=32;function Nc(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const l=[];for(;r;)l.push(xr(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(xr(t.slice(i),i>0,!1)),l.join("")}function xr(e,t,n){let r=0,i=e.length;if(t){let l=e.codePointAt(r);for(;l===yr||l===br;)r++,l=e.codePointAt(r)}if(n){let l=e.codePointAt(i-1);for(;l===yr||l===br;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Bc(e,t){const n={type:"text",value:Nc(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function _c(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Hc={blockquote:gc,break:yc,code:bc,delete:xc,emphasis:kc,footnoteReference:Ei,footnote:wc,heading:Cc,html:Sc,imageReference:vc,image:Ec,inlineCode:$c,linkReference:Ic,link:Oc,listItem:Fc,list:Ac,paragraph:Tc,root:zc,strong:Lc,table:Mc,tableCell:jc,tableRow:Rc,text:Bc,thematicBreak:_c,toml:kt,yaml:kt,definition:kt,footnoteDefinition:kt};function kt(){return null}const In=function(e){if(e==null)return Uc;if(typeof e=="string")return qc(e);if(typeof e=="object")return Array.isArray(e)?Vc(e):Wc(e);if(typeof e=="function")return Rt(e);throw new Error("Expected function, string, or object as test")};function Vc(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=In(e[n]);return Rt(r);function r(...i){let l=-1;for(;++l<t.length;)if(t[l].call(this,...i))return!0;return!1}}function Wc(e){return Rt(t);function t(n){let r;for(r in e)if(n[r]!==e[r])return!1;return!0}}function qc(e){return Rt(t);function t(n){return n&&n.type===e}}function Rt(e){return t;function t(n,...r){return!!(n&&typeof n=="object"&&"type"in n&&e.call(this,n,...r))}}function Uc(){return!0}const Gc=!0,kr=!1,Xc="skip",Fi=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null);const i=In(t),l=r?-1:1;o(e,void 0,[])();function o(a,s,c){const f=a&&typeof a=="object"?a:{};if(typeof f.type=="string"){const m=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(u,"name",{value:"node ("+(a.type+(m?"<"+m+">":""))+")"})}return u;function u(){let m=[],p,h,y;if((!t||i(a,s,c[c.length-1]||null))&&(m=Qc(n(a,c)),m[0]===kr))return m;if(a.children&&m[0]!==Xc)for(h=(r?a.children.length:-1)+l,y=c.concat(a);h>-1&&h<a.children.length;){if(p=o(a.children[h],h,y)(),p[0]===kr)return p;h=typeof p[1]=="number"?p[1]:h+l}return m}}};function Qc(e){return Array.isArray(e)?e:typeof e=="number"?[Gc,e]:[e]}const On=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null),Fi(e,t,i,r);function i(l,o){const a=o[o.length-1];return n(l,a?a.children.indexOf(l):null,a)}};function Kc(e){return!e||!e.position||!e.position.start||!e.position.start.line||!e.position.start.column||!e.position.end||!e.position.end.line||!e.position.end.column}const wr={}.hasOwnProperty;function Yc(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return On(e,"definition",r=>{const i=Cr(r.identifier);i&&!wr.call(t,i)&&(t[i]=r)}),n;function n(r){const i=Cr(r);return i&&wr.call(t,i)?t[i]:null}}function Cr(e){return String(e||"").toUpperCase()}const Pt={}.hasOwnProperty;function Jc(e,t){const n=t||{},r=n.allowDangerousHtml||!1,i={};return o.dangerous=r,o.clobberPrefix=n.clobberPrefix===void 0||n.clobberPrefix===null?"user-content-":n.clobberPrefix,o.footnoteLabel=n.footnoteLabel||"Footnotes",o.footnoteLabelTagName=n.footnoteLabelTagName||"h2",o.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},o.footnoteBackLabel=n.footnoteBackLabel||"Back to content",o.unknownHandler=n.unknownHandler,o.passThrough=n.passThrough,o.handlers={...Hc,...n.handlers},o.definition=Yc(e),o.footnoteById=i,o.footnoteOrder=[],o.footnoteCounts={},o.patch=Zc,o.applyData=ef,o.one=a,o.all=s,o.wrap=nf,o.augment=l,On(e,"footnoteDefinition",c=>{const f=String(c.identifier).toUpperCase();Pt.call(i,f)||(i[f]=c)}),o;function l(c,f){if(c&&"data"in c&&c.data){const u=c.data;u.hName&&(f.type!=="element"&&(f={type:"element",tagName:"",properties:{},children:[]}),f.tagName=u.hName),f.type==="element"&&u.hProperties&&(f.properties={...f.properties,...u.hProperties}),"children"in f&&f.children&&u.hChildren&&(f.children=u.hChildren)}if(c){const u="type"in c?c:{position:c};Kc(u)||(f.position={start:En(u),end:$n(u)})}return f}function o(c,f,u,m){return Array.isArray(u)&&(m=u,u={}),l(c,{type:"element",tagName:f,properties:u||{},children:m||[]})}function a(c,f){return Pi(o,c,f)}function s(c){return Fn(o,c)}}function Zc(e,t){e.position&&(t.position=Dc(e))}function ef(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,l=e.data.hProperties;typeof r=="string"&&(n.type==="element"?n.tagName=r:n={type:"element",tagName:r,properties:{},children:[]}),n.type==="element"&&l&&(n.properties={...n.properties,...l}),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function Pi(e,t,n){const r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return Pt.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:Fn(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):tf(e,t)}function Fn(e,t){const n=[];if("children"in t){const r=t.children;let i=-1;for(;++i<r.length;){const l=Pi(e,r[i],t);if(l){if(i&&r[i-1].type==="break"&&(!Array.isArray(l)&&l.type==="text"&&(l.value=l.value.replace(/^\s+/,"")),!Array.isArray(l)&&l.type==="element")){const o=l.children[0];o&&o.type==="text"&&(o.value=o.value.replace(/^\s+/,""))}Array.isArray(l)?n.push(...l):n.push(l)}}}return n}function tf(e,t){const n=t.data||{},r="value"in t&&!(Pt.call(n,"hProperties")||Pt.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:Fn(e,t)};return e.patch(t,r),e.applyData(t,r)}function nf(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
`});++r<e.length;)r&&n.push({type:"text",value:`
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
`}),n}function rf(e){const t=[];let n=-1;for(;++n<e.footnoteOrder.length;){const r=e.footnoteById[e.footnoteOrder[n]];if(!r)continue;const i=e.all(r),l=String(r.identifier).toUpperCase(),o=lt(l.toLowerCase());let a=0;const s=[];for(;++a<=e.footnoteCounts[l];){const u={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+o+(a>1?"-"+a:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};a>1&&u.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(a)}]}),s.length>0&&s.push({type:"text",value:" "}),s.push(u)}const c=i[i.length-1];if(c&&c.type==="element"&&c.tagName==="p"){const u=c.children[c.children.length-1];u&&u.type==="text"?u.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...s)}else i.push(...s);const f={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+o},children:e.wrap(i,!0)};e.patch(r,f),t.push(f)}if(t.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:`
`}]}}function Ai(e,t){const n=Jc(e,t),r=n.one(e,null),i=rf(n);return i&&r.children.push({type:"text",value:`
`},i),Array.isArray(r)?{type:"root",children:r}:r}const lf=function(e,t){return e&&"run"in e?af(e,t):sf(e||t)},of=lf;function af(e,t){return(n,r,i)=>{e.run(Ai(n,t),r,l=>{i(l)})}}function sf(e){return t=>Ai(t,e)}class yt{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}yt.prototype.property={};yt.prototype.normal={};yt.prototype.space=null;function Ti(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new yt(n,r,t)}function cn(e){return e.toLowerCase()}class Fe{constructor(t,n){this.property=t,this.attribute=n}}Fe.prototype.space=null;Fe.prototype.boolean=!1;Fe.prototype.booleanish=!1;Fe.prototype.overloadedBoolean=!1;Fe.prototype.number=!1;Fe.prototype.commaSeparated=!1;Fe.prototype.spaceSeparated=!1;Fe.prototype.commaOrSpaceSeparated=!1;Fe.prototype.mustUseProperty=!1;Fe.prototype.defined=!1;let uf=0;const X=Je(),he=Je(),zi=Je(),z=Je(),se=Je(),nt=Je(),ve=Je();function Je(){return 2**++uf}const fn=Object.freeze(Object.defineProperty({__proto__:null,boolean:X,booleanish:he,commaOrSpaceSeparated:ve,commaSeparated:nt,number:z,overloadedBoolean:zi,spaceSeparated:se},Symbol.toStringTag,{value:"Module"})),Kt=Object.keys(fn);class Pn extends Fe{constructor(t,n,r,i){let l=-1;if(super(t,n),Sr(this,"space",i),typeof r=="number")for(;++l<Kt.length;){const o=Kt[l];Sr(this,Kt[l],(r&fn[o])===fn[o])}}}Pn.prototype.defined=!0;function Sr(e,t,n){n&&(e[t]=n)}const cf={}.hasOwnProperty;function ot(e){const t={},n={};let r;for(r in e.properties)if(cf.call(e.properties,r)){const i=e.properties[r],l=new Pn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[cn(r)]=r,n[cn(l.attribute)]=r}return new yt(t,n,e.space)}const Li=ot({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Di=ot({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Mi(e,t){return t in e?e[t]:t}function Ri(e,t){return Mi(e,t.toLowerCase())}const ji=ot({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Ri,properties:{xmlns:null,xmlnsXLink:null}}),Ni=ot({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:he,ariaAutoComplete:null,ariaBusy:he,ariaChecked:he,ariaColCount:z,ariaColIndex:z,ariaColSpan:z,ariaControls:se,ariaCurrent:null,ariaDescribedBy:se,ariaDetails:null,ariaDisabled:he,ariaDropEffect:se,ariaErrorMessage:null,ariaExpanded:he,ariaFlowTo:se,ariaGrabbed:he,ariaHasPopup:null,ariaHidden:he,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:se,ariaLevel:z,ariaLive:null,ariaModal:he,ariaMultiLine:he,ariaMultiSelectable:he,ariaOrientation:null,ariaOwns:se,ariaPlaceholder:null,ariaPosInSet:z,ariaPressed:he,ariaReadOnly:he,ariaRelevant:null,ariaRequired:he,ariaRoleDescription:se,ariaRowCount:z,ariaRowIndex:z,ariaRowSpan:z,ariaSelected:he,ariaSetSize:z,ariaSort:null,ariaValueMax:z,ariaValueMin:z,ariaValueNow:z,ariaValueText:null,role:null}}),ff=ot({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Ri,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:nt,acceptCharset:se,accessKey:se,action:null,allow:null,allowFullScreen:X,allowPaymentRequest:X,allowUserMedia:X,alt:null,as:null,async:X,autoCapitalize:null,autoComplete:se,autoFocus:X,autoPlay:X,capture:X,charSet:null,checked:X,cite:null,className:se,cols:z,colSpan:null,content:null,contentEditable:he,controls:X,controlsList:se,coords:z|nt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:X,defer:X,dir:null,dirName:null,disabled:X,download:zi,draggable:he,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:X,formTarget:null,headers:se,height:z,hidden:X,high:z,href:null,hrefLang:null,htmlFor:se,httpEquiv:se,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:X,itemId:null,itemProp:se,itemRef:se,itemScope:X,itemType:se,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:X,low:z,manifest:null,max:null,maxLength:z,media:null,method:null,min:null,minLength:z,multiple:X,muted:X,name:null,nonce:null,noModule:X,noValidate:X,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint: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:X,optimum:z,pattern:null,ping:se,placeholder:null,playsInline:X,poster:null,preload:null,readOnly:X,referrerPolicy:null,rel:se,required:X,reversed:X,rows:z,rowSpan:z,sandbox:se,scope:null,scoped:X,seamless:X,selected:X,shape:null,size:z,sizes:null,slot:null,span:z,spellCheck:he,src:null,srcDoc:null,srcLang:null,srcSet:null,start:z,step:null,style:null,tabIndex:z,target:null,title:null,translate:null,type:null,typeMustMatch:X,useMap:null,value:he,width:z,wrap:null,align:null,aLink:null,archive:se,axis:null,background:null,bgColor:null,border:z,borderColor:null,bottomMargin:z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:X,declare:X,event:null,face:null,frame:null,frameBorder:null,hSpace:z,leftMargin:z,link:null,longDesc:null,lowSrc:null,marginHeight:z,marginWidth:z,noResize:X,noHref:X,noShade:X,noWrap:X,object:null,profile:null,prompt:null,rev:null,rightMargin:z,rules:null,scheme:null,scrolling:he,standby:null,summary:null,text:null,topMargin:z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:z,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:X,disableRemotePlayback:X,prefix:null,property:null,results:z,security:null,unselectable:null}}),pf=ot({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Mi,properties:{about:ve,accentHeight:z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:z,amplitude:z,arabicForm:null,ascent:z,attributeName:null,attributeType:null,azimuth:z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:z,by:null,calcMode:null,capHeight:z,className:se,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:z,diffuseConstant:z,direction:null,display:null,dur:null,divisor:z,dominantBaseline:null,download:X,dx:null,dy:null,edgeMode:null,editable:null,elevation:z,enableBackground:null,end:null,event:null,exponent:z,externalResourcesRequired:null,fill:null,fillOpacity:z,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:nt,g2:nt,glyphName:nt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:z,horizOriginX:z,horizOriginY:z,id:null,ideographic:z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:z,k:z,k1:z,k2:z,k3:z,k4:z,kernelMatrix:ve,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:z,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:z,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:z,overlineThickness:z,paintOrder:null,panose1:null,path:null,pathLength:z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:se,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:z,pointsAtY:z,pointsAtZ:z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ve,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ve,rev:ve,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ve,requiredFeatures:ve,requiredFonts:ve,requiredFormats:ve,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:z,specularExponent:z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:z,strikethroughThickness:z,string:null,stroke:null,strokeDashArray:ve,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:z,strokeOpacity:z,strokeWidth:null,style:null,surfaceScale:z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ve,tabIndex:z,tableValues:null,target:null,targetX:z,targetY:z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ve,to:null,transform:null,u1:null,u2:null,underlinePosition:z,underlineThickness:z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:z,values:null,vAlphabetic:z,vMathematical:z,vectorEffect:null,vHanging:z,vIdeographic:z,version:null,vertAdvY:z,vertOriginX:z,vertOriginY:z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),hf=/^data[-\w.:]+$/i,vr=/-[a-z]/g,mf=/[A-Z]/g;function df(e,t){const n=cn(t);let r=t,i=Fe;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&hf.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(vr,yf);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!vr.test(l)){let o=l.replace(mf,gf);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=Pn}return new i(r,t)}function gf(e){return"-"+e.toLowerCase()}function yf(e){return e.charAt(1).toUpperCase()}const Er={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"},bf=Ti([Di,Li,ji,Ni,ff],"html"),xf=Ti([Di,Li,ji,Ni,pf],"svg");function kf(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{On(t,"element",(n,r,i)=>{const l=i;let o;if(e.allowedElements?o=!e.allowedElements.includes(n.tagName):e.disallowedElements&&(o=e.disallowedElements.includes(n.tagName)),!o&&e.allowElement&&typeof r=="number"&&(o=!e.allowElement(n,r,l)),o&&typeof r=="number")return e.unwrapDisallowed&&n.children?l.children.splice(r,1,...n.children):l.children.splice(r,1),r})}}function wf(e){const t=e&&typeof e=="object"&&e.type==="text"?e.value||"":e;return typeof t=="string"&&t.replace(/[ \t\n\f\r]/g,"")===""}function Cf(e){return e.join(" ").trim()}function Sf(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}var An={exports:{}},$r=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,vf=/\n/g,Ef=/^\s*/,$f=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,If=/^:\s*/,Of=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ff=/^[;\s]*/,Pf=/^\s+|\s+$/g,Af=`
`,Ir="/",Or="*",Ke="",Tf="comment",zf="declaration",Lf=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(h){var y=h.match(vf);y&&(n+=y.length);var S=h.lastIndexOf(Af);r=~S?h.length-S:r+h.length}function l(){var h={line:n,column:r};return function(y){return y.position=new o(h),c(),y}}function o(h){this.start=h,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function a(h){var y=new Error(t.source+":"+n+":"+r+": "+h);if(y.reason=h,y.filename=t.source,y.line=n,y.column=r,y.source=e,!t.silent)throw y}function s(h){var y=h.exec(e);if(y){var S=y[0];return i(S),e=e.slice(S.length),y}}function c(){s(Ef)}function f(h){var y;for(h=h||[];y=u();)y!==!1&&h.push(y);return h}function u(){var h=l();if(!(Ir!=e.charAt(0)||Or!=e.charAt(1))){for(var y=2;Ke!=e.charAt(y)&&(Or!=e.charAt(y)||Ir!=e.charAt(y+1));)++y;if(y+=2,Ke===e.charAt(y-1))return a("End of comment missing");var S=e.slice(2,y-2);return r+=2,i(S),e=e.slice(y),r+=2,h({type:Tf,comment:S})}}function m(){var h=l(),y=s($f);if(y){if(u(),!s(If))return a("property missing ':'");var S=s(Of),b=h({type:zf,property:Fr(y[0].replace($r,Ke)),value:S?Fr(S[0].replace($r,Ke)):Ke});return s(Ff),b}}function p(){var h=[];f(h);for(var y;y=m();)y!==!1&&(h.push(y),f(h));return h}return c(),p()};function Fr(e){return e?e.replace(Pf,Ke):Ke}var Df=Lf;function Bi(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,i=Df(e),l=typeof t=="function",o,a,s=0,c=i.length;s<c;s++)r=i[s],o=r.property,a=r.value,l?t(o,a,r):a&&(n||(n={}),n[o]=a);return n}An.exports=Bi;An.exports.default=Bi;var Mf=An.exports;const Rf=xn(Mf),pn={}.hasOwnProperty,jf=new Set(["table","thead","tbody","tfoot","tr"]);function _i(e,t){const n=[];let r=-1,i;for(;++r<t.children.length;)i=t.children[r],i.type==="element"?n.push(Nf(e,i,r,t)):i.type==="text"?(t.type!=="element"||!jf.has(t.tagName)||!wf(i))&&n.push(i.value):i.type==="raw"&&!e.options.skipHtml&&n.push(i.value);return n}function Nf(e,t,n,r){const i=e.options,l=i.transformLinkUri===void 0?Xa:i.transformLinkUri,o=e.schema,a=t.tagName,s={};let c=o,f;if(o.space==="html"&&a==="svg"&&(c=xf,e.schema=c),t.properties)for(f in t.properties)pn.call(t.properties,f)&&_f(s,f,t.properties[f],e);(a==="ol"||a==="ul")&&e.listDepth++;const u=_i(e,t);(a==="ol"||a==="ul")&&e.listDepth--,e.schema=o;const m=t.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},p=i.components&&pn.call(i.components,a)?i.components[a]:a,h=typeof p=="string"||p===me.Fragment;if(!Bl.isValidElementType(p))throw new TypeError(`Component for name \`${a}\` not defined or is not renderable`);if(s.key=n,a==="a"&&i.linkTarget&&(s.target=typeof i.linkTarget=="function"?i.linkTarget(String(s.href||""),t.children,typeof s.title=="string"?s.title:null):i.linkTarget),a==="a"&&l&&(s.href=l(String(s.href||""),t.children,typeof s.title=="string"?s.title:null)),!h&&a==="code"&&r.type==="element"&&r.tagName!=="pre"&&(s.inline=!0),!h&&(a==="h1"||a==="h2"||a==="h3"||a==="h4"||a==="h5"||a==="h6")&&(s.level=Number.parseInt(a.charAt(1),10)),a==="img"&&i.transformImageUri&&(s.src=i.transformImageUri(String(s.src||""),String(s.alt||""),typeof s.title=="string"?s.title:null)),!h&&a==="li"&&r.type==="element"){const y=Bf(t);s.checked=y&&y.properties?!!y.properties.checked:null,s.index=Yt(r,t),s.ordered=r.tagName==="ol"}return!h&&(a==="ol"||a==="ul")&&(s.ordered=a==="ol",s.depth=e.listDepth),(a==="td"||a==="th")&&(s.align&&(s.style||(s.style={}),s.style.textAlign=s.align,delete s.align),h||(s.isHeader=a==="th")),!h&&a==="tr"&&r.type==="element"&&(s.isHeader=r.tagName==="thead"),i.sourcePos&&(s["data-sourcepos"]=Wf(m)),!h&&i.rawSourcePos&&(s.sourcePosition=t.position),!h&&i.includeElementIndex&&(s.index=Yt(r,t),s.siblingCount=Yt(r)),h||(s.node=t),u.length>0?me.createElement(p,s,u):me.createElement(p,s)}function Bf(e){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n.type==="element"&&n.tagName==="input")return n}return null}function Yt(e,t){let n=-1,r=0;for(;++n<e.children.length&&e.children[n]!==t;)e.children[n].type==="element"&&r++;return r}function _f(e,t,n,r){const i=df(r.schema,t);let l=n;l==null||l!==l||(Array.isArray(l)&&(l=i.commaSeparated?Sf(l):Cf(l)),i.property==="style"&&typeof l=="string"&&(l=Hf(l)),i.space&&i.property?e[pn.call(Er,i.property)?Er[i.property]:i.property]=l:i.attribute&&(e[i.attribute]=l))}function Hf(e){const t={};try{Rf(e,n)}catch{}return t;function n(r,i){const l=r.slice(0,4)==="-ms-"?`ms-${r.slice(4)}`:r;t[l.replace(/-([a-z])/g,Vf)]=i}}function Vf(e,t){return t.toUpperCase()}function Wf(e){return[e.start.line,":",e.start.column,"-",e.end.line,":",e.end.column].map(String).join("")}const Pr={}.hasOwnProperty,qf="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",wt={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function Hi(e){for(const l in wt)if(Pr.call(wt,l)&&Pr.call(e,l)){const o=wt[l];console.warn(`[react-markdown] Warning: please ${o.to?`use \`${o.to}\` instead of`:"remove"} \`${l}\` (see <${qf}#${o.id}> for more info)`),delete wt[l]}const t=cs().use(dc).use(e.remarkPlugins||[]).use(of,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(kf,e),n=new oi;typeof e.children=="string"?n.value=e.children:e.children!==void 0&&e.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=t.runSync(t.parse(n),n);if(r.type!=="root")throw new TypeError("Expected a `root` node");let i=me.createElement(me.Fragment,{},_i({options:e,schema:bf,listDepth:0},r));return e.className&&(i=me.createElement("div",{className:e.className},i)),i}Hi.propTypes={children:U.string,className:U.string,allowElement:U.func,allowedElements:U.arrayOf(U.string),disallowedElements:U.arrayOf(U.string),unwrapDisallowed:U.bool,remarkPlugins:U.arrayOf(U.oneOfType([U.object,U.func,U.arrayOf(U.oneOfType([U.bool,U.string,U.object,U.func,U.arrayOf(U.any)]))])),rehypePlugins:U.arrayOf(U.oneOfType([U.object,U.func,U.arrayOf(U.oneOfType([U.bool,U.string,U.object,U.func,U.arrayOf(U.any)]))])),sourcePos:U.bool,rawSourcePos:U.bool,skipHtml:U.bool,includeElementIndex:U.bool,transformLinkUri:U.oneOfType([U.func,U.bool]),linkTarget:U.oneOfType([U.func,U.string]),transformImageUri:U.func,components:U.object};const Uf={tokenize:Jf,partial:!0},Vi={tokenize:Zf,partial:!0},Wi={tokenize:ep,partial:!0},qi={tokenize:tp,partial:!0},Gf={tokenize:np,partial:!0},Ui={tokenize:Kf,previous:Xi},Gi={tokenize:Yf,previous:Qi},He={tokenize:Qf,previous:Ki},De={},Xf={text:De};let Qe=48;for(;Qe<123;)De[Qe]=He,Qe++,Qe===58?Qe=65:Qe===91&&(Qe=97);De[43]=He;De[45]=He;De[46]=He;De[95]=He;De[72]=[He,Gi];De[104]=[He,Gi];De[87]=[He,Ui];De[119]=[He,Ui];function Qf(e,t,n){const r=this;let i,l;return o;function o(u){return!hn(u)||!Ki.call(r,r.previous)||Tn(r.events)?n(u):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(u))}function a(u){return hn(u)?(e.consume(u),a):u===64?(e.consume(u),s):n(u)}function s(u){return u===46?e.check(Gf,f,c)(u):u===45||u===95||ye(u)?(l=!0,e.consume(u),s):f(u)}function c(u){return e.consume(u),i=!0,s}function f(u){return l&&i&&xe(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(u)):n(u)}}function Kf(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!Xi.call(r,r.previous)||Tn(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Uf,e.attempt(Vi,e.attempt(Wi,l),n),n)(o))}function l(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function Yf(e,t,n){const r=this;let i="",l=!1;return o;function o(u){return(u===72||u===104)&&Qi.call(r,r.previous)&&!Tn(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(u),e.consume(u),a):n(u)}function a(u){if(xe(u)&&i.length<5)return i+=String.fromCodePoint(u),e.consume(u),a;if(u===58){const m=i.toLowerCase();if(m==="http"||m==="https")return e.consume(u),s}return n(u)}function s(u){return u===47?(e.consume(u),l?c:(l=!0,s)):n(u)}function c(u){return u===null||Ot(u)||oe(u)||Ye(u)||Dt(u)?n(u):e.attempt(Vi,e.attempt(Wi,f),n)(u)}function f(u){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(u)}}function Jf(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),l):n(o)}function l(o){return o===null?n(o):t(o)}}function Zf(e,t,n){let r,i,l;return o;function o(c){return c===46||c===95?e.check(qi,s,a)(c):c===null||oe(c)||Ye(c)||c!==45&&Dt(c)?s(c):(l=!0,e.consume(c),o)}function a(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),o}function s(c){return i||r||!l?n(c):t(c)}}function ep(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?l(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(qi,t,l)(o):o===null||oe(o)||Ye(o)?t(o):(e.consume(o),i)}function l(o){return o===41&&r++,e.consume(o),i}}function tp(e,t,n){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),l):a===93?(e.consume(a),i):a===60||a===null||oe(a)||Ye(a)?t(a):n(a)}function i(a){return a===null||a===40||a===91||oe(a)||Ye(a)?t(a):r(a)}function l(a){return xe(a)?o(a):n(a)}function o(a){return a===59?(e.consume(a),r):xe(a)?(e.consume(a),o):n(a)}}function np(e,t,n){return r;function r(l){return e.consume(l),i}function i(l){return ye(l)?n(l):t(l)}}function Xi(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||oe(e)}function Qi(e){return!xe(e)}function Ki(e){return!(e===47||hn(e))}function hn(e){return e===43||e===45||e===46||e===95||ye(e)}function Tn(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const rp={tokenize:fp,partial:!0};function ip(){return{document:{91:{tokenize:sp,continuation:{tokenize:up},exit:cp}},text:{91:{tokenize:ap},93:{add:"after",tokenize:lp,resolveTo:op}}}}function lp(e,t,n){const r=this;let i=r.events.length;const l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const s=r.events[i][1];if(s.type==="labelImage"){o=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return a;function a(s){if(!o||!o._balanced)return n(s);const c=Te(r.sliceSerialize({start:o.end,end:r.now()}));return c.codePointAt(0)!==94||!l.includes(c.slice(1))?n(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),t(s))}}function op(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",l,t],["enter",o,t],["exit",o,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function ap(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l=0,o;return a;function a(u){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),s}function s(u){return u!==94?n(u):(e.enter("gfmFootnoteCallMarker"),e.consume(u),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(u){if(l>999||u===93&&!o||u===null||u===91||oe(u))return n(u);if(u===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return i.includes(Te(r.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(u)}return oe(u)||(o=!0),l++,e.consume(u),u===92?f:c}function f(u){return u===91||u===92||u===93?(e.consume(u),l++,c):c(u)}}function sp(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l,o=0,a;return s;function s(h){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(h){return h===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(h)}function f(h){if(o>999||h===93&&!a||h===null||h===91||oe(h))return n(h);if(h===93){e.exit("chunkString");const y=e.exit("gfmFootnoteDefinitionLabelString");return l=Te(r.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return oe(h)||(a=!0),o++,e.consume(h),h===92?u:f}function u(h){return h===91||h===92||h===93?(e.consume(h),o++,f):f(h)}function m(h){return h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),i.includes(l)||i.push(l),ee(e,p,"gfmFootnoteDefinitionWhitespace")):n(h)}function p(h){return t(h)}}function up(e,t,n){return e.check(gt,t,e.attempt(rp,t,n))}function cp(e){e.exit("gfmFootnoteDefinition")}function fp(e,t,n){const r=this;return ee(e,i,"gfmFootnoteDefinitionIndent",4+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(l):n(l)}}function pp(e){let n=(e||{}).singleTilde;const r={tokenize:l,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,a){let s=-1;for(;++s<o.length;)if(o[s][0]==="enter"&&o[s][1].type==="strikethroughSequenceTemporary"&&o[s][1]._close){let c=s;for(;c--;)if(o[c][0]==="exit"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._open&&o[s][1].end.offset-o[s][1].start.offset===o[c][1].end.offset-o[c][1].start.offset){o[s][1].type="strikethroughSequence",o[c][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},o[c][1].start),end:Object.assign({},o[s][1].end)},u={type:"strikethroughText",start:Object.assign({},o[c][1].end),end:Object.assign({},o[s][1].start)},m=[["enter",f,a],["enter",o[c][1],a],["exit",o[c][1],a],["enter",u,a]],p=a.parser.constructs.insideSpan.null;p&&Ee(m,m.length,0,Mt(p,o.slice(c+1,s),a)),Ee(m,m.length,0,[["exit",u,a],["enter",o[s][1],a],["exit",o[s][1],a],["exit",f,a]]),Ee(o,c-1,s-c+3,m),s=c+m.length-2;break}}for(s=-1;++s<o.length;)o[s][1].type==="strikethroughSequenceTemporary"&&(o[s][1].type="data");return o}function l(o,a,s){const c=this.previous,f=this.events;let u=0;return m;function m(h){return c===126&&f[f.length-1][1].type!=="characterEscape"?s(h):(o.enter("strikethroughSequenceTemporary"),p(h))}function p(h){const y=Ft(c);if(h===126)return u>1?s(h):(o.consume(h),u++,p);if(u<2&&!n)return s(h);const S=o.exit("strikethroughSequenceTemporary"),b=Ft(h);return S._open=!b||b===2&&!!y,S._close=!y||y===2&&!!b,a(h)}}}class hp{constructor(){this.map=[]}add(t,n,r){mp(this,t,n,r)}consume(t){if(this.map.sort((l,o)=>l[0]-o[0]),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1])),r.push(this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function mp(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function dp(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const l=r.length-1;r[l]=r[l]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}const gp={flow:{null:{tokenize:yp,resolveAll:bp}}};function yp(e,t,n){const r=this;let i=0,l=0,o;return a;function a(w){let O=r.events.length-1;for(;O>-1;){const N=r.events[O][1].type;if(N==="lineEnding"||N==="linePrefix")O--;else break}const A=O>-1?r.events[O][1].type:null,D=A==="tableHead"||A==="tableRow"?x:s;return D===x&&r.parser.lazy[r.now().line]?n(w):D(w)}function s(w){return e.enter("tableHead"),e.enter("tableRow"),c(w)}function c(w){return w===124||(o=!0,l+=1),f(w)}function f(w){return w===null?n(w):_(w)?l>1?(l=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),p):n(w):Y(w)?ee(e,f,"whitespace")(w):(l+=1,o&&(o=!1,i+=1),w===124?(e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),o=!0,f):(e.enter("data"),u(w)))}function u(w){return w===null||w===124||oe(w)?(e.exit("data"),f(w)):(e.consume(w),w===92?m:u)}function m(w){return w===92||w===124?(e.consume(w),u):u(w)}function p(w){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(w):(e.enter("tableDelimiterRow"),o=!1,Y(w)?ee(e,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):h(w))}function h(w){return w===45||w===58?S(w):w===124?(o=!0,e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),y):T(w)}function y(w){return Y(w)?ee(e,S,"whitespace")(w):S(w)}function S(w){return w===58?(l+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(w),e.exit("tableDelimiterMarker"),b):w===45?(l+=1,b(w)):w===null||_(w)?I(w):T(w)}function b(w){return w===45?(e.enter("tableDelimiterFiller"),v(w)):T(w)}function v(w){return w===45?(e.consume(w),v):w===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(w),e.exit("tableDelimiterMarker"),C):(e.exit("tableDelimiterFiller"),C(w))}function C(w){return Y(w)?ee(e,I,"whitespace")(w):I(w)}function I(w){return w===124?h(w):w===null||_(w)?!o||i!==l?T(w):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(w)):T(w)}function T(w){return n(w)}function x(w){return e.enter("tableRow"),$(w)}function $(w){return w===124?(e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),$):w===null||_(w)?(e.exit("tableRow"),t(w)):Y(w)?ee(e,$,"whitespace")(w):(e.enter("data"),F(w))}function F(w){return w===null||w===124||oe(w)?(e.exit("data"),$(w)):(e.consume(w),w===92?P:F)}function P(w){return w===92||w===124?(e.consume(w),F):F(w)}}function bp(e,t){let n=-1,r=!0,i=0,l=[0,0,0,0],o=[0,0,0,0],a=!1,s=0,c,f,u;const m=new hp;for(;++n<e.length;){const p=e[n],h=p[1];p[0]==="enter"?h.type==="tableHead"?(a=!1,s!==0&&(Ar(m,t,s,c,f),f=void 0,s=0),c={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},m.add(n,0,[["enter",c,t]])):h.type==="tableRow"||h.type==="tableDelimiterRow"?(r=!0,u=void 0,l=[0,0,0,0],o=[0,n+1,0,0],a&&(a=!1,f={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},m.add(n,0,[["enter",f,t]])),i=h.type==="tableDelimiterRow"?2:f?3:1):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(l[1]!==0&&(o[0]=o[1],u=Ct(m,t,l,i,void 0,u),l=[0,0,0,0]),o[2]=n)):h.type==="tableCellDivider"&&(r?r=!1:(l[1]!==0&&(o[0]=o[1],u=Ct(m,t,l,i,void 0,u)),l=o,o=[l[1],n,0,0])):h.type==="tableHead"?(a=!0,s=n):h.type==="tableRow"||h.type==="tableDelimiterRow"?(s=n,l[1]!==0?(o[0]=o[1],u=Ct(m,t,l,i,n,u)):o[1]!==0&&(u=Ct(m,t,o,i,n,u)),i=0):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")&&(o[3]=n)}for(s!==0&&Ar(m,t,s,c,f),m.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=dp(t.events,n))}return e}function Ct(e,t,n,r,i,l){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(l.end=Object.assign({},tt(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));const s=tt(t.events,n[1]);if(l={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",l,t]]),n[2]!==0){const c=tt(t.events,n[2]),f=tt(t.events,n[3]),u={type:a,start:Object.assign({},c),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",u,t]]),r!==2){const m=t.events[n[2]],p=t.events[n[3]];if(m[1].end=Object.assign({},p[1].end),m[1].type="chunkText",m[1].contentType="text",n[3]>n[2]+1){const h=n[2]+1,y=n[3]-n[2]-1;e.add(h,y,[])}}e.add(n[3]+1,0,[["exit",u,t]])}return i!==void 0&&(l.end=Object.assign({},tt(t.events,i)),e.add(i,0,[["exit",l,t]]),l=void 0),l}function Ar(e,t,n,r,i){const l=[],o=tt(t.events,n);i&&(i.end=Object.assign({},o),l.push(["exit",i,t])),r.end=Object.assign({},o),l.push(["exit",r,t]),e.add(n+1,0,l)}function tt(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const xp={tokenize:wp},kp={text:{91:xp}};function wp(e,t,n){const r=this;return i;function i(s){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),l)}function l(s){return oe(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),o):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),o):n(s)}function o(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(s)}function a(s){return _(s)?t(s):Y(s)?e.check({tokenize:Cp},t,n)(s):n(s)}}function Cp(e,t,n){return ee(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function Sp(e){return fi([Xf,ip(),pp(e),gp,kp])}function Tr(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function vp(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Ep={}.hasOwnProperty,$p=function(e,t,n,r){let i,l;typeof t=="string"||t instanceof RegExp?(l=[[t,n]],i=r):(l=t,i=n),i||(i={});const o=In(i.ignore||[]),a=Ip(l);let s=-1;for(;++s<a.length;)Fi(e,"text",c);return e;function c(u,m){let p=-1,h;for(;++p<m.length;){const y=m[p];if(o(y,h?h.children.indexOf(y):void 0,h))return;h=y}if(h)return f(u,m)}function f(u,m){const p=m[m.length-1],h=a[s][0],y=a[s][1];let S=0;const b=p.children.indexOf(u);let v=!1,C=[];h.lastIndex=0;let I=h.exec(u.value);for(;I;){const T=I.index,x={index:I.index,input:I.input,stack:[...m,u]};let $=y(...I,x);if(typeof $=="string"&&($=$.length>0?{type:"text",value:$}:void 0),$!==!1&&(S!==T&&C.push({type:"text",value:u.value.slice(S,T)}),Array.isArray($)?C.push(...$):$&&C.push($),S=T+I[0].length,v=!0),!h.global)break;I=h.exec(u.value)}return v?(S<u.value.length&&C.push({type:"text",value:u.value.slice(S)}),p.children.splice(b,1,...C)):C=[u],b+C.length}};function Ip(e){const t=[];if(typeof e!="object")throw new TypeError("Expected array or object as schema");if(Array.isArray(e)){let n=-1;for(;++n<e.length;)t.push([zr(e[n][0]),Lr(e[n][1])])}else{let n;for(n in e)Ep.call(e,n)&&t.push([zr(n),Lr(e[n])])}return t}function zr(e){return typeof e=="string"?new RegExp(vp(e),"g"):e}function Lr(e){return typeof e=="function"?e:()=>e}const Jt="phrasing",Zt=["autolink","link","image","label"],Op={transforms:[Dp],enter:{literalAutolink:Pp,literalAutolinkEmail:en,literalAutolinkHttp:en,literalAutolinkWww:en},exit:{literalAutolink:Lp,literalAutolinkEmail:zp,literalAutolinkHttp:Ap,literalAutolinkWww:Tp}},Fp={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Jt,notInConstruct:Zt},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Jt,notInConstruct:Zt},{character:":",before:"[ps]",after:"\\/",inConstruct:Jt,notInConstruct:Zt}]};function Pp(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function en(e){this.config.enter.autolinkProtocol.call(this,e)}function Ap(e){this.config.exit.autolinkProtocol.call(this,e)}function Tp(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function zp(e){this.config.exit.autolinkEmail.call(this,e)}function Lp(e){this.exit(e)}function Dp(e){$p(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Mp],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,Rp]],{ignore:["link","linkReference"]})}function Mp(e,t,n,r,i){let l="";if(!Yi(i)||(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!jp(n)))return!1;const o=Np(n+r);if(!o[0])return!1;const a={type:"link",title:null,url:l+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[a,{type:"text",value:o[1]}]:a}function Rp(e,t,n,r){return!Yi(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function jp(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Np(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Tr(e,"(");let l=Tr(e,")");for(;r!==-1&&i>l;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),l++;return[e,n]}function Yi(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Ye(n)||Dt(n))&&(!t||n!==47)}function Ji(e){return e.label||!e.identifier?e.label||"":Ci(e.identifier)}function Bp(e,t,n){const r=t.indexStack,i=e.children||[],l=t.createTracker(n),o=[];let a=-1;for(r.push(-1);++a<i.length;){const s=i[a];r[r.length-1]=a,o.push(l.move(t.handle(s,e,t,{before:`
`,after:`
`,...l.current()}))),s.type!=="list"&&(t.bulletLastUsed=void 0),a<i.length-1&&o.push(l.move(_p(s,i[a+1],e,t)))}return r.pop(),o.join("")}function _p(e,t,n,r){let i=r.join.length;for(;i--;){const l=r.join[i](e,t,n,r);if(l===!0||l===1)break;if(typeof l=="number")return`
`.repeat(1+l);if(l===!1)return`

<!---->

`}return`

`}const Hp=/\r?\n|\r/g;function Vp(e,t){const n=[];let r=0,i=0,l;for(;l=Hp.exec(e);)o(e.slice(r,l.index)),n.push(l[0]),r=l.index+l[0].length,i++;return o(e.slice(r)),n.join("");function o(a){n.push(t(a,i,!a))}}function Zi(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function Wp(e,t){return Dr(e,t.inConstruct,!0)&&!Dr(e,t.notInConstruct,!1)}function Dr(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function el(e,t,n){const r=(n.before||"")+(t||"")+(n.after||""),i=[],l=[],o={};let a=-1;for(;++a<e.unsafe.length;){const f=e.unsafe[a];if(!Wp(e.stack,f))continue;const u=Zi(f);let m;for(;m=u.exec(r);){const p="before"in f||!!f.atBreak,h="after"in f,y=m.index+(p?m[1].length:0);i.includes(y)?(o[y].before&&!p&&(o[y].before=!1),o[y].after&&!h&&(o[y].after=!1)):(i.push(y),o[y]={before:p,after:h})}}i.sort(qp);let s=n.before?n.before.length:0;const c=r.length-(n.after?n.after.length:0);for(a=-1;++a<i.length;){const f=i[a];f<s||f>=c||f+1<c&&i[a+1]===f+1&&o[f].after&&!o[f+1].before&&!o[f+1].after||i[a-1]===f-1&&o[f].before&&!o[f-1].before&&!o[f-1].after||(s!==f&&l.push(Mr(r.slice(s,f),"\\")),s=f,/[!-/:-@[-`{-~]/.test(r.charAt(f))&&(!n.encode||!n.encode.includes(r.charAt(f)))?l.push("\\"):(l.push("&#x"+r.charCodeAt(f).toString(16).toUpperCase()+";"),s++))}return l.push(Mr(r.slice(s,c),n.after)),l.join("")}function qp(e,t){return e-t}function Mr(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,r=[],i=[],l=e+t;let o=-1,a=0,s;for(;s=n.exec(l);)r.push(s.index);for(;++o<r.length;)a!==r[o]&&i.push(e.slice(a,r[o])),i.push("\\"),a=r[o];return i.push(e.slice(a)),i.join("")}function jt(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,i=n.line||1,l=n.column||1;return{move:s,current:o,shift:a};function o(){return{now:{line:i,column:l},lineShift:r}}function a(c){r+=c}function s(c){const f=c||"",u=f.split(/\r?\n|\r/g),m=u[u.length-1];return i+=u.length-1,l=u.length===1?l+m.length:1+m.length+r,f}}tl.peek=nh;function Up(){return{enter:{gfmFootnoteDefinition:Xp,gfmFootnoteDefinitionLabelString:Qp,gfmFootnoteCall:Jp,gfmFootnoteCallString:Zp},exit:{gfmFootnoteDefinition:Yp,gfmFootnoteDefinitionLabelString:Kp,gfmFootnoteCall:th,gfmFootnoteCallString:eh}}}function Gp(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:rh,footnoteReference:tl}}}function Xp(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Qp(){this.buffer()}function Kp(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Te(this.sliceSerialize(e)).toLowerCase()}function Yp(e){this.exit(e)}function Jp(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Zp(){this.buffer()}function eh(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Te(this.sliceSerialize(e)).toLowerCase()}function th(e){this.exit(e)}function tl(e,t,n,r){const i=jt(r);let l=i.move("[^");const o=n.enter("footnoteReference"),a=n.enter("reference");return l+=i.move(el(n,Ji(e),{...i.current(),before:l,after:"]"})),a(),o(),l+=i.move("]"),l}function nh(){return"["}function rh(e,t,n,r){const i=jt(r);let l=i.move("[^");const o=n.enter("footnoteDefinition"),a=n.enter("label");return l+=i.move(el(n,Ji(e),{...i.current(),before:l,after:"]"})),a(),l+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),l+=i.move(Vp(Bp(e,n,i.current()),ih)),o(),l}function ih(e,t,n){return t===0?e:(n?"":"    ")+e}function nl(e,t,n){const r=t.indexStack,i=e.children||[],l=[];let o=-1,a=n.before;r.push(-1);let s=t.createTracker(n);for(;++o<i.length;){const c=i[o];let f;if(r[r.length-1]=o,o+1<i.length){let u=t.handle.handlers[i[o+1].type];u&&u.peek&&(u=u.peek),f=u?u(i[o+1],e,t,{before:"",after:"",...s.current()}).charAt(0):""}else f=n.after;l.length>0&&(a==="\r"||a===`
`)&&c.type==="html"&&(l[l.length-1]=l[l.length-1].replace(/(\r?\n|\r)$/," "),a=" ",s=t.createTracker(n),s.move(l.join(""))),l.push(s.move(t.handle(c,e,t,{...s.current(),before:a,after:f}))),a=l[l.length-1].slice(-1)}return r.pop(),l.join("")}const lh=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];rl.peek=ch;const oh={canContainEols:["delete"],enter:{strikethrough:sh},exit:{strikethrough:uh}},ah={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:lh}],handlers:{delete:rl}};function sh(e){this.enter({type:"delete",children:[]},e)}function uh(e){this.exit(e)}function rl(e,t,n,r){const i=jt(r),l=n.enter("strikethrough");let o=i.move("~~");return o+=nl(e,n,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),l(),o}function ch(){return"~"}il.peek=fh;function il(e,t,n){let r=e.value||"",i="`",l=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++l<n.unsafe.length;){const o=n.unsafe[l],a=Zi(o);let s;if(o.atBreak)for(;s=a.exec(r);){let c=s.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(s.index+1)}}return i+r+i}function fh(){return"`"}function ph(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||mh,i=[],l=[],o=[],a=[];let s=0,c=-1;for(;++c<e.length;){const h=[],y=[];let S=-1;for(e[c].length>s&&(s=e[c].length);++S<e[c].length;){const b=hh(e[c][S]);if(t.alignDelimiters!==!1){const v=r(b);y[S]=v,(a[S]===void 0||v>a[S])&&(a[S]=v)}h.push(b)}l[c]=h,o[c]=y}let f=-1;if(typeof n=="object"&&"length"in n)for(;++f<s;)i[f]=Rr(n[f]);else{const h=Rr(n);for(;++f<s;)i[f]=h}f=-1;const u=[],m=[];for(;++f<s;){const h=i[f];let y="",S="";h===99?(y=":",S=":"):h===108?y=":":h===114&&(S=":");let b=t.alignDelimiters===!1?1:Math.max(1,a[f]-y.length-S.length);const v=y+"-".repeat(b)+S;t.alignDelimiters!==!1&&(b=y.length+b+S.length,b>a[f]&&(a[f]=b),m[f]=b),u[f]=v}l.splice(1,0,u),o.splice(1,0,m),c=-1;const p=[];for(;++c<l.length;){const h=l[c],y=o[c];f=-1;const S=[];for(;++f<s;){const b=h[f]||"";let v="",C="";if(t.alignDelimiters!==!1){const I=a[f]-(y[f]||0),T=i[f];T===114?v=" ".repeat(I):T===99?I%2?(v=" ".repeat(I/2+.5),C=" ".repeat(I/2-.5)):(v=" ".repeat(I/2),C=v):C=" ".repeat(I)}t.delimiterStart!==!1&&!f&&S.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&b==="")&&(t.delimiterStart!==!1||f)&&S.push(" "),t.alignDelimiters!==!1&&S.push(v),S.push(b),t.alignDelimiters!==!1&&S.push(C),t.padding!==!1&&S.push(" "),(t.delimiterEnd!==!1||f!==s-1)&&S.push("|")}p.push(t.delimiterEnd===!1?S.join("").replace(/ +$/,""):S.join(""))}return p.join(`
`)}function hh(e){return e==null?"":String(e)}function mh(e){return e.length}function Rr(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}const dh={enter:{table:gh,tableData:jr,tableHeader:jr,tableRow:bh},exit:{codeText:xh,table:yh,tableData:tn,tableHeader:tn,tableRow:tn}};function gh(e){const t=e._align;this.enter({type:"table",align:t.map(n=>n==="none"?null:n),children:[]},e),this.setData("inTable",!0)}function yh(e){this.exit(e),this.setData("inTable")}function bh(e){this.enter({type:"tableRow",children:[]},e)}function tn(e){this.exit(e)}function jr(e){this.enter({type:"tableCell",children:[]},e)}function xh(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,kh));const n=this.stack[this.stack.length-1];n.value=t,this.exit(e)}function kh(e,t){return t==="|"?t:e}function wh(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[	 :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:o,tableRow:a,tableCell:s,inlineCode:m}};function o(p,h,y,S){return c(f(p,y,S),p.align)}function a(p,h,y,S){const b=u(p,y,S),v=c([b]);return v.slice(0,v.indexOf(`
`))}function s(p,h,y,S){const b=y.enter("tableCell"),v=y.enter("phrasing"),C=nl(p,y,{...S,before:l,after:l});return v(),b(),C}function c(p,h){return ph(p,{align:h,alignDelimiters:r,padding:n,stringLength:i})}function f(p,h,y){const S=p.children;let b=-1;const v=[],C=h.enter("table");for(;++b<S.length;)v[b]=u(S[b],h,y);return C(),v}function u(p,h,y){const S=p.children;let b=-1;const v=[],C=h.enter("tableRow");for(;++b<S.length;)v[b]=s(S[b],p,h,y);return C(),v}function m(p,h,y){let S=il(p,h,y);return y.stack.includes("tableCell")&&(S=S.replace(/\|/g,"\\$&")),S}}function Ch(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Sh(e){const t=e.options.listItemIndent||"tab";if(t===1||t==="1")return"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function vh(e,t,n,r){const i=Sh(n);let l=n.bulletCurrent||Ch(n);t&&t.type==="list"&&t.ordered&&(l=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+l);let o=l.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const a=n.createTracker(r);a.move(l+" ".repeat(o-l.length)),a.shift(o);const s=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,a.current()),f);return s(),c;function f(u,m,p){return m?(p?"":" ".repeat(o))+u:(p?l:l+" ".repeat(o-l.length))+u}}const Eh={exit:{taskListCheckValueChecked:Nr,taskListCheckValueUnchecked:Nr,paragraph:Ih}},$h={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Oh}};function Nr(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function Ih(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1],r=n.children[0];if(r&&r.type==="text"){const i=t.children;let l=-1,o;for(;++l<i.length;){const a=i[l];if(a.type==="paragraph"){o=a;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Oh(e,t,n,r){const i=e.children[0],l=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",a=jt(r);l&&a.move(o);let s=vh(e,t,n,{...r,...a.current()});return l&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),s;function c(f){return f+o}}function Fh(){return[Op,Up(),oh,dh,Eh]}function Ph(e){return{extensions:[Fp,Gp(),ah,wh(e),$h]}}function Ah(e={}){const t=this.data();n("micromarkExtensions",Sp(e)),n("fromMarkdownExtensions",Fh()),n("toMarkdownExtensions",Ph(e));function n(r,i){(t[r]?t[r]:t[r]=[]).push(i)}}const Th=({children:e})=>St(Hi,{disallowedElements:[],children:e,remarkPlugins:[Ah]}),Nh=({children:e})=>{const{localData:t}=k.useContext(_l);return St("div",{className:`ai-multi-line-markdown ${t.theme}`,children:e.split(`
`).map((n,r)=>St("p",{children:St(Th,{children:n})},r))})};export{kn as C,Lo as E,Rh as F,Mh as I,jh as L,Nh as M,Ur as R,Ma as e};