@visulima/ono 2.0.0-alpha.22 → 2.0.0-alpha.24
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 +14 -0
- package/dist/index.js +114 -114
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
var Ho=Object.defineProperty;var m=(t,e)=>Ho(t,"name",{value:e,configurable:!0});import{createRequire as Uo}from"node:module";import{parseStacktrace as eo}from"@visulima/error/stacktrace";import{renderError as Vo,getErrorCauses as Ko}from"@visulima/error/error";import{ruleBasedFinder as to,errorHintFinder as oo}from"@visulima/error/solution";import{s as S,a as E,b as Yo,d as Jo,c as er,n as At,e as Dt,f as tr}from"./packem_shared/clipboard-DbMCKslu.js";import{sanitize as Qe}from"isomorphic-dompurify";import{n as or,g as rr}from"./packem_shared/process-BO_aZsiL.js";import{parseStacktrace as lt,codeFrame as ct}from"@visulima/error";import ro from"@visulima/error/solution/ai/prompt";const Go=Uo(import.meta.url),ie=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Be=m(t=>{if(typeof ie<"u"&&ie.versions&&ie.versions.node){const[e,o]=ie.versions.node.split(".").map(Number);if(e>22||e===22&&o>=3||e===20&&o>=16)return ie.getBuiltinModule(t)}return Go(t)},"__cjs_getBuiltinModule"),{createRequire:Zo}=Be("node:module"),{readFile:Qo}=Be("node:fs/promises"),{fileURLToPath:Xo}=Be("node:url"),{createHash:nr}=Be("node:crypto");var ar=Object.defineProperty,P=m((t,e)=>ar(t,"name",{value:e,configurable:!0}),"E$2"),ir=Object.defineProperty,$=P((t,e)=>ir(t,"name",{value:e,configurable:!0}),"b");const sr=Zo(import.meta.url),Y=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,dt=$(t=>{if(typeof Y<"u"&&Y.versions&&Y.versions.node){const[e,o]=Y.versions.node.split(".").map(Number);if(e>22||e===22&&o>=3||e===20&&o>=16)return Y.getBuiltinModule(t)}return sr(t)},"__cjs_getBuiltinModule"),W=Y,{execFileSync:lr}=dt("node:child_process"),ce=dt("node:fs"),cr=dt("node:tty");var dr=Object.defineProperty,pt=$((t,e)=>dr(t,"name",{value:e,configurable:!0}),"s$3"),pr=Object.defineProperty,Le=pt((t,e)=>pr(t,"name",{value:e,configurable:!0}),"l");const ht=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],ut=[12288,12288,65281,65376,65504,65510],gt=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],mt=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],je=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141];var hr=Object.defineProperty,ur=Le((t,e)=>hr(t,"name",{value:e,configurable:!0}),"r$1");const ge=ur((t,e)=>{let o=0,r=Math.floor(t.length/2)-1;for(;o<=r;){const n=Math.floor((o+r)/2),a=n*2;if(e<t[a])r=n-1;else if(e>t[a+1])o=n+1;else return!0}return!1},"isInRange");var gr=Object.defineProperty,G=Le((t,e)=>gr(t,"name",{value:e,configurable:!0}),"r");const mr=ht[0],fr=ht.at(-1),wr=ut[0],br=ut.at(-1),vr=gt[0],xr=gt.at(-1),kr=mt[0],yr=mt.at(-1),$r=je[0],Er=je.at(-1),It=19968,[Sr,Cr]=ee(je);function ee(t){let e=t[0],o=t[1];for(let r=0;r<t.length;r+=2){const n=t[r],a=t[r+1];if(It>=n&&It<=a)return[n,a];a-n>o-e&&(e=n,o=a)}return[e,o]}m(ee,"_");P(ee,"G");$(ee,"b$3");pt(ee,"b");Le(ee,"N");G(ee,"findWideFastPathRange");const no=G(t=>t<mr||t>fr?!1:ge(ht,t),"isAmbiguous"),ao=G(t=>t<wr||t>br?!1:ge(ut,t),"isFullWidth"),Tr=G(t=>t<vr||t>xr?!1:ge(gt,t),"isHalfWidth"),Ar=G(t=>t<kr||t>yr?!1:ge(mt,t),"isNarrow"),io=G(t=>t>=Sr&&t<=Cr?!0:t<$r||t>Er?!1:ge(je,t),"isWide");function te(t){return no(t)?"ambiguous":ao(t)?"fullwidth":Tr(t)?"halfwidth":Ar(t)?"narrow":io(t)?"wide":"neutral"}m(te,"D$2");P(te,"U");$(te,"v$4");pt(te,"q");Le(te,"getCategory");G(te,"getCategory");var Dr=Object.defineProperty,Fe=$((t,e)=>Dr(t,"name",{value:e,configurable:!0}),"i$2"),Ir=Object.defineProperty,Me=Fe((t,e)=>Ir(t,"name",{value:e,configurable:!0}),"a"),zr=Object.defineProperty,ft=Me((t,e)=>zr(t,"name",{value:e,configurable:!0}),"e");function Z(t){if(!Number.isSafeInteger(t))throw new TypeError(`Expected a code point, got \`${typeof t}\`.`)}m(Z,"j$2");P(Z,"M");$(Z,"s$2");Fe(Z,"s");Me(Z,"r");ft(Z,"validate");function V(t){return Z(t),te(t)}m(V,"F$1");P(V,"P");$(V,"r$3");Fe(V,"p");Me(V,"eastAsianWidthType");ft(V,"eastAsianWidthType");function me(t,{ambiguousAsWide:e=!1}={}){return Z(t),ao(t)||io(t)||e&&no(t)?2:1}m(me,"Q");P(me,"de");$(me,"o$2");Fe(me,"W");Me(me,"eastAsianWidth");ft(me,"eastAsianWidth");var Rr=Object.defineProperty,Br=$((t,e)=>Rr(t,"name",{value:e,configurable:!0}),"p$4"),Lr=Object.defineProperty,so=Br((t,e)=>Lr(t,"name",{value:e,configurable:!0}),"e"),jr=Object.defineProperty,Fr=so((t,e)=>jr(t,"name",{value:e,configurable:!0}),"E");const lo=String.raw,zt=lo`\p{Emoji}(?:\p{EMod}|[\u{E0020}-\u{E007E}]+\u{E007F}|\uFE0F?\u20E3?)`,Mr=Fr(()=>new RegExp(lo`\p{RI}{2}|(?)${zt}(?:\u200D${zt})*`,"gu"),"default");var _r=Object.defineProperty,Or=so((t,e)=>_r(t,"name",{value:e,configurable:!0}),"p");const oe=new Set(["\x1B",""]),_e="\x07",co="[",wt="m",Te="]8;;",Pr=39,Nr=/[\u200B\uFEFF\u2060-\u2064]/g,qr=new RegExp(`(?:\\${co}(?<code>\\d+)m|\\${Te}(?<uri>.*)${_e})`),Wr=Object.freeze(new Map([[0,0],[1,22],[2,22],[3,23],[4,24],[7,27],[8,28],[9,29],[30,39],[31,39],[32,39],[33,39],[34,39],[35,39],[36,39],[37,39],[40,49],[41,49],[42,49],[43,49],[44,49],[45,49],[46,49],[47,49],[90,39]])),se=/[\u001B\u009B](?:[[()#;?]{0,10}(?:\d{1,4}(?:;\d{0,4})*)?[0-9A-ORZcf-nqry=><]|\]8;;[^\u0007\u001B]{0,100}(?:\u0007|\u001B\\))/g,ke=/[\u0000-\u0008\n-\u001F\u007F-\u009F]{1,1000}/y,Ee=Mr();Or(t=>t.replace(Ee,""),"stripEmoji");var Hr=Object.defineProperty,Ur=$((t,e)=>Hr(t,"name",{value:e,configurable:!0}),"E$1"),Gr=Object.defineProperty,Zr=Ur((t,e)=>Gr(t,"name",{value:e,configurable:!0}),"A"),Vr=Object.defineProperty,Oe=Zr((t,e)=>Vr(t,"name",{value:e,configurable:!0}),"d");const Rt=new Map,ye=/(?:[\u0020-\u007E\u00A0-\u00FF](?!\uFE0F)){1,1000}/y,Se=Oe(t=>t>=32&&t<=126?"latin":t===8203||t===8204||t===8205||t===8288?"zero":t<=31||t>=127&&t<=159?"control":t>=160&&t<=255||t>=9472&&t<=9599?"latin":t>=4352&&t<=4607||t>=11904&&t<=40959||t>=44032&&t<=55215||t>=63744&&t<=64255||t>=65280&&t<=65519&&!(t>=65377&&t<=65439)||t>=12352&&t<=12543?"wide":t===8230?"latin":"other","getCharType"),Kr=Oe((t,e)=>{const o=Math.floor(t/65536),r=t%65536;let n=Rt.get(o);if(n||(n=new Map,Rt.set(o,n)),n.has(r))return n.get(r);let a;if(Se(t)==="latin")a=e.width.regular;else if(Se(t)==="control")a=e.width.control;else if(Se(t)==="wide")a=e.width.wide;else switch(V(t)){case"ambiguous":{a=e.width.ambiguousIsNarrow?e.width.regular:e.width.wide;break}case"fullwidth":{a=e.width.fullWidth;break}case"wide":{a=e.width.wide;break}default:a=e.width.regular}return n.set(r,a),a},"getCachedCharWidth"),Qr=Oe(t=>t>=768&&t<=879||t>=6832&&t<=6911||t>=7616&&t<=7679||t>=8400&&t<=8447||t>=65056&&t<=65071||t>=917760&&t<=917999||t>=65024&&t<=65039||t>=3633&&t<=3642||t>=3655&&t<=3662||t>=3761&&t<=3769||t>=3771&&t<=3772||t>=3784&&t<=3789||t>=2304&&t<=2307||t>=2362&&t<=2383||t>=2385&&t<=2391||t>=2402&&t<=2403||t>=2433&&t<=2435||t>=2492&&t<=2500||t>=2509&&t<=2509||t>=2561&&t<=2563||t>=2620&&t<=2637||t>=1611&&t<=1631||t>=1648&&t<=1648||t>=1750&&t<=1773||t>=2276&&t<=2302||t>=1425&&t<=1469||t>=1471&&t<=1471||t>=1473&&t<=1474||t>=1476&&t<=1477||t>=1479&&t<=1479||t>=3893&&t<=3893||t>=3895&&t<=3895||t>=3897&&t<=3897||t>=3953&&t<=3966||t>=3968&&t<=3972||t>=3974&&t<=3975?!0:t>=768&&t<=777||t>=803&&t<=803,"isCombiningCharacter"),Xe=Oe((t,e={})=>{if(!t||t.length===0)return{ellipsed:!1,index:0,truncated:!1,width:0};const o={truncation:{countAnsiEscapeCodes:e.countAnsiEscapeCodes??!1,ellipsis:e.ellipsis??"",ellipsisWidth:e.ellipsisWidth??(e.ellipsis?Xe(e.ellipsis,{...e,ellipsis:"",ellipsisWidth:0,limit:Number.POSITIVE_INFINITY}).width:0),limit:e.limit??Number.POSITIVE_INFINITY},width:{ambiguousIsNarrow:e.ambiguousIsNarrow??!1,ansi:e.ansiWidth??0,control:e.controlWidth??0,emoji:e.emojiWidth??2,fullWidth:e.fullWidth??2,halfWidth:e.halfWidth??1,regular:e.regularWidth??1,tab:e.tabWidth??8,wide:e.wideWidth??2}},r=Math.max(0,o.truncation.limit-o.truncation.ellipsisWidth),{length:n}=t,a=n>1e4;let i=0,s=0,c=n,l=!1;const d=t.includes("\x1B")||t.includes("");for(;i<n;){if(d&&(t[i]==="\x1B"||t[i]==="")){if(t.startsWith("\x1B]8;;",i)){const w="\x1B]8;;\x07",y=w.length,D=t.indexOf("\x07",i+5);if(D!==-1){const L=t.indexOf(w,D+1);if(L!==-1){const ne=L+y,M=t.slice(D+1,L).replace(se,""),z=Xe(M,{ambiguousIsNarrow:o.width.ambiguousIsNarrow,ansiWidth:o.width.ansi,controlWidth:o.width.control,countAnsiEscapeCodes:!1,ellipsis:o.truncation.ellipsis,ellipsisWidth:o.truncation.ellipsisWidth,emojiWidth:o.width.emoji,fullWidth:o.width.fullWidth,halfWidth:o.width.halfWidth,limit:Math.max(0,r-s),regularWidth:o.width.regular,tabWidth:o.width.tab,wideWidth:o.width.wide}),ae=z.width;if(z.truncated)l=!0,c=Math.min(c,i);else if(s+ae>r&&(c=Math.min(c,i),l=!0,s+ae>o.truncation.limit))break;if(s+=ae,i=ne,l&&s>=o.truncation.limit)break;continue}}}if(se.lastIndex=i,se.test(t)){const w=se.lastIndex-i,y=o.truncation.countAnsiEscapeCodes?w:o.width.ansi;if(s+y>r&&(c=Math.min(c,i),s+y>o.truncation.limit)){l=!0;break}s+=y,i=se.lastIndex;continue}}const u=t.codePointAt(i);if(u===8203||u===65279||u>=8288&&u<=8292){i+=1;continue}if(u===9){if(s+o.width.tab>r&&(c=Math.min(c,i),s+o.width.tab>o.truncation.limit)){l=!0;break}s+=o.width.tab,i+=1;continue}if(ye.lastIndex=i,ye.test(t)){const w=(ye.lastIndex-i)*o.width.regular;if(s+w>r){const y=Math.floor((r-s)/o.width.regular);if(c=Math.min(c,i+y),s+w>o.truncation.limit){l=!0;break}}s+=w,i=ye.lastIndex;continue}if((u<=31||u>=127&&u<=159)&&(ke.lastIndex=i,ke.test(t))){const w=(ke.lastIndex-i)*o.width.control;if(s+w>r&&(c=Math.min(c,i+Math.floor((r-s)/o.width.control)),s+w>o.truncation.limit)){l=!0;break}s+=w,i=ke.lastIndex;continue}if(Ee.lastIndex=i,Ee.test(t)){if(s+o.width.emoji>r&&(c=Math.min(c,i),s+o.width.emoji>o.truncation.limit)){l=!0;break}s+=o.width.emoji,i=Ee.lastIndex;continue}const f=t.codePointAt(i)??0;if(Qr(f)){i+=f>65535?2:1;continue}let g;if(a)g=Kr(f,o);else switch(Se(f)){case"control":{g=o.width.control;break}case"latin":{g=o.width.regular;break}case"wide":{g=o.width.wide;break}case"zero":{g=0;break}default:switch(V(f)){case"ambiguous":{g=o.width.ambiguousIsNarrow?o.width.regular:o.width.wide;break}case"fullwidth":{g=o.width.fullWidth;break}case"wide":{g=o.width.wide;break}default:g=o.width.regular}}if(s+g>r&&(c=Math.min(c,i),s+g>o.truncation.limit)){l=!0;break}s+=g,i+=f>65535?2:1}let p=s,h=!1;return l&&o.truncation.limit>=o.truncation.ellipsisWidth&&(p=o.truncation.limit,h=!0),{ellipsed:h,index:l?c:n,truncated:l,width:p}},"getStringTruncatedWidth");var Xr=Object.defineProperty,Yr=$((t,e)=>Xr(t,"name",{value:e,configurable:!0}),"i"),Jr=Object.defineProperty,en=Yr((t,e)=>Jr(t,"name",{value:e,configurable:!0}),"e"),tn=Object.defineProperty,on=en((t,e)=>tn(t,"name",{value:e,configurable:!0}),"r");const x=on((t,e={})=>Xe(t,{...e,ellipsis:"",ellipsisWidth:0,limit:Number.POSITIVE_INFINITY}).width,"getStringWidth");var rn=Object.defineProperty,nn=$((t,e)=>rn(t,"name",{value:e,configurable:!0}),"p$2"),an=Object.defineProperty,sn=nn((t,e)=>an(t,"name",{value:e,configurable:!0}),"h"),ln=Object.defineProperty,bt=sn((t,e)=>ln(t,"name",{value:e,configurable:!0}),"n");const cn=bt((t,e)=>Math.floor((t-e)/2),"halfDiff"),dn=bt((t,e)=>t-e,"fullDiff"),Bt=bt((t,e={})=>{const o=e.align??"center";if(o==="left")return t;const r=e.split??`
|
|
2
|
-
`,n=e.pad??" ",
|
|
3
|
-
`),
|
|
4
|
-
`?(r&&(e+=
|
|
5
|
-
`&&(o&&l&&(e+=
|
|
1
|
+
var _o=Object.defineProperty;var m=(t,e)=>_o(t,"name",{value:e,configurable:!0});import{createRequire as Mo}from"node:module";import{parseStacktrace as Kt}from"@visulima/error/stacktrace";import{renderError as No,getErrorCauses as qo}from"@visulima/error/error";import{ruleBasedFinder as Qt,errorHintFinder as Xt}from"@visulima/error/solution";import{s as S,a as E,b as Uo,d as Zo,c as Go,n as $t,e as Et,f as Vo}from"./packem_shared/clipboard-DbMCKslu.js";import{sanitize as Ue}from"isomorphic-dompurify";import{n as Ko,g as Qo}from"./packem_shared/process-BO_aZsiL.js";import{parseStacktrace as rt,codeFrame as nt}from"@visulima/error";import Jt from"@visulima/error/solution/ai/prompt";const Oo=Mo(import.meta.url),te=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,De=m(t=>{if(typeof te<"u"&&te.versions&&te.versions.node){const[e,o]=te.versions.node.split(".").map(Number);if(e>22||e===22&&o>=3||e===20&&o>=16)return te.getBuiltinModule(t)}return Oo(t)},"__cjs_getBuiltinModule"),{createRequire:Po}=De("node:module"),{readFile:Wo}=De("node:fs/promises"),{fileURLToPath:Ho}=De("node:url"),{createHash:Xo}=De("node:crypto");var Jo=Object.defineProperty,P=m((t,e)=>Jo(t,"name",{value:e,configurable:!0}),"S$2"),Yo=Object.defineProperty,$=P((t,e)=>Yo(t,"name",{value:e,configurable:!0}),"b");const er=Po(import.meta.url),K=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,st=$(t=>{if(typeof K<"u"&&K.versions&&K.versions.node){const[e,o]=K.versions.node.split(".").map(Number);if(e>22||e===22&&o>=3||e===20&&o>=16)return K.getBuiltinModule(t)}return er(t)},"__cjs_getBuiltinModule"),H=K,{execFileSync:tr}=st("node:child_process"),ne=st("node:fs"),or=st("node:tty");var rr=Object.defineProperty,N=$((t,e)=>rr(t,"name",{value:e,configurable:!0}),"n$4");const at=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],it=[12288,12288,65281,65376,65504,65510],lt=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],ct=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],Ie=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141],ce=N((t,e)=>{let o=0,r=Math.floor(t.length/2)-1;for(;o<=r;){const n=Math.floor((o+r)/2),s=n*2;if(e<t[s])r=n-1;else if(e>t[s+1])o=n+1;else return!0}return!1},"isInRange"),nr=at[0],sr=at.at(-1),ar=it[0],ir=it.at(-1),lr=lt[0],cr=lt.at(-1),dr=ct[0],pr=ct.at(-1),hr=Ie[0],ur=Ie.at(-1),St=19968,[gr,mr]=ze(Ie);function ze(t){let e=t[0],o=t[1];for(let r=0;r<t.length;r+=2){const n=t[r],s=t[r+1];if(St>=n&&St<=s)return[n,s];s-n>o-e&&(e=n,o=s)}return[e,o]}m(ze,"st$1");P(ze,"vt");$(ze,"k$2");N(ze,"findWideFastPathRange");const Yt=N(t=>t<nr||t>sr?!1:ce(at,t),"isAmbiguous"),eo=N(t=>t<ar||t>ir?!1:ce(it,t),"isFullWidth"),fr=N(t=>t<lr||t>cr?!1:ce(lt,t),"isHalfWidth"),wr=N(t=>t<dr||t>pr?!1:ce(ct,t),"isNarrow"),to=N(t=>t>=gr&&t<=mr?!0:t<hr||t>ur?!1:ce(Ie,t),"isWide");function Re(t){return Yt(t)?"ambiguous":eo(t)?"fullwidth":fr(t)?"halfwidth":wr(t)?"narrow":to(t)?"wide":"neutral"}m(Re,"lt$1");P(Re,"St");$(Re,"I$2");N(Re,"getCategory");var br=Object.defineProperty,dt=$((t,e)=>br(t,"name",{value:e,configurable:!0}),"e$1");function de(t){if(!Number.isSafeInteger(t))throw new TypeError(`Expected a code point, got \`${typeof t}\`.`)}m(de,"q$1");P(de,"ot");$(de,"r$3");dt(de,"validate");function pe(t){return de(t),Re(t)}m(pe,"K");P(pe,"nt");$(pe,"p$6");dt(pe,"eastAsianWidthType");function pt(t,{ambiguousAsWide:e=!1}={}){return de(t),eo(t)||to(t)||e&&Yt(t)?2:1}m(pt,"Rt");P(pt,"se");$(pt,"g$2");dt(pt,"eastAsianWidth");var vr=Object.defineProperty,oo=$((t,e)=>vr(t,"name",{value:e,configurable:!0}),"n$3");const ro=String.raw,Ct=ro`\p{Emoji}(?:\p{EMod}|[\u{E0020}-\u{E007E}]+\u{E007F}|\uFE0F?\u20E3?)`,xr=oo(()=>new RegExp(ro`\p{RI}{2}|(?)${Ct}(?:\u200D${Ct})*`,"gu"),"emojiRegex"),X=new Set(["\x1B",""]),Be="\x07",no="[",ht="m",$e="]8;;",kr=39,yr=/[\u200B\uFEFF\u2060-\u2064]/g,$r=new RegExp(`(?:\\${no}(?<code>\\d+)m|\\${$e}(?<uri>.*)${Be})`),Er=Object.freeze(new Map([[0,0],[1,22],[2,22],[3,23],[4,24],[7,27],[8,28],[9,29],[30,39],[31,39],[32,39],[33,39],[34,39],[35,39],[36,39],[37,39],[40,49],[41,49],[42,49],[43,49],[44,49],[45,49],[46,49],[47,49],[90,39]])),oe=/[\u001B\u009B](?:[[()#;?]{0,10}(?:\d{1,4}(?:;\d{0,4})*)?[0-9A-ORZcf-nqry=><]|\]8;;[^\u0007\u001B]{0,100}(?:\u0007|\u001B\\))/g,we=/[\u0000-\u0008\n-\u001F\u007F-\u009F]{1,1000}/y,xe=xr();oo(t=>t.replace(xe,""),"stripEmoji");var Sr=Object.defineProperty,Le=$((t,e)=>Sr(t,"name",{value:e,configurable:!0}),"b$1");const At=new Map,be=/(?:[\u0020-\u007E\u00A0-\u00FF](?!\uFE0F)){1,1000}/y,ke=Le(t=>t>=32&&t<=126?"latin":t===8203||t===8204||t===8205||t===8288?"zero":t<=31||t>=127&&t<=159?"control":t>=160&&t<=255||t>=9472&&t<=9599?"latin":t>=4352&&t<=4607||t>=11904&&t<=40959||t>=44032&&t<=55215||t>=63744&&t<=64255||t>=65280&&t<=65519&&!(t>=65377&&t<=65439)||t>=12352&&t<=12543?"wide":t===8230?"latin":"other","getCharType"),Cr=Le((t,e)=>{const o=Math.floor(t/65536),r=t%65536;let n=At.get(o);if(n||(n=new Map,At.set(o,n)),n.has(r))return n.get(r);let s;if(ke(t)==="latin")s=e.width.regular;else if(ke(t)==="control")s=e.width.control;else if(ke(t)==="wide")s=e.width.wide;else switch(pe(t)){case"ambiguous":{s=e.width.ambiguousIsNarrow?e.width.regular:e.width.wide;break}case"fullwidth":{s=e.width.fullWidth;break}case"wide":{s=e.width.wide;break}default:s=e.width.regular}return n.set(r,s),s},"getCachedCharWidth"),Ar=Le(t=>t>=768&&t<=879||t>=6832&&t<=6911||t>=7616&&t<=7679||t>=8400&&t<=8447||t>=65056&&t<=65071||t>=917760&&t<=917999||t>=65024&&t<=65039||t>=3633&&t<=3642||t>=3655&&t<=3662||t>=3761&&t<=3769||t>=3771&&t<=3772||t>=3784&&t<=3789||t>=2304&&t<=2307||t>=2362&&t<=2383||t>=2385&&t<=2391||t>=2402&&t<=2403||t>=2433&&t<=2435||t>=2492&&t<=2500||t>=2509&&t<=2509||t>=2561&&t<=2563||t>=2620&&t<=2637||t>=1611&&t<=1631||t>=1648&&t<=1648||t>=1750&&t<=1773||t>=2276&&t<=2302||t>=1425&&t<=1469||t>=1471&&t<=1471||t>=1473&&t<=1474||t>=1476&&t<=1477||t>=1479&&t<=1479||t>=3893&&t<=3893||t>=3895&&t<=3895||t>=3897&&t<=3897||t>=3953&&t<=3966||t>=3968&&t<=3972||t>=3974&&t<=3975?!0:t>=768&&t<=777||t>=803&&t<=803,"isCombiningCharacter"),Ze=Le((t,e={})=>{if(!t||t.length===0)return{ellipsed:!1,index:0,truncated:!1,width:0};const o={truncation:{countAnsiEscapeCodes:e.countAnsiEscapeCodes??!1,ellipsis:e.ellipsis??"",ellipsisWidth:e.ellipsisWidth??(e.ellipsis?Ze(e.ellipsis,{...e,ellipsis:"",ellipsisWidth:0,limit:Number.POSITIVE_INFINITY}).width:0),limit:e.limit??Number.POSITIVE_INFINITY},width:{ambiguousIsNarrow:e.ambiguousIsNarrow??!1,ansi:e.ansiWidth??0,control:e.controlWidth??0,emoji:e.emojiWidth??2,fullWidth:e.fullWidth??2,halfWidth:e.halfWidth??1,regular:e.regularWidth??1,tab:e.tabWidth??8,wide:e.wideWidth??2}},r=Math.max(0,o.truncation.limit-o.truncation.ellipsisWidth),{length:n}=t,s=n>1e4;let a=0,i=0,c=n,l=!1;const d=t.includes("\x1B")||t.includes("");for(;a<n;){if(d&&(t[a]==="\x1B"||t[a]==="")){if(t.startsWith("\x1B]8;;",a)){const w="\x1B]8;;\x07",y=w.length,I=t.indexOf("\x07",a+5);if(I!==-1){const j=t.indexOf(w,I+1);if(j!==-1){const Y=j+y,M=t.slice(I+1,j).replace(oe,""),R=Ze(M,{ambiguousIsNarrow:o.width.ambiguousIsNarrow,ansiWidth:o.width.ansi,controlWidth:o.width.control,countAnsiEscapeCodes:!1,ellipsis:o.truncation.ellipsis,ellipsisWidth:o.truncation.ellipsisWidth,emojiWidth:o.width.emoji,fullWidth:o.width.fullWidth,halfWidth:o.width.halfWidth,limit:Math.max(0,r-i),regularWidth:o.width.regular,tabWidth:o.width.tab,wideWidth:o.width.wide}),ee=R.width;if(R.truncated)l=!0,c=Math.min(c,a);else if(i+ee>r&&(c=Math.min(c,a),l=!0,i+ee>o.truncation.limit))break;if(i+=ee,a=Y,l&&i>=o.truncation.limit)break;continue}}}if(oe.lastIndex=a,oe.test(t)){const w=oe.lastIndex-a,y=o.truncation.countAnsiEscapeCodes?w:o.width.ansi;if(i+y>r&&(c=Math.min(c,a),i+y>o.truncation.limit)){l=!0;break}i+=y,a=oe.lastIndex;continue}}const u=t.codePointAt(a);if(u===8203||u===65279||u>=8288&&u<=8292){a+=1;continue}if(u===9){if(i+o.width.tab>r&&(c=Math.min(c,a),i+o.width.tab>o.truncation.limit)){l=!0;break}i+=o.width.tab,a+=1;continue}if(be.lastIndex=a,be.test(t)){const w=(be.lastIndex-a)*o.width.regular;if(i+w>r){const y=Math.floor((r-i)/o.width.regular);if(c=Math.min(c,a+y),i+w>o.truncation.limit){l=!0;break}}i+=w,a=be.lastIndex;continue}if((u<=31||u>=127&&u<=159)&&(we.lastIndex=a,we.test(t))){const w=(we.lastIndex-a)*o.width.control;if(i+w>r&&(c=Math.min(c,a+Math.floor((r-i)/o.width.control)),i+w>o.truncation.limit)){l=!0;break}i+=w,a=we.lastIndex;continue}if(xe.lastIndex=a,xe.test(t)){if(i+o.width.emoji>r&&(c=Math.min(c,a),i+o.width.emoji>o.truncation.limit)){l=!0;break}i+=o.width.emoji,a=xe.lastIndex;continue}const f=t.codePointAt(a)??0;if(Ar(f)){a+=f>65535?2:1;continue}let g;if(s)g=Cr(f,o);else switch(ke(f)){case"control":{g=o.width.control;break}case"latin":{g=o.width.regular;break}case"wide":{g=o.width.wide;break}case"zero":{g=0;break}default:switch(pe(f)){case"ambiguous":{g=o.width.ambiguousIsNarrow?o.width.regular:o.width.wide;break}case"fullwidth":{g=o.width.fullWidth;break}case"wide":{g=o.width.wide;break}default:g=o.width.regular}}if(i+g>r&&(c=Math.min(c,a),i+g>o.truncation.limit)){l=!0;break}i+=g,a+=f>65535?2:1}let p=i,h=!1;return l&&o.truncation.limit>=o.truncation.ellipsisWidth&&(p=o.truncation.limit,h=!0),{ellipsed:h,index:l?c:n,truncated:l,width:p}},"getStringTruncatedWidth");var Tr=Object.defineProperty,Dr=$((t,e)=>Tr(t,"name",{value:e,configurable:!0}),"e");const x=Dr((t,e={})=>Ze(t,{...e,ellipsis:"",ellipsisWidth:0,limit:Number.POSITIVE_INFINITY}).width,"getStringWidth");var Ir=Object.defineProperty,ut=$((t,e)=>Ir(t,"name",{value:e,configurable:!0}),"n$2");const zr=ut((t,e)=>Math.floor((t-e)/2),"halfDiff"),Rr=ut((t,e)=>t-e,"fullDiff"),Tt=ut((t,e={})=>{const o=e.align??"center";if(o==="left")return t;const r=e.split??`
|
|
2
|
+
`,n=e.pad??" ",s=o==="right"?Rr:zr;let a=!1,i;Array.isArray(t)?i=t:(a=!0,i=t.split(r));let c,l=0;const d=i.map(p=>(c=x(p,e.stringWidthOptions),l=Math.max(c,l),{str:p,width:c})).map(p=>Array.from({length:s(l,p.width)+1}).join(n)+p.str);return a?d.join(r):d},"alignText");var Br=Object.defineProperty,T=$((t,e)=>Br(t,"name",{value:e,configurable:!0}),"p$2");const Lr=/\x1B\[(\d+)m/;class so{static{m(this,"It")}static{P(this,"Wt")}static{$(this,"C")}static{T(this,"AnsiStateTracker")}activeForeground=void 0;activeBackground=void 0;activeFormatting=[];processEscape(e){const o=Lr.exec(e);if(!o)return;const r=Number.parseInt(o[1],10);switch(r){case 0:{this.activeForeground=void 0,this.activeBackground=void 0,this.activeFormatting=[];break}case 39:{this.activeForeground=void 0;break}case 49:{this.activeBackground=void 0;break}default:if(r>=30&&r<=37||r>=90&&r<=97)this.activeForeground=e;else if(r>=40&&r<=47||r>=100&&r<=107)this.activeBackground=e;else if([1,2,3,4,7,8,9].includes(r))this.activeFormatting.push(e);else if([22,23,24,27,28,29].includes(r)){const n={22:"[1m",23:"[3m",24:"[4m",27:"[7m",28:"[8m",29:"[9m"}[r];n&&(this.activeFormatting=this.activeFormatting.filter(s=>!s.includes(n)))}}}getStartEscapesForAllActiveAttributes(){return[this.activeBackground,this.activeForeground,...this.activeFormatting].filter(Boolean).join("")}getEndEscapesForAllActiveAttributes(){const e=[];if(this.activeFormatting.length>0){const o={"\x1B[1m":"\x1B[22m","\x1B[2m":"\x1B[22m","\x1B[3m":"\x1B[23m","\x1B[4m":"\x1B[24m","\x1B[7m":"\x1B[27m","\x1B[8m":"\x1B[28m","\x1B[9m":"\x1B[29m"};[...this.activeFormatting].toReversed().forEach(r=>{const n=o[r];n&&e.push(n)})}return this.activeForeground&&e.push("\x1B[39m"),this.activeBackground&&e.push("\x1B[49m"),e.join("")}}const ao=T((t,e)=>{if(!X.has(t[e]))return{isInsideEscape:!1,isInsideLinkEscape:!1};const o=!0,r=t.slice(e+1,e+1+$e.length).join("")===$e;return{isInsideEscape:o,isInsideLinkEscape:r}},"checkEscapeSequence"),jr=T((t,e={})=>{const o=new so;let r="",n=!1,s="",a="",i=!1;const c=[...t];for(let l=0;l<c.length;l++){const d=c[l];if(d&&X.has(d)){if(r){const g=e.getWidth?.(r)??0,w={isEscapeSequence:!1,isGrapheme:!0,text:r,width:g};if(i&&(w.isHyperlink=!0,w.hyperlinkUrl=a),e.onSegment?.(w,o)===!1)return;r=""}n=!0,s=d;const u=ao(c,l),{isInsideLinkEscape:f}=u;if(f){let g=l+1;for(a="";g<c.length;){const y=c[g];if(y===Be)break;a+=y,g+=1}a=a.slice(4);const w={hyperlinkUrl:a,isEscapeSequence:!0,isGrapheme:!1,isHyperlink:!0,isHyperlinkStart:!0,width:0};if(e.onSegment?.(w,o)===!1)return;l=g,i=!0,n=!1,s="";continue}if(l+1<c.length&&c[l+1]==="\\"&&i){const g={isEscapeSequence:!0,isGrapheme:!1,isHyperlink:!0,isHyperlinkEnd:!0,width:0};if(e.onSegment?.(g,o)===!1)return;i=!1,a="",l+=1,n=!1,s="";continue}}if(n){if(s!==d&&(s+=d),d===ht){n=!1,o.processEscape(s);const u={isEscapeSequence:!0,isGrapheme:!1,text:s,width:0};if(e.onSegment?.(u,o)===!1)return;s=""}continue}r+=d;const p=e.getWidth?.(r)??0,h={isEscapeSequence:!1,isGrapheme:!0,text:r,width:p};if(i&&(h.isHyperlink=!0,h.hyperlinkUrl=a),e.onSegment?.(h,o)===!1)return;r=""}if(r){const l=e.getWidth?.(r)??0,d={isEscapeSequence:!1,isGrapheme:!0,text:r,width:l};i&&(d.isHyperlink=!0,d.hyperlinkUrl=a),e.onSegment?.(d,o)}if(s){const l={isEscapeSequence:!0,isGrapheme:!1,text:s,width:0};e.onSegment?.(l,o)}},"processAnsiString"),Dt=T(t=>`${X.values().next().value}${no}${String(t)}${ht}`,"wrapAnsiCode"),It=T(t=>`${X.values().next().value}${$e}${t}${Be}`,"wrapAnsiHyperlink"),Fr=T(t=>{if(t.length===0)return"";if(t.length===1)return t[0];let e="",o,r;const n=t.join(`
|
|
3
|
+
`),s=[...n];let a=0;for(const[i,c]of s.entries()){if(e+=c,X.has(c)){const d=$r.exec(n.slice(a))?.groups??{};if(d.code!==void 0){const p=Number.parseFloat(d.code);o=p===kr?void 0:p}else d.uri!==void 0&&(r=d.uri.length===0?void 0:d.uri)}const l=Er.get(Number(o));s[i+1]===`
|
|
4
|
+
`?(r&&(e+=It("")),o&&l&&(e+=Dt(l))):c===`
|
|
5
|
+
`&&(o&&l&&(e+=Dt(o)),r&&(e+=It(r))),a+=c.length}return e},"preserveAnsi"),io=/(?=\s)|(?<=\s)/,lo=/^\s+$/,Ne=T(t=>{if(!t.includes("\x1B"))return t;let e=t;return t.includes("\x1B[30m")&&(e+="\x1B[39m"),t.includes("\x1B[42m")&&(e+="\x1B[49m"),e},"resetAnsiAtLineBreak"),U=T(t=>{const e=t.split(" ");let o=e.length;for(;o>0&&x(e[o-1])===0;)o--;return o===e.length?t:e.slice(0,o).join(" ")+e.slice(o).join("")},"stringVisibleTrimSpacesRight"),co=T((t,e,o)=>{if(t.length===0)return[""];if(e<=0)return[t];const r=[],n=new so;let s="",a=0,i=!1,c=!1,l="",d=0;for(;d<t.length;){const p=t[d];if(X.has(p)){i=!0,l=p,s+=p,c=ao([...t],d).isInsideLinkEscape,d+=1;continue}if(i){l+=p,s+=p,c?p===Be&&(i=c=!1):p===ht&&(i=!1,n.processEscape(l)),d+=1;continue}const h=x(p),u=p===" ";if(h===0){s+=p,d+=1;continue}if(a+h>e&&(s&&r.push(s+n.getEndEscapesForAllActiveAttributes()),s=n.getStartEscapesForAllActiveAttributes(),a=x(s),u&&o)){for(;d<t.length&&t[d]===" ";)d+=1;continue}if(s+=p,a+=h,a===e&&d<t.length-1&&(r.push(s+n.getEndEscapesForAllActiveAttributes()),s=n.getStartEscapesForAllActiveAttributes(),a=x(s),d+1<t.length&&t[d+1]===" "&&o)){for(d+=1;d<t.length&&t[d]===" ";)d+=1;continue}d+=1}return s&&r.push(s+n.getEndEscapesForAllActiveAttributes()),o?r.map(p=>U(p)):r},"wrapWithBreakAtWidth"),_r=T((t,e,o)=>{if(t.length===0)return[];const r=o?t.trim():t;if(r.length===0)return[];const n=[];let s="",a=0;return jr(r,{getWidth:x,onSegment:T((i,c)=>{const l=i.text??"";if(i.isEscapeSequence)s+=l;else{const d=l===" ";if(i.width===0)return s+=l,!0;if(a+i.width>e&&(s&&n.push(s),s=c.getStartEscapesForAllActiveAttributes(),a=0,d))return o||n.push(c.getStartEscapesForAllActiveAttributes()+l),!0;s+=l,a+=i.width}return!0},"onSegment")}),s&&n.push(s),o?n.map(i=>U(i)):n},"wrapCharByChar"),Mr=T((t,e,o)=>{if(t.length===0)return[];const r=o?t.trim():t;if(r.length===0)return[];const n=r.split(io),s=[];let a="",i=0,c=0;for(;c<n.length;){const l=n[c],d=lo.test(l),p=x(l);if(l.length===0){c+=1;continue}if(o&&d&&i===0){c+=1;continue}if(i+p>e&&i>0){o?s.push(U(a)):s.push(a),a="",i=0;continue}a+=l,i+=p,c+=1}return a&&(o?s.push(U(a)):s.push(a)),s},"wrapWithWordBoundaries"),Or=T((t,e,o)=>{if(t.length===0)return[];const r=o?t.trim():t;if(r.length===0)return[];const n=r.split(io),s=[];let a="",i=0,c=0;for(;c<n.length;){const l=n[c],d=lo.test(l),p=x(l);if(l.length===0){c+=1;continue}if(o&&d&&i===0){c+=1;continue}if(p>e){a&&s.push(Ne(o?U(a):a));const h=co(l,e,o);if(h.length>0){for(let u=0;u<h.length-1;u+=1)s.push(h[u]);a=h.at(-1),i=x(a)}else a="",i=0;c+=1;continue}if(i+p>e&&i>0&&(s.push(Ne(o?U(a):a)),a="",i=0,o&&d)){c+=1;continue}a+=l,i+=p,c+=1}return a&&s.push(Ne(o?U(a):a)),s},"wrapAndBreakWords"),Q={BREAK_AT_CHARACTERS:"BREAK_AT_CHARACTERS",BREAK_WORDS:"BREAK_WORDS",PRESERVE_WORDS:"PRESERVE_WORDS",STRICT_WIDTH:"STRICT_WIDTH"},po=T((t,e={})=>{const{removeZeroWidthCharacters:o=!0,trim:r=!0,width:n=80,wrapMode:s=Q.PRESERVE_WORDS}=e;if(r&&t.trim()==="")return"";let a=t.normalize("NFC").replaceAll(`\r
|
|
6
6
|
`,`
|
|
7
|
-
`);return o&&(
|
|
8
|
-
`).map(
|
|
9
|
-
`)},"wordWrap");var
|
|
10
|
-
`))e=Math.max(e,x(o));return e},"widestLine");var
|
|
11
|
-
`,
|
|
12
|
-
`),f=Math.max(...u.map(g=>x(g)));for(const g of u){let w;switch(r){case"center":{w=
|
|
7
|
+
`);return o&&(a=a.replaceAll(yr,"")),a.split(`
|
|
8
|
+
`).map(i=>{if(r&&i.trim()==="")return"";let c;switch(s){case Q.BREAK_AT_CHARACTERS:{c=_r(i,n,r);break}case Q.BREAK_WORDS:{c=Or(i,n,r);break}case Q.STRICT_WIDTH:{c=co(i,n,r);break}default:c=Mr(i,n,r)}return Fr(c)}).join(`
|
|
9
|
+
`)},"wordWrap");var Pr=Object.defineProperty,q=$((t,e)=>Pr(t,"name",{value:e,configurable:!0}),"n$1");const ho=80,uo=24,Ge=q((t,e,{shell:o,env:r}={})=>tr(t,e,{encoding:"utf8",stdio:["ignore","pipe","ignore"],timeout:500,shell:o,env:r}).trim(),"exec"),ye=q((t,e)=>({columns:Number.parseInt(t,10),rows:Number.parseInt(e,10)}),"create"),go=q((t,e)=>{const{columns:o,rows:r}=ye(t,e);if(!(Number.isNaN(o)||Number.isNaN(r))&&!(o===ho&&r===uo))return{columns:o,rows:r}},"createIfNotDefault"),Nr=q(()=>{if(H.platform!=="linux")return!0;try{const t=ne.readFileSync("/proc/self/stat","utf8"),e=t.lastIndexOf(") ");if(e===-1)return!1;const o=t.slice(e+2).trim().split(/\s+/),r=Number.parseInt(o[2],10),n=Number.parseInt(o[5],10);return Number.isNaN(r)||Number.isNaN(n)||n<=0?!1:r===n}catch{return!1}},"isForegroundProcess");function he(){const{env:t,stdout:e,stderr:o}=H;if(e?.columns&&e?.rows)return ye(e.columns,e.rows);if(o?.columns&&o?.rows)return ye(o.columns,o.rows);if(t.COLUMNS&&t.LINES)return ye(t.COLUMNS,t.LINES);const r={columns:ho,rows:uo};return H.platform==="win32"?qe()??r:H.platform==="darwin"?zt()??qe()??r:zt()??qe()??qr()??r}m(he,"U$1");P(he,"lt");$(he,"O$1");q(he,"terminalSize");const zt=q(()=>{try{const t=H.platform==="darwin"?ne.constants.O_EVTONLY|ne.constants.O_NONBLOCK:ne.constants.O_NONBLOCK,{columns:e,rows:o}=or.WriteStream(ne.openSync("/dev/tty",t));return{columns:e,rows:o}}catch{}},"devTty"),qe=q(()=>{try{const t=Ge("tput",["cols"],{env:{TERM:"dumb",...H.env}}),e=Ge("tput",["lines"],{env:{TERM:"dumb",...H.env}});if(t&&e)return go(t,e)}catch{}},"tput"),qr=q(()=>{try{if(!Nr())return;const t=Ge("resize",["-u"]).match(/\d+/g);if(t.length===2)return go(t[0],t[1])}catch{}},"resize"),Wr={arrow:{bottom:"↑",bottomLeft:"↗",bottomRight:"↖",left:"→",right:"←",top:"↓",topLeft:"↘",topRight:"↙"},bold:{bottom:"━",bottomLeft:"┗",bottomRight:"┛",left:"┃",right:"┃",top:"━",topLeft:"┏",topRight:"┓"},classic:{bottom:"-",bottomLeft:"+",bottomRight:"+",left:"|",right:"|",top:"-",topLeft:"+",topRight:"+"},double:{bottom:"═",bottomLeft:"╚",bottomRight:"╝",left:"║",right:"║",top:"═",topLeft:"╔",topRight:"╗"},doubleSingle:{bottom:"═",bottomLeft:"╘",bottomRight:"╛",left:"│",right:"│",top:"═",topLeft:"╒",topRight:"╕"},round:{bottom:"─",bottomLeft:"╰",bottomRight:"╯",left:"│",right:"│",top:"─",topLeft:"╭",topRight:"╮"},single:{bottom:"─",bottomLeft:"└",bottomRight:"┘",left:"│",right:"│",top:"─",topLeft:"┌",topRight:"┐"},singleDouble:{bottom:"─",bottomLeft:"╙",bottomRight:"╜",left:"║",right:"║",top:"─",topLeft:"╓",topRight:"╖"}};var Hr=Object.defineProperty,Ur=$((t,e)=>Hr(t,"name",{value:e,configurable:!0}),"n");const mo=Ur(t=>{let e=0;for(const o of t.split(`
|
|
10
|
+
`))e=Math.max(e,x(o));return e},"widestLine");var Zr=Object.defineProperty,A=$((t,e)=>Zr(t,"name",{value:e,configurable:!0}),"s");const O=`
|
|
11
|
+
`,D=" ",ie="none",Rt=A(t=>typeof t=="number"?{bottom:t,left:t*3,right:t*3,top:t}:{bottom:0,left:0,right:0,top:0,...t},"getObject"),le=A(t=>t===ie?0:2,"getBorderWidth"),Gr=A(t=>{const e=["topLeft","topRight","bottomRight","bottomLeft","left","right","top","bottom"];let o;if(t===ie){t={};for(const r of e)t[r]=""}if(typeof t=="string"){const r=Wr[t];if(r===void 0)throw new TypeError(`Invalid border style: ${t}`);o=r}else{typeof t.vertical=="string"&&(t.left=t.vertical,t.right=t.vertical),typeof t.horizontal=="string"&&(t.top=t.horizontal,t.bottom=t.horizontal);for(const r of e)if(typeof t[r]!="string")throw new TypeError(`Invalid border style: ${r}`);o=t}return o},"getBorderChars"),Bt=A((t,e,o,r,n)=>{t=e(t);const s=x(t);let a;switch(n){case"left":{a=t+r(o.slice(s),x(o.slice(s)));break}case"right":{a=`${r(o.slice(s+2),x(o.slice(s))+2)} ${t} `;break}default:{if(o=o.slice(s),o.length%2===1)o=o.slice(Math.floor(o.length/2)),a=r(o.slice(1),x(o.slice(1)))+t+r(o,x(o));else{o=o.slice(o.length/2);const i=x(o);a=r(o,i)+t+r(o,i)}break}}return a},"wrapText"),Vr=A((t,{height:e,padding:o,textAlignment:r,width:n})=>{t=Tt(t,{align:r});let s=t.split(O);const a=mo(t),i=n-o.left-o.right;if(a>i){const d=[];for(const p of s){const h=po(p,{width:i,wrapMode:Q.BREAK_WORDS}),u=Tt(h,{align:r}).split(`
|
|
12
|
+
`),f=Math.max(...u.map(g=>x(g)));for(const g of u){let w;switch(r){case"center":{w=D.repeat((i-f)/2)+g;break}case"right":{w=D.repeat(i-f)+g;break}default:{w=g;break}}d.push(w)}}s=d}r==="center"&&a<i?s=s.map(d=>D.repeat((i-a)/2)+d):r==="right"&&a<i&&(s=s.map(d=>D.repeat(i-a)+d));const c=D.repeat(o.left),l=D.repeat(o.right);return s=s.map(d=>{const p=c+d+l,h=n-x(p);return p+D.repeat(Math.max(h,0))}),o.top>0&&(s=[...Array.from({length:o.top}).fill(D.repeat(n)),...s]),o.bottom>0&&(s=[...s,...Array.from({length:o.bottom}).fill(D.repeat(n))]),e&&s.length>e?s=s.slice(0,e):e&&s.length<e&&(s=[...s,...Array.from({length:e-s.length}).fill(D.repeat(n))]),s.join(O)},"makeContentText"),Kr=A((t,e,o,r)=>{const n=A((h,u,f)=>r.borderColor?r.borderColor(h,u,f):h,"colorizeBorder"),s=A(h=>r.headerTextColor?r.headerTextColor(h):h,"colorizeHeaderText"),a=A(h=>r.footerTextColor?r.footerTextColor(h):h,"colorizeFooterText"),i=A(h=>r.textColor?r.textColor(h):h,"colorizeContent"),c=Gr(r.borderStyle);let l=D.repeat(r.margin.left);if(r.float==="center"){const h=Math.max((o-e-le(r.borderStyle))/2,0);l=D.repeat(h)}else if(r.float==="right"){const h=Math.max(o-e-r.margin.right-le(r.borderStyle),0);l=D.repeat(h)}let d="";if(r.margin.top&&(d+=O.repeat(r.margin.top)),r.borderStyle!==ie||r.headerText){let h=n(c.top.repeat(e),"top",e);r.headerText&&(h=Bt(r.headerText,s,c.top.repeat(e),(f,g)=>n(f,"top",g),r.headerAlignment));const u=n(l+c.topLeft,"topLeft",x(l+c.topLeft));d+=u+h+n(c.topRight,"topRight",x(c.topRight))+O}const p=t.split(O);if(d+=p.map(h=>l+n(c.left,"left",x(c.left))+i(h)+n(c.right,"right",x(c.right))).join(O),r.borderStyle!==ie||r.footerText){const h=O+n(l+c.bottomLeft,"bottomLeft",x(l+c.bottomLeft));let u=n(c.bottom.repeat(e),"bottom",e);r.footerText&&(u=Bt(r.footerText,a,c.bottom.repeat(e),(f,g)=>n(f,"bottom",g),r.footerAlignment)),d+=h+u+n(c.bottomRight,"bottomRight",x(c.bottomRight))}return r.margin.bottom&&(d+=O.repeat(r.margin.bottom)),d},"boxContent"),Qr=A(t=>{if(t.fullscreen){let e=he();typeof t.fullscreen=="function"&&(e=t.fullscreen(e.columns,e.rows)),t.width??=e.columns,t.height??=e.rows}return t.width&&(t.width=Math.max(1,t.width-le(t.borderStyle))),t.height&&(t.height=Math.max(1,t.height-le(t.borderStyle))),t},"sanitizeOptions"),Lt=A((t,e)=>e===ie?t:` ${t} `,"formatTitle"),Xr=A((t,e,o)=>{o=Qr(o);const r=o.width!==void 0,n=le(o.borderStyle),s=e-o.margin.left-o.margin.right-n,a=mo(po(t,{trim:!1,width:e-n,wrapMode:Q.BREAK_WORDS}))+o.padding.left+o.padding.right;if(o.headerText&&r?(o.headerText=o.headerText.slice(0,Math.max(0,o.width-2)),o.headerText&&(o.headerText=Lt(o.headerText,o.borderStyle))):o.headerText&&(o.headerText=o.headerText.slice(0,Math.max(0,s-2)),o.headerText&&(o.headerText=Lt(o.headerText,o.borderStyle),x(o.headerText)>a&&(o.width=x(o.headerText)))),o.width=o.width??a,!r){if(o.margin.left&&o.margin.right&&o.width>s){const i=(e-o.width-n)/(o.margin.left+o.margin.right);o.margin.left=Math.max(0,Math.floor(o.margin.left*i)),o.margin.right=Math.max(0,Math.floor(o.margin.right*i))}o.width=Math.min(o.width,e-n-o.margin.left-o.margin.right)}return o.width-(o.padding.left+o.padding.right)<=0&&(o.padding.left=0,o.padding.right=0),o.height&&o.height-(o.padding.top+o.padding.bottom)<=0&&(o.padding.top=0,o.padding.bottom=0),o},"determineDimensions"),Jr=A((t,e={})=>{if(e.borderColor!==void 0&&typeof e.borderColor!="function")throw new Error('"borderColor" is not a valid function');if(e.textColor!==void 0&&typeof e.textColor!="function")throw new Error('"textColor" is not a valid function');let o={borderStyle:"single",dimBorder:!1,float:"left",footerAlignment:"right",headerAlignment:"left",textAlignment:"left",transformTabToSpace:4,...e};o.padding=Rt(e.padding??0),o.margin=Rt(e.margin),o.transformTabToSpace&&(t=t.replaceAll(" "," ".repeat(o.transformTabToSpace)));const{columns:r}=he();return o=Xr(t,r,o),Kr(Vr(t,o),o.width,r,o)},"boxen");var Yr=Object.defineProperty,en=m((t,e)=>Yr(t,"name",{value:e,configurable:!0}),"r$5");const tn=["cjs","mjs"],on=["mdoc"],ue=en(t=>{const e=(t.split("?")[0]??t).split(".").pop()?.toLowerCase();if(!e||tn.includes(e))return"javascript";if(on.includes(e))return"markdown";switch(e){case"js":case"cjs":case"mjs":return"javascript";case"json":return"json";case"json5":return"json5";case"jsonc":return"jsonc";case"jsx":return"jsx";case"sql":return"sql";case"ts":case"cts":case"mts":return"typescript";case"tsx":return"tsx";case"xml":return"xml";case"md":return"markdown";case"mdx":return"mdx";case"svelte":return"svelte";case"vue":return"vue";case"html":return"html";case"css":return"css";case"scss":return"scss";case"less":return"less";case"sass":return"sass";case"stylus":return"stylus";case"styl":return"styl";case"txt":return"text";default:return"javascript"}},"findLanguageBasedOnExtension");var rn=Object.defineProperty,fo=m((t,e)=>rn(t,"name",{value:e,configurable:!0}),"o$4");const se=new Map,ge=fo(async t=>{if(/^(?:http|https|file|data):/.test(t)){if(se.has(t))return se.get(t);if(t.startsWith("file:"))try{const e=Ho(t),o=await Wo(e,"utf8");return se.set(t,o),o}catch{return}try{const e=await fetch(t);if(!e.ok)return;const o=await e.text();return se.set(t,o),o}catch{return}}},"getFileSource");fo(()=>{se.clear()},"clearFileSourceCache");var nn=Object.defineProperty,je=m((t,e)=>nn(t,"name",{value:e,configurable:!0}),"d$3");const sn=je(t=>t.replace(/^\s*#+\s*/,"").trim(),"sanitizeTitle"),an=je(async(t,e,o=!1)=>{const r=[...e,Qt,Xt],n=Kt(t,{frameLimit:1})[0]??{};for await(const s of r.sort((a,i)=>a.priority-i.priority)){const{handle:a}=s;if(typeof a!="function")continue;const i=await a(t,{file:n.file??"",language:ue(n.file??""),line:n.line??0,snippet:n.file?await ge(n.file):""});if(i)return i}},"runSolutionFinders"),wo=je(async(t,e)=>{const{solutionFinders:o=[],solutionTitle:r,color:n,debug:s=!1,...a}=e,i=No(t,{...a,...n?.codeFrame}),c=await an(t,o,s);if(!c)return{errorAnsi:i,solutionBox:void 0};const l=sn(c.header??r??"A possible solution to this error"),d=Jr(c.body,{borderStyle:"round",padding:{top:1,right:2,bottom:1,left:2},margin:{top:0,right:0,bottom:0,left:0},headerText:`💡 ${l}`,headerAlignment:"left",textAlignment:"left",...n?.boxen});return{errorAnsi:i,solutionBox:d}},"buildOutput");je(async(t,e={})=>{const{logger:o=console,...r}=e,{errorAnsi:n,solutionBox:s}=await wo(t,r);o.error(n),s&&(o.log(""),o.log(s))},"terminalOutput");const jt="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-help-circle%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%22M9.09%209a3%203%200%200%201%205.83%201c0%202-3%203-3%203%22%20%2F%3E%20%3Cpath%20d%3D%22M12%2017h.01%22%20%2F%3E%20%3C%2Fsvg%3E",Ft="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-keyboard%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%22M10%208h.01%22%20%2F%3E%20%3Cpath%20d%3D%22M12%2012h.01%22%20%2F%3E%20%3Cpath%20d%3D%22M14%208h.01%22%20%2F%3E%20%3Cpath%20d%3D%22M16%2012h.01%22%20%2F%3E%20%3Cpath%20d%3D%22M18%208h.01%22%20%2F%3E%20%3Cpath%20d%3D%22M6%208h.01%22%20%2F%3E%20%3Cpath%20d%3D%22M7%2016h10%22%20%2F%3E%20%3Cpath%20d%3D%22M8%2012h.01%22%20%2F%3E%20%3Crect%20width%3D%2220%22%20height%3D%2216%22%20x%3D%222%22%20y%3D%224%22%20rx%3D%222%22%20%2F%3E%20%3C%2Fsvg%3E";var ln=Object.defineProperty,cn=m((t,e)=>ln(t,"name",{value:e,configurable:!0}),"o$3");const dn=`
|
|
13
13
|
<div id="ono-shortcuts-modal" class="fixed inset-0 z-50 hidden backdrop-blur-xl items-center justify-center p-2" role="dialog" aria-modal="true" aria-hidden="true" aria-labelledby="ono-shortcuts-title">
|
|
14
14
|
<div class="bg-[var(--ono-surface)] rounded-[var(--ono-radius-lg)] shadow-[var(--ono-elevation-2)] max-w-md w-full max-h-[90vh] overflow-auto">
|
|
15
15
|
<div class="flex items-center justify-between px-4 py-2 border-b border-[var(--ono-border)]">
|
|
16
16
|
<div class="flex items-center gap-2">
|
|
17
|
-
<span class="dui shrink-0 size-4" style="-webkit-mask-image:url('${
|
|
17
|
+
<span class="dui shrink-0 size-4" style="-webkit-mask-image:url('${Ft}'); mask-image:url('${Ft}')"></span>
|
|
18
18
|
<h3 id="ono-shortcuts-title" class="font-semibold text-[var(--ono-text)] text-lg">Keyboard shortcuts</h3>
|
|
19
19
|
</div>
|
|
20
20
|
<button type="button" data-ono-action="close-shortcuts-modal" aria-label="Close keyboard shortcuts" class="text-[var(--ono-text-muted)] hover:text-[var(--ono-text)] p-1 text-xl font-bold">
|
|
@@ -59,7 +59,7 @@ var Ho=Object.defineProperty;var m=(t,e)=>Ho(t,"name",{value:e,configurable:!0})
|
|
|
59
59
|
</div>
|
|
60
60
|
</div>
|
|
61
61
|
</div>
|
|
62
|
-
`,
|
|
62
|
+
`,pn=`
|
|
63
63
|
const bindShortcutsModal = () => {
|
|
64
64
|
const modal = document.getElementById('ono-shortcuts-modal');
|
|
65
65
|
if (!modal) {
|
|
@@ -106,22 +106,22 @@ const bindShortcutsModal = () => {
|
|
|
106
106
|
}
|
|
107
107
|
});
|
|
108
108
|
};
|
|
109
|
-
`,
|
|
109
|
+
`,bo=cn(()=>{const t=`
|
|
110
110
|
<button type="button" aria-label="Open keyboard shortcuts" title="Keyboard shortcuts" data-ono-action="open-shortcuts-modal" class="flex justify-center items-center size-9 rounded-[var(--ono-radius-md)] shadow-[var(--ono-elevation-1)] bg-[var(--ono-surface)] text-[var(--ono-text)] hover:bg-[var(--ono-hover-overlay)] focus:outline-hidden focus:bg-[var(--ono-hover-overlay)] disabled:opacity-50 disabled:pointer-events-none cursor-pointer">
|
|
111
|
-
<span class="dui shrink-0 size-4" style="-webkit-mask-image:url('${
|
|
111
|
+
<span class="dui shrink-0 size-4" style="-webkit-mask-image:url('${jt}'); mask-image:url('${jt}')"></span>
|
|
112
112
|
<span class="sr-only">Keyboard shortcuts</span>
|
|
113
113
|
</button>
|
|
114
|
-
`;return{html:
|
|
114
|
+
`;return{html:dn+t,script:pn.trim()}},"shortcutsButton");var Ve=(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))(Ve||{}),hn=Object.defineProperty,un=m((t,e)=>hn(t,"name",{value:e,configurable:!0}),"t$2");const gn=un(t=>{let e='<option value="">Auto-detected Editor</option>';return Object.keys(Ve).forEach(o=>{e+=`<option value="${o}" ${t!==void 0&&t===o?"selected":""}>${Ve[o]}</option>`}),`<div class="relative inline-block">
|
|
115
115
|
<label for="editor-selector" class="sr-only">Editor</label>
|
|
116
116
|
<select id="editor-selector" class="peer py-2 px-3 pe-9 block w-56 bg-[var(--ono-surface)] border border-[var(--ono-border)] rounded-[var(--ono-radius-md)] text-sm text-[var(--ono-text)] shadow-[var(--ono-elevation-1)] hover:bg-[var(--ono-hover-overlay)] focus:outline-hidden focus:ring-1 focus:ring-[var(--ono-red-orange)]">
|
|
117
117
|
${e}
|
|
118
118
|
</select>
|
|
119
|
-
</div>`},"editorSelector"),
|
|
119
|
+
</div>`},"editorSelector"),_t="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",Mt="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";var mn=Object.defineProperty,fn=m((t,e)=>mn(t,"name",{value:e,configurable:!0}),"n$8");const wn=fn((t="auto")=>{const e="flex justify-center items-center size-9 rounded-[var(--ono-radius-md)] shadow-[var(--ono-elevation-1)] bg-[var(--ono-surface)] text-[var(--ono-text)] hover:bg-[var(--ono-hover-overlay)] focus:outline-hidden focus:bg-[var(--ono-hover-overlay)] disabled:opacity-50 disabled:pointer-events-none cursor-pointer";return{html:`
|
|
120
120
|
<div id="ono-theme-switch" class="flex items-center">
|
|
121
121
|
<div class="inline-block">
|
|
122
122
|
<button type="button" aria-label="Switch to dark mode" title="Dark mode" class="ono-theme-btn ono-theme-dark hidden ${e}" data-ono-theme="dark">
|
|
123
123
|
<span class="inline-flex shrink-0 justify-center items-center size-4">
|
|
124
|
-
<span class="dui" style="-webkit-mask-image: url('${
|
|
124
|
+
<span class="dui" style="-webkit-mask-image: url('${_t}'); mask-image: url('${_t}')"></span>
|
|
125
125
|
</span>
|
|
126
126
|
</button>
|
|
127
127
|
</div>
|
|
@@ -129,7 +129,7 @@ const bindShortcutsModal = () => {
|
|
|
129
129
|
<div class="inline-block">
|
|
130
130
|
<button type="button" aria-label="Switch to light mode" title="Light mode" class="ono-theme-btn ono-theme-light ${e}" data-ono-theme="light">
|
|
131
131
|
<span class="inline-flex shrink-0 justify-center items-center size-4">
|
|
132
|
-
<span class="dui" style="-webkit-mask-image: url('${
|
|
132
|
+
<span class="dui" style="-webkit-mask-image: url('${Mt}'); mask-image: url('${Mt}')"></span>
|
|
133
133
|
</span>
|
|
134
134
|
</button>
|
|
135
135
|
</div>
|
|
@@ -222,13 +222,13 @@ ready(function() {
|
|
|
222
222
|
attributes: true,
|
|
223
223
|
attributeFilter: ['class']
|
|
224
224
|
});
|
|
225
|
-
});`}},"themeToggle");var
|
|
225
|
+
});`}},"themeToggle");var bn=Object.defineProperty,vn=m((t,e)=>bn(t,"name",{value:e,configurable:!0}),"a$2");const xn=vn((t,e=!1)=>{const o=wn(t.theme),r=bo();return{html:`<div class="w-full flex gap-3 items-center">
|
|
226
226
|
${e?`<nav class="flex gap-1">
|
|
227
227
|
<button type="button" class="px-2 py-1 rounded-[var(--ono-radius-md)] text-xs bg-[var(--ono-chip-bg)] text-[var(--ono-chip-text)] shadow-[var(--ono-elevation-1)]" title="View stack trace">Stack</button>
|
|
228
228
|
<button type="button" class="px-2 py-1 rounded-[var(--ono-radius-md)] text-xs bg-[var(--ono-white-smoke)] text-[var(--ono-text)] shadow-[var(--ono-elevation-1)]" title="View request context">Context</button>
|
|
229
229
|
</nav>`:""}
|
|
230
230
|
<div class="grow"></div>
|
|
231
|
-
${t.openInEditorUrl?
|
|
231
|
+
${t.openInEditorUrl?gn(t.editor):""}
|
|
232
232
|
${r.html}
|
|
233
233
|
${o.html}
|
|
234
234
|
</div>`,script:`${o.script}${r.script}${t.openInEditorUrl?`
|
|
@@ -260,7 +260,7 @@ bindShortcutsModal();
|
|
|
260
260
|
`:`
|
|
261
261
|
bindShortcutsModal();
|
|
262
262
|
`}
|
|
263
|
-
`}},"headerBar"),
|
|
263
|
+
`}},"headerBar"),kn=`<!-- @license lucide-static v1.14.0 - ISC -->
|
|
264
264
|
<svg
|
|
265
265
|
class="lucide lucide-blocks"
|
|
266
266
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -276,7 +276,7 @@ bindShortcutsModal();
|
|
|
276
276
|
<path d="M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2" />
|
|
277
277
|
<rect x="14" y="2" width="8" height="8" rx="1" />
|
|
278
278
|
</svg>
|
|
279
|
-
`,
|
|
279
|
+
`,yn=`<!-- @license lucide-static v1.14.0 - ISC -->
|
|
280
280
|
<svg
|
|
281
281
|
class="lucide lucide-layers"
|
|
282
282
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -293,7 +293,7 @@ bindShortcutsModal();
|
|
|
293
293
|
<path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12" />
|
|
294
294
|
<path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17" />
|
|
295
295
|
</svg>
|
|
296
|
-
|
|
296
|
+
`,$n=`<!-- @license lucide-static v1.14.0 - ISC -->
|
|
297
297
|
<svg
|
|
298
298
|
class="lucide lucide-square-dashed"
|
|
299
299
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -319,8 +319,8 @@ bindShortcutsModal();
|
|
|
319
319
|
<path d="M3 14v1" />
|
|
320
320
|
<path d="M21 14v1" />
|
|
321
321
|
</svg>
|
|
322
|
-
`;var
|
|
323
|
-
${t.map(o=>{const r=
|
|
322
|
+
`;var En=Object.defineProperty,Sn=m((t,e)=>En(t,"name",{value:e,configurable:!0}),"e$1");const vo=Sn((...t)=>t.filter(e=>typeof e=="string"&&e.length>0).join(" "),"cn");var Cn=Object.defineProperty,Ot=m((t,e)=>Cn(t,"name",{value:e,configurable:!0}),"r$3");const An=Ot(t=>{const e=Ot(o=>{if(o.icon)return S(o.icon);switch(o.id){case"context":return kn;case"stack":return yn;default:return $n}},"getIcon");return{html:`<nav class="flex gap-1 p-1 rounded-[var(--ono-radius-md)] bg-[var(--ono-surface-muted)] shadow-[var(--ono-elevation-1)]" role="tablist">
|
|
323
|
+
${t.map(o=>{const r=vo("relative px-3 py-1.5 rounded-[var(--ono-radius-md)] text-sm font-medium cursor-pointer text-[var(--ono-text-muted)] dark:text-[var(--ono-neutral)] transition-all duration-150 hover:text-[var(--ono-text)] hover:bg-[var(--ono-surface)] focus:outline-hidden focus:ring-2 ring-[var(--ono-red-orange)] inline-flex gap-2 items-center","active:bg-[var(--ono-surface)] active:text-[var(--ono-text)] active:shadow-[var(--ono-elevation-1)] active:ring-2",o.selected?"active":"","[:>svg]:size-4"),n=E(o.id),s=S(o.name);return`<button type="button" class="${r}" id="ono-tab-${n}" aria-selected="${o.selected?"true":"false"}" data-ono-tab="#ono-section-${n}" aria-controls="ono-section-${n}" role="tab" title="${s}">${e(o)}<span>${s}</span></button>`}).join("")}
|
|
324
324
|
</nav>`,script:`
|
|
325
325
|
// Tabs system initialization
|
|
326
326
|
(function() {
|
|
@@ -416,8 +416,8 @@ bindShortcutsModal();
|
|
|
416
416
|
}
|
|
417
417
|
});
|
|
418
418
|
})();
|
|
419
|
-
`}},"headerTabs");var
|
|
420
|
-
@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-space-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking: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-ease:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}}}@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-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-slate-500:oklch(55.4% .046 257.417);--color-slate-700:oklch(37.2% .044 257.287);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-white:#fff;--spacing:.25rem;--container-md:28rem;--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);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-wide:.025em;--radius-lg:.5rem;--ease-in-out:cubic-bezier(.4, 0, .2, 1);--blur-xl:24px;--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-bg);color:var(--ono-text)}pre,code{color:var(--ono-text)}.text-muted{color:var(--ono-text-muted)}a{color:var(--ono-link)}a:hover{text-decoration:underline}::selection{background:var(--ono-red-orange)}@supports (color:color-mix(in lab, red, red)){::selection{background:color-mix(in srgb, var(--ono-red-orange) 20%, transparent)}}kbd{background-color:var(--ono-chip-bg);color:var(--ono-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-border)}input:where([type=text]),input:where(:not([type])),input:where([type=email]),input:where([type=url]),input:where([type=password]),input:where([type=number]),input:where([type=date]),input:where([type=datetime-local]),input:where([type=month]),input:where([type=search]),input:where([type=tel]),input:where([type=time]),input:where([type=week]),select:where([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(input:where([type=text]),input:where(:not([type])),input:where([type=email]),input:where([type=url]),input:where([type=password]),input:where([type=number]),input:where([type=date]),input:where([type=datetime-local]),input:where([type=month]),input:where([type=search]),input:where([type=tel]),input:where([type=time]),input:where([type=week]),select:where([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{-webkit-print-color-adjust:exact;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}select:where([multiple]),select:where([size]:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;print-color-adjust:unset;padding-right:.75rem}input:where([type=checkbox]),input:where([type=radio]){appearance:none;-webkit-print-color-adjust:exact;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}input:where([type=checkbox]){border-radius:0}input:where([type=radio]){border-radius:100%}input:where([type=checkbox]):focus,input:where([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}input:where([type=checkbox]):checked,input:where([type=radio]):checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}input:where([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){input:where([type=checkbox]):checked{appearance:auto}}input:where([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){input:where([type=radio]):checked{appearance:auto}}input:where([type=checkbox]):checked:hover,input:where([type=checkbox]):checked:focus,input:where([type=radio]):checked:hover,input:where([type=radio]):checked:focus{background-color:currentColor;border-color:#0000}input:where([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){input:where([type=checkbox]):indeterminate{appearance:auto}}input:where([type=checkbox]):indeterminate:hover,input:where([type=checkbox]):indeterminate:focus{background-color:currentColor;border-color:#0000}input:where([type=file]){background:unset;border-color:inherit;font-size:unset;line-height:inherit;border-width:0;border-radius:0;padding:0}input:where([type=file]):focus{outline:1px solid buttontext;outline:1px auto -webkit-focus-ring-color}}@layer components;@layer utilities{.collapse{visibility:collapse}.invisible{visibility:hidden}.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}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.-top-40{top:calc(var(--spacing) * -40)}.top-0{top:calc(var(--spacing) * 0)}.top-0\\.5{top:calc(var(--spacing) * .5)}.top-2{top:calc(var(--spacing) * 2)}.top-4{top:calc(var(--spacing) * 4)}.top-full{top:100%}.right-2{right:calc(var(--spacing) * 2)}.left-0{left:calc(var(--spacing) * 0)}.left-0\\.5{left:calc(var(--spacing) * .5)}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.my-6{margin-block:calc(var(--spacing) * 6)}.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-1{margin-top:calc(var(--spacing) * 1)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.ml-1{margin-left:calc(var(--spacing) * 1)}.ml-4{margin-left:calc(var(--spacing) * 4)}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-full{height:100%}.max-h-\\[90vh\\]{max-height:90vh}.max-h-\\[calc\\(100dvh-2rem\\)\\]{max-height:calc(100dvh - 2rem)}.w-4{width:calc(var(--spacing) * 4)}.w-4\\/12{width:33.3333%}.w-8{width:calc(var(--spacing) * 8)}.w-8\\/12{width:66.6667%}.w-9{width:calc(var(--spacing) * 9)}.w-12{width:calc(var(--spacing) * 12)}.w-56{width:calc(var(--spacing) * 56)}.w-64{width:calc(var(--spacing) * 64)}.w-full{width:100%}.max-w-full{max-width:100%}.max-w-md{max-width:var(--container-md)}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-6\\/12{min-width:50%}.min-w-52{min-width:calc(var(--spacing) * 52)}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.cursor-help{cursor:help}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-\\[200px_1fr\\]{grid-template-columns:200px 1fr}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.items-center{align-items:center}.items-start{align-items:flex-start}.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-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.rounded{border-radius:.25rem}.rounded-\\[var\\(--ono-radius-lg\\)\\]{border-radius:var(--ono-radius-lg)}.rounded-\\[var\\(--ono-radius-md\\)\\]{border-radius:var(--ono-radius-md)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-tl-lg{border-top-left-radius:var(--radius-lg)}.rounded-r-\\[var\\(--ono-radius-lg\\)\\]{border-top-right-radius:var(--ono-radius-lg);border-bottom-right-radius:var(--ono-radius-lg)}.rounded-tr-lg{border-top-right-radius:var(--radius-lg)}.rounded-br-lg{border-bottom-right-radius:var(--radius-lg)}.rounded-bl-lg{border-bottom-left-radius:var(--radius-lg)}.border{border-style:var(--tw-border-style);border-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-\\[var\\(--ono-border\\)\\]{border-color:var(--ono-border)}.border-\\[var\\(--ono-red-orange\\)\\]{border-color:var(--ono-red-orange)}.border-blue-600{border-color:var(--color-blue-600)}.border-transparent{border-color:#0000}.bg-\\[var\\(--ono-bg\\)\\]{background-color:var(--ono-bg)}.bg-\\[var\\(--ono-chip-bg\\)\\]{background-color:var(--ono-chip-bg)}.bg-\\[var\\(--ono-success-bg\\)\\]{background-color:var(--ono-success-bg)}.bg-\\[var\\(--ono-surface\\)\\]{background-color:var(--ono-surface)}.bg-\\[var\\(--ono-surface-muted\\)\\]{background-color:var(--ono-surface-muted)}.bg-\\[var\\(--ono-white-smoke\\)\\]{background-color:var(--ono-white-smoke)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-white{background-color:var(--color-white)}.p-0{padding:calc(var(--spacing) * 0)}.p-1{padding:calc(var(--spacing) * 1)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.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)}.py-4{padding-block:calc(var(--spacing) * 4)}.pe-9{padding-inline-end:calc(var(--spacing) * 9)}.pt-0{padding-top:calc(var(--spacing) * 0)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-5{padding-left:calc(var(--spacing) * 5)}.text-left{text-align:left}.text-right{text-align:right}.text-start{text-align:start}.font-mono{font-family:var(--font-mono)}.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}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.break-words{overflow-wrap:break-word}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-\\[var\\(--ono-chip-text\\)\\]{color:var(--ono-chip-text)}.text-\\[var\\(--ono-on-accent\\)\\]{color:var(--ono-on-accent)}.text-\\[var\\(--ono-red-orange\\)\\]{color:var(--ono-red-orange)}.text-\\[var\\(--ono-text\\)\\]{color:var(--ono-text)}.text-\\[var\\(--ono-text-muted\\)\\]{color:var(--ono-text-muted)}.text-blue-500{color:var(--color-blue-500)}.text-blue-600{color:var(--color-blue-600)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.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-elevation-1\\)\\]{--tw-shadow:var(--ono-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-elevation-2\\)\\]{--tw-shadow:var(--ono-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-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px 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)}.ring-\\[var\\(--ono-red-orange\\)\\]{--tw-ring-color:var(--ono-red-orange)}.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-xl{--tw-backdrop-blur:blur(var(--blur-xl));-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-\\[height\\]{transition-property:height;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[max-height\\,opacity\\]{transition-property:max-height,opacity;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-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.peer-checked\\:translate-x-4:is(:where(.peer):checked~*){--tw-translate-x:calc(var(--spacing) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.peer-checked\\:bg-\\[var\\(--ono-red-orange\\)\\]:is(:where(.peer):checked~*){background-color:var(--ono-red-orange)}.last\\:mb-0:last-child{margin-bottom:calc(var(--spacing) * 0)}.hover\\:bg-\\[var\\(--ono-hover-overlay\\)\\]:hover{background-color:var(--ono-hover-overlay)}.hover\\:bg-\\[var\\(--ono-surface\\)\\]:hover{background-color:var(--ono-surface)}.hover\\:bg-\\[var\\(--ono-surface-muted\\)\\]:hover{background-color:var(--ono-surface-muted)}.hover\\:text-\\[var\\(--ono-link\\)\\]:hover{color:var(--ono-link)}.hover\\:text-\\[var\\(--ono-text\\)\\]:hover{color:var(--ono-text)}.hover\\:underline:hover{text-decoration-line:underline}.focus\\:bg-\\[var\\(--ono-hover-overlay\\)\\]:focus{background-color:var(--ono-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-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + 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-red-orange\\)\\]:focus{--tw-ring-color:var(--ono-red-orange)}.focus\\:ring-gray-600:focus{--tw-ring-color:var(--color-gray-600)}.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\\:ring-\\[3px\\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + 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)}.active\\:bg-\\[var\\(--ono-surface\\)\\]:active{background-color:var(--ono-surface)}.active\\:text-\\[var\\(--ono-text\\)\\]:active{color:var(--ono-text)}.active\\:shadow-\\[var\\(--ono-elevation-1\\)\\]:active{--tw-shadow:var(--ono-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)}.active\\:ring-2:active{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + 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)}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:opacity-50:disabled{opacity:.5}.dark\\:bg-gray-700\\/50:where(.dark,.dark *){background-color:#36415380}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-gray-700\\/50:where(.dark,.dark *){background-color:color-mix(in oklab, var(--color-gray-700) 50%, transparent)}}.dark\\:text-\\[var\\(--ono-neutral\\)\\]:where(.dark,.dark *){color:var(--ono-neutral)}.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-\\[var\\(--ono-success-border\\)\\] :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--ono-success-border)}.\\[\\&\\.ono-dropdown-open\\]\\:block.ono-dropdown-open{display:block}.\\[\\&\\.ono-dropdown-open\\]\\:rotate-180.ono-dropdown-open{rotate:180deg}.\\[\\:\\>svg\\]\\:size-4:is(){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}}:root,:host{--ono-white-smoke:#f5f5f5;--ono-red-orange:#ff4628;--ono-charcoal-black:#202020;--ono-bg:var(--ono-white-smoke);--ono-surface:#fff;--ono-surface-muted:#fafafa;--ono-border:#b9c8d780;--ono-hover-overlay:#2020200d;--ono-success:#2ea043;--ono-success-bg:#03611699;--ono-neutral:#6e7681;--ono-neutral-bg:#6e76812e;--ono-chip-bg:#6e768124;--ono-chip-text:var(--ono-text);--ono-radius-md:.5rem;--ono-radius-lg:.75rem;--ono-elevation-1:0 1px 2px #0000000a, 0 1px 1px #00000005;--ono-elevation-2:0 10px 25px -5px #2020201a, 0 8px 10px -6px #2020201a;--ono-text:#111827;--ono-text-muted:#374151;--ono-link:#c4311d;--ono-muted-on-surface:#374151;--ono-on-accent:#fff}.dark{--ono-bg:#161b22;--ono-surface:#0d1117;--ono-surface-muted:#0f141b;--ono-border:#30363d99;--ono-text:#c9d1d9;--ono-text-muted:#8b949e;--ono-link:#ff6a52;--ono-muted-on-surface:#8b949e;--ono-hover-overlay:#f0f6fc0f;--ono-on-accent:#fff;--ono-success:#2ea043;--ono-success-bg:#2ea04333;--ono-neutral:#6e7681;--ono-neutral-bg:#6e768140;--ono-chip-bg:#6e768133;--ono-chip-text:var(--ono-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}}.shiki{max-width:100%;padding-bottom:calc(var(--spacing) * 6);overflow-wrap:break-word;overflow:auto}.shiki pre{max-width:100%;overflow:auto}.shiki::-webkit-scrollbar{height:calc(var(--spacing) * 2)}.shiki::-webkit-scrollbar-thumb{border-radius:3.40282e38px}.shiki::-webkit-scrollbar-thumb{background-color:var(--color-gray-500)}.shiki:where(.dark,.dark *)::-webkit-scrollbar-thumb{background-color:var(--color-slate-500)}.shiki::-webkit-scrollbar-track{border-radius:3.40282e38px}.shiki::-webkit-scrollbar-track{background-color:var(--color-gray-100)}.shiki:where(.dark,.dark *)::-webkit-scrollbar-track{background-color:var(--color-slate-700)}html.dark .shiki,html.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}.dark [type=checkbox]:checked,.dark [type=radio]:checked{background-color:currentColor}.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}details>summary [data-chevron]{transition:transform .2s ease-in-out}details[open]>summary [data-chevron]{transform:rotate(180deg)}details summary .ono-expand-icon-open{display:none!important}details[open] summary .ono-expand-icon-open,details[open] summary .ono-expand-icon-closed{display:inline-block!important}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-red-orange);outline-offset:2px}[role=tab].active{border-left:3px solid var(--ono-red-orange);background-color:#ff462814}.stack-tab-active{border-left:3px solid var(--ono-red-orange)!important;color:var(--ono-red-orange)!important;background-color:#ff462814!important;font-weight:600!important}[role=tab][aria-disabled=true],button[disabled]{opacity:.55}.ono-dropdown-menu{transition:opacity .15s;display:none}.ono-dropdown-menu.ono-dropdown-open{opacity:1;display:block}.ono-dropdown-toggle.ono-dropdown-open svg{transform:rotate(180deg)}.ono-tab-active{border-left:3px solid var(--ono-red-orange)!important;color:var(--ono-red-orange)!important;background-color:#ff462814!important;font-weight:600!important}.hidden{display:none!important}.block{display:block!important}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{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-ease{syntax:"*";inherits:false}@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}`,wa=Object.defineProperty,Ne=m((t,e)=>wa(t,"name",{value:e,configurable:!0}),"n$6");const Ae=Ne(t=>t.replaceAll(/[&<>"']/g,e=>({'"':""","&":"&","'":"'","<":"<",">":">"})[e]??e),"escapeHtml"),ba=`
|
|
419
|
+
`}},"headerTabs");var Tn=`/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */
|
|
420
|
+
@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-space-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking: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-ease:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}}}@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-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-slate-500:oklch(55.4% .046 257.417);--color-slate-700:oklch(37.2% .044 257.287);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-white:#fff;--spacing:.25rem;--container-md:28rem;--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);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-wide:.025em;--radius-lg:.5rem;--ease-in-out:cubic-bezier(.4, 0, .2, 1);--blur-xl:24px;--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-bg);color:var(--ono-text)}pre,code{color:var(--ono-text)}.text-muted{color:var(--ono-text-muted)}a{color:var(--ono-link)}a:hover{text-decoration:underline}::selection{background:var(--ono-red-orange)}@supports (color:color-mix(in lab, red, red)){::selection{background:color-mix(in srgb, var(--ono-red-orange) 20%, transparent)}}kbd{background-color:var(--ono-chip-bg);color:var(--ono-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-border)}input:where([type=text]),input:where(:not([type])),input:where([type=email]),input:where([type=url]),input:where([type=password]),input:where([type=number]),input:where([type=date]),input:where([type=datetime-local]),input:where([type=month]),input:where([type=search]),input:where([type=tel]),input:where([type=time]),input:where([type=week]),select:where([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(input:where([type=text]),input:where(:not([type])),input:where([type=email]),input:where([type=url]),input:where([type=password]),input:where([type=number]),input:where([type=date]),input:where([type=datetime-local]),input:where([type=month]),input:where([type=search]),input:where([type=tel]),input:where([type=time]),input:where([type=week]),select:where([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{-webkit-print-color-adjust:exact;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}select:where([multiple]),select:where([size]:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;print-color-adjust:unset;padding-right:.75rem}input:where([type=checkbox]),input:where([type=radio]){appearance:none;-webkit-print-color-adjust:exact;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}input:where([type=checkbox]){border-radius:0}input:where([type=radio]){border-radius:100%}input:where([type=checkbox]):focus,input:where([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}input:where([type=checkbox]):checked,input:where([type=radio]):checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}input:where([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){input:where([type=checkbox]):checked{appearance:auto}}input:where([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){input:where([type=radio]):checked{appearance:auto}}input:where([type=checkbox]):checked:hover,input:where([type=checkbox]):checked:focus,input:where([type=radio]):checked:hover,input:where([type=radio]):checked:focus{background-color:currentColor;border-color:#0000}input:where([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){input:where([type=checkbox]):indeterminate{appearance:auto}}input:where([type=checkbox]):indeterminate:hover,input:where([type=checkbox]):indeterminate:focus{background-color:currentColor;border-color:#0000}input:where([type=file]){background:unset;border-color:inherit;font-size:unset;line-height:inherit;border-width:0;border-radius:0;padding:0}input:where([type=file]):focus{outline:1px solid buttontext;outline:1px auto -webkit-focus-ring-color}}@layer components;@layer utilities{.collapse{visibility:collapse}.invisible{visibility:hidden}.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}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.-top-40{top:calc(var(--spacing) * -40)}.top-0{top:calc(var(--spacing) * 0)}.top-0\\.5{top:calc(var(--spacing) * .5)}.top-2{top:calc(var(--spacing) * 2)}.top-4{top:calc(var(--spacing) * 4)}.top-full{top:100%}.right-2{right:calc(var(--spacing) * 2)}.left-0{left:calc(var(--spacing) * 0)}.left-0\\.5{left:calc(var(--spacing) * .5)}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.my-6{margin-block:calc(var(--spacing) * 6)}.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-1{margin-top:calc(var(--spacing) * 1)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.ml-1{margin-left:calc(var(--spacing) * 1)}.ml-4{margin-left:calc(var(--spacing) * 4)}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-full{height:100%}.max-h-\\[90vh\\]{max-height:90vh}.max-h-\\[calc\\(100dvh-2rem\\)\\]{max-height:calc(100dvh - 2rem)}.w-4{width:calc(var(--spacing) * 4)}.w-4\\/12{width:33.3333%}.w-8{width:calc(var(--spacing) * 8)}.w-8\\/12{width:66.6667%}.w-9{width:calc(var(--spacing) * 9)}.w-12{width:calc(var(--spacing) * 12)}.w-56{width:calc(var(--spacing) * 56)}.w-64{width:calc(var(--spacing) * 64)}.w-full{width:100%}.max-w-full{max-width:100%}.max-w-md{max-width:var(--container-md)}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-6\\/12{min-width:50%}.min-w-52{min-width:calc(var(--spacing) * 52)}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.cursor-help{cursor:help}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-\\[200px_1fr\\]{grid-template-columns:200px 1fr}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.items-center{align-items:center}.items-start{align-items:flex-start}.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-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.rounded{border-radius:.25rem}.rounded-\\[var\\(--ono-radius-lg\\)\\]{border-radius:var(--ono-radius-lg)}.rounded-\\[var\\(--ono-radius-md\\)\\]{border-radius:var(--ono-radius-md)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-tl-lg{border-top-left-radius:var(--radius-lg)}.rounded-r-\\[var\\(--ono-radius-lg\\)\\]{border-top-right-radius:var(--ono-radius-lg);border-bottom-right-radius:var(--ono-radius-lg)}.rounded-tr-lg{border-top-right-radius:var(--radius-lg)}.rounded-br-lg{border-bottom-right-radius:var(--radius-lg)}.rounded-bl-lg{border-bottom-left-radius:var(--radius-lg)}.border{border-style:var(--tw-border-style);border-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-\\[var\\(--ono-border\\)\\]{border-color:var(--ono-border)}.border-\\[var\\(--ono-red-orange\\)\\]{border-color:var(--ono-red-orange)}.border-blue-600{border-color:var(--color-blue-600)}.border-transparent{border-color:#0000}.bg-\\[var\\(--ono-bg\\)\\]{background-color:var(--ono-bg)}.bg-\\[var\\(--ono-chip-bg\\)\\]{background-color:var(--ono-chip-bg)}.bg-\\[var\\(--ono-success-bg\\)\\]{background-color:var(--ono-success-bg)}.bg-\\[var\\(--ono-surface\\)\\]{background-color:var(--ono-surface)}.bg-\\[var\\(--ono-surface-muted\\)\\]{background-color:var(--ono-surface-muted)}.bg-\\[var\\(--ono-white-smoke\\)\\]{background-color:var(--ono-white-smoke)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-white{background-color:var(--color-white)}.p-0{padding:calc(var(--spacing) * 0)}.p-1{padding:calc(var(--spacing) * 1)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.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)}.py-4{padding-block:calc(var(--spacing) * 4)}.pe-9{padding-inline-end:calc(var(--spacing) * 9)}.pt-0{padding-top:calc(var(--spacing) * 0)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-5{padding-left:calc(var(--spacing) * 5)}.text-left{text-align:left}.text-right{text-align:right}.text-start{text-align:start}.font-mono{font-family:var(--font-mono)}.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}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.break-words{overflow-wrap:break-word}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-\\[var\\(--ono-chip-text\\)\\]{color:var(--ono-chip-text)}.text-\\[var\\(--ono-on-accent\\)\\]{color:var(--ono-on-accent)}.text-\\[var\\(--ono-red-orange\\)\\]{color:var(--ono-red-orange)}.text-\\[var\\(--ono-text\\)\\]{color:var(--ono-text)}.text-\\[var\\(--ono-text-muted\\)\\]{color:var(--ono-text-muted)}.text-blue-500{color:var(--color-blue-500)}.text-blue-600{color:var(--color-blue-600)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.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-elevation-1\\)\\]{--tw-shadow:var(--ono-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-elevation-2\\)\\]{--tw-shadow:var(--ono-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-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px 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)}.ring-\\[var\\(--ono-red-orange\\)\\]{--tw-ring-color:var(--ono-red-orange)}.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-xl{--tw-backdrop-blur:blur(var(--blur-xl));-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-\\[height\\]{transition-property:height;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[max-height\\,opacity\\]{transition-property:max-height,opacity;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-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.peer-checked\\:translate-x-4:is(:where(.peer):checked~*){--tw-translate-x:calc(var(--spacing) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.peer-checked\\:bg-\\[var\\(--ono-red-orange\\)\\]:is(:where(.peer):checked~*){background-color:var(--ono-red-orange)}.last\\:mb-0:last-child{margin-bottom:calc(var(--spacing) * 0)}.hover\\:bg-\\[var\\(--ono-hover-overlay\\)\\]:hover{background-color:var(--ono-hover-overlay)}.hover\\:bg-\\[var\\(--ono-surface\\)\\]:hover{background-color:var(--ono-surface)}.hover\\:bg-\\[var\\(--ono-surface-muted\\)\\]:hover{background-color:var(--ono-surface-muted)}.hover\\:text-\\[var\\(--ono-link\\)\\]:hover{color:var(--ono-link)}.hover\\:text-\\[var\\(--ono-text\\)\\]:hover{color:var(--ono-text)}.hover\\:underline:hover{text-decoration-line:underline}.focus\\:bg-\\[var\\(--ono-hover-overlay\\)\\]:focus{background-color:var(--ono-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-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + 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-red-orange\\)\\]:focus{--tw-ring-color:var(--ono-red-orange)}.focus\\:ring-gray-600:focus{--tw-ring-color:var(--color-gray-600)}.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\\:ring-\\[3px\\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + 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)}.active\\:bg-\\[var\\(--ono-surface\\)\\]:active{background-color:var(--ono-surface)}.active\\:text-\\[var\\(--ono-text\\)\\]:active{color:var(--ono-text)}.active\\:shadow-\\[var\\(--ono-elevation-1\\)\\]:active{--tw-shadow:var(--ono-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)}.active\\:ring-2:active{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + 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)}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:opacity-50:disabled{opacity:.5}.dark\\:bg-gray-700\\/50:where(.dark,.dark *){background-color:#36415380}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-gray-700\\/50:where(.dark,.dark *){background-color:color-mix(in oklab, var(--color-gray-700) 50%, transparent)}}.dark\\:text-\\[var\\(--ono-neutral\\)\\]:where(.dark,.dark *){color:var(--ono-neutral)}.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-\\[var\\(--ono-success-border\\)\\] :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--ono-success-border)}.\\[\\&\\.ono-dropdown-open\\]\\:block.ono-dropdown-open{display:block}.\\[\\&\\.ono-dropdown-open\\]\\:rotate-180.ono-dropdown-open{rotate:180deg}.\\[\\:\\>svg\\]\\:size-4:is(){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}}:root,:host{--ono-white-smoke:#f5f5f5;--ono-red-orange:#ff4628;--ono-charcoal-black:#202020;--ono-bg:var(--ono-white-smoke);--ono-surface:#fff;--ono-surface-muted:#fafafa;--ono-border:#b9c8d780;--ono-hover-overlay:#2020200d;--ono-success:#2ea043;--ono-success-bg:#03611699;--ono-neutral:#6e7681;--ono-neutral-bg:#6e76812e;--ono-chip-bg:#6e768124;--ono-chip-text:var(--ono-text);--ono-radius-md:.5rem;--ono-radius-lg:.75rem;--ono-elevation-1:0 1px 2px #0000000a, 0 1px 1px #00000005;--ono-elevation-2:0 10px 25px -5px #2020201a, 0 8px 10px -6px #2020201a;--ono-text:#111827;--ono-text-muted:#374151;--ono-link:#c4311d;--ono-muted-on-surface:#374151;--ono-on-accent:#fff}.dark{--ono-bg:#161b22;--ono-surface:#0d1117;--ono-surface-muted:#0f141b;--ono-border:#30363d99;--ono-text:#c9d1d9;--ono-text-muted:#8b949e;--ono-link:#ff6a52;--ono-muted-on-surface:#8b949e;--ono-hover-overlay:#f0f6fc0f;--ono-on-accent:#fff;--ono-success:#2ea043;--ono-success-bg:#2ea04333;--ono-neutral:#6e7681;--ono-neutral-bg:#6e768140;--ono-chip-bg:#6e768133;--ono-chip-text:var(--ono-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}}.shiki{max-width:100%;padding-bottom:calc(var(--spacing) * 6);overflow-wrap:break-word;overflow:auto}.shiki pre{max-width:100%;overflow:auto}.shiki::-webkit-scrollbar{height:calc(var(--spacing) * 2)}.shiki::-webkit-scrollbar-thumb{border-radius:3.40282e38px}.shiki::-webkit-scrollbar-thumb{background-color:var(--color-gray-500)}.shiki:where(.dark,.dark *)::-webkit-scrollbar-thumb{background-color:var(--color-slate-500)}.shiki::-webkit-scrollbar-track{border-radius:3.40282e38px}.shiki::-webkit-scrollbar-track{background-color:var(--color-gray-100)}.shiki:where(.dark,.dark *)::-webkit-scrollbar-track{background-color:var(--color-slate-700)}html.dark .shiki,html.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}.dark [type=checkbox]:checked,.dark [type=radio]:checked{background-color:currentColor}.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}details>summary [data-chevron]{transition:transform .2s ease-in-out}details[open]>summary [data-chevron]{transform:rotate(180deg)}details summary .ono-expand-icon-open{display:none!important}details[open] summary .ono-expand-icon-open,details[open] summary .ono-expand-icon-closed{display:inline-block!important}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-red-orange);outline-offset:2px}[role=tab].active{border-left:3px solid var(--ono-red-orange);background-color:#ff462814}.stack-tab-active{border-left:3px solid var(--ono-red-orange)!important;color:var(--ono-red-orange)!important;background-color:#ff462814!important;font-weight:600!important}[role=tab][aria-disabled=true],button[disabled]{opacity:.55}.ono-dropdown-menu{transition:opacity .15s;display:none}.ono-dropdown-menu.ono-dropdown-open{opacity:1;display:block}.ono-dropdown-toggle.ono-dropdown-open svg{transform:rotate(180deg)}.ono-tab-active{border-left:3px solid var(--ono-red-orange)!important;color:var(--ono-red-orange)!important;background-color:#ff462814!important;font-weight:600!important}.hidden{display:none!important}.block{display:block!important}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{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-ease{syntax:"*";inherits:false}@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}`,Dn=Object.defineProperty,Fe=m((t,e)=>Dn(t,"name",{value:e,configurable:!0}),"n$6");const Ee=Fe(t=>t.replaceAll(/[&<>"']/g,e=>({'"':""","&":"&","'":"'","<":"<",">":">"})[e]??e),"escapeHtml"),In=`
|
|
421
421
|
// Ensures listeners run as soon as the DOM is interactive
|
|
422
422
|
function subscribeToDOMContentLoaded(listener) {
|
|
423
423
|
if (document.readyState !== 'loading') {
|
|
@@ -426,7 +426,7 @@ bindShortcutsModal();
|
|
|
426
426
|
}
|
|
427
427
|
try { document.addEventListener('DOMContentLoaded', listener); } catch (_) {}
|
|
428
428
|
}
|
|
429
|
-
`,
|
|
429
|
+
`,zn=`
|
|
430
430
|
subscribeToDOMContentLoaded(() => {
|
|
431
431
|
// Global keyboard shortcut for ? and Shift+/ to open shortcuts
|
|
432
432
|
if (!window.__onoShortcutKeyBound) {
|
|
@@ -469,24 +469,24 @@ bindShortcutsModal();
|
|
|
469
469
|
});
|
|
470
470
|
}
|
|
471
471
|
});
|
|
472
|
-
`,
|
|
472
|
+
`,We=Fe((t,e)=>`<script${e?` nonce="${Ee(e)}"`:""}>${t}<\/script>`,"createScriptTag"),Rn=Fe((t,e)=>`<style${e?` nonce="${Ee(e)}"`:""}>${t}</style>`,"createStyleTag"),Bn=Fe(({content:t,cspNonce:e,css:o,description:r,error:n,scripts:s,theme:a,title:i})=>{const c=Uo(e),l=Ee(i),d=Ee(r),p=n.stack??n.toString(),h=Ue(p.includes(`
|
|
473
473
|
`)?p.replaceAll(`
|
|
474
474
|
`,`
|
|
475
475
|
`):p);return`<!--
|
|
476
476
|
${h}
|
|
477
477
|
-->
|
|
478
478
|
<!DOCTYPE html>
|
|
479
|
-
<html lang="en" class="${
|
|
479
|
+
<html lang="en" class="${a==="dark"?"dark":""}">
|
|
480
480
|
<head>
|
|
481
481
|
<meta charset="UTF-8">
|
|
482
482
|
<title>${l}</title>
|
|
483
483
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
484
484
|
<meta name="description" content="${d}">
|
|
485
|
-
${
|
|
486
|
-
${
|
|
487
|
-
${
|
|
485
|
+
${Rn(o,c)}
|
|
486
|
+
${We(In.trim(),c)}
|
|
487
|
+
${s.filter(Boolean).map(u=>We(u,c)).join(`
|
|
488
488
|
`)}
|
|
489
|
-
${
|
|
489
|
+
${We(zn.trim(),c)}
|
|
490
490
|
</head>
|
|
491
491
|
<body>
|
|
492
492
|
<div id="visulima-ono-container" class="bg-[var(--ono-bg)] text-[var(--ono-text)]">
|
|
@@ -499,17 +499,17 @@ bindShortcutsModal();
|
|
|
499
499
|
<!--
|
|
500
500
|
${h}
|
|
501
501
|
-->
|
|
502
|
-
`},"layout");var
|
|
502
|
+
`},"layout");var Ln=Object.defineProperty,jn=m((t,e)=>Ln(t,"name",{value:e,configurable:!0}),"o$1");const F=globalThis,Fn=[[!!F.Netlify,"netlify"],[!!F.EdgeRuntime,"edge-light"],[F.navigator?.userAgent==="Cloudono-Workers","workerd"],[!!F.Deno,"deno"],[!!F.__lagon__,"lagon"],[F.process?.release?.name==="node","node"],[!!F.Bun||!!F.process?.versions?.bun,"bun"],[!!F.fastly,"fastly"]],_n=jn(()=>{const t=Fn.find(e=>e[0]);if(t)return t[1]},"detectRuntime"),Mn=_n(),Pt="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-minus%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%22M5%2012h14%22%20%2F%3E%20%3C%2Fsvg%3E",Nt="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-plus%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%22M5%2012h14%22%20%2F%3E%20%3Cpath%20d%3D%22M12%205v14%22%20%2F%3E%20%3C%2Fsvg%3E",Se="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-chevron-down%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%22m6%209%206%206%206-6%22%20%2F%3E%20%3C%2Fsvg%3E";var On=Object.defineProperty,Pn=m((t,e)=>On(t,"name",{value:e,configurable:!0}),"t$1");const Nn=Pn(t=>{if(typeof t!="string")throw new TypeError("revisionHash: input must be a string");return Xo("sha256").update(t,"utf8").digest("hex").slice(0,16)},"revisionHash");var qn=Object.defineProperty,Wn=m((t,e)=>qn(t,"name",{value:e,configurable:!0}),"n$3");const Hn=Wn(t=>{if(t.startsWith("node:"))return"internal";if(t.includes("node_modules"))return"node_modules";if(t.includes("native"))return"native";if(t.includes("webpack"))return"webpack"},"getType");var Un=Object.defineProperty,Zn=m((t,e)=>Un(t,"name",{value:e,configurable:!0}),"n$2");const Gn=Zn(t=>{const e=[];let o=[];for(let r=0;r<t.length;r+=1){o.push(t[r]);const n=r===t.length-1,s=!n&&t[r].type!==t[r+1].type;(n||s)&&(o.length>1?e.push(o):e.push(o[0]),o=[])}return e},"groupSimilarTypes");var Vn=Object.defineProperty,qt=m((t,e)=>Vn(t,"name",{value:e,configurable:!0}),"m$3");const Kn=/^file:\/\//,xo=qt(async(t,e={})=>{const o=Nn(t.name+t.message+(t.stack??"")),r=rt(t),n=qt(h=>h.replaceAll(/[&<>"']/g,u=>({'"':""","&":"&","'":"'","<":"<",">":">"})[u]??u),"escapeHtml"),s=[],a=[];for(const[h,u]of r.entries()){const f=`// Unable to load source code for ${u.file??""}:${String(u.line??"")}:${String(u.column??"")}`,g=u.file?await ge(u.file):void 0,w=!!g,y=g?nt(g,{start:{column:u.column,line:u.line}},{linesAbove:9,linesBelow:10,showGutter:!1}):f,I=ue(u.file??"");let j;if(I==="text")j=`<pre class="shiki"><code>${n(y)}</code></pre>`;else{const Fo=(await Zo([I])).codeToHtml(y,{lang:I,themes:{dark:"min-dark",light:"min-light"}});j=S(Fo)}const Y=`${u.file??""}:${String(u.line??"")}:${String(u.column??"")}`,M=(u.file??"").replace(Kn,""),R=Y.replace(Ko.cwd?.()??"","").replace("file:///",""),ee=S(u.methodName??""),V=S(R);s.push({html:`<button type="button" id="source-code-tabs-item-${o}-${String(h)}" data-stack-tab="#source-code-tabs-${o}-${String(h)}" aria-controls="source-code-tabs-${o}-${String(h)}" ${w?"":'disabled aria-disabled="true"'} class="${vo("relative inline-flex items-center gap-x-2 text-sm whitespace-nowrap p-6 w-full text-left border-l-2 border-transparent hover:bg-[var(--ono-hover-overlay)] text-[var(--ono-text-muted)] cursor-pointer",w?"cursor-pointer":"cursor-not-allowed")}">
|
|
503
503
|
<div class="flex flex-col w-full text-left overflow-hidden min-w-0">
|
|
504
|
-
<span class="font-medium text-[var(--ono-text)] truncate">${
|
|
505
|
-
<span class="text-sm text-[var(--ono-text-muted)] truncate">${
|
|
504
|
+
<span class="font-medium text-[var(--ono-text)] truncate">${ee}</span>
|
|
505
|
+
<span class="text-sm text-[var(--ono-text-muted)] truncate">${V}</span>
|
|
506
506
|
</div>
|
|
507
|
-
</button>`,type:u.file?
|
|
507
|
+
</button>`,type:u.file?Hn(u.file):void 0});let Pe=V;e.openInEditorUrl?Pe=`<button type="button" class="underline hover:text-[var(--ono-link)]" data-open-in-editor data-url="${Go(e.openInEditorUrl)}" data-path="${E(M)}" data-line="${E(u.line??1)}" data-column="${E(u.column??1)}" title="Open ${V} in external editor">${V} — Open in editor</button>`:w&&(Pe=`<button type="button" class="underline hover:text-[var(--ono-link)]" data-editor-link data-path="${E(M)}" data-line="${E(u.line??1)}" data-column="${E(u.column??1)}" title="Open ${V} in editor">${V} — Open in editor</button>`),a.push(`<div id="source-code-tabs-${o}-${String(h)}" class="${h===0&&w?"block":"hidden"}" aria-labelledby="source-code-tabs-item-${o}-${String(h)}" tabindex="0">
|
|
508
508
|
<div class="pt-6 px-6 text-sm text-right text-[var(--ono-text)]">
|
|
509
|
-
${
|
|
509
|
+
${Pe}
|
|
510
510
|
</div>
|
|
511
|
-
<div class="p-6">${
|
|
512
|
-
</div>`)}const
|
|
511
|
+
<div class="p-6">${j}</div>
|
|
512
|
+
</div>`)}const i=Gn(s),c=i.map((h,u)=>{if(Array.isArray(h)){const f=h[0];let g;switch(f.type){case"bun":{g="bun";break}case"internal":{g="internal";break}case"native":{g="native";break}case"node_modules":{g="node_modules";break}case"webpack":{g="webpack";break}default:g="application"}const w=`small-switch-${o}-${String(u)}`,y=`stack-trace-group-${o}-${String(u)}`;return`<div class="flex items-center gap-2">
|
|
513
513
|
<label for="${w}" class="relative text-sm text-[var(--ono-text)] flex gap-2 items-center">
|
|
514
514
|
<div class="relative inline-flex h-5 w-9 cursor-pointer items-center">
|
|
515
515
|
<input type="checkbox" id="${w}" data-group-toggle="${o}" data-target-id="${y}" class="peer sr-only">
|
|
@@ -526,19 +526,19 @@ bindShortcutsModal();
|
|
|
526
526
|
<div class="flex flex-row items-center gap-2">${c}</div>
|
|
527
527
|
</div>
|
|
528
528
|
<nav class="flex flex-col" aria-label="Frames">
|
|
529
|
-
${
|
|
529
|
+
${i.map((h,u)=>{if(Array.isArray(h)){const f=h[0];let g;switch(f.type){case"bun":{g="bun";break}case"internal":{g="internal";break}case"native":{g="native";break}case"node_modules":{g="node_modules";break}case"webpack":{g="webpack";break}default:g="application"}return`<details id="stack-trace-group-${o}-${String(u)}">
|
|
530
530
|
<summary class="py-3 px-6 cursor-pointer flex items-center justify-between text-sm hover:bg-[var(--ono-hover-overlay)] focus:outline-hidden focus:ring-1 focus:ring-gray-600 text-[var(--ono-text)]">
|
|
531
531
|
<span class="flex items-center gap-2">
|
|
532
532
|
<span class="uppercase tracking-wide text-[10px] text-[var(--ono-text-muted)]">${g}</span>
|
|
533
533
|
<span class="inline-flex items-center justify-center px-2 py-0.5 rounded-full text-[10px] bg-[var(--ono-chip-bg)] text-[var(--ono-chip-text)]">${String(h.length)}</span>
|
|
534
534
|
</span>
|
|
535
|
-
<span data-chevron class="dui w-4 h-4 transition-transform duration-300" style="-webkit-mask-image:url('${
|
|
535
|
+
<span data-chevron class="dui w-4 h-4 transition-transform duration-300" style="-webkit-mask-image:url('${Se}'); mask-image:url('${Se}')"></span>
|
|
536
536
|
</summary>
|
|
537
537
|
<div class="flex flex-col">${h.map(w=>w.html).join("")}</div>
|
|
538
538
|
</details>`}return h.html}).join("")}
|
|
539
539
|
</nav>
|
|
540
540
|
</div>
|
|
541
|
-
<div class="w-8/12 rounded-tr-lg rounded-br-lg overflow-hidden bg-[var(--ono-surface)]">${
|
|
541
|
+
<div class="w-8/12 rounded-tr-lg rounded-br-lg overflow-hidden bg-[var(--ono-surface)]">${a.join("")}</div>
|
|
542
542
|
</main>
|
|
543
543
|
</section>`,p=`
|
|
544
544
|
(function(){
|
|
@@ -770,18 +770,18 @@ bindShortcutsModal();
|
|
|
770
770
|
});
|
|
771
771
|
});
|
|
772
772
|
})();
|
|
773
|
-
`;return{html:d,script:p}},"stackTraceViewer"),
|
|
774
|
-
<span class="dui" style="-webkit-mask-image: url('${
|
|
775
|
-
</span>`:"","tooltip");var
|
|
773
|
+
`;return{html:d,script:p}},"stackTraceViewer"),Ke="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";var Qn=Object.defineProperty,Xn=m((t,e)=>Qn(t,"name",{value:e,configurable:!0}),"s$2");const ko=Xn(({message:t}={})=>t?`<span class="inline-flex justify-center items-center text-[var(--ono-text)] cursor-help" title="${S(t)}">
|
|
774
|
+
<span class="dui" style="-webkit-mask-image: url('${Ke}'); mask-image: url('${Ke}')"></span>
|
|
775
|
+
</span>`:"","tooltip");var Jn=Object.defineProperty,Yn=m((t,e)=>Jn(t,"name",{value:e,configurable:!0}),"r$1");const es=Yn(async(t,e={})=>{if(t.length===0)return{html:"",script:""};const o=[],r=[];for(const[n,s]of t.entries())if(s instanceof Error){const{html:a,script:i}=await xo(s,{openInEditorUrl:e.openInEditorUrl});o.push(`<details aria-label="Cause ${String(n+1)}" class="relative rounded-[var(--ono-radius-lg)] mb-2 last:mb-0 group shadow-[var(--ono-elevation-1)] bg-[var(--ono-surface)]">
|
|
776
776
|
<summary class="pl-5 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] transition-all inline-flex justify-between items-center gap-x-3 w-full font-semibold text-start py-4 px-5 disabled:opacity-50 disabled:pointer-events-none cursor-pointer text-[var(--ono-text)]">
|
|
777
|
-
${S(
|
|
778
|
-
<span class="dui ono-expand-icon-closed size-4" style="-webkit-mask-image:url('${
|
|
779
|
-
<span class="dui ono-expand-icon-open size-4" style="-webkit-mask-image:url('${
|
|
777
|
+
${S(s.name)}: ${S(s.message)}
|
|
778
|
+
<span class="dui ono-expand-icon-closed size-4" style="-webkit-mask-image:url('${Nt}'); mask-image:url('${Nt}')"></span>
|
|
779
|
+
<span class="dui ono-expand-icon-open size-4" style="-webkit-mask-image:url('${Pt}'); mask-image:url('${Pt}')"></span>
|
|
780
780
|
</summary>
|
|
781
781
|
<section class="w-full overflow-hidden transition-[height] duration-300 p-5 pt-0">
|
|
782
|
-
${
|
|
782
|
+
${a}
|
|
783
783
|
</section>
|
|
784
|
-
</details>`),r.push(
|
|
784
|
+
</details>`),r.push(i)}else typeof s=="string"?o.push(`<div class="container rounded-lg mt-2 py-4 px-5 shadow-xl bg-[var(--ono-white-smoke)] text-[var(--ono-text)]">${S(s)}</div>`):o.push(`<div class="container rounded-lg mt-2 py-4 px-5 shadow-xl bg-[var(--ono-white-smoke)] text-[var(--ono-text)]">${S(JSON.stringify(s))}</div>`);return{html:`<style>
|
|
785
785
|
/* Toggle plus/minus icons inside <details> */
|
|
786
786
|
details summary .ono-expand-icon-open { display: none !important; }
|
|
787
787
|
details[open] summary .ono-expand-icon-open { display: inline-block !important; }
|
|
@@ -790,13 +790,13 @@ bindShortcutsModal();
|
|
|
790
790
|
<section class="w-full">
|
|
791
791
|
<div>
|
|
792
792
|
<h3 class="text-xl font-bold inline-flex justify-center items-center text-[var(--ono-text)]">Error causes</h3>
|
|
793
|
-
${
|
|
793
|
+
${ko({message:`The "cause" property of an Error indicates the original reason the error occurred.
|
|
794
794
|
Causes are ordered in the sequence they occurred.`})}
|
|
795
795
|
</div>
|
|
796
796
|
<div class="mt-6">${o.join(`
|
|
797
797
|
`)}</div>
|
|
798
798
|
</section>`,script:r.join(`
|
|
799
|
-
`)}},"causes"),
|
|
799
|
+
`)}},"causes"),Wt="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-external-link%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Cpath%20d%3D%22M15%203h6v6%22%20%2F%3E%20%3Cpath%20d%3D%22M10%2014%2021%203%22%20%2F%3E%20%3Cpath%20d%3D%22M18%2013v6a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2V8a2%202%200%200%201%202-2h6%22%20%2F%3E%20%3C%2Fsvg%3E";var ts=Object.defineProperty,os=m((t,e)=>ts(t,"name",{value:e,configurable:!0}),"i$2");const rs=/^#/,yo=os(({label:t="Copy",secondaryLabel:e="Copy fix prompt",secondaryText:o,successText:r="Copied!",targetId:n})=>{const s=S(e),a=E(o),i=E(n),c=E(t),l=S(t);return{html:`
|
|
800
800
|
<div class="ono-dropdown relative inline-block">
|
|
801
801
|
<button
|
|
802
802
|
type="button"
|
|
@@ -804,13 +804,13 @@ bindShortcutsModal();
|
|
|
804
804
|
title="${c}"
|
|
805
805
|
aria-haspopup="menu"
|
|
806
806
|
aria-expanded="false"
|
|
807
|
-
aria-controls="${E(`ono-copy-menu-${n.replace(
|
|
807
|
+
aria-controls="${E(`ono-copy-menu-${n.replace(rs,"")}`)}"
|
|
808
808
|
class="ono-dropdown-toggle inline-flex justify-center items-center gap-2 px-1 h-8 rounded-[var(--ono-radius-md)] shadow-[var(--ono-elevation-1)] bg-[var(--ono-surface)] text-[var(--ono-text)] hover:bg-[var(--ono-hover-overlay)] focus:outline-hidden focus:bg-[var(--ono-hover-overlay)] disabled:opacity-50 disabled:pointer-events-none cursor-pointer"
|
|
809
809
|
>
|
|
810
|
-
<span class="ono-copy-default dui size-4 transition" style="-webkit-mask-image: url('${
|
|
811
|
-
<span class="ono-copy-success dui hidden size-4 text-[var(--ono-red-orange)]" style="-webkit-mask-image: url('${
|
|
810
|
+
<span class="ono-copy-default dui size-4 transition" style="-webkit-mask-image: url('${$t}'); mask-image: url('${$t}')"></span>
|
|
811
|
+
<span class="ono-copy-success dui hidden size-4 text-[var(--ono-red-orange)]" style="-webkit-mask-image: url('${Et}'); mask-image: url('${Et}')"></span>
|
|
812
812
|
<span class="sr-only">${l}</span>
|
|
813
|
-
<span class="dui size-4 transition-transform duration-200 [&.ono-dropdown-open]:rotate-180" style="-webkit-mask-image:url('${
|
|
813
|
+
<span class="dui size-4 transition-transform duration-200 [&.ono-dropdown-open]:rotate-180" style="-webkit-mask-image:url('${Se}'); mask-image:url('${Se}')"></span>
|
|
814
814
|
</button>
|
|
815
815
|
|
|
816
816
|
<div class="ono-dropdown-menu absolute z-20 top-full left-0 mt-1 min-w-52 p-1 bg-[var(--ono-surface)] border border-[var(--ono-border)] text-sm text-[var(--ono-text)] rounded-[var(--ono-radius-md)] shadow-[var(--ono-elevation-2)] [&.ono-dropdown-open]:block" role="menu">
|
|
@@ -818,7 +818,7 @@ bindShortcutsModal();
|
|
|
818
818
|
type="button"
|
|
819
819
|
role="menuitem"
|
|
820
820
|
class="ono-copy-menu-item w-full text-left px-3 py-2 rounded-[var(--ono-radius-md)] hover:bg-[var(--ono-hover-overlay)] focus:outline-hidden cursor-pointer"
|
|
821
|
-
data-target="#${
|
|
821
|
+
data-target="#${i}"
|
|
822
822
|
data-success-text="${E(r)}"
|
|
823
823
|
>
|
|
824
824
|
${l}
|
|
@@ -827,84 +827,84 @@ bindShortcutsModal();
|
|
|
827
827
|
type="button"
|
|
828
828
|
role="menuitem"
|
|
829
829
|
class="ono-copy-menu-item w-full text-left px-3 py-2 rounded-[var(--ono-radius-md)] hover:bg-[var(--ono-hover-overlay)] focus:outline-hidden cursor-pointer"
|
|
830
|
-
data-text="${
|
|
830
|
+
data-text="${a}"
|
|
831
831
|
data-success-text="${E(r)}"
|
|
832
832
|
>
|
|
833
|
-
${
|
|
833
|
+
${s}
|
|
834
834
|
</button>
|
|
835
835
|
</div>
|
|
836
836
|
</div>
|
|
837
|
-
`}},"copyDropdown"),
|
|
838
|
-
]`).replace("lheading",
|
|
837
|
+
`}},"copyDropdown"),He="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 ns=Object.defineProperty,v=m((t,e)=>ns(t,"name",{value:e,configurable:!0}),"k");function _e(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}m(_e,"v$1");v(_e,"z");var G=_e();function gt(t){G=t}m(gt,"ae");v(gt,"G");var W={exec:v(()=>null,"exec")};function b(t,e=""){let o=typeof t=="string"?t:t.source,r={replace:v((n,s)=>{let a=typeof s=="string"?s:s.source;return a=a.replace(C.caret,"$1"),o=o.replace(n,a),r},"replace"),getRegex:v(()=>new RegExp(o,e),"getRegex")};return r}m(b,"u");v(b,"d");var ss=((t="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+t)}catch{return!1}})(),C={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,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:v(t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),"listItemRegex"),nextBulletRegex:v(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),"nextBulletRegex"),hrRegex:v(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),"hrRegex"),fencesBeginRegex:v(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),"fencesBeginRegex"),headingBeginRegex:v(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),"headingBeginRegex"),htmlBeginRegex:v(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),"htmlBeginRegex"),blockquoteBeginRegex:v(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}>`),"blockquoteBeginRegex")},as=/^(?:[ \t]*(?:\n|$))+/,is=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ls=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,me=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,cs=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,mt=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,$o=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Eo=b($o).replace(/bull/g,mt).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(),ds=b($o).replace(/bull/g,mt).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(),ft=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ps=/^[^\n]+/,wt=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,hs=b(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",wt).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),us=b(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,mt).getRegex(),Me="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",bt=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,gs=b("^ {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",bt).replace("tag",Me).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),So=b(ft).replace("hr",me).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[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Me).getRegex(),ms=b(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",So).getRegex(),vt={blockquote:ms,code:is,def:hs,fences:ls,heading:cs,hr:me,html:gs,lheading:Eo,list:us,newline:as,paragraph:So,table:W,text:ps},Ht=b("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",me).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[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Me).getRegex(),fs={...vt,lheading:ds,table:Ht,paragraph:b(ft).replace("hr",me).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ht).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Me).getRegex()},ws={...vt,html:b(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",bt).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:W,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:b(ft).replace("hr",me).replace("heading",` *#{1,6} *[^
|
|
838
|
+
]`).replace("lheading",Eo).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},bs=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,vs=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Co=/^( {2,}|\\)\n(?!\s*$)/,xs=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,J=/[\p{P}\p{S}]/u,Oe=/[\s\p{P}\p{S}]/u,xt=/[^\s\p{P}\p{S}]/u,ks=b(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Oe).getRegex(),Ao=/(?!~)[\p{P}\p{S}]/u,ys=/(?!~)[\s\p{P}\p{S}]/u,$s=/(?:[^\s\p{P}\p{S}]|~)/u,Es=b(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",ss?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),To=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Ss=b(To,"u").replace(/punct/g,J).getRegex(),Cs=b(To,"u").replace(/punct/g,Ao).getRegex(),Do="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",As=b(Do,"gu").replace(/notPunctSpace/g,xt).replace(/punctSpace/g,Oe).replace(/punct/g,J).getRegex(),Ts=b(Do,"gu").replace(/notPunctSpace/g,$s).replace(/punctSpace/g,ys).replace(/punct/g,Ao).getRegex(),Ds=b("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,xt).replace(/punctSpace/g,Oe).replace(/punct/g,J).getRegex(),Is=b(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,J).getRegex(),zs="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Rs=b(zs,"gu").replace(/notPunctSpace/g,xt).replace(/punctSpace/g,Oe).replace(/punct/g,J).getRegex(),Bs=b(/\\(punct)/,"gu").replace(/punct/g,J).getRegex(),Ls=b(/^<(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(),js=b(bt).replace("(?:-->|$)","-->").getRegex(),Fs=b("^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",js).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ce=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,_s=b(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Ce).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Io=b(/^!?\[(label)\]\[(ref)\]/).replace("label",Ce).replace("ref",wt).getRegex(),zo=b(/^!?\[(ref)\](?:\[\])?/).replace("ref",wt).getRegex(),Ms=b("reflink|nolink(?!\\()","g").replace("reflink",Io).replace("nolink",zo).getRegex(),Ut=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,kt={_backpedal:W,anyPunctuation:Bs,autolink:Ls,blockSkip:Es,br:Co,code:vs,del:W,delLDelim:W,delRDelim:W,emStrongLDelim:Ss,emStrongRDelimAst:As,emStrongRDelimUnd:Ds,escape:bs,link:_s,nolink:zo,punctuation:ks,reflink:Io,reflinkSearch:Ms,tag:Fs,text:xs,url:W},Os={...kt,link:b(/^!?\[(label)\]\((.*?)\)/).replace("label",Ce).getRegex(),reflink:b(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ce).getRegex()},Qe={...kt,emStrongRDelimAst:Ts,emStrongLDelim:Cs,delLDelim:Is,delRDelim:Rs,url:b(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Ut).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:b(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Ut).getRegex()},Ps={...Qe,br:b(Co).replace("{2,}","*").getRegex(),text:b(Qe.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ve={normal:vt,gfm:fs,pedantic:ws},re={normal:kt,gfm:Qe,breaks:Ps,pedantic:Os},Ns={"&":"&","<":"<",">":">",'"':""","'":"'"},Zt=v(t=>Ns[t],"de");function z(t,e){if(e){if(C.escapeTest.test(t))return t.replace(C.escapeReplace,Zt)}else if(C.escapeTestNoEncode.test(t))return t.replace(C.escapeReplaceNoEncode,Zt);return t}m(z,"y$2");v(z,"O");function Xe(t){try{t=encodeURI(t).replace(C.percentDecode,"%")}catch{return null}return t}m(Xe,"ne");v(Xe,"J");function Je(t,e){let o=t.replace(C.findPipe,(s,a,i)=>{let c=!1,l=a;for(;--l>=0&&i[l]==="\\";)c=!c;return c?"|":" |"}),r=o.split(C.splitPipe),n=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(C.slashPipe,"|");return r}m(Je,"se");v(Je,"V");function _(t,e,o){let r=t.length;if(r===0)return"";let n=0;for(;n<r;){let s=t.charAt(r-n-1);if(s===e&&!o)n++;else if(s!==e&&o)n++;else break}return t.slice(0,r-n)}m(_,"$$2");v(_,"$");function Ye(t){let e=t.split(`
|
|
839
839
|
`),o=e.length-1;for(;o>=0&&C.blankLine.test(e[o]);)o--;return e.length-o<=2?t:e.slice(0,o+1).join(`
|
|
840
|
-
`)}m(
|
|
841
|
-
`).map(
|
|
842
|
-
`)}m(
|
|
843
|
-
`),depth:e[1].length,text:o,tokens:this.lexer.inline(o)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:
|
|
844
|
-
`)}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let o=
|
|
840
|
+
`)}m(Ye,"ie");v(Ye,"Y");function Ro(t,e){if(t.indexOf(e[1])===-1)return-1;let o=0;for(let r=0;r<t.length;r++)if(t[r]==="\\")r++;else if(t[r]===e[0])o++;else if(t[r]===e[1]&&(o--,o<0))return r;return o>0?-2:-1}m(Ro,"st");v(Ro,"ge");function Bo(t,e=0){let o=e,r="";for(let n of t)if(n===" "){let s=4-o%4;r+=" ".repeat(s),o+=s}else r+=n,o++;return r}m(Bo,"it");v(Bo,"fe");function et(t,e,o,r,n){let s=e.href,a=e.title||null,i=t[1].replace(n.other.outputLinkReplace,"$1");r.state.inLink=!0;let c={type:t[0].charAt(0)==="!"?"image":"link",raw:o,href:s,title:a,text:i,tokens:r.inlineTokens(i)};return r.state.inLink=!1,c}m(et,"le");v(et,"me");function Lo(t,e,o){let r=t.match(o.other.indentCodeCompensation);if(r===null)return e;let n=r[1];return e.split(`
|
|
841
|
+
`).map(s=>{let a=s.match(o.other.beginningSpace);if(a===null)return s;let[i]=a;return i.length>=n.length?s.slice(n.length):s}).join(`
|
|
842
|
+
`)}m(Lo,"lt");v(Lo,"rt");var Ae=class{static{m(this,"I")}static{v(this,"w")}options;rules;lexer;constructor(t){this.options=t||G}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let o=this.options.pedantic?e[0]:Ye(e[0]),r=o.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:o,codeBlockStyle:"indented",text:r}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let o=e[0],r=Lo(o,e[3]||"",this.rules);return{type:"code",raw:o,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:r}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let o=e[2].trim();if(this.rules.other.endingHash.test(o)){let r=_(o,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(o=r.trim())}return{type:"heading",raw:_(e[0],`
|
|
843
|
+
`),depth:e[1].length,text:o,tokens:this.lexer.inline(o)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:_(e[0],`
|
|
844
|
+
`)}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let o=_(e[0],`
|
|
845
845
|
`).split(`
|
|
846
|
-
`),r="",n="",
|
|
846
|
+
`),r="",n="",s=[];for(;o.length>0;){let a=!1,i=[],c;for(c=0;c<o.length;c++)if(this.rules.other.blockquoteStart.test(o[c]))i.push(o[c]),a=!0;else if(!a)i.push(o[c]);else break;o=o.slice(c);let l=i.join(`
|
|
847
847
|
`),d=l.replace(this.rules.other.blockquoteSetextReplace,`
|
|
848
848
|
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
|
|
849
849
|
${l}`:l,n=n?`${n}
|
|
850
|
-
${d}`:d;let p=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(d,
|
|
850
|
+
${d}`:d;let p=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(d,s,!0),this.lexer.state.top=p,o.length===0)break;let h=s.at(-1);if(h?.type==="code")break;if(h?.type==="blockquote"){let u=h,f=u.raw+`
|
|
851
851
|
`+o.join(`
|
|
852
|
-
`),g=this.blockquote(f);
|
|
852
|
+
`),g=this.blockquote(f);s[s.length-1]=g,r=r.substring(0,r.length-u.raw.length)+g.raw,n=n.substring(0,n.length-u.text.length)+g.text;break}else if(h?.type==="list"){let u=h,f=u.raw+`
|
|
853
853
|
`+o.join(`
|
|
854
|
-
`),g=this.list(f);
|
|
855
|
-
`);continue}}return{type:"blockquote",raw:r,tokens:
|
|
854
|
+
`),g=this.list(f);s[s.length-1]=g,r=r.substring(0,r.length-h.raw.length)+g.raw,n=n.substring(0,n.length-u.raw.length)+g.raw,o=f.substring(s.at(-1).raw.length).split(`
|
|
855
|
+
`);continue}}return{type:"blockquote",raw:r,tokens:s,text:n}}}list(t){let e=this.rules.block.list.exec(t);if(e){let o=e[1].trim(),r=o.length>1,n={type:"list",raw:"",ordered:r,start:r?+o.slice(0,-1):"",loose:!1,items:[]};o=r?`\\d{1,9}\\${o.slice(-1)}`:`\\${o}`,this.options.pedantic&&(o=r?o:"[*+-]");let s=this.rules.other.listItemRegex(o),a=!1;for(;t;){let c=!1,l="",d="";if(!(e=s.exec(t))||this.rules.block.hr.test(t))break;l=e[0],t=t.substring(l.length);let p=Bo(e[2].split(`
|
|
856
856
|
`,1)[0],e[1].length),h=t.split(`
|
|
857
857
|
`,1)[0],u=!p.trim(),f=0;if(this.options.pedantic?(f=2,d=p.trimStart()):u?f=e[1].length+1:(f=p.search(this.rules.other.nonSpaceChar),f=f>4?1:f,d=p.slice(f),f+=e[1].length),u&&this.rules.other.blankLine.test(h)&&(l+=h+`
|
|
858
|
-
`,t=t.substring(h.length+1),c=!0),!c){let g=this.rules.other.nextBulletRegex(f),w=this.rules.other.hrRegex(f),y=this.rules.other.fencesBeginRegex(f),
|
|
859
|
-
`,1)[0],
|
|
860
|
-
`+
|
|
858
|
+
`,t=t.substring(h.length+1),c=!0),!c){let g=this.rules.other.nextBulletRegex(f),w=this.rules.other.hrRegex(f),y=this.rules.other.fencesBeginRegex(f),I=this.rules.other.headingBeginRegex(f),j=this.rules.other.htmlBeginRegex(f),Y=this.rules.other.blockquoteBeginRegex(f);for(;t;){let M=t.split(`
|
|
859
|
+
`,1)[0],R;if(h=M,this.options.pedantic?(h=h.replace(this.rules.other.listReplaceNesting," "),R=h):R=h.replace(this.rules.other.tabCharGlobal," "),y.test(h)||I.test(h)||j.test(h)||Y.test(h)||g.test(h)||w.test(h))break;if(R.search(this.rules.other.nonSpaceChar)>=f||!h.trim())d+=`
|
|
860
|
+
`+R.slice(f);else{if(u||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||y.test(p)||I.test(p)||w.test(p))break;d+=`
|
|
861
861
|
`+h}u=!h.trim(),l+=M+`
|
|
862
|
-
`,t=t.substring(M.length+1),p=
|
|
863
|
-
`),href:r,title:n}}}table(t){let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let o=
|
|
864
|
-
`):[],
|
|
865
|
-
`),header:[],align:[],rows:[]};if(o.length===r.length){for(let
|
|
862
|
+
`,t=t.substring(M.length+1),p=R.slice(f)}}n.loose||(a?n.loose=!0:this.rules.other.doubleBlankLine.test(l)&&(a=!0)),n.items.push({type:"list_item",raw:l,task:!!this.options.gfm&&this.rules.other.listIsTask.test(d),loose:!1,text:d,tokens:[]}),n.raw+=l}let i=n.items.at(-1);if(i)i.raw=i.raw.trimEnd(),i.text=i.text.trimEnd();else return;n.raw=n.raw.trimEnd();for(let c of n.items){this.lexer.state.top=!1,c.tokens=this.lexer.blockTokens(c.text,[]);let l=c.tokens[0];if(c.task&&(l?.type==="text"||l?.type==="paragraph")){c.text=c.text.replace(this.rules.other.listReplaceTask,""),l.raw=l.raw.replace(this.rules.other.listReplaceTask,""),l.text=l.text.replace(this.rules.other.listReplaceTask,"");for(let p=this.lexer.inlineQueue.length-1;p>=0;p--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[p].src)){this.lexer.inlineQueue[p].src=this.lexer.inlineQueue[p].src.replace(this.rules.other.listReplaceTask,"");break}let d=this.rules.other.listTaskCheckbox.exec(c.raw);if(d){let p={type:"checkbox",raw:d[0]+" ",checked:d[0]!=="[ ]"};c.checked=p.checked,n.loose?c.tokens[0]&&["paragraph","text"].includes(c.tokens[0].type)&&"tokens"in c.tokens[0]&&c.tokens[0].tokens?(c.tokens[0].raw=p.raw+c.tokens[0].raw,c.tokens[0].text=p.raw+c.tokens[0].text,c.tokens[0].tokens.unshift(p)):c.tokens.unshift({type:"paragraph",raw:p.raw,text:p.raw,tokens:[p]}):c.tokens.unshift(p)}}else c.task&&(c.task=!1);if(!n.loose){let d=c.tokens.filter(h=>h.type==="space"),p=d.length>0&&d.some(h=>this.rules.other.anyLine.test(h.raw));n.loose=p}}if(n.loose)for(let c of n.items){c.loose=!0;for(let l of c.tokens)l.type==="text"&&(l.type="paragraph")}return n}}html(t){let e=this.rules.block.html.exec(t);if(e){let o=Ye(e[0]);return{type:"html",block:!0,raw:o,pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:o}}}def(t){let e=this.rules.block.def.exec(t);if(e){let o=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:o,raw:_(e[0],`
|
|
863
|
+
`),href:r,title:n}}}table(t){let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let o=Je(e[1]),r=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),n=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
864
|
+
`):[],s={type:"table",raw:_(e[0],`
|
|
865
|
+
`),header:[],align:[],rows:[]};if(o.length===r.length){for(let a of r)this.rules.other.tableAlignRight.test(a)?s.align.push("right"):this.rules.other.tableAlignCenter.test(a)?s.align.push("center"):this.rules.other.tableAlignLeft.test(a)?s.align.push("left"):s.align.push(null);for(let a=0;a<o.length;a++)s.header.push({text:o[a],tokens:this.lexer.inline(o[a]),header:!0,align:s.align[a]});for(let a of n)s.rows.push(Je(a,s.header.length).map((i,c)=>({text:i,tokens:this.lexer.inline(i),header:!1,align:s.align[c]})));return s}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e){let o=e[1].trim();return{type:"heading",raw:_(e[0],`
|
|
866
866
|
`),depth:e[2].charAt(0)==="="?1:2,text:o,tokens:this.lexer.inline(o)}}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let o=e[1].charAt(e[1].length-1)===`
|
|
867
|
-
`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:o,tokens:this.lexer.inline(o)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let o=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(o)){if(!this.rules.other.endAngleBracket.test(o))return;let
|
|
868
|
-
`),this.blockTokens(e,this.tokens);for(let o=0;o<this.inlineQueue.length;o++){let r=this.inlineQueue[o];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,o=[],r=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(C.tabCharGlobal," ").replace(C.spaceLine,""));let n=1/0;for(;e;){if(e.length<n)n=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}let
|
|
869
|
-
`:o.push(
|
|
867
|
+
`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:o,tokens:this.lexer.inline(o)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let o=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(o)){if(!this.rules.other.endAngleBracket.test(o))return;let s=_(o.slice(0,-1),"\\");if((o.length-s.length)%2===0)return}else{let s=Ro(e[2],"()");if(s===-2)return;if(s>-1){let a=(e[0].indexOf("!")===0?5:4)+e[1].length+s;e[2]=e[2].substring(0,s),e[0]=e[0].substring(0,a).trim(),e[3]=""}}let r=e[2],n="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(r);s&&(r=s[1],n=s[3])}else n=e[3]?e[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(o)?r=r.slice(1):r=r.slice(1,-1)),et(e,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let o;if((o=this.rules.inline.reflink.exec(t))||(o=this.rules.inline.nolink.exec(t))){let r=(o[2]||o[1]).replace(this.rules.other.multipleSpaceGlobal," "),n=e[r.toLowerCase()];if(!n){let s=o[0].charAt(0);return{type:"text",raw:s,text:s}}return et(o,n,o[0],this.lexer,this.rules)}}emStrong(t,e,o=""){let r=this.rules.inline.emStrongLDelim.exec(t);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&o.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!o||this.rules.inline.punctuation.exec(o))){let n=[...r[0]].length-1,s,a,i=n,c=0,l=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,e=e.slice(-1*t.length+n);(r=l.exec(e))!==null;){if(s=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!s)continue;if(a=[...s].length,r[3]||r[4]){i+=a;continue}else if((r[5]||r[6])&&n%3&&!((n+a)%3)){c+=a;continue}if(i-=a,i>0)continue;a=Math.min(a,a+i+c);let d=[...r[0]][0].length,p=t.slice(0,n+r.index+d+a);if(Math.min(n,a)%2){let u=p.slice(1,-1);return{type:"em",raw:p,text:u,tokens:this.lexer.inlineTokens(u)}}let h=p.slice(2,-2);return{type:"strong",raw:p,text:h,tokens:this.lexer.inlineTokens(h)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let o=e[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(o),n=this.rules.other.startingSpaceChar.test(o)&&this.rules.other.endingSpaceChar.test(o);return r&&n&&(o=o.substring(1,o.length-1)),{type:"codespan",raw:e[0],text:o}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t,e,o=""){let r=this.rules.inline.delLDelim.exec(t);if(r&&(!r[1]||!o||this.rules.inline.punctuation.exec(o))){let n=[...r[0]].length-1,s,a,i=n,c=this.rules.inline.delRDelim;for(c.lastIndex=0,e=e.slice(-1*t.length+n);(r=c.exec(e))!==null;){if(s=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!s||(a=[...s].length,a!==n))continue;if(r[3]||r[4]){i+=a;continue}if(i-=a,i>0)continue;a=Math.min(a,a+i);let l=[...r[0]][0].length,d=t.slice(0,n+r.index+l+a),p=d.slice(n,-n);return{type:"del",raw:d,text:p,tokens:this.lexer.inlineTokens(p)}}}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let o,r;return e[2]==="@"?(o=e[1],r="mailto:"+o):(o=e[1],r=o),{type:"link",raw:e[0],text:o,href:r,tokens:[{type:"text",raw:o,text:o}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let o,r;if(e[2]==="@")o=e[0],r="mailto:"+o;else{let n;do n=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(n!==e[0]);o=e[0],e[1]==="www."?r="http://"+e[0]:r=e[0]}return{type:"link",raw:e[0],text:o,href:r,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let o=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:o}}}},B=class tt{static{m(this,"H")}static{v(this,"l")}tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||G,this.options.tokenizer=this.options.tokenizer||new Ae,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let o={other:C,block:ve.normal,inline:re.normal};this.options.pedantic?(o.block=ve.pedantic,o.inline=re.pedantic):this.options.gfm&&(o.block=ve.gfm,this.options.breaks?o.inline=re.breaks:o.inline=re.gfm),this.tokenizer.rules=o}static get rules(){return{block:ve,inline:re}}static lex(e,o){return new tt(o).lex(e)}static lexInline(e,o){return new tt(o).inlineTokens(e)}lex(e){e=e.replace(C.carriageReturn,`
|
|
868
|
+
`),this.blockTokens(e,this.tokens);for(let o=0;o<this.inlineQueue.length;o++){let r=this.inlineQueue[o];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,o=[],r=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(C.tabCharGlobal," ").replace(C.spaceLine,""));let n=1/0;for(;e;){if(e.length<n)n=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}let s;if(this.options.extensions?.block?.some(i=>(s=i.call({lexer:this},e,o))?(e=e.substring(s.raw.length),o.push(s),!0):!1))continue;if(s=this.tokenizer.space(e)){e=e.substring(s.raw.length);let i=o.at(-1);s.raw.length===1&&i!==void 0?i.raw+=`
|
|
869
|
+
`:o.push(s);continue}if(s=this.tokenizer.code(e)){e=e.substring(s.raw.length);let i=o.at(-1);i?.type==="paragraph"||i?.type==="text"?(i.raw+=(i.raw.endsWith(`
|
|
870
870
|
`)?"":`
|
|
871
|
-
`)+
|
|
872
|
-
`+
|
|
871
|
+
`)+s.raw,i.text+=`
|
|
872
|
+
`+s.text,this.inlineQueue.at(-1).src=i.text):o.push(s);continue}if(s=this.tokenizer.fences(e)){e=e.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.heading(e)){e=e.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.hr(e)){e=e.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.blockquote(e)){e=e.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.list(e)){e=e.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.html(e)){e=e.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.def(e)){e=e.substring(s.raw.length);let i=o.at(-1);i?.type==="paragraph"||i?.type==="text"?(i.raw+=(i.raw.endsWith(`
|
|
873
873
|
`)?"":`
|
|
874
|
-
`)+
|
|
875
|
-
`+
|
|
874
|
+
`)+s.raw,i.text+=`
|
|
875
|
+
`+s.raw,this.inlineQueue.at(-1).src=i.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title},o.push(s));continue}if(s=this.tokenizer.table(e)){e=e.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.lheading(e)){e=e.substring(s.raw.length),o.push(s);continue}let a=e;if(this.options.extensions?.startBlock){let i=1/0,c=e.slice(1),l;this.options.extensions.startBlock.forEach(d=>{l=d.call({lexer:this},c),typeof l=="number"&&l>=0&&(i=Math.min(i,l))}),i<1/0&&i>=0&&(a=e.substring(0,i+1))}if(this.state.top&&(s=this.tokenizer.paragraph(a))){let i=o.at(-1);r&&i?.type==="paragraph"?(i.raw+=(i.raw.endsWith(`
|
|
876
876
|
`)?"":`
|
|
877
|
-
`)+
|
|
878
|
-
`+
|
|
877
|
+
`)+s.raw,i.text+=`
|
|
878
|
+
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):o.push(s),r=a.length!==e.length,e=e.substring(s.raw.length);continue}if(s=this.tokenizer.text(e)){e=e.substring(s.raw.length);let i=o.at(-1);i?.type==="text"?(i.raw+=(i.raw.endsWith(`
|
|
879
879
|
`)?"":`
|
|
880
|
-
`)+
|
|
881
|
-
`+
|
|
882
|
-
`;return n?'<pre><code class="language-'+
|
|
883
|
-
`:"<pre><code>"+(r?
|
|
880
|
+
`)+s.raw,i.text+=`
|
|
881
|
+
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):o.push(s);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,o}inline(e,o=[]){return this.inlineQueue.push({src:e,tokens:o}),o}inlineTokens(e,o=[]){this.tokenizer.lexer=this;let r=e,n=null;if(this.tokens.links){let l=Object.keys(this.tokens.links);if(l.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(r))!==null;)l.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(r))!==null;)r=r.slice(0,n.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let s;for(;(n=this.tokenizer.rules.inline.blockSkip.exec(r))!==null;)s=n[2]?n[2].length:0,r=r.slice(0,n.index+s)+"["+"a".repeat(n[0].length-s-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let a=!1,i="",c=1/0;for(;e;){if(e.length<c)c=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}a||(i=""),a=!1;let l;if(this.options.extensions?.inline?.some(p=>(l=p.call({lexer:this},e,o))?(e=e.substring(l.raw.length),o.push(l),!0):!1))continue;if(l=this.tokenizer.escape(e)){e=e.substring(l.raw.length),o.push(l);continue}if(l=this.tokenizer.tag(e)){e=e.substring(l.raw.length),o.push(l);continue}if(l=this.tokenizer.link(e)){e=e.substring(l.raw.length),o.push(l);continue}if(l=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(l.raw.length);let p=o.at(-1);l.type==="text"&&p?.type==="text"?(p.raw+=l.raw,p.text+=l.text):o.push(l);continue}if(l=this.tokenizer.emStrong(e,r,i)){e=e.substring(l.raw.length),o.push(l);continue}if(l=this.tokenizer.codespan(e)){e=e.substring(l.raw.length),o.push(l);continue}if(l=this.tokenizer.br(e)){e=e.substring(l.raw.length),o.push(l);continue}if(l=this.tokenizer.del(e,r,i)){e=e.substring(l.raw.length),o.push(l);continue}if(l=this.tokenizer.autolink(e)){e=e.substring(l.raw.length),o.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(e))){e=e.substring(l.raw.length),o.push(l);continue}let d=e;if(this.options.extensions?.startInline){let p=1/0,h=e.slice(1),u;this.options.extensions.startInline.forEach(f=>{u=f.call({lexer:this},h),typeof u=="number"&&u>=0&&(p=Math.min(p,u))}),p<1/0&&p>=0&&(d=e.substring(0,p+1))}if(l=this.tokenizer.inlineText(d)){e=e.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(i=l.raw.slice(-1)),a=!0;let p=o.at(-1);p?.type==="text"?(p.raw+=l.raw,p.text+=l.text):o.push(l);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return o}infiniteLoopError(e){let o="Infinite loop on byte: "+e;if(this.options.silent)console.error(o);else throw new Error(o)}},Te=class{static{m(this,"E")}static{v(this,"y")}options;parser;constructor(e){this.options=e||G}space(e){return""}code({text:e,lang:o,escaped:r}){let n=(o||"").match(C.notSpaceStart)?.[0],s=e.replace(C.endingNewline,"")+`
|
|
882
|
+
`;return n?'<pre><code class="language-'+z(n)+'">'+(r?s:z(s,!0))+`</code></pre>
|
|
883
|
+
`:"<pre><code>"+(r?s:z(s,!0))+`</code></pre>
|
|
884
884
|
`}blockquote({tokens:e}){return`<blockquote>
|
|
885
885
|
${this.parser.parse(e)}</blockquote>
|
|
886
886
|
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:o}){return`<h${o}>${this.parser.parseInline(e)}</h${o}>
|
|
887
887
|
`}hr(e){return`<hr>
|
|
888
|
-
`}list(e){let o=e.ordered,r=e.start,n="";for(let
|
|
889
|
-
`+n+"</"+
|
|
888
|
+
`}list(e){let o=e.ordered,r=e.start,n="";for(let i=0;i<e.items.length;i++){let c=e.items[i];n+=this.listitem(c)}let s=o?"ol":"ul",a=o&&r!==1?' start="'+r+'"':"";return"<"+s+a+`>
|
|
889
|
+
`+n+"</"+s+`>
|
|
890
890
|
`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
|
|
891
891
|
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
892
|
-
`}table(e){let o="",r="";for(let
|
|
892
|
+
`}table(e){let o="",r="";for(let s=0;s<e.header.length;s++)r+=this.tablecell(e.header[s]);o+=this.tablerow({text:r});let n="";for(let s=0;s<e.rows.length;s++){let a=e.rows[s];r="";for(let i=0;i<a.length;i++)r+=this.tablecell(a[i]);n+=this.tablerow({text:r})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
|
|
893
893
|
<thead>
|
|
894
894
|
`+o+`</thead>
|
|
895
895
|
`+n+`</table>
|
|
896
896
|
`}tablerow({text:e}){return`<tr>
|
|
897
897
|
${e}</tr>
|
|
898
898
|
`}tablecell(e){let o=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+o+`</${r}>
|
|
899
|
-
`}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>${
|
|
900
|
-
Please report this to https://github.com/markedjs/marked.`,t){let r="<p>An error occurred:</p><pre>"+
|
|
899
|
+
`}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>${z(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:o,tokens:r}){let n=this.parser.parseInline(r),s=Xe(e);if(s===null)return n;e=s;let a='<a href="'+e+'"';return o&&(a+=' title="'+z(o)+'"'),a+=">"+n+"</a>",a}image({href:e,title:o,text:r,tokens:n}){n&&(r=this.parser.parseInline(n,this.parser.textRenderer));let s=Xe(e);if(s===null)return z(r);e=s;let a=`<img src="${e}" alt="${z(r)}"`;return o&&(a+=` title="${z(o)}"`),a+=">",a}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:z(e.text)}},yt=class{static{m(this,"M")}static{v(this,"L")}strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}checkbox({raw:t}){return t}},L=class ot{static{m(this,"O")}static{v(this,"l")}options;renderer;textRenderer;constructor(e){this.options=e||G,this.options.renderer=this.options.renderer||new Te,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new yt}static parse(e,o){return new ot(o).parse(e)}static parseInline(e,o){return new ot(o).parseInline(e)}parse(e){this.renderer.parser=this;let o="";for(let r=0;r<e.length;r++){let n=e[r];if(this.options.extensions?.renderers?.[n.type]){let a=n,i=this.options.extensions.renderers[a.type].call({parser:this},a);if(i!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(a.type)){o+=i||"";continue}}let s=n;switch(s.type){case"space":{o+=this.renderer.space(s);break}case"hr":{o+=this.renderer.hr(s);break}case"heading":{o+=this.renderer.heading(s);break}case"code":{o+=this.renderer.code(s);break}case"table":{o+=this.renderer.table(s);break}case"blockquote":{o+=this.renderer.blockquote(s);break}case"list":{o+=this.renderer.list(s);break}case"checkbox":{o+=this.renderer.checkbox(s);break}case"html":{o+=this.renderer.html(s);break}case"def":{o+=this.renderer.def(s);break}case"paragraph":{o+=this.renderer.paragraph(s);break}case"text":{o+=this.renderer.text(s);break}default:{let a='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return o}parseInline(e,o=this.renderer){this.renderer.parser=this;let r="";for(let n=0;n<e.length;n++){let s=e[n];if(this.options.extensions?.renderers?.[s.type]){let i=this.options.extensions.renderers[s.type].call({parser:this},s);if(i!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){r+=i||"";continue}}let a=s;switch(a.type){case"escape":{r+=o.text(a);break}case"html":{r+=o.html(a);break}case"link":{r+=o.link(a);break}case"image":{r+=o.image(a);break}case"checkbox":{r+=o.checkbox(a);break}case"strong":{r+=o.strong(a);break}case"em":{r+=o.em(a);break}case"codespan":{r+=o.codespan(a);break}case"br":{r+=o.br(a);break}case"del":{r+=o.del(a);break}case"text":{r+=o.text(a);break}default:{let i='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(i),"";throw new Error(i)}}}return r}},ae=class{static{m(this,"A")}static{v(this,"P")}options;block;constructor(e){this.options=e||G}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(e=this.block){return e?B.lex:B.lexInline}provideParser(e=this.block){return e?L.parse:L.parseInline}},qs=class{static{m(this,"xe")}static{v(this,"D")}defaults=_e();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=L;Renderer=Te;TextRenderer=yt;Lexer=B;Tokenizer=Ae;Hooks=ae;constructor(...t){this.use(...t)}walkTokens(t,e){let o=[];for(let r of t)switch(o=o.concat(e.call(this,r)),r.type){case"table":{let n=r;for(let s of n.header)o=o.concat(this.walkTokens(s.tokens,e));for(let s of n.rows)for(let a of s)o=o.concat(this.walkTokens(a.tokens,e));break}case"list":{let n=r;o=o.concat(this.walkTokens(n.items,e));break}default:{let n=r;this.defaults.extensions?.childTokens?.[n.type]?this.defaults.extensions.childTokens[n.type].forEach(s=>{let a=n[s].flat(1/0);o=o.concat(this.walkTokens(a,e))}):n.tokens&&(o=o.concat(this.walkTokens(n.tokens,e)))}}return o}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(o=>{let r={...o};if(r.async=this.defaults.async||r.async||!1,o.extensions&&(o.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(...a){let i=n.renderer.apply(this,a);return i===!1&&(i=s.apply(this,a)),i}: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)}),r.extensions=e),o.renderer){let n=this.defaults.renderer||new Te(this.defaults);for(let s in o.renderer){if(!(s in n))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let a=s,i=o.renderer[a],c=n[a];n[a]=(...l)=>{let d=i.apply(n,l);return d===!1&&(d=c.apply(n,l)),d||""}}r.renderer=n}if(o.tokenizer){let n=this.defaults.tokenizer||new Ae(this.defaults);for(let s in o.tokenizer){if(!(s in n))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let a=s,i=o.tokenizer[a],c=n[a];n[a]=(...l)=>{let d=i.apply(n,l);return d===!1&&(d=c.apply(n,l)),d}}r.tokenizer=n}if(o.hooks){let n=this.defaults.hooks||new ae;for(let s in o.hooks){if(!(s in n))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let a=s,i=o.hooks[a],c=n[a];ae.passThroughHooks.has(s)?n[a]=l=>{if(this.defaults.async&&ae.passThroughHooksRespectAsync.has(s))return(async()=>{let p=await i.call(n,l);return c.call(n,p)})();let d=i.call(n,l);return c.call(n,d)}:n[a]=(...l)=>{if(this.defaults.async)return(async()=>{let p=await i.apply(n,l);return p===!1&&(p=await c.apply(n,l)),p})();let d=i.apply(n,l);return d===!1&&(d=c.apply(n,l)),d}}r.hooks=n}if(o.walkTokens){let n=this.defaults.walkTokens,s=o.walkTokens;r.walkTokens=function(a){let i=[];return i.push(s.call(this,a)),n&&(i=i.concat(n.call(this,a))),i}}this.defaults={...this.defaults,...r}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return B.lex(t,e??this.defaults)}parser(t,e){return L.parse(t,e??this.defaults)}parseMarkdown(t){return(e,o)=>{let r={...o},n={...this.defaults,...r},s=this.onError(!!n.silent,!!n.async);if(this.defaults.async===!0&&r.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 a=n.hooks?await n.hooks.preprocess(e):e,i=await(n.hooks?await n.hooks.provideLexer(t):t?B.lex:B.lexInline)(a,n),c=n.hooks?await n.hooks.processAllTokens(i):i;n.walkTokens&&await Promise.all(this.walkTokens(c,n.walkTokens));let l=await(n.hooks?await n.hooks.provideParser(t):t?L.parse:L.parseInline)(c,n);return n.hooks?await n.hooks.postprocess(l):l})().catch(s);try{n.hooks&&(e=n.hooks.preprocess(e));let a=(n.hooks?n.hooks.provideLexer(t):t?B.lex:B.lexInline)(e,n);n.hooks&&(a=n.hooks.processAllTokens(a)),n.walkTokens&&this.walkTokens(a,n.walkTokens);let i=(n.hooks?n.hooks.provideParser(t):t?L.parse:L.parseInline)(a,n);return n.hooks&&(i=n.hooks.postprocess(i)),i}catch(a){return s(a)}}}onError(t,e){return o=>{if(o.message+=`
|
|
900
|
+
Please report this to https://github.com/markedjs/marked.`,t){let r="<p>An error occurred:</p><pre>"+z(o.message+"",!0)+"</pre>";return e?Promise.resolve(r):r}if(e)return Promise.reject(o);throw o}}},Z=new qs;function k(t,e){return Z.parse(t,e)}m(k,"d");v(k,"g");k.options=k.setOptions=function(t){return Z.setOptions(t),k.defaults=Z.defaults,gt(k.defaults),k};k.getDefaults=_e;k.defaults=G;k.use=function(...t){return Z.use(...t),k.defaults=Z.defaults,gt(k.defaults),k};k.walkTokens=function(t,e){return Z.walkTokens(t,e)};k.parseInline=Z.parseInline;k.Parser=L;k.parser=L.parse;k.Renderer=Te;k.TextRenderer=yt;k.Lexer=B;k.lexer=B.lex;k.Tokenizer=Ae;k.Hooks=ae;k.parse=k;var Gt=k,Ws=Object.defineProperty,Hs=m((t,e)=>Ws(t,"name",{value:e,configurable:!0}),"l$2");const Us=Hs(async(t,e=[])=>{let o;const r=[...e,Qt,Xt],n=Kt(t,{frameLimit:1})[0];for(const s of r.toSorted((a,i)=>i.priority-a.priority)){if(o)break;const{handle:a,name:i}=s;if(process.env.DEBUG&&console.debug(`Running solution finder: ${i}`),typeof a=="function")try{o=await a(t,{file:n?.file??"",language:ue(n?.file??""),line:n?.line??0,snippet:n?.file?await ge(n.file):""})}catch{continue}}return o?{html:`<div id="ono-solution-wrapper" class="relative w-full transition-all duration-300 ease-in-out overflow-visible">
|
|
901
901
|
<button id="ono-solution-button" type="button" aria-label="Toggle solutions" aria-controls="ono-solution-content" aria-expanded="true" title="Toggle solution details" class="bg-[var(--ono-success-bg)] text-[var(--ono-text)] rounded-[var(--ono-radius-md)] p-2 absolute top-2 right-2 z-10 h-9 w-8 cursor-pointer shadow-[var(--ono-elevation-1)]">
|
|
902
|
-
<span id="ono-solution-icon" class="dui" style="-webkit-mask-image: url('${
|
|
902
|
+
<span id="ono-solution-icon" class="dui" style="-webkit-mask-image: url('${He}'); mask-image: url('${He}')"></span>
|
|
903
903
|
</button>
|
|
904
904
|
<div id="ono-solution-content" role="region" aria-label="Suggested solutions" tabindex="-1" class="bg-[var(--ono-success-bg)] rounded-r-[var(--ono-radius-lg)] shadow-[var(--ono-elevation-1)] w-full h-full overflow-hidden transition-[max-height,opacity] duration-150 ease-in-out opacity-100">
|
|
905
905
|
<div class="p-6 prose prose-sm prose-headings:text-white prose-ul:list-none prose-hr:my-6 prose-hr:border-[var(--ono-success-border)] max-w-full relative text-[var(--ono-on-accent)]" aria-live="polite">
|
|
906
|
-
${await(async()=>{if(!o.header)return"<h2 class='text-[var(--ono-on-accent)]'>A possible solution to this error</h2>";const
|
|
907
|
-
${await(async()=>{const
|
|
906
|
+
${await(async()=>{if(!o.header)return"<h2 class='text-[var(--ono-on-accent)]'>A possible solution to this error</h2>";const s=await Gt(o.header);return Ue(s)})()}
|
|
907
|
+
${await(async()=>{const s=await Gt(o.body);return Ue(s)})()}
|
|
908
908
|
</div>
|
|
909
909
|
</div>
|
|
910
910
|
</div>`,script:`(window.subscribeToDOMContentLoaded || function (fn) {
|
|
@@ -931,7 +931,7 @@ Please report this to https://github.com/markedjs/marked.`,t){let r="<p>An error
|
|
|
931
931
|
|
|
932
932
|
// Icon management
|
|
933
933
|
const setIcon = (isOpen) => {
|
|
934
|
-
const iconUrl = isOpen ? '${
|
|
934
|
+
const iconUrl = isOpen ? '${He}' : '${Ke}';
|
|
935
935
|
icon.style.webkitMaskImage = \`url(\${iconUrl})\`;
|
|
936
936
|
icon.style.maskImage = \`url(\${iconUrl})\`;
|
|
937
937
|
};
|
|
@@ -1013,7 +1013,7 @@ Please report this to https://github.com/markedjs/marked.`,t){let r="<p>An error
|
|
|
1013
1013
|
// Add event listeners
|
|
1014
1014
|
button.addEventListener('click', handleClick);
|
|
1015
1015
|
button.addEventListener('keydown', handleKeydown);
|
|
1016
|
-
});`}:{html:"",script:""}},"solutions");var
|
|
1016
|
+
});`}:{html:"",script:""}},"solutions");var Zs=Object.defineProperty,Gs=m((t,e)=>Zs(t,"name",{value:e,configurable:!0}),"n");const Vs=Gs(async t=>{const e=S(t.name),o=S(t.message),r=E(`${t.name}: ${t.message}`),n=rt(t,{frameLimit:1})[0],s=n?.file??"",a=n?.line??0,i=s?await ge(s):"",c=i?nt(i,{start:{column:n?.column,line:a}},{linesAbove:9,linesBelow:10,showGutter:!0}):"",l=Jt({applicationType:void 0,error:t,file:{file:s,language:ue(s),line:a,snippet:c}}),d=bo(),p=yo({label:"Copy error title",secondaryLabel:"Copy fix prompt",secondaryText:l,targetId:"clipboard-sticky-error-title"});return{html:`<div id="error-card-sticky-header" class="fixed invisible container px-6 py-4 -top-40 z-10 rounded-[var(--ono-radius-lg)] transition-all duration-300 shadow-[var(--ono-elevation-1)] bg-[var(--ono-surface)]">
|
|
1017
1017
|
<input type="hidden" id="clipboard-sticky-error-title" value="${r}">
|
|
1018
1018
|
<div class="flex items-center gap-2">
|
|
1019
1019
|
<h1 class="text-sm font-semibold py-1 px-2 text-[var(--ono-chip-text)] bg-[var(--ono-chip-bg)] rounded-[var(--ono-radius-md)] shadow-[var(--ono-elevation-1)]" aria-label="Error name">${e}</h1>
|
|
@@ -1061,7 +1061,7 @@ Please report this to https://github.com/markedjs/marked.`,t){let r="<p>An error
|
|
|
1061
1061
|
}
|
|
1062
1062
|
} catch (_) {}
|
|
1063
1063
|
});
|
|
1064
|
-
})();`}},"stickyHeader");var
|
|
1064
|
+
})();`}},"stickyHeader");var Ks=Object.defineProperty,Qs=m((t,e)=>Ks(t,"name",{value:e,configurable:!0}),"l$1");const Xs=Qs(async({error:t,runtimeName:e,solutionFinders:o,version:r})=>{let n=`${e?.toUpperCase()??""} ${r??""}`;n.includes("NODE")&&(n=`<a href="https://nodejs.org/dist/latest-${r?.split(".")[0]??""}.x/docs/api/" class="text-blue-500 hover:underline inline-flex items-center text-sm" target="_blank" rel="noopener noreferrer">${n.replace("NODE","Node.js")}<span class="dui ml-1" style="-webkit-mask-image: url('${Wt}'); mask-image: url('${Wt}')" title="Open Node.js documentation"></span></a>`);const{html:s,script:a}=await Us(t,o),{html:i,script:c}=await Vs(t),l=S(t.name),d=S(t.message),p=E(`${t.name}: ${t.message}`),h=rt(t,{frameLimit:1})[0],u=h?.file??"",f=h?.line??0,g=u?await ge(u):"",w=g?nt(g,{start:{column:h?.column,line:f}},{linesAbove:9,linesBelow:10,showGutter:!0}):"",y=Jt({applicationType:void 0,error:t,file:{file:u,language:ue(u),line:f,snippet:w}}),I=yo({label:"Copy error title",secondaryLabel:"Copy fix prompt",secondaryText:y,targetId:"clipboard-error-title"});return{html:`<section id="error-card" class="container rounded-[var(--ono-radius-lg)] shadow-[var(--ono-elevation-2)] bg-[var(--ono-surface)]">
|
|
1065
1065
|
<input type="hidden" id="clipboard-error-title" value="${p}">
|
|
1066
1066
|
<div class="flex flex-row">
|
|
1067
1067
|
<div class="flex flex-col gap-3 grow min-w-6/12 w-full p-6 pt-5">
|
|
@@ -1069,7 +1069,7 @@ Please report this to https://github.com/markedjs/marked.`,t){let r="<p>An error
|
|
|
1069
1069
|
<h1 class="text-lg font-semibold py-1 px-2 text-[var(--ono-chip-text)] bg-[var(--ono-chip-bg)] rounded-[var(--ono-radius-md)] shadow-[var(--ono-elevation-1)]">
|
|
1070
1070
|
${l}
|
|
1071
1071
|
</h1>
|
|
1072
|
-
${
|
|
1072
|
+
${I.html}
|
|
1073
1073
|
<div class="grow"></div>
|
|
1074
1074
|
<div class="text-sm font-semibold py-1 px-2 text-[var(--ono-text-muted)] rounded-[var(--ono-radius-md)] shadow-[var(--ono-elevation-1)]">
|
|
1075
1075
|
${n}
|
|
@@ -1079,17 +1079,17 @@ Please report this to https://github.com/markedjs/marked.`,t){let r="<p>An error
|
|
|
1079
1079
|
${d}
|
|
1080
1080
|
</div>
|
|
1081
1081
|
</div>
|
|
1082
|
-
${
|
|
1082
|
+
${s}
|
|
1083
1083
|
</div>
|
|
1084
1084
|
</section>
|
|
1085
|
-
${
|
|
1085
|
+
${i}`,scripts:[a,c]}},"errorCard");var Js=Object.defineProperty,Ys=m((t,e)=>Js(t,"name",{value:e,configurable:!0}),"o");const ea=Ys(t=>{const e=ko({message:"The orginal stack trace from the main error."}),o=S(t);return`<section>
|
|
1086
1086
|
<h3 class="text-xl font-bold inline-flex justify-center items-center text-[var(--ono-text)]">Stack Trace</h3>
|
|
1087
1087
|
${e}
|
|
1088
1088
|
<div class="container rounded-[var(--ono-radius-lg)] shadow-[var(--ono-elevation-1)] my-6 bg-[var(--ono-surface)]">
|
|
1089
1089
|
<main id="raw-stack-trace" class="p-6 prose prose-sm max-w-full text-[var(--ono-text)]">${o}</main>
|
|
1090
1090
|
</div>
|
|
1091
|
-
</section>`},"rawStackTrace");var
|
|
1092
|
-
`),"buildScriptContent"),
|
|
1091
|
+
</section>`},"rawStackTrace");var ta=Object.defineProperty,fe=m((t,e)=>ta(t,"name",{value:e,configurable:!0}),"s");const oa=fe(t=>{if(typeof t!="object"||t===null)return!1;const e=t;return typeof e.name=="string"&&typeof e.message=="string"&&(e.stack===void 0||typeof e.stack=="string")},"isErrorLike"),ra=fe(t=>{if(t.length===0)throw new TypeError("No errors found in the error stack");const e=t[0];if(e instanceof Error)return e;if(oa(e)){const o=new Error(e.message);return o.name=e.name,typeof e.stack=="string"&&(o.stack=e.stack),o}throw new TypeError("Main cause is not a valid Error object")},"extractMainError"),na=fe((t,e,o,r)=>['<div class="flex flex-col gap-6">',t,e,o,r,"</div>"].join(""),"buildHtmlContent"),sa=fe((t,e,o)=>[t,e,...o].filter(Boolean).join(`
|
|
1092
|
+
`),"buildScriptContent"),aa=fe(async(t,e=[],o={})=>{if(!Array.isArray(e))throw new TypeError("solutionFinders must be an array");const r=qo(t),n=ra(r),s=r.length>1?r.slice(1):[],[a,i,c]=await Promise.all([Xs({error:n,runtimeName:Mn,solutionFinders:e,version:Qo()}),xo(n,{openInEditorUrl:o.openInEditorUrl}),es(s,o)]),{html:l,scripts:d}=a,{html:p,script:h}=i,{html:u,script:f}=c,g=na(l,p,u,ea(n.stack)),w=sa(h,f,d);return{code:{html:g,script:w},defaultSelected:!0,id:"stack",name:"Stack"}},"stack");var ia=Object.defineProperty,la=m((t,e)=>ia(t,"name",{value:e,configurable:!0}),"f");const ca=`
|
|
1093
1093
|
// DOM utility functions
|
|
1094
1094
|
function ready(fn) {
|
|
1095
1095
|
if (document.readyState !== 'loading') {
|
|
@@ -1122,7 +1122,7 @@ function removeClass(el, className) {
|
|
|
1122
1122
|
function toggleClass(el, className) {
|
|
1123
1123
|
el.classList.toggle(className);
|
|
1124
1124
|
}
|
|
1125
|
-
`,
|
|
1125
|
+
`,da=`
|
|
1126
1126
|
// Enhanced clipboard and dropdown functionality
|
|
1127
1127
|
|
|
1128
1128
|
// Clipboard functionality
|
|
@@ -1273,7 +1273,7 @@ ready(function() {
|
|
|
1273
1273
|
console.log('Copy dropdown: Script initialized and ready');
|
|
1274
1274
|
// Dropdown and clipboard initialization complete
|
|
1275
1275
|
});
|
|
1276
|
-
`,
|
|
1276
|
+
`,pa=`
|
|
1277
1277
|
// Shortcuts modal functionality
|
|
1278
1278
|
|
|
1279
1279
|
// Make modal functions globally available immediately
|
|
@@ -1331,7 +1331,7 @@ document.addEventListener('click', function(e) {
|
|
|
1331
1331
|
ready(function() {
|
|
1332
1332
|
// Shortcuts modal initialization complete
|
|
1333
1333
|
});
|
|
1334
|
-
`,
|
|
1334
|
+
`,ha=`
|
|
1335
1335
|
// Clipboard functionality for copy buttons
|
|
1336
1336
|
function copyToClipboard(text, successCallback) {
|
|
1337
1337
|
if (!text) {
|
|
@@ -1375,4 +1375,4 @@ document.addEventListener('click', function(e) {
|
|
|
1375
1375
|
}
|
|
1376
1376
|
}
|
|
1377
1377
|
});
|
|
1378
|
-
`,
|
|
1378
|
+
`,ua=la(async(t,e=[],o={})=>{if(!Array.isArray(e))throw new TypeError("solutionFinders must be an array");const r=Vo(o),{code:{html:n,script:s},id:a,name:i}=await aa(t,e,r),c=Array.isArray(r.content)?r.content:[],l=c.some(g=>g.defaultSelected),d=[{id:a,name:i,selected:!l}];c.forEach(g=>{d.push({id:g.id,name:g.name,selected:!!g.defaultSelected})});const p=An(d),h=xn(r),u=['<div class="flex flex-row gap-6 w-full mb-6">',p.html,h.html,"</div>"],f=E(a);return u.push(`<div id="ono-section-${f}" class="${l?"hidden relative":"relative"}" role="tabpanel" aria-labelledby="ono-tab-${f}">${n}</div>`),c.forEach(g=>{const w=E(g.id),y=g.defaultSelected?"":" hidden";u.push(`<div id="ono-section-${w}" class="${y} relative" role="tabpanel" aria-labelledby="ono-tab-${w}">${g.code.html}</div>`)}),Bn({content:u.join("").trim(),cspNonce:o.cspNonce,css:Tn,description:"Error",error:t,scripts:[ca,da,pa,ha,p.script,h.script,s,...c.map(g=>g.code.script??"")].filter(Boolean),theme:o.theme,title:"Error"})},"template");var ga=Object.defineProperty,jo=m((t,e)=>ga(t,"name",{value:e,configurable:!0}),"e");const Vt=jo(t=>t instanceof Error?t:new Error(String(t)),"ensureError");class Aa{static{m(this,"Ono")}static{jo(this,"Ono")}async toHTML(e,o){const r=Vt(e),{solutionFinders:n=[],...s}=o??{};return await ua(r,n,s)}async toANSI(e,o={}){const r=Vt(e);return wo(r,o)}}export{Aa as Ono};
|