vendor: 4,275 bytes, line 1
1import{j as d}from"./query-_koPiPsI.js";import{k as $e,r as U,L as q}from"./react-vendor-h1rQ_Bae.js";import{s as He,aB as G,aT as V,B as ue,aC as Ue,C as Q}from"./index-Dq2zLArw.js";import{c as de,v as Ge,o as I,u as z,a as te,n as O,b as $,d as Ve,E as Qe,t as be,e as ne,f as R,m as A,g as Je,h as F,i as Ze,s as J,r as Ke,j as P,k as T,l as Xe,M as Ye}from"./index-V1hVUxaF.js";import"./ui-radix-CKwvnS8F.js";import"./supabase-DL6nu9mS.js";import"./charts-Xu79y1bN.js";import"./motion-nVmI7L5T.js";function ce(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let i=0,o=t.indexOf(n);for(;o!==-1;)i++,o=t.indexOf(n,o+n.length);return i}function et(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function tt(e,n,t){const o=de((t||{}).ignore||[]),a=nt(n);let r=-1;for(;++r<a.length;)Ge(e,"text",s);function s(u,h){let c=-1,p;for(;++c<h.length;){const g=h[c],m=p?p.children:void 0;if(o(g,m?m.indexOf(g):void 0,p))return;p=g}if(p)return l(u,h)}function l(u,h){const c=h[h.length-1],p=a[r][0],g=a[r][1];let m=0;const x=c.children.indexOf(u);let k=!1,w=[];p.lastIndex=0;let y=p.exec(u.value);for(;y;){const _=y.index,v={index:y.index,input:y.input,stack:[...h,u]};let C=g(...y,v);if(typeof C=="string"&&(C=C.length>0?{type:"text",value:C}:void 0),C===!1?p.lastIndex=_+1:(m!==_&&w.push({type:"text",value:u.value.slice(m,_)}),Array.isArray(C)?w.push(...C):C&&w.push(C),m=_+y[0].length,k=!0),!p.global)break;y=p.exec(u.value)}return k?(m<u.value.length&&w.push({type:"text",value:u.value.slice(m)}),c.children.splice(x,1,...w)):w=[u],x+w.length}}function nt(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 o=t[i];n.push([rt(o[0]),it(o[1])])}return n}function rt(e){return typeof e=="string"?new RegExp(et(e),"g"):e}function it(e){return typeof e=="function"?e:function(){return e}}const Z="phrasing",K=["autolink","link","image","label"];function lt(){return{transforms:[ht],enter:{literalAutolink:at,literalAutolinkEmail:X,literalAutolinkHttp:X,literalAutolinkWww:X},exit:{literalAutolink:ft,literalAutolinkEmail:ct,literalAutolinkHttp:st,literalAutolinkWww:ut}}}function ot(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Z,notInConstruct:K},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Z,notInConstruct:K},{character:":",before:"[ps]",after:"\\/",inConstruct:Z,notInConstruct:K}]}}function at(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function X(e){this.config.enter.autolinkProtocol.call(this,e)}function st(e){this.config.exit.autolinkProtocol.call(this,e)}function ut(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];I(n.type==="link"),n.url="http://"+this.sliceSerialize(e)}function ct(e){this.config.exit.autolinkEmail.call(this,e)}function ft(e){this.exit(e)}function ht(e){tt(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,mt],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,pt]],{ignore:["link","linkReference"]})}function mt(e,n,t,i,o){let a="";if(!xe(o)||(/^w/i.test(n)&&(t=n+t,n="",a="http://"),!gt(t)))return!1;const r=kt(t+i);if(!r[0])return!1;const s={type:"link",title:null,url:a+n+r[0],children:[{type:"text",value:n+r[0]}]};return r[1]?[s,{type:"text",value:r[1]}]:s}function pt(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 gt(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 kt(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 o=ce(e,"(");let a=ce(e,")");for(;i!==-1&&o>a;)e+=t.slice(0,i+1),t=t.slice(i+1),i=t.indexOf(")"),a++;return[e,t]}function xe(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||z(t)||te(t))&&(!n||t!==47)}we.peek=At;function dt(){this.buffer()}function bt(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}
vendor: 4,490 bytes, lines 1-5
1function xt(){this.buffer()}function wt(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function yt(e){const n=this.resume(),t=this.stack[this.stack.length-1];I(t.type==="footnoteReference"),t.identifier=O(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Ct(e){this.exit(e)}function vt(e){const n=this.resume(),t=this.stack[this.stack.length-1];I(t.type==="footnoteDefinition"),t.identifier=O(this.sliceSerialize(e)).toLowerCase(),t.label=n}function _t(e){this.exit(e)}function At(){return"["}function we(e,n,t,i){const o=t.createTracker(i);let a=o.move("[^");const r=t.enter("footnoteReference"),s=t.enter("reference");return a+=o.move(t.safe(t.associationId(e),{after:"]",before:a})),s(),r(),a+=o.move("]"),a}function Dt(){return{enter:{gfmFootnoteCallString:dt,gfmFootnoteCall:bt,gfmFootnoteDefinitionLabelString:xt,gfmFootnoteDefinition:wt},exit:{gfmFootnoteCallString:yt,gfmFootnoteCall:Ct,gfmFootnoteDefinitionLabelString:vt,gfmFootnoteDefinition:_t}}}function St(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:t,footnoteReference:we},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(i,o,a,r){const s=a.createTracker(r);let l=s.move("[^");const u=a.enter("footnoteDefinition"),h=a.enter("label");return l+=s.move(a.safe(a.associationId(i),{before:l,after:"]"})),h(),l+=s.move("]:"),i.children&&i.children.length>0&&(s.shift(4),l+=s.move((n?` 2`:" ")+a.indentLines(a.containerFlow(i,s.current()),n?ye:Ft))),u(),l}}function Ft(e,n,t){return n===0?e:ye(e,n,t)}function ye(e,n,t){return(t?"":" ")+e}const Lt=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Ce.peek=Et;function Tt(){return{canContainEols:["delete"],enter:{strikethrough:zt},exit:{strikethrough:It}}}function jt(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Lt}],handlers:{delete:Ce}}}function zt(e){this.enter({type:"delete",children:[]},e)}function It(e){this.exit(e)}function Ce(e,n,t,i){const o=t.createTracker(i),a=t.enter("strikethrough");let r=o.move("~~");return r+=t.containerPhrasing(e,{...o.current(),before:r,after:"~"}),r+=o.move("~~"),a(),r}function Et(){return"~"}function Pt(e){return e.length}function Rt(e,n){const t=n||{},i=(t.align||[]).concat(),o=t.stringLength||Pt,a=[],r=[],s=[],l=[];let u=0,h=-1;for(;++h<e.length;){const b=[],x=[];let k=-1;for(e[h].length>u&&(u=e[h].length);++k<e[h].length;){const w=Mt(e[h][k]);if(t.alignDelimiters!==!1){const y=o(w);x[k]=y,(l[k]===void 0||y>l[k])&&(l[k]=y)}b.push(w)}r[h]=b,s[h]=x}let c=-1;if(typeof i=="object"&&"length"in i)for(;++c<u;)a[c]=fe(i[c]);else{const b=fe(i);for(;++c<u;)a[c]=b}c=-1;const p=[],g=[];for(;++c<u;){const b=a[c];let x="",k="";b===99?(x=":",k=":"):b===108?x=":":b===114&&(k=":");let w=t.alignDelimiters===!1?1:Math.max(1,l[c]-x.length-k.length);const y=x+"-".repeat(w)+k;t.alignDelimiters!==!1&&(w=x.length+w+k.length,w>l[c]&&(l[c]=w),g[c]=w),p[c]=y}r.splice(1,0,p),s.splice(1,0,g),h=-1;const m=[];for(;++h<r.length;){const b=r[h],x=s[h];c=-1;const k=[];for(;++c<u;){const w=b[c]||"";let y="",_="";if(t.alignDelimiters!==!1){const v=l[c]-(x[c]||0),C=a[c];C===114?y=" ".repeat(v):C===99?v%2?(y=" ".repeat(v/2+.5),_=" ".repeat(v/2-.5)):(y=" ".repeat(v/2),_=y):_=" ".repeat(v)}t.delimiterStart!==!1&&!c&&k.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&w==="")&&(t.delimiterStart!==!1||c)&&k.push(" "),t.alignDelimiters!==!1&&k.push(y),k.push(w),t.alignDelimiters!==!1&&k.push(_),t.padding!==!1&&k.push(" "),(t.delimiterEnd!==!1||c!==u-1)&&k.push("|")}m.push(t.delimiterEnd===!1?k.join("").replace(/ +$/,""):k.join(""))}return m.join(` 3`)}function Mt(e){return e==null?"":String(e)}function fe(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 Ot(e,n,t,i){const o=t.enter("blockquote"),a=t.createTracker(i);a.move("> "),a.shift(2);const r=t.indentLines(t.containerFlow(e,a.current()),Bt);return o(),r}function Bt(e,n,t){return">"+(t?"":" ")+e}function Nt(e,n){return he(e,n.inConstruct,!0)&&!he(e,n.notInConstruct,!1)}function he(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 me(e,n,t,i){let o=-1;for(;++o<t.unsafe.length;)if(t.unsafe[o].character===` 4`&&Nt(t.stack,t.unsafe[o]))return/[ \t]/.test(i.before)?"":" ";return`\\ 5`}function qt(e,n){const t=String(e);let i=t.indexOf(n),o=i,a=0,r=0;
vendor: 12,835 bytes, lines 5-16
5if(typeof n!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===o?++a>r&&(r=a):a=1,o=i+n.length,i=t.indexOf(n,o);return r}function Wt(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function $t(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function Ht(e,n,t,i){const o=$t(t),a=e.value||"",r=o==="`"?"GraveAccent":"Tilde";if(Wt(e,t)){const c=t.enter("codeIndented"),p=t.indentLines(a,Ut);return c(),p}const s=t.createTracker(i),l=o.repeat(Math.max(qt(a,o)+1,3)),u=t.enter("codeFenced");let h=s.move(l);if(e.lang){const c=t.enter(`codeFencedLang${r}`);h+=s.move(t.safe(e.lang,{before:h,after:" ",encode:["`"],...s.current()})),c()}if(e.lang&&e.meta){const c=t.enter(`codeFencedMeta${r}`);h+=s.move(" "),h+=s.move(t.safe(e.meta,{before:h,after:` 6`,encode:["`"],...s.current()})),c()}return h+=s.move(` 7`),a&&(h+=s.move(a+` 8`)),h+=s.move(l),u(),h}function Ut(e,n,t){return(t?"":" ")+e}function re(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function Gt(e,n,t,i){const o=re(t),a=o==='"'?"Quote":"Apostrophe",r=t.enter("definition");let s=t.enter("label");const l=t.createTracker(i);let u=l.move("[");return u+=l.move(t.safe(t.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=t.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(t.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=t.enter("destinationRaw"),u+=l.move(t.safe(e.url,{before:u,after:e.title?" ":` 9`,...l.current()}))),s(),e.title&&(s=t.enter(`title${a}`),u+=l.move(" "+o),u+=l.move(t.safe(e.title,{before:u,after:o,...l.current()})),u+=l.move(o),s()),r(),u}function Vt(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function M(e){return"&#x"+e.toString(16).toUpperCase()+";"}function H(e,n,t){const i=$(e),o=$(n);return i===void 0?o===void 0?t==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}ve.peek=Qt;function ve(e,n,t,i){const o=Vt(t),a=t.enter("emphasis"),r=t.createTracker(i),s=r.move(o);let l=r.move(t.containerPhrasing(e,{after:o,before:s,...r.current()}));const u=l.charCodeAt(0),h=H(i.before.charCodeAt(i.before.length-1),u,o);h.inside&&(l=M(u)+l.slice(1));const c=l.charCodeAt(l.length-1),p=H(i.after.charCodeAt(0),c,o);p.inside&&(l=l.slice(0,-1)+M(c));const g=r.move(o);return a(),t.attentionEncodeSurroundingInfo={after:p.outside,before:h.outside},s+l+g}function Qt(e,n,t){return t.options.emphasis||"*"}function Jt(e,n){let t=!1;return Ve(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return t=!0,Qe}),!!((!e.depth||e.depth<3)&&be(e)&&(n.options.setext||t))}function Zt(e,n,t,i){const o=Math.max(Math.min(6,e.depth||1),1),a=t.createTracker(i);if(Jt(e,t)){const h=t.enter("headingSetext"),c=t.enter("phrasing"),p=t.containerPhrasing(e,{...a.current(),before:` 10`,after:` 11`});return c(),h(),p+` 12`+(o===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(` 13`))+1))}const r="#".repeat(o),s=t.enter("headingAtx"),l=t.enter("phrasing");a.move(r+" ");let u=t.containerPhrasing(e,{before:"# ",after:` 14`,...a.current()});return/^[\t ]/.test(u)&&(u=M(u.charCodeAt(0))+u.slice(1)),u=u?r+" "+u:r,t.options.closeAtx&&(u+=" "+r),l(),s(),u}_e.peek=Kt;function _e(e){return e.value||""}function Kt(){return"<"}Ae.peek=Xt;function Ae(e,n,t,i){const o=re(t),a=o==='"'?"Quote":"Apostrophe",r=t.enter("image");let s=t.enter("label");const l=t.createTracker(i);let u=l.move("![");return u+=l.move(t.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=t.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(t.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=t.enter("destinationRaw"),u+=l.move(t.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=t.enter(`title${a}`),u+=l.move(" "+o),u+=l.move(t.safe(e.title,{before:u,after:o,...l.current()})),u+=l.move(o),s()),u+=l.move(")"),r(),u}function Xt(){return"!"}De.peek=Yt;function De(e,n,t,i){const o=e.referenceType,a=t.enter("imageReference");let r=t.enter("label");const s=t.createTracker(i);let l=s.move("![");const u=t.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),r();const h=t.stack;t.stack=[],r=t.enter("reference");const c=t.safe(t.associationId(e),{before:l,after:"]",...s.current()});return r(),t.stack=h,a(),o==="full"||!u||u!==c?l+=s.move(c+"]"):o==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function Yt(){return"!"}Se.peek=en;function Se(e,n,t){let i=e.value||"",o="`",a=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(i);)o+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++a<t.unsafe.length;){const r=t.unsafe[a],s=t.compilePattern(r);let l;if(r.atBreak)for(;l=s.exec(i);){let u=l.index;i.charCodeAt(u)===10&&i.charCodeAt(u-1)===13&&u--,i=i.slice(0,u)+" "+i.slice(l.index+1)}}return o+i+o}function en(){return"`"}function Fe(e,n){const t=be(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))}Le.peek=tn;function Le(e,n,t,i){const o=re(t),a=o==='"'?"Quote":"Apostrophe",r=t.createTracker(i);let s,l;if(Fe(e,t)){const h=t.stack;t.stack=[],s=t.enter("autolink");let c=r.move("<");return c+=r.move(t.containerPhrasing(e,{before:c,after:">",...r.current()})),c+=r.move(">"),s(),t.stack=h,c}s=t.enter("link"),l=t.enter("label");let u=r.move("[");return u+=r.move(t.containerPhrasing(e,{before:u,after:"](",...r.current()})),u+=r.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=t.enter("destinationLiteral"),u+=r.move("<"),u+=r.move(t.safe(e.url,{before:u,after:">",...r.current()})),u+=r.move(">")):(l=t.enter("destinationRaw"),u+=r.move(t.safe(e.url,{before:u,after:e.title?" ":")",...r.current()}))),l(),e.title&&(l=t.enter(`title${a}`),u+=r.move(" "+o),u+=r.move(t.safe(e.title,{before:u,after:o,...r.current()})),u+=r.move(o),l()),u+=r.move(")"),s(),u}function tn(e,n,t){return Fe(e,t)?"<":"["}Te.peek=nn;function Te(e,n,t,i){const o=e.referenceType,a=t.enter("linkReference");let r=t.enter("label");const s=t.createTracker(i);let l=s.move("[");const u=t.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),r();const h=t.stack;t.stack=[],r=t.enter("reference");const c=t.safe(t.associationId(e),{before:l,after:"]",...s.current()});return r(),t.stack=h,a(),o==="full"||!u||u!==c?l+=s.move(c+"]"):o==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function nn(){return"["}function ie(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 rn(e){const n=ie(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 ln(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 je(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 on(e,n,t,i){const o=t.enter("list"),a=t.bulletCurrent;let r=e.ordered?ln(t):ie(t);const s=e.ordered?r==="."?")":".":rn(t);let l=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&&(l=!0),je(t)===r&&h){let c=-1;for(;++c<e.children.length;){const p=e.children[c];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(r=s),t.bulletCurrent=r;const u=t.containerFlow(e,i);return t.bulletLastUsed=r,t.bulletCurrent=a,o(),u}function an(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 sn(e,n,t,i){const o=an(t);let a=t.bulletCurrent||ie(t);n&&n.type==="list"&&n.ordered&&(a=(typeof n.start=="number"&&n.start>-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+a);let r=a.length+1;(o==="tab"||o==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(r=Math.ceil(r/4)*4);const s=t.createTracker(i);s.move(a+" ".repeat(r-a.length)),s.shift(r);const l=t.enter("listItem"),u=t.indentLines(t.containerFlow(e,s.current()),h);return l(),u;function h(c,p,g){return p?(g?"":" ".repeat(r))+c:(g?a:a+" ".repeat(r-a.length))+c}}function un(e,n,t,i){const o=t.enter("paragraph"),a=t.enter("phrasing"),r=t.containerPhrasing(e,i);return a(),o(),r}const cn=de(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function fn(e,n,t,i){return(e.children.some(function(r){return cn(r)})?t.containerPhrasing:t.containerFlow).call(t,e,i)}function hn(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}ze.peek=mn;function ze(e,n,t,i){const o=hn(t),a=t.enter("strong"),r=t.createTracker(i),s=r.move(o+o);let l=r.move(t.containerPhrasing(e,{after:o,before:s,...r.current()}));const u=l.charCodeAt(0),h=H(i.before.charCodeAt(i.before.length-1),u,o);h.inside&&(l=M(u)+l.slice(1));const c=l.charCodeAt(l.length-1),p=H(i.after.charCodeAt(0),c,o);p.inside&&(l=l.slice(0,-1)+M(c));const g=r.move(o+o);return a(),t.attentionEncodeSurroundingInfo={after:p.outside,before:h.outside},s+l+g}function mn(e,n,t){return t.options.strong||"*"}function pn(e,n,t,i){return t.safe(e.value,i)}function gn(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 kn(e,n,t){const i=(je(t)+(t.options.ruleSpaces?" ":"")).repeat(gn(t));return t.options.ruleSpaces?i.slice(0,-1):i}const Ie={blockquote:Ot,break:me,code:Ht,definition:Gt,emphasis:ve,hardBreak:me,heading:Zt,html:_e,image:Ae,imageReference:De,inlineCode:Se,link:Le,linkReference:Te,list:on,listItem:sn,paragraph:un,root:fn,strong:ze,text:pn,thematicBreak:kn};function dn(){return{enter:{table:bn,tableData:pe,tableHeader:pe,tableRow:wn},exit:{codeText:yn,table:xn,tableData:Y,tableHeader:Y,tableRow:Y}}}function bn(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 xn(e){this.exit(e),this.data.inTable=void 0}function wn(e){this.enter({type:"tableRow",children:[]},e)}function Y(e){this.exit(e)}function pe(e){this.enter({type:"tableCell",children:[]},e)}function yn(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,Cn));const t=this.stack[this.stack.length-1];I(t.type==="inlineCode"),t.value=n,this.exit(e)}function Cn(e,n){return n==="|"?n:e}function vn(e){const n=e||{},t=n.tableCellPadding,i=n.tablePipeAlign,o=n.stringLength,a=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` 15`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:r,tableCell:l,tableRow:s}};function r(g,m,b,x){return u(h(g,b,x),g.align)}function s(g,m,b,x){const k=c(g,b,x),w=u([k]);return w.slice(0,w.indexOf(` 16`))}function l(g,m,b,x){const k=b.enter("tableCell"),w=b.enter("phrasing"),y=b.containerPhrasing(g,{...x,before:a,after:a});return w(),k(),y}
vendor: 4,508 bytes, line 16
16function u(g,m){return Rt(g,{align:m,alignDelimiters:i,padding:t,stringLength:o})}function h(g,m,b){const x=g.children;let k=-1;const w=[],y=m.enter("table");for(;++k<x.length;)w[k]=c(x[k],m,b);return y(),w}function c(g,m,b){const x=g.children;let k=-1;const w=[],y=m.enter("tableRow");for(;++k<x.length;)w[k]=l(x[k],g,m,b);return y(),w}function p(g,m,b){let x=Ie.inlineCode(g,m,b);return b.stack.includes("tableCell")&&(x=x.replace(/\|/g,"\\$&")),x}}function _n(){return{exit:{taskListCheckValueChecked:ge,taskListCheckValueUnchecked:ge,paragraph:Dn}}}function An(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Sn}}}function ge(e){const n=this.stack[this.stack.length-2];I(n.type==="listItem"),n.checked=e.type==="taskListCheckValueChecked"}function Dn(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];I(t.type==="paragraph");const i=t.children[0];if(i&&i.type==="text"){const o=n.children;let a=-1,r;for(;++a<o.length;){const s=o[a];if(s.type==="paragraph"){r=s;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 Sn(e,n,t,i){const o=e.children[0],a=typeof e.checked=="boolean"&&o&&o.type==="paragraph",r="["+(e.checked?"x":" ")+"] ",s=t.createTracker(i);a&&s.move(r);let l=Ie.listItem(e,n,t,{...i,...s.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(h){return h+r}}function Fn(){return[lt(),Dt(),Tt(),dn(),_n()]}function Ln(e){return{extensions:[ot(),St(e),jt(),vn(e),An()]}}const Tn={tokenize:Rn,partial:!0},Ee={tokenize:Mn,partial:!0},Pe={tokenize:On,partial:!0},Re={tokenize:Bn,partial:!0},jn={tokenize:Nn,partial:!0},Me={name:"wwwAutolink",tokenize:En,previous:Be},Oe={name:"protocolAutolink",tokenize:Pn,previous:Ne},S={name:"emailAutolink",tokenize:In,previous:qe},D={};function zn(){return{text:D}}let L=48;for(;L<123;)D[L]=S,L++,L===58?L=65:L===91&&(L=97);D[43]=S;D[45]=S;D[46]=S;D[95]=S;D[72]=[S,Oe];D[104]=[S,Oe];D[87]=[S,Me];D[119]=[S,Me];function In(e,n,t){const i=this;let o,a;return r;function r(c){return!ee(c)||!qe.call(i,i.previous)||le(i.events)?t(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(c))}function s(c){return ee(c)?(e.consume(c),s):c===64?(e.consume(c),l):t(c)}function l(c){return c===46?e.check(jn,h,u)(c):c===45||c===95||ne(c)?(a=!0,e.consume(c),l):h(c)}function u(c){return e.consume(c),o=!0,l}function h(c){return a&&o&&R(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(c)):t(c)}}function En(e,n,t){const i=this;return o;function o(r){return r!==87&&r!==119||!Be.call(i,i.previous)||le(i.events)?t(r):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Tn,e.attempt(Ee,e.attempt(Pe,a),t),t)(r))}function a(r){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(r)}}function Pn(e,n,t){const i=this;let o="",a=!1;return r;function r(c){return(c===72||c===104)&&Ne.call(i,i.previous)&&!le(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(c),e.consume(c),s):t(c)}function s(c){if(R(c)&&o.length<5)return o+=String.fromCodePoint(c),e.consume(c),s;if(c===58){const p=o.toLowerCase();if(p==="http"||p==="https")return e.consume(c),l}return t(c)}function l(c){return c===47?(e.consume(c),a?u:(a=!0,l)):t(c)}function u(c){return c===null||Je(c)||A(c)||z(c)||te(c)?t(c):e.attempt(Ee,e.attempt(Pe,h),t)(c)}function h(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(c)}}function Rn(e,n,t){let i=0;return o;function o(r){return(r===87||r===119)&&i<3?(i++,e.consume(r),o):r===46&&i===3?(e.consume(r),a):t(r)}function a(r){return r===null?t(r):n(r)}}function Mn(e,n,t){let i,o,a;return r;function r(u){return u===46||u===95?e.check(Re,l,s)(u):u===null||A(u)||z(u)||u!==45&&te(u)?l(u):(a=!0,e.consume(u),r)}function s(u){return u===95?i=!0:(o=i,i=void 0),e.consume(u),r}function l(u){return o||i||!a?t(u):n(u)}}function On(e,n){let t=0,i=0;return o;function o(r){return r===40?(t++,e.consume(r),o):r===41&&i<t?a(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(Re,n,a)(r):r===null||A(r)||z(r)?n(r):(e.consume(r),o)}function a(r){return r===41&&i++,e.consume(r),o}}function Bn(e,n,t){return i;
vendor: 7,173 bytes, line 16
16function i(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),i):s===38?(e.consume(s),a):s===93?(e.consume(s),o):s===60||s===null||A(s)||z(s)?n(s):t(s)}function o(s){return s===null||s===40||s===91||A(s)||z(s)?n(s):i(s)}function a(s){return R(s)?r(s):t(s)}function r(s){return s===59?(e.consume(s),i):R(s)?(e.consume(s),r):t(s)}}function Nn(e,n,t){return i;function i(a){return e.consume(a),o}function o(a){return ne(a)?t(a):n(a)}}function Be(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||A(e)}function Ne(e){return!R(e)}function qe(e){return!(e===47||ee(e))}function ee(e){return e===43||e===45||e===46||e===95||ne(e)}function le(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}const qn={tokenize:Jn,partial:!0};function Wn(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Gn,continuation:{tokenize:Vn},exit:Qn}},text:{91:{name:"gfmFootnoteCall",tokenize:Un},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:$n,resolveTo:Hn}}}}function $n(e,n,t){const i=this;let o=i.events.length;const a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let r;for(;o--;){const l=i.events[o][1];if(l.type==="labelImage"){r=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!r||!r._balanced)return t(l);const u=O(i.sliceSerialize({start:r.end,end:i.now()}));return u.codePointAt(0)!==94||!a.includes(u.slice(1))?t(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),n(l))}}function Hn(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)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},r={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[t+1],e[t+2],["enter",i,n],e[t+3],e[t+4],["enter",o,n],["exit",o,n],["enter",a,n],["enter",r,n],["exit",r,n],["exit",a,n],e[e.length-2],e[e.length-1],["exit",i,n]];return e.splice(t,e.length-t+1,...s),e}function Un(e,n,t){const i=this,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let a=0,r;return s;function s(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),l}function l(c){return c!==94?t(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(c){if(a>999||c===93&&!r||c===null||c===91||A(c))return t(c);if(c===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return o.includes(O(i.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(c)}return A(c)||(r=!0),a++,e.consume(c),c===92?h:u}function h(c){return c===91||c===92||c===93?(e.consume(c),a++,u):u(c)}}function Gn(e,n,t){const i=this,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let a,r=0,s;return l;function l(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):t(m)}function h(m){if(r>999||m===93&&!s||m===null||m===91||A(m))return t(m);if(m===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return a=O(i.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return A(m)||(s=!0),r++,e.consume(m),m===92?c:h}function c(m){return m===91||m===92||m===93?(e.consume(m),r++,h):h(m)}function p(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),o.includes(a)||o.push(a),F(e,g,"gfmFootnoteDefinitionWhitespace")):t(m)}function g(m){return n(m)}}function Vn(e,n,t){return e.check(Ze,n,e.attempt(qn,n,t))}function Qn(e){e.exit("gfmFootnoteDefinition")}function Jn(e,n,t){const i=this;return F(e,o,"gfmFootnoteDefinitionIndent",5);function o(a){const r=i.events[i.events.length-1];return r&&r[1].type==="gfmFootnoteDefinitionIndent"&&r[2].sliceSerialize(r[1],!0).length===4?n(a):t(a)}}function Zn(e){let t=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:a,resolveAll:o};return t==null&&(t=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function o(r,s){let l=-1;for(;++l<r.length;)if(r[l][0]==="enter"&&r[l][1].type==="strikethroughSequenceTemporary"&&r[l][1]._close){let u=l;for(;u--;)if(r[u][0]==="exit"&&r[u][1].type==="strikethroughSequenceTemporary"&&r[u][1]._open&&r[l][1].end.offset-r[l][1].start.offset===r[u][1].end.offset-r[u][1].start.offset){r[l][1].type="strikethroughSequence",r[u][1].type="strikethroughSequence";const h={type:"strikethrough",start:Object.assign({},r[u][1].start),end:Object.assign({},r[l][1].end)},c={type:"strikethroughText",start:Object.assign({},r[u][1].end),end:Object.assign({},r[l][1].start)},p=[["enter",h,s],["enter",r[u][1],s],["exit",r[u][1],s],["enter",c,s]],g=s.parser.constructs.insideSpan.null;g&&J(p,p.length,0,Ke(g,r.slice(u+1,l),s)),J(p,p.length,0,[["exit",c,s],["enter",r[l][1],s],["exit",r[l][1],s],["exit",h,s]]),J(r,u-1,l-u+3,p),l=u+p.length-2;break}}for(l=-1;++l<r.length;)r[l][1].type==="strikethroughSequenceTemporary"&&(r[l][1].type="data");return r}function a(r,s,l){const u=this.previous,h=this.events;let c=0;return p;function p(m){return u===126&&h[h.length-1][1].type!=="characterEscape"?l(m):(r.enter("strikethroughSequenceTemporary"),g(m))}function g(m){const b=$(u);if(m===126)return c>1?l(m):(r.consume(m),c++,g);if(c<2&&!t)return l(m);const x=r.exit("strikethroughSequenceTemporary"),k=$(m);return x._open=!k||k===2&&!!b,x._close=!b||b===2&&!!k,s(m)}}}class Kn{constructor(){this.map=[]}add(n,t,i){Xn(this,n,t,i)}consume(n){if(this.map.sort(function(a,r){return a[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 o=i.pop();for(;o;){for(const a of o)n.push(a);o=i.pop()}this.map.length=0}}function Xn(e,n,t,i){let o=0;if(!(t===0&&i.length===0)){for(;o<e.map.length;){if(e.map[o][0]===n){e.map[o][1]+=t,e.map[o][2].push(...i);return}o+=1}e.map.push([n,t,i])}}
vendor: 5,025 bytes, line 16
16function Yn(e,n){let t=!1;const i=[];for(;n<e.length;){const o=e[n];if(t){if(o[0]==="enter")o[1].type==="tableContent"&&i.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const a=i.length-1;i[a]=i[a]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return i}function er(){return{flow:{null:{name:"table",tokenize:tr,resolveAll:nr}}}}function tr(e,n,t){const i=this;let o=0,a=0,r;return s;function s(f){let E=i.events.length-1;for(;E>-1;){const se=i.events[E][1].type;if(se==="lineEnding"||se==="linePrefix")E--;else break}const oe=E>-1?i.events[E][1].type:null,ae=oe==="tableHead"||oe==="tableRow"?C:l;return ae===C&&i.parser.lazy[i.now().line]?t(f):ae(f)}function l(f){return e.enter("tableHead"),e.enter("tableRow"),u(f)}function u(f){return f===124||(r=!0,a+=1),h(f)}function h(f){return f===null?t(f):P(f)?a>1?(a=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),g):t(f):T(f)?F(e,h,"whitespace")(f):(a+=1,r&&(r=!1,o+=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?p:c)}function p(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,T(f)?F(e,m,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):m(f))}function m(f){return f===45||f===58?x(f):f===124?(r=!0,e.enter("tableCellDivider"),e.consume(f),e.exit("tableCellDivider"),b):v(f)}function b(f){return T(f)?F(e,x,"whitespace")(f):x(f)}function x(f){return f===58?(a+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(f),e.exit("tableDelimiterMarker"),k):f===45?(a+=1,k(f)):f===null||P(f)?_(f):v(f)}function k(f){return f===45?(e.enter("tableDelimiterFiller"),w(f)):v(f)}function w(f){return f===45?(e.consume(f),w):f===58?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(f),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(f))}function y(f){return T(f)?F(e,_,"whitespace")(f):_(f)}function _(f){return f===124?m(f):f===null||P(f)?!r||o!==a?v(f):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(f)):v(f)}function v(f){return t(f)}function C(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)):T(f)?F(e,B,"whitespace")(f):(e.enter("data"),N(f))}function N(f){return f===null||f===124||A(f)?(e.exit("data"),B(f)):(e.consume(f),f===92?We:N)}function We(f){return f===92||f===124?(e.consume(f),N):N(f)}}function nr(e,n){let t=-1,i=!0,o=0,a=[0,0,0,0],r=[0,0,0,0],s=!1,l=0,u,h,c;const p=new Kn;for(;++t<e.length;){const g=e[t],m=g[1];g[0]==="enter"?m.type==="tableHead"?(s=!1,l!==0&&(ke(p,n,l,u,h),h=void 0,l=0),u={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(t,0,[["enter",u,n]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(i=!0,c=void 0,a=[0,0,0,0],r=[0,t+1,0,0],s&&(s=!1,h={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(t,0,[["enter",h,n]])),o=m.type==="tableDelimiterRow"?2:h?3:1):o&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(i=!1,r[2]===0&&(a[1]!==0&&(r[0]=r[1],c=W(p,n,a,o,void 0,c),a=[0,0,0,0]),r[2]=t)):m.type==="tableCellDivider"&&(i?i=!1:(a[1]!==0&&(r[0]=r[1],c=W(p,n,a,o,void 0,c)),a=r,r=[a[1],t,0,0])):m.type==="tableHead"?(s=!0,l=t):m.type==="tableRow"||m.type==="tableDelimiterRow"?(l=t,a[1]!==0?(r[0]=r[1],c=W(p,n,a,o,t,c)):r[1]!==0&&(c=W(p,n,r,o,t,c)),o=0):o&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(r[3]=t)}for(l!==0&&ke(p,n,l,u,h),p.consume(n.events),t=-1;++t<n.events.length;){const g=n.events[t];g[0]==="enter"&&g[1].type==="table"&&(g[1]._align=Yn(n.events,t))}return e}function W(e,n,t,i,o,a){const r=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",s="tableContent";t[0]!==0&&(a.end=Object.assign({},j(n.events,t[0])),e.add(t[0],0,[["exit",a,n]]));const l=j(n.events,t[1]);if(a={type:r,start:Object.assign({},l),end:Object.assign({},l)},e.add(t[1],0,[["enter",a,n]]),t[2]!==0){const u=j(n.events,t[2]),h=j(n.events,t[3]),c={type:s,start:Object.assign({},u),end:Object.assign({},h)};if(e.add(t[2],0,[["enter",c,n]]),i!==2){const p=n.events[t[2]],g=n.events[t[3]];if(p[1].end=Object.assign({},g[1].end),p[1].type="chunkText",p[1].contentType="text",t[3]>t[2]+1){const m=t[2]+1,b=t[3]-t[2]-1;e.add(m,b,[])}}e.add(t[3]+1,0,[["exit",c,n]])}return o!==void 0&&(a.end=Object.assign({},j(n.events,o)),e.add(o,0,[["exit",a,n]]),a=void 0),a}function ke(e,n,t,i,o){const a=[],r=j(n.events,t);o&&(o.end=Object.assign({},r),a.push(["exit",o,n])),i.end=Object.assign({},r),a.push(["exit",i,n]),e.add(t+1,0,a)}
16function j(e,n){const t=e[n],i=t[0]==="enter"?"start":"end";return t[1][i]}const rr={name:"tasklistCheck",tokenize:lr};function ir(){return{text:{91:rr}}}function lr(e,n,t){const i=this;return o;function o(l){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?t(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),a)}function a(l){return A(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),r):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),r):t(l)}function r(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):t(l)}function s(l){return P(l)?n(l):T(l)?e.check({tokenize:or},n,t)(l):t(l)}}function or(e,n,t){return F(e,i,"whitespace");function i(o){return o===null?t(o):n(o)}}function ar(e){return Xe([zn(),Wn(),Zn(e),er(),ir()])}const sr={};function ur(e){const n=this,t=e||sr,i=n.data(),o=i.micromarkExtensions||(i.micromarkExtensions=[]),a=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),r=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);o.push(ar(t)),a.push(Fn()),r.push(Ln(t))}function br(){const{slug:e}=$e(),[n,t]=U.useState(null),[i,o]=U.useState(!0);if(U.useEffect(()=>{e&&He.from("case_studies").select("*").eq("slug",e).eq("status","published").maybeSingle().then(({data:r})=>{t(r),o(!1)})},[e]),i)return d.jsxs("div",{className:"min-h-screen bg-background",children:[d.jsx(G,{}),d.jsx("main",{className:"container mx-auto px-4 py-16",children:"Loadingâ¦"}),d.jsx(V,{})]});if(!n)return d.jsxs("div",{className:"min-h-screen bg-background",children:[d.jsx(G,{}),d.jsxs("main",{className:"container mx-auto px-4 py-16 max-w-3xl text-center",children:[d.jsx("h1",{className:"text-2xl font-bold mb-4",children:"Case study not found"}),d.jsx(q,{to:"/case-studies",children:d.jsx(ue,{variant:"outline",children:"Back to case studies"})})]}),d.jsx(V,{})]});const a=n.metrics||{};return d.jsxs("div",{className:"min-h-screen bg-background",children:[d.jsx(Ue,{title:`${n.title} â ThoughtForge Case Study`,description:n.headline||n.title,canonicalUrl:`https://thoughtforge.app/case-studies/${n.slug}`}),d.jsx(G,{}),d.jsxs("main",{className:"container mx-auto px-4 py-16 max-w-3xl",children:[d.jsx(q,{to:"/case-studies",className:"text-sm text-muted-foreground hover:underline",children:"â All case studies"}),d.jsx("h1",{className:"text-4xl md:text-5xl font-bold mt-4 mb-4",children:n.title}),n.headline&&d.jsx("p",{className:"text-xl text-muted-foreground mb-8",children:n.headline}),n.hero_image_url&&d.jsx("img",{src:n.hero_image_url,alt:n.title,width:1200,height:600,className:"w-full aspect-[2/1] object-cover rounded mb-8"}),Object.keys(a).length>0&&d.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4 mb-10",children:Object.entries(a).map(([r,s])=>d.jsxs(Q,{className:"p-4",children:[d.jsx("div",{className:"text-2xl font-bold",children:String(s)}),d.jsx("div",{className:"text-xs text-muted-foreground uppercase tracking-wider mt-1",children:r.replace(/_/g," ")})]},r))}),d.jsx("article",{className:`max-w-none text-muted-foreground leading-relaxed 17 [&_h2]:text-foreground [&_h2]:text-2xl [&_h2]:font-semibold [&_h2]:mt-12 [&_h2]:mb-4 18 [&_h3]:text-foreground [&_h3]:text-lg [&_h3]:font-semibold [&_h3]:mt-8 [&_h3]:mb-3 19 [&_p]:my-4 20 [&_strong]:text-foreground [&_strong]:font-semibold 21 [&_a]:text-primary [&_a]:underline [&_a]:underline-offset-4 22 [&_ul]:my-4 [&_ul]:space-y-2 [&_ul]:list-disc [&_ul]:pl-6 23 [&_ol]:my-4 [&_ol]:space-y-2 [&_ol]:list-decimal [&_ol]:pl-6 24 [&_hr]:my-10 [&_hr]:border-border 25 [&_blockquote]:border-l-2 [&_blockquote]:border-border [&_blockquote]:pl-4 [&_blockquote]:italic 26 [&_code]:text-foreground [&_code]:text-sm 27 [&_table]:w-full [&_table]:my-6 [&_table]:text-sm [&_table]:border-collapse 28 [&_th]:text-foreground [&_th]:text-left [&_th]:font-semibold 29 [&_th]:border-b [&_th]:border-border [&_th]:py-2 [&_th]:pr-6 30 [&_td]:border-b [&_td]:border-border/50 [&_td]:py-2 [&_td]:pr-6`,children:d.jsx(Ye,{remarkPlugins:[ur],children:n.body_md})}),n.testimonial_quote&&d.jsxs("blockquote",{className:"border-l-4 border-foreground pl-6 my-10 italic text-lg",children:['"',n.testimonial_quote,'"']}),d.jsxs(Q,{className:"p-6 mt-12 border-dashed",children:[d.jsx("div",{className:"text-xs uppercase tracking-wider text-muted-foreground mb-3",children:"What we're measuring next on our own site"}),d.jsxs("ul",{className:"space-y-2 text-sm",children:[d.jsx("li",{children:"⢠Per-model citation share-of-voice (GPT vs Claude vs Gemini vs Perplexity) across 30 brand prompts"}),d.jsx("li",{children:"⢠AI Overview impression lift after rolling out FAQPage + Person JSON-LD on every article"}),d.jsx("li",{children:"⢠Competitor citation steal-rate â which prompts our content now wins that theirs used to"})]}),d.jsxs("p",{className:"text-xs text-muted-foreground mt-4",children:["Next update drops the week we hit statistical significance. ",d.jsx(q,{to:"/pricing",className:"underline",children:"Get the same dashboard"}),"."]})]}),d.jsxs(Q,{className:"p-8 mt-6 text-center bg-foreground text-background",children:[d.jsx("h3",{className:"text-2xl font-bold mb-3",children:"Want results like this?"}),d.jsx("p",{className:"mb-6 opacity-80",children:"Start publishing AI-discoverable content today."}),d.jsx(q,{to:"/pricing",children:d.jsx(ue,{variant:"secondary",size:"lg",children:"See pricing"})})]})]}),d.jsx(V,{})]})}
30export{br as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.