@visulima/vite-overlay 1.3.0 → 1.3.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.
- package/CHANGELOG.md +24 -0
- package/dist/index.js +32 -32
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
## @visulima/vite-overlay [1.3.2](https://github.com/visulima/visulima/compare/@visulima/vite-overlay@1.3.1...@visulima/vite-overlay@1.3.2) (2025-10-21)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* allowed node v25 ([ffaa4b1](https://github.com/visulima/visulima/commit/ffaa4b1ce46b7153594f051f08f9ab7b2686d6ee))
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Dependencies
|
|
9
|
+
|
|
10
|
+
* **@visulima/error:** upgraded to 5.0.2
|
|
11
|
+
* **@visulima/path:** upgraded to 2.0.1
|
|
12
|
+
|
|
13
|
+
## @visulima/vite-overlay [1.3.1](https://github.com/visulima/visulima/compare/@visulima/vite-overlay@1.3.0...@visulima/vite-overlay@1.3.1) (2025-10-20)
|
|
14
|
+
|
|
15
|
+
### Miscellaneous Chores
|
|
16
|
+
|
|
17
|
+
* **deps:** update package versions and dependencies ([88d8d32](https://github.com/visulima/visulima/commit/88d8d32c4629a7a06c8770369191da2cc81087cc))
|
|
18
|
+
* update package dependencies across multiple packages ([17e3f23](https://github.com/visulima/visulima/commit/17e3f2377c8a3f98e2eed2192c5adaf6e32558b5))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Dependencies
|
|
22
|
+
|
|
23
|
+
* **@visulima/error:** upgraded to 5.0.1
|
|
24
|
+
|
|
1
25
|
## @visulima/vite-overlay [1.3.0](https://github.com/visulima/visulima/compare/@visulima/vite-overlay@1.2.1...@visulima/vite-overlay@1.3.0) (2025-10-15)
|
|
2
26
|
|
|
3
27
|
### Features
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var
|
|
2
|
-
]`).replace("lheading",wr).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},
|
|
1
|
+
var jn=Object.defineProperty;var $=(t,e)=>jn(t,"name",{value:e,configurable:!0});import{createRequire as On}from"node:module";import{codeToANSI as Zn}from"@shikijs/cli";import{renderError as Vn,getErrorCauses as Un}from"@visulima/error/error";import{errorHintFinder as Nn,ruleBasedFinder as Wn}from"@visulima/error/solution";import{parseStacktrace as ke,formatStacktrace as mr,codeFrame as Bt}from"@visulima/error";import jt from"@visulima/error/solution/ai/prompt";import{TraceMap as Yn,originalPositionFor as Xn}from"@jridgewell/trace-mapping";const gr=On(import.meta.url),Le=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ye=$(t=>{if(typeof Le<"u"&&Le.versions&&Le.versions.node){const[e,r]=Le.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return Le.getBuiltinModule(t)}return gr(t)},"__cjs_getBuiltinModule"),{stripVTControlCharacters:qn,styleText:Dt}=Ye("node:util"),Gn=Ye("node:fs"),ee=Ye("node:path"),{distance:qe}=gr("fastest-levenshtein"),{readFile:fr}=Ye("node:fs/promises");var Qn=Object.defineProperty,F=$((t,e)=>Qn(t,"name",{value:e,configurable:!0}),"k$3");function Xe(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}$(Xe,"q");F(Xe,"L");var ve=Xe();function ft(t){ve=t}$(ft,"ae");F(ft,"G");var Me={exec:F(()=>null,"exec")};function S(t,e=""){let r=typeof t=="string"?t:t.source,o={replace:F((n,s)=>{let i=typeof s=="string"?s:s.source;return i=i.replace(V.caret,"$1"),r=r.replace(n,i),o},"replace"),getRegex:F(()=>new RegExp(r,e),"getRegex")};return o}$(S,"p$6");F(S,"h");var V={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]\] +/,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:F(t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),"listItemRegex"),nextBulletRegex:F(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),"nextBulletRegex"),hrRegex:F(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),"hrRegex"),fencesBeginRegex:F(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),"fencesBeginRegex"),headingBeginRegex:F(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),"headingBeginRegex"),htmlBeginRegex:F(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),"htmlBeginRegex")},Jn=/^(?:[ \t]*(?:\n|$))+/,Kn=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,eo=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ae=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,to=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,vt=/(?:[*+-]|\d{1,9}[.)])/,vr=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,wr=S(vr).replace(/bull/g,vt).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(),ro=S(vr).replace(/bull/g,vt).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(),wt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,no=/^[^\n]+/,bt=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,oo=S(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",bt).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),io=S(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,vt).getRegex(),Qe="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",yt=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,so=S("^ {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",yt).replace("tag",Qe).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),br=S(wt).replace("hr",Ae).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",Qe).getRegex(),ao=S(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",br).getRegex(),kt={blockquote:ao,code:Kn,def:oo,fences:eo,heading:to,hr:Ae,html:so,lheading:wr,list:io,newline:Jn,paragraph:br,table:Me,text:no},Ot=S("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ae).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",Qe).getRegex(),lo={...kt,lheading:ro,table:Ot,paragraph:S(wt).replace("hr",Ae).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ot).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",Qe).getRegex()},co={...kt,html:S(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",yt).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:Me,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:S(wt).replace("hr",Ae).replace("heading",` *#{1,6} *[^
|
|
2
|
+
]`).replace("lheading",wr).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},po=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ho=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,yr=/^( {2,}|\\)\n(?!\s*$)/,uo=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Je=/[\p{P}\p{S}]/u,xt=/[\s\p{P}\p{S}]/u,kr=/[^\s\p{P}\p{S}]/u,go=S(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,xt).getRegex(),xr=/(?!~)[\p{P}\p{S}]/u,mo=/(?!~)[\s\p{P}\p{S}]/u,fo=/(?:[^\s\p{P}\p{S}]|~)/u,vo=S(/link|code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<!`)(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("code",/(?<!`)(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),_r=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,wo=S(_r,"u").replace(/punct/g,Je).getRegex(),bo=S(_r,"u").replace(/punct/g,xr).getRegex(),$r="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",yo=S($r,"gu").replace(/notPunctSpace/g,kr).replace(/punctSpace/g,xt).replace(/punct/g,Je).getRegex(),ko=S($r,"gu").replace(/notPunctSpace/g,fo).replace(/punctSpace/g,mo).replace(/punct/g,xr).getRegex(),xo=S("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,kr).replace(/punctSpace/g,xt).replace(/punct/g,Je).getRegex(),_o=S(/\\(punct)/,"gu").replace(/punct/g,Je).getRegex(),$o=S(/^<(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(),Eo=S(yt).replace("(?:-->|$)","-->").getRegex(),So=S("^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",Eo).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ze=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Co=S(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Ze).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Er=S(/^!?\[(label)\]\[(ref)\]/).replace("label",Ze).replace("ref",bt).getRegex(),Sr=S(/^!?\[(ref)\](?:\[\])?/).replace("ref",bt).getRegex(),Lo=S("reflink|nolink(?!\\()","g").replace("reflink",Er).replace("nolink",Sr).getRegex(),qt=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,_t={_backpedal:Me,anyPunctuation:_o,autolink:$o,blockSkip:vo,br:yr,code:ho,del:Me,emStrongLDelim:wo,emStrongRDelimAst:yo,emStrongRDelimUnd:xo,escape:po,link:Co,nolink:Sr,punctuation:go,reflink:Er,reflinkSearch:Lo,tag:So,text:uo,url:Me},To={..._t,link:S(/^!?\[(label)\]\((.*?)\)/).replace("label",Ze).getRegex(),reflink:S(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ze).getRegex()},st={..._t,emStrongRDelimAst:ko,emStrongLDelim:bo,url:S(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",qt).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:S(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",qt).getRegex()},Po={...st,br:S(yr).replace("{2,}","*").getRegex(),text:S(st.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Oe={normal:kt,gfm:lo,pedantic:co},Te={normal:_t,gfm:st,breaks:Po,pedantic:To},Mo={"&":"&","<":"<",">":">",'"':""","'":"'"},Zt=F(t=>Mo[t],"ge");function K(t,e){if(e){if(V.escapeTest.test(t))return t.replace(V.escapeReplace,Zt)}else if(V.escapeTestNoEncode.test(t))return t.replace(V.escapeReplaceNoEncode,Zt);return t}$(K,"$");F(K,"w");function at(t){try{t=encodeURI(t).replace(V.percentDecode,"%")}catch{return null}return t}$(at,"se");F(at,"J");function lt(t,e){let r=t.replace(V.findPipe,(s,i,a)=>{let l=!1,c=i;for(;--c>=0&&a[c]==="\\";)l=!l;return l?"|":" |"}),o=r.split(V.splitPipe),n=0;if(o[0].trim()||o.shift(),o.length>0&&!o.at(-1)?.trim()&&o.pop(),e)if(o.length>e)o.splice(e);else for(;o.length<e;)o.push("");for(;n<o.length;n++)o[n]=o[n].trim().replace(V.slashPipe,"|");return o}$(lt,"le");F(lt,"V");function ye(t,e,r){let o=t.length;if(o===0)return"";let n=0;for(;n<o;){let s=t.charAt(o-n-1);if(s===e&&!r)n++;else if(s!==e&&r)n++;else break}return t.slice(0,o-n)}$(ye,"_$1");F(ye,"z");function Cr(t,e){if(t.indexOf(e[1])===-1)return-1;let r=0;for(let o=0;o<t.length;o++)if(t[o]==="\\")o++;else if(t[o]===e[0])r++;else if(t[o]===e[1]&&(r--,r<0))return o;return r>0?-2:-1}$(Cr,"et");F(Cr,"fe");function ct(t,e,r,o,n){let s=e.href,i=e.title||null,a=t[1].replace(n.other.outputLinkReplace,"$1");o.state.inLink=!0;let l={type:t[0].charAt(0)==="!"?"image":"link",raw:r,href:s,title:i,text:a,tokens:o.inlineTokens(a)};return o.state.inLink=!1,l}$(ct,"ie");F(ct,"me");function Lr(t,e,r){let o=t.match(r.other.indentCodeCompensation);if(o===null)return e;let n=o[1];return e.split(`
|
|
3
3
|
`).map(s=>{let i=s.match(r.other.beginningSpace);if(i===null)return s;let[a]=i;return a.length>=n.length?s.slice(n.length):s}).join(`
|
|
4
4
|
`)}$(Lr,"tt");F(Lr,"Ve");var Ve=class{static{$(this,"I")}static{F(this,"y")}options;rules;lexer;constructor(e){this.options=e||ve}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 o=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?o:ye(o,`
|
|
5
5
|
`)}}}fences(e){let r=this.rules.block.fences.exec(e);if(r){let o=r[0],n=Lr(o,r[3]||"",this.rules);return{type:"code",raw:o,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:n}}}heading(e){let r=this.rules.block.heading.exec(e);if(r){let o=r[2].trim();if(this.rules.other.endingHash.test(o)){let n=ye(o,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(o=n.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:o,tokens:this.lexer.inline(o)}}}hr(e){let r=this.rules.block.hr.exec(e);if(r)return{type:"hr",raw:ye(r[0],`
|
|
@@ -15,10 +15,10 @@ ${g}`:g;let m=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
|
|
|
15
15
|
`+o.join(`
|
|
16
16
|
`),v=this.list(h);i[i.length-1]=v,n=n.substring(0,n.length-w.raw.length)+v.raw,s=s.substring(0,s.length-f.raw.length)+v.raw,o=h.substring(i.at(-1).raw.length).split(`
|
|
17
17
|
`);continue}}return{type:"blockquote",raw:n,tokens:i,text:s}}}list(e){let r=this.rules.block.list.exec(e);if(r){let o=r[1].trim(),n=o.length>1,s={type:"list",raw:"",ordered:n,start:n?+o.slice(0,-1):"",loose:!1,items:[]};o=n?`\\d{1,9}\\${o.slice(-1)}`:`\\${o}`,this.options.pedantic&&(o=n?o:"[*+-]");let i=this.rules.other.listItemRegex(o),a=!1;for(;e;){let c=!1,p="",g="";if(!(r=i.exec(e))||this.rules.block.hr.test(e))break;p=r[0],e=e.substring(p.length);let m=r[2].split(`
|
|
18
|
-
`,1)[0].replace(this.rules.other.listReplaceTabs,
|
|
18
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,C=>" ".repeat(3*C.length)),w=e.split(`
|
|
19
19
|
`,1)[0],f=!m.trim(),h=0;if(this.options.pedantic?(h=2,g=m.trimStart()):f?h=r[1].length+1:(h=r[2].search(this.rules.other.nonSpaceChar),h=h>4?1:h,g=m.slice(h),h+=r[1].length),f&&this.rules.other.blankLine.test(w)&&(p+=w+`
|
|
20
|
-
`,e=e.substring(w.length+1),c=!0),!c){let
|
|
21
|
-
`,1)[0],D;if(w=U,this.options.pedantic?(w=w.replace(this.rules.other.listReplaceNesting," "),D=w):D=w.replace(this.rules.other.tabCharGlobal," "),R.test(w)||X.test(w)||_.test(w)||
|
|
20
|
+
`,e=e.substring(w.length+1),c=!0),!c){let C=this.rules.other.nextBulletRegex(h),x=this.rules.other.hrRegex(h),R=this.rules.other.fencesBeginRegex(h),X=this.rules.other.headingBeginRegex(h),_=this.rules.other.htmlBeginRegex(h);for(;e;){let U=e.split(`
|
|
21
|
+
`,1)[0],D;if(w=U,this.options.pedantic?(w=w.replace(this.rules.other.listReplaceNesting," "),D=w):D=w.replace(this.rules.other.tabCharGlobal," "),R.test(w)||X.test(w)||_.test(w)||C.test(w)||x.test(w))break;if(D.search(this.rules.other.nonSpaceChar)>=h||!w.trim())g+=`
|
|
22
22
|
`+D.slice(h);else{if(f||m.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||R.test(m)||X.test(m)||x.test(m))break;g+=`
|
|
23
23
|
`+w}!f&&!w.trim()&&(f=!0),p+=U+`
|
|
24
24
|
`,e=e.substring(U.length+1),m=D.slice(h)}}s.loose||(a?s.loose=!0:this.rules.other.doubleBlankLine.test(p)&&(a=!0));let v=null,L;this.options.gfm&&(v=this.rules.other.listIsTask.exec(g),v&&(L=v[0]!=="[ ] ",g=g.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:p,task:!!v,checked:L,loose:!1,text:g,tokens:[]}),s.raw+=p}let l=s.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let c=0;c<s.items.length;c++)if(this.lexer.state.top=!1,s.items[c].tokens=this.lexer.blockTokens(s.items[c].text,[]),!s.loose){let p=s.items[c].tokens.filter(m=>m.type==="space"),g=p.length>0&&p.some(m=>this.rules.other.anyLine.test(m.raw));s.loose=g}if(s.loose)for(let c=0;c<s.items.length;c++)s.items[c].loose=!0;return s}}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 o=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:o,raw:r[0],href:n,title:s}}}table(e){let r=this.rules.block.table.exec(e);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let o=lt(r[1]),n=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=r[3]?.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
@@ -56,8 +56,8 @@ ${this.parser.parse(e)}</blockquote>
|
|
|
56
56
|
${e}</tr>
|
|
57
57
|
`}tablecell(e){let r=this.parser.parseInline(e.tokens),o=e.header?"th":"td";return(e.align?`<${o} align="${e.align}">`:`<${o}>`)+r+`</${o}>
|
|
58
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>${K(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:r,tokens:o}){let n=this.parser.parseInline(o),s=at(e);if(s===null)return n;e=s;let i='<a href="'+e+'"';return r&&(i+=' title="'+K(r)+'"'),i+=">"+n+"</a>",i}image({href:e,title:r,text:o,tokens:n}){n&&(o=this.parser.parseInline(n,this.parser.textRenderer));let s=at(e);if(s===null)return K(o);e=s;let i=`<img src="${e}" alt="${o}"`;return r&&(i+=` title="${K(r)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:K(e.text)}},$t=class{static{$(this,"D")}static{F(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""}},ie=class pt{static{$(this,"N")}static{F(this,"u")}options;renderer;textRenderer;constructor(e){this.options=e||ve,this.options.renderer=this.options.renderer||new Ue,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new $t}static parse(e,r){return new pt(r).parse(e)}static parseInline(e,r){return new pt(r).parseInline(e)}parse(e,r=!0){let o="";for(let n=0;n<e.length;n++){let s=e[n];if(this.options.extensions?.renderers?.[s.type]){let a=s,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)){o+=l||"";continue}}let i=s;switch(i.type){case"space":{o+=this.renderer.space(i);continue}case"hr":{o+=this.renderer.hr(i);continue}case"heading":{o+=this.renderer.heading(i);continue}case"code":{o+=this.renderer.code(i);continue}case"table":{o+=this.renderer.table(i);continue}case"blockquote":{o+=this.renderer.blockquote(i);continue}case"list":{o+=this.renderer.list(i);continue}case"html":{o+=this.renderer.html(i);continue}case"def":{o+=this.renderer.def(i);continue}case"paragraph":{o+=this.renderer.paragraph(i);continue}case"text":{let a=i,l=this.renderer.text(a);for(;n+1<e.length&&e[n+1].type==="text";)a=e[++n],l+=`
|
|
59
|
-
`+this.renderer.text(a);r?o+=this.renderer.paragraph({type:"paragraph",raw:l,text:l,tokens:[{type:"text",raw:l,text:l,escaped:!0}]}):o+=l;continue}default:{let a='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return o}parseInline(e,r=this.renderer){let o="";for(let n=0;n<e.length;n++){let s=e[n];if(this.options.extensions?.renderers?.[s.type]){let a=this.options.extensions.renderers[s.type].call({parser:this},s);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){o+=a||"";continue}}let i=s;switch(i.type){case"escape":{o+=r.text(i);break}case"html":{o+=r.html(i);break}case"link":{o+=r.link(i);break}case"image":{o+=r.image(i);break}case"strong":{o+=r.strong(i);break}case"em":{o+=r.em(i);break}case"codespan":{o+=r.codespan(i);break}case"br":{o+=r.br(i);break}case"del":{o+=r.del(i);break}case"text":{o+=r.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 o}},Pe=class{static{$(this,"T")}static{F(this,"S")}options;block;constructor(e){this.options=e||ve}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?oe.lex:oe.lexInline}provideParser(){return this.block?ie.parse:ie.parseInline}},
|
|
60
|
-
Please report this to https://github.com/markedjs/marked.`,t){let o="<p>An error occurred:</p><pre>"+K(r.message+"",!0)+"</pre>";return e?Promise.resolve(o):o}if(e)return Promise.reject(r);throw r}}},fe=new
|
|
59
|
+
`+this.renderer.text(a);r?o+=this.renderer.paragraph({type:"paragraph",raw:l,text:l,tokens:[{type:"text",raw:l,text:l,escaped:!0}]}):o+=l;continue}default:{let a='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return o}parseInline(e,r=this.renderer){let o="";for(let n=0;n<e.length;n++){let s=e[n];if(this.options.extensions?.renderers?.[s.type]){let a=this.options.extensions.renderers[s.type].call({parser:this},s);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){o+=a||"";continue}}let i=s;switch(i.type){case"escape":{o+=r.text(i);break}case"html":{o+=r.html(i);break}case"link":{o+=r.link(i);break}case"image":{o+=r.image(i);break}case"strong":{o+=r.strong(i);break}case"em":{o+=r.em(i);break}case"codespan":{o+=r.codespan(i);break}case"br":{o+=r.br(i);break}case"del":{o+=r.del(i);break}case"text":{o+=r.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 o}},Pe=class{static{$(this,"T")}static{F(this,"S")}options;block;constructor(e){this.options=e||ve}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?oe.lex:oe.lexInline}provideParser(){return this.block?ie.parse:ie.parseInline}},Fo=class{static{$(this,"be")}static{F(this,"B")}defaults=Xe();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=ie;Renderer=Ue;TextRenderer=$t;Lexer=oe;Tokenizer=Ve;Hooks=Pe;constructor(...t){this.use(...t)}walkTokens(t,e){let r=[];for(let o of t)switch(r=r.concat(e.call(this,o)),o.type){case"table":{let n=o;for(let s of n.header)r=r.concat(this.walkTokens(s.tokens,e));for(let s of n.rows)for(let i of s)r=r.concat(this.walkTokens(i.tokens,e));break}case"list":{let n=o;r=r.concat(this.walkTokens(n.items,e));break}default:{let n=o;this.defaults.extensions?.childTokens?.[n.type]?this.defaults.extensions.childTokens[n.type].forEach(s=>{let i=n[s].flat(1/0);r=r.concat(this.walkTokens(i,e))}):n.tokens&&(r=r.concat(this.walkTokens(n.tokens,e)))}}return r}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{let o={...r};if(o.async=this.defaults.async||o.async||!1,r.extensions&&(r.extensions.forEach(n=>{if(!n.name)throw new Error("extension name required");if("renderer"in n){let s=e.renderers[n.name];s?e.renderers[n.name]=function(...i){let a=n.renderer.apply(this,i);return a===!1&&(a=s.apply(this,i)),a}:e.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||n.level!=="block"&&n.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=e[n.level];s?s.unshift(n.tokenizer):e[n.level]=[n.tokenizer],n.start&&(n.level==="block"?e.startBlock?e.startBlock.push(n.start):e.startBlock=[n.start]:n.level==="inline"&&(e.startInline?e.startInline.push(n.start):e.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(e.childTokens[n.name]=n.childTokens)}),o.extensions=e),r.renderer){let n=this.defaults.renderer||new Ue(this.defaults);for(let s in r.renderer){if(!(s in n))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let i=s,a=r.renderer[i],l=n[i];n[i]=(...c)=>{let p=a.apply(n,c);return p===!1&&(p=l.apply(n,c)),p||""}}o.renderer=n}if(r.tokenizer){let n=this.defaults.tokenizer||new Ve(this.defaults);for(let s in r.tokenizer){if(!(s in n))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let i=s,a=r.tokenizer[i],l=n[i];n[i]=(...c)=>{let p=a.apply(n,c);return p===!1&&(p=l.apply(n,c)),p}}o.tokenizer=n}if(r.hooks){let n=this.defaults.hooks||new Pe;for(let s in r.hooks){if(!(s in n))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let i=s,a=r.hooks[i],l=n[i];Pe.passThroughHooks.has(s)?n[i]=c=>{if(this.defaults.async&&Pe.passThroughHooksRespectAsync.has(s))return(async()=>{let g=await a.call(n,c);return l.call(n,g)})();let p=a.call(n,c);return l.call(n,p)}:n[i]=(...c)=>{if(this.defaults.async)return(async()=>{let g=await a.apply(n,c);return g===!1&&(g=await l.apply(n,c)),g})();let p=a.apply(n,c);return p===!1&&(p=l.apply(n,c)),p}}o.hooks=n}if(r.walkTokens){let n=this.defaults.walkTokens,s=r.walkTokens;o.walkTokens=function(i){let a=[];return a.push(s.call(this,i)),n&&(a=a.concat(n.call(this,i))),a}}this.defaults={...this.defaults,...o}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return oe.lex(t,e??this.defaults)}parser(t,e){return ie.parse(t,e??this.defaults)}parseMarkdown(t){return(e,r)=>{let o={...r},n={...this.defaults,...o},s=this.onError(!!n.silent,!!n.async);if(this.defaults.async===!0&&o.async===!1)return s(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 s(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(n.hooks&&(n.hooks.options=n,n.hooks.block=t),n.async)return(async()=>{let i=n.hooks?await n.hooks.preprocess(e):e,a=await(n.hooks?await n.hooks.provideLexer():t?oe.lex:oe.lexInline)(i,n),l=n.hooks?await n.hooks.processAllTokens(a):a;n.walkTokens&&await Promise.all(this.walkTokens(l,n.walkTokens));let c=await(n.hooks?await n.hooks.provideParser():t?ie.parse:ie.parseInline)(l,n);return n.hooks?await n.hooks.postprocess(c):c})().catch(s);try{n.hooks&&(e=n.hooks.preprocess(e));let i=(n.hooks?n.hooks.provideLexer():t?oe.lex:oe.lexInline)(e,n);n.hooks&&(i=n.hooks.processAllTokens(i)),n.walkTokens&&this.walkTokens(i,n.walkTokens);let a=(n.hooks?n.hooks.provideParser():t?ie.parse:ie.parseInline)(i,n);return n.hooks&&(a=n.hooks.postprocess(a)),a}catch(i){return s(i)}}}onError(t,e){return r=>{if(r.message+=`
|
|
60
|
+
Please report this to https://github.com/markedjs/marked.`,t){let o="<p>An error occurred:</p><pre>"+K(r.message+"",!0)+"</pre>";return e?Promise.resolve(o):o}if(e)return Promise.reject(r);throw r}}},fe=new Fo;function H(t,e){return fe.parse(t,e)}$(H,"g$7");F(H,"k");H.options=H.setOptions=function(t){return fe.setOptions(t),H.defaults=fe.defaults,ft(H.defaults),H};H.getDefaults=Xe;H.defaults=ve;H.use=function(...t){return fe.use(...t),H.defaults=fe.defaults,ft(H.defaults),H};H.walkTokens=function(t,e){return fe.walkTokens(t,e)};H.parseInline=fe.parseInline;H.Parser=ie;H.parser=ie.parse;H.Renderer=Ue;H.TextRenderer=$t;H.Lexer=oe;H.lexer=oe.lex;H.Tokenizer=Ve;H.Hooks=Pe;H.parse=H;var Vt=H,Ro=Object.defineProperty,zo=$((t,e)=>Ro(t,"name",{value:e,configurable:!0}),"t$1");const Ho=["cjs","mjs"],Ao=["mdoc"],_e=zo(t=>{const e=(t.split("?")[0]??t).split(".").pop()?.toLowerCase();if(!e||Ho.includes(e))return"javascript";if(Ao.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"),Io=500,Tr="visulima:vite-overlay:error",Do="visulima-vite-overlay",Pr="Error",Bo="Runtime error",Ut="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",Nt="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",Wt="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",Gt="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",Yt="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 ht=(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))(ht||{}),jo=`/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */
|
|
61
61
|
@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 Xt=`/* eslint-disable no-bitwise */
|
|
62
62
|
/* eslint-disable class-methods-use-this */
|
|
63
63
|
/* eslint-disable sonarjs/cognitive-complexity */
|
|
@@ -1530,7 +1530,7 @@ class ErrorOverlay extends HTMLElement {
|
|
|
1530
1530
|
this._updateHistoryToggleVisibility();
|
|
1531
1531
|
}
|
|
1532
1532
|
}
|
|
1533
|
-
`;var
|
|
1533
|
+
`;var Oo=Object.defineProperty,Ke=$((t,e)=>Oo(t,"name",{value:e,configurable:!0}),"a$7");const Qt='<option value="">Auto-detected Editor</option>',qo="class ErrorOverlay",Zo="var ErrorOverlay = ",Vo="window.ErrorOverlay = ErrorOverlay;",Uo=Ke(()=>{try{const t=Object.keys(ht);return[Qt,...t.map(e=>`<option value="${String(e)}">${String(ht[e])}</option>`)].join("")}catch{return Qt}},"generateEditorOptions"),Jt=`<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">
|
|
1534
1534
|
<mask id="error_overlay_nav_mask0_2667_14687" maskUnits="userSpaceOnUse" x="0" y="-1" width="60" height="43" style="mask-type: alpha;">
|
|
1535
1535
|
<mask id="error_overlay_nav_path_1_outside_1_2667_14687" maskUnits="userSpaceOnUse" x="0" y="-1" width="60" height="43" fill="black">
|
|
1536
1536
|
<rect fill="white" y="-1" width="60" height="43"></rect>
|
|
@@ -1564,7 +1564,7 @@ class ErrorOverlay extends HTMLElement {
|
|
|
1564
1564
|
<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>
|
|
1565
1565
|
<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>
|
|
1566
1566
|
</g>
|
|
1567
|
-
</svg>`,
|
|
1567
|
+
</svg>`,No=Ke((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">
|
|
1568
1568
|
<div id="__v_o__backdrop" class="fixed inset-0 -z-1 bg-black/60 backdrop-blur-sm md:backdrop-blur pointer-events-auto"></div>
|
|
1569
1569
|
<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);">
|
|
1570
1570
|
<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">
|
|
@@ -1693,46 +1693,46 @@ class ErrorOverlay extends HTMLElement {
|
|
|
1693
1693
|
<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>
|
|
1694
1694
|
<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>
|
|
1695
1695
|
</div>
|
|
1696
|
-
</div>`,"rootElement"),
|
|
1697
|
-
${
|
|
1696
|
+
</div>`,"rootElement"),Wo=Ke(t=>{const e=Uo();return`<style>${jo}</style>
|
|
1697
|
+
${No("__v_o__root",e)}
|
|
1698
1698
|
|
|
1699
1699
|
${t?`
|
|
1700
1700
|
<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;">
|
|
1701
1701
|
<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>
|
|
1702
1702
|
<span id="__v_o__balloon_text">Errors</span>
|
|
1703
|
-
</button>`:""}`},"generateOverlayTemplate"),
|
|
1703
|
+
</button>`:""}`},"generateOverlayTemplate"),Go=Ke((t,e)=>{const r=Wo(e),o=`const overlayTemplate = ${JSON.stringify(r)};`;let n=t.replace(qo,`${o}
|
|
1704
1704
|
${Xt}
|
|
1705
|
-
class ViteErrorOverlay`);return n=n.replace(
|
|
1705
|
+
class ViteErrorOverlay`);return n=n.replace(Zo,`${o}
|
|
1706
1706
|
${Xt}
|
|
1707
1707
|
var ViteErrorOverlay = `),n=`${n}
|
|
1708
1708
|
|
|
1709
|
-
${
|
|
1710
|
-
`)}</ul>`;if(p){const m=o;[...Mr].some(w=>m.includes(w))&&(g+=`Files in the \`public\` folder should be accessed via absolute URLs like \`/${m}\`.`)}return g},"findSimilarFiles"),
|
|
1709
|
+
${Vo};`,n},"patchOverlay");var Yo=Object.defineProperty,I=$((t,e)=>Yo(t,"name",{value:e,configurable:!0}),"n$2");const Xo=4,er=1e3,Qo=5,Jo=.5,Ko=[".js",".ts",".jsx",".tsx",".mjs",".cjs"],ei=[".css",".scss",".sass",".less"],Mr=[".svg",".png",".jpg",".jpeg",".gif",".webp",".ico"],ti=new Set([...Mr,...Ko,...ei]),j=I((t,...e)=>{const r=t.toLowerCase();return e.some(o=>r.includes(o.toLowerCase()))},"has"),ri=I((t,e)=>{const r=ee.relative(t,e);return r.startsWith(".")?r:`./${r}`},"getRelativePath"),ni=I(t=>t===0?"":t===1?" (in parent directory)":t===2?" (in grandparent directory)":` (${t} directories away)`,"getPathContext"),oi=I((t,e)=>{try{const r=ee.relative(t,e).split(ee.sep).filter(n=>n&&n!==".");let o=0;for(const n of r)o+=n===".."?2:1;return o}catch{return 10}},"calculatePathDistance"),ii=I((t,e,r,o)=>{if(e&&o===e){const s=qe(t,r);return s<=Math.max(3,Math.floor(t.length*Jo))?10-s:0}if(!e){const s=qe(t,r);return s===0?9:s<=Math.max(2,Math.floor(t.length*.3))&&ti.has(o)?7-s:0}const n=qe(t,r);return n<=Math.max(2,Math.floor(t.length*.4))?5-n:0},"calculateRelevanceScore"),si=I((t,e,r)=>{const o=[],n=I((s,i=0)=>{if(!(i>Xo||o.length>er))try{const a=Gn.readdirSync(s,{withFileTypes:!0});for(const l of a){if(o.length>er)break;const c=ee.join(s,l.name);if(l.isDirectory()&&!l.name.startsWith(".")&&l.name!=="node_modules")n(c,i+1);else if(l.isFile()){const p=ee.extname(l.name),g=ee.basename(l.name,p),m=ii(e,r,g,p);m>0&&o.push({baseName:g,extension:p,fullPath:c,path:c,relevanceScore:m})}}}catch{}},"walk");return n(t),o},"collectFileCandidates"),tr=I((t,e,r)=>{const o=ee.basename(t),n=ee.extname(o),s=ee.basename(o,n),i=ee.dirname(e),a=si(r,s,n).map(m=>{const w=qe(s,m.baseName),f=oi(i,ee.dirname(m.fullPath)),h=m.relevanceScore*.7+f*.2+w*.1;return{...m,nameDistance:w,pathDistance:f,score:h}});a.sort((m,w)=>m.score-w.score);const l=[],c=a.slice(0,8);let p=!1;for(const m of c){const w=ri(i,m.fullPath);if(!l.includes(w)){const f=ni(m.pathDistance);l.push(w+f);const h=m.fullPath.replaceAll("\\","/").split("/"),v=h.indexOf("public");v!==-1&&v<h.length-1&&(p=!0)}}let g=`<ul>${[...new Set(l)].slice(0,Qo).map(m=>`<li>\`${m}\`</li>`).join(`
|
|
1710
|
+
`)}</ul>`;if(p){const m=o;[...Mr].some(w=>m.includes(w))&&(g+=`Files in the \`public\` folder should be accessed via absolute URLs like \`/${m}\`.`)}return g},"findSimilarFiles"),ai=[{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(`
|
|
1711
1711
|
`),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(`
|
|
1712
|
-
`)},test:I(t=>j(t,"hydration failed","did not match","expected server html","text content does not match"),"test")}],
|
|
1713
|
-
`),n=Mi(e),s=Ti(e),i=Y((g,m,w)=>{let f=0;for(const[h,v]of g.entries()){if(!v)continue;const L=v.includes(m)||ir(v,m),S=Ar.some(x=>x.test(v));if(L&&S){const{bestMatch:x,bestPattern:R}=sr(v);if(x&&R&&(f++,f>w))return{column:ar(x,R),line:h+1}}}return null},"processErrorConstructorLines")(o,e,r);if(i)return i;n&&Y((g,m,w)=>{if(g[0].includes("Failed to resolve import")){const f=g[1];if(!f)return;const h=me(f);w.unshift(`import.*from ["']${h}["']`,`import.*["']${h}["']`,f)}else if(g[0].includes("is not defined")){const f=g[1];if(!f)return;w.unshift(f,`{${f}}`,`src={${f}}`,`${f}.`,`=${f}`)}else if(g[0].includes("Cannot read properties")){const f=g[1],h=g[2];if(!h)return;w.unshift(h,`${f}.${h}`,`${f}?.${h}`,`${f}[${h}]`)}else{const f=g[1];if(!f)return;const h=me(m),v=me(f);w.unshift(`new Error(\`${v}`,`throw new Error(\`${v}`,`new Error("${v}`,`new Error('${v}`,`throw new Error("${v}`,`throw new Error('${v}`,`new Error("${h}")`,`new Error('${h}')`,`throw new Error("${h}")`,`throw new Error('${h}')`,`new Error(\`${h}\`)`,`throw new Error(\`${h}\`)`)}},"addDynamicPatterns")(n,e,s);const a=Y((g,m,w)=>{let f=0;for(const[h,v]of g.entries()){if(!v||!ir(v,m))continue;const{bestMatch:L,bestPattern:S}=sr(v);if(L&&S&&(f++,f>w))return{column:ar(L,S),line:h+1}}return null},"processTemplateLiteralLines"),l=Y((g,m,w,f)=>{let h=0;for(const[v,L]of g.entries()){if(!L)continue;let S=-1,x=null;for(const R of m){const X=L.indexOf(R);X!==-1&&(S===-1||X<S)&&(S=X,x=R)}if(S!==-1&&x&&(h++,h>f))return{column:c(S,x,L,w),line:v+1}}return null},"processPatternLines"),c=Y((g,m,w,f)=>{if(!f)return g+1;if(f[0].includes("Failed to resolve import")){const h=f[1];if(w.includes(`"${h}"`)||w.includes(`'${h}'`)){const v=w.includes(`"${h}"`)?'"':"'";return w.indexOf(`${v}${h}${v}`)+1}}else if(f[0].includes("is not defined")){const h=f[1];if(h&&m===h)return g+1;if(h&&m.includes(h))return g+m.indexOf(h)+1}else if(f[0].includes("Cannot read properties")){const h=f[2];if(h&&m.includes(h))return g+m.indexOf(h)+1}else if(m.includes("new Error("))return w.indexOf("new Error(")+1;return g+1},"calculatePatternColumn");return a(o,e,r)||l(o,s,n,r)},"findErrorInSourceCode");var Ri=Object.defineProperty,Ie=$((t,e)=>Ri(t,"name",{value:e,configurable:!0}),"m$3");const zi=1,lr=Ie((t,e)=>{let r=t,o=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?o=Math.max(0,e-1):e>5&&(o=Math.max(0,e)),{estimatedColumn:o,estimatedLine:r}},"estimateOriginalPosition"),Hi=Ie((t,e,r)=>{try{const o=new Gn(t),n=[{column:r,desc:"original",line:e},{column:Math.max(0,r-zi),desc:"offset",line:e},{column:r,desc:"line above",line:e-1},{column:r,desc:"line below",line:e+1},...Array.from({length:5},(s,i)=>({column:Math.max(0,r-2+i),desc:`col ${r-2+i}`,line:e}))];for(const s of n){const i=Yn(o,{column:s.column,line:s.line});if(i.source&&i.line!==void 0&&i.column!==void 0&&i.line>0&&i.column>=0)return{column:i.column,line:i.line,source:i.source}}}catch(o){console.warn("Source map processing failed:",o)}return null},"resolveSourceMapPosition"),Ai=Ie((t,e)=>e?Hr(t)?Ii(t,e):e:t,"resolveSourcePath"),Ii=Ie((t,e)=>{try{const r=new URL(t),o=(r.pathname||"").replace(/^\//,""),n=o.includes("/")?o.slice(0,Math.max(0,o.lastIndexOf("/"))):"";return`${r.origin}/${n?`${n}/`:""}${e}`}catch(r){return console.warn("URL parsing failed for source path resolution:",r),t}},"resolveHttpSourcePath"),ut=Ie(async(t,e,r,o,n,s,i=0)=>{if(s&&e)try{let l=null;if(e.transformResult?.map?.sourcesContent?.[0]?l=e.transformResult.map.sourcesContent[0]:e.transformResult?.code&&(l=e.transformResult.code),!l&&(e.id||e.url)){const c=e.id||e.url;if(c)try{const p=await t.transformRequest(c);p?.map&&"sourcesContent"in p.map&&p.map.sourcesContent?.[0]?l=p.map.sourcesContent[0]:p?.code&&(l=p.code)}catch(p){console.warn("Failed to get fresh source for error search:",p)}}if(!l&&r)try{const c=await import("node:fs/promises");let p=r;if(r.includes("://"))try{p=new URL(r).pathname}catch{const g=r.indexOf("://");g!==-1&&(p=r.slice(g+3))}p.startsWith("/")||(p=`${t.config.root||process.cwd()}/${p}`),l=await c.readFile(p,"utf8")}catch(c){console.warn("Failed to read source file from disk:",c)}if(l){const c=Fi(l,s,i);if(c)return{originalFileColumn:c.column,originalFileLine:c.line,originalFilePath:r}}}catch(l){console.warn("Source code search failed:",l)}let a=e?.transformResult?.map;if(!a&&(e?.id||e?.url)){const l=e.id||e.url;if(l)try{const c=await t.transformRequest(l);c?.map&&(a=c.map)}catch(c){console.warn("Failed to get fresh source map:",c)}}if(!a){const{estimatedColumn:l,estimatedLine:c}=lr(o,n);return{originalFileColumn:l,originalFileLine:c,originalFilePath:r}}try{const l=Hi(a,o,n);if(!l){const{estimatedColumn:p,estimatedLine:g}=lr(o,n);return{originalFileColumn:p,originalFileLine:g,originalFilePath:r}}const c=Ai(r,l.source);return{originalFileColumn:l.column,originalFileLine:l.line,originalFilePath:c}}catch(l){return console.warn("Source map resolution failed:",l),{originalFileColumn:n,originalFileLine:o,originalFilePath:r}}},"resolveOriginalLocation");var Di=Object.defineProperty,St=$((t,e)=>Di(t,"name",{value:e,configurable:!0}),"I"),Bi=Object.defineProperty,E=St((t,e)=>Bi(t,"name",{value:e,configurable:!0}),"__name$2");let cr=E(()=>{var t=(()=>{var e=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,s=E((d,u)=>{for(var b in u)e(d,b,{get:u[b],enumerable:!0})},"J"),i=E((d,u,b,k)=>{if(u&&typeof u=="object"||typeof u=="function")for(let y of o(u))!n.call(d,y)&&y!==b&&e(d,y,{get:E(()=>u[y],"get"),enumerable:!(k=r(u,y))||k.enumerable});return d},"T"),a=E(d=>i(e({},"__esModule",{value:!0}),d),"W"),l={};s(l,{zeptomatch:E(()=>zn,"zeptomatch")});var c=E(d=>Array.isArray(d),"k"),p=E(d=>typeof d=="function","x"),g=E(d=>d.length===0,"K"),m=(()=>{const{toString:d}=Function.prototype,u=/(?:^\(\s*(?:[^,.()]|\.(?!\.\.))*\s*\)\s*=>|^\s*[a-zA-Z$_][a-zA-Z0-9$_]*\s*=>)/;return b=>(b.length===0||b.length===1)&&u.test(d.call(b))})(),w=E(d=>typeof d=="number","Y"),f=E(d=>typeof d=="object"&&d!==null,"rr"),h=E(d=>d instanceof RegExp,"er"),v=(()=>{const d=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return u=>d.test(u.source)})(),L=(()=>{const d=/^[a-zA-Z0-9_-]+$/;return u=>d.test(u.source)&&!u.flags.includes("i")})(),S=E(d=>typeof d=="string","M"),x=E(d=>d===void 0,"f"),R=E(d=>{const u=new Map;return b=>{const k=u.get(b);if(k!==void 0)return k;const y=d(b);return u.set(b,y),y}},"ar"),X=E((d,u,b={})=>{const k={cache:{},input:d,index:0,indexBacktrackMax:0,options:b,output:[]},y=Q(u)(k),P=Math.max(k.index,k.indexBacktrackMax);if(y&&k.index===d.length)return k.output;throw new Error(`Failed to parse at index ${P}`)},"or"),_=E((d,u)=>c(d)?U(d,u):S(d)?Be(d,u):D(d,u),"o"),U=E((d,u)=>{const b={};for(const k of d){if(k.length!==1)throw new Error(`Invalid character: "${k}"`);const y=k.charCodeAt(0);b[y]=!0}return k=>{const y=k.input;let P=k.index,M=P;for(;M<y.length&&y.charCodeAt(M)in b;)M+=1;if(M>P){if(!x(u)&&!k.options.silent){const B=y.slice(P,M),W=p(u)?u(B,y,`${P}`):u;x(W)||k.output.push(W)}k.index=M}return!0}},"ir"),D=E((d,u)=>{if(L(d))return Be(d.source,u);{const b=d.source,k=d.flags.replace(/y|$/,"y"),y=new RegExp(b,k);return v(d)&&p(u)&&!m(u)?q(y,u):tt(y,u)}},"ur"),q=E((d,u)=>b=>{const k=b.index,y=b.input;d.lastIndex=k;const P=d.exec(y);if(P){const M=d.lastIndex;if(!b.options.silent){const B=u(...P,y,`${k}`);x(B)||b.output.push(B)}return b.index=M,!0}else return!1},"sr"),tt=E((d,u)=>b=>{const k=b.index,y=b.input;if(d.lastIndex=k,d.test(y)){const P=d.lastIndex;if(!x(u)&&!b.options.silent){const M=p(u)?u(y.slice(k,P),y,`${k}`):u;x(M)||b.output.push(M)}return b.index=P,!0}else return!1},"cr"),Be=E((d,u)=>b=>{const k=b.index,y=b.input;if(y.startsWith(d,k)){if(!x(u)&&!b.options.silent){const P=p(u)?u(d,y,`${k}`):u;x(P)||b.output.push(P)}return b.index+=d.length,!0}else return!1},"R"),ce=E((d,u,b,k)=>{const y=Q(d),P=u>1;return re(de(se(M=>{let B=0;for(;B<b;){const W=M.index;if(!y(M)||(B+=1,M.index===W))break}return B>=u},P),k))},"O"),rt=E((d,u)=>ce(d,0,1,u),"lr"),T=E((d,u)=>ce(d,0,1/0,u),"m"),z=E((d,u)=>{const b=d.map(Q);return re(de(se(k=>{for(let y=0,P=b.length;y<P;y++)if(!b[y](k))return!1;return!0}),u))},"_"),A=E((d,u)=>{const b=d.map(Q);return re(de(k=>{for(let y=0,P=b.length;y<P;y++)if(b[y](k))return!0;return!1},u))},"p"),se=E((d,u=!0,b=!1)=>{const k=Q(d);return u?y=>{const P=y.index,M=y.output.length,B=k(y);return!B&&!b&&(y.indexBacktrackMax=Math.max(y.indexBacktrackMax,y.index)),(!B||b)&&(y.index=P,y.output.length!==M&&(y.output.length=M)),B}:k},"P"),de=E((d,u)=>{const b=Q(d);return u?k=>{if(k.options.silent)return b(k);const y=k.output.length;if(b(k)){const P=k.output.splice(y,1/0),M=u(P);return x(M)||k.output.push(M),!0}else return!1}:b},"C"),re=(()=>{let d=0;return u=>{const b=Q(u),k=d+=1;return y=>{var P;if(y.options.memoization===!1)return b(y);const M=y.index,B=(P=y.cache)[k]||(P[k]={indexMax:-1,queue:[]}),W=B.queue;if(M<=B.indexMax){const Ce=B.store||(B.store=new Map);if(W.length){for(let be=0,An=W.length;be<An;be+=2){const In=W[be*2],Dn=W[be*2+1];Ce.set(In,Dn)}W.length=0}const ne=Ce.get(M);if(ne===!1)return!1;if(w(ne))return y.index=ne,!0;if(ne)return y.index=ne.index,ne.output?.length&&y.output.push(...ne.output),!0}const It=y.output.length,Hn=b(y);if(B.indexMax=Math.max(B.indexMax,M),Hn){const Ce=y.index,ne=y.output.length;if(ne>It){const be=y.output.slice(It,ne);W.push(M,{index:Ce,output:be})}else W.push(M,Ce);return!0}else return W.push(M,!1),!1}}})(),Ee=E(d=>{let u;return b=>(u||(u=Q(d())),u(b))},"A"),Q=R(d=>{if(p(d))return g(d)?Ee(d):d;if(S(d)||h(d))return _(d);if(c(d))return z(d);if(f(d))return A(Object.values(d));throw new Error("Invalid rule")}),J=E(d=>d,"v"),he=E(d=>u=>X(u,d,{memoization:!1}).join(""),"z"),Z=E(d=>{const u={};return b=>u[b]??(u[b]=d(b))},"pr"),G="abcdefghijklmnopqrstuvwxyz",ue=E(d=>{let u="";for(;d>0;){const b=(d-1)%26;u=G[b]+u,d=Math.floor((d-1)/26)}return u},"vr"),ae=E(d=>{let u=0;for(let b=0,k=d.length;b<k;b++)u=u*26+G.indexOf(d[b])+1;return u},"N"),Se=E((d,u)=>{if(u<d)return Se(u,d);const b=[];for(;d<=u;)b.push(d++);return b},"$"),Zr=E((d,u,b)=>Se(d,u).map(k=>String(k).padStart(b,"0")),"fr"),Tt=E((d,u)=>Se(ae(d),ae(u)).map(ue),"j"),nt=_(/\\./,J),Vr=_(/[$.*+?^(){}[\]\|]/,d=>`\\${d}`),Ur=_(/./,J),Nr=_(/^(?:!!)*!(.*)$/,(d,u)=>`(?!^${At(u)}$).*?`),Wr=_(/^(!!)+/,""),Gr=A([Nr,Wr]),Yr=_(/\/(\*\*\/)+/,"(?:[\\\\/].+[\\\\/]|[\\\\/])"),Xr=_(/^(\*\*\/)+/,"(?:^|.*[\\\\/])"),Qr=_(/\/(\*\*)$/,"(?:[\\\\/].*|$)"),Jr=_(/\*\*/,".*"),Pt=A([Yr,Xr,Qr,Jr]),Kr=_(/\*\/(?!\*\*\/|\*$)/,"[^\\\\/]*[\\\\/]"),en=_(/\*/,"[^\\\\/]*"),Mt=A([Kr,en]),Ft=_("?","[^\\\\/]"),tn=_("[",J),rn=_("]",J),nn=_(/[!^]/,"^\\\\/"),on=_(/[a-z]-[a-z]|[0-9]-[0-9]/i,J),sn=_(/[$.*+?^(){}[\|]/,d=>`\\${d}`),an=_(/[^\]]/,J),ln=A([nt,sn,on,an]),Rt=z([tn,rt(nn),T(ln),rn]),cn=_("{","(?:"),dn=_("}",")"),pn=_(/(\d+)\.\.(\d+)/,(d,u,b)=>Zr(+u,+b,Math.min(u.length,b.length)).join("|")),hn=_(/([a-z]+)\.\.([a-z]+)/,(d,u,b)=>Tt(u,b).join("|")),un=_(/([A-Z]+)\.\.([A-Z]+)/,(d,u,b)=>Tt(u.toLowerCase(),b.toLowerCase()).join("|").toUpperCase()),gn=A([pn,hn,un]),zt=z([cn,gn,dn]),mn=_("{","(?:"),fn=_("}",")"),vn=_(",","|"),wn=_(/[$.*+?^(){[\]\|]/,d=>`\\${d}`),bn=_(/[^}]/,J),yn=Ee(()=>Ht),kn=A([Pt,Mt,Ft,Rt,zt,yn,nt,wn,vn,bn]),Ht=z([mn,T(kn),fn]),xn=T(A([Gr,Pt,Mt,Ft,Rt,zt,Ht,nt,Vr,Ur])),_n=xn,$n=he(_n),At=$n,En=_(/\\./,J),Sn=_(/./,J),Cn=_(/\*\*\*+/,"*"),Ln=_(/([^/{[(!])\*\*/,(d,u)=>`${u}*`),Tn=_(/(^|.)\*\*(?=[^*/)\]}])/,(d,u)=>`${u}*`),Pn=T(A([En,Cn,Ln,Tn,Sn])),Mn=Pn,Fn=he(Mn),Rn=Fn,je=E((d,u)=>Array.isArray(d)?d.map(je.compile).some(b=>b.test(u)):je.compile(d).test(u),"S");je.compile=Z(d=>new RegExp(`^${At(Rn(d))}[\\\\/]?$`,"s"));var zn=je;return a(l)})();return t.default||t},"_lazyMatch"),ot;const ji=E((t,e)=>(ot||(ot=cr(),cr=null),ot(t,e)),"default");var Oi=Object.defineProperty,qi=St((t,e)=>Oi(t,"name",{value:e,configurable:!0}),"__name$1");const Zi=/^[A-Z]:\//i,we=qi((t="")=>t&&t.replaceAll("\\","/").replace(Zi,e=>e.toUpperCase()),"normalizeWindowsPath");var Vi=Object.defineProperty,N=St((t,e)=>Vi(t,"name",{value:e,configurable:!0}),"__name");const Ui=/^[/\\]{2}/,Ni=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,Ir=/^[A-Z]:$/i,dr=/^\/([A-Z]:)?$/i,Wi=/.(\.[^./]+)$/,Gi=/^[/\\]|^[a-z]:[/\\]/i,Yi=N(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),Dr=N((t,e)=>{let r="",o=0,n=-1,s=0,i=null;for(let a=0;a<=t.length;++a){if(a<t.length)i=t[a];else{if(i==="/")break;i="/"}if(i==="/"){if(!(n===a-1||s===1))if(s===2){if(r.length<2||o!==2||!r.endsWith(".")||r.at(-2)!=="."){if(r.length>2){const l=r.lastIndexOf("/");l===-1?(r="",o=0):(r=r.slice(0,l),o=r.length-1-r.lastIndexOf("/")),n=a,s=0;continue}else if(r.length>0){r="",o=0,n=a,s=0;continue}}e&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${t.slice(n+1,a)}`:r=t.slice(n+1,a),o=a-n-1;n=a,s=0}else i==="."&&s!==-1?++s:s=-1}return r},"normalizeString"),He=N(t=>Ni.test(t),"isAbsolute"),Ne=N(function(t){if(t.length===0)return".";t=we(t);const e=Ui.exec(t),r=He(t),o=t.at(-1)==="/";return t=Dr(t,!r),t.length===0?r?"/":o?"./":".":(o&&(t+="/"),Ir.test(t)&&(t+="/"),e?r?`//${t}`:`//./${t}`:r&&!He(t)?`/${t}`:t)},"normalize");N((...t)=>{let e="";for(const r of t)if(r)if(e.length>0){const o=e[e.length-1]==="/",n=r[0]==="/";o&&n?e+=r.slice(1):e+=o||n?r:`/${r}`}else e+=r;return Ne(e)},"join");const We=N(function(...t){t=t.map(o=>we(o));let e="",r=!1;for(let o=t.length-1;o>=-1&&!r;o--){const n=o>=0?t[o]:Yi();!n||n.length===0||(e=`${n}/${e}`,r=He(n))}return e=Dr(e,!r),r&&!He(e)?`/${e}`:e.length>0?e:"."},"resolve");N(function(t){return we(t)},"toNamespacedPath");const Xi=N(function(t){return Wi.exec(we(t))?.[1]??""},"extname");N(function(t,e){const r=We(t).replace(dr,"$1").split("/"),o=We(e).replace(dr,"$1").split("/");if(o[0][1]===":"&&r[0][1]===":"&&r[0]!==o[0])return o.join("/");const n=[...r];for(const s of n){if(o[0]!==s)break;r.shift(),o.shift()}return[...r.map(()=>".."),...o].join("/")},"relative");const Qi=N(t=>{const e=we(t).replace(/\/$/,"").split("/").slice(0,-1);return e.length===1&&Ir.test(e[0])&&(e[0]+="/"),e.join("/")||(He(t)?"/":".")},"dirname");N(function(t){const e=[t.root,t.dir,t.base??t.name+t.ext].filter(Boolean);return we(t.root?We(...e):e.join("/"))},"format");const Ji=N((t,e)=>{const r=we(t).split("/").pop();return e&&r.endsWith(e)?r.slice(0,-e.length):r},"basename");N(function(t){const e=Gi.exec(t)?.[0]?.replace(/\\/g,"/")??"",r=Ji(t),o=Xi(r);return{base:r,dir:Qi(t),ext:o,name:r.slice(0,r.length-o.length),root:e}},"parse");N((t,e)=>ji(e,Ne(t)),"matchesGlob");var Ki=Object.defineProperty,te=$((t,e)=>Ki(t,"name",{value:e,configurable:!0}),"e$1");const gt="/",pr=":",es="at ",ts=/https?:\/\/[^\s)]+/g,rs=/file:\/\//g,Br=/\/@fs\//g,ns=new Set([".cjs",".js",".jsx",".mjs",".svelte",".ts",".tsx",".vue"]),os=new Set(["<anonymous>","<unknown>","native"]),is=te(t=>{const e=t.trim();return!e.startsWith(es)||!([...ns].some(r=>e.includes(r))||[...os].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"),ss=te(t=>(t=t.replaceAll(Br,gt),t=t.replaceAll(rs,""),t.includes("<unknown>")?t.trim()||"":t.trim()&&!is(t)?"":t),"cleanStackLine"),as=te((t,e)=>{try{const{baseUrl:r,col:o,line:n}=ls(t),s=cs(r,e);return ds(s,n,o)}catch(r){return console.warn("Failed to absolutize URL:",t,r),t}},"absolutizeUrl"),ls=te(t=>{const e=t.match(/:(\d+)(?::(\d+))?$/),r=e?.[1],o=e?.[2];return{baseUrl:e?t.slice(0,-e[0].length):t,col:o,line:r}},"parseUrlWithLocation"),cs=te((t,e)=>{const r=new URL(t);let o=decodeURIComponent(r.pathname||"");return o=o.replaceAll(Br,gt),We(e,o.startsWith(gt)?o.slice(1):o)},"urlToAbsolutePath"),ds=te((t,e,r)=>{if(!e)return t;const o=r?`${pr}${r}`:"";return`${t}${pr}${e}${o}`},"formatAbsolutePath"),Ct=te(t=>t&&t.replaceAll(`\r
|
|
1712
|
+
`)},test:I(t=>j(t,"hydration failed","did not match","expected server html","text content does not match"),"test")}],li=I(t=>({async handle(e,r){const{file:o,language:n}=r,s=e.message??"";if(j(s,"Failed to resolve import","Cannot resolve module")){const i=s.match(/Failed to resolve import ["']([^"']+)["']/),a=s.match(/Cannot resolve module ["']([^"']+)["']/),l=i?.[1]||a?.[1];if(l&&o){const c=tr(l,o,t);if(c)return{body:`The import path \`${l}\` could not be resolved.<br/><br/>Did you mean one of these files?<br/>${c}`};if([".jsx",".tsx"].includes(n)||j(s,"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(n==="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(s,"Cannot resolve")&&(n==="typescript"||n==="javascript")){const i=s.match(/Cannot resolve ["'](\.\.?\/[^"']*)["']/);if(i){const a=i[1];if(a&&o){const l=tr(a,o,t);if(l)return{body:`Cannot resolve \`${a}\`. Did you mean one of these files?${l}`,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 i of ai)if(i.test(s,o))return i.solution},name:"vite-solution-finder",priority:20}),"createViteSolutionFinder");var ci=Object.defineProperty,xe=$((t,e)=>ci(t,"name",{value:e,configurable:!0}),"r$2");let Fe,Re;const di=xe(async(t=[])=>{try{const[e,r]=await Promise.all([import("shiki/core"),import("shiki/engine/javascript")]),{createHighlighterCore:o}=e,{createJavaScriptRegexEngine:n}=r,s=await o({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:n()}),i=s;return Re=xe(()=>{try{s?.dispose?.()}catch{}Fe=void 0},"disposeFn"),i}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 Re=xe(()=>{try{r?.dispose?.()}catch{}Fe=void 0},"disposeFn"),r}},"createSingletonHighlighter"),Fr=xe(async(t=[])=>(Fe||(Fe=di(t)),Fe),"getHighlighter");xe(async()=>{try{Re&&(Re(),Re=void 0)}catch{}},"disposeHighlighter");const rr=xe((t=[])=>({name:"@shikijs/transformers:compact-line-options",line(e,r){const o=t.find(n=>n.line===r);return o?.classes&&this.addClassToHast(e,o.classes),e}}),"transformerCompactLineOptions");var pi=Object.defineProperty,Rr=$((t,e)=>pi(t,"name",{value:e,configurable:!0}),"s$2");const hi=Rr(t=>!Array.isArray(t)||t.length===0?!1:t.some(e=>e&&typeof e=="object"&&(e.location||e.pluginName||e.text)),"isESBuildErrorArray"),ui=Rr(t=>t.map((e,r)=>{const{location:o,pluginName:n,text:s}=e,i={message:s||`ESBuild error #${r+1}`};return o&&(i.file=o.file,i.line=o.line,i.column=o.column),n&&(i.plugin=n),i.name=e.name||"Error",i.stack=e.stack||"",i}),"processESBuildErrors");var gi=Object.defineProperty,zr=$((t,e)=>gi(t,"name",{value:e,configurable:!0}),"c$5");const mi=zr((t,e)=>{for(const[r,o]of t.moduleGraph.idToModuleMap){if(!o)continue;const n=o,s=[String(n.file||"").replaceAll("\\","/"),String(r||"").replaceAll("\\","/"),String(n.url||"").replaceAll("\\","/")];for(const i of e)if(s.some(a=>a===i||a.includes(i)||i.includes(a)))return o}},"findBestModuleMatch"),ze=zr((t,e)=>{const r=[...e,...e.map(s=>s.replace(/^\/@fs\//,"")),...e.map(s=>s.replace(/^[./]*/,""))];let o,n=0;for(const s of r)try{const i=t.moduleGraph.getModuleById(s);if(i){const l=Object.keys(i).length>0,c=!!i.transformResult;let p=0;if(l&&c?p=2:l&&(p=1),l&&(p>n&&(o=i,n=p),c))return i}const a=t.moduleGraph.getModuleByUrl?.(s);if(a){const l=Object.keys(a).length>0,c=!!a.transformResult;let p=0;if(l&&c?p=2:l&&(p=1),l&&(p>n&&(o=a,n=p),c))return a}}catch{}return o||mi(t,e)||void 0},"findModuleForPath");var fi=Object.defineProperty,Et=$((t,e)=>fi(t,"name",{value:e,configurable:!0}),"r$1");const vi=/^https?:\/\//,wi=Et(t=>{const e=new URL(t),{pathname:r}=e,o=e.search||"",n=[r+o,r,r.replace(/^\/@fs\//,""),decodeURIComponent(r+o),decodeURIComponent(r)];return[...new Set(n)].filter(Boolean)},"generateUrlCandidates"),Hr=Et(t=>vi.test(t),"isHttpUrl"),ge=Et(t=>{if(!t)return[];try{if(Hr(t))return wi(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 bi=Object.defineProperty,pe=$((t,e)=>bi(t,"name",{value:e,configurable:!0}),"o$3");const yi=pe((t,e)=>t.split(/\n/g)[e-1]??"","getLine"),nr=pe(t=>t.replaceAll(/\s+/g,""),"removeWhitespace"),ki=pe((t,e)=>{if(e<=0||e>t.length)return"";const r=Math.max(0,e-1),o=t.slice(r,r+64),n=/[A-Z_$][\w$]{2,}/i.exec(o);if(n?.[0])return n[0];let s=o.trim();return s.length<4&&(s=t.slice(Math.max(0,r-16),r+16).trim()),s},"extractCandidateToken"),xi=pe((t,e)=>{if(!t||t.length<3)return null;for(const[r,o]of e.entries()){if(!o)continue;const n=o.indexOf(t);if(n!==-1)return{column:n+1,line:r+1}}return null},"tryTokenBasedSearch"),_i=pe((t,e)=>{if(!t)return null;for(const[r,o]of e.entries()){if(!o)continue;const n=o.indexOf(t);if(n!==-1)return{column:n+1,line:r+1}}return null},"tryLineSubstringSearch"),$i=pe((t,e)=>{if(!t)return null;const r=nr(t);if(!r)return null;for(const[o,n]of e.entries()){if(!n)continue;const s=nr(n).indexOf(r);if(s!==-1){const i=Ei(n,s);if(i!==-1)return{column:i,line:o+1}}}return null},"tryWhitespaceInsensitiveSearch"),Ei=pe((t,e)=>{let r=0;for(const[o,n]of[...t].entries())if(typeof n=="string"){if(r===e)return o+1;/\s/.test(n)||r++}return-1},"mapNormalizedToOriginalPosition"),Si=pe((t,e,r,o)=>{const n=yi(t,e);if(!n)return null;const s=o.split(/\n/g),i=ki(n,r);return xi(i,s)||_i(n.trim(),s)||$i(n.trim(),s)},"realignOriginalPosition");var Ci=Object.defineProperty,Y=$((t,e)=>Ci(t,"name",{value:e,configurable:!0}),"u$1");const Li=/`((?:[^`$]|\$\{[^}]+\})*)`/g,or=/\$\{[^}]+\}/g,Ti=/[.*+?^${}()|[\]\\]/g,Ar=[/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=Y(t=>t.replaceAll(Ti,String.raw`\$&`),"escapeRegex"),Pi=Y(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"),ir=Y((t,e)=>{const r=[...t.matchAll(Li)];for(const o of r){const n=o[1];if(!n)continue;const s=n.split(or);if(s.every(a=>a===""||e.includes(a))&&s.length>1)return!0;if(!n)continue;const i=n.replaceAll(or,"(.+?)");try{if(new RegExp(`^${me(i)}$`).test(e))return!0}catch{}}return!1},"checkTemplateLiteralMatch"),Mi=[/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 (.+?)\)/],Fi=Y(t=>{for(const e of Mi){const r=t.match(e);if(r)return r}return null},"findDynamicErrorMatch"),sr=Y(t=>{let e=null,r=null;for(const o of Ar){const n=t.match(o);n&&(!e||o.source.includes("throw")&&!r?.source.includes("throw"))&&(e=n,r=o)}return{bestMatch:e,bestPattern:r}},"findBestErrorConstructor"),ar=Y((t,e)=>{let r=t.index;if(e.source.includes("throw new")&&t[0].startsWith("throw new")){const o=t[0].indexOf("new");o!==-1&&(r+=o)}return r+1},"calculateActualColumn"),Ri=Y((t,e,r=0)=>{if(!t||!e)return null;const o=t.split(`
|
|
1713
|
+
`),n=Fi(e),s=Pi(e),i=Y((g,m,w)=>{let f=0;for(const[h,v]of g.entries()){if(!v)continue;const L=v.includes(m)||ir(v,m),C=Ar.some(x=>x.test(v));if(L&&C){const{bestMatch:x,bestPattern:R}=sr(v);if(x&&R&&(f++,f>w))return{column:ar(x,R),line:h+1}}}return null},"processErrorConstructorLines")(o,e,r);if(i)return i;n&&Y((g,m,w)=>{if(g[0].includes("Failed to resolve import")){const f=g[1];if(!f)return;const h=me(f);w.unshift(`import.*from ["']${h}["']`,`import.*["']${h}["']`,f)}else if(g[0].includes("is not defined")){const f=g[1];if(!f)return;w.unshift(f,`{${f}}`,`src={${f}}`,`${f}.`,`=${f}`)}else if(g[0].includes("Cannot read properties")){const f=g[1],h=g[2];if(!h)return;w.unshift(h,`${f}.${h}`,`${f}?.${h}`,`${f}[${h}]`)}else{const f=g[1];if(!f)return;const h=me(m),v=me(f);w.unshift(`new Error(\`${v}`,`throw new Error(\`${v}`,`new Error("${v}`,`new Error('${v}`,`throw new Error("${v}`,`throw new Error('${v}`,`new Error("${h}")`,`new Error('${h}')`,`throw new Error("${h}")`,`throw new Error('${h}')`,`new Error(\`${h}\`)`,`throw new Error(\`${h}\`)`)}},"addDynamicPatterns")(n,e,s);const a=Y((g,m,w)=>{let f=0;for(const[h,v]of g.entries()){if(!v||!ir(v,m))continue;const{bestMatch:L,bestPattern:C}=sr(v);if(L&&C&&(f++,f>w))return{column:ar(L,C),line:h+1}}return null},"processTemplateLiteralLines"),l=Y((g,m,w,f)=>{let h=0;for(const[v,L]of g.entries()){if(!L)continue;let C=-1,x=null;for(const R of m){const X=L.indexOf(R);X!==-1&&(C===-1||X<C)&&(C=X,x=R)}if(C!==-1&&x&&(h++,h>f))return{column:c(C,x,L,w),line:v+1}}return null},"processPatternLines"),c=Y((g,m,w,f)=>{if(!f)return g+1;if(f[0].includes("Failed to resolve import")){const h=f[1];if(w.includes(`"${h}"`)||w.includes(`'${h}'`)){const v=w.includes(`"${h}"`)?'"':"'";return w.indexOf(`${v}${h}${v}`)+1}}else if(f[0].includes("is not defined")){const h=f[1];if(h&&m===h)return g+1;if(h&&m.includes(h))return g+m.indexOf(h)+1}else if(f[0].includes("Cannot read properties")){const h=f[2];if(h&&m.includes(h))return g+m.indexOf(h)+1}else if(m.includes("new Error("))return w.indexOf("new Error(")+1;return g+1},"calculatePatternColumn");return a(o,e,r)||l(o,s,n,r)},"findErrorInSourceCode");var zi=Object.defineProperty,Ie=$((t,e)=>zi(t,"name",{value:e,configurable:!0}),"m$3");const Hi=1,lr=Ie((t,e)=>{let r=t,o=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?o=Math.max(0,e-1):e>5&&(o=Math.max(0,e)),{estimatedColumn:o,estimatedLine:r}},"estimateOriginalPosition"),Ai=Ie((t,e,r)=>{try{const o=new Yn(t),n=[{column:r,desc:"original",line:e},{column:Math.max(0,r-Hi),desc:"offset",line:e},{column:r,desc:"line above",line:e-1},{column:r,desc:"line below",line:e+1},...Array.from({length:5},(s,i)=>({column:Math.max(0,r-2+i),desc:`col ${r-2+i}`,line:e}))];for(const s of n){const i=Xn(o,{column:s.column,line:s.line});if(i.source&&i.line!==void 0&&i.column!==void 0&&i.line>0&&i.column>=0)return{column:i.column,line:i.line,source:i.source}}}catch(o){console.warn("Source map processing failed:",o)}return null},"resolveSourceMapPosition"),Ii=Ie((t,e)=>e?Hr(t)?Di(t,e):e:t,"resolveSourcePath"),Di=Ie((t,e)=>{try{const r=new URL(t),o=(r.pathname||"").replace(/^\//,""),n=o.includes("/")?o.slice(0,Math.max(0,o.lastIndexOf("/"))):"";return`${r.origin}/${n?`${n}/`:""}${e}`}catch(r){return console.warn("URL parsing failed for source path resolution:",r),t}},"resolveHttpSourcePath"),ut=Ie(async(t,e,r,o,n,s,i=0)=>{if(s&&e)try{let l=null;if(e.transformResult?.map?.sourcesContent?.[0]?l=e.transformResult.map.sourcesContent[0]:e.transformResult?.code&&(l=e.transformResult.code),!l&&(e.id||e.url)){const c=e.id||e.url;if(c)try{const p=await t.transformRequest(c);p?.map&&"sourcesContent"in p.map&&p.map.sourcesContent?.[0]?l=p.map.sourcesContent[0]:p?.code&&(l=p.code)}catch(p){console.warn("Failed to get fresh source for error search:",p)}}if(!l&&r)try{const c=await import("node:fs/promises");let p=r;if(r.includes("://"))try{p=new URL(r).pathname}catch{const g=r.indexOf("://");g!==-1&&(p=r.slice(g+3))}p.startsWith("/")||(p=`${t.config.root||process.cwd()}/${p}`),l=await c.readFile(p,"utf8")}catch(c){console.warn("Failed to read source file from disk:",c)}if(l){const c=Ri(l,s,i);if(c)return{originalFileColumn:c.column,originalFileLine:c.line,originalFilePath:r}}}catch(l){console.warn("Source code search failed:",l)}let a=e?.transformResult?.map;if(!a&&(e?.id||e?.url)){const l=e.id||e.url;if(l)try{const c=await t.transformRequest(l);c?.map&&(a=c.map)}catch(c){console.warn("Failed to get fresh source map:",c)}}if(!a){const{estimatedColumn:l,estimatedLine:c}=lr(o,n);return{originalFileColumn:l,originalFileLine:c,originalFilePath:r}}try{const l=Ai(a,o,n);if(!l){const{estimatedColumn:p,estimatedLine:g}=lr(o,n);return{originalFileColumn:p,originalFileLine:g,originalFilePath:r}}const c=Ii(r,l.source);return{originalFileColumn:l.column,originalFileLine:l.line,originalFilePath:c}}catch(l){return console.warn("Source map resolution failed:",l),{originalFileColumn:n,originalFileLine:o,originalFilePath:r}}},"resolveOriginalLocation");var Bi=Object.defineProperty,ji=$((t,e)=>Bi(t,"name",{value:e,configurable:!0}),"ce"),Oi=Object.defineProperty,St=ji((t,e)=>Oi(t,"name",{value:e,configurable:!0}),"C"),qi=Object.defineProperty,E=St((t,e)=>qi(t,"name",{value:e,configurable:!0}),"u$1");let cr=E(()=>{var t=(()=>{var e=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,s=E((d,u)=>{for(var b in u)e(d,b,{get:u[b],enumerable:!0})},"J"),i=E((d,u,b,k)=>{if(u&&typeof u=="object"||typeof u=="function")for(let y of o(u))!n.call(d,y)&&y!==b&&e(d,y,{get:E(()=>u[y],"get"),enumerable:!(k=r(u,y))||k.enumerable});return d},"T"),a=E(d=>i(e({},"__esModule",{value:!0}),d),"W"),l={};s(l,{zeptomatch:E(()=>Hn,"zeptomatch")});var c=E(d=>Array.isArray(d),"k"),p=E(d=>typeof d=="function","x"),g=E(d=>d.length===0,"K"),m=(()=>{const{toString:d}=Function.prototype,u=/(?:^\(\s*(?:[^,.()]|\.(?!\.\.))*\s*\)\s*=>|^\s*[a-zA-Z$_][a-zA-Z0-9$_]*\s*=>)/;return b=>(b.length===0||b.length===1)&&u.test(d.call(b))})(),w=E(d=>typeof d=="number","Y"),f=E(d=>typeof d=="object"&&d!==null,"rr"),h=E(d=>d instanceof RegExp,"er"),v=(()=>{const d=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return u=>d.test(u.source)})(),L=(()=>{const d=/^[a-zA-Z0-9_-]+$/;return u=>d.test(u.source)&&!u.flags.includes("i")})(),C=E(d=>typeof d=="string","M"),x=E(d=>d===void 0,"f"),R=E(d=>{const u=new Map;return b=>{const k=u.get(b);if(k!==void 0)return k;const y=d(b);return u.set(b,y),y}},"ar"),X=E((d,u,b={})=>{const k={cache:{},input:d,index:0,indexBacktrackMax:0,options:b,output:[]},y=Q(u)(k),P=Math.max(k.index,k.indexBacktrackMax);if(y&&k.index===d.length)return k.output;throw new Error(`Failed to parse at index ${P}`)},"or"),_=E((d,u)=>c(d)?U(d,u):C(d)?Be(d,u):D(d,u),"o"),U=E((d,u)=>{const b={};for(const k of d){if(k.length!==1)throw new Error(`Invalid character: "${k}"`);const y=k.charCodeAt(0);b[y]=!0}return k=>{const y=k.input;let P=k.index,M=P;for(;M<y.length&&y.charCodeAt(M)in b;)M+=1;if(M>P){if(!x(u)&&!k.options.silent){const B=y.slice(P,M),W=p(u)?u(B,y,`${P}`):u;x(W)||k.output.push(W)}k.index=M}return!0}},"ir"),D=E((d,u)=>{if(L(d))return Be(d.source,u);{const b=d.source,k=d.flags.replace(/y|$/,"y"),y=new RegExp(b,k);return v(d)&&p(u)&&!m(u)?q(y,u):tt(y,u)}},"ur"),q=E((d,u)=>b=>{const k=b.index,y=b.input;d.lastIndex=k;const P=d.exec(y);if(P){const M=d.lastIndex;if(!b.options.silent){const B=u(...P,y,`${k}`);x(B)||b.output.push(B)}return b.index=M,!0}else return!1},"sr"),tt=E((d,u)=>b=>{const k=b.index,y=b.input;if(d.lastIndex=k,d.test(y)){const P=d.lastIndex;if(!x(u)&&!b.options.silent){const M=p(u)?u(y.slice(k,P),y,`${k}`):u;x(M)||b.output.push(M)}return b.index=P,!0}else return!1},"cr"),Be=E((d,u)=>b=>{const k=b.index,y=b.input;if(y.startsWith(d,k)){if(!x(u)&&!b.options.silent){const P=p(u)?u(d,y,`${k}`):u;x(P)||b.output.push(P)}return b.index+=d.length,!0}else return!1},"R"),ce=E((d,u,b,k)=>{const y=Q(d),P=u>1;return re(de(se(M=>{let B=0;for(;B<b;){const W=M.index;if(!y(M)||(B+=1,M.index===W))break}return B>=u},P),k))},"O"),rt=E((d,u)=>ce(d,0,1,u),"lr"),T=E((d,u)=>ce(d,0,1/0,u),"m"),z=E((d,u)=>{const b=d.map(Q);return re(de(se(k=>{for(let y=0,P=b.length;y<P;y++)if(!b[y](k))return!1;return!0}),u))},"S"),A=E((d,u)=>{const b=d.map(Q);return re(de(k=>{for(let y=0,P=b.length;y<P;y++)if(b[y](k))return!0;return!1},u))},"p"),se=E((d,u=!0,b=!1)=>{const k=Q(d);return u?y=>{const P=y.index,M=y.output.length,B=k(y);return!B&&!b&&(y.indexBacktrackMax=Math.max(y.indexBacktrackMax,y.index)),(!B||b)&&(y.index=P,y.output.length!==M&&(y.output.length=M)),B}:k},"P"),de=E((d,u)=>{const b=Q(d);return u?k=>{if(k.options.silent)return b(k);const y=k.output.length;if(b(k)){const P=k.output.splice(y,1/0),M=u(P);return x(M)||k.output.push(M),!0}else return!1}:b},"C"),re=(()=>{let d=0;return u=>{const b=Q(u),k=d+=1;return y=>{var P;if(y.options.memoization===!1)return b(y);const M=y.index,B=(P=y.cache)[k]||(P[k]={indexMax:-1,queue:[]}),W=B.queue;if(M<=B.indexMax){const Ce=B.store||(B.store=new Map);if(W.length){for(let be=0,In=W.length;be<In;be+=2){const Dn=W[be*2],Bn=W[be*2+1];Ce.set(Dn,Bn)}W.length=0}const ne=Ce.get(M);if(ne===!1)return!1;if(w(ne))return y.index=ne,!0;if(ne)return y.index=ne.index,ne.output?.length&&y.output.push(...ne.output),!0}const It=y.output.length,An=b(y);if(B.indexMax=Math.max(B.indexMax,M),An){const Ce=y.index,ne=y.output.length;if(ne>It){const be=y.output.slice(It,ne);W.push(M,{index:Ce,output:be})}else W.push(M,Ce);return!0}else return W.push(M,!1),!1}}})(),Ee=E(d=>{let u;return b=>(u||(u=Q(d())),u(b))},"A"),Q=R(d=>{if(p(d))return g(d)?Ee(d):d;if(C(d)||h(d))return _(d);if(c(d))return z(d);if(f(d))return A(Object.values(d));throw new Error("Invalid rule")}),J=E(d=>d,"v"),he=E(d=>u=>X(u,d,{memoization:!1}).join(""),"z"),Z=E(d=>{const u={};return b=>u[b]??(u[b]=d(b))},"pr"),G="abcdefghijklmnopqrstuvwxyz",ue=E(d=>{let u="";for(;d>0;){const b=(d-1)%26;u=G[b]+u,d=Math.floor((d-1)/26)}return u},"vr"),ae=E(d=>{let u=0;for(let b=0,k=d.length;b<k;b++)u=u*26+G.indexOf(d[b])+1;return u},"N"),Se=E((d,u)=>{if(u<d)return Se(u,d);const b=[];for(;d<=u;)b.push(d++);return b},"$"),Zr=E((d,u,b)=>Se(d,u).map(k=>String(k).padStart(b,"0")),"fr"),Tt=E((d,u)=>Se(ae(d),ae(u)).map(ue),"j"),nt=_(/\\./,J),Vr=_(/[$.*+?^(){}[\]\|]/,d=>`\\${d}`),Ur=_(/[\\/]/,"[\\\\/]"),Nr=_(/./,J),Wr=_(/^(?:!!)*!(.*)$/,(d,u)=>`(?!^${At(u)}$).*?`),Gr=_(/^(!!)+/,""),Yr=A([Wr,Gr]),Xr=_(/\/(\*\*\/)+/,"(?:[\\\\/].+[\\\\/]|[\\\\/])"),Qr=_(/^(\*\*\/)+/,"(?:^|.*[\\\\/])"),Jr=_(/\/(\*\*)$/,"(?:[\\\\/].*|$)"),Kr=_(/\*\*/,".*"),Pt=A([Xr,Qr,Jr,Kr]),en=_(/\*\/(?!\*\*\/|\*$)/,"[^\\\\/]*[\\\\/]"),tn=_(/\*/,"[^\\\\/]*"),Mt=A([en,tn]),Ft=_("?","[^\\\\/]"),rn=_("[",J),nn=_("]",J),on=_(/[!^]/,"^\\\\/"),sn=_(/[a-z]-[a-z]|[0-9]-[0-9]/i,J),an=_(/[$.*+?^(){}[\|]/,d=>`\\${d}`),ln=_(/[^\]]/,J),cn=A([nt,an,sn,ln]),Rt=z([rn,rt(on),T(cn),nn]),dn=_("{","(?:"),pn=_("}",")"),hn=_(/(\d+)\.\.(\d+)/,(d,u,b)=>Zr(+u,+b,Math.min(u.length,b.length)).join("|")),un=_(/([a-z]+)\.\.([a-z]+)/,(d,u,b)=>Tt(u,b).join("|")),gn=_(/([A-Z]+)\.\.([A-Z]+)/,(d,u,b)=>Tt(u.toLowerCase(),b.toLowerCase()).join("|").toUpperCase()),mn=A([hn,un,gn]),zt=z([dn,mn,pn]),fn=_("{","(?:"),vn=_("}",")"),wn=_(",","|"),bn=_(/[$.*+?^(){[\]\|]/,d=>`\\${d}`),yn=_(/[^}]/,J),kn=Ee(()=>Ht),xn=A([Pt,Mt,Ft,Rt,zt,kn,nt,bn,wn,yn]),Ht=z([fn,T(xn),vn]),_n=T(A([Yr,Pt,Mt,Ft,Rt,zt,Ht,nt,Vr,Ur,Nr])),$n=_n,En=he($n),At=En,Sn=_(/\\./,J),Cn=_(/./,J),Ln=_(/\*\*\*+/,"*"),Tn=_(/([^/{[(!])\*\*/,(d,u)=>`${u}*`),Pn=_(/(^|.)\*\*(?=[^*/)\]}])/,(d,u)=>`${u}*`),Mn=T(A([Sn,Ln,Tn,Pn,Cn])),Fn=Mn,Rn=he(Fn),zn=Rn,je=E((d,u)=>Array.isArray(d)?d.map(je.compile).some(b=>b.test(u)):je.compile(d).test(u),"_");je.compile=Z(d=>new RegExp(`^${At(zn(d))}[\\\\/]?$`,"s"));var Hn=je;return a(l)})();return t.default||t},"_lazyMatch"),ot;const Zi=E((t,e)=>(ot||(ot=cr(),cr=null),ot(t,e)),"default");var Vi=Object.defineProperty,Ui=St((t,e)=>Vi(t,"name",{value:e,configurable:!0}),"t");const Ni=/^[A-Z]:\//i,we=Ui((t="")=>t&&t.replaceAll("\\","/").replace(Ni,e=>e.toUpperCase()),"normalizeWindowsPath");var Wi=Object.defineProperty,N=St((t,e)=>Wi(t,"name",{value:e,configurable:!0}),"r");const Gi=/^[/\\]{2}/,Yi=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,Ir=/^[A-Z]:$/i,dr=/^\/([A-Z]:)?$/i,Xi=/.(\.[^./]+)$/,Qi=/^[/\\]|^[a-z]:[/\\]/i,Ji=N(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),Dr=N((t,e)=>{let r="",o=0,n=-1,s=0,i;for(let a=0;a<=t.length;++a){if(a<t.length)i=t[a];else{if(i==="/")break;i="/"}if(i==="/"){if(!(n===a-1||s===1))if(s===2){if(r.length<2||o!==2||!r.endsWith(".")||r.at(-2)!=="."){if(r.length>2){const l=r.lastIndexOf("/");l===-1?(r="",o=0):(r=r.slice(0,l),o=r.length-1-r.lastIndexOf("/")),n=a,s=0;continue}else if(r.length>0){r="",o=0,n=a,s=0;continue}}e&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${t.slice(n+1,a)}`:r=t.slice(n+1,a),o=a-n-1;n=a,s=0}else i==="."&&s!==-1?++s:s=-1}return r},"normalizeString"),He=N(t=>Yi.test(t),"isAbsolute"),Ne=N(function(t){if(t.length===0)return".";t=we(t);const e=Gi.exec(t),r=He(t),o=t.at(-1)==="/";return t=Dr(t,!r),t.length===0?r?"/":o?"./":".":(o&&(t+="/"),Ir.test(t)&&(t+="/"),e?r?`//${t}`:`//./${t}`:r&&!He(t)?`/${t}`:t)},"normalize");N((...t)=>{let e="";for(const r of t)if(r)if(e.length>0){const o=e[e.length-1]==="/",n=r[0]==="/";o&&n?e+=r.slice(1):e+=o||n?r:`/${r}`}else e+=r;return Ne(e)},"join");const We=N(function(...t){t=t.map(o=>we(o));let e="",r=!1;for(let o=t.length-1;o>=-1&&!r;o--){const n=o>=0?t[o]:Ji();!n||n.length===0||(e=`${n}/${e}`,r=He(n))}return e=Dr(e,!r),r&&!He(e)?`/${e}`:e.length>0?e:"."},"resolve");N(function(t){return we(t)},"toNamespacedPath");const Ki=N(function(t){return Xi.exec(we(t))?.[1]??""},"extname");N(function(t,e){const r=We(t).replace(dr,"$1").split("/"),o=We(e).replace(dr,"$1").split("/");if(o[0][1]===":"&&r[0][1]===":"&&r[0]!==o[0])return o.join("/");const n=[...r];for(const s of n){if(o[0]!==s)break;r.shift(),o.shift()}return[...r.map(()=>".."),...o].join("/")},"relative");const es=N(t=>{const e=we(t).replace(/\/$/,"").split("/").slice(0,-1);return e.length===1&&Ir.test(e[0])&&(e[0]+="/"),e.join("/")||(He(t)?"/":".")},"dirname");N(function(t){const e=[t.root,t.dir,t.base??t.name+t.ext].filter(Boolean);return we(t.root?We(...e):e.join("/"))},"format");const ts=N((t,e)=>{const r=we(t).split("/").pop();return e&&r.endsWith(e)?r.slice(0,-e.length):r},"basename");N(function(t){const e=Qi.exec(t)?.[0]?.replaceAll("\\","/")??"",r=ts(t),o=Ki(r);return{base:r,dir:es(t),ext:o,name:r.slice(0,r.length-o.length),root:e}},"parse");N((t,e)=>Zi(e,Ne(t)),"matchesGlob");var rs=Object.defineProperty,te=$((t,e)=>rs(t,"name",{value:e,configurable:!0}),"e$1");const gt="/",pr=":",ns="at ",os=/https?:\/\/[^\s)]+/g,is=/file:\/\//g,Br=/\/@fs\//g,ss=new Set([".cjs",".js",".jsx",".mjs",".svelte",".ts",".tsx",".vue"]),as=new Set(["<anonymous>","<unknown>","native"]),ls=te(t=>{const e=t.trim();return!e.startsWith(ns)||!([...ss].some(r=>e.includes(r))||[...as].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"),cs=te(t=>(t=t.replaceAll(Br,gt),t=t.replaceAll(is,""),t.includes("<unknown>")?t.trim()||"":t.trim()&&!ls(t)?"":t),"cleanStackLine"),ds=te((t,e)=>{try{const{baseUrl:r,col:o,line:n}=ps(t),s=hs(r,e);return us(s,n,o)}catch(r){return console.warn("Failed to absolutize URL:",t,r),t}},"absolutizeUrl"),ps=te(t=>{const e=t.match(/:(\d+)(?::(\d+))?$/),r=e?.[1],o=e?.[2];return{baseUrl:e?t.slice(0,-e[0].length):t,col:o,line:r}},"parseUrlWithLocation"),hs=te((t,e)=>{const r=new URL(t);let o=decodeURIComponent(r.pathname||"");return o=o.replaceAll(Br,gt),We(e,o.startsWith(gt)?o.slice(1):o)},"urlToAbsolutePath"),us=te((t,e,r)=>{if(!e)return t;const o=r?`${pr}${r}`:"";return`${t}${pr}${e}${o}`},"formatAbsolutePath"),Ct=te(t=>t&&t.replaceAll(`\r
|
|
1714
1714
|
`,`
|
|
1715
1715
|
`).replaceAll("\r",`
|
|
1716
|
-
`).split(/\n/).map(
|
|
1717
|
-
`),"cleanErrorStack"),
|
|
1718
|
-
`)[0]||t;if(e&&r>0&&o>0)return{column:o,line:r,message:l,originalFilePath:e}},"parseVueCompilationError");var
|
|
1716
|
+
`).split(/\n/).map(cs).filter(e=>e.trim()!=="").join(`
|
|
1717
|
+
`),"cleanErrorStack"),gs=te(t=>{const e=typeof t=="string"?t:t.message||String(t);return qn(e)},"cleanErrorMessage"),ms=te(t=>t instanceof AggregateError||t&&typeof t=="object"&&"errors"in t&&Array.isArray(t.errors),"isAggregateError"),fs=te(t=>ms(t)?t.errors:[t],"extractErrors"),et=te((t,e)=>t&&String(t).replaceAll(os,r=>ds(r,e)),"absolutizeStackUrls");var vs=Object.defineProperty,ws=$((t,e)=>vs(t,"name",{value:e,configurable:!0}),"a$3");const bs=ws(t=>{if(!t.includes("[vue/compiler-sfc]"))return;let e="",r=0,o=0;const n=/\((\d+):(\d+)\)/,s=t.match(n);s&&s[1]&&s[2]&&(r=Number.parseInt(s[1],10),o=Number.parseInt(s[2],10));const i=/(\S+\.vue)/,a=t.match(i);a&&a[1]&&(e=a[1]||"");const l=t.split(`
|
|
1718
|
+
`)[0]||t;if(e&&r>0&&o>0)return{column:o,line:r,message:l,originalFilePath:e}},"parseVueCompilationError");var ys=Object.defineProperty,jr=$((t,e)=>ys(t,"name",{value:e,configurable:!0}),"a$2");const ks=jr(t=>{const e=/<style\b[^>]*>[\s\S]*?<\/style>/gi,r=/<script\b[^>]*>[\s\S]*?<\/script>/gi,o=/<template\b[^>]*>[\s\S]*?<\/template>/gi,n=/style="([^"]*)"/g;let s=t.replaceAll(e,"").replaceAll(r,"").replaceAll(o,"").replaceAll("<!--$?-->","").replaceAll("<!--/$-->","");return s=s.replaceAll(n,(i,a)=>`style="${(a.trim().endsWith(";")?a:`${a};`).replaceAll(" ","")}"`),s},"removeStyleAndDataAttributes"),xs="https://react.dev/link/hydration-mismatch",_s=jr(t=>{const[e,r]=t.message.split(xs);if(e){const[s]=e?.split(`
|
|
1719
1719
|
|
|
1720
|
-
`);t.message=s.replace(" This can happen if a SSR-ed Client Component used:","")}const o=[];for(const s of
|
|
1720
|
+
`);t.message=s.replace(" This can happen if a SSR-ed Client Component used:","")}const o=[];for(const s of ks(r?.trim()||"").split(`
|
|
1721
1721
|
`)||[])s.startsWith("+ ")?o.push(`[!code ++] ${s.slice(1)}`):s.startsWith("- ")?o.push(`[!code --] ${s.slice(1)}`):s.includes(" ...")||o.push(s);let n=o.findIndex(s=>s.startsWith("[!code ++]"));if(n===-1&&(n=o.findIndex(s=>s.startsWith("[!code --]"))),n!==-1)return o.slice(Math.max(0,n-5)).join(`
|
|
1722
|
-
`)},"processHydrationDiff");var
|
|
1722
|
+
`)},"processHydrationDiff");var $s=Object.defineProperty,Es=$((t,e)=>$s(t,"name",{value:e,configurable:!0}),"m$1");const Ss=Es(async(t,e,r)=>{let o=e;if(e.includes("at ")&&!e.includes(`
|
|
1723
1723
|
at `)&&(o=e.replace(/^(Error:.*?)at /,`$1
|
|
1724
1724
|
at `).replaceAll(/at ([^<\s]+)\s*(<[^>]+>:\d+:\d+)/g,`
|
|
1725
1725
|
at $1 $2`).replaceAll(/at ([^<\s]+)\s*(<unknown>:\d+:\d+)/g,`
|
|
1726
1726
|
at $1 $2`).replaceAll(/at ([^<\s]+)\s*<([^>]+)>:\d+:\d+/g,`
|
|
1727
1727
|
at $1 <$2>:d+:d+`),o=o.replaceAll(/at ([^<\s]+)(?=\s*at|$)/g,`
|
|
1728
|
-
at $1 <unknown>:0:0`)),!o.includes("<unknown>")&&!o.includes("react-dom")&&!o.includes("react"))return o;const n=ke({stack:o}),s=await Promise.all(n.map(async i=>{const{file:a}=i,l=i.line??0,c=i.column??0;if(a&&a!=="<unknown>"&&l>0&&c>0&&!a.includes("react-dom")&&!a.includes("react"))return i;if(!a||l<=0||c<=0){if((a==="<unknown>"||a&&(a.includes("react-dom")||a.includes("react")))&&i.methodName){const{methodName:p}=i,g={batchedUpdates:"Batch Updates",dispatchEvent:"Event System",executeDispatch:"Event Dispatcher",processDispatchQueue:"Event Queue",runWithFiber:"Fiber Reconciliation"};for(const[m,w]of Object.entries(g))if(p.includes(m))return{...i,column:0,file:`[React] ${w}`,line:0};if(!p.includes("$")&&!p.includes("anonymous")){const m=ge(p),w=ze(t,m);if(w){const f=await ut(t,w,"",1,1);if(f.originalFilePath)return{...i,column:f.originalFileColumn||1,file:f.originalFilePath,line:f.originalFileLine||1}}}}return i}try{const p=ge(a),g=ze(t,p);if(!g)return i;const m=await ut(t,g,a,l,c);return{...i,column:m.originalFileColumn,file:m.originalFilePath,line:m.originalFileLine}}catch{return i}}));return mr(s,{header:r})},"remapStackToOriginal");var
|
|
1728
|
+
at $1 <unknown>:0:0`)),!o.includes("<unknown>")&&!o.includes("react-dom")&&!o.includes("react"))return o;const n=ke({stack:o}),s=await Promise.all(n.map(async i=>{const{file:a}=i,l=i.line??0,c=i.column??0;if(a&&a!=="<unknown>"&&l>0&&c>0&&!a.includes("react-dom")&&!a.includes("react"))return i;if(!a||l<=0||c<=0){if((a==="<unknown>"||a&&(a.includes("react-dom")||a.includes("react")))&&i.methodName){const{methodName:p}=i,g={batchedUpdates:"Batch Updates",dispatchEvent:"Event System",executeDispatch:"Event Dispatcher",processDispatchQueue:"Event Queue",runWithFiber:"Fiber Reconciliation"};for(const[m,w]of Object.entries(g))if(p.includes(m))return{...i,column:0,file:`[React] ${w}`,line:0};if(!p.includes("$")&&!p.includes("anonymous")){const m=ge(p),w=ze(t,m);if(w){const f=await ut(t,w,"",1,1);if(f.originalFilePath)return{...i,column:f.originalFileColumn||1,file:f.originalFilePath,line:f.originalFileLine||1}}}}return i}try{const p=ge(a),g=ze(t,p);if(!g)return i;const m=await ut(t,g,a,l,c);return{...i,column:m.originalFileColumn,file:m.originalFilePath,line:m.originalFileLine}}catch{return i}}));return mr(s,{header:r})},"remapStackToOriginal");var Cs=Object.defineProperty,De=$((t,e)=>Cs(t,"name",{value:e,configurable:!0}),"t");const Ls=De(t=>!!(t&&Array.isArray(t.sources)&&Array.isArray(t.sourcesContent)),"isValidSourceMap"),it=De(t=>typeof t=="string"?t:void 0,"getSourceContent"),Ts=De((t,e)=>t===e||t.endsWith(e)||e.endsWith(t),"isPartialMatch"),Ps=De((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 o=Ne(e),n=t.indexOf(o);if(n!==-1)return n;for(const[s,i]of t.entries()){if(!i||typeof i!="string")continue;const a=Ne(i);if(Ts(a,o))return s}return-1},"findSourceIndex"),hr=De((t,e)=>{if(!Ls(t))return;if(!e&&t.sourcesContent?.[0])return it(t.sourcesContent[0]);const r=Ps(t.sources,e||"");return r>=0&&t.sourcesContent?.[r]?it(t.sourcesContent[r]):t.sourcesContent?.[0]?it(t.sourcesContent[0]):void 0},"getSourceFromMap");var Ms=Object.defineProperty,Fs=$((t,e)=>Ms(t,"name",{value:e,configurable:!0}),"f");const ur=Fs(async(t,e,r,o)=>{let n,s;if(e&&typeof e=="object"&&"transformResult"in e&&e.transformResult){const a=e.transformResult;a.code&&!s&&(s=a.code),a.map&&!n&&(n=hr(a.map,r))}const i=e&&typeof e=="object"&&("id"in e&&e.id||"url"in e&&e.url)?"id"in e&&e.id||"url"in e&&e.url:o[0];if(i&&(!n||!s))try{const a=await t.transformRequest(i);if(a?.code&&!s&&(s=a.code),a?.map&&!n){const{map:l}=a;typeof l=="object"&&l!==null&&"mappings"in l&&l.mappings!==""&&(n=hr(l,r))}}catch{}if(!n&&e&&typeof e=="object"&&"file"in e&&e.file)try{n=await fr(e.file,"utf8")}catch{}return{compiledSourceText:s,originalSourceText:n}},"retrieveSourceTexts");var Rs=Object.defineProperty,zs=$((t,e)=>Rs(t,"name",{value:e,configurable:!0}),"a");const Hs=zs((t={})=>{const{classActivePre:e="has-diff",classLineAdd:r="diff add",classLineRemove:o="diff remove"}=t;return{code(n){this.addClassToHast(this.pre,e),n.children.filter(s=>s.type==="element").forEach(s=>{for(const i of s.children){if(i.type!=="element")continue;const a=i.children[0];a.type==="text"&&(a.value.startsWith("[!code ++]")&&(a.value=a.value.slice(10),this.addClassToHast(s,r)),a.value.startsWith("[!code --]")&&(a.value=a.value.slice(10),this.addClassToHast(s,o)))}})},name:"shiki-diff"}},"shikiDiffTransformer");var As=Object.defineProperty,Is=$((t,e)=>As(t,"name",{value:e,configurable:!0}),"r");const Ds=Is((t,e)=>!e||t.includes("?")?t:t+e,"addQueryToUrl");var Bs=Object.defineProperty,js=$((t,e)=>Bs(t,"name",{value:e,configurable:!0}),"e");const Os=js(t=>{try{return new URL(t).search}catch{return""}},"extractQueryFromHttpUrl");var qs=Object.defineProperty,$e=$((t,e)=>qs(t,"name",{value:e,configurable:!0}),"E$1");const Zs=$e(t=>Array.isArray(t)&&hi(t)?ui(t).map(e=>({message:e.message||"ESBuild error",name:e.name||"Error",stack:e.stack||""})):fs(t),"extractIndividualErrors"),Vs=$e(t=>{const e=ke(t,{frameLimit:10}),r=e?.find(o=>o?.file?.startsWith("http"))||e?.[0];return{compiledColumn:r?.column??0,compiledFilePath:r?.file??"",compiledLine:r?.line??0}},"extractLocationFromStack"),Us=$e(async(t,e,r,o,n,s,i=0,a)=>{const l=n?.originalFilePath||e,c=n?.line??o,p=n?.column??r;if(l){let g=l,m=l;if(l.startsWith("http://")||l.startsWith("https://"))try{g=new URL(l).pathname,g.startsWith("/")&&(g=g.slice(1));const L=t.config.root||process.cwd();m=g.startsWith("/")?g:`${L}/${g}`}catch{console.warn("Failed to parse HTTP URL:",l)}const w=ge(g),f=ze(t,w);if(f)try{const L=await ut(t,f,e||a||g,c,p,s,i),C=m||L.originalFilePath;return{originalFileColumn:L.originalFileColumn,originalFileLine:L.originalFileLine,originalFilePath:C}}catch{console.warn("⚠️ Source map resolution failed, using estimation")}let h,v=p;return c>=20?h=Math.max(1,Math.round(c*.5)):c>15?h=Math.max(1,Math.round(c*.6)):c>10?h=Math.max(1,c-8):h=Math.max(1,c-3),p>=10||p>7?v=Math.max(0,p-1):p>5&&(v=Math.max(0,p)),{originalFileColumn:v,originalFileLine:h,originalFilePath:m||l}}return{originalFileColumn:p,originalFileLine:c,originalFilePath:l}},"resolveOriginalLocationInfo"),Ns=$e((t,e,r,o,n,s)=>({compiledCodeFrameContent:void 0,compiledColumn:t,compiledFilePath:e,compiledLine:r,fixPrompt:"",originalCodeFrameContent:void 0,originalFileColumn:o,originalFileLine:n,originalFilePath:s,originalSnippet:""}),"createEmptyResult"),Ws=$e(async(t,e,r,o,n,s)=>{let i,a;const l=_e(r)||"text",c=_e(o)||l,p=[],g=new Set([c,l]);g.has("svelte")&&p.push(import("@shikijs/langs/svelte")),g.has("vue")&&p.push(import("@shikijs/langs/vue"));const m=await Fr(p),w={themes:{dark:"github-dark-default",light:"github-light"}};if(t&&t.trim())try{i=m.codeToHtml(t,{...w,lang:l,transformers:[rr([{classes:["error-line"],line:n}])]})}catch{}if(e&&e.trim())try{a=m.codeToHtml(e,{...w,lang:c,transformers:[rr([{classes:["error-line"],line:s}])]})}catch{}return{compiledCodeFrameContent:a,originalCodeFrameContent:i}},"generateSyntaxHighlightedFrames"),Gs=$e(async(t,e,r=0,o,n,s)=>{const i=o==="vue"&&t?.message?bs(t.message):void 0,a=Zs(t),l=a[0]||t,c=o==="react"&&t.message&&(t.message.toLowerCase().includes("hydration")||t.message.toLowerCase().includes("hydrating"));let p="";if(s&&s.length>1)for(const T of s.slice(1)){const z=T.stack||"",A=ke({stack:z},{frameLimit:10})?.find(se=>se?.file?.startsWith("http"));if(A?.file&&(p=Os(A.file),p))break}const g=gs(l),m=Ct(l.stack||""),w=await Ss(e,m,{message:g,name:l.name});let f,h,v;if(n?.file&&n?.line&&n?.column)f=n.column,h=n.file,v=n.line;else{const T=Vs(l);if(f=T.compiledColumn,h=T.compiledFilePath,v=T.compiledLine,h&&!h.startsWith("http")){const z=e.config.root;let A=h;h.startsWith(z)&&(A=h.slice(z.length)),A.startsWith("/")||(A=`/${A}`);const se=e.config.server.port||e.config.preview?.port||5173,de=e.config.server.host||e.config.preview?.host||"localhost";let re=`${e.config.server.https?"https":"http"}://${de}:${se}${A}`;p&&(re=Ds(re,p)),h=re}}if(c){const T=_s(t);if(T){const z=await Fr();return{errorCount:1,fixPrompt:jt({applicationType:void 0,error:l,file:{file:h,language:"jsx",line:v,snippet:T}}),message:l.message,originalCodeFrameContent:z.codeToHtml(T,{lang:h?_e(h):"text",themes:{dark:"github-dark-default",light:"github-light"},transformers:[Hs()]}),originalFileColumn:f,originalFileLine:v,originalFilePath:h,originalSnippet:T,originalStack:l.stack||""}}}let L=n?.file||h;if(!n?.file&&l.stack){const T=ke(l,{frameLimit:10})?.find(z=>z?.file&&!z.file.startsWith("http")&&!z.file.includes("node_modules")&&!z.file.includes(".vite")&&z.file.includes(".tsx"));T?.file&&(L=T.file)}let{originalFileColumn:C,originalFileLine:x,originalFilePath:R}=await Us(e,L,f,v,i,l.message,r,h);const X=n?.plugin;let _="",U="",D,q;try{const[T,z]=await Promise.all([ze(e,ge(h)),ze(e,ge(R))]);if(!T&&!z)return Ns(f,h,v,C,x,R);const A=h.startsWith("http")?h.replace(/^https?:\/\/[^/]+/,"").replace(/^\//,""):h,se=R.startsWith("http")?R.replace(/^https?:\/\/[^/]+/,"").replace(/^\//,""):R,de=T||z;if(de?.transformResult?.code&&(q=de.transformResult.code),z?.transformResult?.map&&!D){const Z=z.transformResult.map;try{const G=Z.sourcesContent?.[0];G&&(D=G)}catch(G){console.warn("Failed to get original source from source map:",G)}}const[re,Ee]=await Promise.all([!q&&T?ur(e,T,A,ge(A)):Promise.resolve({compiledSourceText:void 0,originalSourceText:void 0}),!D&&z?ur(e,z,se,ge(se)):Promise.resolve({compiledSourceText:void 0,originalSourceText:void 0})]);if(!q&&re.compiledSourceText&&({compiledSourceText:q}=re),!D&&Ee.originalSourceText&&({originalSourceText:D}=Ee),D){if(q&&x<=0&&v>0){const Z=Si(q,v,f,D);Z&&(x=Z.line,C=Z.column)}try{_=Bt(D,{start:{column:Math.max(1,C),line:Math.max(1,x)}},{showGutter:!1})}catch{_=D?.slice(0,500)||""}}const Q=q&&v>0,J=x>0&&C>0;let he=!1;if(Q&&v>0&&l.message&&q){const Z=q.split(`
|
|
1729
1729
|
`)[v-1];if(Z&&f<=Z.length){const G=l.message,ue=Math.max(0,f-1),ae=new Set(Z.slice(Math.max(0,ue)));he=ae.has("new Error(")||ae.has("throw new Error")||ae.has("throw ")||ae.has(G.slice(0,20)),!he&&J&&(R.includes(".svelte")||R.includes(".vue")||R.includes(".astro")||h.includes(".js")||h.includes(".ts"))&&(he=!0)}}if(Q&&he&&q){const Z=q.split(`
|
|
1730
|
-
`),G=Z.length,ue=Math.min(v,G)||Math.max(1,G-2),ae=Z[ue-1]?Math.min(f||1,Z[ue-1]?.length||1):1;try{U=Bt(q,{start:{column:ae,line:ue}},{showGutter:!1})}catch(Se){console.warn("Compiled codeFrame failed:",Se),U=q?.slice(0,500)||""}}}catch(T){console.warn("Source retrieval failed:",T)}const{compiledCodeFrameContent:tt,originalCodeFrameContent:Be}=await
|
|
1730
|
+
`),G=Z.length,ue=Math.min(v,G)||Math.max(1,G-2),ae=Z[ue-1]?Math.min(f||1,Z[ue-1]?.length||1):1;try{U=Bt(q,{start:{column:ae,line:ue}},{showGutter:!1})}catch(Se){console.warn("Compiled codeFrame failed:",Se),U=q?.slice(0,500)||""}}}catch(T){console.warn("Source retrieval failed:",T)}const{compiledCodeFrameContent:tt,originalCodeFrameContent:Be}=await Ws(_,U,R,h,x,v);let ce=_;if(!ce&&D){const T=D.split(`
|
|
1731
1731
|
`),z=Math.max(0,x-3),A=Math.min(T.length,x+2);ce=T.slice(z,A).join(`
|
|
1732
|
-
`)}ce||(ce=U||`Error at line ${x} in ${R}`);const rt=jt({applicationType:void 0,error:t,file:{file:R,language:_e(R),line:x,snippet:ce}});return{compiledCodeFrameContent:tt,compiledColumn:f,compiledFilePath:h,compiledLine:v,compiledStack:mr(ke({message:g,name:l.name,stack:m}),{header:{message:g,name:l.name}}),errorCount:a.length,fixPrompt:rt,originalCodeFrameContent:Be,originalFileColumn:
|
|
1733
|
-
`),o=r.findIndex(s=>s.includes(e));if(o===-1)return;const n=r[o]||"";return{column:Math.max(0,n.indexOf(e))+1,line:o+1}},"findImportLocation"),
|
|
1734
|
-
${String(t?.stack||"")}`,"createErrorSignature"),
|
|
1735
|
-
`)||[]).find(v=>v.includes("at ")&&!v.includes("node_modules"));if(h){const v=h.match(/at\s+[^(\s]+\s*\(([^:)]+):(\d+):(\d+)\)/)||h.match(/at\s+([^:)]+):(\d+):(\d+)/);if(v){const[,L,
|
|
1732
|
+
`)}ce||(ce=U||`Error at line ${x} in ${R}`);const rt=jt({applicationType:void 0,error:t,file:{file:R,language:_e(R),line:x,snippet:ce}});return{compiledCodeFrameContent:tt,compiledColumn:f,compiledFilePath:h,compiledLine:v,compiledStack:mr(ke({message:g,name:l.name,stack:m}),{header:{message:g,name:l.name}}),errorCount:a.length,fixPrompt:rt,originalCodeFrameContent:Be,originalFileColumn:C,originalFileLine:x,originalFilePath:R,originalSnippet:_,originalStack:w||m,plugin:X}},"buildExtendedErrorData");var Ys=Object.defineProperty,le=$((t,e)=>Ys(t,"name",{value:e,configurable:!0}),"o");const Xs=/\.mdx$/i,Qs=1,Js=/Failed to load url\s+(.*?)\s+\(resolved id:/i,Ks=/glob:\s*"(.+)"\s*\(/i,ea=le(t=>t instanceof Error?t:new Error(String(t)),"createEnhancedError"),ta=le((t,e)=>{try{t.ssrFixStacktrace(e)}catch(r){console.warn("[visulima:vite-overlay:server] SSR stack trace fix failed:",r)}},"safeSsrFixStacktrace"),ra=le(t=>{try{const e=ke(t,{frameLimit:Qs})?.[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"),na=le(async t=>{try{return await fr(t,"utf8")}catch(e){console.warn(`[visulima:vite-overlay:server] Failed to read file ${t}:`,e);return}},"safeReadFile"),oa=le((t,e)=>{const r=t.id||t.loc?.file||e;r&&Xs.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"),Or=le((t,e)=>{const r=t.split(`
|
|
1733
|
+
`),o=r.findIndex(s=>s.includes(e));if(o===-1)return;const n=r[o]||"";return{column:Math.max(0,n.indexOf(e))+1,line:o+1}},"findImportLocation"),ia=le(async(t,e,r)=>{const o=Js.exec(t.message)?.[1];if(o&&(t.title="Failed to Load Module (SSR)",t.name="FailedToLoadModuleSSR",t.message=`Failed to load module: ${o}`,t.hint="Verify import path, ensure a plugin handles this file type during SSR, and check for typos or missing files.",r&&e)){const n=Or(r,o);n&&(t.loc={...n,file:e})}},"enhanceFailedLoadError"),sa=le(async(t,e,r)=>{const o=Ks.exec(t.message)?.[1];if(o&&(t.name="InvalidGlob",t.title="Invalid Glob Pattern",t.message=`Invalid glob pattern: ${o}`,t.hint=t.hint||"Ensure your glob follows the expected syntax and matches existing files. Avoid unintended special characters.",r&&e)){const n=Or(r,o);n&&(t.loc={...n,file:e})}},"enhanceGlobError"),aa=le(async(t,e)=>{const r=ea(t);ta(e,r);const o=ra(r),n=o?await na(o):void 0;return await ia(r,o,n),oa(r,o),await sa(r,o,n),r},"enhanceViteSsrError");var la=Object.defineProperty,O=$((t,e)=>la(t,"name",{value:e,configurable:!0}),"g");const Ge=O((t,e,r)=>{try{const o=r instanceof Error?r.message:String(r);t.config.logger.error(`${e}: ${o}`,{clear:!0,timestamp:!0})}catch{}},"logError"),ca=O(t=>({error:O(e=>t.config.logger.error(String(e??""),{clear:!0,timestamp:!0}),"error"),log:O(e=>t.config.logger.info(String(e??"")),"log")}),"createDevelopmentLogger"),da=O(()=>{const t=new Map;return{recentErrors:t,shouldSkip:O(e=>{const r=Date.now(),o=t.get(e)||0;return r-o<Io?!0:(t.set(e,r),!1)},"shouldSkip")}},"createRecentErrorTracker"),qr=O(t=>`${String(t?.message||"")}
|
|
1734
|
+
${String(t?.stack||"")}`,"createErrorSignature"),pa=O((t,e,r)=>async o=>{const n=o instanceof Error?o:new Error(String(o?.stack||o));try{t.ssrFixStacktrace(n)}catch(s){Ge(t,"[visulima:vite-overlay:server] ssrFixStacktrace failed",s)}try{const s=await aa(n,t);Object.assign(n,s)}catch(s){Ge(t,"[visulima:vite-overlay:server] enhanceViteSsrError failed",s)}try{n.stack=et(Ct(String(n.stack||"")),e)}catch{}await r.error(Vn(n)),t.ws.send({err:n,type:"error"})},"createUnhandledRejectionHandler"),ha=O(async(t,e,r)=>{let o;e.push(Nn,li(r),Wn);for await(const n of e.toSorted((s,i)=>i.priority-s.priority)){const{handle:s,name:i}=n;if(process.env.DEBUG&&console.debug(`Running solution finder: ${i}`),typeof s=="function")try{const a=await s({hint:t?.hint??"",message:t.message,name:t.name,stack:t?.stack},{file:t?.originalFilePath??"",language:_e(t?.originalFilePath??""),line:t?.originalFileLine??0,snippet:t?.originalSnippet??""});if(a===void 0)continue;const l=await Vt(a.header??"");o={body:await Vt(a.body??""),header:l};break}catch{continue}}return o},"findSolution"),mt=O(async(t,e,r,o,n,s,i)=>{const a=Un(t);if(a.length===0)throw new Error("No errors found in the error stack");const l=await Promise.all(a.map(async(p,g)=>{let m=o;if(g>0){const h=(p?.stack?.split(`
|
|
1735
|
+
`)||[]).find(v=>v.includes("at ")&&!v.includes("node_modules"));if(h){const v=h.match(/at\s+[^(\s]+\s*\(([^:)]+):(\d+):(\d+)\)/)||h.match(/at\s+([^:)]+):(\d+):(\d+)/);if(v){const[,L,C,x]=v;m={column:Number.parseInt(x||"0",10),file:L,line:Number.parseInt(C||"0",10),plugin:o?.plugin}}}}let w=m;g===0&&p?.sourceFile&&(w={...m,file:p.sourceFile});const f=await Gs(p,e,g,i,w,a);return{hint:p?.hint,message:p?.message||"",name:p?.name||Pr,stack:et(Ct(p?.stack||""),r),...f}})),c=await ha(l[0],s,r);return{errors:l,errorType:n,rootPath:r,solution:c}},"buildExtendedError"),ua=O((t,e)=>{const r=e.map(o=>{const n=o.charAt(0).toUpperCase()+o.slice(1);return`
|
|
1736
1736
|
var orig${n} = console.${o};
|
|
1737
1737
|
|
|
1738
1738
|
console.${o} = function(args) {
|
|
@@ -1877,7 +1877,7 @@ window.addEventListener("unhandledrejection", function (evt) {
|
|
|
1877
1877
|
window.__flameSendError = sendError;
|
|
1878
1878
|
|
|
1879
1879
|
${r}
|
|
1880
|
-
`},"generateClientScript"),Lt=O(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=Lt(t.cause)),e},"reconstructCauseChain"),
|
|
1881
|
-
${et(w,o)}`,c.cause&&(f.cause=Lt(c.cause));const h=c.sourceFile?{column:c.column,file:c.sourceFile,line:c.line,plugin:c.plugin}:void 0,v=await mt(f,t,o,h,"server",n,s);a.err=v,r.set(JSON.stringify(v),Date.now())}}i(a,l)}catch(c){Ge(t,"[visulima:vite-overlay:server] ws.send intercept failed",c),l.send(a,l)}}},"setupWebSocketInterception"),
|
|
1882
|
-
${et(f,n)}`,p.cause&&(h.cause=Lt(p.cause));try{const v=await mt(h,t,n,{column:p?.column,file:p?.file,line:p?.line,plugin:p?.plugin},"client",s,a);o.set(JSON.stringify(v),Date.now());const L={err:{...v},type:"error"};v.solution&&(L.solutions=v.solution);const
|
|
1883
|
-
`)),c.send(L)}catch(v){Ge(t,"[visulima:vite-overlay:server] failed to build extended client error",v),c.send({err:{message:v.message,name:String(v.name||Pr),stack:v.stack},type:"error"})}})},"setupHMRHandler"),
|
|
1880
|
+
`},"generateClientScript"),Lt=O(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=Lt(t.cause)),e},"reconstructCauseChain"),ga=O((t,e,r,o,n,s)=>{const i=t.ws.send.bind(t.ws);t.ws.send=async(a,l)=>{try{if(a&&typeof a=="object"&&a.type==="error"&&a.err){const{err:c}=a,p=qr(c);if(e(p))return;if(c.message?.includes("Failed to resolve import")){const g=c.message.match(/Failed to resolve import ["']([^"']+)["'] from ["']([^"']+)["']/);if(g){const m=g[2],w=new Error(c.message);w.name="ImportResolutionError",w.stack=c.stack;const f=await mt(w,t,o,{column:c.loc?.column||1,file:m,line:c.loc?.line||1,plugin:c.plugin||"vite:import-analysis"},"server",n,s);a.err=f,r.set(JSON.stringify(f),Date.now())}}else{const g=String(c?.name||"Error"),m=String(c.message),w=String(c.stack),f=new Error(m);f.name=g,f.stack=`${g}: ${m}
|
|
1881
|
+
${et(w,o)}`,c.cause&&(f.cause=Lt(c.cause));const h=c.sourceFile?{column:c.column,file:c.sourceFile,line:c.line,plugin:c.plugin}:void 0,v=await mt(f,t,o,h,"server",n,s);a.err=v,r.set(JSON.stringify(v),Date.now())}}i(a,l)}catch(c){Ge(t,"[visulima:vite-overlay:server] ws.send intercept failed",c),l.send(a,l)}}},"setupWebSocketInterception"),ma=O((t,e,r,o,n,s,i,a)=>{t.ws.on(Tr,async(l,c)=>{if(!i)return;const p=l&&typeof l=="object"?l:{message:Bo,stack:""},g=qr(p);if(r(g))return;const m=String(p?.name||"Error"),w=String(p.message),f=String(p.stack),h=new Error(w);h.name=m,h.stack=`${m}: ${w}
|
|
1882
|
+
${et(f,n)}`,p.cause&&(h.cause=Lt(p.cause));try{const v=await mt(h,t,n,{column:p?.column,file:p?.file,line:p?.line,plugin:p?.plugin},"client",s,a);o.set(JSON.stringify(v),Date.now());const L={err:{...v},type:"error"};v.solution&&(L.solutions=v.solution);const C=[...v.errors],x=C.shift(),R=[`${Dt("red","[client]")} ${x.name}: ${x.message}`,...x.originalFilePath.includes("-extension://")?[]:["",Dt("blue",`${x.originalFilePath}:${x.originalFileLine}:${x.originalFileColumn}`),"",await Zn(x.originalSnippet,_e(x.originalFilePath),"nord"),"","Raw stack trace:","",x.originalStack]];C.forEach((X,_)=>{const U=" ".repeat(2*_);R.push("",`${U}Caused by: `,"",`${U}${x.name}: ${x.message}`,`${U}at ${x.originalFilePath}:${x.originalFileLine}:${x.originalFileColumn}`)}),await e.error(R.join(`
|
|
1883
|
+
`)),c.send(L)}catch(v){Ge(t,"[visulima:vite-overlay:server] failed to build extended client error",v),c.send({err:{message:v.message,name:String(v.name||Pr),stack:v.stack},type:"error"})}})},"setupHMRHandler"),fa=O((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"),va=O((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"),Pa=O((t={})=>{let e,r,o;const n=(t.logClientRuntimeError===void 0?t.forwardConsole:t.logClientRuntimeError)??!0,s=t.forwardedConsoleMethods??["error"];if(s.lenght===0)throw new Error("forwardedConsoleMethods must be an array of console method names");return{apply:"serve",config(i,a){return i.plugins&&(r=fa(i.plugins,t?.reactPluginName),o=va(i.plugins,t?.vuePluginName)),e=a.mode||"development",i},configureServer(i){const a=i.config.root||process.cwd(),l=ca(i),{recentErrors:c,shouldSkip:p}=da(),g=i.transformRequest.bind(i);i.transformRequest=async(f,h)=>{try{return await g(f,h)}catch(v){if(v?.message?.includes("Failed to resolve import")){const L=v.message.match(/Failed to resolve import ["']([^"']+)["'] from ["']([^"']+)["']/);if(L){const[,C,x]=L;v.sourceFile=x,v.importPath=C}}throw v}};let m;r?m="react":o&&(m="vue"),ga(i,p,c,a,t?.solutionFinders??[],m),ma(i,l,p,c,a,t?.solutionFinders??[],n,m);const w=pa(i,a,l);process.on("unhandledRejection",w),i.httpServer?.on("close",()=>{process.off("unhandledRejection",w)})},enforce:"pre",name:Do,transform(i,a,l){return l?.ssr||!(a.includes("vite/dist/client/client.mjs")||a.includes("/@vite/client"))?null:Go(i,t?.showBallonButton??!0)},transformIndexHtml(){return{html:"",tags:[{attrs:{type:"module"},children:ua(e,s),injectTo:"head",tag:"script"}]}}}},"errorOverlayPlugin");export{Pa as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/vite-overlay",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"description": "Improved vite overlay",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vite",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@shikijs/cli": "3.13.0",
|
|
61
61
|
"@shikijs/langs": "3.13.0",
|
|
62
62
|
"@shikijs/themes": "3.13.0",
|
|
63
|
-
"@visulima/error": "5.0.
|
|
63
|
+
"@visulima/error": "5.0.2",
|
|
64
64
|
"fastest-levenshtein": "^1.0.16",
|
|
65
65
|
"shiki": "3.13.0"
|
|
66
66
|
},
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"vite": "^6 || ^7 || ^8"
|
|
69
69
|
},
|
|
70
70
|
"engines": {
|
|
71
|
-
"node": ">=20.19 <=
|
|
71
|
+
"node": ">=20.19 <=25.x"
|
|
72
72
|
},
|
|
73
73
|
"publishConfig": {
|
|
74
74
|
"access": "public",
|