|
|
|
@@ -1,16 +1,42 @@
|
|
|
|
|
function xv(i,s){for(var f=0;f<s.length;f++){const o=s[f];if(typeof o!="string"&&!Array.isArray(o)){for(const d in o)if(d!=="default"&&!(d in i)){const v=Object.getOwnPropertyDescriptor(o,d);v&&Object.defineProperty(i,d,v.get?v:{enumerable:!0,get:()=>o[d]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))o(d);new MutationObserver(d=>{for(const v of d)if(v.type==="childList")for(const S of v.addedNodes)S.tagName==="LINK"&&S.rel==="modulepreload"&&o(S)}).observe(document,{childList:!0,subtree:!0});function f(d){const v={};return d.integrity&&(v.integrity=d.integrity),d.referrerPolicy&&(v.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?v.credentials="include":d.crossOrigin==="anonymous"?v.credentials="omit":v.credentials="same-origin",v}function o(d){if(d.ep)return;d.ep=!0;const v=f(d);fetch(d.href,v)}})();function Ev(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var jo={exports:{}},kn={};var Pd;function zv(){if(Pd)return kn;Pd=1;var i=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function f(o,d,v){var S=null;if(v!==void 0&&(S=""+v),d.key!==void 0&&(S=""+d.key),"key"in d){v={};for(var A in d)A!=="key"&&(v[A]=d[A])}else v=d;return d=v.ref,{$$typeof:i,type:o,key:S,ref:d!==void 0?d:null,props:v}}return kn.Fragment=s,kn.jsx=f,kn.jsxs=f,kn}var tm;function Av(){return tm||(tm=1,jo.exports=zv()),jo.exports}var j=Av(),Ho={exports:{}},tt={};var lm;function Tv(){if(lm)return tt;lm=1;var i=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),S=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),O=Symbol.for("react.activity"),H=Symbol.iterator;function q(g){return g===null||typeof g!="object"?null:(g=H&&g[H]||g["@@iterator"],typeof g=="function"?g:null)}var Z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},I=Object.assign,J={};function at(g,R,B){this.props=g,this.context=R,this.refs=J,this.updater=B||Z}at.prototype.isReactComponent={},at.prototype.setState=function(g,R){if(typeof g!="object"&&typeof g!="function"&&g!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,g,R,"setState")},at.prototype.forceUpdate=function(g){this.updater.enqueueForceUpdate(this,g,"forceUpdate")};function ht(){}ht.prototype=at.prototype;function rt(g,R,B){this.props=g,this.context=R,this.refs=J,this.updater=B||Z}var nt=rt.prototype=new ht;nt.constructor=rt,I(nt,at.prototype),nt.isPureReactComponent=!0;var vt=Array.isArray;function ct(){}var $={H:null,A:null,T:null,S:null},G=Object.prototype.hasOwnProperty;function lt(g,R,B){var Y=B.ref;return{$$typeof:i,type:g,key:R,ref:Y!==void 0?Y:null,props:B}}function Ct(g,R){return lt(g.type,R,g.props)}function pt(g){return typeof g=="object"&&g!==null&&g.$$typeof===i}function jt(g){var R={"=":"=0",":":"=2"};return"$"+g.replace(/[=:]/g,function(B){return R[B]})}var jl=/\/+/g;function rl(g,R){return typeof g=="object"&&g!==null&&g.key!=null?jt(""+g.key):R.toString(36)}function Vt(g){switch(g.status){case"fulfilled":return g.value;case"rejected":throw g.reason;default:switch(typeof g.status=="string"?g.then(ct,ct):(g.status="pending",g.then(function(R){g.status==="pending"&&(g.status="fulfilled",g.value=R)},function(R){g.status==="pending"&&(g.status="rejected",g.reason=R)})),g.status){case"fulfilled":return g.value;case"rejected":throw g.reason}}throw g}function _(g,R,B,Y,P){var it=typeof g;(it==="undefined"||it==="boolean")&&(g=null);var F=!1;if(g===null)F=!0;else switch(it){case"bigint":case"string":case"number":F=!0;break;case"object":switch(g.$$typeof){case i:case s:F=!0;break;case C:return F=g._init,_(F(g._payload),R,B,Y,P)}}if(F)return P=P(g),F=Y===""?"."+rl(g,0):Y,vt(P)?(B="",F!=null&&(B=F.replace(jl,"$&/")+"/"),_(P,R,B,"",function(Hl){return Hl})):P!=null&&(pt(P)&&(P=Ct(P,B+(P.key==null||g&&g.key===P.key?"":(""+P.key).replace(jl,"$&/")+"/")+F)),R.push(P)),1;F=0;var Zt=Y===""?".":Y+":";if(vt(g))for(var Nt=0;Nt<g.length;Nt++)Y=g[Nt],it=Zt+rl(Y,Nt),F+=_(Y,R,B,it,P);else if(Nt=q(g),typeof Nt=="function")for(g=Nt.call(g),Nt=0;!(Y=g.next()).done;)Y=Y.value,it=Zt+rl(Y,Nt++),F+=_(Y,R,B,it,P);else if(it==="object"){if(typeof g.then=="function")return _(Vt(g),R,B,Y,P);throw R=String(g),Error("Objects are not valid as a React child (found: "+(R==="[object Object]"?"object with keys {"+Object.keys(g).join(", ")+"}":R)+"). If you meant to render a collection of children, use an array instead.")Line truncated
|
|
|
|
|
at`)?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
|
|
|
`+ie+t+Fo}var yc=!1;function gc(t,l){if(!t||yc)return"";yc=!0;var e=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(l){var U=function(){throw Error()};if(Object.defineProperty(U.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(U,[])}catch(T){var z=T}Reflect.construct(t,[],U)}else{try{U.call()}catch(T){z=T}t.call(U.prototype)}}else{try{throw Error()}catch(T){z=T}(U=t())&&typeof U.catch=="function"&&U.catch(function(){})}}catch(T){if(T&&z&&typeof T.stack=="string")return[T.stack,z.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),c=u[0],r=u[1];if(c&&r){var m=c.split(`
|
|
|
|
|
`),E=r.split(`
|
|
|
|
|
`);for(n=a=0;a<m.length&&!m[a].includes("DetermineComponentFrameRoot");)a++;for(;n<E.length&&!E[n].includes("DetermineComponentFrameRoot");)n++;if(a===m.length||n===E.length)for(a=m.length-1,n=E.length-1;1<=a&&0<=n&&m[a]!==E[n];)n--;for(;1<=a&&0<=n;a--,n--)if(m[a]!==E[n]){if(a!==1||n!==1)do if(a--,n--,0>n||m[a]!==E[n]){var M=`
|
|
|
|
|
`+m[a].replace(" at new "," at ");return t.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",t.displayName)),M}while(1<=a&&0<=n);break}}}finally{yc=!1,Error.prepareStackTrace=e}return(e=t?t.displayName||t.name:"")?je(e):""}function Im(t,l){switch(t.tag){case 26:case 27:case 5:return je(t.type);case 16:return je("Lazy");case 13:return t.child!==l&&l!==null?je("Suspense Fallback"):je("Suspense");case 19:return je("SuspenseList");case 0:case 15:return gc(t.type,!1);case 11:return gc(t.type.render,!1);case 1:return gc(t.type,!0);case 31:return je("Activity");default:return""}}function Io(t){try{var l="",e=null;do l+=Im(t,e),e=t,t=t.return;while(t);return l}catch(a){return`
|
|
|
|
|
Error generating stack: `+a.message+`
|
|
|
|
|
`+a.stack}}var bc=Object.prototype.hasOwnProperty,pc=i.unstable_scheduleCallback,Sc=i.unstable_cancelCallback,Pm=i.unstable_shouldYield,t0=i.unstable_requestPaint,fl=i.unstable_now,l0=i.unstable_getCurrentPriorityLevel,Po=i.unstable_ImmediatePriority,tr=i.unstable_UserBlockingPriority,Xn=i.unstable_NormalPriority,e0=i.unstable_LowPriority,lr=i.unstable_IdlePriority,a0=i.log,n0=i.unstable_setDisableYieldValue,Va=null,sl=null;function oe(t){if(typeof a0=="function"&&n0(t),sl&&typeof sl.setStrictMode=="function")try{sl.setStrictMode(Va,t)}catch{}}var dl=Math.clz32?Math.clz32:i0,u0=Math.log,c0=Math.LN2;function i0(t){return t>>>=0,t===0?32:31-(u0(t)/c0|0)|0}var Qn=256,Vn=262144,Zn=4194304;function He(t){var l=t&42;if(l!==0)return l;switch(t&-t){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Kn(t,l,e){var a=t.pendingLanes;if(a===0)return 0;var n=0,u=t.suspendedLanes,c=t.pingedLanes;t=t.warmLanes;var r=a&134217727;return r!==0?(a=r&~u,a!==0?n=He(a):(c&=r,c!==0?n=He(c):e||(e=r&~t,e!==0&&(n=He(e))))):(r=a&~u,r!==0?n=He(r):c!==0?n=He(c):e||(e=a&~t,e!==0&&(n=He(e)))),n===0?0:l!==0&&l!==n&&(l&u)===0&&(u=n&-n,e=l&-l,u>=e||u===32&&(e&4194048)!==0)?l:n}function Za(t,l){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&l)===0}function o0(t,l){switch(t){case 1:case 2:case 4:case 8:case 64:return l+250;case 16:case 32: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 l+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function er(){var t=Zn;return Zn<<=1,(Zn&62914560)===0&&(Zn=4194304),t}function xc(t){for(var l=[],e=0;31>e;e++)l.push(t);return l}function Ka(t,l){t.pendingLanes|=l,l!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function r0(t,l,e,a,n,u){var c=t.pendingLanes;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=e,t.entangledLanes&=e,t.errorRecoveryDisabledLanes&=e,t.shellSuspendCounter=0;var r=t.entanglements,m=t.expirationTimes,E=t.hiddenUpdates;for(e=c&~e;0<e;){var M=31-dl(e),U=1<<M;r[M]=0,m[M]=-1;var z=E[M];if(z!==null)for(E[M]=null,M=0;M<z.length;M++){var T=z[M];T!==null&&(T.lane&=-536870913)}e&=~U}a!==0&&ar(t,a,0),u!==0&&n===0&&t.tag!==0&&(t.suspendedLanes|=u&~(c&~l))}function ar(t,l,e){t.pendingLanes|=l,t.suspendedLanes&=~l;var a=31-dl(l);t.entangledLanes|=l,t.entanglements[a]=t.entanglements[a]|1073741824|e&261930}function nr(t,l){var e=t.entangledLanes|=l;for(t=t.entanglements;e;){var a=31-dl(e),n=1<<a;n&l|t[a]&l&&(t[a]|=l),e&=~n}}function ur(t,l){var e=l&-l;return e=(e&42)!==0?1:Ec(e),(e&(t.suspendedLanes|l))!==0?0:e}function Ec(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;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:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function zc(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function cr(){var t=k.p;return t!==0?t:(t=window.event,t===void 0?32:Zd(t.type))}function ir(t,l){var e=k.p;try{return k.p=t,l()}finally{k.p=e}}var re=Math.random().toString(36).slice(2),Wt="__reactFiber$"+re,el="__reactProps$"+re,aa="__reactContainer$"+re,Ac="__reactEvents$"+re,f0="__reactListeners$"+re,s0="__reactHandles$"+re,or="__reactResources$"+re,Ja="__reactMarker$"+re;function Tc(t){delete t[Wt],delete t[el],delete t[Ac],delete t[f0],delete t[s0]}function na(t){var l=t[Wt];if(l)return l;for(var e=t.parentNode;e;){if(l=e[aa]||e[Wt]){if(e=l.alternate,l.child!==null||e!==null&&e.child!==null)for(t=Nd(t);t!==null;){if(e=t[Wt])return e;t=Nd(t)}return l}t=e,e=t.parentNode}return null}function ua(t){if(t=t[Wt]||t[aa]){var l=t.tag;if(l===5||l===6||l===13||l===31||l===26||l===27||l===3)return t}return null}function Wa(t){var l=t.tag;if(l===5||l===26||l===27||l===6)return t.stateNode;throw Error(o(33))}function ca(t){var l=t[or];return l||(l=t[or]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function Kt(t){t[Ja]=!0}var rr=new Set,fr={};function we(t,l){ia(t,l),ia(t+"Capture",l)}function ia(t,l){for(fr[t]=l,t=0;t<l.length;t++)rr.add(l[t])}var d0=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u21
Line truncated
|
|
|
|
|
`).replace(Xh,"")}function Sd(t,l){return l=pd(l),pd(t)===l}function _t(t,l,e,a,n,u){switch(e){case"children":typeof a=="string"?l==="body"||l==="textarea"&&a===""||ra(t,a):(typeof a=="number"||typeof a=="bigint")&&l!=="body"&&ra(t,""+a);break;case"className":Wn(t,"class",a);break;case"tabIndex":Wn(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Wn(t,e,a);break;case"style":pr(t,a,u);break;case"data":if(l!=="object"){Wn(t,"data",a);break}case"src":case"href":if(a===""&&(l!=="a"||e!=="href")){t.removeAttribute(e);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(e);break}a=Fn(""+a),t.setAttribute(e,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(e,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(e==="formAction"?(l!=="input"&&_t(t,l,"name",n.name,n,null),_t(t,l,"formEncType",n.formEncType,n,null),_t(t,l,"formMethod",n.formMethod,n,null),_t(t,l,"formTarget",n.formTarget,n,null)):(_t(t,l,"encType",n.encType,n,null),_t(t,l,"method",n.method,n,null),_t(t,l,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(e);break}a=Fn(""+a),t.setAttribute(e,a);break;case"onClick":a!=null&&(t.onclick=Ll);break;case"onScroll":a!=null&&st("scroll",t);break;case"onScrollEnd":a!=null&&st("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(e=a.__html,e!=null){if(n.children!=null)throw Error(o(60));t.innerHTML=e}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}e=Fn(""+a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(e,""+a):t.removeAttribute(e);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(e,""):t.removeAttribute(e);break;case"capture":case"download":a===!0?t.setAttribute(e,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(e,a):t.removeAttribute(e);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(e,a):t.removeAttribute(e);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(e):t.setAttribute(e,a);break;case"popover":st("beforetoggle",t),st("toggle",t),Jn(t,"popover",a);break;case"xlinkActuate":Gl(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Gl(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Gl(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Gl(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Gl(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Gl(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Gl(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Gl(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Gl(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Jn(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(e=g0.get(e)||e,Jn(t,e,a))}}function yo(t,l,e,a,n,u){switch(e){case"style":pr(t,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(e=a.__html,e!=null){if(n.children!=null)throw Error(o(60));t.innerHTML=e}}break;case"children":typeof a=="string"?ra(t,a):(typeof a=="number"||typeof a=="bigint")&&ra(t,""+a);break;case"onScroll":a!=null&&st("scroll",t);break;case"onScrollEnd":a!=null&&st("scrollend",t);break;case"onClick":a!=null&&(t.onclick=Ll);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"inne
Line truncated
|
|
|
|
|
`).filter(nt=>nt.trim());if(Z.length<2)return q;const I=nt=>nt.split("|").slice(1,-1).map(vt=>vt.trim()),J=I(Z[0]),at=Z.slice(2).map(I);let ht='<div class="overflow-auto my-4"><table class="w-full border-collapse text-sm">';ht+='<thead><tr class="border-b bg-muted/50">',J.forEach(nt=>{ht+=`<th class="px-4 py-2 text-left font-medium">${nt}</th>`}),ht+="</tr></thead><tbody>",at.forEach(nt=>{ht+='<tr class="border-b">',nt.forEach(vt=>{let ct=vt.replace(/`([^`]+)`/g,'<code class="bg-primary/10 text-primary px-1 py-0.5 rounded text-xs">$1</code>').replace(/\*\*([^*]+)\*\*/g,"<strong>$1</strong>");ht+=`<td class="px-4 py-2 text-muted-foreground">${ct}</td>`}),ht+="</tr>"}),ht+="</tbody></table></div>";const rt=H.length;return H.push(ht),`__TABLE_${rt}__`}),O=O.replace(/^### (.+)$/gm,'<h3 class="text-xl font-semibold mt-6 mb-3">$1</h3>').replace(/^## (.+)$/gm,'<h2 class="text-2xl font-semibold mt-8 mb-4 text-primary">$1</h2>').replace(/^# (.+)$/gm,'<h1 class="text-3xl font-bold mt-8 mb-4">$1</h1>').replace(/`([^`]+)`/g,'<code class="bg-primary/10 text-primary px-1.5 py-0.5 rounded text-sm">$1</code>').replace(/\*\*([^*]+)\*\*/g,"<strong>$1</strong>").replace(/\*([^*]+)\*/g,"<em>$1</em>").replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2" class="text-primary hover:underline">$1</a>').replace(/^- (.+)$/gm,'<li class="ml-4">• $1</li>').replace(/^---$/gm,'<hr class="my-6 border-border" />'),O=O.split(`
|
|
|
|
|
`).map(q=>{const Z=q.trim();return Z?Z.startsWith("<")||Z.startsWith("__CODE_BLOCK_")||Z.startsWith("__TABLE_")?q:`<p class="my-2 text-muted-foreground leading-relaxed">${Z}</p>`:""}).join(`
|
|
|
|
|
`),C.forEach((q,Z)=>{O=O.replace(`__CODE_BLOCK_${Z}__`,q)}),H.forEach((q,Z)=>{O=O.replace(`__TABLE_${Z}__`,q)}),O};return f?j.jsxs("main",{className:"flex-1 p-8 max-w-3xl",children:[j.jsx("h1",{className:"text-4xl font-bold tracking-tight mb-2 text-primary",children:f.title}),j.jsx("p",{className:"text-muted-foreground text-sm mb-6",children:j.jsx("code",{className:"bg-primary/10 text-primary px-2 py-1 rounded",children:f.path||"N/A"})}),j.jsx(pm,{className:"my-6"}),v?j.jsx("div",{className:"text-muted-foreground",children:"Loading content..."}):o?j.jsx("article",{className:"prose prose-invert max-w-none",dangerouslySetInnerHTML:{__html:b(o)}}):j.jsx("div",{className:"bg-muted/50 border rounded-lg p-6",children:j.jsxs("p",{className:"text-muted-foreground",children:["Content for ",j.jsx("strong",{className:"text-primary",children:f.title})," would be displayed here."]})})]}):j.jsxs("main",{className:"flex-1 p-8 max-w-3xl",children:[j.jsx("h1",{className:"text-4xl font-bold tracking-tight mb-4",children:i.site?.title||"Documentation"}),j.jsx("p",{className:"text-muted-foreground text-lg mb-8",children:i.site?.description||"Welcome to the documentation."}),j.jsx(pm,{className:"my-8"}),j.jsx("h2",{className:"text-2xl font-semibold mb-4 text-primary",children:"Theme Configuration"}),j.jsxs("div",{className:"bg-muted/50 border rounded-lg p-4 mb-6",children:[j.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:j.jsx("strong",{children:"Current theme from YAML:"})}),j.jsx("pre",{className:"text-primary text-sm",children:`site:
|
|
|
|
|
function h1(n,a){for(var i=0;i<a.length;i++){const u=a[i];if(typeof u!="string"&&!Array.isArray(u)){for(const c in u)if(c!=="default"&&!(c in n)){const s=Object.getOwnPropertyDescriptor(u,c);s&&Object.defineProperty(n,c,s.get?s:{enumerable:!0,get:()=>u[c]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))u(c);new MutationObserver(c=>{for(const s of c)if(s.type==="childList")for(const f of s.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&u(f)}).observe(document,{childList:!0,subtree:!0});function i(c){const s={};return c.integrity&&(s.integrity=c.integrity),c.referrerPolicy&&(s.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?s.credentials="include":c.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function u(c){if(c.ep)return;c.ep=!0;const s=i(c);fetch(c.href,s)}})();function Bs(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var $c={exports:{}},Or={};var ap;function d1(){if(ap)return Or;ap=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(u,c,s){var f=null;if(s!==void 0&&(f=""+s),c.key!==void 0&&(f=""+c.key),"key"in c){s={};for(var m in c)m!=="key"&&(s[m]=c[m])}else s=c;return c=s.ref,{$$typeof:n,type:u,key:f,ref:c!==void 0?c:null,props:s}}return Or.Fragment=a,Or.jsx=i,Or.jsxs=i,Or}var up;function m1(){return up||(up=1,$c.exports=d1()),$c.exports}var _=m1(),es={exports:{}},xe={};var op;function p1(){if(op)return xe;op=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),f=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),x=Symbol.iterator;function v(T){return T===null||typeof T!="object"?null:(T=x&&T[x]||T["@@iterator"],typeof T=="function"?T:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,H={};function O(T,V,k){this.props=T,this.context=V,this.refs=H,this.updater=k||A}O.prototype.isReactComponent={},O.prototype.setState=function(T,V){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,V,"setState")},O.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function F(){}F.prototype=O.prototype;function q(T,V,k){this.props=T,this.context=V,this.refs=H,this.updater=k||A}var re=q.prototype=new F;re.constructor=q,U(re,O.prototype),re.isPureReactComponent=!0;var ae=Array.isArray;function j(){}var P={H:null,A:null,T:null,S:null},J=Object.prototype.hasOwnProperty;function ie(T,V,k){var ee=k.ref;return{$$typeof:n,type:T,key:V,ref:ee!==void 0?ee:null,props:k}}function M(T,V){return ie(T.type,V,T.props)}function te(T){return typeof T=="object"&&T!==null&&T.$$typeof===n}function ne(T){var V={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(k){return V[k]})}var ye=/\/+/g;function ue(T,V){return typeof T=="object"&&T!==null&&T.key!=null?ne(""+T.key):V.toString(36)}function $(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(j,j):(T.status="pending",T.then(function(V){T.status==="pending"&&(T.status="fulfilled",T.value=V)},function(V){T.status==="pending"&&(T.status="rejected",T.reason=V)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function D(T,V,k,ee,de){var he=typeof T;(he==="undefined"||he==="boolean")&&(T=null);var me=!1;if(T===null)me=!0;else switch(he){case"bigint":case"string":case"number":me=!0;break;case"object":switch(T.$$typeof){case n:case a:me=!0;break;case b:return me=T._init,D(me(T._payload),V,k,ee,de)}}if(me)return de=de(T),me=ee===""?"."+ue(T,0):ee,ae(de)?(k="",me!=null&&(k=me.replace(ye,"$&/")+"/"),D(de,V,k,"",function(ht){return ht})):de!=null&&(te(de)&&(de=M(de,k+(de.key==null||T&&T.key===de.key?"":(""+de.key).replace(ye,"$&/")+"/")+me)),V.push(de)),1;me=0;var Xe=ee===""?".":ee+":";if(ae(T))for(var Re=0;Re<T.length;Re++)ee=T[Re],he=Xe+ue(ee,Re),me+=D(ee,V,k,he,de);else if(Re=v(T),typeof Re=="function")for(T=Re.call(T),Re=0;!(ee=T.next()).done;)ee=ee.value,he=Xe+ue(ee,Re++),me+=D(ee,V,k,he,de);else if(he==="object"){if(typeof T.then=="function")return D($(T),V,k,ee,de);throw V=String(T),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":V)+"). If you meant to render a collection of chiLine truncated
|
|
|
|
|
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
|
|
|
`+sn+e+Fr}var Hl=!1;function ql(e,t){if(!e||Hl)return"";Hl=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(B){var L=B}Reflect.construct(e,[],Z)}else{try{Z.call()}catch(B){L=B}e.call(Z.prototype)}}else{try{throw Error()}catch(B){L=B}(Z=e())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(B){if(B&&L&&typeof B.stack=="string")return[B.stack,L.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=r.DetermineComponentFrameRoot(),y=h[0],S=h[1];if(y&&S){var w=y.split(`
|
|
|
|
|
`),R=S.split(`
|
|
|
|
|
`);for(o=r=0;r<w.length&&!w[r].includes("DetermineComponentFrameRoot");)r++;for(;o<R.length&&!R[o].includes("DetermineComponentFrameRoot");)o++;if(r===w.length||o===R.length)for(r=w.length-1,o=R.length-1;1<=r&&0<=o&&w[r]!==R[o];)o--;for(;1<=r&&0<=o;r--,o--)if(w[r]!==R[o]){if(r!==1||o!==1)do if(r--,o--,0>o||w[r]!==R[o]){var Y=`
|
|
|
|
|
`+w[r].replace(" at new "," at ");return e.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",e.displayName)),Y}while(1<=r&&0<=o);break}}}finally{Hl=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?bn(l):""}function Kr(e,t){switch(e.tag){case 26:case 27:case 5:return bn(e.type);case 16:return bn("Lazy");case 13:return e.child!==t&&t!==null?bn("Suspense Fallback"):bn("Suspense");case 19:return bn("SuspenseList");case 0:case 15:return ql(e.type,!1);case 11:return ql(e.type.render,!1);case 1:return ql(e.type,!0);case 31:return bn("Activity");default:return""}}function Jr(e){try{var t="",l=null;do t+=Kr(e,l),l=e,e=e.return;while(e);return t}catch(r){return`
|
|
|
|
|
Error generating stack: `+r.message+`
|
|
|
|
|
`+r.stack}}var Yl=Object.prototype.hasOwnProperty,Vl=n.unstable_scheduleCallback,Bi=n.unstable_cancelCallback,Uu=n.unstable_shouldYield,Bu=n.unstable_requestPaint,St=n.unstable_now,Hu=n.unstable_getCurrentPriorityLevel,G=n.unstable_ImmediatePriority,le=n.unstable_UserBlockingPriority,ve=n.unstable_NormalPriority,Te=n.unstable_LowPriority,Be=n.unstable_IdlePriority,Lt=n.log,vn=n.unstable_setDisableYieldValue,kt=null,ut=null;function At(e){if(typeof Lt=="function"&&vn(e),ut&&typeof ut.setStrictMode=="function")try{ut.setStrictMode(kt,e)}catch{}}var Qe=Math.clz32?Math.clz32:Wy,qn=Math.log,rn=Math.LN2;function Wy(e){return e>>>=0,e===0?32:31-(qn(e)/rn|0)|0}var Ir=256,Pr=262144,Wr=4194304;function ml(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function $r(e,t,l){var r=e.pendingLanes;if(r===0)return 0;var o=0,h=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var S=r&134217727;return S!==0?(r=S&~h,r!==0?o=ml(r):(y&=S,y!==0?o=ml(y):l||(l=S&~e,l!==0&&(o=ml(l))))):(S=r&~h,S!==0?o=ml(S):y!==0?o=ml(y):l||(l=r&~e,l!==0&&(o=ml(l)))),o===0?0:t!==0&&t!==o&&(t&h)===0&&(h=o&-o,l=t&-t,h>=l||h===32&&(l&4194048)!==0)?t:o}function Hi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function $y(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function sf(){var e=Wr;return Wr<<=1,(Wr&62914560)===0&&(Wr=4194304),e}function qu(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function qi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function e0(e,t,l,r,o,h){var y=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var S=e.entanglements,w=e.expirationTimes,R=e.hiddenUpdates;for(l=y&~l;0<l;){var Y=31-Qe(l),Z=1<<Y;S[Y]=0,w[Y]=-1;var L=R[Y];if(L!==null)for(R[Y]=null,Y=0;Y<L.length;Y++){var B=L[Y];B!==null&&(B.lane&=-536870913)}l&=~Z}r!==0&&ff(e,r,0),h!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=h&~(y&~t))}function ff(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Qe(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|l&261930}function hf(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var r=31-Qe(l),o=1<<r;o&t|e[r]&t&&(e[r]|=t),l&=~o}}function df(e,t){var l=t&-t;return l=(l&42)!==0?1:Yu(l),(l&(e.suspendedLanes|t))!==0?0:l}function Yu(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Vu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function mf(){var e=I.p;return e!==0?e:(e=window.event,e===void 0?32:$m(e.type))}function pf(e,t){var l=I.p;try{return I.p=e,t()}finally{I.p=l}}var Yn=Math.random().toString(36).slice(2),dt="__reactFiber$"+Yn,Tt="__reactProps$"+Yn,Gl="__reactContainer$"+Yn,Gu="__reactEvents$"+Yn,t0="__reactListeners$"+Yn,n0="__reactHandles$"+Yn,gf="__reactResources$"+Yn,Yi="__reactMarker$"+Yn;function Xu(e){delete e[dt],delete e[Tt],delete e[Gu],delete e[t0],delete e[n0]}function Xl(e){var t=e[dt];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Gl]||l[dt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Um(e);e!==null;){if(l=e[dt])return l;e=Um(e)}return t}e=l,l=e.parentNode}return null}function Ql(e){if(e=e[dt]||e[Gl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Vi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Zl(e){var t=e[gf];return t||(t=e[gf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function st(e){e[Yi]=!0}var yf=new Set,bf={};function pl(e,t){Fl(e,t),Fl(e+"Capture",t)}function Fl(e,t){for(bf[e]=t,e=0;e<t.length;e++)yf.add(t[e])}var l0=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218
Line truncated
|
|
|
|
|
`).replace(Rb,"")}function Cm(e,t){return t=Tm(t),Tm(e)===t}function Ve(e,t,l,r,o,h){switch(l){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Jl(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Jl(e,""+r);break;case"className":ta(e,"class",r);break;case"tabIndex":ta(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":ta(e,l,r);break;case"style":Cf(e,r,h);break;case"data":if(t!=="object"){ta(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(l);break}r=la(""+r),e.setAttribute(l,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof h=="function"&&(l==="formAction"?(t!=="input"&&Ve(e,t,"name",o.name,o,null),Ve(e,t,"formEncType",o.formEncType,o,null),Ve(e,t,"formMethod",o.formMethod,o,null),Ve(e,t,"formTarget",o.formTarget,o,null)):(Ve(e,t,"encType",o.encType,o,null),Ve(e,t,"method",o.method,o,null),Ve(e,t,"target",o.target,o,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(l);break}r=la(""+r),e.setAttribute(l,r);break;case"onClick":r!=null&&(e.onclick=Sn);break;case"onScroll":r!=null&&ze("scroll",e);break;case"onScrollEnd":r!=null&&ze("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(u(61));if(l=r.__html,l!=null){if(o.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}l=la(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(l,""+r):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":r===!0?e.setAttribute(l,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(l,r):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(l,r):e.removeAttribute(l);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(l):e.setAttribute(l,r);break;case"popover":ze("beforetoggle",e),ze("toggle",e),ea(e,"popover",r);break;case"xlinkActuate":xn(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":xn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":xn(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":xn(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":xn(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":xn(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":xn(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":xn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":xn(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":ea(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=o0.get(l)||l,ea(e,l,r))}}function jc(e,t,l,r,o,h){switch(l){case"style":Cf(e,r,h);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(u(61));if(l=r.__html,l!=null){if(o.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"children":typeof r=="string"?Jl(e,r):(typeof r=="number"||typeof r=="bigint")&&Jl(e,""+r);break;case"onScroll":r!=null&&ze("scroll",e);break;case"onScrollEnd":r!=null&&ze("scrollend",e);break;case"onClick":r!=null&&(e.onclick=Sn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"inne
Line truncated
|
|
|
|
|
`,d="/",b="*",g="",x="comment",v="declaration";function A(H,O){if(typeof H!="string")throw new TypeError("First argument must be a string");if(!H)return[];O=O||{};var F=1,q=1;function re(ue){var $=ue.match(a);$&&(F+=$.length);var D=ue.lastIndexOf(p);q=~D?ue.length-D:q+ue.length}function ae(){var ue={line:F,column:q};return function($){return $.position=new j(ue),ie(),$}}function j(ue){this.start=ue,this.end={line:F,column:q},this.source=O.source}j.prototype.content=H;function P(ue){var $=new Error(O.source+":"+F+":"+q+": "+ue);if($.reason=ue,$.filename=O.source,$.line=F,$.column=q,$.source=H,!O.silent)throw $}function J(ue){var $=ue.exec(H);if($){var D=$[0];return re(D),H=H.slice(D.length),$}}function ie(){J(i)}function M(ue){var $;for(ue=ue||[];$=te();)$!==!1&&ue.push($);return ue}function te(){var ue=ae();if(!(d!=H.charAt(0)||b!=H.charAt(1))){for(var $=2;g!=H.charAt($)&&(b!=H.charAt($)||d!=H.charAt($+1));)++$;if($+=2,g===H.charAt($-1))return P("End of comment missing");var D=H.slice(2,$-2);return q+=2,re(D),H=H.slice($),q+=2,ue({type:x,comment:D})}}function ne(){var ue=ae(),$=J(u);if($){if(te(),!J(c))return P("property missing ':'");var D=J(s),I=ue({type:v,property:U($[0].replace(n,g)),value:D?U(D[0].replace(n,g)):g});return J(f),I}}function ye(){var ue=[];M(ue);for(var $;$=ne();)$!==!1&&(ue.push($),M(ue));return ue}return ie(),ye()}function U(H){return H?H.replace(m,g):g}return as=A,as}var Sp;function V1(){if(Sp)return Ci;Sp=1;var n=Ci&&Ci.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Ci,"__esModule",{value:!0}),Ci.default=i;const a=n(Y1());function i(u,c){let s=null;if(!u||typeof u!="string")return s;const f=(0,a.default)(u),m=typeof c=="function";return f.forEach(p=>{if(p.type!=="declaration")return;const{property:d,value:b}=p;m?c(d,b,p):b&&(s=s||{},s[d]=b)}),s}return Ci}var Mr={},kp;function G1(){if(kp)return Mr;kp=1,Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,a=/-([a-z])/g,i=/^[^-]+$/,u=/^-(webkit|moz|ms|o|khtml)-/,c=/^-(ms)-/,s=function(d){return!d||i.test(d)||n.test(d)},f=function(d,b){return b.toUpperCase()},m=function(d,b){return"".concat(b,"-")},p=function(d,b){return b===void 0&&(b={}),s(d)?d:(d=d.toLowerCase(),b.reactCompat?d=d.replace(c,m):d=d.replace(u,m),d.replace(a,f))};return Mr.camelCase=p,Mr}var Nr,Ep;function X1(){if(Ep)return Nr;Ep=1;var n=Nr&&Nr.__importDefault||function(c){return c&&c.__esModule?c:{default:c}},a=n(V1()),i=G1();function u(c,s){var f={};return!c||typeof c!="string"||(0,a.default)(c,function(m,p){m&&p&&(f[(0,i.camelCase)(m,s)]=p)}),f}return u.default=u,Nr=u,Nr}var Q1=X1();const Z1=Bs(Q1),Ag=Tg("end"),Vs=Tg("start");function Tg(n){return a;function a(i){const u=i&&i.position&&i.position[n]||{};if(typeof u.line=="number"&&u.line>0&&typeof u.column=="number"&&u.column>0)return{line:u.line,column:u.column,offset:typeof u.offset=="number"&&u.offset>-1?u.offset:void 0}}}function F1(n){const a=Vs(n),i=Ag(n);if(a&&i)return{start:a,end:i}}function Ur(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?wp(n.position):"start"in n||"end"in n?wp(n):"line"in n||"column"in n?Cs(n):""}function Cs(n){return Ap(n&&n.line)+":"+Ap(n&&n.column)}function wp(n){return Cs(n&&n.start)+"-"+Cs(n&&n.end)}function Ap(n){return n&&typeof n=="number"?n:1}class xt extends Error{constructor(a,i,u){super(),typeof i=="string"&&(u=i,i=void 0);let c="",s={},f=!1;if(i&&("line"in i&&"column"in i?s={place:i}:"start"in i&&"end"in i?s={place:i}:"type"in i?s={ancestors:[i],place:i.position}:s={...i}),typeof a=="string"?c=a:!s.cause&&a&&(f=!0,c=a.message,s.cause=a),!s.ruleId&&!s.source&&typeof u=="string"){const p=u.indexOf(":");p===-1?s.ruleId=u:(s.source=u.slice(0,p),s.ruleId=u.slice(p+1))}if(!s.place&&s.ancestors&&s.ancestors){const p=s.ancestors[s.ancestors.length-1];p&&(s.place=p.position)}const m=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=m?m.column:void 0,this.fatal=void 0,this.file="",this.message=c,this.line=m?m.line:void 0,this.name=Ur(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=f&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}xt.prototype.file="";xt.prototype.name="";xt.prototype.reason="";xt.prototype.message="";xt.prototype.stack="";xt.prototype.column=void 0;xt.prototype.line=void 0;xt.prototype.ancestors=void 0;xt.prototype.cause=void 0;xt.prototype.fatal=void 0;xt.prototype.place=void 0;xt.prototype.ruleId=void 0;xt.prototype.source=void 0;const Gs={}.hasOwnProperty,K1=new Map,J1=/[A-Z]/g,I1=new Set(["table","tbody","thead","tfoot","tr"]),P1=new Set(["td","th"]),Cg="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function W1(n,a){if(!a||a.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=a.filePath||
Line truncated
|
|
|
|
|
`;break}case-3:{f=`\r
|
|
|
|
|
`;break}case-2:{f=a?" ":" ";break}case-1:{if(!a&&c)continue;f=" ";break}default:f=String.fromCharCode(s)}c=s===-2,u.push(f)}return u.join("")}function aS(n){const u={constructs:Mg([nS,...(n||{}).extensions||[]]),content:c(Sv),defined:[],document:c(Ev),flow:c(Yx),lazy:{},string:c(Xx),text:c(Qx)};return u;function c(s){return f;function f(m){return lS(u,s,m)}}}function uS(n){for(;!Ug(n););return n}const jp=/[\0\t\n\r]/g;function oS(){let n=1,a="",i=!0,u;return c;function c(s,f,m){const p=[];let d,b,g,x,v;for(s=a+(typeof s=="string"?s.toString():new TextDecoder(f||void 0).decode(s)),g=0,a="",i&&(s.charCodeAt(0)===65279&&g++,i=void 0);g<s.length;){if(jp.lastIndex=g,d=jp.exec(s),x=d&&d.index!==void 0?d.index:s.length,v=s.charCodeAt(x),!d){a=s.slice(g);break}if(v===10&&g===x&&u)p.push(-3),u=void 0;else switch(u&&(p.push(-5),u=void 0),g<x&&(p.push(s.slice(g,x)),n+=x-g),v){case 0:{p.push(65533),n++;break}case 9:{for(b=Math.ceil(n/4)*4,p.push(-2);n++<b;)p.push(-1);break}case 10:{p.push(-4),n=1;break}default:u=!0,n=1}g=x+1}return m&&(u&&p.push(-5),a&&p.push(a),p.push(null)),p}}const cS=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function sS(n){return n.replace(cS,fS)}function fS(n,a,i){if(a)return a;if(i.charCodeAt(0)===35){const c=i.charCodeAt(1),s=c===120||c===88;return Ng(i.slice(s?2:1),s?16:10)}return Fs(i)||n}const Gg={}.hasOwnProperty;function hS(n,a,i){return typeof a!="string"&&(i=a,a=void 0),dS(i)(uS(aS(i).document().write(oS()(n,a,!0))))}function dS(n){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Yl),autolinkProtocol:ie,autolinkEmail:ie,atxHeading:s(Hl),blockQuote:s(ht),characterEscape:ie,characterReference:ie,codeFenced:s(jt),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:s(jt,f),codeText:s(sn,f),codeTextData:ie,data:ie,codeFlowValue:ie,definition:s(Fr),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:s(bn),hardBreakEscape:s(ql),hardBreakTrailing:s(ql),htmlFlow:s(Kr,f),htmlFlowData:ie,htmlText:s(Kr,f),htmlTextData:ie,image:s(Jr),label:f,link:s(Yl),listItem:s(Bi),listItemValue:x,listOrdered:s(Vl,g),listUnordered:s(Vl),paragraph:s(Uu),reference:k,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:s(Hl),strong:s(Bu),thematicBreak:s(Hu)},exit:{atxHeading:p(),atxHeadingSequence:ae,autolink:p(),autolinkEmail:Re,autolinkProtocol:Xe,blockQuote:p(),characterEscapeValue:M,characterReferenceMarkerHexadecimal:de,characterReferenceMarkerNumeric:de,characterReferenceValue:he,characterReference:me,codeFenced:p(H),codeFencedFence:U,codeFencedFenceInfo:v,codeFencedFenceMeta:A,codeFlowValue:M,codeIndented:p(O),codeText:p($),codeTextData:M,data:M,definition:p(),definitionDestinationString:re,definitionLabelString:F,definitionTitleString:q,emphasis:p(),hardBreakEscape:p(ne),hardBreakTrailing:p(ne),htmlFlow:p(ye),htmlFlowData:M,htmlText:p(ue),htmlTextData:M,image:p(I),label:ke,labelText:K,lineEnding:te,link:p(D),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:ee,resourceDestinationString:E,resourceTitleString:T,resource:V,setextHeading:p(J),setextHeadingLineSequence:P,setextHeadingText:j,strong:p(),thematicBreak:p()}};Xg(a,(n||{}).mdastExtensions||[]);const i={};return u;function u(G){let le={type:"root",children:[]};const ve={stack:[le],tokenStack:[],config:a,enter:m,exit:d,buffer:f,resume:b,data:i},Te=[];let Be=-1;for(;++Be<G.length;)if(G[Be][1].type==="listOrdered"||G[Be][1].type==="listUnordered")if(G[Be][0]==="enter")Te.push(Be);else{const Lt=Te.pop();Be=c(G,Lt,Be)}for(Be=-1;++Be<G.length;){const Lt=a[G[Be][0]];Gg.call(Lt,G[Be][1].type)&&Lt[G[Be][1].type].call(Object.assign({sliceSerialize:G[Be][2].sliceSerialize},ve),G[Be][1])}if(ve.tokenStack.length>0){const Lt=ve.tokenStack[ve.tokenStack.length-1];(Lt[1]||Lp).call(ve,void 0,Lt[0])}for(le.position={start:fl(G.length>0?G[0][1].start:{line:1,column:1,offset:0}),end:fl(G.length>0?G[G.length-2][1].end:{line:1,column:1,offset:0})},Be=-1;++Be<a.transforms.length;)le=a.transforms[Be](le)||le;return le}function c(G,le,ve){let Te=le-1,Be=-1,Lt=!1,vn,kt,ut,At;for(;++Te<=ve;){const Qe=G[Te];switch(Qe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Qe[0]==="enter"?Be++:Be--,At=void 0;break}case"lineEndingBlank":{Qe[0]==="enter"&&(vn&&!At&&!Be&&!ut&&(ut=Te),At=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:At=void 0}if(!Be&&Qe[0]==="enter"&&Qe[1].type==="listItemPrefix"||Be===-1&&Qe[0]==="exit"&&(Qe[1].type==="listUnordered"||Qe[1].type==="listOrdered")){if(vn){let qn=Te;for(kt=void 0;qn--;){const rn=G[qn];if(rn[1].type==="lineEnding"||rn[1].type==="lineEndingBlank"){if(rn[0]==="exit")continue;kt&&(G[kt][1].type="lineEndingBlank",Lt=!0),rn[1].type="lineEnding",kt=qn}else if(!(rn[1].type==="linePrefix"||rn[1].type==="blockQuotePrefix"||rn[1].type==="blockQuotePrefixWhitespace"||rn[1Line truncated
|
|
|
|
|
`}]}function bS(n,a){const i=a.value?a.value+`
|
|
|
|
|
`:"",u={},c=a.lang?a.lang.split(/\s+/):[];c.length>0&&(u.className=["language-"+c[0]]);let s={type:"element",tagName:"code",properties:u,children:[{type:"text",value:i}]};return a.meta&&(s.data={meta:a.meta}),n.patch(a,s),s=n.applyData(a,s),s={type:"element",tagName:"pre",properties:{},children:[s]},n.patch(a,s),s}function vS(n,a){const i={type:"element",tagName:"del",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function xS(n,a){const i={type:"element",tagName:"em",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function SS(n,a){const i=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",u=String(a.identifier).toUpperCase(),c=ji(u.toLowerCase()),s=n.footnoteOrder.indexOf(u);let f,m=n.footnoteCounts.get(u);m===void 0?(m=0,n.footnoteOrder.push(u),f=n.footnoteOrder.length):f=s+1,m+=1,n.footnoteCounts.set(u,m);const p={type:"element",tagName:"a",properties:{href:"#"+i+"fn-"+c,id:i+"fnref-"+c+(m>1?"-"+m:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(f)}]};n.patch(a,p);const d={type:"element",tagName:"sup",properties:{},children:[p]};return n.patch(a,d),n.applyData(a,d)}function kS(n,a){const i={type:"element",tagName:"h"+a.depth,properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function ES(n,a){if(n.options.allowDangerousHtml){const i={type:"raw",value:a.value};return n.patch(a,i),n.applyData(a,i)}}function Qg(n,a){const i=a.referenceType;let u="]";if(i==="collapsed"?u+="[]":i==="full"&&(u+="["+(a.label||a.identifier)+"]"),a.type==="imageReference")return[{type:"text",value:"!["+a.alt+u}];const c=n.all(a),s=c[0];s&&s.type==="text"?s.value="["+s.value:c.unshift({type:"text",value:"["});const f=c[c.length-1];return f&&f.type==="text"?f.value+=u:c.push({type:"text",value:u}),c}function wS(n,a){const i=String(a.identifier).toUpperCase(),u=n.definitionById.get(i);if(!u)return Qg(n,a);const c={src:ji(u.url||""),alt:a.alt};u.title!==null&&u.title!==void 0&&(c.title=u.title);const s={type:"element",tagName:"img",properties:c,children:[]};return n.patch(a,s),n.applyData(a,s)}function AS(n,a){const i={src:ji(a.url)};a.alt!==null&&a.alt!==void 0&&(i.alt=a.alt),a.title!==null&&a.title!==void 0&&(i.title=a.title);const u={type:"element",tagName:"img",properties:i,children:[]};return n.patch(a,u),n.applyData(a,u)}function TS(n,a){const i={type:"text",value:a.value.replace(/\r?\n|\r/g," ")};n.patch(a,i);const u={type:"element",tagName:"code",properties:{},children:[i]};return n.patch(a,u),n.applyData(a,u)}function CS(n,a){const i=String(a.identifier).toUpperCase(),u=n.definitionById.get(i);if(!u)return Qg(n,a);const c={href:ji(u.url||"")};u.title!==null&&u.title!==void 0&&(c.title=u.title);const s={type:"element",tagName:"a",properties:c,children:n.all(a)};return n.patch(a,s),n.applyData(a,s)}function zS(n,a){const i={href:ji(a.url)};a.title!==null&&a.title!==void 0&&(i.title=a.title);const u={type:"element",tagName:"a",properties:i,children:n.all(a)};return n.patch(a,u),n.applyData(a,u)}function _S(n,a,i){const u=n.all(a),c=i?OS(i):Zg(a),s={},f=[];if(typeof a.checked=="boolean"){const b=u[0];let g;b&&b.type==="element"&&b.tagName==="p"?g=b:(g={type:"element",tagName:"p",properties:{},children:[]},u.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:a.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let m=-1;for(;++m<u.length;){const b=u[m];(c||m!==0||b.type!=="element"||b.tagName!=="p")&&f.push({type:"text",value:`
|
|
|
|
|
`}),b.type==="element"&&b.tagName==="p"&&!c?f.push(...b.children):f.push(b)}const p=u[u.length-1];p&&(c||p.type!=="element"||p.tagName!=="p")&&f.push({type:"text",value:`
|
|
|
|
|
`});const d={type:"element",tagName:"li",properties:s,children:f};return n.patch(a,d),n.applyData(a,d)}function OS(n){let a=!1;if(n.type==="list"){a=n.spread||!1;const i=n.children;let u=-1;for(;!a&&++u<i.length;)a=Zg(i[u])}return a}function Zg(n){const a=n.spread;return a??n.children.length>1}function DS(n,a){const i={},u=n.all(a);let c=-1;for(typeof a.start=="number"&&a.start!==1&&(i.start=a.start);++c<u.length;){const f=u[c];if(f.type==="element"&&f.tagName==="li"&&f.properties&&Array.isArray(f.properties.className)&&f.properties.className.includes("task-list-item")){i.className=["contains-task-list"];break}}const s={type:"element",tagName:a.ordered?"ol":"ul",properties:i,children:n.wrap(u,!0)};return n.patch(a,s),n.applyData(a,s)}function MS(n,a){const i={type:"element",tagName:"p",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function NS(n,a){const i={type:"root",children:n.wrap(n.all(a))};return n.patch(a,i),n.applyData(a,i)}function RS(n,a){const i={type:"element",tagName:"strong",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function jS(n,a){const i=n.all(a),u=i.shift(),c=[];if(u){const f={type:"element",tagName:"thead",properties:{},children:n.wrap([u],!0)};n.patch(a.children[0],f),c.push(f)}if(i.length>0){const f={type:"element",tagName:"tbody",properties:{},children:n.wrap(i,!0)},m=Vs(a.children[1]),p=Ag(a.children[a.children.length-1]);m&&p&&(f.position={start:m,end:p}),c.push(f)}const s={type:"element",tagName:"table",properties:{},children:n.wrap(c,!0)};return n.patch(a,s),n.applyData(a,s)}function LS(n,a,i){const u=i?i.children:void 0,s=(u?u.indexOf(a):1)===0?"th":"td",f=i&&i.type==="table"?i.align:void 0,m=f?f.length:a.children.length;let p=-1;const d=[];for(;++p<m;){const g=a.children[p],x={},v=f?f[p]:void 0;v&&(x.align=v);let A={type:"element",tagName:s,properties:x,children:[]};g&&(A.children=n.all(g),n.patch(g,A),A=n.applyData(g,A)),d.push(A)}const b={type:"element",tagName:"tr",properties:{},children:n.wrap(d,!0)};return n.patch(a,b),n.applyData(a,b)}function US(n,a){const i={type:"element",tagName:"td",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}const Up=9,Bp=32;function BS(n){const a=String(n),i=/\r?\n|\r/g;let u=i.exec(a),c=0;const s=[];for(;u;)s.push(Hp(a.slice(c,u.index),c>0,!0),u[0]),c=u.index+u[0].length,u=i.exec(a);return s.push(Hp(a.slice(c),c>0,!1)),s.join("")}function Hp(n,a,i){let u=0,c=n.length;if(a){let s=n.codePointAt(u);for(;s===Up||s===Bp;)u++,s=n.codePointAt(u)}if(i){let s=n.codePointAt(c-1);for(;s===Up||s===Bp;)c--,s=n.codePointAt(c-1)}return c>u?n.slice(u,c):""}function HS(n,a){const i={type:"text",value:BS(String(a.value))};return n.patch(a,i),n.applyData(a,i)}function qS(n,a){const i={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(a,i),n.applyData(a,i)}const YS={blockquote:gS,break:yS,code:bS,delete:vS,emphasis:xS,footnoteReference:SS,heading:kS,html:ES,imageReference:wS,image:AS,inlineCode:TS,linkReference:CS,link:zS,listItem:_S,list:DS,paragraph:MS,root:NS,strong:RS,table:jS,tableCell:US,tableRow:LS,text:HS,thematicBreak:qS,toml:hu,yaml:hu,definition:hu,footnoteDefinition:hu};function hu(){}const Fg=-1,Du=0,Hr=1,ku=2,Js=3,Is=4,Ps=5,Ws=6,Kg=7,Jg=8,qp=typeof self=="object"?self:globalThis,VS=(n,a)=>{const i=(c,s)=>(n.set(s,c),c),u=c=>{if(n.has(c))return n.get(c);const[s,f]=a[c];switch(s){case Du:case Fg:return i(f,c);case Hr:{const m=i([],c);for(const p of f)m.push(u(p));return m}case ku:{const m=i({},c);for(const[p,d]of f)m[u(p)]=u(d);return m}case Js:return i(new Date(f),c);case Is:{const{source:m,flags:p}=f;return i(new RegExp(m,p),c)}case Ps:{const m=i(new Map,c);for(const[p,d]of f)m.set(u(p),u(d));return m}case Ws:{const m=i(new Set,c);for(const p of f)m.add(u(p));return m}case Kg:{const{name:m,message:p}=f;return i(new qp[m](p),c)}case Jg:return i(BigInt(f),c);case"BigInt":return i(Object(BigInt(f)),c);case"ArrayBuffer":return i(new Uint8Array(f).buffer,f);case"DataView":{const{buffer:m}=new Uint8Array(f);return i(new DataView(m),f)}}return i(new qp[s](f),c)};return u},Yp=n=>VS(new Map,n)(0),zi="",{toString:GS}={},{keys:XS}=Object,jr=n=>{const a=typeof n;if(a!=="object"||!n)return[Du,a];const i=GS.call(n).slice(8,-1);switch(i){case"Array":return[Hr,zi];case"Object":return[ku,zi];case"Date":return[Js,zi];case"RegExp":return[Is,zi];case"Map":return[Ps,zi];case"Set":return[Ws,zi];case"DataView":return[Hr,i]}return i.includes("Array")?[Hr,i]:i.includes("Error")?[Kg,i]:[ku,i]},du=([n,a])=>n===Du&&(a==="function"||a==="symbol"),QS=(n,a,i,u)=>{const c=(f,m)=>{const p=u.push(f)-1;return i.set(m,p),p},s=f=>{if(i.has(f))return i.get(f);let[m,p]=jr(f);switch(m){case Du:{let b=f;switch(p){case"bigint":m=Jg,b=f.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+p);b=null;break;case"undefined":return c([Fg],f)}return c([m,b],f)}case Hr:{if(p){let x=f;return p==="DataView"?x=new Uint8Array(f.buffer):p==="ArrayBuffer"&&(x=new Uint8Array(
Line truncated
|
|
|
|
|
`},{type:"element",tagName:"ol",properties:{},children:n.wrap(m,!0)},{type:"text",value:`
|
|
|
|
|
`}]}}const Mu=(function(n){if(n==null)return WS;if(typeof n=="function")return Nu(n);if(typeof n=="object")return Array.isArray(n)?JS(n):IS(n);if(typeof n=="string")return PS(n);throw new Error("Expected function, string, or object as test")});function JS(n){const a=[];let i=-1;for(;++i<n.length;)a[i]=Mu(n[i]);return Nu(u);function u(...c){let s=-1;for(;++s<a.length;)if(a[s].apply(this,c))return!0;return!1}}function IS(n){const a=n;return Nu(i);function i(u){const c=u;let s;for(s in n)if(c[s]!==a[s])return!1;return!0}}function PS(n){return Nu(a);function a(i){return i&&i.type===n}}function Nu(n){return a;function a(i,u,c){return!!($S(i)&&n.call(this,i,typeof u=="number"?u:void 0,c||void 0))}}function WS(){return!0}function $S(n){return n!==null&&typeof n=="object"&&"type"in n}const Ig=[],e2=!0,Os=!1,t2="skip";function Pg(n,a,i,u){let c;typeof a=="function"&&typeof i!="function"?(u=i,i=a):c=a;const s=Mu(c),f=u?-1:1;m(n,void 0,[])();function m(p,d,b){const g=p&&typeof p=="object"?p:{};if(typeof g.type=="string"){const v=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(x,"name",{value:"node ("+(p.type+(v?"<"+v+">":""))+")"})}return x;function x(){let v=Ig,A,U,H;if((!a||s(p,d,b[b.length-1]||void 0))&&(v=n2(i(p,b)),v[0]===Os))return v;if("children"in p&&p.children){const O=p;if(O.children&&v[0]!==t2)for(U=(u?O.children.length:-1)+f,H=b.concat(O);U>-1&&U<O.children.length;){const F=O.children[U];if(A=m(F,U,H)(),A[0]===Os)return A;U=typeof A[1]=="number"?A[1]:U+f}}return v}}}function n2(n){return Array.isArray(n)?n:typeof n=="number"?[e2,n]:n==null?Ig:[n]}function $s(n,a,i,u){let c,s,f;typeof a=="function"&&typeof i!="function"?(s=void 0,f=a,c=i):(s=a,f=i,c=u),Pg(n,s,m,c);function m(p,d){const b=d[d.length-1],g=b?b.children.indexOf(p):void 0;return f(p,g,b)}}const Ds={}.hasOwnProperty,l2={};function i2(n,a){const i=a||l2,u=new Map,c=new Map,s=new Map,f={...YS,...i.handlers},m={all:d,applyData:a2,definitionById:u,footnoteById:c,footnoteCounts:s,footnoteOrder:[],handlers:f,one:p,options:i,patch:r2,wrap:o2};return $s(n,function(b){if(b.type==="definition"||b.type==="footnoteDefinition"){const g=b.type==="definition"?u:c,x=String(b.identifier).toUpperCase();g.has(x)||g.set(x,b)}}),m;function p(b,g){const x=b.type,v=m.handlers[x];if(Ds.call(m.handlers,x)&&v)return v(m,b,g);if(m.options.passThrough&&m.options.passThrough.includes(x)){if("children"in b){const{children:U,...H}=b,O=Eu(H);return O.children=m.all(b),O}return Eu(b)}return(m.options.unknownHandler||u2)(m,b,g)}function d(b){const g=[];if("children"in b){const x=b.children;let v=-1;for(;++v<x.length;){const A=m.one(x[v],b);if(A){if(v&&x[v-1].type==="break"&&(!Array.isArray(A)&&A.type==="text"&&(A.value=Gp(A.value)),!Array.isArray(A)&&A.type==="element")){const U=A.children[0];U&&U.type==="text"&&(U.value=Gp(U.value))}Array.isArray(A)?g.push(...A):g.push(A)}}}return g}}function r2(n,a){n.position&&(a.position=F1(n))}function a2(n,a){let i=a;if(n&&n.data){const u=n.data.hName,c=n.data.hChildren,s=n.data.hProperties;if(typeof u=="string")if(i.type==="element")i.tagName=u;else{const f="children"in i?i.children:[i];i={type:"element",tagName:u,properties:{},children:f}}i.type==="element"&&s&&Object.assign(i.properties,Eu(s)),"children"in i&&i.children&&c!==null&&c!==void 0&&(i.children=c)}return i}function u2(n,a){const i=a.data||{},u="value"in a&&!(Ds.call(i,"hProperties")||Ds.call(i,"hChildren"))?{type:"text",value:a.value}:{type:"element",tagName:"div",properties:{},children:n.all(a)};return n.patch(a,u),n.applyData(a,u)}function o2(n,a){const i=[];let u=-1;for(a&&i.push({type:"text",value:`
|
|
|
|
|
`});++u<n.length;)u&&i.push({type:"text",value:`
|
|
|
|
|
`}),i.push(n[u]);return a&&n.length>0&&i.push({type:"text",value:`
|
|
|
|
|
`}),i}function Gp(n){let a=0,i=n.charCodeAt(a);for(;i===9||i===32;)a++,i=n.charCodeAt(a);return n.slice(a)}function Xp(n,a){const i=i2(n,a),u=i.one(n,void 0),c=KS(i),s=Array.isArray(u)?{type:"root",children:u}:u||{type:"root",children:[]};return c&&s.children.push({type:"text",value:`
|
|
|
|
|
`},c),s}function c2(n,a){return n&&"run"in n?async function(i,u){const c=Xp(i,{file:u,...a});await n.run(c,u)}:function(i,u){return Xp(i,{file:u,...n||a})}}function Qp(n){if(n)throw n}var ss,Zp;function s2(){if(Zp)return ss;Zp=1;var n=Object.prototype.hasOwnProperty,a=Object.prototype.toString,i=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=function(d){return typeof Array.isArray=="function"?Array.isArray(d):a.call(d)==="[object Array]"},s=function(d){if(!d||a.call(d)!=="[object Object]")return!1;var b=n.call(d,"constructor"),g=d.constructor&&d.constructor.prototype&&n.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!b&&!g)return!1;var x;for(x in d);return typeof x>"u"||n.call(d,x)},f=function(d,b){i&&b.name==="__proto__"?i(d,b.name,{enumerable:!0,configurable:!0,value:b.newValue,writable:!0}):d[b.name]=b.newValue},m=function(d,b){if(b==="__proto__")if(n.call(d,b)){if(u)return u(d,b).value}else return;return d[b]};return ss=function p(){var d,b,g,x,v,A,U=arguments[0],H=1,O=arguments.length,F=!1;for(typeof U=="boolean"&&(F=U,U=arguments[1]||{},H=2),(U==null||typeof U!="object"&&typeof U!="function")&&(U={});H<O;++H)if(d=arguments[H],d!=null)for(b in d)g=m(U,b),x=m(d,b),U!==x&&(F&&x&&(s(x)||(v=c(x)))?(v?(v=!1,A=g&&c(g)?g:[]):A=g&&s(g)?g:{},f(U,{name:b,newValue:p(F,A,x)})):typeof x<"u"&&f(U,{name:b,newValue:x}));return U},ss}var f2=s2();const fs=Bs(f2);function Ms(n){if(typeof n!="object"||n===null)return!1;const a=Object.getPrototypeOf(n);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function h2(){const n=[],a={run:i,use:u};return a;function i(...c){let s=-1;const f=c.pop();if(typeof f!="function")throw new TypeError("Expected function as last argument, not "+f);m(null,...c);function m(p,...d){const b=n[++s];let g=-1;if(p){f(p);return}for(;++g<c.length;)(d[g]===null||d[g]===void 0)&&(d[g]=c[g]);c=d,b?d2(b,m)(...d):f(null,...d)}}function u(c){if(typeof c!="function")throw new TypeError("Expected `middelware` to be a function, not "+c);return n.push(c),a}}function d2(n,a){let i;return u;function u(...f){const m=n.length>f.length;let p;m&&f.push(c);try{p=n.apply(this,f)}catch(d){const b=d;if(m&&i)throw b;return c(b)}m||(p&&p.then&&typeof p.then=="function"?p.then(s,c):p instanceof Error?c(p):s(p))}function c(f,...m){i||(i=!0,a(f,...m))}function s(f){c(null,f)}}const pn={basename:m2,dirname:p2,extname:g2,join:y2,sep:"/"};function m2(n,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');Xr(n);let i=0,u=-1,c=n.length,s;if(a===void 0||a.length===0||a.length>n.length){for(;c--;)if(n.codePointAt(c)===47){if(s){i=c+1;break}}else u<0&&(s=!0,u=c+1);return u<0?"":n.slice(i,u)}if(a===n)return"";let f=-1,m=a.length-1;for(;c--;)if(n.codePointAt(c)===47){if(s){i=c+1;break}}else f<0&&(s=!0,f=c+1),m>-1&&(n.codePointAt(c)===a.codePointAt(m--)?m<0&&(u=c):(m=-1,u=f));return i===u?u=f:u<0&&(u=n.length),n.slice(i,u)}function p2(n){if(Xr(n),n.length===0)return".";let a=-1,i=n.length,u;for(;--i;)if(n.codePointAt(i)===47){if(u){a=i;break}}else u||(u=!0);return a<0?n.codePointAt(0)===47?"/":".":a===1&&n.codePointAt(0)===47?"//":n.slice(0,a)}function g2(n){Xr(n);let a=n.length,i=-1,u=0,c=-1,s=0,f;for(;a--;){const m=n.codePointAt(a);if(m===47){if(f){u=a+1;break}continue}i<0&&(f=!0,i=a+1),m===46?c<0?c=a:s!==1&&(s=1):c>-1&&(s=-1)}return c<0||i<0||s===0||s===1&&c===i-1&&c===u+1?"":n.slice(c,i)}function y2(...n){let a=-1,i;for(;++a<n.length;)Xr(n[a]),n[a]&&(i=i===void 0?n[a]:i+"/"+n[a]);return i===void 0?".":b2(i)}function b2(n){Xr(n);const a=n.codePointAt(0)===47;let i=v2(n,!a);return i.length===0&&!a&&(i="."),i.length>0&&n.codePointAt(n.length-1)===47&&(i+="/"),a?"/"+i:i}function v2(n,a){let i="",u=0,c=-1,s=0,f=-1,m,p;for(;++f<=n.length;){if(f<n.length)m=n.codePointAt(f);else{if(m===47)break;m=47}if(m===47){if(!(c===f-1||s===1))if(c!==f-1&&s===2){if(i.length<2||u!==2||i.codePointAt(i.length-1)!==46||i.codePointAt(i.length-2)!==46){if(i.length>2){if(p=i.lastIndexOf("/"),p!==i.length-1){p<0?(i="",u=0):(i=i.slice(0,p),u=i.length-1-i.lastIndexOf("/")),c=f,s=0;continue}}else if(i.length>0){i="",u=0,c=f,s=0;continue}}a&&(i=i.length>0?i+"/..":"..",u=2)}else i.length>0?i+="/"+n.slice(c+1,f):i=n.slice(c+1,f),u=f-c-1;c=f,s=0}else m===46&&s>-1?s++:s=-1}return i}function Xr(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const x2={cwd:S2};function S2(){return"/"}function Ns(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function k2(n){if(typeof n=="string")n=new URL(n);else if(!Ns(n)){const a=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw a.code="ERR_INVALID_ARG_TYPE",a}if(n.protocol!=="file:"){const a=new TypeError("The URL must be of scheme file");throw a.code="ERR_INVALID_URL_SCHEME",a}return E2(n)}function E2(n){if(n.hostname!==""){consLine truncated
|
|
|
|
|
`:" ")+s.indentLines(s.containerFlow(u,m.current()),a?ty:dk))),d(),p}}function dk(n,a,i){return a===0?n:ty(n,a,i)}function ty(n,a,i){return(i?"":" ")+n}const mk=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];ny.peek=vk;function pk(){return{canContainEols:["delete"],enter:{strikethrough:yk},exit:{strikethrough:bk}}}function gk(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:mk}],handlers:{delete:ny}}}function yk(n){this.enter({type:"delete",children:[]},n)}function bk(n){this.exit(n)}function ny(n,a,i,u){const c=i.createTracker(u),s=i.enter("strikethrough");let f=c.move("~~");return f+=i.containerPhrasing(n,{...c.current(),before:f,after:"~"}),f+=c.move("~~"),s(),f}function vk(){return"~"}function xk(n){return n.length}function Sk(n,a){const i=a||{},u=(i.align||[]).concat(),c=i.stringLength||xk,s=[],f=[],m=[],p=[];let d=0,b=-1;for(;++b<n.length;){const U=[],H=[];let O=-1;for(n[b].length>d&&(d=n[b].length);++O<n[b].length;){const F=kk(n[b][O]);if(i.alignDelimiters!==!1){const q=c(F);H[O]=q,(p[O]===void 0||q>p[O])&&(p[O]=q)}U.push(F)}f[b]=U,m[b]=H}let g=-1;if(typeof u=="object"&&"length"in u)for(;++g<d;)s[g]=$p(u[g]);else{const U=$p(u);for(;++g<d;)s[g]=U}g=-1;const x=[],v=[];for(;++g<d;){const U=s[g];let H="",O="";U===99?(H=":",O=":"):U===108?H=":":U===114&&(O=":");let F=i.alignDelimiters===!1?1:Math.max(1,p[g]-H.length-O.length);const q=H+"-".repeat(F)+O;i.alignDelimiters!==!1&&(F=H.length+F+O.length,F>p[g]&&(p[g]=F),v[g]=F),x[g]=q}f.splice(1,0,x),m.splice(1,0,v),b=-1;const A=[];for(;++b<f.length;){const U=f[b],H=m[b];g=-1;const O=[];for(;++g<d;){const F=U[g]||"";let q="",re="";if(i.alignDelimiters!==!1){const ae=p[g]-(H[g]||0),j=s[g];j===114?q=" ".repeat(ae):j===99?ae%2?(q=" ".repeat(ae/2+.5),re=" ".repeat(ae/2-.5)):(q=" ".repeat(ae/2),re=q):re=" ".repeat(ae)}i.delimiterStart!==!1&&!g&&O.push("|"),i.padding!==!1&&!(i.alignDelimiters===!1&&F==="")&&(i.delimiterStart!==!1||g)&&O.push(" "),i.alignDelimiters!==!1&&O.push(q),O.push(F),i.alignDelimiters!==!1&&O.push(re),i.padding!==!1&&O.push(" "),(i.delimiterEnd!==!1||g!==d-1)&&O.push("|")}A.push(i.delimiterEnd===!1?O.join("").replace(/ +$/,""):O.join(""))}return A.join(`
|
|
|
|
|
`)}function kk(n){return n==null?"":String(n)}function $p(n){const a=typeof n=="string"?n.codePointAt(0):0;return a===67||a===99?99:a===76||a===108?108:a===82||a===114?114:0}function Ek(n,a,i,u){const c=i.enter("blockquote"),s=i.createTracker(u);s.move("> "),s.shift(2);const f=i.indentLines(i.containerFlow(n,s.current()),wk);return c(),f}function wk(n,a,i){return">"+(i?"":" ")+n}function Ak(n,a){return eg(n,a.inConstruct,!0)&&!eg(n,a.notInConstruct,!1)}function eg(n,a,i){if(typeof a=="string"&&(a=[a]),!a||a.length===0)return i;let u=-1;for(;++u<a.length;)if(n.includes(a[u]))return!0;return!1}function tg(n,a,i,u){let c=-1;for(;++c<i.unsafe.length;)if(i.unsafe[c].character===`
|
|
|
|
|
`&&Ak(i.stack,i.unsafe[c]))return/[ \t]/.test(u.before)?"":" ";return`\\
|
|
|
|
|
`}function Tk(n,a){const i=String(n);let u=i.indexOf(a),c=u,s=0,f=0;if(typeof a!="string")throw new TypeError("Expected substring");for(;u!==-1;)u===c?++s>f&&(f=s):s=1,c=u+a.length,u=i.indexOf(a,c);return f}function Ck(n,a){return!!(a.options.fences===!1&&n.value&&!n.lang&&/[^ \r\n]/.test(n.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(n.value))}function zk(n){const a=n.options.fence||"`";if(a!=="`"&&a!=="~")throw new Error("Cannot serialize code with `"+a+"` for `options.fence`, expected `` ` `` or `~`");return a}function _k(n,a,i,u){const c=zk(i),s=n.value||"",f=c==="`"?"GraveAccent":"Tilde";if(Ck(n,i)){const g=i.enter("codeIndented"),x=i.indentLines(s,Ok);return g(),x}const m=i.createTracker(u),p=c.repeat(Math.max(Tk(s,c)+1,3)),d=i.enter("codeFenced");let b=m.move(p);if(n.lang){const g=i.enter(`codeFencedLang${f}`);b+=m.move(i.safe(n.lang,{before:b,after:" ",encode:["`"],...m.current()})),g()}if(n.lang&&n.meta){const g=i.enter(`codeFencedMeta${f}`);b+=m.move(" "),b+=m.move(i.safe(n.meta,{before:b,after:`
|
|
|
|
|
`,encode:["`"],...m.current()})),g()}return b+=m.move(`
|
|
|
|
|
`),s&&(b+=m.move(s+`
|
|
|
|
|
`)),b+=m.move(p),d(),b}function Ok(n,a,i){return(i?"":" ")+n}function tf(n){const a=n.options.quote||'"';if(a!=='"'&&a!=="'")throw new Error("Cannot serialize title with `"+a+"` for `options.quote`, expected `\"`, or `'`");return a}function Dk(n,a,i,u){const c=tf(i),s=c==='"'?"Quote":"Apostrophe",f=i.enter("definition");let m=i.enter("label");const p=i.createTracker(u);let d=p.move("[");return d+=p.move(i.safe(i.associationId(n),{before:d,after:"]",...p.current()})),d+=p.move("]: "),m(),!n.url||/[\0- \u007F]/.test(n.url)?(m=i.enter("destinationLiteral"),d+=p.move("<"),d+=p.move(i.safe(n.url,{before:d,after:">",...p.current()})),d+=p.move(">")):(m=i.enter("destinationRaw"),d+=p.move(i.safe(n.url,{before:d,after:n.title?" ":`
|
|
|
|
|
`,...p.current()}))),m(),n.title&&(m=i.enter(`title${s}`),d+=p.move(" "+c),d+=p.move(i.safe(n.title,{before:d,after:c,...p.current()})),d+=p.move(c),m()),f(),d}function Mk(n){const a=n.options.emphasis||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize emphasis with `"+a+"` for `options.emphasis`, expected `*`, or `_`");return a}function Yr(n){return"&#x"+n.toString(16).toUpperCase()+";"}function wu(n,a,i){const u=Mi(n),c=Mi(a);return u===void 0?c===void 0?i==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:c===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:u===1?c===void 0?{inside:!1,outside:!1}:c===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:c===void 0?{inside:!1,outside:!1}:c===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}ly.peek=Nk;function ly(n,a,i,u){const c=Mk(i),s=i.enter("emphasis"),f=i.createTracker(u),m=f.move(c);let p=f.move(i.containerPhrasing(n,{after:c,before:m,...f.current()}));const d=p.charCodeAt(0),b=wu(u.before.charCodeAt(u.before.length-1),d,c);b.inside&&(p=Yr(d)+p.slice(1));const g=p.charCodeAt(p.length-1),x=wu(u.after.charCodeAt(0),g,c);x.inside&&(p=p.slice(0,-1)+Yr(g));const v=f.move(c);return s(),i.attentionEncodeSurroundingInfo={after:x.outside,before:b.outside},m+p+v}function Nk(n,a,i){return i.options.emphasis||"*"}function Rk(n,a){let i=!1;return $s(n,function(u){if("value"in u&&/\r?\n|\r/.test(u.value)||u.type==="break")return i=!0,Os}),!!((!n.depth||n.depth<3)&&Zs(n)&&(a.options.setext||i))}function jk(n,a,i,u){const c=Math.max(Math.min(6,n.depth||1),1),s=i.createTracker(u);if(Rk(n,i)){const b=i.enter("headingSetext"),g=i.enter("phrasing"),x=i.containerPhrasing(n,{...s.current(),before:`
|
|
|
|
|
`,after:`
|
|
|
|
|
`});return g(),b(),x+`
|
|
|
|
|
`+(c===1?"=":"-").repeat(x.length-(Math.max(x.lastIndexOf("\r"),x.lastIndexOf(`
|
|
|
|
|
`))+1))}const f="#".repeat(c),m=i.enter("headingAtx"),p=i.enter("phrasing");s.move(f+" ");let d=i.containerPhrasing(n,{before:"# ",after:`
|
|
|
|
|
`,...s.current()});return/^[\t ]/.test(d)&&(d=Yr(d.charCodeAt(0))+d.slice(1)),d=d?f+" "+d:f,i.options.closeAtx&&(d+=" "+f),p(),m(),d}iy.peek=Lk;function iy(n){return n.value||""}function Lk(){return"<"}ry.peek=Uk;function ry(n,a,i,u){const c=tf(i),s=c==='"'?"Quote":"Apostrophe",f=i.enter("image");let m=i.enter("label");const p=i.createTracker(u);let d=p.move("![");return d+=p.move(i.safe(n.alt,{before:d,after:"]",...p.current()})),d+=p.move("]("),m(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(m=i.enter("destinationLiteral"),d+=p.move("<"),d+=p.move(i.safe(n.url,{before:d,after:">",...p.current()})),d+=p.move(">")):(m=i.enter("destinationRaw"),d+=p.move(i.safe(n.url,{before:d,after:n.title?" ":")",...p.current()}))),m(),n.title&&(m=i.enter(`title${s}`),d+=p.move(" "+c),d+=p.move(i.safe(n.title,{before:d,after:c,...p.current()})),d+=p.move(c),m()),d+=p.move(")"),f(),d}function Uk(){return"!"}ay.peek=Bk;function ay(n,a,i,u){const c=n.referenceType,s=i.enter("imageReference");let f=i.enter("label");const m=i.createTracker(u);let p=m.move("![");const d=i.safe(n.alt,{before:p,after:"]",...m.current()});p+=m.move(d+"]["),f();const b=i.stack;i.stack=[],f=i.enter("reference");const g=i.safe(i.associationId(n),{before:p,after:"]",...m.current()});return f(),i.stack=b,s(),c==="full"||!d||d!==g?p+=m.move(g+"]"):c==="shortcut"?p=p.slice(0,-1):p+=m.move("]"),p}function Bk(){return"!"}uy.peek=Hk;function uy(n,a,i){let u=n.value||"",c="`",s=-1;for(;new RegExp("(^|[^`])"+c+"([^`]|$)").test(u);)c+="`";for(/[^ \r\n]/.test(u)&&(/^[ \r\n]/.test(u)&&/[ \r\n]$/.test(u)||/^`|`$/.test(u))&&(u=" "+u+" ");++s<i.unsafe.length;){const f=i.unsafe[s],m=i.compilePattern(f);let p;if(f.atBreak)for(;p=m.exec(u);){let d=p.index;u.charCodeAt(d)===10&&u.charCodeAt(d-1)===13&&d--,u=u.slice(0,d)+" "+u.slice(p.index+1)}}return c+u+c}function Hk(){return"`"}function oy(n,a){const i=Zs(n);return!!(!a.options.resourceLink&&n.url&&!n.title&&n.children&&n.children.length===1&&n.children[0].type==="text"&&(i===n.url||"mailto:"+i===n.url)&&/^[a-z][a-z+.-]+:/i.test(n.url)&&!/[\0- <>\u007F]/.test(n.url))}cy.peek=qk;function cy(n,a,i,u){const c=tf(i),s=c==='"'?"Quote":"Apostrophe",f=i.createTracker(u);let m,p;if(oy(n,i)){const b=i.stack;i.stack=[],m=i.enter("autolink");let g=f.move("<");return g+=f.move(i.containerPhrasing(n,{before:g,after:">",...f.current()})),g+=f.move(">"),m(),i.stack=b,g}m=i.enter("link"),p=i.enter("label");let d=f.move("[");return d+=f.move(i.containerPhrasing(n,{before:d,after:"](",...f.current()})),d+=f.move("]("),p(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(p=i.enter("destinationLiteral"),d+=f.move("<"),d+=f.move(i.safe(n.url,{before:d,after:">",...f.current()})),d+=f.move(">")):(p=i.enter("destinationRaw"),d+=f.move(i.safe(n.url,{before:d,after:n.title?" ":")",...f.current()}))),p(),n.title&&(p=i.enter(`title${s}`),d+=f.move(" "+c),d+=f.move(i.safe(n.title,{before:d,after:c,...f.current()})),d+=f.move(c),p()),d+=f.move(")"),m(),d}function qk(n,a,i){return oy(n,i)?"<":"["}sy.peek=Yk;function sy(n,a,i,u){const c=n.referenceType,s=i.enter("linkReference");let f=i.enter("label");const m=i.createTracker(u);let p=m.move("[");const d=i.containerPhrasing(n,{before:p,after:"]",...m.current()});p+=m.move(d+"]["),f();const b=i.stack;i.stack=[],f=i.enter("reference");const g=i.safe(i.associationId(n),{before:p,after:"]",...m.current()});return f(),i.stack=b,s(),c==="full"||!d||d!==g?p+=m.move(g+"]"):c==="shortcut"?p=p.slice(0,-1):p+=m.move("]"),p}function Yk(){return"["}function nf(n){const a=n.options.bullet||"*";if(a!=="*"&&a!=="+"&&a!=="-")throw new Error("Cannot serialize items with `"+a+"` for `options.bullet`, expected `*`, `+`, or `-`");return a}function Vk(n){const a=nf(n),i=n.options.bulletOther;if(!i)return a==="*"?"-":"*";if(i!=="*"&&i!=="+"&&i!=="-")throw new Error("Cannot serialize items with `"+i+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(i===a)throw new Error("Expected `bullet` (`"+a+"`) and `bulletOther` (`"+i+"`) to be different");return i}function Gk(n){const a=n.options.bulletOrdered||".";if(a!=="."&&a!==")")throw new Error("Cannot serialize items with `"+a+"` for `options.bulletOrdered`, expected `.` or `)`");return a}function fy(n){const a=n.options.rule||"*";if(a!=="*"&&a!=="-"&&a!=="_")throw new Error("Cannot serialize rules with `"+a+"` for `options.rule`, expected `*`, `-`, or `_`");return a}function Xk(n,a,i,u){const c=i.enter("list"),s=i.bulletCurrent;let f=n.ordered?Gk(i):nf(i);const m=n.ordered?f==="."?")":".":Vk(i);let p=a&&i.bulletLastUsed?f===i.bulletLastUsed:!1;if(!n.ordered){const b=n.children?n.children[0]:void 0;if((f==="*"||f==="-")&&b&&(!b.children||!b.children[0])&&i.stack[i.stack.length-1]==="list"&&i.stack[i.stack.length-2]==="listItem"&&i.stack[i.stack.length-3]==="list"&&i.stack[i.stack.length-4]==="listItem"&&i.indexStack[i.indexStack.length-1]===0&&i.indexStack[i.indexStack.length-2]===0&&i.indexStack[i.indexStack.length-3]===0&&(p=!0),fy(i)===f&&b){let g=-1;for(;++g<n.chilLine truncated
|
|
|
|
|
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:x,table:f,tableCell:p,tableRow:m}};function f(v,A,U,H){return d(b(v,U,H),v.align)}function m(v,A,U,H){const O=g(v,U,H),F=d([O]);return F.slice(0,F.indexOf(`
|
|
|
|
|
`))}function p(v,A,U,H){const O=U.enter("tableCell"),F=U.enter("phrasing"),q=U.containerPhrasing(v,{...H,before:s,after:s});return F(),O(),q}function d(v,A){return Sk(v,{align:A,alignDelimiters:u,padding:i,stringLength:c})}function b(v,A,U){const H=v.children;let O=-1;const F=[],q=A.enter("table");for(;++O<H.length;)F[O]=g(H[O],A,U);return q(),F}function g(v,A,U){const H=v.children;let O=-1;const F=[],q=A.enter("tableRow");for(;++O<H.length;)F[O]=p(H[O],v,A,U);return q(),F}function x(v,A,U){let H=dy.inlineCode(v,A,U);return U.stack.includes("tableCell")&&(H=H.replace(/\|/g,"\\$&")),H}}function oE(){return{exit:{taskListCheckValueChecked:lg,taskListCheckValueUnchecked:lg,paragraph:sE}}}function cE(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:fE}}}function lg(n){const a=this.stack[this.stack.length-2];a.type,a.checked=n.type==="taskListCheckValueChecked"}function sE(n){const a=this.stack[this.stack.length-2];if(a&&a.type==="listItem"&&typeof a.checked=="boolean"){const i=this.stack[this.stack.length-1];i.type;const u=i.children[0];if(u&&u.type==="text"){const c=a.children;let s=-1,f;for(;++s<c.length;){const m=c[s];if(m.type==="paragraph"){f=m;break}}f===i&&(u.value=u.value.slice(1),u.value.length===0?i.children.shift():i.position&&u.position&&typeof u.position.start.offset=="number"&&(u.position.start.column++,u.position.start.offset++,i.position.start=Object.assign({},u.position.start)))}}this.exit(n)}function fE(n,a,i,u){const c=n.children[0],s=typeof n.checked=="boolean"&&c&&c.type==="paragraph",f="["+(n.checked?"x":" ")+"] ",m=i.createTracker(u);s&&m.move(f);let p=dy.listItem(n,a,i,{...u,...m.current()});return s&&(p=p.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,d)),p;function d(b){return b+f}}function hE(){return[X2(),fk(),pk(),tE(),oE()]}function dE(n){return{extensions:[Q2(),hk(n),gk(),uE(n),cE()]}}const mE={tokenize:xE,partial:!0},my={tokenize:SE,partial:!0},py={tokenize:kE,partial:!0},gy={tokenize:EE,partial:!0},pE={tokenize:wE,partial:!0},yy={name:"wwwAutolink",tokenize:bE,previous:vy},by={name:"protocolAutolink",tokenize:vE,previous:xy},Hn={name:"emailAutolink",tokenize:yE,previous:Sy},gn={};function gE(){return{text:gn}}let Ml=48;for(;Ml<123;)gn[Ml]=Hn,Ml++,Ml===58?Ml=65:Ml===91&&(Ml=97);gn[43]=Hn;gn[45]=Hn;gn[46]=Hn;gn[95]=Hn;gn[72]=[Hn,by];gn[104]=[Hn,by];gn[87]=[Hn,yy];gn[119]=[Hn,yy];function yE(n,a,i){const u=this;let c,s;return f;function f(g){return!Rs(g)||!Sy.call(u,u.previous)||lf(u.events)?i(g):(n.enter("literalAutolink"),n.enter("literalAutolinkEmail"),m(g))}function m(g){return Rs(g)?(n.consume(g),m):g===64?(n.consume(g),p):i(g)}function p(g){return g===46?n.check(pE,b,d)(g):g===45||g===95||vt(g)?(s=!0,n.consume(g),p):b(g)}function d(g){return n.consume(g),c=!0,p}function b(g){return s&&c&&wt(u.previous)?(n.exit("literalAutolinkEmail"),n.exit("literalAutolink"),a(g)):i(g)}}function bE(n,a,i){const u=this;return c;function c(f){return f!==87&&f!==119||!vy.call(u,u.previous)||lf(u.events)?i(f):(n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(mE,n.attempt(my,n.attempt(py,s),i),i)(f))}function s(f){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),a(f)}}function vE(n,a,i){const u=this;let c="",s=!1;return f;function f(g){return(g===72||g===104)&&xy.call(u,u.previous)&&!lf(u.events)?(n.enter("literalAutolink"),n.enter("literalAutolinkHttp"),c+=String.fromCodePoint(g),n.consume(g),m):i(g)}function m(g){if(wt(g)&&c.length<5)return c+=String.fromCodePoint(g),n.consume(g),m;if(g===58){const x=c.toLowerCase();if(x==="http"||x==="https")return n.consume(g),p}return i(g)}function p(g){return g===47?(n.consume(g),s?d:(s=!0,p)):i(g)}function d(g){return g===null||Su(g)||Fe(g)||Ll(g)||_u(g)?i(g):n.attempt(my,n.attempt(py,b),i)(g)}function b(g){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),a(g)}}function xE(n,a,i){let u=0;return c;function c(f){return(f===87||f===119)&&u<3?(u++,n.consume(f),c):f===46&&u===3?(n.consume(f),s):i(f)}function s(f){return f===null?i(f):a(f)}}function SE(n,a,i){let u,c,s;return f;function f(d){return d===46||d===95?n.check(gy,p,m)(d):d===null||Fe(d)||Ll(d)||d!==45&&_u(d)?p(d):(s=!0,n.consume(d),f)}function m(d){return d===95?u=!0:(c=u,u=void 0),n.consume(d),f}function p(d){return c||u||!s?i(d):a(d)}}function kE(n,a){let i=0,u=0;return c;function c(f){return f===40?(i++,n.consume(f),c):f===41&&u<i?s(f):f===33||f===34||f===38||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===60||f===63||f===93||f===95||f===126?n.check(gy,a,s)(f):f===null||Fe(f)||Ll(f)?a(f):(n.consume(f),c)}function s(f){return f===41&&u++,n.consume(f),c}}function EE(n,a,i){return u;function u(m){return m===33||m===34||m===39||m===41||m===42||m===44||m===46||m===58||m===59||m===63||m===95||m===126?(n.consume(m),u):m===38?(n.consume(m),s):m===93?(n.consume(m),c):m===60||m===null||Fe(m)||Ll(m)?a(m):i(m)}function c(m){return m===null||m===40||m===91||Fe(m)||Ll(m)?a(m):u(m)}function s(m){return wt(m)?f(m):i(m)}function f(m){re
Line truncated
|
|
|
|
|
`)===-1?_.jsx("code",{className:"bg-primary/10 text-primary px-1.5 py-0.5 rounded text-sm font-mono",children:b}):_.jsx("code",{className:"block font-mono",children:b}),pre:({children:d})=>_.jsx("pre",{className:"bg-muted p-4 rounded-lg text-sm overflow-auto my-4 font-mono whitespace-pre",children:d}),table:({children:d})=>_.jsx("div",{className:"overflow-auto my-4",children:_.jsx("table",{className:"w-full border-collapse text-sm",children:d})}),thead:({children:d})=>_.jsx("thead",{className:"bg-muted/50",children:d}),tr:({children:d})=>_.jsx("tr",{className:"border-b",children:d}),th:({children:d})=>_.jsx("th",{className:"px-4 py-2 text-left font-medium",children:d}),td:({children:d})=>_.jsx("td",{className:"px-4 py-2 text-muted-foreground",children:d}),hr:()=>_.jsx("hr",{className:"my-6 border-border"}),strong:({children:d})=>_.jsx("strong",{className:"font-semibold text-foreground",children:d}),em:({children:d})=>_.jsx("em",{children:d})};return i?_.jsx("main",{className:"flex-1 p-8 max-w-3xl",children:s?_.jsx("div",{className:"text-muted-foreground",children:"Loading content..."}):u?_.jsx("article",{className:"prose max-w-none",children:_.jsx(R2,{remarkPlugins:[FE],components:p,children:u})}):_.jsx("div",{className:"bg-muted/50 border rounded-lg p-6",children:_.jsxs("p",{className:"text-muted-foreground",children:["Content for ",_.jsx("strong",{className:"text-primary",children:i.title})," would be displayed here."]})})}):_.jsxs("main",{className:"flex-1 p-8 max-w-3xl",children:[_.jsx("h1",{className:"text-4xl font-bold tracking-tight mb-4",children:n.site?.title||"Documentation"}),_.jsx("p",{className:"text-muted-foreground text-lg mb-8",children:n.site?.description||"Welcome to the documentation."}),_.jsx(OA,{className:"my-8"}),_.jsx("h2",{className:"text-2xl font-semibold mb-4 text-primary",children:"Theme Configuration"}),_.jsxs("div",{className:"bg-muted/50 border rounded-lg p-4 mb-6",children:[_.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:_.jsx("strong",{children:"Current theme from YAML:"})}),_.jsx("pre",{className:"text-primary text-sm",children:`site:
|
|
|
|
|
theme:
|
|
|
|
|
preset: "${A?.preset||"zinc"}"
|
|
|
|
|
radius: "${A?.radius||"md"}"
|
|
|
|
|
darkMode: ${A?.darkMode!==!1}`})]}),j.jsx("h3",{className:"text-lg font-medium mb-3",children:"Available Presets"}),j.jsx("div",{className:"flex flex-wrap gap-2 mb-6",children:Object.keys(Qo).map(h=>j.jsx("span",{className:`px-3 py-1 rounded-full text-sm ${h===(A?.preset||"zinc")?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground"}`,children:h},h))}),j.jsxs("p",{className:"text-muted-foreground mb-4",children:[j.jsx("strong",{children:"Click any item in the sidebar"})," to navigate."]}),j.jsx("h2",{className:"text-2xl font-semibold mt-8 mb-4",children:"Routes"}),j.jsxs("p",{className:"text-muted-foreground mb-4",children:[j.jsx("span",{className:"font-medium text-primary",children:s.routes?.length||0})," routes configured."]}),j.jsx("pre",{className:"bg-muted p-4 rounded-lg text-sm overflow-auto",children:JSON.stringify(s.routes?.slice(0,3),null,2)})]})}function Sg({selectedItem:i}){return j.jsx("aside",{className:"w-48 hidden lg:block",children:j.jsxs("div",{className:"sticky top-20 py-4",children:[j.jsx("h4",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider mb-3",children:"On this page"}),j.jsx("nav",{className:"space-y-1 text-sm",children:i?j.jsx("span",{className:"block text-primary font-medium",children:i.title}):j.jsxs(j.Fragment,{children:[j.jsx("a",{href:"#",className:"block text-muted-foreground hover:text-primary",children:"Theme Configuration"}),j.jsx("a",{href:"#",className:"block text-muted-foreground hover:text-primary",children:"Routes"})]})})]})})}function xg({config:i}){const s=i.components?.footer?.props;return j.jsx("footer",{className:"border-t py-6 px-6",children:j.jsxs("div",{className:"flex justify-between items-center text-sm text-muted-foreground",children:[j.jsx("span",{children:s?.text||"© 2024"}),j.jsx("nav",{className:"flex gap-4",children:s?.links?.map(f=>j.jsx("a",{href:f.href,className:"hover:text-primary",children:f.label},f.href))})]})})}function Eg(){const[i,s]=D.useState({}),[f,o]=D.useState({}),[d,v]=D.useState({}),[S,A]=D.useState(!0),[b,h]=D.useState(null),[C,O]=D.useState(null),[H,q]=D.useState("");D.useEffect(()=>{async function J(){try{const[ht,rt,nt]=await Promise.all([fetch("/ui-config.json"),fetch("/docs-nav.json"),fetch("/route-manifest.json")]);if(!ht.ok||!rt.ok||!nt.ok)throw new Error("Failed to load manifests");const vt=await ht.json(),ct=await rt.json();s(vt),o(ct),v(await nt.json());const $=vt.site?.theme;yg($?.preset||"zinc",$?.darkMode!==!1,$?.radius||"md");const G=window.location.pathname;if(G&&G!=="/"){const lt=Ct=>{for(const pt of Ct){if(pt.path===G||pt.path===G.replace(/^\//,""))return pt;if(pt.children){const jt=lt(pt.children);if(jt)return jt}}return null};if(ct.items){for(const Ct of ct.items)if(Ct.children){const pt=lt(Ct.children);if(pt){O(pt),q(pt.path||pt.title);break}}}}}catch(ht){h(ht instanceof Error?ht.message:"Unknown error")}finally{A(!1)}}J();const at=()=>{window.location.pathname==="/"&&(O(null),q(""))};return window.addEventListener("popstate",at),()=>window.removeEventListener("popstate",at)},[]);const Z=(J,at,ht)=>{document.title=`${J} | ${i.site?.title||"Documentation"}`;let rt=document.querySelector('link[rel="canonical"]');rt||(rt=document.createElement("link"),rt.rel="canonical",document.head.appendChild(rt)),rt.href=window.location.origin+at;let nt=document.querySelector('meta[name="description"]');nt||(nt=document.createElement("meta"),nt.name="description",document.head.appendChild(nt)),nt.content=`${J} - ${i.site?.description||""}`;let vt=document.querySelector('meta[property="og:title"]');vt||(vt=document.createElement("meta"),vt.setAttribute("property","og:title"),document.head.appendChild(vt)),vt.content=J;let ct=document.querySelector('meta[property="og:url"]');ct||(ct=document.createElement("meta"),ct.setAttribute("property","og:url"),document.head.appendChild(ct)),ct.content=window.location.origin+at},I=J=>{O(J),q(J.path||J.title);const at=J.path||`/${J.title.toLowerCase().replace(/\s+/g,"-")}`;window.history.pushState({path:at},J.title,at),Z(J.title,at)};return S?j.jsx("div",{className:"dark flex items-center justify-center min-h-screen bg-background",children:j.jsx("span",{className:"text-muted-foreground",children:"Loading..."})}):b?j.jsxs("div",{className:"dark flex flex-col items-center justify-center min-h-screen gap-4 bg-background",children:[j.jsx("h2",{className:"text-xl font-semibold text-destructive",children:"Failed to load"}),j.jsx("p",{className:"text-muted-foreground",children:b})]}):j.jsxs("div",{className:"min-h-screen bg-background text-foreground",children:[j.jsx(gg,{config:i}),j.jsxs("div",{className:"flex",children:[j.jsx(bg,{nav:f,activeItem:H,onItemClick:I}),j.jsx(pg,{config:i,routes:d,selectedItem:C}),j.jsx(Sg,{selectedItem:C})]}),j.jsx(xg,{config:i})]})}Uv.createRoot(document.getElementById("root")).render(j.jsx(D.StrictMode,{children:j.jsx(Eg,{})}));
|
|
|
|
|
preset: "${m?.preset||"zinc"}"
|
|
|
|
|
radius: "${m?.radius||"md"}"
|
|
|
|
|
darkMode: ${m?.darkMode!==!1}`})]}),_.jsx("h3",{className:"text-lg font-medium mb-3",children:"Available Presets"}),_.jsx("div",{className:"flex flex-wrap gap-2 mb-6",children:Object.keys(Us).map(d=>_.jsx("span",{className:`px-3 py-1 rounded-full text-sm ${d===(m?.preset||"zinc")?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground"}`,children:d},d))}),_.jsxs("p",{className:"text-muted-foreground mb-4",children:[_.jsx("strong",{children:"Click any item in the sidebar"})," to navigate."]}),_.jsx("h2",{className:"text-2xl font-semibold mt-8 mb-4",children:"Routes"}),_.jsxs("p",{className:"text-muted-foreground mb-4",children:[_.jsx("span",{className:"font-medium text-primary",children:a.routes?.length||0})," routes configured."]}),_.jsx("pre",{className:"bg-muted p-4 rounded-lg text-sm overflow-auto",children:JSON.stringify(a.routes?.slice(0,3),null,2)})]})}function NA({selectedItem:n}){return _.jsx("aside",{className:"w-56 hidden lg:block border-l border-border/50",children:_.jsxs("div",{className:"sticky top-20 px-4 py-6",children:[_.jsx("h4",{className:"text-xs font-semibold text-muted-foreground/70 uppercase tracking-widest mb-4",children:"On this page"}),_.jsx("nav",{className:"space-y-2 text-sm",children:n?_.jsxs("div",{className:"space-y-2",children:[_.jsxs("a",{href:"#",className:"flex items-center gap-2 text-primary font-medium",children:[_.jsx("span",{className:"w-1 h-1 rounded-full bg-primary"}),n.title]}),_.jsx("a",{href:"#overview",className:"flex items-center gap-2 text-muted-foreground hover:text-foreground transition-colors pl-3",children:"Overview"}),_.jsx("a",{href:"#usage",className:"flex items-center gap-2 text-muted-foreground hover:text-foreground transition-colors pl-3",children:"Usage"})]}):_.jsxs("div",{className:"space-y-2",children:[_.jsxs("a",{href:"#theme",className:"flex items-center gap-2 text-muted-foreground hover:text-foreground transition-colors",children:[_.jsx("span",{className:"w-1 h-1 rounded-full bg-muted-foreground/30"}),"Theme Configuration"]}),_.jsxs("a",{href:"#presets",className:"flex items-center gap-2 text-muted-foreground hover:text-foreground transition-colors",children:[_.jsx("span",{className:"w-1 h-1 rounded-full bg-muted-foreground/30"}),"Available Presets"]}),_.jsxs("a",{href:"#routes",className:"flex items-center gap-2 text-muted-foreground hover:text-foreground transition-colors",children:[_.jsx("span",{className:"w-1 h-1 rounded-full bg-muted-foreground/30"}),"Routes"]})]})})]})})}function RA({config:n}){const a=n.components?.footer?.props;return _.jsx("footer",{className:"border-t border-border/50 py-8 px-6 bg-muted/20",children:_.jsxs("div",{className:"max-w-screen-2xl mx-auto flex flex-col sm:flex-row justify-between items-center gap-4 text-sm text-muted-foreground",children:[_.jsxs("div",{className:"flex items-center gap-2",children:[_.jsx("div",{className:"w-5 h-5 rounded bg-gradient-to-br from-primary/60 to-primary flex items-center justify-center",children:_.jsx("span",{className:"text-primary-foreground text-[8px] font-bold",children:"AI"})}),_.jsx("span",{children:a?.text||"© 2024 PraisonAIUI"})]}),_.jsx("nav",{className:"flex items-center gap-6",children:a?.links?.map(i=>_.jsx("a",{href:i.href,className:"hover:text-foreground transition-colors",children:i.label},i.href))})]})})}function jA(){const[n,a]=Q.useState({}),[i,u]=Q.useState({}),[c,s]=Q.useState({}),[f,m]=Q.useState(!0),[p,d]=Q.useState(null),[b,g]=Q.useState(null),[x,v]=Q.useState("");Q.useEffect(()=>{async function F(){try{const[re,ae,j]=await Promise.all([fetch("/ui-config.json"),fetch("/docs-nav.json"),fetch("/route-manifest.json")]);if(!re.ok||!ae.ok||!j.ok)throw new Error("Failed to load manifests");const P=await re.json(),J=await ae.json();a(P),u(J),s(await j.json());const ie=P.site?.theme;DA(ie?.preset||"zinc",ie?.darkMode!==!1,ie?.radius||"md");const M=window.location.pathname;if(M&&M!=="/"){const te=ne=>{for(const ye of ne){if(ye.path===M||ye.path===M.replace(/^\//,""))return ye;if(ye.children){const ue=te(ye.children);if(ue)return ue}}return null};if(J.items){for(const ne of J.items)if(ne.children){const ye=te(ne.children);if(ye){g(ye),v(ye.path||ye.title);break}}}}}catch(re){d(re instanceof Error?re.message:"Unknown error")}finally{m(!1)}}F();const q=()=>{window.location.pathname==="/"&&(g(null),v(""))};return window.addEventListener("popstate",q),()=>window.removeEventListener("popstate",q)},[]);const A=(F,q,re)=>{document.title=`${F} | ${n.site?.title||"Documentation"}`;let ae=document.querySelector('link[rel="canonical"]');ae||(ae=document.createElement("link"),ae.rel="canonical",document.head.appendChild(ae)),ae.href=window.location.origin+q;let j=document.querySelector('meta[name="description"]');j||(j=document.createElement("meta"),j.name="description",document.head.appendChild(j)),j.content=`${F} - ${n.site?.description||""}`;let P=document.querySelector('meta[property="og:title"]');P||(P=document.createElement("meta"),P.setAttribute("property"
Line truncated
|