(self.webpackChunknodebb=self.webpackChunknodebb||[]).push([[38416],{38416:Ie=>{var Z={exports:{}};function J(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(function(t){var n=e[t];typeof n=="object"&&!Object.isFrozen(n)&&J(n)}),e}Z.exports=J,Z.exports.default=J;var ve=Z.exports;class oe{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function ae(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function N(e,...t){const n=Object.create(null);for(const f in e)n[f]=e[f];return t.forEach(function(f){for(const b in f)n[b]=f[b]}),n}const Be="",le=e=>!!e.kind,De=(e,{prefix:t})=>{if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map((f,b)=>`${f}${"_".repeat(b+1)}`)].join(" ")}return`${t}${e}`};class Le{constructor(t,n){this.buffer="",this.classPrefix=n.classPrefix,t.walk(this)}addText(t){this.buffer+=ae(t)}openNode(t){if(!le(t))return;let n=t.kind;t.sublanguage?n=`language-${n}`:n=De(n,{prefix:this.classPrefix}),this.span(n)}closeNode(t){le(t)&&(this.buffer+=Be)}value(){return this.buffer}span(t){this.buffer+=``}}class V{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const n={kind:t,children:[]};this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,n){return typeof n=="string"?t.addText(n):n.children&&(t.openNode(n),n.children.forEach(f=>this._walk(t,f)),t.closeNode(n)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(n=>typeof n=="string")?t.children=[t.children.join("")]:t.children.forEach(n=>{V._collapse(n)}))}}class Ce extends V{constructor(t){super(),this.options=t}addKeyword(t,n){t!==""&&(this.openNode(n),this.addText(t),this.closeNode())}addText(t){t!==""&&this.add(t)}addSublanguage(t,n){const f=t.root;f.kind=n,f.sublanguage=!0,this.add(f)}toHTML(){return new Le(this,this.options).value()}finalize(){return!0}}function H(e){return e?typeof e=="string"?e:e.source:null}function ue(e){return v("(?=",e,")")}function He(e){return v("(?:",e,")*")}function Pe(e){return v("(?:",e,")?")}function v(...e){return e.map(n=>H(n)).join("")}function je(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function q(...e){return"("+(je(e).capture?"":"?:")+e.map(f=>H(f)).join("|")+")"}function fe(e){return new RegExp(e.toString()+"|").exec("").length-1}function Ue(e,t){const n=e&&e.exec(t);return n&&n.index===0}const $e=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Q(e,{joinWith:t}){let n=0;return e.map(f=>{n+=1;const b=n;let _=H(f),c="";for(;_.length>0;){const s=$e.exec(_);if(!s){c+=_;break}c+=_.substring(0,s.index),_=_.substring(s.index+s[0].length),s[0][0]==="\\"&&s[1]?c+="\\"+String(Number(s[1])+b):(c+=s[0],s[0]==="("&&n++)}return c}).map(f=>`(${f})`).join(t)}const Ge=/\b\B/,ge="[a-zA-Z]\\w*",m="[a-zA-Z_]\\w*",he="\\b\\d+(\\.\\d+)?",de="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",pe="\\b(0b[01]+)",Ke="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",We=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=v(t,/.*\b/,e.binary,/\b.*/)),N({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(n,f)=>{n.index!==0&&f.ignoreMatch()}},e)},P={begin:"\\\\[\\s\\S]",relevance:0},ze={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[P]},Fe={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[P]},Xe={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/},$=function(e,t,n={}){const f=N({scope:"comment",begin:e,end:t,contains:[]},n);f.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const b=q("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,}/);return f.contains.push({begin:v(/[ ]+/,"(",b,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),f},Ye=$("//","$"),Ze=$("/\\*","\\*/"),Je=$("#","$"),Ve={scope:"number",begin:he,relevance:0},qe={scope:"number",begin:de,relevance:0},Qe={scope:"number",begin:pe,relevance:0},me={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[P,{begin:/\[/,end:/\]/,relevance:0,contains:[P]}]}]},et={scope:"title",begin:ge,relevance:0},tt={scope:"title",begin:m,relevance:0},nt={begin:"\\.\\s*"+m,relevance:0};var G=Object.freeze({__proto__:null,MATCH_NOTHING_RE:Ge,IDENT_RE:ge,UNDERSCORE_IDENT_RE:m,NUMBER_RE:he,C_NUMBER_RE:de,BINARY_NUMBER_RE:pe,RE_STARTERS_RE:Ke,SHEBANG:We,BACKSLASH_ESCAPE:P,APOS_STRING_MODE:ze,QUOTE_STRING_MODE:Fe,PHRASAL_WORDS_MODE:Xe,COMMENT:$,C_LINE_COMMENT_MODE:Ye,C_BLOCK_COMMENT_MODE:Ze,HASH_COMMENT_MODE:Je,NUMBER_MODE:Ve,C_NUMBER_MODE:qe,BINARY_NUMBER_MODE:Qe,REGEXP_MODE:me,TITLE_MODE:et,UNDERSCORE_TITLE_MODE:tt,METHOD_GUARD:nt,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(t,n)=>{n.data._beginMatch=t[1]},"on:end":(t,n)=>{n.data._beginMatch!==t[1]&&n.ignoreMatch()}})}});function it(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function rt(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function st(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=it,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function ct(e,t){Array.isArray(e.illegal)&&(e.illegal=q(...e.illegal))}function ot(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function at(e,t){e.relevance===void 0&&(e.relevance=1)}const lt=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach(f=>{delete e[f]}),e.keywords=n.keywords,e.begin=v(n.beforeMatch,ue(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},ut=["of","and","for","in","not","or","if","then","parent","list","value"],ft="keyword";function Ee(e,t,n=ft){const f=Object.create(null);return typeof e=="string"?b(n,e.split(" ")):Array.isArray(e)?b(n,e):Object.keys(e).forEach(function(_){Object.assign(f,Ee(e[_],t,_))}),f;function b(_,c){t&&(c=c.map(s=>s.toLowerCase())),c.forEach(function(s){const l=s.split("|");f[l[0]]=[_,gt(l[0],l[1])]})}}function gt(e,t){return t?Number(t):ht(e)?0:1}function ht(e){return ut.includes(e.toLowerCase())}const be={},B=e=>{console.error(e)},_e=(e,...t)=>{console.log(`WARN: ${e}`,...t)},L=(e,t)=>{be[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),be[`${e}/${t}`]=!0)},K=new Error;function we(e,t,{key:n}){let f=0;const b=e[n],_={},c={};for(let s=1;s<=t.length;s++)c[s+f]=b[s],_[s+f]=!0,f+=fe(t[s-1]);e[n]=c,e[n]._emit=_,e[n]._multi=!0}function dt(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw B("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),K;if(typeof e.beginScope!="object"||e.beginScope===null)throw B("beginScope must be object"),K;we(e,e.begin,{key:"beginScope"}),e.begin=Q(e.begin,{joinWith:""})}}function pt(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw B("skip, excludeEnd, returnEnd not compatible with endScope: {}"),K;if(typeof e.endScope!="object"||e.endScope===null)throw B("endScope must be object"),K;we(e,e.end,{key:"endScope"}),e.end=Q(e.end,{joinWith:""})}}function Et(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function bt(e){Et(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),dt(e),pt(e)}function _t(e){function t(c,s){return new RegExp(H(c),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(s?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(s,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,s]),this.matchAt+=fe(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const s=this.regexes.map(l=>l[1]);this.matcherRe=t(Q(s,{joinWith:"|"}),!0),this.lastIndex=0}exec(s){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(s);if(!l)return null;const x=l.findIndex((U,te)=>te>0&&U!==void 0),w=this.matchIndexes[x];return l.splice(0,x),Object.assign(l,w)}}class f{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(s){if(this.multiRegexes[s])return this.multiRegexes[s];const l=new n;return this.rules.slice(s).forEach(([x,w])=>l.addRule(x,w)),l.compile(),this.multiRegexes[s]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(s,l){this.rules.push([s,l]),l.type==="begin"&&this.count++}exec(s){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let x=l.exec(s);if(this.resumingScanAtSamePosition()&&!(x&&x.index===this.lastIndex)){const w=this.getMatcher(0);w.lastIndex=this.lastIndex+1,x=w.exec(s)}return x&&(this.regexIndex+=x.position+1,this.regexIndex===this.count&&this.considerAll()),x}}function b(c){const s=new f;return c.contains.forEach(l=>s.addRule(l.begin,{rule:l,type:"begin"})),c.terminatorEnd&&s.addRule(c.terminatorEnd,{type:"end"}),c.illegal&&s.addRule(c.illegal,{type:"illegal"}),s}function _(c,s){const l=c;if(c.isCompiled)return l;[rt,ot,bt,lt].forEach(w=>w(c,s)),e.compilerExtensions.forEach(w=>w(c,s)),c.__beforeBegin=null,[st,ct,at].forEach(w=>w(c,s)),c.isCompiled=!0;let x=null;return typeof c.keywords=="object"&&c.keywords.$pattern&&(c.keywords=Object.assign({},c.keywords),x=c.keywords.$pattern,delete c.keywords.$pattern),x=x||/\w+/,c.keywords&&(c.keywords=Ee(c.keywords,e.case_insensitive)),l.keywordPatternRe=t(x,!0),s&&(c.begin||(c.begin=/\B|\b/),l.beginRe=t(l.begin),!c.end&&!c.endsWithParent&&(c.end=/\B|\b/),c.end&&(l.endRe=t(l.end)),l.terminatorEnd=H(l.end)||"",c.endsWithParent&&s.terminatorEnd&&(l.terminatorEnd+=(c.end?"|":"")+s.terminatorEnd)),c.illegal&&(l.illegalRe=t(c.illegal)),c.contains||(c.contains=[]),c.contains=[].concat(...c.contains.map(function(w){return wt(w==="self"?c:w)})),c.contains.forEach(function(w){_(w,l)}),c.starts&&_(c.starts,s),l.matcher=b(l),l}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=N(e.classNameAliases||{}),_(e)}function Me(e){return e?e.endsWithParent||Me(e.starts):!1}function wt(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return N(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:Me(e)?N(e,{starts:e.starts?N(e.starts):null}):Object.isFrozen(e)?N(e):e}var Mt="11.4.0";class xt extends Error{constructor(t,n){super(t),this.name="HTMLInjectionError",this.html=n}}const ee=ae,xe=N,Oe=Symbol("nomatch"),Ot=7;var j=function(e){const t=Object.create(null),n=Object.create(null),f=[];let b=!0;const _="Could not find the language '{}', did you forget to load/include a language module?",c={disableAutodetect:!0,name:"Plain text",contains:[]};let s={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Ce};function l(i){return s.noHighlightRe.test(i)}function x(i){let a=i.className+" ";a+=i.parentNode?i.parentNode.className:"";const h=s.languageDetectRe.exec(a);if(h){const p=A(h[1]);return p||(_e(_.replace("{}",h[1])),_e("Falling back to no-highlight mode for this block.",i)),p?h[1]:"no-highlight"}return a.split(/\s+/).find(p=>l(p)||A(p))}function w(i,a,h){let p="",M="";typeof a=="object"?(p=i,h=a.ignoreIllegals,M=a.language):(L("10.7.0","highlight(lang, code, ...args) has been deprecated."),L("10.7.0",`Please use highlight(code, options) instead. https://github.com/highlightjs/highlight.js/issues/2277`),M=i,p=a),h===void 0&&(h=!0);const S={code:p,language:M};z("before:highlight",S);const k=S.result?S.result:U(S.language,S.code,h);return k.code=S.code,z("after:highlight",k),k}function U(i,a,h,p){const M=Object.create(null);function S(r,o){return r.keywords[o]}function k(){if(!u.keywords){O.addText(E);return}let r=0;u.keywordPatternRe.lastIndex=0;let o=u.keywordPatternRe.exec(E),g="";for(;o;){g+=E.substring(r,o.index);const d=I.case_insensitive?o[0].toLowerCase():o[0],y=S(u,d);if(y){const[C,Ut]=y;if(O.addText(g),g="",M[d]=(M[d]||0)+1,M[d]<=Ot&&(Y+=Ut),C.startsWith("_"))g+=o[0];else{const $t=I.classNameAliases[C]||C;O.addKeyword(o[0],$t)}}else g+=o[0];r=u.keywordPatternRe.lastIndex,o=u.keywordPatternRe.exec(E)}g+=E.substr(r),O.addText(g)}function F(){if(E==="")return;let r=null;if(typeof u.subLanguage=="string"){if(!t[u.subLanguage]){O.addText(E);return}r=U(u.subLanguage,E,!0,Te[u.subLanguage]),Te[u.subLanguage]=r._top}else r=ne(E,u.subLanguage.length?u.subLanguage:null);u.relevance>0&&(Y+=r.relevance),O.addSublanguage(r._emitter,r.language)}function R(){u.subLanguage!=null?F():k(),E=""}function T(r,o){let g=1;for(;o[g]!==void 0;){if(!r._emit[g]){g++;continue}const d=I.classNameAliases[r[g]]||r[g],y=o[g];d?O.addKeyword(y,d):(E=y,k(),E=""),g++}}function Ne(r,o){return r.scope&&typeof r.scope=="string"&&O.openNode(I.classNameAliases[r.scope]||r.scope),r.beginScope&&(r.beginScope._wrap?(O.addKeyword(E,I.classNameAliases[r.beginScope._wrap]||r.beginScope._wrap),E=""):r.beginScope._multi&&(T(r.beginScope,o),E="")),u=Object.create(r,{parent:{value:u}}),u}function Ae(r,o,g){let d=Ue(r.endRe,g);if(d){if(r["on:end"]){const y=new oe(r);r["on:end"](o,y),y.isMatchIgnored&&(d=!1)}if(d){for(;r.endsParent&&r.parent;)r=r.parent;return r}}if(r.endsWithParent)return Ae(r.parent,o,g)}function Lt(r){return u.matcher.regexIndex===0?(E+=r[0],1):(ce=!0,0)}function Ct(r){const o=r[0],g=r.rule,d=new oe(g),y=[g.__beforeBegin,g["on:begin"]];for(const C of y)if(C&&(C(r,d),d.isMatchIgnored))return Lt(o);return g.skip?E+=o:(g.excludeBegin&&(E+=o),R(),!g.returnBegin&&!g.excludeBegin&&(E=o)),Ne(g,r),g.returnBegin?0:o.length}function Ht(r){const o=r[0],g=a.substr(r.index),d=Ae(u,r,g);if(!d)return Oe;const y=u;u.endScope&&u.endScope._wrap?(R(),O.addKeyword(o,u.endScope._wrap)):u.endScope&&u.endScope._multi?(R(),T(u.endScope,r)):y.skip?E+=o:(y.returnEnd||y.excludeEnd||(E+=o),R(),y.excludeEnd&&(E=o));do u.scope&&O.closeNode(),!u.skip&&!u.subLanguage&&(Y+=u.relevance),u=u.parent;while(u!==d.parent);return d.starts&&Ne(d.starts,r),y.returnEnd?0:o.length}function Pt(){const r=[];for(let o=u;o!==I;o=o.parent)o.scope&&r.unshift(o.scope);r.forEach(o=>O.openNode(o))}let X={};function ke(r,o){const g=o&&o[0];if(E+=r,g==null)return R(),0;if(X.type==="begin"&&o.type==="end"&&X.index===o.index&&g===""){if(E+=a.slice(o.index,o.index+1),!b){const d=new Error(`0 width match regex (${i})`);throw d.languageName=i,d.badRule=X.rule,d}return 1}if(X=o,o.type==="begin")return Ct(o);if(o.type==="illegal"&&!h){const d=new Error('Illegal lexeme "'+g+'" for mode "'+(u.scope||"")+'"');throw d.mode=u,d}else if(o.type==="end"){const d=Ht(o);if(d!==Oe)return d}if(o.type==="illegal"&&g==="")return 1;if(se>1e5&&se>o.index*3)throw new Error("potential infinite loop, way more iterations than matches");return E+=g,g.length}const I=A(i);if(!I)throw B(_.replace("{}",i)),new Error('Unknown language: "'+i+'"');const jt=_t(I);let re="",u=p||jt;const Te={},O=new s.__emitter(s);Pt();let E="",Y=0,D=0,se=0,ce=!1;try{for(u.matcher.considerAll();;){se++,ce?ce=!1:u.matcher.considerAll(),u.matcher.lastIndex=D;const r=u.matcher.exec(a);if(!r)break;const o=a.substring(D,r.index),g=ke(o,r);D=r.index+g}return ke(a.substr(D)),O.closeAllNodes(),O.finalize(),re=O.toHTML(),{language:i,value:re,relevance:Y,illegal:!1,_emitter:O,_top:u}}catch(r){if(r.message&&r.message.includes("Illegal"))return{language:i,value:ee(a),illegal:!0,relevance:0,_illegalBy:{message:r.message,index:D,context:a.slice(D-100,D+100),mode:r.mode,resultSoFar:re},_emitter:O};if(b)return{language:i,value:ee(a),illegal:!1,relevance:0,errorRaised:r,_emitter:O,_top:u};throw r}}function te(i){const a={value:ee(i),illegal:!1,relevance:0,_top:c,_emitter:new s.__emitter(s)};return a._emitter.addText(i),a}function ne(i,a){a=a||s.languages||Object.keys(t);const h=te(i),p=a.filter(A).filter(Se).map(R=>U(R,i,!1));p.unshift(h);const M=p.sort((R,T)=>{if(R.relevance!==T.relevance)return T.relevance-R.relevance;if(R.language&&T.language){if(A(R.language).supersetOf===T.language)return 1;if(A(T.language).supersetOf===R.language)return-1}return 0}),[S,k]=M,F=S;return F.secondBest=k,F}function yt(i,a,h){const p=a&&n[a]||h;i.classList.add("hljs"),i.classList.add(`language-${p}`)}function ie(i){let a=null;const h=x(i);if(l(h))return;if(z("before:highlightElement",{el:i,language:h}),i.children.length>0&&(s.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(i)),s.throwUnescapedHTML))throw new xt("One of your code blocks includes unescaped HTML.",i.innerHTML);a=i;const p=a.textContent,M=h?w(p,{language:h,ignoreIllegals:!0}):ne(p);i.innerHTML=M.value,yt(i,h,M.language),i.result={language:M.language,re:M.relevance,relevance:M.relevance},M.secondBest&&(i.secondBest={language:M.secondBest.language,relevance:M.secondBest.relevance}),z("after:highlightElement",{el:i,result:M,text:p})}function Rt(i){s=xe(s,i)}const St=()=>{W(),L("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Nt(){W(),L("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let ye=!1;function W(){if(document.readyState==="loading"){ye=!0;return}document.querySelectorAll(s.cssSelector).forEach(ie)}function At(){ye&&W()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",At,!1);function kt(i,a){let h=null;try{h=a(e)}catch(p){if(B("Language definition for '{}' could not be registered.".replace("{}",i)),b)B(p);else throw p;h=c}h.name||(h.name=i),t[i]=h,h.rawDefinition=a.bind(null,e),h.aliases&&Re(h.aliases,{languageName:i})}function Tt(i){delete t[i];for(const a of Object.keys(n))n[a]===i&&delete n[a]}function It(){return Object.keys(t)}function A(i){return i=(i||"").toLowerCase(),t[i]||t[n[i]]}function Re(i,{languageName:a}){typeof i=="string"&&(i=[i]),i.forEach(h=>{n[h.toLowerCase()]=a})}function Se(i){const a=A(i);return a&&!a.disableAutodetect}function vt(i){i["before:highlightBlock"]&&!i["before:highlightElement"]&&(i["before:highlightElement"]=a=>{i["before:highlightBlock"](Object.assign({block:a.el},a))}),i["after:highlightBlock"]&&!i["after:highlightElement"]&&(i["after:highlightElement"]=a=>{i["after:highlightBlock"](Object.assign({block:a.el},a))})}function Bt(i){vt(i),f.push(i)}function z(i,a){const h=i;f.forEach(function(p){p[h]&&p[h](a)})}function Dt(i){return L("10.7.0","highlightBlock will be removed entirely in v12.0"),L("10.7.0","Please use highlightElement now."),ie(i)}Object.assign(e,{highlight:w,highlightAuto:ne,highlightAll:W,highlightElement:ie,highlightBlock:Dt,configure:Rt,initHighlighting:St,initHighlightingOnLoad:Nt,registerLanguage:kt,unregisterLanguage:Tt,listLanguages:It,getLanguage:A,registerAliases:Re,autoDetection:Se,inherit:xe,addPlugin:Bt}),e.debugMode=function(){b=!1},e.safeMode=function(){b=!0},e.versionString=Mt,e.regex={concat:v,lookahead:ue,either:q,optional:Pe,anyNumberOfTimes:He};for(const i in G)typeof G[i]=="object"&&ve(G[i]);return Object.assign(e,G),e}({});Ie.exports=j,j.HighlightJS=j,j.default=j}}]);