@visulima/vite-overlay 1.3.7 → 2.0.0-alpha.2

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.
Files changed (29) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.md +184 -23
  3. package/dist/index.d.ts +12002 -18
  4. package/dist/index.js +232 -167
  5. package/dist/packem_chunks/github-dark-default.js +1 -0
  6. package/dist/packem_chunks/github-light.js +1 -0
  7. package/package.json +7 -9
  8. package/dist/constants.d.ts +0 -14
  9. package/dist/overlay/patch-overlay.d.ts +0 -5
  10. package/dist/types.d.ts +0 -94
  11. package/dist/utils/create-vite-solution-finder.d.ts +0 -13
  12. package/dist/utils/error-processing/index.d.ts +0 -21
  13. package/dist/utils/error-processing/parse-vue-compilation-error.d.ts +0 -12
  14. package/dist/utils/error-processing/process-hydration-diff.d.ts +0 -7
  15. package/dist/utils/error-processing/remap-stack-to-original.d.ts +0 -18
  16. package/dist/utils/error-processing/retrieve-source-texts.d.ts +0 -8
  17. package/dist/utils/error-processing/shiki-diff-transformer.d.ts +0 -8
  18. package/dist/utils/error-processing/utils/add-query-to-url.d.ts +0 -2
  19. package/dist/utils/error-processing/utils/extract-query-from-http-url.d.ts +0 -2
  20. package/dist/utils/esbuild-error.d.ts +0 -29
  21. package/dist/utils/find-error-in-source.d.ts +0 -12
  22. package/dist/utils/find-module-for-path.d.ts +0 -9
  23. package/dist/utils/generate-client-script.d.ts +0 -8
  24. package/dist/utils/get-source-from-map.d.ts +0 -6
  25. package/dist/utils/normalize-id-candidates.d.ts +0 -2
  26. package/dist/utils/position-aligner.d.ts +0 -6
  27. package/dist/utils/resolve-original-location.d.ts +0 -29
  28. package/dist/utils/ssr-error-enhancer.d.ts +0 -8
  29. package/dist/utils/stack-trace.d.ts +0 -38
package/dist/index.js CHANGED
@@ -1,63 +1,63 @@
1
- var lo=Object.defineProperty;var S=(t,e)=>lo(t,"name",{value:e,configurable:!0});import{createRequire as co}from"node:module";import{codeToANSI as uo}from"@shikijs/cli";import{renderError as go,getErrorCauses as mo}from"@visulima/error/error";import{errorHintFinder as fo,ruleBasedFinder as vo}from"@visulima/error/solution";import{distance as Ge}from"fastest-levenshtein";import{parseStacktrace as Ee,formatStacktrace as Cr,codeFrame as Jt}from"@visulima/error";import Kt from"@visulima/error/solution/ai/prompt";import{TraceMap as bo,originalPositionFor as yo}from"@jridgewell/trace-mapping";const po=co(import.meta.url),Re=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,tt=S(t=>{if(typeof Re<"u"&&Re.versions&&Re.versions.node){const[e,r]=Re.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return Re.getBuiltinModule(t)}return po(t)},"__cjs_getBuiltinModule"),{stripVTControlCharacters:ho,styleText:Qt}=tt("node:util"),wo=tt("node:fs"),te=tt("node:path"),{readFile:Lr}=tt("node:fs/promises");var ko=Object.defineProperty,z=S((t,e)=>ko(t,"name",{value:e,configurable:!0}),"k$2");function rt(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}S(rt,"E$5");z(rt,"L");var be=rt();function Et(t){be=t}S(Et,"ie");z(Et,"G");var He={exec:z(()=>null,"exec")};function L(t,e=""){let r=typeof t=="string"?t:t.source,n={replace:z((o,i)=>{let a=typeof i=="string"?i:i.source;return a=a.replace(W.caret,"$1"),r=r.replace(o,a),n},"replace"),getRegex:z(()=>new RegExp(r,e),"getRegex")};return n}S(L,"p$6");z(L,"k");var xo=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),W={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:z(t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),"listItemRegex"),nextBulletRegex:z(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),"nextBulletRegex"),hrRegex:z(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),"hrRegex"),fencesBeginRegex:z(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),"fencesBeginRegex"),headingBeginRegex:z(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),"headingBeginRegex"),htmlBeginRegex:z(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),"htmlBeginRegex")},_o=/^(?:[ \t]*(?:\n|$))+/,$o=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Eo=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,je=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,So=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,St=/(?:[*+-]|\d{1,9}[.)])/,Tr=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Pr=L(Tr).replace(/bull/g,St).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Co=L(Tr).replace(/bull/g,St).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Ct=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Lo=/^[^\n]+/,Lt=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,To=L(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Lt).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Po=L(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,St).getRegex(),nt="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Tt=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Mo=L("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Tt).replace("tag",nt).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Mr=L(Ct).replace("hr",je).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",nt).getRegex(),Ro=L(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Mr).getRegex(),Pt={blockquote:Ro,code:$o,def:To,fences:Eo,heading:So,hr:je,html:Mo,lheading:Pr,list:Po,newline:_o,paragraph:Mr,table:He,text:Lo},er=L("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",je).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",nt).getRegex(),Fo={...Pt,lheading:Co,table:er,paragraph:L(Ct).replace("hr",je).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",er).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",nt).getRegex()},zo={...Pt,html:L(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Tt).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:He,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:L(Ct).replace("hr",je).replace("heading",` *#{1,6} *[^
2
- ]`).replace("lheading",Pr).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ho=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ao=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Rr=/^( {2,}|\\)\n(?!\s*$)/,Io=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ot=/[\p{P}\p{S}]/u,Mt=/[\s\p{P}\p{S}]/u,Fr=/[^\s\p{P}\p{S}]/u,Do=L(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Mt).getRegex(),zr=/(?!~)[\p{P}\p{S}]/u,Bo=/(?!~)[\s\p{P}\p{S}]/u,jo=/(?:[^\s\p{P}\p{S}]|~)/u,Oo=L(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",xo?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Hr=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,qo=L(Hr,"u").replace(/punct/g,ot).getRegex(),Vo=L(Hr,"u").replace(/punct/g,zr).getRegex(),Ar="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Zo=L(Ar,"gu").replace(/notPunctSpace/g,Fr).replace(/punctSpace/g,Mt).replace(/punct/g,ot).getRegex(),Uo=L(Ar,"gu").replace(/notPunctSpace/g,jo).replace(/punctSpace/g,Bo).replace(/punct/g,zr).getRegex(),No=L("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Fr).replace(/punctSpace/g,Mt).replace(/punct/g,ot).getRegex(),Wo=L(/\\(punct)/,"gu").replace(/punct/g,ot).getRegex(),Go=L(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Yo=L(Tt).replace("(?:-->|$)","-->").getRegex(),Xo=L("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Yo).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ye=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Qo=L(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Ye).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ir=L(/^!?\[(label)\]\[(ref)\]/).replace("label",Ye).replace("ref",Lt).getRegex(),Dr=L(/^!?\[(ref)\](?:\[\])?/).replace("ref",Lt).getRegex(),Jo=L("reflink|nolink(?!\\()","g").replace("reflink",Ir).replace("nolink",Dr).getRegex(),tr=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Rt={_backpedal:He,anyPunctuation:Wo,autolink:Go,blockSkip:Oo,br:Rr,code:Ao,del:He,emStrongLDelim:qo,emStrongRDelimAst:Zo,emStrongRDelimUnd:No,escape:Ho,link:Qo,nolink:Dr,punctuation:Do,reflink:Ir,reflinkSearch:Jo,tag:Xo,text:Io,url:He},Ko={...Rt,link:L(/^!?\[(label)\]\((.*?)\)/).replace("label",Ye).getRegex(),reflink:L(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ye).getRegex()},mt={...Rt,emStrongRDelimAst:Uo,emStrongLDelim:Vo,url:L(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",tr).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:L(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",tr).getRegex()},ei={...mt,br:L(Rr).replace("{2,}","*").getRegex(),text:L(mt.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},We={normal:Pt,gfm:Fo,pedantic:zo},Fe={normal:Rt,gfm:mt,breaks:ei,pedantic:Ko},ti={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},rr=z(t=>ti[t],"de");function oe(t,e){if(e){if(W.escapeTest.test(t))return t.replace(W.escapeReplace,rr)}else if(W.escapeTestNoEncode.test(t))return t.replace(W.escapeReplaceNoEncode,rr);return t}S(oe,"$");z(oe,"w");function ft(t){try{t=encodeURI(t).replace(W.percentDecode,"%")}catch{return null}return t}S(ft,"ne$1");z(ft,"J");function vt(t,e){let r=t.replace(W.findPipe,(i,a,l)=>{let s=!1,p=a;for(;--p>=0&&l[p]==="\\";)s=!s;return s?"|":" |"}),n=r.split(W.splitPipe),o=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;o<n.length;o++)n[o]=n[o].trim().replace(W.slashPipe,"|");return n}S(vt,"se");z(vt,"V");function $e(t,e,r){let n=t.length;if(n===0)return"";let o=0;for(;o<n;){let i=t.charAt(n-o-1);if(i===e&&!r)o++;else if(i!==e&&r)o++;else break}return t.slice(0,n-o)}S($e,"_$1");z($e,"z");function Br(t,e){if(t.indexOf(e[1])===-1)return-1;let r=0;for(let n=0;n<t.length;n++)if(t[n]==="\\")n++;else if(t[n]===e[0])r++;else if(t[n]===e[1]&&(r--,r<0))return n;return r>0?-2:-1}S(Br,"et");z(Br,"ge");function wt(t,e,r,n,o){let i=e.href,a=e.title||null,l=t[1].replace(o.other.outputLinkReplace,"$1");n.state.inLink=!0;let s={type:t[0].charAt(0)==="!"?"image":"link",raw:r,href:i,title:a,text:l,tokens:n.inlineTokens(l)};return n.state.inLink=!1,s}S(wt,"le");z(wt,"fe");function jr(t,e,r){let n=t.match(r.other.indentCodeCompensation);if(n===null)return e;let o=n[1];return e.split(`
3
- `).map(i=>{let a=i.match(r.other.beginningSpace);if(a===null)return i;let[l]=a;return l.length>=o.length?i.slice(o.length):i}).join(`
4
- `)}S(jr,"tt");z(jr,"Ve");var Xe=class{static{S(this,"I")}static{z(this,"y")}options;rules;lexer;constructor(e){this.options=e||be}space(e){let r=this.rules.block.newline.exec(e);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(e){let r=this.rules.block.code.exec(e);if(r){let n=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?n:$e(n,`
5
- `)}}}fences(e){let r=this.rules.block.fences.exec(e);if(r){let n=r[0],o=jr(n,r[3]||"",this.rules);return{type:"code",raw:n,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:o}}}heading(e){let r=this.rules.block.heading.exec(e);if(r){let n=r[2].trim();if(this.rules.other.endingHash.test(n)){let o=$e(n,"#");(this.options.pedantic||!o||this.rules.other.endingSpaceChar.test(o))&&(n=o.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let r=this.rules.block.hr.exec(e);if(r)return{type:"hr",raw:$e(r[0],`
6
- `)}}blockquote(e){let r=this.rules.block.blockquote.exec(e);if(r){let n=$e(r[0],`
1
+ var Bi=Object.defineProperty;var b=(t,e)=>Bi(t,"name",{value:e,configurable:!0});import{createRequire as ji}from"node:module";import{codeToANSI as Ui}from"@shikijs/cli";import{renderError as Vi,getErrorCauses as Ni}from"@visulima/error/error";import{errorHintFinder as Zi,ruleBasedFinder as Wi}from"@visulima/error/solution";import{distance as pt}from"fastest-levenshtein";import{parseStacktrace as Oe,formatStacktrace as xr,codeFrame as Vn}from"@visulima/error";import At from"@visulima/error/solution/ai/prompt";const Oi=ji(import.meta.url),Ge=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,_t=b(t=>{if(typeof Ge<"u"&&Ge.versions&&Ge.versions.node){const[e,n]=Ge.versions.node.split(".").map(Number);if(e>22||e===22&&n>=3||e===20&&n>=16)return Ge.getBuiltinModule(t)}return Oi(t)},"__cjs_getBuiltinModule"),{stripVTControlCharacters:qi,styleText:Un}=_t("node:util"),Gi=_t("node:fs"),le=_t("node:path"),{readFile:_r}=_t("node:fs/promises");var Yi=Object.defineProperty,I=b((t,e)=>Yi(t,"name",{value:e,configurable:!0}),"k$4");function $t(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}b($t,"E$7");I($t,"L");var Re=$t();function Kt(t){Re=t}b(Kt,"le");I(Kt,"Z");var Ke={exec:I(()=>null,"exec")};function R(t,e=""){let n=typeof t=="string"?t:t.source,r={replace:I((o,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(ee.caret,"$1"),n=n.replace(o,s),r},"replace"),getRegex:I(()=>new RegExp(n,e),"getRegex")};return r}b(R,"p$6");I(R,"k");var Xi=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),ee={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:I(t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),"listItemRegex"),nextBulletRegex:I(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),"nextBulletRegex"),hrRegex:I(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),"hrRegex"),fencesBeginRegex:I(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),"fencesBeginRegex"),headingBeginRegex:I(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),"headingBeginRegex"),htmlBeginRegex:I(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),"htmlBeginRegex")},Qi=/^(?:[ \t]*(?:\n|$))+/,Ji=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Ki=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,nt=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,es=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,en=/(?:[*+-]|\d{1,9}[.)])/,$r=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Er=R($r).replace(/bull/g,en).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),ts=R($r).replace(/bull/g,en).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),tn=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ns=/^[^\n]+/,nn=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,rs=R(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",nn).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),os=R(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,en).getRegex(),Et="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",rn=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,is=R("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",rn).replace("tag",Et).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Sr=R(tn).replace("hr",nt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Et).getRegex(),ss=R(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Sr).getRegex(),on={blockquote:ss,code:Ji,def:rs,fences:Ki,heading:es,hr:nt,html:is,lheading:Er,list:os,newline:Qi,paragraph:Sr,table:Ke,text:ns},Nn=R("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",nt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Et).getRegex(),as={...on,lheading:ts,table:Nn,paragraph:R(tn).replace("hr",nt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Nn).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Et).getRegex()},ls={...on,html:R(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",rn).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ke,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:R(tn).replace("hr",nt).replace("heading",` *#{1,6} *[^
2
+ ]`).replace("lheading",Er).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},cs=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ds=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Cr=/^( {2,}|\\)\n(?!\s*$)/,ps=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,St=/[\p{P}\p{S}]/u,sn=/[\s\p{P}\p{S}]/u,Lr=/[^\s\p{P}\p{S}]/u,hs=R(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,sn).getRegex(),Tr=/(?!~)[\p{P}\p{S}]/u,us=/(?!~)[\s\p{P}\p{S}]/u,gs=/(?:[^\s\p{P}\p{S}]|~)/u,ms=R(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Xi?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Pr=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,fs=R(Pr,"u").replace(/punct/g,St).getRegex(),vs=R(Pr,"u").replace(/punct/g,Tr).getRegex(),Mr="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",ws=R(Mr,"gu").replace(/notPunctSpace/g,Lr).replace(/punctSpace/g,sn).replace(/punct/g,St).getRegex(),bs=R(Mr,"gu").replace(/notPunctSpace/g,gs).replace(/punctSpace/g,us).replace(/punct/g,Tr).getRegex(),ys=R("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Lr).replace(/punctSpace/g,sn).replace(/punct/g,St).getRegex(),ks=R(/\\(punct)/,"gu").replace(/punct/g,St).getRegex(),xs=R(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),_s=R(rn).replace("(?:-->|$)","-->").getRegex(),$s=R("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",_s).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),mt=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Es=R(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",mt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Fr=R(/^!?\[(label)\]\[(ref)\]/).replace("label",mt).replace("ref",nn).getRegex(),Rr=R(/^!?\[(ref)\](?:\[\])?/).replace("ref",nn).getRegex(),Ss=R("reflink|nolink(?!\\()","g").replace("reflink",Fr).replace("nolink",Rr).getRegex(),Zn=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,an={_backpedal:Ke,anyPunctuation:ks,autolink:xs,blockSkip:ms,br:Cr,code:ds,del:Ke,emStrongLDelim:fs,emStrongRDelimAst:ws,emStrongRDelimUnd:ys,escape:cs,link:Es,nolink:Rr,punctuation:hs,reflink:Fr,reflinkSearch:Ss,tag:$s,text:ps,url:Ke},Cs={...an,link:R(/^!?\[(label)\]\((.*?)\)/).replace("label",mt).getRegex(),reflink:R(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",mt).getRegex()},Bt={...an,emStrongRDelimAst:bs,emStrongLDelim:vs,url:R(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Zn).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:R(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Zn).getRegex()},Ls={...Bt,br:R(Cr).replace("{2,}","*").getRegex(),text:R(Bt.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ct={normal:on,gfm:as,pedantic:ls},Ye={normal:an,gfm:Bt,breaks:Ls,pedantic:Cs},Ts={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Wn=I(t=>Ts[t],"ke");function ge(t,e){if(e){if(ee.escapeTest.test(t))return t.replace(ee.escapeReplace,Wn)}else if(ee.escapeTestNoEncode.test(t))return t.replace(ee.escapeReplaceNoEncode,Wn);return t}b(ge,"$$2");I(ge,"w");function jt(t){try{t=encodeURI(t).replace(ee.percentDecode,"%")}catch{return null}return t}b(jt,"re$2");I(jt,"X");function Ot(t,e){let n=t.replace(ee.findPipe,(i,s,l)=>{let a=!1,c=s;for(;--c>=0&&l[c]==="\\";)a=!a;return a?"|":" |"}),r=n.split(ee.splitPipe),o=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;o<r.length;o++)r[o]=r[o].trim().replace(ee.slashPipe,"|");return r}b(Ot,"se$1");I(Ot,"J");function Be(t,e,n){let r=t.length;if(r===0)return"";let o=0;for(;o<r;){let i=t.charAt(r-o-1);if(i===e&&!n)o++;else if(i!==e&&n)o++;else break}return t.slice(0,r-o)}b(Be,"_$3");I(Be,"z");function zr(t,e){if(t.indexOf(e[1])===-1)return-1;let n=0;for(let r=0;r<t.length;r++)if(t[r]==="\\")r++;else if(t[r]===e[0])n++;else if(t[r]===e[1]&&(n--,n<0))return r;return n>0?-2:-1}b(zr,"Ye");I(zr,"de");function qt(t,e,n,r,o){let i=e.href,s=e.title||null,l=t[1].replace(o.other.outputLinkReplace,"$1");r.state.inLink=!0;let a={type:t[0].charAt(0)==="!"?"image":"link",raw:n,href:i,title:s,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,a}b(qt,"ne$2");I(qt,"ge");function Dr(t,e,n){let r=t.match(n.other.indentCodeCompensation);if(r===null)return e;let o=r[1];return e.split(`
3
+ `).map(i=>{let s=i.match(n.other.beginningSpace);if(s===null)return i;let[l]=s;return l.length>=o.length?i.slice(o.length):i}).join(`
4
+ `)}b(Dr,"et");I(Dr,"Je");var ft=class{static{b(this,"I")}static{I(this,"y")}options;rules;lexer;constructor(e){this.options=e||Re}space(e){let n=this.rules.block.newline.exec(e);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(e){let n=this.rules.block.code.exec(e);if(n){let r=n[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Be(r,`
5
+ `)}}}fences(e){let n=this.rules.block.fences.exec(e);if(n){let r=n[0],o=Dr(r,n[3]||"",this.rules);return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:o}}}heading(e){let n=this.rules.block.heading.exec(e);if(n){let r=n[2].trim();if(this.rules.other.endingHash.test(r)){let o=Be(r,"#");(this.options.pedantic||!o||this.rules.other.endingSpaceChar.test(o))&&(r=o.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){let n=this.rules.block.hr.exec(e);if(n)return{type:"hr",raw:Be(n[0],`
6
+ `)}}blockquote(e){let n=this.rules.block.blockquote.exec(e);if(n){let r=Be(n[0],`
7
7
  `).split(`
8
- `),o="",i="",a=[];for(;n.length>0;){let l=!1,s=[],p;for(p=0;p<n.length;p++)if(this.rules.other.blockquoteStart.test(n[p]))s.push(n[p]),l=!0;else if(!l)s.push(n[p]);else break;n=n.slice(p);let d=s.join(`
9
- `),g=d.replace(this.rules.other.blockquoteSetextReplace,`
8
+ `),o="",i="",s=[];for(;r.length>0;){let l=!1,a=[],c;for(c=0;c<r.length;c++)if(this.rules.other.blockquoteStart.test(r[c]))a.push(r[c]),l=!0;else if(!l)a.push(r[c]);else break;r=r.slice(c);let d=a.join(`
9
+ `),u=d.replace(this.rules.other.blockquoteSetextReplace,`
10
10
  $1`).replace(this.rules.other.blockquoteSetextReplace2,"");o=o?`${o}
11
11
  ${d}`:d,i=i?`${i}
12
- ${g}`:g;let f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(g,a,!0),this.lexer.state.top=f,n.length===0)break;let y=a.at(-1);if(y?.type==="code")break;if(y?.type==="blockquote"){let b=y,m=b.raw+`
13
- `+n.join(`
14
- `),k=this.blockquote(m);a[a.length-1]=k,o=o.substring(0,o.length-b.raw.length)+k.raw,i=i.substring(0,i.length-b.text.length)+k.text;break}else if(y?.type==="list"){let b=y,m=b.raw+`
15
- `+n.join(`
16
- `),k=this.list(m);a[a.length-1]=k,o=o.substring(0,o.length-y.raw.length)+k.raw,i=i.substring(0,i.length-b.raw.length)+k.raw,n=m.substring(a.at(-1).raw.length).split(`
17
- `);continue}}return{type:"blockquote",raw:o,tokens:a,text:i}}}list(e){let r=this.rules.block.list.exec(e);if(r){let n=r[1].trim(),o=n.length>1,i={type:"list",raw:"",ordered:o,start:o?+n.slice(0,-1):"",loose:!1,items:[]};n=o?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=o?n:"[*+-]");let a=this.rules.other.listItemRegex(n),l=!1;for(;e;){let p=!1,d="",g="";if(!(r=a.exec(e))||this.rules.block.hr.test(e))break;d=r[0],e=e.substring(d.length);let f=r[2].split(`
18
- `,1)[0].replace(this.rules.other.listReplaceTabs,T=>" ".repeat(3*T.length)),y=e.split(`
19
- `,1)[0],b=!f.trim(),m=0;if(this.options.pedantic?(m=2,g=f.trimStart()):b?m=r[1].length+1:(m=r[2].search(this.rules.other.nonSpaceChar),m=m>4?1:m,g=f.slice(m),m+=r[1].length),b&&this.rules.other.blankLine.test(y)&&(d+=y+`
20
- `,e=e.substring(y.length+1),p=!0),!p){let T=this.rules.other.nextBulletRegex(m),M=this.rules.other.hrRegex(m),C=this.rules.other.fencesBeginRegex(m),R=this.rules.other.headingBeginRegex(m),D=this.rules.other.htmlBeginRegex(m);for(;e;){let X=e.split(`
21
- `,1)[0],O;if(y=X,this.options.pedantic?(y=y.replace(this.rules.other.listReplaceNesting," "),O=y):O=y.replace(this.rules.other.tabCharGlobal," "),C.test(y)||R.test(y)||D.test(y)||T.test(y)||M.test(y))break;if(O.search(this.rules.other.nonSpaceChar)>=m||!y.trim())g+=`
22
- `+O.slice(m);else{if(b||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||C.test(f)||R.test(f)||M.test(f))break;g+=`
23
- `+y}!b&&!y.trim()&&(b=!0),d+=X+`
24
- `,e=e.substring(X.length+1),f=O.slice(m)}}i.loose||(l?i.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(l=!0));let k=null;this.options.gfm&&(k=this.rules.other.listIsTask.exec(g),k&&(g=g.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:d,task:!!k,loose:!1,text:g,tokens:[]}),i.raw+=d}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let p of i.items){if(this.lexer.state.top=!1,p.tokens=this.lexer.blockTokens(p.text,[]),p.task){let d=this.rules.other.listTaskCheckbox.exec(p.raw);if(d){let g={type:"checkbox",raw:d[0]+" ",checked:d[0]!=="[ ]"};p.checked=g.checked,i.loose?p.tokens[0]&&["paragraph","text"].includes(p.tokens[0].type)&&"tokens"in p.tokens[0]&&p.tokens[0].tokens?(p.tokens[0].raw=g.raw+p.tokens[0].raw,p.tokens[0].text=g.raw+p.tokens[0].text,p.tokens[0].tokens.unshift(g)):p.tokens.unshift({type:"paragraph",raw:g.raw,text:g.raw,tokens:[g]}):p.tokens.unshift(g)}}if(!i.loose){let d=p.tokens.filter(f=>f.type==="space"),g=d.length>0&&d.some(f=>this.rules.other.anyLine.test(f.raw));i.loose=g}}if(i.loose)for(let p of i.items){p.loose=!0;for(let d of p.tokens)d.type==="text"&&(d.type="paragraph")}return i}}html(e){let r=this.rules.block.html.exec(e);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(e){let r=this.rules.block.def.exec(e);if(r){let n=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),o=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:n,raw:r[0],href:o,title:i}}}table(e){let r=this.rules.block.table.exec(e);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let n=vt(r[1]),o=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=r[3]?.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
25
- `):[],a={type:"table",raw:r[0],header:[],align:[],rows:[]};if(n.length===o.length){for(let l of o)this.rules.other.tableAlignRight.test(l)?a.align.push("right"):this.rules.other.tableAlignCenter.test(l)?a.align.push("center"):this.rules.other.tableAlignLeft.test(l)?a.align.push("left"):a.align.push(null);for(let l=0;l<n.length;l++)a.header.push({text:n[l],tokens:this.lexer.inline(n[l]),header:!0,align:a.align[l]});for(let l of i)a.rows.push(vt(l,a.header.length).map((s,p)=>({text:s,tokens:this.lexer.inline(s),header:!1,align:a.align[p]})));return a}}lheading(e){let r=this.rules.block.lheading.exec(e);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(e){let r=this.rules.block.paragraph.exec(e);if(r){let n=r[1].charAt(r[1].length-1)===`
26
- `?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let r=this.rules.block.text.exec(e);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(e){let r=this.rules.inline.escape.exec(e);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(e){let r=this.rules.inline.tag.exec(e);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(e){let r=this.rules.inline.link.exec(e);if(r){let n=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let a=$e(n.slice(0,-1),"\\");if((n.length-a.length)%2===0)return}else{let a=Br(r[2],"()");if(a===-2)return;if(a>-1){let l=(r[0].indexOf("!")===0?5:4)+r[1].length+a;r[2]=r[2].substring(0,a),r[0]=r[0].substring(0,l).trim(),r[3]=""}}let o=r[2],i="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(o);a&&(o=a[1],i=a[3])}else i=r[3]?r[3].slice(1,-1):"";return o=o.trim(),this.rules.other.startAngleBracket.test(o)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?o=o.slice(1):o=o.slice(1,-1)),wt(r,{href:o&&o.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(e,r){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let o=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=r[o.toLowerCase()];if(!i){let a=n[0].charAt(0);return{type:"text",raw:a,text:a}}return wt(n,i,n[0],this.lexer,this.rules)}}emStrong(e,r,n=""){let o=this.rules.inline.emStrongLDelim.exec(e);if(!(!o||o[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(o[1]||o[2])||!n||this.rules.inline.punctuation.exec(n))){let i=[...o[0]].length-1,a,l,s=i,p=0,d=o[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,r=r.slice(-1*e.length+i);(o=d.exec(r))!=null;){if(a=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!a)continue;if(l=[...a].length,o[3]||o[4]){s+=l;continue}else if((o[5]||o[6])&&i%3&&!((i+l)%3)){p+=l;continue}if(s-=l,s>0)continue;l=Math.min(l,l+s+p);let g=[...o[0]][0].length,f=e.slice(0,i+o.index+g+l);if(Math.min(i,l)%2){let b=f.slice(1,-1);return{type:"em",raw:f,text:b,tokens:this.lexer.inlineTokens(b)}}let y=f.slice(2,-2);return{type:"strong",raw:f,text:y,tokens:this.lexer.inlineTokens(y)}}}}codespan(e){let r=this.rules.inline.code.exec(e);if(r){let n=r[2].replace(this.rules.other.newLineCharGlobal," "),o=this.rules.other.nonSpaceChar.test(n),i=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return o&&i&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:r[0],text:n}}}br(e){let r=this.rules.inline.br.exec(e);if(r)return{type:"br",raw:r[0]}}del(e){let r=this.rules.inline.del.exec(e);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(e){let r=this.rules.inline.autolink.exec(e);if(r){let n,o;return r[2]==="@"?(n=r[1],o="mailto:"+n):(n=r[1],o=n),{type:"link",raw:r[0],text:n,href:o,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let r;if(r=this.rules.inline.url.exec(e)){let n,o;if(r[2]==="@")n=r[0],o="mailto:"+n;else{let i;do i=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"";while(i!==r[0]);n=r[0],r[1]==="www."?o="http://"+r[0]:o=r[0]}return{type:"link",raw:r[0],text:n,href:o,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let r=this.rules.inline.text.exec(e);if(r){let n=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:n}}}},ie=class bt{static{S(this,"Q")}static{z(this,"l")}tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||be,this.options.tokenizer=this.options.tokenizer||new Xe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:W,block:We.normal,inline:Fe.normal};this.options.pedantic?(r.block=We.pedantic,r.inline=Fe.pedantic):this.options.gfm&&(r.block=We.gfm,this.options.breaks?r.inline=Fe.breaks:r.inline=Fe.gfm),this.tokenizer.rules=r}static get rules(){return{block:We,inline:Fe}}static lex(e,r){return new bt(r).lex(e)}static lexInline(e,r){return new bt(r).inlineTokens(e)}lex(e){e=e.replace(W.carriageReturn,`
27
- `),this.blockTokens(e,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let n=this.inlineQueue[r];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,r=[],n=!1){for(this.options.pedantic&&(e=e.replace(W.tabCharGlobal," ").replace(W.spaceLine,""));e;){let o;if(this.options.extensions?.block?.some(a=>(o=a.call({lexer:this},e,r))?(e=e.substring(o.raw.length),r.push(o),!0):!1))continue;if(o=this.tokenizer.space(e)){e=e.substring(o.raw.length);let a=r.at(-1);o.raw.length===1&&a!==void 0?a.raw+=`
28
- `:r.push(o);continue}if(o=this.tokenizer.code(e)){e=e.substring(o.raw.length);let a=r.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(`
12
+ ${u}`:u;let g=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,s,!0),this.lexer.state.top=g,r.length===0)break;let v=s.at(-1);if(v?.type==="code")break;if(v?.type==="blockquote"){let f=v,m=f.raw+`
13
+ `+r.join(`
14
+ `),k=this.blockquote(m);s[s.length-1]=k,o=o.substring(0,o.length-f.raw.length)+k.raw,i=i.substring(0,i.length-f.text.length)+k.text;break}else if(v?.type==="list"){let f=v,m=f.raw+`
15
+ `+r.join(`
16
+ `),k=this.list(m);s[s.length-1]=k,o=o.substring(0,o.length-v.raw.length)+k.raw,i=i.substring(0,i.length-f.raw.length)+k.raw,r=m.substring(s.at(-1).raw.length).split(`
17
+ `);continue}}return{type:"blockquote",raw:o,tokens:s,text:i}}}list(e){let n=this.rules.block.list.exec(e);if(n){let r=n[1].trim(),o=r.length>1,i={type:"list",raw:"",ordered:o,start:o?+r.slice(0,-1):"",loose:!1,items:[]};r=o?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=o?r:"[*+-]");let s=this.rules.other.listItemRegex(r),l=!1;for(;e;){let c=!1,d="",u="";if(!(n=s.exec(e))||this.rules.block.hr.test(e))break;d=n[0],e=e.substring(d.length);let g=n[2].split(`
18
+ `,1)[0].replace(this.rules.other.listReplaceTabs,k=>" ".repeat(3*k.length)),v=e.split(`
19
+ `,1)[0],f=!g.trim(),m=0;if(this.options.pedantic?(m=2,u=g.trimStart()):f?m=n[1].length+1:(m=n[2].search(this.rules.other.nonSpaceChar),m=m>4?1:m,u=g.slice(m),m+=n[1].length),f&&this.rules.other.blankLine.test(v)&&(d+=v+`
20
+ `,e=e.substring(v.length+1),c=!0),!c){let k=this.rules.other.nextBulletRegex(m),L=this.rules.other.hrRegex(m),T=this.rules.other.fencesBeginRegex(m),$=this.rules.other.headingBeginRegex(m),M=this.rules.other.htmlBeginRegex(m);for(;e;){let z=e.split(`
21
+ `,1)[0],D;if(v=z,this.options.pedantic?(v=v.replace(this.rules.other.listReplaceNesting," "),D=v):D=v.replace(this.rules.other.tabCharGlobal," "),T.test(v)||$.test(v)||M.test(v)||k.test(v)||L.test(v))break;if(D.search(this.rules.other.nonSpaceChar)>=m||!v.trim())u+=`
22
+ `+D.slice(m);else{if(f||g.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||T.test(g)||$.test(g)||L.test(g))break;u+=`
23
+ `+v}!f&&!v.trim()&&(f=!0),d+=z+`
24
+ `,e=e.substring(z.length+1),g=D.slice(m)}}i.loose||(l?i.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(l=!0)),i.items.push({type:"list_item",raw:d,task:!!this.options.gfm&&this.rules.other.listIsTask.test(u),loose:!1,text:u,tokens:[]}),i.raw+=d}let a=i.items.at(-1);if(a)a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let c of i.items){if(this.lexer.state.top=!1,c.tokens=this.lexer.blockTokens(c.text,[]),c.task){if(c.text=c.text.replace(this.rules.other.listReplaceTask,""),c.tokens[0]?.type==="text"||c.tokens[0]?.type==="paragraph"){c.tokens[0].raw=c.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),c.tokens[0].text=c.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let u=this.lexer.inlineQueue.length-1;u>=0;u--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[u].src)){this.lexer.inlineQueue[u].src=this.lexer.inlineQueue[u].src.replace(this.rules.other.listReplaceTask,"");break}}let d=this.rules.other.listTaskCheckbox.exec(c.raw);if(d){let u={type:"checkbox",raw:d[0]+" ",checked:d[0]!=="[ ]"};c.checked=u.checked,i.loose?c.tokens[0]&&["paragraph","text"].includes(c.tokens[0].type)&&"tokens"in c.tokens[0]&&c.tokens[0].tokens?(c.tokens[0].raw=u.raw+c.tokens[0].raw,c.tokens[0].text=u.raw+c.tokens[0].text,c.tokens[0].tokens.unshift(u)):c.tokens.unshift({type:"paragraph",raw:u.raw,text:u.raw,tokens:[u]}):c.tokens.unshift(u)}}if(!i.loose){let d=c.tokens.filter(g=>g.type==="space"),u=d.length>0&&d.some(g=>this.rules.other.anyLine.test(g.raw));i.loose=u}}if(i.loose)for(let c of i.items){c.loose=!0;for(let d of c.tokens)d.type==="text"&&(d.type="paragraph")}return i}}html(e){let n=this.rules.block.html.exec(e);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(e){let n=this.rules.block.def.exec(e);if(n){let r=n[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),o=n[2]?n[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:o,title:i}}}table(e){let n=this.rules.block.table.exec(e);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;let r=Ot(n[1]),o=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=n[3]?.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(`
25
+ `):[],s={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===o.length){for(let l of o)this.rules.other.tableAlignRight.test(l)?s.align.push("right"):this.rules.other.tableAlignCenter.test(l)?s.align.push("center"):this.rules.other.tableAlignLeft.test(l)?s.align.push("left"):s.align.push(null);for(let l=0;l<r.length;l++)s.header.push({text:r[l],tokens:this.lexer.inline(r[l]),header:!0,align:s.align[l]});for(let l of i)s.rows.push(Ot(l,s.header.length).map((a,c)=>({text:a,tokens:this.lexer.inline(a),header:!1,align:s.align[c]})));return s}}lheading(e){let n=this.rules.block.lheading.exec(e);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(e){let n=this.rules.block.paragraph.exec(e);if(n){let r=n[1].charAt(n[1].length-1)===`
26
+ `?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(e){let n=this.rules.block.text.exec(e);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(e){let n=this.rules.inline.escape.exec(e);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(e){let n=this.rules.inline.tag.exec(e);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(e){let n=this.rules.inline.link.exec(e);if(n){let r=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let s=Be(r.slice(0,-1),"\\");if((r.length-s.length)%2===0)return}else{let s=zr(n[2],"()");if(s===-2)return;if(s>-1){let l=(n[0].indexOf("!")===0?5:4)+n[1].length+s;n[2]=n[2].substring(0,s),n[0]=n[0].substring(0,l).trim(),n[3]=""}}let o=n[2],i="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(o);s&&(o=s[1],i=s[3])}else i=n[3]?n[3].slice(1,-1):"";return o=o.trim(),this.rules.other.startAngleBracket.test(o)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?o=o.slice(1):o=o.slice(1,-1)),qt(n,{href:o&&o.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer,this.rules)}}reflink(e,n){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let o=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=n[o.toLowerCase()];if(!i){let s=r[0].charAt(0);return{type:"text",raw:s,text:s}}return qt(r,i,r[0],this.lexer,this.rules)}}emStrong(e,n,r=""){let o=this.rules.inline.emStrongLDelim.exec(e);if(!(!o||o[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(o[1]||o[2])||!r||this.rules.inline.punctuation.exec(r))){let i=[...o[0]].length-1,s,l,a=i,c=0,d=o[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,n=n.slice(-1*e.length+i);(o=d.exec(n))!=null;){if(s=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!s)continue;if(l=[...s].length,o[3]||o[4]){a+=l;continue}else if((o[5]||o[6])&&i%3&&!((i+l)%3)){c+=l;continue}if(a-=l,a>0)continue;l=Math.min(l,l+a+c);let u=[...o[0]][0].length,g=e.slice(0,i+o.index+u+l);if(Math.min(i,l)%2){let f=g.slice(1,-1);return{type:"em",raw:g,text:f,tokens:this.lexer.inlineTokens(f)}}let v=g.slice(2,-2);return{type:"strong",raw:g,text:v,tokens:this.lexer.inlineTokens(v)}}}}codespan(e){let n=this.rules.inline.code.exec(e);if(n){let r=n[2].replace(this.rules.other.newLineCharGlobal," "),o=this.rules.other.nonSpaceChar.test(r),i=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return o&&i&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:n[0],text:r}}}br(e){let n=this.rules.inline.br.exec(e);if(n)return{type:"br",raw:n[0]}}del(e){let n=this.rules.inline.del.exec(e);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(e){let n=this.rules.inline.autolink.exec(e);if(n){let r,o;return n[2]==="@"?(r=n[1],o="mailto:"+r):(r=n[1],o=r),{type:"link",raw:n[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}url(e){let n;if(n=this.rules.inline.url.exec(e)){let r,o;if(n[2]==="@")r=n[0],o="mailto:"+r;else{let i;do i=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])?.[0]??"";while(i!==n[0]);r=n[0],n[1]==="www."?o="http://"+n[0]:o=n[0]}return{type:"link",raw:n[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){let n=this.rules.inline.text.exec(e);if(n){let r=this.lexer.state.inRawBlock;return{type:"text",raw:n[0],text:n[0],escaped:r}}}},me=class Ut{static{b(this,"O")}static{I(this,"u")}tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Re,this.options.tokenizer=this.options.tokenizer||new ft,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:ee,block:ct.normal,inline:Ye.normal};this.options.pedantic?(n.block=ct.pedantic,n.inline=Ye.pedantic):this.options.gfm&&(n.block=ct.gfm,this.options.breaks?n.inline=Ye.breaks:n.inline=Ye.gfm),this.tokenizer.rules=n}static get rules(){return{block:ct,inline:Ye}}static lex(e,n){return new Ut(n).lex(e)}static lexInline(e,n){return new Ut(n).inlineTokens(e)}lex(e){e=e.replace(ee.carriageReturn,`
27
+ `),this.blockTokens(e,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,n=[],r=!1){for(this.options.pedantic&&(e=e.replace(ee.tabCharGlobal," ").replace(ee.spaceLine,""));e;){let o;if(this.options.extensions?.block?.some(s=>(o=s.call({lexer:this},e,n))?(e=e.substring(o.raw.length),n.push(o),!0):!1))continue;if(o=this.tokenizer.space(e)){e=e.substring(o.raw.length);let s=n.at(-1);o.raw.length===1&&s!==void 0?s.raw+=`
28
+ `:n.push(o);continue}if(o=this.tokenizer.code(e)){e=e.substring(o.raw.length);let s=n.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
29
29
  `)?"":`
30
- `)+o.raw,a.text+=`
31
- `+o.text,this.inlineQueue.at(-1).src=a.text):r.push(o);continue}if(o=this.tokenizer.fences(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.heading(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.hr(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.blockquote(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.list(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.html(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.def(e)){e=e.substring(o.raw.length);let a=r.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(`
30
+ `)+o.raw,s.text+=`
31
+ `+o.text,this.inlineQueue.at(-1).src=s.text):n.push(o);continue}if(o=this.tokenizer.fences(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.heading(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.hr(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.blockquote(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.list(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.html(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.def(e)){e=e.substring(o.raw.length);let s=n.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
32
32
  `)?"":`
33
- `)+o.raw,a.text+=`
34
- `+o.raw,this.inlineQueue.at(-1).src=a.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title},r.push(o));continue}if(o=this.tokenizer.table(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.lheading(e)){e=e.substring(o.raw.length),r.push(o);continue}let i=e;if(this.options.extensions?.startBlock){let a=1/0,l=e.slice(1),s;this.options.extensions.startBlock.forEach(p=>{s=p.call({lexer:this},l),typeof s=="number"&&s>=0&&(a=Math.min(a,s))}),a<1/0&&a>=0&&(i=e.substring(0,a+1))}if(this.state.top&&(o=this.tokenizer.paragraph(i))){let a=r.at(-1);n&&a?.type==="paragraph"?(a.raw+=(a.raw.endsWith(`
33
+ `)+o.raw,s.text+=`
34
+ `+o.raw,this.inlineQueue.at(-1).src=s.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title},n.push(o));continue}if(o=this.tokenizer.table(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.lheading(e)){e=e.substring(o.raw.length),n.push(o);continue}let i=e;if(this.options.extensions?.startBlock){let s=1/0,l=e.slice(1),a;this.options.extensions.startBlock.forEach(c=>{a=c.call({lexer:this},l),typeof a=="number"&&a>=0&&(s=Math.min(s,a))}),s<1/0&&s>=0&&(i=e.substring(0,s+1))}if(this.state.top&&(o=this.tokenizer.paragraph(i))){let s=n.at(-1);r&&s?.type==="paragraph"?(s.raw+=(s.raw.endsWith(`
35
35
  `)?"":`
36
- `)+o.raw,a.text+=`
37
- `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):r.push(o),n=i.length!==e.length,e=e.substring(o.raw.length);continue}if(o=this.tokenizer.text(e)){e=e.substring(o.raw.length);let a=r.at(-1);a?.type==="text"?(a.raw+=(a.raw.endsWith(`
36
+ `)+o.raw,s.text+=`
37
+ `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):n.push(o),r=i.length!==e.length,e=e.substring(o.raw.length);continue}if(o=this.tokenizer.text(e)){e=e.substring(o.raw.length);let s=n.at(-1);s?.type==="text"?(s.raw+=(s.raw.endsWith(`
38
38
  `)?"":`
39
- `)+o.raw,a.text+=`
40
- `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):r.push(o);continue}if(e){let a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,r}inline(e,r=[]){return this.inlineQueue.push({src:e,tokens:r}),r}inlineTokens(e,r=[]){let n=e,o=null;if(this.tokens.links){let s=Object.keys(this.tokens.links);if(s.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)s.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,o.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(o=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)i=o[2]?o[2].length:0,n=n.slice(0,o.index+i)+"["+"a".repeat(o[0].length-i-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let a=!1,l="";for(;e;){a||(l=""),a=!1;let s;if(this.options.extensions?.inline?.some(d=>(s=d.call({lexer:this},e,r))?(e=e.substring(s.raw.length),r.push(s),!0):!1))continue;if(s=this.tokenizer.escape(e)){e=e.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.tag(e)){e=e.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.link(e)){e=e.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(s.raw.length);let d=r.at(-1);s.type==="text"&&d?.type==="text"?(d.raw+=s.raw,d.text+=s.text):r.push(s);continue}if(s=this.tokenizer.emStrong(e,n,l)){e=e.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.codespan(e)){e=e.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.br(e)){e=e.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.del(e)){e=e.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.autolink(e)){e=e.substring(s.raw.length),r.push(s);continue}if(!this.state.inLink&&(s=this.tokenizer.url(e))){e=e.substring(s.raw.length),r.push(s);continue}let p=e;if(this.options.extensions?.startInline){let d=1/0,g=e.slice(1),f;this.options.extensions.startInline.forEach(y=>{f=y.call({lexer:this},g),typeof f=="number"&&f>=0&&(d=Math.min(d,f))}),d<1/0&&d>=0&&(p=e.substring(0,d+1))}if(s=this.tokenizer.inlineText(p)){e=e.substring(s.raw.length),s.raw.slice(-1)!=="_"&&(l=s.raw.slice(-1)),a=!0;let d=r.at(-1);d?.type==="text"?(d.raw+=s.raw,d.text+=s.text):r.push(s);continue}if(e){let d="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return r}},Qe=class{static{S(this,"L")}static{z(this,"P")}options;parser;constructor(e){this.options=e||be}space(e){return""}code({text:e,lang:r,escaped:n}){let o=(r||"").match(W.notSpaceStart)?.[0],i=e.replace(W.endingNewline,"")+`
41
- `;return o?'<pre><code class="language-'+oe(o)+'">'+(n?i:oe(i,!0))+`</code></pre>
42
- `:"<pre><code>"+(n?i:oe(i,!0))+`</code></pre>
39
+ `)+o.raw,s.text+=`
40
+ `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):n.push(o);continue}if(e){let s="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(s);break}else throw new Error(s)}}return this.state.top=!0,n}inline(e,n=[]){return this.inlineQueue.push({src:e,tokens:n}),n}inlineTokens(e,n=[]){let r=e,o=null;if(this.tokens.links){let a=Object.keys(this.tokens.links);if(a.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)a.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,o.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(o=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)i=o[2]?o[2].length:0,r=r.slice(0,o.index+i)+"["+"a".repeat(o[0].length-i-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let s=!1,l="";for(;e;){s||(l=""),s=!1;let a;if(this.options.extensions?.inline?.some(d=>(a=d.call({lexer:this},e,n))?(e=e.substring(a.raw.length),n.push(a),!0):!1))continue;if(a=this.tokenizer.escape(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.tag(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.link(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(a.raw.length);let d=n.at(-1);a.type==="text"&&d?.type==="text"?(d.raw+=a.raw,d.text+=a.text):n.push(a);continue}if(a=this.tokenizer.emStrong(e,r,l)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.codespan(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.br(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.del(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.autolink(e)){e=e.substring(a.raw.length),n.push(a);continue}if(!this.state.inLink&&(a=this.tokenizer.url(e))){e=e.substring(a.raw.length),n.push(a);continue}let c=e;if(this.options.extensions?.startInline){let d=1/0,u=e.slice(1),g;this.options.extensions.startInline.forEach(v=>{g=v.call({lexer:this},u),typeof g=="number"&&g>=0&&(d=Math.min(d,g))}),d<1/0&&d>=0&&(c=e.substring(0,d+1))}if(a=this.tokenizer.inlineText(c)){e=e.substring(a.raw.length),a.raw.slice(-1)!=="_"&&(l=a.raw.slice(-1)),s=!0;let d=n.at(-1);d?.type==="text"?(d.raw+=a.raw,d.text+=a.text):n.push(a);continue}if(e){let d="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return n}},vt=class{static{b(this,"L")}static{I(this,"P")}options;parser;constructor(e){this.options=e||Re}space(e){return""}code({text:e,lang:n,escaped:r}){let o=(n||"").match(ee.notSpaceStart)?.[0],i=e.replace(ee.endingNewline,"")+`
41
+ `;return o?'<pre><code class="language-'+ge(o)+'">'+(r?i:ge(i,!0))+`</code></pre>
42
+ `:"<pre><code>"+(r?i:ge(i,!0))+`</code></pre>
43
43
  `}blockquote({tokens:e}){return`<blockquote>
44
44
  ${this.parser.parse(e)}</blockquote>
45
- `}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:r}){return`<h${r}>${this.parser.parseInline(e)}</h${r}>
45
+ `}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:n}){return`<h${n}>${this.parser.parseInline(e)}</h${n}>
46
46
  `}hr(e){return`<hr>
47
- `}list(e){let r=e.ordered,n=e.start,o="";for(let l=0;l<e.items.length;l++){let s=e.items[l];o+=this.listitem(s)}let i=r?"ol":"ul",a=r&&n!==1?' start="'+n+'"':"";return"<"+i+a+`>
47
+ `}list(e){let n=e.ordered,r=e.start,o="";for(let l=0;l<e.items.length;l++){let a=e.items[l];o+=this.listitem(a)}let i=n?"ol":"ul",s=n&&r!==1?' start="'+r+'"':"";return"<"+i+s+`>
48
48
  `+o+"</"+i+`>
49
49
  `}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
50
50
  `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
51
- `}table(e){let r="",n="";for(let i=0;i<e.header.length;i++)n+=this.tablecell(e.header[i]);r+=this.tablerow({text:n});let o="";for(let i=0;i<e.rows.length;i++){let a=e.rows[i];n="";for(let l=0;l<a.length;l++)n+=this.tablecell(a[l]);o+=this.tablerow({text:n})}return o&&(o=`<tbody>${o}</tbody>`),`<table>
51
+ `}table(e){let n="",r="";for(let i=0;i<e.header.length;i++)r+=this.tablecell(e.header[i]);n+=this.tablerow({text:r});let o="";for(let i=0;i<e.rows.length;i++){let s=e.rows[i];r="";for(let l=0;l<s.length;l++)r+=this.tablecell(s[l]);o+=this.tablerow({text:r})}return o&&(o=`<tbody>${o}</tbody>`),`<table>
52
52
  <thead>
53
- `+r+`</thead>
53
+ `+n+`</thead>
54
54
  `+o+`</table>
55
55
  `}tablerow({text:e}){return`<tr>
56
56
  ${e}</tr>
57
- `}tablecell(e){let r=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+r+`</${n}>
58
- `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${oe(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:r,tokens:n}){let o=this.parser.parseInline(n),i=ft(e);if(i===null)return o;e=i;let a='<a href="'+e+'"';return r&&(a+=' title="'+oe(r)+'"'),a+=">"+o+"</a>",a}image({href:e,title:r,text:n,tokens:o}){o&&(n=this.parser.parseInline(o,this.parser.textRenderer));let i=ft(e);if(i===null)return oe(n);e=i;let a=`<img src="${e}" alt="${n}"`;return r&&(a+=` title="${oe(r)}"`),a+=">",a}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:oe(e.text)}},Ft=class{static{S(this,"D")}static{z(this,"$")}strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},ae=class yt{static{S(this,"N")}static{z(this,"l")}options;renderer;textRenderer;constructor(e){this.options=e||be,this.options.renderer=this.options.renderer||new Qe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ft}static parse(e,r){return new yt(r).parse(e)}static parseInline(e,r){return new yt(r).parseInline(e)}parse(e){let r="";for(let n=0;n<e.length;n++){let o=e[n];if(this.options.extensions?.renderers?.[o.type]){let a=o,l=this.options.extensions.renderers[a.type].call({parser:this},a);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(a.type)){r+=l||"";continue}}let i=o;switch(i.type){case"space":{r+=this.renderer.space(i);break}case"hr":{r+=this.renderer.hr(i);break}case"heading":{r+=this.renderer.heading(i);break}case"code":{r+=this.renderer.code(i);break}case"table":{r+=this.renderer.table(i);break}case"blockquote":{r+=this.renderer.blockquote(i);break}case"list":{r+=this.renderer.list(i);break}case"checkbox":{r+=this.renderer.checkbox(i);break}case"html":{r+=this.renderer.html(i);break}case"def":{r+=this.renderer.def(i);break}case"paragraph":{r+=this.renderer.paragraph(i);break}case"text":{r+=this.renderer.text(i);break}default:{let a='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return r}parseInline(e,r=this.renderer){let n="";for(let o=0;o<e.length;o++){let i=e[o];if(this.options.extensions?.renderers?.[i.type]){let l=this.options.extensions.renderers[i.type].call({parser:this},i);if(l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=l||"";continue}}let a=i;switch(a.type){case"escape":{n+=r.text(a);break}case"html":{n+=r.html(a);break}case"link":{n+=r.link(a);break}case"image":{n+=r.image(a);break}case"checkbox":{n+=r.checkbox(a);break}case"strong":{n+=r.strong(a);break}case"em":{n+=r.em(a);break}case"codespan":{n+=r.codespan(a);break}case"br":{n+=r.br(a);break}case"del":{n+=r.del(a);break}case"text":{n+=r.text(a);break}default:{let l='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return n}},ze=class{static{S(this,"T")}static{z(this,"S")}options;block;constructor(e){this.options=e||be}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?ie.lex:ie.lexInline}provideParser(){return this.block?ae.parse:ae.parseInline}},ri=class{static{S(this,"xe")}static{z(this,"B")}defaults=rt();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=ae;Renderer=Qe;TextRenderer=Ft;Lexer=ie;Tokenizer=Xe;Hooks=ze;constructor(...e){this.use(...e)}walkTokens(e,r){let n=[];for(let o of e)switch(n=n.concat(r.call(this,o)),o.type){case"table":{let i=o;for(let a of i.header)n=n.concat(this.walkTokens(a.tokens,r));for(let a of i.rows)for(let l of a)n=n.concat(this.walkTokens(l.tokens,r));break}case"list":{let i=o;n=n.concat(this.walkTokens(i.items,r));break}default:{let i=o;this.defaults.extensions?.childTokens?.[i.type]?this.defaults.extensions.childTokens[i.type].forEach(a=>{let l=i[a].flat(1/0);n=n.concat(this.walkTokens(l,r))}):i.tokens&&(n=n.concat(this.walkTokens(i.tokens,r)))}}return n}use(...e){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let o={...n};if(o.async=this.defaults.async||o.async||!1,n.extensions&&(n.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let a=r.renderers[i.name];a?r.renderers[i.name]=function(...l){let s=i.renderer.apply(this,l);return s===!1&&(s=a.apply(this,l)),s}:r.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=r[i.level];a?a.unshift(i.tokenizer):r[i.level]=[i.tokenizer],i.start&&(i.level==="block"?r.startBlock?r.startBlock.push(i.start):r.startBlock=[i.start]:i.level==="inline"&&(r.startInline?r.startInline.push(i.start):r.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(r.childTokens[i.name]=i.childTokens)}),o.extensions=r),n.renderer){let i=this.defaults.renderer||new Qe(this.defaults);for(let a in n.renderer){if(!(a in i))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let l=a,s=n.renderer[l],p=i[l];i[l]=(...d)=>{let g=s.apply(i,d);return g===!1&&(g=p.apply(i,d)),g||""}}o.renderer=i}if(n.tokenizer){let i=this.defaults.tokenizer||new Xe(this.defaults);for(let a in n.tokenizer){if(!(a in i))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let l=a,s=n.tokenizer[l],p=i[l];i[l]=(...d)=>{let g=s.apply(i,d);return g===!1&&(g=p.apply(i,d)),g}}o.tokenizer=i}if(n.hooks){let i=this.defaults.hooks||new ze;for(let a in n.hooks){if(!(a in i))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let l=a,s=n.hooks[l],p=i[l];ze.passThroughHooks.has(a)?i[l]=d=>{if(this.defaults.async&&ze.passThroughHooksRespectAsync.has(a))return(async()=>{let f=await s.call(i,d);return p.call(i,f)})();let g=s.call(i,d);return p.call(i,g)}:i[l]=(...d)=>{if(this.defaults.async)return(async()=>{let f=await s.apply(i,d);return f===!1&&(f=await p.apply(i,d)),f})();let g=s.apply(i,d);return g===!1&&(g=p.apply(i,d)),g}}o.hooks=i}if(n.walkTokens){let i=this.defaults.walkTokens,a=n.walkTokens;o.walkTokens=function(l){let s=[];return s.push(a.call(this,l)),i&&(s=s.concat(i.call(this,l))),s}}this.defaults={...this.defaults,...o}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,r){return ie.lex(e,r??this.defaults)}parser(e,r){return ae.parse(e,r??this.defaults)}parseMarkdown(e){return(r,n)=>{let o={...n},i={...this.defaults,...o},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&o.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let l=i.hooks?await i.hooks.preprocess(r):r,s=await(i.hooks?await i.hooks.provideLexer():e?ie.lex:ie.lexInline)(l,i),p=i.hooks?await i.hooks.processAllTokens(s):s;i.walkTokens&&await Promise.all(this.walkTokens(p,i.walkTokens));let d=await(i.hooks?await i.hooks.provideParser():e?ae.parse:ae.parseInline)(p,i);return i.hooks?await i.hooks.postprocess(d):d})().catch(a);try{i.hooks&&(r=i.hooks.preprocess(r));let l=(i.hooks?i.hooks.provideLexer():e?ie.lex:ie.lexInline)(r,i);i.hooks&&(l=i.hooks.processAllTokens(l)),i.walkTokens&&this.walkTokens(l,i.walkTokens);let s=(i.hooks?i.hooks.provideParser():e?ae.parse:ae.parseInline)(l,i);return i.hooks&&(s=i.hooks.postprocess(s)),s}catch(l){return a(l)}}}onError(e,r){return n=>{if(n.message+=`
59
- Please report this to https://github.com/markedjs/marked.`,e){let o="<p>An error occurred:</p><pre>"+oe(n.message+"",!0)+"</pre>";return r?Promise.resolve(o):o}if(r)return Promise.reject(n);throw n}}},we=new ri;function H(t,e){return we.parse(t,e)}S(H,"g$5");z(H,"d");H.options=H.setOptions=function(t){return we.setOptions(t),H.defaults=we.defaults,Et(H.defaults),H};H.getDefaults=rt;H.defaults=be;H.use=function(...t){return we.use(...t),H.defaults=we.defaults,Et(H.defaults),H};H.walkTokens=function(t,e){return we.walkTokens(t,e)};H.parseInline=we.parseInline;H.Parser=ae;H.parser=ae.parse;H.Renderer=Qe;H.TextRenderer=Ft;H.Lexer=ie;H.lexer=ie.lex;H.Tokenizer=Xe;H.Hooks=ze;H.parse=H;var nr=H,ni=Object.defineProperty,oi=S((t,e)=>ni(t,"name",{value:e,configurable:!0}),"t$1");const ii=["cjs","mjs"],ai=["mdoc"],Ce=oi(t=>{const e=(t.split("?")[0]??t).split(".").pop()?.toLowerCase();if(!e||ii.includes(e))return"javascript";if(ai.includes(e))return"markdown";switch(e){case"js":return"javascript";case"json":return"json";case"json5":return"json5";case"jsonc":return"jsonc";case"jsx":return"jsx";case"sql":return"sql";case"ts":return"typescript";case"tsx":return"tsx";case"xml":return"xml";case"md":return"markdown";case"mdx":return"mdx";case"svelte":return"svelte";case"vue":return"vue";case"html":return"html";case"css":return"css";case"scss":return"scss";case"less":return"less";case"sass":return"sass";case"stylus":return"stylus";case"styl":return"styl";default:return"javascript"}},"findLanguageBasedOnExtension"),si=500,Or="visulima:vite-overlay:error",li="visulima-vite-overlay",qr="Error",ci="Runtime error",or="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-copy%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Crect%20width%3D%2214%22%20height%3D%2214%22%20x%3D%228%22%20y%3D%228%22%20rx%3D%222%22%20ry%3D%222%22%20%2F%3E%20%3Cpath%20d%3D%22M4%2016c-1.1%200-2-.9-2-2V4c0-1.1.9-2%202-2h10c1.1%200%202%20.9%202%202%22%20%2F%3E%20%3C%2Fsvg%3E",ir="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-info%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%20%2F%3E%20%3Cpath%20d%3D%22M12%2016v-4%22%20%2F%3E%20%3Cpath%20d%3D%22M12%208h.01%22%20%2F%3E%20%3C%2Fsvg%3E",ar="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-moon-star%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Cpath%20d%3D%22M18%205h4%22%20%2F%3E%20%3Cpath%20d%3D%22M20%203v4%22%20%2F%3E%20%3Cpath%20d%3D%22M20.985%2012.486a9%209%200%201%201-9.473-9.472c.405-.022.617.46.402.803a6%206%200%200%200%208.268%208.268c.344-.215.825-.004.803.401%22%20%2F%3E%20%3C%2Fsvg%3E",sr="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-sun%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%224%22%20%2F%3E%20%3Cpath%20d%3D%22M12%202v2%22%20%2F%3E%20%3Cpath%20d%3D%22M12%2020v2%22%20%2F%3E%20%3Cpath%20d%3D%22m4.93%204.93%201.41%201.41%22%20%2F%3E%20%3Cpath%20d%3D%22m17.66%2017.66%201.41%201.41%22%20%2F%3E%20%3Cpath%20d%3D%22M2%2012h2%22%20%2F%3E%20%3Cpath%20d%3D%22M20%2012h2%22%20%2F%3E%20%3Cpath%20d%3D%22m6.34%2017.66-1.41%201.41%22%20%2F%3E%20%3Cpath%20d%3D%22m19.07%204.93-1.41%201.41%22%20%2F%3E%20%3C%2Fsvg%3E",lr="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-x%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Cpath%20d%3D%22M18%206%206%2018%22%20%2F%3E%20%3Cpath%20d%3D%22m6%206%2012%2012%22%20%2F%3E%20%3C%2Fsvg%3E";var kt=(t=>(t.appcode="AppCode",t["android-studio"]="Android Studio",t.atom="Atom",t["atom-beta"]="Atom Beta",t.brackets="Brackets",t.clion="CLion",t.code="Visual Studio Code",t["code-insiders"]="Visual Studio Code Insiders",t.codium="VSCodium",t.cursor="Cursor",t.emacs="GNU Emacs",t.emacsforosx="GNU Emacs for Mac OS X",t.intellij="IntelliJ IDEA",t.idea="IntelliJ IDEA",t.nano="GNU nano",t.neovim="NeoVim",t["notepad++"]="Notepad++",t.phpstorm="PhpStorm",t.pycharm="PyCharm",t.rider="Rider",t.rubymine="RubyMine",t.sublime="SublimeText",t.textmate="TextMate",t.vim="Vim",t.visualstudio="Visual Studio",t.vscode="Visual Studio Code",t.vscodium="VSCodium",t.webstorm="WebStorm",t.xcode="Xcode",t.zed="Zed",t))(kt||{}),di=`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */
60
- @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-outline-style:solid}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-600:oklch(68.1% .162 75.834);--color-lime-800:oklch(45.3% .124 130.933);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-emerald-500:oklch(69.6% .17 162.48);--color-cyan-600:oklch(60.9% .126 221.723);--color-blue-50:oklch(97% .014 254.604);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25/1.875);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--radius-md:.375rem;--radius-lg:.5rem;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--blur-sm:8px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}button:not(:disabled),[role=button]:not(:disabled){cursor:pointer}body{background-color:var(--ono-v-bg);color:var(--ono-v-text)}pre,code{color:var(--ono-v-text)}.text-muted{color:var(--ono-v-text-muted)}a{color:var(--ono-v-link)}a:hover{text-decoration:underline}::selection{background:var(--ono-v-red-orange)}@supports (color:color-mix(in lab, red, red)){::selection{background:color-mix(in srgb,var(--ono-v-red-orange)20%,transparent)}}kbd{background-color:var(--ono-v-chip-bg);color:var(--ono-v-chip-text);border-radius:.375rem;padding:.125rem .375rem;font:.75rem ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}hr{border-color:var(--ono-v-border)}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{appearance:none;--tw-shadow:0 0 #0000;background-color:#fff;border-width:1px;border-color:oklch(55.1% .027 264.364);border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem}:is([type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select):focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:oklch(54.6% .245 262.881);outline:2px solid #0000}input::placeholder,textarea::placeholder{color:oklch(55.1% .027 264.364);opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-date-and-time-value{text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-year-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-month-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-day-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-hour-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-minute-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-second-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-millisecond-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{print-color-adjust:exact;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='oklch(55.1%25 0.027 264.364)' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;print-color-adjust:unset;padding-right:.75rem}[type=checkbox],[type=radio]{appearance:none;print-color-adjust:exact;vertical-align:middle;-webkit-user-select:none;user-select:none;color:oklch(54.6% .245 262.881);--tw-shadow:0 0 #0000;background-color:#fff;background-origin:border-box;border-width:1px;border-color:oklch(55.1% .027 264.364);flex-shrink:0;width:1rem;height:1rem;padding:0;display:inline-block}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid #0000}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors:active){[type=checkbox]:checked{appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors:active){[type=radio]:checked{appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{background-color:currentColor;border-color:#0000}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}@media (forced-colors:active){[type=checkbox]:indeterminate{appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{background-color:currentColor;border-color:#0000}[type=file]{background:unset;border-color:inherit;font-size:unset;line-height:inherit;border-width:0;border-radius:0;padding:0}[type=file]:focus{outline:1px solid buttontext;outline:1px auto -webkit-focus-ring-color}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:calc(var(--spacing)*0)}.top-4{top:calc(var(--spacing)*4)}.top-\\[calc\\(var\\(--ono-v-dialog-border-width\\)\\*-1\\)\\]{top:calc(var(--ono-v-dialog-border-width)*-1)}.right-6{right:calc(var(--spacing)*6)}.right-\\[-54px\\]{right:-54px}.left-\\[-54px\\]{left:-54px}.-z-1{z-index:calc(1*-1)}.z-2{z-index:2}.z-10{z-index:10}.z-\\[2147483647\\]{z-index:2147483647}.m-1{margin:calc(var(--spacing)*1)}.mx-1{margin-inline:calc(var(--spacing)*1)}.mx-auto{margin-inline:auto}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);margin-top:1.2em;margin-bottom:1.2em;font-size:1.25em;line-height:1.6}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:decimal}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:disc}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.25em;font-weight:600}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em;font-style:italic;font-weight:500}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:0;margin-bottom:.888889em;font-size:2.25em;font-weight:800;line-height:1.11111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:2em;margin-bottom:1em;font-size:1.5em;font-weight:700;line-height:1.33333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.6em;margin-bottom:.6em;font-size:1.25em;font-weight:600;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em;display:block}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-kbd);box-shadow:0 0 0 1px var(--tw-prose-kbd-shadows),0 3px 0 var(--tw-prose-kbd-shadows);padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;border-radius:.3125rem;padding-inline-start:.375em;font-family:inherit;font-size:.875em;font-weight:500}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"\`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);padding-top:.857143em;padding-inline-end:1.14286em;padding-bottom:.857143em;border-radius:.375rem;margin-top:1.71429em;margin-bottom:1.71429em;padding-inline-start:1.14286em;font-size:.875em;font-weight:400;line-height:1.71429;overflow-x:auto}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit;background-color:#0000;border-width:0;border-radius:0;padding:0}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){table-layout:auto;width:100%;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.71429}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);vertical-align:bottom;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em;font-weight:600}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);margin-top:.857143em;font-size:.875em;line-height:1.42857}.prose{--tw-prose-body:oklch(37.3% .034 259.733);--tw-prose-headings:oklch(21% .034 264.665);--tw-prose-lead:oklch(44.6% .03 256.802);--tw-prose-links:oklch(21% .034 264.665);--tw-prose-bold:oklch(21% .034 264.665);--tw-prose-counters:oklch(55.1% .027 264.364);--tw-prose-bullets:oklch(87.2% .01 258.338);--tw-prose-hr:oklch(92.8% .006 264.531);--tw-prose-quotes:oklch(21% .034 264.665);--tw-prose-quote-borders:oklch(92.8% .006 264.531);--tw-prose-captions:oklch(55.1% .027 264.364);--tw-prose-kbd:oklch(21% .034 264.665);--tw-prose-kbd-shadows:oklab(21% -.00316127 -.0338527/.1);--tw-prose-code:oklch(21% .034 264.665);--tw-prose-pre-code:oklch(92.8% .006 264.531);--tw-prose-pre-bg:oklch(27.8% .033 256.848);--tw-prose-th-borders:oklch(87.2% .01 258.338);--tw-prose-td-borders:oklch(92.8% .006 264.531);--tw-prose-invert-body:oklch(87.2% .01 258.338);--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:oklch(70.7% .022 261.325);--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:oklch(70.7% .022 261.325);--tw-prose-invert-bullets:oklch(44.6% .03 256.802);--tw-prose-invert-hr:oklch(37.3% .034 259.733);--tw-prose-invert-quotes:oklch(96.7% .003 264.542);--tw-prose-invert-quote-borders:oklch(37.3% .034 259.733);--tw-prose-invert-captions:oklch(70.7% .022 261.325);--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:#ffffff1a;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:oklch(87.2% .01 258.338);--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:oklch(44.6% .03 256.802);--tw-prose-invert-td-borders:oklch(37.3% .034 259.733);font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.571429em;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.71429}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.888889em;margin-bottom:.888889em;font-size:1.28571em;line-height:1.55556}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.33333em;margin-bottom:1.33333em;padding-inline-start:1.11111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:.8em;font-size:2.14286em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.6em;margin-bottom:.8em;font-size:1.42857em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.55556em;margin-bottom:.444444em;font-size:1.28571em;line-height:1.55556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.42857em;margin-bottom:.571429em;line-height:1.42857}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.142857em;padding-inline-end:.357143em;padding-bottom:.142857em;border-radius:.3125rem;padding-inline-start:.357143em;font-size:.857143em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.666667em;padding-inline-end:1em;padding-bottom:.666667em;border-radius:.25rem;margin-top:1.66667em;margin-bottom:1.66667em;padding-inline-start:1em;font-size:.857143em;line-height:1.66667}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em;padding-inline-start:1.57143em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;margin-bottom:.285714em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.428571em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.571429em;margin-bottom:.571429em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.571429em;margin-bottom:.571429em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;padding-inline-start:1.57143em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.85714em;margin-bottom:2.85714em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.666667em;padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.666667em;font-size:.857143em;line-height:1.33333}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.-mt-3{margin-top:calc(var(--spacing)*-3)}.-mt-5{margin-top:calc(var(--spacing)*-5)}.mt-8{margin-top:calc(var(--spacing)*8)}.mb-0{margin-bottom:calc(var(--spacing)*0)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.ml-2{margin-left:calc(var(--spacing)*2)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.size-5{width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.size-6\\.5{width:calc(var(--spacing)*6.5);height:calc(var(--spacing)*6.5)}.size-8{width:calc(var(--spacing)*8);height:calc(var(--spacing)*8)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-10{height:calc(var(--spacing)*10)}.h-\\[40vmin\\]{height:40vmin}.h-\\[calc\\(100\\%\\+var\\(--ono-v-dialog-border-width\\)\\)\\]{height:calc(100% + var(--ono-v-dialog-border-width))}.h-\\[var\\(--ono-v-dialog-notch-height\\)\\]{height:var(--ono-v-dialog-notch-height)}.max-h-50{max-height:calc(var(--spacing)*50)}.max-h-\\[140px\\]{max-height:140px}.max-h-\\[calc\\(100\\%-56px\\)\\]{max-height:calc(100% - 56px)}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-screen{min-height:100vh}.w-1\\/2{width:50%}.w-1\\/3{width:33.3333%}.w-2\\/3{width:66.6667%}.w-2\\/5{width:40%}.w-3\\/4{width:75%}.w-3\\/5{width:60%}.w-4{width:calc(var(--spacing)*4)}.w-4\\/5{width:80%}.w-6{width:calc(var(--spacing)*6)}.w-42{width:calc(var(--spacing)*42)}.w-44{width:calc(var(--spacing)*44)}.w-\\[calc\\(100\\%-24px\\)\\]{width:calc(100% - 24px)}.w-fit{width:fit-content}.w-full{width:100%}.max-w-4xl{max-width:var(--container-4xl)}.max-w-\\[calc\\(var\\(--ono-v-dialog-max-width\\)-24px\\)\\]{max-width:calc(var(--ono-v-dialog-max-width) - 24px)}.max-w-\\[var\\(--ono-v-dialog-max-width\\)\\]{max-width:var(--ono-v-dialog-max-width)}.max-w-full{max-width:100%}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-5{min-width:calc(var(--spacing)*5)}.min-w-8{min-width:calc(var(--spacing)*8)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.translate-x-\\[calc\\(var\\(--ono-v-dialog-border-width\\)\\*-1\\)\\]{--tw-translate-x:calc(var(--ono-v-dialog-border-width)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-\\[var\\(--ono-v-dialog-border-width\\)\\]{--tw-translate-x:var(--ono-v-dialog-border-width);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\\[var\\(--ono-v-dialog-border-width\\)\\]{--tw-translate-y:var(--ono-v-dialog-border-width);translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.\\[transform\\:rotateY\\(180deg\\)\\]{transform:rotateY(180deg)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-\\[spin_20s_linear_infinite\\]{animation:20s linear infinite spin}.animate-pulse{animation:var(--animate-pulse)}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-inside{list-style-position:inside}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-6{gap:calc(var(--spacing)*6)}:where(.space-y-0\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-\\[var\\(--ono-v-radius-md\\)\\]{border-radius:var(--ono-v-radius-md)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-tl-\\[var\\(--ono-v-dialog-radius\\)\\]{border-top-left-radius:var(--ono-v-dialog-radius)}.rounded-tr-\\[var\\(--ono-v-dialog-radius\\)\\]{border-top-right-radius:var(--ono-v-dialog-radius)}.rounded-b-\\[var\\(--ono-v-dialog-radius\\)\\]{border-bottom-right-radius:var(--ono-v-dialog-radius);border-bottom-left-radius:var(--ono-v-dialog-radius)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-0{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.border-none{--tw-border-style:none;border-style:none}.border-\\[var\\(--ono-v-border\\)\\]{border-color:var(--ono-v-border)}.border-\\[var\\(--stroke-color\\)\\]{border-color:var(--stroke-color)}.bg-\\[\\#282c34\\]{background-color:#282c34}.bg-\\[\\#b0c8aa\\]{background-color:#b0c8aa}.bg-\\[var\\(--background-color\\)\\]{background-color:var(--background-color)}.bg-\\[var\\(--ono-v-chip-bg\\)\\]{background-color:var(--ono-v-chip-bg)}.bg-\\[var\\(--ono-v-red-orange\\)\\]{background-color:var(--ono-v-red-orange)}.bg-\\[var\\(--ono-v-success-bg\\)\\]{background-color:var(--ono-v-success-bg)}.bg-\\[var\\(--ono-v-surface\\)\\]{background-color:var(--ono-v-surface)}.bg-\\[var\\(--ono-v-surface-muted\\)\\]{background-color:var(--ono-v-surface-muted)}.bg-black\\/60{background-color:#0009}@supports (color:color-mix(in lab, red, red)){.bg-black\\/60{background-color:color-mix(in oklab,var(--color-black)60%,transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-cyan-600{background-color:var(--color-cyan-600)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-600{background-color:var(--color-gray-600)}.bg-green-500{background-color:var(--color-green-500)}.bg-red-500{background-color:var(--color-red-500)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\\/20{background-color:#fff3}@supports (color:color-mix(in lab, red, red)){.bg-white\\/20{background-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.bg-yellow-500{background-color:var(--color-yellow-500)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-1\\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\\.5{padding-inline:calc(var(--spacing)*2.5)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-\\[15px\\]{padding-inline:15px}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.pe-6{padding-inline-end:calc(var(--spacing)*6)}.pt-5{padding-top:calc(var(--spacing)*5)}.pt-\\[10vh\\]{padding-top:10vh}.pr-0{padding-right:calc(var(--spacing)*0)}.pl-0{padding-left:calc(var(--spacing)*0)}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.text-\\[calc\\(10px\\+2vmin\\)\\]{font-size:calc(10px + 2vmin)}.leading-4{--tw-leading:calc(var(--spacing)*4);line-height:calc(var(--spacing)*4)}.leading-5{--tw-leading:calc(var(--spacing)*5);line-height:calc(var(--spacing)*5)}.leading-none{--tw-leading:1;line-height:1}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.whitespace-pre-wrap{white-space:pre-wrap}.text-\\[\\#61dafb\\]{color:#61dafb}.text-\\[var\\(--ono-v-red-orange\\)\\]{color:var(--ono-v-red-orange)}.text-\\[var\\(--ono-v-text\\)\\]{color:var(--ono-v-text)}.text-\\[var\\(--ono-v-text-muted\\)\\]{color:var(--ono-v-text-muted)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\[var\\(--ono-v-elevation-1\\)\\]{--tw-shadow:var(--ono-v-elevation-1);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\[var\\(--ono-v-elevation-2\\)\\]{--tw-shadow:var(--ono-v-elevation-2);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.inset-shadow-\\[var\\(--ono-v-elevation-2\\)\\]{--tw-inset-shadow:inset var(--ono-v-elevation-2);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.outline-none{--tw-outline-style:none;outline-style:none}.\\[vite\\:legacy\\]{vite:legacy}.\\[vite\\:react-babel\\]{vite:react-babel}.\\[vite\\:vue\\]{vite:vue}.hover\\:bg-\\[var\\(--ono-v-hover-overlay\\)\\]:hover{background-color:var(--ono-v-hover-overlay)}.hover\\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\\:bg-green-600:hover{background-color:var(--color-green-600)}.hover\\:bg-red-600:hover{background-color:var(--color-red-600)}.hover\\:bg-yellow-600:hover{background-color:var(--color-yellow-600)}.hover\\:text-\\[var\\(--ono-v-text\\)\\]:hover{color:var(--ono-v-text)}.hover\\:text-\\[var\\(--ono-v-text-muted\\)\\]:hover{color:var(--ono-v-text-muted)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:brightness-105:hover{--tw-brightness:brightness(105%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.focus\\:bg-\\[var\\(--ono-v-hover-overlay\\)\\]:focus{background-color:var(--ono-v-hover-overlay)}.focus\\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-\\[var\\(--ono-v-red-orange\\)\\]:focus{--tw-ring-color:var(--ono-v-red-orange)}.focus\\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus\\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus-visible\\:outline:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.focus-visible\\:outline-\\[var\\(--ono-v-red-orange\\)\\]:focus-visible{outline-color:var(--ono-v-red-orange)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}@media (min-width:40rem){.sm\\:flex{display:flex}}@media (min-width:48rem){.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}}.dark\\:bg-gray-700:where(.dark,.dark *){background-color:var(--color-gray-700)}.dark\\:bg-lime-800:where(.dark,.dark *){background-color:var(--color-lime-800)}.dark\\:text-gray-400:where(.dark,.dark *){color:var(--color-gray-400)}.dark\\:prose-invert:where(.dark,.dark *){--tw-prose-body:var(--tw-prose-invert-body);--tw-prose-headings:var(--tw-prose-invert-headings);--tw-prose-lead:var(--tw-prose-invert-lead);--tw-prose-links:var(--tw-prose-invert-links);--tw-prose-bold:var(--tw-prose-invert-bold);--tw-prose-counters:var(--tw-prose-invert-counters);--tw-prose-bullets:var(--tw-prose-invert-bullets);--tw-prose-hr:var(--tw-prose-invert-hr);--tw-prose-quotes:var(--tw-prose-invert-quotes);--tw-prose-quote-borders:var(--tw-prose-invert-quote-borders);--tw-prose-captions:var(--tw-prose-invert-captions);--tw-prose-kbd:var(--tw-prose-invert-kbd);--tw-prose-kbd-shadows:var(--tw-prose-invert-kbd-shadows);--tw-prose-code:var(--tw-prose-invert-code);--tw-prose-pre-code:var(--tw-prose-invert-pre-code);--tw-prose-pre-bg:var(--tw-prose-invert-pre-bg);--tw-prose-th-borders:var(--tw-prose-invert-th-borders);--tw-prose-td-borders:var(--tw-prose-invert-td-borders)}.prose-headings\\:text-white :where(h1,h2,h3,h4,h5,h6,th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--color-white)}.prose-ul\\:list-none :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:none}.prose-hr\\:my-6 :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-block:calc(var(--spacing)*6)}.prose-hr\\:border :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-style:var(--tw-border-style);border-width:1px}}:host{--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:rotateX(0);--tw-rotate-y:rotateY(0);--tw-rotate-z:rotateZ(0);--tw-skew-x:skewX(0);--tw-skew-y:skewY(0);--tw-space-x-reverse:0;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial:;--ono-v-white-smoke:#f5f5f5;--ono-v-red-orange:#ff4628;--ono-v-charcoal-black:#202020;--ono-v-bg:var(--ono-v-white-smoke);--ono-v-surface:#fff;--ono-v-surface-muted:#fafafa;--ono-v-border:#b9c8d780;--ono-v-hover-overlay:#2020200d;--ono-v-success:#2ea043;--ono-v-success-bg:#d6eed1;--ono-v-neutral:#6e7681;--ono-v-neutral-bg:#6e76812e;--ono-v-chip-bg:#6e768124;--ono-v-chip-text:var(--ono-v-text);--ono-v-radius-md:.5rem;--ono-v-radius-lg:.75rem;--ono-v-elevation-1:0 1px 2px #0000000a,0 1px 1px #00000005;--ono-v-elevation-2:0 10px 25px -5px #2020201a,0 8px 10px -6px #2020201a;--ono-v-text:#111827;--ono-v-text-muted:#374151;--ono-v-link:#c4311d;--ono-v-muted-on-surface:#374151;--ono-v-on-accent:#fff;--ono-v-dialog-border-width:1px;--ono-v-dialog-radius:12px;--ono-v-dialog-max-width:960px;--ono-v-dialog-row-padding:16px;--ono-v-dialog-padding:12px;--ono-v-dialog-notch-height:42px}.dark{--ono-v-bg:#161b22;--ono-v-surface:#0d1117;--ono-v-surface-muted:#0f141b;--ono-v-border:#30363d99;--ono-v-text:#c9d1d9;--ono-v-text-muted:#8b949e;--ono-v-link:#ff6a52;--ono-v-muted-on-surface:#8b949e;--ono-v-hover-overlay:#f0f6fc0f;--ono-v-on-accent:#fff;--ono-v-success:#2ea043;--ono-v-success-bg:#2ea04333;--ono-v-neutral:#6e7681;--ono-v-neutral-bg:#6e768140;--ono-v-chip-bg:#6e768133;--ono-v-chip-text:var(--ono-v-text)}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}@media (min-width:576px){:host{--ono-v-dialog-max-width:540px}}@media (min-width:768px){:host{--ono-v-dialog-max-width:720px}}@media (min-width:992px){:host{--ono-v-dialog-max-width:960px}}button:focus-visible,[role=tab]:focus-visible,summary:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible,[data-open-in-editor]:focus-visible,.js-clipboard:focus-visible{outline:2px solid var(--ono-v-red-orange);outline-offset:2px}.lucide{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.dui{width:1rem;height:1rem;-webkit-mask-image:var(--icon);-webkit-mask-position:50%;-webkit-mask-size:contain;-webkit-mask-repeat:no-repeat;-webkit-mask-image:var(--icon);-webkit-mask-image:var(--icon);mask-image:var(--icon);background-color:currentColor;display:inline-block;-webkit-mask-position:50%;mask-position:50%;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.dui.hidden{display:none!important}.shiki{max-width:100%;max-height:300px;padding-bottom:calc(var(--spacing)*4);overflow-wrap:break-word;overflow:auto}.shiki pre{max-width:100%;overflow:auto}.dark .shiki,.dark .shiki span{color:var(--shiki-dark)!important;background-color:var(--shiki-dark-bg)!important;font-style:var(--shiki-dark-font-style)!important;font-weight:var(--shiki-dark-font-weight)!important;-webkit-text-decoration:var(--shiki-dark-text-decoration)!important;-webkit-text-decoration:var(--shiki-dark-text-decoration)!important;text-decoration:var(--shiki-dark-text-decoration)!important}.shiki.has-diff .diff{position:relative}.shiki.has-diff .diff.add span{background-color:#00c75826}@supports (color:color-mix(in lab, red, red)){.shiki.has-diff .diff.add span{background-color:color-mix(in oklab,var(--color-green-500)15%,transparent)}}.shiki.has-diff .diff.remove span{background-color:#fb2c3626}@supports (color:color-mix(in lab, red, red)){.shiki.has-diff .diff.remove span{background-color:color-mix(in oklab,var(--color-red-500)15%,transparent)}}.shiki.has-diff .diff.add:before{pointer-events:none;left:calc(var(--spacing)*3);margin-top:calc(var(--spacing)*.5);--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold);color:var(--color-green-500);-webkit-user-select:none;user-select:none;content:"+";position:absolute}.shiki.has-diff .diff.remove:before{pointer-events:none;left:calc(var(--spacing)*3);margin-top:calc(var(--spacing)*.5);--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold);color:var(--color-red-500);-webkit-user-select:none;user-select:none;content:"−";position:absolute}.dark .shiki.has-diff .diff.add{background-color:#00c75833!important}@supports (color:color-mix(in lab, red, red)){.dark .shiki.has-diff .diff.add{background-color:color-mix(in oklab,var(--color-green-500)20%,transparent)!important}}.dark .shiki.has-diff .diff.remove{background-color:#fb2c3633!important}@supports (color:color-mix(in lab, red, red)){.dark .shiki.has-diff .diff.remove{background-color:color-mix(in oklab,var(--color-red-500)20%,transparent)!important}}.dark .shiki.has-diff .diff.add:before{color:var(--color-green-400)}.dark .shiki.has-diff .diff.remove:before{color:var(--color-red-400)}.dark [type=checkbox]:checked,.dark [type=radio]:checked{background-color:currentColor}.v-o-skeleton{background:linear-gradient(90deg,#00000014 25%,#0000 50%,#00000014 75%) 0 0/200% 100%}.dark .v-o-skeleton{background:linear-gradient(90deg,#ffffff1a 25%,#0000 50%,#ffffff1a 75%)}#__v_o__stacktrace summary svg{transition:transform .2s}#__v_o__stacktrace[open] summary svg{transform:rotate(90deg)}:has(#__v_o__root){overflow:hidden}#__v_o__root{scrollbar-width:thin;scrollbar-color:var(--ono-v-border)transparent}#__v_o__root::-webkit-scrollbar{width:8px;height:8px}#__v_o__root::-webkit-scrollbar-track{background:var(--ono-v-surface-muted);border-radius:4px}#__v_o__root::-webkit-scrollbar-thumb{background:var(--ono-v-border);border:1px solid var(--ono-v-surface-muted);border-radius:4px}#__v_o__root::-webkit-scrollbar-thumb:hover{background:var(--ono-v-neutral)}#__v_o__root::-webkit-scrollbar-thumb:active{background:var(--ono-v-link)}#__v_o__root::-webkit-scrollbar-corner{background:var(--ono-v-surface-muted)}.dark #__v_o__root{scrollbar-color:#6e768199 transparent}.dark #__v_o__root::-webkit-scrollbar-track{background:#0f141bcc}.dark #__v_o__root::-webkit-scrollbar-thumb{background:#6e768199;border-color:#0f141bcc}.dark #__v_o__root::-webkit-scrollbar-thumb:hover{background:#6e768199}.dark #__v_o__root::-webkit-scrollbar-thumb:active{background:var(--ono-v-red-orange)}.dark #__v_o__root::-webkit-scrollbar-corner{background:#0f141bcc}#__v_o__root{pointer-events:auto}#__v_o__root.scrolling-history{-webkit-user-select:none;user-select:none;cursor:grab}#__v_o__root.scrolling-history:active{cursor:grabbing}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}`;const cr=`/* eslint-disable no-bitwise */
57
+ `}tablecell(e){let n=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+n+`</${r}>
58
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${ge(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:n,tokens:r}){let o=this.parser.parseInline(r),i=jt(e);if(i===null)return o;e=i;let s='<a href="'+e+'"';return n&&(s+=' title="'+ge(n)+'"'),s+=">"+o+"</a>",s}image({href:e,title:n,text:r,tokens:o}){o&&(r=this.parser.parseInline(o,this.parser.textRenderer));let i=jt(e);if(i===null)return ge(r);e=i;let s=`<img src="${e}" alt="${r}"`;return n&&(s+=` title="${ge(n)}"`),s+=">",s}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:ge(e.text)}},ln=class{static{b(this,"D")}static{I(this,"$")}strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},fe=class Vt{static{b(this,"H")}static{I(this,"u")}options;renderer;textRenderer;constructor(e){this.options=e||Re,this.options.renderer=this.options.renderer||new vt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ln}static parse(e,n){return new Vt(n).parse(e)}static parseInline(e,n){return new Vt(n).parseInline(e)}parse(e){let n="";for(let r=0;r<e.length;r++){let o=e[r];if(this.options.extensions?.renderers?.[o.type]){let s=o,l=this.options.extensions.renderers[s.type].call({parser:this},s);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(s.type)){n+=l||"";continue}}let i=o;switch(i.type){case"space":{n+=this.renderer.space(i);break}case"hr":{n+=this.renderer.hr(i);break}case"heading":{n+=this.renderer.heading(i);break}case"code":{n+=this.renderer.code(i);break}case"table":{n+=this.renderer.table(i);break}case"blockquote":{n+=this.renderer.blockquote(i);break}case"list":{n+=this.renderer.list(i);break}case"checkbox":{n+=this.renderer.checkbox(i);break}case"html":{n+=this.renderer.html(i);break}case"def":{n+=this.renderer.def(i);break}case"paragraph":{n+=this.renderer.paragraph(i);break}case"text":{n+=this.renderer.text(i);break}default:{let s='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return n}parseInline(e,n=this.renderer){let r="";for(let o=0;o<e.length;o++){let i=e[o];if(this.options.extensions?.renderers?.[i.type]){let l=this.options.extensions.renderers[i.type].call({parser:this},i);if(l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){r+=l||"";continue}}let s=i;switch(s.type){case"escape":{r+=n.text(s);break}case"html":{r+=n.html(s);break}case"link":{r+=n.link(s);break}case"image":{r+=n.image(s);break}case"checkbox":{r+=n.checkbox(s);break}case"strong":{r+=n.strong(s);break}case"em":{r+=n.em(s);break}case"codespan":{r+=n.codespan(s);break}case"br":{r+=n.br(s);break}case"del":{r+=n.del(s);break}case"text":{r+=n.text(s);break}default:{let l='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return r}},Xe=class{static{b(this,"T")}static{I(this,"S")}options;block;constructor(e){this.options=e||Re}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?me.lex:me.lexInline}provideParser(){return this.block?fe.parse:fe.parseInline}},Ps=class{static{b(this,"fe")}static{I(this,"B")}defaults=$t();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=fe;Renderer=vt;TextRenderer=ln;Lexer=me;Tokenizer=ft;Hooks=Xe;constructor(...t){this.use(...t)}walkTokens(t,e){let n=[];for(let r of t)switch(n=n.concat(e.call(this,r)),r.type){case"table":{let o=r;for(let i of o.header)n=n.concat(this.walkTokens(i.tokens,e));for(let i of o.rows)for(let s of i)n=n.concat(this.walkTokens(s.tokens,e));break}case"list":{let o=r;n=n.concat(this.walkTokens(o.items,e));break}default:{let o=r;this.defaults.extensions?.childTokens?.[o.type]?this.defaults.extensions.childTokens[o.type].forEach(i=>{let s=o[i].flat(1/0);n=n.concat(this.walkTokens(s,e))}):o.tokens&&(n=n.concat(this.walkTokens(o.tokens,e)))}}return n}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let i=e.renderers[o.name];i?e.renderers[o.name]=function(...s){let l=o.renderer.apply(this,s);return l===!1&&(l=i.apply(this,s)),l}:e.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let i=e[o.level];i?i.unshift(o.tokenizer):e[o.level]=[o.tokenizer],o.start&&(o.level==="block"?e.startBlock?e.startBlock.push(o.start):e.startBlock=[o.start]:o.level==="inline"&&(e.startInline?e.startInline.push(o.start):e.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(e.childTokens[o.name]=o.childTokens)}),r.extensions=e),n.renderer){let o=this.defaults.renderer||new vt(this.defaults);for(let i in n.renderer){if(!(i in o))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;let s=i,l=n.renderer[s],a=o[s];o[s]=(...c)=>{let d=l.apply(o,c);return d===!1&&(d=a.apply(o,c)),d||""}}r.renderer=o}if(n.tokenizer){let o=this.defaults.tokenizer||new ft(this.defaults);for(let i in n.tokenizer){if(!(i in o))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;let s=i,l=n.tokenizer[s],a=o[s];o[s]=(...c)=>{let d=l.apply(o,c);return d===!1&&(d=a.apply(o,c)),d}}r.tokenizer=o}if(n.hooks){let o=this.defaults.hooks||new Xe;for(let i in n.hooks){if(!(i in o))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;let s=i,l=n.hooks[s],a=o[s];Xe.passThroughHooks.has(i)?o[s]=c=>{if(this.defaults.async&&Xe.passThroughHooksRespectAsync.has(i))return(async()=>{let u=await l.call(o,c);return a.call(o,u)})();let d=l.call(o,c);return a.call(o,d)}:o[s]=(...c)=>{if(this.defaults.async)return(async()=>{let u=await l.apply(o,c);return u===!1&&(u=await a.apply(o,c)),u})();let d=l.apply(o,c);return d===!1&&(d=a.apply(o,c)),d}}r.hooks=o}if(n.walkTokens){let o=this.defaults.walkTokens,i=n.walkTokens;r.walkTokens=function(s){let l=[];return l.push(i.call(this,s)),o&&(l=l.concat(o.call(this,s))),l}}this.defaults={...this.defaults,...r}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return me.lex(t,e??this.defaults)}parser(t,e){return fe.parse(t,e??this.defaults)}parseMarkdown(t){return(e,n)=>{let r={...n},o={...this.defaults,...r},i=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&r.async===!1)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return i(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=t),o.async)return(async()=>{let s=o.hooks?await o.hooks.preprocess(e):e,l=await(o.hooks?await o.hooks.provideLexer():t?me.lex:me.lexInline)(s,o),a=o.hooks?await o.hooks.processAllTokens(l):l;o.walkTokens&&await Promise.all(this.walkTokens(a,o.walkTokens));let c=await(o.hooks?await o.hooks.provideParser():t?fe.parse:fe.parseInline)(a,o);return o.hooks?await o.hooks.postprocess(c):c})().catch(i);try{o.hooks&&(e=o.hooks.preprocess(e));let s=(o.hooks?o.hooks.provideLexer():t?me.lex:me.lexInline)(e,o);o.hooks&&(s=o.hooks.processAllTokens(s)),o.walkTokens&&this.walkTokens(s,o.walkTokens);let l=(o.hooks?o.hooks.provideParser():t?fe.parse:fe.parseInline)(s,o);return o.hooks&&(l=o.hooks.postprocess(l)),l}catch(s){return i(s)}}}onError(t,e){return n=>{if(n.message+=`
59
+ Please report this to https://github.com/markedjs/marked.`,t){let r="<p>An error occurred:</p><pre>"+ge(n.message+"",!0)+"</pre>";return e?Promise.resolve(r):r}if(e)return Promise.reject(n);throw n}}},Fe=new Ps;function O(t,e){return Fe.parse(t,e)}b(O,"g$6");I(O,"d");O.options=O.setOptions=function(t){return Fe.setOptions(t),O.defaults=Fe.defaults,Kt(O.defaults),O};O.getDefaults=$t;O.defaults=Re;O.use=function(...t){return Fe.use(...t),O.defaults=Fe.defaults,Kt(O.defaults),O};O.walkTokens=function(t,e){return Fe.walkTokens(t,e)};O.parseInline=Fe.parseInline;O.Parser=fe;O.parser=fe.parse;O.Renderer=vt;O.TextRenderer=ln;O.Lexer=me;O.lexer=me.lex;O.Tokenizer=ft;O.Hooks=Xe;O.parse=O;var Gn=O,Ms=Object.defineProperty,Fs=b((t,e)=>Ms(t,"name",{value:e,configurable:!0}),"r$4");const Rs=["cjs","mjs"],zs=["mdoc"],qe=Fs(t=>{const e=(t.split("?")[0]??t).split(".").pop()?.toLowerCase();if(!e||Rs.includes(e))return"javascript";if(zs.includes(e))return"markdown";switch(e){case"js":case"cjs":case"mjs":return"javascript";case"json":return"json";case"json5":return"json5";case"jsonc":return"jsonc";case"jsx":return"jsx";case"sql":return"sql";case"ts":case"cts":case"mts":return"typescript";case"tsx":return"tsx";case"xml":return"xml";case"md":return"markdown";case"mdx":return"mdx";case"svelte":return"svelte";case"vue":return"vue";case"html":return"html";case"css":return"css";case"scss":return"scss";case"less":return"less";case"sass":return"sass";case"stylus":return"stylus";case"styl":return"styl";case"txt":return"text";default:return"javascript"}},"findLanguageBasedOnExtension"),Ds=500,Ar="visulima:vite-overlay:error",As="visulima-vite-overlay",Ir="Error",Is="Runtime error",Yn="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-chevron-left%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Cpath%20d%3D%22m15%2018-6-6%206-6%22%20%2F%3E%20%3C%2Fsvg%3E",dt="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-chevron-right%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Cpath%20d%3D%22m9%2018%206-6-6-6%22%20%2F%3E%20%3C%2Fsvg%3E",Xn="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-clock%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Cpath%20d%3D%22M12%206v6l4%202%22%20%2F%3E%20%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%20%2F%3E%20%3C%2Fsvg%3E",Qn="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-copy%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Crect%20width%3D%2214%22%20height%3D%2214%22%20x%3D%228%22%20y%3D%228%22%20rx%3D%222%22%20ry%3D%222%22%20%2F%3E%20%3Cpath%20d%3D%22M4%2016c-1.1%200-2-.9-2-2V4c0-1.1.9-2%202-2h10c1.1%200%202%20.9%202%202%22%20%2F%3E%20%3C%2Fsvg%3E",Jn="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-info%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%20%2F%3E%20%3Cpath%20d%3D%22M12%2016v-4%22%20%2F%3E%20%3Cpath%20d%3D%22M12%208h.01%22%20%2F%3E%20%3C%2Fsvg%3E",Kn="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-moon-star%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Cpath%20d%3D%22M18%205h4%22%20%2F%3E%20%3Cpath%20d%3D%22M20%203v4%22%20%2F%3E%20%3Cpath%20d%3D%22M20.985%2012.486a9%209%200%201%201-9.473-9.472c.405-.022.617.46.402.803a6%206%200%200%200%208.268%208.268c.344-.215.825-.004.803.401%22%20%2F%3E%20%3C%2Fsvg%3E",er="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-sun%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%224%22%20%2F%3E%20%3Cpath%20d%3D%22M12%202v2%22%20%2F%3E%20%3Cpath%20d%3D%22M12%2020v2%22%20%2F%3E%20%3Cpath%20d%3D%22m4.93%204.93%201.41%201.41%22%20%2F%3E%20%3Cpath%20d%3D%22m17.66%2017.66%201.41%201.41%22%20%2F%3E%20%3Cpath%20d%3D%22M2%2012h2%22%20%2F%3E%20%3Cpath%20d%3D%22M20%2012h2%22%20%2F%3E%20%3Cpath%20d%3D%22m6.34%2017.66-1.41%201.41%22%20%2F%3E%20%3Cpath%20d%3D%22m19.07%204.93-1.41%201.41%22%20%2F%3E%20%3C%2Fsvg%3E",wt="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-x%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Cpath%20d%3D%22M18%206%206%2018%22%20%2F%3E%20%3Cpath%20d%3D%22m6%206%2012%2012%22%20%2F%3E%20%3C%2Fsvg%3E";var Nt=(t=>(t.appcode="AppCode",t["android-studio"]="Android Studio",t.atom="Atom",t["atom-beta"]="Atom Beta",t.brackets="Brackets",t.clion="CLion",t.code="Visual Studio Code",t["code-insiders"]="Visual Studio Code Insiders",t.codium="VSCodium",t.cursor="Cursor",t.emacs="GNU Emacs",t.emacsforosx="GNU Emacs for Mac OS X",t.intellij="IntelliJ IDEA",t.idea="IntelliJ IDEA",t.nano="GNU nano",t.neovim="NeoVim",t["notepad++"]="Notepad++",t.phpstorm="PhpStorm",t.pycharm="PyCharm",t.rider="Rider",t.rubymine="RubyMine",t.sublime="SublimeText",t.textmate="TextMate",t.vim="Vim",t.visualstudio="Visual Studio",t.vscode="Visual Studio Code",t.vscodium="VSCodium",t.webstorm="WebStorm",t.xcode="Xcode",t.zed="Zed",t))(Nt||{}),Hs=`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */
60
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-outline-style:solid}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-600:oklch(68.1% .162 75.834);--color-lime-800:oklch(45.3% .124 130.933);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-emerald-500:oklch(69.6% .17 162.48);--color-cyan-600:oklch(60.9% .126 221.723);--color-blue-50:oklch(97% .014 254.604);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25/1.875);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--radius-md:.375rem;--radius-lg:.5rem;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--blur-sm:8px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}button:not(:disabled),[role=button]:not(:disabled){cursor:pointer}body{background-color:var(--ono-v-bg);color:var(--ono-v-text)}pre,code{color:var(--ono-v-text)}.text-muted{color:var(--ono-v-text-muted)}a{color:var(--ono-v-link)}a:hover{text-decoration:underline}::selection{background:var(--ono-v-red-orange)}@supports (color:color-mix(in lab, red, red)){::selection{background:color-mix(in srgb,var(--ono-v-red-orange)20%,transparent)}}kbd{background-color:var(--ono-v-chip-bg);color:var(--ono-v-chip-text);border-radius:.375rem;padding:.125rem .375rem;font:.75rem ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}hr{border-color:var(--ono-v-border)}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{appearance:none;--tw-shadow:0 0 #0000;background-color:#fff;border-width:1px;border-color:oklch(55.1% .027 264.364);border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem}:is([type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select):focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:oklch(54.6% .245 262.881);outline:2px solid #0000}input::placeholder,textarea::placeholder{color:oklch(55.1% .027 264.364);opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-date-and-time-value{text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-year-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-month-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-day-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-hour-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-minute-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-second-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-millisecond-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{print-color-adjust:exact;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='oklch(55.1%25 0.027 264.364)' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;print-color-adjust:unset;padding-right:.75rem}[type=checkbox],[type=radio]{appearance:none;print-color-adjust:exact;vertical-align:middle;-webkit-user-select:none;user-select:none;color:oklch(54.6% .245 262.881);--tw-shadow:0 0 #0000;background-color:#fff;background-origin:border-box;border-width:1px;border-color:oklch(55.1% .027 264.364);flex-shrink:0;width:1rem;height:1rem;padding:0;display:inline-block}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid #0000}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors:active){[type=checkbox]:checked{appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors:active){[type=radio]:checked{appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{background-color:currentColor;border-color:#0000}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}@media (forced-colors:active){[type=checkbox]:indeterminate{appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{background-color:currentColor;border-color:#0000}[type=file]{background:unset;border-color:inherit;font-size:unset;line-height:inherit;border-width:0;border-radius:0;padding:0}[type=file]:focus{outline:1px solid buttontext;outline:1px auto -webkit-focus-ring-color}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:calc(var(--spacing)*0)}.top-4{top:calc(var(--spacing)*4)}.top-\\[calc\\(var\\(--ono-v-dialog-border-width\\)\\*-1\\)\\]{top:calc(var(--ono-v-dialog-border-width)*-1)}.right-6{right:calc(var(--spacing)*6)}.right-\\[-54px\\]{right:-54px}.left-\\[-54px\\]{left:-54px}.-z-1{z-index:calc(1*-1)}.z-2{z-index:2}.z-10{z-index:10}.z-2147483647,.z-\\[2147483647\\]{z-index:2147483647}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-1{margin:calc(var(--spacing)*1)}.mx-1{margin-inline:calc(var(--spacing)*1)}.mx-auto{margin-inline:auto}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);margin-top:1.2em;margin-bottom:1.2em;font-size:1.25em;line-height:1.6}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:decimal}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:disc}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.25em;font-weight:600}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em;font-style:italic;font-weight:500}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:0;margin-bottom:.888889em;font-size:2.25em;font-weight:800;line-height:1.11111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:2em;margin-bottom:1em;font-size:1.5em;font-weight:700;line-height:1.33333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.6em;margin-bottom:.6em;font-size:1.25em;font-weight:600;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em;display:block}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-kbd);box-shadow:0 0 0 1px var(--tw-prose-kbd-shadows),0 3px 0 var(--tw-prose-kbd-shadows);padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;border-radius:.3125rem;padding-inline-start:.375em;font-family:inherit;font-size:.875em;font-weight:500}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"\`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);padding-top:.857143em;padding-inline-end:1.14286em;padding-bottom:.857143em;border-radius:.375rem;margin-top:1.71429em;margin-bottom:1.71429em;padding-inline-start:1.14286em;font-size:.875em;font-weight:400;line-height:1.71429;overflow-x:auto}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit;background-color:#0000;border-width:0;border-radius:0;padding:0}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){table-layout:auto;width:100%;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.71429}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);vertical-align:bottom;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em;font-weight:600}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);margin-top:.857143em;font-size:.875em;line-height:1.42857}.prose{--tw-prose-body:oklch(37.3% .034 259.733);--tw-prose-headings:oklch(21% .034 264.665);--tw-prose-lead:oklch(44.6% .03 256.802);--tw-prose-links:oklch(21% .034 264.665);--tw-prose-bold:oklch(21% .034 264.665);--tw-prose-counters:oklch(55.1% .027 264.364);--tw-prose-bullets:oklch(87.2% .01 258.338);--tw-prose-hr:oklch(92.8% .006 264.531);--tw-prose-quotes:oklch(21% .034 264.665);--tw-prose-quote-borders:oklch(92.8% .006 264.531);--tw-prose-captions:oklch(55.1% .027 264.364);--tw-prose-kbd:oklch(21% .034 264.665);--tw-prose-kbd-shadows:oklab(21% -.00316127 -.0338527/.1);--tw-prose-code:oklch(21% .034 264.665);--tw-prose-pre-code:oklch(92.8% .006 264.531);--tw-prose-pre-bg:oklch(27.8% .033 256.848);--tw-prose-th-borders:oklch(87.2% .01 258.338);--tw-prose-td-borders:oklch(92.8% .006 264.531);--tw-prose-invert-body:oklch(87.2% .01 258.338);--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:oklch(70.7% .022 261.325);--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:oklch(70.7% .022 261.325);--tw-prose-invert-bullets:oklch(44.6% .03 256.802);--tw-prose-invert-hr:oklch(37.3% .034 259.733);--tw-prose-invert-quotes:oklch(96.7% .003 264.542);--tw-prose-invert-quote-borders:oklch(37.3% .034 259.733);--tw-prose-invert-captions:oklch(70.7% .022 261.325);--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:#ffffff1a;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:oklch(87.2% .01 258.338);--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:oklch(44.6% .03 256.802);--tw-prose-invert-td-borders:oklch(37.3% .034 259.733);font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.571429em;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.71429}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.888889em;margin-bottom:.888889em;font-size:1.28571em;line-height:1.55556}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.33333em;margin-bottom:1.33333em;padding-inline-start:1.11111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:.8em;font-size:2.14286em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.6em;margin-bottom:.8em;font-size:1.42857em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.55556em;margin-bottom:.444444em;font-size:1.28571em;line-height:1.55556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.42857em;margin-bottom:.571429em;line-height:1.42857}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.142857em;padding-inline-end:.357143em;padding-bottom:.142857em;border-radius:.3125rem;padding-inline-start:.357143em;font-size:.857143em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.666667em;padding-inline-end:1em;padding-bottom:.666667em;border-radius:.25rem;margin-top:1.66667em;margin-bottom:1.66667em;padding-inline-start:1em;font-size:.857143em;line-height:1.66667}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em;padding-inline-start:1.57143em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;margin-bottom:.285714em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.428571em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.571429em;margin-bottom:.571429em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.571429em;margin-bottom:.571429em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;padding-inline-start:1.57143em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.85714em;margin-bottom:2.85714em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.666667em;padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.666667em;font-size:.857143em;line-height:1.33333}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.-mt-3{margin-top:calc(var(--spacing)*-3)}.-mt-5{margin-top:calc(var(--spacing)*-5)}.mt-8{margin-top:calc(var(--spacing)*8)}.mb-0{margin-bottom:calc(var(--spacing)*0)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.ml-2{margin-left:calc(var(--spacing)*2)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-5{width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.size-6\\.5{width:calc(var(--spacing)*6.5);height:calc(var(--spacing)*6.5)}.size-8{width:calc(var(--spacing)*8);height:calc(var(--spacing)*8)}.h-\\(--ono-v-dialog-notch-height\\){height:var(--ono-v-dialog-notch-height)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-10{height:calc(var(--spacing)*10)}.h-\\[40vmin\\]{height:40vmin}.h-\\[calc\\(100\\%\\+var\\(--ono-v-dialog-border-width\\)\\)\\]{height:calc(100% + var(--ono-v-dialog-border-width))}.max-h-50{max-height:calc(var(--spacing)*50)}.max-h-\\[140px\\]{max-height:140px}.max-h-\\[calc\\(100\\%-56px\\)\\]{max-height:calc(100% - 56px)}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-screen{min-height:100vh}.w-1\\/2{width:50%}.w-1\\/3{width:33.3333%}.w-2\\/3{width:66.6667%}.w-2\\/5{width:40%}.w-3\\/4{width:75%}.w-3\\/5{width:60%}.w-4{width:calc(var(--spacing)*4)}.w-4\\/5{width:80%}.w-6{width:calc(var(--spacing)*6)}.w-42{width:calc(var(--spacing)*42)}.w-44{width:calc(var(--spacing)*44)}.w-\\[calc\\(100\\%-24px\\)\\]{width:calc(100% - 24px)}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\\(--ono-v-dialog-max-width\\){max-width:var(--ono-v-dialog-max-width)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-\\[calc\\(var\\(--ono-v-dialog-max-width\\)-24px\\)\\]{max-width:calc(var(--ono-v-dialog-max-width) - 24px)}.max-w-full{max-width:100%}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-5{min-width:calc(var(--spacing)*5)}.min-w-8{min-width:calc(var(--spacing)*8)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.translate-x-\\(--ono-v-dialog-border-width\\){--tw-translate-x:var(--ono-v-dialog-border-width);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-\\[calc\\(var\\(--ono-v-dialog-border-width\\)\\*-1\\)\\]{--tw-translate-x:calc(var(--ono-v-dialog-border-width)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\\(--ono-v-dialog-border-width\\){--tw-translate-y:var(--ono-v-dialog-border-width);translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.\\[transform\\:rotateY\\(180deg\\)\\]{transform:rotateY(180deg)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-\\[spin_20s_linear_infinite\\]{animation:20s linear infinite spin}.animate-pulse{animation:var(--animate-pulse)}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-inside{list-style-position:inside}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-6{gap:calc(var(--spacing)*6)}:where(.space-y-0\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-\\(--ono-v-radius-md\\){border-radius:var(--ono-v-radius-md)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-tl-\\(--ono-v-dialog-radius\\){border-top-left-radius:var(--ono-v-dialog-radius)}.rounded-tr-\\(--ono-v-dialog-radius\\){border-top-right-radius:var(--ono-v-dialog-radius)}.rounded-b-\\(--ono-v-dialog-radius\\){border-bottom-right-radius:var(--ono-v-dialog-radius);border-bottom-left-radius:var(--ono-v-dialog-radius)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-0{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.border-none{--tw-border-style:none;border-style:none}.border-\\(--ono-v-border\\){border-color:var(--ono-v-border)}.border-\\(--stroke-color\\){border-color:var(--stroke-color)}.bg-\\(--background-color\\){background-color:var(--background-color)}.bg-\\(--ono-v-chip-bg\\){background-color:var(--ono-v-chip-bg)}.bg-\\(--ono-v-red-orange\\){background-color:var(--ono-v-red-orange)}.bg-\\(--ono-v-success-bg\\){background-color:var(--ono-v-success-bg)}.bg-\\(--ono-v-surface\\){background-color:var(--ono-v-surface)}.bg-\\(--ono-v-surface-muted\\){background-color:var(--ono-v-surface-muted)}.bg-\\[\\#282c34\\]{background-color:#282c34}.bg-\\[\\#b0c8aa\\]{background-color:#b0c8aa}.bg-black\\/60{background-color:#0009}@supports (color:color-mix(in lab, red, red)){.bg-black\\/60{background-color:color-mix(in oklab,var(--color-black)60%,transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-cyan-600{background-color:var(--color-cyan-600)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-600{background-color:var(--color-gray-600)}.bg-green-500{background-color:var(--color-green-500)}.bg-red-500{background-color:var(--color-red-500)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\\/20{background-color:#fff3}@supports (color:color-mix(in lab, red, red)){.bg-white\\/20{background-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.bg-yellow-500{background-color:var(--color-yellow-500)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-1\\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\\.5{padding-inline:calc(var(--spacing)*2.5)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-\\[15px\\]{padding-inline:15px}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.pe-6{padding-inline-end:calc(var(--spacing)*6)}.pt-5{padding-top:calc(var(--spacing)*5)}.pt-\\[10vh\\]{padding-top:10vh}.pr-0{padding-right:calc(var(--spacing)*0)}.pl-0{padding-left:calc(var(--spacing)*0)}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.text-\\[calc\\(10px\\+2vmin\\)\\]{font-size:calc(10px + 2vmin)}.leading-4{--tw-leading:calc(var(--spacing)*4);line-height:calc(var(--spacing)*4)}.leading-5{--tw-leading:calc(var(--spacing)*5);line-height:calc(var(--spacing)*5)}.leading-none{--tw-leading:1;line-height:1}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.whitespace-pre-wrap{white-space:pre-wrap}.text-\\(--ono-v-red-orange\\){color:var(--ono-v-red-orange)}.text-\\(--ono-v-text\\){color:var(--ono-v-text)}.text-\\(--ono-v-text-muted\\){color:var(--ono-v-text-muted)}.text-\\[\\#61dafb\\]{color:#61dafb}.text-\\[var\\(--ono-v-text\\)\\]{color:var(--ono-v-text)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\(--ono-v-elevation-1\\){--tw-shadow:var(--ono-v-elevation-1);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\(--ono-v-elevation-2\\){--tw-shadow:var(--ono-v-elevation-2);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\[--ono-v-elevation-2\\]{--tw-shadow:--ono-v-elevation-2;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.inset-shadow-\\(--ono-v-elevation-2\\){--tw-inset-shadow:inset var(--ono-v-elevation-2);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.outline-none{--tw-outline-style:none;outline-style:none}.\\[vite\\:legacy\\]{vite:legacy}.\\[vite\\:react-babel\\]{vite:react-babel}.\\[vite\\:vue\\]{vite:vue}.hover\\:bg-\\(--ono-v-hover-overlay\\):hover{background-color:var(--ono-v-hover-overlay)}.hover\\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\\:bg-green-600:hover{background-color:var(--color-green-600)}.hover\\:bg-red-600:hover{background-color:var(--color-red-600)}.hover\\:bg-white\\/20:hover{background-color:#fff3}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-white\\/20:hover{background-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.hover\\:bg-yellow-600:hover{background-color:var(--color-yellow-600)}.hover\\:text-\\(--ono-v-text\\):hover{color:var(--ono-v-text)}.hover\\:text-\\[var\\(--ono-v-text-muted\\)\\]:hover{color:var(--ono-v-text-muted)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:brightness-105:hover{--tw-brightness:brightness(105%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.focus\\:bg-\\(--ono-v-hover-overlay\\):focus{background-color:var(--ono-v-hover-overlay)}.focus\\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-\\(--ono-v-red-orange\\):focus{--tw-ring-color:var(--ono-v-red-orange)}.focus\\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus\\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus-visible\\:outline:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.focus-visible\\:outline-\\(--ono-v-red-orange\\):focus-visible{outline-color:var(--ono-v-red-orange)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}@media (min-width:40rem){.sm\\:flex{display:flex}}@media (min-width:48rem){.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}}.dark\\:bg-gray-700:where(.dark,.dark *){background-color:var(--color-gray-700)}.dark\\:bg-lime-800:where(.dark,.dark *){background-color:var(--color-lime-800)}.dark\\:text-gray-400:where(.dark,.dark *){color:var(--color-gray-400)}.dark\\:prose-invert:where(.dark,.dark *){--tw-prose-body:var(--tw-prose-invert-body);--tw-prose-headings:var(--tw-prose-invert-headings);--tw-prose-lead:var(--tw-prose-invert-lead);--tw-prose-links:var(--tw-prose-invert-links);--tw-prose-bold:var(--tw-prose-invert-bold);--tw-prose-counters:var(--tw-prose-invert-counters);--tw-prose-bullets:var(--tw-prose-invert-bullets);--tw-prose-hr:var(--tw-prose-invert-hr);--tw-prose-quotes:var(--tw-prose-invert-quotes);--tw-prose-quote-borders:var(--tw-prose-invert-quote-borders);--tw-prose-captions:var(--tw-prose-invert-captions);--tw-prose-kbd:var(--tw-prose-invert-kbd);--tw-prose-kbd-shadows:var(--tw-prose-invert-kbd-shadows);--tw-prose-code:var(--tw-prose-invert-code);--tw-prose-pre-code:var(--tw-prose-invert-pre-code);--tw-prose-pre-bg:var(--tw-prose-invert-pre-bg);--tw-prose-th-borders:var(--tw-prose-invert-th-borders);--tw-prose-td-borders:var(--tw-prose-invert-td-borders)}.prose-headings\\:text-white :where(h1,h2,h3,h4,h5,h6,th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--color-white)}.prose-ul\\:list-none :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:none}.prose-hr\\:my-6 :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-block:calc(var(--spacing)*6)}.prose-hr\\:border :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-style:var(--tw-border-style);border-width:1px}}:host{--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:rotateX(0);--tw-rotate-y:rotateY(0);--tw-rotate-z:rotateZ(0);--tw-skew-x:skewX(0);--tw-skew-y:skewY(0);--tw-space-x-reverse:0;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial:;--ono-v-white-smoke:#f5f5f5;--ono-v-red-orange:#ff4628;--ono-v-charcoal-black:#202020;--ono-v-bg:var(--ono-v-white-smoke);--ono-v-surface:#fff;--ono-v-surface-muted:#fafafa;--ono-v-border:#b9c8d780;--ono-v-hover-overlay:#2020200d;--ono-v-success:#2ea043;--ono-v-success-bg:#d6eed1;--ono-v-neutral:#6e7681;--ono-v-neutral-bg:#6e76812e;--ono-v-chip-bg:#6e768124;--ono-v-chip-text:var(--ono-v-text);--ono-v-radius-md:.5rem;--ono-v-radius-lg:.75rem;--ono-v-elevation-1:0 1px 2px #0000000a,0 1px 1px #00000005;--ono-v-elevation-2:0 10px 25px -5px #2020201a,0 8px 10px -6px #2020201a;--ono-v-text:#111827;--ono-v-text-muted:#374151;--ono-v-link:#c4311d;--ono-v-muted-on-surface:#374151;--ono-v-on-accent:#fff;--ono-v-dialog-border-width:1px;--ono-v-dialog-radius:12px;--ono-v-dialog-max-width:960px;--ono-v-dialog-row-padding:16px;--ono-v-dialog-padding:12px;--ono-v-dialog-notch-height:42px}.dark{--ono-v-bg:#161b22;--ono-v-surface:#0d1117;--ono-v-surface-muted:#0f141b;--ono-v-border:#30363d99;--ono-v-text:#c9d1d9;--ono-v-text-muted:#8b949e;--ono-v-link:#ff6a52;--ono-v-muted-on-surface:#8b949e;--ono-v-hover-overlay:#f0f6fc0f;--ono-v-on-accent:#fff;--ono-v-success:#2ea043;--ono-v-success-bg:#2ea04333;--ono-v-neutral:#6e7681;--ono-v-neutral-bg:#6e768140;--ono-v-chip-bg:#6e768133;--ono-v-chip-text:var(--ono-v-text)}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}@media (min-width:576px){:host{--ono-v-dialog-max-width:540px}}@media (min-width:768px){:host{--ono-v-dialog-max-width:720px}}@media (min-width:992px){:host{--ono-v-dialog-max-width:960px}}button:focus-visible,[role=tab]:focus-visible,summary:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible,[data-open-in-editor]:focus-visible,.js-clipboard:focus-visible{outline:2px solid var(--ono-v-red-orange);outline-offset:2px}.lucide{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.dui{width:1rem;height:1rem;-webkit-mask-image:var(--icon);-webkit-mask-position:50%;-webkit-mask-size:contain;-webkit-mask-repeat:no-repeat;-webkit-mask-image:var(--icon);-webkit-mask-image:var(--icon);mask-image:var(--icon);background-color:currentColor;display:inline-block;-webkit-mask-position:50%;mask-position:50%;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.dui.hidden{display:none!important}.shiki{max-width:100%;max-height:300px;padding-bottom:calc(var(--spacing)*4);overflow-wrap:break-word;overflow:auto}.shiki pre{max-width:100%;overflow:auto}.dark .shiki,.dark .shiki span{color:var(--shiki-dark)!important;background-color:var(--shiki-dark-bg)!important;font-style:var(--shiki-dark-font-style)!important;font-weight:var(--shiki-dark-font-weight)!important;-webkit-text-decoration:var(--shiki-dark-text-decoration)!important;-webkit-text-decoration:var(--shiki-dark-text-decoration)!important;text-decoration:var(--shiki-dark-text-decoration)!important}.shiki.has-diff .diff{position:relative}.shiki.has-diff .diff.add span{background-color:#00c75826}@supports (color:color-mix(in lab, red, red)){.shiki.has-diff .diff.add span{background-color:color-mix(in oklab,var(--color-green-500)15%,transparent)}}.shiki.has-diff .diff.remove span{background-color:#fb2c3626}@supports (color:color-mix(in lab, red, red)){.shiki.has-diff .diff.remove span{background-color:color-mix(in oklab,var(--color-red-500)15%,transparent)}}.shiki.has-diff .diff.add:before{pointer-events:none;left:calc(var(--spacing)*3);margin-top:calc(var(--spacing)*.5);--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold);color:var(--color-green-500);-webkit-user-select:none;user-select:none;content:"+";position:absolute}.shiki.has-diff .diff.remove:before{pointer-events:none;left:calc(var(--spacing)*3);margin-top:calc(var(--spacing)*.5);--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold);color:var(--color-red-500);-webkit-user-select:none;user-select:none;content:"−";position:absolute}.dark .shiki.has-diff .diff.add{background-color:#00c75833!important}@supports (color:color-mix(in lab, red, red)){.dark .shiki.has-diff .diff.add{background-color:color-mix(in oklab,var(--color-green-500)20%,transparent)!important}}.dark .shiki.has-diff .diff.remove{background-color:#fb2c3633!important}@supports (color:color-mix(in lab, red, red)){.dark .shiki.has-diff .diff.remove{background-color:color-mix(in oklab,var(--color-red-500)20%,transparent)!important}}.dark .shiki.has-diff .diff.add:before{color:var(--color-green-400)}.dark .shiki.has-diff .diff.remove:before{color:var(--color-red-400)}.dark [type=checkbox]:checked,.dark [type=radio]:checked{background-color:currentColor}.v-o-skeleton{background:linear-gradient(90deg,#00000014 25%,#0000 50%,#00000014 75%) 0 0/200% 100%}.dark .v-o-skeleton{background:linear-gradient(90deg,#ffffff1a 25%,#0000 50%,#ffffff1a 75%)}#__v_o__stacktrace summary svg{transition:transform .2s}#__v_o__stacktrace[open] summary svg{transform:rotate(90deg)}:has(#__v_o__root){overflow:hidden}#__v_o__root{scrollbar-width:thin;scrollbar-color:var(--ono-v-border)transparent}#__v_o__root::-webkit-scrollbar{width:8px;height:8px}#__v_o__root::-webkit-scrollbar-track{background:var(--ono-v-surface-muted);border-radius:4px}#__v_o__root::-webkit-scrollbar-thumb{background:var(--ono-v-border);border:1px solid var(--ono-v-surface-muted);border-radius:4px}#__v_o__root::-webkit-scrollbar-thumb:hover{background:var(--ono-v-neutral)}#__v_o__root::-webkit-scrollbar-thumb:active{background:var(--ono-v-link)}#__v_o__root::-webkit-scrollbar-corner{background:var(--ono-v-surface-muted)}.dark #__v_o__root{scrollbar-color:#6e768199 transparent}.dark #__v_o__root::-webkit-scrollbar-track{background:#0f141bcc}.dark #__v_o__root::-webkit-scrollbar-thumb{background:#6e768199;border-color:#0f141bcc}.dark #__v_o__root::-webkit-scrollbar-thumb:hover{background:#6e768199}.dark #__v_o__root::-webkit-scrollbar-thumb:active{background:var(--ono-v-red-orange)}.dark #__v_o__root::-webkit-scrollbar-corner{background:#0f141bcc}#__v_o__root{pointer-events:auto}#__v_o__root.scrolling-history{-webkit-user-select:none;user-select:none;cursor:grab}#__v_o__root.scrolling-history:active{cursor:grabbing}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}`;const tr=`/* eslint-disable no-bitwise */
61
61
  /* eslint-disable class-methods-use-this */
62
62
  /* eslint-disable sonarjs/cognitive-complexity */
63
63
  /* eslint-disable no-param-reassign */
@@ -80,7 +80,6 @@ class ErrorOverlay extends HTMLElement {
80
80
  /**
81
81
  * @typedef {import('../types').VisulimaViteOverlayErrorPayload} VisulimaViteOverlayErrorPayload
82
82
  */
83
-
84
83
  static COPY_SUCCESS_DELAY = 2000;
85
84
 
86
85
  static DRAG_THRESHOLD = 5;
@@ -100,6 +99,8 @@ class ErrorOverlay extends HTMLElement {
100
99
  // Event listeners for cleanup
101
100
  __eventListeners = new Map();
102
101
 
102
+ __v_oBalloonDismissed = false;
103
+
103
104
  // Core state
104
105
  __v_oCurrentHistoryIndex = -1;
105
106
 
@@ -193,14 +194,14 @@ class ErrorOverlay extends HTMLElement {
193
194
  const editorSelect = this.root.querySelector("#editor-selector");
194
195
 
195
196
  if (editorSelect) {
196
- const saved = localStorage.getItem("vo:editor");
197
+ const saved = localStorage.getItem("__v-o__editor");
197
198
 
198
199
  if (saved && editorSelect.value !== saved) {
199
200
  editorSelect.value = saved;
200
201
  }
201
202
 
202
203
  editorSelect.addEventListener("change", function () {
203
- localStorage.setItem("vo:editor", this.value || "");
204
+ localStorage.setItem("__v-o__editor", this.value || "");
204
205
  });
205
206
  }
206
207
 
@@ -334,6 +335,7 @@ class ErrorOverlay extends HTMLElement {
334
335
  this.__elements = {
335
336
  balloon: root.querySelector("#__v_o__balloon"),
336
337
  balloonCount: root.querySelector("#__v_o__balloon_count"),
338
+ balloonGroup: root.querySelector("#__v_o__balloon_group"),
337
339
  balloonText: root.querySelector("#__v_o__balloon_text"),
338
340
  fileButton: root.querySelector("button[class*=\\"underline\\"]"),
339
341
  heading: root.querySelector("#__v_o__heading"),
@@ -442,9 +444,9 @@ class ErrorOverlay extends HTMLElement {
442
444
  * @param {number} total - The total number of errors to display
443
445
  */
444
446
  _initializeBalloon(total) {
445
- const { balloon, balloonCount, balloonText, root } = this.__elements || {};
447
+ const { balloon, balloonCount, balloonGroup, balloonText, root } = this.__elements || {};
446
448
 
447
- if (!balloon || !balloonCount || !root) {
449
+ if (!balloonGroup || !balloonCount || !root) {
448
450
  return;
449
451
  }
450
452
 
@@ -457,19 +459,53 @@ class ErrorOverlay extends HTMLElement {
457
459
 
458
460
  this._restoreBalloonState();
459
461
 
460
- balloon.classList.toggle("hidden", total <= 0);
462
+ // Show balloon if there are errors and it's not dismissed
463
+ if (total > 0 && !this.__v_oBalloonDismissed) {
464
+ balloonGroup.classList.add("inline-flex");
465
+ balloonGroup.classList.remove("hidden");
466
+ } else {
467
+ balloonGroup.classList.remove("inline-flex");
468
+ balloonGroup.classList.add("hidden");
469
+ }
461
470
 
462
471
  const clickHandler = (event) => {
472
+ // Don't toggle overlay if clicking the close button
473
+ if (event.target.closest("#__v_o__balloon_close")) {
474
+ return;
475
+ }
476
+
463
477
  event.preventDefault();
464
478
  const isHidden = root.classList.contains("hidden");
465
479
 
466
480
  root.classList.toggle("hidden");
481
+
467
482
  this._saveBalloonState("overlay", isHidden ? "open" : "closed");
468
483
  };
469
484
 
470
- this._makeBalloonDraggable(balloon);
471
-
472
485
  balloon.addEventListener("click", clickHandler);
486
+
487
+ // Handle close button click
488
+ const closeButton = this.root.querySelector("#__v_o__balloon_close");
489
+
490
+ if (closeButton) {
491
+ const closeHandler = (event) => {
492
+ event.preventDefault();
493
+ event.stopPropagation();
494
+
495
+ // Hide the balloon and mark as dismissed
496
+ balloonGroup.classList.add("hidden");
497
+ balloonGroup.classList.remove("inline-flex");
498
+ this.__v_oBalloonDismissed = true;
499
+ };
500
+
501
+ // Remove existing listener if any
502
+ const existingCloseButton = closeButton.cloneNode(true);
503
+
504
+ closeButton.parentNode.replaceChild(existingCloseButton, closeButton);
505
+ existingCloseButton.addEventListener("click", closeHandler);
506
+ }
507
+
508
+ this._makeBalloonDraggable(balloonGroup);
473
509
  } catch {
474
510
  // Fail silently if DOM is not available
475
511
  }
@@ -571,7 +607,7 @@ class ErrorOverlay extends HTMLElement {
571
607
  * @private
572
608
  */
573
609
  _initializeHistoryToggle() {
574
- const toggleButton = this.__elements.historyToggle;
610
+ const toggleButton = this.__elements?.historyToggle;
575
611
 
576
612
  if (!toggleButton) {
577
613
  return;
@@ -631,7 +667,7 @@ class ErrorOverlay extends HTMLElement {
631
667
  }
632
668
 
633
669
  fileElement.textContent = isHttpLink ? fullPath : \`.\${displayPath}\${line ? \`:\${line}\` : ""}\`;
634
- const editor = localStorage.getItem("vo:editor");
670
+ const editor = localStorage.getItem("__v-o__editor");
635
671
 
636
672
  // Remove any existing event listeners
637
673
  const newFileElement = fileElement.cloneNode(true);
@@ -726,7 +762,7 @@ class ErrorOverlay extends HTMLElement {
726
762
  resolved = abs;
727
763
  }
728
764
 
729
- const editor = localStorage.getItem("vo:editor");
765
+ const editor = localStorage.getItem("__v-o__editor");
730
766
 
731
767
  // injected by the hmr plugin when served
732
768
  // eslint-disable-next-line no-undef
@@ -984,7 +1020,7 @@ class ErrorOverlay extends HTMLElement {
984
1020
 
985
1021
  const isDark = currentTheme === "dark";
986
1022
 
987
- const rootElement = this.__elements.root;
1023
+ const rootElement = this.__elements?.root;
988
1024
  const darkButton = this.root.querySelector("[data-v-o-theme-click-value=\\"dark\\"]");
989
1025
  const lightButton = this.root.querySelector("[data-v-o-theme-click-value=\\"light\\"]");
990
1026
 
@@ -1167,8 +1203,8 @@ class ErrorOverlay extends HTMLElement {
1167
1203
  };
1168
1204
 
1169
1205
  const handleMouseDown = (event) => {
1170
- if (event.target.closest("#__v_o__balloon_count")) {
1171
- return; // Don't drag when clicking count
1206
+ if (event.target.closest("#__v_o__balloon_count") || event.target.closest("#__v_o__balloon_close")) {
1207
+ return; // Don't drag when clicking count or close button
1172
1208
  }
1173
1209
 
1174
1210
  isDragging = true;
@@ -1246,9 +1282,8 @@ class ErrorOverlay extends HTMLElement {
1246
1282
  */
1247
1283
  _restoreBalloonState() {
1248
1284
  try {
1249
- const balloonStates = JSON.parse(localStorage.getItem("v-o-balloon") || "{}");
1250
- const balloon = this.root.querySelector("#__v_o__balloon");
1251
- const rootElement = this.__elements.root;
1285
+ const balloonStates = JSON.parse(localStorage.getItem("__v-o__balloon") || "{}");
1286
+ const { balloon, root: rootElement } = this.__elements || {};
1252
1287
 
1253
1288
  if (balloon && rootElement) {
1254
1289
  if (balloonStates.overlay === "open") {
@@ -1296,12 +1331,12 @@ class ErrorOverlay extends HTMLElement {
1296
1331
 
1297
1332
  _saveBalloonState(key, value) {
1298
1333
  try {
1299
- const item = localStorage.getItem("v-o-balloon");
1334
+ const item = localStorage.getItem("__v-o__balloon");
1300
1335
  const balloonStates = item ? JSON.parse(item) : {};
1301
1336
 
1302
1337
  balloonStates[key] = value;
1303
1338
 
1304
- localStorage.setItem("v-o-balloon", JSON.stringify(balloonStates));
1339
+ localStorage.setItem("__v-o__balloon", JSON.stringify(balloonStates));
1305
1340
  } catch {
1306
1341
  // Fail silently if localStorage is not available
1307
1342
  }
@@ -1364,7 +1399,7 @@ class ErrorOverlay extends HTMLElement {
1364
1399
  historyLayerDepth.classList.add("opacity-0");
1365
1400
  }
1366
1401
 
1367
- const timeElement = this.__elements.historyTimestamp;
1402
+ const timeElement = this.__elements?.historyTimestamp;
1368
1403
 
1369
1404
  if (timeElement) {
1370
1405
  timeElement.classList.add("hidden");
@@ -1423,7 +1458,7 @@ class ErrorOverlay extends HTMLElement {
1423
1458
  const historyEntry = this.__v_oHistory[this.__v_oCurrentHistoryIndex];
1424
1459
 
1425
1460
  // Update timestamp on right notch
1426
- const timeElement = this.__elements.historyTimestamp;
1461
+ const timeElement = this.__elements?.historyTimestamp;
1427
1462
 
1428
1463
  if (timeElement && historyEntry) {
1429
1464
  timeElement.classList.remove("hidden");
@@ -1468,8 +1503,6 @@ class ErrorOverlay extends HTMLElement {
1468
1503
 
1469
1504
  if (root && typeof root.classList?.add === "function") {
1470
1505
  root.classList.add("hidden");
1471
-
1472
- this._saveBalloonState("overlay", "closed");
1473
1506
  }
1474
1507
 
1475
1508
  // Don't remove the overlay - just hide it so it can be reopened
@@ -1492,6 +1525,16 @@ class ErrorOverlay extends HTMLElement {
1492
1525
  this._saveBalloonState("overlay", "open");
1493
1526
  }
1494
1527
 
1528
+ // Show balloon and clear dismissed state when new error occurs
1529
+ const balloonGroup = this.__elements?.balloonGroup;
1530
+
1531
+ if (balloonGroup) {
1532
+ // Clear dismissed state and show balloon for new errors
1533
+ this.__v_oBalloonDismissed = false;
1534
+ balloonGroup.classList.add("inline-flex");
1535
+ balloonGroup.classList.remove("hidden");
1536
+ }
1537
+
1495
1538
  // Update code frame
1496
1539
  const overlay = this.__elements?.overlay;
1497
1540
 
@@ -1529,7 +1572,7 @@ class ErrorOverlay extends HTMLElement {
1529
1572
  this._updateHistoryToggleVisibility();
1530
1573
  }
1531
1574
  }
1532
- `;var pi=Object.defineProperty,it=S((t,e)=>pi(t,"name",{value:e,configurable:!0}),"a$8");const dr='<option value="">Auto-detected Editor</option>',hi="class ErrorOverlay",ui="var ErrorOverlay = ",gi="window.ErrorOverlay = ErrorOverlay;",mi=it(()=>{try{const t=Object.keys(kt);return[dr,...t.map(e=>`<option value="${String(e)}">${String(kt[e])}</option>`)].join("")}catch{return dr}},"generateEditorOptions"),pr=`<svg width="60" height="42" viewBox="0 0 60 42" fill="none" xmlns="http://www.w3.org/2000/svg" class="error-overlay-notch-tail absolute top-[calc(var(--ono-v-dialog-border-width)*-1)] -z-1 h-[calc(100%+var(--ono-v-dialog-border-width))] right-[-54px] pointer-events-none" preserveAspectRatio="none">
1575
+ `;var Bs=Object.defineProperty,we=b((t,e)=>Bs(t,"name",{value:e,configurable:!0}),"r$3");const nr='<option value="">Auto-detected Editor</option>',js="class ErrorOverlay",Os="var ErrorOverlay = ",qs="window.ErrorOverlay = ErrorOverlay;",Us=we(()=>{try{const t=Object.keys(Nt);return[nr,...t.map(e=>`<option value="${String(e)}">${String(Nt[e])}</option>`)].join("")}catch{return nr}},"generateEditorOptions"),rr=`<svg width="60" height="42" viewBox="0 0 60 42" fill="none" xmlns="http://www.w3.org/2000/svg" class="error-overlay-notch-tail absolute top-[calc(var(--ono-v-dialog-border-width)*-1)] -z-1 h-[calc(100%+var(--ono-v-dialog-border-width))] right-[-54px] pointer-events-none" preserveAspectRatio="none">
1533
1576
  <mask id="error_overlay_nav_mask0_2667_14687" maskUnits="userSpaceOnUse" x="0" y="-1" width="60" height="43" style="mask-type: alpha;">
1534
1577
  <mask id="error_overlay_nav_path_1_outside_1_2667_14687" maskUnits="userSpaceOnUse" x="0" y="-1" width="60" height="43" fill="black">
1535
1578
  <rect fill="white" y="-1" width="60" height="43"></rect>
@@ -1546,7 +1589,7 @@ class ErrorOverlay extends HTMLElement {
1546
1589
  <path d="M0 1.02441H7.0783C14.772 1.02441 21.7836 5.43765 25.111 12.3746L33.8889 30.6743C37.2164 37.6112 44.228 42.0244 51.9217 42.0244H59H0L0 1.02441Z" fill="var(--background-color)"></path>
1547
1590
  <path d="M0 1.02441L0 0.0244141H-1V1.02441H0ZM0 42.0244H-1V43.0244H0L0 42.0244ZM33.8889 30.6743L32.9873 31.1068L33.8889 30.6743ZM25.111 12.3746L26.0127 11.9421L25.111 12.3746ZM0 2.02441H7.0783V0.0244141H0L0 2.02441ZM59 41.0244H0L0 43.0244H59V41.0244ZM1 42.0244L1 1.02441H-1L-1 42.0244H1ZM24.2094 12.8071L32.9873 31.1068L34.7906 30.2418L26.0127 11.9421L24.2094 12.8071ZM51.9217 43.0244H59V41.0244H51.9217V43.0244ZM32.9873 31.1068C36.4811 38.3905 43.8433 43.0244 51.9217 43.0244V41.0244C44.6127 41.0244 37.9517 36.8318 34.7906 30.2418L32.9873 31.1068ZM7.0783 2.02441C14.3873 2.02441 21.0483 6.21699 24.2094 12.8071L26.0127 11.9421C22.5188 4.65831 15.1567 0.0244141 7.0783 0.0244141V2.02441Z" fill="var(--stroke-color)" mask="url(#error_overlay_nav_path_3_outside_2_2667_14687)"></path>
1548
1591
  </g>
1549
- </svg>`,hr=`<svg width="60" height="42" viewBox="0 0 60 42" fill="none" xmlns="http://www.w3.org/2000/svg" class="error-overlay-notch-tail absolute top-[calc(var(--ono-v-dialog-border-width)*-1)] -z-1 h-[calc(100%+var(--ono-v-dialog-border-width))] left-[-54px] pointer-events-none [transform:rotateY(180deg)]" preserveAspectRatio="none">
1592
+ </svg>`,or=`<svg width="60" height="42" viewBox="0 0 60 42" fill="none" xmlns="http://www.w3.org/2000/svg" class="error-overlay-notch-tail absolute top-[calc(var(--ono-v-dialog-border-width)*-1)] -z-1 h-[calc(100%+var(--ono-v-dialog-border-width))] left-[-54px] pointer-events-none [transform:rotateY(180deg)]" preserveAspectRatio="none">
1550
1593
  <mask id="error_overlay_nav_mask0_2667_14687" maskUnits="userSpaceOnUse" x="0" y="-1" width="60" height="43" style="mask-type: alpha;">
1551
1594
  <mask id="error_overlay_nav_path_1_outside_1_2667_14687" maskUnits="userSpaceOnUse" x="0" y="-1" width="60" height="43" fill="black">
1552
1595
  <rect fill="white" y="-1" width="60" height="43"></rect>
@@ -1563,33 +1606,27 @@ class ErrorOverlay extends HTMLElement {
1563
1606
  <path d="M0 1.02441H7.0783C14.772 1.02441 21.7836 5.43765 25.111 12.3746L33.8889 30.6743C37.2164 37.6112 44.228 42.0244 51.9217 42.0244H59H0L0 1.02441Z" fill="var(--background-color)"></path>
1564
1607
  <path d="M0 1.02441L0 0.0244141H-1V1.02441H0ZM0 42.0244H-1V43.0244H0L0 42.0244ZM33.8889 30.6743L32.9873 31.1068L33.8889 30.6743ZM25.111 12.3746L26.0127 11.9421L25.111 12.3746ZM0 2.02441H7.0783V0.0244141H0L0 2.02441ZM59 41.0244H0L0 43.0244H59V41.0244ZM1 42.0244L1 1.02441H-1L-1 42.0244H1ZM24.2094 12.8071L32.9873 31.1068L34.7906 30.2418L26.0127 11.9421L24.2094 12.8071ZM51.9217 43.0244H59V41.0244H51.9217V43.0244ZM32.9873 31.1068C36.4811 38.3905 43.8433 43.0244 51.9217 43.0244V41.0244C44.6127 41.0244 37.9517 36.8318 34.7906 30.2418L32.9873 31.1068ZM7.0783 2.02441C14.3873 2.02441 21.0483 6.21699 24.2094 12.8071L26.0127 11.9421C22.5188 4.65831 15.1567 0.0244141 7.0783 0.0244141V2.02441Z" fill="var(--stroke-color)" mask="url(#error_overlay_nav_path_3_outside_2_2667_14687)"></path>
1565
1608
  </g>
1566
- </svg>`,fi=it((t,e,r=!1)=>`<div id="${t}" class="fixed inset-0 z-[2147483647] flex flex-col items-center pt-[10vh] px-[15px] shadow-[var(--ono-v-elevation-2)] hidden">
1609
+ </svg>`,Vs=we((t,e,n=!1)=>`<div id="${t}" class="fixed inset-0 z-[2147483647] flex flex-col items-center pt-[10vh] px-[15px] shadow-[--ono-v-elevation-2] hidden">
1567
1610
  <div id="__v_o__backdrop" class="fixed inset-0 -z-1 bg-black/60 backdrop-blur-sm md:backdrop-blur pointer-events-auto"></div>
1568
- <div id="__v_o__notch" class="relative z-2 flex w-full max-w-[var(--ono-v-dialog-max-width)] items-end justify-between outline-none translate-x-[var(--ono-v-dialog-border-width)] translate-y-[var(--ono-v-dialog-border-width)]" style="--stroke-color: var(--ono-v-border); --background-color: var(--ono-v-surface);">
1569
- <div class="error-overlay-notch relative translate-x-[calc(var(--ono-v-dialog-border-width)*-1)] h-[var(--ono-v-dialog-notch-height)] p-3 pr-0 bg-[var(--background-color)] border border-[var(--stroke-color)] border-b-0 rounded-tl-[var(--ono-v-dialog-radius)]" data-side="left">
1611
+ <div id="__v_o__notch" class="relative z-2 flex w-full max-w-(--ono-v-dialog-max-width) items-end justify-between outline-none translate-x-(--ono-v-dialog-border-width) translate-y-(--ono-v-dialog-border-width)" style="--stroke-color: var(--ono-v-border); --background-color: var(--ono-v-surface);">
1612
+ <div class="error-overlay-notch relative text-(--ono-v-text) translate-x-[calc(var(--ono-v-dialog-border-width)*-1)] h-(--ono-v-dialog-notch-height) p-3 pr-0 bg-(--background-color) border border-(--stroke-color) border-b-0 rounded-tl-(--ono-v-dialog-radius)" data-side="left">
1570
1613
  <nav class="error-overlay-pagination dialog-exclude-closing-from-outside-click flex justify-center items-center gap-2 w-fit">
1571
- <button id="__v_o__error-overlay-pagination-previous" type="button" aria-disabled="true" class="error-overlay-pagination-button flex justify-center items-center w-6 h-6 bg-[var(--ono-v-chip-bg)] rounded-full disabled:opacity-50 disabled:cursor-not-allowed focus-visible:outline focus-visible:outline-[var(--ono-v-red-orange)] hover:bg-[var(--ono-v-hover-overlay)] transition-colors" disabled>
1572
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" aria-label="previous" class="error-overlay-pagination-button-icon">
1573
- <path fill-rule="evenodd" clip-rule="evenodd" d="M9.24996 12.0608L8.71963 11.5304L5.89641 8.70722C5.50588 8.3167 5.50588 7.68353 5.89641 7.29301L8.71963 4.46978L9.24996 3.93945L10.3106 5.00011L9.78029 5.53044L7.31062 8.00011L9.78029 10.4698L10.3106 11.0001L9.24996 12.0608Z" fill="currentColor"></path>
1574
- </svg>
1614
+ <button id="__v_o__error-overlay-pagination-previous" type="button" aria-disabled="true" class="error-overlay-pagination-button flex justify-center items-center w-6 h-6 bg-(--ono-v-chip-bg) rounded-full disabled:opacity-50 disabled:cursor-not-allowed focus-visible:outline focus-visible:outline-(--ono-v-red-orange) hover:bg-(--ono-v-hover-overlay) transition-colors" disabled>
1615
+ <span class="dui size-4" style="-webkit-mask-image: url('${Yn}'); mask-image: url('${Yn}')" aria-label="previous"></span>
1575
1616
  </button>
1576
- <div id="__v_o__error-overlay_pagination_count" class="inline-flex justify-center items-center min-w-8 h-5 gap-1 text-[var(--ono-v-text)] text-center text-[11px] font-medium leading-4 rounded-full px-1.5">
1617
+ <div id="__v_o__error-overlay_pagination_count" class="inline-flex justify-center items-center min-w-8 h-5 gap-1 text-(--ono-v-text) text-center text-[11px] font-medium leading-4 rounded-full px-1.5">
1577
1618
  <span id="__v_o__pagination_current">1</span>
1578
- <span class="text-[var(--ono-v-text-muted)]">/</span>
1619
+ <span class="text-(--ono-v-text-muted)">/</span>
1579
1620
  <span id="__v_o__pagination_total">1</span>
1580
1621
  </div>
1581
- <button type="button" id="__v_o__error-overlay-pagination-next" aria-disabled="true" class="error-overlay-pagination-button flex justify-center items-center w-6 h-6 bg-[var(--ono-v-chip-bg)] rounded-full disabled:opacity-50 disabled:cursor-not-allowed focus-visible:outline focus-visible:outline-[var(--ono-v-red-orange)] hover:bg-[var(--ono-v-hover-overlay)] transition-colors" disabled>
1582
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" class="error-overlay-pagination-button-icon" aria-label="next">
1583
- <path fill-rule="evenodd" clip-rule="evenodd" d="M6.75011 3.93945L7.28044 4.46978L10.1037 7.29301C10.4942 7.68353 10.4942 8.3167 10.1037 8.70722L7.28044 11.5304L6.75011 12.0608L5.68945 11.0001L6.21978 10.4698L8.68945 8.00011L6.21978 5.53044L5.68945 5.00011L6.75011 3.93945Z" fill="currentColor"></path>
1584
- </svg>
1622
+ <button type="button" id="__v_o__error-overlay-pagination-next" aria-disabled="true" class="error-overlay-pagination-button flex justify-center items-center w-6 h-6 bg-(--ono-v-chip-bg) rounded-full disabled:opacity-50 disabled:cursor-not-allowed focus-visible:outline focus-visible:outline-(--ono-v-red-orange) hover:bg-(--ono-v-hover-overlay) transition-colors" disabled>
1623
+ <span class="dui size-4" style="-webkit-mask-image: url('${dt}'); mask-image: url('${dt}')" aria-label="next"></span>
1585
1624
  </button>
1586
1625
  <div class="flex items-center gap-1">
1587
- <button type="button" id="__v_o__history_toggle" title="Toggle Error History" aria-label="Toggle Error History" class="error-overlay-history-button flex justify-center items-center w-6 h-6 bg-[var(--ono-v-chip-bg)] rounded-full hover:bg-[var(--ono-v-hover-overlay)] focus-visible:outline focus-visible:outline-[var(--ono-v-red-orange)] transition-colors">
1588
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" aria-label="history">
1589
- <path fill-rule="evenodd" clip-rule="evenodd" d="M8 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM2.5 8a5.5 5.5 0 1 1 11 0 5.5 5.5 0 0 1-11 0ZM8 4a.5.5 0 0 1 .5.5v3.5a.5.5 0 0 1-1 0V4.5A.5.5 0 0 1 8 4Z" fill="currentColor"></path>
1590
- </svg>
1626
+ <button type="button" id="__v_o__history_toggle" title="Toggle Error History" aria-label="Toggle Error History" class="error-overlay-history-button flex justify-center items-center w-6 h-6 bg-(--ono-v-chip-bg) rounded-full hover:bg-(--ono-v-hover-overlay) focus-visible:outline focus-visible:outline-(--ono-v-red-orange) transition-colors">
1627
+ <span class="dui size-4" style="-webkit-mask-image: url('${Xn}'); mask-image: url('${Xn}')"></span>
1591
1628
  </button>
1592
- <div id="__v_o__history_indicator" class="flex items-center gap-1 text-xs text-[var(--ono-v-text-muted)] hidden">
1629
+ <div id="__v_o__history_indicator" class="flex items-center gap-1 text-xs text-(--ono-v-text-muted) hidden">
1593
1630
  <span id="__v_o__history_count">0</span>
1594
1631
  <span>/</span>
1595
1632
  <span id="__v_o__history_total">0</span>
@@ -1597,74 +1634,74 @@ class ErrorOverlay extends HTMLElement {
1597
1634
  </div>
1598
1635
  </div>
1599
1636
  </nav>
1600
- ${pr}
1637
+ ${rr}
1601
1638
  </div>
1602
1639
  <div class="grow flex justify-center items-end">
1603
- <div id="__v_o__history_timestamp" class="bg-[var(--ono-v-surface)] text-sm text-[var(--ono-v-text-muted)] flex items-end justify-center relative w-42 border-t border-[var(--stroke-color)] hidden">
1604
- ${hr}
1640
+ <div id="__v_o__history_timestamp" class="bg-(--ono-v-surface) text-sm text-(--ono-v-text-muted) flex items-end justify-center relative w-42 border-t border-(--stroke-color) hidden">
1641
+ ${or}
1605
1642
  <span></span>
1606
- ${pr}
1643
+ ${rr}
1607
1644
  </div>
1608
1645
  </div>
1609
- <div class="error-overlay-notch flex gap-1 relative translate-x-[calc(var(--ono-v-dialog-border-width)*-1)] h-[var(--ono-v-dialog-notch-height)] p-3 pl-0 bg-[var(--background-color)] border border-[var(--stroke-color)] border-b-0 rounded-tr-[var(--ono-v-dialog-radius)]" data-side="right">
1610
- ${r?"":`<div id="__v_o__editor" class="hidden sm:flex items-center gap-1">
1646
+ <div class="error-overlay-notch flex gap-1 relative translate-x-[calc(var(--ono-v-dialog-border-width)*-1)] h-(--ono-v-dialog-notch-height) p-3 pl-0 bg-(--background-color) border border-(--stroke-color) border-b-0 rounded-tr-(--ono-v-dialog-radius)" data-side="right">
1647
+ ${n?"":`<div id="__v_o__editor" class="hidden sm:flex items-center gap-1">
1611
1648
  <label for="editor-selector" class="sr-only">Editor</label>
1612
- <select id="editor-selector" class="py-1 cursor-pointer px-2 pe-6 block w-44 bg-[var(--ono-v-surface)] border border-[var(--ono-v-border)] rounded-[var(--ono-v-radius-md)] text-xs text-[var(--ono-v-text)] shadow-[var(--ono-v-elevation-1)] hover:bg-[var(--ono-v-hover-overlay)] focus:outline-hidden focus:ring-1 focus:ring-[var(--ono-v-red-orange)]">${e}</select>
1649
+ <select id="editor-selector" class="py-1 cursor-pointer px-2 pe-6 block w-44 bg-(--ono-v-surface) border border-(--ono-v-border) rounded-(--ono-v-radius-md) text-xs text-(--ono-v-text) shadow-(--ono-v-elevation-1) hover:bg-(--ono-v-hover-overlay) focus:outline-hidden focus:ring-1 focus:ring-(--ono-v-red-orange)">${e}</select>
1613
1650
  </div>
1614
1651
 
1615
1652
  <div id="v-o-theme-switch" class="flex items-center gap-1">
1616
- <button type="button" title="Switch to dark mode" aria-label="Switch to dark mode" class="font-medium rounded-full hover:bg-[var(--ono-v-hover-overlay)] focus:outline-hidden focus:bg-[var(--ono-v-hover-overlay)] text-[var(--ono-v-text)]" data-v-o-theme-click-value="dark">
1653
+ <button type="button" title="Switch to dark mode" aria-label="Switch to dark mode" class="font-medium rounded-full hover:bg-(--ono-v-hover-overlay) focus:outline-hidden focus:bg-(--ono-v-hover-overlay) text-(--ono-v-text)" data-v-o-theme-click-value="dark">
1617
1654
  <span class="inline-flex shrink-0 justify-center items-center size-8">
1618
- <span class="dui size-5" style="-webkit-mask-image: url('${ar}'); mask-image: url('${ar}')"></span>
1655
+ <span class="dui size-5" style="-webkit-mask-image: url('${Kn}'); mask-image: url('${Kn}')"></span>
1619
1656
  </span>
1620
1657
  </button>
1621
- <button type="button" title="Switch to light mode" aria-label="Switch to light mode" class="hidden font-medium rounded-full hover:bg-[var(--ono-v-hover-overlay)] focus:outline-hidden focus:bg-[var(--ono-v-hover-overlay)] text-[var(--ono-v-text)]" data-v-o-theme-click-value="light">
1658
+ <button type="button" title="Switch to light mode" aria-label="Switch to light mode" class="hidden font-medium rounded-full hover:bg-(--ono-v-hover-overlay) focus:outline-hidden focus:bg-(--ono-v-hover-overlay) text-(--ono-v-text)" data-v-o-theme-click-value="light">
1622
1659
  <span class="inline-flex shrink-0 justify-center items-center size-8">
1623
- <span class="dui size-5" style="-webkit-mask-image: url('${sr}'); mask-image: url('${sr}')"></span>
1660
+ <span class="dui size-5" style="-webkit-mask-image: url('${er}'); mask-image: url('${er}')"></span>
1624
1661
  </span>
1625
1662
  </button>
1626
1663
  </div>
1627
1664
 
1628
1665
  <div class="flex items-center">
1629
- <button type="button" id="__v_o__close" aria-label="Close error overlay" class="font-medium rounded-full hover:bg-[var(--ono-v-hover-overlay)] focus:outline-hidden focus:bg-[var(--ono-v-hover-overlay)] text-[var(--ono-v-text)]">
1666
+ <button type="button" id="__v_o__close" aria-label="Close error overlay" class="font-medium rounded-full hover:bg-(--ono-v-hover-overlay) focus:outline-hidden focus:bg-(--ono-v-hover-overlay) text-(--ono-v-text)">
1630
1667
  <span class="inline-flex shrink-0 justify-center items-center size-8">
1631
- <span class="dui size-5" style="-webkit-mask-image: url('${lr}'); mask-image: url('${lr}')"></span>
1668
+ <span class="dui size-5" style="-webkit-mask-image: url('${wt}'); mask-image: url('${wt}')"></span>
1632
1669
  </span>
1633
1670
  </button>
1634
1671
  </div>`}
1635
- ${hr}
1672
+ ${or}
1636
1673
  </div>
1637
1674
  </div>
1638
1675
 
1639
- <div id="__v_o__panel" role="dialog" aria-modal="true" aria-label="Runtime Error Overlay" class="relative z-10 flex w-full max-w-[var(--ono-v-dialog-max-width)] max-h-[calc(100%-56px)] scale-100 opacity-100 flex-col overflow-hidden rounded-b-[var(--ono-v-dialog-radius)] bg-[var(--ono-v-surface)] text-[var(--ono-v-text)] shadow-[var(--ono-v-elevation-1)] border-b border-[var(--ono-v-border)] ">
1640
- <div id="__v_o__header" class="flex items-center gap-1 justify-between border-b border-[var(--ono-v-border)] bg-[var(--ono-v-surface)] px-4 py-2">
1676
+ <div id="__v_o__panel" role="dialog" aria-modal="true" aria-label="Runtime Error Overlay" class="relative z-10 flex w-full max-w-(--ono-v-dialog-max-width) max-h-[calc(100%-56px)] scale-100 opacity-100 flex-col overflow-hidden rounded-b-(--ono-v-dialog-radius) bg-(--ono-v-surface) text-(--ono-v-text) shadow-(--ono-v-elevation-1) border-b border-(--ono-v-border) ">
1677
+ <div id="__v_o__header" class="flex items-center gap-1 justify-between border-b border-(--ono-v-border) bg-(--ono-v-surface) px-4 py-2">
1641
1678
  <div id="__v_o__header_loader" class="v-o-skeleton h-6 w-3/5 rounded animate-pulse"></div>
1642
- <div id="__v_o__title" class="flex items-center gap-2 w-full font-bold text-[var(--ono-v-text)] hidden">
1643
- <span id="__v_o__heading" class="leading-none rounded-md text-[var(--ono-v-red-orange)] font-mono text-sm"></span>
1644
- <button type="button" id="__v_o__filelink" class="ml-2 text-xs font-normal font-mono underline text-[var(--ono-v-text-muted)] hover:text-[var(--ono-v-text)] bg-transparent border-none cursor-pointer"></button>
1679
+ <div id="__v_o__title" class="flex items-center gap-2 w-full font-bold text-(--ono-v-text) hidden">
1680
+ <span id="__v_o__heading" class="leading-none rounded-md text-(--ono-v-red-orange) font-mono text-sm"></span>
1681
+ <button type="button" id="__v_o__filelink" class="ml-2 text-xs font-normal font-mono underline text-(--ono-v-text-muted) hover:text-(--ono-v-text) bg-transparent border-none cursor-pointer"></button>
1645
1682
  </div>
1646
1683
  <div id="__v_o__mode" class="sm:flex items-center gap-1">
1647
- <button type="button" data-flame-mode="original" class="inline-flex items-center gap-1 px-2 py-1 text-xs font-medium text-[var(--ono-v-text)] bg-[var(--ono-v-chip-bg)] rounded-full hover:bg-[var(--ono-v-hover-overlay)] focus:outline-hidden focus:bg-[var(--ono-v-hover-overlay)]" style="display:none">Original</button>
1648
- <button type="button" data-flame-mode="compiled" class="inline-flex items-center gap-1 px-2 py-1 text-xs font-medium text-[var(--ono-v-text)] bg-[var(--ono-v-chip-bg)] rounded-full hover:bg-[var(--ono-v-hover-overlay)] focus:outline-hidden focus:bg-[var(--ono-v-hover-overlay)]" style="display:none">Compiled</button>
1684
+ <button type="button" data-flame-mode="original" class="inline-flex items-center gap-1 px-2 py-1 text-xs font-medium text-(--ono-v-text) bg-(--ono-v-chip-bg) rounded-full hover:bg-(--ono-v-hover-overlay) focus:outline-hidden focus:bg-(--ono-v-hover-overlay)" style="display:none">Original</button>
1685
+ <button type="button" data-flame-mode="compiled" class="inline-flex items-center gap-1 px-2 py-1 text-xs font-medium text-(--ono-v-text) bg-(--ono-v-chip-bg) rounded-full hover:bg-(--ono-v-hover-overlay) focus:outline-hidden focus:bg-(--ono-v-hover-overlay)" style="display:none">Compiled</button>
1649
1686
  </div>
1650
- <button type="button" id="__v_o__copy_error" title="Copy Error Info" aria-label="Copy Error Info" class="font-medium rounded-full hover:bg-[var(--ono-v-hover-overlay)] focus:outline-hidden focus:bg-[var(--ono-v-hover-overlay)] text-[var(--ono-v-text)]">
1687
+ <button type="button" id="__v_o__copy_error" title="Copy Error Info" aria-label="Copy Error Info" class="font-medium rounded-full hover:bg-(--ono-v-hover-overlay) focus:outline-hidden focus:bg-(--ono-v-hover-overlay) text-(--ono-v-text)">
1651
1688
  <span class="inline-flex shrink-0 justify-center items-center size-8">
1652
- <span class="dui size-5" style="-webkit-mask-image: url('${or}'); mask-image: url('${or}')"></span>
1689
+ <span class="dui size-5" style="-webkit-mask-image: url('${Qn}'); mask-image: url('${Qn}')"></span>
1653
1690
  </span>
1654
1691
  </button>
1655
1692
  </div>
1656
1693
 
1657
- <div id="__v_o__message_loader" class="px-4 py-2 bg-[var(--ono-v-surface-muted)] border-b border-[var(--ono-v-border)]">
1694
+ <div id="__v_o__message_loader" class="px-4 py-2 bg-(--ono-v-surface-muted) border-b border-(--ono-v-border)">
1658
1695
  <div class="v-o-skeleton h-4 w-full rounded animate-pulse"></div>
1659
1696
  </div>
1660
- <div id="__v_o__message" class="px-4 py-2 text-sm text-[var(--ono-v-red-orange)] font-mono bg-[var(--ono-v-surface-muted)] border-b border-[var(--ono-v-border)] font-medium hidden"></div>
1697
+ <div id="__v_o__message" class="px-4 py-2 text-sm text-(--ono-v-red-orange) font-mono bg-(--ono-v-surface-muted) border-b border-(--ono-v-border) font-medium hidden"></div>
1661
1698
  <div id="__v_o__solutions" class="relative hidden">
1662
- <div title="Possible Solution" class="bg-[#b0c8aa] dark:bg-lime-800 rounded-[var(--ono-v-radius-md)] absolute top-4 right-6 z-10 size-6.5 flex items-center justify-center shadow-[var(--ono-v-elevation-1)]">
1663
- <span class="dui size-5" style="-webkit-mask-image: url('${ir}'); mask-image: url('${ir}')"></span>
1699
+ <div title="Possible Solution" class="bg-[#b0c8aa] dark:bg-lime-800 rounded-(--ono-v-radius-md) absolute top-4 right-6 z-10 size-6.5 flex items-center justify-center shadow-(--ono-v-elevation-1)">
1700
+ <span class="dui size-5" style="-webkit-mask-image: url('${Jn}'); mask-image: url('${Jn}')"></span>
1664
1701
  </div>
1665
- <div id="__v_o__solutions_container" class="max-h-50 overflow-y-auto px-4 py-2 bg-[var(--ono-v-success-bg)] m-1 mb-0 prose prose-sm max-w-full prose-headings:text-white prose-ul:list-none prose-hr:my-6 prose-hr:border dark:prose-invert"></div>
1702
+ <div id="__v_o__solutions_container" class="max-h-50 overflow-y-auto px-4 py-2 bg-(--ono-v-success-bg) m-1 mb-0 prose prose-sm max-w-full prose-headings:text-white prose-ul:list-none prose-hr:my-6 prose-hr:border dark:prose-invert"></div>
1666
1703
  </div>
1667
- <div id="__v_o__body" class="relative flex min-h-0 mx-1 py-2 bg-[var(--ono-v-surface)]">
1704
+ <div id="__v_o__body" class="relative flex min-h-0 mx-1 py-2 bg-(--ono-v-surface)">
1668
1705
  <div id="__v_o__body_loader" class="w-full space-y-1.5">
1669
1706
  <div class="v-o-skeleton h-4 w-full rounded animate-pulse"></div>
1670
1707
  <div class="v-o-skeleton h-4 w-3/4 rounded animate-pulse"></div>
@@ -1679,59 +1716,64 @@ class ErrorOverlay extends HTMLElement {
1679
1716
  </div>
1680
1717
  </div>
1681
1718
 
1682
- <details id="__v_o__stacktrace" class="relative -mt-5 pt-5 w-full max-w-[var(--ono-v-dialog-max-width)] rounded-b-[var(--ono-v-dialog-radius)] bg-[var(--ono-v-surface-muted)] shadow-[var(--ono-v-elevation-2)]">
1683
- <summary class="cursor-pointer px-4 py-3 text-xs font-mono text-[var(--ono-v-text-muted)] hover:text-[var(--ono-v-text)] transition-colors duration-200 list-none flex items-center gap-2 font-medium">
1684
- <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
1685
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path>
1686
- </svg>
1719
+ <details id="__v_o__stacktrace" class="relative -mt-5 pt-5 w-full max-w-(--ono-v-dialog-max-width) rounded-b-(--ono-v-dialog-radius) bg-(--ono-v-surface-muted) shadow-(--ono-v-elevation-2)">
1720
+ <summary class="cursor-pointer px-4 py-3 text-xs font-mono text-(--ono-v-text-muted) hover:text-(--ono-v-text) transition-colors duration-200 list-none flex items-center gap-2 font-medium">
1721
+ <span class="dui w-4 h-4" style="-webkit-mask-image: url('${dt}'); mask-image: url('${dt}')"></span>
1687
1722
  Raw stack trace
1688
1723
  </summary>
1689
- <div class="px-4 py-3 text-[var(--ono-v-text)] text-xs rounded-b-[var(--ono-v-dialog-radius)] font-mono leading-5 overflow-auto space-y-0.5 max-h-[140px] bg-[var(--ono-v-surface)] border-t border-[var(--ono-v-border)]"></div>
1724
+ <div class="px-4 py-3 text-(--ono-v-text) text-xs rounded-b-(--ono-v-dialog-radius) font-mono leading-5 overflow-auto space-y-0.5 max-h-[140px] bg-(--ono-v-surface) border-t border-(--ono-v-border)"></div>
1690
1725
  </details>
1691
1726
  <div id="__v_o__history_layer_depth" class="relative flex items-center flex-col -z-1 w-full max-w-[calc(var(--ono-v-dialog-max-width)-24px)] h-10 opacity-0 transition-opacity duration-200 pointer-events-none">
1692
- <div id="__v_o__history_layer_depth_1" class="relative w-full rounded-b-[var(--ono-v-dialog-radius)] h-5 bg-[var(--ono-v-surface-muted)] inset-shadow-[var(--ono-v-elevation-2)] -mt-3 shadow-md"></div>
1693
- <div id="__v_o__history_layer_depth_2" class="relative w-[calc(100%-24px)] rounded-b-[var(--ono-v-dialog-radius)] h-5 bg-[var(--ono-v-surface-muted)] inset-shadow-[var(--ono-v-elevation-2)] -mt-3 -z-1"></div>
1727
+ <div id="__v_o__history_layer_depth_1" class="relative w-full rounded-b-(--ono-v-dialog-radius) h-5 bg-(--ono-v-surface-muted) inset-shadow-(--ono-v-elevation-2) -mt-3 shadow-md"></div>
1728
+ <div id="__v_o__history_layer_depth_2" class="relative w-[calc(100%-24px)] rounded-b-(--ono-v-dialog-radius) h-5 bg-(--ono-v-surface-muted) inset-shadow-(--ono-v-elevation-2) -mt-3 -z-1"></div>
1694
1729
  </div>
1695
- </div>`,"rootElement"),vi=it(t=>{const e=mi();return`<style>${di}</style>
1696
- ${fi("__v_o__root",e)}
1697
-
1698
- ${t?`
1699
- <button type="button" id="__v_o__balloon" title="Toggle error overlay" aria-label="Toggle error overlay" class="fixed z-[2147483647] inline-flex items-center gap-2 px-2.5 py-1.5 rounded-full bg-[var(--ono-v-red-orange)] text-white font-sans text-xs leading-none shadow-lg cursor-pointer transition-all duration-200 hover:brightness-105" style="bottom: 8px; right: 8px;">
1730
+ </div>`,"rootElement"),Ns=we((t="bottom-right")=>({"bottom-left":"bottom: 8px; left: 8px;","bottom-right":"bottom: 8px; right: 8px;","top-left":"top: 8px; left: 8px;","top-right":"top: 8px; right: 8px;"})[t],"getPositionStyles"),Hr=we(t=>{const e=[];return Object.entries(t).forEach(([n,r])=>{if(r!=null){const o=n.replaceAll(/([A-Z])/g,"-$1").toLowerCase();e.push(`${o}: ${String(r)};`)}}),e.join(" ")},"cssPropertiesToString"),Zs=we(t=>t?typeof t=="string"?t:Hr(t):"","generateStyles"),Ws=we(t=>{if(t?.enabled===!1)return"";const e=t?.position||"bottom-right",n=Zs(t?.style),r=Ns(e),o=t?.icon?`<img src="${t.icon}" alt="" class="w-4 h-4" />`:"",i=o?`${o}
1700
1731
  <span id="__v_o__balloon_count" class="inline-flex items-center justify-center min-w-5 h-5 px-1.5 rounded-full bg-white/20 text-white font-bold">0</span>
1701
- <span id="__v_o__balloon_text">Errors</span>
1702
- </button>`:""}`},"generateOverlayTemplate"),wi=it((t,e)=>{const r=vi(e),n=`const overlayTemplate = ${JSON.stringify(r)};`;let o=t.replace(hi,`${n}
1703
- ${cr}
1704
- class ViteErrorOverlay`);return o=o.replace(ui,`${n}
1705
- ${cr}
1706
- var ViteErrorOverlay = `),o=`${o}
1707
-
1708
- ${gi};`,o},"patchOverlay");var bi=Object.defineProperty,I=S((t,e)=>bi(t,"name",{value:e,configurable:!0}),"n$2");const yi=4,ur=1e3,ki=5,xi=.5,_i=[".js",".ts",".jsx",".tsx",".mjs",".cjs"],$i=[".css",".scss",".sass",".less"],Vr=[".svg",".png",".jpg",".jpeg",".gif",".webp",".ico"],Ei=new Set([...Vr,..._i,...$i]),j=I((t,...e)=>{const r=t.toLowerCase();return e.some(n=>r.includes(n.toLowerCase()))},"has"),Si=I((t,e)=>{const r=te.relative(t,e);return r.startsWith(".")?r:`./${r}`},"getRelativePath"),Ci=I(t=>t===0?"":t===1?" (in parent directory)":t===2?" (in grandparent directory)":` (${t} directories away)`,"getPathContext"),Li=I((t,e)=>{try{const r=te.relative(t,e).split(te.sep).filter(o=>o&&o!==".");let n=0;for(const o of r)n+=o===".."?2:1;return n}catch{return 10}},"calculatePathDistance"),Ti=I((t,e,r,n)=>{if(e&&n===e){const i=Ge(t,r);return i<=Math.max(3,Math.floor(t.length*xi))?10-i:0}if(!e){const i=Ge(t,r);return i===0?9:i<=Math.max(2,Math.floor(t.length*.3))&&Ei.has(n)?7-i:0}const o=Ge(t,r);return o<=Math.max(2,Math.floor(t.length*.4))?5-o:0},"calculateRelevanceScore"),Pi=I((t,e,r)=>{const n=[],o=I((i,a=0)=>{if(!(a>yi||n.length>ur))try{const l=wo.readdirSync(i,{withFileTypes:!0});for(const s of l){if(n.length>ur)break;const p=te.join(i,s.name);if(s.isDirectory()&&!s.name.startsWith(".")&&s.name!=="node_modules")o(p,a+1);else if(s.isFile()){const d=te.extname(s.name),g=te.basename(s.name,d),f=Ti(e,r,g,d);f>0&&n.push({baseName:g,extension:d,fullPath:p,path:p,relevanceScore:f})}}}catch{}},"walk");return o(t),n},"collectFileCandidates"),gr=I((t,e,r)=>{const n=te.basename(t),o=te.extname(n),i=te.basename(n,o),a=te.dirname(e),l=Pi(r,i,o).map(f=>{const y=Ge(i,f.baseName),b=Li(a,te.dirname(f.fullPath)),m=f.relevanceScore*.7+b*.2+y*.1;return{...f,nameDistance:y,pathDistance:b,score:m}});l.sort((f,y)=>f.score-y.score);const s=[],p=l.slice(0,8);let d=!1;for(const f of p){const y=Si(a,f.fullPath);if(!s.includes(y)){const b=Ci(f.pathDistance);s.push(y+b);const m=f.fullPath.replaceAll("\\","/").split("/"),k=m.indexOf("public");k!==-1&&k<m.length-1&&(d=!0)}}let g=`<ul>${[...new Set(s)].slice(0,ki).map(f=>`<li>\`${f}\`</li>`).join(`
1709
- `)}</ul>`;if(d){const f=n;[...Vr].some(y=>f.includes(y))&&(g+=`Files in the \`public\` folder should be accessed via absolute URLs like \`/${f}\`.`)}return g},"findSimilarFiles"),Mi=[{solution:{body:"Browser APIs like `window` and `document` are not available during server-side rendering. Use dynamic imports or check for SSR environment before using browser APIs.",header:"SSR Browser API Error"},test:I(t=>j(t,"window is not defined","document is not defined"),"test")},{solution:{body:"Some plugins need specific ordering. Use `enforce: 'pre'` for plugins that need to run first, or `enforce: 'post'` for plugins that need to run last.",header:"Plugin Ordering Issue"},test:I(t=>j(t,"Plugin ordering","enforce"),"test")},{solution:{body:"CSS Modules require proper configuration. Make sure your CSS files use the `.module.css` extension and are imported correctly.",header:"CSS Modules Configuration"},test:I(t=>j(t,"CSS Modules","module.css"),"test")},{solution:{body:["Only variables prefixed with `VITE_` are exposed on `import.meta.env` to the client at build time.","Server-only variables should not be prefixed with `VITE_`.","- Do not use `process.env` in browser code; prefer `import.meta.env.*`","- Custom vars must be prefixed with `VITE_` to be exposed to client",'- For TS, add `/// <reference types="vite/client" />` for type-safe access'].join(`
1710
- `),header:"Environment Variables"},test:I(t=>j(t,"VITE_","process.env"),"test")},{solution:{body:"For static assets, use the `new URL('./path/to/asset', import.meta.url)` syntax or import them and use the returned URL.",header:"Asset Import Issue"},test:I(t=>j(t,"Failed to load")&&j(t,".png",".jpg",".svg"),"test")},{solution:{body:"Some issues only occur in production builds. Check if the error happens in development mode. You might need different configurations for build vs dev.",header:"Build vs Development Mode"},test:I(t=>j(t,"production","build"),"test")},{solution:{body:"HMR issues can occur with certain patterns. Make sure you're not mutating module-level variables and consider using `import.meta.hot` guards.",header:"Hot Module Replacement Issue"},test:I(t=>j(t,"HMR","hot reload"),"test")},{solution:{body:"Check your `tsconfig.json` and make sure it includes proper paths and compiler options. For Vite, you might need a `vite-env.d.ts` file.",header:"TypeScript Configuration"},test:I((t,e)=>j(t,"TypeScript")||e&&e.endsWith(".ts"),"test")},{solution:{body:"Some dependencies need to be excluded from pre-bundling. Add them to `optimizeDeps.exclude` in your Vite config.",header:"Dependency Optimization"},test:I(t=>j(t,"optimizeDeps","pre-bundling"),"test")},{solution:{body:"Configure path aliases in your Vite config using the `resolve.alias` option to match your TypeScript path mappings.",header:"Path Resolution"},test:I(t=>j(t,"resolve.alias","Cannot find module"),"test")},{solution:{body:"Server middleware and proxy settings should be configured in the `server` section of your Vite config.",header:"Server Configuration"},test:I(t=>j(t,"middleware","proxy"),"test")},{solution:{body:"Check your plugin configuration in `vite.config.js/ts`. Make sure all required options are provided and options are correctly typed.",header:"Plugin Configuration"},test:I(t=>j(t,"plugin","configuration"),"test")},{solution:{body:"Configure your build output directory using `build.outDir` in your Vite config. Make sure the directory is writable.",header:"Build Output Configuration"},test:I(t=>j(t,"build.outDir","dist"),"test")},{solution:{body:["Client and server rendered markup differ.","","Checklist:","- A server/client branch `if (typeof window !== 'undefined')`.","- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.","- Date formatting in a user's locale which doesn't match the server.","- External changing data without sending a snapshot of it along with the HTML.","- Invalid HTML tag nesting.","","It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.","","https://react.dev/link/hydration-mismatch"].join(`
1711
- `)},test:I(t=>j(t,"hydration failed","did not match","expected server html","text content does not match"),"test")}],Ri=I(t=>({async handle(e,r){const{file:n,language:o}=r,i=e.message??"";if(j(i,"Failed to resolve import","Cannot resolve module")){const a=i.match(/Failed to resolve import ["']([^"']+)["']/),l=i.match(/Cannot resolve module ["']([^"']+)["']/),s=a?.[1]||l?.[1];if(s&&n){const p=gr(s,n,t);if(p)return{body:`The import path \`${s}\` could not be resolved.<br/><br/>Did you mean one of these files?<br/>${p}`};if([".jsx",".tsx"].includes(o)||j(i,"react"))return{body:"Install and configure the React plugin. Add `@vitejs/plugin-react` to your dependencies and include it in your Vite config.",header:"Missing React Plugin"};if(o==="vue")return{body:"Install and configure the Vue plugin. Add `@vitejs/plugin-vue` to your dependencies and include it in your Vite config.",header:"Missing Vue Plugin"}}}if(j(i,"Cannot resolve")&&(o==="typescript"||o==="javascript")){const a=i.match(/Cannot resolve ["'](\.\.?\/[^"']*)["']/);if(a){const l=a[1];if(l&&n){const s=gr(l,n,t);if(s)return{body:`Cannot resolve \`${l}\`. Did you mean one of these files?${s}`,header:"File Not Found"}}}return{body:"In Vite, you may need to include file extensions in imports, especially for TypeScript files. Try adding `.js` extension to your imports.",header:"Missing File Extension"}}for(const a of Mi)if(a.test(i,n))return a.solution},name:"vite-solution-finder",priority:20}),"createViteSolutionFinder");var Fi=Object.defineProperty,Se=S((t,e)=>Fi(t,"name",{value:e,configurable:!0}),"r$2");let Ae,Ie;const zi=Se(async(t=[])=>{try{const[e,r]=await Promise.all([import("shiki/core"),import("shiki/engine/javascript")]),{createHighlighterCore:n}=e,{createJavaScriptRegexEngine:o}=r,i=await n({themes:[import("@shikijs/themes/github-dark-default"),import("@shikijs/themes/github-light")],langs:[import("@shikijs/langs/javascript"),import("@shikijs/langs/typescript"),import("@shikijs/langs/jsx"),import("@shikijs/langs/tsx"),import("@shikijs/langs/json"),import("@shikijs/langs/jsonc"),import("@shikijs/langs/xml"),import("@shikijs/langs/sql"),import("@shikijs/langs/bash"),import("@shikijs/langs/shell"),import("@shikijs/langs/markdown"),import("@shikijs/langs/mdx"),import("@shikijs/langs/html"),import("@shikijs/langs/css"),import("@shikijs/langs/scss"),import("@shikijs/langs/less"),import("@shikijs/langs/sass"),import("@shikijs/langs/stylus"),import("@shikijs/langs/styl"),...t],engine:o()}),a=i;return Ie=Se(()=>{try{i?.dispose?.()}catch{}Ae=void 0},"disposeFn"),a}catch{const{createHighlighter:e}=await import("shiki"),r=await e({langs:["javascript","typescript","jsx","tsx","json","jsonc","xml","sql","bash","shell","markdown","mdx"],themes:["github-dark-default","github-light"]});return Ie=Se(()=>{try{r?.dispose?.()}catch{}Ae=void 0},"disposeFn"),r}},"createSingletonHighlighter"),Zr=Se(async(t=[])=>(Ae||(Ae=zi(t)),Ae),"getHighlighter");Se(async()=>{try{Ie&&(Ie(),Ie=void 0)}catch{}},"disposeHighlighter");const mr=Se((t=[])=>({name:"@shikijs/transformers:compact-line-options",line(e,r){const n=t.find(o=>o.line===r);return n?.classes&&this.addClassToHast(e,n.classes),e}}),"transformerCompactLineOptions");var Hi=Object.defineProperty,Ur=S((t,e)=>Hi(t,"name",{value:e,configurable:!0}),"s$3");const Ai=Ur(t=>!Array.isArray(t)||t.length===0?!1:t.some(e=>e&&typeof e=="object"&&(e.location||e.pluginName||e.text)),"isESBuildErrorArray"),Ii=Ur(t=>t.map((e,r)=>{const{location:n,pluginName:o,text:i}=e,a={message:i||`ESBuild error #${r+1}`};return n&&(a.file=n.file,a.line=n.line,a.column=n.column),o&&(a.plugin=o),a.name=e.name||"Error",a.stack=e.stack||"",a}),"processESBuildErrors");var Di=Object.defineProperty,Nr=S((t,e)=>Di(t,"name",{value:e,configurable:!0}),"c$6");const Bi=Nr((t,e)=>{for(const[r,n]of t.moduleGraph.idToModuleMap){if(!n)continue;const o=n,i=[String(o.file||"").replaceAll("\\","/"),String(r||"").replaceAll("\\","/"),String(o.url||"").replaceAll("\\","/")];for(const a of e)if(i.some(l=>l===a||l.includes(a)||a.includes(l)))return n}},"findBestModuleMatch"),De=Nr((t,e)=>{const r=[...e,...e.map(i=>i.replace(/^\/@fs\//,"")),...e.map(i=>i.replace(/^[./]*/,""))];let n,o=0;for(const i of r)try{const a=t.moduleGraph.getModuleById(i);if(a){const s=Object.keys(a).length>0,p=!!a.transformResult;let d=0;if(s&&p?d=2:s&&(d=1),s&&(d>o&&(n=a,o=d),p))return a}const l=t.moduleGraph.getModuleByUrl?.(i);if(l){const s=Object.keys(l).length>0,p=!!l.transformResult;let d=0;if(s&&p?d=2:s&&(d=1),s&&(d>o&&(n=l,o=d),p))return l}}catch{}return n||Bi(t,e)||void 0},"findModuleForPath");var ji=Object.defineProperty,zt=S((t,e)=>ji(t,"name",{value:e,configurable:!0}),"r$1");const Oi=/^https?:\/\//,qi=zt(t=>{const e=new URL(t),{pathname:r}=e,n=e.search||"",o=[r+n,r,r.replace(/^\/@fs\//,""),decodeURIComponent(r+n),decodeURIComponent(r)];return[...new Set(o)].filter(Boolean)},"generateUrlCandidates"),Wr=zt(t=>Oi.test(t),"isHttpUrl"),fe=zt(t=>{if(!t)return[];try{if(Wr(t))return qi(t);const e=[t];if(t.startsWith("/")&&e.push(t.slice(1)),t.includes("?")){const r=t.split("?")[0];r&&e.push(r)}return[...new Set(e)].filter(Boolean)}catch(e){return console.warn(`Failed to normalize path "${t}":`,e),[]}},"normalizeIdCandidates");var Vi=Object.defineProperty,he=S((t,e)=>Vi(t,"name",{value:e,configurable:!0}),"o$4");const Zi=he((t,e)=>t.split(/\n/g)[e-1]??"","getLine"),fr=he(t=>t.replaceAll(/\s+/g,""),"removeWhitespace"),Ui=he((t,e)=>{if(e<=0||e>t.length)return"";const r=Math.max(0,e-1),n=t.slice(r,r+64),o=/[A-Z_$][\w$]{2,}/i.exec(n);if(o?.[0])return o[0];let i=n.trim();return i.length<4&&(i=t.slice(Math.max(0,r-16),r+16).trim()),i},"extractCandidateToken"),Ni=he((t,e)=>{if(!t||t.length<3)return null;for(const[r,n]of e.entries()){if(!n)continue;const o=n.indexOf(t);if(o!==-1)return{column:o+1,line:r+1}}return null},"tryTokenBasedSearch"),Wi=he((t,e)=>{if(!t)return null;for(const[r,n]of e.entries()){if(!n)continue;const o=n.indexOf(t);if(o!==-1)return{column:o+1,line:r+1}}return null},"tryLineSubstringSearch"),Gi=he((t,e)=>{if(!t)return null;const r=fr(t);if(!r)return null;for(const[n,o]of e.entries()){if(!o)continue;const i=fr(o).indexOf(r);if(i!==-1){const a=Yi(o,i);if(a!==-1)return{column:a,line:n+1}}}return null},"tryWhitespaceInsensitiveSearch"),Yi=he((t,e)=>{let r=0;for(const[n,o]of[...t].entries())if(typeof o=="string"){if(r===e)return n+1;/\s/.test(o)||r++}return-1},"mapNormalizedToOriginalPosition"),Xi=he((t,e,r,n)=>{const o=Zi(t,e);if(!o)return null;const i=n.split(/\n/g),a=Ui(o,r);return Ni(a,i)||Wi(o.trim(),i)||Gi(o.trim(),i)},"realignOriginalPosition");var Qi=Object.defineProperty,ee=S((t,e)=>Qi(t,"name",{value:e,configurable:!0}),"u$1");const Ji=/`((?:[^`$]|\$\{[^}]+\})*)`/g,vr=/\$\{[^}]+\}/g,Ki=/[.*+?^${}()|[\]\\]/g,Gr=[/new Error\(/,/throw new Error\(/,/new Error`/,/throw new Error`/,/new [A-Z]\w*\(/,/throw new [A-Z]\w*\(/,/new [A-Z]\w*`/,/throw new [A-Z]\w*`/],ve=ee(t=>t.replaceAll(Ki,String.raw`\$&`),"escapeRegex"),ea=ee(t=>{const e=ve(t);return[t,`new Error("${e}")`,`new Error('${e}')`,`new Error(\`${ve(t)}\`)`,`throw new Error("${e}")`,`throw new Error('${e}')`,`throw new Error(\`${ve(t)}\`)`,`Error("${e}")`,`Error('${e}')`]},"createErrorPatterns"),wr=ee((t,e)=>{const r=[...t.matchAll(Ji)];for(const n of r){const o=n[1];if(!o)continue;const i=o.split(vr);if(i.every(l=>l===""||e.includes(l))&&i.length>1)return!0;if(!o)continue;const a=o.replaceAll(vr,"(.+?)");try{if(new RegExp(`^${ve(a)}$`).test(e))return!0}catch{}}return!1},"checkTemplateLiteralMatch"),ta=[/Failed to resolve import ["']([^"']+)["'](?:\s+from ["']([^"']+)["'])?/,/(.+?)\s+from line \d+/,/(.+?)\s+is not defined/,/(.+?)\s+is not a function/,/Cannot read properties of (.+?)\s+\(reading (.+?)\)/],ra=ee(t=>{for(const e of ta){const r=t.match(e);if(r)return r}return null},"findDynamicErrorMatch"),br=ee(t=>{let e=null,r=null;for(const n of Gr){const o=t.match(n);o&&(!e||n.source.includes("throw")&&!r?.source.includes("throw"))&&(e=o,r=n)}return{bestMatch:e,bestPattern:r}},"findBestErrorConstructor"),yr=ee((t,e)=>{let r=t.index;if(e.source.includes("throw new")&&t[0].startsWith("throw new")){const n=t[0].indexOf("new");n!==-1&&(r+=n)}return r+1},"calculateActualColumn"),na=ee((t,e,r=0)=>{if(!t||!e)return null;const n=t.split(`
1712
- `),o=ra(e),i=ea(e),a=ee((g,f,y)=>{let b=0;for(const[m,k]of g.entries()){if(!k)continue;const T=k.includes(f)||wr(k,f),M=Gr.some(C=>C.test(k));if(T&&M){const{bestMatch:C,bestPattern:R}=br(k);if(C&&R&&(b++,b>y))return{column:yr(C,R),line:m+1}}}return null},"processErrorConstructorLines")(n,e,r);if(a)return a;o&&ee((g,f,y)=>{if(g[0].includes("Failed to resolve import")){const b=g[1];if(!b)return;const m=ve(b);y.unshift(`import.*from ["']${m}["']`,`import.*["']${m}["']`,b)}else if(g[0].includes("is not defined")){const b=g[1];if(!b)return;y.unshift(b,`{${b}}`,`src={${b}}`,`${b}.`,`=${b}`)}else if(g[0].includes("Cannot read properties")){const b=g[1],m=g[2];if(!m)return;y.unshift(m,`${b}.${m}`,`${b}?.${m}`,`${b}[${m}]`)}else{const b=g[1];if(!b)return;const m=ve(f),k=ve(b);y.unshift(`new Error(\`${k}`,`throw new Error(\`${k}`,`new Error("${k}`,`new Error('${k}`,`throw new Error("${k}`,`throw new Error('${k}`,`new Error("${m}")`,`new Error('${m}')`,`throw new Error("${m}")`,`throw new Error('${m}')`,`new Error(\`${m}\`)`,`throw new Error(\`${m}\`)`)}},"addDynamicPatterns")(o,e,i);const l=ee((g,f,y)=>{let b=0;for(const[m,k]of g.entries()){if(!k||!wr(k,f))continue;const{bestMatch:T,bestPattern:M}=br(k);if(T&&M&&(b++,b>y))return{column:yr(T,M),line:m+1}}return null},"processTemplateLiteralLines"),s=ee((g,f,y,b)=>{let m=0;for(const[k,T]of g.entries()){if(!T)continue;let M=-1,C=null;for(const R of f){const D=T.indexOf(R);D!==-1&&(M===-1||D<M)&&(M=D,C=R)}if(M!==-1&&C&&(m++,m>b))return{column:p(M,C,T,y),line:k+1}}return null},"processPatternLines"),p=ee((g,f,y,b)=>{if(!b)return g+1;if(b[0].includes("Failed to resolve import")){const m=b[1];if(y.includes(`"${m}"`)||y.includes(`'${m}'`)){const k=y.includes(`"${m}"`)?'"':"'";return y.indexOf(`${k}${m}${k}`)+1}}else if(b[0].includes("is not defined")){const m=b[1];if(m&&f===m)return g+1;if(m&&f.includes(m))return g+f.indexOf(m)+1}else if(b[0].includes("Cannot read properties")){const m=b[2];if(m&&f.includes(m))return g+f.indexOf(m)+1}else if(f.includes("new Error("))return y.indexOf("new Error(")+1;return g+1},"calculatePatternColumn");return l(n,e,r)||s(n,i,o,r)},"findErrorInSourceCode");var oa=Object.defineProperty,Oe=S((t,e)=>oa(t,"name",{value:e,configurable:!0}),"m$4");const ia=1,kr=Oe((t,e)=>{let r=t,n=e;return t>=20?r=Math.max(1,Math.round(t*.5)):t>15?r=Math.max(1,Math.round(t*.6)):t>10?r=Math.max(1,t-8):r=Math.max(1,t-3),e>=10||e>7?n=Math.max(0,e-1):e>5&&(n=Math.max(0,e)),{estimatedColumn:n,estimatedLine:r}},"estimateOriginalPosition"),aa=Oe((t,e,r)=>{try{const n=new bo(t),o=[{column:r,desc:"original",line:e},{column:Math.max(0,r-ia),desc:"offset",line:e},{column:r,desc:"line above",line:e-1},{column:r,desc:"line below",line:e+1},...Array.from({length:5},(i,a)=>({column:Math.max(0,r-2+a),desc:`col ${r-2+a}`,line:e}))];for(const i of o){const a=yo(n,{column:i.column,line:i.line});if(a.source&&a.line!==void 0&&a.column!==void 0&&a.line>0&&a.column>=0)return{column:a.column,line:a.line,source:a.source}}}catch(n){console.warn("Source map processing failed:",n)}return null},"resolveSourceMapPosition"),sa=Oe((t,e)=>e?Wr(t)?la(t,e):e:t,"resolveSourcePath"),la=Oe((t,e)=>{try{const r=new URL(t),n=(r.pathname||"").replace(/^\//,""),o=n.includes("/")?n.slice(0,Math.max(0,n.lastIndexOf("/"))):"";return`${r.origin}/${o?`${o}/`:""}${e}`}catch(r){return console.warn("URL parsing failed for source path resolution:",r),t}},"resolveHttpSourcePath"),xt=Oe(async(t,e,r,n,o,i,a=0)=>{if(i&&e)try{let s=null;if(e.transformResult?.map?.sourcesContent?.[0]?s=e.transformResult.map.sourcesContent[0]:e.transformResult?.code&&(s=e.transformResult.code),!s&&(e.id||e.url)){const p=e.id||e.url;if(p)try{const d=await t.transformRequest(p);d?.map&&"sourcesContent"in d.map&&d.map.sourcesContent?.[0]?s=d.map.sourcesContent[0]:d?.code&&(s=d.code)}catch(d){console.warn("Failed to get fresh source for error search:",d)}}if(!s&&r)try{const p=await import("node:fs/promises");let d=r;if(r.includes("://"))try{d=new URL(r).pathname}catch{const g=r.indexOf("://");g!==-1&&(d=r.slice(g+3))}d.startsWith("/")||(d=`${t.config.root||process.cwd()}/${d}`),s=await p.readFile(d,"utf8")}catch(p){console.warn("Failed to read source file from disk:",p)}if(s){const p=na(s,i,a);if(p)return{originalFileColumn:p.column,originalFileLine:p.line,originalFilePath:r}}}catch(s){console.warn("Source code search failed:",s)}let l=e?.transformResult?.map;if(!l&&(e?.id||e?.url)){const s=e.id||e.url;if(s)try{const p=await t.transformRequest(s);p?.map&&(l=p.map)}catch(p){console.warn("Failed to get fresh source map:",p)}}if(!l){const{estimatedColumn:s,estimatedLine:p}=kr(n,o);return{originalFileColumn:s,originalFileLine:p,originalFilePath:r}}try{const s=aa(l,n,o);if(!s){const{estimatedColumn:d,estimatedLine:g}=kr(n,o);return{originalFileColumn:d,originalFileLine:g,originalFilePath:r}}const p=sa(r,s.source);return{originalFileColumn:s.column,originalFileLine:s.line,originalFilePath:p}}catch(s){return console.warn("Source map resolution failed:",s),{originalFileColumn:o,originalFileLine:n,originalFilePath:r}}},"resolveOriginalLocation");var ca=Object.defineProperty,da=S((t,e)=>ca(t,"name",{value:e,configurable:!0}),"$e"),pa=Object.defineProperty,Ht=da((t,e)=>pa(t,"name",{value:e,configurable:!0}),"W"),ha=Object.defineProperty,_=Ht((t,e)=>ha(t,"name",{value:e,configurable:!0}),"u$1");let xr=_(()=>{var t=(()=>{var e=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,i=_((c,h)=>{for(var u in h)e(c,u,{get:h[u],enumerable:!0})},"ne"),a=_((c,h,u,w)=>{if(h&&typeof h=="object"||typeof h=="function")for(let v of n(h))!o.call(c,v)&&v!==u&&e(c,v,{get:_(()=>h[v],"get"),enumerable:!(w=r(h,v))||w.enumerable});return c},"ae"),l=_(c=>a(e({},"__esModule",{value:!0}),c),"oe"),s={};i(s,{zeptomatch:_(()=>Xt,"zeptomatch")});var p=_(c=>{const h=new Set,u=[c];for(let w=0;w<u.length;w++){const v=u[w];if(h.has(v))continue;h.add(v);const{children:x}=v;if(x?.length)for(let E=0,F=x.length;E<F;E++)u.push(x[E])}return Array.from(h)},"M"),d=_(c=>{let h="";const u=p(c);for(let w=0,v=u.length;w<v;w++){const x=u[w];if(!x.regex)continue;const E=x.regex.flags;if(h||(h=E),h!==E)throw new Error(`Inconsistent RegExp flags used: "${h}" and "${E}"`)}return h},"se"),g=_((c,h,u)=>{const w=u.get(c);if(w!==void 0)return w;const v=c.partial??h;let x="";if(c.regex&&(x+=v?"(?:$|":"",x+=c.regex.source),c.children?.length){const E=y(c.children.map(F=>g(F,h,u)).filter(Boolean));if(E?.length){const F=c.children.some(Pe=>!Pe.regex||!(Pe.partial??h)),Z=E.length>1||v&&(!x.length||F);x+=Z?v?"(?:$|":"(?:":"",x+=E.join("|"),x+=Z?")":""}}return c.regex&&(x+=v?")":""),u.set(c,x),x},"O"),f=_((c,h)=>{const u=new Map,w=p(c);for(let v=w.length-1;v>=0;v--){const x=g(w[v],h,u);if(!(v>0))return x}return""},"ie"),y=_(c=>Array.from(new Set(c)),"ue"),b=_((c,h,u)=>b.compile(c,u).test(h),"R");b.compile=(c,h)=>{const u=h?.partial??!1,w=f(c,u),v=d(c);return new RegExp(`^(?:${w})$`,v)};var m=b,k=_((c,h)=>{const u=m.compile(c,h),w=`${u.source.slice(0,-1)}[\\\\/]?$`,v=u.flags;return new RegExp(w,v)},"le"),T=k,M=_(c=>{const h=c.map(w=>w.source).join("|")||"$^",u=c[0]?.flags;return new RegExp(h,u)},"ve"),C=M,R=_(c=>Array.isArray(c),"j"),D=_(c=>typeof c=="function","_"),X=_(c=>c.length===0,"he"),O=(()=>{const{toString:c}=Function.prototype,h=/(?:^\(\s*(?:[^,.()]|\.(?!\.\.))*\s*\)\s*=>|^\s*[a-zA-Z$_][a-zA-Z0-9$_]*\s*=>)/;return u=>(u.length===0||u.length===1)&&h.test(c.call(u))})(),Q=_(c=>typeof c=="number","de"),N=_(c=>typeof c=="object"&&c!==null,"xe"),st=_(c=>c instanceof RegExp,"me"),lt=(()=>{const c=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return h=>c.test(h.source)})(),ue=(()=>{const c=/^[a-zA-Z0-9_-]+$/;return h=>c.test(h.source)&&!h.flags.includes("i")})(),Ve=_(c=>typeof c=="string","A"),P=_(c=>c===void 0,"f"),A=_(c=>{const h=new Map;return u=>{const w=h.get(u);if(w!==void 0)return w;const v=c(u);return h.set(u,v),v}},"ye"),q=_((c,h,u={})=>{const w={cache:{},input:c,index:0,indexBacktrackMax:0,options:u,output:[]},v=de(h)(w),x=Math.max(w.index,w.indexBacktrackMax);if(v&&w.index===c.length)return w.output;throw new Error(`Failed to parse at index ${x}`)},"I"),$=_((c,h)=>R(c)?ke(c,h):Ve(c)?Ne(c,h):le(c,h),"i"),ke=_((c,h)=>{const u={};for(const w of c){if(w.length!==1)throw new Error(`Invalid character: "${w}"`);const v=w.charCodeAt(0);u[v]=!0}return w=>{const v=w.input;let x=w.index,E=x;for(;E<v.length&&v.charCodeAt(E)in u;)E+=1;if(E>x){if(!P(h)&&!w.options.silent){const F=v.slice(x,E),Z=D(h)?h(F,v,`${x}`):h;P(Z)||w.output.push(Z)}w.index=E}return!0}},"we"),le=_((c,h)=>{if(ue(c))return Ne(c.source,h);{const u=c.source,w=c.flags.replace(/y|$/,"y"),v=new RegExp(u,w);return lt(c)&&D(h)&&!O(h)?Ze(v,h):Ue(v,h)}},"$e"),Ze=_((c,h)=>u=>{const w=u.index,v=u.input;c.lastIndex=w;const x=c.exec(v);if(x){const E=c.lastIndex;if(!u.options.silent){const F=h(...x,v,`${w}`);P(F)||u.output.push(F)}return u.index=E,!0}else return!1},"Ee"),Ue=_((c,h)=>u=>{const w=u.index,v=u.input;if(c.lastIndex=w,c.test(v)){const x=c.lastIndex;if(!P(h)&&!u.options.silent){const E=D(h)?h(v.slice(w,x),v,`${w}`):h;P(E)||u.output.push(E)}return u.index=x,!0}else return!1},"Ce"),Ne=_((c,h)=>u=>{const w=u.index,v=u.input;if(v.startsWith(c,w)){if(!P(h)&&!u.options.silent){const x=D(h)?h(c,v,`${w}`):h;P(x)||u.output.push(x)}return u.index+=c.length,!0}else return!1},"F"),ce=_((c,h,u,w)=>{const v=de(c),x=h>1;return dt(ct(Dt(E=>{let F=0;for(;F<u;){const Z=E.index;if(!v(E)||(F+=1,E.index===Z))break}return F>=h},x),w))},"k"),V=_((c,h)=>ce(c,0,1,h),"L"),G=_((c,h)=>ce(c,0,1/0,h),"$"),ge=_((c,h)=>ce(c,1,1/0,h),"Re"),J=_((c,h)=>{const u=c.map(de);return dt(ct(Dt(w=>{for(let v=0,x=u.length;v<x;v++)if(!u[v](w))return!1;return!0}),h))},"x"),K=_((c,h)=>{const u=c.map(de);return dt(ct(w=>{for(let v=0,x=u.length;v<x;v++)if(u[v](w))return!0;return!1},h))},"p"),Dt=_((c,h=!0,u=!1)=>{const w=de(c);return h?v=>{const x=v.index,E=v.output.length,F=w(v);return!F&&!u&&(v.indexBacktrackMax=Math.max(v.indexBacktrackMax,v.index)),(!F||u)&&(v.index=x,v.output.length!==E&&(v.output.length=E)),F}:w},"q"),ct=_((c,h)=>{const u=de(c);return h?w=>{if(w.options.silent)return u(w);const v=w.output.length;if(u(w)){const x=w.output.splice(v,1/0),E=h(x);return P(E)||w.output.push(E),!0}else return!1}:u},"B"),dt=(()=>{let c=0;return h=>{const u=de(h),w=c+=1;return v=>{var x;if(v.options.memoization===!1)return u(v);const E=v.index,F=(x=v.cache)[w]||(x[w]={indexMax:-1,queue:[]}),Z=F.queue;if(E<=F.indexMax){const Me=F.store||(F.store=new Map);if(Z.length){for(let _e=0,io=Z.length;_e<io;_e+=2){const ao=Z[_e*2],so=Z[_e*2+1];Me.set(ao,so)}Z.length=0}const ne=Me.get(E);if(ne===!1)return!1;if(Q(ne))return v.index=ne,!0;if(ne)return v.index=ne.index,ne.output?.length&&v.output.push(...ne.output),!0}const Pe=v.output.length,oo=u(v);if(F.indexMax=Math.max(F.indexMax,E),oo){const Me=v.index,ne=v.output.length;if(ne>Pe){const _e=v.output.slice(Pe,ne);Z.push(E,{index:Me,output:_e})}else Z.push(E,Me);return!0}else return Z.push(E,!1),!1}}})(),Bt=_(c=>{let h;return u=>(h||(h=de(c())),h(u))},"G"),de=A(c=>{if(D(c))return X(c)?Bt(c):c;if(Ve(c)||st(c))return $(c);if(R(c))return J(c);if(N(c))return K(Object.values(c));throw new Error("Invalid rule")}),me=_(c=>c,"d"),tn=_(c=>typeof c=="string","ke"),rn=_(c=>{const h=new WeakMap,u=new WeakMap;return(w,v)=>{const x=v?.partial?u:h,E=x.get(w);if(E!==void 0)return E;const F=c(w,v);return x.set(w,F),F}},"Be"),nn=_(c=>{const h={},u={};return(w,v)=>{const x=v?.partial?u:h;return x[w]??(x[w]=c(w,v))}},"Pe"),on=$(/\\./,me),an=$(/./,me),sn=$(/\*\*\*+/,"*"),ln=$(/([^/{[(!])\*\*/,(c,h)=>`${h}*`),cn=$(/(^|.)\*\*(?=[^*/)\]}])/,(c,h)=>`${h}*`),dn=G(K([on,sn,ln,cn,an])),pn=dn,hn=_(c=>q(c,pn,{memoization:!1}).join(""),"Ie"),un=hn,jt="abcdefghijklmnopqrstuvwxyz",gn=_(c=>{let h="";for(;c>0;){const u=(c-1)%26;h=jt[u]+h,c=Math.floor((c-1)/26)}return h},"Le"),Ot=_(c=>{let h=0;for(let u=0,w=c.length;u<w;u++)h=h*26+jt.indexOf(c[u])+1;return h},"V"),pt=_((c,h)=>{if(h<c)return pt(h,c);const u=[];for(;c<=h;)u.push(c++);return u},"b"),mn=_((c,h,u)=>pt(c,h).map(w=>String(w).padStart(u,"0")),"qe"),qt=_((c,h)=>pt(Ot(c),Ot(h)).map(gn),"W"),B=_(c=>({partial:!1,regex:new RegExp(c,"s"),children:[]}),"c"),Te=_(c=>({children:c}),"y"),xe=(()=>{const c=_((h,u,w)=>{if(w.has(h))return;w.add(h);const{children:v}=h;if(!v.length)v.push(u);else for(let x=0,E=v.length;x<E;x++)c(v[x],u,w)},"e");return h=>{if(!h.length)return Te([]);for(let u=h.length-1;u>=1;u--){const w=new Set,v=h[u-1],x=h[u];c(v,x,w)}return h[0]}})(),pe=_(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),fn=$(/\\./,B),vn=$(/[$.*+?^(){}[\]\|]/,c=>B(`\\${c}`)),wn=$(/[\\\/]/,pe),bn=$(/[^$.*+?^(){}[\]\|\\\/]+/,B),yn=$(/^(?:!!)*!(.*)$/,(c,h)=>B(`(?!^${Xt.compile(h).source}$).*?`)),kn=$(/^(!!)+/),xn=K([yn,kn]),_n=$(/\/(\*\*\/)+/,()=>Te([xe([pe(),B(".+?"),pe()]),pe()])),$n=$(/^(\*\*\/)+/,()=>Te([B("^"),xe([B(".*?"),pe()])])),En=$(/\/(\*\*)$/,()=>Te([xe([pe(),B(".*?")]),B("$")])),Sn=$(/\*\*/,()=>B(".*?")),Vt=K([_n,$n,En,Sn]),Cn=$(/\*\/(?!\*\*\/|\*$)/,()=>xe([B("[^\\\\/]*?"),pe()])),Ln=$(/\*/,()=>B("[^\\\\/]*")),Zt=K([Cn,Ln]),Ut=$("?",()=>B("[^\\\\/]")),Tn=$("[",me),Pn=$("]",me),Mn=$(/[!^]/,"^\\\\/"),Rn=$(/[a-z]-[a-z]|[0-9]-[0-9]/i,me),Fn=$(/\\./,me),zn=$(/[$.*+?^(){}[\|]/,c=>`\\${c}`),Hn=$(/[\\\/]/,"\\\\/"),An=$(/[^$.*+?^(){}[\]\|\\\/]+/,me),In=K([Fn,zn,Hn,Rn,An]),Nt=J([Tn,V(Mn),G(In),Pn],c=>B(c.join(""))),Dn=$("{","(?:"),Bn=$("}",")"),jn=$(/(\d+)\.\.(\d+)/,(c,h,u)=>mn(+h,+u,Math.min(h.length,u.length)).join("|")),On=$(/([a-z]+)\.\.([a-z]+)/,(c,h,u)=>qt(h,u).join("|")),qn=$(/([A-Z]+)\.\.([A-Z]+)/,(c,h,u)=>qt(h.toLowerCase(),u.toLowerCase()).join("|").toUpperCase()),Vn=K([jn,On,qn]),Wt=J([Dn,Vn,Bn],c=>B(c.join(""))),Zn=$("{"),Un=$("}"),Nn=$(","),Wn=$(/\\./,B),Gn=$(/[$.*+?^(){[\]\|]/,c=>B(`\\${c}`)),Yn=$(/[\\\/]/,pe),Xn=$(/[^$.*+?^(){}[\]\|\\\/,]+/,B),Qn=Bt(()=>Yt),Jn=$("",()=>B("(?:)")),Kn=ge(K([Vt,Zt,Ut,Nt,Wt,Qn,Wn,Gn,Yn,Xn]),xe),Gt=K([Kn,Jn]),Yt=J([Zn,V(J([Gt,G(J([Nn,Gt]))])),Un],Te),eo=G(K([xn,Vt,Zt,Ut,Nt,Wt,Yt,fn,vn,wn,bn]),xe),to=eo,ro=_(c=>q(c,to,{memoization:!1})[0],"kr"),no=ro,ht=_((c,h,u)=>ht.compile(c,u).test(h),"N");ht.compile=(()=>{const c=nn((u,w)=>T(no(un(u)),w)),h=rn((u,w)=>C(u.map(v=>c(v,w))));return(u,w)=>tn(u)?c(u,w):h(u,w)})();var Xt=ht;return l(s)})();return t.default||t},"_lazyMatch"),ut;const ua=_((t,e)=>(ut||(ut=xr(),xr=null),ut(t,e)),"default");var ga=Object.defineProperty,ma=Ht((t,e)=>ga(t,"name",{value:e,configurable:!0}),"t$1");const fa=/^[A-Z]:\//i,ye=ma((t="")=>t&&t.replaceAll("\\","/").replace(fa,e=>e.toUpperCase()),"normalizeWindowsPath");var va=Object.defineProperty,Y=Ht((t,e)=>va(t,"name",{value:e,configurable:!0}),"r");const wa=/^[/\\]{2}/,ba=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,Yr=/^[A-Z]:$/i,_r=/^\/([A-Z]:)?$/i,ya=/.(\.[^./]+)$/,ka=/^[/\\]|^[a-z]:[/\\]/i,xa=Y(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),Xr=Y((t,e)=>{let r="",n=0,o=-1,i=0,a;for(let l=0;l<=t.length;++l){if(l<t.length)a=t[l];else{if(a==="/")break;a="/"}if(a==="/"){if(!(o===l-1||i===1))if(i===2){if(r.length<2||n!==2||!r.endsWith(".")||r.at(-2)!=="."){if(r.length>2){const s=r.lastIndexOf("/");s===-1?(r="",n=0):(r=r.slice(0,s),n=r.length-1-r.lastIndexOf("/")),o=l,i=0;continue}else if(r.length>0){r="",n=0,o=l,i=0;continue}}e&&(r+=r.length>0?"/..":"..",n=2)}else r.length>0?r+=`/${t.slice(o+1,l)}`:r=t.slice(o+1,l),n=l-o-1;o=l,i=0}else a==="."&&i!==-1?++i:i=-1}return r},"normalizeString"),Be=Y(t=>ba.test(t),"isAbsolute"),Je=Y(function(t){if(t.length===0)return".";t=ye(t);const e=wa.exec(t),r=Be(t),n=t.at(-1)==="/";return t=Xr(t,!r),t.length===0?r?"/":n?"./":".":(n&&(t+="/"),Yr.test(t)&&(t+="/"),e?r?`//${t}`:`//./${t}`:r&&!Be(t)?`/${t}`:t)},"normalize");Y((...t)=>{let e="";for(const r of t)if(r)if(e.length>0){const n=e[e.length-1]==="/",o=r[0]==="/";n&&o?e+=r.slice(1):e+=n||o?r:`/${r}`}else e+=r;return Je(e)},"join");const Ke=Y(function(...t){t=t.map(n=>ye(n));let e="",r=!1;for(let n=t.length-1;n>=-1&&!r;n--){const o=n>=0?t[n]:xa();!o||o.length===0||(e=`${o}/${e}`,r=Be(o))}return e=Xr(e,!r),r&&!Be(e)?`/${e}`:e.length>0?e:"."},"resolve");Y(function(t){return ye(t)},"toNamespacedPath");const _a=Y(function(t){return ya.exec(ye(t))?.[1]??""},"extname");Y(function(t,e){const r=Ke(t).replace(_r,"$1").split("/"),n=Ke(e).replace(_r,"$1").split("/");if(n[0][1]===":"&&r[0][1]===":"&&r[0]!==n[0])return n.join("/");const o=[...r];for(const i of o){if(n[0]!==i)break;r.shift(),n.shift()}return[...r.map(()=>".."),...n].join("/")},"relative");const $a=Y(t=>{const e=ye(t).replace(/\/$/,"").split("/").slice(0,-1);return e.length===1&&Yr.test(e[0])&&(e[0]+="/"),e.join("/")||(Be(t)?"/":".")},"dirname");Y(function(t){const e=[t.root,t.dir,t.base??t.name+t.ext].filter(Boolean);return ye(t.root?Ke(...e):e.join("/"))},"format");const Ea=Y((t,e)=>{const r=ye(t).split("/").pop();return e&&r.endsWith(e)?r.slice(0,-e.length):r},"basename");Y(function(t){const e=ka.exec(t)?.[0]?.replaceAll("\\","/")??"",r=Ea(t),n=_a(r);return{base:r,dir:$a(t),ext:n,name:r.slice(0,r.length-n.length),root:e}},"parse");Y((t,e)=>ua(e,Je(t)),"matchesGlob");var Sa=Object.defineProperty,re=S((t,e)=>Sa(t,"name",{value:e,configurable:!0}),"e$1");const _t="/",$r=":",Ca="at ",La=/https?:\/\/[^\s)]+/g,Ta=/file:\/\//g,Qr=/\/@fs\//g,Pa=new Set([".cjs",".js",".jsx",".mjs",".svelte",".ts",".tsx",".vue"]),Ma=new Set(["<anonymous>","<unknown>","native"]),Ra=re(t=>{const e=t.trim();return!e.startsWith(Ca)||!([...Pa].some(r=>e.includes(r))||[...Ma].some(r=>e.includes(r)))?!1:/\([^)]*:\d+:\d+\)/.test(e)||/\([^)]*:\d+\)/.test(e)||/[^(\s][^:]*:\d+:\d+/.test(e)||/[^(\s][^:]*:\d+/.test(e)||e.includes("native")||e.includes("<unknown>")},"isValidStackFrame"),Fa=re(t=>(t=t.replaceAll(Qr,_t),t=t.replaceAll(Ta,""),t.includes("<unknown>")?t.trim()||"":t.trim()&&!Ra(t)?"":t),"cleanStackLine"),za=re((t,e)=>{try{const{baseUrl:r,col:n,line:o}=Ha(t),i=Aa(r,e);return Ia(i,o,n)}catch(r){return console.warn("Failed to absolutize URL:",t,r),t}},"absolutizeUrl"),Ha=re(t=>{const e=t.match(/:(\d+)(?::(\d+))?$/),r=e?.[1],n=e?.[2];return{baseUrl:e?t.slice(0,-e[0].length):t,col:n,line:r}},"parseUrlWithLocation"),Aa=re((t,e)=>{const r=new URL(t);let n=decodeURIComponent(r.pathname||"");return n=n.replaceAll(Qr,_t),Ke(e,n.startsWith(_t)?n.slice(1):n)},"urlToAbsolutePath"),Ia=re((t,e,r)=>{if(!e)return t;const n=r?`${$r}${r}`:"";return`${t}${$r}${e}${n}`},"formatAbsolutePath"),At=re(t=>t&&t.replaceAll(`\r
1732
+ <span id="__v_o__balloon_text">Errors</span>`:`<span id="__v_o__balloon_count" class="inline-flex items-center justify-center min-w-5 h-5 px-1.5 rounded-full bg-white/20 text-white font-bold">0</span>
1733
+ <span id="__v_o__balloon_text">Errors</span>`;return`<div id="__v_o__balloon_group" class="fixed z-2147483647 inline-flex items-center px-2.5 py-1.5 rounded-full bg-(--ono-v-red-orange) text-white font-sans text-xs leading-none shadow-lg cursor-pointer transition-all duration-200 hover:brightness-105" data-balloon-position="${e}" style="${n} ${r}">
1734
+ <button type="button" id="__v_o__balloon" title="Toggle error overlay" aria-label="Toggle error overlay" class="w-full flex items-center gap-2">
1735
+ ${i}
1736
+ </button>
1737
+ <button type="button" id="__v_o__balloon_close" title="Dismiss balloon" aria-label="Dismiss balloon" class="ml-2 inline-flex items-center justify-center w-4 h-4 rounded-full hover:bg-white/20 transition-colors border">
1738
+ <span class="dui" style="-webkit-mask-image: url('${wt}'); mask-image: url('${wt}')"></span>
1739
+ </button>
1740
+ </div>`},"generateBalloonButton"),Gs=we(t=>t?typeof t=="string"?t:Hr(t):"","customCSSToString"),Ys=we((t,e,n)=>{const r=Us(),o=Gs(n),i=o?`<style>${o}</style>`:"";return`<style>${Hs}</style>
1741
+ ${i}
1742
+ ${Vs("__v_o__root",r)}
1743
+
1744
+ ${t?Ws(e):""}`},"generateOverlayTemplate"),Xs=we((t,e,n,r)=>{const o=Ys(e,n,r),i=`const overlayTemplate = ${JSON.stringify(o)};`;let s=t.replace(js,`${i}
1745
+ ${tr}
1746
+ class ViteErrorOverlay`);return s=s.replace(Os,`${i}
1747
+ ${tr}
1748
+ var ViteErrorOverlay = `),s=`${s}
1749
+
1750
+ ${qs};`,s},"patchOverlay");var Qs=Object.defineProperty,N=b((t,e)=>Qs(t,"name",{value:e,configurable:!0}),"n$1");const Js=4,ir=1e3,Ks=5,ea=.5,ta=[".js",".ts",".jsx",".tsx",".mjs",".cjs"],na=[".css",".scss",".sass",".less"],Br=[".svg",".png",".jpg",".jpeg",".gif",".webp",".ico"],ra=new Set([...Br,...ta,...na]),Y=N((t,...e)=>{const n=t.toLowerCase();return e.some(r=>n.includes(r.toLowerCase()))},"has"),oa=N((t,e)=>{const n=le.relative(t,e);return n.startsWith(".")?n:`./${n}`},"getRelativePath"),ia=N(t=>t===0?"":t===1?" (in parent directory)":t===2?" (in grandparent directory)":` (${t} directories away)`,"getPathContext"),sa=N((t,e)=>{try{const n=le.relative(t,e).split(le.sep).filter(o=>o&&o!==".");let r=0;for(const o of n)r+=o===".."?2:1;return r}catch{return 10}},"calculatePathDistance"),aa=N((t,e,n,r)=>{if(e&&r===e){const i=pt(t,n);return i<=Math.max(3,Math.floor(t.length*ea))?10-i:0}if(!e){const i=pt(t,n);return i===0?9:i<=Math.max(2,Math.floor(t.length*.3))&&ra.has(r)?7-i:0}const o=pt(t,n);return o<=Math.max(2,Math.floor(t.length*.4))?5-o:0},"calculateRelevanceScore"),la=N((t,e,n)=>{const r=[],o=N((i,s=0)=>{if(!(s>Js||r.length>ir))try{const l=Gi.readdirSync(i,{withFileTypes:!0});for(const a of l){if(r.length>ir)break;const c=le.join(i,a.name);if(a.isDirectory()&&!a.name.startsWith(".")&&a.name!=="node_modules")o(c,s+1);else if(a.isFile()){const d=le.extname(a.name),u=le.basename(a.name,d),g=aa(e,n,u,d);g>0&&r.push({baseName:u,extension:d,fullPath:c,path:c,relevanceScore:g})}}}catch{}},"walk");return o(t),r},"collectFileCandidates"),sr=N((t,e,n)=>{const r=le.basename(t),o=le.extname(r),i=le.basename(r,o),s=le.dirname(e),l=la(n,i,o).map(g=>{const v=pt(i,g.baseName),f=sa(s,le.dirname(g.fullPath)),m=g.relevanceScore*.7+f*.2+v*.1;return{...g,nameDistance:v,pathDistance:f,score:m}});l.sort((g,v)=>g.score-v.score);const a=[],c=l.slice(0,8);let d=!1;for(const g of c){const v=oa(s,g.fullPath);if(!a.includes(v)){const f=ia(g.pathDistance);a.push(v+f);const m=g.fullPath.replaceAll("\\","/").split("/"),k=m.indexOf("public");k!==-1&&k<m.length-1&&(d=!0)}}let u=`<ul>${[...new Set(a)].slice(0,Ks).map(g=>`<li>\`${g}\`</li>`).join(`
1751
+ `)}</ul>`;if(d){const g=r;[...Br].some(v=>g.includes(v))&&(u+=`Files in the \`public\` folder should be accessed via absolute URLs like \`/${g}\`.`)}return u},"findSimilarFiles"),ca=[{solution:{body:"Browser APIs like `window` and `document` are not available during server-side rendering. Use dynamic imports or check for SSR environment before using browser APIs.",header:"SSR Browser API Error"},test:N(t=>Y(t,"window is not defined","document is not defined"),"test")},{solution:{body:"Some plugins need specific ordering. Use `enforce: 'pre'` for plugins that need to run first, or `enforce: 'post'` for plugins that need to run last.",header:"Plugin Ordering Issue"},test:N(t=>Y(t,"Plugin ordering","enforce"),"test")},{solution:{body:"CSS Modules require proper configuration. Make sure your CSS files use the `.module.css` extension and are imported correctly.",header:"CSS Modules Configuration"},test:N(t=>Y(t,"CSS Modules","module.css"),"test")},{solution:{body:["Only variables prefixed with `VITE_` are exposed on `import.meta.env` to the client at build time.","Server-only variables should not be prefixed with `VITE_`.","- Do not use `process.env` in browser code; prefer `import.meta.env.*`","- Custom vars must be prefixed with `VITE_` to be exposed to client",'- For TS, add `/// <reference types="vite/client" />` for type-safe access'].join(`
1752
+ `),header:"Environment Variables"},test:N(t=>Y(t,"VITE_","process.env"),"test")},{solution:{body:"For static assets, use the `new URL('./path/to/asset', import.meta.url)` syntax or import them and use the returned URL.",header:"Asset Import Issue"},test:N(t=>Y(t,"Failed to load")&&Y(t,".png",".jpg",".svg"),"test")},{solution:{body:"Some issues only occur in production builds. Check if the error happens in development mode. You might need different configurations for build vs dev.",header:"Build vs Development Mode"},test:N(t=>Y(t,"production","build"),"test")},{solution:{body:"HMR issues can occur with certain patterns. Make sure you're not mutating module-level variables and consider using `import.meta.hot` guards.",header:"Hot Module Replacement Issue"},test:N(t=>Y(t,"HMR","hot reload"),"test")},{solution:{body:"Check your `tsconfig.json` and make sure it includes proper paths and compiler options. For Vite, you might need a `vite-env.d.ts` file.",header:"TypeScript Configuration"},test:N((t,e)=>Y(t,"TypeScript")||e&&e.endsWith(".ts"),"test")},{solution:{body:"Some dependencies need to be excluded from pre-bundling. Add them to `optimizeDeps.exclude` in your Vite config.",header:"Dependency Optimization"},test:N(t=>Y(t,"optimizeDeps","pre-bundling"),"test")},{solution:{body:"Configure path aliases in your Vite config using the `resolve.alias` option to match your TypeScript path mappings.",header:"Path Resolution"},test:N(t=>Y(t,"resolve.alias","Cannot find module"),"test")},{solution:{body:"Server middleware and proxy settings should be configured in the `server` section of your Vite config.",header:"Server Configuration"},test:N(t=>Y(t,"middleware","proxy"),"test")},{solution:{body:"Check your plugin configuration in `vite.config.js/ts`. Make sure all required options are provided and options are correctly typed.",header:"Plugin Configuration"},test:N(t=>Y(t,"plugin","configuration"),"test")},{solution:{body:"Configure your build output directory using `build.outDir` in your Vite config. Make sure the directory is writable.",header:"Build Output Configuration"},test:N(t=>Y(t,"build.outDir","dist"),"test")},{solution:{body:["Client and server rendered markup differ.","","Checklist:","- A server/client branch `if (typeof window !== 'undefined')`.","- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.","- Date formatting in a user's locale which doesn't match the server.","- External changing data without sending a snapshot of it along with the HTML.","- Invalid HTML tag nesting.","","It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.","","https://react.dev/link/hydration-mismatch"].join(`
1753
+ `)},test:N(t=>Y(t,"hydration failed","did not match","expected server html","text content does not match"),"test")}],da=N(t=>({async handle(e,n){const{file:r,language:o}=n,i=e.message??"";if(Y(i,"Failed to resolve import","Cannot resolve module")){const s=i.match(/Failed to resolve import ["']([^"']+)["']/),l=i.match(/Cannot resolve module ["']([^"']+)["']/),a=s?.[1]||l?.[1];if(a&&r){const c=sr(a,r,t);if(c)return{body:`The import path \`${a}\` could not be resolved.<br/><br/>Did you mean one of these files?<br/>${c}`};if([".jsx",".tsx"].includes(o)||Y(i,"react"))return{body:"Install and configure the React plugin. Add `@vitejs/plugin-react` to your dependencies and include it in your Vite config.",header:"Missing React Plugin"};if(o==="vue")return{body:"Install and configure the Vue plugin. Add `@vitejs/plugin-vue` to your dependencies and include it in your Vite config.",header:"Missing Vue Plugin"}}}if(Y(i,"Cannot resolve")&&(o==="typescript"||o==="javascript")){const s=i.match(/Cannot resolve ["'](\.\.?\/[^"']*)["']/);if(s){const l=s[1];if(l&&r){const a=sr(l,r,t);if(a)return{body:`Cannot resolve \`${l}\`. Did you mean one of these files?${a}`,header:"File Not Found"}}}return{body:"In Vite, you may need to include file extensions in imports, especially for TypeScript files. Try adding `.js` extension to your imports.",header:"Missing File Extension"}}for(const s of ca)if(s.test(i,r))return s.solution},name:"vite-solution-finder",priority:20}),"createViteSolutionFinder");var pa=Object.defineProperty,V=b((t,e)=>pa(t,"name",{value:e,configurable:!0}),"t$1");const jr={javascript:V(()=>import("@shikijs/langs/javascript"),"javascript"),typescript:V(()=>import("@shikijs/langs/typescript"),"typescript"),jsx:V(()=>import("@shikijs/langs/jsx"),"jsx"),tsx:V(()=>import("@shikijs/langs/tsx"),"tsx"),json:V(()=>import("@shikijs/langs/json"),"json"),jsonc:V(()=>import("@shikijs/langs/jsonc"),"jsonc"),xml:V(()=>import("@shikijs/langs/xml"),"xml"),sql:V(()=>import("@shikijs/langs/sql"),"sql"),markdown:V(()=>import("@shikijs/langs/markdown"),"markdown"),mdx:V(()=>import("@shikijs/langs/mdx"),"mdx"),html:V(()=>import("@shikijs/langs/html"),"html"),css:V(()=>import("@shikijs/langs/css"),"css"),scss:V(()=>import("@shikijs/langs/scss"),"scss"),less:V(()=>import("@shikijs/langs/less"),"less"),sass:V(()=>import("@shikijs/langs/sass"),"sass"),stylus:V(()=>import("@shikijs/langs/stylus"),"stylus"),styl:V(()=>import("@shikijs/langs/styl"),"styl"),svelte:V(()=>import("@shikijs/langs/svelte"),"svelte"),vue:V(()=>import("@shikijs/langs/vue"),"vue"),bash:V(()=>import("@shikijs/langs/bash"),"bash"),shell:V(()=>import("@shikijs/langs/shell"),"shell"),text:V(()=>Promise.resolve({name:"text",patterns:[],scopeName:"source.text"}),"text")};V(async t=>{if(typeof t!="string"||!t)return;const e=jr[t.toLowerCase()];if(e)return await e()},"getLanguageImport");var ha=Object.defineProperty,Ue=b((t,e)=>ha(t,"name",{value:e,configurable:!0}),"r$2");let ht,ut;const ua=Ue(async()=>{const[t,e]=await Promise.all([import("shiki/core"),import("shiki/engine/javascript")]),{createHighlighterCore:n}=t,{createJavaScriptRegexEngine:r}=e,o=await n({themes:[import("./packem_chunks/github-dark-default.js"),import("./packem_chunks/github-light.js")],langs:[],engine:r()}),i=o;return ut=Ue(()=>{try{o?.dispose?.()}catch{}ht=void 0},"disposeFn"),i},"createSingletonHighlighter"),ga=Ue(async(t,e)=>{if(e==="text")return;const n=e.toLowerCase();if(!(t.getLanguages?.()||[]).includes(n)){const r=jr[n];r&&await t.loadLanguage?.(r())}},"ensureLanguageLoaded"),Or=Ue(async(t=[])=>{ht||(ht=ua());const e=await ht,n=[];for(const r of t)if(typeof r=="string")n.push(r.toLowerCase());else{const o=r.name;o&&n.push(o.toLowerCase())}return await Promise.all(n.map(r=>ga(e,r))),e},"getHighlighter");Ue(async()=>{try{ut&&(ut(),ut=void 0)}catch{}},"disposeHighlighter");const ar=Ue((t=[])=>({name:"@shikijs/transformers:compact-line-options",line(e,n){const r=t.find(o=>o.line===n);return r?.classes&&this.addClassToHast(e,r.classes),e}}),"transformerCompactLineOptions");var ma=Object.defineProperty,qr=b((t,e)=>ma(t,"name",{value:e,configurable:!0}),"s$4");const fa=qr(t=>!Array.isArray(t)||t.length===0?!1:t.some(e=>e&&typeof e=="object"&&(e.location||e.pluginName||e.text)),"isESBuildErrorArray"),va=qr(t=>t.map((e,n)=>{const{location:r,pluginName:o,text:i}=e,s={message:i||`ESBuild error #${n+1}`};return r&&(s.file=r.file,s.line=r.line,s.column=r.column),o&&(s.plugin=o),s.name=e.name||"Error",s.stack=e.stack||"",s}),"processESBuildErrors");var wa=Object.defineProperty,Ur=b((t,e)=>wa(t,"name",{value:e,configurable:!0}),"c$6");const ba=Ur((t,e)=>{for(const[n,r]of t.moduleGraph.idToModuleMap){if(!r)continue;const o=r,i=[String(o.file||"").replaceAll("\\","/"),String(n||"").replaceAll("\\","/"),String(o.url||"").replaceAll("\\","/")];for(const s of e)if(i.some(l=>l===s||l.includes(s)||s.includes(l)))return r}},"findBestModuleMatch"),et=Ur((t,e)=>{const n=[...e,...e.map(i=>i.replace(/^\/@fs\//,"")),...e.map(i=>i.replace(/^[./]*/,""))];let r,o=0;for(const i of n)try{const s=t.moduleGraph.getModuleById(i);if(s){const a=Object.keys(s).length>0,c=!!s.transformResult;let d=0;if(a&&c?d=2:a&&(d=1),a&&(d>o&&(r=s,o=d),c))return s}const l=t.moduleGraph.getModuleByUrl?.(i);if(l){const a=Object.keys(l).length>0,c=!!l.transformResult;let d=0;if(a&&c?d=2:a&&(d=1),a&&(d>o&&(r=l,o=d),c))return l}}catch{}return r||ba(t,e)||void 0},"findModuleForPath");var ya=Object.defineProperty,cn=b((t,e)=>ya(t,"name",{value:e,configurable:!0}),"r$1");const ka=/^https?:\/\//,xa=cn(t=>{const e=new URL(t),{pathname:n}=e,r=e.search||"",o=[n+r,n,n.replace(/^\/@fs\//,""),decodeURIComponent(n+r),decodeURIComponent(n)];return[...new Set(o)].filter(Boolean)},"generateUrlCandidates"),Vr=cn(t=>ka.test(t),"isHttpUrl"),Te=cn(t=>{if(!t)return[];try{if(Vr(t))return xa(t);const e=[t];if(t.startsWith("/")&&e.push(t.slice(1)),t.includes("?")){const n=t.split("?")[0];n&&e.push(n)}return[...new Set(e)].filter(Boolean)}catch(e){return console.warn(`Failed to normalize path "${t}":`,e),[]}},"normalizeIdCandidates");var _a=Object.defineProperty,Ee=b((t,e)=>_a(t,"name",{value:e,configurable:!0}),"o$4");const $a=Ee((t,e)=>t.split(/\n/g)[e-1]??"","getLine"),lr=Ee(t=>t.replaceAll(/\s+/g,""),"removeWhitespace"),Ea=Ee((t,e)=>{if(e<=0||e>t.length)return"";const n=Math.max(0,e-1),r=t.slice(n,n+64),o=/[A-Z_$][\w$]{2,}/i.exec(r);if(o?.[0])return o[0];let i=r.trim();return i.length<4&&(i=t.slice(Math.max(0,n-16),n+16).trim()),i},"extractCandidateToken"),Sa=Ee((t,e)=>{if(!t||t.length<3)return null;for(const[n,r]of e.entries()){if(!r)continue;const o=r.indexOf(t);if(o!==-1)return{column:o+1,line:n+1}}return null},"tryTokenBasedSearch"),Ca=Ee((t,e)=>{if(!t)return null;for(const[n,r]of e.entries()){if(!r)continue;const o=r.indexOf(t);if(o!==-1)return{column:o+1,line:n+1}}return null},"tryLineSubstringSearch"),La=Ee((t,e)=>{if(!t)return null;const n=lr(t);if(!n)return null;for(const[r,o]of e.entries()){if(!o)continue;const i=lr(o).indexOf(n);if(i!==-1){const s=Ta(o,i);if(s!==-1)return{column:s,line:r+1}}}return null},"tryWhitespaceInsensitiveSearch"),Ta=Ee((t,e)=>{let n=0;for(const[r,o]of[...t].entries())if(typeof o=="string"){if(n===e)return r+1;/\s/.test(o)||n++}return-1},"mapNormalizedToOriginalPosition"),Pa=Ee((t,e,n,r)=>{const o=$a(t,e);if(!o)return null;const i=r.split(/\n/g),s=Ea(o,n);return Sa(s,i)||Ca(o.trim(),i)||La(o.trim(),i)},"realignOriginalPosition");var Ma=Object.defineProperty,K=b((t,e)=>Ma(t,"name",{value:e,configurable:!0}),"C$5"),Ve=44,Nr=59,cr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Zr=new Uint8Array(64),Wr=new Uint8Array(128);for(let t=0;t<cr.length;t++){const e=cr.charCodeAt(t);Zr[t]=e,Wr[e]=t}function q(t,e){let n=0,r=0,o=0;do{const s=t.next();o=Wr[s],n|=(o&31)<<r,r+=5}while(o&32);const i=n&1;return n>>>=1,i&&(n=-2147483648|-n),e+n}b(q,"h$2");K(q,"decodeInteger");function H(t,e,n){let r=e-n;r=r<0?-r<<1|1:r<<1;do{let o=r&31;r>>>=5,r>0&&(o|=32),t.write(Zr[o])}while(r>0);return e}b(H,"i$4");K(H,"encodeInteger");function ve(t,e){return t.pos>=e?!1:t.peek()!==Ve}b(ve,"S$4");K(ve,"hasMoreVlq");var dr=1024*16,pr=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(t){return Buffer.from(t.buffer,t.byteOffset,t.byteLength).toString()}}:{decode(t){let e="";for(let n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e}},dn=class{static{b(this,"T")}static{K(this,"StringWriter")}constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(dr)}write(e){const{buffer:n}=this;n[this.pos++]=e,this.pos===dr&&(this.out+=pr.decode(n),this.pos=0)}flush(){const{buffer:e,out:n,pos:r}=this;return r>0?n+pr.decode(e.subarray(0,r)):n}},pn=class{static{b(this,"w")}static{K(this,"StringReader")}constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:n,pos:r}=this,o=n.indexOf(e,r);return o===-1?n.length:o}},Gr=[];function Fa(t){const{length:e}=t,n=new pn(t),r=[],o=[];let i=0;for(;n.pos<e;n.pos++){i=q(n,i);const s=q(n,0);if(!ve(n,e)){const d=o.pop();d[2]=i,d[3]=s;continue}const l=q(n,0),a=q(n,0)&1?[i,s,0,0,l,q(n,0)]:[i,s,0,0,l];let c=Gr;if(ve(n,e)){c=[];do{const d=q(n,0);c.push(d)}while(ve(n,e))}a.vars=c,r.push(a),o.push(a)}return r}b(Fa,"z");K(Fa,"decodeOriginalScopes");function Ra(t){const e=new dn;for(let n=0;n<t.length;)n=hn(t,n,e,[0]);return e.flush()}b(Ra,"F$4");K(Ra,"encodeOriginalScopes");function hn(t,e,n,r){const o=t[e],{0:i,1:s,2:l,3:a,4:c,vars:d}=o;e>0&&n.write(Ve),r[0]=H(n,i,r[0]),H(n,s,0),H(n,c,0);const u=o.length===6?1:0;H(n,u,0),o.length===6&&H(n,o[5],0);for(const g of d)H(n,g,0);for(e++;e<t.length;){const g=t[e],{0:v,1:f}=g;if(v>l||v===l&&f>=a)break;e=hn(t,e,n,r)}return n.write(Ve),r[0]=H(n,l,r[0]),H(n,a,0),e}b(hn,"P$4");K(hn,"_encodeOriginalScopes");function za(t){const{length:e}=t,n=new pn(t),r=[],o=[];let i=0,s=0,l=0,a=0,c=0,d=0,u=0,g=0;do{const v=n.indexOf(";");let f=0;for(;n.pos<v;n.pos++){if(f=q(n,f),!ve(n,v)){const D=o.pop();D[2]=i,D[3]=f;continue}const m=q(n,0),k=m&1,L=m&2,T=m&4;let $=null,M=Gr,z;if(k){const D=q(n,s);l=q(n,s===D?l:0),s=D,z=[i,f,0,0,D,l]}else z=[i,f,0,0];if(z.isScope=!!T,L){const D=a,Z=c;a=q(n,a);const U=D===a;c=q(n,U?c:0),d=q(n,U&&Z===c?d:0),$=[a,c,d]}if(z.callsite=$,ve(n,v)){M=[];do{u=i,g=f;const D=q(n,0);let Z;if(D<-1){Z=[[q(n,0)]];for(let U=-1;U>D;U--){const B=u;u=q(n,u),g=q(n,u===B?g:0);const pe=q(n,0);Z.push([pe,u,g])}}else Z=[[D]];M.push(Z)}while(ve(n,v))}z.bindings=M,r.push(z),o.push(z)}i++,n.pos=v+1}while(n.pos<e);return r}b(za,"H$2");K(za,"decodeGeneratedRanges");function Da(t){if(t.length===0)return"";const e=new dn;for(let n=0;n<t.length;)n=un(t,n,e,[0,0,0,0,0,0,0]);return e.flush()}b(Da,"J$1");K(Da,"encodeGeneratedRanges");function un(t,e,n,r){const o=t[e],{0:i,1:s,2:l,3:a,isScope:c,callsite:d,bindings:u}=o;r[0]<i?(Zt(n,r[0],i),r[0]=i,r[1]=0):e>0&&n.write(Ve),r[1]=H(n,o[1],r[1]);const g=(o.length===6?1:0)|(d?2:0)|(c?4:0);if(H(n,g,0),o.length===6){const{4:v,5:f}=o;v!==r[2]&&(r[3]=0),r[2]=H(n,v,r[2]),r[3]=H(n,f,r[3])}if(d){const{0:v,1:f,2:m}=o.callsite;v!==r[4]?(r[5]=0,r[6]=0):f!==r[5]&&(r[6]=0),r[4]=H(n,v,r[4]),r[5]=H(n,f,r[5]),r[6]=H(n,m,r[6])}if(u)for(const v of u){v.length>1&&H(n,-v.length,0);const f=v[0][0];H(n,f,0);let m=i,k=s;for(let L=1;L<v.length;L++){const T=v[L];m=H(n,T[1],m),k=H(n,T[2],k),H(n,T[0],0)}}for(e++;e<t.length;){const v=t[e],{0:f,1:m}=v;if(f>l||f===l&&m>=a)break;e=un(t,e,n,r)}return r[0]<l?(Zt(n,r[0],l),r[0]=l,r[1]=0):n.write(Ve),r[1]=H(n,a,r[1]),e}b(un,"V$1");K(un,"_encodeGeneratedRanges");function Zt(t,e,n){do t.write(Nr);while(++e<n)}b(Zt,"U$1");K(Zt,"catchupLine");function Yr(t){const{length:e}=t,n=new pn(t),r=[];let o=0,i=0,s=0,l=0,a=0;do{const c=n.indexOf(";"),d=[];let u=!0,g=0;for(o=0;n.pos<c;){let v;o=q(n,o),o<g&&(u=!1),g=o,ve(n,c)?(i=q(n,i),s=q(n,s),l=q(n,l),ve(n,c)?(a=q(n,a),v=[o,i,s,l,a]):v=[o,i,s,l]):v=[o],d.push(v),n.pos++}u||Xr(d),r.push(d),n.pos=c+1}while(n.pos<=e);return r}b(Yr,"K$2");K(Yr,"decode");function Xr(t){t.sort(Qr)}b(Xr,"Q$3");K(Xr,"sort");function Qr(t,e){return t[0]-e[0]}b(Qr,"X$3");K(Qr,"sortComparator");function Jr(t){const e=new dn;let n=0,r=0,o=0,i=0;for(let s=0;s<t.length;s++){const l=t[s];if(s>0&&e.write(Nr),l.length===0)continue;let a=0;for(let c=0;c<l.length;c++){const d=l[c];c>0&&e.write(Ve),a=H(e,d[0],a),d.length!==1&&(n=H(e,d[1],n),r=H(e,d[2],r),o=H(e,d[3],o),d.length!==4&&(i=H(e,d[4],i)))}}return e.flush()}b(Jr,"Z$2");K(Jr,"encode");var Aa=Object.defineProperty,oe=b((t,e)=>Aa(t,"name",{value:e,configurable:!0}),"c$4");const Ia=/^[\w+.-]+:\/\//,Ha=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,Ba=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function Kr(t){return Ia.test(t)}b(Kr,"R$3");oe(Kr,"isAbsoluteUrl");function eo(t){return t.startsWith("//")}b(eo,"q$2");oe(eo,"isSchemeRelativeUrl");function gn(t){return t.startsWith("/")}b(gn,"m$5");oe(gn,"isAbsolutePath");function to(t){return t.startsWith("file:")}b(to,"v$4");oe(to,"isFileUrl");function Wt(t){return/^[.?#]/.test(t)}b(Wt,"u$2");oe(Wt,"isRelative");function Qe(t){const e=Ha.exec(t);return mn(e[1],e[2]||"",e[3],e[4]||"",e[5]||"/",e[6]||"",e[7]||"")}b(Qe,"f$3");oe(Qe,"parseAbsoluteUrl");function no(t){const e=Ba.exec(t),n=e[2];return mn("file:","",e[1]||"","",gn(n)?n:"/"+n,e[3]||"",e[4]||"")}b(no,"w$2");oe(no,"parseFileUrl");function mn(t,e,n,r,o,i,s){return{scheme:t,user:e,host:n,port:r,path:o,query:i,hash:s,type:7}}b(mn,"y$5");oe(mn,"makeUrl");function Gt(t){if(eo(t)){const n=Qe("http:"+t);return n.scheme="",n.type=6,n}if(gn(t)){const n=Qe("http://foo.com"+t);return n.scheme="",n.host="",n.type=5,n}if(to(t))return no(t);if(Kr(t))return Qe(t);const e=Qe("http://foo.com/"+t);return e.scheme="",e.host="",e.type=t?t.startsWith("?")?3:t.startsWith("#")?2:4:1,e}b(Gt,"p$3");oe(Gt,"parseUrl");function ro(t){if(t.endsWith("/.."))return t;const e=t.lastIndexOf("/");return t.slice(0,e+1)}b(ro,"P$3");oe(ro,"stripPathFilename");function oo(t,e){fn(e,e.type),t.path==="/"?t.path=e.path:t.path=ro(e.path)+t.path}b(oo,"A$1");oe(oo,"mergePaths");function fn(t,e){const n=e<=4,r=t.path.split("/");let o=1,i=0,s=!1;for(let a=1;a<r.length;a++){const c=r[a];if(!c){s=!0;continue}if(s=!1,c!=="."){if(c===".."){i?(s=!0,i--,o--):n&&(r[o++]=c);continue}r[o++]=c,i++}}let l="";for(let a=1;a<o;a++)l+="/"+r[a];(!l||s&&!l.endsWith("/.."))&&(l+="/"),t.path=l}b(fn,"d$7");oe(fn,"normalizePath");function io(t,e){if(!t&&!e)return"";const n=Gt(t);let r=n.type;if(e&&r!==7){const i=Gt(e),s=i.type;switch(r){case 1:n.hash=i.hash;case 2:n.query=i.query;case 3:case 4:oo(n,i);case 5:n.user=i.user,n.host=i.host,n.port=i.port;case 6:n.scheme=i.scheme}s>r&&(r=s)}fn(n,r);const o=n.query+n.hash;switch(r){case 2:case 3:return o;case 4:{const i=n.path.slice(1);return i?Wt(e||t)&&!Wt(i)?"./"+i+o:i+o:o||"."}case 5:return n.path+o;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+o}}b(io,"F$3");oe(io,"resolve");var ja=Object.defineProperty,P=b((t,e)=>ja(t,"name",{value:e,configurable:!0}),"i$3");function so(t){if(!t)return"";const e=t.lastIndexOf("/");return t.slice(0,e+1)}b(so,"ae");P(so,"stripFilename");function ao(t,e){const n=so(t),r=e?e+"/":"";return o=>io(r+(o||""),n)}b(ao,"ge");P(ao,"resolver");var ce=0,vn=1,wn=2,bn=3,lo=4,co=1,po=2;function ho(t,e){const n=Yt(t,0);if(n===t.length)return t;e||(t=t.slice());for(let r=n;r<t.length;r=Yt(t,r+1))t[r]=go(t[r],e);return t}b(ho,"he$1");P(ho,"maybeSort");function Yt(t,e){for(let n=e;n<t.length;n++)if(!uo(t[n]))return n;return t.length}b(Yt,"X$2");P(Yt,"nextUnsortedSegmentLine");function uo(t){for(let e=1;e<t.length;e++)if(t[e][ce]<t[e-1][ce])return!1;return!0}b(uo,"_e");P(uo,"isSorted");function go(t,e){return e||(t=t.slice()),t.sort(yn)}b(go,"ve$1");P(go,"sortSegments");function yn(t,e){return t[ce]-e[ce]}b(yn,"$");P(yn,"sortComparator");function mo(t,e){const n=e.map(()=>[]);for(let r=0;r<t.length;r++){const o=t[r];for(let i=0;i<o.length;i++){const s=o[i];if(s.length===1)continue;const l=s[vn],a=s[wn],c=s[bn],d=n[l];(d[a]||(d[a]=[])).push([c,r,s[ce]])}}for(let r=0;r<n.length;r++){const o=n[r];for(let i=0;i<o.length;i++){const s=o[i];s&&s.sort(yn)}}return n}b(mo,"Se");P(mo,"buildBySources");var Pe=!1;function fo(t,e,n,r){for(;n<=r;){const o=n+(r-n>>1),i=t[o][ce]-e;if(i===0)return Pe=!0,o;i<0?n=o+1:r=o-1}return Pe=!1,n-1}b(fo,"Ee");P(fo,"binarySearch");function kn(t,e,n){for(let r=n+1;r<t.length&&t[r][ce]===e;n=r++);return n}b(kn,"H$1");P(kn,"upperBound");function xn(t,e,n){for(let r=n-1;r>=0&&t[r][ce]===e;n=r--);return n}b(xn,"Y");P(xn,"lowerBound");function _n(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}b(_n,"k$1");P(_n,"memoizedState");function vo(t,e,n,r){const{lastKey:o,lastNeedle:i,lastIndex:s}=n;let l=0,a=t.length-1;if(r===o){if(e===i)return Pe=s!==-1&&t[s][ce]===e,s;e>=i?l=s===-1?0:s:a=s}return n.lastKey=r,n.lastNeedle=e,n.lastIndex=fo(t,e,l,a)}b(vo,"Me");P(vo,"memoizedBinarySearch");function Ct(t){return typeof t=="string"?JSON.parse(t):t}b(Ct,"j$1");P(Ct,"parse");P(function(t,e){const n=Ct(t);if(!("sections"in n))return new Tt(n,e);const r=[],o=[],i=[],s=[],l=[];$n(n,e,r,o,i,s,l,0,0,1/0,1/0);const a={version:3,file:n.file,names:s,sources:o,sourcesContent:i,mappings:r,ignoreList:l};return $o(a)},"FlattenMap");function $n(t,e,n,r,o,i,s,l,a,c,d){const{sections:u}=t;for(let g=0;g<u.length;g++){const{map:v,offset:f}=u[g];let m=c,k=d;if(g+1<u.length){const L=u[g+1].offset;m=Math.min(c,l+L.line),m===c?k=Math.min(d,a+L.column):m<c&&(k=a+L.column)}wo(v,e,n,r,o,i,s,l+f.line,a+f.column,m,k)}}b($n,"ee$1");P($n,"recurse");function wo(t,e,n,r,o,i,s,l,a,c,d){const u=Ct(t);if("sections"in u)return $n(...arguments);const g=new Tt(u,e),v=r.length,f=i.length,m=ze(g),{resolvedSources:k,sourcesContent:L,ignoreList:T}=g;if(gt(r,k),gt(i,g.names),L)gt(o,L);else for(let $=0;$<k.length;$++)o.push(null);if(T)for(let $=0;$<T.length;$++)s.push(T[$]+v);for(let $=0;$<m.length;$++){const M=l+$;if(M>c)return;const z=bo(n,M),D=$===0?a:0,Z=m[$];for(let U=0;U<Z.length;U++){const B=Z[U],pe=D+B[ce];if(M===c&&pe>=d)return;if(B.length===1){z.push([pe]);continue}const Ae=v+B[vn],he=B[wn],Se=B[bn];z.push(B.length===4?[pe,Ae,he,Se]:[pe,Ae,he,Se,f+B[lo]])}}}b(wo,"me");P(wo,"addSection");function gt(t,e){for(let n=0;n<e.length;n++)t.push(e[n])}b(gt,"G$1");P(gt,"append");function bo(t,e){for(let n=t.length;n<=e;n++)t[n]=[];return t[e]}b(bo,"xe$1");P(bo,"getLine");var yo="`line` must be greater than 0 (lines start at line 1)",ko="`column` must be greater than or equal to 0 (columns start at column 0)",bt=-1,Lt=1,Tt=class{static{b(this,"R")}static{P(this,"TraceMap")}constructor(e,n){const r=typeof e=="string";if(!r&&e._decodedMemo)return e;const o=Ct(e),{version:i,file:s,names:l,sourceRoot:a,sources:c,sourcesContent:d}=o;this.version=i,this.file=s,this.names=l||[],this.sourceRoot=a,this.sources=c,this.sourcesContent=d,this.ignoreList=o.ignoreList||o.x_google_ignoreList||void 0;const u=ao(n,a);this.resolvedSources=c.map(u);const{mappings:g}=o;if(typeof g=="string")this._encoded=g,this._decoded=void 0;else if(Array.isArray(g))this._encoded=void 0,this._decoded=ho(g,r);else throw o.sections?new Error("TraceMap passed sectioned source map, please use FlattenMap export instead"):new Error(`invalid source map: ${JSON.stringify(o)}`);this._decodedMemo=_n(),this._bySources=void 0,this._bySourceMemos=void 0}};function xo(t){var e,n;return(n=(e=t)._encoded)!=null?n:e._encoded=Jr(t._decoded)}b(xo,"oe$1");P(xo,"encodedMappings");function ze(t){var e;return(e=t)._decoded||(e._decoded=Yr(t._encoded))}b(ze,"O$1");P(ze,"decodedMappings");function Oa(t,e,n){const r=ze(t);if(e>=r.length)return null;const o=r[e],i=rt(o,t._decodedMemo,e,n,Lt);return i===-1?null:o[i]}b(Oa,"Oe");P(Oa,"traceSegment");function _o(t,e){let{line:n,column:r,bias:o}=e;if(n--,n<0)throw new Error(yo);if(r<0)throw new Error(ko);const i=ze(t);if(n>=i.length)return Je(null,null,null,null);const s=i[n],l=rt(s,t._decodedMemo,n,r,o||Lt);if(l===-1)return Je(null,null,null,null);const a=s[l];if(a.length===1)return Je(null,null,null,null);const{names:c,resolvedSources:d}=t;return Je(d[a[vn]],a[wn]+1,a[bn],a.length===5?c[a[lo]]:null)}b(_o,"Le");P(_o,"originalPositionFor");function qa(t,e){const{source:n,line:r,column:o,bias:i}=e;return Sn(t,n,r,o,i||Lt,!1)}b(qa,"ye$1");P(qa,"generatedPositionFor");function Ua(t,e){const{source:n,line:r,column:o,bias:i}=e;return Sn(t,n,r,o,i||bt,!0)}b(Ua,"Ce$1");P(Ua,"allGeneratedPositionsFor");function Va(t,e){const n=ze(t),{names:r,resolvedSources:o}=t;for(let i=0;i<n.length;i++){const s=n[i];for(let l=0;l<s.length;l++){const a=s[l],c=i+1,d=a[0];let u=null,g=null,v=null,f=null;a.length!==1&&(u=o[a[1]],g=a[2]+1,v=a[3]),a.length===5&&(f=r[a[4]]),e({generatedLine:c,generatedColumn:d,source:u,originalLine:g,originalColumn:v,name:f})}}}b(Va,"Ie");P(Va,"eachMapping");function En(t,e){const{sources:n,resolvedSources:r}=t;let o=n.indexOf(e);return o===-1&&(o=r.indexOf(e)),o}b(En,"re$1");P(En,"sourceIndex");function Na(t,e){const{sourcesContent:n}=t;if(n==null)return null;const r=En(t,e);return r===-1?null:n[r]}b(Na,"Ne");P(Na,"sourceContentFor");function Za(t,e){const{ignoreList:n}=t;if(n==null)return!1;const r=En(t,e);return r===-1?!1:n.includes(r)}b(Za,"be$1");P(Za,"isIgnored");function $o(t,e){const n=new Tt(Pt(t,[]),e);return n._decoded=t.mappings,n}b($o,"se");P($o,"presortedDecodedMap");function Wa(t){return Pt(t,ze(t))}b(Wa,"Re");P(Wa,"decodedMap");function Ga(t){return Pt(t,xo(t))}b(Ga,"we$1");P(Ga,"encodedMap");function Pt(t,e){return{version:t.version,file:t.file,names:t.names,sourceRoot:t.sourceRoot,sources:t.sources,sourcesContent:t.sourcesContent,mappings:e,ignoreList:t.ignoreList||t.x_google_ignoreList}}b(Pt,"B");P(Pt,"clone");function Je(t,e,n,r){return{source:t,line:e,column:n,name:r}}b(Je,"b$2");P(Je,"OMapping");function je(t,e){return{line:t,column:e}}b(je,"y$4");P(je,"GMapping");function rt(t,e,n,r,o){let i=vo(t,r,e,n);return Pe?i=(o===bt?kn:xn)(t,r,i):o===bt&&i++,i===-1||i===t.length?-1:i}b(rt,"w$1");P(rt,"traceSegmentInternal");function Eo(t,e,n,r,o){let i=rt(t,e,n,r,Lt);if(!Pe&&o===bt&&i++,i===-1||i===t.length)return[];const s=Pe?r:t[i][ce];Pe||(i=xn(t,s,i));const l=kn(t,s,i),a=[];for(;i<=l;i++){const c=t[i];a.push(je(c[co]+1,c[po]))}return a}b(Eo,"Ue");P(Eo,"sliceGeneratedPositions");function Sn(t,e,n,r,o,i){var s,l;if(n--,n<0)throw new Error(yo);if(r<0)throw new Error(ko);const{sources:a,resolvedSources:c}=t;let d=a.indexOf(e);if(d===-1&&(d=c.indexOf(e)),d===-1)return i?[]:je(null,null);const u=(s=t)._bySourceMemos||(s._bySourceMemos=a.map(_n)),g=((l=t)._bySources||(l._bySources=mo(ze(t),u)))[d][n];if(g==null)return i?[]:je(null,null);const v=u[d];if(i)return Eo(g,v,n,r,o);const f=rt(g,v,n,r,o);if(f===-1)return je(null,null);const m=g[f];return je(m[co]+1,m[po])}b(Sn,"ie");P(Sn,"generatedPosition");var Ya=Object.defineProperty,se=b((t,e)=>Ya(t,"name",{value:e,configurable:!0}),"u$1");const Xa=/`((?:[^`$]|\$\{[^}]+\})*)`/g,hr=/\$\{[^}]+\}/g,Qa=/[.*+?^${}()|[\]\\]/g,So=[/new Error\(/,/throw new Error\(/,/new Error`/,/throw new Error`/,/new [A-Z]\w*\(/,/throw new [A-Z]\w*\(/,/new [A-Z]\w*`/,/throw new [A-Z]\w*`/],Me=se(t=>t.replaceAll(Qa,String.raw`\$&`),"escapeRegex"),Ja=se(t=>{const e=Me(t);return[t,`new Error("${e}")`,`new Error('${e}')`,`new Error(\`${Me(t)}\`)`,`throw new Error("${e}")`,`throw new Error('${e}')`,`throw new Error(\`${Me(t)}\`)`,`Error("${e}")`,`Error('${e}')`]},"createErrorPatterns"),ur=se((t,e)=>{const n=[...t.matchAll(Xa)];for(const r of n){const o=r[1];if(!o)continue;const i=o.split(hr);if(i.every(l=>l===""||e.includes(l))&&i.length>1)return!0;if(!o)continue;const s=o.replaceAll(hr,"(.+?)");try{if(new RegExp(`^${Me(s)}$`).test(e))return!0}catch{}}return!1},"checkTemplateLiteralMatch"),Ka=[/Failed to resolve import ["']([^"']+)["'](?:\s+from ["']([^"']+)["'])?/,/(.+?)\s+from line \d+/,/(.+?)\s+is not defined/,/(.+?)\s+is not a function/,/Cannot read properties of (.+?)\s+\(reading (.+?)\)/],el=se(t=>{for(const e of Ka){const n=t.match(e);if(n)return n}return null},"findDynamicErrorMatch"),gr=se(t=>{let e=null,n=null;for(const r of So){const o=t.match(r);o&&(!e||r.source.includes("throw")&&!n?.source.includes("throw"))&&(e=o,n=r)}return{bestMatch:e,bestPattern:n}},"findBestErrorConstructor"),mr=se((t,e)=>{let n=t.index;if(e.source.includes("throw new")&&t[0].startsWith("throw new")){const r=t[0].indexOf("new");r!==-1&&(n+=r)}return n+1},"calculateActualColumn"),tl=se((t,e,n=0)=>{if(!t||!e)return null;const r=t.split(`
1754
+ `),o=el(e),i=Ja(e),s=se((u,g,v)=>{let f=0;for(const[m,k]of u.entries()){if(!k)continue;const L=k.includes(g)||ur(k,g),T=So.some($=>$.test(k));if(L&&T){const{bestMatch:$,bestPattern:M}=gr(k);if($&&M&&(f++,f>v))return{column:mr($,M),line:m+1}}}return null},"processErrorConstructorLines")(r,e,n);if(s)return s;o&&se((u,g,v)=>{if(u[0].includes("Failed to resolve import")){const f=u[1];if(!f)return;const m=Me(f);v.unshift(`import.*from ["']${m}["']`,`import.*["']${m}["']`,f)}else if(u[0].includes("is not defined")){const f=u[1];if(!f)return;v.unshift(f,`{${f}}`,`src={${f}}`,`${f}.`,`=${f}`)}else if(u[0].includes("Cannot read properties")){const f=u[1],m=u[2];if(!m)return;v.unshift(m,`${f}.${m}`,`${f}?.${m}`,`${f}[${m}]`)}else{const f=u[1];if(!f)return;const m=Me(g),k=Me(f);v.unshift(`new Error(\`${k}`,`throw new Error(\`${k}`,`new Error("${k}`,`new Error('${k}`,`throw new Error("${k}`,`throw new Error('${k}`,`new Error("${m}")`,`new Error('${m}')`,`throw new Error("${m}")`,`throw new Error('${m}')`,`new Error(\`${m}\`)`,`throw new Error(\`${m}\`)`)}},"addDynamicPatterns")(o,e,i);const l=se((u,g,v)=>{let f=0;for(const[m,k]of u.entries()){if(!k||!ur(k,g))continue;const{bestMatch:L,bestPattern:T}=gr(k);if(L&&T&&(f++,f>v))return{column:mr(L,T),line:m+1}}return null},"processTemplateLiteralLines"),a=se((u,g,v,f)=>{let m=0;for(const[k,L]of u.entries()){if(!L)continue;let T=-1,$=null;for(const M of g){const z=L.indexOf(M);z!==-1&&(T===-1||z<T)&&(T=z,$=M)}if(T!==-1&&$&&(m++,m>f))return{column:c(T,$,L,v),line:k+1}}return null},"processPatternLines"),c=se((u,g,v,f)=>{if(!f)return u+1;if(f[0].includes("Failed to resolve import")){const m=f[1];if(v.includes(`"${m}"`)||v.includes(`'${m}'`)){const k=v.includes(`"${m}"`)?'"':"'";return v.indexOf(`${k}${m}${k}`)+1}}else if(f[0].includes("is not defined")){const m=f[1];if(m&&g===m)return u+1;if(m&&g.includes(m))return u+g.indexOf(m)+1}else if(f[0].includes("Cannot read properties")){const m=f[2];if(m&&g.includes(m))return u+g.indexOf(m)+1}else if(g.includes("new Error("))return v.indexOf("new Error(")+1;return u+1},"calculatePatternColumn");return l(r,e,n)||a(r,i,o,n)},"findErrorInSourceCode");var nl=Object.defineProperty,ot=b((t,e)=>nl(t,"name",{value:e,configurable:!0}),"m$4");const rl=1,fr=ot((t,e)=>{let n=t,r=e;return t>=20?n=Math.max(1,Math.round(t*.5)):t>15?n=Math.max(1,Math.round(t*.6)):t>10?n=Math.max(1,t-8):n=Math.max(1,t-3),e>=10||e>7?r=Math.max(0,e-1):e>5&&(r=Math.max(0,e)),{estimatedColumn:r,estimatedLine:n}},"estimateOriginalPosition"),ol=ot((t,e,n)=>{try{const r=new Tt(t),o=[{column:n,desc:"original",line:e},{column:Math.max(0,n-rl),desc:"offset",line:e},{column:n,desc:"line above",line:e-1},{column:n,desc:"line below",line:e+1},...Array.from({length:5},(i,s)=>({column:Math.max(0,n-2+s),desc:`col ${n-2+s}`,line:e}))];for(const i of o){const s=_o(r,{column:i.column,line:i.line});if(s.source&&s.line!==void 0&&s.column!==void 0&&s.line>0&&s.column>=0)return{column:s.column,line:s.line,source:s.source}}}catch(r){console.warn("Source map processing failed:",r)}return null},"resolveSourceMapPosition"),il=ot((t,e)=>e?Vr(t)?sl(t,e):e:t,"resolveSourcePath"),sl=ot((t,e)=>{try{const n=new URL(t),r=(n.pathname||"").replace(/^\//,""),o=r.includes("/")?r.slice(0,Math.max(0,r.lastIndexOf("/"))):"";return`${n.origin}/${o?`${o}/`:""}${e}`}catch(n){return console.warn("URL parsing failed for source path resolution:",n),t}},"resolveHttpSourcePath"),Xt=ot(async(t,e,n,r,o,i,s=0)=>{if(i&&e)try{let a=null;if(e.transformResult?.map?.sourcesContent?.[0]?a=e.transformResult.map.sourcesContent[0]:e.transformResult?.code&&(a=e.transformResult.code),!a&&(e.id||e.url)){const c=e.id||e.url;if(c)try{const d=await t.transformRequest(c);d?.map&&"sourcesContent"in d.map&&d.map.sourcesContent?.[0]?a=d.map.sourcesContent[0]:d?.code&&(a=d.code)}catch(d){console.warn("Failed to get fresh source for error search:",d)}}if(!a&&n)try{const c=await import("node:fs/promises");let d=n;if(n.includes("://"))try{d=new URL(n).pathname}catch{const u=n.indexOf("://");u!==-1&&(d=n.slice(u+3))}d.startsWith("/")||(d=`${t.config.root||process.cwd()}/${d}`),a=await c.readFile(d,"utf8")}catch(c){console.warn("Failed to read source file from disk:",c)}if(a){const c=tl(a,i,s);if(c)return{originalFileColumn:c.column,originalFileLine:c.line,originalFilePath:n}}}catch(a){console.warn("Source code search failed:",a)}let l=e?.transformResult?.map;if(!l&&(e?.id||e?.url)){const a=e.id||e.url;if(a)try{const c=await t.transformRequest(a);c?.map&&(l=c.map)}catch(c){console.warn("Failed to get fresh source map:",c)}}if(!l){const{estimatedColumn:a,estimatedLine:c}=fr(r,o);return{originalFileColumn:a,originalFileLine:c,originalFilePath:n}}try{const a=ol(l,r,o);if(!a){const{estimatedColumn:d,estimatedLine:u}=fr(r,o);return{originalFileColumn:d,originalFileLine:u,originalFilePath:n}}const c=il(n,a.source);return{originalFileColumn:a.column,originalFileLine:a.line,originalFilePath:c}}catch(a){return console.warn("Source map resolution failed:",a),{originalFileColumn:o,originalFileLine:r,originalFilePath:n}}},"resolveOriginalLocation");var al=Object.defineProperty,ll=b((t,e)=>al(t,"name",{value:e,configurable:!0}),"$e"),cl=Object.defineProperty,Cn=ll((t,e)=>cl(t,"name",{value:e,configurable:!0}),"W"),dl=Object.defineProperty,E=Cn((t,e)=>dl(t,"name",{value:e,configurable:!0}),"u$1");let vr=E(()=>{var t=(()=>{var e=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,i=E((p,h)=>{for(var w in h)e(p,w,{get:h[w],enumerable:!0})},"ne"),s=E((p,h,w,x)=>{if(h&&typeof h=="object"||typeof h=="function")for(let y of r(h))!o.call(p,y)&&y!==w&&e(p,y,{get:E(()=>h[y],"get"),enumerable:!(x=n(h,y))||x.enumerable});return p},"ae"),l=E(p=>s(e({},"__esModule",{value:!0}),p),"oe"),a={};i(a,{zeptomatch:E(()=>qn,"zeptomatch")});var c=E(p=>{const h=new Set,w=[p];for(let x=0;x<w.length;x++){const y=w[x];if(h.has(y))continue;h.add(y);const{children:_}=y;if(_?.length)for(let C=0,A=_.length;C<A;C++)w.push(_[C])}return Array.from(h)},"M"),d=E(p=>{let h="";const w=c(p);for(let x=0,y=w.length;x<y;x++){const _=w[x];if(!_.regex)continue;const C=_.regex.flags;if(h||(h=C),h!==C)throw new Error(`Inconsistent RegExp flags used: "${h}" and "${C}"`)}return h},"se"),u=E((p,h,w)=>{const x=w.get(p);if(x!==void 0)return x;const y=p.partial??h;let _="";if(p.regex&&(_+=y?"(?:$|":"",_+=p.regex.source),p.children?.length){const C=v(p.children.map(A=>u(A,h,w)).filter(Boolean));if(C?.length){const A=p.children.some(Ze=>!Ze.regex||!(Ze.partial??h)),Q=C.length>1||y&&(!_.length||A);_+=Q?y?"(?:$|":"(?:":"",_+=C.join("|"),_+=Q?")":""}}return p.regex&&(_+=y?")":""),w.set(p,_),_},"O"),g=E((p,h)=>{const w=new Map,x=c(p);for(let y=x.length-1;y>=0;y--){const _=u(x[y],h,w);if(!(y>0))return _}return""},"ie"),v=E(p=>Array.from(new Set(p)),"ue"),f=E((p,h,w)=>f.compile(p,w).test(h),"R");f.compile=(p,h)=>{const w=h?.partial??!1,x=g(p,w),y=d(p);return new RegExp(`^(?:${x})$`,y)};var m=f,k=E((p,h)=>{const w=m.compile(p,h),x=`${w.source.slice(0,-1)}[\\\\/]?$`,y=w.flags;return new RegExp(x,y)},"le"),L=k,T=E(p=>{const h=p.map(x=>x.source).join("|")||"$^",w=p[0]?.flags;return new RegExp(h,w)},"ve"),$=T,M=E(p=>Array.isArray(p),"j"),z=E(p=>typeof p=="function","_"),D=E(p=>p.length===0,"he"),Z=(()=>{const{toString:p}=Function.prototype,h=/(?:^\(\s*(?:[^,.()]|\.(?!\.\.))*\s*\)\s*=>|^\s*[a-zA-Z$_][a-zA-Z0-9$_]*\s*=>)/;return w=>(w.length===0||w.length===1)&&h.test(p.call(w))})(),U=E(p=>typeof p=="number","de"),B=E(p=>typeof p=="object"&&p!==null,"xe"),pe=E(p=>p instanceof RegExp,"me"),Ae=(()=>{const p=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return h=>p.test(h.source)})(),he=(()=>{const p=/^[a-zA-Z0-9_-]+$/;return h=>p.test(h.source)&&!h.flags.includes("i")})(),Se=E(p=>typeof p=="string","A"),F=E(p=>p===void 0,"f"),j=E(p=>{const h=new Map;return w=>{const x=h.get(w);if(x!==void 0)return x;const y=p(w);return h.set(w,y),y}},"ye"),G=E((p,h,w={})=>{const x={cache:{},input:p,index:0,indexBacktrackMax:0,options:w,output:[]},y=xe(h)(x),_=Math.max(x.index,x.indexBacktrackMax);if(y&&x.index===p.length)return x.output;throw new Error(`Failed to parse at index ${_}`)},"I"),S=E((p,h)=>M(p)?ye(p,h):Se(p)?lt(p,h):ae(p,h),"i"),ye=E((p,h)=>{const w={};for(const x of p){if(x.length!==1)throw new Error(`Invalid character: "${x}"`);const y=x.charCodeAt(0);w[y]=!0}return x=>{const y=x.input;let _=x.index,C=_;for(;C<y.length&&y.charCodeAt(C)in w;)C+=1;if(C>_){if(!F(h)&&!x.options.silent){const A=y.slice(_,C),Q=z(h)?h(A,y,`${_}`):h;F(Q)||x.output.push(Q)}x.index=C}return!0}},"we"),ae=E((p,h)=>{if(he(p))return lt(p.source,h);{const w=p.source,x=p.flags.replace(/y|$/,"y"),y=new RegExp(w,x);return Ae(p)&&z(h)&&!Z(h)?st(y,h):at(y,h)}},"$e"),st=E((p,h)=>w=>{const x=w.index,y=w.input;p.lastIndex=x;const _=p.exec(y);if(_){const C=p.lastIndex;if(!w.options.silent){const A=h(..._,y,`${x}`);F(A)||w.output.push(A)}return w.index=C,!0}else return!1},"Ee"),at=E((p,h)=>w=>{const x=w.index,y=w.input;if(p.lastIndex=x,p.test(y)){const _=p.lastIndex;if(!F(h)&&!w.options.silent){const C=z(h)?h(y.slice(x,_),y,`${x}`):h;F(C)||w.output.push(C)}return w.index=_,!0}else return!1},"Ce"),lt=E((p,h)=>w=>{const x=w.index,y=w.input;if(y.startsWith(p,x)){if(!F(h)&&!w.options.silent){const _=z(h)?h(p,y,`${x}`):h;F(_)||w.output.push(_)}return w.index+=p.length,!0}else return!1},"F"),ke=E((p,h,w,x)=>{const y=xe(p),_=h>1;return Rt(Ft(Pn(C=>{let A=0;for(;A<w;){const Q=C.index;if(!y(C)||(A+=1,C.index===Q))break}return A>=h},_),x))},"k"),X=E((p,h)=>ke(p,0,1,h),"L"),te=E((p,h)=>ke(p,0,1/0,h),"$"),Ce=E((p,h)=>ke(p,1,1/0,h),"Re"),re=E((p,h)=>{const w=p.map(xe);return Rt(Ft(Pn(x=>{for(let y=0,_=w.length;y<_;y++)if(!w[y](x))return!1;return!0}),h))},"x"),ie=E((p,h)=>{const w=p.map(xe);return Rt(Ft(x=>{for(let y=0,_=w.length;y<_;y++)if(w[y](x))return!0;return!1},h))},"p"),Pn=E((p,h=!0,w=!1)=>{const x=xe(p);return h?y=>{const _=y.index,C=y.output.length,A=x(y);return!A&&!w&&(y.indexBacktrackMax=Math.max(y.indexBacktrackMax,y.index)),(!A||w)&&(y.index=_,y.output.length!==C&&(y.output.length=C)),A}:x},"q"),Ft=E((p,h)=>{const w=xe(p);return h?x=>{if(x.options.silent)return w(x);const y=x.output.length;if(w(x)){const _=x.output.splice(y,1/0),C=h(_);return F(C)||x.output.push(C),!0}else return!1}:w},"B"),Rt=(()=>{let p=0;return h=>{const w=xe(h),x=p+=1;return y=>{var _;if(y.options.memoization===!1)return w(y);const C=y.index,A=(_=y.cache)[x]||(_[x]={indexMax:-1,queue:[]}),Q=A.queue;if(C<=A.indexMax){const We=A.store||(A.store=new Map);if(Q.length){for(let He=0,Ai=Q.length;He<Ai;He+=2){const Ii=Q[He*2],Hi=Q[He*2+1];We.set(Ii,Hi)}Q.length=0}const ue=We.get(C);if(ue===!1)return!1;if(U(ue))return y.index=ue,!0;if(ue)return y.index=ue.index,ue.output?.length&&y.output.push(...ue.output),!0}const Ze=y.output.length,Di=w(y);if(A.indexMax=Math.max(A.indexMax,C),Di){const We=y.index,ue=y.output.length;if(ue>Ze){const He=y.output.slice(Ze,ue);Q.push(C,{index:We,output:He})}else Q.push(C,We);return!0}else return Q.push(C,!1),!1}}})(),Mn=E(p=>{let h;return w=>(h||(h=xe(p())),h(w))},"G"),xe=j(p=>{if(z(p))return D(p)?Mn(p):p;if(Se(p)||pe(p))return S(p);if(M(p))return re(p);if(B(p))return ie(Object.values(p));throw new Error("Invalid rule")}),Le=E(p=>p,"d"),Ro=E(p=>typeof p=="string","ke"),zo=E(p=>{const h=new WeakMap,w=new WeakMap;return(x,y)=>{const _=y?.partial?w:h,C=_.get(x);if(C!==void 0)return C;const A=p(x,y);return _.set(x,A),A}},"Be"),Do=E(p=>{const h={},w={};return(x,y)=>{const _=y?.partial?w:h;return _[x]??(_[x]=p(x,y))}},"Pe"),Ao=S(/\\./,Le),Io=S(/./,Le),Ho=S(/\*\*\*+/,"*"),Bo=S(/([^/{[(!])\*\*/,(p,h)=>`${h}*`),jo=S(/(^|.)\*\*(?=[^*/)\]}])/,(p,h)=>`${h}*`),Oo=te(ie([Ao,Ho,Bo,jo,Io])),qo=Oo,Uo=E(p=>G(p,qo,{memoization:!1}).join(""),"Ie"),Vo=Uo,Fn="abcdefghijklmnopqrstuvwxyz",No=E(p=>{let h="";for(;p>0;){const w=(p-1)%26;h=Fn[w]+h,p=Math.floor((p-1)/26)}return h},"Le"),Rn=E(p=>{let h=0;for(let w=0,x=p.length;w<x;w++)h=h*26+Fn.indexOf(p[w])+1;return h},"V"),zt=E((p,h)=>{if(h<p)return zt(h,p);const w=[];for(;p<=h;)w.push(p++);return w},"b"),Zo=E((p,h,w)=>zt(p,h).map(x=>String(x).padStart(w,"0")),"qe"),zn=E((p,h)=>zt(Rn(p),Rn(h)).map(No),"W"),W=E(p=>({partial:!1,regex:new RegExp(p,"s"),children:[]}),"c"),Ne=E(p=>({children:p}),"y"),Ie=(()=>{const p=E((h,w,x)=>{if(x.has(h))return;x.add(h);const{children:y}=h;if(!y.length)y.push(w);else for(let _=0,C=y.length;_<C;_++)p(y[_],w,x)},"e");return h=>{if(!h.length)return Ne([]);for(let w=h.length-1;w>=1;w--){const x=new Set,y=h[w-1],_=h[w];p(y,_,x)}return h[0]}})(),_e=E(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),Wo=S(/\\./,W),Go=S(/[$.*+?^(){}[\]\|]/,p=>W(`\\${p}`)),Yo=S(/[\\\/]/,_e),Xo=S(/[^$.*+?^(){}[\]\|\\\/]+/,W),Qo=S(/^(?:!!)*!(.*)$/,(p,h)=>W(`(?!^${qn.compile(h).source}$).*?`)),Jo=S(/^(!!)+/),Ko=ie([Qo,Jo]),ei=S(/\/(\*\*\/)+/,()=>Ne([Ie([_e(),W(".+?"),_e()]),_e()])),ti=S(/^(\*\*\/)+/,()=>Ne([W("^"),Ie([W(".*?"),_e()])])),ni=S(/\/(\*\*)$/,()=>Ne([Ie([_e(),W(".*?")]),W("$")])),ri=S(/\*\*/,()=>W(".*?")),Dn=ie([ei,ti,ni,ri]),oi=S(/\*\/(?!\*\*\/|\*$)/,()=>Ie([W("[^\\\\/]*?"),_e()])),ii=S(/\*/,()=>W("[^\\\\/]*")),An=ie([oi,ii]),In=S("?",()=>W("[^\\\\/]")),si=S("[",Le),ai=S("]",Le),li=S(/[!^]/,"^\\\\/"),ci=S(/[a-z]-[a-z]|[0-9]-[0-9]/i,Le),di=S(/\\./,Le),pi=S(/[$.*+?^(){}[\|]/,p=>`\\${p}`),hi=S(/[\\\/]/,"\\\\/"),ui=S(/[^$.*+?^(){}[\]\|\\\/]+/,Le),gi=ie([di,pi,hi,ci,ui]),Hn=re([si,X(li),te(gi),ai],p=>W(p.join(""))),mi=S("{","(?:"),fi=S("}",")"),vi=S(/(\d+)\.\.(\d+)/,(p,h,w)=>Zo(+h,+w,Math.min(h.length,w.length)).join("|")),wi=S(/([a-z]+)\.\.([a-z]+)/,(p,h,w)=>zn(h,w).join("|")),bi=S(/([A-Z]+)\.\.([A-Z]+)/,(p,h,w)=>zn(h.toLowerCase(),w.toLowerCase()).join("|").toUpperCase()),yi=ie([vi,wi,bi]),Bn=re([mi,yi,fi],p=>W(p.join(""))),ki=S("{"),xi=S("}"),_i=S(","),$i=S(/\\./,W),Ei=S(/[$.*+?^(){[\]\|]/,p=>W(`\\${p}`)),Si=S(/[\\\/]/,_e),Ci=S(/[^$.*+?^(){}[\]\|\\\/,]+/,W),Li=Mn(()=>On),Ti=S("",()=>W("(?:)")),Pi=Ce(ie([Dn,An,In,Hn,Bn,Li,$i,Ei,Si,Ci]),Ie),jn=ie([Pi,Ti]),On=re([ki,X(re([jn,te(re([_i,jn]))])),xi],Ne),Mi=te(ie([Ko,Dn,An,In,Hn,Bn,On,Wo,Go,Yo,Xo]),Ie),Fi=Mi,Ri=E(p=>G(p,Fi,{memoization:!1})[0],"kr"),zi=Ri,Dt=E((p,h,w)=>Dt.compile(p,w).test(h),"N");Dt.compile=(()=>{const p=Do((w,x)=>L(zi(Vo(w)),x)),h=zo((w,x)=>$(w.map(y=>p(y,x))));return(w,x)=>Ro(w)?p(w,x):h(w,x)})();var qn=Dt;return l(a)})();return t.default||t},"_lazyMatch"),It;const pl=E((t,e)=>(It||(It=vr(),vr=null),It(t,e)),"default");var hl=Object.defineProperty,ul=Cn((t,e)=>hl(t,"name",{value:e,configurable:!0}),"t$1");const gl=/^[A-Z]:\//i,De=ul((t="")=>t&&t.replaceAll("\\","/").replace(gl,e=>e.toUpperCase()),"normalizeWindowsPath");var ml=Object.defineProperty,ne=Cn((t,e)=>ml(t,"name",{value:e,configurable:!0}),"r");const fl=/^[/\\]{2}/,vl=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,Co=/^[A-Z]:$/i,wr=/^\/([A-Z]:)?$/i,wl=/.(\.[^./]+)$/,bl=/^[/\\]|^[a-z]:[/\\]/i,yl=ne(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),Lo=ne((t,e)=>{let n="",r=0,o=-1,i=0,s;for(let l=0;l<=t.length;++l){if(l<t.length)s=t[l];else{if(s==="/")break;s="/"}if(s==="/"){if(!(o===l-1||i===1))if(i===2){if(n.length<2||r!==2||!n.endsWith(".")||n.at(-2)!=="."){if(n.length>2){const a=n.lastIndexOf("/");a===-1?(n="",r=0):(n=n.slice(0,a),r=n.length-1-n.lastIndexOf("/")),o=l,i=0;continue}else if(n.length>0){n="",r=0,o=l,i=0;continue}}e&&(n+=n.length>0?"/..":"..",r=2)}else n.length>0?n+=`/${t.slice(o+1,l)}`:n=t.slice(o+1,l),r=l-o-1;o=l,i=0}else s==="."&&i!==-1?++i:i=-1}return n},"normalizeString"),tt=ne(t=>vl.test(t),"isAbsolute"),yt=ne(function(t){if(t.length===0)return".";t=De(t);const e=fl.exec(t),n=tt(t),r=t.at(-1)==="/";return t=Lo(t,!n),t.length===0?n?"/":r?"./":".":(r&&(t+="/"),Co.test(t)&&(t+="/"),e?n?`//${t}`:`//./${t}`:n&&!tt(t)?`/${t}`:t)},"normalize");ne((...t)=>{let e="";for(const n of t)if(n)if(e.length>0){const r=e[e.length-1]==="/",o=n[0]==="/";r&&o?e+=n.slice(1):e+=r||o?n:`/${n}`}else e+=n;return yt(e)},"join");const kt=ne(function(...t){t=t.map(r=>De(r));let e="",n=!1;for(let r=t.length-1;r>=-1&&!n;r--){const o=r>=0?t[r]:yl();!o||o.length===0||(e=`${o}/${e}`,n=tt(o))}return e=Lo(e,!n),n&&!tt(e)?`/${e}`:e.length>0?e:"."},"resolve");ne(function(t){return De(t)},"toNamespacedPath");const kl=ne(function(t){return wl.exec(De(t))?.[1]??""},"extname");ne(function(t,e){const n=kt(t).replace(wr,"$1").split("/"),r=kt(e).replace(wr,"$1").split("/");if(r[0][1]===":"&&n[0][1]===":"&&n[0]!==r[0])return r.join("/");const o=[...n];for(const i of o){if(r[0]!==i)break;n.shift(),r.shift()}return[...n.map(()=>".."),...r].join("/")},"relative");const xl=ne(t=>{const e=De(t).replace(/\/$/,"").split("/").slice(0,-1);return e.length===1&&Co.test(e[0])&&(e[0]+="/"),e.join("/")||(tt(t)?"/":".")},"dirname");ne(function(t){const e=[t.root,t.dir,t.base??t.name+t.ext].filter(Boolean);return De(t.root?kt(...e):e.join("/"))},"format");const _l=ne((t,e)=>{const n=De(t).split("/").pop();return e&&n.endsWith(e)?n.slice(0,-e.length):n},"basename");ne(function(t){const e=bl.exec(t)?.[0]?.replaceAll("\\","/")??"",n=_l(t),r=kl(n);return{base:n,dir:xl(t),ext:r,name:n.slice(0,n.length-r.length),root:e}},"parse");ne((t,e)=>pl(e,yt(t)),"matchesGlob");var $l=Object.defineProperty,de=b((t,e)=>$l(t,"name",{value:e,configurable:!0}),"e$1");const Qt="/",br=":",El="at ",Sl=/https?:\/\/[^\s)]+/g,Cl=/file:\/\//g,To=/\/@fs\//g,Ll=new Set([".cjs",".js",".jsx",".mjs",".svelte",".ts",".tsx",".vue"]),Tl=new Set(["<anonymous>","<unknown>","native"]),Pl=de(t=>{const e=t.trim();return!e.startsWith(El)||!([...Ll].some(n=>e.includes(n))||[...Tl].some(n=>e.includes(n)))?!1:/\([^)]*:\d+:\d+\)/.test(e)||/\([^)]*:\d+\)/.test(e)||/[^(\s][^:]*:\d+:\d+/.test(e)||/[^(\s][^:]*:\d+/.test(e)||e.includes("native")||e.includes("<unknown>")},"isValidStackFrame"),Ml=de(t=>(t=t.replaceAll(To,Qt),t=t.replaceAll(Cl,""),t.includes("<unknown>")?t.trim()||"":t.trim()&&!Pl(t)?"":t),"cleanStackLine"),Fl=de((t,e)=>{try{const{baseUrl:n,col:r,line:o}=Rl(t),i=zl(n,e);return Dl(i,o,r)}catch(n){return console.warn("Failed to absolutize URL:",t,n),t}},"absolutizeUrl"),Rl=de(t=>{const e=t.match(/:(\d+)(?::(\d+))?$/),n=e?.[1],r=e?.[2];return{baseUrl:e?t.slice(0,-e[0].length):t,col:r,line:n}},"parseUrlWithLocation"),zl=de((t,e)=>{const n=new URL(t);let r=decodeURIComponent(n.pathname||"");return r=r.replaceAll(To,Qt),kt(e,r.startsWith(Qt)?r.slice(1):r)},"urlToAbsolutePath"),Dl=de((t,e,n)=>{if(!e)return t;const r=n?`${br}${n}`:"";return`${t}${br}${e}${r}`},"formatAbsolutePath"),Ln=de(t=>t&&t.replaceAll(`\r
1713
1755
  `,`
1714
1756
  `).replaceAll("\r",`
1715
- `).split(/\n/).map(Fa).filter(e=>e.trim()!=="").join(`
1716
- `),"cleanErrorStack"),Da=re(t=>{const e=typeof t=="string"?t:t.message||String(t);return ho(e)},"cleanErrorMessage"),Ba=re(t=>t instanceof AggregateError||t&&typeof t=="object"&&"errors"in t&&Array.isArray(t.errors),"isAggregateError"),ja=re(t=>Ba(t)?t.errors:[t],"extractErrors"),at=re((t,e)=>t&&String(t).replaceAll(La,r=>za(r,e)),"absolutizeStackUrls");var Oa=Object.defineProperty,qa=S((t,e)=>Oa(t,"name",{value:e,configurable:!0}),"a$4");const Va=qa(t=>{if(!t.includes("[vue/compiler-sfc]"))return;let e="",r=0,n=0;const o=/\((\d+):(\d+)\)/,i=t.match(o);i&&i[1]&&i[2]&&(r=Number.parseInt(i[1],10),n=Number.parseInt(i[2],10));const a=/(\S+\.vue)/,l=t.match(a);l&&l[1]&&(e=l[1]||"");const s=t.split(`
1717
- `)[0]||t;if(e&&r>0&&n>0)return{column:n,line:r,message:s,originalFilePath:e}},"parseVueCompilationError");var Za=Object.defineProperty,Jr=S((t,e)=>Za(t,"name",{value:e,configurable:!0}),"a$3");const Ua=Jr(t=>{const e=/<style\b[^>]*>[\s\S]*?<\/style>/gi,r=/<script\b[^>]*>[\s\S]*?<\/script>/gi,n=/<template\b[^>]*>[\s\S]*?<\/template>/gi,o=/style="([^"]*)"/g;let i=t.replaceAll(e,"").replaceAll(r,"").replaceAll(n,"").replaceAll("<!--$?-->","").replaceAll("<!--/$-->","");return i=i.replaceAll(o,(a,l)=>`style="${(l.trim().endsWith(";")?l:`${l};`).replaceAll(" ","")}"`),i},"removeStyleAndDataAttributes"),Na="https://react.dev/link/hydration-mismatch",Wa=Jr(t=>{const[e,r]=t.message.split(Na);if(e){const[i]=e?.split(`
1718
-
1719
- `);t.message=i.replace(" This can happen if a SSR-ed Client Component used:","")}const n=[];for(const i of Ua(r?.trim()||"").split(`
1720
- `)||[])i.startsWith("+ ")?n.push(`[!code ++] ${i.slice(1)}`):i.startsWith("- ")?n.push(`[!code --] ${i.slice(1)}`):i.includes(" ...")||n.push(i);let o=n.findIndex(i=>i.startsWith("[!code ++]"));if(o===-1&&(o=n.findIndex(i=>i.startsWith("[!code --]"))),o!==-1)return n.slice(Math.max(0,o-5)).join(`
1721
- `)},"processHydrationDiff");var Ga=Object.defineProperty,Ya=S((t,e)=>Ga(t,"name",{value:e,configurable:!0}),"m$1");const Xa=Ya(async(t,e,r)=>{let n=e;if(e.includes("at ")&&!e.includes(`
1722
- at `)&&(n=e.replace(/^(Error:.*?)at /,`$1
1757
+ `).split(/\n/).map(Ml).filter(e=>e.trim()!=="").join(`
1758
+ `),"cleanErrorStack"),Al=de(t=>{const e=typeof t=="string"?t:t.message||String(t);return qi(e)},"cleanErrorMessage"),Il=de(t=>t instanceof AggregateError||t&&typeof t=="object"&&"errors"in t&&Array.isArray(t.errors),"isAggregateError"),Hl=de(t=>Il(t)?t.errors:[t],"extractErrors"),Mt=de((t,e)=>t&&String(t).replaceAll(Sl,n=>Fl(n,e)),"absolutizeStackUrls");var Bl=Object.defineProperty,jl=b((t,e)=>Bl(t,"name",{value:e,configurable:!0}),"a$3");const Ol=jl(t=>{if(!t.includes("[vue/compiler-sfc]"))return;let e="",n=0,r=0;const o=/\((\d+):(\d+)\)/,i=t.match(o);i&&i[1]&&i[2]&&(n=Number.parseInt(i[1],10),r=Number.parseInt(i[2],10));const s=/(\S+\.vue)/,l=t.match(s);l&&l[1]&&(e=l[1]||"");const a=t.split(`
1759
+ `)[0]||t;if(e&&n>0&&r>0)return{column:r,line:n,message:a,originalFilePath:e}},"parseVueCompilationError");var ql=Object.defineProperty,Po=b((t,e)=>ql(t,"name",{value:e,configurable:!0}),"a$2");const Ul=Po(t=>{const e=/<style\b[^>]*>[\s\S]*?<\/style>/gi,n=/<script\b[^>]*>[\s\S]*?<\/script>/gi,r=/<template\b[^>]*>[\s\S]*?<\/template>/gi,o=/style="([^"]*)"/g;let i=t.replaceAll(e,"").replaceAll(n,"").replaceAll(r,"").replaceAll("<!--$?-->","").replaceAll("<!--/$-->","");return i=i.replaceAll(o,(s,l)=>`style="${(l.trim().endsWith(";")?l:`${l};`).replaceAll(" ","")}"`),i},"removeStyleAndDataAttributes"),Vl="https://react.dev/link/hydration-mismatch",Nl=Po(t=>{const[e,n]=t.message.split(Vl);if(e){const[i]=e?.split(`
1760
+
1761
+ `);t.message=i.replace(" This can happen if a SSR-ed Client Component used:","")}const r=[];for(const i of Ul(n?.trim()||"").split(`
1762
+ `)||[])i.startsWith("+ ")?r.push(`[!code ++] ${i.slice(1)}`):i.startsWith("- ")?r.push(`[!code --] ${i.slice(1)}`):i.includes(" ...")||r.push(i);let o=r.findIndex(i=>i.startsWith("[!code ++]"));if(o===-1&&(o=r.findIndex(i=>i.startsWith("[!code --]"))),o!==-1)return r.slice(Math.max(0,o-5)).join(`
1763
+ `)},"processHydrationDiff");var Zl=Object.defineProperty,Wl=b((t,e)=>Zl(t,"name",{value:e,configurable:!0}),"m$1");const Gl=Wl(async(t,e,n)=>{let r=e;if(e.includes("at ")&&!e.includes(`
1764
+ at `)&&(r=e.replace(/^(Error:.*?)at /,`$1
1723
1765
  at `).replaceAll(/at ([^<\s]+)\s*(<[^>]+>:\d+:\d+)/g,`
1724
1766
  at $1 $2`).replaceAll(/at ([^<\s]+)\s*(<unknown>:\d+:\d+)/g,`
1725
1767
  at $1 $2`).replaceAll(/at ([^<\s]+)\s*<([^>]+)>:\d+:\d+/g,`
1726
- at $1 <$2>:d+:d+`),n=n.replaceAll(/at ([^<\s]+)(?=\s*at|$)/g,`
1727
- at $1 <unknown>:0:0`)),!n.includes("<unknown>")&&!n.includes("react-dom")&&!n.includes("react"))return n;const o=Ee({stack:n}),i=await Promise.all(o.map(async a=>{const{file:l}=a,s=a.line??0,p=a.column??0;if(l&&l!=="<unknown>"&&s>0&&p>0&&!l.includes("react-dom")&&!l.includes("react"))return a;if(!l||s<=0||p<=0){if((l==="<unknown>"||l&&(l.includes("react-dom")||l.includes("react")))&&a.methodName){const{methodName:d}=a,g={batchedUpdates:"Batch Updates",dispatchEvent:"Event System",executeDispatch:"Event Dispatcher",processDispatchQueue:"Event Queue",runWithFiber:"Fiber Reconciliation"};for(const[f,y]of Object.entries(g))if(d.includes(f))return{...a,column:0,file:`[React] ${y}`,line:0};if(!d.includes("$")&&!d.includes("anonymous")){const f=fe(d),y=De(t,f);if(y){const b=await xt(t,y,"",1,1);if(b.originalFilePath)return{...a,column:b.originalFileColumn||1,file:b.originalFilePath,line:b.originalFileLine||1}}}}return a}try{const d=fe(l),g=De(t,d);if(!g)return a;const f=await xt(t,g,l,s,p);return{...a,column:f.originalFileColumn,file:f.originalFilePath,line:f.originalFileLine}}catch{return a}}));return Cr(i,{header:r})},"remapStackToOriginal");var Qa=Object.defineProperty,qe=S((t,e)=>Qa(t,"name",{value:e,configurable:!0}),"t");const Ja=qe(t=>!!(t&&Array.isArray(t.sources)&&Array.isArray(t.sourcesContent)),"isValidSourceMap"),gt=qe(t=>typeof t=="string"?t:void 0,"getSourceContent"),Ka=qe((t,e)=>t===e||t.endsWith(e)||e.endsWith(t),"isPartialMatch"),es=qe((t,e)=>{if(!t||t.length===0)return-1;const r=t.indexOf(e);if(r!==-1)return r;if(!(e.includes("\\")||e.includes("/")))return-1;const n=Je(e),o=t.indexOf(n);if(o!==-1)return o;for(const[i,a]of t.entries()){if(!a||typeof a!="string")continue;const l=Je(a);if(Ka(l,n))return i}return-1},"findSourceIndex"),Er=qe((t,e)=>{if(!Ja(t))return;if(!e&&t.sourcesContent?.[0])return gt(t.sourcesContent[0]);const r=es(t.sources,e||"");return r>=0&&t.sourcesContent?.[r]?gt(t.sourcesContent[r]):t.sourcesContent?.[0]?gt(t.sourcesContent[0]):void 0},"getSourceFromMap");var ts=Object.defineProperty,rs=S((t,e)=>ts(t,"name",{value:e,configurable:!0}),"f");const Sr=rs(async(t,e,r,n)=>{let o,i;if(e&&typeof e=="object"&&"transformResult"in e&&e.transformResult){const l=e.transformResult;l.code&&!i&&(i=l.code),l.map&&!o&&(o=Er(l.map,r))}const a=e&&typeof e=="object"&&("id"in e&&e.id||"url"in e&&e.url)?"id"in e&&e.id||"url"in e&&e.url:n[0];if(a&&(!o||!i))try{const l=await t.transformRequest(a);if(l?.code&&!i&&(i=l.code),l?.map&&!o){const{map:s}=l;typeof s=="object"&&s!==null&&"mappings"in s&&s.mappings!==""&&(o=Er(s,r))}}catch{}if(!o&&e&&typeof e=="object"&&"file"in e&&e.file)try{o=await Lr(e.file,"utf8")}catch{}return{compiledSourceText:i,originalSourceText:o}},"retrieveSourceTexts");var ns=Object.defineProperty,os=S((t,e)=>ns(t,"name",{value:e,configurable:!0}),"a$1");const is=os((t={})=>{const{classActivePre:e="has-diff",classLineAdd:r="diff add",classLineRemove:n="diff remove"}=t;return{code(o){this.addClassToHast(this.pre,e),o.children.filter(i=>i.type==="element").forEach(i=>{for(const a of i.children){if(a.type!=="element")continue;const l=a.children[0];l.type==="text"&&(l.value.startsWith("[!code ++]")&&(l.value=l.value.slice(10),this.addClassToHast(i,r)),l.value.startsWith("[!code --]")&&(l.value=l.value.slice(10),this.addClassToHast(i,n)))}})},name:"shiki-diff"}},"shikiDiffTransformer");var as=Object.defineProperty,ss=S((t,e)=>as(t,"name",{value:e,configurable:!0}),"r");const ls=ss((t,e)=>!e||t.includes("?")?t:t+e,"addQueryToUrl");var cs=Object.defineProperty,ds=S((t,e)=>cs(t,"name",{value:e,configurable:!0}),"e");const ps=ds(t=>{try{return new URL(t).search}catch{return""}},"extractQueryFromHttpUrl");var hs=Object.defineProperty,Le=S((t,e)=>hs(t,"name",{value:e,configurable:!0}),"E$1");const us=Le(t=>Array.isArray(t)&&Ai(t)?Ii(t).map(e=>({message:e.message||"ESBuild error",name:e.name||"Error",stack:e.stack||""})):ja(t),"extractIndividualErrors"),gs=Le(t=>{const e=Ee(t,{frameLimit:10}),r=e?.find(n=>n?.file?.startsWith("http"))||e?.[0];return{compiledColumn:r?.column??0,compiledFilePath:r?.file??"",compiledLine:r?.line??0}},"extractLocationFromStack"),ms=Le(async(t,e,r,n,o,i,a=0,l)=>{const s=o?.originalFilePath||e,p=o?.line??n,d=o?.column??r;if(s){let g=s,f=s;if(s.startsWith("http://")||s.startsWith("https://"))try{g=new URL(s).pathname,g.startsWith("/")&&(g=g.slice(1));const T=t.config.root||process.cwd();f=g.startsWith("/")?g:`${T}/${g}`}catch{console.warn("Failed to parse HTTP URL:",s)}const y=fe(g),b=De(t,y);if(b)try{const T=await xt(t,b,e||l||g,p,d,i,a),M=f||T.originalFilePath;return{originalFileColumn:T.originalFileColumn,originalFileLine:T.originalFileLine,originalFilePath:M}}catch{console.warn("⚠️ Source map resolution failed, using estimation")}let m,k=d;return p>=20?m=Math.max(1,Math.round(p*.5)):p>15?m=Math.max(1,Math.round(p*.6)):p>10?m=Math.max(1,p-8):m=Math.max(1,p-3),d>=10||d>7?k=Math.max(0,d-1):d>5&&(k=Math.max(0,d)),{originalFileColumn:k,originalFileLine:m,originalFilePath:f||s}}return{originalFileColumn:d,originalFileLine:p,originalFilePath:s}},"resolveOriginalLocationInfo"),fs=Le((t,e,r,n,o,i)=>({compiledCodeFrameContent:void 0,compiledColumn:t,compiledFilePath:e,compiledLine:r,fixPrompt:"",originalCodeFrameContent:void 0,originalFileColumn:n,originalFileLine:o,originalFilePath:i,originalSnippet:""}),"createEmptyResult"),vs=Le(async(t,e,r,n,o,i)=>{let a,l;const s=Ce(r)||"text",p=Ce(n)||s,d=[],g=new Set([p,s]);g.has("svelte")&&d.push(import("@shikijs/langs/svelte")),g.has("vue")&&d.push(import("@shikijs/langs/vue"));const f=await Zr(d),y={themes:{dark:"github-dark-default",light:"github-light"}};if(t&&t.trim())try{a=f.codeToHtml(t,{...y,lang:s,transformers:[mr([{classes:["error-line"],line:o}])]})}catch{}if(e&&e.trim())try{l=f.codeToHtml(e,{...y,lang:p,transformers:[mr([{classes:["error-line"],line:i}])]})}catch{}return{compiledCodeFrameContent:l,originalCodeFrameContent:a}},"generateSyntaxHighlightedFrames"),ws=Le(async(t,e,r=0,n,o,i)=>{const a=n==="vue"&&t?.message?Va(t.message):void 0,l=us(t),s=l[0]||t,p=n==="react"&&t.message&&(t.message.toLowerCase().includes("hydration")||t.message.toLowerCase().includes("hydrating"));let d="";if(i&&i.length>1)for(const P of i.slice(1)){const A=P.stack||"",q=Ee({stack:A},{frameLimit:10})?.find($=>$?.file?.startsWith("http"));if(q?.file&&(d=ps(q.file),d))break}const g=Da(s),f=At(s.stack||""),y=await Xa(e,f,{message:g,name:s.name});let b,m,k;if(o?.file&&o?.line&&o?.column)b=o.column,m=o.file,k=o.line;else{const P=gs(s);if(b=P.compiledColumn,m=P.compiledFilePath,k=P.compiledLine,m&&!m.startsWith("http")){const A=e.config.root;let q=m;m.startsWith(A)&&(q=m.slice(A.length)),q.startsWith("/")||(q=`/${q}`);const $=e.config.server.port||e.config.preview?.port||5173,ke=e.config.server.host||e.config.preview?.host||"localhost";let le=`${e.config.server.https?"https":"http"}://${ke}:${$}${q}`;d&&(le=ls(le,d)),m=le}}if(p){const P=Wa(t);if(P){const A=await Zr();return{errorCount:1,fixPrompt:Kt({applicationType:void 0,error:s,file:{file:m,language:"jsx",line:k,snippet:P}}),message:s.message,originalCodeFrameContent:A.codeToHtml(P,{lang:m?Ce(m):"text",themes:{dark:"github-dark-default",light:"github-light"},transformers:[is()]}),originalFileColumn:b,originalFileLine:k,originalFilePath:m,originalSnippet:P,originalStack:s.stack||""}}}let T=o?.file||m;if(!o?.file&&s.stack){const P=Ee(s,{frameLimit:10})?.find(A=>A?.file&&!A.file.startsWith("http")&&!A.file.includes("node_modules")&&!A.file.includes(".vite")&&A.file.includes(".tsx"));P?.file&&(T=P.file)}let{originalFileColumn:M,originalFileLine:C,originalFilePath:R}=await ms(e,T,b,k,a,s.message,r,m);const D=o?.plugin;let X="",O="",Q,N;try{const[P,A]=await Promise.all([De(e,fe(m)),De(e,fe(R))]);if(!P&&!A)return fs(b,m,k,M,C,R);const q=m.startsWith("http")?m.replace(/^https?:\/\/[^/]+/,"").replace(/^\//,""):m,$=R.startsWith("http")?R.replace(/^https?:\/\/[^/]+/,"").replace(/^\//,""):R,ke=P||A;if(ke?.transformResult?.code&&(N=ke.transformResult.code),A?.transformResult?.map&&!Q){const V=A.transformResult.map;try{const G=V.sourcesContent?.[0];G&&(Q=G)}catch(G){console.warn("Failed to get original source from source map:",G)}}const[le,Ze]=await Promise.all([!N&&P?Sr(e,P,q,fe(q)):Promise.resolve({compiledSourceText:void 0,originalSourceText:void 0}),!Q&&A?Sr(e,A,$,fe($)):Promise.resolve({compiledSourceText:void 0,originalSourceText:void 0})]);if(!N&&le.compiledSourceText&&({compiledSourceText:N}=le),!Q&&Ze.originalSourceText&&({originalSourceText:Q}=Ze),Q){if(N&&C<=0&&k>0){const V=Xi(N,k,b,Q);V&&(C=V.line,M=V.column)}try{X=Jt(Q,{start:{column:Math.max(1,M),line:Math.max(1,C)}},{showGutter:!1})}catch{X=Q?.slice(0,500)||""}}const Ue=N&&k>0,Ne=C>0&&M>0;let ce=!1;if(Ue&&k>0&&s.message&&N){const V=N.split(`
1728
- `)[k-1];if(V&&b<=V.length){const G=s.message,ge=Math.max(0,b-1),J=new Set(V.slice(Math.max(0,ge)));ce=J.has("new Error(")||J.has("throw new Error")||J.has("throw ")||J.has(G.slice(0,20)),!ce&&Ne&&(R.includes(".svelte")||R.includes(".vue")||R.includes(".astro")||m.includes(".js")||m.includes(".ts"))&&(ce=!0)}}if(Ue&&ce&&N){const V=N.split(`
1729
- `),G=V.length,ge=Math.min(k,G)||Math.max(1,G-2),J=V[ge-1]?Math.min(b||1,V[ge-1]?.length||1):1;try{O=Jt(N,{start:{column:J,line:ge}},{showGutter:!1})}catch(K){console.warn("Compiled codeFrame failed:",K),O=N?.slice(0,500)||""}}}catch(P){console.warn("Source retrieval failed:",P)}const{compiledCodeFrameContent:st,originalCodeFrameContent:lt}=await vs(X,O,R,m,C,k);let ue=X;if(!ue&&Q){const P=Q.split(`
1730
- `),A=Math.max(0,C-3),q=Math.min(P.length,C+2);ue=P.slice(A,q).join(`
1731
- `)}ue||(ue=O||`Error at line ${C} in ${R}`);const Ve=Kt({applicationType:void 0,error:t,file:{file:R,language:Ce(R),line:C,snippet:ue}});return{compiledCodeFrameContent:st,compiledColumn:b,compiledFilePath:m,compiledLine:k,compiledStack:Cr(Ee({message:g,name:s.name,stack:f}),{header:{message:g,name:s.name}}),errorCount:l.length,fixPrompt:Ve,originalCodeFrameContent:lt,originalFileColumn:M,originalFileLine:C,originalFilePath:R,originalSnippet:X,originalStack:y||f,plugin:D}},"buildExtendedErrorData");var bs=Object.defineProperty,ys=S((t,e)=>bs(t,"name",{value:e,configurable:!0}),"a");const ks=ys((t,e)=>{const r=e.map(n=>{const o=n.charAt(0).toUpperCase()+n.slice(1);return`
1732
- var orig${o} = console.${n};
1733
-
1734
- console.${n} = function(...args) {
1768
+ at $1 <$2>:d+:d+`),r=r.replaceAll(/at ([^<\s]+)(?=\s*at|$)/g,`
1769
+ at $1 <unknown>:0:0`)),!r.includes("<unknown>")&&!r.includes("react-dom")&&!r.includes("react"))return r;const o=Oe({stack:r}),i=await Promise.all(o.map(async s=>{const{file:l}=s,a=s.line??0,c=s.column??0;if(l&&l!=="<unknown>"&&a>0&&c>0&&!l.includes("react-dom")&&!l.includes("react"))return s;if(!l||a<=0||c<=0){if((l==="<unknown>"||l&&(l.includes("react-dom")||l.includes("react")))&&s.methodName){const{methodName:d}=s,u={batchedUpdates:"Batch Updates",dispatchEvent:"Event System",executeDispatch:"Event Dispatcher",processDispatchQueue:"Event Queue",runWithFiber:"Fiber Reconciliation"};for(const[g,v]of Object.entries(u))if(d.includes(g))return{...s,column:0,file:`[React] ${v}`,line:0};if(!d.includes("$")&&!d.includes("anonymous")){const g=Te(d),v=et(t,g);if(v){const f=await Xt(t,v,"",1,1);if(f.originalFilePath)return{...s,column:f.originalFileColumn||1,file:f.originalFilePath,line:f.originalFileLine||1}}}}return s}try{const d=Te(l),u=et(t,d);if(!u)return s;const g=await Xt(t,u,l,a,c);return{...s,column:g.originalFileColumn,file:g.originalFilePath,line:g.originalFileLine}}catch{return s}}));return xr(i,{header:n})},"remapStackToOriginal");var Yl=Object.defineProperty,it=b((t,e)=>Yl(t,"name",{value:e,configurable:!0}),"t");const Xl=it(t=>!!(t&&Array.isArray(t.sources)&&Array.isArray(t.sourcesContent)),"isValidSourceMap"),Ht=it(t=>typeof t=="string"?t:void 0,"getSourceContent"),Ql=it((t,e)=>t===e||t.endsWith(e)||e.endsWith(t),"isPartialMatch"),Jl=it((t,e)=>{if(!t||t.length===0)return-1;const n=t.indexOf(e);if(n!==-1)return n;if(!(e.includes("\\")||e.includes("/")))return-1;const r=yt(e),o=t.indexOf(r);if(o!==-1)return o;for(const[i,s]of t.entries()){if(!s||typeof s!="string")continue;const l=yt(s);if(Ql(l,r))return i}return-1},"findSourceIndex"),yr=it((t,e)=>{if(!Xl(t))return;if(!e&&t.sourcesContent?.[0])return Ht(t.sourcesContent[0]);const n=Jl(t.sources,e||"");return n>=0&&t.sourcesContent?.[n]?Ht(t.sourcesContent[n]):t.sourcesContent?.[0]?Ht(t.sourcesContent[0]):void 0},"getSourceFromMap");var Kl=Object.defineProperty,ec=b((t,e)=>Kl(t,"name",{value:e,configurable:!0}),"f");const kr=ec(async(t,e,n,r)=>{let o,i;if(e&&typeof e=="object"&&"transformResult"in e&&e.transformResult){const l=e.transformResult;l.code&&!i&&(i=l.code),l.map&&!o&&(o=yr(l.map,n))}const s=e&&typeof e=="object"&&("id"in e&&e.id||"url"in e&&e.url)?"id"in e&&e.id||"url"in e&&e.url:r[0];if(s&&(!o||!i))try{const l=await t.transformRequest(s);if(l?.code&&!i&&(i=l.code),l?.map&&!o){const{map:a}=l;typeof a=="object"&&a!==null&&"mappings"in a&&a.mappings!==""&&(o=yr(a,n))}}catch{}if(!o&&e&&typeof e=="object"&&"file"in e&&e.file)try{o=await _r(e.file,"utf8")}catch{}return{compiledSourceText:i,originalSourceText:o}},"retrieveSourceTexts");var tc=Object.defineProperty,nc=b((t,e)=>tc(t,"name",{value:e,configurable:!0}),"a");const rc=nc((t={})=>{const{classActivePre:e="has-diff",classLineAdd:n="diff add",classLineRemove:r="diff remove"}=t;return{code(o){this.addClassToHast(this.pre,e),o.children.filter(i=>i.type==="element").forEach(i=>{for(const s of i.children){if(s.type!=="element")continue;const l=s.children[0];l.type==="text"&&(l.value.startsWith("[!code ++]")&&(l.value=l.value.slice(10),this.addClassToHast(i,n)),l.value.startsWith("[!code --]")&&(l.value=l.value.slice(10),this.addClassToHast(i,r)))}})},name:"shiki-diff"}},"shikiDiffTransformer");var oc=Object.defineProperty,ic=b((t,e)=>oc(t,"name",{value:e,configurable:!0}),"r");const sc=ic((t,e)=>!e||t.includes("?")?t:t+e,"addQueryToUrl");var ac=Object.defineProperty,lc=b((t,e)=>ac(t,"name",{value:e,configurable:!0}),"e");const cc=lc(t=>{try{return new URL(t).search}catch{return""}},"extractQueryFromHttpUrl");var dc=Object.defineProperty,$e=b((t,e)=>dc(t,"name",{value:e,configurable:!0}),"E$1");const pc=$e(t=>Array.isArray(t)&&fa(t)?va(t).map(e=>({message:e.message||"ESBuild error",name:e.name||"Error",stack:e.stack||""})):Hl(t),"extractIndividualErrors"),hc=$e(t=>{const e=Oe(t,{frameLimit:10}),n=e?.find(r=>r?.file?.startsWith("http"))||e?.[0];return{compiledColumn:n?.column??0,compiledFilePath:n?.file??"",compiledLine:n?.line??0}},"extractLocationFromStack"),uc=$e(async(t,e,n,r,o,i,s=0,l)=>{const a=o?.originalFilePath||e,c=o?.line??r,d=o?.column??n;if(a){let u=a,g=a;if(a.startsWith("http://")||a.startsWith("https://"))try{u=new URL(a).pathname,u.startsWith("/")&&(u=u.slice(1));const L=t.config.root||process.cwd();g=u.startsWith("/")?u:`${L}/${u}`}catch{console.warn("Failed to parse HTTP URL:",a)}const v=Te(u),f=et(t,v);if(f)try{const L=await Xt(t,f,e||l||u,c,d,i,s),T=g||L.originalFilePath;return{originalFileColumn:L.originalFileColumn,originalFileLine:L.originalFileLine,originalFilePath:T}}catch{console.warn("⚠️ Source map resolution failed, using estimation")}let m,k=d;return c>=20?m=Math.max(1,Math.round(c*.5)):c>15?m=Math.max(1,Math.round(c*.6)):c>10?m=Math.max(1,c-8):m=Math.max(1,c-3),d>=10||d>7?k=Math.max(0,d-1):d>5&&(k=Math.max(0,d)),{originalFileColumn:k,originalFileLine:m,originalFilePath:g||a}}return{originalFileColumn:d,originalFileLine:c,originalFilePath:a}},"resolveOriginalLocationInfo"),gc=$e((t,e,n,r,o,i)=>({compiledCodeFrameContent:void 0,compiledColumn:t,compiledFilePath:e,compiledLine:n,fixPrompt:"",originalCodeFrameContent:void 0,originalFileColumn:r,originalFileLine:o,originalFilePath:i,originalSnippet:""}),"createEmptyResult"),mc=$e(async(t,e,n,r,o,i)=>{let s,l;const a=qe(n),c=qe(r)||a,d=$e(v=>v.replaceAll(/[&<>"']/g,f=>({'"':"&quot;","&":"&amp;","'":"&#39;","<":"&lt;",">":"&gt;"})[f]||f),"escapeHtml");if(a==="text"&&t&&t.trim()&&(s=`<pre class="shiki"><code>${d(t)}</code></pre>`),c==="text"&&e&&e.trim()&&(l=`<pre class="shiki"><code>${d(e)}</code></pre>`),a==="text"&&c==="text")return{compiledCodeFrameContent:l,originalCodeFrameContent:s};const u=await Or([c,a]),g={themes:{dark:"github-dark-default",light:"github-light"}};if(t&&t.trim())try{s=u.codeToHtml(t,{...g,lang:a,transformers:[ar([{classes:["error-line"],line:o}])]})}catch{}if(e&&e.trim())try{l=u.codeToHtml(e,{...g,lang:c,transformers:[ar([{classes:["error-line"],line:i}])]})}catch{}return{compiledCodeFrameContent:l,originalCodeFrameContent:s}},"generateSyntaxHighlightedFrames"),fc=$e(async(t,e,n=0,r,o,i)=>{const s=r==="vue"&&t?.message?Ol(t.message):void 0,l=pc(t),a=l[0]||t,c=r==="react"&&t.message&&(t.message.toLowerCase().includes("hydration")||t.message.toLowerCase().includes("hydrating"));let d="";if(i&&i.length>1)for(const F of i.slice(1)){const j=F.stack||"",G=Oe({stack:j},{frameLimit:10})?.find(S=>S?.file?.startsWith("http"));if(G?.file&&(d=cc(G.file),d))break}const u=Al(a),g=Ln(a.stack||""),v=await Gl(e,g,{message:u,name:a.name});let f,m,k;if(o?.file&&o?.line&&o?.column)f=o.column,m=o.file,k=o.line;else{const F=hc(a);if(f=F.compiledColumn,m=F.compiledFilePath,k=F.compiledLine,m&&!m.startsWith("http")){const j=e.config.root;let G=m;m.startsWith(j)&&(G=m.slice(j.length)),G.startsWith("/")||(G=`/${G}`);const S=e.config.server.port||e.config.preview?.port||5173,ye=e.config.server.host||e.config.preview?.host||"localhost";let ae=`${e.config.server.https?"https":"http"}://${ye}:${S}${G}`;d&&(ae=sc(ae,d)),m=ae}}if(c){const F=Nl(t);if(F){const j=m?qe(m):"javascript";if(j==="text"){const S=$e(ye=>ye.replaceAll(/[&<>"']/g,ae=>({'"':"&quot;","&":"&amp;","'":"&#39;","<":"&lt;",">":"&gt;"})[ae]||ae),"escapeHtml");return{errorCount:1,fixPrompt:At({applicationType:void 0,error:a,file:{file:m,language:"jsx",line:k,snippet:F}}),message:a.message,originalCodeFrameContent:`<pre class="shiki"><code>${S(F)}</code></pre>`,originalFileColumn:f,originalFileLine:k,originalFilePath:m,originalSnippet:F,originalStack:a.stack||""}}const G=await Or([j]);return{errorCount:1,fixPrompt:At({applicationType:void 0,error:a,file:{file:m,language:"jsx",line:k,snippet:F}}),message:a.message,originalCodeFrameContent:G.codeToHtml(F,{lang:j,themes:{dark:"github-dark-default",light:"github-light"},transformers:[rc()]}),originalFileColumn:f,originalFileLine:k,originalFilePath:m,originalSnippet:F,originalStack:a.stack||""}}}let L=o?.file||m;if(!o?.file&&a.stack){const F=Oe(a,{frameLimit:10})?.find(j=>j?.file&&!j.file.startsWith("http")&&!j.file.includes("node_modules")&&!j.file.includes(".vite")&&j.file.includes(".tsx"));F?.file&&(L=F.file)}let{originalFileColumn:T,originalFileLine:$,originalFilePath:M}=await uc(e,L,f,k,s,a.message,n,m);const z=o?.plugin;let D="",Z="",U,B;try{const[F,j]=await Promise.all([et(e,Te(m)),et(e,Te(M))]);if(!F&&!j)return gc(f,m,k,T,$,M);const G=m.startsWith("http")?m.replace(/^https?:\/\/[^/]+/,"").replace(/^\//,""):m,S=M.startsWith("http")?M.replace(/^https?:\/\/[^/]+/,"").replace(/^\//,""):M,ye=F||j;if(ye?.transformResult?.code&&(B=ye.transformResult.code),j?.transformResult?.map&&!U){const X=j.transformResult.map;try{const te=X.sourcesContent?.[0];te&&(U=te)}catch(te){console.warn("Failed to get original source from source map:",te)}}const[ae,st]=await Promise.all([!B&&F?kr(e,F,G,Te(G)):Promise.resolve({compiledSourceText:void 0,originalSourceText:void 0}),!U&&j?kr(e,j,S,Te(S)):Promise.resolve({compiledSourceText:void 0,originalSourceText:void 0})]);if(!B&&ae.compiledSourceText&&({compiledSourceText:B}=ae),!U&&st.originalSourceText&&({originalSourceText:U}=st),U){if(B&&$<=0&&k>0){const X=Pa(B,k,f,U);X&&($=X.line,T=X.column)}try{D=Vn(U,{start:{column:Math.max(1,T),line:Math.max(1,$)}},{showGutter:!1})}catch{D=U?.slice(0,500)||""}}const at=B&&k>0,lt=$>0&&T>0;let ke=!1;if(at&&k>0&&a.message&&B){const X=B.split(`
1770
+ `)[k-1];if(X&&f<=X.length){const te=a.message,Ce=Math.max(0,f-1),re=new Set(X.slice(Math.max(0,Ce)));ke=re.has("new Error(")||re.has("throw new Error")||re.has("throw ")||re.has(te.slice(0,20)),!ke&&lt&&(M.includes(".svelte")||M.includes(".vue")||M.includes(".astro")||m.includes(".js")||m.includes(".ts"))&&(ke=!0)}}if(at&&ke&&B){const X=B.split(`
1771
+ `),te=X.length,Ce=Math.min(k,te)||Math.max(1,te-2),re=X[Ce-1]?Math.min(f||1,X[Ce-1]?.length||1):1;try{Z=Vn(B,{start:{column:re,line:Ce}},{showGutter:!1})}catch(ie){console.warn("Compiled codeFrame failed:",ie),Z=B?.slice(0,500)||""}}}catch(F){console.warn("Source retrieval failed:",F)}const{compiledCodeFrameContent:pe,originalCodeFrameContent:Ae}=await mc(D,Z,M,m,$,k);let he=D;if(!he&&U){const F=U.split(`
1772
+ `),j=Math.max(0,$-3),G=Math.min(F.length,$+2);he=F.slice(j,G).join(`
1773
+ `)}he||(he=Z||`Error at line ${$} in ${M}`);const Se=At({applicationType:void 0,error:t,file:{file:M,language:qe(M),line:$,snippet:he}});return{compiledCodeFrameContent:pe,compiledColumn:f,compiledFilePath:m,compiledLine:k,compiledStack:xr(Oe({message:u,name:a.name,stack:g}),{header:{message:u,name:a.name}}),errorCount:l.length,fixPrompt:Se,originalCodeFrameContent:Ae,originalFileColumn:T,originalFileLine:$,originalFilePath:M,originalSnippet:D,originalStack:v||g,plugin:z}},"buildExtendedErrorData");var vc=Object.defineProperty,wc=b((t,e)=>vc(t,"name",{value:e,configurable:!0}),"o$1");const bc=wc((t,e,n)=>{const r=e.map(o=>{const i=o.charAt(0).toUpperCase()+o.slice(1);return`
1774
+ var orig${i} = console.${o};
1775
+
1776
+ console.${o} = function(...args) {
1735
1777
  function parseConsoleArgs(args) {
1736
1778
  if (
1737
1779
  args.length > 3 &&
@@ -1782,7 +1824,7 @@ console.${n} = function(...args) {
1782
1824
  }
1783
1825
  } catch {}
1784
1826
 
1785
- return orig${o}.apply(console, args);
1827
+ return orig${i}.apply(console, args);
1786
1828
  };`}).join(`
1787
1829
  `);return String.raw`
1788
1830
  import { createHotContext } from '/@vite/client';
@@ -1826,7 +1868,7 @@ async function sendError(error, loc) {
1826
1868
 
1827
1869
  var causeChain = extractCauseChain(error);
1828
1870
 
1829
- hot.send('${Or}', {
1871
+ hot.send('${Ar}', {
1830
1872
  name: error?.name || null,
1831
1873
  message: error.message,
1832
1874
  stack: error.stack,
@@ -1870,13 +1912,36 @@ window.addEventListener("unhandledrejection", function (evt) {
1870
1912
  sendError(evt.reason);
1871
1913
  });
1872
1914
 
1873
- window.__flameSendError = sendError;
1915
+ // Expose overlay API for manual control
1916
+ window.__visulima_overlay__ = {
1917
+ open: function() {
1918
+ const overlay = globalThis.__v_o__current;
1919
+ if (overlay && overlay.__elements?.root) {
1920
+ overlay.__elements.root.classList.remove("hidden");
1921
+ if (typeof overlay._saveBalloonState === "function") {
1922
+ overlay._saveBalloonState("overlay", "open");
1923
+ }
1924
+ }
1925
+ },
1926
+ close: function() {
1927
+ const overlay = globalThis.__v_o__current;
1928
+ if (overlay && typeof overlay.close === "function") {
1929
+ overlay.close();
1930
+ }
1931
+ },
1932
+ // Get the current overlay instance if available
1933
+ getInstance: function() {
1934
+ return globalThis.__v_o__current || null;
1935
+ },
1936
+ // Send/report an error to the overlay
1937
+ sendError: sendError
1938
+ };
1874
1939
 
1875
1940
  ${r}
1876
- `},"generateClientScript");var xs=Object.defineProperty,se=S((t,e)=>xs(t,"name",{value:e,configurable:!0}),"o");const _s=/\.mdx$/i,$s=1,Es=/Failed to load url\s+(.*?)\s+\(resolved id:/i,Ss=/glob:\s*"(.+)"\s*\(/i,Cs=se(t=>t instanceof Error?t:new Error(String(t)),"createEnhancedError"),Ls=se((t,e)=>{try{t.ssrFixStacktrace(e)}catch(r){console.warn("[visulima:vite-overlay:server] SSR stack trace fix failed:",r)}},"safeSsrFixStacktrace"),Ts=se(t=>{try{const e=Ee(t,{frameLimit:$s})?.[0];return String(e?.file||t.loc?.file||t.id||"")}catch(e){console.warn("[visulima:vite-overlay:server] Stack trace parsing failed:",e);return}},"extractTopFileFromStack"),Ps=se(async t=>{try{return await Lr(t,"utf8")}catch(e){console.warn(`[visulima:vite-overlay:server] Failed to read file ${t}:`,e);return}},"safeReadFile"),Ms=se((t,e)=>{const r=t.id||t.loc?.file||e;r&&_s.test(String(r))&&/syntax error/i.test(t.message)&&(t.hint=t.hint||"MDX detected without an appropriate integration. Install and configure the MDX plugin for Vite/your framework.")},"enhanceMdxError"),Kr=se((t,e)=>{const r=t.split(`
1877
- `),n=r.findIndex(i=>i.includes(e));if(n===-1)return;const o=r[n]||"";return{column:Math.max(0,o.indexOf(e))+1,line:n+1}},"findImportLocation"),Rs=se(async(t,e,r)=>{const n=Es.exec(t.message)?.[1];if(n&&(t.title="Failed to Load Module (SSR)",t.name="FailedToLoadModuleSSR",t.message=`Failed to load module: ${n}`,t.hint="Verify import path, ensure a plugin handles this file type during SSR, and check for typos or missing files.",r&&e)){const o=Kr(r,n);o&&(t.loc={...o,file:e})}},"enhanceFailedLoadError"),Fs=se(async(t,e,r)=>{const n=Ss.exec(t.message)?.[1];if(n&&(t.name="InvalidGlob",t.title="Invalid Glob Pattern",t.message=`Invalid glob pattern: ${n}`,t.hint=t.hint||"Ensure your glob follows the expected syntax and matches existing files. Avoid unintended special characters.",r&&e)){const o=Kr(r,n);o&&(t.loc={...o,file:e})}},"enhanceGlobError"),zs=se(async(t,e)=>{const r=Cs(t);Ls(e,r);const n=Ts(r),o=n?await Ps(n):void 0;return await Rs(r,n,o),Ms(r,n),await Fs(r,n,o),r},"enhanceViteSsrError");var Hs=Object.defineProperty,U=S((t,e)=>Hs(t,"name",{value:e,configurable:!0}),"d");const et=U((t,e,r)=>{try{const n=r instanceof Error?r.message:String(r);t.config.logger.error(`${e}: ${n}`,{clear:!0,timestamp:!0})}catch{}},"logError"),As=U(t=>({error:U(e=>t.config.logger.error(String(e??""),{clear:!0,timestamp:!0}),"error"),log:U(e=>t.config.logger.info(String(e??"")),"log")}),"createDevelopmentLogger"),Is=U(()=>{const t=new Map;return{recentErrors:t,shouldSkip:U(e=>{const r=Date.now(),n=t.get(e)||0;return r-n<si?!0:(t.set(e,r),!1)},"shouldSkip")}},"createRecentErrorTracker"),en=U(t=>`${String(t?.message||"")}
1878
- ${String(t?.stack||"")}`,"createErrorSignature"),Ds=U((t,e,r)=>async n=>{const o=n instanceof Error?n:new Error(String(n?.stack||n));try{t.ssrFixStacktrace(o)}catch(i){et(t,"[visulima:vite-overlay:server] ssrFixStacktrace failed",i)}try{const i=await zs(o,t);Object.assign(o,i)}catch(i){et(t,"[visulima:vite-overlay:server] enhanceViteSsrError failed",i)}try{o.stack=at(At(String(o.stack||"")),e)}catch{}await r.error(go(o)),t.ws.send({err:o,type:"error"})},"createUnhandledRejectionHandler"),Bs=U(async(t,e,r)=>{let n;e.push(fo,Ri(r),vo);for await(const o of e.toSorted((i,a)=>a.priority-i.priority)){const{handle:i,name:a}=o;if(process.env.DEBUG&&console.debug(`Running solution finder: ${a}`),typeof i=="function")try{const l=await i({hint:t?.hint??"",message:t.message,name:t.name,stack:t?.stack},{file:t?.originalFilePath??"",language:Ce(t?.originalFilePath??""),line:t?.originalFileLine??0,snippet:t?.originalSnippet??""});if(l===void 0)continue;const s=await nr(l.header??"");n={body:await nr(l.body??""),header:s};break}catch{continue}}return n},"findSolution"),$t=U(async(t,e,r,n,o,i,a)=>{const l=mo(t);if(l.length===0)throw new Error("No errors found in the error stack");const s=await Promise.all(l.map(async(d,g)=>{let f=n;if(g>0){const m=(d?.stack?.split(`
1879
- `)||[]).find(k=>k.includes("at ")&&!k.includes("node_modules"));if(m){const k=m.match(/at\s+[^(\s]+\s*\(([^:)]+):(\d+):(\d+)\)/)||m.match(/at\s+([^:)]+):(\d+):(\d+)/);if(k){const[,T,M,C]=k;f={column:Number.parseInt(C||"0",10),file:T,line:Number.parseInt(M||"0",10),plugin:n?.plugin}}}}let y=f;g===0&&d?.sourceFile&&(y={...f,file:d.sourceFile});const b=await ws(d,e,g,a,y,l);return{hint:d?.hint,message:d?.message||"",name:d?.name||qr,stack:at(At(d?.stack||""),r),...b}})),p=await Bs(s[0],i,r);return{errors:s,errorType:o,rootPath:r,solution:p}},"buildExtendedError"),It=U(t=>{if(!t)return null;const e=new Error(String(t.message||"Caused by error"));return e.name=String(t.name||"Error"),e.stack=String(t.stack||""),t.cause&&(e.cause=It(t.cause)),e},"reconstructCauseChain"),js=U((t,e,r,n,o,i)=>{const a=t.ws.send.bind(t.ws);t.ws.send=async(l,s)=>{try{if(l&&typeof l=="object"&&l.type==="error"&&l.err){const{err:p}=l,d=en(p);if(e(d))return;if(p.message?.includes("Failed to resolve import")){const g=p.message.match(/Failed to resolve import ["']([^"']+)["'] from ["']([^"']+)["']/);if(g){const f=g[2],y=new Error(p.message);y.name="ImportResolutionError",y.stack=p.stack;const b=await $t(y,t,n,{column:p.loc?.column||1,file:f,line:p.loc?.line||1,plugin:p.plugin||"vite:import-analysis"},"server",o,i);l.err=b,r.set(JSON.stringify(b),Date.now())}}else{const g=String(p?.name||"Error"),f=String(p.message),y=String(p.stack),b=new Error(f);b.name=g,b.stack=`${g}: ${f}
1880
- ${at(y,n)}`,p.cause&&(b.cause=It(p.cause));const m=p.sourceFile?{column:p.column,file:p.sourceFile,line:p.line,plugin:p.plugin}:void 0,k=await $t(b,t,n,m,"server",o,i);l.err=k,r.set(JSON.stringify(k),Date.now())}}a(l,s)}catch(p){et(t,"[visulima:vite-overlay:server] ws.send intercept failed",p),s.send(l,s)}}},"setupWebSocketInterception"),Os=U((t,e,r,n,o,i,a,l)=>{t.ws.on(Or,async(s,p)=>{if(!a)return;const d=s&&typeof s=="object"?s:{message:ci,stack:""},g=en(d);if(r(g))return;const f=String(d?.name||"Error"),y=String(d.message),b=String(d.stack),m=new Error(y);m.name=f,m.stack=`${f}: ${y}
1881
- ${at(b,o)}`,d.cause&&(m.cause=It(d.cause));try{const k=await $t(m,t,o,{column:d?.column,file:d?.file,line:d?.line,plugin:d?.plugin},"client",i,l);n.set(JSON.stringify(k),Date.now());const T={err:{...k},type:"error"};k.solution&&(T.solutions=k.solution);const M=[...k.errors],C=M.shift();if(!C){await e.error("No error information available"),p.send(T);return}const R=[`${Qt("red","[client]")} ${C.name}: ${C.message}`,...C.originalFilePath.includes("-extension://")?[]:["",Qt("blue",`${C.originalFilePath}:${C.originalFileLine}:${C.originalFileColumn}`),"",await uo(C.originalSnippet,Ce(C.originalFilePath)||"text","nord"),"","Raw stack trace:","",C.originalStack]];M.forEach((D,X)=>{const O=" ".repeat(2*X);R.push("",`${O}Caused by: `,"",`${O}${D.name}: ${D.message}`,`${O}at ${D.originalFilePath}:${D.originalFileLine}:${D.originalFileColumn}`)}),await e.error(R.join(`
1882
- `)),p.send(T)}catch(k){et(t,"[visulima:vite-overlay:server] failed to build extended client error",k),p.send({err:{message:k.message,name:String(k.name||qr),stack:k.stack},type:"error"})}})},"setupHMRHandler"),qs=U((t,e)=>t.flat().some(r=>r&&(e&&r.name===e||r.name==="vite:react-swc"||r.name==="vite:react-refresh"||r.name==="vite:react-babel"||r.name==="@vitejs/plugin-react"||typeof r=="function"&&r.name?.includes("react")||r.constructor&&r.constructor.name?.includes("React"))),"hasReactPlugin"),Vs=U((t,e)=>t.flat().some(r=>r&&(e&&r.name===e||r.name==="vite:vue"||r.name==="@vitejs/plugin-vue"||typeof r=="function"&&r.name?.includes("vue")||r.constructor&&r.constructor.name?.includes("Vue"))),"hasVuePlugin"),ol=U((t={})=>{let e,r,n;const o=(t.logClientRuntimeError===void 0?t.forwardConsole:t.logClientRuntimeError)??!0,i=t.forwardedConsoleMethods??["error"];if(t.logClientRuntimeError!==void 0&&console.warn("[vite-overlay] The 'logClientRuntimeError' option is deprecated. Please use 'forwardConsole' instead."),i.length===0)throw new Error("forwardedConsoleMethods must be an array of console method names");return{apply:"serve",config(a,l){return a.plugins&&(r=qs(a.plugins,t?.reactPluginName),n=Vs(a.plugins,t?.vuePluginName)),e=l.mode||"development",a},configureServer(a){const l=a.config.root||process.cwd(),s=As(a),{recentErrors:p,shouldSkip:d}=Is(),g=a.transformRequest.bind(a);a.transformRequest=async(b,m)=>{try{return await g(b,m)}catch(k){if(k?.message?.includes("Failed to resolve import")){const T=k.message.match(/Failed to resolve import ["']([^"']+)["'] from ["']([^"']+)["']/);if(T){const[,M,C]=T;k.sourceFile=C,k.importPath=M}}throw k}};let f;r?f="react":n&&(f="vue"),js(a,d,p,l,t?.solutionFinders??[],f),Os(a,s,d,p,l,t?.solutionFinders??[],o,f);const y=Ds(a,l,s);process.on("unhandledRejection",y),a.httpServer?.on("close",()=>{process.off("unhandledRejection",y)})},enforce:"pre",name:li,transform(a,l,s){return s?.ssr||!(l.includes("vite/dist/client/client.mjs")||l.includes("/@vite/client"))?null:wi(a,t?.showBallonButton??!0)},transformIndexHtml(){return{html:"",tags:[{attrs:{type:"module"},children:ks(e,i),injectTo:"head",tag:"script"}]}}}},"errorOverlayPlugin");export{ol as default};
1941
+ `},"generateClientScript");var yc=Object.defineProperty,be=b((t,e)=>yc(t,"name",{value:e,configurable:!0}),"o");const kc=/\.mdx$/i,xc=1,_c=/Failed to load url\s+(.*?)\s+\(resolved id:/i,$c=/glob:\s*"(.+)"\s*\(/i,Ec=be(t=>t instanceof Error?t:new Error(String(t)),"createEnhancedError"),Sc=be((t,e)=>{try{t.ssrFixStacktrace(e)}catch(n){console.warn("[visulima:vite-overlay:server] SSR stack trace fix failed:",n)}},"safeSsrFixStacktrace"),Cc=be(t=>{try{const e=Oe(t,{frameLimit:xc})?.[0];return String(e?.file||t.loc?.file||t.id||"")}catch(e){console.warn("[visulima:vite-overlay:server] Stack trace parsing failed:",e);return}},"extractTopFileFromStack"),Lc=be(async t=>{try{return await _r(t,"utf8")}catch(e){console.warn(`[visulima:vite-overlay:server] Failed to read file ${t}:`,e);return}},"safeReadFile"),Tc=be((t,e)=>{const n=t.id||t.loc?.file||e;n&&kc.test(String(n))&&/syntax error/i.test(t.message)&&(t.hint=t.hint||"MDX detected without an appropriate integration. Install and configure the MDX plugin for Vite/your framework.")},"enhanceMdxError"),Mo=be((t,e)=>{const n=t.split(`
1942
+ `),r=n.findIndex(i=>i.includes(e));if(r===-1)return;const o=n[r]||"";return{column:Math.max(0,o.indexOf(e))+1,line:r+1}},"findImportLocation"),Pc=be(async(t,e,n)=>{const r=_c.exec(t.message)?.[1];if(r&&(t.title="Failed to Load Module (SSR)",t.name="FailedToLoadModuleSSR",t.message=`Failed to load module: ${r}`,t.hint="Verify import path, ensure a plugin handles this file type during SSR, and check for typos or missing files.",n&&e)){const o=Mo(n,r);o&&(t.loc={...o,file:e})}},"enhanceFailedLoadError"),Mc=be(async(t,e,n)=>{const r=$c.exec(t.message)?.[1];if(r&&(t.name="InvalidGlob",t.title="Invalid Glob Pattern",t.message=`Invalid glob pattern: ${r}`,t.hint=t.hint||"Ensure your glob follows the expected syntax and matches existing files. Avoid unintended special characters.",n&&e)){const o=Mo(n,r);o&&(t.loc={...o,file:e})}},"enhanceGlobError"),Fc=be(async(t,e)=>{const n=Ec(t);Sc(e,n);const r=Cc(n),o=r?await Lc(r):void 0;return await Pc(n,r,o),Tc(n,r),await Mc(n,r,o),n},"enhanceViteSsrError");var Rc=Object.defineProperty,J=b((t,e)=>Rc(t,"name",{value:e,configurable:!0}),"d");const xt=J((t,e,n)=>{try{const r=n instanceof Error?n.message:String(n);t.config.logger.error(`${e}: ${r}`,{clear:!0,timestamp:!0})}catch{}},"logError"),zc=J(t=>({error:J(e=>t.config.logger.error(String(e??""),{clear:!0,timestamp:!0}),"error"),log:J(e=>t.config.logger.info(String(e??"")),"log")}),"createDevelopmentLogger"),Dc=J(()=>{const t=new Map;return{recentErrors:t,shouldSkip:J(e=>{const n=Date.now(),r=t.get(e)||0;return n-r<Ds?!0:(t.set(e,n),!1)},"shouldSkip")}},"createRecentErrorTracker"),Fo=J(t=>`${String(t?.message||"")}
1943
+ ${String(t?.stack||"")}`,"createErrorSignature"),Ac=J((t,e,n)=>async r=>{const o=r instanceof Error?r:new Error(String(r?.stack||r));try{t.ssrFixStacktrace(o)}catch(i){xt(t,"[visulima:vite-overlay:server] ssrFixStacktrace failed",i)}try{const i=await Fc(o,t);Object.assign(o,i)}catch(i){xt(t,"[visulima:vite-overlay:server] enhanceViteSsrError failed",i)}try{o.stack=Mt(Ln(String(o.stack||"")),e)}catch{}await n.error(Vi(o)),t.ws.send({err:o,type:"error"})},"createUnhandledRejectionHandler"),Ic=J(async(t,e,n)=>{let r;e.push(Zi,da(n),Wi);for await(const o of e.toSorted((i,s)=>s.priority-i.priority)){const{handle:i,name:s}=o;if(process.env.DEBUG&&console.debug(`Running solution finder: ${s}`),typeof i=="function")try{const l=await i({hint:t?.hint??"",message:t.message,name:t.name,stack:t?.stack},{file:t?.originalFilePath??"",language:qe(t?.originalFilePath??""),line:t?.originalFileLine??0,snippet:t?.originalSnippet??""});if(l===void 0)continue;const a=await Gn(l.header??"");r={body:await Gn(l.body??""),header:a};break}catch{continue}}return r},"findSolution"),Jt=J(async(t,e,n,r,o,i,s)=>{const l=Ni(t);if(l.length===0)throw new Error("No errors found in the error stack");const a=await Promise.all(l.map(async(d,u)=>{let g=r;if(u>0){const m=(d?.stack?.split(`
1944
+ `)||[]).find(k=>k.includes("at ")&&!k.includes("node_modules"));if(m){const k=m.match(/at\s+[^(\s]+\s*\(([^:)]+):(\d+):(\d+)\)/)||m.match(/at\s+([^:)]+):(\d+):(\d+)/);if(k){const[,L,T,$]=k;g={column:Number.parseInt($||"0",10),file:L,line:Number.parseInt(T||"0",10),plugin:r?.plugin}}}}let v=g;u===0&&d?.sourceFile&&(v={...g,file:d.sourceFile});const f=await fc(d,e,u,s,v,l);return{hint:d?.hint,message:d?.message||"",name:d?.name||Ir,stack:Mt(Ln(d?.stack||""),n),...f}})),c=await Ic(a[0],i,n);return{errors:a,errorType:o,rootPath:n,solution:c}},"buildExtendedError"),Tn=J(t=>{if(!t)return null;const e=new Error(String(t.message||"Caused by error"));return e.name=String(t.name||"Error"),e.stack=String(t.stack||""),t.cause&&(e.cause=Tn(t.cause)),e},"reconstructCauseChain"),Hc=J((t,e,n,r,o,i)=>{const s=t.ws.send.bind(t.ws);t.ws.send=async(l,a)=>{try{if(l&&typeof l=="object"&&l.type==="error"&&l.err){const{err:c}=l,d=Fo(c);if(e(d))return;if(c.message?.includes("Failed to resolve import")){const u=c.message.match(/Failed to resolve import ["']([^"']+)["'] from ["']([^"']+)["']/);if(u){const g=u[2],v=new Error(c.message);v.name="ImportResolutionError",v.stack=c.stack;const f=await Jt(v,t,r,{column:c.loc?.column||1,file:g,line:c.loc?.line||1,plugin:c.plugin||"vite:import-analysis"},"server",o,i);l.err=f,n.set(JSON.stringify(f),Date.now())}}else{const u=String(c?.name||"Error"),g=String(c.message),v=String(c.stack),f=new Error(g);f.name=u,f.stack=`${u}: ${g}
1945
+ ${Mt(v,r)}`,c.cause&&(f.cause=Tn(c.cause));const m=c.sourceFile?{column:c.column,file:c.sourceFile,line:c.line,plugin:c.plugin}:void 0,k=await Jt(f,t,r,m,"server",o,i);l.err=k,n.set(JSON.stringify(k),Date.now())}}s(l,a)}catch(c){xt(t,"[visulima:vite-overlay:server] ws.send intercept failed",c),a&&typeof a.send=="function"?a.send(l,a):s(l,a)}}},"setupWebSocketInterception"),Bc=J((t,e,n,r,o,i,s,l)=>{t.ws.on(Ar,async(a,c)=>{if(!s)return;const d=a&&typeof a=="object"?a:{message:Is,stack:""},u=Fo(d);if(n(u))return;const g=String(d?.name||"Error"),v=String(d.message),f=String(d.stack),m=new Error(v);m.name=g,m.stack=`${g}: ${v}
1946
+ ${Mt(f,o)}`,d.cause&&(m.cause=Tn(d.cause));try{const k=await Jt(m,t,o,{column:d?.column,file:d?.file,line:d?.line,plugin:d?.plugin},"client",i,l);r.set(JSON.stringify(k),Date.now());const L={err:{...k},type:"error"};k.solution&&(L.solutions=k.solution);const T=[...k.errors],$=T.shift();if(!$){await e.error("No error information available"),c.send(L);return}const M=[`${Un("red","[client]")} ${$.name}: ${$.message}`,...$.originalFilePath.includes("-extension://")?[]:["",Un("blue",`${$.originalFilePath}:${$.originalFileLine}:${$.originalFileColumn}`),"",await Ui($.originalSnippet,qe($.originalFilePath),"nord"),"","Raw stack trace:","",$.originalStack]];T.forEach((z,D)=>{const Z=" ".repeat(2*D);M.push("",`${Z}Caused by: `,"",`${Z}${z.name}: ${z.message}`,`${Z}at ${z.originalFilePath}:${z.originalFileLine}:${z.originalFileColumn}`)}),await e.error(M.join(`
1947
+ `)),c.send(L)}catch(k){xt(t,"[visulima:vite-overlay:server] failed to build extended client error",k),c.send({err:{message:k.message,name:String(k.name||Ir),stack:k.stack},type:"error"})}})},"setupHMRHandler"),jc=J((t,e)=>t.flat().some(n=>n&&(e&&n.name===e||n.name==="vite:react-swc"||n.name==="vite:react-refresh"||n.name==="vite:react-babel"||n.name==="@vitejs/plugin-react"||typeof n=="function"&&n.name?.includes("react")||n.constructor&&n.constructor.name?.includes("React"))),"hasReactPlugin"),Oc=J((t,e)=>t.flat().some(n=>n&&(e&&n.name===e||n.name==="vite:vue"||n.name==="@vitejs/plugin-vue"||typeof n=="function"&&n.name?.includes("vue")||n.constructor&&n.constructor.name?.includes("Vue"))),"hasVuePlugin"),rd=J((t={})=>{let e,n,r;const o=(t.logClientRuntimeError===void 0?t.forwardConsole:t.logClientRuntimeError)??!0,i=t.forwardedConsoleMethods??["error"];if(t.logClientRuntimeError!==void 0&&console.warn("[vite-overlay] The 'logClientRuntimeError' option is deprecated. Please use 'forwardConsole' instead."),i.length===0)throw new Error("forwardedConsoleMethods must be an array of console method names");return{apply:"serve",config(s,l){return s.plugins&&(n=jc(s.plugins,t?.reactPluginName),r=Oc(s.plugins,t?.vuePluginName)),e=l.mode||"development",s},configureServer(s){const l=s.config.root||process.cwd(),a=zc(s),{recentErrors:c,shouldSkip:d}=Dc(),u=s.transformRequest.bind(s);s.transformRequest=async(f,m)=>{try{return await u(f,m)}catch(k){if(k?.message?.includes("Failed to resolve import")){const L=k.message.match(/Failed to resolve import ["']([^"']+)["'] from ["']([^"']+)["']/);if(L){const[,T,$]=L;k.sourceFile=$,k.importPath=T}}throw k}};let g;n?g="react":r&&(g="vue"),Hc(s,d,c,l,t?.solutionFinders??[],g),Bc(s,a,d,c,l,t?.solutionFinders??[],o,g);const v=Ac(s,l,a);process.on("unhandledRejection",v),s.httpServer?.on("close",()=>{process.off("unhandledRejection",v)})},enforce:"pre",name:As,transform(s,l,a){if(a?.ssr||!(l.includes("vite/dist/client/client.mjs")||l.includes("/@vite/client")))return null;const c=t?.showBallonButton===void 0?t?.overlay?.balloon?.enabled??!0:t.showBallonButton;return Xs(s,c,t?.overlay?.balloon,t?.overlay?.customCSS)},transformIndexHtml(){return{html:"",tags:[{attrs:{type:"module"},children:bc(e,i,t?.overlay?.balloon),injectTo:"head",tag:"script"}]}}}},"errorOverlayPlugin");export{rd as default};