1/*!
2 Highlight.js v11.11.1 (git: d301848ccf)
3 (c) 2006-2025 Josh Goebel <hello@joshgoebel.com> and other contributors
4 License: BSD-3-Clause
5 */
6var hljs=function(){"use strict";function e(n){
7return n instanceof Map?n.clear=n.delete=n.set=()=>{
8throw Error("map is read-only")}:n instanceof Set&&(n.add=n.clear=n.delete=()=>{
9throw Error("set is read-only")
10}),Object.freeze(n),Object.getOwnPropertyNames(n).forEach((t=>{
11const a=n[t],s=typeof a;"object"!==s&&"function"!==s||Object.isFrozen(a)||e(a)
12})),n}class n{constructor(e){
13void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}
14ignoreMatch(){this.isMatchIgnored=!0}}function t(e){
15return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")
16}function a(e,...n){const t=Object.create(null);for(const n in e)t[n]=e[n]
17;return n.forEach((e=>{for(const n in e)t[n]=e[n]})),t}const s=e=>!!e.scope
18;class i{constructor(e,n){
19this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){
20this.buffer+=t(e)}openNode(e){if(!s(e))return;const n=((e,{prefix:n})=>{
21if(e.startsWith("language:"))return e.replace("language:","language-")
22;if(e.includes(".")){const t=e.split(".")
23;return[`${n}${t.shift()}`,...t.map(((e,n)=>`${e}${"_".repeat(n+1)}`))].join(" ")
24}return`${n}${e}`})(e.scope,{prefix:this.classPrefix});this.span(n)}
25closeNode(e){s(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){
26this.buffer+=`<span class="${e}">`}}const r=(e={})=>{const n={children:[]}
27;return Object.assign(n,e),n};class o{constructor(){
28this.rootNode=r(),this.stack=[this.rootNode]}get top(){
29return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){
30this.top.children.push(e)}openNode(e){const n=r({scope:e})
31;this.add(n),this.stack.push(n)}closeNode(){
32if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){
33for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}
34walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,n){
35return"string"==typeof n?e.addText(n):n.children&&(e.openNode(n),
36n.children.forEach((n=>this._walk(e,n))),e.closeNode(n)),e}static _collapse(e){
37"string"!=typeof e&&e.children&&(e.children.every((e=>"string"==typeof e))?e.children=[e.children.join("")]:e.children.forEach((e=>{
38o._collapse(e)})))}}class c extends o{constructor(e){super(),this.options=e}
39addText(e){""!==e&&this.add(e)}startScope(e){this.openNode(e)}endScope(){
40this.closeNode()}__addSublanguage(e,n){const t=e.root
41;n&&(t.scope="language:"+n),this.add(t)}toHTML(){
42return new i(this,this.options).value()}finalize(){
43return this.closeAllNodes(),!0}}function l(e){
44return e?"string"==typeof e?e:e.source:null}function d(e){return h("(?=",e,")")}
45function g(e){return h("(?:",e,")*")}function u(e){return h("(?:",e,")?")}
46function h(...e){return e.map((e=>l(e))).join("")}function b(...e){const n=(e=>{
47const n=e[e.length-1]
48;return"object"==typeof n&&n.constructor===Object?(e.splice(e.length-1,1),n):{}
49})(e);return"("+(n.capture?"":"?:")+e.map((e=>l(e))).join("|")+")"}
50function p(e){return RegExp(e.toString()+"|").exec("").length-1}
51const m=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./
52;function f(e,{joinWith:n}){let t=0;return e.map((e=>{t+=1;const n=t
53;let a=l(e),s="";for(;a.length>0;){const e=m.exec(a);if(!e){s+=a;break}
54s+=a.substring(0,e.index),
55a=a.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?s+="\\"+(Number(e[1])+n):(s+=e[0],
56"("===e[0]&&t++)}return s})).map((e=>`(${e})`)).join(n)}
57const E="[a-zA-Z]\\w*",_="[a-zA-Z_]\\w*",y="\\b\\d+(\\.\\d+)?",w="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",N="\\b(0b[01]+)",S={
58begin:"\\\\[\\s\\S]",relevance:0},v={scope:"string",begin:"'",end:"'",
59illegal:"\\n",contains:[S]},x={scope:"string",begin:'"',end:'"',illegal:"\\n",
60contains:[S]},A=(e,n,t={})=>{const s=a({scope:"comment",begin:e,end:n,
61contains:[]},t);s.contains.push({scope:"doctag",
62begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",
63end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0})
64;const i=b("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/)
65;return s.contains.push({begin:h(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),s
66},k=A("//","$"),O=A("/\\*","\\*/"),R=A("#","$");var M=Object.freeze({
67__proto__:null,APOS_STRING_MODE:v,BACKSLASH_ESCAPE:S,BINARY_NUMBER_MODE:{
68scope:"number",begin:N,relevance:0},BINARY_NUMBER_RE:N,COMMENT:A,
69C_BLOCK_COMMENT_MODE:O,C_LINE_COMMENT_MODE:k,C_NUMBER_MODE:{scope:"number",
70begin:w,relevance:0},C_NUMBER_RE:w,END_SAME_AS_BEGIN:e=>Object.assign(e,{
71"on:begin":(e,n)=>{n.data._beginMatch=e[1]},"on:end":(e,n)=>{
72n.data._beginMatch!==e[1]&&n.ignoreMatch()}}),HASH_COMMENT_MODE:R,IDENT_RE:E,
73MATCH_NOTHING_RE:/\b\B/,METHOD_GUARD:{begin:"\\.\\s*"+_,relevance:0},
74NUMBER_MODE:{scope:"number",begin:y,relevance:0},NUMBER_RE:y,
75PHRASAL_WORDS_MODE:{
76begin:/\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/
77},QUOTE_STRING_MODE:x,REGEXP_MODE:{scope:"regexp",begin:/\/(?=[^/\n]*\/)/,
78end:/\/[gimuy]*/,contains:[S,{begin:/\[/,end:/\]/,relevance:0,contains:[S]}]},
79RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",
80SHEBANG:(e={})=>{const n=/^#![ ]*\//
81;return e.binary&&(e.begin=h(n,/.*\b/,e.binary,/\b.*/)),a({scope:"meta",begin:n,
82end:/$/,relevance:0,"on:begin":(e,n)=>{0!==e.index&&n.ignoreMatch()}},e)},
83TITLE_MODE:{scope:"title",begin:E,relevance:0},UNDERSCORE_IDENT_RE:_,
84UNDERSCORE_TITLE_MODE:{scope:"title",begin:_,relevance:0}});function T(e,n){
85"."===e.input[e.index-1]&&n.ignoreMatch()}function I(e,n){
86void 0!==e.className&&(e.scope=e.className,delete e.className)}function C(e,n){
87n&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",
88e.__beforeBegin=T,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,
89void 0===e.relevance&&(e.relevance=0))}function B(e,n){
90Array.isArray(e.illegal)&&(e.illegal=b(...e.illegal))}function $(e,n){
91if(e.match){
92if(e.begin||e.end)throw Error("begin & end are not supported with match")
93;e.begin=e.match,delete e.match}}function L(e,n){
94void 0===e.relevance&&(e.relevance=1)}const D=(e,n)=>{if(!e.beforeMatch)return
95;if(e.starts)throw Error("beforeMatch cannot be used with starts")
96;const t=Object.assign({},e);Object.keys(e).forEach((n=>{delete e[n]
97})),e.keywords=t.keywords,e.begin=h(t.beforeMatch,d(t.begin)),e.starts={
98relevance:0,contains:[Object.assign(t,{endsParent:!0})]
99},e.relevance=0,delete t.beforeMatch
100},j=["of","and","for","in","not","or","if","then","parent","list","value"]
101;function P(e,n,t="keyword"){const a=Object.create(null)
102;return"string"==typeof e?s(t,e.split(" ")):Array.isArray(e)?s(t,e):Object.keys(e).forEach((t=>{
103Object.assign(a,P(e[t],n,t))})),a;function s(e,t){
104n&&(t=t.map((e=>e.toLowerCase()))),t.forEach((n=>{const t=n.split("|")
105;a[t[0]]=[e,z(t[0],t[1])]}))}}function z(e,n){
106return n?Number(n):(e=>j.includes(e.toLowerCase()))(e)?0:1}const H={},U=e=>{
107console.error(e)},F=(e,...n)=>{console.log("WARN: "+e,...n)},Z=(e,n)=>{
108H[`${e}/${n}`]||(console.log(`Deprecated as of ${e}. ${n}`),H[`${e}/${n}`]=!0)
109},K=Error();function G(e,n,{key:t}){let a=0;const s=e[t],i={},r={}
110;for(let e=1;e<=n.length;e++)r[e+a]=s[e],i[e+a]=!0,a+=p(n[e-1])
111;e[t]=r,e[t]._emit=i,e[t]._multi=!0}function q(e){(e=>{
112e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,
113delete e.scope)})(e),"string"==typeof e.beginScope&&(e.beginScope={
114_wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope
115}),(e=>{if(Array.isArray(e.begin)){
116if(e.skip||e.excludeBegin||e.returnBegin)throw U("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),
117K
118;if("object"!=typeof e.beginScope||null===e.beginScope)throw U("beginScope must be object"),
119K;G(e,e.begin,{key:"beginScope"}),e.begin=f(e.begin,{joinWith:""})}})(e),(e=>{
120if(Array.isArray(e.end)){
121if(e.skip||e.excludeEnd||e.returnEnd)throw U("skip, excludeEnd, returnEnd not compatible with endScope: {}"),
122K
123;if("object"!=typeof e.endScope||null===e.endScope)throw U("endScope must be object"),
124K;G(e,e.end,{key:"endScope"}),e.end=f(e.end,{joinWith:""})}})(e)}function W(e){
125function n(n,t){
126return RegExp(l(n),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(t?"g":""))
127}class t{constructor(){
128this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}
129addRule(e,n){
130n.position=this.position++,this.matchIndexes[this.matchAt]=n,this.regexes.push([n,e]),
131this.matchAt+=p(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null)
132;const e=this.regexes.map((e=>e[1]));this.matcherRe=n(f(e,{joinWith:"|"
133}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex
134;const n=this.matcherRe.exec(e);if(!n)return null
135;const t=n.findIndex(((e,n)=>n>0&&void 0!==e)),a=this.matchIndexes[t]
136;return n.splice(0,t),Object.assign(n,a)}}class s{constructor(){
137this.rules=[],this.multiRegexes=[],
138this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){
139if(this.multiRegexes[e])return this.multiRegexes[e];const n=new t
140;return this.rules.slice(e).forEach((([e,t])=>n.addRule(e,t))),
141n.compile(),this.multiRegexes[e]=n,n}resumingScanAtSamePosition(){
142return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,n){
143this.rules.push([e,n]),"begin"===n.type&&this.count++}exec(e){
144const n=this.getMatcher(this.regexIndex);n.lastIndex=this.lastIndex
145;let t=n.exec(e)
146;if(this.resumingScanAtSamePosition())if(t&&t.index===this.lastIndex);else{
147const n=this.getMatcher(0);n.lastIndex=this.lastIndex+1,t=n.exec(e)}
148return t&&(this.regexIndex+=t.position+1,
149this.regexIndex===this.count&&this.considerAll()),t}}
150if(e.compilerExtensions||(e.compilerExtensions=[]),
151e.contains&&e.contains.includes("self"))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.")
152;return e.classNameAliases=a(e.classNameAliases||{}),function t(i,r){const o=i
153;if(i.isCompiled)return o
154;[I,$,q,D].forEach((e=>e(i,r))),e.compilerExtensions.forEach((e=>e(i,r))),
155i.__beforeBegin=null,[C,B,L].forEach((e=>e(i,r))),i.isCompiled=!0;let c=null
156;return"object"==typeof i.keywords&&i.keywords.$pattern&&(i.keywords=Object.assign({},i.keywords),
157c=i.keywords.$pattern,
158delete i.keywords.$pattern),c=c||/\w+/,i.keywords&&(i.keywords=P(i.keywords,e.case_insensitive)),
159o.keywordPatternRe=n(c,!0),
160r&&(i.begin||(i.begin=/\B|\b/),o.beginRe=n(o.begin),i.end||i.endsWithParent||(i.end=/\B|\b/),
161i.end&&(o.endRe=n(o.end)),
162o.terminatorEnd=l(o.end)||"",i.endsWithParent&&r.terminatorEnd&&(o.terminatorEnd+=(i.end?"|":"")+r.terminatorEnd)),
163i.illegal&&(o.illegalRe=n(i.illegal)),
164i.contains||(i.contains=[]),i.contains=[].concat(...i.contains.map((e=>(e=>(e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((n=>a(e,{
165variants:null},n)))),e.cachedVariants?e.cachedVariants:X(e)?a(e,{
166starts:e.starts?a(e.starts):null
167}):Object.isFrozen(e)?a(e):e))("self"===e?i:e)))),i.contains.forEach((e=>{t(e,o)
168})),i.starts&&t(i.starts,r),o.matcher=(e=>{const n=new s
169;return e.contains.forEach((e=>n.addRule(e.begin,{rule:e,type:"begin"
170}))),e.terminatorEnd&&n.addRule(e.terminatorEnd,{type:"end"
171}),e.illegal&&n.addRule(e.illegal,{type:"illegal"}),n})(o),o}(e)}function X(e){
172return!!e&&(e.endsWithParent||X(e.starts))}class V extends Error{
173constructor(e,n){super(e),this.name="HTMLInjectionError",this.html=n}}
174const J=t,Q=a,Y=Symbol("nomatch"),ee=t=>{
175const a=Object.create(null),s=Object.create(null),i=[];let r=!0
176;const o="Could not find the language '{}', did you forget to load/include a language module?",l={
177disableAutodetect:!0,name:"Plain text",contains:[]};let p={
178ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,
179languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",
180cssSelector:"pre code",languages:null,__emitter:c};function m(e){
181return p.noHighlightRe.test(e)}function f(e,n,t){let a="",s=""
182;"object"==typeof n?(a=e,
183t=n.ignoreIllegals,s=n.language):(Z("10.7.0","highlight(lang, code, ...args) has been deprecated."),
184Z("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),
185s=e,a=n),void 0===t&&(t=!0);const i={code:a,language:s};A("before:highlight",i)
186;const r=i.result?i.result:E(i.language,i.code,t)
187;return r.code=i.code,A("after:highlight",r),r}function E(e,t,s,i){
188const c=Object.create(null);function l(){if(!A.keywords)return void O.addText(R)
189;let e=0;A.keywordPatternRe.lastIndex=0;let n=A.keywordPatternRe.exec(R),t=""
190;for(;n;){t+=R.substring(e,n.index)
191;const s=N.case_insensitive?n[0].toLowerCase():n[0],i=(a=s,A.keywords[a]);if(i){
192const[e,a]=i
193;if(O.addText(t),t="",c[s]=(c[s]||0)+1,c[s]<=7&&(M+=a),e.startsWith("_"))t+=n[0];else{
194const t=N.classNameAliases[e]||e;g(n[0],t)}}else t+=n[0]
195;e=A.keywordPatternRe.lastIndex,n=A.keywordPatternRe.exec(R)}var a
196;t+=R.substring(e),O.addText(t)}function d(){null!=A.subLanguage?(()=>{
197if(""===R)return;let e=null;if("string"==typeof A.subLanguage){
198if(!a[A.subLanguage])return void O.addText(R)
199;e=E(A.subLanguage,R,!0,k[A.subLanguage]),k[A.subLanguage]=e._top
200}else e=_(R,A.subLanguage.length?A.subLanguage:null)
201;A.relevance>0&&(M+=e.relevance),O.__addSublanguage(e._emitter,e.language)
202})():l(),R=""}function g(e,n){
203""!==e&&(O.startScope(n),O.addText(e),O.endScope())}function u(e,n){let t=1
204;const a=n.length-1;for(;t<=a;){if(!e._emit[t]){t++;continue}
205const a=N.classNameAliases[e[t]]||e[t],s=n[t];a?g(s,a):(R=s,l(),R=""),t++}}
206function h(e,n){
207return e.scope&&"string"==typeof e.scope&&O.openNode(N.classNameAliases[e.scope]||e.scope),
208e.beginScope&&(e.beginScope._wrap?(g(R,N.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),
209R=""):e.beginScope._multi&&(u(e.beginScope,n),R="")),A=Object.create(e,{parent:{
210value:A}}),A}function b(e,t,a){let s=((e,n)=>{const t=e&&e.exec(n)
211;return t&&0===t.index})(e.endRe,a);if(s){if(e["on:end"]){const a=new n(e)
212;e["on:end"](t,a),a.isMatchIgnored&&(s=!1)}if(s){
213for(;e.endsParent&&e.parent;)e=e.parent;return e}}
214if(e.endsWithParent)return b(e.parent,t,a)}function m(e){
215return 0===A.matcher.regexIndex?(R+=e[0],1):(C=!0,0)}function f(e){
216const n=e[0],a=t.substring(e.index),s=b(A,e,a);if(!s)return Y;const i=A
217;A.endScope&&A.endScope._wrap?(d(),
218g(n,A.endScope._wrap)):A.endScope&&A.endScope._multi?(d(),
219u(A.endScope,e)):i.skip?R+=n:(i.returnEnd||i.excludeEnd||(R+=n),
220d(),i.excludeEnd&&(R=n));do{
221A.scope&&O.closeNode(),A.skip||A.subLanguage||(M+=A.relevance),A=A.parent
222}while(A!==s.parent);return s.starts&&h(s.starts,e),i.returnEnd?0:n.length}
223let y={};function w(a,i){const o=i&&i[0];if(R+=a,null==o)return d(),0
224;if("begin"===y.type&&"end"===i.type&&y.index===i.index&&""===o){
225if(R+=t.slice(i.index,i.index+1),!r){const n=Error(`0 width match regex (${e})`)
226;throw n.languageName=e,n.badRule=y.rule,n}return 1}
227if(y=i,"begin"===i.type)return(e=>{
228const t=e[0],a=e.rule,s=new n(a),i=[a.__beforeBegin,a["on:begin"]]
229;for(const n of i)if(n&&(n(e,s),s.isMatchIgnored))return m(t)
230;return a.skip?R+=t:(a.excludeBegin&&(R+=t),
231d(),a.returnBegin||a.excludeBegin||(R=t)),h(a,e),a.returnBegin?0:t.length})(i)
232;if("illegal"===i.type&&!s){
233const e=Error('Illegal lexeme "'+o+'" for mode "'+(A.scope||"<unnamed>")+'"')
234;throw e.mode=A,e}if("end"===i.type){const e=f(i);if(e!==Y)return e}
235if("illegal"===i.type&&""===o)return i.index===t.length||(R+="\n"),1
236;if(I>1e5&&I>3*i.index)throw Error("potential infinite loop, way more iterations than matches")
237;return R+=o,o.length}const N=S(e)
238;if(!N)throw U(o.replace("{}",e)),Error('Unknown language: "'+e+'"')
239;const v=W(N);let x="",A=i||v;const k={},O=new p.__emitter(p);(()=>{const e=[]
240;for(let n=A;n!==N;n=n.parent)n.scope&&e.unshift(n.scope)
241;e.forEach((e=>O.openNode(e)))})();let R="",M=0,T=0,I=0,C=!1;try{
242if(N.__emitTokens)N.__emitTokens(t,O);else{for(A.matcher.considerAll();;){
243I++,C?C=!1:A.matcher.considerAll(),A.matcher.lastIndex=T
244;const e=A.matcher.exec(t);if(!e)break;const n=w(t.substring(T,e.index),e)
245;T=e.index+n}w(t.substring(T))}return O.finalize(),x=O.toHTML(),{language:e,
246value:x,relevance:M,illegal:!1,_emitter:O,_top:A}}catch(n){
247if(n.message&&n.message.includes("Illegal"))return{language:e,value:J(t),
248illegal:!0,relevance:0,_illegalBy:{message:n.message,index:T,
249context:t.slice(T-100,T+100),mode:n.mode,resultSoFar:x},_emitter:O};if(r)return{
250language:e,value:J(t),illegal:!1,relevance:0,errorRaised:n,_emitter:O,_top:A}
251;throw n}}function _(e,n){n=n||p.languages||Object.keys(a);const t=(e=>{
252const n={value:J(e),illegal:!1,relevance:0,_top:l,_emitter:new p.__emitter(p)}
253;return n._emitter.addText(e),n})(e),s=n.filter(S).filter(x).map((n=>E(n,e,!1)))
254;s.unshift(t);const i=s.sort(((e,n)=>{
255if(e.relevance!==n.relevance)return n.relevance-e.relevance
256;if(e.language&&n.language){if(S(e.language).supersetOf===n.language)return 1
257;if(S(n.language).supersetOf===e.language)return-1}return 0})),[r,o]=i,c=r
258;return c.secondBest=o,c}function y(e){let n=null;const t=(e=>{
259let n=e.className+" ";n+=e.parentNode?e.parentNode.className:""
260;const t=p.languageDetectRe.exec(n);if(t){const n=S(t[1])
261;return n||(F(o.replace("{}",t[1])),
262F("Falling back to no-highlight mode for this block.",e)),n?t[1]:"no-highlight"}
263return n.split(/\s+/).find((e=>m(e)||S(e)))})(e);if(m(t))return
264;if(A("before:highlightElement",{el:e,language:t
265}),e.dataset.highlighted)return void console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",e)
266;if(e.children.length>0&&(p.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),
267console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),
268console.warn("The element with unescaped HTML:"),
269console.warn(e)),p.throwUnescapedHTML))throw new V("One of your code blocks includes unescaped HTML.",e.innerHTML)
270;n=e;const a=n.textContent,i=t?f(a,{language:t,ignoreIllegals:!0}):_(a)
271;e.innerHTML=i.value,e.dataset.highlighted="yes",((e,n,t)=>{const a=n&&s[n]||t
272;e.classList.add("hljs"),e.classList.add("language-"+a)
273})(e,t,i.language),e.result={language:i.language,re:i.relevance,
274relevance:i.relevance},i.secondBest&&(e.secondBest={
275language:i.secondBest.language,relevance:i.secondBest.relevance
276}),A("after:highlightElement",{el:e,result:i,text:a})}let w=!1;function N(){
277if("loading"===document.readyState)return w||window.addEventListener("DOMContentLoaded",(()=>{
278N()}),!1),void(w=!0);document.querySelectorAll(p.cssSelector).forEach(y)}
279function S(e){return e=(e||"").toLowerCase(),a[e]||a[s[e]]}
280function v(e,{languageName:n}){"string"==typeof e&&(e=[e]),e.forEach((e=>{
281s[e.toLowerCase()]=n}))}function x(e){const n=S(e)
282;return n&&!n.disableAutodetect}function A(e,n){const t=e;i.forEach((e=>{
283e[t]&&e[t](n)}))}Object.assign(t,{highlight:f,highlightAuto:_,highlightAll:N,
284highlightElement:y,
285highlightBlock:e=>(Z("10.7.0","highlightBlock will be removed entirely in v12.0"),
286Z("10.7.0","Please use highlightElement now."),y(e)),configure:e=>{p=Q(p,e)},
287initHighlighting:()=>{
288N(),Z("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},
289initHighlightingOnLoad:()=>{
290N(),Z("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")
291},registerLanguage:(e,n)=>{let s=null;try{s=n(t)}catch(n){
292if(U("Language definition for '{}' could not be registered.".replace("{}",e)),
293!r)throw n;U(n),s=l}
294s.name||(s.name=e),a[e]=s,s.rawDefinition=n.bind(null,t),s.aliases&&v(s.aliases,{
295languageName:e})},unregisterLanguage:e=>{delete a[e]
296;for(const n of Object.keys(s))s[n]===e&&delete s[n]},
297listLanguages:()=>Object.keys(a),getLanguage:S,registerAliases:v,
298autoDetection:x,inherit:Q,addPlugin:e=>{(e=>{
299e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=n=>{
300e["before:highlightBlock"](Object.assign({block:n.el},n))
301}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=n=>{
302e["after:highlightBlock"](Object.assign({block:n.el},n))})})(e),i.push(e)},
303removePlugin:e=>{const n=i.indexOf(e);-1!==n&&i.splice(n,1)}}),t.debugMode=()=>{
304r=!1},t.safeMode=()=>{r=!0},t.versionString="11.11.1",t.regex={concat:h,
305lookahead:d,either:b,optional:u,anyNumberOfTimes:g}
306;for(const n in M)"object"==typeof M[n]&&e(M[n]);return Object.assign(t,M),t
307},ne=ee({});ne.newInstance=()=>ee({})
308;const te="[A-Za-z$_][0-9A-Za-z$_]*",ae=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],se=["true","false","null","undefined","NaN","Infinity"],ie=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],re=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],oe=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],ce=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],le=[].concat(oe,ie,re)
309;var de=Object.freeze({__proto__:null,grmr_bash:e=>{const n=e.regex,t={},a={
310begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[t]}]}
311;Object.assign(t,{className:"variable",variants:[{
312begin:n.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},a]});const s={
313className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]
314},i=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),r={
315begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,
316end:/(\w+)/,className:"string"})]}},o={className:"string",begin:/"/,end:/"/,
317contains:[e.BACKSLASH_ESCAPE,t,s]};s.contains.push(o);const c={begin:/\$?\(\(/,
318end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,t]
319},l=e.SHEBANG({binary:"(fish|bash|zsh|sh|csh|ksh|tcsh|dash|scsh)",relevance:10
320}),d={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,
321contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{
322name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,
323keyword:["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],
324literal:["true","false"],
325built_in:["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset","alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias","set","shopt","autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp","chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"]
326},contains:[l,e.SHEBANG(),d,c,i,r,{match:/(\/[a-z._-]+)+/},o,{match:/\\"/},{
327className:"string",begin:/'/,end:/'/},{match:/\\'/},t]}},grmr_ini:e=>{
328const n=e.regex,t={className:"number",relevance:0,variants:[{
329begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},a=e.COMMENT();a.variants=[{
330begin:/;/,end:/$/},{begin:/#/,end:/$/}];const s={className:"variable",
331variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},i={
332className:"literal",begin:/\bon|off|true|false|yes|no\b/},r={className:"string",
333contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{
334begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]
335},o={begin:/\[/,end:/\]/,contains:[a,i,s,r,t,"self"],relevance:0
336},c=n.either(/[A-Za-z0-9_-]+/,/"(\\"|[^"])*"/,/'[^']*'/);return{
337name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,
338contains:[a,{className:"section",begin:/\[+/,end:/\]+/},{
339begin:n.concat(c,"(\\s*\\.\\s*",c,")*",n.lookahead(/\s*=\s*[^#\s]/)),
340className:"attr",starts:{end:/$/,contains:[a,o,i,s,r,t]}}]}},
341grmr_javascript:e=>{const n=e.regex,t=te,a={begin:/<[A-Za-z0-9\\._:-]+/,
342end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,n)=>{
343const t=e[0].length+e.index,a=e.input[t]
344;if("<"===a||","===a)return void n.ignoreMatch();let s
345;">"===a&&(((e,{after:n})=>{const t="</"+e[0].slice(1)
346;return-1!==e.input.indexOf(t,n)})(e,{after:t})||n.ignoreMatch())
347;const i=e.input.substring(t)
348;((s=i.match(/^\s*=/))||(s=i.match(/^\s+extends\s+/))&&0===s.index)&&n.ignoreMatch()
349}},s={$pattern:te,keyword:ae,literal:se,built_in:le,"variable.language":ce
350},i="[0-9](_?[0-9])*",r=`\\.(${i})`,o="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",c={
351className:"number",variants:[{
352begin:`(\\b(${o})((${r})|\\.)?|(${r}))[eE][+-]?(${i})\\b`},{
353begin:`\\b(${o})\\b((${r})\\b|\\.)?|(${r})\\b`},{
354begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{
355begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{
356begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{
357begin:"\\b0[0-7]+n?\\b"}],relevance:0},l={className:"subst",begin:"\\$\\{",
358end:"\\}",keywords:s,contains:[]},d={begin:".?html`",end:"",starts:{end:"`",
359returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,l],subLanguage:"xml"}},g={
360begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,
361contains:[e.BACKSLASH_ESCAPE,l],subLanguage:"css"}},u={begin:".?gql`",end:"",
362starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,l],
363subLanguage:"graphql"}},h={className:"string",begin:"`",end:"`",
364contains:[e.BACKSLASH_ESCAPE,l]},b={className:"comment",
365variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{
366begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",
367begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,
368excludeBegin:!0,relevance:0},{className:"variable",begin:t+"(?=\\s*(-)|$)",
369endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]
370}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]
371},p=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,g,u,h,{match:/\$\d+/},c]
372;l.contains=p.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(p)
373});const m=[].concat(b,l.contains),f=m.concat([{begin:/(\s*)\(/,end:/\)/,
374keywords:s,contains:["self"].concat(m)}]),E={className:"params",begin:/(\s*)\(/,
375end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:f},_={variants:[{
376match:[/class/,/\s+/,t,/\s+/,/extends/,/\s+/,n.concat(t,"(",n.concat(/\./,t),")*")],
377scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{
378match:[/class/,/\s+/,t],scope:{1:"keyword",3:"title.class"}}]},y={relevance:0,
379match:n.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),
380className:"title.class",keywords:{_:[...ie,...re]}},w={variants:[{
381match:[/function/,/\s+/,t,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],
382className:{1:"keyword",3:"title.function"},label:"func.def",contains:[E],
383illegal:/%/},N={
384match:n.concat(/\b/,(S=[...oe,"super","import"].map((e=>e+"\\s*\\(")),
385n.concat("(?!",S.join("|"),")")),t,n.lookahead(/\s*\(/)),
386className:"title.function",relevance:0};var S;const v={
387begin:n.concat(/\./,n.lookahead(n.concat(t,/(?![0-9A-Za-z$_(])/))),end:t,
388excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},x={
389match:[/get|set/,/\s+/,t,/(?=\()/],className:{1:"keyword",3:"title.function"},
390contains:[{begin:/\(\)/},E]
391},A="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",k={
392match:[/const|var|let/,/\s+/,t,/\s*/,/=\s*/,/(async\s*)?/,n.lookahead(A)],
393keywords:"async",className:{1:"keyword",3:"title.function"},contains:[E]}
394;return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{
395PARAMS_CONTAINS:f,CLASS_REFERENCE:y},illegal:/#(?![$_A-z])/,
396contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),{
397label:"use_strict",className:"meta",relevance:10,
398begin:/^\s*['"]use (strict|asm)['"]/
399},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,g,u,h,b,{match:/\$\d+/},c,y,{
400scope:"attr",match:t+n.lookahead(":"),relevance:0},k,{
401begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",
402keywords:"return throw case",relevance:0,contains:[b,e.REGEXP_MODE,{
403className:"function",begin:A,returnBegin:!0,end:"\\s*=>",contains:[{
404className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{
405className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,
406excludeBegin:!0,excludeEnd:!0,keywords:s,contains:f}]}]},{begin:/,/,relevance:0
407},{match:/\s+/,relevance:0},{variants:[{begin:"<>",end:"</>"},{
408match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{begin:a.begin,
409"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{
410begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},w,{
411beginKeywords:"while if switch catch for"},{
412begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",
413returnBegin:!0,label:"func.def",contains:[E,e.inherit(e.TITLE_MODE,{begin:t,
414className:"title.function"})]},{match:/\.\.\./,relevance:0},v,{match:"\\$"+t,
415relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},
416contains:[E]},N,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,
417className:"variable.constant"},_,x,{match:/\$[(.]/}]}},grmr_makefile:e=>{
418const n={className:"variable",variants:[{
419begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{
420begin:/\$[@%<?\^\+\*]/}]},t={className:"string",begin:/"/,end:/"/,
421contains:[e.BACKSLASH_ESCAPE,n]},a={className:"variable",begin:/\$\([\w-]+\s/,
422end:/\)/,keywords:{
423built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"
424},contains:[n,t]},s={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},i={
425className:"section",begin:/^[^\s]+:/,end:/$/,contains:[n]};return{
426name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,
427keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"
428},contains:[e.HASH_COMMENT_MODE,n,t,a,s,{className:"meta",begin:/^\.PHONY:/,
429end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},i]}},grmr_nix:e=>{
430const n=e.regex,t={
431keyword:["assert","else","if","in","inherit","let","or","rec","then","with"],
432literal:["true","false","null"],
433built_in:["abort","baseNameOf","builtins","derivation","derivationStrict","dirOf","fetchGit","fetchMercurial","fetchTarball","fetchTree","fromTOML","import","isNull","map","placeholder","removeAttrs","scopedImport","throw","toString"]
434},a={scope:"built_in",
435match:n.either(...["abort","add","addDrvOutputDependencies","addErrorContext","all","any","appendContext","attrNames","attrValues","baseNameOf","bitAnd","bitOr","bitXor","break","builtins","catAttrs","ceil","compareVersions","concatLists","concatMap","concatStringsSep","convertHash","currentSystem","currentTime","deepSeq","derivation","derivationStrict","dirOf","div","elem","elemAt","false","fetchGit","fetchMercurial","fetchTarball","fetchTree","fetchurl","filter","filterSource","findFile","flakeRefToString","floor","foldl'","fromJSON","fromTOML","functionArgs","genList","genericClosure","getAttr","getContext","getEnv","getFlake","groupBy","hasAttr","hasContext","hashFile","hashString","head","import","intersectAttrs","isAttrs","isBool","isFloat","isFunction","isInt","isList","isNull","isPath","isString","langVersion","length","lessThan","listToAttrs","map","mapAttrs","match","mul","nixPath","nixVersion","null","parseDrvName","parseFlakeRef","partition","path","pathExists","placeholder","readDir","readFile","readFileType","removeAttrs","replaceStrings","scopedImport","seq","sort","split","splitVersion","storeDir","storePath","stringLength","sub","substring","tail","throw","toFile","toJSON","toPath","toString","toXML","trace","traceVerbose","true","tryEval","typeOf","unsafeDiscardOutputDependency","unsafeDiscardStringContext","unsafeGetAttrPos","warn","zipAttrsWith"].map((e=>"builtins\\."+e))),
436relevance:10},s="[A-Za-z_][A-Za-z0-9_'-]*",i={scope:"symbol",
437match:RegExp(`<${s}(/${s})*>`)},r="[A-Za-z0-9_\\+\\.-]+",o={scope:"symbol",
438match:RegExp(`(\\.\\.|\\.|~)?/(${r})?(/${r})*(?=[\\s;])`)
439},c=n.either("==","=","\\+\\+","\\+","<=","<\\|","<",">=",">","->","//","/","!=","!","\\|\\|","\\|>","\\?","\\*","&&"),l={
440scope:"operator",match:n.concat(c,/(?!-)/),relevance:0},d={scope:"number",
441match:RegExp(e.NUMBER_RE+"(?!-)"),relevance:0},g={variants:[{scope:"operator",
442beforeMatch:/\s/,begin:/-(?!>)/},{begin:[RegExp(""+e.NUMBER_RE),/-/,/(?!>)/],
443beginScope:{1:"number",2:"operator"}},{begin:[c,/-/,/(?!>)/],beginScope:{
4441:"operator",2:"operator"}}],relevance:0},u={beforeMatch:/(^|\{|;)\s*/,
445begin:RegExp(`${s}(\\.${s})*\\s*=(?!=)`),returnBegin:!0,relevance:0,contains:[{
446scope:"attr",match:RegExp(`${s}(\\.${s})*(?=\\s*=)`),relevance:.2}]},h={
447scope:"subst",begin:/\$\{/,end:/\}/,keywords:t},b={scope:"char.escape",
448match:/\\(?!\$)./},p={scope:"string",variants:[{begin:"''",end:"''",contains:[{
449scope:"char.escape",match:/''\$/},h,{scope:"char.escape",match:/'''/},b]},{
450begin:'"',end:'"',contains:[{scope:"char.escape",match:/\\\$/},h,b]}]},m={
451scope:"params",match:RegExp(s+"\\s*:(?=\\s)")
452},f=[d,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{
453subLanguage:"markdown",relevance:0}),a,p,i,o,m,u,g,l];return h.contains=f,{
454name:"Nix",aliases:["nixos"],keywords:t,contains:f.concat([{scope:"meta.prompt",
455match:/^nix-repl>(?=\s)/,relevance:10},{scope:"meta",beforeMatch:/\s+/,
456begin:/:([a-z]+|\?)/}])}},grmr_python:e=>{
457const n=e.regex,t=/[\p{XID_Start}_]\p{XID_Continue}*/u,a=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],s={
458$pattern:/[A-Za-z]\w+|__\w+__/,keyword:a,
459built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],
460literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],
461type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]
462},i={className:"meta",begin:/^(>>>|\.\.\.) /},r={className:"subst",begin:/\{/,
463end:/\}/,keywords:s,illegal:/#/},o={begin:/\{\{/,relevance:0},c={
464className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{
465begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,
466contains:[e.BACKSLASH_ESCAPE,i],relevance:10},{
467begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,
468contains:[e.BACKSLASH_ESCAPE,i],relevance:10},{
469begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,
470contains:[e.BACKSLASH_ESCAPE,i,o,r]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,
471end:/"""/,contains:[e.BACKSLASH_ESCAPE,i,o,r]},{begin:/([uU]|[rR])'/,end:/'/,
472relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{
473begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,
474end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,
475contains:[e.BACKSLASH_ESCAPE,o,r]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,
476contains:[e.BACKSLASH_ESCAPE,o,r]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]
477},l="[0-9](_?[0-9])*",d=`(\\b(${l}))?\\.(${l})|\\b(${l})\\.`,g="\\b|"+a.join("|"),u={
478className:"number",relevance:0,variants:[{
479begin:`(\\b(${l})|(${d}))[eE][+-]?(${l})[jJ]?(?=${g})`},{begin:`(${d})[jJ]?`},{
480begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${g})`},{
481begin:`\\b0[bB](_?[01])+[lL]?(?=${g})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${g})`
482},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${g})`},{begin:`\\b(${l})[jJ](?=${g})`
483}]},h={className:"comment",begin:n.lookahead(/# type:/),end:/$/,keywords:s,
484contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},b={
485className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,
486end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,
487contains:["self",i,u,c,e.HASH_COMMENT_MODE]}]};return r.contains=[c,u,i],{
488name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:s,
489illegal:/(<\/|\?)|=>/,contains:[i,u,{scope:"variable.language",match:/\bself\b/
490},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"
491},c,h,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,t],scope:{1:"keyword",
4923:"title.function"},contains:[b]},{variants:[{
493match:[/\bclass/,/\s+/,t,/\s*/,/\(\s*/,t,/\s*\)/]},{match:[/\bclass/,/\s+/,t]}],
494scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{
495className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[u,b,c]}]}},
496grmr_python_repl:e=>({aliases:["pycon"],contains:[{className:"meta.prompt",
497starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{
498begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}),grmr_rust:e=>{
499const n=e.regex,t=/(r#)?/,a=n.concat(t,e.UNDERSCORE_IDENT_RE),s=n.concat(t,e.IDENT_RE),i={
500className:"title.function.invoke",relevance:0,
501begin:n.concat(/\b/,/(?!let|for|while|if|else|match\b)/,s,n.lookahead(/\s*\(/))
502},r="([ui](8|16|32|64|128|size)|f(32|64))?",o=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],c=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"]
503;return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:c,
504keyword:["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],
505literal:["true","false","Some","None","Ok","Err"],built_in:o},illegal:"</",
506contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]
507}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{
508className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",
509variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{
510scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{
511className:"number",variants:[{begin:"\\b0b([01_]+)"+r},{begin:"\\b0o([0-7_]+)"+r
512},{begin:"\\b0x([A-Fa-f0-9_]+)"+r},{
513begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+r}],relevance:0},{
514begin:[/fn/,/\s+/,a],className:{1:"keyword",3:"title.function"}},{
515className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",
516begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{
517begin:[/let/,/\s+/,/(?:mut\s+)?/,a],className:{1:"keyword",3:"keyword",
5184:"variable"}},{begin:[/for/,/\s+/,a,/\s+/,/in/],className:{1:"keyword",
5193:"variable",5:"keyword"}},{begin:[/type/,/\s+/,a],className:{1:"keyword",
5203:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,a],
521className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{
522keyword:"Self",built_in:o,type:c}},{className:"punctuation",begin:"->"},i]}},
523grmr_shell:e=>({name:"Shell Session",aliases:["console","shellsession"],
524contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,
525starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]})});const ge=ne
526;for(const e of Object.keys(de)){const n=e.replace("grmr_","").replace("_","-")
527;ge.registerLanguage(n,de[e])}return ge}()
528;"object"==typeof exports&&"undefined"!=typeof module&&(module.exports=hljs);