@yurtsever/capsa 0.1.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +95 -0
- package/dist/index.js +40113 -0
- package/dist/ui/404.html +1 -0
- package/dist/ui/__next.__PAGE__.txt +6 -0
- package/dist/ui/__next._full.txt +16 -0
- package/dist/ui/__next._head.txt +6 -0
- package/dist/ui/__next._index.txt +6 -0
- package/dist/ui/__next._tree.txt +2 -0
- package/dist/ui/_next/static/K6Bslqz583LlweZHb60dJ/_buildManifest.js +11 -0
- package/dist/ui/_next/static/K6Bslqz583LlweZHb60dJ/_clientMiddlewareManifest.js +1 -0
- package/dist/ui/_next/static/K6Bslqz583LlweZHb60dJ/_ssgManifest.js +1 -0
- package/dist/ui/_next/static/chunks/03~yq9q893hmn.js +1 -0
- package/dist/ui/_next/static/chunks/04q3okw~r7w72.js +1 -0
- package/dist/ui/_next/static/chunks/04qeus~kw06ki.js +1 -0
- package/dist/ui/_next/static/chunks/0n_vjzua_x26v.css +2 -0
- package/dist/ui/_next/static/chunks/0nh42gwsv4oi6.js +1 -0
- package/dist/ui/_next/static/chunks/14o5ksci_1zd4.js +1 -0
- package/dist/ui/_next/static/chunks/15z35d-fzompq.js +5 -0
- package/dist/ui/_next/static/chunks/16o9b8utojqmg.js +31 -0
- package/dist/ui/_next/static/chunks/turbopack-06.nec4079olb.js +1 -0
- package/dist/ui/_next/static/media/favicon.0x3dzn~oxb6tn.ico +0 -0
- package/dist/ui/_not-found/__next._full.txt +17 -0
- package/dist/ui/_not-found/__next._head.txt +6 -0
- package/dist/ui/_not-found/__next._index.txt +6 -0
- package/dist/ui/_not-found/__next._not-found.__PAGE__.txt +5 -0
- package/dist/ui/_not-found/__next._not-found.txt +5 -0
- package/dist/ui/_not-found/__next._tree.txt +2 -0
- package/dist/ui/_not-found.html +1 -0
- package/dist/ui/_not-found.txt +17 -0
- package/dist/ui/favicon.ico +0 -0
- package/dist/ui/index.html +1 -0
- package/dist/ui/index.txt +16 -0
- package/package.json +60 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,95514,(e,t,n)=>{"use strict";var r=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,o=/\n/g,i=/^\s*/,l=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,c=/^\s+|\s+$/g;function d(e){return e?e.replace(c,""):""}t.exports=function(e,t){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,c=1;function f(e){var t=e.match(o);t&&(n+=t.length);var r=e.lastIndexOf("\n");c=~r?e.length-r:c+e.length}function p(){var e={line:n,column:c};return function(t){return t.position=new h(e),g(i),t}}function h(e){this.start=e,this.end={line:n,column:c},this.source=t.source}function m(r){var o=Error(t.source+":"+n+":"+c+": "+r);if(o.reason=r,o.filename=t.source,o.line=n,o.column=c,o.source=e,t.silent);else throw o}function g(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function y(e){var t;for(e=e||[];t=b();)!1!==t&&e.push(t);return e}function b(){var t=p();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return c+=2,f(r),e=e.slice(n),c+=2,t({type:"comment",comment:r})}}h.prototype.content=e,g(i);var x,k=[];for(y(k);x=function(){var e=p(),t=g(l);if(t){if(b(),!g(a))return m("property missing ':'");var n=g(s),o=e({type:"declaration",property:d(t[0].replace(r,"")),value:n?d(n[0].replace(r,"")):""});return g(u),o}}();)!1!==x&&(k.push(x),y(k));return k}},51413,(e,t,n)=>{"use strict";var r=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;let r=(0,o.default)(e),i="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;let{property:r,value:o}=e;i?t(r,o,e):o&&((n=n||{})[r]=o)}),n};let o=r(e.r(95514))},72249,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.camelCase=void 0;var r=/^--[a-zA-Z0-9_-]+$/,o=/-([a-z])/g,i=/^[^-]+$/,l=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},u=function(e,t){return"".concat(t,"-")};n.camelCase=function(e,t){var n;return(void 0===t&&(t={}),!(n=e)||i.test(n)||r.test(n))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,u):e.replace(l,u)).replace(o,s))}},39842,(e,t,n)=>{"use strict";var r=(e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(e.r(51413)),o=e.r(72249);function i(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,o.camelCase)(e,t)]=r)}),n}i.default=i,t.exports=i},86182,(e,t,n)=>{"use strict";var r=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=Object.defineProperty,l=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===o.call(e)},s=function(e){if(!e||"[object Object]"!==o.call(e))return!1;var t,n=r.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!i)return!1;for(t in e);return void 0===t||r.call(e,t)},u=function(e,t){i&&"__proto__"===t.name?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!r.call(e,t))return;else if(l)return l(e,t).value}return e[t]};t.exports=function e(){var t,n,r,o,i,l,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(t=arguments[f],null!=t)for(n in t)r=c(d,n),d!==(o=c(t,n))&&(h&&o&&(s(o)||(i=a(o)))?(i?(i=!1,l=r&&a(r)?r:[]):l=r&&s(r)?r:{},u(d,{name:n,newValue:e(h,l,o)})):void 0!==o&&u(d,{name:n,newValue:o}));return d}},19778,e=>{"use strict";let t,n;var r=e.i(87619),o=e.i(107);function i(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function l(e){return"u">typeof window&&(e instanceof HTMLElement||e instanceof i(e).HTMLElement)}e.i(3971);let a={...o},s={};function u(e,t){let n=o.useRef(s);return n.current===s&&(n.current=e(t)),n}let c=a.useInsertionEffect,d=c&&c!==a.useLayoutEffect?c:e=>e();function f(){let e={next:void 0,callback:p,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function p(){}let h="u">typeof document?o.useLayoutEffect:()=>{};function m(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}let g={};function y(e,t,n,r,o){if(!n&&!r&&!o&&!e)return b(t);let i=b(e);return t&&(i=x(i,t)),n&&(i=x(i,n)),r&&(i=x(i,r)),o&&(i=x(i,o)),i}function b(e){return v(e)?{...w(e,g)}:function(e){let t={...e};for(let e in t){let n=t[e];k(e,n)&&(t[e]=S(n))}return t}(e)}function x(e,t){return v(t)?w(t,e):function(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case"style":e[n]=m(e.style,r);break;case"className":e[n]=E(e.className,r);break;default:k(n,r)?e[n]=function(e,t){return t?e?(...n)=>{let r=n[0];if(z(r)){C(r);let o=t(...n);return r.baseUIHandlerPrevented||e?.(...n),o}let o=t(...n);return e?.(...n),o}:S(t):e}(e[n],r):e[n]=r}}return e}(e,t)}function k(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),o=e.charCodeAt(2);return 111===n&&110===r&&o>=65&&o<=90&&("function"==typeof t||void 0===t)}function v(e){return"function"==typeof e}function w(e,t){return v(e)?e(t):e??g}function S(e){return e?(...t)=>{let n=t[0];return z(n)&&C(n),e(...t)}:e}function C(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function E(e,t){return t?e?t+" "+e:t:e}function z(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}let T=function(e,...t){let n=new URL("https://base-ui.com/production-error");return n.searchParams.set("code",e.toString()),t.forEach(e=>n.searchParams.append("args[]",e)),`Base UI error #${e}; visit ${n} for the full message.`},A=o.createContext(void 0);function j(e,t,{detail:n=0}={}){e.dispatchEvent(new(i(e)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:n,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function D(e){return l(e)&&"BUTTON"===e.tagName}function P(e,t,n,r){var o,i,l,a,s;let c=u(L).current;return o=c,i=e,l=t,a=n,s=r,(o.refs[0]!==i||o.refs[1]!==l||o.refs[2]!==a||o.refs[3]!==s)&&I(c,[e,t,n,r]),c.callback}function L(){return{callback:null,cleanup:null,refs:[]}}function I(e,t){if(e.refs=t,t.every(e=>null==e)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=n){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let o=t[e];if(null!=o)switch(typeof o){case"function":{let t=o(n);"function"==typeof t&&(r[e]=t);break}case"object":o.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(null!=n)switch(typeof n){case"function":{let t=r[e];"function"==typeof t?t():n(null);break}case"object":n.current=null}}}}}}let O=parseInt(o.version,10);function M(e){if(!o.isValidElement(e))return null;let t=e.props;return(O>=19?t?.ref:e.ref)??null}Object.freeze([]);let N=Object.freeze({}),F=Symbol.for("react.lazy"),R=o.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,focusableWhenDisabled:a=!1,nativeButton:s=!0,style:c,...p}=e,{getButtonProps:k,buttonRef:v}=function(e={}){var t;let n,{disabled:r=!1,focusableWhenDisabled:i,tabIndex:a=0,native:s=!0,composite:c}=e,p=o.useRef(null),m=function(e=!1){let t=o.useContext(A);if(void 0===t&&!e)throw Error(T(16));return t}(!0),g=c??void 0!==m,{props:b}=function(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:l}=e,a=r&&!1!==t,s=r&&!1===t;return{props:o.useMemo(()=>{let e={onKeyDown(e){n&&t&&"Tab"!==e.key&&e.preventDefault()}};return r||(e.tabIndex=i,!l&&n&&(e.tabIndex=t?i:-1)),(l&&(t||a)||!l&&n)&&(e["aria-disabled"]=n),l&&(!t||s)&&(e.disabled=n),e},[r,n,t,a,s,l,i])}}({focusableWhenDisabled:i,disabled:r,composite:g,tabIndex:a,isNativeButton:s}),x=o.useCallback(()=>{let e=p.current;D(e)&&g&&r&&void 0===b.disabled&&e.disabled&&(e.disabled=!1)},[r,b.disabled,g]);return h(x,[x]),{getButtonProps:o.useCallback((e={})=>{let{onClick:t,onMouseDown:n,onKeyUp:o,onKeyDown:i,onPointerDown:a,...u}=e;return y({onClick(e){r?e.preventDefault():t?.(e)},onMouseDown(e){r||n?.(e)},onKeyDown(e){var t;if(r||(C(e),i?.(e),e.baseUIHandlerPrevented))return;let n=e.target===e.currentTarget,o=e.currentTarget,a=D(o),u=!s&&l(t=o)&&"A"===t.tagName&&!!t.href,c=n&&(s?a:!u),d="Enter"===e.key,f=" "===e.key,p=o.getAttribute("role"),h=p?.startsWith("menuitem")||"option"===p||"gridcell"===p;if(n&&g&&f){if(e.defaultPrevented&&h)return;e.preventDefault(),(!s||a)&&(e.preventBaseUIHandler(),j(o,e));return}if(!c||s||!f&&!d){n&&u&&f&&e.preventDefault();return}!e.defaultPrevented&&(e.preventDefault(),d&&(e.preventBaseUIHandler(),j(o,e)))},onKeyUp(e){r||((C(e),o?.(e),e.target===e.currentTarget&&s&&g&&D(e.currentTarget)&&" "===e.key)?e.preventDefault():!e.baseUIHandlerPrevented&&(e.target!==e.currentTarget||s||g||e.defaultPrevented||" "!==e.key||(e.preventBaseUIHandler(),j(e.currentTarget,e))))},onPointerDown(e){r?e.preventDefault():a?.(e)}},s?{type:"button"}:{role:"button"},b,u)},[r,b,g,s]),buttonRef:(t=e=>{p.current=e,x()},(n=u(f).current).next=t,d(n.effect),n.trampoline)}}({disabled:i,focusableWhenDisabled:a,native:s});return function(e,t,n={}){let r=t.render;!1!==n.enabled&&(r=function(e){if(e?.$$typeof!==F)return e;let t=o.Children.toArray(e)[0];return o.isValidElement(t)?t:e}(r));let i=function(e,t,n){var r,o,i;let{className:l,style:a}=e,{state:s=N,ref:c,props:d,stateAttributesMapping:f,enabled:p=!0}=t,h=p?"function"==typeof l?l(s):l:void 0,k=p?"function"==typeof a?a(s):a:void 0,v=p?function(e,t){let n={};for(let r in e){let o=e[r];if(t?.hasOwnProperty(r)){let e=t[r](o);null!=e&&Object.assign(n,e);continue}!0===o?n[`data-${r.toLowerCase()}`]="":o&&(n[`data-${r.toLowerCase()}`]=o.toString())}return n}(s,f):N,w=p&&d?function(e){if(Array.isArray(e)){if(0===e.length)return g;if(1===e.length)return b(e[0]);let t=b(e[0]);for(let n=1;n<e.length;n+=1)t=x(t,e[n]);return t}return y(void 0,e)}(d):void 0,S=p?m(v,w)??{}:N;if("u">typeof document)if(p)if(Array.isArray(c)){let e;r=[S.ref,M(n),...c],o=e=u(L).current,i=r,(o.refs.length!==i.length||o.refs.some((e,t)=>e!==i[t]))&&I(e,r),S.ref=e.callback}else S.ref=P(S.ref,M(n),c);else P(null,null);return p?(void 0!==h&&(S.className=E(S.className,h)),void 0!==k&&(S.style=m(S.style,k)),S):N}(t,n,r);return!1===n.enabled?null:function(e,t,n,r){if(t){if("function"==typeof t)return t(n,r);let e=y(n,t.props);return e.ref=n.ref,o.cloneElement(t,e)}if(e&&"string"==typeof e){var i,l;return i=e,l=n,"button"===i?(0,o.createElement)("button",{type:"button",...l,key:l.key}):"img"===i?(0,o.createElement)("img",{alt:"",...l,key:l.key}):o.createElement(i,l)}throw Error(T(8))}(e,r,i,n.state??N)}("button",e,{state:{disabled:i},ref:[t,v],props:[p,k]})});function _(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=function e(t){var n,r,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(n=0;n<i;n++)t[n]&&(r=e(t[n]))&&(o&&(o+=" "),o+=r)}else for(r in t)t[r]&&(o&&(o+=" "),o+=r);return o}(e))&&(r&&(r+=" "),r+=t);return r}let B=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,U=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),H=[],V=(e,t,n)=>{if(0==e.length-t)return n.classGroupId;let r=e[t],o=n.nextPart.get(r);if(o){let n=V(e,t+1,o);if(n)return n}let i=n.validators;if(null===i)return;let l=0===t?e.join("-"):e.slice(t).join("-"),a=i.length;for(let e=0;e<a;e++){let t=i[e];if(t.validator(l))return t.classGroupId}},q=(e,t)=>{let n=U();for(let r in e)$(e[r],n,r,t);return n},$=(e,t,n,r)=>{let o=e.length;for(let i=0;i<o;i++)W(e[i],t,n,r)},W=(e,t,n,r)=>{"string"==typeof e?K(e,t,n):"function"==typeof e?G(e,t,n,r):Q(e,t,n,r)},K=(e,t,n)=>{(""===e?t:J(t,e)).classGroupId=n},G=(e,t,n,r)=>{X(e)?$(e(r),t,n,r):(null===t.validators&&(t.validators=[]),t.validators.push({classGroupId:n,validator:e}))},Q=(e,t,n,r)=>{let o=Object.entries(e),i=o.length;for(let e=0;e<i;e++){let[i,l]=o[e];$(l,J(t,i),n,r)}},J=(e,t)=>{let n=e,r=t.split("-"),o=r.length;for(let e=0;e<o;e++){let t=r[e],o=n.nextPart.get(t);o||(o=U(),n.nextPart.set(t,o)),n=o}return n},X=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,Z=[],Y=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),ee=/\s+/,et=e=>{let t;if("string"==typeof e)return e;let n="";for(let r=0;r<e.length;r++)e[r]&&(t=et(e[r]))&&(n&&(n+=" "),n+=t);return n},en=[],er=e=>{let t=t=>t[e]||en;return t.isThemeGetter=!0,t.themeKey=e,t},eo=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ei=/^\((?:(\w[\w-]*):)?(.+)\)$/i,el=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ea=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,es=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,eu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,ec=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ed=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ef=e=>el.test(e),ep=e=>!!e&&!Number.isNaN(Number(e)),eh=e=>!!e&&Number.isInteger(Number(e)),em=e=>e.endsWith("%")&&ep(e.slice(0,-1)),eg=e=>ea.test(e),ey=()=>!0,eb=e=>es.test(e)&&!eu.test(e),ex=()=>!1,ek=e=>ec.test(e),ev=e=>ed.test(e),ew=e=>!eE(e)&&!eI(e),eS=e=>e.startsWith("@container")&&("/"===e[10]&&void 0!==e[11]||"s"===e[11]&&void 0!==e[16]&&e.startsWith("-size/",10)||"n"===e[11]&&void 0!==e[18]&&e.startsWith("-normal/",10)),eC=e=>eU(e,e$,ex),eE=e=>eo.test(e),ez=e=>eU(e,eW,eb),eT=e=>eU(e,eK,ep),eA=e=>eU(e,eQ,ey),ej=e=>eU(e,eG,ex),eD=e=>eU(e,eV,ex),eP=e=>eU(e,eq,ev),eL=e=>eU(e,eJ,ek),eI=e=>ei.test(e),eO=e=>eH(e,eW),eM=e=>eH(e,eG),eN=e=>eH(e,eV),eF=e=>eH(e,e$),eR=e=>eH(e,eq),e_=e=>eH(e,eJ,!0),eB=e=>eH(e,eQ,!0),eU=(e,t,n)=>{let r=eo.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},eH=(e,t,n=!1)=>{let r=ei.exec(e);return!!r&&(r[1]?t(r[1]):n)},eV=e=>"position"===e||"percentage"===e,eq=e=>"image"===e||"url"===e,e$=e=>"length"===e||"size"===e||"bg-size"===e,eW=e=>"length"===e,eK=e=>"number"===e,eG=e=>"family-name"===e,eQ=e=>"number"===e||"weight"===e,eJ=e=>"shadow"===e,eX=((e,...t)=>{let n,r,o,i,l=e=>{let t=r(e);if(t)return t;let i=((e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i,postfixLookupClassGroupIds:l}=t,a=[],s=e.trim().split(ee),u="";for(let e=s.length-1;e>=0;e-=1){let t,c=s[e],{isExternal:d,modifiers:f,hasImportantModifier:p,baseClassName:h,maybePostfixModifierPosition:m}=n(c);if(d){u=c+(u.length>0?" "+u:u);continue}let g=!!m;if(g){let e=(t=r(h.substring(0,m)))&&l[t]?r(h):void 0;e&&e!==t&&(t=e,g=!1)}else t=r(h);if(!t){if(!g||!(t=r(h))){u=c+(u.length>0?" "+u:u);continue}g=!1}let y=0===f.length?"":1===f.length?f[0]:i(f).join(":"),b=p?y+"!":y,x=b+t;if(a.indexOf(x)>-1)continue;a.push(x);let k=o(t,g);for(let e=0;e<k.length;++e){let t=k[e];a.push(b+t)}u=c+(u.length>0?" "+u:u)}return u})(e,n);return o(e,i),i};return i=a=>{var s;let u;return r=(n={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),o=(o,i)=>{n[o]=i,++t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];return void 0!==t?t:void 0!==(t=r[e])?(o(e,t),t):void 0},set(e,t){e in n?n[e]=t:o(e,t)}}})((s=t.reduce((e,t)=>t(e),e())).cacheSize),parseClassName:(e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t,n=[],r=0,o=0,i=0,l=e.length;for(let a=0;a<l;a++){let l=e[a];if(0===r&&0===o){if(":"===l){n.push(e.slice(i,a)),i=a+1;continue}if("/"===l){t=a;continue}}"["===l?r++:"]"===l?r--:"("===l?o++:")"===l&&o--}let a=0===n.length?e:e.slice(i),s=a,u=!1;return a.endsWith("!")?(s=a.slice(0,-1),u=!0):a.startsWith("!")&&(s=a.slice(1),u=!0),Y(n,u,s,t&&t>i?t-i:void 0)};if(t){let e=t+":",n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Y(Z,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r})(s),sortModifiers:(u=new Map,s.orderSensitiveModifiers.forEach((e,t)=>{u.set(e,1e6+t)}),e=>{let t=[],n=[];for(let r=0;r<e.length;r++){let o=e[r],i="["===o[0],l=u.has(o);i||l?(n.length>0&&(n.sort(),t.push(...n),n=[]),t.push(o)):n.push(o)}return n.length>0&&(n.sort(),t.push(...n)),t}),postfixLookupClassGroupIds:(e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t})(s),...(e=>{let t=(e=>{let{theme:t,classGroups:n}=e;return q(n,t)})(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]")){var n;let t,r,o;return -1===(n=e).slice(1,-1).indexOf(":")?void 0:(r=(t=n.slice(1,-1)).indexOf(":"),(o=t.slice(0,r))?"arbitrary.."+o:void 0)}let r=e.split("-"),o=+(""===r[0]&&r.length>1);return V(r,o,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],o=n[e];if(t){if(o){let e=Array(o.length+t.length);for(let t=0;t<o.length;t++)e[t]=o[t];for(let n=0;n<t.length;n++)e[o.length+n]=t[n];return e}return t}return o||H}return n[e]||H}}})(s)}).cache.get,o=n.cache.set,i=l,l(a)},(...e)=>i(((...e)=>{let t,n,r=0,o="";for(;r<e.length;)(t=e[r++])&&(n=et(t))&&(o&&(o+=" "),o+=n);return o})(...e))})(()=>{let e=er("color"),t=er("font"),n=er("text"),r=er("font-weight"),o=er("tracking"),i=er("leading"),l=er("breakpoint"),a=er("container"),s=er("spacing"),u=er("radius"),c=er("shadow"),d=er("inset-shadow"),f=er("text-shadow"),p=er("drop-shadow"),h=er("blur"),m=er("perspective"),g=er("aspect"),y=er("ease"),b=er("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],v=()=>[...k(),eI,eE],w=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto","contain","none"],C=()=>[eI,eE,s],E=()=>[ef,"full","auto",...C()],z=()=>[eh,"none","subgrid",eI,eE],T=()=>["auto",{span:["full",eh,eI,eE]},eh,eI,eE],A=()=>[eh,"auto",eI,eE],j=()=>["auto","min","max","fr",eI,eE],D=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],P=()=>["start","end","center","stretch","center-safe","end-safe"],L=()=>["auto",...C()],I=()=>[ef,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],O=()=>[a,ef,"screen","full","dvw","lvw","svw","min","max","fit",...C()],M=()=>[ef,"screen","full","lh","dvh","lvh","svh","min","max","fit",...C()],N=()=>[e,eI,eE],F=()=>[...k(),eN,eD,{position:[eI,eE]}],R=()=>["no-repeat",{repeat:["","x","y","space","round"]}],_=()=>["auto","cover","contain",eF,eC,{size:[eI,eE]}],B=()=>[em,eO,ez],U=()=>["","none","full",u,eI,eE],H=()=>["",ep,eO,ez],V=()=>["solid","dashed","dotted","double"],q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],$=()=>[ep,em,eN,eD],W=()=>["","none",h,eI,eE],K=()=>["none",ep,eI,eE],G=()=>["none",ep,eI,eE],Q=()=>[ep,eI,eE],J=()=>[ef,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[eg],breakpoint:[eg],color:[ey],container:[eg],"drop-shadow":[eg],ease:["in","out","in-out"],font:[ew],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[eg],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[eg],shadow:[eg],spacing:["px",ep],text:[eg],"text-shadow":[eg],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ef,eE,eI,g]}],container:["container"],"container-type":[{"@container":["","normal","size",eI,eE]}],"container-named":[eS],columns:[{columns:[ep,"auto",eE,eI,a]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:v()}],overflow:[{overflow:w()}],"overflow-x":[{"overflow-x":w()}],"overflow-y":[{"overflow-y":w()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:E()}],"inset-x":[{"inset-x":E()}],"inset-y":[{"inset-y":E()}],start:[{"inset-s":E(),start:E()}],end:[{"inset-e":E(),end:E()}],"inset-bs":[{"inset-bs":E()}],"inset-be":[{"inset-be":E()}],top:[{top:E()}],right:[{right:E()}],bottom:[{bottom:E()}],left:[{left:E()}],visibility:["visible","invisible","collapse"],z:[{z:[eh,"auto",eI,eE]}],basis:[{basis:[ef,"full","auto",a,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ep,ef,"auto","initial","none",eE]}],grow:[{grow:["",ep,eI,eE]}],shrink:[{shrink:["",ep,eI,eE]}],order:[{order:[eh,"first","last","none",eI,eE]}],"grid-cols":[{"grid-cols":z()}],"col-start-end":[{col:T()}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":z()}],"row-start-end":[{row:T()}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":j()}],"auto-rows":[{"auto-rows":j()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...D(),"normal"]}],"justify-items":[{"justify-items":[...P(),"normal"]}],"justify-self":[{"justify-self":["auto",...P()]}],"align-content":[{content:["normal",...D()]}],"align-items":[{items:[...P(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...P(),{baseline:["","last"]}]}],"place-content":[{"place-content":D()}],"place-items":[{"place-items":[...P(),"baseline"]}],"place-self":[{"place-self":["auto",...P()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pbs:[{pbs:C()}],pbe:[{pbe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:L()}],mx:[{mx:L()}],my:[{my:L()}],ms:[{ms:L()}],me:[{me:L()}],mbs:[{mbs:L()}],mbe:[{mbe:L()}],mt:[{mt:L()}],mr:[{mr:L()}],mb:[{mb:L()}],ml:[{ml:L()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:I()}],"inline-size":[{inline:["auto",...O()]}],"min-inline-size":[{"min-inline":["auto",...O()]}],"max-inline-size":[{"max-inline":["none",...O()]}],"block-size":[{block:["auto",...M()]}],"min-block-size":[{"min-block":["auto",...M()]}],"max-block-size":[{"max-block":["none",...M()]}],w:[{w:[a,"screen",...I()]}],"min-w":[{"min-w":[a,"screen","none",...I()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[l]},...I()]}],h:[{h:["screen","lh",...I()]}],"min-h":[{"min-h":["screen","lh","none",...I()]}],"max-h":[{"max-h":["screen","lh","none",...I()]}],"font-size":[{text:["base",n,eO,ez]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,eB,eA]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",em,eE]}],"font-family":[{font:[eM,ej,t]}],"font-features":[{"font-features":[eE]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,eI,eE]}],"line-clamp":[{"line-clamp":[ep,"none",eI,eT]}],leading:[{leading:["none",i,...C()]}],"list-image":[{"list-image":["none",eI,eE]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",eI,eE]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:[ep,"from-font","auto",eI,ez]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[ep,"auto",eI,eE]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"tab-size":[{tab:[eh,eI,eE]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",eI,eE]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",eI,eE]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:F()}],"bg-repeat":[{bg:R()}],"bg-size":[{bg:_()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},eh,eI,eE],radial:["",eI,eE],conic:["",eh,eI,eE]},eR,eP]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:B()}],"gradient-via-pos":[{via:B()}],"gradient-to-pos":[{to:B()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:U()}],"rounded-s":[{"rounded-s":U()}],"rounded-e":[{"rounded-e":U()}],"rounded-t":[{"rounded-t":U()}],"rounded-r":[{"rounded-r":U()}],"rounded-b":[{"rounded-b":U()}],"rounded-l":[{"rounded-l":U()}],"rounded-ss":[{"rounded-ss":U()}],"rounded-se":[{"rounded-se":U()}],"rounded-ee":[{"rounded-ee":U()}],"rounded-es":[{"rounded-es":U()}],"rounded-tl":[{"rounded-tl":U()}],"rounded-tr":[{"rounded-tr":U()}],"rounded-br":[{"rounded-br":U()}],"rounded-bl":[{"rounded-bl":U()}],"border-w":[{border:H()}],"border-w-x":[{"border-x":H()}],"border-w-y":[{"border-y":H()}],"border-w-s":[{"border-s":H()}],"border-w-e":[{"border-e":H()}],"border-w-bs":[{"border-bs":H()}],"border-w-be":[{"border-be":H()}],"border-w-t":[{"border-t":H()}],"border-w-r":[{"border-r":H()}],"border-w-b":[{"border-b":H()}],"border-w-l":[{"border-l":H()}],"divide-x":[{"divide-x":H()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":H()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...V(),"hidden","none"]}],"divide-style":[{divide:[...V(),"hidden","none"]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-bs":[{"border-bs":N()}],"border-color-be":[{"border-be":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:[...V(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ep,eI,eE]}],"outline-w":[{outline:["",ep,eO,ez]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","inner","none",c,e_,eL]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",d,e_,eL]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[ep,ez]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":H()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",f,e_,eL]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[ep,eI,eE]}],"mix-blend":[{"mix-blend":[...q(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":q()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ep]}],"mask-image-linear-from-pos":[{"mask-linear-from":$()}],"mask-image-linear-to-pos":[{"mask-linear-to":$()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":$()}],"mask-image-t-to-pos":[{"mask-t-to":$()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":$()}],"mask-image-r-to-pos":[{"mask-r-to":$()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":$()}],"mask-image-b-to-pos":[{"mask-b-to":$()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":$()}],"mask-image-l-to-pos":[{"mask-l-to":$()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":$()}],"mask-image-x-to-pos":[{"mask-x-to":$()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":$()}],"mask-image-y-to-pos":[{"mask-y-to":$()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[eI,eE]}],"mask-image-radial-from-pos":[{"mask-radial-from":$()}],"mask-image-radial-to-pos":[{"mask-radial-to":$()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[ep]}],"mask-image-conic-from-pos":[{"mask-conic-from":$()}],"mask-image-conic-to-pos":[{"mask-conic-to":$()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:F()}],"mask-repeat":[{mask:R()}],"mask-size":[{mask:_()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",eI,eE]}],filter:[{filter:["","none",eI,eE]}],blur:[{blur:W()}],brightness:[{brightness:[ep,eI,eE]}],contrast:[{contrast:[ep,eI,eE]}],"drop-shadow":[{"drop-shadow":["","none",p,e_,eL]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",ep,eI,eE]}],"hue-rotate":[{"hue-rotate":[ep,eI,eE]}],invert:[{invert:["",ep,eI,eE]}],saturate:[{saturate:[ep,eI,eE]}],sepia:[{sepia:["",ep,eI,eE]}],"backdrop-filter":[{"backdrop-filter":["","none",eI,eE]}],"backdrop-blur":[{"backdrop-blur":W()}],"backdrop-brightness":[{"backdrop-brightness":[ep,eI,eE]}],"backdrop-contrast":[{"backdrop-contrast":[ep,eI,eE]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ep,eI,eE]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ep,eI,eE]}],"backdrop-invert":[{"backdrop-invert":["",ep,eI,eE]}],"backdrop-opacity":[{"backdrop-opacity":[ep,eI,eE]}],"backdrop-saturate":[{"backdrop-saturate":[ep,eI,eE]}],"backdrop-sepia":[{"backdrop-sepia":["",ep,eI,eE]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",eI,eE]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ep,"initial",eI,eE]}],ease:[{ease:["linear","initial",y,eI,eE]}],delay:[{delay:[ep,eI,eE]}],animate:[{animate:["none",b,eI,eE]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,eI,eE]}],"perspective-origin":[{"perspective-origin":v()}],rotate:[{rotate:K()}],"rotate-x":[{"rotate-x":K()}],"rotate-y":[{"rotate-y":K()}],"rotate-z":[{"rotate-z":K()}],scale:[{scale:G()}],"scale-x":[{"scale-x":G()}],"scale-y":[{"scale-y":G()}],"scale-z":[{"scale-z":G()}],"scale-3d":["scale-3d"],skew:[{skew:Q()}],"skew-x":[{"skew-x":Q()}],"skew-y":[{"skew-y":Q()}],transform:[{transform:[eI,eE,"","none","gpu","cpu"]}],"transform-origin":[{origin:v()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:J()}],"translate-x":[{"translate-x":J()}],"translate-y":[{"translate-y":J()}],"translate-z":[{"translate-z":J()}],"translate-none":["translate-none"],zoom:[{zoom:[eh,eI,eE]}],accent:[{accent:N()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:N()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",eI,eE]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":N()}],"scrollbar-track-color":[{"scrollbar-track":N()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mbs":[{"scroll-mbs":C()}],"scroll-mbe":[{"scroll-mbe":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pbs":[{"scroll-pbs":C()}],"scroll-pbe":[{"scroll-pbe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",eI,eE]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[ep,eO,ez,eT]}],stroke:[{stroke:["none",...N()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["start","end","right","left"],"inset-y":["inset-bs","inset-be","top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["ps","pe","pr","pl"],py:["pbs","pbe","pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["ms","me","mr","ml"],my:["mbs","mbe","mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-s","border-w-e","border-w-r","border-w-l"],"border-w-y":["border-w-bs","border-w-be","border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-s","border-color-e","border-color-r","border-color-l"],"border-color-y":["border-color-bs","border-color-be","border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-ms","scroll-me","scroll-mr","scroll-ml"],"scroll-my":["scroll-mbs","scroll-mbe","scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-ps","scroll-pe","scroll-pr","scroll-pl"],"scroll-py":["scroll-pbs","scroll-pbe","scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function eZ(...e){return eX(_(e))}let eY=(t="group/button inline-flex shrink-0 items-center justify-center rounded-none border border-transparent bg-clip-padding text-xs font-semibold tracking-widest whitespace-nowrap uppercase transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5",n={variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",outline:"border-border bg-transparent hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-input/30",secondary:"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline underline-offset-4 hover:underline"},size:{default:"h-10 gap-1.5 px-6 has-data-[icon=inline-end]:pr-4 has-data-[icon=inline-start]:pl-4",xs:"h-7 gap-1 px-3 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-3",sm:"h-9 gap-1 px-4 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3",lg:"h-11 gap-1.5 px-8 has-data-[icon=inline-end]:pr-5 has-data-[icon=inline-start]:pl-5",icon:"size-10","icon-xs":"size-7 [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-9","icon-lg":"size-11"}},defaultVariants:{variant:"default",size:"default"}},e=>{var r;if((null==n?void 0:n.variants)==null)return _(t,null==e?void 0:e.class,null==e?void 0:e.className);let{variants:o,defaultVariants:i}=n,l=Object.keys(o).map(t=>{let n=null==e?void 0:e[t],r=null==i?void 0:i[t];if(null===n)return null;let l=B(n)||B(r);return o[t][l]}),a=e&&Object.entries(e).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return _(t,l,null==n||null==(r=n.compoundVariants)?void 0:r.reduce((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...a}[t]):({...i,...a})[t]===n})?[...e,n,r]:e},[]),null==e?void 0:e.class,null==e?void 0:e.className)});function e0({className:e,variant:t="default",size:n="default",...o}){return(0,r.jsx)(R,{"data-slot":"button",className:eZ(eY({variant:t,size:n,className:e})),...o})}let e1={default:"border-border bg-muted text-muted-foreground",outline:"border-border/70 text-muted-foreground",accent:"border-transparent bg-primary text-primary-foreground"};function e2({variant:e="default",className:t,...n}){return(0,r.jsx)("span",{className:eZ("inline-flex shrink-0 items-center border px-1.5 py-0.5 text-[10px] font-semibold tracking-widest whitespace-nowrap uppercase",e1[e],t),...n})}function e4(){}function e3(){}let e9=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,e5=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,e6={};function e7(e,t){return((t||e6).jsx?e5:e9).test(e)}let e8=/[ \t\n\f\r]/g;function te(e){return""===e.replace(e8,"")}class tt{constructor(e,t){this.attribute=t,this.property=e}}tt.prototype.attribute="",tt.prototype.booleanish=!1,tt.prototype.boolean=!1,tt.prototype.commaOrSpaceSeparated=!1,tt.prototype.commaSeparated=!1,tt.prototype.defined=!1,tt.prototype.mustUseProperty=!1,tt.prototype.number=!1,tt.prototype.overloadedBoolean=!1,tt.prototype.property="",tt.prototype.spaceSeparated=!1,tt.prototype.space=void 0;let tn=0,tr=tc(),to=tc(),ti=tc(),tl=tc(),ta=tc(),ts=tc(),tu=tc();function tc(){return 2**++tn}e.s(["boolean",0,tr,"booleanish",0,to,"commaOrSpaceSeparated",0,tu,"commaSeparated",0,ts,"number",0,tl,"overloadedBoolean",0,ti,"spaceSeparated",0,ta],3286);var td=e.i(3286);let tf=Object.keys(td);class tp extends tt{constructor(e,t,n,r){let o=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",r),"number"==typeof n)for(;++o<tf.length;){const e=tf[o];!function(e,t,n){n&&(e[t]=n)}(this,tf[o],(n&td[e])===td[e])}}}function th(e){return e.toLowerCase()}tp.prototype.defined=!0;let tm=/[A-Z]/g,tg=/-[a-z]/g,ty=/^data[-\w.:]+$/i;function tb(e){return"-"+e.toLowerCase()}function tx(e){return e.charAt(1).toUpperCase()}let tk={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};class tv{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function tw(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new tv(n,r,t)}function tS(e){let t={},n={};for(let[r,o]of Object.entries(e.properties)){let i=new tp(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[th(r)]=r,n[th(i.attribute)]=r}return new tv(t,n,e.space)}tv.prototype.normal={},tv.prototype.property={},tv.prototype.space=void 0;let tC=tS({properties:{ariaActiveDescendant:null,ariaAtomic:to,ariaAutoComplete:null,ariaBusy:to,ariaChecked:to,ariaColCount:tl,ariaColIndex:tl,ariaColSpan:tl,ariaControls:ta,ariaCurrent:null,ariaDescribedBy:ta,ariaDetails:null,ariaDisabled:to,ariaDropEffect:ta,ariaErrorMessage:null,ariaExpanded:to,ariaFlowTo:ta,ariaGrabbed:to,ariaHasPopup:null,ariaHidden:to,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ta,ariaLevel:tl,ariaLive:null,ariaModal:to,ariaMultiLine:to,ariaMultiSelectable:to,ariaOrientation:null,ariaOwns:ta,ariaPlaceholder:null,ariaPosInSet:tl,ariaPressed:to,ariaReadOnly:to,ariaRelevant:null,ariaRequired:to,ariaRoleDescription:ta,ariaRowCount:tl,ariaRowIndex:tl,ariaRowSpan:tl,ariaSelected:to,ariaSetSize:tl,ariaSort:null,ariaValueMax:tl,ariaValueMin:tl,ariaValueNow:tl,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function tE(e,t){return t in e?e[t]:t}function tz(e,t){return tE(e,t.toLowerCase())}let tT=tS({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ts,acceptCharset:ta,accessKey:ta,action:null,allow:null,allowFullScreen:tr,allowPaymentRequest:tr,allowUserMedia:tr,alpha:tr,alt:null,as:null,async:tr,autoCapitalize:null,autoComplete:ta,autoFocus:tr,autoPlay:tr,blocking:ta,capture:null,charSet:null,checked:tr,cite:null,className:ta,closedBy:null,colorSpace:null,cols:tl,colSpan:tl,command:null,commandFor:null,content:null,contentEditable:to,controls:tr,controlsList:ta,coords:tl|ts,crossOrigin:null,data:null,dateTime:null,decoding:null,default:tr,defer:tr,dir:null,dirName:null,disabled:tr,download:ti,draggable:to,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:tr,formTarget:null,headers:ta,height:tl,hidden:ti,high:tl,href:null,hrefLang:null,htmlFor:ta,httpEquiv:ta,id:null,imageSizes:null,imageSrcSet:null,inert:tr,inputMode:null,integrity:null,is:null,isMap:tr,itemId:null,itemProp:ta,itemRef:ta,itemScope:tr,itemType:ta,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:tr,low:tl,manifest:null,max:null,maxLength:tl,media:null,method:null,min:null,minLength:tl,multiple:tr,muted:tr,name:null,nonce:null,noModule:tr,noValidate:tr,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:tr,optimum:tl,pattern:null,ping:ta,placeholder:null,playsInline:tr,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:tr,referrerPolicy:null,rel:ta,required:tr,reversed:tr,rows:tl,rowSpan:tl,sandbox:ta,scope:null,scoped:tr,seamless:tr,selected:tr,shadowRootClonable:tr,shadowRootCustomElementRegistry:tr,shadowRootDelegatesFocus:tr,shadowRootMode:null,shadowRootSerializable:tr,shape:null,size:tl,sizes:null,slot:null,span:tl,spellCheck:to,src:null,srcDoc:null,srcLang:null,srcSet:null,start:tl,step:null,style:null,tabIndex:tl,target:null,title:null,translate:null,type:null,typeMustMatch:tr,useMap:null,value:to,width:tl,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ta,axis:null,background:null,bgColor:null,border:tl,borderColor:null,bottomMargin:tl,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:tr,declare:tr,event:null,face:null,frame:null,frameBorder:null,hSpace:tl,leftMargin:tl,link:null,longDesc:null,lowSrc:null,marginHeight:tl,marginWidth:tl,noResize:tr,noHref:tr,noShade:tr,noWrap:tr,object:null,profile:null,prompt:null,rev:null,rightMargin:tl,rules:null,scheme:null,scrolling:to,standby:null,summary:null,text:null,topMargin:tl,valueType:null,version:null,vAlign:null,vLink:null,vSpace:tl,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:tr,disablePictureInPicture:tr,disableRemotePlayback:tr,exportParts:ts,part:ta,prefix:null,property:null,results:tl,security:null,unselectable:null},space:"html",transform:tz}),tA=tS({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:tu,accentHeight:tl,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:tl,amplitude:tl,arabicForm:null,ascent:tl,attributeName:null,attributeType:null,azimuth:tl,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:tl,by:null,calcMode:null,capHeight:tl,className:ta,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:tl,diffuseConstant:tl,direction:null,display:null,dur:null,divisor:tl,dominantBaseline:null,download:tr,dx:null,dy:null,edgeMode:null,editable:null,elevation:tl,enableBackground:null,end:null,event:null,exponent:tl,externalResourcesRequired:null,fill:null,fillOpacity:tl,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ts,g2:ts,glyphName:ts,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:tl,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:tl,horizOriginX:tl,horizOriginY:tl,id:null,ideographic:tl,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:tl,k:tl,k1:tl,k2:tl,k3:tl,k4:tl,kernelMatrix:tu,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:tl,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:tl,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:tl,overlineThickness:tl,paintOrder:null,panose1:null,path:null,pathLength:tl,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ta,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:tl,pointsAtY:tl,pointsAtZ:tl,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:tu,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:tu,rev:tu,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:tu,requiredFeatures:tu,requiredFonts:tu,requiredFormats:tu,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:tl,specularExponent:tl,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:tl,strikethroughThickness:tl,string:null,stroke:null,strokeDashArray:tu,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:tl,strokeOpacity:tl,strokeWidth:null,style:null,surfaceScale:tl,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:tu,tabIndex:tl,tableValues:null,target:null,targetX:tl,targetY:tl,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:tu,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:tl,underlineThickness:tl,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:tl,values:null,vAlphabetic:tl,vMathematical:tl,vectorEffect:null,vHanging:tl,vIdeographic:tl,version:null,vertAdvY:tl,vertOriginX:tl,vertOriginY:tl,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:tl,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:tE}),tj=tS({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),tD=tS({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:tz}),tP=tS({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),tL=tw([tC,tT,tj,tD,tP],"html"),tI=tw([tC,tA,tj,tD,tP],"svg");var tO=e.i(39842);let tM=tF("end"),tN=tF("start");function tF(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function tR(e){return e&&"object"==typeof e?"position"in e||"type"in e?tB(e.position):"start"in e||"end"in e?tB(e):"line"in e||"column"in e?t_(e):"":""}function t_(e){return tU(e&&e.line)+":"+tU(e&&e.column)}function tB(e){return t_(e&&e.start)+"-"+t_(e&&e.end)}function tU(e){return e&&"number"==typeof e?e:1}class tH extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",o={},i=!1;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!o.cause&&e&&(i=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?o.ruleId=n:(o.source=n.slice(0,e),o.ruleId=n.slice(e+1))}if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1];e&&(o.place=e.position)}const l=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=l?l.line:void 0,this.name=tR(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=i&&o.cause&&"string"==typeof o.cause.stack?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}tH.prototype.file="",tH.prototype.name="",tH.prototype.reason="",tH.prototype.message="",tH.prototype.stack="",tH.prototype.column=void 0,tH.prototype.line=void 0,tH.prototype.ancestors=void 0,tH.prototype.cause=void 0,tH.prototype.fatal=void 0,tH.prototype.place=void 0,tH.prototype.ruleId=void 0,tH.prototype.source=void 0;let tV={}.hasOwnProperty,tq=new Map,t$=/[A-Z]/g,tW=new Set(["table","tbody","thead","tfoot","tr"]),tK=new Set(["td","th"]),tG="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function tQ(e,t,n){var r,o,i,l,a,s,u,c,d;let f,p,h,m,g,y,b,x,k,v,w;return"element"===t.type?(r=e,o=t,i=n,p=f=r.schema,"svg"===o.tagName.toLowerCase()&&"html"===f.space&&(r.schema=tI),r.ancestors.push(o),h=tY(r,o.tagName,!1),m=function(e,t){let n,r,o={};for(r in t.properties)if("children"!==r&&tV.call(t.properties,r)){let i=function(e,t,n){let r=function(e,t){let n=th(t),r=t,o=tt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&ty.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(tg,tx);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!tg.test(e)){let n=e.replace(tm,tb);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=tp}return new o(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){var o;let t;if(Array.isArray(n)&&(n=r.commaSeparated?(t={},(""===(o=n)[o.length-1]?[...o,""]:o).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return(0,tO.default)(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new tH("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=tG+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)tV.call(e,t)&&(n[function(e){let t=e.replace(t$,t1);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?tk[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(i){let[r,l]=i;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof l&&tK.has(t.tagName)?n=l:o[r]=l}}return n&&((o.style||(o.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),o}(r,o),g=tZ(r,o),tW.has(o.tagName)&&(g=g.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&te(e.value):te(e))})),tJ(r,m,h,o),tX(m,g),r.ancestors.pop(),r.schema=f,r.create(o,h,m,i)):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return e4("ExpressionStatement"===n.type),e.evaluater.evaluateExpression(n.expression)}t0(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?(l=e,a=t,s=n,b=y=l.schema,"svg"===a.name&&"html"===y.space&&(l.schema=tI),l.ancestors.push(a),x=null===a.name?l.Fragment:tY(l,a.name,!0),k=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];e4("ExpressionStatement"===t.type);let o=t.expression;e4("ObjectExpression"===o.type);let i=o.properties[0];e4("SpreadElement"===i.type),Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else t0(e,t.position);else{let o,i=r.name;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];e4("ExpressionStatement"===t.type),o=e.evaluater.evaluateExpression(t.expression)}else t0(e,t.position);else o=null===r.value||r.value;n[i]=o}return n}(l,a),v=tZ(l,a),tJ(l,k,x,a),tX(k,v),l.ancestors.pop(),l.schema=y,l.create(a,x,k,s)):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);t0(e,t.position)}(e,t):"root"===t.type?(u=e,c=t,d=n,tX(w={},tZ(u,c)),u.create(c,u.Fragment,w,d)):"text"===t.type?t.value:void 0}function tJ(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function tX(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function tZ(e,t){let n=[],r=-1,o=e.passKeys?new Map:tq;for(;++r<t.children.length;){let i,l=t.children[r];if(e.passKeys){let e="element"===l.type?l.tagName:"mdxJsxFlowElement"===l.type||"mdxJsxTextElement"===l.type?l.name:void 0;if(e){let t=o.get(e)||0;i=e+"-"+t,o.set(e,t+1)}}let a=tQ(e,l,i);void 0!==a&&n.push(a)}return n}function tY(e,t,n){let r;if(n)if(t.includes(".")){let e,n=t.split("."),o=-1;for(;++o<n.length;){let t=e7(n[o])?{type:"Identifier",name:n[o]}:{type:"Literal",value:n[o]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(o&&"Literal"===t.type),optional:!1}:t}e4(e,"always a result"),r=e}else r=e7(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return tV.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);t0(e)}function t0(e,t){let n=new tH("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=tG+"#cannot-handle-mdx-estrees-without-createevaluater",n}function t1(e){return"-"+e.toLowerCase()}let t2={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},t4={};function t3(e,t){let n=t||t4;return t9(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function t9(e,t,n){var r;if((r=e)&&"object"==typeof r){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return t5(e.children,t,n)}return Array.isArray(e)?t5(e,t,n):""}function t5(e,t,n){let r=[],o=-1;for(;++o<e.length;)r[o]=t9(e[o],t,n);return r.join("")}function t6(e,t,n,r){let o,i=e.length,l=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)(o=Array.from(r)).unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);l<r.length;)(o=r.slice(l,l+1e4)).unshift(t,0),e.splice(...o),l+=1e4,t+=1e4}function t7(e,t){return e.length>0?(t6(e,e.length,0,t),e):t}let t8={}.hasOwnProperty;function ne(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let r,o=(t8.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];if(i)for(r in i){t8.call(o,r)||(o[r]=[]);let e=i[r];!function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);t6(e,0,0,r)}(o[r],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}let nt=np(/[A-Za-z]/),nn=np(/[\dA-Za-z]/),nr=np(/[#-'*+\--9=?A-Z^-~]/);function no(e){return null!==e&&(e<32||127===e)}let ni=np(/\d/),nl=np(/[\dA-Fa-f]/),na=np(/[!-/:-@[-`{-~]/);function ns(e){return null!==e&&e<-2}function nu(e){return null!==e&&(e<0||32===e)}function nc(e){return -2===e||-1===e||32===e}let nd=np(/\p{P}|\p{S}/u),nf=np(/\s/);function np(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function nh(e,t,n,r){let o=r?r-1:1/0,i=0;return function(r){return nc(r)?(e.enter(n),function r(l){return nc(l)&&i++<o?(e.consume(l),r):(e.exit(n),t(l))}(r)):t(r)}}let nm={tokenize:function(e){let t,n=e.attempt(this.parser.constructs.contentInitial,function(t){return null===t?void e.consume(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),nh(e,n,"linePrefix"))},function(n){return e.enter("paragraph"),function n(r){let o=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=o),t=o,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return ns(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},ng={tokenize:function(e){let t,n,r,o=this,i=[],l=0;return a;function a(t){if(l<i.length){let n=i[l];return o.containerState=n[1],e.attempt(n[0].continuation,s,u)(t)}return u(t)}function s(e){if(l++,o.containerState._closeFlow){let n;o.containerState._closeFlow=void 0,t&&y();let r=o.events.length,i=r;for(;i--;)if("exit"===o.events[i][0]&&"chunkFlow"===o.events[i][1].type){n=o.events[i][1].end;break}g(l);let a=r;for(;a<o.events.length;)o.events[a][1].end={...n},a++;return t6(o.events,i+1,0,o.events.slice(r)),o.events.length=a,u(e)}return a(e)}function u(n){if(l===i.length){if(!t)return f(n);if(t.currentConstruct&&t.currentConstruct.concrete)return h(n);o.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return o.containerState={},e.check(ny,c,d)(n)}function c(e){return t&&y(),g(l),f(e)}function d(e){return o.parser.lazy[o.now().line]=l!==i.length,r=o.now().offset,h(e)}function f(t){return o.containerState={},e.attempt(ny,p,h)(t)}function p(e){return l++,i.push([o.currentConstruct,o.containerState]),f(e)}function h(r){if(null===r){t&&y(),g(0),e.consume(r);return}return t=t||o.parser.flow(o.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){m(e.exit("chunkFlow"),!0),g(0),e.consume(n);return}return ns(n)?(e.consume(n),m(e.exit("chunkFlow")),l=0,o.interrupt=void 0,a):(e.consume(n),t)}(r)}function m(e,i){let a=o.sliceStream(e);if(i&&a.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(a),o.parser.lazy[e.start.line]){let e,n,i=t.events.length;for(;i--;)if(t.events[i][1].start.offset<r&&(!t.events[i][1].end||t.events[i][1].end.offset>r))return;let a=o.events.length,s=a;for(;s--;)if("exit"===o.events[s][0]&&"chunkFlow"===o.events[s][1].type){if(e){n=o.events[s][1].end;break}e=!0}for(g(l),i=a;i<o.events.length;)o.events[i][1].end={...n},i++;t6(o.events,s+1,0,o.events.slice(a)),o.events.length=i}}function g(t){let n=i.length;for(;n-- >t;){let t=i[n];o.containerState=t[1],t[0].exit.call(o,e)}i.length=t}function y(){t.write([null]),n=void 0,t=void 0,o.containerState._closeFlow=void 0}}},ny={tokenize:function(e,t,n){return nh(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},nb={partial:!0,tokenize:function(e,t,n){return function(t){return nc(t)?nh(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||ns(e)?t(e):n(e)}}};class nx{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?1/0:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),1/0);return n&&nk(this.left,n),r.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),nk(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),nk(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e<this.left.length){let t=this.left.splice(e,1/0);nk(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);nk(this.left,t.reverse())}}}function nk(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function nv(e){let t,n,r,o,i,l,a,s={},u=-1,c=new nx(e);for(;++u<c.length;){for(;u in s;)u=s[u];if(t=c.get(u),u&&"chunkFlow"===t[1].type&&"listItemPrefix"===c.get(u-1)[1].type&&((r=0)<(l=t[1]._tokenizer.events).length&&"lineEndingBlank"===l[r][1].type&&(r+=2),r<l.length&&"content"===l[r][1].type))for(;++r<l.length&&"content"!==l[r][1].type;)"chunkText"===l[r][1].type&&(l[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(s,function(e,t){let n,r,o=e.get(t)[1],i=e.get(t)[2],l=t-1,a=[],s=o._tokenizer;!s&&(s=i.parser[o.contentType](o.start),o._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));let u=s.events,c=[],d={},f=-1,p=o,h=0,m=0,g=[0];for(;p;){for(;e.get(++l)[1]!==p;);a.push(l),!p._tokenizer&&(n=i.sliceStream(p),p.next||n.push(null),r&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(n),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),r=p,p=p.next}for(p=o;++f<u.length;)"exit"===u[f][0]&&"enter"===u[f-1][0]&&u[f][1].type===u[f-1][1].type&&u[f][1].start.line!==u[f][1].end.line&&(m=f+1,g.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=u.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)d[h+c[f][0]]=h+c[f][1],h+=c[f][1]-c[f][0]-1;return d}(c,u)),u=s[u],a=!0);else if(t[1]._container){for(r=u,n=void 0;r--;)if("lineEnding"===(o=c.get(r))[1].type||"lineEndingBlank"===o[1].type)"enter"===o[0]&&(n&&(c.get(n)[1].type="lineEndingBlank"),o[1].type="lineEnding",n=r);else if("linePrefix"===o[1].type||"listItemIndent"===o[1].type);else break;n&&(t[1].end={...c.get(n)[1].start},(i=c.slice(n,u)).unshift(t),c.splice(n,u-n+1,i))}}return t6(e,0,1/0,c.slice(0)),!a}let nw={resolve:function(e){return nv(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):ns(t)?e.check(nS,i,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},nS={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),nh(e,o,"linePrefix")};function o(o){if(null===o||ns(o))return n(o);let i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}},nC={tokenize:function(e){let t=this,n=e.attempt(nb,function(r){return null===r?void e.consume(r):(e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,nh(e,e.attempt(this.parser.constructs.flow,r,e.attempt(nw,r)),"linePrefix")));return n;function r(r){return null===r?void e.consume(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},nE={resolveAll:nj()},nz=nA("string"),nT=nA("text");function nA(e){return{resolveAll:nj("text"===e?nD:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],o=t.attempt(r,i,l);return i;function i(e){return s(e)?o(e):l(e)}function l(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),a)}function a(e){return s(e)?(t.exit("data"),o(e)):(t.consume(e),a)}function s(e){if(null===e)return!0;let t=r[e],o=-1;if(t)for(;++o<t.length;){let e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function nj(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function nD(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r,o=e[n-1][1],i=t.sliceStream(o),l=i.length,a=-1,s=0;for(;l--;){let e=i[l];if("string"==typeof e){for(a=e.length;32===e.charCodeAt(a-1);)s++,a--;if(a)break;a=-1}else if(-2===e)r=!0,s++;else if(-1===e);else{l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||r||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?a:o.start._bufferIndex+a,_index:o.start._index+l,line:o.end.line,column:o.end.column-s,offset:o.end.offset-s},end:{...o.end}};o.end={...i.start},o.start.offset===o.end.offset?Object.assign(o,i):(e.splice(n,0,["enter",i,t],["exit",i,t]),n+=2)}n++}return e}function nP(e){return null===e||nu(e)||nf(e)?1:nd(e)?2:void 0}function nL(e,t,n){let r=[],o=-1;for(;++o<e.length;){let i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}let nI={name:"attention",resolveAll:function(e,t){let n,r,o,i,l,a,s,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close){for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;a=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let d={...e[n][1].end},f={...e[c][1].start};nO(d,-a),nO(f,a),i={type:a>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},l={type:a>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:f},o={type:a>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:a>1?"strong":"emphasis",start:{...i.start},end:{...l.end}},e[n][1].end={...i.start},e[c][1].start={...l.end},s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=t7(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=t7(s,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),s=t7(s,nL(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),s=t7(s,[["exit",o,t],["enter",l,t],["exit",l,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,s=t7(s,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,t6(e,n-1,c-n+3,s),c=n+s.length-u-2;break}}for(c=-1;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e},tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,o=this.previous,i=nP(o);return function(l){return n=l,e.enter("attentionSequence"),function l(a){if(a===n)return e.consume(a),l;let s=e.exit("attentionSequence"),u=nP(a),c=!u||2===u&&i||r.includes(a),d=!i||2===i&&u||r.includes(o);return s._open=!!(42===n?c:c&&(i||!d)),s._close=!!(42===n?d:d&&(u||!c)),t(a)}(l)}}};function nO(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let nM={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return nc(t)?nh(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):o(t)};function o(r){return e.attempt(nM,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return nc(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}},nN={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return na(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},nF=document.createElement("i");function nR(e){let t="&"+e+";";nF.innerHTML=t;let n=nF.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let n_={name:"characterReference",tokenize:function(e,t,n){let r,o,i=this,l=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),r=31,o=nn,u(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,o=nl,u):(e.enter("characterReferenceValue"),r=7,o=ni,u(t))}function u(a){if(59===a&&l){let r=e.exit("characterReferenceValue");return o!==nn||nR(i.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return o(a)&&l++<r?(e.consume(a),u):n(a)}}},nB={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},nU={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,o=this,i={partial:!0,tokenize:function(e,t,n){let i=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l};function l(t){return e.enter("codeFencedFence"),nc(t)?nh(e,s,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):s(t)}function s(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(o){return o===r?(i++,e.consume(o),t):i>=a?(e.exit("codeFencedFenceSequence"),nc(o)?nh(e,u,"whitespace")(o):u(o)):n(o)}(t)):n(t)}function u(r){return null===r||ns(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},l=0,a=0;return function(t){var i;let u;return i=t,l=(u=o.events[o.events.length-1])&&"linePrefix"===u[1].type?u[2].sliceSerialize(u[1],!0).length:0,r=i,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(o){return o===r?(a++,e.consume(o),t):a<3?n(o):(e.exit("codeFencedFenceSequence"),nc(o)?nh(e,s,"whitespace")(o):s(o))}(i)};function s(i){return null===i||ns(i)?(e.exit("codeFencedFence"),o.interrupt?t(i):e.check(nB,c,h)(i)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(o){return null===o||ns(o)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),s(o)):nc(o)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),nh(e,u,"whitespace")(o)):96===o&&o===r?n(o):(e.consume(o),t)}(i))}function u(t){return null===t||ns(t)?s(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(o){return null===o||ns(o)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),s(o)):96===o&&o===r?n(o):(e.consume(o),t)}(t))}function c(t){return e.attempt(i,h,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f}function f(t){return l>0&&nc(t)?nh(e,p,"linePrefix",l+1)(t):p(t)}function p(t){return null===t||ns(t)?e.check(nB,c,h)(t):(e.enter("codeFlowValue"),function t(n){return null===n||ns(n)?(e.exit("codeFlowValue"),p(n)):(e.consume(n),t)}(t))}function h(n){return e.exit("codeFenced"),t(n)}}},nH={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),nh(e,o,"linePrefix",5)(t)};function o(t){let o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?function t(n){return null===n?i(n):ns(n)?e.attempt(nV,t,i)(n):(e.enter("codeFlowValue"),function n(r){return null===r||ns(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function i(n){return e.exit("codeIndented"),t(n)}}},nV={partial:!0,tokenize:function(e,t,n){let r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):ns(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):nh(e,i,"linePrefix",5)(t)}function i(e){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):ns(e)?o(e):n(e)}}};function nq(e,t,n,r,o,i,l,a,s){let u=s||1/0,c=0;return function(t){return 60===t?(e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),d):null===t||32===t||41===t||no(t)?n(t):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),h(t))};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(a),d(t)):null===t||60===t||ns(t)?n(t):(e.consume(t),92===t?p:f)}function p(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function h(o){return!c&&(null===o||41===o||nu(o))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),t(o)):c<u&&40===o?(e.consume(o),c++,h):41===o?(e.consume(o),c--,h):null===o||32===o||40===o||no(o)?n(o):(e.consume(o),92===o?m:h)}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function n$(e,t,n,r,o,i){let l,a=this,s=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(i),u};function u(d){return s>999||null===d||91===d||93===d&&!l||94===d&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(i),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):ns(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(t){return null===t||91===t||93===t||ns(t)||s++>999?(e.exit("chunkString"),u(t)):(e.consume(t),l||(l=!nc(t)),92===t?d:c)}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}}function nW(e,t,n,r,o,i){let l;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(o),e.consume(t),e.exit(o),l=40===t?41:t,a):n(t)};function a(n){return n===l?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),s(n))}function s(t){return t===l?(e.exit(i),a(l)):null===t?n(t):ns(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),nh(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===l||null===t||ns(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?c:u)}function c(t){return t===l||92===t?(e.consume(t),u):u(t)}}function nK(e,t){let n;return function r(o){return ns(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):nc(o)?nh(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}function nG(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let nQ={partial:!0,tokenize:function(e,t,n){return function(t){return nu(t)?nK(e,r)(t):n(t)};function r(t){return nW(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return nc(t)?nh(e,i,"whitespace")(t):i(t)}function i(e){return null===e||ns(e)?t(e):n(e)}}},nJ=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],nX=["pre","script","style","textarea"],nZ={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(nb,t,n)}}},nY={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return ns(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},n0={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&t6(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,o,i,l=e.length,a=0;for(;l--;)if(n=e[l][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[l][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[l][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=l,"labelLink"!==n.type)){a=2;break}}else"labelEnd"===n.type&&(o=l);let s={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[r][1].start},end:{...e[o][1].end}},c={type:"labelText",start:{...e[r+a+2][1].end},end:{...e[o-2][1].start}};return i=t7(i=[["enter",s,t],["enter",u,t]],e.slice(r+1,r+a+3)),i=t7(i,[["enter",c,t]]),i=t7(i,nL(t.parser.constructs.insideSpan.null,e.slice(r+a+4,o-3),t)),i=t7(i,[["exit",c,t],e[o-2],e[o-1],["exit",u,t]]),i=t7(i,e.slice(o+1)),i=t7(i,[["exit",s,t]]),t6(e,r,e.length,i),e},tokenize:function(e,t,n){let r,o,i=this,l=i.events.length;for(;l--;)if(("labelImage"===i.events[l][1].type||"labelLink"===i.events[l][1].type)&&!i.events[l][1]._balanced){r=i.events[l][1];break}return function(t){return r?r._inactive?c(t):(o=i.parser.defined.includes(nG(i.sliceSerialize({start:r.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),a):n(t)};function a(t){return 40===t?e.attempt(n1,u,o?u:c)(t):91===t?e.attempt(n2,u,o?s:c)(t):o?u(t):c(t)}function s(t){return e.attempt(n4,u,c)(t)}function u(e){return t(e)}function c(e){return r._balanced=!0,n(e)}}},n1={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return nu(t)?nK(e,o)(t):o(t)}function o(t){return 41===t?u(t):nq(e,i,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return nu(t)?nK(e,a)(t):u(t)}function l(e){return n(e)}function a(t){return 34===t||39===t||40===t?nW(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function s(t){return nu(t)?nK(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},n2={tokenize:function(e,t,n){let r=this;return function(t){return n$.call(r,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(nG(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},n4={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},n3={name:"labelStartImage",resolveAll:n0.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},n9={name:"labelStartLink",resolveAll:n0.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},n5={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),nh(e,t,"linePrefix")}}},n6={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(i){var l;return e.enter("thematicBreak"),r=l=i,function i(l){return l===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),o++,t):(e.exit("thematicBreakSequence"),nc(n)?nh(e,i,"whitespace")(n):i(n))}(l)):o>=3&&(null===l||ns(l))?(e.exit("thematicBreak"),t(l)):n(l)}(l)}}},n7={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(nb,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,nh(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!nc(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(re,t,o)(n))});function o(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,nh(e,e.attempt(n7,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,o=r.events[r.events.length-1],i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,l=0;return function(t){let o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:ni(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(n6,n,a)(t):a(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(o){return ni(o)&&++l<10?(e.consume(o),t):(!r.interrupt||l<2)&&(r.containerState.marker?o===r.containerState.marker:41===o||46===o)?(e.exit("listItemValue"),a(o)):n(o)}(t)}return n(t)};function a(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(nb,r.interrupt?n:s,e.attempt(n8,c,u))}function s(e){return r.containerState.initialBlankLine=!0,i++,c(e)}function u(t){return nc(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},n8={partial:!0,tokenize:function(e,t,n){let r=this;return nh(e,function(e){let o=r.events[r.events.length-1];return!nc(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},re={partial:!0,tokenize:function(e,t,n){let r=this;return nh(e,function(e){let o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},rt={name:"setextUnderline",resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);let l={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",l,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=l,e.push(["exit",l,t]),e},tokenize:function(e,t,n){let r,o=this;return function(t){var l;let a,s=o.events.length;for(;s--;)if("lineEnding"!==o.events[s][1].type&&"linePrefix"!==o.events[s][1].type&&"content"!==o.events[s][1].type){a="paragraph"===o.events[s][1].type;break}return!o.parser.lazy[o.now().line]&&(o.interrupt||a)?(e.enter("setextHeadingLine"),r=t,l=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),nc(n)?nh(e,i,"lineSuffix")(n):i(n))}(l)):n(t)};function i(r){return null===r||ns(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};e.s(["attentionMarkers",0,{null:[42,95]},"contentInitial",0,{91:{name:"definition",tokenize:function(e,t,n){let r,o=this;return function(t){var r;return e.enter("definition"),r=t,n$.call(o,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(r)};function i(t){return(r=nG(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),l):n(t)}function l(t){return nu(t)?nK(e,a)(t):a(t)}function a(t){return nq(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(nQ,u,u)(t)}function u(t){return nc(t)?nh(e,c,"whitespace")(t):c(t)}function c(i){return null===i||ns(i)?(e.exit("definition"),o.parser.defined.push(r),t(i)):n(i)}}}},"disable",0,{null:[]},"document",0,{42:n7,43:n7,45:n7,48:n7,49:n7,50:n7,51:n7,52:n7,53:n7,54:n7,55:n7,56:n7,57:n7,62:nM},"flow",0,{35:{name:"headingAtx",resolve:function(e,t){let n,r,o=e.length-2,i=3;return"whitespace"===e[3][1].type&&(i+=2),o-2>i&&"whitespace"===e[o][1].type&&(o-=2),"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4),o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},t6(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(o){var i;return e.enter("atxHeading"),i=o,e.enter("atxHeadingSequence"),function o(i){return 35===i&&r++<6?(e.consume(i),o):null===i||nu(i)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||ns(r)?(e.exit("atxHeading"),t(r)):nc(r)?nh(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||nu(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(i)):n(i)}(i)}}},42:n6,45:[rt,n6],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let r,o,i,l,a,s=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),u};function u(l){return 33===l?(e.consume(l),c):47===l?(e.consume(l),o=!0,p):63===l?(e.consume(l),r=3,s.interrupt?t:L):nt(l)?(e.consume(l),i=String.fromCharCode(l),h):n(l)}function c(o){return 45===o?(e.consume(o),r=2,d):91===o?(e.consume(o),r=5,l=0,f):nt(o)?(e.consume(o),r=4,s.interrupt?t:L):n(o)}function d(r){return 45===r?(e.consume(r),s.interrupt?t:L):n(r)}function f(r){let o="CDATA[";return r===o.charCodeAt(l++)?(e.consume(r),l===o.length)?s.interrupt?t:C:f:n(r)}function p(t){return nt(t)?(e.consume(t),i=String.fromCharCode(t),h):n(t)}function h(l){if(null===l||47===l||62===l||nu(l)){let a=47===l,u=i.toLowerCase();return!a&&!o&&nX.includes(u)?(r=1,s.interrupt?t(l):C(l)):nJ.includes(i.toLowerCase())?(r=6,a)?(e.consume(l),m):s.interrupt?t(l):C(l):(r=7,s.interrupt&&!s.parser.lazy[s.now().line]?n(l):o?function t(n){return nc(n)?(e.consume(n),t):w(n)}(l):g(l))}return 45===l||nn(l)?(e.consume(l),i+=String.fromCharCode(l),h):n(l)}function m(r){return 62===r?(e.consume(r),s.interrupt?t:C):n(r)}function g(t){return 47===t?(e.consume(t),w):58===t||95===t||nt(t)?(e.consume(t),y):nc(t)?(e.consume(t),g):w(t)}function y(t){return 45===t||46===t||58===t||95===t||nn(t)?(e.consume(t),y):b(t)}function b(t){return 61===t?(e.consume(t),x):nc(t)?(e.consume(t),b):g(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,k):nc(t)?(e.consume(t),x):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||nu(n)?b(n):(e.consume(n),t)}(t)}function k(t){return t===a?(e.consume(t),a=null,v):null===t||ns(t)?n(t):(e.consume(t),k)}function v(e){return 47===e||62===e||nc(e)?g(e):n(e)}function w(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||ns(t)?C(t):nc(t)?(e.consume(t),S):n(t)}function C(t){return 45===t&&2===r?(e.consume(t),A):60===t&&1===r?(e.consume(t),j):62===t&&4===r?(e.consume(t),I):63===t&&3===r?(e.consume(t),L):93===t&&5===r?(e.consume(t),P):ns(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(nZ,O,E)(t)):null===t||ns(t)?(e.exit("htmlFlowData"),E(t)):(e.consume(t),C)}function E(t){return e.check(nY,z,O)(t)}function z(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),T}function T(t){return null===t||ns(t)?E(t):(e.enter("htmlFlowData"),C(t))}function A(t){return 45===t?(e.consume(t),L):C(t)}function j(t){return 47===t?(e.consume(t),i="",D):C(t)}function D(t){if(62===t){let n=i.toLowerCase();return nX.includes(n)?(e.consume(t),I):C(t)}return nt(t)&&i.length<8?(e.consume(t),i+=String.fromCharCode(t),D):C(t)}function P(t){return 93===t?(e.consume(t),L):C(t)}function L(t){return 62===t?(e.consume(t),I):45===t&&2===r?(e.consume(t),L):C(t)}function I(t){return null===t||ns(t)?(e.exit("htmlFlowData"),O(t)):(e.consume(t),I)}function O(n){return e.exit("htmlFlow"),t(n)}}},61:rt,95:n6,96:nU,126:nU},"flowInitial",0,{[-2]:nH,[-1]:nH,32:nH},"insideSpan",0,{null:[nI,nE]},"string",0,{38:n_,92:nN},"text",0,{[-5]:n5,[-4]:n5,[-3]:n5,33:n3,38:n_,42:nI,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return nt(t)?(e.consume(t),i):64===t?n(t):a(t)}function i(t){return 43===t||45===t||46===t||nn(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,l):(43===n||45===n||46===n||nn(n))&&r++<32?(e.consume(n),t):(r=0,a(n))}(t)):a(t)}function l(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||no(r)?n(r):(e.consume(r),l)}function a(t){return 64===t?(e.consume(t),s):nr(t)?(e.consume(t),a):n(t)}function s(o){return nn(o)?function o(i){return 46===i?(e.consume(i),r=0,s):62===i?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(i),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(i){if((45===i||nn(i))&&r++<63){let n=45===i?t:o;return e.consume(i),n}return n(i)}(i)}(o):n(o)}}},{name:"htmlText",tokenize:function(e,t,n){let r,o,i,l=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),k):63===t?(e.consume(t),b):nt(t)?(e.consume(t),w):n(t)}function s(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),o=0,p):nt(t)?(e.consume(t),y):n(t)}function u(t){return 45===t?(e.consume(t),f):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),d):ns(t)?(i=c,D(t)):(e.consume(t),c)}function d(t){return 45===t?(e.consume(t),f):c(t)}function f(e){return 62===e?j(e):45===e?d(e):c(e)}function p(t){let r="CDATA[";return t===r.charCodeAt(o++)?(e.consume(t),o===r.length?h:p):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):ns(t)?(i=h,D(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?j(t):93===t?(e.consume(t),g):h(t)}function y(t){return null===t||62===t?j(t):ns(t)?(i=y,D(t)):(e.consume(t),y)}function b(t){return null===t?n(t):63===t?(e.consume(t),x):ns(t)?(i=b,D(t)):(e.consume(t),b)}function x(e){return 62===e?j(e):b(e)}function k(t){return nt(t)?(e.consume(t),v):n(t)}function v(t){return 45===t||nn(t)?(e.consume(t),v):function t(n){return ns(n)?(i=t,D(n)):nc(n)?(e.consume(n),t):j(n)}(t)}function w(t){return 45===t||nn(t)?(e.consume(t),w):47===t||62===t||nu(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),j):58===t||95===t||nt(t)?(e.consume(t),C):ns(t)?(i=S,D(t)):nc(t)?(e.consume(t),S):j(t)}function C(t){return 45===t||46===t||58===t||95===t||nn(t)?(e.consume(t),C):function t(n){return 61===n?(e.consume(n),E):ns(n)?(i=t,D(n)):nc(n)?(e.consume(n),t):S(n)}(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,z):ns(t)?(i=E,D(t)):nc(t)?(e.consume(t),E):(e.consume(t),T)}function z(t){return t===r?(e.consume(t),r=void 0,A):null===t?n(t):ns(t)?(i=z,D(t)):(e.consume(t),z)}function T(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||nu(t)?S(t):(e.consume(t),T)}function A(e){return 47===e||62===e||nu(e)?S(e):n(e)}function j(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function D(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),P}function P(t){return nc(t)?nh(e,L,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):L(t)}function L(t){return e.enter("htmlTextData"),i(t)}}}],91:n9,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return ns(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},nN],93:n0,95:nI,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,o=3;if(("lineEnding"===e[3][1].type||"space"===e[o][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}}for(t=o-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,o,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),i++,t):(e.exit("codeTextSequence"),l(n))}(t)};function l(s){return null===s?n(s):32===s?(e.enter("space"),e.consume(s),e.exit("space"),l):96===s?(o=e.enter("codeTextSequence"),r=0,function n(l){return 96===l?(e.consume(l),r++,n):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(l)):(o.type="codeTextData",a(l))}(s)):ns(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),l):(e.enter("codeTextData"),a(s))}function a(t){return null===t||32===t||96===t||ns(t)?(e.exit("codeTextData"),l(t)):(e.consume(t),a)}}}}],29397);var rn=e.i(29397);let rr=/[\0\t\n\r]/g;function ro(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let ri=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function rl(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return ro(n.slice(t?2:1),t?16:10)}return nR(n)||e}let ra={}.hasOwnProperty;function rs(e){return{line:e.line,column:e.column,offset:e.offset}}function ru(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+tR({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+tR({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+tR({start:t.start,end:t.end})+") is still open")}function rc(e){let t=this;t.parser=function(n){var r,o;let i,l,a,s;return"object"==typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(o=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(y),autolinkProtocol:u,autolinkEmail:u,atxHeading:r(h),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:r(p),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:r(p,o),codeText:r(function(){return{type:"inlineCode",value:""}},o),codeTextData:u,data:u,codeFlowValue:u,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(g,o),htmlFlowData:u,htmlText:r(g,o),htmlTextData:u,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:o,link:r(y),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(b,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(b),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:r(h),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:l(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:l(),autolinkEmail:function(e){c.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){c.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:l(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:f,characterReferenceMarkerNumeric:f,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=ro(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=nR(n);let o=this.stack[this.stack.length-1];o.value+=t},characterReference:function(e){this.stack.pop().position.end=rs(e.end)},codeFenced:l(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:c,codeIndented:l(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:l(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:c,data:c,definition:l(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=nG(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:l(),hardBreakEscape:l(d),hardBreakTrailing:l(d),htmlFlow:l(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:c,htmlText:l(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:c,image:l(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(ri,rl),n.identifier=nG(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=rs(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(u.call(this,e),c.call(this,e))},link:l(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=nG(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:l(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:l(),thematicBreak:l()}};!function e(t,n){let r=-1;for(;++r<n.length;){let o=n[r];Array.isArray(o)?e(t,o):function(e,t){let n;for(n in t)if(ra.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,o)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},l={stack:[r],tokenStack:[],config:t,enter:i,exit:a,buffer:o,resume:s,data:n},u=[],c=-1;for(;++c<e.length;)("listOrdered"===e[c][1].type||"listUnordered"===e[c][1].type)&&("enter"===e[c][0]?u.push(c):c=function(e,t,n){let r,o,i,l,a=t-1,s=-1,u=!1;for(;++a<=n;){let t=e[a];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?s++:s--,l=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||l||s||i||(i=a),l=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:l=void 0}if(!s&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===s&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let l=a;for(o=void 0;l--;){let t=e[l];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",o=l}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}i&&(!o||i<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||a,0,["exit",r,t[2]]),a++,n++}if("listItemPrefix"===t[1].type){let o={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=o,e.splice(a,0,["enter",o,t[2]]),a++,n++,i=void 0,l=!0}}}return e[t][1]._spread=u,n}(e,u.pop(),c));for(c=-1;++c<e.length;){let n=t[e[c][0]];ra.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},l),e[c][1])}if(l.tokenStack.length>0){let e=l.tokenStack[l.tokenStack.length-1];(e[1]||ru).call(l,void 0,e[0])}for(r.position={start:rs(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:rs(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c<t.transforms.length;)r=t.transforms[c](r)||r;return r};function r(e,t){return function(n){i.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:"fragment",children:[]})}function i(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:rs(t.start),end:void 0}}function l(e){return function(t){e&&e.call(this,t),a.call(this,t)}}function a(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||ru).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+tR({start:e.start,end:e.end})+"): it’s not open");n.position.end=rs(e.end)}function s(){return t3(this.stack.pop())}function u(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:rs(e.start),end:void 0},t.push(n)),this.stack.push(n)}function c(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=rs(e.end)}function d(){this.data.atHardBreak=!0}function f(e){this.data.characterReferenceType=e.type}function p(){return{type:"code",lang:null,meta:null,value:""}}function h(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function g(){return{type:"html",value:""}}function y(){return{type:"link",title:null,url:"",children:[]}}function b(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(o)(function(e){for(;!nv(e););return e}((function(e){let t={constructs:ne([rn,...(e||{}).extensions||[]]),content:n(nm),defined:[],document:n(ng),flow:n(nC),lazy:{},string:n(nz),text:n(nT)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},o={},i=[],l=[],a=[],s={attempt:h(function(e,t){m(e,t.from)}),check:h(p),consume:function(e){ns(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,g()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=f(),u.events.push(["enter",n,u]),a.push(n),n},exit:function(e){let t=a.pop();return t.end=f(),u.events.push(["exit",t,u]),t},interrupt:h(p,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){o[e.line]=e.column,g()},events:[],now:f,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,o=[];for(;++r<e.length;){let i,l=e[r];if("string"==typeof l)i=l;else switch(l){case -5:i="\r";break;case -4:i="\n";break;case -3:i="\r\n";break;case -2:i=t?" ":" ";break;case -1:if(!t&&n)continue;i=" ";break;default:i=String.fromCharCode(l)}n=-2===l,o.push(i)}return o.join("")}(d(e),t)},sliceStream:d,write:function(e){return(l=t7(l,e),function(){let e;for(;r._index<l.length;){let n=l[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),c=c(t)}else c=c(n)}}(),null!==l[l.length-1])?[]:(m(t,0),u.events=nL(i,u.events,u),u.events)}},c=t.tokenize.call(u,s);return t.resolveAll&&i.push(t),u;function d(e){return function(e,t){let n,r=t.start._index,o=t.start._bufferIndex,i=t.end._index,l=t.end._bufferIndex;if(r===i)n=[e[r].slice(o,l)];else{if(n=e.slice(r,i),o>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(o):n.shift()}l>0&&n.push(e[i].slice(0,l))}return n}(l,e)}function f(){let{_bufferIndex:e,_index:t,line:n,column:o,offset:i}=r;return{_bufferIndex:e,_index:t,line:n,column:o,offset:i}}function p(e,t){t.restore()}function h(e,t){return function(n,o,i){var l;let c,d,p,h;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):(l=n,function(e){let t=null!==e&&l[e],n=null!==e&&l.null;return m([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function m(e){return(c=e,d=0,0===e.length)?i:y(e[d])}function y(e){return function(n){let o,i,l,c,d;return(o=f(),i=u.previous,l=u.currentConstruct,c=u.events.length,d=Array.from(a),h={from:c,restore:function(){r=o,u.previous=i,u.currentConstruct=l,u.events.length=c,a=d,g()}},p=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name))?x(n):e.tokenize.call(t?Object.assign(Object.create(u),t):u,s,b,x)(n)}}function b(t){return e(p,h),o}function x(e){return(h.restore(),++d<c.length)?y(c[d]):i}}}function m(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&t6(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function g(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}(t,e,n)}}})(o).document().write((l=1,a="",s=!0,function(e,t,n){let r,o,u,c,d,f=[];for(e=a+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),u=0,a="",s&&(65279===e.charCodeAt(0)&&u++,s=void 0);u<e.length;){if(rr.lastIndex=u,c=(r=rr.exec(e))&&void 0!==r.index?r.index:e.length,d=e.charCodeAt(c),!r){a=e.slice(u);break}if(10===d&&u===c&&i)f.push(-3),i=void 0;else switch(i&&(f.push(-5),i=void 0),u<c&&(f.push(e.slice(u,c)),l+=c-u),d){case 0:f.push(65533),l++;break;case 9:for(o=4*Math.ceil(l/4),f.push(-2);l++<o;)f.push(-1);break;case 10:f.push(-4),l=1;break;default:i=!0,l=1}u=c+1}return n&&(i&&f.push(-5),a&&f.push(a),f.push(null)),f})(n,r,!0))))}}let{defineProperty:rd}=Object,rf="object"==typeof self?self:globalThis,rp=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw TypeError("unable to deserialize "+e)}return new rf[e](t)},rh=e=>{var t;let n,r;return(t=new Map,n=(e,n)=>(t.set(n,e),e),r=o=>{if(t.has(o))return t.get(o);let[i,l]=e[o];switch(i){case 0:case -1:return n(l,o);case 1:{let e=n([],o);for(let t of l)e.push(r(t));return e}case 2:{let e=n({},o);for(let[t,n]of l){let o=r(t),i=r(n);"__proto__"===o?rd(e,o,{value:i,configurable:!0,enumerable:!0,writable:!0}):e[o]=i}return e}case 3:return n(new Date(l),o);case 4:{let{source:e,flags:t}=l;return n(new RegExp(e,t),o)}case 5:{let e=n(new Map,o);for(let[t,n]of l)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,o);for(let t of l)e.add(r(t));return e}case 7:{let{name:e,message:t}=l;return n("function"==typeof rf[e]?rp(e,t):Error(t),o)}case 8:return n(BigInt(l),o);case"BigInt":return n(Object(BigInt(l)),o);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{let{buffer:e}=new Uint8Array(l);return n(new DataView(e),l)}case"-0":return -0}return n(rp(i,l),o)})(0)},{toString:rm}={},{keys:rg,is:ry}=Object,rb=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=rm.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:e instanceof Error?[7,e.name||"Error"]:[2,n]},rx=([e,t])=>0===e&&("function"===t||"symbol"===t),rk=(e,{json:t,lossy:n}={})=>{var r,o,i;let l,a,s=[];return(r=!(t||n),o=!!t,i=new Map,l=(e,t)=>{let n=s.push(e)-1;return i.set(t,n),n},a=e=>{if(i.has(e))return i.get(e);let[t,n]=rb(e);switch(t){case 0:{let o=e;switch(n){case"bigint":t=8,o=e.toString();break;case"number":if(!e&&ry(e,-0))return s.push(["-0"])-1;break;case"function":case"symbol":if(r)throw TypeError("unable to serialize "+n);o=null;break;case"undefined":return l([-1],e)}return l([t,o],e)}case 1:{if(n){let t=e;return"DataView"===n?t=new Uint8Array(e.buffer):"ArrayBuffer"===n&&(t=new Uint8Array(e)),l([n,[...t]],e)}let r=[],o=l([t,r],e);for(let t of e)r.push(a(t));return o}case 2:{if(n)switch(n){case"BigInt":return l([n,e.toString()],e);case"Boolean":case"Number":case"String":return l([n,e.valueOf()],e)}if(o&&"toJSON"in e)return a(e.toJSON());let i=[],s=l([t,i],e);for(let t of rg(e))(r||!rx(rb(e[t])))&&i.push([a(t),a(e[t])]);return s}case 3:return l([t,isNaN(e.getTime())?"":e.toISOString()],e);case 4:{let{source:n,flags:r}=e;return l([t,{source:n,flags:r}],e)}case 5:{let n=[],o=l([t,n],e);for(let[t,o]of e)(r||!(rx(rb(t))||rx(rb(o))))&&n.push([a(t),a(o)]);return o}case 6:{let n=[],o=l([t,n],e);for(let t of e)(r||!rx(rb(t)))&&n.push(a(t));return o}}let{message:u}=e;return l([t,{name:n,message:u}],e)})(e),s},rv="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?rh(rk(e,t)):structuredClone(e):(e,t)=>rh(rk(e,t));function rw(e){let t=[],n=-1,r=0,o=0;for(;++n<e.length;){let i=e.charCodeAt(n),l="";if(37===i&&nn(e.charCodeAt(n+1))&&nn(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(l=String.fromCharCode(i));else if(i>55295&&i<57344){let t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(l=String.fromCharCode(i,t),o=1):l="�"}else l=String.fromCharCode(i);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+o+1,l=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function rS(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function rC(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let rE=function(e){var t,n;if(null==e)return rT;if("function"==typeof e)return rz(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=rE(e[n]);return rz(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,rz(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,rz(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function rz(e){return function(t,n,r){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function rT(){return!0}let rA=[];function rj(e,t,n,r){let o;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):o=t;let i=rE(o),l=r?-1:1;(function e(o,a,s){let u=o&&"object"==typeof o?o:{};if("string"==typeof u.type){let e="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0;Object.defineProperty(c,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return c;function c(){var u;let c,d,f,p=rA;if((!t||i(o,a,s[s.length-1]||void 0))&&!1===(p=Array.isArray(u=n(o,s))?u:"number"==typeof u?[!0,u]:null==u?rA:[u])[0])return p;if("children"in o&&o.children&&o.children&&"skip"!==p[0])for(d=(r?o.children.length:-1)+l,f=s.concat(o);d>-1&&d<o.children.length;){if(!1===(c=e(o.children[d],d,f)())[0])return c;d="number"==typeof c[1]?c[1]:d+l}return p}})(e,void 0,[])()}function rD(e,t,n,r){let o,i,l;"function"==typeof t&&"function"!=typeof n?(i=void 0,l=t,o=n):(i=t,l=n,o=r),rj(e,i,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return l(e,r,n)},o)}function rP(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let o=e.all(t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift({type:"text",value:"["});let l=o[o.length-1];return l&&"text"===l.type?l.value+=r:o.push({type:"text",value:r}),o}function rL(e){let t=e.spread;return null==t?e.children.length>1:t}function rI(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}let rO={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={},o=t.lang?t.lang.split(/\s+/):[];o.length>0&&(r.className=["language-"+o[0]]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i={type:"element",tagName:"pre",properties:{},children:[i=e.applyData(t,i)]},e.patch(t,i),i},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n,r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",o=String(t.identifier).toUpperCase(),i=rw(o.toLowerCase()),l=e.footnoteOrder.indexOf(o),a=e.footnoteCounts.get(o);void 0===a?(a=0,e.footnoteOrder.push(o),n=e.footnoteOrder.length):n=l+1,a+=1,e.footnoteCounts.set(o,a);let s={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,s);let u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return rP(e,t);let o={src:rw(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(o.title=r.title);let i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){let n={src:rw(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return rP(e,t);let o={href:rw(r.url||"")};null!==r.title&&void 0!==r.title&&(o.title=r.title);let i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){let n={href:rw(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=rL(n[r])}return t}(n):rL(t),i={},l=[];if("boolean"==typeof t.checked){let e,n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let a=-1;for(;++a<r.length;){let e=r[a];(o||0!==a||"element"!==e.type||"p"!==e.tagName)&&l.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?l.push(e):l.push(...e.children)}let s=r[r.length-1];s&&(o||"element"!==s.type||"p"!==s.tagName)&&l.push({type:"text",value:"\n"});let u={type:"element",tagName:"li",properties:i,children:l};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){let n={},r=e.all(t),o=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++o<r.length;){let e=r[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),o=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),o.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=tN(t.children[1]),l=tM(t.children[t.children.length-1]);i&&l&&(r.position={start:i,end:l}),o.push(r)}let i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,l=i?i.length:t.children.length,a=-1,s=[];for(;++a<l;){let n=t.children[a],r={},l=i?i[a]:void 0;l&&(r.align=l);let u={type:"element",tagName:o,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(n,u)),s.push(u)}let u={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),o=0,i=[];for(;r;)i.push(rI(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(rI(t.slice(o),o>0,!1)),i.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:rM,yaml:rM,definition:rM,footnoteDefinition:rM};function rM(){}let rN={}.hasOwnProperty,rF={};function rR(e,t){e.position&&(t.position=function(e){let t=tN(e),n=tM(e);if(t&&n)return{start:t,end:n}}(e))}function r_(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&o&&Object.assign(n.properties,rv(o)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function rB(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function rU(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function rH(e,t){let n,r,o,i,l=(n=t||rF,r=new Map,o=new Map,i={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let o=i.one(n[r],e);if(o){if(r&&"break"===n[r-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=rU(o.value)),!Array.isArray(o)&&"element"===o.type)){let e=o.children[0];e&&"text"===e.type&&(e.value=rU(e.value))}Array.isArray(o)?t.push(...o):t.push(o)}}}return t},applyData:r_,definitionById:r,footnoteById:o,footnoteCounts:new Map,footnoteOrder:[],handlers:{...rO,...n.handlers},one:function(e,t){let n=e.type,r=i.handlers[n];if(rN.call(i.handlers,n)&&r)return r(i,e,t);if(i.options.passThrough&&i.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=rv(n);return r.children=i.all(e),r}return rv(e)}return(i.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(rN.call(n,"hProperties")||rN.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)})(i,e,t)},options:n,patch:rR,wrap:rB},rD(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?r:o,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),i),a=l.one(e,void 0),s=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||rS,r=e.options.footnoteBackLabel||rC,o=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[],s=-1;for(;++s<e.footnoteOrder.length;){let o=e.footnoteById.get(e.footnoteOrder[s]);if(!o)continue;let i=e.all(o),l=String(o.identifier).toUpperCase(),u=rw(l.toLowerCase()),c=0,d=[],f=e.footnoteCounts.get(l);for(;void 0!==f&&++c<=f;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(s,c);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(s,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let p=i[i.length-1];if(p&&"element"===p.type&&"p"===p.tagName){let e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...d)}else i.push(...d);let h={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(i,!0)};e.patch(o,h),a.push(h)}if(0!==a.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...rv(l),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:"\n"}]}}(l),u=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return s&&(e4("children"in u),u.children.push({type:"text",value:"\n"},s)),u}function rV(e,t){return e&&"run"in e?async function(n,r){let o=rH(n,{file:r,...t});await e.run(o,r)}:function(n,r){return rH(n,{file:r,...e||t})}}function rq(e){if(e)throw e}var r$=e.i(86182);function rW(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let rK=function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');rX(e);let r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let l=-1,a=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else l<0&&(n=!0,l=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(o=i):(a=-1,o=l));return r===o?o=l:o<0&&(o=e.length),e.slice(r,o)},rG=function(e){let t;if(rX(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},rQ=function(e){let t;rX(e);let n=e.length,r=-1,o=0,i=-1,l=0;for(;n--;){let a=e.codePointAt(n);if(47===a){if(t){o=n+1;break}continue}r<0&&(t=!0,r=n+1),46===a?i<0?i=n:1!==l&&(l=1):i>-1&&(l=-1)}return i<0||r<0||0===l||1===l&&i===r-1&&i===o+1?"":e.slice(i,r)},rJ=function(...e){var t;let n,r,o,i=-1;for(;++i<e.length;)rX(e[i]),e[i]&&(o=void 0===o?e[i]:o+"/"+e[i]);return void 0===o?".":(rX(t=o),n=47===t.codePointAt(0),0!==(r=function(e,t){let n,r,o="",i=0,l=-1,a=0,s=-1;for(;++s<=e.length;){if(s<e.length)n=e.codePointAt(s);else if(47===n)break;else n=47;if(47===n){if(l===s-1||1===a);else if(l!==s-1&&2===a){if(o.length<2||2!==i||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2)){if(o.length>2){if((r=o.lastIndexOf("/"))!==o.length-1){r<0?(o="",i=0):i=(o=o.slice(0,r)).length-1-o.lastIndexOf("/"),l=s,a=0;continue}}else if(o.length>0){o="",i=0,l=s,a=0;continue}}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(l+1,s):o=e.slice(l+1,s),i=s-l-1;l=s,a=0}else 46===n&&a>-1?a++:a=-1}return o}(t,!n)).length||n||(r="."),r.length>0&&47===t.codePointAt(t.length-1)&&(r+="/"),n?"/"+r:r)};function rX(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function rZ(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let rY=["history","path","basename","stem","extname","dirname"];class r0{constructor(e){let t,n;t=e?rZ(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":"/",this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<rY.length;){const e=rY[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)rY.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?rK(this.path):void 0}set basename(e){r2(e,"basename"),r1(e,"basename"),this.path=rJ(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?rG(this.path):void 0}set dirname(e){r4(this.basename,"dirname"),this.path=rJ(e||"",this.basename)}get extname(){return"string"==typeof this.path?rQ(this.path):void 0}set extname(e){if(r1(e,"extname"),r4(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=rJ(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){rZ(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!rZ(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),r2(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?rK(this.path,this.extname):void 0}set stem(e){r2(e,"stem"),r1(e,"stem"),this.path=rJ(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new tH(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function r1(e,t){if(e&&e.includes("/"))throw Error("`"+t+"` cannot be a path: did not expect `/`")}function r2(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function r4(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let r3=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},r9={}.hasOwnProperty;class r5 extends r3{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);!function o(i,...l){let a=e[++n],s=-1;if(i)return void r(i);for(;++s<t.length;)(null===l[s]||void 0===l[s])&&(l[s]=t[s]);t=l,a?(function(e,t){let n;return function(...t){let i,l=e.length>t.length;l&&t.push(r);try{i=e.apply(this,t)}catch(e){if(l&&n)throw e;return r(e)}l||(i&&i.then&&"function"==typeof i.then?i.then(o,r):i instanceof Error?r(i):o(i))};function r(e,...o){n||(n=!0,t(e,...o))}function o(e){r(null,e)}})(a,o)(...l):r(null,...l)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new r5,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data((0,r$.default)(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(oe("data",this.frozen),this.namespace[e]=t,this):r9.call(this.namespace,e)&&this.namespace[e]||void 0:e?(oe("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=or(e),n=this.parser||this.Parser;return r7("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),r7("process",this.parser||this.Parser),r8("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){let i=or(e),l=n.parse(i);function a(e,n){e||!n?o(e):r?r(n):(e4(t,"`done` is defined if `resolve` is not"),t(void 0,n))}n.run(l,i,function(e,t,r){var o,i;if(e||!t||!r)return a(e);let l=n.stringify(t,r);"string"==typeof(o=l)||(i=o)&&"object"==typeof i&&"byteLength"in i&&"byteOffset"in i?r.value=l:r.result=l,a(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),r7("processSync",this.parser||this.Parser),r8("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,rq(e),t=r}),on("processSync","process",n),e4(t,"we either bailed on an error or have a tree"),t}run(e,t,n){ot(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?o(void 0,n):new Promise(o);function o(o,i){e4("function"!=typeof t,"`file` can’t be a `done` anymore, we checked");let l=or(t);r.run(e,l,function(t,r,l){let a=r||e;t?i(t):o?o(a):(e4(n,"`done` is defined if `resolve` is not"),n(void 0,a,l))})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){rq(e),n=t,r=!0}),on("runSync","run",r),e4(n,"we either bailed on an error or have a tree"),n}stringify(e,t){this.freeze();let n=or(t),r=this.compiler||this.Compiler;return r8("stringify",r),ot(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(oe("use",this.frozen),null==e);else if("function"==typeof e)l(e,t);else if("object"==typeof e)Array.isArray(e)?i(e):o(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function o(e){if(!("plugins"in e)&&!("settings"in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");i(e.plugins),e.settings&&(r.settings=(0,r$.default)(!0,r.settings,e.settings))}function i(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;)!function(e){if("function"==typeof e)l(e,[]);else if("object"==typeof e)if(Array.isArray(e)){let[t,...n]=e;l(t,n)}else o(e);else throw TypeError("Expected usable value, not `"+e+"`")}(e[t]);else throw TypeError("Expected a list of plugins, not `"+e+"`")}function l(e,t){let r=-1,o=-1;for(;++r<n.length;)if(n[r][0]===e){o=r;break}if(-1===o)n.push([e,...t]);else if(t.length>0){let[r,...i]=t,l=n[o][1];rW(l)&&rW(r)&&(r=(0,r$.default)(!0,l,r)),n[o]=[e,r,...i]}}}}let r6=new r5().freeze();function r7(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function r8(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function oe(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ot(e){if(!rW(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function on(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function or(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new r0(e)}let oo=[],oi={allowDangerousHtml:!0},ol=/^(https?|ircs?|mailto|xmpp)$/i,oa=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function os(e){var t;let n,o,i,l,a,s=(n=(t=e).rehypePlugins||oo,o=t.remarkPlugins||oo,i=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...oi}:oi,r6().use(rc).use(o).use(rV,i).use(n)),u=(l=e.children||"",a=new r0,"string"==typeof l?a.value=l:e3("Unexpected value `"+l+"` for `children` prop, expected `string`"),a);return function(e,t){let n=t.allowedElements,o=t.allowElement,i=t.components,l=t.disallowedElements,a=t.skipHtml,s=t.unwrapDisallowed,u=t.urlTransform||ou;for(let e of oa)Object.hasOwn(t,e.from)&&e3("Unexpected `"+e.from+"` prop, "+(e.to?"use `"+e.to+"` instead":"remove it")+" (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#"+e.id+"> for more info)");return n&&l&&e3("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),rD(e,function(e,t,r){if("raw"===e.type&&r&&"number"==typeof t)return a?r.children.splice(t,1):r.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in t2)if(Object.hasOwn(t2,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=t2[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=u(String(n||""),t,e))}}if("element"===e.type){let i=n?!n.includes(e.tagName):!!l&&l.includes(e.tagName);if(!i&&o&&"number"==typeof t&&(i=!o(e,t,r)),i&&r&&"number"==typeof t)return s&&e.children?r.children.splice(t,1,...e.children):r.children.splice(t,1),t}}),function(e,t){var n,r,o,i;let l;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let a=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=a,r=t.jsxDEV,l=function(e,t,o,i){let l=Array.isArray(o.children),a=tN(e);return r(t,o,i,l,{columnNumber:a?a.column-1:void 0,fileName:n,lineNumber:a?a.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");o=t.jsx,i=t.jsxs,l=function(e,t,n,r){let l=Array.isArray(n.children)?i:o;return r?l(t,n,r):l(t,n)}}let s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:l,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?tI:tL,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},u=tQ(s,e,void 0);return u&&"string"!=typeof u?u:s.create(e,s.Fragment,{children:u||void 0},void 0)}(e,{Fragment:r.Fragment,components:i,ignoreInvalidStyle:!0,jsx:r.jsx,jsxs:r.jsxs,passKeys:!0,passNode:!0})}(s.runSync(s.parse(u),u),e)}function ou(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return -1===t||-1!==o&&t>o||-1!==n&&t>n||-1!==r&&t>r||ol.test(e.slice(0,t))?e:""}function oc(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,o=n.indexOf(t);for(;-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}let od="phrasing",of=["autolink","link","image","label"];function op(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function oh(e){this.config.enter.autolinkProtocol.call(this,e)}function om(e){this.config.exit.autolinkProtocol.call(this,e)}function og(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];e4("link"===t.type),t.url="http://"+this.sliceSerialize(e)}function oy(e){this.config.exit.autolinkEmail.call(this,e)}function ob(e){this.exit(e)}function ox(e){!function(e,t,n){let r=rE((n||{}).ignore||[]),o=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){var o;let e=n[r];t.push(["string"==typeof(o=e[0])?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(o),"g"):o,function(e){return"function"==typeof e?e:function(){return e}}(e[1])])}return t}(t),i=-1;for(;++i<o.length;)rj(e,"text",l);function l(e,t){let n,l=-1;for(;++l<t.length;){let e=t[l],o=n?n.children:void 0;if(r(e,o?o.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){let n=t[t.length-1],r=o[i][0],l=o[i][1],a=0,s=n.children.indexOf(e),u=!1,c=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,o={index:d.index,input:d.input,stack:[...t,e]},i=l(...d,o);if("string"==typeof i&&(i=i.length>0?{type:"text",value:i}:void 0),!1===i?r.lastIndex=n+1:(a!==n&&c.push({type:"text",value:e.value.slice(a,n)}),Array.isArray(i)?c.push(...i):i&&c.push(i),a=n+d[0].length,u=!0),!r.global)break;d=r.exec(e.value)}return u?(a<e.value.length&&c.push({type:"text",value:e.value.slice(a)}),n.children.splice(s,1,...c)):c=[e],s+c.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ok],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,ov]],{ignore:["link","linkReference"]})}function ok(e,t,n,r,o){let i,l="";if(!ow(o))return!1;if(/^w/i.test(t)&&(n=t+n,t="",l="http://"),(i=n.split(".")).length<2||i[i.length-1]&&(/_/.test(i[i.length-1])||!/[a-zA-Z\d]/.test(i[i.length-1]))||i[i.length-2]&&(/_/.test(i[i.length-2])||!/[a-zA-Z\d]/.test(i[i.length-2])))return!1;let a=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")"),o=oc(e,"("),i=oc(e,")");for(;-1!==r&&o>i;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),i++;return[e,n]}(n+r);if(!a[0])return!1;let s={type:"link",title:null,url:l+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function ov(e,t,n,r){return!(!ow(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function ow(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||nf(n)||nd(n))&&(!t||47!==n)}function oS(){this.buffer()}function oC(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function oE(){this.buffer()}function oz(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function oT(e){let t=this.resume(),n=this.stack[this.stack.length-1];e4("footnoteReference"===n.type),n.identifier=nG(this.sliceSerialize(e)).toLowerCase(),n.label=t}function oA(e){this.exit(e)}function oj(e){let t=this.resume(),n=this.stack[this.stack.length-1];e4("footnoteDefinition"===n.type),n.identifier=nG(this.sliceSerialize(e)).toLowerCase(),n.label=t}function oD(e){this.exit(e)}function oP(e,t,n,r){let o=n.createTracker(r),i=o.move("[^"),l=n.enter("footnoteReference"),a=n.enter("reference");return i+=o.move(n.safe(n.associationId(e),{after:"]",before:i})),a(),l(),i+=o.move("]")}function oL(e,t,n){return 0===t?e:oI(e,t,n)}function oI(e,t,n){return(n?"":" ")+e}oP.peek=function(){return"["};let oO=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function oM(e){this.enter({type:"delete",children:[]},e)}function oN(e){this.exit(e)}function oF(e,t,n,r){let o=n.createTracker(r),i=n.enter("strikethrough"),l=o.move("~~");return l+=n.containerPhrasing(e,{...o.current(),before:l,after:"~"}),l+=o.move("~~"),i(),l}function oR(e){return e.length}function o_(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:114*(82===t||114===t)}oF.peek=function(){return"~"};function oB(e,t,n){let r=e.value||"",o="`",i=-1;for(;RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){let e,t=n.unsafe[i],o=n.compilePattern(t);if(t.atBreak)for(;e=o.exec(r);){let t=e.index;10===r.charCodeAt(t)&&13===r.charCodeAt(t-1)&&t--,r=r.slice(0,t)+" "+r.slice(e.index+1)}}return o+r+o}oB.peek=function(){return"`"};rE(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);let oU=function(e,t,n,r){let o=function(e){let t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n),i=n.bulletCurrent||function(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(n);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i);let l=i.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(l=4*Math.ceil(l/4));let a=n.createTracker(r);a.move(i+" ".repeat(l-i.length)),a.shift(l);let s=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,a.current()),function(e,t,n){return t?(n?"":" ".repeat(l))+e:(n?i:i+" ".repeat(l-i.length))+e});return s(),u};function oH(e){let t=e._align;e4(t,"expected `_align` on table"),this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function oV(e){this.exit(e),this.data.inTable=void 0}function oq(e){this.enter({type:"tableRow",children:[]},e)}function o$(e){this.exit(e)}function oW(e){this.enter({type:"tableCell",children:[]},e)}function oK(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,oG));let n=this.stack[this.stack.length-1];e4("inlineCode"===n.type),n.value=t,this.exit(e)}function oG(e,t){return"|"===t?t:e}function oQ(e){let t=this.stack[this.stack.length-2];e4("listItem"===t.type),t.checked="taskListCheckValueChecked"===e.type}function oJ(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];e4("paragraph"===e.type);let n=e.children[0];if(n&&"text"===n.type){let r,o=t.children,i=-1;for(;++i<o.length;){let e=o[i];if("paragraph"===e.type){r=e;break}}r===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function oX(e,t,n,r){let o=e.children[0],i="boolean"==typeof e.checked&&o&&"paragraph"===o.type,l="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);i&&a.move(l);let s=oU(e,t,n,{...r,...a.current()});return i&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+l})),s}let oZ={tokenize:function(e,t,n){let r=0;return function t(i){return(87===i||119===i)&&r<3?(r++,e.consume(i),t):46===i&&3===r?(e.consume(i),o):n(i)};function o(e){return null===e?n(e):t(e)}},partial:!0},oY={tokenize:function(e,t,n){let r,o,i;return l;function l(t){return 46===t||95===t?e.check(o1,s,a)(t):null===t||nu(t)||nf(t)||45!==t&&nd(t)?s(t):(i=!0,e.consume(t),l)}function a(t){return 95===t?r=!0:(o=r,r=void 0),e.consume(t),l}function s(e){return o||r||!i?n(e):t(e)}},partial:!0},o0={tokenize:function(e,t){let n=0,r=0;return o;function o(l){return 40===l?(n++,e.consume(l),o):41===l&&r<n?i(l):33===l||34===l||38===l||39===l||41===l||42===l||44===l||46===l||58===l||59===l||60===l||63===l||93===l||95===l||126===l?e.check(o1,t,i)(l):null===l||nu(l)||nf(l)?t(l):(e.consume(l),o)}function i(t){return 41===t&&r++,e.consume(t),o}},partial:!0},o1={tokenize:function(e,t,n){return r;function r(l){return 33===l||34===l||39===l||41===l||42===l||44===l||46===l||58===l||59===l||63===l||95===l||126===l?(e.consume(l),r):38===l?(e.consume(l),i):93===l?(e.consume(l),o):60===l||null===l||nu(l)||nf(l)?t(l):n(l)}function o(e){return null===e||40===e||91===e||nu(e)||nf(e)?t(e):r(e)}function i(t){return nt(t)?function t(o){return 59===o?(e.consume(o),r):nt(o)?(e.consume(o),t):n(o)}(t):n(t)}},partial:!0},o2={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return nn(e)?n(e):t(e)}},partial:!0},o4={name:"wwwAutolink",tokenize:function(e,t,n){let r=this;return function(t){return 87!==t&&119!==t||!o7.call(r,r.previous)||ir(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(oZ,e.attempt(oY,e.attempt(o0,o),n),n)(t))};function o(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:o7},o3={name:"protocolAutolink",tokenize:function(e,t,n){let r=this,o="",i=!1;return function(t){return(72===t||104===t)&&o8.call(r,r.previous)&&!ir(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(t),e.consume(t),l):n(t)};function l(t){if(nt(t)&&o.length<5)return o+=String.fromCodePoint(t),e.consume(t),l;if(58===t){let n=o.toLowerCase();if("http"===n||"https"===n)return e.consume(t),a}return n(t)}function a(t){return 47===t?(e.consume(t),i)?s:(i=!0,a):n(t)}function s(t){return null===t||no(t)||nu(t)||nf(t)||nd(t)?n(t):e.attempt(oY,e.attempt(o0,u),n)(t)}function u(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:o8},o9={name:"emailAutolink",tokenize:function(e,t,n){let r,o,i=this;return function(t){return!it(t)||!ie.call(i,i.previous)||ir(i.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(r){return it(r)?(e.consume(r),t):64===r?(e.consume(r),l):n(r)}(t))};function l(t){return 46===t?e.check(o2,s,a)(t):45===t||95===t||nn(t)?(o=!0,e.consume(t),l):s(t)}function a(t){return e.consume(t),r=!0,l}function s(l){return o&&r&&nt(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(l)):n(l)}},previous:ie},o5={},o6=48;for(;o6<123;)o5[o6]=o9,58==++o6?o6=65:91===o6&&(o6=97);function o7(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||nu(e)}function o8(e){return!nt(e)}function ie(e){return!(47===e||it(e))}function it(e){return 43===e||45===e||46===e||95===e||nn(e)}function ir(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}o5[43]=o9,o5[45]=o9,o5[46]=o9,o5[95]=o9,o5[72]=[o9,o3],o5[104]=[o9,o3],o5[87]=[o9,o4],o5[119]=[o9,o4];let io={tokenize:function(e,t,n){let r=this;return nh(e,function(e){let o=r.events[r.events.length-1];return o&&"gfmFootnoteDefinitionIndent"===o[1].type&&4===o[2].sliceSerialize(o[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function ii(e,t,n){let r,o=this,i=o.events.length,l=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);for(;i--;){let e=o.events[i][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!r||!r._balanced)return n(i);let a=nG(o.sliceSerialize({start:r.end,end:o.now()}));return 94===a.codePointAt(0)&&l.includes(a.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)):n(i)}}function il(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;let i={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function ia(e,t,n){let r,o=this,i=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]),l=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),a};function a(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(a){if(l>999||93===a&&!r||null===a||91===a||nu(a))return n(a);if(93===a){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return i.includes(nG(o.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(a)}return nu(a)||(r=!0),l++,e.consume(a),92===a?u:s}function u(t){return 91===t||92===t||93===t?(e.consume(t),l++,s):s(t)}}function is(e,t,n){let r,o,i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),a=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),s};function s(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(t)}function u(t){if(a>999||93===t&&!o||null===t||91===t||nu(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=nG(i.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return nu(t)||(o=!0),a++,e.consume(t),92===t?c:u}function c(t){return 91===t||92===t||93===t?(e.consume(t),a++,u):u(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),l.includes(r)||l.push(r),nh(e,f,"gfmFootnoteDefinitionWhitespace")):n(t)}function f(e){return t(e)}}function iu(e,t,n){return e.check(nb,t,e.attempt(io,t,n))}function ic(e){e.exit("gfmFootnoteDefinition")}class id{constructor(){this.map=[],this.index=new Map}add(e,t,n){!function(e,t,n,r){if(0===n&&0===r.length)return;let o=e.index.get(t);if(o){o[1]+=n,o[2].push(...r);return}let i=[t,n,r];e.map.push(i),e.index.set(t,i)}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}}function ip(e,t,n){let r,o=this,i=0,l=0;return function(e){let t=o.events.length-1;for(;t>-1;){let{type:e}=o.events[t][1];if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?o.events[t][1].type:null,i="tableHead"===r||"tableRow"===r?b:a;return i===b&&o.parser.lazy[o.now().line]?n(e):i(e)};function a(t){var n;return e.enter("tableHead"),e.enter("tableRow"),124===(n=t)||(r=!0,l+=1),s(n)}function s(t){return null===t?n(t):ns(t)?l>1?(l=0,o.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):nc(t)?nh(e,s,"whitespace")(t):(l+=1,r&&(r=!1,i+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,s):(e.enter("data"),u(t))}function u(t){return null===t||124===t||nu(t)?(e.exit("data"),s(t)):(e.consume(t),92===t?c:u)}function c(t){return 92===t||124===t?(e.consume(t),u):u(t)}function d(t){return(o.interrupt=!1,o.parser.lazy[o.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,nc(t))?nh(e,f,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):f(t)}function f(t){return 45===t||58===t?h(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):n(t)}function p(t){return nc(t)?nh(e,h,"whitespace")(t):h(t)}function h(t){return 58===t?(l+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(l+=1,m(t)):null===t||ns(t)?y(t):n(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(n))}(t)):n(t)}function g(t){return nc(t)?nh(e,y,"whitespace")(t):y(t)}function y(o){if(124===o)return f(o);if(null===o||ns(o))return r&&i===l?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(o)):n(o);return n(o)}function b(t){return e.enter("tableRow"),x(t)}function x(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),x):null===n||ns(n)?(e.exit("tableRow"),t(n)):nc(n)?nh(e,x,"whitespace")(n):(e.enter("data"),k(n))}function k(t){return null===t||124===t||nu(t)?(e.exit("data"),x(t)):(e.consume(t),92===t?v:k)}function v(t){return 92===t||124===t?(e.consume(t),k):k(t)}}function ih(e,t){let n,r,o,i=-1,l=!0,a=0,s=[0,0,0,0],u=[0,0,0,0],c=!1,d=0,f=new id;for(;++i<e.length;){let p=e[i],h=p[1];"enter"===p[0]?"tableHead"===h.type?(c=!1,0!==d&&(ig(f,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(i,0,[["enter",n,t]])):"tableRow"===h.type||"tableDelimiterRow"===h.type?(l=!0,o=void 0,s=[0,0,0,0],u=[0,i+1,0,0],c&&(c=!1,r={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(i,0,[["enter",r,t]])),a="tableDelimiterRow"===h.type?2:r?3:1):a&&("data"===h.type||"tableDelimiterMarker"===h.type||"tableDelimiterFiller"===h.type)?(l=!1,0===u[2]&&(0!==s[1]&&(u[0]=u[1],o=im(f,t,s,a,void 0,o),s=[0,0,0,0]),u[2]=i)):"tableCellDivider"===h.type&&(l?l=!1:(0!==s[1]&&(u[0]=u[1],o=im(f,t,s,a,void 0,o)),u=[(s=u)[1],i,0,0])):"tableHead"===h.type?(c=!0,d=i):"tableRow"===h.type||"tableDelimiterRow"===h.type?(d=i,0!==s[1]?(u[0]=u[1],o=im(f,t,s,a,i,o)):0!==u[1]&&(o=im(f,t,u,a,i,o)),a=0):a&&("data"===h.type||"tableDelimiterMarker"===h.type||"tableDelimiterFiller"===h.type)&&(u[3]=i)}for(0!==d&&ig(f,t,d,n,r),f.consume(t.events),i=-1;++i<t.events.length;){let e=t.events[i];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=function(e,t){let n=!1,r=[];for(;t<e.length;){let o=e[t];if(n){if("enter"===o[0])"tableContent"===o[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===o[1].type){if("tableDelimiterMarker"===e[t-1][1].type){let e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===o[1].type)break}else"enter"===o[0]&&"tableDelimiterRow"===o[1].type&&(n=!0);t+=1}return r}(t.events,i))}return e}function im(e,t,n,r,o,i){0!==n[0]&&(i.end=Object.assign({},iy(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));let l=iy(t.events,n[1]);if(i={type:1===r?"tableHeader":2===r?"tableDelimiter":"tableData",start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",i,t]]),0!==n[2]){let o=iy(t.events,n[2]),i=iy(t.events,n[3]),l={type:"tableContent",start:Object.assign({},o),end:Object.assign({},i)};if(e.add(n[2],0,[["enter",l,t]]),2!==r){let r=t.events[n[2]],o=t.events[n[3]];if(r[1].end=Object.assign({},o[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",l,t]])}return void 0!==o&&(i.end=Object.assign({},iy(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function ig(e,t,n,r,o){let i=[],l=iy(t.events,n);o&&(o.end=Object.assign({},l),i.push(["exit",o,t])),r.end=Object.assign({},l),i.push(["exit",r,t]),e.add(n+1,0,i)}function iy(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let ib={name:"tasklistCheck",tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),o):n(t)};function o(t){return nu(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),i):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),i):n(t)}function i(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):n(t)}function l(r){return ns(r)?t(r):nc(r)?e.check({tokenize:ix},t,n)(r):n(r)}}};function ix(e,t,n){return nh(e,function(e){return null===e?n(e):t(e)},"whitespace")}let ik={};function iv(e){let t,n,r,o=e||ik,i=this.data(),l=i.micromarkExtensions||(i.micromarkExtensions=[]),a=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),s=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);l.push(ne([{text:o5},{document:{91:{name:"gfmFootnoteDefinition",tokenize:is,continuation:{tokenize:iu},exit:ic}},text:{91:{name:"gfmFootnoteCall",tokenize:ia},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:ii,resolveTo:il}}},(t=(o||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,r){let o=this.previous,i=this.events,l=0;return function(a){return 126===o&&"characterEscape"!==i[i.length-1][1].type?r(a):(e.enter("strikethroughSequenceTemporary"),function i(a){let s=nP(o);if(126===a)return l>1?r(a):(e.consume(a),l++,i);if(l<2&&!t)return r(a);let u=e.exit("strikethroughSequenceTemporary"),c=nP(a);return u._open=!c||2===c&&!!s,u._close=!s||2===s&&!!c,n(a)}(a))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let o={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},i={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},l=[["enter",o,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",i,t]],a=t.parser.constructs.insideSpan.null;a&&t6(l,l.length,0,nL(a,e.slice(r+1,n),t)),t6(l,l.length,0,[["exit",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",o,t]]),t6(e,r-1,n-r+3,l),n=r+l.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}},null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}),{flow:{null:{name:"table",tokenize:ip,resolveAll:ih}}},{text:{91:ib}}])),a.push([{transforms:[ox],enter:{literalAutolink:op,literalAutolinkEmail:oh,literalAutolinkHttp:oh,literalAutolinkWww:oh},exit:{literalAutolink:ob,literalAutolinkEmail:oy,literalAutolinkHttp:om,literalAutolinkWww:og}},{enter:{gfmFootnoteCallString:oS,gfmFootnoteCall:oC,gfmFootnoteDefinitionLabelString:oE,gfmFootnoteDefinition:oz},exit:{gfmFootnoteCallString:oT,gfmFootnoteCall:oA,gfmFootnoteDefinitionLabelString:oj,gfmFootnoteDefinition:oD}},{canContainEols:["delete"],enter:{strikethrough:oM},exit:{strikethrough:oN}},{enter:{table:oH,tableData:oW,tableHeader:oW,tableRow:oq},exit:{codeText:oK,table:oV,tableData:o$,tableHeader:o$,tableRow:o$}},{exit:{taskListCheckValueChecked:oQ,taskListCheckValueUnchecked:oQ,paragraph:oJ}}]),s.push({extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:od,notInConstruct:of},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:od,notInConstruct:of},{character:":",before:"[ps]",after:"\\/",inConstruct:od,notInConstruct:of}]},(r=!1,o&&o.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:function(e,t,n,o){let i=n.createTracker(o),l=i.move("[^"),a=n.enter("footnoteDefinition"),s=n.enter("label");return l+=i.move(n.safe(n.associationId(e),{before:l,after:"]"})),s(),l+=i.move("]:"),e.children&&e.children.length>0&&(i.shift(4),l+=i.move((r?"\n":" ")+n.indentLines(n.containerFlow(e,i.current()),r?oI:oL))),a(),l},footnoteReference:oP},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:oO}],handlers:{delete:oF}},function(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=oB(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return a(function(e,t,n){let r=e.children,o=-1,i=[],l=t.enter("table");for(;++o<r.length;)i[o]=s(r[o],t,n);return l(),i}(e,n,r),e.align)},tableCell:l,tableRow:function(e,t,n,r){let o=a([s(e,n,r)]);return o.slice(0,o.indexOf("\n"))}}};function l(e,t,n,r){let o=n.enter("tableCell"),l=n.enter("phrasing"),a=n.containerPhrasing(e,{...r,before:i,after:i});return l(),o(),a}function a(e,t){return function(e,t){let n=t||{},r=(n.align||[]).concat(),o=n.stringLength||oR,i=[],l=[],a=[],s=[],u=0,c=-1;for(;++c<e.length;){let t=[],r=[],i=-1;for(e[c].length>u&&(u=e[c].length);++i<e[c].length;){var d;let l=null==(d=e[c][i])?"":String(d);if(!1!==n.alignDelimiters){let e=o(l);r[i]=e,(void 0===s[i]||e>s[i])&&(s[i]=e)}t.push(l)}l[c]=t,a[c]=r}let f=-1;if("object"==typeof r&&"length"in r)for(;++f<u;)i[f]=o_(r[f]);else{let e=o_(r);for(;++f<u;)i[f]=e}f=-1;let p=[],h=[];for(;++f<u;){let e=i[f],t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let o=!1===n.alignDelimiters?1:Math.max(1,s[f]-t.length-r.length),l=t+"-".repeat(o)+r;!1!==n.alignDelimiters&&((o=t.length+o+r.length)>s[f]&&(s[f]=o),h[f]=o),p[f]=l}l.splice(1,0,p),a.splice(1,0,h),c=-1;let m=[];for(;++c<l.length;){let e=l[c],t=a[c];f=-1;let r=[];for(;++f<u;){let o=e[f]||"",l="",a="";if(!1!==n.alignDelimiters){let e=s[f]-(t[f]||0),n=i[f];114===n?l=" ".repeat(e):99===n?e%2?(l=" ".repeat(e/2+.5),a=" ".repeat(e/2-.5)):a=l=" ".repeat(e/2):a=" ".repeat(e)}!1===n.delimiterStart||f||r.push("|"),!1!==n.padding&&(!1!==n.alignDelimiters||""!==o)&&(!1!==n.delimiterStart||f)&&r.push(" "),!1!==n.alignDelimiters&&r.push(l),r.push(o),!1!==n.alignDelimiters&&r.push(a),!1!==n.padding&&r.push(" "),(!1!==n.delimiterEnd||f!==u-1)&&r.push("|")}m.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return m.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:o})}function s(e,t,n){let r=e.children,o=-1,i=[],a=t.enter("tableRow");for(;++o<r.length;)i[o]=l(r[o],e,t,n);return a(),i}}(o),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:oX}}]})}let iw={h1:({...e})=>(0,r.jsx)("h1",{className:"font-heading mt-8 mb-3 text-xl font-semibold first:mt-0",...e}),h2:({...e})=>(0,r.jsx)("h2",{className:"font-heading mt-8 mb-3 text-base font-semibold first:mt-0",...e}),h3:({...e})=>(0,r.jsx)("h3",{className:"font-heading mt-6 mb-2 text-sm font-semibold first:mt-0",...e}),h4:({...e})=>(0,r.jsx)("h4",{className:"font-heading text-muted-foreground mt-6 mb-2 text-sm font-semibold first:mt-0",...e}),p:({...e})=>(0,r.jsx)("p",{className:"my-3 leading-relaxed",...e}),ul:({...e})=>(0,r.jsx)("ul",{className:"my-3 list-disc space-y-1 pl-5",...e}),ol:({...e})=>(0,r.jsx)("ol",{className:"my-3 list-decimal space-y-1 pl-5",...e}),li:({...e})=>(0,r.jsx)("li",{className:"leading-relaxed",...e}),a:({...e})=>(0,r.jsx)("a",{className:"text-foreground underline underline-offset-4 hover:no-underline",target:"_blank",rel:"noreferrer noopener",...e}),blockquote:({...e})=>(0,r.jsx)("blockquote",{className:"border-border text-muted-foreground my-4 border-l-2 pl-4 italic",...e}),hr:({...e})=>(0,r.jsx)("hr",{className:"border-border my-6",...e}),pre:({...e})=>(0,r.jsx)("pre",{className:"bg-muted/60 border-border my-4 overflow-x-auto border p-3 font-mono text-xs [&>code]:bg-transparent [&>code]:p-0 [&>code]:text-inherit",...e}),code:({...e})=>(0,r.jsx)("code",{className:"bg-muted border-border/60 border px-1 py-0.5 font-mono text-[0.85em]",...e}),table:({...e})=>(0,r.jsx)("div",{className:"my-4 overflow-x-auto",children:(0,r.jsx)("table",{className:"w-full border-collapse text-xs",...e})}),th:({...e})=>(0,r.jsx)("th",{className:"border-border border px-2 py-1 text-left font-semibold",...e}),td:({...e})=>(0,r.jsx)("td",{className:"border-border border px-2 py-1 align-top",...e}),img:({...e})=>(0,r.jsx)("img",{className:"my-4 max-w-full",alt:"",...e})};function iS({children:e}){return(0,r.jsx)("div",{className:"font-sans text-sm",children:(0,r.jsx)(os,{remarkPlugins:[iv],components:iw,children:e})})}function iC(e){let t=window.location.origin;return`${t}${e}`}async function iE(e){try{let t=await e.json(),n=t?.error;if("string"==typeof n)return n}catch{}return`${e.status} ${e.statusText}`}async function iz(e){let t=e&&e.length>0?`?${e.map(e=>`roots=${encodeURIComponent(e)}`).join("&")}`:"",n=await fetch(iC(`/api/scan${t}`));if(!n.ok)throw Error(await iE(n));return await n.json()}async function iT(e){let t=await fetch(iC("/api/open"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:e})});if(!t.ok)throw Error(await iE(t))}let iA=/^---\r?\n[\s\S]*?\r?\n---\r?\n?/,ij=new Set(["name","description"]),iD=["global","project"];function iP(e){if(!e.projectRoot)return;let t=e.projectRoot.split(/[/\\]/).filter(Boolean);return t[t.length-1]}function iL({active:e,className:t,...n}){return(0,r.jsx)("button",{type:"button","aria-pressed":e,className:eZ("focus-visible:ring-ring/40 border px-2 py-1 text-[10px] font-semibold tracking-widest uppercase transition-colors outline-none focus-visible:ring-2",e?"border-transparent bg-primary text-primary-foreground":"border-border text-muted-foreground hover:bg-muted hover:text-foreground",t),...n})}e.s(["Library",0,function(){let[e,t]=o.useState(null),[n,i]=o.useState("loading"),[l,a]=o.useState(null),[s,u]=o.useState(""),[c,d]=o.useState([]),[f,p]=o.useState([]),[h,m]=o.useState(null),[g,y]=o.useState(null),b=o.useCallback(async()=>{i("loading"),a(null);try{t(await iz()),i("ready")}catch(e){a(e instanceof Error?e.message:String(e)),i("error")}},[]);o.useEffect(()=>{b()},[b]);let x=o.useMemo(()=>{let t=new Map;for(let n of e?.items??[]){let e=t.get(n.format);e?e.count++:t.set(n.format,{format:n.format,label:n.formatLabel,count:1})}return[...t.values()].sort((e,t)=>e.label.localeCompare(t.label))},[e]),k=o.useMemo(()=>{let t=s.trim().toLowerCase();return(e?.items??[]).filter(e=>(!(c.length>0)||!!c.includes(e.format))&&(!(f.length>0)||!!f.includes(e.scope))&&(0===t.length||e.name.toLowerCase().includes(t)||(e.description?.toLowerCase().includes(t)??!1)||e.content.toLowerCase().includes(t)))},[e,s,c,f]),v=o.useMemo(()=>k.find(e=>e.id===h)??k[0]??null,[k,h]),w=o.useMemo(()=>v?v.content.replace(iA,"").trim():"",[v]),S=o.useMemo(()=>{var e;return(e=v?.metadata)?Object.entries(e).filter(([e,t])=>!ij.has(e)&&""!==t&&void 0!==t):[]},[v]),C=async e=>{y(null);try{await iT(e)}catch(t){y({path:e,message:t instanceof Error?t.message:String(t)})}};if("error"===n)return(0,r.jsxs)("main",{className:"flex h-svh flex-col items-center justify-center gap-4 px-6 text-center",children:[(0,r.jsx)("h1",{className:"font-heading text-lg font-semibold",children:"Can't reach the capsa server"}),(0,r.jsxs)("p",{className:"text-muted-foreground max-w-md font-sans text-sm",children:["The page loaded but ",(0,r.jsx)("code",{className:"font-mono",children:"/api/scan"})," did not answer. If you closed the terminal, start it again with ",(0,r.jsx)("code",{className:"font-mono",children:"npx capsa"}),"."]}),l&&(0,r.jsx)("p",{className:"text-muted-foreground border-border max-w-md border px-3 py-2 font-mono text-xs break-all",children:l}),(0,r.jsx)(e0,{size:"sm",variant:"outline",onClick:()=>void b(),children:"Try again"})]});let E=null!==e;return(0,r.jsxs)("main",{className:"flex h-svh flex-col",children:[(0,r.jsxs)("header",{className:"border-border flex shrink-0 flex-wrap items-center gap-x-4 gap-y-2 border-b px-4 py-3",children:[(0,r.jsx)("h1",{className:"font-heading text-sm font-semibold tracking-[0.2em] uppercase",children:"capsa"}),(0,r.jsx)("p",{className:"text-muted-foreground text-xs",children:"loading"!==n||E?e?[`${e.items.length} item${1===e.items.length?"":"s"}`,`${e.durationMs} ms`,`${e.scannedRoots.length} root${1===e.scannedRoots.length?"":"s"}`,e.issues.length>0?`${e.issues.length} skipped`:null].filter(Boolean).join(" · "):null:"scanning…"}),(0,r.jsx)(e0,{size:"xs",variant:"outline",className:"ml-auto",disabled:"loading"===n,onClick:()=>void b(),children:"loading"===n?"Scanning…":"Rescan"})]}),(0,r.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col md:flex-row",children:[(0,r.jsxs)("aside",{className:"border-border flex max-h-[45vh] min-h-0 flex-col border-b md:max-h-none md:w-80 md:shrink-0 md:border-r md:border-b-0 lg:w-96",children:[(0,r.jsxs)("div",{className:"border-border shrink-0 space-y-2 border-b px-4 py-3",children:[(0,r.jsx)("input",{type:"search",value:s,onChange:e=>u(e.target.value),placeholder:"Search name, description, content…","aria-label":"Search",className:"border-border bg-background placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/30 h-9 w-full border px-2 text-xs outline-none focus-visible:ring-2"}),(x.length>1||c.length>0)&&(0,r.jsx)("div",{className:"flex flex-wrap gap-1",children:x.map(({format:e,label:t,count:n})=>(0,r.jsxs)(iL,{active:c.includes(e),onClick:()=>d(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]),children:[t," ",(0,r.jsx)("span",{className:"opacity-60",children:n})]},e))}),(0,r.jsx)("div",{className:"flex flex-wrap gap-1",children:iD.map(e=>(0,r.jsx)(iL,{active:f.includes(e),onClick:()=>p(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]),children:e},e))})]}),(0,r.jsxs)("ul",{className:"min-h-0 flex-1 overflow-y-auto",children:[k.map(e=>{let t=iP(e),n=e.id===v?.id;return(0,r.jsx)("li",{children:(0,r.jsxs)("button",{type:"button",onClick:()=>m(e.id),"aria-current":n,className:eZ("border-border w-full border-b px-4 py-3 text-left transition-colors outline-none",n?"bg-muted":"hover:bg-muted/50 focus-visible:bg-muted/50"),children:[(0,r.jsx)("span",{className:"block truncate text-sm font-medium",children:e.name}),(0,r.jsxs)("span",{className:"mt-1.5 flex flex-wrap items-center gap-1",children:[(0,r.jsx)(e2,{variant:"outline",children:e.formatLabel}),(0,r.jsx)(e2,{variant:"global"===e.scope?"accent":"default",children:e.scope}),t&&(0,r.jsx)("span",{className:"text-muted-foreground min-w-0 truncate text-[11px]",children:t})]})]})},e.id)}),0===k.length&&"loading"!==n&&(0,r.jsx)("li",{className:"px-4 py-8",children:e&&e.items.length>0?(0,r.jsx)("p",{className:"text-muted-foreground font-sans text-sm",children:"Nothing matches these filters."}):(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)("p",{className:"text-sm font-medium",children:"No items found"}),(0,r.jsxs)("p",{className:"text-muted-foreground font-sans text-xs leading-relaxed",children:["Nothing was discovered in the scanned roots. Run"," ",(0,r.jsx)("code",{className:"font-mono",children:"capsa scan --verbose"})," in a terminal to see which paths were skipped and why."]})]})})]})]}),(0,r.jsx)("section",{className:"min-h-0 flex-1 overflow-y-auto",children:v?(0,r.jsxs)("article",{className:"mx-auto max-w-3xl px-6 py-6",children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[(0,r.jsx)(e2,{variant:"outline",children:v.formatLabel}),(0,r.jsx)(e2,{variant:"global"===v.scope?"accent":"default",children:v.scope}),iP(v)&&(0,r.jsx)(e2,{children:iP(v)})]}),(0,r.jsx)("h2",{className:"font-heading mt-3 text-2xl font-semibold break-words",children:v.name}),v.description&&(0,r.jsx)("p",{className:"text-muted-foreground mt-2 font-sans text-sm leading-relaxed",children:v.description}),(0,r.jsxs)("div",{className:"mt-4",children:[(0,r.jsxs)("button",{type:"button",onClick:()=>void C(v.path),title:"Open in your editor",className:"border-border hover:bg-muted focus-visible:ring-ring/40 group w-full border px-3 py-2 text-left font-mono text-xs break-all transition-colors outline-none focus-visible:ring-2",children:[v.path,(0,r.jsx)("span",{className:"text-muted-foreground group-hover:text-foreground mt-1 block text-[10px] tracking-widest uppercase",children:"Open in editor"})]}),g?.path===v.path&&(0,r.jsx)("p",{className:"text-destructive mt-2 font-sans text-xs",children:g.message})]}),S.length>0&&(0,r.jsx)("dl",{className:"border-border mt-4 grid grid-cols-[auto_1fr] gap-x-4 gap-y-1 border p-3 text-xs",children:S.map(([e,t])=>(0,r.jsxs)(o.Fragment,{children:[(0,r.jsx)("dt",{className:"text-muted-foreground tracking-widest uppercase",children:e}),(0,r.jsx)("dd",{className:"min-w-0 break-words",children:null==t?"—":Array.isArray(t)?t.map(e=>"string"==typeof e?e:JSON.stringify(e)).join(", "):"object"==typeof t?JSON.stringify(t):String(t)})]},e))}),(0,r.jsx)("hr",{className:"border-border my-6"}),w.length>0?(0,r.jsx)(iS,{children:w}):(0,r.jsx)("p",{className:"text-muted-foreground font-sans text-sm",children:"This file has no content beyond its frontmatter."})]}):(0,r.jsx)("div",{className:"flex h-full items-center justify-center px-6 py-16",children:(0,r.jsx)("p",{className:"text-muted-foreground font-sans text-sm",children:"loading"===n?"Scanning your machine…":"Select an item to read it."})})})]})]})}],19778)}]);
|