aboutsummaryrefslogtreecommitdiffhomepage
path: root/archive/assets/index.js
blob: c3f377787a12588479af9d3bf7ecfb27a98dbe30 (plain)
1
2
3
4
(()=>{var st=Object.create;var Mr=Object.defineProperty;var lt=Object.getOwnPropertyDescriptor;var dt=Object.getOwnPropertyNames;var bt=Object.getPrototypeOf,pt=Object.prototype.hasOwnProperty;var mt=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports);var ct=(r,t,o,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let g of dt(t))!pt.call(r,g)&&g!==o&&Mr(r,g,{get:()=>t[g],enumerable:!(l=lt(t,g))||l.enumerable});return r};var gt=(r,t,o)=>(o=r!=null?st(bt(r)):{},ct(t||!r||!r.__esModule?Mr(o,"default",{value:r,enumerable:!0}):o,r));var Zr=mt((io,Yr)=>{function Cr(r){return r instanceof Map?r.clear=r.delete=r.set=function(){throw new Error("map is read-only")}:r instanceof Set&&(r.add=r.clear=r.delete=function(){throw new Error("set is read-only")}),Object.freeze(r),Object.getOwnPropertyNames(r).forEach(t=>{let o=r[t],l=typeof o;(l==="object"||l==="function")&&!Object.isFrozen(o)&&Cr(o)}),r}var sr=class{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function Lr(r){return r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function C(r,...t){let o=Object.create(null);for(let l in r)o[l]=r[l];return t.forEach(function(l){for(let g in l)o[g]=l[g]}),o}var ft="</span>",Or=r=>!!r.scope,ut=(r,{prefix:t})=>{if(r.startsWith("language:"))return r.replace("language:","language-");if(r.includes(".")){let o=r.split(".");return[`${t}${o.shift()}`,...o.map((l,g)=>`${l}${"_".repeat(g+1)}`)].join(" ")}return`${t}${r}`},ur=class{constructor(t,o){this.buffer="",this.classPrefix=o.classPrefix,t.walk(this)}addText(t){this.buffer+=Lr(t)}openNode(t){if(!Or(t))return;let o=ut(t.scope,{prefix:this.classPrefix});this.span(o)}closeNode(t){Or(t)&&(this.buffer+=ft)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}},Sr=(r={})=>{let t={children:[]};return Object.assign(t,r),t},vr=class r{constructor(){this.rootNode=Sr(),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){let o=Sr({scope:t});this.add(o),this.stack.push(o)}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,o){return typeof o=="string"?t.addText(o):o.children&&(t.openNode(o),o.children.forEach(l=>this._walk(t,l)),t.closeNode(o)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(o=>typeof o=="string")?t.children=[t.children.join("")]:t.children.forEach(o=>{r._collapse(o)}))}},hr=class extends vr{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,o){let l=t.root;o&&(l.scope=`language:${o}`),this.add(l)}toHTML(){return new ur(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}};function V(r){return r?typeof r=="string"?r:r.source:null}function Dr(r){return P("(?=",r,")")}function vt(r){return P("(?:",r,")*")}function ht(r){return P("(?:",r,")?")}function P(...r){return r.map(o=>V(o)).join("")}function xt(r){let t=r[r.length-1];return typeof t=="object"&&t.constructor===Object?(r.splice(r.length-1,1),t):{}}function wr(...r){return"("+(xt(r).capture?"":"?:")+r.map(l=>V(l)).join("|")+")"}function Gr(r){return new RegExp(r.toString()+"|").exec("").length-1}function wt(r,t){let o=r&&r.exec(t);return o&&o.index===0}var yt=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function yr(r,{joinWith:t}){let o=0;return r.map(l=>{o+=1;let g=o,v=V(l),n="";for(;v.length>0;){let i=yt.exec(v);if(!i){n+=v;break}n+=v.substring(0,i.index),v=v.substring(i.index+i[0].length),i[0][0]==="\\"&&i[1]?n+="\\"+String(Number(i[1])+g):(n+=i[0],i[0]==="("&&o++)}return n}).map(l=>`(${l})`).join(t)}var kt=/\b\B/,Ur="[a-zA-Z]\\w*",kr="[a-zA-Z_]\\w*",Pr="\\b\\d+(\\.\\d+)?",Hr="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Fr="\\b(0b[01]+)",zt="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Et=(r={})=>{let t=/^#![ ]*\//;return r.binary&&(r.begin=P(t,/.*\b/,r.binary,/\b.*/)),C({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(o,l)=>{o.index!==0&&l.ignoreMatch()}},r)},J={begin:"\\\\[\\s\\S]",relevance:0},_t={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[J]},jt={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[J]},Rt={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/},dr=function(r,t,o={}){let l=C({scope:"comment",begin:r,end:t,contains:[]},o);l.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});let g=wr("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 l.contains.push({begin:P(/[ ]+/,"(",g,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),l},At=dr("//","$"),Mt=dr("/\\*","\\*/"),Ot=dr("#","$"),St={scope:"number",begin:Pr,relevance:0},Bt={scope:"number",begin:Hr,relevance:0},Nt={scope:"number",begin:Fr,relevance:0},It={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[J,{begin:/\[/,end:/\]/,relevance:0,contains:[J]}]}]},Tt={scope:"title",begin:Ur,relevance:0},Ct={scope:"title",begin:kr,relevance:0},Lt={begin:"\\.\\s*"+kr,relevance:0},Dt=function(r){return Object.assign(r,{"on:begin":(t,o)=>{o.data._beginMatch=t[1]},"on:end":(t,o)=>{o.data._beginMatch!==t[1]&&o.ignoreMatch()}})},nr=Object.freeze({__proto__:null,MATCH_NOTHING_RE:kt,IDENT_RE:Ur,UNDERSCORE_IDENT_RE:kr,NUMBER_RE:Pr,C_NUMBER_RE:Hr,BINARY_NUMBER_RE:Fr,RE_STARTERS_RE:zt,SHEBANG:Et,BACKSLASH_ESCAPE:J,APOS_STRING_MODE:_t,QUOTE_STRING_MODE:jt,PHRASAL_WORDS_MODE:Rt,COMMENT:dr,C_LINE_COMMENT_MODE:At,C_BLOCK_COMMENT_MODE:Mt,HASH_COMMENT_MODE:Ot,NUMBER_MODE:St,C_NUMBER_MODE:Bt,BINARY_NUMBER_MODE:Nt,REGEXP_MODE:It,TITLE_MODE:Tt,UNDERSCORE_TITLE_MODE:Ct,METHOD_GUARD:Lt,END_SAME_AS_BEGIN:Dt});function Gt(r,t){r.input[r.index-1]==="."&&t.ignoreMatch()}function Ut(r,t){r.className!==void 0&&(r.scope=r.className,delete r.className)}function Pt(r,t){t&&r.beginKeywords&&(r.begin="\\b("+r.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",r.__beforeBegin=Gt,r.keywords=r.keywords||r.beginKeywords,delete r.beginKeywords,r.relevance===void 0&&(r.relevance=0))}function Ht(r,t){Array.isArray(r.illegal)&&(r.illegal=wr(...r.illegal))}function Ft(r,t){if(r.match){if(r.begin||r.end)throw new Error("begin & end are not supported with match");r.begin=r.match,delete r.match}}function $t(r,t){r.relevance===void 0&&(r.relevance=1)}var Xt=(r,t)=>{if(!r.beforeMatch)return;if(r.starts)throw new Error("beforeMatch cannot be used with starts");let o=Object.assign({},r);Object.keys(r).forEach(l=>{delete r[l]}),r.keywords=o.keywords,r.begin=P(o.beforeMatch,Dr(o.begin)),r.starts={relevance:0,contains:[Object.assign(o,{endsParent:!0})]},r.relevance=0,delete o.beforeMatch},Kt=["of","and","for","in","not","or","if","then","parent","list","value"],Wt="keyword";function $r(r,t,o=Wt){let l=Object.create(null);return typeof r=="string"?g(o,r.split(" ")):Array.isArray(r)?g(o,r):Object.keys(r).forEach(function(v){Object.assign(l,$r(r[v],t,v))}),l;function g(v,n){t&&(n=n.map(i=>i.toLowerCase())),n.forEach(function(i){let b=i.split("|");l[b[0]]=[v,Yt(b[0],b[1])]})}}function Yt(r,t){return t?Number(t):Zt(r)?0:1}function Zt(r){return Kt.includes(r.toLowerCase())}var Br={},U=r=>{console.error(r)},Nr=(r,...t)=>{console.log(`WARN: ${r}`,...t)},K=(r,t)=>{Br[`${r}/${t}`]||(console.log(`Deprecated as of ${r}. ${t}`),Br[`${r}/${t}`]=!0)},lr=new Error;function Xr(r,t,{key:o}){let l=0,g=r[o],v={},n={};for(let i=1;i<=t.length;i++)n[i+l]=g[i],v[i+l]=!0,l+=Gr(t[i-1]);r[o]=n,r[o]._emit=v,r[o]._multi=!0}function qt(r){if(Array.isArray(r.begin)){if(r.skip||r.excludeBegin||r.returnBegin)throw U("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),lr;if(typeof r.beginScope!="object"||r.beginScope===null)throw U("beginScope must be object"),lr;Xr(r,r.begin,{key:"beginScope"}),r.begin=yr(r.begin,{joinWith:""})}}function Qt(r){if(Array.isArray(r.end)){if(r.skip||r.excludeEnd||r.returnEnd)throw U("skip, excludeEnd, returnEnd not compatible with endScope: {}"),lr;if(typeof r.endScope!="object"||r.endScope===null)throw U("endScope must be object"),lr;Xr(r,r.end,{key:"endScope"}),r.end=yr(r.end,{joinWith:""})}}function Vt(r){r.scope&&typeof r.scope=="object"&&r.scope!==null&&(r.beginScope=r.scope,delete r.scope)}function Jt(r){Vt(r),typeof r.beginScope=="string"&&(r.beginScope={_wrap:r.beginScope}),typeof r.endScope=="string"&&(r.endScope={_wrap:r.endScope}),qt(r),Qt(r)}function ro(r){function t(n,i){return new RegExp(V(n),"m"+(r.case_insensitive?"i":"")+(r.unicodeRegex?"u":"")+(i?"g":""))}class o{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(i,b){b.position=this.position++,this.matchIndexes[this.matchAt]=b,this.regexes.push([b,i]),this.matchAt+=Gr(i)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);let i=this.regexes.map(b=>b[1]);this.matcherRe=t(yr(i,{joinWith:"|"}),!0),this.lastIndex=0}exec(i){this.matcherRe.lastIndex=this.lastIndex;let b=this.matcherRe.exec(i);if(!b)return null;let w=b.findIndex((L,H)=>H>0&&L!==void 0),x=this.matchIndexes[w];return b.splice(0,w),Object.assign(b,x)}}class l{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(i){if(this.multiRegexes[i])return this.multiRegexes[i];let b=new o;return this.rules.slice(i).forEach(([w,x])=>b.addRule(w,x)),b.compile(),this.multiRegexes[i]=b,b}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(i,b){this.rules.push([i,b]),b.type==="begin"&&this.count++}exec(i){let b=this.getMatcher(this.regexIndex);b.lastIndex=this.lastIndex;let w=b.exec(i);if(this.resumingScanAtSamePosition()&&!(w&&w.index===this.lastIndex)){let x=this.getMatcher(0);x.lastIndex=this.lastIndex+1,w=x.exec(i)}return w&&(this.regexIndex+=w.position+1,this.regexIndex===this.count&&this.considerAll()),w}}function g(n){let i=new l;return n.contains.forEach(b=>i.addRule(b.begin,{rule:b,type:"begin"})),n.terminatorEnd&&i.addRule(n.terminatorEnd,{type:"end"}),n.illegal&&i.addRule(n.illegal,{type:"illegal"}),i}function v(n,i){let b=n;if(n.isCompiled)return b;[Ut,Ft,Jt,Xt].forEach(x=>x(n,i)),r.compilerExtensions.forEach(x=>x(n,i)),n.__beforeBegin=null,[Pt,Ht,$t].forEach(x=>x(n,i)),n.isCompiled=!0;let w=null;return typeof n.keywords=="object"&&n.keywords.$pattern&&(n.keywords=Object.assign({},n.keywords),w=n.keywords.$pattern,delete n.keywords.$pattern),w=w||/\w+/,n.keywords&&(n.keywords=$r(n.keywords,r.case_insensitive)),b.keywordPatternRe=t(w,!0),i&&(n.begin||(n.begin=/\B|\b/),b.beginRe=t(b.begin),!n.end&&!n.endsWithParent&&(n.end=/\B|\b/),n.end&&(b.endRe=t(b.end)),b.terminatorEnd=V(b.end)||"",n.endsWithParent&&i.terminatorEnd&&(b.terminatorEnd+=(n.end?"|":"")+i.terminatorEnd)),n.illegal&&(b.illegalRe=t(n.illegal)),n.contains||(n.contains=[]),n.contains=[].concat(...n.contains.map(function(x){return to(x==="self"?n:x)})),n.contains.forEach(function(x){v(x,b)}),n.starts&&v(n.starts,i),b.matcher=g(b),b}if(r.compilerExtensions||(r.compilerExtensions=[]),r.contains&&r.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language.  See documentation.");return r.classNameAliases=C(r.classNameAliases||{}),v(r)}function Kr(r){return r?r.endsWithParent||Kr(r.starts):!1}function to(r){return r.variants&&!r.cachedVariants&&(r.cachedVariants=r.variants.map(function(t){return C(r,{variants:null},t)})),r.cachedVariants?r.cachedVariants:Kr(r)?C(r,{starts:r.starts?C(r.starts):null}):Object.isFrozen(r)?C(r):r}var oo="11.8.0",xr=class extends Error{constructor(t,o){super(t),this.name="HTMLInjectionError",this.html=o}},fr=Lr,Ir=C,Tr=Symbol("nomatch"),ao=7,Wr=function(r){let t=Object.create(null),o=Object.create(null),l=[],g=!0,v="Could not find the language '{}', did you forget to load/include a language module?",n={disableAutodetect:!0,name:"Plain text",contains:[]},i={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:hr};function b(a){return i.noHighlightRe.test(a)}function w(a){let d=a.className+" ";d+=a.parentNode?a.parentNode.className:"";let c=i.languageDetectRe.exec(d);if(c){let u=j(c[1]);return u||(Nr(v.replace("{}",c[1])),Nr("Falling back to no-highlight mode for this block.",a)),u?c[1]:"no-highlight"}return d.split(/\s+/).find(u=>b(u)||j(u))}function x(a,d,c){let u="",y="";typeof d=="object"?(u=a,c=d.ignoreIllegals,y=d.language):(K("10.7.0","highlight(lang, code, ...args) has been deprecated."),K("10.7.0",`Please use highlight(code, options) instead.
https://github.com/highlightjs/highlight.js/issues/2277`),y=a,u=d),c===void 0&&(c=!0);let R={code:u,language:y};M("before:highlight",R);let T=R.result?R.result:L(R.language,R.code,c);return T.code=R.code,M("after:highlight",T),T}function L(a,d,c,u){let y=Object.create(null);function R(e,s){return e.keywords[s]}function T(){if(!p.keywords){k.addText(h);return}let e=0;p.keywordPatternRe.lastIndex=0;let s=p.keywordPatternRe.exec(h),m="";for(;s;){m+=h.substring(e,s.index);let f=S.case_insensitive?s[0].toLowerCase():s[0],z=R(p,f);if(z){let[B,it]=z;if(k.addText(m),m="",y[f]=(y[f]||0)+1,y[f]<=ao&&(ir+=it),B.startsWith("_"))m+=s[0];else{let nt=S.classNameAliases[B]||B;O(s[0],nt)}}else m+=s[0];e=p.keywordPatternRe.lastIndex,s=p.keywordPatternRe.exec(h)}m+=h.substring(e),k.addText(m)}function ar(){if(h==="")return;let e=null;if(typeof p.subLanguage=="string"){if(!t[p.subLanguage]){k.addText(h);return}e=L(p.subLanguage,h,!0,Ar[p.subLanguage]),Ar[p.subLanguage]=e._top}else e=N(h,p.subLanguage.length?p.subLanguage:null);p.relevance>0&&(ir+=e.relevance),k.__addSublanguage(e._emitter,e.language)}function _(){p.subLanguage!=null?ar():T(),h=""}function O(e,s){e!==""&&(k.startScope(s),k.addText(e),k.endScope())}function Er(e,s){let m=1,f=s.length-1;for(;m<=f;){if(!e._emit[m]){m++;continue}let z=S.classNameAliases[e[m]]||e[m],B=s[m];z?O(B,z):(h=B,T(),h=""),m++}}function _r(e,s){return e.scope&&typeof e.scope=="string"&&k.openNode(S.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(O(h,S.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),h=""):e.beginScope._multi&&(Er(e.beginScope,s),h="")),p=Object.create(e,{parent:{value:p}}),p}function jr(e,s,m){let f=wt(e.endRe,m);if(f){if(e["on:end"]){let z=new sr(e);e["on:end"](s,z),z.isMatchIgnored&&(f=!1)}if(f){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return jr(e.parent,s,m)}function rt(e){return p.matcher.regexIndex===0?(h+=e[0],1):(gr=!0,0)}function tt(e){let s=e[0],m=e.rule,f=new sr(m),z=[m.__beforeBegin,m["on:begin"]];for(let B of z)if(B&&(B(e,f),f.isMatchIgnored))return rt(s);return m.skip?h+=s:(m.excludeBegin&&(h+=s),_(),!m.returnBegin&&!m.excludeBegin&&(h=s)),_r(m,e),m.returnBegin?0:s.length}function ot(e){let s=e[0],m=d.substring(e.index),f=jr(p,e,m);if(!f)return Tr;let z=p;p.endScope&&p.endScope._wrap?(_(),O(s,p.endScope._wrap)):p.endScope&&p.endScope._multi?(_(),Er(p.endScope,e)):z.skip?h+=s:(z.returnEnd||z.excludeEnd||(h+=s),_(),z.excludeEnd&&(h=s));do p.scope&&k.closeNode(),!p.skip&&!p.subLanguage&&(ir+=p.relevance),p=p.parent;while(p!==f.parent);return f.starts&&_r(f.starts,e),z.returnEnd?0:s.length}function at(){let e=[];for(let s=p;s!==S;s=s.parent)s.scope&&e.unshift(s.scope);e.forEach(s=>k.openNode(s))}let er={};function Rr(e,s){let m=s&&s[0];if(h+=e,m==null)return _(),0;if(er.type==="begin"&&s.type==="end"&&er.index===s.index&&m===""){if(h+=d.slice(s.index,s.index+1),!g){let f=new Error(`0 width match regex (${a})`);throw f.languageName=a,f.badRule=er.rule,f}return 1}if(er=s,s.type==="begin")return tt(s);if(s.type==="illegal"&&!c){let f=new Error('Illegal lexeme "'+m+'" for mode "'+(p.scope||"<unnamed>")+'"');throw f.mode=p,f}else if(s.type==="end"){let f=ot(s);if(f!==Tr)return f}if(s.type==="illegal"&&m==="")return 1;if(cr>1e5&&cr>s.index*3)throw new Error("potential infinite loop, way more iterations than matches");return h+=m,m.length}let S=j(a);if(!S)throw U(v.replace("{}",a)),new Error('Unknown language: "'+a+'"');let et=ro(S),mr="",p=u||et,Ar={},k=new i.__emitter(i);at();let h="",ir=0,G=0,cr=0,gr=!1;try{if(S.__emitTokens)S.__emitTokens(d,k);else{for(p.matcher.considerAll();;){cr++,gr?gr=!1:p.matcher.considerAll(),p.matcher.lastIndex=G;let e=p.matcher.exec(d);if(!e)break;let s=d.substring(G,e.index),m=Rr(s,e);G=e.index+m}Rr(d.substring(G))}return k.finalize(),mr=k.toHTML(),{language:a,value:mr,relevance:ir,illegal:!1,_emitter:k,_top:p}}catch(e){if(e.message&&e.message.includes("Illegal"))return{language:a,value:fr(d),illegal:!0,relevance:0,_illegalBy:{message:e.message,index:G,context:d.slice(G-100,G+100),mode:e.mode,resultSoFar:mr},_emitter:k};if(g)return{language:a,value:fr(d),illegal:!1,relevance:0,errorRaised:e,_emitter:k,_top:p};throw e}}function H(a){let d={value:fr(a),illegal:!1,relevance:0,_top:n,_emitter:new i.__emitter(i)};return d._emitter.addText(a),d}function N(a,d){d=d||i.languages||Object.keys(t);let c=H(a),u=d.filter(j).filter(Q).map(_=>L(_,a,!1));u.unshift(c);let y=u.sort((_,O)=>{if(_.relevance!==O.relevance)return O.relevance-_.relevance;if(_.language&&O.language){if(j(_.language).supersetOf===O.language)return 1;if(j(O.language).supersetOf===_.language)return-1}return 0}),[R,T]=y,ar=R;return ar.secondBest=T,ar}function F(a,d,c){let u=d&&o[d]||c;a.classList.add("hljs"),a.classList.add(`language-${u}`)}function D(a){let d=null,c=w(a);if(b(c))return;if(M("before:highlightElement",{el:a,language:c}),a.children.length>0&&(i.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(a)),i.throwUnescapedHTML))throw new xr("One of your code blocks includes unescaped HTML.",a.innerHTML);d=a;let u=d.textContent,y=c?x(u,{language:c,ignoreIllegals:!0}):N(u);a.innerHTML=y.value,F(a,c,y.language),a.result={language:y.language,re:y.relevance,relevance:y.relevance},y.secondBest&&(a.secondBest={language:y.secondBest.language,relevance:y.secondBest.relevance}),M("after:highlightElement",{el:a,result:y,text:u})}function rr(a){i=Ir(i,a)}let Y=()=>{I(),K("10.6.0","initHighlighting() deprecated.  Use highlightAll() now.")};function zr(){I(),K("10.6.0","initHighlightingOnLoad() deprecated.  Use highlightAll() now.")}let $=!1;function I(){if(document.readyState==="loading"){$=!0;return}document.querySelectorAll(i.cssSelector).forEach(D)}function Z(){$&&I()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",Z,!1);function tr(a,d){let c=null;try{c=d(r)}catch(u){if(U("Language definition for '{}' could not be registered.".replace("{}",a)),g)U(u);else throw u;c=n}c.name||(c.name=a),t[a]=c,c.rawDefinition=d.bind(null,r),c.aliases&&q(c.aliases,{languageName:a})}function X(a){delete t[a];for(let d of Object.keys(o))o[d]===a&&delete o[d]}function or(){return Object.keys(t)}function j(a){return a=(a||"").toLowerCase(),t[a]||t[o[a]]}function q(a,{languageName:d}){typeof a=="string"&&(a=[a]),a.forEach(c=>{o[c.toLowerCase()]=d})}function Q(a){let d=j(a);return d&&!d.disableAutodetect}function pr(a){a["before:highlightBlock"]&&!a["before:highlightElement"]&&(a["before:highlightElement"]=d=>{a["before:highlightBlock"](Object.assign({block:d.el},d))}),a["after:highlightBlock"]&&!a["after:highlightElement"]&&(a["after:highlightElement"]=d=>{a["after:highlightBlock"](Object.assign({block:d.el},d))})}function A(a){pr(a),l.push(a)}function E(a){let d=l.indexOf(a);d!==-1&&l.splice(d,1)}function M(a,d){let c=a;l.forEach(function(u){u[c]&&u[c](d)})}function Jr(a){return K("10.7.0","highlightBlock will be removed entirely in v12.0"),K("10.7.0","Please use highlightElement now."),D(a)}Object.assign(r,{highlight:x,highlightAuto:N,highlightAll:I,highlightElement:D,highlightBlock:Jr,configure:rr,initHighlighting:Y,initHighlightingOnLoad:zr,registerLanguage:tr,unregisterLanguage:X,listLanguages:or,getLanguage:j,registerAliases:q,autoDetection:Q,inherit:Ir,addPlugin:A,removePlugin:E}),r.debugMode=function(){g=!1},r.safeMode=function(){g=!0},r.versionString=oo,r.regex={concat:P,lookahead:Dr,either:wr,optional:ht,anyNumberOfTimes:vt};for(let a in nr)typeof nr[a]=="object"&&Cr(nr[a]);return Object.assign(r,nr),r},W=Wr({});W.newInstance=()=>Wr({});Yr.exports=W;W.HighlightJS=W;W.default=W});var qr=gt(Zr(),1);var br=qr.default;function Qr(r){let t=r.regex,o=/(?![A-Za-z0-9])(?![$])/,l=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,o),g=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,o),v={scope:"variable",match:"\\$+"+l},n={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},i={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},b=r.inherit(r.APOS_STRING_MODE,{illegal:null}),w=r.inherit(r.QUOTE_STRING_MODE,{illegal:null,contains:r.QUOTE_STRING_MODE.contains.concat(i)}),x={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:r.QUOTE_STRING_MODE.contains.concat(i),"on:begin":(A,E)=>{E.data._beginMatch=A[1]||A[2]},"on:end":(A,E)=>{E.data._beginMatch!==A[1]&&E.ignoreMatch()}},L=r.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),H=`[ 	
]`,N={scope:"string",variants:[w,b,x,L]},F={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},D=["false","null","true"],rr=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],Y=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],$={keyword:rr,literal:(A=>{let E=[];return A.forEach(M=>{E.push(M),M.toLowerCase()===M?E.push(M.toUpperCase()):E.push(M.toLowerCase())}),E})(D),built_in:Y},I=A=>A.map(E=>E.replace(/\|\d+$/,"")),Z={variants:[{match:[/new/,t.concat(H,"+"),t.concat("(?!",I(Y).join("\\b|"),"\\b)"),g],scope:{1:"keyword",4:"title.class"}}]},tr=t.concat(l,"\\b(?!\\()"),X={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),tr],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[g,t.concat(/::/,t.lookahead(/(?!class\b)/)),tr],scope:{1:"title.class",3:"variable.constant"}},{match:[g,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[g,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},or={scope:"attr",match:t.concat(l,t.lookahead(":"),t.lookahead(/(?!::)/))},j={relevance:0,begin:/\(/,end:/\)/,keywords:$,contains:[or,v,X,r.C_BLOCK_COMMENT_MODE,N,F,Z]},q={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",I(rr).join("\\b|"),"|",I(Y).join("\\b|"),"\\b)"),l,t.concat(H,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[j]};j.contains.push(q);let Q=[or,X,r.C_BLOCK_COMMENT_MODE,N,F,Z],pr={begin:t.concat(/#\[\s*/,g),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:D,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:D,keyword:["new","array"]},contains:["self",...Q]},...Q,{scope:"meta",match:g}]};return{case_insensitive:!1,keywords:$,contains:[pr,r.HASH_COMMENT_MODE,r.COMMENT("//","$"),r.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:r.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},n,{scope:"variable.language",match:/\$this\b/},v,q,X,{match:[/const/,/\s/,l],scope:{1:"keyword",3:"variable.constant"}},Z,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},r.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:$,contains:["self",v,X,r.C_BLOCK_COMMENT_MODE,N,F]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},r.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[r.inherit(r.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},r.UNDERSCORE_TITLE_MODE]},N,F]}}function Vr(r){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}document.addEventListener("DOMContentLoaded",()=>{br.registerLanguage("php",Qr),br.registerLanguage("plaintext",Vr),br.highlightAll()});console.log("#Hooray!Albatross!");})();
//# sourceMappingURL=index.js.map