(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const o of l.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function t(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=t(i);fetch(i.href,l)}})();var Qi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ou(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var of={exports:{}},wl={},uf={exports:{}},H={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ti=Symbol.for("react.element"),Dh=Symbol.for("react.portal"),Ah=Symbol.for("react.fragment"),Fh=Symbol.for("react.strict_mode"),Rh=Symbol.for("react.profiler"),Oh=Symbol.for("react.provider"),Mh=Symbol.for("react.context"),bh=Symbol.for("react.forward_ref"),jh=Symbol.for("react.suspense"),Bh=Symbol.for("react.memo"),Uh=Symbol.for("react.lazy"),ns=Symbol.iterator;function Hh(e){return e===null||typeof e!="object"?null:(e=ns&&e[ns]||e["@@iterator"],typeof e=="function"?e:null)}var af={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},sf=Object.assign,cf={};function ir(e,n,t){this.props=e,this.context=n,this.refs=cf,this.updater=t||af}ir.prototype.isReactComponent={};ir.prototype.setState=function(e,n){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")};ir.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ff(){}ff.prototype=ir.prototype;function Mu(e,n,t){this.props=e,this.context=n,this.refs=cf,this.updater=t||af}var bu=Mu.prototype=new ff;bu.constructor=Mu;sf(bu,ir.prototype);bu.isPureReactComponent=!0;var ts=Array.isArray,pf=Object.prototype.hasOwnProperty,ju={current:null},df={key:!0,ref:!0,__self:!0,__source:!0};function hf(e,n,t){var r,i={},l=null,o=null;if(n!=null)for(r in n.ref!==void 0&&(o=n.ref),n.key!==void 0&&(l=""+n.key),n)pf.call(n,r)&&!df.hasOwnProperty(r)&&(i[r]=n[r]);var u=arguments.length-2;if(u===1)i.children=t;else if(1>>1,G=D[Y];if(0>>1;Yi(ln,k))rei(mn,ln)?(D[Y]=mn,D[re]=k,Y=re):(D[Y]=ln,D[ge]=k,Y=ge);else if(rei(mn,k))D[Y]=mn,D[re]=k,Y=re;else break e}}return b}function i(D,b){var k=D.sortIndex-b.sortIndex;return k!==0?k:D.id-b.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var o=Date,u=o.now();e.unstable_now=function(){return o.now()-u}}var a=[],s=[],f=1,c=null,d=3,p=!1,m=!1,x=!1,P=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(D){for(var b=t(s);b!==null;){if(b.callback===null)r(s);else if(b.startTime<=D)r(s),b.sortIndex=b.expirationTime,n(a,b);else break;b=t(s)}}function C(D){if(x=!1,y(D),!m)if(t(a)!==null)m=!0,de(_);else{var b=t(s);b!==null&&fe(C,b.startTime-D)}}function _(D,b){m=!1,x&&(x=!1,h(L),L=-1),p=!0;var k=d;try{for(y(b),c=t(a);c!==null&&(!(c.expirationTime>b)||D&&!A());){var Y=c.callback;if(typeof Y=="function"){c.callback=null,d=c.priorityLevel;var G=Y(c.expirationTime<=b);b=e.unstable_now(),typeof G=="function"?c.callback=G:c===t(a)&&r(a),y(b)}else r(a);c=t(a)}if(c!==null)var v=!0;else{var ge=t(s);ge!==null&&fe(C,ge.startTime-b),v=!1}return v}finally{c=null,d=k,p=!1}}var w=!1,z=null,L=-1,M=5,S=-1;function A(){return!(e.unstable_now()-SD||125Y?(D.sortIndex=k,n(s,D),t(a)===null&&D===t(s)&&(x?(h(L),L=-1):x=!0,fe(C,k-Y))):(D.sortIndex=G,n(a,D),m||p||(m=!0,de(_))),D},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(D){var b=d;return function(){var k=d;d=b;try{return D.apply(this,arguments)}finally{d=k}}}})(vf);kf.exports=vf;var em=kf.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var nm=_n,Ke=em;function T(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Do=Object.prototype.hasOwnProperty,tm=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,is={},ls={};function rm(e){return Do.call(ls,e)?!0:Do.call(is,e)?!1:tm.test(e)?ls[e]=!0:(is[e]=!0,!1)}function im(e,n,t,r){if(t!==null&&t.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function lm(e,n,t,r){if(n===null||typeof n>"u"||im(e,n,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function Fe(e,n,t,r,i,l,o){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=l,this.removeEmptyString=o}var Ce={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ce[e]=new Fe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];Ce[n]=new Fe(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ce[e]=new Fe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ce[e]=new Fe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ce[e]=new Fe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ce[e]=new Fe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ce[e]=new Fe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ce[e]=new Fe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ce[e]=new Fe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Uu=/[\-:]([a-z])/g;function Hu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(Uu,Hu);Ce[n]=new Fe(n,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(Uu,Hu);Ce[n]=new Fe(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(Uu,Hu);Ce[n]=new Fe(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ce[e]=new Fe(e,1,!1,e.toLowerCase(),null,!1,!1)});Ce.xlinkHref=new Fe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ce[e]=new Fe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Vu(e,n,t,r){var i=Ce.hasOwnProperty(n)?Ce[n]:null;(i!==null?i.type!==0:r||!(2u||i[o]!==l[u]){var a=` `+i[o].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=o&&0<=u);break}}}finally{Wl=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?wr(e):""}function om(e){switch(e.tag){case 5:return wr(e.type);case 16:return wr("Lazy");case 13:return wr("Suspense");case 19:return wr("SuspenseList");case 0:case 2:case 15:return e=Ql(e.type,!1),e;case 11:return e=Ql(e.type.render,!1),e;case 1:return e=Ql(e.type,!0),e;default:return""}}function Oo(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Dt:return"Fragment";case Nt:return"Portal";case Ao:return"Profiler";case $u:return"StrictMode";case Fo:return"Suspense";case Ro:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Sf:return(e.displayName||"Context")+".Consumer";case wf:return(e._context.displayName||"Context")+".Provider";case Wu:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Qu:return n=e.displayName||null,n!==null?n:Oo(e.type)||"Memo";case Bn:n=e._payload,e=e._init;try{return Oo(e(n))}catch{}}return null}function um(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Oo(n);case 8:return n===$u?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function et(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ef(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function am(e){var n=Ef(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var i=t.get,l=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,l.call(this,o)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function di(e){e._valueTracker||(e._valueTracker=am(e))}function Pf(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=Ef(e)?e.checked?"true":"false":e.value),e=r,e!==t?(n.setValue(e),!0):!1}function Yi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Mo(e,n){var t=n.checked;return se({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function us(e,n){var t=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;t=et(n.value!=null?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function _f(e,n){n=n.checked,n!=null&&Vu(e,"checked",n,!1)}function bo(e,n){_f(e,n);var t=et(n.value),r=n.type;if(t!=null)r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?jo(e,n.type,t):n.hasOwnProperty("defaultValue")&&jo(e,n.type,et(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function as(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!(r!=="submit"&&r!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}t=e.name,t!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,t!==""&&(e.name=t)}function jo(e,n,t){(n!=="number"||Yi(e.ownerDocument)!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var Sr=Array.isArray;function Vt(e,n,t,r){if(e=e.options,n){n={};for(var i=0;i"+n.valueOf().toString()+"",n=hi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function br(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=n;return}}e.textContent=n}var Pr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},sm=["Webkit","ms","Moz","O"];Object.keys(Pr).forEach(function(e){sm.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),Pr[n]=Pr[e]})});function Lf(e,n,t){return n==null||typeof n=="boolean"||n===""?"":t||typeof n!="number"||n===0||Pr.hasOwnProperty(e)&&Pr[e]?(""+n).trim():n+"px"}function Nf(e,n){e=e.style;for(var t in n)if(n.hasOwnProperty(t)){var r=t.indexOf("--")===0,i=Lf(t,n[t],r);t==="float"&&(t="cssFloat"),r?e.setProperty(t,i):e[t]=i}}var cm=se({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ho(e,n){if(n){if(cm[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(T(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(T(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(T(61))}if(n.style!=null&&typeof n.style!="object")throw Error(T(62))}}function Vo(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var $o=null;function Yu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wo=null,$t=null,Wt=null;function fs(e){if(e=li(e)){if(typeof Wo!="function")throw Error(T(280));var n=e.stateNode;n&&(n=_l(n),Wo(e.stateNode,e.type,n))}}function Df(e){$t?Wt?Wt.push(e):Wt=[e]:$t=e}function Af(){if($t){var e=$t,n=Wt;if(Wt=$t=null,fs(e),n)for(e=0;e>>=0,e===0?32:31-(wm(e)/Sm|0)|0}var mi=64,gi=4194304;function Cr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Gi(e,n){var t=e.pendingLanes;if(t===0)return 0;var r=0,i=e.suspendedLanes,l=e.pingedLanes,o=t&268435455;if(o!==0){var u=o&~i;u!==0?r=Cr(u):(l&=o,l!==0&&(r=Cr(l)))}else o=t&~i,o!==0?r=Cr(o):l!==0&&(r=Cr(l));if(r===0)return 0;if(n!==0&&n!==r&&!(n&i)&&(i=r&-r,l=n&-n,i>=l||i===16&&(l&4194240)!==0))return n;if(r&4&&(r|=t&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function ri(e,n,t){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-fn(n),e[n]=t}function _m(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Tr),xs=" ",ws=!1;function Jf(e,n){switch(e){case"keyup":return eg.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ep(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var At=!1;function tg(e,n){switch(e){case"compositionend":return ep(n);case"keypress":return n.which!==32?null:(ws=!0,xs);case"textInput":return e=n.data,e===xs&&ws?null:e;default:return null}}function rg(e,n){if(At)return e==="compositionend"||!na&&Jf(e,n)?(e=Gf(),Ri=Zu=$n=null,At=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:t,offset:n-e};e=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=Ps(t)}}function ip(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?ip(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function lp(){for(var e=window,n=Yi();n instanceof e.HTMLIFrameElement;){try{var t=typeof n.contentWindow.location.href=="string"}catch{t=!1}if(t)e=n.contentWindow;else break;n=Yi(e.document)}return n}function ta(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function pg(e){var n=lp(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&ip(t.ownerDocument.documentElement,t)){if(r!==null&&ta(t)){if(n=r.start,e=r.end,e===void 0&&(e=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if(e=(n=t.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var i=t.textContent.length,l=Math.min(r.start,i);r=r.end===void 0?l:Math.min(r.end,i),!e.extend&&l>r&&(i=r,r=l,l=i),i=_s(t,l);var o=_s(t,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(n=n.createRange(),n.setStart(i.node,i.offset),e.removeAllRanges(),l>r?(e.addRange(n),e.extend(o.node,o.offset)):(n.setEnd(o.node,o.offset),e.addRange(n)))}}for(n=[],e=t;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,Ft=null,Go=null,Ir=null,Zo=!1;function Ts(e,n,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;Zo||Ft==null||Ft!==Yi(r)||(r=Ft,"selectionStart"in r&&ta(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ir&&$r(Ir,r)||(Ir=r,r=el(Go,"onSelect"),0Mt||(e.current=iu[Mt],iu[Mt]=null,Mt--)}function te(e,n){Mt++,iu[Mt]=e.current,e.current=n}var nt={},ze=rt(nt),be=rt(!1),gt=nt;function Gt(e,n){var t=e.type.contextTypes;if(!t)return nt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var i={},l;for(l in t)i[l]=n[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=i),i}function je(e){return e=e.childContextTypes,e!=null}function tl(){le(be),le(ze)}function Fs(e,n,t){if(ze.current!==nt)throw Error(T(168));te(ze,n),te(be,t)}function hp(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var i in r)if(!(i in n))throw Error(T(108,um(e)||"Unknown",i));return se({},t,r)}function rl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||nt,gt=ze.current,te(ze,e),te(be,be.current),!0}function Rs(e,n,t){var r=e.stateNode;if(!r)throw Error(T(169));t?(e=hp(e,n,gt),r.__reactInternalMemoizedMergedChildContext=e,le(be),le(ze),te(ze,e)):le(be),te(be,t)}var Tn=null,Tl=!1,oo=!1;function mp(e){Tn===null?Tn=[e]:Tn.push(e)}function Eg(e){Tl=!0,mp(e)}function it(){if(!oo&&Tn!==null){oo=!0;var e=0,n=X;try{var t=Tn;for(X=1;e>=o,i-=o,zn=1<<32-fn(n)+i|t<L?(M=z,z=null):M=z.sibling;var S=d(h,z,y[L],C);if(S===null){z===null&&(z=M);break}e&&z&&S.alternate===null&&n(h,z),g=l(S,g,L),w===null?_=S:w.sibling=S,w=S,z=M}if(L===y.length)return t(h,z),oe&&at(h,L),_;if(z===null){for(;LL?(M=z,z=null):M=z.sibling;var A=d(h,z,S.value,C);if(A===null){z===null&&(z=M);break}e&&z&&A.alternate===null&&n(h,z),g=l(A,g,L),w===null?_=A:w.sibling=A,w=A,z=M}if(S.done)return t(h,z),oe&&at(h,L),_;if(z===null){for(;!S.done;L++,S=y.next())S=c(h,S.value,C),S!==null&&(g=l(S,g,L),w===null?_=S:w.sibling=S,w=S);return oe&&at(h,L),_}for(z=r(h,z);!S.done;L++,S=y.next())S=p(z,h,L,S.value,C),S!==null&&(e&&S.alternate!==null&&z.delete(S.key===null?L:S.key),g=l(S,g,L),w===null?_=S:w.sibling=S,w=S);return e&&z.forEach(function(R){return n(h,R)}),oe&&at(h,L),_}function P(h,g,y,C){if(typeof y=="object"&&y!==null&&y.type===Dt&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case pi:e:{for(var _=y.key,w=g;w!==null;){if(w.key===_){if(_=y.type,_===Dt){if(w.tag===7){t(h,w.sibling),g=i(w,y.props.children),g.return=h,h=g;break e}}else if(w.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Bn&&bs(_)===w.type){t(h,w.sibling),g=i(w,y.props),g.ref=gr(h,w,y),g.return=h,h=g;break e}t(h,w);break}else n(h,w);w=w.sibling}y.type===Dt?(g=mt(y.props.children,h.mode,C,y.key),g.return=h,h=g):(C=Vi(y.type,y.key,y.props,null,h.mode,C),C.ref=gr(h,g,y),C.return=h,h=C)}return o(h);case Nt:e:{for(w=y.key;g!==null;){if(g.key===w)if(g.tag===4&&g.stateNode.containerInfo===y.containerInfo&&g.stateNode.implementation===y.implementation){t(h,g.sibling),g=i(g,y.children||[]),g.return=h,h=g;break e}else{t(h,g);break}else n(h,g);g=g.sibling}g=mo(y,h.mode,C),g.return=h,h=g}return o(h);case Bn:return w=y._init,P(h,g,w(y._payload),C)}if(Sr(y))return m(h,g,y,C);if(fr(y))return x(h,g,y,C);Ci(h,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,g!==null&&g.tag===6?(t(h,g.sibling),g=i(g,y),g.return=h,h=g):(t(h,g),g=ho(y,h.mode,C),g.return=h,h=g),o(h)):t(h,g)}return P}var Jt=vp(!0),xp=vp(!1),ol=rt(null),ul=null,Bt=null,oa=null;function ua(){oa=Bt=ul=null}function aa(e){var n=ol.current;le(ol),e._currentValue=n}function uu(e,n,t){for(;e!==null;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,r!==null&&(r.childLanes|=n)):r!==null&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===t)break;e=e.return}}function Yt(e,n){ul=e,oa=Bt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&n&&(Me=!0),e.firstContext=null)}function tn(e){var n=e._currentValue;if(oa!==e)if(e={context:e,memoizedValue:n,next:null},Bt===null){if(ul===null)throw Error(T(308));Bt=e,ul.dependencies={lanes:0,firstContext:e}}else Bt=Bt.next=e;return n}var pt=null;function sa(e){pt===null?pt=[e]:pt.push(e)}function wp(e,n,t,r){var i=n.interleaved;return i===null?(t.next=t,sa(n)):(t.next=i.next,i.next=t),n.interleaved=t,An(e,r)}function An(e,n){e.lanes|=n;var t=e.alternate;for(t!==null&&(t.lanes|=n),t=e,e=e.return;e!==null;)e.childLanes|=n,t=e.alternate,t!==null&&(t.childLanes|=n),t=e,e=e.return;return t.tag===3?t.stateNode:null}var Un=!1;function ca(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Sp(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ln(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function Xn(e,n,t){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,K&2){var i=r.pending;return i===null?n.next=n:(n.next=i.next,i.next=n),r.pending=n,An(e,t)}return i=r.interleaved,i===null?(n.next=n,sa(r)):(n.next=i.next,i.next=n),r.interleaved=n,An(e,t)}function Mi(e,n,t){if(n=n.updateQueue,n!==null&&(n=n.shared,(t&4194240)!==0)){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,qu(e,t)}}function js(e,n){var t=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,t===r)){var i=null,l=null;if(t=t.firstBaseUpdate,t!==null){do{var o={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null};l===null?i=l=o:l=l.next=o,t=t.next}while(t!==null);l===null?i=l=n:l=l.next=n}else i=l=n;t={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=t;return}e=t.lastBaseUpdate,e===null?t.firstBaseUpdate=n:e.next=n,t.lastBaseUpdate=n}function al(e,n,t,r){var i=e.updateQueue;Un=!1;var l=i.firstBaseUpdate,o=i.lastBaseUpdate,u=i.shared.pending;if(u!==null){i.shared.pending=null;var a=u,s=a.next;a.next=null,o===null?l=s:o.next=s,o=a;var f=e.alternate;f!==null&&(f=f.updateQueue,u=f.lastBaseUpdate,u!==o&&(u===null?f.firstBaseUpdate=s:u.next=s,f.lastBaseUpdate=a))}if(l!==null){var c=i.baseState;o=0,f=s=a=null,u=l;do{var d=u.lane,p=u.eventTime;if((r&d)===d){f!==null&&(f=f.next={eventTime:p,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var m=e,x=u;switch(d=n,p=t,x.tag){case 1:if(m=x.payload,typeof m=="function"){c=m.call(p,c,d);break e}c=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=x.payload,d=typeof m=="function"?m.call(p,c,d):m,d==null)break e;c=se({},c,d);break e;case 2:Un=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[u]:d.push(u))}else p={eventTime:p,lane:d,tag:u.tag,payload:u.payload,callback:u.callback,next:null},f===null?(s=f=p,a=c):f=f.next=p,o|=d;if(u=u.next,u===null){if(u=i.shared.pending,u===null)break;d=u,u=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(f===null&&(a=c),i.baseState=a,i.firstBaseUpdate=s,i.lastBaseUpdate=f,n=i.shared.interleaved,n!==null){i=n;do o|=i.lane,i=i.next;while(i!==n)}else l===null&&(i.shared.lanes=0);vt|=o,e.lanes=o,e.memoizedState=c}}function Bs(e,n,t){if(e=n.effects,n.effects=null,e!==null)for(n=0;nt?t:4,e(!0);var r=ao.transition;ao.transition={};try{e(!1),n()}finally{X=t,ao.transition=r}}function jp(){return rn().memoizedState}function zg(e,n,t){var r=Zn(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},Bp(e))Up(n,t);else if(t=wp(e,n,t,r),t!==null){var i=De();pn(t,e,r,i),Hp(t,n,r)}}function Ig(e,n,t){var r=Zn(e),i={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(Bp(e))Up(n,i);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=n.lastRenderedReducer,l!==null))try{var o=n.lastRenderedState,u=l(o,t);if(i.hasEagerState=!0,i.eagerState=u,hn(u,o)){var a=n.interleaved;a===null?(i.next=i,sa(n)):(i.next=a.next,a.next=i),n.interleaved=i;return}}catch{}finally{}t=wp(e,n,i,r),t!==null&&(i=De(),pn(t,e,r,i),Hp(t,n,r))}}function Bp(e){var n=e.alternate;return e===ae||n!==null&&n===ae}function Up(e,n){Lr=cl=!0;var t=e.pending;t===null?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function Hp(e,n,t){if(t&4194240){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,qu(e,t)}}var fl={readContext:tn,useCallback:Ee,useContext:Ee,useEffect:Ee,useImperativeHandle:Ee,useInsertionEffect:Ee,useLayoutEffect:Ee,useMemo:Ee,useReducer:Ee,useRef:Ee,useState:Ee,useDebugValue:Ee,useDeferredValue:Ee,useTransition:Ee,useMutableSource:Ee,useSyncExternalStore:Ee,useId:Ee,unstable_isNewReconciler:!1},Lg={readContext:tn,useCallback:function(e,n){return yn().memoizedState=[e,n===void 0?null:n],e},useContext:tn,useEffect:Hs,useImperativeHandle:function(e,n,t){return t=t!=null?t.concat([e]):null,ji(4194308,4,Fp.bind(null,n,e),t)},useLayoutEffect:function(e,n){return ji(4194308,4,e,n)},useInsertionEffect:function(e,n){return ji(4,2,e,n)},useMemo:function(e,n){var t=yn();return n=n===void 0?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=yn();return n=t!==void 0?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=zg.bind(null,ae,e),[r.memoizedState,e]},useRef:function(e){var n=yn();return e={current:e},n.memoizedState=e},useState:Us,useDebugValue:ka,useDeferredValue:function(e){return yn().memoizedState=e},useTransition:function(){var e=Us(!1),n=e[0];return e=Tg.bind(null,e[1]),yn().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=ae,i=yn();if(oe){if(t===void 0)throw Error(T(407));t=t()}else{if(t=n(),xe===null)throw Error(T(349));kt&30||_p(r,n,t)}i.memoizedState=t;var l={value:t,getSnapshot:n};return i.queue=l,Hs(zp.bind(null,r,l,e),[e]),r.flags|=2048,Zr(9,Tp.bind(null,r,l,t,n),void 0,null),t},useId:function(){var e=yn(),n=xe.identifierPrefix;if(oe){var t=In,r=zn;t=(r&~(1<<32-fn(r)-1)).toString(32)+t,n=":"+n+"R"+t,t=Xr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(t,{is:r.is}):(e=o.createElement(t),t==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,t),e[vn]=n,e[Yr]=r,Zp(e,n,!1,!1),n.stateNode=e;e:{switch(o=Vo(t,r),t){case"dialog":ie("cancel",e),ie("close",e),i=r;break;case"iframe":case"object":case"embed":ie("load",e),i=r;break;case"video":case"audio":for(i=0;itr&&(n.flags|=128,r=!0,yr(l,!1),n.lanes=4194304)}else{if(!r)if(e=sl(o),e!==null){if(n.flags|=128,r=!0,t=e.updateQueue,t!==null&&(n.updateQueue=t,n.flags|=4),yr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!oe)return Pe(n),null}else 2*pe()-l.renderingStartTime>tr&&t!==1073741824&&(n.flags|=128,r=!0,yr(l,!1),n.lanes=4194304);l.isBackwards?(o.sibling=n.child,n.child=o):(t=l.last,t!==null?t.sibling=o:n.child=o,l.last=o)}return l.tail!==null?(n=l.tail,l.rendering=n,l.tail=n.sibling,l.renderingStartTime=pe(),n.sibling=null,t=ue.current,te(ue,r?t&1|2:t&1),n):(Pe(n),null);case 22:case 23:return Ea(),r=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(n.flags|=8192),r&&n.mode&1?$e&1073741824&&(Pe(n),n.subtreeFlags&6&&(n.flags|=8192)):Pe(n),null;case 24:return null;case 25:return null}throw Error(T(156,n.tag))}function bg(e,n){switch(ia(n),n.tag){case 1:return je(n.type)&&tl(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return er(),le(be),le(ze),da(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return pa(n),null;case 13:if(le(ue),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(T(340));Zt()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return le(ue),null;case 4:return er(),null;case 10:return aa(n.type._context),null;case 22:case 23:return Ea(),null;case 24:return null;default:return null}}var Pi=!1,_e=!1,jg=typeof WeakSet=="function"?WeakSet:Set,F=null;function Ut(e,n){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){ce(e,n,r)}else t.current=null}function gu(e,n,t){try{t()}catch(r){ce(e,n,r)}}var Js=!1;function Bg(e,n){if(Jo=Zi,e=lp(),ta(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var i=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{t.nodeType,l.nodeType}catch{t=null;break e}var o=0,u=-1,a=-1,s=0,f=0,c=e,d=null;n:for(;;){for(var p;c!==t||i!==0&&c.nodeType!==3||(u=o+i),c!==l||r!==0&&c.nodeType!==3||(a=o+r),c.nodeType===3&&(o+=c.nodeValue.length),(p=c.firstChild)!==null;)d=c,c=p;for(;;){if(c===e)break n;if(d===t&&++s===i&&(u=o),d===l&&++f===r&&(a=o),(p=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=p}t=u===-1||a===-1?null:{start:u,end:a}}else t=null}t=t||{start:0,end:0}}else t=null;for(eu={focusedElem:e,selectionRange:t},Zi=!1,F=n;F!==null;)if(n=F,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,F=e;else for(;F!==null;){n=F;try{var m=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var x=m.memoizedProps,P=m.memoizedState,h=n.stateNode,g=h.getSnapshotBeforeUpdate(n.elementType===n.type?x:an(n.type,x),P);h.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var y=n.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(T(163))}}catch(C){ce(n,n.return,C)}if(e=n.sibling,e!==null){e.return=n.return,F=e;break}F=n.return}return m=Js,Js=!1,m}function Nr(e,n,t){var r=n.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var l=i.destroy;i.destroy=void 0,l!==void 0&&gu(n,t,l)}i=i.next}while(i!==r)}}function Ll(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function yu(e){var n=e.ref;if(n!==null){var t=e.stateNode;switch(e.tag){case 5:e=t;break;default:e=t}typeof n=="function"?n(e):n.current=e}}function nd(e){var n=e.alternate;n!==null&&(e.alternate=null,nd(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[vn],delete n[Yr],delete n[ru],delete n[Sg],delete n[Cg])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function td(e){return e.tag===5||e.tag===3||e.tag===4}function ec(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||td(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ku(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.nodeType===8?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(t.nodeType===8?(n=t.parentNode,n.insertBefore(e,t)):(n=t,n.appendChild(e)),t=t._reactRootContainer,t!=null||n.onclick!==null||(n.onclick=nl));else if(r!==4&&(e=e.child,e!==null))for(ku(e,n,t),e=e.sibling;e!==null;)ku(e,n,t),e=e.sibling}function vu(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(vu(e,n,t),e=e.sibling;e!==null;)vu(e,n,t),e=e.sibling}var we=null,sn=!1;function bn(e,n,t){for(t=t.child;t!==null;)rd(e,n,t),t=t.sibling}function rd(e,n,t){if(xn&&typeof xn.onCommitFiberUnmount=="function")try{xn.onCommitFiberUnmount(Sl,t)}catch{}switch(t.tag){case 5:_e||Ut(t,n);case 6:var r=we,i=sn;we=null,bn(e,n,t),we=r,sn=i,we!==null&&(sn?(e=we,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):we.removeChild(t.stateNode));break;case 18:we!==null&&(sn?(e=we,t=t.stateNode,e.nodeType===8?lo(e.parentNode,t):e.nodeType===1&&lo(e,t),Hr(e)):lo(we,t.stateNode));break;case 4:r=we,i=sn,we=t.stateNode.containerInfo,sn=!0,bn(e,n,t),we=r,sn=i;break;case 0:case 11:case 14:case 15:if(!_e&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var l=i,o=l.destroy;l=l.tag,o!==void 0&&(l&2||l&4)&&gu(t,n,o),i=i.next}while(i!==r)}bn(e,n,t);break;case 1:if(!_e&&(Ut(t,n),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(u){ce(t,n,u)}bn(e,n,t);break;case 21:bn(e,n,t);break;case 22:t.mode&1?(_e=(r=_e)||t.memoizedState!==null,bn(e,n,t),_e=r):bn(e,n,t);break;default:bn(e,n,t)}}function nc(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new jg),n.forEach(function(r){var i=qg.bind(null,e,r);t.has(r)||(t.add(r),r.then(i,i))})}}function un(e,n){var t=n.deletions;if(t!==null)for(var r=0;ri&&(i=o),r&=~l}if(r=i,r=pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Hg(r/1960))-r,10e?16:e,Wn===null)var r=!1;else{if(e=Wn,Wn=null,hl=0,K&6)throw Error(T(331));var i=K;for(K|=4,F=e.current;F!==null;){var l=F,o=l.child;if(F.flags&16){var u=l.deletions;if(u!==null){for(var a=0;ape()-Sa?ht(e,0):wa|=t),Be(e,n)}function fd(e,n){n===0&&(e.mode&1?(n=gi,gi<<=1,!(gi&130023424)&&(gi=4194304)):n=1);var t=De();e=An(e,n),e!==null&&(ri(e,n,t),Be(e,t))}function Kg(e){var n=e.memoizedState,t=0;n!==null&&(t=n.retryLane),fd(e,t)}function qg(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(t=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(T(314))}r!==null&&r.delete(n),fd(e,t)}var pd;pd=function(e,n,t){if(e!==null)if(e.memoizedProps!==n.pendingProps||be.current)Me=!0;else{if(!(e.lanes&t)&&!(n.flags&128))return Me=!1,Og(e,n,t);Me=!!(e.flags&131072)}else Me=!1,oe&&n.flags&1048576&&gp(n,ll,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;Bi(e,n),e=n.pendingProps;var i=Gt(n,ze.current);Yt(n,t),i=ma(null,n,r,e,i,t);var l=ga();return n.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,je(r)?(l=!0,rl(n)):l=!1,n.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ca(n),i.updater=Il,n.stateNode=i,i._reactInternals=n,su(n,r,e,t),n=pu(null,n,r,!0,l,t)):(n.tag=0,oe&&l&&ra(n),Le(null,n,i,t),n=n.child),n;case 16:r=n.elementType;e:{switch(Bi(e,n),e=n.pendingProps,i=r._init,r=i(r._payload),n.type=r,i=n.tag=Gg(r),e=an(r,e),i){case 0:n=fu(null,n,r,e,t);break e;case 1:n=Xs(null,n,r,e,t);break e;case 11:n=Ks(null,n,r,e,t);break e;case 14:n=qs(null,n,r,an(r.type,e),t);break e}throw Error(T(306,r,""))}return n;case 0:return r=n.type,i=n.pendingProps,i=n.elementType===r?i:an(r,i),fu(e,n,r,i,t);case 1:return r=n.type,i=n.pendingProps,i=n.elementType===r?i:an(r,i),Xs(e,n,r,i,t);case 3:e:{if(qp(n),e===null)throw Error(T(387));r=n.pendingProps,l=n.memoizedState,i=l.element,Sp(e,n),al(n,r,null,t);var o=n.memoizedState;if(r=o.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},n.updateQueue.baseState=l,n.memoizedState=l,n.flags&256){i=nr(Error(T(423)),n),n=Gs(e,n,r,t,i);break e}else if(r!==i){i=nr(Error(T(424)),n),n=Gs(e,n,r,t,i);break e}else for(We=qn(n.stateNode.containerInfo.firstChild),Qe=n,oe=!0,cn=null,t=xp(n,null,r,t),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(Zt(),r===i){n=Fn(e,n,t);break e}Le(e,n,r,t)}n=n.child}return n;case 5:return Cp(n),e===null&&ou(n),r=n.type,i=n.pendingProps,l=e!==null?e.memoizedProps:null,o=i.children,nu(r,i)?o=null:l!==null&&nu(r,l)&&(n.flags|=32),Kp(e,n),Le(e,n,o,t),n.child;case 6:return e===null&&ou(n),null;case 13:return Xp(e,n,t);case 4:return fa(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=Jt(n,null,r,t):Le(e,n,r,t),n.child;case 11:return r=n.type,i=n.pendingProps,i=n.elementType===r?i:an(r,i),Ks(e,n,r,i,t);case 7:return Le(e,n,n.pendingProps,t),n.child;case 8:return Le(e,n,n.pendingProps.children,t),n.child;case 12:return Le(e,n,n.pendingProps.children,t),n.child;case 10:e:{if(r=n.type._context,i=n.pendingProps,l=n.memoizedProps,o=i.value,te(ol,r._currentValue),r._currentValue=o,l!==null)if(hn(l.value,o)){if(l.children===i.children&&!be.current){n=Fn(e,n,t);break e}}else for(l=n.child,l!==null&&(l.return=n);l!==null;){var u=l.dependencies;if(u!==null){o=l.child;for(var a=u.firstContext;a!==null;){if(a.context===r){if(l.tag===1){a=Ln(-1,t&-t),a.tag=2;var s=l.updateQueue;if(s!==null){s=s.shared;var f=s.pending;f===null?a.next=a:(a.next=f.next,f.next=a),s.pending=a}}l.lanes|=t,a=l.alternate,a!==null&&(a.lanes|=t),uu(l.return,t,n),u.lanes|=t;break}a=a.next}}else if(l.tag===10)o=l.type===n.type?null:l.child;else if(l.tag===18){if(o=l.return,o===null)throw Error(T(341));o.lanes|=t,u=o.alternate,u!==null&&(u.lanes|=t),uu(o,t,n),o=l.sibling}else o=l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===n){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}Le(e,n,i.children,t),n=n.child}return n;case 9:return i=n.type,r=n.pendingProps.children,Yt(n,t),i=tn(i),r=r(i),n.flags|=1,Le(e,n,r,t),n.child;case 14:return r=n.type,i=an(r,n.pendingProps),i=an(r.type,i),qs(e,n,r,i,t);case 15:return Qp(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,i=n.pendingProps,i=n.elementType===r?i:an(r,i),Bi(e,n),n.tag=1,je(r)?(e=!0,rl(n)):e=!1,Yt(n,t),Vp(n,r,i),su(n,r,i,t),pu(null,n,r,!0,e,t);case 19:return Gp(e,n,t);case 22:return Yp(e,n,t)}throw Error(T(156,n.tag))};function dd(e,n){return Bf(e,n)}function Xg(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function en(e,n,t,r){return new Xg(e,n,t,r)}function _a(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Gg(e){if(typeof e=="function")return _a(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Wu)return 11;if(e===Qu)return 14}return 2}function Jn(e,n){var t=e.alternate;return t===null?(t=en(e.tag,n,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&14680064,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function Vi(e,n,t,r,i,l){var o=2;if(r=e,typeof e=="function")_a(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Dt:return mt(t.children,i,l,n);case $u:o=8,i|=8;break;case Ao:return e=en(12,t,n,i|2),e.elementType=Ao,e.lanes=l,e;case Fo:return e=en(13,t,n,i),e.elementType=Fo,e.lanes=l,e;case Ro:return e=en(19,t,n,i),e.elementType=Ro,e.lanes=l,e;case Cf:return Dl(t,i,l,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case wf:o=10;break e;case Sf:o=9;break e;case Wu:o=11;break e;case Qu:o=14;break e;case Bn:o=16,r=null;break e}throw Error(T(130,e==null?e:typeof e,""))}return n=en(o,t,n,i),n.elementType=e,n.type=r,n.lanes=l,n}function mt(e,n,t,r){return e=en(7,e,r,n),e.lanes=t,e}function Dl(e,n,t,r){return e=en(22,e,r,n),e.elementType=Cf,e.lanes=t,e.stateNode={isHidden:!1},e}function ho(e,n,t){return e=en(6,e,null,n),e.lanes=t,e}function mo(e,n,t){return n=en(4,e.children!==null?e.children:[],e.key,n),n.lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Zg(e,n,t,r,i){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Kl(0),this.expirationTimes=Kl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Kl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ta(e,n,t,r,i,l,o,u,a){return e=new Zg(e,n,t,u,a),n===1?(n=1,l===!0&&(n|=8)):n=0,l=en(3,null,null,n),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},ca(l),e}function Jg(e,n,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(yd)}catch(e){console.error(e)}}yd(),yf.exports=qe;var iy=yf.exports,sc=iy;No.createRoot=sc.createRoot,No.hydrateRoot=sc.hydrateRoot;function ly(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const oy=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,uy=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ay={};function cc(e,n){return(ay.jsx?uy:oy).test(e)}const sy=/[ \t\n\f\r]/g;function cy(e){return typeof e=="object"?e.type==="text"?fc(e.value):!1:fc(e)}function fc(e){return e.replace(sy,"")===""}class ui{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}ui.prototype.normal={};ui.prototype.property={};ui.prototype.space=void 0;function kd(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new ui(t,r,n)}function Eu(e){return e.toLowerCase()}class Ue{constructor(n,t){this.attribute=t,this.property=n}}Ue.prototype.attribute="";Ue.prototype.booleanish=!1;Ue.prototype.boolean=!1;Ue.prototype.commaOrSpaceSeparated=!1;Ue.prototype.commaSeparated=!1;Ue.prototype.defined=!1;Ue.prototype.mustUseProperty=!1;Ue.prototype.number=!1;Ue.prototype.overloadedBoolean=!1;Ue.prototype.property="";Ue.prototype.spaceSeparated=!1;Ue.prototype.space=void 0;let fy=0;const B=Et(),he=Et(),Pu=Et(),I=Et(),ne=Et(),qt=Et(),Ve=Et();function Et(){return 2**++fy}const _u=Object.freeze(Object.defineProperty({__proto__:null,boolean:B,booleanish:he,commaOrSpaceSeparated:Ve,commaSeparated:qt,number:I,overloadedBoolean:Pu,spaceSeparated:ne},Symbol.toStringTag,{value:"Module"})),go=Object.keys(_u);class Na extends Ue{constructor(n,t,r,i){let l=-1;if(super(n,t),pc(this,"space",i),typeof r=="number")for(;++l4&&t.slice(0,4)==="data"&&gy.test(n)){if(n.charAt(4)==="-"){const l=n.slice(5).replace(dc,vy);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=n.slice(4);if(!dc.test(l)){let o=l.replace(my,ky);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}i=Na}return new i(r,n)}function ky(e){return"-"+e.toLowerCase()}function vy(e){return e.charAt(1).toUpperCase()}const xy=kd([vd,py,Sd,Cd,Ed],"html"),Da=kd([vd,dy,Sd,Cd,Ed],"svg");function wy(e){return e.join(" ").trim()}var Aa={},hc=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Sy=/\n/g,Cy=/^\s*/,Ey=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Py=/^:\s*/,_y=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ty=/^[;\s]*/,zy=/^\s+|\s+$/g,Iy=` `,mc="/",gc="*",ct="",Ly="comment",Ny="declaration";function Dy(e,n){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];n=n||{};var t=1,r=1;function i(m){var x=m.match(Sy);x&&(t+=x.length);var P=m.lastIndexOf(Iy);r=~P?m.length-P:r+m.length}function l(){var m={line:t,column:r};return function(x){return x.position=new o(m),s(),x}}function o(m){this.start=m,this.end={line:t,column:r},this.source=n.source}o.prototype.content=e;function u(m){var x=new Error(n.source+":"+t+":"+r+": "+m);if(x.reason=m,x.filename=n.source,x.line=t,x.column=r,x.source=e,!n.silent)throw x}function a(m){var x=m.exec(e);if(x){var P=x[0];return i(P),e=e.slice(P.length),x}}function s(){a(Cy)}function f(m){var x;for(m=m||[];x=c();)x!==!1&&m.push(x);return m}function c(){var m=l();if(!(mc!=e.charAt(0)||gc!=e.charAt(1))){for(var x=2;ct!=e.charAt(x)&&(gc!=e.charAt(x)||mc!=e.charAt(x+1));)++x;if(x+=2,ct===e.charAt(x-1))return u("End of comment missing");var P=e.slice(2,x-2);return r+=2,i(P),e=e.slice(x),r+=2,m({type:Ly,comment:P})}}function d(){var m=l(),x=a(Ey);if(x){if(c(),!a(Py))return u("property missing ':'");var P=a(_y),h=m({type:Ny,property:yc(x[0].replace(hc,ct)),value:P?yc(P[0].replace(hc,ct)):ct});return a(Ty),h}}function p(){var m=[];f(m);for(var x;x=d();)x!==!1&&(m.push(x),f(m));return m}return s(),p()}function yc(e){return e?e.replace(zy,ct):ct}var Ay=Dy,Fy=Qi&&Qi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Aa,"__esModule",{value:!0});Aa.default=Oy;const Ry=Fy(Ay);function Oy(e,n){let t=null;if(!e||typeof e!="string")return t;const r=(0,Ry.default)(e),i=typeof n=="function";return r.forEach(l=>{if(l.type!=="declaration")return;const{property:o,value:u}=l;i?n(o,u,l):u&&(t=t||{},t[o]=u)}),t}var Ml={};Object.defineProperty(Ml,"__esModule",{value:!0});Ml.camelCase=void 0;var My=/^--[a-zA-Z0-9_-]+$/,by=/-([a-z])/g,jy=/^[^-]+$/,By=/^-(webkit|moz|ms|o|khtml)-/,Uy=/^-(ms)-/,Hy=function(e){return!e||jy.test(e)||My.test(e)},Vy=function(e,n){return n.toUpperCase()},kc=function(e,n){return"".concat(n,"-")},$y=function(e,n){return n===void 0&&(n={}),Hy(e)?e:(e=e.toLowerCase(),n.reactCompat?e=e.replace(Uy,kc):e=e.replace(By,kc),e.replace(by,Vy))};Ml.camelCase=$y;var Wy=Qi&&Qi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Qy=Wy(Aa),Yy=Ml;function Tu(e,n){var t={};return!e||typeof e!="string"||(0,Qy.default)(e,function(r,i){r&&i&&(t[(0,Yy.camelCase)(r,n)]=i)}),t}Tu.default=Tu;var Ky=Tu;const qy=Ou(Ky),Pd=_d("end"),Fa=_d("start");function _d(e){return n;function n(t){const r=t&&t.position&&t.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Xy(e){const n=Fa(e),t=Pd(e);if(n&&t)return{start:n,end:t}}function Fr(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?vc(e.position):"start"in e||"end"in e?vc(e):"line"in e||"column"in e?zu(e):""}function zu(e){return xc(e&&e.line)+":"+xc(e&&e.column)}function vc(e){return zu(e&&e.start)+"-"+zu(e&&e.end)}function xc(e){return e&&typeof e=="number"?e:1}class Ie extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",l={},o=!1;if(t&&("line"in t&&"column"in t?l={place:t}:"start"in t&&"end"in t?l={place:t}:"type"in t?l={ancestors:[t],place:t.position}:l={...t}),typeof n=="string"?i=n:!l.cause&&n&&(o=!0,i=n.message,l.cause=n),!l.ruleId&&!l.source&&typeof r=="string"){const a=r.indexOf(":");a===-1?l.ruleId=r:(l.source=r.slice(0,a),l.ruleId=r.slice(a+1))}if(!l.place&&l.ancestors&&l.ancestors){const a=l.ancestors[l.ancestors.length-1];a&&(l.place=a.position)}const u=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=u?u.line:void 0,this.name=Fr(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Ie.prototype.file="";Ie.prototype.name="";Ie.prototype.reason="";Ie.prototype.message="";Ie.prototype.stack="";Ie.prototype.column=void 0;Ie.prototype.line=void 0;Ie.prototype.ancestors=void 0;Ie.prototype.cause=void 0;Ie.prototype.fatal=void 0;Ie.prototype.place=void 0;Ie.prototype.ruleId=void 0;Ie.prototype.source=void 0;const Ra={}.hasOwnProperty,Gy=new Map,Zy=/[A-Z]/g,Jy=new Set(["table","tbody","thead","tfoot","tr"]),e1=new Set(["td","th"]),Td="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function n1(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=s1(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=a1(t,n.jsx,n.jsxs)}const i={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?Da:xy,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},l=zd(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function zd(e,n,t){if(n.type==="element")return t1(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return r1(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return l1(e,n,t);if(n.type==="mdxjsEsm")return i1(e,n);if(n.type==="root")return o1(e,n,t);if(n.type==="text")return u1(e,n)}function t1(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Da,e.schema=i),e.ancestors.push(n);const l=Ld(e,n.tagName,!1),o=c1(e,n);let u=Ma(e,n);return Jy.has(n.tagName)&&(u=u.filter(function(a){return typeof a=="string"?!cy(a):!0})),Id(e,o,l,n),Oa(o,u),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function r1(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}ei(e,n.position)}function i1(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);ei(e,n.position)}function l1(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=Da,e.schema=i),e.ancestors.push(n);const l=n.name===null?e.Fragment:Ld(e,n.name,!0),o=f1(e,n),u=Ma(e,n);return Id(e,o,l,n),Oa(o,u),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function o1(e,n,t){const r={};return Oa(r,Ma(e,n)),e.create(n,e.Fragment,r,t)}function u1(e,n){return n.value}function Id(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function Oa(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function a1(e,n,t){return r;function r(i,l,o,u){const s=Array.isArray(o.children)?t:n;return u?s(l,o,u):s(l,o)}}function s1(e,n){return t;function t(r,i,l,o){const u=Array.isArray(l.children),a=Fa(r);return n(i,l,o,u,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}function c1(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&Ra.call(n.properties,i)){const l=p1(e,i,n.properties[i]);if(l){const[o,u]=l;e.tableCellAlignToStyle&&o==="align"&&typeof u=="string"&&e1.has(n.tagName)?r=u:t[o]=u}}if(r){const l=t.style||(t.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function f1(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];l.type;const o=l.expression;o.type;const u=o.properties[0];u.type,Object.assign(t,e.evaluater.evaluateExpression(u.argument))}else ei(e,n.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const u=r.value.data.estree.body[0];u.type,l=e.evaluater.evaluateExpression(u.expression)}else ei(e,n.position);else l=r.value===null?!0:r.value;t[i]=l}return t}function Ma(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:Gy;for(;++ri?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(n,t),e.splice(...o);else for(t&&e.splice(n,t);l0?(Ye(e,e.length,0,n),e):n}const Cc={}.hasOwnProperty;function Dd(e){const n={};let t=-1;for(;++t13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function dn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ne=lt(/[A-Za-z]/),Te=lt(/[\dA-Za-z]/),w1=lt(/[#-'*+\--9=?A-Z^-~]/);function yl(e){return e!==null&&(e<32||e===127)}const Iu=lt(/\d/),S1=lt(/[\dA-Fa-f]/),C1=lt(/[!-/:-@[-`{-~]/);function O(e){return e!==null&&e<-2}function J(e){return e!==null&&(e<0||e===32)}function U(e){return e===-2||e===-1||e===32}const bl=lt(new RegExp("\\p{P}|\\p{S}","u")),wt=lt(/\s/);function lt(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function ar(e){const n=[];let t=-1,r=0,i=0;for(;++t55295&&l<57344){const u=e.charCodeAt(t+1);l<56320&&u>56319&&u<57344?(o=String.fromCharCode(l,u),i=1):o="�"}else o=String.fromCharCode(l);o&&(n.push(e.slice(r,t),encodeURIComponent(o)),r=t+i+1,o=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function W(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(a){return U(a)?(e.enter(t),u(a)):n(a)}function u(a){return U(a)&&l++o))return;const z=n.events.length;let L=z,M,S;for(;L--;)if(n.events[L][0]==="exit"&&n.events[L][1].type==="chunkFlow"){if(M){S=n.events[L][1].end;break}M=!0}for(h(r),w=z;wy;){const _=t[C];n.containerState=_[1],_[0].exit.call(n,e)}t.length=y}function g(){i.write([null]),l=void 0,i=void 0,n.containerState._closeFlow=void 0}}function z1(e,n,t){return W(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function rr(e){if(e===null||J(e)||wt(e))return 1;if(bl(e))return 2}function jl(e,n,t){const r=[];let i=-1;for(;++i1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const c={...e[r][1].end},d={...e[t][1].start};Pc(c,-a),Pc(d,a),o={type:a>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},u={type:a>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:d},l={type:a>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:a>1?"strong":"emphasis",start:{...o.start},end:{...u.end}},e[r][1].end={...o.start},e[t][1].start={...u.end},s=[],e[r][1].end.offset-e[r][1].start.offset&&(s=Je(s,[["enter",e[r][1],n],["exit",e[r][1],n]])),s=Je(s,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",l,n]]),s=Je(s,jl(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),s=Je(s,[["exit",l,n],["enter",u,n],["exit",u,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(f=2,s=Je(s,[["enter",e[t][1],n],["exit",e[t][1],n]])):f=0,Ye(e,r-1,t-r+3,s),t=r+s.length-f-2;break}}for(t=-1;++t0&&U(w)?W(e,g,"linePrefix",l+1)(w):g(w)}function g(w){return w===null||O(w)?e.check(_c,x,C)(w):(e.enter("codeFlowValue"),y(w))}function y(w){return w===null||O(w)?(e.exit("codeFlowValue"),g(w)):(e.consume(w),y)}function C(w){return e.exit("codeFenced"),n(w)}function _(w,z,L){let M=0;return S;function S(V){return w.enter("lineEnding"),w.consume(V),w.exit("lineEnding"),A}function A(V){return w.enter("codeFencedFence"),U(V)?W(w,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(V):R(V)}function R(V){return V===u?(w.enter("codeFencedFenceSequence"),Q(V)):L(V)}function Q(V){return V===u?(M++,w.consume(V),Q):M>=o?(w.exit("codeFencedFenceSequence"),U(V)?W(w,ee,"whitespace")(V):ee(V)):L(V)}function ee(V){return V===null||O(V)?(w.exit("codeFencedFence"),z(V)):L(V)}}}function B1(e,n,t){const r=this;return i;function i(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}const ko={name:"codeIndented",tokenize:H1},U1={partial:!0,tokenize:V1};function H1(e,n,t){const r=this;return i;function i(s){return e.enter("codeIndented"),W(e,l,"linePrefix",5)(s)}function l(s){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?o(s):t(s)}function o(s){return s===null?a(s):O(s)?e.attempt(U1,o,a)(s):(e.enter("codeFlowValue"),u(s))}function u(s){return s===null||O(s)?(e.exit("codeFlowValue"),o(s)):(e.consume(s),u)}function a(s){return e.exit("codeIndented"),n(s)}}function V1(e,n,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):O(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):W(e,l,"linePrefix",5)(o)}function l(o){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?n(o):O(o)?i(o):t(o)}}const $1={name:"codeText",previous:Q1,resolve:W1,tokenize:Y1};function W1(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return nthis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&vr(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),vr(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),vr(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}}function bd(e,n,t,r,i,l,o,u,a){const s=a||Number.POSITIVE_INFINITY;let f=0;return c;function c(h){return h===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(h),e.exit(l),d):h===null||h===32||h===41||yl(h)?t(h):(e.enter(r),e.enter(o),e.enter(u),e.enter("chunkString",{contentType:"string"}),x(h))}function d(h){return h===62?(e.enter(l),e.consume(h),e.exit(l),e.exit(i),e.exit(r),n):(e.enter(u),e.enter("chunkString",{contentType:"string"}),p(h))}function p(h){return h===62?(e.exit("chunkString"),e.exit(u),d(h)):h===null||h===60||O(h)?t(h):(e.consume(h),h===92?m:p)}function m(h){return h===60||h===62||h===92?(e.consume(h),p):p(h)}function x(h){return!f&&(h===null||h===41||J(h))?(e.exit("chunkString"),e.exit(u),e.exit(o),e.exit(r),n(h)):f999||p===null||p===91||p===93&&!a||p===94&&!u&&"_hiddenFootnoteSupport"in o.parser.constructs?t(p):p===93?(e.exit(l),e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):O(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===null||p===91||p===93||O(p)||u++>999?(e.exit("chunkString"),f(p)):(e.consume(p),a||(a=!U(p)),p===92?d:c)}function d(p){return p===91||p===92||p===93?(e.consume(p),u++,c):c(p)}}function Bd(e,n,t,r,i,l){let o;return u;function u(d){return d===34||d===39||d===40?(e.enter(r),e.enter(i),e.consume(d),e.exit(i),o=d===40?41:d,a):t(d)}function a(d){return d===o?(e.enter(i),e.consume(d),e.exit(i),e.exit(r),n):(e.enter(l),s(d))}function s(d){return d===o?(e.exit(l),a(o)):d===null?t(d):O(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),W(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(d))}function f(d){return d===o||d===null||O(d)?(e.exit("chunkString"),s(d)):(e.consume(d),d===92?c:f)}function c(d){return d===o||d===92?(e.consume(d),f):f(d)}}function Rr(e,n){let t;return r;function r(i){return O(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):U(i)?W(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const nk={name:"definition",tokenize:rk},tk={partial:!0,tokenize:ik};function rk(e,n,t){const r=this;let i;return l;function l(p){return e.enter("definition"),o(p)}function o(p){return jd.call(r,e,u,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function u(p){return i=dn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),a):t(p)}function a(p){return J(p)?Rr(e,s)(p):s(p)}function s(p){return bd(e,f,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function f(p){return e.attempt(tk,c,c)(p)}function c(p){return U(p)?W(e,d,"whitespace")(p):d(p)}function d(p){return p===null||O(p)?(e.exit("definition"),r.parser.defined.push(i),n(p)):t(p)}}function ik(e,n,t){return r;function r(u){return J(u)?Rr(e,i)(u):t(u)}function i(u){return Bd(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function l(u){return U(u)?W(e,o,"whitespace")(u):o(u)}function o(u){return u===null||O(u)?n(u):t(u)}}const lk={name:"hardBreakEscape",tokenize:ok};function ok(e,n,t){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return O(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}const uk={name:"headingAtx",resolve:ak,tokenize:sk};function ak(e,n){let t=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},l={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},Ye(e,r,t-r+1,[["enter",i,n],["enter",l,n],["exit",l,n],["exit",i,n]])),e}function sk(e,n,t){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||J(f)?(e.exit("atxHeadingSequence"),u(f)):t(f)}function u(f){return f===35?(e.enter("atxHeadingSequence"),a(f)):f===null||O(f)?(e.exit("atxHeading"),n(f)):U(f)?W(e,u,"whitespace")(f):(e.enter("atxHeadingText"),s(f))}function a(f){return f===35?(e.consume(f),a):(e.exit("atxHeadingSequence"),u(f))}function s(f){return f===null||f===35||J(f)?(e.exit("atxHeadingText"),u(f)):(e.consume(f),s)}}const ck=["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"],zc=["pre","script","style","textarea"],fk={concrete:!0,name:"htmlFlow",resolveTo:hk,tokenize:mk},pk={partial:!0,tokenize:yk},dk={partial:!0,tokenize:gk};function hk(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function mk(e,n,t){const r=this;let i,l,o,u,a;return s;function s(v){return f(v)}function f(v){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(v),c}function c(v){return v===33?(e.consume(v),d):v===47?(e.consume(v),l=!0,x):v===63?(e.consume(v),i=3,r.interrupt?n:k):Ne(v)?(e.consume(v),o=String.fromCharCode(v),P):t(v)}function d(v){return v===45?(e.consume(v),i=2,p):v===91?(e.consume(v),i=5,u=0,m):Ne(v)?(e.consume(v),i=4,r.interrupt?n:k):t(v)}function p(v){return v===45?(e.consume(v),r.interrupt?n:k):t(v)}function m(v){const ge="CDATA[";return v===ge.charCodeAt(u++)?(e.consume(v),u===ge.length?r.interrupt?n:R:m):t(v)}function x(v){return Ne(v)?(e.consume(v),o=String.fromCharCode(v),P):t(v)}function P(v){if(v===null||v===47||v===62||J(v)){const ge=v===47,ln=o.toLowerCase();return!ge&&!l&&zc.includes(ln)?(i=1,r.interrupt?n(v):R(v)):ck.includes(o.toLowerCase())?(i=6,ge?(e.consume(v),h):r.interrupt?n(v):R(v)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(v):l?g(v):y(v))}return v===45||Te(v)?(e.consume(v),o+=String.fromCharCode(v),P):t(v)}function h(v){return v===62?(e.consume(v),r.interrupt?n:R):t(v)}function g(v){return U(v)?(e.consume(v),g):S(v)}function y(v){return v===47?(e.consume(v),S):v===58||v===95||Ne(v)?(e.consume(v),C):U(v)?(e.consume(v),y):S(v)}function C(v){return v===45||v===46||v===58||v===95||Te(v)?(e.consume(v),C):_(v)}function _(v){return v===61?(e.consume(v),w):U(v)?(e.consume(v),_):y(v)}function w(v){return v===null||v===60||v===61||v===62||v===96?t(v):v===34||v===39?(e.consume(v),a=v,z):U(v)?(e.consume(v),w):L(v)}function z(v){return v===a?(e.consume(v),a=null,M):v===null||O(v)?t(v):(e.consume(v),z)}function L(v){return v===null||v===34||v===39||v===47||v===60||v===61||v===62||v===96||J(v)?_(v):(e.consume(v),L)}function M(v){return v===47||v===62||U(v)?y(v):t(v)}function S(v){return v===62?(e.consume(v),A):t(v)}function A(v){return v===null||O(v)?R(v):U(v)?(e.consume(v),A):t(v)}function R(v){return v===45&&i===2?(e.consume(v),de):v===60&&i===1?(e.consume(v),fe):v===62&&i===4?(e.consume(v),Y):v===63&&i===3?(e.consume(v),k):v===93&&i===5?(e.consume(v),b):O(v)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(pk,G,Q)(v)):v===null||O(v)?(e.exit("htmlFlowData"),Q(v)):(e.consume(v),R)}function Q(v){return e.check(dk,ee,G)(v)}function ee(v){return e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),V}function V(v){return v===null||O(v)?Q(v):(e.enter("htmlFlowData"),R(v))}function de(v){return v===45?(e.consume(v),k):R(v)}function fe(v){return v===47?(e.consume(v),o="",D):R(v)}function D(v){if(v===62){const ge=o.toLowerCase();return zc.includes(ge)?(e.consume(v),Y):R(v)}return Ne(v)&&o.length<8?(e.consume(v),o+=String.fromCharCode(v),D):R(v)}function b(v){return v===93?(e.consume(v),k):R(v)}function k(v){return v===62?(e.consume(v),Y):v===45&&i===2?(e.consume(v),k):R(v)}function Y(v){return v===null||O(v)?(e.exit("htmlFlowData"),G(v)):(e.consume(v),Y)}function G(v){return e.exit("htmlFlow"),n(v)}}function gk(e,n,t){const r=this;return i;function i(o){return O(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):t(o)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}function yk(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(ai,n,t)}}const kk={name:"htmlText",tokenize:vk};function vk(e,n,t){const r=this;let i,l,o;return u;function u(k){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(k),a}function a(k){return k===33?(e.consume(k),s):k===47?(e.consume(k),_):k===63?(e.consume(k),y):Ne(k)?(e.consume(k),L):t(k)}function s(k){return k===45?(e.consume(k),f):k===91?(e.consume(k),l=0,m):Ne(k)?(e.consume(k),g):t(k)}function f(k){return k===45?(e.consume(k),p):t(k)}function c(k){return k===null?t(k):k===45?(e.consume(k),d):O(k)?(o=c,fe(k)):(e.consume(k),c)}function d(k){return k===45?(e.consume(k),p):c(k)}function p(k){return k===62?de(k):k===45?d(k):c(k)}function m(k){const Y="CDATA[";return k===Y.charCodeAt(l++)?(e.consume(k),l===Y.length?x:m):t(k)}function x(k){return k===null?t(k):k===93?(e.consume(k),P):O(k)?(o=x,fe(k)):(e.consume(k),x)}function P(k){return k===93?(e.consume(k),h):x(k)}function h(k){return k===62?de(k):k===93?(e.consume(k),h):x(k)}function g(k){return k===null||k===62?de(k):O(k)?(o=g,fe(k)):(e.consume(k),g)}function y(k){return k===null?t(k):k===63?(e.consume(k),C):O(k)?(o=y,fe(k)):(e.consume(k),y)}function C(k){return k===62?de(k):y(k)}function _(k){return Ne(k)?(e.consume(k),w):t(k)}function w(k){return k===45||Te(k)?(e.consume(k),w):z(k)}function z(k){return O(k)?(o=z,fe(k)):U(k)?(e.consume(k),z):de(k)}function L(k){return k===45||Te(k)?(e.consume(k),L):k===47||k===62||J(k)?M(k):t(k)}function M(k){return k===47?(e.consume(k),de):k===58||k===95||Ne(k)?(e.consume(k),S):O(k)?(o=M,fe(k)):U(k)?(e.consume(k),M):de(k)}function S(k){return k===45||k===46||k===58||k===95||Te(k)?(e.consume(k),S):A(k)}function A(k){return k===61?(e.consume(k),R):O(k)?(o=A,fe(k)):U(k)?(e.consume(k),A):M(k)}function R(k){return k===null||k===60||k===61||k===62||k===96?t(k):k===34||k===39?(e.consume(k),i=k,Q):O(k)?(o=R,fe(k)):U(k)?(e.consume(k),R):(e.consume(k),ee)}function Q(k){return k===i?(e.consume(k),i=void 0,V):k===null?t(k):O(k)?(o=Q,fe(k)):(e.consume(k),Q)}function ee(k){return k===null||k===34||k===39||k===60||k===61||k===96?t(k):k===47||k===62||J(k)?M(k):(e.consume(k),ee)}function V(k){return k===47||k===62||J(k)?M(k):t(k)}function de(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),n):t(k)}function fe(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),D}function D(k){return U(k)?W(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):b(k)}function b(k){return e.enter("htmlTextData"),o(k)}}const Ba={name:"labelEnd",resolveAll:Ck,resolveTo:Ek,tokenize:Pk},xk={tokenize:_k},wk={tokenize:Tk},Sk={tokenize:zk};function Ck(e){let n=-1;const t=[];for(;++n=3&&(s===null||O(s))?(e.exit("thematicBreak"),n(s)):t(s)}function a(s){return s===i?(e.consume(s),r++,a):(e.exit("thematicBreakSequence"),U(s)?W(e,u,"whitespace")(s):u(s))}}const Re={continuation:{tokenize:bk},exit:Bk,name:"list",tokenize:Mk},Rk={partial:!0,tokenize:Uk},Ok={partial:!0,tokenize:jk};function Mk(e,n,t){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return u;function u(p){const m=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Iu(p)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check($i,t,s)(p):s(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(p)}return t(p)}function a(p){return Iu(p)&&++o<10?(e.consume(p),a):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),s(p)):t(p)}function s(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(ai,r.interrupt?t:f,e.attempt(Rk,d,c))}function f(p){return r.containerState.initialBlankLine=!0,l++,d(p)}function c(p){return U(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),d):t(p)}function d(p){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(p)}}function bk(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(ai,i,l);function i(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,W(e,n,"listItemIndent",r.containerState.size+1)(u)}function l(u){return r.containerState.furtherBlankLines||!U(u)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(u)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Ok,n,o)(u))}function o(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,W(e,e.attempt(Re,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function jk(e,n,t){const r=this;return W(e,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?n(l):t(l)}}function Bk(e){e.exit(this.containerState.type)}function Uk(e,n,t){const r=this;return W(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const o=r.events[r.events.length-1];return!U(l)&&o&&o[1].type==="listItemPrefixWhitespace"?n(l):t(l)}}const Ic={name:"setextUnderline",resolveTo:Hk,tokenize:Vk};function Hk(e,n){let t=e.length,r,i,l;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!l&&e[t][1].type==="definition"&&(l=t);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",o,n]),e.splice(l+1,0,["exit",e[r][1],n]),e[r][1].end={...e[l][1].end}):e[r][1]=o,e.push(["exit",o,n]),e}function Vk(e,n,t){const r=this;let i;return l;function l(s){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=s,o(s)):t(s)}function o(s){return e.enter("setextHeadingLineSequence"),u(s)}function u(s){return s===i?(e.consume(s),u):(e.exit("setextHeadingLineSequence"),U(s)?W(e,a,"lineSuffix")(s):a(s))}function a(s){return s===null||O(s)?(e.exit("setextHeadingLine"),n(s)):t(s)}}const $k={tokenize:Wk};function Wk(e){const n=this,t=e.attempt(ai,r,e.attempt(this.parser.constructs.flowInitial,i,W(e,e.attempt(this.parser.constructs.flow,i,e.attempt(X1,i)),"linePrefix")));return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const Qk={resolveAll:Hd()},Yk=Ud("string"),Kk=Ud("text");function Ud(e){return{resolveAll:Hd(e==="text"?qk:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],l=t.attempt(i,o,u);return o;function o(f){return s(f)?l(f):u(f)}function u(f){if(f===null){t.consume(f);return}return t.enter("data"),t.consume(f),a}function a(f){return s(f)?(t.exit("data"),l(f)):(t.consume(f),a)}function s(f){if(f===null)return!0;const c=i[f];let d=-1;if(c)for(;++d-1){const u=o[0];typeof u=="string"?o[0]=u.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function av(e,n){let t=-1;const r=[];let i;for(;++t0){const on=j.tokenStack[j.tokenStack.length-1];(on[1]||Nc).call(j,void 0,on[0])}for(N.position={start:jn(E.length>0?E[0][1].start:{line:1,column:1,offset:0}),end:jn(E.length>0?E[E.length-2][1].end:{line:1,column:1,offset:0})},Z=-1;++Z0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:t}]};return n.meta&&(l.data={meta:n.meta}),e.patch(n,l),l=e.applyData(n,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(n,l),l}function Sv(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Cv(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Ev(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),i=ar(r.toLowerCase()),l=e.footnoteOrder.indexOf(r);let o,u=e.footnoteCounts.get(r);u===void 0?(u=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=l+1,u+=1,e.footnoteCounts.set(r,u);const a={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+i,id:t+"fnref-"+i+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(n,a);const s={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(n,s),e.applyData(n,s)}function Pv(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function _v(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function Wd(e,n){const t=n.referenceType;let r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];const i=e.all(n),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function Tv(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return Wd(e,n);const i={src:ar(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,l),e.applyData(n,l)}function zv(e,n){const t={src:ar(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,r),e.applyData(n,r)}function Iv(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const r={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,r),e.applyData(n,r)}function Lv(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return Wd(e,n);const i={href:ar(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,l),e.applyData(n,l)}function Nv(e,n){const t={href:ar(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Dv(e,n,t){const r=e.all(n),i=t?Av(t):Qd(n),l={},o=[];if(typeof n.checked=="boolean"){const f=r[0];let c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let u=-1;for(;++u1}function Fv(e,n){const t={},r=e.all(n);let i=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++i0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},u=Fa(n.children[1]),a=Pd(n.children[n.children.length-1]);u&&a&&(o.position={start:u,end:a}),i.push(o)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(n,l),e.applyData(n,l)}function jv(e,n,t){const r=t?t.children:void 0,l=(r?r.indexOf(n):1)===0?"th":"td",o=t&&t.type==="table"?t.align:void 0,u=o?o.length:n.children.length;let a=-1;const s=[];for(;++a0,!0),r[0]),i=r.index+r[0].length,r=t.exec(n);return l.push(Fc(n.slice(i),i>0,!1)),l.join("")}function Fc(e,n,t){let r=0,i=e.length;if(n){let l=e.codePointAt(r);for(;l===Dc||l===Ac;)r++,l=e.codePointAt(r)}if(t){let l=e.codePointAt(i-1);for(;l===Dc||l===Ac;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Hv(e,n){const t={type:"text",value:Uv(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function Vv(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const $v={blockquote:vv,break:xv,code:wv,delete:Sv,emphasis:Cv,footnoteReference:Ev,heading:Pv,html:_v,imageReference:Tv,image:zv,inlineCode:Iv,linkReference:Lv,link:Nv,listItem:Dv,list:Fv,paragraph:Rv,root:Ov,strong:Mv,table:bv,tableCell:Bv,tableRow:jv,text:Hv,thematicBreak:Vv,toml:zi,yaml:zi,definition:zi,footnoteDefinition:zi};function zi(){}const Yd=-1,Bl=0,Or=1,kl=2,Ua=3,Ha=4,Va=5,$a=6,Kd=7,qd=8,Rc=typeof self=="object"?self:globalThis,Wv=(e,n)=>{const t=(i,l)=>(e.set(l,i),i),r=i=>{if(e.has(i))return e.get(i);const[l,o]=n[i];switch(l){case Bl:case Yd:return t(o,i);case Or:{const u=t([],i);for(const a of o)u.push(r(a));return u}case kl:{const u=t({},i);for(const[a,s]of o)u[r(a)]=r(s);return u}case Ua:return t(new Date(o),i);case Ha:{const{source:u,flags:a}=o;return t(new RegExp(u,a),i)}case Va:{const u=t(new Map,i);for(const[a,s]of o)u.set(r(a),r(s));return u}case $a:{const u=t(new Set,i);for(const a of o)u.add(r(a));return u}case Kd:{const{name:u,message:a}=o;return t(new Rc[u](a),i)}case qd:return t(BigInt(o),i);case"BigInt":return t(Object(BigInt(o)),i);case"ArrayBuffer":return t(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:u}=new Uint8Array(o);return t(new DataView(u),o)}}return t(new Rc[l](o),i)};return r},Oc=e=>Wv(new Map,e)(0),It="",{toString:Qv}={},{keys:Yv}=Object,xr=e=>{const n=typeof e;if(n!=="object"||!e)return[Bl,n];const t=Qv.call(e).slice(8,-1);switch(t){case"Array":return[Or,It];case"Object":return[kl,It];case"Date":return[Ua,It];case"RegExp":return[Ha,It];case"Map":return[Va,It];case"Set":return[$a,It];case"DataView":return[Or,t]}return t.includes("Array")?[Or,t]:t.includes("Error")?[Kd,t]:[kl,t]},Ii=([e,n])=>e===Bl&&(n==="function"||n==="symbol"),Kv=(e,n,t,r)=>{const i=(o,u)=>{const a=r.push(o)-1;return t.set(u,a),a},l=o=>{if(t.has(o))return t.get(o);let[u,a]=xr(o);switch(u){case Bl:{let f=o;switch(a){case"bigint":u=qd,f=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);f=null;break;case"undefined":return i([Yd],o)}return i([u,f],o)}case Or:{if(a){let d=o;return a==="DataView"?d=new Uint8Array(o.buffer):a==="ArrayBuffer"&&(d=new Uint8Array(o)),i([a,[...d]],o)}const f=[],c=i([u,f],o);for(const d of o)f.push(l(d));return c}case kl:{if(a)switch(a){case"BigInt":return i([a,o.toString()],o);case"Boolean":case"Number":case"String":return i([a,o.valueOf()],o)}if(n&&"toJSON"in o)return l(o.toJSON());const f=[],c=i([u,f],o);for(const d of Yv(o))(e||!Ii(xr(o[d])))&&f.push([l(d),l(o[d])]);return c}case Ua:return i([u,o.toISOString()],o);case Ha:{const{source:f,flags:c}=o;return i([u,{source:f,flags:c}],o)}case Va:{const f=[],c=i([u,f],o);for(const[d,p]of o)(e||!(Ii(xr(d))||Ii(xr(p))))&&f.push([l(d),l(p)]);return c}case $a:{const f=[],c=i([u,f],o);for(const d of o)(e||!Ii(xr(d)))&&f.push(l(d));return c}}const{message:s}=o;return i([u,{name:a,message:s}],o)};return l},Mc=(e,{json:n,lossy:t}={})=>{const r=[];return Kv(!(n||t),!!n,new Map,r)(e),r},vl=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?Oc(Mc(e,n)):structuredClone(e):(e,n)=>Oc(Mc(e,n));function qv(e,n){const t=[{type:"text",value:"↩"}];return n>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),t}function Xv(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function Gv(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||qv,r=e.options.footnoteBackLabel||Xv,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let a=-1;for(;++a0&&m.push({type:"text",value:" "});let g=typeof t=="string"?t:t(a,p);typeof g=="string"&&(g={type:"text",value:g}),m.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+d+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(a,p),className:["data-footnote-backref"]},children:Array.isArray(g)?g:[g]})}const P=f[f.length-1];if(P&&P.type==="element"&&P.tagName==="p"){const g=P.children[P.children.length-1];g&&g.type==="text"?g.value+=" ":P.children.push({type:"text",value:" "}),P.children.push(...m)}else f.push(...m);const h={type:"element",tagName:"li",properties:{id:n+"fn-"+d},children:e.wrap(f,!0)};e.patch(s,h),u.push(h)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...vl(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` `},{type:"element",tagName:"ol",properties:{},children:e.wrap(u,!0)},{type:"text",value:` `}]}}const Ul=function(e){if(e==null)return n0;if(typeof e=="function")return Hl(e);if(typeof e=="object")return Array.isArray(e)?Zv(e):Jv(e);if(typeof e=="string")return e0(e);throw new Error("Expected function, string, or object as test")};function Zv(e){const n=[];let t=-1;for(;++t":""))+")"})}return d;function d(){let p=Xd,m,x,P;if((!n||l(a,s,f[f.length-1]||void 0))&&(p=l0(t(a,f)),p[0]===Nu))return p;if("children"in a&&a.children){const h=a;if(h.children&&p[0]!==i0)for(x=(r?h.children.length:-1)+o,P=f.concat(h);x>-1&&x0&&t.push({type:"text",value:` `}),t}function bc(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function jc(e,n){const t=u0(e,n),r=t.one(e,void 0),i=Gv(t),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:` `},i),l}function p0(e,n){return e&&"run"in e?async function(t,r){const i=jc(t,{file:r,...n});await e.run(i,r)}:function(t,r){return jc(t,{file:r,...e||n})}}function Bc(e){if(e)throw e}var Wi=Object.prototype.hasOwnProperty,Zd=Object.prototype.toString,Uc=Object.defineProperty,Hc=Object.getOwnPropertyDescriptor,Vc=function(n){return typeof Array.isArray=="function"?Array.isArray(n):Zd.call(n)==="[object Array]"},$c=function(n){if(!n||Zd.call(n)!=="[object Object]")return!1;var t=Wi.call(n,"constructor"),r=n.constructor&&n.constructor.prototype&&Wi.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!t&&!r)return!1;var i;for(i in n);return typeof i>"u"||Wi.call(n,i)},Wc=function(n,t){Uc&&t.name==="__proto__"?Uc(n,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):n[t.name]=t.newValue},Qc=function(n,t){if(t==="__proto__")if(Wi.call(n,t)){if(Hc)return Hc(n,t).value}else return;return n[t]},d0=function e(){var n,t,r,i,l,o,u=arguments[0],a=1,s=arguments.length,f=!1;for(typeof u=="boolean"&&(f=u,u=arguments[1]||{},a=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});ao.length;let a;u&&o.push(i);try{a=e.apply(this,o)}catch(s){const f=s;if(u&&t)throw f;return i(f)}u||(a&&a.then&&typeof a.then=="function"?a.then(l,i):a instanceof Error?i(a):l(a))}function i(o,...u){t||(t=!0,n(o,...u))}function l(o){i(null,o)}}const kn={basename:g0,dirname:y0,extname:k0,join:v0,sep:"/"};function g0(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');si(e);let t=0,r=-1,i=e.length,l;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let o=-1,u=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else o<0&&(l=!0,o=i+1),u>-1&&(e.codePointAt(i)===n.codePointAt(u--)?u<0&&(r=i):(u=-1,r=o));return t===r?r=o:r<0&&(r=e.length),e.slice(t,r)}function y0(e){if(si(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function k0(e){si(e);let n=e.length,t=-1,r=0,i=-1,l=0,o;for(;n--;){const u=e.codePointAt(n);if(u===47){if(o){r=n+1;break}continue}t<0&&(o=!0,t=n+1),u===46?i<0?i=n:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||t<0||l===0||l===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function v0(...e){let n=-1,t;for(;++n0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function w0(e,n){let t="",r=0,i=-1,l=0,o=-1,u,a;for(;++o<=e.length;){if(o2){if(a=t.lastIndexOf("/"),a!==t.length-1){a<0?(t="",r=0):(t=t.slice(0,a),r=t.length-1-t.lastIndexOf("/")),i=o,l=0;continue}}else if(t.length>0){t="",r=0,i=o,l=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,o):t=e.slice(i+1,o),r=o-i-1;i=o,l=0}else u===46&&l>-1?l++:l=-1}return t}function si(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const S0={cwd:C0};function C0(){return"/"}function Fu(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function E0(e){if(typeof e=="string")e=new URL(e);else if(!Fu(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return P0(e)}function P0(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const n=e.pathname;let t=-1;for(;++t0){let[p,...m]=f;const x=r[d][1];Au(x)&&Au(p)&&(p=xo(!0,x,p)),r[d]=[s,p,...m]}}}}const I0=new Qa().freeze();function Eo(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Po(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function _o(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Kc(e){if(!Au(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function qc(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Li(e){return L0(e)?e:new Jd(e)}function L0(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function N0(e){return typeof e=="string"||D0(e)}function D0(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const A0="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Xc=[],Gc={allowDangerousHtml:!0},F0=/^(https?|ircs?|mailto|xmpp)$/i,R0=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function O0(e){const n=M0(e),t=b0(e);return j0(n.runSync(n.parse(t),t),e)}function M0(e){const n=e.rehypePlugins||Xc,t=e.remarkPlugins||Xc,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Gc}:Gc;return I0().use(kv).use(t).use(p0,r).use(n)}function b0(e){const n=e.children||"",t=new Jd;return typeof n=="string"&&(t.value=n),t}function j0(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,l=n.disallowedElements,o=n.skipHtml,u=n.unwrapDisallowed,a=n.urlTransform||B0;for(const f of R0)Object.hasOwn(n,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+A0+f.id,void 0);return n.className&&(e={type:"element",tagName:"div",properties:{className:n.className},children:e.type==="root"?e.children:[e]}),Wa(e,s),n1(e,{Fragment:q.Fragment,components:i,ignoreInvalidStyle:!0,jsx:q.jsx,jsxs:q.jsxs,passKeys:!0,passNode:!0});function s(f,c,d){if(f.type==="raw"&&d&&typeof c=="number")return o?d.children.splice(c,1):d.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let p;for(p in yo)if(Object.hasOwn(yo,p)&&Object.hasOwn(f.properties,p)){const m=f.properties[p],x=yo[p];(x===null||x.includes(f.tagName))&&(f.properties[p]=a(String(m||""),p,f))}}if(f.type==="element"){let p=t?!t.includes(f.tagName):l?l.includes(f.tagName):!1;if(!p&&r&&typeof c=="number"&&(p=!r(f,c,d)),p&&d&&typeof c=="number")return u&&f.children?d.children.splice(c,1,...f.children):d.children.splice(c,1),c}}}function B0(e){const n=e.indexOf(":"),t=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return n===-1||i!==-1&&n>i||t!==-1&&n>t||r!==-1&&n>r||F0.test(e.slice(0,n))?e:""}function Zc(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let r=0,i=t.indexOf(n);for(;i!==-1;)r++,i=t.indexOf(n,i+n.length);return r}function U0(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function H0(e,n,t){const i=Ul((t||{}).ignore||[]),l=V0(n);let o=-1;for(;++o0?{type:"text",value:w}:void 0),w===!1?d.lastIndex=C+1:(m!==C&&g.push({type:"text",value:s.value.slice(m,C)}),Array.isArray(w)?g.push(...w):w&&g.push(w),m=C+y[0].length,h=!0),!d.global)break;y=d.exec(s.value)}return h?(m?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],r=t.indexOf(")");const i=Zc(e,"(");let l=Zc(e,")");for(;r!==-1&&i>l;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),l++;return[e,t]}function eh(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||wt(t)||bl(t))&&(!n||t!==47)}nh.peek=px;function ix(){this.buffer()}function lx(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function ox(){this.buffer()}function ux(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function ax(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=dn(this.sliceSerialize(e)).toLowerCase(),t.label=n}function sx(e){this.exit(e)}function cx(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=dn(this.sliceSerialize(e)).toLowerCase(),t.label=n}function fx(e){this.exit(e)}function px(){return"["}function nh(e,n,t,r){const i=t.createTracker(r);let l=i.move("[^");const o=t.enter("footnoteReference"),u=t.enter("reference");return l+=i.move(t.safe(t.associationId(e),{after:"]",before:l})),u(),o(),l+=i.move("]"),l}function dx(){return{enter:{gfmFootnoteCallString:ix,gfmFootnoteCall:lx,gfmFootnoteDefinitionLabelString:ox,gfmFootnoteDefinition:ux},exit:{gfmFootnoteCallString:ax,gfmFootnoteCall:sx,gfmFootnoteDefinitionLabelString:cx,gfmFootnoteDefinition:fx}}}function hx(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:t,footnoteReference:nh},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(r,i,l,o){const u=l.createTracker(o);let a=u.move("[^");const s=l.enter("footnoteDefinition"),f=l.enter("label");return a+=u.move(l.safe(l.associationId(r),{before:a,after:"]"})),f(),a+=u.move("]:"),r.children&&r.children.length>0&&(u.shift(4),a+=u.move((n?` `:" ")+l.indentLines(l.containerFlow(r,u.current()),n?th:mx))),s(),a}}function mx(e,n,t){return n===0?e:th(e,n,t)}function th(e,n,t){return(t?"":" ")+e}const gx=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];rh.peek=wx;function yx(){return{canContainEols:["delete"],enter:{strikethrough:vx},exit:{strikethrough:xx}}}function kx(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:gx}],handlers:{delete:rh}}}function vx(e){this.enter({type:"delete",children:[]},e)}function xx(e){this.exit(e)}function rh(e,n,t,r){const i=t.createTracker(r),l=t.enter("strikethrough");let o=i.move("~~");return o+=t.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),l(),o}function wx(){return"~"}function Sx(e){return e.length}function Cx(e,n){const t=n||{},r=(t.align||[]).concat(),i=t.stringLength||Sx,l=[],o=[],u=[],a=[];let s=0,f=-1;for(;++fs&&(s=e[f].length);++ha[h])&&(a[h]=y)}x.push(g)}o[f]=x,u[f]=P}let c=-1;if(typeof r=="object"&&"length"in r)for(;++ca[c]&&(a[c]=g),p[c]=g),d[c]=y}o.splice(1,0,d),u.splice(1,0,p),f=-1;const m=[];for(;++f "),l.shift(2);const o=t.indentLines(t.containerFlow(e,l.current()),_x);return i(),o}function _x(e,n,t){return">"+(t?"":" ")+e}function Tx(e,n){return ef(e,n.inConstruct,!0)&&!ef(e,n.notInConstruct,!1)}function ef(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let r=-1;for(;++ro&&(o=l):l=1,i=r+n.length,r=t.indexOf(n,i);return o}function Ix(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Lx(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function Nx(e,n,t,r){const i=Lx(t),l=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(Ix(e,t)){const c=t.enter("codeIndented"),d=t.indentLines(l,Dx);return c(),d}const u=t.createTracker(r),a=i.repeat(Math.max(zx(l,i)+1,3)),s=t.enter("codeFenced");let f=u.move(a);if(e.lang){const c=t.enter(`codeFencedLang${o}`);f+=u.move(t.safe(e.lang,{before:f,after:" ",encode:["`"],...u.current()})),c()}if(e.lang&&e.meta){const c=t.enter(`codeFencedMeta${o}`);f+=u.move(" "),f+=u.move(t.safe(e.meta,{before:f,after:` `,encode:["`"],...u.current()})),c()}return f+=u.move(` `),l&&(f+=u.move(l+` `)),f+=u.move(a),s(),f}function Dx(e,n,t){return(t?"":" ")+e}function Ya(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function Ax(e,n,t,r){const i=Ya(t),l=i==='"'?"Quote":"Apostrophe",o=t.enter("definition");let u=t.enter("label");const a=t.createTracker(r);let s=a.move("[");return s+=a.move(t.safe(t.associationId(e),{before:s,after:"]",...a.current()})),s+=a.move("]: "),u(),!e.url||/[\0- \u007F]/.test(e.url)?(u=t.enter("destinationLiteral"),s+=a.move("<"),s+=a.move(t.safe(e.url,{before:s,after:">",...a.current()})),s+=a.move(">")):(u=t.enter("destinationRaw"),s+=a.move(t.safe(e.url,{before:s,after:e.title?" ":` `,...a.current()}))),u(),e.title&&(u=t.enter(`title${l}`),s+=a.move(" "+i),s+=a.move(t.safe(e.title,{before:s,after:i,...a.current()})),s+=a.move(i),u()),o(),s}function Fx(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function ni(e){return"&#x"+e.toString(16).toUpperCase()+";"}function xl(e,n,t){const r=rr(e),i=rr(n);return r===void 0?i===void 0?t==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}ih.peek=Rx;function ih(e,n,t,r){const i=Fx(t),l=t.enter("emphasis"),o=t.createTracker(r),u=o.move(i);let a=o.move(t.containerPhrasing(e,{after:i,before:u,...o.current()}));const s=a.charCodeAt(0),f=xl(r.before.charCodeAt(r.before.length-1),s,i);f.inside&&(a=ni(s)+a.slice(1));const c=a.charCodeAt(a.length-1),d=xl(r.after.charCodeAt(0),c,i);d.inside&&(a=a.slice(0,-1)+ni(c));const p=o.move(i);return l(),t.attentionEncodeSurroundingInfo={after:d.outside,before:f.outside},u+a+p}function Rx(e,n,t){return t.options.emphasis||"*"}function Ox(e,n){let t=!1;return Wa(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return t=!0,Nu}),!!((!e.depth||e.depth<3)&&ba(e)&&(n.options.setext||t))}function Mx(e,n,t,r){const i=Math.max(Math.min(6,e.depth||1),1),l=t.createTracker(r);if(Ox(e,t)){const f=t.enter("headingSetext"),c=t.enter("phrasing"),d=t.containerPhrasing(e,{...l.current(),before:` `,after:` `});return c(),f(),d+` `+(i===1?"=":"-").repeat(d.length-(Math.max(d.lastIndexOf("\r"),d.lastIndexOf(` `))+1))}const o="#".repeat(i),u=t.enter("headingAtx"),a=t.enter("phrasing");l.move(o+" ");let s=t.containerPhrasing(e,{before:"# ",after:` `,...l.current()});return/^[\t ]/.test(s)&&(s=ni(s.charCodeAt(0))+s.slice(1)),s=s?o+" "+s:o,t.options.closeAtx&&(s+=" "+o),a(),u(),s}lh.peek=bx;function lh(e){return e.value||""}function bx(){return"<"}oh.peek=jx;function oh(e,n,t,r){const i=Ya(t),l=i==='"'?"Quote":"Apostrophe",o=t.enter("image");let u=t.enter("label");const a=t.createTracker(r);let s=a.move("![");return s+=a.move(t.safe(e.alt,{before:s,after:"]",...a.current()})),s+=a.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=t.enter("destinationLiteral"),s+=a.move("<"),s+=a.move(t.safe(e.url,{before:s,after:">",...a.current()})),s+=a.move(">")):(u=t.enter("destinationRaw"),s+=a.move(t.safe(e.url,{before:s,after:e.title?" ":")",...a.current()}))),u(),e.title&&(u=t.enter(`title${l}`),s+=a.move(" "+i),s+=a.move(t.safe(e.title,{before:s,after:i,...a.current()})),s+=a.move(i),u()),s+=a.move(")"),o(),s}function jx(){return"!"}uh.peek=Bx;function uh(e,n,t,r){const i=e.referenceType,l=t.enter("imageReference");let o=t.enter("label");const u=t.createTracker(r);let a=u.move("![");const s=t.safe(e.alt,{before:a,after:"]",...u.current()});a+=u.move(s+"]["),o();const f=t.stack;t.stack=[],o=t.enter("reference");const c=t.safe(t.associationId(e),{before:a,after:"]",...u.current()});return o(),t.stack=f,l(),i==="full"||!s||s!==c?a+=u.move(c+"]"):i==="shortcut"?a=a.slice(0,-1):a+=u.move("]"),a}function Bx(){return"!"}ah.peek=Ux;function ah(e,n,t){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\u007F]/.test(e.url))}ch.peek=Hx;function ch(e,n,t,r){const i=Ya(t),l=i==='"'?"Quote":"Apostrophe",o=t.createTracker(r);let u,a;if(sh(e,t)){const f=t.stack;t.stack=[],u=t.enter("autolink");let c=o.move("<");return c+=o.move(t.containerPhrasing(e,{before:c,after:">",...o.current()})),c+=o.move(">"),u(),t.stack=f,c}u=t.enter("link"),a=t.enter("label");let s=o.move("[");return s+=o.move(t.containerPhrasing(e,{before:s,after:"](",...o.current()})),s+=o.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=t.enter("destinationLiteral"),s+=o.move("<"),s+=o.move(t.safe(e.url,{before:s,after:">",...o.current()})),s+=o.move(">")):(a=t.enter("destinationRaw"),s+=o.move(t.safe(e.url,{before:s,after:e.title?" ":")",...o.current()}))),a(),e.title&&(a=t.enter(`title${l}`),s+=o.move(" "+i),s+=o.move(t.safe(e.title,{before:s,after:i,...o.current()})),s+=o.move(i),a()),s+=o.move(")"),u(),s}function Hx(e,n,t){return sh(e,t)?"<":"["}fh.peek=Vx;function fh(e,n,t,r){const i=e.referenceType,l=t.enter("linkReference");let o=t.enter("label");const u=t.createTracker(r);let a=u.move("[");const s=t.containerPhrasing(e,{before:a,after:"]",...u.current()});a+=u.move(s+"]["),o();const f=t.stack;t.stack=[],o=t.enter("reference");const c=t.safe(t.associationId(e),{before:a,after:"]",...u.current()});return o(),t.stack=f,l(),i==="full"||!s||s!==c?a+=u.move(c+"]"):i==="shortcut"?a=a.slice(0,-1):a+=u.move("]"),a}function Vx(){return"["}function Ka(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function $x(e){const n=Ka(e),t=e.options.bulletOther;if(!t)return n==="*"?"-":"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(t===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+t+"`) to be different");return t}function Wx(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function ph(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function Qx(e,n,t,r){const i=t.enter("list"),l=t.bulletCurrent;let o=e.ordered?Wx(t):Ka(t);const u=e.ordered?o==="."?")":".":$x(t);let a=n&&t.bulletLastUsed?o===t.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&f&&(!f.children||!f.children[0])&&t.stack[t.stack.length-1]==="list"&&t.stack[t.stack.length-2]==="listItem"&&t.stack[t.stack.length-3]==="list"&&t.stack[t.stack.length-4]==="listItem"&&t.indexStack[t.indexStack.length-1]===0&&t.indexStack[t.indexStack.length-2]===0&&t.indexStack[t.indexStack.length-3]===0&&(a=!0),ph(t)===o&&f){let c=-1;for(;++c-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+l);let o=l.length+1;(i==="tab"||i==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(o=Math.ceil(o/4)*4);const u=t.createTracker(r);u.move(l+" ".repeat(o-l.length)),u.shift(o);const a=t.enter("listItem"),s=t.indentLines(t.containerFlow(e,u.current()),f);return a(),s;function f(c,d,p){return d?(p?"":" ".repeat(o))+c:(p?l:l+" ".repeat(o-l.length))+c}}function qx(e,n,t,r){const i=t.enter("paragraph"),l=t.enter("phrasing"),o=t.containerPhrasing(e,r);return l(),i(),o}const Xx=Ul(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Gx(e,n,t,r){return(e.children.some(function(o){return Xx(o)})?t.containerPhrasing:t.containerFlow).call(t,e,r)}function Zx(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}dh.peek=Jx;function dh(e,n,t,r){const i=Zx(t),l=t.enter("strong"),o=t.createTracker(r),u=o.move(i+i);let a=o.move(t.containerPhrasing(e,{after:i,before:u,...o.current()}));const s=a.charCodeAt(0),f=xl(r.before.charCodeAt(r.before.length-1),s,i);f.inside&&(a=ni(s)+a.slice(1));const c=a.charCodeAt(a.length-1),d=xl(r.after.charCodeAt(0),c,i);d.inside&&(a=a.slice(0,-1)+ni(c));const p=o.move(i+i);return l(),t.attentionEncodeSurroundingInfo={after:d.outside,before:f.outside},u+a+p}function Jx(e,n,t){return t.options.strong||"*"}function ew(e,n,t,r){return t.safe(e.value,r)}function nw(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function tw(e,n,t){const r=(ph(t)+(t.options.ruleSpaces?" ":"")).repeat(nw(t));return t.options.ruleSpaces?r.slice(0,-1):r}const hh={blockquote:Px,break:nf,code:Nx,definition:Ax,emphasis:ih,hardBreak:nf,heading:Mx,html:lh,image:oh,imageReference:uh,inlineCode:ah,link:ch,linkReference:fh,list:Qx,listItem:Kx,paragraph:qx,root:Gx,strong:dh,text:ew,thematicBreak:tw};function rw(){return{enter:{table:iw,tableData:tf,tableHeader:tf,tableRow:ow},exit:{codeText:uw,table:lw,tableData:Lo,tableHeader:Lo,tableRow:Lo}}}function iw(e){const n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}function lw(e){this.exit(e),this.data.inTable=void 0}function ow(e){this.enter({type:"tableRow",children:[]},e)}function Lo(e){this.exit(e)}function tf(e){this.enter({type:"tableCell",children:[]},e)}function uw(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,aw));const t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}function aw(e,n){return n==="|"?n:e}function sw(e){const n=e||{},t=n.tableCellPadding,r=n.tablePipeAlign,i=n.stringLength,l=t?" ":"|";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:{inlineCode:d,table:o,tableCell:a,tableRow:u}};function o(p,m,x,P){return s(f(p,x,P),p.align)}function u(p,m,x,P){const h=c(p,x,P),g=s([h]);return g.slice(0,g.indexOf(` `))}function a(p,m,x,P){const h=x.enter("tableCell"),g=x.enter("phrasing"),y=x.containerPhrasing(p,{...P,before:l,after:l});return g(),h(),y}function s(p,m){return Cx(p,{align:m,alignDelimiters:r,padding:t,stringLength:i})}function f(p,m,x){const P=p.children;let h=-1;const g=[],y=m.enter("table");for(;++h0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}const Tw={tokenize:Rw,partial:!0};function zw(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Dw,continuation:{tokenize:Aw},exit:Fw}},text:{91:{name:"gfmFootnoteCall",tokenize:Nw},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Iw,resolveTo:Lw}}}}function Iw(e,n,t){const r=this;let i=r.events.length;const l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const a=r.events[i][1];if(a.type==="labelImage"){o=a;break}if(a.type==="gfmFootnoteCall"||a.type==="labelLink"||a.type==="label"||a.type==="image"||a.type==="link")break}return u;function u(a){if(!o||!o._balanced)return t(a);const s=dn(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!l.includes(s.slice(1))?t(a):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),n(a))}}function Lw(e,n){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+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)},u=[e[t+1],e[t+2],["enter",r,n],e[t+3],e[t+4],["enter",i,n],["exit",i,n],["enter",l,n],["enter",o,n],["exit",o,n],["exit",l,n],e[e.length-2],e[e.length-1],["exit",r,n]];return e.splice(t,e.length-t+1,...u),e}function Nw(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l=0,o;return u;function u(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),a}function a(c){return c!==94?t(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(c){if(l>999||c===93&&!o||c===null||c===91||J(c))return t(c);if(c===93){e.exit("chunkString");const d=e.exit("gfmFootnoteCallString");return i.includes(dn(r.sliceSerialize(d)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(c)}return J(c)||(o=!0),l++,e.consume(c),c===92?f:s}function f(c){return c===91||c===92||c===93?(e.consume(c),l++,s):s(c)}}function Dw(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l,o=0,u;return a;function a(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),s}function s(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):t(m)}function f(m){if(o>999||m===93&&!u||m===null||m===91||J(m))return t(m);if(m===93){e.exit("chunkString");const x=e.exit("gfmFootnoteDefinitionLabelString");return l=dn(r.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return J(m)||(u=!0),o++,e.consume(m),m===92?c:f}function c(m){return m===91||m===92||m===93?(e.consume(m),o++,f):f(m)}function d(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(l)||i.push(l),W(e,p,"gfmFootnoteDefinitionWhitespace")):t(m)}function p(m){return n(m)}}function Aw(e,n,t){return e.check(ai,n,e.attempt(Tw,n,t))}function Fw(e){e.exit("gfmFootnoteDefinition")}function Rw(e,n,t){const r=this;return W(e,i,"gfmFootnoteDefinitionIndent",5);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?n(l):t(l)}}function Ow(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:l,resolveAll:i};return t==null&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,u){let a=-1;for(;++a1?a(m):(o.consume(m),c++,p);if(c<2&&!t)return a(m);const P=o.exit("strikethroughSequenceTemporary"),h=rr(m);return P._open=!h||h===2&&!!x,P._close=!x||x===2&&!!h,u(m)}}}class Mw{constructor(){this.map=[]}add(n,t,r){bw(this,n,t,r)}consume(n){if(this.map.sort(function(l,o){return l[0]-o[0]}),this.map.length===0)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];r.push(n.slice()),n.length=0;let i=r.pop();for(;i;){for(const l of i)n.push(l);i=r.pop()}this.map.length=0}}function bw(e,n,t,r){let i=0;if(!(t===0&&r.length===0)){for(;i-1;){const ee=r.events[A][1].type;if(ee==="lineEnding"||ee==="linePrefix")A--;else break}const R=A>-1?r.events[A][1].type:null,Q=R==="tableHead"||R==="tableRow"?w:a;return Q===w&&r.parser.lazy[r.now().line]?t(S):Q(S)}function a(S){return e.enter("tableHead"),e.enter("tableRow"),s(S)}function s(S){return S===124||(o=!0,l+=1),f(S)}function f(S){return S===null?t(S):O(S)?l>1?(l=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),p):t(S):U(S)?W(e,f,"whitespace")(S):(l+=1,o&&(o=!1,i+=1),S===124?(e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),o=!0,f):(e.enter("data"),c(S)))}function c(S){return S===null||S===124||J(S)?(e.exit("data"),f(S)):(e.consume(S),S===92?d:c)}function d(S){return S===92||S===124?(e.consume(S),c):c(S)}function p(S){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(S):(e.enter("tableDelimiterRow"),o=!1,U(S)?W(e,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):m(S))}function m(S){return S===45||S===58?P(S):S===124?(o=!0,e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),x):_(S)}function x(S){return U(S)?W(e,P,"whitespace")(S):P(S)}function P(S){return S===58?(l+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(S),e.exit("tableDelimiterMarker"),h):S===45?(l+=1,h(S)):S===null||O(S)?C(S):_(S)}function h(S){return S===45?(e.enter("tableDelimiterFiller"),g(S)):_(S)}function g(S){return S===45?(e.consume(S),g):S===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(S),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(S))}function y(S){return U(S)?W(e,C,"whitespace")(S):C(S)}function C(S){return S===124?m(S):S===null||O(S)?!o||i!==l?_(S):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(S)):_(S)}function _(S){return t(S)}function w(S){return e.enter("tableRow"),z(S)}function z(S){return S===124?(e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),z):S===null||O(S)?(e.exit("tableRow"),n(S)):U(S)?W(e,z,"whitespace")(S):(e.enter("data"),L(S))}function L(S){return S===null||S===124||J(S)?(e.exit("data"),z(S)):(e.consume(S),S===92?M:L)}function M(S){return S===92||S===124?(e.consume(S),L):L(S)}}function Hw(e,n){let t=-1,r=!0,i=0,l=[0,0,0,0],o=[0,0,0,0],u=!1,a=0,s,f,c;const d=new Mw;for(;++tt[2]+1){const m=t[2]+1,x=t[3]-t[2]-1;e.add(m,x,[])}}e.add(t[3]+1,0,[["exit",c,n]])}return i!==void 0&&(l.end=Object.assign({},Lt(n.events,i)),e.add(i,0,[["exit",l,n]]),l=void 0),l}function lf(e,n,t,r,i){const l=[],o=Lt(n.events,t);i&&(i.end=Object.assign({},o),l.push(["exit",i,n])),r.end=Object.assign({},o),l.push(["exit",r,n]),e.add(t+1,0,l)}function Lt(e,n){const t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}const Vw={name:"tasklistCheck",tokenize:Ww};function $w(){return{text:{91:Vw}}}function Ww(e,n,t){const r=this;return i;function i(a){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?t(a):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),l)}function l(a){return J(a)?(e.enter("taskListCheckValueUnchecked"),e.consume(a),e.exit("taskListCheckValueUnchecked"),o):a===88||a===120?(e.enter("taskListCheckValueChecked"),e.consume(a),e.exit("taskListCheckValueChecked"),o):t(a)}function o(a){return a===93?(e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):t(a)}function u(a){return O(a)?n(a):U(a)?e.check({tokenize:Qw},n,t)(a):t(a)}}function Qw(e,n,t){return W(e,r,"whitespace");function r(i){return i===null?t(i):n(i)}}function Yw(e){return Dd([kw(),zw(),Ow(e),Bw(),$w()])}const Kw={};function qw(e){const n=this,t=e||Kw,r=n.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),l=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Yw(t)),l.push(hw()),o.push(mw(t))}const Xw=()=>{const[e,n]=_n.useState([]),[t,r]=_n.useState(""),[i,l]=_n.useState(""),[o,u]=_n.useState("system");_n.useEffect(()=>{s(),a(o)},[]),_n.useEffect(()=>{t&&f(t)},[t]);const a=p=>{if(p==="system"){const m=window.matchMedia("(prefers-color-scheme: dark)").matches;document.documentElement.classList.toggle("dark",m)}else document.documentElement.classList.toggle("dark",p==="dark")},s=async()=>{try{const p=await fetch("/api");if(p.ok){const m=await p.json();n(m.files||[])}}catch(p){console.error("Error loading files:",p)}},f=async p=>{try{const m=await fetch(`/api/${p}`);if(m.ok){const x=await m.text();l(x)}}catch(m){console.error("Error loading file:",m)}},c=async p=>{try{await fetch(`/api/${p}`,{method:"POST",body:`# New Document Write your markdown here...`}),r(p),await s()}catch(m){console.error("Error creating file:",m)}},d=async p=>{try{await fetch(`/api/${p}`,{method:"PUT",body:i})}catch(m){console.error("Error saving file:",m)}};return q.jsxs("div",{className:"min-h-screen bg-gray-50 dark:bg-gray-900",children:[q.jsx("nav",{className:"bg-blue-600 text-white p-4",children:q.jsxs("div",{className:"container mx-auto flex justify-between items-center",children:[q.jsx("h1",{className:"text-xl font-bold",children:"Markdown Editor"}),q.jsx("div",{className:"flex items-center space-x-4",children:q.jsxs("select",{value:o,onChange:p=>{const m=p.target.value;u(m),a(m)},className:"bg-blue-700 text-white p-2 rounded",children:[q.jsx("option",{value:"system",children:"System"}),q.jsx("option",{value:"light",children:"Light"}),q.jsx("option",{value:"dark",children:"Dark"})]})})]})}),q.jsxs("div",{className:"container mx-auto p-4 flex flex-col lg:flex-row gap-4",children:[q.jsxs("div",{className:"w-full lg:w-1/4 bg-white dark:bg-gray-800 rounded-lg shadow p-4",children:[q.jsx("h2",{className:"text-lg font-semibold mb-4",children:"Files"}),q.jsx("div",{className:"space-y-2 mb-4",children:e.map(p=>q.jsx("div",{className:`p-2 rounded cursor-pointer ${t===p?"bg-blue-100 dark:bg-blue-900":"hover:bg-gray-100 dark:hover:bg-gray-700"}`,onClick:()=>r(p),children:p},p))}),q.jsx("button",{onClick:()=>c(`document-${Date.now()}.md`),className:"w-full bg-green-500 text-white p-2 rounded hover:bg-green-600",children:"New Document"})]}),q.jsxs("div",{className:"flex-1 flex flex-col gap-4",children:[q.jsxs("div",{className:"flex justify-between items-center",children:[t&&q.jsx("h2",{className:"text-lg font-semibold",children:t}),t&&q.jsx("button",{onClick:()=>d(t),className:"bg-blue-500 text-white p-2 rounded hover:bg-blue-600",children:"Save"})]}),q.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[q.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-lg shadow p-4",children:[q.jsx("h3",{className:"text-md font-medium mb-2",children:"Editor"}),q.jsx("textarea",{value:i,onChange:p=>l(p.target.value),className:"w-full h-96 p-2 border rounded dark:bg-gray-900 dark:text-white dark:border-gray-700",placeholder:"Write markdown here..."})]}),q.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-lg shadow p-4",children:[q.jsx("h3",{className:"text-md font-medium mb-2",children:"Preview"}),q.jsx("div",{className:"w-full h-96 p-2 border rounded overflow-auto dark:bg-gray-900 dark:text-white dark:border-gray-700 prose dark:prose-invert",children:q.jsx(O0,{remarkPlugins:[qw],children:i})})]})]})]})]})]})};No.createRoot(document.getElementById("root")).render(q.jsx(Yh.StrictMode,{children:q.jsx(Xw,{})}));