(function(){'use strict';self.oldAddEventListener=self.addEventListener,self.addEventListener=null;var a='undefined'==typeof window?'undefined'==typeof global?'undefined'==typeof self?{}:self:global:window,b=function(a,b){return b={exports:{}},a(b,b.exports),b.exports}(function(b){var c='undefined'==typeof window?'undefined'!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{}:window,d=function(){var a=/\blang(?:uage)?-([\w-]+)\b/i,b=0,d=c.Prism={manual:c.Prism&&c.Prism.manual,disableWorkerMessageHandler:c.Prism&&c.Prism.disableWorkerMessageHandler,util:{encode:function(a){return a instanceof e?new e(a.type,d.util.encode(a.content),a.alias):'Array'===d.util.type(a)?a.map(d.util.encode):a.replace(/&/g,'&').replace(/a.length)return;if(!(w instanceof l)){if(s&&x!=b.length-1){j.lastIndex=i;var y=j.exec(a);if(!y)break;for(var z=y.index+(r?y[1].length:0),A=y.index+y[0].length,B=x,k=i,p=b.length;B=k&&(++x,i=k);if(b[x]instanceof l)continue;C=B-x,w=a.slice(i,k),y.index-=i}else{j.lastIndex=0;var y=j.exec(w),C=1}if(!y){if(g)break;continue}r&&(t=y[1]?y[1].length:0);var z=y.index+t,y=y[0].slice(t),A=z+y.length,D=w.slice(0,z),E=w.slice(A),F=[x,C];D&&(++x,i+=D.length,F.push(D));var G=new l(m,q?d.tokenize(y,q):y,u,y,s);if(F.push(G),E&&F.push(E),Array.prototype.splice.apply(b,F),1!=C&&d.matchGrammar(a,b,c,x,i,!0,m),g)break}}}}},tokenize:function(a,b){var c=[a],e=b.rest;if(e){for(var f in e)b[f]=e[f];delete b.rest}return d.matchGrammar(a,c,b,0,0,!1),c},hooks:{all:{},add:function(a,b){var c=d.hooks.all;c[a]=c[a]||[],c[a].push(b)},run:function(a,b){var c=d.hooks.all[a];if(c&&c.length)for(var e,f=0;e=c[f++];)e(b)}}},e=d.Token=function(a,b,c,d,e){this.type=a,this.content=b,this.alias=c,this.length=0|(d||'').length,this.greedy=!!e};if(e.stringify=function(a,b,c){if('string'==typeof a)return a;if('Array'===d.util.type(a))return a.map(function(c){return e.stringify(c,b,a)}).join('');var f={type:a.type,content:e.stringify(a.content,b,c),tag:'span',classes:['token',a.type],attributes:{},language:b,parent:c};if(a.alias){var g='Array'===d.util.type(a.alias)?a.alias:[a.alias];Array.prototype.push.apply(f.classes,g)}d.hooks.run('wrap',f);var h=Object.keys(f.attributes).map(function(a){return a+'="'+(f.attributes[a]||'').replace(/"/g,'"')+'"'}).join(' ');return'<'+f.tag+' class="'+f.classes.join(' ')+'"'+(h?' '+h:'')+'>'+f.content+''},!c.document)return c.addEventListener?(d.disableWorkerMessageHandler||c.addEventListener('message',function(a){var b=JSON.parse(a.data),e=b.language,f=b.code,g=b.immediateClose;c.postMessage(d.highlight(f,d.languages[e],e)),g&&c.close()},!1),c.Prism):c.Prism;var f=document.currentScript||[].slice.call(document.getElementsByTagName('script')).pop();return f&&(d.filename=f.src,!d.manual&&!f.hasAttribute('data-manual')&&('loading'===document.readyState?document.addEventListener('DOMContentLoaded',d.highlightAll):window.requestAnimationFrame?window.requestAnimationFrame(d.highlightAll):window.setTimeout(d.highlightAll,16))),c.Prism}();b.exports&&(b.exports=d),'undefined'!=typeof a&&(a.Prism=d),d.languages.markup={comment://,prolog:/<\?[\s\S]+?\?>/,doctype://i,cdata://i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/i,inside:{punctuation:[/^=/,{pattern:/(^|[^\\])["']/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i},d.languages.markup.tag.inside['attr-value'].inside.entity=d.languages.markup.entity,d.hooks.add('wrap',function(a){'entity'===a.type&&(a.attributes.title=a.content.replace(/&/,'&'))}),d.languages.xml=d.languages.markup,d.languages.html=d.languages.markup,d.languages.mathml=d.languages.markup,d.languages.svg=d.languages.markup,d.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-]+?.*?(?:;|(?=\s*\{))/i,inside:{rule:/@[\w-]+/}},url:/url\((?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|.*?)\)/i,selector:/[^{}\s][^{};]*?(?=\s*\{)/,string:{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},property:/[-_a-z\xA0-\uFFFF][-\w\xA0-\uFFFF]*(?=\s*:)/i,important:/\B!important\b/i,function:/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:]/},d.languages.css.atrule.inside.rest=d.languages.css,d.languages.markup&&(d.languages.insertBefore('markup','tag',{style:{pattern:/()[\s\S]*?(?=<\/style>)/i,lookbehind:!0,inside:d.languages.css,alias:'language-css',greedy:!0}}),d.languages.insertBefore('inside','attr-value',{"style-attr":{pattern:/\s*style=("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:d.languages.markup.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:d.languages.css}},alias:'language-css'}},d.languages.markup.tag)),d.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/[a-z0-9_]+(?=\()/i,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/},d.languages.javascript=d.languages.extend('clike',{keyword:/\b(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|var|void|while|with|yield)\b/,number:/\b(?:0[xX][\dA-Fa-f]+|0[bB][01]+|0[oO][0-7]+|NaN|Infinity)\b|(?:\b\d+\.?\d*|\B\.\d+)(?:[Ee][+-]?\d+)?/,function:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*\()/i,operator:/-[-=]?|\+[+=]?|!=?=?|<>?>?=?|=(?:==?|>)?|&[&=]?|\|[|=]?|\*\*?=?|\/=?|~|\^=?|%=?|\?|\.{3}/}),d.languages.insertBefore('javascript','keyword',{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(\[[^\]\r\n]+]|\\.|[^/\\\[\r\n])+\/[gimyu]{0,5}(?=\s*($|[\r\n,.;})\]]))/,lookbehind:!0,greedy:!0},"function-variable":{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=\s*(?:function\b|(?:\([^()]*\)|[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/i,alias:'function'},constant:/\b[A-Z][A-Z\d_]*\b/}),d.languages.insertBefore('javascript','string',{"template-string":{pattern:/`(?:\\[\s\S]|\${[^}]+}|[^\\`])*`/,greedy:!0,inside:{interpolation:{pattern:/\${[^}]+}/,inside:{"interpolation-punctuation":{pattern:/^\${|}$/,alias:'punctuation'},rest:null}},string:/[\s\S]+/}}}),d.languages.javascript['template-string'].inside.interpolation.inside.rest=d.languages.javascript,d.languages.markup&&d.languages.insertBefore('markup','tag',{script:{pattern:/()[\s\S]*?(?=<\/script>)/i,lookbehind:!0,inside:d.languages.javascript,alias:'language-javascript',greedy:!0}}),d.languages.js=d.languages.javascript,function(){'undefined'!=typeof self&&self.Prism&&self.document&&document.querySelector&&(self.Prism.fileHighlight=function(){var a={js:'javascript',py:'python',rb:'ruby',ps1:'powershell',psm1:'powershell',sh:'bash',bat:'batch',h:'c',tex:'latex'};Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach(function(b){for(var c,e=b.getAttribute('data-src'),f=b,g=/\blang(?:uage)?-([\w-]+)\b/i;f&&!g.test(f.className);)f=f.parentNode;if(f&&(c=(b.className.match(g)||[,''])[1]),!c){var h=(e.match(/\.(\w+)$/)||[,''])[1];c=a[h]||h}var i=document.createElement('code');i.className='language-'+c,b.textContent='',i.textContent='Loading\u2026',b.appendChild(i);var j=new XMLHttpRequest;j.open('GET',e,!0),j.onreadystatechange=function(){4==j.readyState&&(400>j.status&&j.responseText?(i.textContent=j.responseText,d.highlightElement(i)):400<=j.status?i.textContent='\u2716 Error '+j.status+' while fetching file: '+j.statusText:i.textContent='\u2716 Error: File does not exist or is empty')},j.send(null)}),d.plugins.toolbar&&d.plugins.toolbar.registerButton('download-file',function(b){var c=b.element.parentNode;if(c&&/pre/i.test(c.nodeName)&&c.hasAttribute('data-src')&&c.hasAttribute('data-download-link')){var d=c.getAttribute('data-src'),e=document.createElement('a');return e.textContent=c.getAttribute('data-download-link-label')||'Download',e.setAttribute('download',''),e.href=d,e}})},document.addEventListener('DOMContentLoaded',self.Prism.fileHighlight))}()});self.addEventListener=self.oldAddEventListener,self.onmessage=function(a){try{self.postMessage({id:a.data.id,result:b.highlight(a.data.data,b.languages.markup)})}catch(b){self.postMessage({id:a.data.id,error:b.message})}}})(); //# sourceMappingURL=prism-worker.js.map