@wangcansun/cc-config 1.2.2 → 1.3.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/cli.mjs +12 -2
- package/dashboard/dist/client/assets/activity-4TqyD_rE.js +1 -0
- package/dashboard/dist/client/assets/{commands-DhNv8XVR.js → commands-DEkiXZYl.js} +1 -1
- package/dashboard/dist/client/assets/dashboard-kD72rFaQ.js +1 -0
- package/dashboard/dist/client/assets/{detail-panel-C8SGLgm-.js → detail-panel-BIvsI61i.js} +1 -1
- package/dashboard/dist/client/assets/{header-CBzSNzdI.js → header-BTV9BL6u.js} +1 -1
- package/dashboard/dist/client/assets/{index-CaDf51H6.js → index-C8Brdl4F.js} +2 -2
- package/dashboard/dist/client/assets/{index-CFEz1CGb.js → index-CUdpRxTZ.js} +1 -1
- package/dashboard/dist/client/assets/{markdown-viewer-Bj8nSOSJ.js → markdown-viewer-Bcu9HM71.js} +3 -3
- package/dashboard/dist/client/assets/{mcp-BX69kbwu.js → mcp-DrHxDxfw.js} +1 -1
- package/dashboard/dist/client/assets/{plugins-BslRzmVr.js → plugins-husUl0t4.js} +1 -1
- package/dashboard/dist/client/assets/{profiles-CfOCpDPJ.js → profiles-tCUJYeeT.js} +1 -1
- package/dashboard/dist/client/assets/{recommended-BAj0agKu.js → recommended-Brh5GAZB.js} +1 -1
- package/dashboard/dist/client/assets/{search-box-CqaIZ9mR.js → search-box-CO7338GK.js} +1 -1
- package/dashboard/dist/client/assets/{select-BtWQJMup.js → select-BdEpCEBk.js} +1 -1
- package/dashboard/dist/client/assets/{settings-CicCcNf_.js → settings-DpddxKm5.js} +1 -1
- package/dashboard/dist/client/assets/{skills-DML4G4BP.js → skills-BvLEIHVX.js} +1 -1
- package/dashboard/dist/client/assets/{tag-Q3V7Jugn.js → tag-CkZkoVAp.js} +1 -1
- package/dashboard/dist/client/index.html +1 -1
- package/dashboard/dist/server.mjs +12 -2
- package/package.json +1 -1
- package/dashboard/dist/client/assets/activity-DS5YBWMm.js +0 -1
- package/dashboard/dist/client/assets/dashboard-DIyDYrl6.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as ee,c as Wn,p as te,r as En,s as de,b as ue,d as hn,e as Sr,m as _,f as B,g as Er,h as Cr,i as fn,j as T,k as ne,n as Ce,l as Je,o as Oe,q as Ir,t as Tr,v as Ot,u as Pr}from"./markdown-viewer-Bj8nSOSJ.js";import{O as Xe,P as _t,r as He,j as $e}from"./index-CaDf51H6.js";const Yn=document.createElement("i");function Cn(e){const n="&"+e+";";Yn.innerHTML=n;const t=Yn.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function Nt(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}const Ar=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function vr(e){return e.replace(Ar,zr)}function zr(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),l=i===120||i===88;return Nt(t.slice(l?2:1),l?16:10)}return Cn(t)||e}function Te(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const l=e.charCodeAt(t);let o="";if(l===37&&ee(e.charCodeAt(t+1))&&ee(e.charCodeAt(t+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const a=e.charCodeAt(t+1);l<56320&&a>56319&&a<57344?(o=String.fromCharCode(l,a),i=1):o="�"}else o=String.fromCharCode(l);o&&(n.push(e.slice(r,t),encodeURIComponent(o)),r=t+i+1,o=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}const mn={name:"attention",resolveAll:Lr,tokenize:Dr};function Lr(e,n){let t=-1,r,i,l,o,a,c,s,u;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const h={...e[r][1].end},d={...e[t][1].start};Xn(h,-c),Xn(d,c),o={type:c>1?"strongSequence":"emphasisSequence",start:h,end:{...e[r][1].end}},a={type:c>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:d},l={type:c>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:c>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},e[r][1].end={...o.start},e[t][1].start={...a.end},s=[],e[r][1].end.offset-e[r][1].start.offset&&(s=te(s,[["enter",e[r][1],n],["exit",e[r][1],n]])),s=te(s,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",l,n]]),s=te(s,En(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),s=te(s,[["exit",l,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(u=2,s=te(s,[["enter",e[t][1],n],["exit",e[t][1],n]])):u=0,de(e,r-1,t-r+3,s),t=r+s.length-u-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function Dr(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Wn(r);let l;return o;function o(c){return l=c,e.enter("attentionSequence"),a(c)}function a(c){if(c===l)return e.consume(c),a;const s=e.exit("attentionSequence"),u=Wn(c),h=!u||u===2&&i||t.includes(c),d=!i||i===2&&u||t.includes(r);return s._open=!!(l===42?h:h&&(i||!d)),s._close=!!(l===42?d:d&&(u||!h)),n(c)}}function Xn(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const Or={name:"autolink",tokenize:_r};function _r(e,n,t){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(p){return ue(p)?(e.consume(p),o):p===64?t(p):s(p)}function o(p){return p===43||p===45||p===46||ee(p)?(r=1,a(p)):s(p)}function a(p){return p===58?(e.consume(p),r=0,c):(p===43||p===45||p===46||ee(p))&&r++<32?(e.consume(p),a):(r=0,s(p))}function c(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):p===null||p===32||p===60||hn(p)?t(p):(e.consume(p),c)}function s(p){return p===64?(e.consume(p),u):Sr(p)?(e.consume(p),s):t(p)}function u(p){return ee(p)?h(p):t(p)}function h(p){return p===46?(e.consume(p),r=0,u):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):d(p)}function d(p){if((p===45||ee(p))&&r++<63){const x=p===45?d:h;return e.consume(p),x}return t(p)}}const Ft={continuation:{tokenize:Fr},exit:Rr,name:"blockQuote",tokenize:Nr};function Nr(e,n,t){const r=this;return i;function i(o){if(o===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),l}return t(o)}function l(o){return _(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(o))}}function Fr(e,n,t){const r=this;return i;function i(o){return _(o)?B(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(Ft,n,t)(o)}}function Rr(e){e.exit("blockQuote")}const Rt={name:"characterEscape",tokenize:Mr};function Mr(e,n,t){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return Er(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(l)}}const Mt={name:"characterReference",tokenize:Br};function Br(e,n,t){const r=this;let i=0,l,o;return a;function a(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),c}function c(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),l=31,o=ee,u(h))}function s(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=Cr,u):(e.enter("characterReferenceValue"),l=7,o=fn,u(h))}function u(h){if(h===59&&i){const d=e.exit("characterReferenceValue");return o===ee&&!Cn(r.sliceSerialize(d))?t(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return o(h)&&i++<l?(e.consume(h),u):t(h)}}const Qn={partial:!0,tokenize:Hr},Gn={concrete:!0,name:"codeFenced",tokenize:jr};function jr(e,n,t){const r=this,i={partial:!0,tokenize:U};let l=0,o=0,a;return c;function c(y){return s(y)}function s(y){const O=r.events[r.events.length-1];return l=O&&O[1].type==="linePrefix"?O[2].sliceSerialize(O[1],!0).length:0,a=y,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(y)}function u(y){return y===a?(o++,e.consume(y),u):o<3?t(y):(e.exit("codeFencedFenceSequence"),_(y)?B(e,h,"whitespace")(y):h(y))}function h(y){return y===null||T(y)?(e.exit("codeFencedFence"),r.interrupt?n(y):e.check(Qn,b,j)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(y))}function d(y){return y===null||T(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(y)):_(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),B(e,p,"whitespace")(y)):y===96&&y===a?t(y):(e.consume(y),d)}function p(y){return y===null||T(y)?h(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),x(y))}function x(y){return y===null||T(y)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(y)):y===96&&y===a?t(y):(e.consume(y),x)}function b(y){return e.attempt(i,j,P)(y)}function P(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),S}function S(y){return l>0&&_(y)?B(e,L,"linePrefix",l+1)(y):L(y)}function L(y){return y===null||T(y)?e.check(Qn,b,j)(y):(e.enter("codeFlowValue"),E(y))}function E(y){return y===null||T(y)?(e.exit("codeFlowValue"),L(y)):(e.consume(y),E)}function j(y){return e.exit("codeFenced"),n(y)}function U(y,O,V){let N=0;return M;function M(D){return y.enter("lineEnding"),y.consume(D),y.exit("lineEnding"),I}function I(D){return y.enter("codeFencedFence"),_(D)?B(y,C,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):C(D)}function C(D){return D===a?(y.enter("codeFencedFenceSequence"),H(D)):V(D)}function H(D){return D===a?(N++,y.consume(D),H):N>=o?(y.exit("codeFencedFenceSequence"),_(D)?B(y,q,"whitespace")(D):q(D)):V(D)}function q(D){return D===null||T(D)?(y.exit("codeFencedFence"),O(D)):V(D)}}}function Hr(e,n,t){const r=this;return i;function i(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}const en={name:"codeIndented",tokenize:Vr},Ur={partial:!0,tokenize:qr};function Vr(e,n,t){const r=this;return i;function i(s){return e.enter("codeIndented"),B(e,l,"linePrefix",5)(s)}function l(s){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?o(s):t(s)}function o(s){return s===null?c(s):T(s)?e.attempt(Ur,o,c)(s):(e.enter("codeFlowValue"),a(s))}function a(s){return s===null||T(s)?(e.exit("codeFlowValue"),o(s)):(e.consume(s),a)}function c(s){return e.exit("codeIndented"),n(s)}}function qr(e,n,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):T(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):B(e,l,"linePrefix",5)(o)}function l(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):T(o)?i(o):t(o)}}const $r={name:"codeText",previous:Yr,resolve:Wr,tokenize:Xr};function Wr(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function Yr(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Xr(e,n,t){let r=0,i,l;return o;function o(h){return e.enter("codeText"),e.enter("codeTextSequence"),a(h)}function a(h){return h===96?(e.consume(h),r++,a):(e.exit("codeTextSequence"),c(h))}function c(h){return h===null?t(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),c):h===96?(l=e.enter("codeTextSequence"),i=0,u(h)):T(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("codeTextData"),s(h))}function s(h){return h===null||h===32||h===96||T(h)?(e.exit("codeTextData"),c(h)):(e.consume(h),s)}function u(h){return h===96?(e.consume(h),i++,u):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(h)):(l.type="codeTextData",s(h))}}class Qr{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Le(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Le(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Le(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);Le(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Le(this.left,t.reverse())}}}function Le(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function Bt(e){const n={};let t=-1,r,i,l,o,a,c,s;const u=new Qr(e);for(;++t<u.length;){for(;t in n;)t=n[t];if(r=u.get(t),t&&r[1].type==="chunkFlow"&&u.get(t-1)[1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,l=0,l<c.length&&c[l][1].type==="lineEndingBlank"&&(l+=2),l<c.length&&c[l][1].type==="content"))for(;++l<c.length&&c[l][1].type!=="content";)c[l][1].type==="chunkText"&&(c[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,Gr(u,t)),t=n[t],s=!0);else if(r[1]._container){for(l=t,i=void 0;l--;)if(o=u.get(l),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(u.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=l);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...u.get(i)[1].start},a=u.slice(i,t),a.unshift(r),u.splice(i,t-i+1,a))}}return de(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!s}function Gr(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const l=[];let o=t._tokenizer;o||(o=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const a=o.events,c=[],s={};let u,h,d=-1,p=t,x=0,b=0;const P=[b];for(;p;){for(;e.get(++i)[1]!==p;);l.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),h&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),h=p,p=p.next}for(p=t;++d<a.length;)a[d][0]==="exit"&&a[d-1][0]==="enter"&&a[d][1].type===a[d-1][1].type&&a[d][1].start.line!==a[d][1].end.line&&(b=d+1,P.push(b),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):P.pop(),d=P.length;d--;){const S=a.slice(P[d],P[d+1]),L=l.pop();c.push([L,L+S.length-1]),e.splice(L,2,S)}for(c.reverse(),d=-1;++d<c.length;)s[x+c[d][0]]=x+c[d][1],x+=c[d][1]-c[d][0]-1;return s}const Jr={resolve:Zr,tokenize:ei},Kr={partial:!0,tokenize:ni};function Zr(e){return Bt(e),e}function ei(e,n){let t;return r;function r(a){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?l(a):T(a)?e.check(Kr,o,l)(a):(e.consume(a),i)}function l(a){return e.exit("chunkContent"),e.exit("content"),n(a)}function o(a){return e.consume(a),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function ni(e,n,t){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),B(e,l,"linePrefix")}function l(o){if(o===null||T(o))return t(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}}function jt(e,n,t,r,i,l,o,a,c){const s=c||Number.POSITIVE_INFINITY;let u=0;return h;function h(S){return S===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(S),e.exit(l),d):S===null||S===32||S===41||hn(S)?t(S):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),b(S))}function d(S){return S===62?(e.enter(l),e.consume(S),e.exit(l),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(S))}function p(S){return S===62?(e.exit("chunkString"),e.exit(a),d(S)):S===null||S===60||T(S)?t(S):(e.consume(S),S===92?x:p)}function x(S){return S===60||S===62||S===92?(e.consume(S),p):p(S)}function b(S){return!u&&(S===null||S===41||ne(S))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),n(S)):u<s&&S===40?(e.consume(S),u++,b):S===41?(e.consume(S),u--,b):S===null||S===32||S===40||hn(S)?t(S):(e.consume(S),S===92?P:b)}function P(S){return S===40||S===41||S===92?(e.consume(S),b):b(S)}}function Ht(e,n,t,r,i,l){const o=this;let a=0,c;return s;function s(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(l),u}function u(p){return a>999||p===null||p===91||p===93&&!c||p===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?t(p):p===93?(e.exit(l),e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):T(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),h(p))}function h(p){return p===null||p===91||p===93||T(p)||a++>999?(e.exit("chunkString"),u(p)):(e.consume(p),c||(c=!_(p)),p===92?d:h)}function d(p){return p===91||p===92||p===93?(e.consume(p),a++,h):h(p)}}function Ut(e,n,t,r,i,l){let o;return a;function a(d){return d===34||d===39||d===40?(e.enter(r),e.enter(i),e.consume(d),e.exit(i),o=d===40?41:d,c):t(d)}function c(d){return d===o?(e.enter(i),e.consume(d),e.exit(i),e.exit(r),n):(e.enter(l),s(d))}function s(d){return d===o?(e.exit(l),c(o)):d===null?t(d):T(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),B(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(d){return d===o||d===null||T(d)?(e.exit("chunkString"),s(d)):(e.consume(d),d===92?h:u)}function h(d){return d===o||d===92?(e.consume(d),u):u(d)}}function _e(e,n){let t;return r;function r(i){return T(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):_(i)?B(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const ti={name:"definition",tokenize:ii},ri={partial:!0,tokenize:li};function ii(e,n,t){const r=this;let i;return l;function l(p){return e.enter("definition"),o(p)}function o(p){return Ht.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=Ce(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),c):t(p)}function c(p){return ne(p)?_e(e,s)(p):s(p)}function s(p){return jt(e,u,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function u(p){return e.attempt(ri,h,h)(p)}function h(p){return _(p)?B(e,d,"whitespace")(p):d(p)}function d(p){return p===null||T(p)?(e.exit("definition"),r.parser.defined.push(i),n(p)):t(p)}}function li(e,n,t){return r;function r(a){return ne(a)?_e(e,i)(a):t(a)}function i(a){return Ut(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return _(a)?B(e,o,"whitespace")(a):o(a)}function o(a){return a===null||T(a)?n(a):t(a)}}const oi={name:"hardBreakEscape",tokenize:ai};function ai(e,n,t){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return T(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}const ui={name:"headingAtx",resolve:si,tokenize:ci};function si(e,n){let t=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},l={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},de(e,r,t-r+1,[["enter",i,n],["enter",l,n],["exit",l,n],["exit",i,n]])),e}function ci(e,n,t){let r=0;return i;function i(u){return e.enter("atxHeading"),l(u)}function l(u){return e.enter("atxHeadingSequence"),o(u)}function o(u){return u===35&&r++<6?(e.consume(u),o):u===null||ne(u)?(e.exit("atxHeadingSequence"),a(u)):t(u)}function a(u){return u===35?(e.enter("atxHeadingSequence"),c(u)):u===null||T(u)?(e.exit("atxHeading"),n(u)):_(u)?B(e,a,"whitespace")(u):(e.enter("atxHeadingText"),s(u))}function c(u){return u===35?(e.consume(u),c):(e.exit("atxHeadingSequence"),a(u))}function s(u){return u===null||u===35||ne(u)?(e.exit("atxHeadingText"),a(u)):(e.consume(u),s)}}const pi=["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"],Jn=["pre","script","style","textarea"],hi={concrete:!0,name:"htmlFlow",resolveTo:di,tokenize:gi},fi={partial:!0,tokenize:xi},mi={partial:!0,tokenize:yi};function di(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function gi(e,n,t){const r=this;let i,l,o,a,c;return s;function s(m){return u(m)}function u(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),h}function h(m){return m===33?(e.consume(m),d):m===47?(e.consume(m),l=!0,b):m===63?(e.consume(m),i=3,r.interrupt?n:f):ue(m)?(e.consume(m),o=String.fromCharCode(m),P):t(m)}function d(m){return m===45?(e.consume(m),i=2,p):m===91?(e.consume(m),i=5,a=0,x):ue(m)?(e.consume(m),i=4,r.interrupt?n:f):t(m)}function p(m){return m===45?(e.consume(m),r.interrupt?n:f):t(m)}function x(m){const le="CDATA[";return m===le.charCodeAt(a++)?(e.consume(m),a===le.length?r.interrupt?n:C:x):t(m)}function b(m){return ue(m)?(e.consume(m),o=String.fromCharCode(m),P):t(m)}function P(m){if(m===null||m===47||m===62||ne(m)){const le=m===47,ge=o.toLowerCase();return!le&&!l&&Jn.includes(ge)?(i=1,r.interrupt?n(m):C(m)):pi.includes(o.toLowerCase())?(i=6,le?(e.consume(m),S):r.interrupt?n(m):C(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(m):l?L(m):E(m))}return m===45||ee(m)?(e.consume(m),o+=String.fromCharCode(m),P):t(m)}function S(m){return m===62?(e.consume(m),r.interrupt?n:C):t(m)}function L(m){return _(m)?(e.consume(m),L):M(m)}function E(m){return m===47?(e.consume(m),M):m===58||m===95||ue(m)?(e.consume(m),j):_(m)?(e.consume(m),E):M(m)}function j(m){return m===45||m===46||m===58||m===95||ee(m)?(e.consume(m),j):U(m)}function U(m){return m===61?(e.consume(m),y):_(m)?(e.consume(m),U):E(m)}function y(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),c=m,O):_(m)?(e.consume(m),y):V(m)}function O(m){return m===c?(e.consume(m),c=null,N):m===null||T(m)?t(m):(e.consume(m),O)}function V(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||ne(m)?U(m):(e.consume(m),V)}function N(m){return m===47||m===62||_(m)?E(m):t(m)}function M(m){return m===62?(e.consume(m),I):t(m)}function I(m){return m===null||T(m)?C(m):_(m)?(e.consume(m),I):t(m)}function C(m){return m===45&&i===2?(e.consume(m),X):m===60&&i===1?(e.consume(m),W):m===62&&i===4?(e.consume(m),ie):m===63&&i===3?(e.consume(m),f):m===93&&i===5?(e.consume(m),se):T(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(fi,ce,H)(m)):m===null||T(m)?(e.exit("htmlFlowData"),H(m)):(e.consume(m),C)}function H(m){return e.check(mi,q,ce)(m)}function q(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),D}function D(m){return m===null||T(m)?H(m):(e.enter("htmlFlowData"),C(m))}function X(m){return m===45?(e.consume(m),f):C(m)}function W(m){return m===47?(e.consume(m),o="",re):C(m)}function re(m){if(m===62){const le=o.toLowerCase();return Jn.includes(le)?(e.consume(m),ie):C(m)}return ue(m)&&o.length<8?(e.consume(m),o+=String.fromCharCode(m),re):C(m)}function se(m){return m===93?(e.consume(m),f):C(m)}function f(m){return m===62?(e.consume(m),ie):m===45&&i===2?(e.consume(m),f):C(m)}function ie(m){return m===null||T(m)?(e.exit("htmlFlowData"),ce(m)):(e.consume(m),ie)}function ce(m){return e.exit("htmlFlow"),n(m)}}function yi(e,n,t){const r=this;return i;function i(o){return T(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):t(o)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}function xi(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Je,n,t)}}const ki={name:"htmlText",tokenize:bi};function bi(e,n,t){const r=this;let i,l,o;return a;function a(f){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(f),c}function c(f){return f===33?(e.consume(f),s):f===47?(e.consume(f),U):f===63?(e.consume(f),E):ue(f)?(e.consume(f),V):t(f)}function s(f){return f===45?(e.consume(f),u):f===91?(e.consume(f),l=0,x):ue(f)?(e.consume(f),L):t(f)}function u(f){return f===45?(e.consume(f),p):t(f)}function h(f){return f===null?t(f):f===45?(e.consume(f),d):T(f)?(o=h,W(f)):(e.consume(f),h)}function d(f){return f===45?(e.consume(f),p):h(f)}function p(f){return f===62?X(f):f===45?d(f):h(f)}function x(f){const ie="CDATA[";return f===ie.charCodeAt(l++)?(e.consume(f),l===ie.length?b:x):t(f)}function b(f){return f===null?t(f):f===93?(e.consume(f),P):T(f)?(o=b,W(f)):(e.consume(f),b)}function P(f){return f===93?(e.consume(f),S):b(f)}function S(f){return f===62?X(f):f===93?(e.consume(f),S):b(f)}function L(f){return f===null||f===62?X(f):T(f)?(o=L,W(f)):(e.consume(f),L)}function E(f){return f===null?t(f):f===63?(e.consume(f),j):T(f)?(o=E,W(f)):(e.consume(f),E)}function j(f){return f===62?X(f):E(f)}function U(f){return ue(f)?(e.consume(f),y):t(f)}function y(f){return f===45||ee(f)?(e.consume(f),y):O(f)}function O(f){return T(f)?(o=O,W(f)):_(f)?(e.consume(f),O):X(f)}function V(f){return f===45||ee(f)?(e.consume(f),V):f===47||f===62||ne(f)?N(f):t(f)}function N(f){return f===47?(e.consume(f),X):f===58||f===95||ue(f)?(e.consume(f),M):T(f)?(o=N,W(f)):_(f)?(e.consume(f),N):X(f)}function M(f){return f===45||f===46||f===58||f===95||ee(f)?(e.consume(f),M):I(f)}function I(f){return f===61?(e.consume(f),C):T(f)?(o=I,W(f)):_(f)?(e.consume(f),I):N(f)}function C(f){return f===null||f===60||f===61||f===62||f===96?t(f):f===34||f===39?(e.consume(f),i=f,H):T(f)?(o=C,W(f)):_(f)?(e.consume(f),C):(e.consume(f),q)}function H(f){return f===i?(e.consume(f),i=void 0,D):f===null?t(f):T(f)?(o=H,W(f)):(e.consume(f),H)}function q(f){return f===null||f===34||f===39||f===60||f===61||f===96?t(f):f===47||f===62||ne(f)?N(f):(e.consume(f),q)}function D(f){return f===47||f===62||ne(f)?N(f):t(f)}function X(f){return f===62?(e.consume(f),e.exit("htmlTextData"),e.exit("htmlText"),n):t(f)}function W(f){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),re}function re(f){return _(f)?B(e,se,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):se(f)}function se(f){return e.enter("htmlTextData"),o(f)}}const In={name:"labelEnd",resolveAll:Ci,resolveTo:Ii,tokenize:Ti},wi={tokenize:Pi},Si={tokenize:Ai},Ei={tokenize:vi};function Ci(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&de(e,0,e.length,t),e}function Ii(e,n){let t=e.length,r=0,i,l,o,a;for(;t--;)if(i=e[t][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=t);const c={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},s={type:"label",start:{...e[l][1].start},end:{...e[o][1].end}},u={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[o-2][1].start}};return a=[["enter",c,n],["enter",s,n]],a=te(a,e.slice(l+1,l+r+3)),a=te(a,[["enter",u,n]]),a=te(a,En(n.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),n)),a=te(a,[["exit",u,n],e[o-2],e[o-1],["exit",s,n]]),a=te(a,e.slice(o+1)),a=te(a,[["exit",c,n]]),de(e,l,e.length,a),e}function Ti(e,n,t){const r=this;let i=r.events.length,l,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return a;function a(d){return l?l._inactive?h(d):(o=r.parser.defined.includes(Ce(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),c):t(d)}function c(d){return d===40?e.attempt(wi,u,o?u:h)(d):d===91?e.attempt(Si,u,o?s:h)(d):o?u(d):h(d)}function s(d){return e.attempt(Ei,u,h)(d)}function u(d){return n(d)}function h(d){return l._balanced=!0,t(d)}}function Pi(e,n,t){return r;function r(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),i}function i(h){return ne(h)?_e(e,l)(h):l(h)}function l(h){return h===41?u(h):jt(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function o(h){return ne(h)?_e(e,c)(h):u(h)}function a(h){return t(h)}function c(h){return h===34||h===39||h===40?Ut(e,s,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):u(h)}function s(h){return ne(h)?_e(e,u)(h):u(h)}function u(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),n):t(h)}}function Ai(e,n,t){const r=this;return i;function i(a){return Ht.call(r,e,l,o,"reference","referenceMarker","referenceString")(a)}function l(a){return r.parser.defined.includes(Ce(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function o(a){return t(a)}}function vi(e,n,t){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),n):t(l)}}const zi={name:"labelStartImage",resolveAll:In.resolveAll,tokenize:Li};function Li(e,n,t){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),l}function l(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),o):t(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}const Di={name:"labelStartLink",resolveAll:In.resolveAll,tokenize:Oi};function Oi(e,n,t){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):n(o)}}const nn={name:"lineEnding",tokenize:_i};function _i(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),B(e,n,"linePrefix")}}const We={name:"thematicBreak",tokenize:Ni};function Ni(e,n,t){let r=0,i;return l;function l(s){return e.enter("thematicBreak"),o(s)}function o(s){return i=s,a(s)}function a(s){return s===i?(e.enter("thematicBreakSequence"),c(s)):r>=3&&(s===null||T(s))?(e.exit("thematicBreak"),n(s)):t(s)}function c(s){return s===i?(e.consume(s),r++,c):(e.exit("thematicBreakSequence"),_(s)?B(e,a,"whitespace")(s):a(s))}}const G={continuation:{tokenize:Bi},exit:Hi,name:"list",tokenize:Mi},Fi={partial:!0,tokenize:Ui},Ri={partial:!0,tokenize:ji};function Mi(e,n,t){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(p){const x=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:fn(p)){if(r.containerState.type||(r.containerState.type=x,e.enter(x,{_container:!0})),x==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(We,t,s)(p):s(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(p)}return t(p)}function c(p){return fn(p)&&++o<10?(e.consume(p),c):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),s(p)):t(p)}function s(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Je,r.interrupt?t:u,e.attempt(Fi,d,h))}function u(p){return r.containerState.initialBlankLine=!0,l++,d(p)}function h(p){return _(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),d):t(p)}function d(p){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(p)}}function Bi(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Je,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,B(e,n,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!_(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Ri,n,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,B(e,e.attempt(G,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function ji(e,n,t){const r=this;return B(e,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?n(l):t(l)}}function Hi(e){e.exit(this.containerState.type)}function Ui(e,n,t){const r=this;return B(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const o=r.events[r.events.length-1];return!_(l)&&o&&o[1].type==="listItemPrefixWhitespace"?n(l):t(l)}}const Kn={name:"setextUnderline",resolveTo:Vi,tokenize:qi};function Vi(e,n){let t=e.length,r,i,l;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!l&&e[t][1].type==="definition"&&(l=t);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",o,n]),e.splice(l+1,0,["exit",e[r][1],n]),e[r][1].end={...e[l][1].end}):e[r][1]=o,e.push(["exit",o,n]),e}function qi(e,n,t){const r=this;let i;return l;function l(s){let u=r.events.length,h;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){h=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(e.enter("setextHeadingLine"),i=s,o(s)):t(s)}function o(s){return e.enter("setextHeadingLineSequence"),a(s)}function a(s){return s===i?(e.consume(s),a):(e.exit("setextHeadingLineSequence"),_(s)?B(e,c,"lineSuffix")(s):c(s))}function c(s){return s===null||T(s)?(e.exit("setextHeadingLine"),n(s)):t(s)}}function $i(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const Wi=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Yi=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Xi={};function Zn(e,n){return(Xi.jsx?Yi:Wi).test(e)}const Qi=/[ \t\n\f\r]/g;function Gi(e){return typeof e=="object"?e.type==="text"?et(e.value):!1:et(e)}function et(e){return e.replace(Qi,"")===""}class Me{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}Me.prototype.normal={};Me.prototype.property={};Me.prototype.space=void 0;function Vt(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new Me(t,r,n)}function dn(e){return e.toLowerCase()}class J{constructor(n,t){this.attribute=t,this.property=n}}J.prototype.attribute="";J.prototype.booleanish=!1;J.prototype.boolean=!1;J.prototype.commaOrSpaceSeparated=!1;J.prototype.commaSeparated=!1;J.prototype.defined=!1;J.prototype.mustUseProperty=!1;J.prototype.number=!1;J.prototype.overloadedBoolean=!1;J.prototype.property="";J.prototype.spaceSeparated=!1;J.prototype.space=void 0;let Ji=0;const v=ke(),$=ke(),gn=ke(),k=ke(),R=ke(),Ie=ke(),Z=ke();function ke(){return 2**++Ji}const yn=Object.freeze(Object.defineProperty({__proto__:null,boolean:v,booleanish:$,commaOrSpaceSeparated:Z,commaSeparated:Ie,number:k,overloadedBoolean:gn,spaceSeparated:R},Symbol.toStringTag,{value:"Module"})),tn=Object.keys(yn);class Tn extends J{constructor(n,t,r,i){let l=-1;if(super(n,t),nt(this,"space",i),typeof r=="number")for(;++l<tn.length;){const o=tn[l];nt(this,tn[l],(r&yn[o])===yn[o])}}}Tn.prototype.defined=!0;function nt(e,n,t){t&&(e[n]=t)}function Pe(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const l=new Tn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),n[r]=l,t[dn(r)]=r,t[dn(l.attribute)]=r}return new Me(n,t,e.space)}const qt=Pe({properties:{ariaActiveDescendant:null,ariaAtomic:$,ariaAutoComplete:null,ariaBusy:$,ariaChecked:$,ariaColCount:k,ariaColIndex:k,ariaColSpan:k,ariaControls:R,ariaCurrent:null,ariaDescribedBy:R,ariaDetails:null,ariaDisabled:$,ariaDropEffect:R,ariaErrorMessage:null,ariaExpanded:$,ariaFlowTo:R,ariaGrabbed:$,ariaHasPopup:null,ariaHidden:$,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:R,ariaLevel:k,ariaLive:null,ariaModal:$,ariaMultiLine:$,ariaMultiSelectable:$,ariaOrientation:null,ariaOwns:R,ariaPlaceholder:null,ariaPosInSet:k,ariaPressed:$,ariaReadOnly:$,ariaRelevant:null,ariaRequired:$,ariaRoleDescription:R,ariaRowCount:k,ariaRowIndex:k,ariaRowSpan:k,ariaSelected:$,ariaSetSize:k,ariaSort:null,ariaValueMax:k,ariaValueMin:k,ariaValueNow:k,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function $t(e,n){return n in e?e[n]:n}function Wt(e,n){return $t(e,n.toLowerCase())}const Ki=Pe({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ie,acceptCharset:R,accessKey:R,action:null,allow:null,allowFullScreen:v,allowPaymentRequest:v,allowUserMedia:v,alt:null,as:null,async:v,autoCapitalize:null,autoComplete:R,autoFocus:v,autoPlay:v,blocking:R,capture:null,charSet:null,checked:v,cite:null,className:R,cols:k,colSpan:null,content:null,contentEditable:$,controls:v,controlsList:R,coords:k|Ie,crossOrigin:null,data:null,dateTime:null,decoding:null,default:v,defer:v,dir:null,dirName:null,disabled:v,download:gn,draggable:$,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:v,formTarget:null,headers:R,height:k,hidden:gn,high:k,href:null,hrefLang:null,htmlFor:R,httpEquiv:R,id:null,imageSizes:null,imageSrcSet:null,inert:v,inputMode:null,integrity:null,is:null,isMap:v,itemId:null,itemProp:R,itemRef:R,itemScope:v,itemType:R,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:v,low:k,manifest:null,max:null,maxLength:k,media:null,method:null,min:null,minLength:k,multiple:v,muted:v,name:null,nonce:null,noModule:v,noValidate:v,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:v,optimum:k,pattern:null,ping:R,placeholder:null,playsInline:v,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:v,referrerPolicy:null,rel:R,required:v,reversed:v,rows:k,rowSpan:k,sandbox:R,scope:null,scoped:v,seamless:v,selected:v,shadowRootClonable:v,shadowRootDelegatesFocus:v,shadowRootMode:null,shape:null,size:k,sizes:null,slot:null,span:k,spellCheck:$,src:null,srcDoc:null,srcLang:null,srcSet:null,start:k,step:null,style:null,tabIndex:k,target:null,title:null,translate:null,type:null,typeMustMatch:v,useMap:null,value:$,width:k,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:R,axis:null,background:null,bgColor:null,border:k,borderColor:null,bottomMargin:k,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:v,declare:v,event:null,face:null,frame:null,frameBorder:null,hSpace:k,leftMargin:k,link:null,longDesc:null,lowSrc:null,marginHeight:k,marginWidth:k,noResize:v,noHref:v,noShade:v,noWrap:v,object:null,profile:null,prompt:null,rev:null,rightMargin:k,rules:null,scheme:null,scrolling:$,standby:null,summary:null,text:null,topMargin:k,valueType:null,version:null,vAlign:null,vLink:null,vSpace:k,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:v,disableRemotePlayback:v,prefix:null,property:null,results:k,security:null,unselectable:null},space:"html",transform:Wt}),Zi=Pe({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Z,accentHeight:k,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:k,amplitude:k,arabicForm:null,ascent:k,attributeName:null,attributeType:null,azimuth:k,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:k,by:null,calcMode:null,capHeight:k,className:R,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:k,diffuseConstant:k,direction:null,display:null,dur:null,divisor:k,dominantBaseline:null,download:v,dx:null,dy:null,edgeMode:null,editable:null,elevation:k,enableBackground:null,end:null,event:null,exponent:k,externalResourcesRequired:null,fill:null,fillOpacity:k,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:Ie,g2:Ie,glyphName:Ie,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:k,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:k,horizOriginX:k,horizOriginY:k,id:null,ideographic:k,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:k,k,k1:k,k2:k,k3:k,k4:k,kernelMatrix:Z,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:k,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:k,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:k,overlineThickness:k,paintOrder:null,panose1:null,path:null,pathLength:k,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:R,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:k,pointsAtY:k,pointsAtZ:k,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Z,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Z,rev:Z,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Z,requiredFeatures:Z,requiredFonts:Z,requiredFormats:Z,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:k,specularExponent:k,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:k,strikethroughThickness:k,string:null,stroke:null,strokeDashArray:Z,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:k,strokeOpacity:k,strokeWidth:null,style:null,surfaceScale:k,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Z,tabIndex:k,tableValues:null,target:null,targetX:k,targetY:k,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Z,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:k,underlineThickness:k,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:k,values:null,vAlphabetic:k,vMathematical:k,vectorEffect:null,vHanging:k,vIdeographic:k,version:null,vertAdvY:k,vertOriginX:k,vertOriginY:k,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:k,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:$t}),Yt=Pe({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),Xt=Pe({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Wt}),Qt=Pe({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),el={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"},nl=/[A-Z]/g,tt=/-[a-z]/g,tl=/^data[-\w.:]+$/i;function rl(e,n){const t=dn(n);let r=n,i=J;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&tl.test(n)){if(n.charAt(4)==="-"){const l=n.slice(5).replace(tt,ll);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=n.slice(4);if(!tt.test(l)){let o=l.replace(nl,il);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}i=Tn}return new i(r,n)}function il(e){return"-"+e.toLowerCase()}function ll(e){return e.charAt(1).toUpperCase()}const ol=Vt([qt,Ki,Yt,Xt,Qt],"html"),Pn=Vt([qt,Zi,Yt,Xt,Qt],"svg");function al(e){return e.join(" ").trim()}var An={},rt=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ul=/\n/g,sl=/^\s*/,cl=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,pl=/^:\s*/,hl=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,fl=/^[;\s]*/,ml=/^\s+|\s+$/g,dl=`
|
|
1
|
+
import{a as ee,c as Wn,p as te,r as En,s as de,b as ue,d as hn,e as Sr,m as _,f as B,g as Er,h as Cr,i as fn,j as T,k as ne,n as Ce,l as Je,o as Oe,q as Ir,t as Tr,v as Ot,u as Pr}from"./markdown-viewer-Bcu9HM71.js";import{O as Xe,P as _t,r as He,j as $e}from"./index-C8Brdl4F.js";const Yn=document.createElement("i");function Cn(e){const n="&"+e+";";Yn.innerHTML=n;const t=Yn.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function Nt(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}const Ar=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function vr(e){return e.replace(Ar,zr)}function zr(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),l=i===120||i===88;return Nt(t.slice(l?2:1),l?16:10)}return Cn(t)||e}function Te(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const l=e.charCodeAt(t);let o="";if(l===37&&ee(e.charCodeAt(t+1))&&ee(e.charCodeAt(t+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const a=e.charCodeAt(t+1);l<56320&&a>56319&&a<57344?(o=String.fromCharCode(l,a),i=1):o="�"}else o=String.fromCharCode(l);o&&(n.push(e.slice(r,t),encodeURIComponent(o)),r=t+i+1,o=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}const mn={name:"attention",resolveAll:Lr,tokenize:Dr};function Lr(e,n){let t=-1,r,i,l,o,a,c,s,u;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const h={...e[r][1].end},d={...e[t][1].start};Xn(h,-c),Xn(d,c),o={type:c>1?"strongSequence":"emphasisSequence",start:h,end:{...e[r][1].end}},a={type:c>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:d},l={type:c>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:c>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},e[r][1].end={...o.start},e[t][1].start={...a.end},s=[],e[r][1].end.offset-e[r][1].start.offset&&(s=te(s,[["enter",e[r][1],n],["exit",e[r][1],n]])),s=te(s,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",l,n]]),s=te(s,En(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),s=te(s,[["exit",l,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(u=2,s=te(s,[["enter",e[t][1],n],["exit",e[t][1],n]])):u=0,de(e,r-1,t-r+3,s),t=r+s.length-u-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function Dr(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Wn(r);let l;return o;function o(c){return l=c,e.enter("attentionSequence"),a(c)}function a(c){if(c===l)return e.consume(c),a;const s=e.exit("attentionSequence"),u=Wn(c),h=!u||u===2&&i||t.includes(c),d=!i||i===2&&u||t.includes(r);return s._open=!!(l===42?h:h&&(i||!d)),s._close=!!(l===42?d:d&&(u||!h)),n(c)}}function Xn(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const Or={name:"autolink",tokenize:_r};function _r(e,n,t){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(p){return ue(p)?(e.consume(p),o):p===64?t(p):s(p)}function o(p){return p===43||p===45||p===46||ee(p)?(r=1,a(p)):s(p)}function a(p){return p===58?(e.consume(p),r=0,c):(p===43||p===45||p===46||ee(p))&&r++<32?(e.consume(p),a):(r=0,s(p))}function c(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):p===null||p===32||p===60||hn(p)?t(p):(e.consume(p),c)}function s(p){return p===64?(e.consume(p),u):Sr(p)?(e.consume(p),s):t(p)}function u(p){return ee(p)?h(p):t(p)}function h(p){return p===46?(e.consume(p),r=0,u):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):d(p)}function d(p){if((p===45||ee(p))&&r++<63){const x=p===45?d:h;return e.consume(p),x}return t(p)}}const Ft={continuation:{tokenize:Fr},exit:Rr,name:"blockQuote",tokenize:Nr};function Nr(e,n,t){const r=this;return i;function i(o){if(o===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),l}return t(o)}function l(o){return _(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(o))}}function Fr(e,n,t){const r=this;return i;function i(o){return _(o)?B(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(Ft,n,t)(o)}}function Rr(e){e.exit("blockQuote")}const Rt={name:"characterEscape",tokenize:Mr};function Mr(e,n,t){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return Er(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(l)}}const Mt={name:"characterReference",tokenize:Br};function Br(e,n,t){const r=this;let i=0,l,o;return a;function a(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),c}function c(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),l=31,o=ee,u(h))}function s(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=Cr,u):(e.enter("characterReferenceValue"),l=7,o=fn,u(h))}function u(h){if(h===59&&i){const d=e.exit("characterReferenceValue");return o===ee&&!Cn(r.sliceSerialize(d))?t(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return o(h)&&i++<l?(e.consume(h),u):t(h)}}const Qn={partial:!0,tokenize:Hr},Gn={concrete:!0,name:"codeFenced",tokenize:jr};function jr(e,n,t){const r=this,i={partial:!0,tokenize:U};let l=0,o=0,a;return c;function c(y){return s(y)}function s(y){const O=r.events[r.events.length-1];return l=O&&O[1].type==="linePrefix"?O[2].sliceSerialize(O[1],!0).length:0,a=y,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(y)}function u(y){return y===a?(o++,e.consume(y),u):o<3?t(y):(e.exit("codeFencedFenceSequence"),_(y)?B(e,h,"whitespace")(y):h(y))}function h(y){return y===null||T(y)?(e.exit("codeFencedFence"),r.interrupt?n(y):e.check(Qn,b,j)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(y))}function d(y){return y===null||T(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(y)):_(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),B(e,p,"whitespace")(y)):y===96&&y===a?t(y):(e.consume(y),d)}function p(y){return y===null||T(y)?h(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),x(y))}function x(y){return y===null||T(y)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(y)):y===96&&y===a?t(y):(e.consume(y),x)}function b(y){return e.attempt(i,j,P)(y)}function P(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),S}function S(y){return l>0&&_(y)?B(e,L,"linePrefix",l+1)(y):L(y)}function L(y){return y===null||T(y)?e.check(Qn,b,j)(y):(e.enter("codeFlowValue"),E(y))}function E(y){return y===null||T(y)?(e.exit("codeFlowValue"),L(y)):(e.consume(y),E)}function j(y){return e.exit("codeFenced"),n(y)}function U(y,O,V){let N=0;return M;function M(D){return y.enter("lineEnding"),y.consume(D),y.exit("lineEnding"),I}function I(D){return y.enter("codeFencedFence"),_(D)?B(y,C,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):C(D)}function C(D){return D===a?(y.enter("codeFencedFenceSequence"),H(D)):V(D)}function H(D){return D===a?(N++,y.consume(D),H):N>=o?(y.exit("codeFencedFenceSequence"),_(D)?B(y,q,"whitespace")(D):q(D)):V(D)}function q(D){return D===null||T(D)?(y.exit("codeFencedFence"),O(D)):V(D)}}}function Hr(e,n,t){const r=this;return i;function i(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}const en={name:"codeIndented",tokenize:Vr},Ur={partial:!0,tokenize:qr};function Vr(e,n,t){const r=this;return i;function i(s){return e.enter("codeIndented"),B(e,l,"linePrefix",5)(s)}function l(s){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?o(s):t(s)}function o(s){return s===null?c(s):T(s)?e.attempt(Ur,o,c)(s):(e.enter("codeFlowValue"),a(s))}function a(s){return s===null||T(s)?(e.exit("codeFlowValue"),o(s)):(e.consume(s),a)}function c(s){return e.exit("codeIndented"),n(s)}}function qr(e,n,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):T(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):B(e,l,"linePrefix",5)(o)}function l(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):T(o)?i(o):t(o)}}const $r={name:"codeText",previous:Yr,resolve:Wr,tokenize:Xr};function Wr(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function Yr(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Xr(e,n,t){let r=0,i,l;return o;function o(h){return e.enter("codeText"),e.enter("codeTextSequence"),a(h)}function a(h){return h===96?(e.consume(h),r++,a):(e.exit("codeTextSequence"),c(h))}function c(h){return h===null?t(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),c):h===96?(l=e.enter("codeTextSequence"),i=0,u(h)):T(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("codeTextData"),s(h))}function s(h){return h===null||h===32||h===96||T(h)?(e.exit("codeTextData"),c(h)):(e.consume(h),s)}function u(h){return h===96?(e.consume(h),i++,u):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(h)):(l.type="codeTextData",s(h))}}class Qr{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Le(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Le(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Le(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);Le(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Le(this.left,t.reverse())}}}function Le(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function Bt(e){const n={};let t=-1,r,i,l,o,a,c,s;const u=new Qr(e);for(;++t<u.length;){for(;t in n;)t=n[t];if(r=u.get(t),t&&r[1].type==="chunkFlow"&&u.get(t-1)[1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,l=0,l<c.length&&c[l][1].type==="lineEndingBlank"&&(l+=2),l<c.length&&c[l][1].type==="content"))for(;++l<c.length&&c[l][1].type!=="content";)c[l][1].type==="chunkText"&&(c[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,Gr(u,t)),t=n[t],s=!0);else if(r[1]._container){for(l=t,i=void 0;l--;)if(o=u.get(l),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(u.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=l);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...u.get(i)[1].start},a=u.slice(i,t),a.unshift(r),u.splice(i,t-i+1,a))}}return de(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!s}function Gr(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const l=[];let o=t._tokenizer;o||(o=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const a=o.events,c=[],s={};let u,h,d=-1,p=t,x=0,b=0;const P=[b];for(;p;){for(;e.get(++i)[1]!==p;);l.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),h&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),h=p,p=p.next}for(p=t;++d<a.length;)a[d][0]==="exit"&&a[d-1][0]==="enter"&&a[d][1].type===a[d-1][1].type&&a[d][1].start.line!==a[d][1].end.line&&(b=d+1,P.push(b),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):P.pop(),d=P.length;d--;){const S=a.slice(P[d],P[d+1]),L=l.pop();c.push([L,L+S.length-1]),e.splice(L,2,S)}for(c.reverse(),d=-1;++d<c.length;)s[x+c[d][0]]=x+c[d][1],x+=c[d][1]-c[d][0]-1;return s}const Jr={resolve:Zr,tokenize:ei},Kr={partial:!0,tokenize:ni};function Zr(e){return Bt(e),e}function ei(e,n){let t;return r;function r(a){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?l(a):T(a)?e.check(Kr,o,l)(a):(e.consume(a),i)}function l(a){return e.exit("chunkContent"),e.exit("content"),n(a)}function o(a){return e.consume(a),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function ni(e,n,t){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),B(e,l,"linePrefix")}function l(o){if(o===null||T(o))return t(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}}function jt(e,n,t,r,i,l,o,a,c){const s=c||Number.POSITIVE_INFINITY;let u=0;return h;function h(S){return S===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(S),e.exit(l),d):S===null||S===32||S===41||hn(S)?t(S):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),b(S))}function d(S){return S===62?(e.enter(l),e.consume(S),e.exit(l),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(S))}function p(S){return S===62?(e.exit("chunkString"),e.exit(a),d(S)):S===null||S===60||T(S)?t(S):(e.consume(S),S===92?x:p)}function x(S){return S===60||S===62||S===92?(e.consume(S),p):p(S)}function b(S){return!u&&(S===null||S===41||ne(S))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),n(S)):u<s&&S===40?(e.consume(S),u++,b):S===41?(e.consume(S),u--,b):S===null||S===32||S===40||hn(S)?t(S):(e.consume(S),S===92?P:b)}function P(S){return S===40||S===41||S===92?(e.consume(S),b):b(S)}}function Ht(e,n,t,r,i,l){const o=this;let a=0,c;return s;function s(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(l),u}function u(p){return a>999||p===null||p===91||p===93&&!c||p===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?t(p):p===93?(e.exit(l),e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):T(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),h(p))}function h(p){return p===null||p===91||p===93||T(p)||a++>999?(e.exit("chunkString"),u(p)):(e.consume(p),c||(c=!_(p)),p===92?d:h)}function d(p){return p===91||p===92||p===93?(e.consume(p),a++,h):h(p)}}function Ut(e,n,t,r,i,l){let o;return a;function a(d){return d===34||d===39||d===40?(e.enter(r),e.enter(i),e.consume(d),e.exit(i),o=d===40?41:d,c):t(d)}function c(d){return d===o?(e.enter(i),e.consume(d),e.exit(i),e.exit(r),n):(e.enter(l),s(d))}function s(d){return d===o?(e.exit(l),c(o)):d===null?t(d):T(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),B(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(d){return d===o||d===null||T(d)?(e.exit("chunkString"),s(d)):(e.consume(d),d===92?h:u)}function h(d){return d===o||d===92?(e.consume(d),u):u(d)}}function _e(e,n){let t;return r;function r(i){return T(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):_(i)?B(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const ti={name:"definition",tokenize:ii},ri={partial:!0,tokenize:li};function ii(e,n,t){const r=this;let i;return l;function l(p){return e.enter("definition"),o(p)}function o(p){return Ht.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=Ce(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),c):t(p)}function c(p){return ne(p)?_e(e,s)(p):s(p)}function s(p){return jt(e,u,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function u(p){return e.attempt(ri,h,h)(p)}function h(p){return _(p)?B(e,d,"whitespace")(p):d(p)}function d(p){return p===null||T(p)?(e.exit("definition"),r.parser.defined.push(i),n(p)):t(p)}}function li(e,n,t){return r;function r(a){return ne(a)?_e(e,i)(a):t(a)}function i(a){return Ut(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return _(a)?B(e,o,"whitespace")(a):o(a)}function o(a){return a===null||T(a)?n(a):t(a)}}const oi={name:"hardBreakEscape",tokenize:ai};function ai(e,n,t){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return T(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}const ui={name:"headingAtx",resolve:si,tokenize:ci};function si(e,n){let t=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},l={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},de(e,r,t-r+1,[["enter",i,n],["enter",l,n],["exit",l,n],["exit",i,n]])),e}function ci(e,n,t){let r=0;return i;function i(u){return e.enter("atxHeading"),l(u)}function l(u){return e.enter("atxHeadingSequence"),o(u)}function o(u){return u===35&&r++<6?(e.consume(u),o):u===null||ne(u)?(e.exit("atxHeadingSequence"),a(u)):t(u)}function a(u){return u===35?(e.enter("atxHeadingSequence"),c(u)):u===null||T(u)?(e.exit("atxHeading"),n(u)):_(u)?B(e,a,"whitespace")(u):(e.enter("atxHeadingText"),s(u))}function c(u){return u===35?(e.consume(u),c):(e.exit("atxHeadingSequence"),a(u))}function s(u){return u===null||u===35||ne(u)?(e.exit("atxHeadingText"),a(u)):(e.consume(u),s)}}const pi=["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"],Jn=["pre","script","style","textarea"],hi={concrete:!0,name:"htmlFlow",resolveTo:di,tokenize:gi},fi={partial:!0,tokenize:xi},mi={partial:!0,tokenize:yi};function di(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function gi(e,n,t){const r=this;let i,l,o,a,c;return s;function s(m){return u(m)}function u(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),h}function h(m){return m===33?(e.consume(m),d):m===47?(e.consume(m),l=!0,b):m===63?(e.consume(m),i=3,r.interrupt?n:f):ue(m)?(e.consume(m),o=String.fromCharCode(m),P):t(m)}function d(m){return m===45?(e.consume(m),i=2,p):m===91?(e.consume(m),i=5,a=0,x):ue(m)?(e.consume(m),i=4,r.interrupt?n:f):t(m)}function p(m){return m===45?(e.consume(m),r.interrupt?n:f):t(m)}function x(m){const le="CDATA[";return m===le.charCodeAt(a++)?(e.consume(m),a===le.length?r.interrupt?n:C:x):t(m)}function b(m){return ue(m)?(e.consume(m),o=String.fromCharCode(m),P):t(m)}function P(m){if(m===null||m===47||m===62||ne(m)){const le=m===47,ge=o.toLowerCase();return!le&&!l&&Jn.includes(ge)?(i=1,r.interrupt?n(m):C(m)):pi.includes(o.toLowerCase())?(i=6,le?(e.consume(m),S):r.interrupt?n(m):C(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(m):l?L(m):E(m))}return m===45||ee(m)?(e.consume(m),o+=String.fromCharCode(m),P):t(m)}function S(m){return m===62?(e.consume(m),r.interrupt?n:C):t(m)}function L(m){return _(m)?(e.consume(m),L):M(m)}function E(m){return m===47?(e.consume(m),M):m===58||m===95||ue(m)?(e.consume(m),j):_(m)?(e.consume(m),E):M(m)}function j(m){return m===45||m===46||m===58||m===95||ee(m)?(e.consume(m),j):U(m)}function U(m){return m===61?(e.consume(m),y):_(m)?(e.consume(m),U):E(m)}function y(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),c=m,O):_(m)?(e.consume(m),y):V(m)}function O(m){return m===c?(e.consume(m),c=null,N):m===null||T(m)?t(m):(e.consume(m),O)}function V(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||ne(m)?U(m):(e.consume(m),V)}function N(m){return m===47||m===62||_(m)?E(m):t(m)}function M(m){return m===62?(e.consume(m),I):t(m)}function I(m){return m===null||T(m)?C(m):_(m)?(e.consume(m),I):t(m)}function C(m){return m===45&&i===2?(e.consume(m),X):m===60&&i===1?(e.consume(m),W):m===62&&i===4?(e.consume(m),ie):m===63&&i===3?(e.consume(m),f):m===93&&i===5?(e.consume(m),se):T(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(fi,ce,H)(m)):m===null||T(m)?(e.exit("htmlFlowData"),H(m)):(e.consume(m),C)}function H(m){return e.check(mi,q,ce)(m)}function q(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),D}function D(m){return m===null||T(m)?H(m):(e.enter("htmlFlowData"),C(m))}function X(m){return m===45?(e.consume(m),f):C(m)}function W(m){return m===47?(e.consume(m),o="",re):C(m)}function re(m){if(m===62){const le=o.toLowerCase();return Jn.includes(le)?(e.consume(m),ie):C(m)}return ue(m)&&o.length<8?(e.consume(m),o+=String.fromCharCode(m),re):C(m)}function se(m){return m===93?(e.consume(m),f):C(m)}function f(m){return m===62?(e.consume(m),ie):m===45&&i===2?(e.consume(m),f):C(m)}function ie(m){return m===null||T(m)?(e.exit("htmlFlowData"),ce(m)):(e.consume(m),ie)}function ce(m){return e.exit("htmlFlow"),n(m)}}function yi(e,n,t){const r=this;return i;function i(o){return T(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):t(o)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}function xi(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Je,n,t)}}const ki={name:"htmlText",tokenize:bi};function bi(e,n,t){const r=this;let i,l,o;return a;function a(f){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(f),c}function c(f){return f===33?(e.consume(f),s):f===47?(e.consume(f),U):f===63?(e.consume(f),E):ue(f)?(e.consume(f),V):t(f)}function s(f){return f===45?(e.consume(f),u):f===91?(e.consume(f),l=0,x):ue(f)?(e.consume(f),L):t(f)}function u(f){return f===45?(e.consume(f),p):t(f)}function h(f){return f===null?t(f):f===45?(e.consume(f),d):T(f)?(o=h,W(f)):(e.consume(f),h)}function d(f){return f===45?(e.consume(f),p):h(f)}function p(f){return f===62?X(f):f===45?d(f):h(f)}function x(f){const ie="CDATA[";return f===ie.charCodeAt(l++)?(e.consume(f),l===ie.length?b:x):t(f)}function b(f){return f===null?t(f):f===93?(e.consume(f),P):T(f)?(o=b,W(f)):(e.consume(f),b)}function P(f){return f===93?(e.consume(f),S):b(f)}function S(f){return f===62?X(f):f===93?(e.consume(f),S):b(f)}function L(f){return f===null||f===62?X(f):T(f)?(o=L,W(f)):(e.consume(f),L)}function E(f){return f===null?t(f):f===63?(e.consume(f),j):T(f)?(o=E,W(f)):(e.consume(f),E)}function j(f){return f===62?X(f):E(f)}function U(f){return ue(f)?(e.consume(f),y):t(f)}function y(f){return f===45||ee(f)?(e.consume(f),y):O(f)}function O(f){return T(f)?(o=O,W(f)):_(f)?(e.consume(f),O):X(f)}function V(f){return f===45||ee(f)?(e.consume(f),V):f===47||f===62||ne(f)?N(f):t(f)}function N(f){return f===47?(e.consume(f),X):f===58||f===95||ue(f)?(e.consume(f),M):T(f)?(o=N,W(f)):_(f)?(e.consume(f),N):X(f)}function M(f){return f===45||f===46||f===58||f===95||ee(f)?(e.consume(f),M):I(f)}function I(f){return f===61?(e.consume(f),C):T(f)?(o=I,W(f)):_(f)?(e.consume(f),I):N(f)}function C(f){return f===null||f===60||f===61||f===62||f===96?t(f):f===34||f===39?(e.consume(f),i=f,H):T(f)?(o=C,W(f)):_(f)?(e.consume(f),C):(e.consume(f),q)}function H(f){return f===i?(e.consume(f),i=void 0,D):f===null?t(f):T(f)?(o=H,W(f)):(e.consume(f),H)}function q(f){return f===null||f===34||f===39||f===60||f===61||f===96?t(f):f===47||f===62||ne(f)?N(f):(e.consume(f),q)}function D(f){return f===47||f===62||ne(f)?N(f):t(f)}function X(f){return f===62?(e.consume(f),e.exit("htmlTextData"),e.exit("htmlText"),n):t(f)}function W(f){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),re}function re(f){return _(f)?B(e,se,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):se(f)}function se(f){return e.enter("htmlTextData"),o(f)}}const In={name:"labelEnd",resolveAll:Ci,resolveTo:Ii,tokenize:Ti},wi={tokenize:Pi},Si={tokenize:Ai},Ei={tokenize:vi};function Ci(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&de(e,0,e.length,t),e}function Ii(e,n){let t=e.length,r=0,i,l,o,a;for(;t--;)if(i=e[t][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=t);const c={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},s={type:"label",start:{...e[l][1].start},end:{...e[o][1].end}},u={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[o-2][1].start}};return a=[["enter",c,n],["enter",s,n]],a=te(a,e.slice(l+1,l+r+3)),a=te(a,[["enter",u,n]]),a=te(a,En(n.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),n)),a=te(a,[["exit",u,n],e[o-2],e[o-1],["exit",s,n]]),a=te(a,e.slice(o+1)),a=te(a,[["exit",c,n]]),de(e,l,e.length,a),e}function Ti(e,n,t){const r=this;let i=r.events.length,l,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return a;function a(d){return l?l._inactive?h(d):(o=r.parser.defined.includes(Ce(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),c):t(d)}function c(d){return d===40?e.attempt(wi,u,o?u:h)(d):d===91?e.attempt(Si,u,o?s:h)(d):o?u(d):h(d)}function s(d){return e.attempt(Ei,u,h)(d)}function u(d){return n(d)}function h(d){return l._balanced=!0,t(d)}}function Pi(e,n,t){return r;function r(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),i}function i(h){return ne(h)?_e(e,l)(h):l(h)}function l(h){return h===41?u(h):jt(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function o(h){return ne(h)?_e(e,c)(h):u(h)}function a(h){return t(h)}function c(h){return h===34||h===39||h===40?Ut(e,s,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):u(h)}function s(h){return ne(h)?_e(e,u)(h):u(h)}function u(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),n):t(h)}}function Ai(e,n,t){const r=this;return i;function i(a){return Ht.call(r,e,l,o,"reference","referenceMarker","referenceString")(a)}function l(a){return r.parser.defined.includes(Ce(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function o(a){return t(a)}}function vi(e,n,t){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),n):t(l)}}const zi={name:"labelStartImage",resolveAll:In.resolveAll,tokenize:Li};function Li(e,n,t){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),l}function l(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),o):t(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}const Di={name:"labelStartLink",resolveAll:In.resolveAll,tokenize:Oi};function Oi(e,n,t){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):n(o)}}const nn={name:"lineEnding",tokenize:_i};function _i(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),B(e,n,"linePrefix")}}const We={name:"thematicBreak",tokenize:Ni};function Ni(e,n,t){let r=0,i;return l;function l(s){return e.enter("thematicBreak"),o(s)}function o(s){return i=s,a(s)}function a(s){return s===i?(e.enter("thematicBreakSequence"),c(s)):r>=3&&(s===null||T(s))?(e.exit("thematicBreak"),n(s)):t(s)}function c(s){return s===i?(e.consume(s),r++,c):(e.exit("thematicBreakSequence"),_(s)?B(e,a,"whitespace")(s):a(s))}}const G={continuation:{tokenize:Bi},exit:Hi,name:"list",tokenize:Mi},Fi={partial:!0,tokenize:Ui},Ri={partial:!0,tokenize:ji};function Mi(e,n,t){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(p){const x=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:fn(p)){if(r.containerState.type||(r.containerState.type=x,e.enter(x,{_container:!0})),x==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(We,t,s)(p):s(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(p)}return t(p)}function c(p){return fn(p)&&++o<10?(e.consume(p),c):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),s(p)):t(p)}function s(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Je,r.interrupt?t:u,e.attempt(Fi,d,h))}function u(p){return r.containerState.initialBlankLine=!0,l++,d(p)}function h(p){return _(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),d):t(p)}function d(p){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(p)}}function Bi(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Je,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,B(e,n,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!_(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Ri,n,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,B(e,e.attempt(G,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function ji(e,n,t){const r=this;return B(e,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?n(l):t(l)}}function Hi(e){e.exit(this.containerState.type)}function Ui(e,n,t){const r=this;return B(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const o=r.events[r.events.length-1];return!_(l)&&o&&o[1].type==="listItemPrefixWhitespace"?n(l):t(l)}}const Kn={name:"setextUnderline",resolveTo:Vi,tokenize:qi};function Vi(e,n){let t=e.length,r,i,l;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!l&&e[t][1].type==="definition"&&(l=t);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",o,n]),e.splice(l+1,0,["exit",e[r][1],n]),e[r][1].end={...e[l][1].end}):e[r][1]=o,e.push(["exit",o,n]),e}function qi(e,n,t){const r=this;let i;return l;function l(s){let u=r.events.length,h;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){h=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(e.enter("setextHeadingLine"),i=s,o(s)):t(s)}function o(s){return e.enter("setextHeadingLineSequence"),a(s)}function a(s){return s===i?(e.consume(s),a):(e.exit("setextHeadingLineSequence"),_(s)?B(e,c,"lineSuffix")(s):c(s))}function c(s){return s===null||T(s)?(e.exit("setextHeadingLine"),n(s)):t(s)}}function $i(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const Wi=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Yi=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Xi={};function Zn(e,n){return(Xi.jsx?Yi:Wi).test(e)}const Qi=/[ \t\n\f\r]/g;function Gi(e){return typeof e=="object"?e.type==="text"?et(e.value):!1:et(e)}function et(e){return e.replace(Qi,"")===""}class Me{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}Me.prototype.normal={};Me.prototype.property={};Me.prototype.space=void 0;function Vt(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new Me(t,r,n)}function dn(e){return e.toLowerCase()}class J{constructor(n,t){this.attribute=t,this.property=n}}J.prototype.attribute="";J.prototype.booleanish=!1;J.prototype.boolean=!1;J.prototype.commaOrSpaceSeparated=!1;J.prototype.commaSeparated=!1;J.prototype.defined=!1;J.prototype.mustUseProperty=!1;J.prototype.number=!1;J.prototype.overloadedBoolean=!1;J.prototype.property="";J.prototype.spaceSeparated=!1;J.prototype.space=void 0;let Ji=0;const v=ke(),$=ke(),gn=ke(),k=ke(),R=ke(),Ie=ke(),Z=ke();function ke(){return 2**++Ji}const yn=Object.freeze(Object.defineProperty({__proto__:null,boolean:v,booleanish:$,commaOrSpaceSeparated:Z,commaSeparated:Ie,number:k,overloadedBoolean:gn,spaceSeparated:R},Symbol.toStringTag,{value:"Module"})),tn=Object.keys(yn);class Tn extends J{constructor(n,t,r,i){let l=-1;if(super(n,t),nt(this,"space",i),typeof r=="number")for(;++l<tn.length;){const o=tn[l];nt(this,tn[l],(r&yn[o])===yn[o])}}}Tn.prototype.defined=!0;function nt(e,n,t){t&&(e[n]=t)}function Pe(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const l=new Tn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),n[r]=l,t[dn(r)]=r,t[dn(l.attribute)]=r}return new Me(n,t,e.space)}const qt=Pe({properties:{ariaActiveDescendant:null,ariaAtomic:$,ariaAutoComplete:null,ariaBusy:$,ariaChecked:$,ariaColCount:k,ariaColIndex:k,ariaColSpan:k,ariaControls:R,ariaCurrent:null,ariaDescribedBy:R,ariaDetails:null,ariaDisabled:$,ariaDropEffect:R,ariaErrorMessage:null,ariaExpanded:$,ariaFlowTo:R,ariaGrabbed:$,ariaHasPopup:null,ariaHidden:$,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:R,ariaLevel:k,ariaLive:null,ariaModal:$,ariaMultiLine:$,ariaMultiSelectable:$,ariaOrientation:null,ariaOwns:R,ariaPlaceholder:null,ariaPosInSet:k,ariaPressed:$,ariaReadOnly:$,ariaRelevant:null,ariaRequired:$,ariaRoleDescription:R,ariaRowCount:k,ariaRowIndex:k,ariaRowSpan:k,ariaSelected:$,ariaSetSize:k,ariaSort:null,ariaValueMax:k,ariaValueMin:k,ariaValueNow:k,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function $t(e,n){return n in e?e[n]:n}function Wt(e,n){return $t(e,n.toLowerCase())}const Ki=Pe({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ie,acceptCharset:R,accessKey:R,action:null,allow:null,allowFullScreen:v,allowPaymentRequest:v,allowUserMedia:v,alt:null,as:null,async:v,autoCapitalize:null,autoComplete:R,autoFocus:v,autoPlay:v,blocking:R,capture:null,charSet:null,checked:v,cite:null,className:R,cols:k,colSpan:null,content:null,contentEditable:$,controls:v,controlsList:R,coords:k|Ie,crossOrigin:null,data:null,dateTime:null,decoding:null,default:v,defer:v,dir:null,dirName:null,disabled:v,download:gn,draggable:$,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:v,formTarget:null,headers:R,height:k,hidden:gn,high:k,href:null,hrefLang:null,htmlFor:R,httpEquiv:R,id:null,imageSizes:null,imageSrcSet:null,inert:v,inputMode:null,integrity:null,is:null,isMap:v,itemId:null,itemProp:R,itemRef:R,itemScope:v,itemType:R,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:v,low:k,manifest:null,max:null,maxLength:k,media:null,method:null,min:null,minLength:k,multiple:v,muted:v,name:null,nonce:null,noModule:v,noValidate:v,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:v,optimum:k,pattern:null,ping:R,placeholder:null,playsInline:v,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:v,referrerPolicy:null,rel:R,required:v,reversed:v,rows:k,rowSpan:k,sandbox:R,scope:null,scoped:v,seamless:v,selected:v,shadowRootClonable:v,shadowRootDelegatesFocus:v,shadowRootMode:null,shape:null,size:k,sizes:null,slot:null,span:k,spellCheck:$,src:null,srcDoc:null,srcLang:null,srcSet:null,start:k,step:null,style:null,tabIndex:k,target:null,title:null,translate:null,type:null,typeMustMatch:v,useMap:null,value:$,width:k,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:R,axis:null,background:null,bgColor:null,border:k,borderColor:null,bottomMargin:k,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:v,declare:v,event:null,face:null,frame:null,frameBorder:null,hSpace:k,leftMargin:k,link:null,longDesc:null,lowSrc:null,marginHeight:k,marginWidth:k,noResize:v,noHref:v,noShade:v,noWrap:v,object:null,profile:null,prompt:null,rev:null,rightMargin:k,rules:null,scheme:null,scrolling:$,standby:null,summary:null,text:null,topMargin:k,valueType:null,version:null,vAlign:null,vLink:null,vSpace:k,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:v,disableRemotePlayback:v,prefix:null,property:null,results:k,security:null,unselectable:null},space:"html",transform:Wt}),Zi=Pe({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Z,accentHeight:k,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:k,amplitude:k,arabicForm:null,ascent:k,attributeName:null,attributeType:null,azimuth:k,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:k,by:null,calcMode:null,capHeight:k,className:R,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:k,diffuseConstant:k,direction:null,display:null,dur:null,divisor:k,dominantBaseline:null,download:v,dx:null,dy:null,edgeMode:null,editable:null,elevation:k,enableBackground:null,end:null,event:null,exponent:k,externalResourcesRequired:null,fill:null,fillOpacity:k,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:Ie,g2:Ie,glyphName:Ie,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:k,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:k,horizOriginX:k,horizOriginY:k,id:null,ideographic:k,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:k,k,k1:k,k2:k,k3:k,k4:k,kernelMatrix:Z,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:k,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:k,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:k,overlineThickness:k,paintOrder:null,panose1:null,path:null,pathLength:k,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:R,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:k,pointsAtY:k,pointsAtZ:k,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Z,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Z,rev:Z,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Z,requiredFeatures:Z,requiredFonts:Z,requiredFormats:Z,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:k,specularExponent:k,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:k,strikethroughThickness:k,string:null,stroke:null,strokeDashArray:Z,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:k,strokeOpacity:k,strokeWidth:null,style:null,surfaceScale:k,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Z,tabIndex:k,tableValues:null,target:null,targetX:k,targetY:k,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Z,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:k,underlineThickness:k,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:k,values:null,vAlphabetic:k,vMathematical:k,vectorEffect:null,vHanging:k,vIdeographic:k,version:null,vertAdvY:k,vertOriginX:k,vertOriginY:k,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:k,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:$t}),Yt=Pe({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),Xt=Pe({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Wt}),Qt=Pe({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),el={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"},nl=/[A-Z]/g,tt=/-[a-z]/g,tl=/^data[-\w.:]+$/i;function rl(e,n){const t=dn(n);let r=n,i=J;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&tl.test(n)){if(n.charAt(4)==="-"){const l=n.slice(5).replace(tt,ll);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=n.slice(4);if(!tt.test(l)){let o=l.replace(nl,il);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}i=Tn}return new i(r,n)}function il(e){return"-"+e.toLowerCase()}function ll(e){return e.charAt(1).toUpperCase()}const ol=Vt([qt,Ki,Yt,Xt,Qt],"html"),Pn=Vt([qt,Zi,Yt,Xt,Qt],"svg");function al(e){return e.join(" ").trim()}var An={},rt=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ul=/\n/g,sl=/^\s*/,cl=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,pl=/^:\s*/,hl=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,fl=/^[;\s]*/,ml=/^\s+|\s+$/g,dl=`
|
|
2
2
|
`,it="/",lt="*",xe="",gl="comment",yl="declaration";function xl(e,n){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];n=n||{};var t=1,r=1;function i(x){var b=x.match(ul);b&&(t+=b.length);var P=x.lastIndexOf(dl);r=~P?x.length-P:r+x.length}function l(){var x={line:t,column:r};return function(b){return b.position=new o(x),s(),b}}function o(x){this.start=x,this.end={line:t,column:r},this.source=n.source}o.prototype.content=e;function a(x){var b=new Error(n.source+":"+t+":"+r+": "+x);if(b.reason=x,b.filename=n.source,b.line=t,b.column=r,b.source=e,!n.silent)throw b}function c(x){var b=x.exec(e);if(b){var P=b[0];return i(P),e=e.slice(P.length),b}}function s(){c(sl)}function u(x){var b;for(x=x||[];b=h();)b!==!1&&x.push(b);return x}function h(){var x=l();if(!(it!=e.charAt(0)||lt!=e.charAt(1))){for(var b=2;xe!=e.charAt(b)&&(lt!=e.charAt(b)||it!=e.charAt(b+1));)++b;if(b+=2,xe===e.charAt(b-1))return a("End of comment missing");var P=e.slice(2,b-2);return r+=2,i(P),e=e.slice(b),r+=2,x({type:gl,comment:P})}}function d(){var x=l(),b=c(cl);if(b){if(h(),!c(pl))return a("property missing ':'");var P=c(hl),S=x({type:yl,property:ot(b[0].replace(rt,xe)),value:P?ot(P[0].replace(rt,xe)):xe});return c(fl),S}}function p(){var x=[];u(x);for(var b;b=d();)b!==!1&&(x.push(b),u(x));return x}return s(),p()}function ot(e){return e?e.replace(ml,xe):xe}var kl=xl,bl=Xe&&Xe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(An,"__esModule",{value:!0});An.default=Sl;const wl=bl(kl);function Sl(e,n){let t=null;if(!e||typeof e!="string")return t;const r=(0,wl.default)(e),i=typeof n=="function";return r.forEach(l=>{if(l.type!=="declaration")return;const{property:o,value:a}=l;i?n(o,a,l):a&&(t=t||{},t[o]=a)}),t}var Ke={};Object.defineProperty(Ke,"__esModule",{value:!0});Ke.camelCase=void 0;var El=/^--[a-zA-Z0-9_-]+$/,Cl=/-([a-z])/g,Il=/^[^-]+$/,Tl=/^-(webkit|moz|ms|o|khtml)-/,Pl=/^-(ms)-/,Al=function(e){return!e||Il.test(e)||El.test(e)},vl=function(e,n){return n.toUpperCase()},at=function(e,n){return"".concat(n,"-")},zl=function(e,n){return n===void 0&&(n={}),Al(e)?e:(e=e.toLowerCase(),n.reactCompat?e=e.replace(Pl,at):e=e.replace(Tl,at),e.replace(Cl,vl))};Ke.camelCase=zl;var Ll=Xe&&Xe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Dl=Ll(An),Ol=Ke;function xn(e,n){var t={};return!e||typeof e!="string"||(0,Dl.default)(e,function(r,i){r&&i&&(t[(0,Ol.camelCase)(r,n)]=i)}),t}xn.default=xn;var _l=xn;const Nl=_t(_l),Gt=Jt("end"),vn=Jt("start");function Jt(e){return n;function n(t){const r=t&&t.position&&t.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Fl(e){const n=vn(e),t=Gt(e);if(n&&t)return{start:n,end:t}}function Ne(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ut(e.position):"start"in e||"end"in e?ut(e):"line"in e||"column"in e?kn(e):""}function kn(e){return st(e&&e.line)+":"+st(e&&e.column)}function ut(e){return kn(e&&e.start)+"-"+kn(e&&e.end)}function st(e){return e&&typeof e=="number"?e:1}class Q extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",l={},o=!1;if(t&&("line"in t&&"column"in t?l={place:t}:"start"in t&&"end"in t?l={place:t}:"type"in t?l={ancestors:[t],place:t.position}:l={...t}),typeof n=="string"?i=n:!l.cause&&n&&(o=!0,i=n.message,l.cause=n),!l.ruleId&&!l.source&&typeof r=="string"){const c=r.indexOf(":");c===-1?l.ruleId=r:(l.source=r.slice(0,c),l.ruleId=r.slice(c+1))}if(!l.place&&l.ancestors&&l.ancestors){const c=l.ancestors[l.ancestors.length-1];c&&(l.place=c.position)}const a=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=Ne(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Q.prototype.file="";Q.prototype.name="";Q.prototype.reason="";Q.prototype.message="";Q.prototype.stack="";Q.prototype.column=void 0;Q.prototype.line=void 0;Q.prototype.ancestors=void 0;Q.prototype.cause=void 0;Q.prototype.fatal=void 0;Q.prototype.place=void 0;Q.prototype.ruleId=void 0;Q.prototype.source=void 0;const zn={}.hasOwnProperty,Rl=new Map,Ml=/[A-Z]/g,Bl=new Set(["table","tbody","thead","tfoot","tr"]),jl=new Set(["td","th"]),Kt="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Hl(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Ql(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Xl(t,n.jsx,n.jsxs)}const i={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?Pn:ol,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},l=Zt(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function Zt(e,n,t){if(n.type==="element")return Ul(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return Vl(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return $l(e,n,t);if(n.type==="mdxjsEsm")return ql(e,n);if(n.type==="root")return Wl(e,n,t);if(n.type==="text")return Yl(e,n)}function Ul(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Pn,e.schema=i),e.ancestors.push(n);const l=nr(e,n.tagName,!1),o=Gl(e,n);let a=Dn(e,n);return Bl.has(n.tagName)&&(a=a.filter(function(c){return typeof c=="string"?!Gi(c):!0})),er(e,o,l,n),Ln(o,a),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function Vl(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return Oe(r.type==="ExpressionStatement"),e.evaluater.evaluateExpression(r.expression)}Re(e,n.position)}function ql(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Re(e,n.position)}function $l(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=Pn,e.schema=i),e.ancestors.push(n);const l=n.name===null?e.Fragment:nr(e,n.name,!0),o=Jl(e,n),a=Dn(e,n);return er(e,o,l,n),Ln(o,a),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function Wl(e,n,t){const r={};return Ln(r,Dn(e,n)),e.create(n,e.Fragment,r,t)}function Yl(e,n){return n.value}function er(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function Ln(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function Xl(e,n,t){return r;function r(i,l,o,a){const s=Array.isArray(o.children)?t:n;return a?s(l,o,a):s(l,o)}}function Ql(e,n){return t;function t(r,i,l,o){const a=Array.isArray(l.children),c=vn(r);return n(i,l,o,a,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function Gl(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&zn.call(n.properties,i)){const l=Kl(e,i,n.properties[i]);if(l){const[o,a]=l;e.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&jl.has(n.tagName)?r=a:t[o]=a}}if(r){const l=t.style||(t.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function Jl(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];Oe(l.type==="ExpressionStatement");const o=l.expression;Oe(o.type==="ObjectExpression");const a=o.properties[0];Oe(a.type==="SpreadElement"),Object.assign(t,e.evaluater.evaluateExpression(a.argument))}else Re(e,n.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];Oe(a.type==="ExpressionStatement"),l=e.evaluater.evaluateExpression(a.expression)}else Re(e,n.position);else l=r.value===null?!0:r.value;t[i]=l}return t}function Dn(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:Rl;for(;++r<n.children.length;){const l=n.children[r];let o;if(e.passKeys){const c=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(c){const s=i.get(c)||0;o=c+"-"+s,i.set(c,s+1)}}const a=Zt(e,l,o);a!==void 0&&t.push(a)}return t}function Kl(e,n,t){const r=rl(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?$i(t):al(t)),r.property==="style"){let i=typeof t=="object"?t:Zl(e,String(t));return e.stylePropertyNameCase==="css"&&(i=eo(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?el[r.property]||r.property:r.attribute,t]}}function Zl(e,n){try{return Nl(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new Q("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Kt+"#cannot-parse-style-attribute",i}}function nr(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let l=-1,o;for(;++l<i.length;){const a=Zn(i[l])?{type:"Identifier",name:i[l]}:{type:"Literal",value:i[l]};o=o?{type:"MemberExpression",object:o,property:a,computed:!!(l&&a.type==="Literal"),optional:!1}:a}r=o}else r=Zn(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return zn.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Re(e)}function Re(e,n){const t=new Q("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=Kt+"#cannot-handle-mdx-estrees-without-createevaluater",t}function eo(e){const n={};let t;for(t in e)zn.call(e,t)&&(n[no(t)]=e[t]);return n}function no(e){let n=e.replace(Ml,to);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function to(e){return"-"+e.toLowerCase()}const rn={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"]},ro={tokenize:io};function io(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),B(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),l(a)}function l(a){const c=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=c),t=c,o(a)}function o(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return T(a)?(e.consume(a),e.exit("chunkText"),l):(e.consume(a),o)}}const lo={tokenize:oo},ct={tokenize:ao};function oo(e){const n=this,t=[];let r=0,i,l,o;return a;function a(E){if(r<t.length){const j=t[r];return n.containerState=j[1],e.attempt(j[0].continuation,c,s)(E)}return s(E)}function c(E){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&L();const j=n.events.length;let U=j,y;for(;U--;)if(n.events[U][0]==="exit"&&n.events[U][1].type==="chunkFlow"){y=n.events[U][1].end;break}S(r);let O=j;for(;O<n.events.length;)n.events[O][1].end={...y},O++;return de(n.events,U+1,0,n.events.slice(j)),n.events.length=O,s(E)}return a(E)}function s(E){if(r===t.length){if(!i)return d(E);if(i.currentConstruct&&i.currentConstruct.concrete)return x(E);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(ct,u,h)(E)}function u(E){return i&&L(),S(r),d(E)}function h(E){return n.parser.lazy[n.now().line]=r!==t.length,o=n.now().offset,x(E)}function d(E){return n.containerState={},e.attempt(ct,p,x)(E)}function p(E){return r++,t.push([n.currentConstruct,n.containerState]),d(E)}function x(E){if(E===null){i&&L(),S(0),e.consume(E);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),b(E)}function b(E){if(E===null){P(e.exit("chunkFlow"),!0),S(0),e.consume(E);return}return T(E)?(e.consume(E),P(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(E),b)}function P(E,j){const U=n.sliceStream(E);if(j&&U.push(null),E.previous=l,l&&(l.next=E),l=E,i.defineSkip(E.start),i.write(U),n.parser.lazy[E.start.line]){let y=i.events.length;for(;y--;)if(i.events[y][1].start.offset<o&&(!i.events[y][1].end||i.events[y][1].end.offset>o))return;const O=n.events.length;let V=O,N,M;for(;V--;)if(n.events[V][0]==="exit"&&n.events[V][1].type==="chunkFlow"){if(N){M=n.events[V][1].end;break}N=!0}for(S(r),y=O;y<n.events.length;)n.events[y][1].end={...M},y++;de(n.events,V+1,0,n.events.slice(O)),n.events.length=y}}function S(E){let j=t.length;for(;j-- >E;){const U=t[j];n.containerState=U[1],U[0].exit.call(n,e)}t.length=E}function L(){i.write([null]),l=void 0,i=void 0,n.containerState._closeFlow=void 0}}function ao(e,n,t){return B(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const uo={tokenize:so};function so(e){const n=this,t=e.attempt(Je,r,e.attempt(this.parser.constructs.flowInitial,i,B(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Jr,i)),"linePrefix")));return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const co={resolveAll:rr()},po=tr("string"),ho=tr("text");function tr(e){return{resolveAll:rr(e==="text"?fo:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],l=t.attempt(i,o,a);return o;function o(u){return s(u)?l(u):a(u)}function a(u){if(u===null){t.consume(u);return}return t.enter("data"),t.consume(u),c}function c(u){return s(u)?(t.exit("data"),l(u)):(t.consume(u),c)}function s(u){if(u===null)return!0;const h=i[u];let d=-1;if(h)for(;++d<h.length;){const p=h[d];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function rr(e){return n;function n(t,r){let i=-1,l;for(;++i<=t.length;)l===void 0?t[i]&&t[i][1].type==="data"&&(l=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==l+2&&(t[l][1].end=t[i-1][1].end,t.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(t,r):t}}function fo(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let l=i.length,o=-1,a=0,c;for(;l--;){const s=i[l];if(typeof s=="string"){for(o=s.length;s.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(s===-2)c=!0,a++;else if(s!==-1){l++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(a=0),a){const s={type:t===e.length||c||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?o:r.start._bufferIndex+o,_index:r.start._index+l,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...s.start},r.start.offset===r.end.offset?Object.assign(r,s):(e.splice(t,0,["enter",s,n],["exit",s,n]),t+=2)}t++}return e}const mo={42:G,43:G,45:G,48:G,49:G,50:G,51:G,52:G,53:G,54:G,55:G,56:G,57:G,62:Ft},go={91:ti},yo={[-2]:en,[-1]:en,32:en},xo={35:ui,42:We,45:[Kn,We],60:hi,61:Kn,95:We,96:Gn,126:Gn},ko={38:Mt,92:Rt},bo={[-5]:nn,[-4]:nn,[-3]:nn,33:zi,38:Mt,42:mn,60:[Or,ki],91:Di,92:[oi,Rt],93:In,95:mn,96:$r},wo={null:[mn,co]},So={null:[42,95]},Eo={null:[]},Co=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:So,contentInitial:go,disable:Eo,document:mo,flow:xo,flowInitial:yo,insideSpan:wo,string:ko,text:bo},Symbol.toStringTag,{value:"Module"}));function Io(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},l=[];let o=[],a=[];const c={attempt:O(U),check:O(y),consume:L,enter:E,exit:j,interrupt:O(y,{interrupt:!0})},s={code:null,containerState:{},defineSkip:b,events:[],now:x,parser:e,previous:null,sliceSerialize:d,sliceStream:p,write:h};let u=n.tokenize.call(s,c);return n.resolveAll&&l.push(n),s;function h(I){return o=te(o,I),P(),o[o.length-1]!==null?[]:(V(n,0),s.events=En(l,s.events,s),s.events)}function d(I,C){return Po(p(I),C)}function p(I){return To(o,I)}function x(){const{_bufferIndex:I,_index:C,line:H,column:q,offset:D}=r;return{_bufferIndex:I,_index:C,line:H,column:q,offset:D}}function b(I){i[I.line]=I.column,M()}function P(){let I;for(;r._index<o.length;){const C=o[r._index];if(typeof C=="string")for(I=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===I&&r._bufferIndex<C.length;)S(C.charCodeAt(r._bufferIndex));else S(C)}}function S(I){u=u(I)}function L(I){T(I)?(r.line++,r.column=1,r.offset+=I===-3?2:1,M()):I!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),s.previous=I}function E(I,C){const H=C||{};return H.type=I,H.start=x(),s.events.push(["enter",H,s]),a.push(H),H}function j(I){const C=a.pop();return C.end=x(),s.events.push(["exit",C,s]),C}function U(I,C){V(I,C.from)}function y(I,C){C.restore()}function O(I,C){return H;function H(q,D,X){let W,re,se,f;return Array.isArray(q)?ce(q):"tokenize"in q?ce([q]):ie(q);function ie(Y){return Ae;function Ae(fe){const be=fe!==null&&Y[fe],we=fe!==null&&Y.null,je=[...Array.isArray(be)?be:be?[be]:[],...Array.isArray(we)?we:we?[we]:[]];return ce(je)(fe)}}function ce(Y){return W=Y,re=0,Y.length===0?X:m(Y[re])}function m(Y){return Ae;function Ae(fe){return f=N(),se=Y,Y.partial||(s.currentConstruct=Y),Y.name&&s.parser.constructs.disable.null.includes(Y.name)?ge():Y.tokenize.call(C?Object.assign(Object.create(s),C):s,c,le,ge)(fe)}}function le(Y){return I(se,f),D}function ge(Y){return f.restore(),++re<W.length?m(W[re]):X}}}function V(I,C){I.resolveAll&&!l.includes(I)&&l.push(I),I.resolve&&de(s.events,C,s.events.length-C,I.resolve(s.events.slice(C),s)),I.resolveTo&&(s.events=I.resolveTo(s.events,s))}function N(){const I=x(),C=s.previous,H=s.currentConstruct,q=s.events.length,D=Array.from(a);return{from:q,restore:X};function X(){r=I,s.previous=C,s.currentConstruct=H,s.events.length=q,a=D,M()}}function M(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function To(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,l=n.end._bufferIndex;let o;if(t===i)o=[e[t].slice(r,l)];else{if(o=e.slice(t,i),r>-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function Po(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const l=e[t];let o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
|
|
3
3
|
`;break}case-3:{o=`\r
|
|
4
4
|
`;break}case-2:{o=n?" ":" ";break}case-1:{if(!n&&i)continue;o=" ";break}default:o=String.fromCharCode(l)}i=l===-2,r.push(o)}return r.join("")}function Ao(e){const r={constructs:Ir([Co,...(e||{}).extensions||[]]),content:i(ro),defined:[],document:i(lo),flow:i(uo),lazy:{},string:i(po),text:i(ho)};return r;function i(l){return o;function o(a){return Io(r,l,a)}}}function vo(e){for(;!Bt(e););return e}const pt=/[\0\t\n\r]/g;function zo(){let e=1,n="",t=!0,r;return i;function i(l,o,a){const c=[];let s,u,h,d,p;for(l=n+(typeof l=="string"?l.toString():new TextDecoder(o||void 0).decode(l)),h=0,n="",t&&(l.charCodeAt(0)===65279&&h++,t=void 0);h<l.length;){if(pt.lastIndex=h,s=pt.exec(l),d=s&&s.index!==void 0?s.index:l.length,p=l.charCodeAt(d),!s){n=l.slice(h);break}if(p===10&&h===d&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),h<d&&(c.push(l.slice(h,d)),e+=d-h),p){case 0:{c.push(65533),e++;break}case 9:{for(u=Math.ceil(e/4)*4,c.push(-2);e++<u;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}h=d+1}return a&&(r&&c.push(-5),n&&c.push(n),c.push(null)),c}}const ir={}.hasOwnProperty;function Lo(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),Do(t)(vo(Ao(t).document().write(zo()(e,n,!0))))}function Do(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(qn),autolinkProtocol:N,autolinkEmail:N,atxHeading:l(Hn),blockQuote:l(we),characterEscape:N,characterReference:N,codeFenced:l(je),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(je,o),codeText:l(fr,o),codeTextData:N,data:N,codeFlowValue:N,definition:l(mr),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(dr),hardBreakEscape:l(Un),hardBreakTrailing:l(Un),htmlFlow:l(Vn,o),htmlFlowData:N,htmlText:l(Vn,o),htmlTextData:N,image:l(gr),label:o,link:l(qn),listItem:l(yr),listItemValue:d,listOrdered:l($n,h),listUnordered:l($n),paragraph:l(xr),reference:m,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(Hn),strong:l(kr),thematicBreak:l(wr)},exit:{atxHeading:c(),atxHeadingSequence:U,autolink:c(),autolinkEmail:be,autolinkProtocol:fe,blockQuote:c(),characterEscapeValue:M,characterReferenceMarkerHexadecimal:ge,characterReferenceMarkerNumeric:ge,characterReferenceValue:Y,characterReference:Ae,codeFenced:c(P),codeFencedFence:b,codeFencedFenceInfo:p,codeFencedFenceMeta:x,codeFlowValue:M,codeIndented:c(S),codeText:c(D),codeTextData:M,data:M,definition:c(),definitionDestinationString:j,definitionLabelString:L,definitionTitleString:E,emphasis:c(),hardBreakEscape:c(C),hardBreakTrailing:c(C),htmlFlow:c(H),htmlFlowData:M,htmlText:c(q),htmlTextData:M,image:c(W),label:se,labelText:re,lineEnding:I,link:c(X),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:le,resourceDestinationString:f,resourceTitleString:ie,resource:ce,setextHeading:c(V),setextHeadingLineSequence:O,setextHeadingText:y,strong:c(),thematicBreak:c()}};lr(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(g){let w={type:"root",children:[]};const A={stack:[w],tokenStack:[],config:n,enter:a,exit:s,buffer:o,resume:u,data:t},z=[];let F=-1;for(;++F<g.length;)if(g[F][1].type==="listOrdered"||g[F][1].type==="listUnordered")if(g[F][0]==="enter")z.push(F);else{const oe=z.pop();F=i(g,oe,F)}for(F=-1;++F<g.length;){const oe=n[g[F][0]];ir.call(oe,g[F][1].type)&&oe[g[F][1].type].call(Object.assign({sliceSerialize:g[F][2].sliceSerialize},A),g[F][1])}if(A.tokenStack.length>0){const oe=A.tokenStack[A.tokenStack.length-1];(oe[1]||ht).call(A,void 0,oe[0])}for(w.position={start:me(g.length>0?g[0][1].start:{line:1,column:1,offset:0}),end:me(g.length>0?g[g.length-2][1].end:{line:1,column:1,offset:0})},F=-1;++F<n.transforms.length;)w=n.transforms[F](w)||w;return w}function i(g,w,A){let z=w-1,F=-1,oe=!1,ye,pe,ve,ze;for(;++z<=A;){const K=g[z];switch(K[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{K[0]==="enter"?F++:F--,ze=void 0;break}case"lineEndingBlank":{K[0]==="enter"&&(ye&&!ze&&!F&&!ve&&(ve=z),ze=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ze=void 0}if(!F&&K[0]==="enter"&&K[1].type==="listItemPrefix"||F===-1&&K[0]==="exit"&&(K[1].type==="listUnordered"||K[1].type==="listOrdered")){if(ye){let Se=z;for(pe=void 0;Se--;){const he=g[Se];if(he[1].type==="lineEnding"||he[1].type==="lineEndingBlank"){if(he[0]==="exit")continue;pe&&(g[pe][1].type="lineEndingBlank",oe=!0),he[1].type="lineEnding",pe=Se}else if(!(he[1].type==="linePrefix"||he[1].type==="blockQuotePrefix"||he[1].type==="blockQuotePrefixWhitespace"||he[1].type==="blockQuoteMarker"||he[1].type==="listItemIndent"))break}ve&&(!pe||ve<pe)&&(ye._spread=!0),ye.end=Object.assign({},pe?g[pe][1].start:K[1].end),g.splice(pe||z,0,["exit",ye,K[2]]),z++,A++}if(K[1].type==="listItemPrefix"){const Se={type:"listItem",_spread:!1,start:Object.assign({},K[1].start),end:void 0};ye=Se,g.splice(z,0,["enter",Se,K[2]]),z++,A++,ve=void 0,ze=!0}}}return g[w][1]._spread=oe,A}function l(g,w){return A;function A(z){a.call(this,g(z),z),w&&w.call(this,z)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(g,w,A){this.stack[this.stack.length-1].children.push(g),this.stack.push(g),this.tokenStack.push([w,A||void 0]),g.position={start:me(w.start),end:void 0}}function c(g){return w;function w(A){g&&g.call(this,A),s.call(this,A)}}function s(g,w){const A=this.stack.pop(),z=this.tokenStack.pop();if(z)z[0].type!==g.type&&(w?w.call(this,g,z[0]):(z[1]||ht).call(this,g,z[0]));else throw new Error("Cannot close `"+g.type+"` ("+Ne({start:g.start,end:g.end})+"): it’s not open");A.position.end=me(g.end)}function u(){return Tr(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function d(g){if(this.data.expectingFirstListItemValue){const w=this.stack[this.stack.length-2];w.start=Number.parseInt(this.sliceSerialize(g),10),this.data.expectingFirstListItemValue=void 0}}function p(){const g=this.resume(),w=this.stack[this.stack.length-1];w.lang=g}function x(){const g=this.resume(),w=this.stack[this.stack.length-1];w.meta=g}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function P(){const g=this.resume(),w=this.stack[this.stack.length-1];w.value=g.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function S(){const g=this.resume(),w=this.stack[this.stack.length-1];w.value=g.replace(/(\r?\n|\r)$/g,"")}function L(g){const w=this.resume(),A=this.stack[this.stack.length-1];A.label=w,A.identifier=Ce(this.sliceSerialize(g)).toLowerCase()}function E(){const g=this.resume(),w=this.stack[this.stack.length-1];w.title=g}function j(){const g=this.resume(),w=this.stack[this.stack.length-1];w.url=g}function U(g){const w=this.stack[this.stack.length-1];if(!w.depth){const A=this.sliceSerialize(g).length;w.depth=A}}function y(){this.data.setextHeadingSlurpLineEnding=!0}function O(g){const w=this.stack[this.stack.length-1];w.depth=this.sliceSerialize(g).codePointAt(0)===61?1:2}function V(){this.data.setextHeadingSlurpLineEnding=void 0}function N(g){const A=this.stack[this.stack.length-1].children;let z=A[A.length-1];(!z||z.type!=="text")&&(z=br(),z.position={start:me(g.start),end:void 0},A.push(z)),this.stack.push(z)}function M(g){const w=this.stack.pop();w.value+=this.sliceSerialize(g),w.position.end=me(g.end)}function I(g){const w=this.stack[this.stack.length-1];if(this.data.atHardBreak){const A=w.children[w.children.length-1];A.position.end=me(g.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(w.type)&&(N.call(this,g),M.call(this,g))}function C(){this.data.atHardBreak=!0}function H(){const g=this.resume(),w=this.stack[this.stack.length-1];w.value=g}function q(){const g=this.resume(),w=this.stack[this.stack.length-1];w.value=g}function D(){const g=this.resume(),w=this.stack[this.stack.length-1];w.value=g}function X(){const g=this.stack[this.stack.length-1];if(this.data.inReference){const w=this.data.referenceType||"shortcut";g.type+="Reference",g.referenceType=w,delete g.url,delete g.title}else delete g.identifier,delete g.label;this.data.referenceType=void 0}function W(){const g=this.stack[this.stack.length-1];if(this.data.inReference){const w=this.data.referenceType||"shortcut";g.type+="Reference",g.referenceType=w,delete g.url,delete g.title}else delete g.identifier,delete g.label;this.data.referenceType=void 0}function re(g){const w=this.sliceSerialize(g),A=this.stack[this.stack.length-2];A.label=vr(w),A.identifier=Ce(w).toLowerCase()}function se(){const g=this.stack[this.stack.length-1],w=this.resume(),A=this.stack[this.stack.length-1];if(this.data.inReference=!0,A.type==="link"){const z=g.children;A.children=z}else A.alt=w}function f(){const g=this.resume(),w=this.stack[this.stack.length-1];w.url=g}function ie(){const g=this.resume(),w=this.stack[this.stack.length-1];w.title=g}function ce(){this.data.inReference=void 0}function m(){this.data.referenceType="collapsed"}function le(g){const w=this.resume(),A=this.stack[this.stack.length-1];A.label=w,A.identifier=Ce(this.sliceSerialize(g)).toLowerCase(),this.data.referenceType="full"}function ge(g){this.data.characterReferenceType=g.type}function Y(g){const w=this.sliceSerialize(g),A=this.data.characterReferenceType;let z;A?(z=Nt(w,A==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):z=Cn(w);const F=this.stack[this.stack.length-1];F.value+=z}function Ae(g){const w=this.stack.pop();w.position.end=me(g.end)}function fe(g){M.call(this,g);const w=this.stack[this.stack.length-1];w.url=this.sliceSerialize(g)}function be(g){M.call(this,g);const w=this.stack[this.stack.length-1];w.url="mailto:"+this.sliceSerialize(g)}function we(){return{type:"blockquote",children:[]}}function je(){return{type:"code",lang:null,meta:null,value:""}}function fr(){return{type:"inlineCode",value:""}}function mr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function dr(){return{type:"emphasis",children:[]}}function Hn(){return{type:"heading",depth:0,children:[]}}function Un(){return{type:"break"}}function Vn(){return{type:"html",value:""}}function gr(){return{type:"image",title:null,url:"",alt:null}}function qn(){return{type:"link",title:null,url:"",children:[]}}function $n(g){return{type:"list",ordered:g.type==="listOrdered",start:null,spread:g._spread,children:[]}}function yr(g){return{type:"listItem",spread:g._spread,checked:null,children:[]}}function xr(){return{type:"paragraph",children:[]}}function kr(){return{type:"strong",children:[]}}function br(){return{type:"text",value:""}}function wr(){return{type:"thematicBreak"}}}function me(e){return{line:e.line,column:e.column,offset:e.offset}}function lr(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?lr(e,r):Oo(e,r)}}function Oo(e,n){let t;for(t in n)if(ir.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function ht(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Ne({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Ne({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Ne({start:n.start,end:n.end})+") is still open")}function _o(e){const n=this;n.parser=t;function t(r){return Lo(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function No(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function Fo(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
|
package/dashboard/dist/client/assets/{markdown-viewer-Bj8nSOSJ.js → markdown-viewer-Bcu9HM71.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-
|
|
2
|
-
import{r as X,j as H,_ as Ue}from"./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-CUdpRxTZ.js","assets/index-C8Brdl4F.js","assets/index-CHtRMAMT.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{r as X,j as H,_ as Ue}from"./index-C8Brdl4F.js";function ae(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let i=0,l=t.indexOf(n);for(;l!==-1;)i++,l=t.indexOf(n,l+n.length);return i}function Ar(){}function Dr(){}const M=T(/[A-Za-z]/),te=T(/[\dA-Za-z]/),Fr=T(/[#-'*+\--9=?A-Z^-~]/);function Ve(e){return e!==null&&(e<32||e===127)}const Sr=T(/\d/),vr=T(/[\dA-Fa-f]/),Lr=T(/[!-/:-@[-`{-~]/);function P(e){return e!==null&&e<-2}function A(e){return e!==null&&(e<0||e===32)}function S(e){return e===-2||e===-1||e===32}const U=T(new RegExp("\\p{P}|\\p{S}","u")),I=T(/\s/);function T(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Ge(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const V=function(e){if(e==null)return Je;if(typeof e=="function")return G(e);if(typeof e=="object")return Array.isArray(e)?Qe(e):Ze(e);if(typeof e=="string")return Ke(e);throw new Error("Expected function, string, or object as test")};function Qe(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=V(e[t]);return G(i);function i(...l){let u=-1;for(;++u<n.length;)if(n[u].apply(this,l))return!0;return!1}}function Ze(e){const n=e;return G(t);function t(i){const l=i;let u;for(u in e)if(l[u]!==n[u])return!1;return!0}}function Ke(e){return G(n);function n(t){return t&&t.type===e}}function G(e){return n;function n(t,i,l){return!!(Xe(t)&&e.call(this,t,typeof i=="number"?i:void 0,l||void 0))}}function Je(){return!0}function Xe(e){return e!==null&&typeof e=="object"&&"type"in e}const be=[],Ye=!0,Y=!1,et="skip";function de(e,n,t,i){let l;typeof n=="function"&&typeof t!="function"?(i=t,t=n):l=n;const u=V(l),r=i?-1:1;a(e,void 0,[])();function a(o,s,h){const c=o&&typeof o=="object"?o:{};if(typeof c.type=="string"){const g=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(m,"name",{value:"node ("+(o.type+(g?"<"+g+">":""))+")"})}return m;function m(){let g=be,p,b,d;if((!n||u(o,s,h[h.length-1]||void 0))&&(g=tt(t(o,h)),g[0]===Y))return g;if("children"in o&&o.children){const k=o;if(k.children&&g[0]!==et)for(b=(i?k.children.length:-1)+r,d=h.concat(k);b>-1&&b<k.children.length;){const x=k.children[b];if(p=a(x,b,d)(),p[0]===Y)return p;b=typeof p[1]=="number"?p[1]:b+r}}return g}}}function tt(e){return Array.isArray(e)?e:typeof e=="number"?[Ye,e]:e==null?be:[e]}function nt(e,n,t){const l=V((t||{}).ignore||[]),u=rt(n);let r=-1;for(;++r<u.length;)de(e,"text",a);function a(s,h){let c=-1,m;for(;++c<h.length;){const g=h[c],p=m?m.children:void 0;if(l(g,p?p.indexOf(g):void 0,m))return;m=g}if(m)return o(s,h)}function o(s,h){const c=h[h.length-1],m=u[r][0],g=u[r][1];let p=0;const d=c.children.indexOf(s);let k=!1,x=[];m.lastIndex=0;let w=m.exec(s.value);for(;w;){const D=w.index,C={index:w.index,input:w.input,stack:[...h,s]};let y=g(...w,C);if(typeof y=="string"&&(y=y.length>0?{type:"text",value:y}:void 0),y===!1?m.lastIndex=D+1:(p!==D&&x.push({type:"text",value:s.value.slice(p,D)}),Array.isArray(y)?x.push(...y):y&&x.push(y),p=D+w[0].length,k=!0),!m.global)break;w=m.exec(s.value)}return k?(p<s.value.length&&x.push({type:"text",value:s.value.slice(p)}),c.children.splice(d,1,...x)):x=[s],d+x.length}}function rt(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const t=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<t.length;){const l=t[i];n.push([it(l[0]),lt(l[1])])}return n}function it(e){return typeof e=="string"?new RegExp(Ge(e),"g"):e}function lt(e){return typeof e=="function"?e:function(){return e}}const Q="phrasing",Z=["autolink","link","image","label"];function ot(){return{transforms:[pt],enter:{literalAutolink:at,literalAutolinkEmail:K,literalAutolinkHttp:K,literalAutolinkWww:K},exit:{literalAutolink:ht,literalAutolinkEmail:ft,literalAutolinkHttp:st,literalAutolinkWww:ct}}}function ut(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Q,notInConstruct:Z},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Q,notInConstruct:Z},{character:":",before:"[ps]",after:"\\/",inConstruct:Q,notInConstruct:Z}]}}function at(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function K(e){this.config.enter.autolinkProtocol.call(this,e)}function st(e){this.config.exit.autolinkProtocol.call(this,e)}function ct(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function ft(e){this.config.exit.autolinkEmail.call(this,e)}function ht(e){this.exit(e)}function pt(e){nt(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,mt],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),gt]],{ignore:["link","linkReference"]})}function mt(e,n,t,i,l){let u="";if(!xe(l)||(/^w/i.test(n)&&(t=n+t,n="",u="http://"),!kt(t)))return!1;const r=bt(t+i);if(!r[0])return!1;const a={type:"link",title:null,url:u+n+r[0],children:[{type:"text",value:n+r[0]}]};return r[1]?[a,{type:"text",value:r[1]}]:a}function gt(e,n,t,i){return!xe(i,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function kt(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function bt(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],i=t.indexOf(")");const l=ae(e,"(");let u=ae(e,")");for(;i!==-1&&l>u;)e+=t.slice(0,i+1),t=t.slice(i+1),i=t.indexOf(")"),u++;return[e,t]}function xe(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||I(t)||U(t))&&(!n||t!==47)}function j(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}we.peek=St;function dt(){this.buffer()}function xt(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function wt(){this.buffer()}function yt(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Ct(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=j(this.sliceSerialize(e)).toLowerCase(),t.label=n}function At(e){this.exit(e)}function Dt(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=j(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Ft(e){this.exit(e)}function St(){return"["}function we(e,n,t,i){const l=t.createTracker(i);let u=l.move("[^");const r=t.enter("footnoteReference"),a=t.enter("reference");return u+=l.move(t.safe(t.associationId(e),{after:"]",before:u})),a(),r(),u+=l.move("]"),u}function vt(){return{enter:{gfmFootnoteCallString:dt,gfmFootnoteCall:xt,gfmFootnoteDefinitionLabelString:wt,gfmFootnoteDefinition:yt},exit:{gfmFootnoteCallString:Ct,gfmFootnoteCall:At,gfmFootnoteDefinitionLabelString:Dt,gfmFootnoteDefinition:Ft}}}function Lt(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:t,footnoteReference:we},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(i,l,u,r){const a=u.createTracker(r);let o=a.move("[^");const s=u.enter("footnoteDefinition"),h=u.enter("label");return o+=a.move(u.safe(u.associationId(i),{before:o,after:"]"})),h(),o+=a.move("]:"),i.children&&i.children.length>0&&(a.shift(4),o+=a.move((n?`
|
|
3
3
|
`:" ")+u.indentLines(u.containerFlow(i,a.current()),n?ye:Tt))),s(),o}}function Tt(e,n,t){return n===0?e:ye(e,n,t)}function ye(e,n,t){return(t?"":" ")+e}const zt=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Ce.peek=_t;function It(){return{canContainEols:["delete"],enter:{strikethrough:Pt},exit:{strikethrough:Rt}}}function Et(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:zt}],handlers:{delete:Ce}}}function Pt(e){this.enter({type:"delete",children:[]},e)}function Rt(e){this.exit(e)}function Ce(e,n,t,i){const l=t.createTracker(i),u=t.enter("strikethrough");let r=l.move("~~");return r+=t.containerPhrasing(e,{...l.current(),before:r,after:"~"}),r+=l.move("~~"),u(),r}function _t(){return"~"}function Mt(e){return e.length}function Ot(e,n){const t=n||{},i=(t.align||[]).concat(),l=t.stringLength||Mt,u=[],r=[],a=[],o=[];let s=0,h=-1;for(;++h<e.length;){const b=[],d=[];let k=-1;for(e[h].length>s&&(s=e[h].length);++k<e[h].length;){const x=jt(e[h][k]);if(t.alignDelimiters!==!1){const w=l(x);d[k]=w,(o[k]===void 0||w>o[k])&&(o[k]=w)}b.push(x)}r[h]=b,a[h]=d}let c=-1;if(typeof i=="object"&&"length"in i)for(;++c<s;)u[c]=se(i[c]);else{const b=se(i);for(;++c<s;)u[c]=b}c=-1;const m=[],g=[];for(;++c<s;){const b=u[c];let d="",k="";b===99?(d=":",k=":"):b===108?d=":":b===114&&(k=":");let x=t.alignDelimiters===!1?1:Math.max(1,o[c]-d.length-k.length);const w=d+"-".repeat(x)+k;t.alignDelimiters!==!1&&(x=d.length+x+k.length,x>o[c]&&(o[c]=x),g[c]=x),m[c]=w}r.splice(1,0,m),a.splice(1,0,g),h=-1;const p=[];for(;++h<r.length;){const b=r[h],d=a[h];c=-1;const k=[];for(;++c<s;){const x=b[c]||"";let w="",D="";if(t.alignDelimiters!==!1){const C=o[c]-(d[c]||0),y=u[c];y===114?w=" ".repeat(C):y===99?C%2?(w=" ".repeat(C/2+.5),D=" ".repeat(C/2-.5)):(w=" ".repeat(C/2),D=w):D=" ".repeat(C)}t.delimiterStart!==!1&&!c&&k.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&x==="")&&(t.delimiterStart!==!1||c)&&k.push(" "),t.alignDelimiters!==!1&&k.push(w),k.push(x),t.alignDelimiters!==!1&&k.push(D),t.padding!==!1&&k.push(" "),(t.delimiterEnd!==!1||c!==s-1)&&k.push("|")}p.push(t.delimiterEnd===!1?k.join("").replace(/ +$/,""):k.join(""))}return p.join(`
|
|
4
4
|
`)}function jt(e){return e==null?"":String(e)}function se(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}function Bt(e,n,t,i){const l=t.enter("blockquote"),u=t.createTracker(i);u.move("> "),u.shift(2);const r=t.indentLines(t.containerFlow(e,u.current()),$t);return l(),r}function $t(e,n,t){return">"+(t?"":" ")+e}function Ht(e,n){return ce(e,n.inConstruct,!0)&&!ce(e,n.notInConstruct,!1)}function ce(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let i=-1;for(;++i<n.length;)if(e.includes(n[i]))return!0;return!1}function fe(e,n,t,i){let l=-1;for(;++l<t.unsafe.length;)if(t.unsafe[l].character===`
|
|
5
5
|
`&&Ht(t.stack,t.unsafe[l]))return/[ \t]/.test(i.before)?"":" ";return`\\
|
|
@@ -14,4 +14,4 @@ import{r as X,j as H,_ as Ue}from"./index-CaDf51H6.js";function ae(e,n){const t=
|
|
|
14
14
|
`))+1))}const r="#".repeat(l),a=t.enter("headingAtx"),o=t.enter("phrasing");u.move(r+" ");let s=t.containerPhrasing(e,{before:"# ",after:`
|
|
15
15
|
`,...u.current()});return/^[\t ]/.test(s)&&(s=O(s.charCodeAt(0))+s.slice(1)),s=s?r+" "+s:r,t.options.closeAtx&&(s+=" "+r),o(),a(),s}Se.peek=tn;function Se(e){return e.value||""}function tn(){return"<"}ve.peek=nn;function ve(e,n,t,i){const l=ne(t),u=l==='"'?"Quote":"Apostrophe",r=t.enter("image");let a=t.enter("label");const o=t.createTracker(i);let s=o.move("![");return s+=o.move(t.safe(e.alt,{before:s,after:"]",...o.current()})),s+=o.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=t.enter("destinationLiteral"),s+=o.move("<"),s+=o.move(t.safe(e.url,{before:s,after:">",...o.current()})),s+=o.move(">")):(a=t.enter("destinationRaw"),s+=o.move(t.safe(e.url,{before:s,after:e.title?" ":")",...o.current()}))),a(),e.title&&(a=t.enter(`title${u}`),s+=o.move(" "+l),s+=o.move(t.safe(e.title,{before:s,after:l,...o.current()})),s+=o.move(l),a()),s+=o.move(")"),r(),s}function nn(){return"!"}Le.peek=rn;function Le(e,n,t,i){const l=e.referenceType,u=t.enter("imageReference");let r=t.enter("label");const a=t.createTracker(i);let o=a.move("![");const s=t.safe(e.alt,{before:o,after:"]",...a.current()});o+=a.move(s+"]["),r();const h=t.stack;t.stack=[],r=t.enter("reference");const c=t.safe(t.associationId(e),{before:o,after:"]",...a.current()});return r(),t.stack=h,u(),l==="full"||!s||s!==c?o+=a.move(c+"]"):l==="shortcut"?o=o.slice(0,-1):o+=a.move("]"),o}function rn(){return"!"}Te.peek=ln;function Te(e,n,t){let i=e.value||"",l="`",u=-1;for(;new RegExp("(^|[^`])"+l+"([^`]|$)").test(i);)l+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++u<t.unsafe.length;){const r=t.unsafe[u],a=t.compilePattern(r);let o;if(r.atBreak)for(;o=a.exec(i);){let s=o.index;i.charCodeAt(s)===10&&i.charCodeAt(s-1)===13&&s--,i=i.slice(0,s)+" "+i.slice(o.index+1)}}return l+i+l}function ln(){return"`"}function ze(e,n){const t=De(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(t===e.url||"mailto:"+t===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Ie.peek=on;function Ie(e,n,t,i){const l=ne(t),u=l==='"'?"Quote":"Apostrophe",r=t.createTracker(i);let a,o;if(ze(e,t)){const h=t.stack;t.stack=[],a=t.enter("autolink");let c=r.move("<");return c+=r.move(t.containerPhrasing(e,{before:c,after:">",...r.current()})),c+=r.move(">"),a(),t.stack=h,c}a=t.enter("link"),o=t.enter("label");let s=r.move("[");return s+=r.move(t.containerPhrasing(e,{before:s,after:"](",...r.current()})),s+=r.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=t.enter("destinationLiteral"),s+=r.move("<"),s+=r.move(t.safe(e.url,{before:s,after:">",...r.current()})),s+=r.move(">")):(o=t.enter("destinationRaw"),s+=r.move(t.safe(e.url,{before:s,after:e.title?" ":")",...r.current()}))),o(),e.title&&(o=t.enter(`title${u}`),s+=r.move(" "+l),s+=r.move(t.safe(e.title,{before:s,after:l,...r.current()})),s+=r.move(l),o()),s+=r.move(")"),a(),s}function on(e,n,t){return ze(e,t)?"<":"["}Ee.peek=un;function Ee(e,n,t,i){const l=e.referenceType,u=t.enter("linkReference");let r=t.enter("label");const a=t.createTracker(i);let o=a.move("[");const s=t.containerPhrasing(e,{before:o,after:"]",...a.current()});o+=a.move(s+"]["),r();const h=t.stack;t.stack=[],r=t.enter("reference");const c=t.safe(t.associationId(e),{before:o,after:"]",...a.current()});return r(),t.stack=h,u(),l==="full"||!s||s!==c?o+=a.move(c+"]"):l==="shortcut"?o=o.slice(0,-1):o+=a.move("]"),o}function un(){return"["}function re(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function an(e){const n=re(e),t=e.options.bulletOther;if(!t)return n==="*"?"-":"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(t===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+t+"`) to be different");return t}function sn(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function Pe(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function cn(e,n,t,i){const l=t.enter("list"),u=t.bulletCurrent;let r=e.ordered?sn(t):re(t);const a=e.ordered?r==="."?")":".":an(t);let o=n&&t.bulletLastUsed?r===t.bulletLastUsed:!1;if(!e.ordered){const h=e.children?e.children[0]:void 0;if((r==="*"||r==="-")&&h&&(!h.children||!h.children[0])&&t.stack[t.stack.length-1]==="list"&&t.stack[t.stack.length-2]==="listItem"&&t.stack[t.stack.length-3]==="list"&&t.stack[t.stack.length-4]==="listItem"&&t.indexStack[t.indexStack.length-1]===0&&t.indexStack[t.indexStack.length-2]===0&&t.indexStack[t.indexStack.length-3]===0&&(o=!0),Pe(t)===r&&h){let c=-1;for(;++c<e.children.length;){const m=e.children[c];if(m&&m.type==="listItem"&&m.children&&m.children[0]&&m.children[0].type==="thematicBreak"){o=!0;break}}}}o&&(r=a),t.bulletCurrent=r;const s=t.containerFlow(e,i);return t.bulletLastUsed=r,t.bulletCurrent=u,l(),s}function fn(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function hn(e,n,t,i){const l=fn(t);let u=t.bulletCurrent||re(t);n&&n.type==="list"&&n.ordered&&(u=(typeof n.start=="number"&&n.start>-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+u);let r=u.length+1;(l==="tab"||l==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(r=Math.ceil(r/4)*4);const a=t.createTracker(i);a.move(u+" ".repeat(r-u.length)),a.shift(r);const o=t.enter("listItem"),s=t.indentLines(t.containerFlow(e,a.current()),h);return o(),s;function h(c,m,g){return m?(g?"":" ".repeat(r))+c:(g?u:u+" ".repeat(r-u.length))+c}}function pn(e,n,t,i){const l=t.enter("paragraph"),u=t.enter("phrasing"),r=t.containerPhrasing(e,i);return u(),l(),r}const mn=V(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function gn(e,n,t,i){return(e.children.some(function(r){return mn(r)})?t.containerPhrasing:t.containerFlow).call(t,e,i)}function kn(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}Re.peek=bn;function Re(e,n,t,i){const l=kn(t),u=t.enter("strong"),r=t.createTracker(i),a=r.move(l+l);let o=r.move(t.containerPhrasing(e,{after:l,before:a,...r.current()}));const s=o.charCodeAt(0),h=N(i.before.charCodeAt(i.before.length-1),s,l);h.inside&&(o=O(s)+o.slice(1));const c=o.charCodeAt(o.length-1),m=N(i.after.charCodeAt(0),c,l);m.inside&&(o=o.slice(0,-1)+O(c));const g=r.move(l+l);return u(),t.attentionEncodeSurroundingInfo={after:m.outside,before:h.outside},a+o+g}function bn(e,n,t){return t.options.strong||"*"}function dn(e,n,t,i){return t.safe(e.value,i)}function xn(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function wn(e,n,t){const i=(Pe(t)+(t.options.ruleSpaces?" ":"")).repeat(xn(t));return t.options.ruleSpaces?i.slice(0,-1):i}const _e={blockquote:Bt,break:fe,code:Ut,definition:Gt,emphasis:Ae,hardBreak:fe,heading:en,html:Se,image:ve,imageReference:Le,inlineCode:Te,link:Ie,linkReference:Ee,list:cn,listItem:hn,paragraph:pn,root:gn,strong:Re,text:dn,thematicBreak:wn};function yn(){return{enter:{table:Cn,tableData:pe,tableHeader:pe,tableRow:Dn},exit:{codeText:Fn,table:An,tableData:J,tableHeader:J,tableRow:J}}}function Cn(e){const n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}function An(e){this.exit(e),this.data.inTable=void 0}function Dn(e){this.enter({type:"tableRow",children:[]},e)}function J(e){this.exit(e)}function pe(e){this.enter({type:"tableCell",children:[]},e)}function Fn(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,Sn));const t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}function Sn(e,n){return n==="|"?n:e}function vn(e){const n=e||{},t=n.tableCellPadding,i=n.tablePipeAlign,l=n.stringLength,u=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
16
16
|
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:m,table:r,tableCell:o,tableRow:a}};function r(g,p,b,d){return s(h(g,b,d),g.align)}function a(g,p,b,d){const k=c(g,b,d),x=s([k]);return x.slice(0,x.indexOf(`
|
|
17
|
-
`))}function o(g,p,b,d){const k=b.enter("tableCell"),x=b.enter("phrasing"),w=b.containerPhrasing(g,{...d,before:u,after:u});return x(),k(),w}function s(g,p){return Ot(g,{align:p,alignDelimiters:i,padding:t,stringLength:l})}function h(g,p,b){const d=g.children;let k=-1;const x=[],w=p.enter("table");for(;++k<d.length;)x[k]=c(d[k],p,b);return w(),x}function c(g,p,b){const d=g.children;let k=-1;const x=[],w=p.enter("tableRow");for(;++k<d.length;)x[k]=o(d[k],g,p,b);return w(),x}function m(g,p,b){let d=_e.inlineCode(g,p,b);return b.stack.includes("tableCell")&&(d=d.replace(/\|/g,"\\$&")),d}}function Ln(){return{exit:{taskListCheckValueChecked:me,taskListCheckValueUnchecked:me,paragraph:zn}}}function Tn(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:In}}}function me(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function zn(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const t=this.stack[this.stack.length-1];t.type;const i=t.children[0];if(i&&i.type==="text"){const l=n.children;let u=-1,r;for(;++u<l.length;){const a=l[u];if(a.type==="paragraph"){r=a;break}}r===t&&(i.value=i.value.slice(1),i.value.length===0?t.children.shift():t.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,t.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function In(e,n,t,i){const l=e.children[0],u=typeof e.checked=="boolean"&&l&&l.type==="paragraph",r="["+(e.checked?"x":" ")+"] ",a=t.createTracker(i);u&&a.move(r);let o=_e.listItem(e,n,t,{...i,...a.current()});return u&&(o=o.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,s)),o;function s(h){return h+r}}function En(){return[ot(),vt(),It(),yn(),Ln()]}function Pn(e){return{extensions:[ut(),Lt(e),Et(),vn(e),Tn()]}}function _(e,n,t,i){const l=e.length;let u=0,r;if(n<0?n=-n>l?0:l+n:n=n>l?l:n,t=t>0?t:0,i.length<1e4)r=Array.from(i),r.unshift(n,t),e.splice(...r);else for(t&&e.splice(n,t);u<i.length;)r=i.slice(u,u+1e4),r.unshift(n,0),e.splice(...r),u+=1e4,n+=1e4}function Tr(e,n){return e.length>0?(_(e,e.length,0,n),e):n}const ge={}.hasOwnProperty;function Rn(e){const n={};let t=-1;for(;++t<e.length;)_n(n,e[t]);return n}function _n(e,n){let t;for(t in n){const l=(ge.call(e,t)?e[t]:void 0)||(e[t]={}),u=n[t];let r;if(u)for(r in u){ge.call(l,r)||(l[r]=[]);const a=u[r];Mn(l[r],Array.isArray(a)?a:a?[a]:[])}}}function Mn(e,n){let t=-1;const i=[];for(;++t<n.length;)(n[t].add==="after"?e:i).push(n[t]);_(e,0,0,i)}const On={tokenize:Wn,partial:!0},Me={tokenize:Nn,partial:!0},Oe={tokenize:Un,partial:!0},je={tokenize:Vn,partial:!0},jn={tokenize:Gn,partial:!0},Be={name:"wwwAutolink",tokenize:Hn,previous:He},$e={name:"protocolAutolink",tokenize:qn,previous:qe},L={name:"emailAutolink",tokenize:$n,previous:We},F={};function Bn(){return{text:F}}let z=48;for(;z<123;)F[z]=L,z++,z===58?z=65:z===91&&(z=97);F[43]=L;F[45]=L;F[46]=L;F[95]=L;F[72]=[L,$e];F[104]=[L,$e];F[87]=[L,Be];F[119]=[L,Be];function $n(e,n,t){const i=this;let l,u;return r;function r(c){return!ee(c)||!We.call(i,i.previous)||ie(i.events)?t(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(c))}function a(c){return ee(c)?(e.consume(c),a):c===64?(e.consume(c),o):t(c)}function o(c){return c===46?e.check(jn,h,s)(c):c===45||c===95||te(c)?(u=!0,e.consume(c),o):h(c)}function s(c){return e.consume(c),l=!0,o}function h(c){return u&&l&&M(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(c)):t(c)}}function Hn(e,n,t){const i=this;return l;function l(r){return r!==87&&r!==119||!He.call(i,i.previous)||ie(i.events)?t(r):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(On,e.attempt(Me,e.attempt(Oe,u),t),t)(r))}function u(r){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(r)}}function qn(e,n,t){const i=this;let l="",u=!1;return r;function r(c){return(c===72||c===104)&&qe.call(i,i.previous)&&!ie(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),l+=String.fromCodePoint(c),e.consume(c),a):t(c)}function a(c){if(M(c)&&l.length<5)return l+=String.fromCodePoint(c),e.consume(c),a;if(c===58){const m=l.toLowerCase();if(m==="http"||m==="https")return e.consume(c),o}return t(c)}function o(c){return c===47?(e.consume(c),u?s:(u=!0,o)):t(c)}function s(c){return c===null||Ve(c)||A(c)||I(c)||U(c)?t(c):e.attempt(Me,e.attempt(Oe,h),t)(c)}function h(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(c)}}function Wn(e,n,t){let i=0;return l;function l(r){return(r===87||r===119)&&i<3?(i++,e.consume(r),l):r===46&&i===3?(e.consume(r),u):t(r)}function u(r){return r===null?t(r):n(r)}}function Nn(e,n,t){let i,l,u;return r;function r(s){return s===46||s===95?e.check(je,o,a)(s):s===null||A(s)||I(s)||s!==45&&U(s)?o(s):(u=!0,e.consume(s),r)}function a(s){return s===95?i=!0:(l=i,i=void 0),e.consume(s),r}function o(s){return l||i||!u?t(s):n(s)}}function Un(e,n){let t=0,i=0;return l;function l(r){return r===40?(t++,e.consume(r),l):r===41&&i<t?u(r):r===33||r===34||r===38||r===39||r===41||r===42||r===44||r===46||r===58||r===59||r===60||r===63||r===93||r===95||r===126?e.check(je,n,u)(r):r===null||A(r)||I(r)?n(r):(e.consume(r),l)}function u(r){return r===41&&i++,e.consume(r),l}}function Vn(e,n,t){return i;function i(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),i):a===38?(e.consume(a),u):a===93?(e.consume(a),l):a===60||a===null||A(a)||I(a)?n(a):t(a)}function l(a){return a===null||a===40||a===91||A(a)||I(a)?n(a):i(a)}function u(a){return M(a)?r(a):t(a)}function r(a){return a===59?(e.consume(a),i):M(a)?(e.consume(a),r):t(a)}}function Gn(e,n,t){return i;function i(u){return e.consume(u),l}function l(u){return te(u)?t(u):n(u)}}function He(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||A(e)}function qe(e){return!M(e)}function We(e){return!(e===47||ee(e))}function ee(e){return e===43||e===45||e===46||e===95||te(e)}function ie(e){let n=e.length,t=!1;for(;n--;){const i=e[n][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){t=!0;break}if(i._gfmAutolinkLiteralWalkedInto){t=!1;break}}return e.length>0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}function Qn(e,n,t){const i=[];let l=-1;for(;++l<e.length;){const u=e[l].resolveAll;u&&!i.includes(u)&&(n=u(n,t),i.push(u))}return n}function v(e,n,t,i){const l=i?i-1:Number.POSITIVE_INFINITY;let u=0;return r;function r(o){return S(o)?(e.enter(t),a(o)):n(o)}function a(o){return S(o)&&u++<l?(e.consume(o),a):(e.exit(t),n(o))}}const Zn={partial:!0,tokenize:Kn};function Kn(e,n,t){return i;function i(u){return S(u)?v(e,l,"linePrefix")(u):l(u)}function l(u){return u===null||P(u)?n(u):t(u)}}const Jn={tokenize:lr,partial:!0};function Xn(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:nr,continuation:{tokenize:rr},exit:ir}},text:{91:{name:"gfmFootnoteCall",tokenize:tr},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Yn,resolveTo:er}}}}function Yn(e,n,t){const i=this;let l=i.events.length;const u=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let r;for(;l--;){const o=i.events[l][1];if(o.type==="labelImage"){r=o;break}if(o.type==="gfmFootnoteCall"||o.type==="labelLink"||o.type==="label"||o.type==="image"||o.type==="link")break}return a;function a(o){if(!r||!r._balanced)return t(o);const s=j(i.sliceSerialize({start:r.end,end:i.now()}));return s.codePointAt(0)!==94||!u.includes(s.slice(1))?t(o):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),n(o))}}function er(e,n){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},l={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};l.end.column++,l.end.offset++,l.end._bufferIndex++;const u={type:"gfmFootnoteCallString",start:Object.assign({},l.end),end:Object.assign({},e[e.length-1][1].start)},r={type:"chunkString",contentType:"string",start:Object.assign({},u.start),end:Object.assign({},u.end)},a=[e[t+1],e[t+2],["enter",i,n],e[t+3],e[t+4],["enter",l,n],["exit",l,n],["enter",u,n],["enter",r,n],["exit",r,n],["exit",u,n],e[e.length-2],e[e.length-1],["exit",i,n]];return e.splice(t,e.length-t+1,...a),e}function tr(e,n,t){const i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let u=0,r;return a;function a(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),o}function o(c){return c!==94?t(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(c){if(u>999||c===93&&!r||c===null||c===91||A(c))return t(c);if(c===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return l.includes(j(i.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(c)}return A(c)||(r=!0),u++,e.consume(c),c===92?h:s}function h(c){return c===91||c===92||c===93?(e.consume(c),u++,s):s(c)}}function nr(e,n,t){const i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let u,r=0,a;return o;function o(p){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionLabelMarker"),s}function s(p){return p===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):t(p)}function h(p){if(r>999||p===93&&!a||p===null||p===91||A(p))return t(p);if(p===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return u=j(i.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return A(p)||(a=!0),r++,e.consume(p),p===92?c:h}function c(p){return p===91||p===92||p===93?(e.consume(p),r++,h):h(p)}function m(p){return p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l.includes(u)||l.push(u),v(e,g,"gfmFootnoteDefinitionWhitespace")):t(p)}function g(p){return n(p)}}function rr(e,n,t){return e.check(Zn,n,e.attempt(Jn,n,t))}function ir(e){e.exit("gfmFootnoteDefinition")}function lr(e,n,t){const i=this;return v(e,l,"gfmFootnoteDefinitionIndent",5);function l(u){const r=i.events[i.events.length-1];return r&&r[1].type==="gfmFootnoteDefinitionIndent"&&r[2].sliceSerialize(r[1],!0).length===4?n(u):t(u)}}function or(e){let t=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:u,resolveAll:l};return t==null&&(t=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function l(r,a){let o=-1;for(;++o<r.length;)if(r[o][0]==="enter"&&r[o][1].type==="strikethroughSequenceTemporary"&&r[o][1]._close){let s=o;for(;s--;)if(r[s][0]==="exit"&&r[s][1].type==="strikethroughSequenceTemporary"&&r[s][1]._open&&r[o][1].end.offset-r[o][1].start.offset===r[s][1].end.offset-r[s][1].start.offset){r[o][1].type="strikethroughSequence",r[s][1].type="strikethroughSequence";const h={type:"strikethrough",start:Object.assign({},r[s][1].start),end:Object.assign({},r[o][1].end)},c={type:"strikethroughText",start:Object.assign({},r[s][1].end),end:Object.assign({},r[o][1].start)},m=[["enter",h,a],["enter",r[s][1],a],["exit",r[s][1],a],["enter",c,a]],g=a.parser.constructs.insideSpan.null;g&&_(m,m.length,0,Qn(g,r.slice(s+1,o),a)),_(m,m.length,0,[["exit",c,a],["enter",r[o][1],a],["exit",r[o][1],a],["exit",h,a]]),_(r,s-1,o-s+3,m),o=s+m.length-2;break}}for(o=-1;++o<r.length;)r[o][1].type==="strikethroughSequenceTemporary"&&(r[o][1].type="data");return r}function u(r,a,o){const s=this.previous,h=this.events;let c=0;return m;function m(p){return s===126&&h[h.length-1][1].type!=="characterEscape"?o(p):(r.enter("strikethroughSequenceTemporary"),g(p))}function g(p){const b=W(s);if(p===126)return c>1?o(p):(r.consume(p),c++,g);if(c<2&&!t)return o(p);const d=r.exit("strikethroughSequenceTemporary"),k=W(p);return d._open=!k||k===2&&!!b,d._close=!b||b===2&&!!k,a(p)}}}class ur{constructor(){this.map=[]}add(n,t,i){ar(this,n,t,i)}consume(n){if(this.map.sort(function(u,r){return u[0]-r[0]}),this.map.length===0)return;let t=this.map.length;const i=[];for(;t>0;)t-=1,i.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];i.push(n.slice()),n.length=0;let l=i.pop();for(;l;){for(const u of l)n.push(u);l=i.pop()}this.map.length=0}}function ar(e,n,t,i){let l=0;if(!(t===0&&i.length===0)){for(;l<e.map.length;){if(e.map[l][0]===n){e.map[l][1]+=t,e.map[l][2].push(...i);return}l+=1}e.map.push([n,t,i])}}function sr(e,n){let t=!1;const i=[];for(;n<e.length;){const l=e[n];if(t){if(l[0]==="enter")l[1].type==="tableContent"&&i.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(l[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const u=i.length-1;i[u]=i[u]==="left"?"center":"right"}}else if(l[1].type==="tableDelimiterRow")break}else l[0]==="enter"&&l[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return i}function cr(){return{flow:{null:{name:"table",tokenize:fr,resolveAll:hr}}}}function fr(e,n,t){const i=this;let l=0,u=0,r;return a;function a(f){let R=i.events.length-1;for(;R>-1;){const ue=i.events[R][1].type;if(ue==="lineEnding"||ue==="linePrefix")R--;else break}const le=R>-1?i.events[R][1].type:null,oe=le==="tableHead"||le==="tableRow"?y:o;return oe===y&&i.parser.lazy[i.now().line]?t(f):oe(f)}function o(f){return e.enter("tableHead"),e.enter("tableRow"),s(f)}function s(f){return f===124||(r=!0,u+=1),h(f)}function h(f){return f===null?t(f):P(f)?u>1?(u=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),g):t(f):S(f)?v(e,h,"whitespace")(f):(u+=1,r&&(r=!1,l+=1),f===124?(e.enter("tableCellDivider"),e.consume(f),e.exit("tableCellDivider"),r=!0,h):(e.enter("data"),c(f)))}function c(f){return f===null||f===124||A(f)?(e.exit("data"),h(f)):(e.consume(f),f===92?m:c)}function m(f){return f===92||f===124?(e.consume(f),c):c(f)}function g(f){return i.interrupt=!1,i.parser.lazy[i.now().line]?t(f):(e.enter("tableDelimiterRow"),r=!1,S(f)?v(e,p,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):p(f))}function p(f){return f===45||f===58?d(f):f===124?(r=!0,e.enter("tableCellDivider"),e.consume(f),e.exit("tableCellDivider"),b):C(f)}function b(f){return S(f)?v(e,d,"whitespace")(f):d(f)}function d(f){return f===58?(u+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(f),e.exit("tableDelimiterMarker"),k):f===45?(u+=1,k(f)):f===null||P(f)?D(f):C(f)}function k(f){return f===45?(e.enter("tableDelimiterFiller"),x(f)):C(f)}function x(f){return f===45?(e.consume(f),x):f===58?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(f),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(f))}function w(f){return S(f)?v(e,D,"whitespace")(f):D(f)}function D(f){return f===124?p(f):f===null||P(f)?!r||l!==u?C(f):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(f)):C(f)}function C(f){return t(f)}function y(f){return e.enter("tableRow"),B(f)}function B(f){return f===124?(e.enter("tableCellDivider"),e.consume(f),e.exit("tableCellDivider"),B):f===null||P(f)?(e.exit("tableRow"),n(f)):S(f)?v(e,B,"whitespace")(f):(e.enter("data"),$(f))}function $(f){return f===null||f===124||A(f)?(e.exit("data"),B(f)):(e.consume(f),f===92?Ne:$)}function Ne(f){return f===92||f===124?(e.consume(f),$):$(f)}}function hr(e,n){let t=-1,i=!0,l=0,u=[0,0,0,0],r=[0,0,0,0],a=!1,o=0,s,h,c;const m=new ur;for(;++t<e.length;){const g=e[t],p=g[1];g[0]==="enter"?p.type==="tableHead"?(a=!1,o!==0&&(ke(m,n,o,s,h),h=void 0,o=0),s={type:"table",start:Object.assign({},p.start),end:Object.assign({},p.end)},m.add(t,0,[["enter",s,n]])):p.type==="tableRow"||p.type==="tableDelimiterRow"?(i=!0,c=void 0,u=[0,0,0,0],r=[0,t+1,0,0],a&&(a=!1,h={type:"tableBody",start:Object.assign({},p.start),end:Object.assign({},p.end)},m.add(t,0,[["enter",h,n]])),l=p.type==="tableDelimiterRow"?2:h?3:1):l&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.type==="tableDelimiterFiller")?(i=!1,r[2]===0&&(u[1]!==0&&(r[0]=r[1],c=q(m,n,u,l,void 0,c),u=[0,0,0,0]),r[2]=t)):p.type==="tableCellDivider"&&(i?i=!1:(u[1]!==0&&(r[0]=r[1],c=q(m,n,u,l,void 0,c)),u=r,r=[u[1],t,0,0])):p.type==="tableHead"?(a=!0,o=t):p.type==="tableRow"||p.type==="tableDelimiterRow"?(o=t,u[1]!==0?(r[0]=r[1],c=q(m,n,u,l,t,c)):r[1]!==0&&(c=q(m,n,r,l,t,c)),l=0):l&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.type==="tableDelimiterFiller")&&(r[3]=t)}for(o!==0&&ke(m,n,o,s,h),m.consume(n.events),t=-1;++t<n.events.length;){const g=n.events[t];g[0]==="enter"&&g[1].type==="table"&&(g[1]._align=sr(n.events,t))}return e}function q(e,n,t,i,l,u){const r=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",a="tableContent";t[0]!==0&&(u.end=Object.assign({},E(n.events,t[0])),e.add(t[0],0,[["exit",u,n]]));const o=E(n.events,t[1]);if(u={type:r,start:Object.assign({},o),end:Object.assign({},o)},e.add(t[1],0,[["enter",u,n]]),t[2]!==0){const s=E(n.events,t[2]),h=E(n.events,t[3]),c={type:a,start:Object.assign({},s),end:Object.assign({},h)};if(e.add(t[2],0,[["enter",c,n]]),i!==2){const m=n.events[t[2]],g=n.events[t[3]];if(m[1].end=Object.assign({},g[1].end),m[1].type="chunkText",m[1].contentType="text",t[3]>t[2]+1){const p=t[2]+1,b=t[3]-t[2]-1;e.add(p,b,[])}}e.add(t[3]+1,0,[["exit",c,n]])}return l!==void 0&&(u.end=Object.assign({},E(n.events,l)),e.add(l,0,[["exit",u,n]]),u=void 0),u}function ke(e,n,t,i,l){const u=[],r=E(n.events,t);l&&(l.end=Object.assign({},r),u.push(["exit",l,n])),i.end=Object.assign({},r),u.push(["exit",i,n]),e.add(t+1,0,u)}function E(e,n){const t=e[n],i=t[0]==="enter"?"start":"end";return t[1][i]}const pr={name:"tasklistCheck",tokenize:gr};function mr(){return{text:{91:pr}}}function gr(e,n,t){const i=this;return l;function l(o){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?t(o):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(o),e.exit("taskListCheckMarker"),u)}function u(o){return A(o)?(e.enter("taskListCheckValueUnchecked"),e.consume(o),e.exit("taskListCheckValueUnchecked"),r):o===88||o===120?(e.enter("taskListCheckValueChecked"),e.consume(o),e.exit("taskListCheckValueChecked"),r):t(o)}function r(o){return o===93?(e.enter("taskListCheckMarker"),e.consume(o),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):t(o)}function a(o){return P(o)?n(o):S(o)?e.check({tokenize:kr},n,t)(o):t(o)}}function kr(e,n,t){return v(e,i,"whitespace");function i(l){return l===null?t(l):n(l)}}function br(e){return Rn([Bn(),Xn(),or(e),cr(),mr()])}const dr={};function xr(e){const n=this,t=e||dr,i=n.data(),l=i.micromarkExtensions||(i.micromarkExtensions=[]),u=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),r=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);l.push(br(t)),u.push(En()),r.push(Pn(t))}const wr=X.lazy(()=>Ue(()=>import("./index-CFEz1CGb.js"),__vite__mapDeps([0,1,2])));function yr(e){return e.replace(/^---\r?\n[\s\S]*?\r?\n---\r?\n?/,"").trim()}function zr({content:e,className:n}){const t=X.useMemo(()=>yr(e),[e]);return H.jsx(X.Suspense,{fallback:H.jsx("p",{style:{color:"var(--text-muted)"},children:"Loading viewer..."}),children:H.jsx("div",{className:n??"skill-markdown",children:H.jsx(wr,{remarkPlugins:[xr],children:t})})})}export{zr as M,te as a,M as b,W as c,Ve as d,Fr as e,v as f,Lr as g,vr as h,Sr as i,P as j,A as k,Zn as l,S as m,j as n,Ar as o,Tr as p,Rn as q,Qn as r,_ as s,De as t,Dr as u,Kt as v};
|
|
17
|
+
`))}function o(g,p,b,d){const k=b.enter("tableCell"),x=b.enter("phrasing"),w=b.containerPhrasing(g,{...d,before:u,after:u});return x(),k(),w}function s(g,p){return Ot(g,{align:p,alignDelimiters:i,padding:t,stringLength:l})}function h(g,p,b){const d=g.children;let k=-1;const x=[],w=p.enter("table");for(;++k<d.length;)x[k]=c(d[k],p,b);return w(),x}function c(g,p,b){const d=g.children;let k=-1;const x=[],w=p.enter("tableRow");for(;++k<d.length;)x[k]=o(d[k],g,p,b);return w(),x}function m(g,p,b){let d=_e.inlineCode(g,p,b);return b.stack.includes("tableCell")&&(d=d.replace(/\|/g,"\\$&")),d}}function Ln(){return{exit:{taskListCheckValueChecked:me,taskListCheckValueUnchecked:me,paragraph:zn}}}function Tn(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:In}}}function me(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function zn(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const t=this.stack[this.stack.length-1];t.type;const i=t.children[0];if(i&&i.type==="text"){const l=n.children;let u=-1,r;for(;++u<l.length;){const a=l[u];if(a.type==="paragraph"){r=a;break}}r===t&&(i.value=i.value.slice(1),i.value.length===0?t.children.shift():t.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,t.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function In(e,n,t,i){const l=e.children[0],u=typeof e.checked=="boolean"&&l&&l.type==="paragraph",r="["+(e.checked?"x":" ")+"] ",a=t.createTracker(i);u&&a.move(r);let o=_e.listItem(e,n,t,{...i,...a.current()});return u&&(o=o.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,s)),o;function s(h){return h+r}}function En(){return[ot(),vt(),It(),yn(),Ln()]}function Pn(e){return{extensions:[ut(),Lt(e),Et(),vn(e),Tn()]}}function _(e,n,t,i){const l=e.length;let u=0,r;if(n<0?n=-n>l?0:l+n:n=n>l?l:n,t=t>0?t:0,i.length<1e4)r=Array.from(i),r.unshift(n,t),e.splice(...r);else for(t&&e.splice(n,t);u<i.length;)r=i.slice(u,u+1e4),r.unshift(n,0),e.splice(...r),u+=1e4,n+=1e4}function Tr(e,n){return e.length>0?(_(e,e.length,0,n),e):n}const ge={}.hasOwnProperty;function Rn(e){const n={};let t=-1;for(;++t<e.length;)_n(n,e[t]);return n}function _n(e,n){let t;for(t in n){const l=(ge.call(e,t)?e[t]:void 0)||(e[t]={}),u=n[t];let r;if(u)for(r in u){ge.call(l,r)||(l[r]=[]);const a=u[r];Mn(l[r],Array.isArray(a)?a:a?[a]:[])}}}function Mn(e,n){let t=-1;const i=[];for(;++t<n.length;)(n[t].add==="after"?e:i).push(n[t]);_(e,0,0,i)}const On={tokenize:Wn,partial:!0},Me={tokenize:Nn,partial:!0},Oe={tokenize:Un,partial:!0},je={tokenize:Vn,partial:!0},jn={tokenize:Gn,partial:!0},Be={name:"wwwAutolink",tokenize:Hn,previous:He},$e={name:"protocolAutolink",tokenize:qn,previous:qe},L={name:"emailAutolink",tokenize:$n,previous:We},F={};function Bn(){return{text:F}}let z=48;for(;z<123;)F[z]=L,z++,z===58?z=65:z===91&&(z=97);F[43]=L;F[45]=L;F[46]=L;F[95]=L;F[72]=[L,$e];F[104]=[L,$e];F[87]=[L,Be];F[119]=[L,Be];function $n(e,n,t){const i=this;let l,u;return r;function r(c){return!ee(c)||!We.call(i,i.previous)||ie(i.events)?t(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(c))}function a(c){return ee(c)?(e.consume(c),a):c===64?(e.consume(c),o):t(c)}function o(c){return c===46?e.check(jn,h,s)(c):c===45||c===95||te(c)?(u=!0,e.consume(c),o):h(c)}function s(c){return e.consume(c),l=!0,o}function h(c){return u&&l&&M(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(c)):t(c)}}function Hn(e,n,t){const i=this;return l;function l(r){return r!==87&&r!==119||!He.call(i,i.previous)||ie(i.events)?t(r):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(On,e.attempt(Me,e.attempt(Oe,u),t),t)(r))}function u(r){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(r)}}function qn(e,n,t){const i=this;let l="",u=!1;return r;function r(c){return(c===72||c===104)&&qe.call(i,i.previous)&&!ie(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),l+=String.fromCodePoint(c),e.consume(c),a):t(c)}function a(c){if(M(c)&&l.length<5)return l+=String.fromCodePoint(c),e.consume(c),a;if(c===58){const m=l.toLowerCase();if(m==="http"||m==="https")return e.consume(c),o}return t(c)}function o(c){return c===47?(e.consume(c),u?s:(u=!0,o)):t(c)}function s(c){return c===null||Ve(c)||A(c)||I(c)||U(c)?t(c):e.attempt(Me,e.attempt(Oe,h),t)(c)}function h(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(c)}}function Wn(e,n,t){let i=0;return l;function l(r){return(r===87||r===119)&&i<3?(i++,e.consume(r),l):r===46&&i===3?(e.consume(r),u):t(r)}function u(r){return r===null?t(r):n(r)}}function Nn(e,n,t){let i,l,u;return r;function r(s){return s===46||s===95?e.check(je,o,a)(s):s===null||A(s)||I(s)||s!==45&&U(s)?o(s):(u=!0,e.consume(s),r)}function a(s){return s===95?i=!0:(l=i,i=void 0),e.consume(s),r}function o(s){return l||i||!u?t(s):n(s)}}function Un(e,n){let t=0,i=0;return l;function l(r){return r===40?(t++,e.consume(r),l):r===41&&i<t?u(r):r===33||r===34||r===38||r===39||r===41||r===42||r===44||r===46||r===58||r===59||r===60||r===63||r===93||r===95||r===126?e.check(je,n,u)(r):r===null||A(r)||I(r)?n(r):(e.consume(r),l)}function u(r){return r===41&&i++,e.consume(r),l}}function Vn(e,n,t){return i;function i(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),i):a===38?(e.consume(a),u):a===93?(e.consume(a),l):a===60||a===null||A(a)||I(a)?n(a):t(a)}function l(a){return a===null||a===40||a===91||A(a)||I(a)?n(a):i(a)}function u(a){return M(a)?r(a):t(a)}function r(a){return a===59?(e.consume(a),i):M(a)?(e.consume(a),r):t(a)}}function Gn(e,n,t){return i;function i(u){return e.consume(u),l}function l(u){return te(u)?t(u):n(u)}}function He(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||A(e)}function qe(e){return!M(e)}function We(e){return!(e===47||ee(e))}function ee(e){return e===43||e===45||e===46||e===95||te(e)}function ie(e){let n=e.length,t=!1;for(;n--;){const i=e[n][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){t=!0;break}if(i._gfmAutolinkLiteralWalkedInto){t=!1;break}}return e.length>0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}function Qn(e,n,t){const i=[];let l=-1;for(;++l<e.length;){const u=e[l].resolveAll;u&&!i.includes(u)&&(n=u(n,t),i.push(u))}return n}function v(e,n,t,i){const l=i?i-1:Number.POSITIVE_INFINITY;let u=0;return r;function r(o){return S(o)?(e.enter(t),a(o)):n(o)}function a(o){return S(o)&&u++<l?(e.consume(o),a):(e.exit(t),n(o))}}const Zn={partial:!0,tokenize:Kn};function Kn(e,n,t){return i;function i(u){return S(u)?v(e,l,"linePrefix")(u):l(u)}function l(u){return u===null||P(u)?n(u):t(u)}}const Jn={tokenize:lr,partial:!0};function Xn(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:nr,continuation:{tokenize:rr},exit:ir}},text:{91:{name:"gfmFootnoteCall",tokenize:tr},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Yn,resolveTo:er}}}}function Yn(e,n,t){const i=this;let l=i.events.length;const u=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let r;for(;l--;){const o=i.events[l][1];if(o.type==="labelImage"){r=o;break}if(o.type==="gfmFootnoteCall"||o.type==="labelLink"||o.type==="label"||o.type==="image"||o.type==="link")break}return a;function a(o){if(!r||!r._balanced)return t(o);const s=j(i.sliceSerialize({start:r.end,end:i.now()}));return s.codePointAt(0)!==94||!u.includes(s.slice(1))?t(o):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),n(o))}}function er(e,n){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},l={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};l.end.column++,l.end.offset++,l.end._bufferIndex++;const u={type:"gfmFootnoteCallString",start:Object.assign({},l.end),end:Object.assign({},e[e.length-1][1].start)},r={type:"chunkString",contentType:"string",start:Object.assign({},u.start),end:Object.assign({},u.end)},a=[e[t+1],e[t+2],["enter",i,n],e[t+3],e[t+4],["enter",l,n],["exit",l,n],["enter",u,n],["enter",r,n],["exit",r,n],["exit",u,n],e[e.length-2],e[e.length-1],["exit",i,n]];return e.splice(t,e.length-t+1,...a),e}function tr(e,n,t){const i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let u=0,r;return a;function a(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),o}function o(c){return c!==94?t(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(c){if(u>999||c===93&&!r||c===null||c===91||A(c))return t(c);if(c===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return l.includes(j(i.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(c)}return A(c)||(r=!0),u++,e.consume(c),c===92?h:s}function h(c){return c===91||c===92||c===93?(e.consume(c),u++,s):s(c)}}function nr(e,n,t){const i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let u,r=0,a;return o;function o(p){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionLabelMarker"),s}function s(p){return p===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):t(p)}function h(p){if(r>999||p===93&&!a||p===null||p===91||A(p))return t(p);if(p===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return u=j(i.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return A(p)||(a=!0),r++,e.consume(p),p===92?c:h}function c(p){return p===91||p===92||p===93?(e.consume(p),r++,h):h(p)}function m(p){return p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l.includes(u)||l.push(u),v(e,g,"gfmFootnoteDefinitionWhitespace")):t(p)}function g(p){return n(p)}}function rr(e,n,t){return e.check(Zn,n,e.attempt(Jn,n,t))}function ir(e){e.exit("gfmFootnoteDefinition")}function lr(e,n,t){const i=this;return v(e,l,"gfmFootnoteDefinitionIndent",5);function l(u){const r=i.events[i.events.length-1];return r&&r[1].type==="gfmFootnoteDefinitionIndent"&&r[2].sliceSerialize(r[1],!0).length===4?n(u):t(u)}}function or(e){let t=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:u,resolveAll:l};return t==null&&(t=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function l(r,a){let o=-1;for(;++o<r.length;)if(r[o][0]==="enter"&&r[o][1].type==="strikethroughSequenceTemporary"&&r[o][1]._close){let s=o;for(;s--;)if(r[s][0]==="exit"&&r[s][1].type==="strikethroughSequenceTemporary"&&r[s][1]._open&&r[o][1].end.offset-r[o][1].start.offset===r[s][1].end.offset-r[s][1].start.offset){r[o][1].type="strikethroughSequence",r[s][1].type="strikethroughSequence";const h={type:"strikethrough",start:Object.assign({},r[s][1].start),end:Object.assign({},r[o][1].end)},c={type:"strikethroughText",start:Object.assign({},r[s][1].end),end:Object.assign({},r[o][1].start)},m=[["enter",h,a],["enter",r[s][1],a],["exit",r[s][1],a],["enter",c,a]],g=a.parser.constructs.insideSpan.null;g&&_(m,m.length,0,Qn(g,r.slice(s+1,o),a)),_(m,m.length,0,[["exit",c,a],["enter",r[o][1],a],["exit",r[o][1],a],["exit",h,a]]),_(r,s-1,o-s+3,m),o=s+m.length-2;break}}for(o=-1;++o<r.length;)r[o][1].type==="strikethroughSequenceTemporary"&&(r[o][1].type="data");return r}function u(r,a,o){const s=this.previous,h=this.events;let c=0;return m;function m(p){return s===126&&h[h.length-1][1].type!=="characterEscape"?o(p):(r.enter("strikethroughSequenceTemporary"),g(p))}function g(p){const b=W(s);if(p===126)return c>1?o(p):(r.consume(p),c++,g);if(c<2&&!t)return o(p);const d=r.exit("strikethroughSequenceTemporary"),k=W(p);return d._open=!k||k===2&&!!b,d._close=!b||b===2&&!!k,a(p)}}}class ur{constructor(){this.map=[]}add(n,t,i){ar(this,n,t,i)}consume(n){if(this.map.sort(function(u,r){return u[0]-r[0]}),this.map.length===0)return;let t=this.map.length;const i=[];for(;t>0;)t-=1,i.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];i.push(n.slice()),n.length=0;let l=i.pop();for(;l;){for(const u of l)n.push(u);l=i.pop()}this.map.length=0}}function ar(e,n,t,i){let l=0;if(!(t===0&&i.length===0)){for(;l<e.map.length;){if(e.map[l][0]===n){e.map[l][1]+=t,e.map[l][2].push(...i);return}l+=1}e.map.push([n,t,i])}}function sr(e,n){let t=!1;const i=[];for(;n<e.length;){const l=e[n];if(t){if(l[0]==="enter")l[1].type==="tableContent"&&i.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(l[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const u=i.length-1;i[u]=i[u]==="left"?"center":"right"}}else if(l[1].type==="tableDelimiterRow")break}else l[0]==="enter"&&l[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return i}function cr(){return{flow:{null:{name:"table",tokenize:fr,resolveAll:hr}}}}function fr(e,n,t){const i=this;let l=0,u=0,r;return a;function a(f){let R=i.events.length-1;for(;R>-1;){const ue=i.events[R][1].type;if(ue==="lineEnding"||ue==="linePrefix")R--;else break}const le=R>-1?i.events[R][1].type:null,oe=le==="tableHead"||le==="tableRow"?y:o;return oe===y&&i.parser.lazy[i.now().line]?t(f):oe(f)}function o(f){return e.enter("tableHead"),e.enter("tableRow"),s(f)}function s(f){return f===124||(r=!0,u+=1),h(f)}function h(f){return f===null?t(f):P(f)?u>1?(u=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),g):t(f):S(f)?v(e,h,"whitespace")(f):(u+=1,r&&(r=!1,l+=1),f===124?(e.enter("tableCellDivider"),e.consume(f),e.exit("tableCellDivider"),r=!0,h):(e.enter("data"),c(f)))}function c(f){return f===null||f===124||A(f)?(e.exit("data"),h(f)):(e.consume(f),f===92?m:c)}function m(f){return f===92||f===124?(e.consume(f),c):c(f)}function g(f){return i.interrupt=!1,i.parser.lazy[i.now().line]?t(f):(e.enter("tableDelimiterRow"),r=!1,S(f)?v(e,p,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):p(f))}function p(f){return f===45||f===58?d(f):f===124?(r=!0,e.enter("tableCellDivider"),e.consume(f),e.exit("tableCellDivider"),b):C(f)}function b(f){return S(f)?v(e,d,"whitespace")(f):d(f)}function d(f){return f===58?(u+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(f),e.exit("tableDelimiterMarker"),k):f===45?(u+=1,k(f)):f===null||P(f)?D(f):C(f)}function k(f){return f===45?(e.enter("tableDelimiterFiller"),x(f)):C(f)}function x(f){return f===45?(e.consume(f),x):f===58?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(f),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(f))}function w(f){return S(f)?v(e,D,"whitespace")(f):D(f)}function D(f){return f===124?p(f):f===null||P(f)?!r||l!==u?C(f):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(f)):C(f)}function C(f){return t(f)}function y(f){return e.enter("tableRow"),B(f)}function B(f){return f===124?(e.enter("tableCellDivider"),e.consume(f),e.exit("tableCellDivider"),B):f===null||P(f)?(e.exit("tableRow"),n(f)):S(f)?v(e,B,"whitespace")(f):(e.enter("data"),$(f))}function $(f){return f===null||f===124||A(f)?(e.exit("data"),B(f)):(e.consume(f),f===92?Ne:$)}function Ne(f){return f===92||f===124?(e.consume(f),$):$(f)}}function hr(e,n){let t=-1,i=!0,l=0,u=[0,0,0,0],r=[0,0,0,0],a=!1,o=0,s,h,c;const m=new ur;for(;++t<e.length;){const g=e[t],p=g[1];g[0]==="enter"?p.type==="tableHead"?(a=!1,o!==0&&(ke(m,n,o,s,h),h=void 0,o=0),s={type:"table",start:Object.assign({},p.start),end:Object.assign({},p.end)},m.add(t,0,[["enter",s,n]])):p.type==="tableRow"||p.type==="tableDelimiterRow"?(i=!0,c=void 0,u=[0,0,0,0],r=[0,t+1,0,0],a&&(a=!1,h={type:"tableBody",start:Object.assign({},p.start),end:Object.assign({},p.end)},m.add(t,0,[["enter",h,n]])),l=p.type==="tableDelimiterRow"?2:h?3:1):l&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.type==="tableDelimiterFiller")?(i=!1,r[2]===0&&(u[1]!==0&&(r[0]=r[1],c=q(m,n,u,l,void 0,c),u=[0,0,0,0]),r[2]=t)):p.type==="tableCellDivider"&&(i?i=!1:(u[1]!==0&&(r[0]=r[1],c=q(m,n,u,l,void 0,c)),u=r,r=[u[1],t,0,0])):p.type==="tableHead"?(a=!0,o=t):p.type==="tableRow"||p.type==="tableDelimiterRow"?(o=t,u[1]!==0?(r[0]=r[1],c=q(m,n,u,l,t,c)):r[1]!==0&&(c=q(m,n,r,l,t,c)),l=0):l&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.type==="tableDelimiterFiller")&&(r[3]=t)}for(o!==0&&ke(m,n,o,s,h),m.consume(n.events),t=-1;++t<n.events.length;){const g=n.events[t];g[0]==="enter"&&g[1].type==="table"&&(g[1]._align=sr(n.events,t))}return e}function q(e,n,t,i,l,u){const r=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",a="tableContent";t[0]!==0&&(u.end=Object.assign({},E(n.events,t[0])),e.add(t[0],0,[["exit",u,n]]));const o=E(n.events,t[1]);if(u={type:r,start:Object.assign({},o),end:Object.assign({},o)},e.add(t[1],0,[["enter",u,n]]),t[2]!==0){const s=E(n.events,t[2]),h=E(n.events,t[3]),c={type:a,start:Object.assign({},s),end:Object.assign({},h)};if(e.add(t[2],0,[["enter",c,n]]),i!==2){const m=n.events[t[2]],g=n.events[t[3]];if(m[1].end=Object.assign({},g[1].end),m[1].type="chunkText",m[1].contentType="text",t[3]>t[2]+1){const p=t[2]+1,b=t[3]-t[2]-1;e.add(p,b,[])}}e.add(t[3]+1,0,[["exit",c,n]])}return l!==void 0&&(u.end=Object.assign({},E(n.events,l)),e.add(l,0,[["exit",u,n]]),u=void 0),u}function ke(e,n,t,i,l){const u=[],r=E(n.events,t);l&&(l.end=Object.assign({},r),u.push(["exit",l,n])),i.end=Object.assign({},r),u.push(["exit",i,n]),e.add(t+1,0,u)}function E(e,n){const t=e[n],i=t[0]==="enter"?"start":"end";return t[1][i]}const pr={name:"tasklistCheck",tokenize:gr};function mr(){return{text:{91:pr}}}function gr(e,n,t){const i=this;return l;function l(o){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?t(o):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(o),e.exit("taskListCheckMarker"),u)}function u(o){return A(o)?(e.enter("taskListCheckValueUnchecked"),e.consume(o),e.exit("taskListCheckValueUnchecked"),r):o===88||o===120?(e.enter("taskListCheckValueChecked"),e.consume(o),e.exit("taskListCheckValueChecked"),r):t(o)}function r(o){return o===93?(e.enter("taskListCheckMarker"),e.consume(o),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):t(o)}function a(o){return P(o)?n(o):S(o)?e.check({tokenize:kr},n,t)(o):t(o)}}function kr(e,n,t){return v(e,i,"whitespace");function i(l){return l===null?t(l):n(l)}}function br(e){return Rn([Bn(),Xn(),or(e),cr(),mr()])}const dr={};function xr(e){const n=this,t=e||dr,i=n.data(),l=i.micromarkExtensions||(i.micromarkExtensions=[]),u=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),r=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);l.push(br(t)),u.push(En()),r.push(Pn(t))}const wr=X.lazy(()=>Ue(()=>import("./index-CUdpRxTZ.js"),__vite__mapDeps([0,1,2])));function yr(e){return e.replace(/^---\r?\n[\s\S]*?\r?\n---\r?\n?/,"").trim()}function zr({content:e,className:n}){const t=X.useMemo(()=>yr(e),[e]);return H.jsx(X.Suspense,{fallback:H.jsx("p",{style:{color:"var(--text-muted)"},children:"Loading viewer..."}),children:H.jsx("div",{className:n??"skill-markdown",children:H.jsx(wr,{remarkPlugins:[xr],children:t})})})}export{zr as M,te as a,M as b,W as c,Ve as d,Fr as e,v as f,Lr as g,vr as h,Sr as i,P as j,A as k,Zn as l,S as m,j as n,Ar as o,Tr as p,Rn as q,Qn as r,_ as s,De as t,Dr as u,Kt as v};
|