codelight.js 1.3.1 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,14 @@
1
- /*! codelight.js 1.3.1 | MIT License | https://github.com/codelightjs/codelight.js */
2
- "use strict";var codelight=(()=>{var $=Object.defineProperty;var rt=Object.getOwnPropertyDescriptor;var ot=Object.getOwnPropertyNames;var at=Object.prototype.hasOwnProperty;var st=(t,e,o)=>e in t?$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o;var it=(t,e)=>{for(var o in e)$(t,o,{get:e[o],enumerable:!0})},lt=(t,e,o,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of ot(e))!at.call(t,a)&&a!==o&&$(t,a,{get:()=>e[a],enumerable:!(r=rt(e,a))||r.enumerable});return t};var ct=t=>lt($({},"__esModule",{value:!0}),t);var ge=(t,e,o)=>st(t,typeof e!="symbol"?e+"":e,o);var Nt={};it(Nt,{addCopyButton:()=>A,createMarkup:()=>N,createStream:()=>M,default:()=>Ot,defineLanguage:()=>i,escapeHtml:()=>z,getLanguage:()=>R,highlight:()=>j,highlightAll:()=>ie,highlightElement:()=>H,injectTheme:()=>pe,listLanguages:()=>ae,mount:()=>le,registerLanguage:()=>oe,renderLine:()=>C,splitFences:()=>ce,themeCss:()=>B,tokenize:()=>W});async function pt(t,e=document){try{await e.defaultView.navigator.clipboard.writeText(t)}catch{let o=e.createElement("textarea");o.value=t,o.setAttribute("readonly",""),o.style.cssText="position:fixed;top:-1000px;opacity:0",e.body.append(o),o.select(),e.execCommand("copy"),o.remove()}}function A(t,e={}){let o=t.parentElement;if(!o||[...o.children].some(l=>l.classList.contains("cl-copy")))return null;let r=t.ownerDocument,a=e.label??"Copy",n=r.createElement("button");n.type="button",n.className="cl-copy",n.textContent=a,n.setAttribute("aria-label","Copy code");let c;return n.addEventListener("click",async()=>{await pt(t.textContent??"",r),n.textContent=e.copiedLabel??"Copied",clearTimeout(c),c=setTimeout(()=>n.textContent=a,1500)}),o.classList.add("cl-has-copy"),o.append(n),n}var O=class{constructor(){ge(this,"tokens",[])}add(e,o){if(!o)return;let r=this.tokens[this.tokens.length-1];r&&r.type===e?r.text+=o:this.tokens.push(e?{type:e,text:o}:{text:o})}},T=(t,e)=>new Set((t??"").split(/\s+/).filter(Boolean).map(o=>e?o.toLowerCase():o)),he=t=>new RegExp(t.source,t.flags.replace(/[gy]/g,"")+"y"),ye=/(?:0[xX][\da-fA-F_]+|0[bB][01_]+|0[oO][0-7_]+|(?:\d[\d_]*(?:\.\d[\d_]*)?|\.\d[\d_]*)(?:[eE][+-]?\d+)?)\w*/y,ut=/[A-Za-z_$][\w$]*/,be=/\s+/y,xe=/[+\-*/%=<>!&|^~?:]+/y,we=/\s*\(/y,ke=/<<(-?)\s*(['"]?)([A-Za-z_]\w*)\2/y,mt="()[]{},;.",dt={"}":"{",")":"(","]":"["};function i(t){let e=t.caseInsensitive??!1,o=T(t.keywords,e),r=T(t.constants,e),a=T(t.types,e),n=T(t.variables,e),c=T(t.builtins,e),l=(t.rules??[]).map(s=>({match:he(s.match),type:s.type})),f=[...t.strings??[]].sort((s,S)=>S.open.length-s.open.length).map(s=>({open:s.open,close:s.close??s.open,escape:s.escape??!0,multiline:s.multiline??!1,type:s.type??"string",interpolate:s.interpolate})),L=he(t.identifier??ut),E=t.calls??!0,v=t.numbers??!0,y=t.operators??!0;function w(s,S,d){let m=e?s.toLowerCase():s;if(o.has(m))return"keyword";if(r.has(m))return"constant";if(a.has(m))return"type";if(n.has(m))return"variable";if(c.has(m)||E&&(we.lastIndex=d,we.test(S)))return"function";if(t.classNames&&/^[A-Z]/.test(s)&&/[a-z]/.test(s))return"type"}return{tokenizeLine(s,S){let d=new O,m=S?[...S]:[],ue=()=>m[m.length-1],G,u=0,g,Q=ue();if(Q?.t==="heredoc")return(Q.dash?s.replace(/^\t+/,""):s)===Q.end?(d.add("meta",s),m.pop()):d.add("string",s),{tokens:d.tokens,state:m.length?m:null};e:for(;u<s.length;){let b=ue();if(b?.t==="comment"){let p=s.indexOf(b.close,u);if(p<0){d.add("comment",s.slice(u));break}d.add("comment",s.slice(u,p+b.close.length)),u=p+b.close.length,m.pop();continue}if(b?.t==="string"){let p=b.s;for(let x=u;x<s.length;x++){if(p.interpolate&&s.startsWith(p.interpolate[0],x)){if(p.interpolate[0]==="{"&&s[x+1]==="{"){x++;continue}d.add(p.type,s.slice(u,x)),d.add("punctuation",p.interpolate[0]),u=x+p.interpolate[0].length;let fe=p.interpolate[1];m.push({t:"code",close:fe,open:dt[fe]??"",depth:0});continue e}if(p.escape&&s[x]==="\\"){x++;continue}if(s.startsWith(p.close,x)){d.add(p.type,s.slice(u,x+p.close.length)),u=x+p.close.length,m.pop();continue e}}d.add(p.type,s.slice(u));break}if(b?.t==="code"){if(b.depth===0&&s.startsWith(b.close,u)){d.add("punctuation",b.close),u+=b.close.length,m.pop();continue}let p=s[u];if(p===b.open||b.depth>0&&p===b.close){m[m.length-1]={...b,depth:b.depth+(p===b.open?1:-1)},d.add("punctuation",p),u++;continue}}for(let p of l){p.match.lastIndex=u;let x=p.match.exec(s);if(x&&x[0]){d.add(p.type,x[0]),u+=x[0].length;continue e}}for(let[p,x]of t.blockComment??[])if(s.startsWith(p,u)){d.add("comment",p),u+=p.length,m.push({t:"comment",close:x});continue e}for(let p of t.lineComment??[])if(s.startsWith(p,u)){d.add("comment",s.slice(u));break e}for(let p of f)if(s.startsWith(p.open,u)){d.add(p.type,p.open),u+=p.open.length,m.push({t:"string",s:p});continue e}if(t.heredoc&&(g=(ke.lastIndex=u,ke.exec(s)))){d.add("operator",`<<${g[1]}`),d.add("meta",g[0].slice(2+g[1].length)),G={t:"heredoc",end:g[3],dash:!!g[1]},u+=g[0].length;continue}if(ye.lastIndex=u,v&&(g=ye.exec(s))){d.add("number",g[0]),u+=g[0].length;continue}if(L.lastIndex=u,(g=L.exec(s))&&g[0]){d.add(w(g[0],s,u+g[0].length),g[0]),u+=g[0].length;continue}if(be.lastIndex=u,g=be.exec(s)){d.add(void 0,g[0]),u+=g[0].length;continue}if(xe.lastIndex=u,g=xe.exec(s)){d.add(y?"operator":void 0,g[0]),u+=g[0].length;continue}let de=s[u];d.add(mt.includes(de)?"punctuation":void 0,de),u++}let me=m.findIndex(b=>b.t==="string"&&!b.s.multiline);return me>=0&&(m.length=me),G&&m.push(G),{tokens:d.tokens,state:m.length?m:null}}}}var D={tokenizeLine:t=>({tokens:t?[{text:t}]:[],state:null})};function Z(t){let e=new Set;if(t==null)return e;if(typeof t=="number")return e.add(t);if(Array.isArray(t))return new Set(t);for(let o of t.split(/[\s,]+/)){let r=/^(\d+)(?:-(\d+))?$/.exec(o);if(!r)continue;let a=Number(r[1]),n=Number(r[2]??r[1]);for(let c=Math.min(a,n);c<=Math.max(a,n)&&c-a<1e5;c++)e.add(c)}return e}var Le=t=>!!t&&(!!t.lineNumbers||t.highlightLines!=null);function Y(t,e,o){return"cl-line"+(e?" cl-ln":"")+(o.has(t)?" cl-mark":"")}function ve(t,e,o,r){return`<span class="${Y(e,o,r)}" data-line="${e}">${t}</span>`}var Se=i({strings:[{open:'"',multiline:!0},{open:"'",escape:!1,multiline:!0}],keywords:"if then else elif fi for while until do done case esac in function select return exit break continue local export readonly declare unset source alias time",builtins:"echo cd printf read set shift test eval exec trap pwd ls cat grep sed awk find mkdir rm cp mv chmod chown touch curl wget tar sudo git npm npx pnpm yarn bun node deno python python3 pip pip3 docker kubectl ssh make brew apt apt-get",rules:[{match:/(?<=^|\s)#.*/,type:"comment"},{match:/\$(?:\{[^}]*\}|[A-Za-z_]\w*|[\d@#?$!*-])/,type:"variable"},{match:/(?<=^\s*(?:(?:export|local|declare|readonly)\s+)?)[A-Za-z_]\w*(?==)/,type:"variable"},{match:/(?<=\s)--?[A-Za-z][\w-]*/,type:"attr"}],identifier:/[A-Za-z_][\w-]*/,calls:!1,heredoc:!0});var h={lineComment:["//"],blockComment:[["/*","*/"]]},k=[{open:'"'},{open:"'"}];var K="auto break case const continue default do else enum extern for goto if inline register restrict return sizeof static struct switch typedef union volatile while",V="char double float int long short signed unsigned void bool size_t ssize_t int8_t int16_t int32_t int64_t uint8_t uint16_t uint32_t uint64_t FILE",X=[{match:/(?<=^\s*#\s*include\s*)<[^>]*>/,type:"string"},{match:/(?<=^\s*)#\s*[A-Za-z]+/,type:"meta"}],Ee=i({...h,strings:k,keywords:K,types:V,constants:"NULL true false",rules:X});var Ce=i({...h,strings:k,keywords:K+" class namespace template typename public private protected virtual override final new delete this try catch throw using operator friend explicit constexpr consteval noexcept auto decltype static_cast dynamic_cast reinterpret_cast const_cast co_await co_return co_yield concept requires mutable",types:V+" string vector map unordered_map set array unique_ptr shared_ptr optional",constants:"nullptr NULL true false",rules:X,classNames:!0});var J=["{","}"],_e=i({...h,strings:[{open:'$@"',close:'"',escape:!1,multiline:!0,interpolate:J},{open:'@$"',close:'"',escape:!1,multiline:!0,interpolate:J},{open:'@"',close:'"',escape:!1,multiline:!0},{open:'$"',close:'"',interpolate:J},...k],keywords:"abstract as base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in interface internal is lock namespace new operator out override params private protected public readonly ref return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual volatile while async await var record get set init yield where when",types:"bool byte char decimal double float int long object sbyte short string uint ulong ushort void dynamic",constants:"true false null",rules:[{match:/(?<=^\s*)\[[A-Z]\w*(?:\([^)]*\))?\]/,type:"meta"}],classNames:!0});var I=i({blockComment:[["/*","*/"]],strings:k,rules:[{match:/@[\w-]+/,type:"keyword"},{match:/#[\da-fA-F]{3,8}(?![\w-])/,type:"number"},{match:/(?:--|-?[A-Za-z])[\w-]*(?=\s*:(?!:)[^{};]*(?:[;})]|$))/,type:"property"},{match:/[.#][A-Za-z_-][\w-]*/,type:"type"},{match:/::?[A-Za-z-]+/,type:"attr"},{match:/!\s*important/,type:"keyword"}],identifier:/-?[A-Za-z_][\w-]*/});var ft={tokenizeLine(t){if(!t)return{tokens:[],state:null};let e=t.startsWith("+++")||t.startsWith("---")||t.startsWith("@@")||t.startsWith("diff ")||t.startsWith("index ")?"meta":t[0]==="+"?"inserted":t[0]==="-"?"deleted":void 0;return{tokens:[e?{type:e,text:t}:{text:t}],state:null}}},Ae=ft;var gt="FROM|RUN|CMD|LABEL|EXPOSE|ENV|ADD|COPY|ENTRYPOINT|VOLUME|USER|WORKDIR|ARG|ONBUILD|STOPSIGNAL|HEALTHCHECK|SHELL|MAINTAINER",Te=i({strings:[{open:'"'},{open:"'",escape:!1}],rules:[{match:/(?<=^\s*)#.*/,type:"comment"},{match:new RegExp(`(?<=^\\s*)(?:${gt})\\b`,"i"),type:"keyword"},{match:/(?<=^\s*FROM\s.*\s)AS(?=\s)/i,type:"keyword"},{match:/\$(?:\{[^}]*\}|[A-Za-z_]\w*)/,type:"variable"},{match:/(?<=\s)--[A-Za-z][\w-]*/,type:"attr"}],identifier:/[A-Za-z_][\w.-]*/,calls:!1});var Oe=i({...h,strings:[{open:'"'},{open:"'"},{open:"`",escape:!1,multiline:!0}],keywords:"break case chan const continue default defer else fallthrough for func go goto if import interface map package range return select struct switch type var",constants:"true false nil iota",types:"string int int8 int16 int32 int64 uint uint8 uint16 uint32 uint64 uintptr float32 float64 complex64 complex128 bool byte rune error any",builtins:"append cap close copy delete len make new panic print println recover"});var Ne=i({lineComment:["#"],strings:[{open:'"""',multiline:!0},{open:'"'}],keywords:"query mutation subscription fragment on type interface union enum input scalar schema extend directive implements repeatable",constants:"true false null",types:"Int Float String Boolean ID",rules:[{match:/\$[A-Za-z_]\w*/,type:"variable"},{match:/@[A-Za-z_]\w*/,type:"meta"},{match:/\.\.\./,type:"operator"},{match:/[A-Za-z_]\w*(?=\s*:)/,type:"property"}],classNames:!0});var Re=i({lineComment:["#","//"],blockComment:[["/*","*/"]],strings:[{open:'"',interpolate:["${","}"]}],constants:"true false null",types:"string number bool list map set object tuple any",rules:[{match:/(?<=^\s*)(?:resource|data|variable|output|module|provider|locals|terraform|moved|import|check)\b/,type:"keyword"},{match:/\b(?:for|in|if|for_each|count|depends_on|lifecycle|dynamic|content)\b(?!\s*=)/,type:"keyword"},{match:/(?<=^\s*)[A-Za-z_][\w-]*(?=\s*=(?!=))/,type:"property"}],identifier:/[A-Za-z_][\w-]*/,heredoc:!0});var ze=i({...h,strings:[{open:'"""',multiline:!0},...k],keywords:"abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while var record sealed permits yield",types:"boolean byte char double float int long short void",constants:"true false null",rules:[{match:/@[A-Za-z_]\w*/,type:"meta"}],classNames:!0});var ee="break case catch class const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield async await of static get set from as",te="true false null undefined NaN Infinity",ne={open:"`",multiline:!0,interpolate:["${","}"]},re={match:/(?<=(?:^|[(=?:,&|{}[>;]|\breturn)\s*)<\/?[A-Za-z][\w.:-]*(?=[\s/>]|$)/,type:"tag"},q={match:/(?<=(?:^|[(,=:[!&|?{;]|\breturn|\btypeof|\bcase)\s*)\/(?![*/\s>])(?:\\.|\[(?:\\.|[^\]\\])*\]|[^\\/[])+\/[dgimsuvy]*/,type:"regex"},P={match:/@[A-Za-z_$][\w$.]*/,type:"meta"},U=i({...h,strings:[...k,ne],keywords:ee,constants:te,rules:[re,q,P],classNames:!0});var je=i({...h,strings:[{open:'"'}],constants:"true false null",rules:[{match:/"(?:[^"\\]|\\.)*"(?=\s*:)/,type:"property"}],calls:!1});var Me=["${","}"],$e=i({...h,strings:[{open:'"""',multiline:!0,escape:!1,interpolate:Me},{open:'"',interpolate:Me},{open:"'"}],keywords:"package import class interface object fun val var if else when for while do return break continue throw try catch finally is in as typealias this super data sealed enum open abstract override private protected public internal companion lateinit suspend inline reified by init get set where out vararg const operator infix annotation",constants:"true false null",types:"Int Long Short Byte Double Float Boolean Char String Unit Any Nothing List Map Set",rules:[{match:/@[A-Za-z_]\w*(?::\w+)?/,type:"meta"}],classNames:!0});var De=i({blockComment:[["<!--","-->"]],rules:[{match:/^#{1,6}\s.*/,type:"keyword"},{match:/^ {0,3}(?:`{3,}|~{3,}).*/,type:"meta"},{match:/^\s*>.*/,type:"comment"},{match:/^\s*(?:[-*+]|\d+[.)])(?=\s)/,type:"punctuation"},{match:/^\s*(?:-{3,}|\*{3,}|_{3,})\s*$/,type:"punctuation"},{match:/`[^`]+`/,type:"string"},{match:/!?\[[^\]]*\]\([^)\s]*(?:\s+"[^"]*")?\)/,type:"function"},{match:/\*\*[^*]+\*\*|__[^_]+__/,type:"type"},{match:/(?<![\w*])\*[^*\s][^*]*\*(?!\*)|(?<!\w)_[^_\s][^_]*_(?!\w)/,type:"attr"},{match:/<\/?[A-Za-z][^>]*>/,type:"tag"}],identifier:/[A-Za-z_][\w'-]*/,calls:!1,numbers:!1,operators:!1});var Ze=i({lineComment:["//","#"],blockComment:[["/*","*/"]],strings:[{open:'"',multiline:!0},{open:"'",multiline:!0}],keywords:"abstract and array as break callable case catch class clone const continue declare default do echo else elseif empty enddeclare endfor endforeach endif endswitch endwhile enum extends final finally fn for foreach function global goto if implements include include_once instanceof insteadof interface isset list match namespace new or print private protected public readonly require require_once return static switch throw trait try unset use var while xor yield",constants:"true false null TRUE FALSE NULL",types:"int float string bool void mixed never object iterable",rules:[{match:/<\?(?:php|=)?|\?>/,type:"meta"},{match:/\$[A-Za-z_]\w*/,type:"variable"}],classNames:!0});var Ie=i({lineComment:["#"],blockComment:[["<#","#>"]],strings:[{open:'@"',close:'"@',escape:!1,multiline:!0,interpolate:["$(",")"]},{open:"@'",close:"'@",escape:!1,multiline:!0},{open:'"',escape:!1,multiline:!0,interpolate:["$(",")"]},{open:"'",escape:!1,multiline:!0}],keywords:"if else elseif switch foreach for while do until break continue return function filter param begin process end try catch finally throw trap in exit class enum using",caseInsensitive:!0,rules:[{match:/\$(?:true|false|null)\b/i,type:"constant"},{match:/\$(?:\{[^}]+\}|[\w:]+)/,type:"variable"},{match:/-(?:eq|ne|gt|ge|lt|le|like|notlike|match|notmatch|contains|notcontains|in|notin|and|or|not|xor|replace|split|join|is|isnot|as)\b/i,type:"operator"},{match:/\[[A-Za-z][\w.]*(?:\[\])?\]/,type:"type"},{match:/\b[A-Z][a-z]+-[A-Z]\w+/,type:"function"},{match:/(?<=\s)-[A-Za-z]\w*/,type:"attr"}],identifier:/[A-Za-z_][\w-]*/});var ht=["f","F","rf","rF","Rf","RF","fr","fR","Fr","FR"].flatMap(t=>['"""',"'''",'"',"'"].map(e=>({open:t+e,close:e,escape:!/r/i.test(t),multiline:e.length===3,interpolate:["{","}"]}))),qe=i({lineComment:["#"],strings:[...ht,{open:'"""',multiline:!0},{open:"'''",multiline:!0},...k],keywords:"and as assert async await break class continue def del elif else except finally for from global if import in is lambda nonlocal not or pass raise return try while with yield match case",constants:"True False None",variables:"self cls",types:"int float str bool list dict set tuple bytes object Exception",rules:[{match:/(?<=^\s*)@[\w.]+/,type:"meta"},{match:/[rRbBuU]{1,2}(?=["'])/,type:"string"}],classNames:!0});var Pe=i({lineComment:["#"],strings:[{open:'"',multiline:!0},{open:"'",multiline:!0}],keywords:"alias and begin break case class def defined? do else elsif end ensure for if in module next not or redo rescue retry return self super then undef unless until when while yield require require_relative include extend attr_accessor attr_reader attr_writer private protected public lambda proc",builtins:"puts print p raise",constants:"true false nil",rules:[{match:/@{1,2}[A-Za-z_]\w*|\$[A-Za-z_]\w*/,type:"variable"},{match:/(?<![:\w]):[A-Za-z_]\w*[?!]?/,type:"constant"}],identifier:/[A-Za-z_]\w*[?!]?/,classNames:!0});var Ue=i({...h,strings:[{open:'"',multiline:!0},{open:"'"}],keywords:"as async await break const continue crate dyn else enum extern fn for if impl in let loop match mod move mut pub ref return self Self static struct super trait type unsafe use where while",constants:"true false None",types:"i8 i16 i32 i64 i128 isize u8 u16 u32 u64 u128 usize f32 f64 bool char str",rules:[{match:/#!?\[[^\]]*\]/,type:"meta"},{match:/'[A-Za-z_]\w*(?!')/,type:"keyword"},{match:/[A-Za-z_]\w*!(?=\s*[([{])/,type:"function"}],classNames:!0});var Fe=i({lineComment:["--"],blockComment:[["/*","*/"]],strings:[{open:"'",escape:!1},{open:'"',escape:!1,type:"property"},{open:"`",escape:!1,type:"property"}],keywords:"select from where and or not insert into values update set delete create table alter drop index primary key foreign references join left right inner outer full cross on as group by order having limit offset union all distinct case when then else end is in like ilike between exists default constraint unique check view begin commit rollback transaction returning with recursive if desc asc add column grant revoke cascade truncate database schema explain using natural over partition window",constants:"null true false",types:"int integer bigint smallint serial bigserial varchar char text boolean bool date time timestamp timestamptz interval decimal numeric float real double precision uuid json jsonb blob bytea",caseInsensitive:!0});var We=["\\(",")"],He=i({...h,strings:[{open:'"""',multiline:!0,interpolate:We},{open:'"',interpolate:We}],keywords:"import let var func class struct enum protocol extension if else guard switch case default for in while repeat return break continue fallthrough throw throws rethrows try catch do defer as is init deinit self Self super static private fileprivate internal public open final override mutating nonmutating weak unowned lazy inout where async await some any typealias associatedtype subscript convenience required",constants:"true false nil",types:"Int Double Float String Bool Character Array Dictionary Set Void Optional Result Error",rules:[{match:/@[A-Za-z_]\w*/,type:"meta"},{match:/#(?:available|if|else|elseif|endif|selector|keyPath|warning|error)\b/,type:"meta"}],classNames:!0});var Be=i({lineComment:["#"],strings:[{open:'"""',multiline:!0},{open:"'''",multiline:!0,escape:!1},{open:'"'},{open:"'",escape:!1}],constants:"true false inf nan",rules:[{match:/(?<=^\s*)\[\[?[^\]]*\]\]?/,type:"tag"},{match:/(?<=^\s*)[\w.\-"' ]+?(?=\s*=)/,type:"property"},{match:/\d{4}-\d{2}-\d{2}(?:[T ]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?(?:Z|[+-]\d{2}:\d{2})?)?/,type:"number"}],identifier:/[A-Za-z_][\w-]*/,calls:!1});var yt=" interface type enum implements namespace declare abstract readonly private protected public keyof infer is satisfies asserts module override unique",Ge=t=>({...h,strings:[...k,ne],keywords:ee+yt,types:"string number boolean any unknown never void object symbol bigint",constants:te,rules:t?[re,q,P]:[q,P],classNames:!0}),Qe=i(Ge(!1)),Ye=i(Ge(!0));var bt=/<(\/?)([A-Za-z][\w:.-]*)/y,xt=/&(?:#\d+|#[xX][\da-fA-F]+|\w+);/y,wt=/[^<&]+/y,kt=/[^\s=/>"']+/y,Lt=/[^\s>"']+/y,vt=/\s+/y,_=(t,e,o)=>(t.lastIndex=o,t.exec(e));function N(t={}){return{tokenizeLine(e,o){let r=new O,a=o,n=0,c;for(;n<e.length;){if(!a){if(e.startsWith("<!--",n)){let l=e.indexOf("-->",n+4);if(l<0){r.add("comment",e.slice(n)),a={m:"comment"};break}r.add("comment",e.slice(n,l+3)),n=l+3}else if(e.startsWith("<!",n)||e.startsWith("<?",n)){let l=e.indexOf(">",n);if(l<0){r.add("meta",e.slice(n)),a={m:"meta"};break}r.add("meta",e.slice(n,l+1)),n=l+1}else(c=_(bt,e,n))?(r.add("punctuation",c[1]?"</":"<"),r.add("tag",c[2]),a={m:"tag",name:c[2].toLowerCase(),closing:!!c[1]},n+=c[0].length):(c=_(xt,e,n))?(r.add("constant",c[0]),n+=c[0].length):(c=_(wt,e,n))?(r.add(void 0,c[0]),n+=c[0].length):(r.add(void 0,e[n]),n++);continue}if(a.m==="comment"||a.m==="meta"){let l=a.m==="comment"?"-->":">",f=a.m==="comment"?"comment":"meta",L=e.indexOf(l,n);if(L<0){r.add(f,e.slice(n));break}r.add(f,e.slice(n,L+l.length)),n=L+l.length,a=null;continue}if(a.m==="embed"){let l=e.toLowerCase().indexOf(a.end,n),f=l<0?e.slice(n):e.slice(n,l),L=a.lang.tokenizeLine(f,a.inner);for(let E of L.tokens)r.add(E.type,E.text);if(l<0){a={...a,inner:L.state};break}a=null,n=l;continue}if(a.quote){let l=e.indexOf(a.quote,n);if(l<0){r.add("string",e.slice(n));break}r.add("string",e.slice(n,l+1)),n=l+1,a={...a,quote:void 0,eq:!1}}else if(c=_(vt,e,n))r.add(void 0,c[0]),n+=c[0].length;else if(e.startsWith("/>",n)||e[n]===">"){let l=e[n]===">"?1:2;r.add("punctuation",e.slice(n,n+l)),n+=l;let f=l===1&&!a.closing?t[a.name]:void 0;a=f?{m:"embed",end:`</${a.name}`,lang:f,inner:null}:null}else if(e[n]==="=")r.add("operator","="),n++,a={...a,eq:!0};else if(e[n]==='"'||e[n]==="'"){let l=e[n],f=e.indexOf(l,n+1);if(f<0){r.add("string",e.slice(n)),a={...a,quote:l};break}r.add("string",e.slice(n,f+1)),n=f+1,a={...a,eq:!1}}else a.eq&&(c=_(Lt,e,n))?(r.add("string",c[0]),n+=c[0].length,a={...a,eq:!1}):(c=_(kt,e,n))?(r.add("attr",c[0]),n+=c[0].length):(r.add(void 0,e[n]),n++)}return{tokens:r.tokens,state:a}}}}var Ke=N({script:U,style:I});var Ve=i({strings:[{open:'"'},{open:"'",escape:!1}],constants:"true false null yes no on off ~",caseInsensitive:!0,rules:[{match:/(?<=^|\s)#.*/,type:"comment"},{match:/^(?:---|\.\.\.)(?=\s*$)/,type:"meta"},{match:/[^\s#:'"[\]{},-][^#:]*?(?=:(?:\s|$))|(?<=^\s*-\s+)[^\s#:'"[\]{},][^#:]*?(?=:(?:\s|$))/,type:"property"},{match:/[&*][\w-]+/,type:"variable"},{match:/!!?[\w-]+/,type:"type"}],identifier:/[A-Za-z_][\w-]*/,calls:!1});var Xe={javascript:U,typescript:Qe,tsx:Ye,json:je,python:qe,bash:Se,ruby:Pe,php:Ze,go:Oe,rust:Ue,java:ze,c:Ee,cpp:Ce,csharp:_e,sql:Fe,css:I,yaml:Ve,xml:Ke,diff:Ae,kotlin:$e,swift:He,dockerfile:Te,toml:Be,markdown:De,graphql:Ne,powershell:Ie,hcl:Re,plaintext:D};var F=new Map(Object.entries(Xe)),Je=new Map(Object.entries({js:"javascript",jsx:"javascript",mjs:"javascript",cjs:"javascript",node:"javascript",ts:"typescript",mts:"typescript",cts:"typescript",jsonc:"json",json5:"json",py:"python",python3:"python",sh:"bash",shell:"bash",zsh:"bash",shellscript:"bash",console:"bash",terminal:"bash",rb:"ruby",golang:"go",rs:"rust",h:"c","c++":"cpp",cc:"cpp",cxx:"cpp",hpp:"cpp",cs:"csharp","c#":"csharp",postgres:"sql",postgresql:"sql",mysql:"sql",sqlite:"sql",plsql:"sql",scss:"css",less:"css",yml:"yaml",html:"xml",xhtml:"xml",svg:"xml",vue:"xml",svelte:"xml",patch:"diff",kt:"kotlin",kts:"kotlin",docker:"dockerfile",containerfile:"dockerfile",md:"markdown",mdx:"markdown",gql:"graphql",ps1:"powershell",pwsh:"powershell",ps:"powershell",terraform:"hcl",tf:"hcl",tfvars:"hcl",opentofu:"hcl",text:"plaintext",txt:"plaintext",plain:"plaintext","":"plaintext"}));function R(t){let e=(t??"").trim().toLowerCase();return F.get(e)??F.get(Je.get(e)??"")}function oe(t,e,o=[]){F.set(t.toLowerCase(),e);for(let r of o)Je.set(r.toLowerCase(),t.toLowerCase())}function ae(){return[...F.keys()]}var et=t=>typeof t=="object"?t:R(t)??D,St={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function z(t){return t.replace(/[&<>"]/g,e=>St[e])}function C(t){let e="";for(let o of t)e+=o.type?`<span class="cl-${o.type}">${z(o.text)}</span>`:z(o.text);return e}function W(t,e){let o=et(e),r=null;return t.split(`
3
- `).map(a=>{let n=o.tokenizeLine(a.replace(/\r$/,""),r);return r=n.state,n.tokens})}function j(t,e,o){let r=W(t,e).map(C);if(!Le(o))return r.join(`
4
- `);let a=Z(o.highlightLines);return r.map((n,c)=>ve(n,c+1,!!o.lineNumbers,a)).join(`
5
- `)}function M(t){let e=et(t),o=null,r="",a="";return{get text(){return a},push(n){a+=n,r+=n;let c=[],l;for(;(l=r.indexOf(`
6
- `))>=0;){let f=e.tokenizeLine(r.slice(0,l).replace(/\r$/,""),o);c.push(f.tokens),o=f.state,r=r.slice(l+1)}return{lines:c,tail:e.tokenizeLine(r.replace(/\r$/,""),o).tokens}}}}var Et=/(?:^|\s)language-(\S+)/,se=(t,e)=>t.getAttribute(e)??t.parentElement?.getAttribute(e)??null;function Ct(t){return se(t,"data-lang")??Et.exec(t.className)?.[1]??""}function H(t,e=Ct(t),o={}){let r=o.lineNumbers??se(t,"data-line-numbers")!=null,a=o.highlightLines??se(t,"data-highlight-lines")??void 0;t.innerHTML=j(t.textContent??"",e,{lineNumbers:r,highlightLines:a}),t.classList.add("cl"),t.setAttribute("data-cl",e),o.copyButton&&A(t)}function ie(t,e={}){let o=!!t&&typeof t.querySelectorAll=="function",r=o?t:void 0,a=o?e:{...t,...e};if(!r&&typeof document>"u")return;let n=()=>{for(let c of(r??document).querySelectorAll("pre > code:not([data-cl])"))H(c,void 0,a)};!r&&document.readyState==="loading"?document.addEventListener("DOMContentLoaded",n,{once:!0}):n()}function le(t,e={}){let o=t.ownerDocument,r=!!e.lineNumbers,a=Z(e.highlightLines),n=e.lang,c,l,f=0,L=(y,w)=>{y.className=Y(w,r,a),(r||a.size)&&y.setAttribute("data-line",String(w))},E=()=>{c=M(n),f=0,l=o.createElement("span"),L(l,1),t.replaceChildren(l)};t.classList.add("cl"),E();let v={get text(){return c.text},get lang(){return n},write(y){if(!y)return;let{lines:w,tail:s}=c.push(y);if(w.length){let S=o.createDocumentFragment();for(let d of w){let m=o.createElement("span");L(m,++f),m.innerHTML=C(d),S.append(m,`
7
- `)}t.insertBefore(S,l),L(l,f+1)}l.innerHTML=C(s)},set(y){let w=c.text;if(y!==w){if(y.startsWith(w))return v.write(y.slice(w.length));E(),v.write(y)}},reset(y){y!==void 0&&(n=y),E()}};return v}var _t=/^ {0,3}(`{3,}|~{3,})(.*)$/,tt=/^ {0,3}(?:`{1,2}|~{1,2})$/;function ce(t){let e=t.split(`
8
- `),o=[],r=[],a=()=>{r.length&&o.push({type:"text",text:r.join(`
9
- `)}),r=[]},n=0;for(;n<e.length;){let c=e[n].replace(/\r$/,""),l=_t.exec(c);if(!l||l[1][0]==="`"&&l[2].includes("`")){r.push(c),n++;continue}a();let f=l[1],L=n<e.length-1,E=new RegExp(`^ {0,3}${f[0]==="`"?"`":"~"}{${f.length},}\\s*$`),v=[],y=!1,w=n+1;for(;w<e.length;w++){let S=e[w].replace(/\r$/,"");if(E.test(S)){y=!0;break}v.push(S)}let s;y?s=v.map(S=>S+`
10
- `).join(""):(v.length&&tt.test(v[v.length-1])&&(v[v.length-1]=""),s=v.join(`
11
- `)),o.push({type:"code",lang:L?l[2].trim().split(/\s+/)[0]??"":"",code:s,closed:y}),n=y?w+1:w}return r.length&&tt.test(r[r.length-1])&&r.pop(),a(),o}var nt=`/*!
1
+ /*! codelight.js 1.4.0 | MIT License | https://github.com/codelightjs/codelight.js */
2
+ "use strict";var codelight=(()=>{var j=Object.defineProperty;var zt=Object.getOwnPropertyDescriptor;var Rt=Object.getOwnPropertyNames;var $t=Object.prototype.hasOwnProperty;var Zt=(e,t,s)=>t in e?j(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var jt=(e,t)=>{for(var s in t)j(e,s,{get:t[s],enumerable:!0})},Mt=(e,t,s,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Rt(t))!$t.call(e,a)&&a!==s&&j(e,a,{get:()=>t[a],enumerable:!(r=zt(t,a))||r.enumerable});return e};var It=e=>Mt(j({},"__esModule",{value:!0}),e);var be=(e,t,s)=>Zt(e,typeof t!="symbol"?t+"":t,s);var dn={};jt(dn,{addCopyButton:()=>T,createMarkup:()=>O,createStream:()=>Z,default:()=>fn,defineLanguage:()=>o,escapeHtml:()=>R,getLanguage:()=>z,highlight:()=>$,highlightAll:()=>pe,highlightElement:()=>Q,injectTheme:()=>fe,listLanguages:()=>le,mount:()=>me,registerLanguage:()=>ie,renderLine:()=>_,splitFences:()=>ue,themeCss:()=>V,tokenize:()=>G});async function Dt(e,t=document){try{await t.defaultView.navigator.clipboard.writeText(e)}catch{let s=t.createElement("textarea");s.value=e,s.setAttribute("readonly",""),s.style.cssText="position:fixed;top:-1000px;opacity:0",t.body.append(s),s.select(),t.execCommand("copy"),s.remove()}}function T(e,t={}){let s=e.parentElement;if(!s||[...s.children].some(l=>l.classList.contains("cl-copy")))return null;let r=e.ownerDocument,a=t.label??"Copy",n=r.createElement("button");n.type="button",n.className="cl-copy",n.textContent=a,n.setAttribute("aria-label","Copy code");let c;return n.addEventListener("click",async()=>{await Dt(e.textContent??"",r),n.textContent=t.copiedLabel??"Copied",clearTimeout(c),c=setTimeout(()=>n.textContent=a,1500)}),s.classList.add("cl-has-copy"),s.append(n),n}var A=class{constructor(){be(this,"tokens",[])}add(t,s){if(!s)return;let r=this.tokens[this.tokens.length-1];r&&r.type===t?r.text+=s:this.tokens.push(t?{type:t,text:s}:{text:s})}},N=(e,t)=>new Set((e??"").split(/\s+/).filter(Boolean).map(s=>t?s.toLowerCase():s)),we=e=>new RegExp(e.source,e.flags.replace(/[gy]/g,"")+"y"),xe=/(?:0[xX][\da-fA-F_]+|0[bB][01_]+|0[oO][0-7_]+|(?:\d[\d_]*(?:\.\d[\d_]*)?|\.\d[\d_]*)(?:[eE][+-]?\d+)?)\w*/y,qt=/[A-Za-z_$][\w$]*/,ke=/\s+/y,ve=/[+\-*/%=<>!&|^~?:]+/y,Le=/\s*\(/y,Se=/<<(-?)\s*(['"]?)([A-Za-z_]\w*)\2/y,Pt="()[]{},;.",Ut={"}":"{",")":"(","]":"["};function o(e){let t=e.caseInsensitive??!1,s=N(e.keywords,t),r=N(e.constants,t),a=N(e.types,t),n=N(e.variables,t),c=N(e.builtins,t),l=(e.rules??[]).map(i=>({match:we(i.match),type:i.type})),h=[...e.strings??[]].sort((i,S)=>S.open.length-i.open.length).map(i=>({open:i.open,close:i.close??i.open,escape:i.escape??!0,multiline:i.multiline??!1,type:i.type??"string",interpolate:i.interpolate})),v=we(e.identifier??qt),E=e.calls??!0,L=e.numbers??!0,b=e.operators??!0;function k(i,S,d){let f=t?i.toLowerCase():i;if(s.has(f))return"keyword";if(r.has(f))return"constant";if(a.has(f))return"type";if(n.has(f))return"variable";if(c.has(f)||E&&(Le.lastIndex=d,Le.test(S)))return"function";if(e.classNames&&/^[A-Z]/.test(i)&&/[a-z]/.test(i))return"type"}return{tokenizeLine(i,S){let d=new A,f=S?[...S]:[],de=()=>f[f.length-1],Y,m=0,y,J=de();if(J?.t==="heredoc")return(J.dash?i.replace(/^\t+/,""):i)===J.end?(d.add("meta",i),f.pop()):d.add("string",i),{tokens:d.tokens,state:f.length?f:null};e:for(;m<i.length;){let w=de();if(w?.t==="comment"){let p=i.indexOf(w.close,m);if(p<0){d.add("comment",i.slice(m));break}d.add("comment",i.slice(m,p+w.close.length)),m=p+w.close.length,f.pop();continue}if(w?.t==="string"){let p=w.s;for(let x=m;x<i.length;x++){if(p.interpolate&&i.startsWith(p.interpolate[0],x)){if(p.interpolate[0]==="{"&&i[x+1]==="{"){x++;continue}d.add(p.type,i.slice(m,x)),d.add("punctuation",p.interpolate[0]),m=x+p.interpolate[0].length;let ye=p.interpolate[1];f.push({t:"code",close:ye,open:Ut[ye]??"",depth:0});continue e}if(p.escape&&i[x]==="\\"){x++;continue}if(i.startsWith(p.close,x)){d.add(p.type,i.slice(m,x+p.close.length)),m=x+p.close.length,f.pop();continue e}}d.add(p.type,i.slice(m));break}if(w?.t==="code"){if(w.depth===0&&i.startsWith(w.close,m)){d.add("punctuation",w.close),m+=w.close.length,f.pop();continue}let p=i[m];if(p===w.open||w.depth>0&&p===w.close){f[f.length-1]={...w,depth:w.depth+(p===w.open?1:-1)},d.add("punctuation",p),m++;continue}}for(let p of l){p.match.lastIndex=m;let x=p.match.exec(i);if(x&&x[0]){d.add(p.type,x[0]),m+=x[0].length;continue e}}for(let[p,x]of e.blockComment??[])if(i.startsWith(p,m)){d.add("comment",p),m+=p.length,f.push({t:"comment",close:x});continue e}for(let p of e.lineComment??[])if(i.startsWith(p,m)){d.add("comment",i.slice(m));break e}for(let p of h)if(i.startsWith(p.open,m)){d.add(p.type,p.open),m+=p.open.length,f.push({t:"string",s:p});continue e}if(e.heredoc&&(y=(Se.lastIndex=m,Se.exec(i)))){d.add("operator",`<<${y[1]}`),d.add("meta",y[0].slice(2+y[1].length)),Y={t:"heredoc",end:y[3],dash:!!y[1]},m+=y[0].length;continue}if(xe.lastIndex=m,L&&(y=xe.exec(i))){d.add("number",y[0]),m+=y[0].length;continue}if(v.lastIndex=m,(y=v.exec(i))&&y[0]){d.add(k(y[0],i,m+y[0].length),y[0]),m+=y[0].length;continue}if(ke.lastIndex=m,y=ke.exec(i)){d.add(void 0,y[0]),m+=y[0].length;continue}if(ve.lastIndex=m,y=ve.exec(i)){d.add(b?"operator":void 0,y[0]),m+=y[0].length;continue}let he=i[m];d.add(Pt.includes(he)?"punctuation":void 0,he),m++}let ge=f.findIndex(w=>w.t==="string"&&!w.s.multiline);return ge>=0&&(f.length=ge),Y&&f.push(Y),{tokens:d.tokens,state:f.length?f:null}}}}var M={tokenizeLine:e=>({tokens:e?[{text:e}]:[],state:null})};function I(e){let t=new Set;if(e==null)return t;if(typeof e=="number")return t.add(e);if(Array.isArray(e))return new Set(e);for(let s of e.split(/[\s,]+/)){let r=/^(\d+)(?:-(\d+))?$/.exec(s);if(!r)continue;let a=Number(r[1]),n=Number(r[2]??r[1]);for(let c=Math.min(a,n);c<=Math.max(a,n)&&c-a<1e5;c++)t.add(c)}return t}var Ee=e=>!!e&&(!!e.lineNumbers||e.highlightLines!=null);function K(e,t,s){return"cl-line"+(t?" cl-ln":"")+(s.has(e)?" cl-mark":"")}function Ae(e,t,s,r){return`<span class="${K(t,s,r)}" data-line="${t}">${e}</span>`}var D=o({strings:[{open:'"',multiline:!0},{open:"'",escape:!1,multiline:!0}],keywords:"if then else elif fi for while until do done case esac in function select return exit break continue local export readonly declare unset source alias time",builtins:"echo cd printf read set shift test eval exec trap pwd ls cat grep sed awk find mkdir rm cp mv chmod chown touch curl wget tar sudo git npm npx pnpm yarn bun node deno python python3 pip pip3 docker kubectl ssh make brew apt apt-get",rules:[{match:/(?<=^|\s)#.*/,type:"comment"},{match:/\$(?:\{[^}]*\}|[A-Za-z_]\w*|[\d@#?$!*-])/,type:"variable"},{match:/(?<=^\s*(?:(?:export|local|declare|readonly)\s+)?)[A-Za-z_]\w*(?==)/,type:"variable"},{match:/(?<=\s)--?[A-Za-z][\w-]*/,type:"attr"}],identifier:/[A-Za-z_][\w-]*/,calls:!1,heredoc:!0});var u={lineComment:["//"],blockComment:[["/*","*/"]]},g=[{open:'"'},{open:"'"}];var X="auto break case const continue default do else enum extern for goto if inline register restrict return sizeof static struct switch typedef union volatile while",ee="char double float int long short signed unsigned void bool size_t ssize_t int8_t int16_t int32_t int64_t uint8_t uint16_t uint32_t uint64_t FILE",te=[{match:/(?<=^\s*#\s*include\s*)<[^>]*>/,type:"string"},{match:/(?<=^\s*)#\s*[A-Za-z]+/,type:"meta"}],_e=o({...u,strings:g,keywords:X,types:ee,constants:"NULL true false",rules:te});var Ce=o({...u,strings:g,keywords:X+" class namespace template typename public private protected virtual override final new delete this try catch throw using operator friend explicit constexpr consteval noexcept auto decltype static_cast dynamic_cast reinterpret_cast const_cast co_await co_return co_yield concept requires mutable",types:ee+" string vector map unordered_map set array unique_ptr shared_ptr optional",constants:"nullptr NULL true false",rules:te,classNames:!0});var ne=["{","}"],Te=o({...u,strings:[{open:'$@"',close:'"',escape:!1,multiline:!0,interpolate:ne},{open:'@$"',close:'"',escape:!1,multiline:!0,interpolate:ne},{open:'@"',close:'"',escape:!1,multiline:!0},{open:'$"',close:'"',interpolate:ne},...g],keywords:"abstract as base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in interface internal is lock namespace new operator out override params private protected public readonly ref return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual volatile while async await var record get set init yield where when",types:"bool byte char decimal double float int long object sbyte short string uint ulong ushort void dynamic",constants:"true false null",rules:[{match:/(?<=^\s*)\[[A-Z]\w*(?:\([^)]*\))?\]/,type:"meta"}],classNames:!0});var q=o({blockComment:[["/*","*/"]],strings:g,rules:[{match:/@[\w-]+/,type:"keyword"},{match:/#[\da-fA-F]{3,8}(?![\w-])/,type:"number"},{match:/(?:--|-?[A-Za-z])[\w-]*(?=\s*:(?!:)[^{};]*(?:[;})]|$))/,type:"property"},{match:/[.#][A-Za-z_-][\w-]*/,type:"type"},{match:/::?[A-Za-z-]+/,type:"attr"},{match:/!\s*important/,type:"keyword"}],identifier:/-?[A-Za-z_][\w-]*/});var Ft={tokenizeLine(e){if(!e)return{tokens:[],state:null};let t=e.startsWith("+++")||e.startsWith("---")||e.startsWith("@@")||e.startsWith("diff ")||e.startsWith("index ")?"meta":e[0]==="+"?"inserted":e[0]==="-"?"deleted":void 0;return{tokens:[t?{type:t,text:e}:{text:e}],state:null}}},Ne=Ft;var Ht="FROM|RUN|CMD|LABEL|EXPOSE|ENV|ADD|COPY|ENTRYPOINT|VOLUME|USER|WORKDIR|ARG|ONBUILD|STOPSIGNAL|HEALTHCHECK|SHELL|MAINTAINER",Oe=o({strings:[{open:'"'},{open:"'",escape:!1}],rules:[{match:/(?<=^\s*)#.*/,type:"comment"},{match:new RegExp(`(?<=^\\s*)(?:${Ht})\\b`,"i"),type:"keyword"},{match:/(?<=^\s*FROM\s.*\s)AS(?=\s)/i,type:"keyword"},{match:/\$(?:\{[^}]*\}|[A-Za-z_]\w*)/,type:"variable"},{match:/(?<=\s)--[A-Za-z][\w-]*/,type:"attr"}],identifier:/[A-Za-z_][\w.-]*/,calls:!1});var ze=o({...u,strings:[{open:'"'},{open:"'"},{open:"`",escape:!1,multiline:!0}],keywords:"break case chan const continue default defer else fallthrough for func go goto if import interface map package range return select struct switch type var",constants:"true false nil iota",types:"string int int8 int16 int32 int64 uint uint8 uint16 uint32 uint64 uintptr float32 float64 complex64 complex128 bool byte rune error any",builtins:"append cap close copy delete len make new panic print println recover"});var Re=o({lineComment:["#"],strings:[{open:'"""',multiline:!0},{open:'"'}],keywords:"query mutation subscription fragment on type interface union enum input scalar schema extend directive implements repeatable",constants:"true false null",types:"Int Float String Boolean ID",rules:[{match:/\$[A-Za-z_]\w*/,type:"variable"},{match:/@[A-Za-z_]\w*/,type:"meta"},{match:/\.\.\./,type:"operator"},{match:/[A-Za-z_]\w*(?=\s*:)/,type:"property"}],classNames:!0});var $e=o({lineComment:["#","//"],blockComment:[["/*","*/"]],strings:[{open:'"',interpolate:["${","}"]}],constants:"true false null",types:"string number bool list map set object tuple any",rules:[{match:/(?<=^\s*)(?:resource|data|variable|output|module|provider|locals|terraform|moved|import|check)\b/,type:"keyword"},{match:/\b(?:for|in|if|for_each|count|depends_on|lifecycle|dynamic|content)\b(?!\s*=)/,type:"keyword"},{match:/(?<=^\s*)[A-Za-z_][\w-]*(?=\s*=(?!=))/,type:"property"}],identifier:/[A-Za-z_][\w-]*/,heredoc:!0});var Ze=o({...u,strings:[{open:'"""',multiline:!0},...g],keywords:"abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while var record sealed permits yield",types:"boolean byte char double float int long short void",constants:"true false null",rules:[{match:/@[A-Za-z_]\w*/,type:"meta"}],classNames:!0});var re="break case catch class const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield async await of static get set from as",oe="true false null undefined NaN Infinity",ae={open:"`",multiline:!0,interpolate:["${","}"]},se={match:/(?<=(?:^|[(=?:,&|{}[>;]|\breturn)\s*)<\/?[A-Za-z][\w.:-]*(?=[\s/>]|$)/,type:"tag"},P={match:/(?<=(?:^|[(,=:[!&|?{;]|\breturn|\btypeof|\bcase)\s*)\/(?![*/\s>])(?:\\.|\[(?:\\.|[^\]\\])*\]|[^\\/[])+\/[dgimsuvy]*/,type:"regex"},U={match:/@[A-Za-z_$][\w$.]*/,type:"meta"},F=o({...u,strings:[...g,ae],keywords:re,constants:oe,rules:[se,P,U],classNames:!0});var H=o({...u,strings:[{open:'"'}],constants:"true false null",rules:[{match:/"(?:[^"\\]|\\.)*"(?=\s*:)/,type:"property"}],calls:!1});var je=["${","}"],Me=o({...u,strings:[{open:'"""',multiline:!0,escape:!1,interpolate:je},{open:'"',interpolate:je},{open:"'"}],keywords:"package import class interface object fun val var if else when for while do return break continue throw try catch finally is in as typealias this super data sealed enum open abstract override private protected public internal companion lateinit suspend inline reified by init get set where out vararg const operator infix annotation",constants:"true false null",types:"Int Long Short Byte Double Float Boolean Char String Unit Any Nothing List Map Set",rules:[{match:/@[A-Za-z_]\w*(?::\w+)?/,type:"meta"}],classNames:!0});var Ie=o({blockComment:[["<!--","-->"]],rules:[{match:/^#{1,6}\s.*/,type:"keyword"},{match:/^ {0,3}(?:`{3,}|~{3,}).*/,type:"meta"},{match:/^\s*>.*/,type:"comment"},{match:/^\s*(?:[-*+]|\d+[.)])(?=\s)/,type:"punctuation"},{match:/^\s*(?:-{3,}|\*{3,}|_{3,})\s*$/,type:"punctuation"},{match:/`[^`]+`/,type:"string"},{match:/!?\[[^\]]*\]\([^)\s]*(?:\s+"[^"]*")?\)/,type:"function"},{match:/\*\*[^*]+\*\*|__[^_]+__/,type:"type"},{match:/(?<![\w*])\*[^*\s][^*]*\*(?!\*)|(?<!\w)_[^_\s][^_]*_(?!\w)/,type:"attr"},{match:/<\/?[A-Za-z][^>]*>/,type:"tag"}],identifier:/[A-Za-z_][\w'-]*/,calls:!1,numbers:!1,operators:!1});var De=o({lineComment:["//","#"],blockComment:[["/*","*/"]],strings:[{open:'"',multiline:!0},{open:"'",multiline:!0}],keywords:"abstract and array as break callable case catch class clone const continue declare default do echo else elseif empty enddeclare endfor endforeach endif endswitch endwhile enum extends final finally fn for foreach function global goto if implements include include_once instanceof insteadof interface isset list match namespace new or print private protected public readonly require require_once return static switch throw trait try unset use var while xor yield",constants:"true false null TRUE FALSE NULL",types:"int float string bool void mixed never object iterable",rules:[{match:/<\?(?:php|=)?|\?>/,type:"meta"},{match:/\$[A-Za-z_]\w*/,type:"variable"}],classNames:!0});var qe=o({lineComment:["#"],blockComment:[["<#","#>"]],strings:[{open:'@"',close:'"@',escape:!1,multiline:!0,interpolate:["$(",")"]},{open:"@'",close:"'@",escape:!1,multiline:!0},{open:'"',escape:!1,multiline:!0,interpolate:["$(",")"]},{open:"'",escape:!1,multiline:!0}],keywords:"if else elseif switch foreach for while do until break continue return function filter param begin process end try catch finally throw trap in exit class enum using",caseInsensitive:!0,rules:[{match:/\$(?:true|false|null)\b/i,type:"constant"},{match:/\$(?:\{[^}]+\}|[\w:]+)/,type:"variable"},{match:/-(?:eq|ne|gt|ge|lt|le|like|notlike|match|notmatch|contains|notcontains|in|notin|and|or|not|xor|replace|split|join|is|isnot|as)\b/i,type:"operator"},{match:/\[[A-Za-z][\w.]*(?:\[\])?\]/,type:"type"},{match:/\b[A-Z][a-z]+-[A-Z]\w+/,type:"function"},{match:/(?<=\s)-[A-Za-z]\w*/,type:"attr"}],identifier:/[A-Za-z_][\w-]*/});var Bt=["f","F","rf","rF","Rf","RF","fr","fR","Fr","FR"].flatMap(e=>['"""',"'''",'"',"'"].map(t=>({open:e+t,close:t,escape:!/r/i.test(e),multiline:t.length===3,interpolate:["{","}"]}))),Pe=o({lineComment:["#"],strings:[...Bt,{open:'"""',multiline:!0},{open:"'''",multiline:!0},...g],keywords:"and as assert async await break class continue def del elif else except finally for from global if import in is lambda nonlocal not or pass raise return try while with yield match case",constants:"True False None",variables:"self cls",types:"int float str bool list dict set tuple bytes object Exception",rules:[{match:/(?<=^\s*)@[\w.]+/,type:"meta"},{match:/[rRbBuU]{1,2}(?=["'])/,type:"string"}],classNames:!0});var Ue=o({lineComment:["#"],strings:[{open:'"',multiline:!0},{open:"'",multiline:!0}],keywords:"alias and begin break case class def defined? do else elsif end ensure for if in module next not or redo rescue retry return self super then undef unless until when while yield require require_relative include extend attr_accessor attr_reader attr_writer private protected public lambda proc",builtins:"puts print p raise",constants:"true false nil",rules:[{match:/@{1,2}[A-Za-z_]\w*|\$[A-Za-z_]\w*/,type:"variable"},{match:/(?<![:\w]):[A-Za-z_]\w*[?!]?/,type:"constant"}],identifier:/[A-Za-z_]\w*[?!]?/,classNames:!0});var Fe=o({...u,strings:[{open:'"',multiline:!0},{open:"'"}],keywords:"as async await break const continue crate dyn else enum extern fn for if impl in let loop match mod move mut pub ref return self Self static struct super trait type unsafe use where while",constants:"true false None",types:"i8 i16 i32 i64 i128 isize u8 u16 u32 u64 u128 usize f32 f64 bool char str",rules:[{match:/#!?\[[^\]]*\]/,type:"meta"},{match:/'[A-Za-z_]\w*(?!')/,type:"keyword"},{match:/[A-Za-z_]\w*!(?=\s*[([{])/,type:"function"}],classNames:!0});var He=o({lineComment:["--"],blockComment:[["/*","*/"]],strings:[{open:"'",escape:!1},{open:'"',escape:!1,type:"property"},{open:"`",escape:!1,type:"property"}],keywords:"select from where and or not insert into values update set delete create table alter drop index primary key foreign references join left right inner outer full cross on as group by order having limit offset union all distinct case when then else end is in like ilike between exists default constraint unique check view begin commit rollback transaction returning with recursive if desc asc add column grant revoke cascade truncate database schema explain using natural over partition window",constants:"null true false",types:"int integer bigint smallint serial bigserial varchar char text boolean bool date time timestamp timestamptz interval decimal numeric float real double precision uuid json jsonb blob bytea",caseInsensitive:!0});var Be=["\\(",")"],We=o({...u,strings:[{open:'"""',multiline:!0,interpolate:Be},{open:'"',interpolate:Be}],keywords:"import let var func class struct enum protocol extension if else guard switch case default for in while repeat return break continue fallthrough throw throws rethrows try catch do defer as is init deinit self Self super static private fileprivate internal public open final override mutating nonmutating weak unowned lazy inout where async await some any typealias associatedtype subscript convenience required",constants:"true false nil",types:"Int Double Float String Bool Character Array Dictionary Set Void Optional Result Error",rules:[{match:/@[A-Za-z_]\w*/,type:"meta"},{match:/#(?:available|if|else|elseif|endif|selector|keyPath|warning|error)\b/,type:"meta"}],classNames:!0});var Ge=o({lineComment:["#"],strings:[{open:'"""',multiline:!0},{open:"'''",multiline:!0,escape:!1},{open:'"'},{open:"'",escape:!1}],constants:"true false inf nan",rules:[{match:/(?<=^\s*)\[\[?[^\]]*\]\]?/,type:"tag"},{match:/(?<=^\s*)[\w.\-"' ]+?(?=\s*=)/,type:"property"},{match:/\d{4}-\d{2}-\d{2}(?:[T ]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?(?:Z|[+-]\d{2}:\d{2})?)?/,type:"number"}],identifier:/[A-Za-z_][\w-]*/,calls:!1});var Wt=" interface type enum implements namespace declare abstract readonly private protected public keyof infer is satisfies asserts module override unique",Qe=e=>({...u,strings:[...g,ae],keywords:re+Wt,types:"string number boolean any unknown never void object symbol bigint",constants:oe,rules:e?[se,P,U]:[P,U],classNames:!0}),Ve=o(Qe(!1)),Ye=o(Qe(!0));var Gt=/<(\/?)([A-Za-z][\w:.-]*)/y,Qt=/&(?:#\d+|#[xX][\da-fA-F]+|\w+);/y,Vt=/[^<&]+/y,Yt=/[^\s=/>"']+/y,Jt=/[^\s>"']+/y,Kt=/\s+/y,C=(e,t,s)=>(e.lastIndex=s,e.exec(t));function O(e={}){return{tokenizeLine(t,s){let r=new A,a=s,n=0,c;for(;n<t.length;){if(!a){if(t.startsWith("<!--",n)){let l=t.indexOf("-->",n+4);if(l<0){r.add("comment",t.slice(n)),a={m:"comment"};break}r.add("comment",t.slice(n,l+3)),n=l+3}else if(t.startsWith("<!",n)||t.startsWith("<?",n)){let l=t.indexOf(">",n);if(l<0){r.add("meta",t.slice(n)),a={m:"meta"};break}r.add("meta",t.slice(n,l+1)),n=l+1}else(c=C(Gt,t,n))?(r.add("punctuation",c[1]?"</":"<"),r.add("tag",c[2]),a={m:"tag",name:c[2].toLowerCase(),closing:!!c[1]},n+=c[0].length):(c=C(Qt,t,n))?(r.add("constant",c[0]),n+=c[0].length):(c=C(Vt,t,n))?(r.add(void 0,c[0]),n+=c[0].length):(r.add(void 0,t[n]),n++);continue}if(a.m==="comment"||a.m==="meta"){let l=a.m==="comment"?"-->":">",h=a.m==="comment"?"comment":"meta",v=t.indexOf(l,n);if(v<0){r.add(h,t.slice(n));break}r.add(h,t.slice(n,v+l.length)),n=v+l.length,a=null;continue}if(a.m==="embed"){let l=t.toLowerCase().indexOf(a.end,n),h=l<0?t.slice(n):t.slice(n,l),v=a.lang.tokenizeLine(h,a.inner);for(let E of v.tokens)r.add(E.type,E.text);if(l<0){a={...a,inner:v.state};break}a=null,n=l;continue}if(a.quote){let l=t.indexOf(a.quote,n);if(l<0){r.add("string",t.slice(n));break}r.add("string",t.slice(n,l+1)),n=l+1,a={...a,quote:void 0,eq:!1}}else if(c=C(Kt,t,n))r.add(void 0,c[0]),n+=c[0].length;else if(t.startsWith("/>",n)||t[n]===">"){let l=t[n]===">"?1:2;r.add("punctuation",t.slice(n,n+l)),n+=l;let h=l===1&&!a.closing?e[a.name]:void 0;a=h?{m:"embed",end:`</${a.name}`,lang:h,inner:null}:null}else if(t[n]==="=")r.add("operator","="),n++,a={...a,eq:!0};else if(t[n]==='"'||t[n]==="'"){let l=t[n],h=t.indexOf(l,n+1);if(h<0){r.add("string",t.slice(n)),a={...a,quote:l};break}r.add("string",t.slice(n,h+1)),n=h+1,a={...a,eq:!1}}else a.eq&&(c=C(Jt,t,n))?(r.add("string",c[0]),n+=c[0].length,a={...a,eq:!1}):(c=C(Yt,t,n))?(r.add("attr",c[0]),n+=c[0].length):(r.add(void 0,t[n]),n++)}return{tokens:r.tokens,state:a}}}}var Je=O({script:F,style:q});var Ke=o({strings:[{open:'"'},{open:"'",escape:!1}],constants:"true false null yes no on off ~",caseInsensitive:!0,rules:[{match:/(?<=^|\s)#.*/,type:"comment"},{match:/^(?:---|\.\.\.)(?=\s*$)/,type:"meta"},{match:/[^\s#:'"[\]{},-][^#:]*?(?=:(?:\s|$))|(?<=^\s*-\s+)[^\s#:'"[\]{},][^#:]*?(?=:(?:\s|$))/,type:"property"},{match:/[&*][\w-]+/,type:"variable"},{match:/!!?[\w-]+/,type:"type"}],identifier:/[A-Za-z_][\w-]*/,calls:!1});var Xt=/^(?:\([\w.-]+\)\s+)?(?:[\w.-]+@[\w.-]+(?::[^\s$#%>]*)?\s?)?[$#%❯>]\s|^PS [^>]*>\s/,en={tokenizeLine(e,t){let s=t,r=s?.continues?"":Xt.exec(e)?.[0];if(r===void 0)return{tokens:e?[{text:e}]:[],state:null};let a=new A;a.add("meta",r);let n=D.tokenizeLine(e.slice(r.length),s?.bash??null);for(let l of n.tokens)a.add(l.type,l.text);let c=/\\$/.test(e)||n.state!==null;return{tokens:a.tokens,state:c?{bash:n.state,continues:!0}:null}}},Xe=en;var tn=/^(GET|POST|PUT|PATCH|DELETE|HEAD|OPTIONS|CONNECT|TRACE)(\s+)(\S+)(?:(\s+)(HTTP\/[\d.]+))?\s*$/,nn=/^(HTTP\/[\d.]+)(\s+)(\d{3})(.*)$/,rn=/^([!#$%&'*+.^_`|~\w-]+)(:)(\s*)(.*)$/,on={tokenizeLine(e,t){let s=t??{body:!1,inner:null},r=new A;if(/^###/.test(e))return r.add("comment",e),{tokens:r.tokens,state:null};if(s.body){let n=H.tokenizeLine(e,s.inner);return{tokens:n.tokens,state:{body:!0,inner:n.state}}}if(!e.trim())return{tokens:[],state:{body:!0,inner:null}};let a;return(a=tn.exec(e))?(r.add("keyword",a[1]),r.add(void 0,a[2]),r.add("string",a[3]),a[5]&&(r.add(void 0,a[4]),r.add("meta",a[5]))):(a=nn.exec(e))?(r.add("meta",a[1]),r.add(void 0,a[2]),r.add("number",a[3]),r.add("string",a[4])):(a=rn.exec(e))?(r.add("property",a[1]),r.add("punctuation",a[2]),r.add(void 0,a[3]),r.add("string",a[4])):/^\s*#/.test(e)?r.add("comment",e):r.add(void 0,e),{tokens:r.tokens,state:s.inner===null&&!s.body?null:s}}},et=on;var tt=o({lineComment:["//"],blockComment:[["/*","*/"]],strings:g,rules:[{match:/(?<=url\()[^)'"]*(?=\))/,type:"string"},{match:/\$[\w-]+|#\{[^}]*\}/,type:"variable"},{match:/@[\w-]+/,type:"keyword"},{match:/#[\da-fA-F]{3,8}(?![\w-])/,type:"number"},{match:/(?:--|-?[A-Za-z])[\w-]*(?=\s*:(?!:)(?:[^{};#]|#\{[^}]*\}|#(?!\{))*(?:[;})]|$))/,type:"property"},{match:/[.#%][A-Za-z_-][\w-]*/,type:"type"},{match:/&/,type:"operator"},{match:/::?[A-Za-z-]+/,type:"attr"},{match:/!\s*(?:important|default|global)/,type:"keyword"}],identifier:/-?[A-Za-z_][\w-]*/});var nt=o({lineComment:["%%"],strings:[{open:'"'}],keywords:"graph flowchart sequenceDiagram classDiagram stateDiagram erDiagram gantt pie journey gitGraph mindmap timeline quadrantChart requirementDiagram C4Context participant actor note Note over loop alt else opt par and critical break end activate deactivate rect autonumber title section class subgraph direction style classDef linkStyle click accTitle accDescr dateFormat axisFormat commit branch checkout merge state",constants:"TD TB BT RL LR",rules:[{match:/\b(?:stateDiagram-v2|sankey-beta|xychart-beta|block-beta|packet-beta)\b/,type:"keyword"},{match:/<?(?:-{2,}|={2,}|-\.+-?|-)(?:>>?|x|o|\))?(?![\w-])|<<-+/,type:"operator"},{match:/(?<=\w)(?:\[\[|\[\(|\(\(|\[|\(|\{\{|\{|>)[^\]\)\}\n]*?(?:\]\]|\)\]|\)\)|\]|\)|\}\}|\})/,type:"string"},{match:/\|[^|\n]*\|/,type:"string"},{match:/(?<=:\s*)[^:;\n]+$/,type:"string"}],calls:!1});var rt=o({lineComment:["%"],strings:[{open:"$$",multiline:!0,escape:!1},{open:"\\[",close:"\\]",multiline:!0,escape:!1},{open:"\\(",close:"\\)",escape:!1},{open:"$",escape:!1}],rules:[{match:/\\[$%&#_{}]/,type:"constant"},{match:/(?<=\\(?:begin|end)\{)[^}]*/,type:"type"},{match:/\\[A-Za-z@]+\*?/,type:"keyword"},{match:/\\\\/,type:"operator"},{match:/&/,type:"operator"}],calls:!1,numbers:!1,operators:!1});var ot=o({lineComment:["'"],strings:[{open:'"',escape:!1}],keywords:"sub function end if then else elseif for each next do loop while wend until dim as set let private public const option explicit with select case exit call byval byref optional new is not and or xor mod to step resume on error goto property get class module type enum imports namespace inherits implements return try catch finally throw using redim preserve static friend shared overrides overridable handles of in andalso orelse like debug",types:"integer long longlong string boolean double single date variant object byte currency decimal char short range worksheet workbook collection dictionary",constants:"true false nothing null empty vbnullstring vbcrlf vblf vbtab vbnewline vbyes vbno vbokonly",builtins:"msgbox inputbox format len left right mid trim ltrim rtrim ucase lcase replace split join instr cstr cint clng cdbl cbool cdate val isempty isnumeric isnull isarray isobject now date time dateadd datediff year month day ubound lbound array createobject",caseInsensitive:!0,rules:[{match:/(?<=^\s*|:\s*)Rem\b.*/i,type:"comment"},{match:/#\d{1,2}\/\d{1,2}\/\d{2,4}#/,type:"number"},{match:/(?<=^\s*)#(?:If|Else|ElseIf|End If|Const)\b.*/i,type:"meta"},{match:/(?<=^\s*)Attribute\b.*/i,type:"meta"},{match:/\s_$/,type:"operator"}]});var at=o({lineComment:["--"],blockComment:[["--[[","]]"]],strings:[{open:"[[",close:"]]",escape:!1,multiline:!0},{open:'"'},{open:"'"}],keywords:"and break do else elseif end for function goto if in local not or repeat return then until while",constants:"true false nil",builtins:"print pairs ipairs require type tostring tonumber assert error pcall setmetatable getmetatable select next"});var B=["${","}"],st=o({...u,strings:[{open:"r'''",close:"'''",escape:!1,multiline:!0},{open:'r"""',close:'"""',escape:!1,multiline:!0},{open:"'''",multiline:!0,interpolate:B},{open:'"""',multiline:!0,interpolate:B},{open:"r'",close:"'",escape:!1},{open:'r"',close:'"',escape:!1},{open:"'",interpolate:B},{open:'"',interpolate:B}],keywords:"abstract as assert async await base break case catch class const continue covariant default deferred do dynamic else enum export extends extension external factory final finally for get hide if implements import in interface is late library mixin new on operator part required rethrow return sealed set show static super switch sync this throw try typedef var when while with yield",constants:"true false null",types:"int double num bool String List Map Set Future Stream void Object Never Iterable Function",rules:[{match:/@[A-Za-z_]\w*/,type:"meta"}],classNames:!0});var it=["#{","}"],lt=o({lineComment:["#"],strings:[{open:'"""',multiline:!0,interpolate:it},{open:'"',interpolate:it},{open:"'"}],keywords:"def defp defmodule defmacro defmacrop defstruct defprotocol defimpl defdelegate defguard do end fn case cond with when if else unless import alias use require quote unquote receive after try catch rescue raise and or not in for",constants:"true false nil",rules:[{match:/@[a-z_]\w*/,type:"meta"},{match:/(?<![:\w]):[A-Za-z_]\w*[?!]?/,type:"constant"},{match:/\b[a-z_]\w*[?!]?:(?=\s)/,type:"constant"},{match:/~[a-zA-Z](?:"[^"]*"|\/[^/]*\/|\([^)]*\)|\[[^\]]*\]|\{[^}]*\})[a-z]*/,type:"regex"}],identifier:/[A-Za-z_]\w*[?!]?/,classNames:!0});var ct=o({lineComment:["#"],strings:[...g,{open:"`",escape:!1,type:"variable"}],keywords:"function if else for while repeat in next break return",constants:"TRUE FALSE NULL NA NA_integer_ NA_real_ NA_character_ Inf NaN T F",rules:[{match:/<<-|->>|<-|->|%[^%\s]*%|\|>/,type:"operator"}],identifier:/[A-Za-z_.][\w.]*/});var pt=o({lineComment:["//"],strings:[{open:'"'},{open:"'"}],keywords:"const var fn pub return if else while for switch struct enum union opaque error try catch defer errdefer comptime inline export extern test and or orelse unreachable break continue noreturn align packed threadlocal usingnamespace async await suspend resume nosuspend asm volatile allowzero callconv linksection noalias",constants:"true false null undefined",types:"i8 i16 i32 i64 i128 isize u8 u16 u32 u64 u128 usize f16 f32 f64 f128 bool void anyerror anytype anyopaque type comptime_int comptime_float c_int c_uint",rules:[{match:/\\\\.*/,type:"string"},{match:/@[A-Za-z_]\w*/,type:"function"}],classNames:!0});var mt=["${","}"],an=["s","f","raw"].flatMap(e=>[{open:`${e}"""`,close:'"""',multiline:!0,escape:!1,interpolate:mt},{open:`${e}"`,close:'"',escape:e!=="raw",interpolate:mt}]),ut=o({...u,strings:[...an,{open:'"""',multiline:!0,escape:!1},{open:'"'},{open:"'"}],keywords:"abstract case catch class def do else enum export extends final finally for forSome given if implicit import lazy match new object override package private protected return sealed super then this throw trait try type using val var while with yield end",constants:"true false null",types:"Int Long Double Float Boolean String Unit Any AnyRef Nothing Option Some None List Map Seq Vector Future",rules:[{match:/@[A-Za-z_]\w*/,type:"meta"}],classNames:!0});var ft=o({lineComment:["--"],blockComment:[["{-","-}"]],strings:[{open:'"'}],keywords:"module where import qualified as hiding data type newtype class instance deriving let in case of if then else do forall infixl infixr infix family default",constants:"True False Nothing Just Left Right",rules:[{match:/'(?:[^'\\]|\\.)'/,type:"string"},{match:/(?<=^)[a-z_][\w']*(?=\s*::)/,type:"function"}],identifier:/[A-Za-z_][\w']*/,calls:!1,classNames:!0});var dt=["$(",")"],gt=o({lineComment:["#"],blockComment:[["#=","=#"]],strings:[{open:'"""',multiline:!0,interpolate:dt},{open:'"',interpolate:dt},{open:"`",type:"string"}],keywords:"function end if elseif else for while return module baremodule using import export struct mutable abstract primitive type begin let do try catch finally macro quote local global const where in isa break continue",constants:"true false nothing missing NaN Inf pi",types:"Int Int8 Int16 Int32 Int64 UInt8 Float32 Float64 Bool String Char Vector Matrix Array Dict Tuple Any Nothing",rules:[{match:/@[A-Za-z_]\w*/,type:"meta"},{match:/'(?:[^'\\]|\\.)'/,type:"string"}],identifier:/[A-Za-z_]\w*!?/,classNames:!0});var ht=o({lineComment:["#"],strings:[{open:'"'},{open:"'"}],constants:"on off",rules:[{match:/(?<=^\s*)(?:http|server|location|upstream|events|stream|map|if|include|types|geo|split_clients|limit_except)\b/,type:"keyword"},{match:/\$[A-Za-z_]\w*/,type:"variable"},{match:/(?<=^\s*)(?!(?:http|server|location|upstream|events|stream|map|if|include|types|geo|split_clients|limit_except)\b)[a-z_]\w*(?=\s)(?!\s*\{)/,type:"property"},{match:/(?<=location\s+)(?:[=~^*]+\s*)?[^\s{]+/,type:"string"}],identifier:/[A-Za-z_][\w.-]*/,calls:!1});var yt=o({strings:[{open:'"'},{open:"'",escape:!1}],keywords:"include ifeq ifneq ifdef ifndef else endif define endef export unexport override vpath",rules:[{match:/(?<=^|\s)#.*/,type:"comment"},{match:/\$[({][^)}]*[)}]|\$[@<^?*%+]/,type:"variable"},{match:/^(?:\.PHONY|[\w./%${}()-]+(?:\s+[\w./%${}()-]+)*)(?=\s*::?(?!=))/,type:"function"},{match:/^[A-Za-z_][\w.-]*(?=\s*(?:[:?+!]?=))/,type:"property"}],identifier:/[A-Za-z_][\w-]*/,calls:!1});var bt=o({strings:[{open:'"'},{open:"'",escape:!1}],constants:"true false yes no on off",caseInsensitive:!0,rules:[{match:/(?<=^\s*)[;#].*/,type:"comment"},{match:/(?<=^\s*)\[[^\]]*\]/,type:"tag"},{match:/(?<=^\s*)(?:export\s+)?[^\s=:;#[][^=:]*?(?=\s*[=:])/,type:"property"},{match:/\$\{[^}]*\}|\$[A-Za-z_]\w*/,type:"variable"}],identifier:/[A-Za-z_][\w.-]*/,calls:!1});var wt=o({...u,strings:g,keywords:"syntax edition package import public weak message enum service rpc returns option repeated optional required oneof map reserved extensions extend stream to max",types:"double float int32 int64 uint32 uint64 sint32 sint64 fixed32 fixed64 sfixed32 sfixed64 bool string bytes",constants:"true false",calls:!1,classNames:!0});var xt=o({...u,strings:g,keywords:"pragma solidity contract interface library abstract function modifier event emit error returns return if else for while do break continue public private internal external view pure payable memory storage calldata constant immutable override virtual mapping struct enum require revert assert using import is new delete try catch unchecked constructor fallback receive anonymous indexed",types:"address bool string bytes byte int uint uint8 uint16 uint32 uint64 uint128 uint256 int8 int16 int32 int64 int128 int256 bytes1 bytes4 bytes8 bytes16 bytes32",constants:"true false wei gwei ether seconds minutes hours days weeks",rules:[{match:/\b(?:msg|block|tx|abi)\.\w+/,type:"variable"}],classNames:!0});var kt=["${","}"],vt=o({...u,strings:[{open:'"""',multiline:!0,interpolate:kt},{open:"'''",multiline:!0},{open:'"',interpolate:kt},{open:"'"}],keywords:"def var class interface enum trait import package return if else for while do switch case default break continue new in as instanceof try catch finally throw throws static final abstract private protected public assert extends implements this super",constants:"true false null",types:"int long double float boolean char byte short void String Object List Map",rules:[{match:/@[A-Za-z_]\w*/,type:"meta"}],classNames:!0});var Lt=["${","}"],St=o({lineComment:["#"],blockComment:[["/*","*/"]],strings:[{open:"''",multiline:!0,escape:!1,interpolate:Lt},{open:'"',multiline:!0,interpolate:Lt}],keywords:"let in with rec inherit if then else assert or",constants:"true false null",builtins:"import builtins derivation fetchurl fetchTarball fetchGit toString map throw abort",rules:[{match:/[A-Za-z_][\w'-]*(?:\.[A-Za-z_][\w'-]*)*(?=\s*=(?!=))/,type:"property"},{match:/(?:\.{0,2}\/|~\/)[\w./-]+|<[\w./-]+>/,type:"string"}],identifier:/[A-Za-z_][\w'-]*/,calls:!1});var Et=o({lineComment:["#"],blockComment:[["#[[","]]"]],strings:[{open:'"',multiline:!0}],keywords:"if elseif else endif foreach endforeach while endwhile function endfunction macro endmacro return break continue",caseInsensitive:!0,rules:[{match:/\$\{[^}]*\}|\$ENV\{[^}]*\}/,type:"variable"},{match:/\b[A-Z][A-Z0-9_]{1,}\b/,type:"constant"}]});var At=o({lineComment:["//"],strings:[{open:'"'}],keywords:"model enum datasource generator type view",types:"String Int BigInt Float Decimal Boolean DateTime Json Bytes Unsupported",constants:"true false null",rules:[{match:/@@?[A-Za-z_][\w.]*/,type:"meta"},{match:/(?<=^\s*)(?!(?:model|enum|datasource|generator|type|view)\b)[a-z_]\w*(?=\s+[A-Za-z])/,type:"property"},{match:/(?<=^\s*)[a-z_]\w*(?=\s*=)/,type:"property"}],classNames:!0});var _t={javascript:F,typescript:Ve,tsx:Ye,json:H,python:Pe,bash:D,ruby:Ue,php:De,go:ze,rust:Fe,java:Ze,c:_e,cpp:Ce,csharp:Te,sql:He,css:q,yaml:Ke,xml:Je,diff:Ne,kotlin:Me,swift:We,dockerfile:Oe,toml:Ge,markdown:Ie,graphql:Re,powershell:qe,hcl:$e,lua:at,dart:st,elixir:lt,r:ct,zig:pt,scala:ut,haskell:ft,julia:gt,nginx:ht,makefile:yt,ini:bt,protobuf:wt,solidity:xt,groovy:vt,nix:St,cmake:Et,prisma:At,shellsession:Xe,http:et,scss:tt,mermaid:nt,latex:rt,vba:ot,plaintext:M};var W=new Map(Object.entries(_t)),Ct=new Map(Object.entries({js:"javascript",jsx:"javascript",mjs:"javascript",cjs:"javascript",node:"javascript",ts:"typescript",mts:"typescript",cts:"typescript",jsonc:"json",json5:"json",py:"python",python3:"python",sh:"bash",shell:"bash",zsh:"bash",shellscript:"bash",rb:"ruby",golang:"go",rs:"rust",h:"c","c++":"cpp",cc:"cpp",cxx:"cpp",hpp:"cpp",cs:"csharp","c#":"csharp",postgres:"sql",postgresql:"sql",mysql:"sql",sqlite:"sql",plsql:"sql",yml:"yaml",html:"xml",xhtml:"xml",svg:"xml",vue:"xml",svelte:"xml",patch:"diff",kt:"kotlin",kts:"kotlin",docker:"dockerfile",containerfile:"dockerfile",md:"markdown",mdx:"markdown",gql:"graphql",ps1:"powershell",pwsh:"powershell",ps:"powershell",terraform:"hcl",tf:"hcl",tfvars:"hcl",opentofu:"hcl",luau:"lua",ex:"elixir",exs:"elixir",heex:"elixir",rscript:"r",jl:"julia",sc:"scala",hs:"haskell",lhs:"haskell","nginx.conf":"nginx",make:"makefile",mk:"makefile",mak:"makefile",gnumakefile:"makefile",cfg:"ini",properties:"ini",env:"ini",dotenv:"ini",editorconfig:"ini",gitconfig:"ini",proto:"protobuf",proto3:"protobuf",sol:"solidity",gradle:"groovy",gvy:"groovy",jenkinsfile:"groovy",cmakelists:"cmake","cmakelists.txt":"cmake",console:"shellsession",terminal:"shellsession","shell-session":"shellsession","sh-session":"shellsession",pwshsession:"shellsession",https:"http",rest:"http","rest-client":"http",sass:"scss",less:"scss",mmd:"mermaid",tex:"latex",context:"latex",vb:"vba",vbnet:"vba","vb.net":"vba",vbscript:"vba",vbs:"vba","visual-basic":"vba",visualbasic:"vba",text:"plaintext",txt:"plaintext",plain:"plaintext","":"plaintext"}));function z(e){let t=(e??"").trim().toLowerCase();return W.get(t)??W.get(Ct.get(t)??"")}function ie(e,t,s=[]){W.set(e.toLowerCase(),t);for(let r of s)Ct.set(r.toLowerCase(),e.toLowerCase())}function le(){return[...W.keys()]}var Tt=e=>typeof e=="object"?e:z(e)??M,sn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function R(e){return e.replace(/[&<>"]/g,t=>sn[t])}function _(e){let t="";for(let s of e)t+=s.type?`<span class="cl-${s.type}">${R(s.text)}</span>`:R(s.text);return t}function G(e,t){let s=Tt(t),r=null;return e.split(`
3
+ `).map(a=>{let n=s.tokenizeLine(a.replace(/\r$/,""),r);return r=n.state,n.tokens})}function $(e,t,s){let r=G(e,t).map(_);if(!Ee(s))return r.join(`
4
+ `);let a=I(s.highlightLines);return r.map((n,c)=>Ae(n,c+1,!!s.lineNumbers,a)).join(`
5
+ `)}function Z(e){let t=Tt(e),s=null,r="",a="";return{get text(){return a},push(n){a+=n,r+=n;let c=[],l;for(;(l=r.indexOf(`
6
+ `))>=0;){let h=t.tokenizeLine(r.slice(0,l).replace(/\r$/,""),s);c.push(h.tokens),s=h.state,r=r.slice(l+1)}return{lines:c,tail:t.tokenizeLine(r.replace(/\r$/,""),s).tokens}}}}var ln=/(?:^|\s)language-(\S+)/,ce=(e,t)=>e.getAttribute(t)??e.parentElement?.getAttribute(t)??null;function cn(e){return ce(e,"data-lang")??ln.exec(e.className)?.[1]??""}function Q(e,t=cn(e),s={}){let r=s.lineNumbers??ce(e,"data-line-numbers")!=null,a=s.highlightLines??ce(e,"data-highlight-lines")??void 0;e.innerHTML=$(e.textContent??"",t,{lineNumbers:r,highlightLines:a}),e.classList.add("cl"),e.setAttribute("data-cl",t),s.copyButton&&T(e)}function pe(e,t={}){let s=!!e&&typeof e.querySelectorAll=="function",r=s?e:void 0,a=s?t:{...e,...t};if(!r&&typeof document>"u")return;let n=()=>{for(let c of(r??document).querySelectorAll("pre > code:not([data-cl])"))Q(c,void 0,a)};!r&&document.readyState==="loading"?document.addEventListener("DOMContentLoaded",n,{once:!0}):n()}function me(e,t={}){let s=e.ownerDocument,r=!!t.lineNumbers,a=I(t.highlightLines),n=t.lang,c,l,h=0,v=(b,k)=>{b.className=K(k,r,a),(r||a.size)&&b.setAttribute("data-line",String(k))},E=()=>{c=Z(n),h=0,l=s.createElement("span"),v(l,1),e.replaceChildren(l)};e.classList.add("cl"),E();let L={get text(){return c.text},get lang(){return n},write(b){if(!b)return;let{lines:k,tail:i}=c.push(b);if(k.length){let S=s.createDocumentFragment();for(let d of k){let f=s.createElement("span");v(f,++h),f.innerHTML=_(d),S.append(f,`
7
+ `)}e.insertBefore(S,l),v(l,h+1)}l.innerHTML=_(i)},set(b){let k=c.text;if(b!==k){if(b.startsWith(k))return L.write(b.slice(k.length));E(),L.write(b)}},reset(b){b!==void 0&&(n=b),E()}};return L}var pn=/^ {0,3}(`{3,}|~{3,})(.*)$/,Nt=/^ {0,3}(?:`{1,2}|~{1,2})$/;function ue(e){let t=e.split(`
8
+ `),s=[],r=[],a=()=>{r.length&&s.push({type:"text",text:r.join(`
9
+ `)}),r=[]},n=0;for(;n<t.length;){let c=t[n].replace(/\r$/,""),l=pn.exec(c);if(!l||l[1][0]==="`"&&l[2].includes("`")){r.push(c),n++;continue}a();let h=l[1],v=n<t.length-1,E=new RegExp(`^ {0,3}${h[0]==="`"?"`":"~"}{${h.length},}\\s*$`),L=[],b=!1,k=n+1;for(;k<t.length;k++){let S=t[k].replace(/\r$/,"");if(E.test(S)){b=!0;break}L.push(S)}let i;b?i=L.map(S=>S+`
10
+ `).join(""):(L.length&&Nt.test(L[L.length-1])&&(L[L.length-1]=""),i=L.join(`
11
+ `)),s.push({type:"code",lang:v?l[2].trim().split(/\s+/)[0]??"":"",code:i,closed:b}),n=b?k+1:k}return r.length&&Nt.test(r[r.length-1])&&r.pop(),a(),s}var Ot=`/*!
12
12
  codelight.js theme: default
13
13
  Light or dark to match the system. To force one, put a cl-light or cl-dark class
14
14
  (or light / dark, or data-theme="light" / "dark") on the code or any parent.
@@ -183,7 +183,7 @@ pre > code.cl {
183
183
  opacity: 0.8;
184
184
  }
185
185
  .cl-copy:hover, .cl-copy:focus-visible { opacity: 1; }
186
- `;var B=nt;function pe(t=document){if(t.getElementById("codelight-theme"))return;let e=t.createElement("style");e.id="codelight-theme",e.textContent=B,t.head.append(e)}var Tt={addCopyButton:A,createMarkup:N,createStream:M,defineLanguage:i,escapeHtml:z,getLanguage:R,highlight:j,highlightAll:ie,highlightElement:H,injectTheme:pe,listLanguages:ae,mount:le,registerLanguage:oe,renderLine:C,splitFences:ce,themeCss:B,tokenize:W},Ot=Tt;return ct(Nt);})();
186
+ `;var V=Ot;function fe(e=document){if(e.getElementById("codelight-theme"))return;let t=e.createElement("style");t.id="codelight-theme",t.textContent=V,e.head.append(t)}var un={addCopyButton:T,createMarkup:O,createStream:Z,defineLanguage:o,escapeHtml:R,getLanguage:z,highlight:$,highlightAll:pe,highlightElement:Q,injectTheme:fe,listLanguages:le,mount:me,registerLanguage:ie,renderLine:_,splitFences:ue,themeCss:V,tokenize:G},fn=un;return It(dn);})();
187
187
  /*!
188
188
  codelight.js — syntax highlighting for code that streams in, like AI chat replies.
189
189
  MIT License · https://github.com/codelightjs/codelight.js