!function(e,t){"object"==typeofexports&&"undefined"!=typeofmodule?module.exports=t():"function"==typeofdefine&&define.amd?define(t):(e="undefined"!=typeofglobalThis?globalThis:e||self).RevealHighlight=t()}(this,(function(){"use strict";functione(t){returntinstanceofMap?t.clear=t.delete=t.set=function(){thrownewError("map is read-only")}:tinstanceofSet&&(t.add=t.clear=t.delete=function(){thrownewError("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach((function(a){varn=t[a];"object"!=typeofn||Object.isFrozen(n)||e(n)})),t}vart=e,a=e;t.default=a;classn{constructor(e){void0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}functioni(e){returne.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}functionr(e,...t){consta=Object.create(null);for(consttine)a[t]=e[t];returnt.forEach((function(e){for(consttine)a[t]=e[t]})),a}consts=e=>!!e.kind;classo{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=i(e)}openNode(e){if(!s(e))return;lett=e.kind;e.sublanguage||(t=`${this.classPrefix}${t}`),this.span(t)}closeNode(e){s(e)&&(this.buffer+="</span>")}value(){returnthis.buffer}span(e){this.buffer+=`<span class="${e}">`}}classl{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}gettop(){returnthis.stack[this.stack.length-1]}getroot(){returnthis.rootNode}add(e){this.top.children.push(e)}openNode(e){constt={kind:e,children:[]};this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)returnthis.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){returnJSON.stringify(this.rootNode,null,4)}walk(e){returnthis.constructor._walk(e,this.rootNode)}static_walk(e,t){return"string"==typeoft?e.addText(t):t.children&&(e.openNode(t),t.children.forEach((t=>this._walk(e,t))),e.closeNode(t)),e}static_collapse(e){"string"!=typeofe&&e.children&&(e.children.every((e=>"string"==typeofe))?e.children=[e.children.join("")]:e.children.forEach((e=>{l._collapse(e)})))}}classcextendsl{constructor(e){super(),this.options=e}addKeyword(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())}addText(e){""!==e&&this.add(e)}addSublanguage(e,t){consta=e.root;a.kind=t,a.sublanguage=!0,this.add(a)}toHTML(){returnnewo(this,this.options).value()}finalize(){return!0}}function_(e){returne?"string"==typeofe?e:e.source:null}constd=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;constm="[a-zA-Z]\\w*",u="[a-zA-Z_]\\w*",p="\\b\\d+(\\.\\d+)?",g="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",E="\\b(0b[01]+)",S={begin:"\\\\[\\s\\S]",relevance:0},b={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[S]},T={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[S]},f={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},C=function(e,t,a={}){constn=r({className:"comment",begin:e,end:t,contains:[]},a);returnn.contains.push(f),n.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),n},N=C("//","$"),R=C("/\\*","\\*/"),O=C("#","$"),h={className:"number",begin:p,relevance:0},v={className:"number",begin:g,relevance:0},I={className:"number",begin:E,relevance:0},A={className:"number",begin:p+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},y={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[S,{begin:/\[/,end:/\]/,relevance:0,contains:[S]}]}]},D={className:"title",begin:m,relevance:0},M={className:"title",begin:u,relevance:0},L={begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0};varx=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:m,UNDERSCORE_IDENT_RE:u,NUMBER_RE:p,C_NUMBER_RE:g,BINARY_NUMBER_RE:E,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\