Spaces:
Sleeping
Sleeping
File size: 47,373 Bytes
dcb132a |
1 2 |
!function(e){var t="object"==typeof window&&window||"object"==typeof self&&self;"undefined"!=typeof exports?e(exports):t&&(t.hljs=e({}),"function"==typeof define&&define.amd&&define([],function(){return t.hljs}))}(function(e){function t(e){return e.replace(/[&<>]/gm,function(e){return z[e]})}function r(e){return e.nodeName.toLowerCase()}function i(e,t){var r=e&&e.exec(t);return r&&0===r.index}function n(e){return _.test(e)}function a(e){var t,r,i,a,o=e.className+" ";if(o+=e.parentNode?e.parentNode.className:"",r=C.exec(o))return w(r[1])?r[1]:"no-highlight";for(o=o.split(/\s+/),t=0,i=o.length;i>t;t++)if(a=o[t],n(a)||w(a))return a}function o(e,t){var r,i={};for(r in e)i[r]=e[r];if(t)for(r in t)i[r]=t[r];return i}function s(e){var t=[];return function e(i,n){for(var a=i.firstChild;a;a=a.nextSibling)3===a.nodeType?n+=a.nodeValue.length:1===a.nodeType&&(t.push({event:"start",offset:n,node:a}),n=e(a,n),r(a).match(/br|hr|img|input/)||t.push({event:"stop",offset:n,node:a}));return n}(e,0),t}function l(e,i,n){function a(){return e.length&&i.length?e[0].offset!==i[0].offset?e[0].offset<i[0].offset?e:i:"start"===i[0].event?e:i:e.length?e:i}function o(e){function i(e){return" "+e.nodeName+'="'+t(e.value)+'"'}d+="<"+r(e)+N.map.call(e.attributes,i).join("")+">"}function s(e){d+="</"+r(e)+">"}function l(e){("start"===e.event?o:s)(e.node)}for(var c=0,d="",u=[];e.length||i.length;){var b=a();if(d+=t(n.substr(c,b[0].offset-c)),c=b[0].offset,b===e){u.reverse().forEach(s);do l(b.splice(0,1)[0]),b=a();while(b===e&&b.length&&b[0].offset===c);u.reverse().forEach(o)}else"start"===b[0].event?u.push(b[0].node):u.pop(),l(b.splice(0,1)[0])}return d+t(n.substr(c))}function c(e){function t(e){return e&&e.source||e}function r(r,i){return new RegExp(t(r),"m"+(e.cI?"i":"")+(i?"g":""))}function i(n,a){if(!n.compiled){if(n.compiled=!0,n.k=n.k||n.bK,n.k){var s={},l=function(t,r){e.cI&&(r=r.toLowerCase()),r.split(" ").forEach(function(e){var r=e.split("|");s[r[0]]=[t,r[1]?Number(r[1]):1]})};"string"==typeof n.k?l("keyword",n.k):M(n.k).forEach(function(e){l(e,n.k[e])}),n.k=s}n.lR=r(n.l||/\w+/,!0),a&&(n.bK&&(n.b="\\b("+n.bK.split(" ").join("|")+")\\b"),n.b||(n.b=/\B|\b/),n.bR=r(n.b),n.e||n.eW||(n.e=/\B|\b/),n.e&&(n.eR=r(n.e)),n.tE=t(n.e)||"",n.eW&&a.tE&&(n.tE+=(n.e?"|":"")+a.tE)),n.i&&(n.iR=r(n.i)),null==n.r&&(n.r=1),n.c||(n.c=[]);var c=[];n.c.forEach(function(e){e.v?e.v.forEach(function(t){c.push(o(e,t))}):c.push("self"===e?n:e)}),n.c=c,n.c.forEach(function(e){i(e,n)}),n.starts&&i(n.starts,a);var d=n.c.map(function(e){return e.bK?"\\.?("+e.b+")\\.?":e.b}).concat([n.tE,n.i]).map(t).filter(Boolean);n.t=d.length?r(d.join("|"),!0):{exec:function(){return null}}}}i(e)}function d(e,r,n,a){function o(e,t){for(var r=0;r<t.c.length;r++)if(i(t.c[r].bR,e))return t.c[r]}function s(e,t){if(i(e.eR,t)){for(;e.endsParent&&e.parent;)e=e.parent;return e}return e.eW?s(e.parent,t):void 0}function l(e,t){return!n&&i(t.iR,e)}function b(e,t){var r=y.cI?t[0].toLowerCase():t[0];return e.k.hasOwnProperty(r)&&e.k[r]}function p(e,t,r,i){var n=i?"":S.classPrefix,a='<span class="'+n,o=r?"":E;return a+=e+'">',a+t+o}function f(){var e,r,i,n;if(!M.k)return t(C);for(n="",r=0,M.lR.lastIndex=0,i=M.lR.exec(C);i;)n+=t(C.substr(r,i.index-r)),e=b(M,i),e?($+=e[1],n+=p(e[0],t(i[0]))):n+=t(i[0]),r=M.lR.lastIndex,i=M.lR.exec(C);return n+t(C.substr(r))}function m(){var e="string"==typeof M.sL;if(e&&!k[M.sL])return t(C);var r=e?d(M.sL,C,!0,x[M.sL]):u(C,M.sL.length?M.sL:void 0);return M.r>0&&($+=r.r),e&&(x[M.sL]=r.top),p(r.language,r.value,!1,!0)}function h(){_+=null!=M.sL?m():f(),C=""}function g(e){_+=e.cN?p(e.cN,"",!0):"",M=Object.create(e,{parent:{value:M}})}function v(e,t){if(C+=e,null==t)return h(),0;var r=o(t,M);if(r)return r.skip?C+=t:(r.eB&&(C+=t),h(),r.rB||r.eB||(C=t)),g(r,t),r.rB?0:t.length;var i=s(M,t);if(i){var n=M;n.skip?C+=t:(n.rE||n.eE||(C+=t),h(),n.eE&&(C=t));do M.cN&&(_+=E),M.skip||($+=M.r),M=M.parent;while(M!==i.parent);return i.starts&&g(i.starts,""),n.rE?0:t.length}if(l(t,M))throw new Error('Illegal lexeme "'+t+'" for mode "'+(M.cN||"<unnamed>")+'"');return C+=t,t.length||1}var y=w(e);if(!y)throw new Error('Unknown language: "'+e+'"');c(y);var N,M=a||y,x={},_="";for(N=M;N!==y;N=N.parent)N.cN&&(_=p(N.cN,"",!0)+_);var C="",$=0;try{for(var z,A,B=0;M.t.lastIndex=B,z=M.t.exec(r);)A=v(r.substr(B,z.index-B),z[0]),B=z.index+A;for(v(r.substr(B)),N=M;N.parent;N=N.parent)N.cN&&(_+=E);return{r:$,value:_,language:e,top:M}}catch(e){if(e.message&&-1!==e.message.indexOf("Illegal"))return{r:0,value:t(r)};throw e}}function u(e,r){r=r||S.languages||M(k);var i={r:0,value:t(e)},n=i;return r.filter(w).forEach(function(t){var r=d(t,e,!1);r.language=t,r.r>n.r&&(n=r),r.r>i.r&&(n=i,i=r)}),n.language&&(i.second_best=n),i}function b(e){return S.tabReplace||S.useBR?e.replace($,function(e,t){return S.useBR&&"\n"===e?"<br>":S.tabReplace?t.replace(/\t/g,S.tabReplace):void 0}):e}function p(e,t,r){var i=t?x[t]:r,n=[e.trim()];return e.match(/\bhljs\b/)||n.push("hljs"),-1===e.indexOf(i)&&n.push(i),n.join(" ").trim()}function f(e){var t,r,i,o,c,f=a(e);n(f)||(S.useBR?(t=document.createElementNS("http://www.w3.org/1999/xhtml","div"),t.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/<br[ \/]*>/g,"\n")):t=e,c=t.textContent,i=f?d(f,c,!0):u(c),r=s(t),r.length&&(o=document.createElementNS("http://www.w3.org/1999/xhtml","div"),o.innerHTML=i.value,i.value=l(r,s(o),c)),i.value=b(i.value),e.innerHTML=i.value,e.className=p(e.className,f,i.language),e.result={language:i.language,re:i.r},i.second_best&&(e.second_best={language:i.second_best.language,re:i.second_best.r}))}function m(e){S=o(S,e)}function h(){if(!h.called){h.called=!0;var e=document.querySelectorAll("pre code");N.forEach.call(e,f)}}function g(){addEventListener("DOMContentLoaded",h,!1),addEventListener("load",h,!1)}function v(t,r){var i=k[t]=r(e);i.aliases&&i.aliases.forEach(function(e){x[e]=t})}function y(){return M(k)}function w(e){return e=(e||"").toLowerCase(),k[e]||k[x[e]]}var N=[],M=Object.keys,k={},x={},_=/^(no-?highlight|plain|text)$/i,C=/\blang(?:uage)?-([\w-]+)\b/i,$=/((^(<[^>]+>|\t|)+|(?:\n)))/gm,E="</span>",S={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0},z={"&":"&","<":"<",">":">"};return e.highlight=d,e.highlightAuto=u,e.fixMarkup=b,e.highlightBlock=f,e.configure=m,e.initHighlighting=h,e.initHighlightingOnLoad=g,e.registerLanguage=v,e.listLanguages=y,e.getLanguage=w,e.inherit=o,e.IR="[a-zA-Z]\\w*",e.UIR="[a-zA-Z_]\\w*",e.NR="\\b\\d+(\\.\\d+)?",e.CNR="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",e.BNR="\\b(0b[01]+)",e.RSR="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",e.BE={b:"\\\\[\\s\\S]",r:0},e.ASM={cN:"string",b:"'",e:"'",i:"\\n",c:[e.BE]},e.QSM={cN:"string",b:'"',e:'"',i:"\\n",c:[e.BE]},e.PWM={b:/\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|like)\b/},e.C=function(t,r,i){var n=e.inherit({cN:"comment",b:t,e:r,c:[]},i||{});return n.c.push(e.PWM),n.c.push({cN:"doctag",b:"(?:TODO|FIXME|NOTE|BUG|XXX):",r:0}),n},e.CLCM=e.C("//","$"),e.CBCM=e.C("/\\*","\\*/"),e.HCM=e.C("#","$"),e.NM={cN:"number",b:e.NR,r:0},e.CNM={cN:"number",b:e.CNR,r:0},e.BNM={cN:"number",b:e.BNR,r:0},e.CSSNM={cN:"number",b:e.NR+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",r:0},e.RM={cN:"regexp",b:/\//,e:/\/[gimuy]*/,i:/\n/,c:[e.BE,{b:/\[/,e:/\]/,r:0,c:[e.BE]}]},e.TM={cN:"title",b:e.IR,r:0},e.UTM={cN:"title",b:e.UIR,r:0},e.METHOD_GUARD={b:"\\.\\s*"+e.UIR,r:0},e.registerLanguage("applescript",function(e){var t=e.inherit(e.QSM,{i:""}),r={cN:"params",b:"\\(",e:"\\)",c:["self",e.CNM,t]},i=e.C("--","$"),n=e.C("\\(\\*","\\*\\)",{c:["self",i]}),a=[i,n,e.HCM];return{aliases:["osascript"],k:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",literal:"AppleScript false linefeed return pi quote result space tab true",built_in:"alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name paragraph paragraphs rest reverse running time version weekday word words year"},c:[t,e.CNM,{cN:"built_in",b:"\\b(clipboard info|the clipboard|info for|list (disks|folder)|mount volume|path to|(close|open for) access|(get|set) eof|current date|do shell script|get volume settings|random number|set volume|system attribute|system info|time to GMT|(load|run|store) script|scripting components|ASCII (character|number)|localized string|choose (application|color|file|file name|folder|from list|remote application|URL)|display (alert|dialog))\\b|^\\s*return\\b"},{cN:"literal",b:"\\b(text item delimiters|current application|missing value)\\b"},{cN:"keyword",b:"\\b(apart from|aside from|instead of|out of|greater than|isn't|(doesn't|does not) (equal|come before|come after|contain)|(greater|less) than( or equal)?|(starts?|ends|begins?) with|contained by|comes (before|after)|a (ref|reference)|POSIX file|POSIX path|(date|time) string|quoted form)\\b"},{bK:"on",i:"[${=;\\n]",c:[e.UTM,r]}].concat(a),i:"//|->|=>|\\[\\["}}),e.registerLanguage("bash",function(e){var t={cN:"variable",v:[{b:/\$[\w\d#@][\w\d_]*/},{b:/\$\{(.*?)}/}]},r={cN:"string",b:/"/,e:/"/,c:[e.BE,t,{cN:"variable",b:/\$\(/,e:/\)/,c:[e.BE]}]},i={cN:"string",b:/'/,e:/'/};return{aliases:["sh","zsh"],l:/-?[a-z\.]+/,k:{keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_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 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",_:"-ne -eq -lt -gt -f -d -e -s -l -a"},c:[{cN:"meta",b:/^#![^\n]+sh\s*$/,r:10},{cN:"function",b:/\w[\w\d_]*\s*\(\s*\)\s*\{/,rB:!0,c:[e.inherit(e.TM,{b:/\w[\w\d_]*/})],r:0},e.HCM,r,i,t]}}),e.registerLanguage("coffeescript",function(e){var t={keyword:"in if for while finally new do return else break catch instanceof throw try this switch continue typeof delete debugger super then unless until loop of by when and or is isnt not",literal:"true false null undefined yes no on off",built_in:"npm require console print module global window document"},r="[A-Za-z$_][0-9A-Za-z$_]*",i={cN:"subst",b:/#\{/,e:/}/,k:t},n=[e.BNM,e.inherit(e.CNM,{starts:{e:"(\\s*/)?",r:0}}),{cN:"string",v:[{b:/'''/,e:/'''/,c:[e.BE]},{b:/'/,e:/'/,c:[e.BE]},{b:/"""/,e:/"""/,c:[e.BE,i]},{b:/"/,e:/"/,c:[e.BE,i]}]},{cN:"regexp",v:[{b:"///",e:"///",c:[i,e.HCM]},{b:"//[gim]*",r:0},{b:/\/(?![ *])(\\\/|.)*?\/[gim]*(?=\W|$)/}]},{b:"@"+r},{b:"`",e:"`",eB:!0,eE:!0,sL:"javascript"}];i.c=n;var a=e.inherit(e.TM,{b:r}),o="(\\(.*\\))?\\s*\\B[-=]>",s={cN:"params",b:"\\([^\\(]",rB:!0,c:[{b:/\(/,e:/\)/,k:t,c:["self"].concat(n)}]};return{aliases:["coffee","cson","iced"],k:t,i:/\/\*/,c:n.concat([e.C("###","###"),e.HCM,{cN:"function",b:"^\\s*"+r+"\\s*=\\s*"+o,e:"[-=]>",rB:!0,c:[a,s]},{b:/[:\(,=]\s*/,r:0,c:[{cN:"function",b:o,e:"[-=]>",rB:!0,c:[s]}]},{cN:"class",bK:"class",e:"$",i:/[:="\[\]]/,c:[{bK:"extends",eW:!0,i:/[:="\[\]]/,c:[a]},a]},{b:r+":",e:":",rB:!0,rE:!0,r:0}])}}),e.registerLanguage("css",function(e){var t="[a-zA-Z-][a-zA-Z0-9_-]*",r={b:/[A-Z\_\.\-]+\s*:/,rB:!0,e:";",eW:!0,c:[{cN:"attribute",b:/\S/,e:":",eE:!0,starts:{eW:!0,eE:!0,c:[{b:/[\w-]+\(/,rB:!0,c:[{cN:"built_in",b:/[\w-]+/},{b:/\(/,e:/\)/,c:[e.ASM,e.QSM]}]},e.CSSNM,e.QSM,e.ASM,e.CBCM,{cN:"number",b:"#[0-9A-Fa-f]+"},{cN:"meta",b:"!important"}]}}]};return{cI:!0,i:/[=\/|'\$]/,c:[e.CBCM,{cN:"selector-id",b:/#[A-Za-z0-9_-]+/},{cN:"selector-class",b:/\.[A-Za-z0-9_-]+/},{cN:"selector-attr",b:/\[/,e:/\]/,i:"$"},{cN:"selector-pseudo",b:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{b:"@(font-face|page)",l:"[a-z-]+",k:"font-face page"},{b:"@",e:"[{;]",i:/:/,c:[{cN:"keyword",b:/\w+/},{b:/\s/,eW:!0,eE:!0,r:0,c:[e.ASM,e.QSM,e.CSSNM]}]},{cN:"selector-tag",b:t,r:0},{b:"{",e:"}",i:/\S/,c:[e.CBCM,r]}]}}),e.registerLanguage("dos",function(e){var t=e.C(/^\s*@?rem\b/,/$/,{r:10}),r={cN:"symbol",b:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)",r:0};return{aliases:["bat","cmd"],cI:!0,i:/\/\*/,k:{keyword:"if else goto for in do call exit not exist errorlevel defined equ neq lss leq gtr geq",built_in:"prn nul lpt3 lpt2 lpt1 con com4 com3 com2 com1 aux shift cd dir echo setlocal endlocal set pause copy append assoc at attrib break cacls cd chcp chdir chkdsk chkntfs cls cmd color comp compact convert date dir diskcomp diskcopy doskey erase fs find findstr format ftype graftabl help keyb label md mkdir mode more move path pause print popd pushd promt rd recover rem rename replace restore rmdir shiftsort start subst time title tree type ver verify vol ping net ipconfig taskkill xcopy ren del"},c:[{cN:"variable",b:/%%[^ ]|%[^ ]+?%|![^ ]+?!/},{cN:"function",b:r.b,e:"goto:eof",c:[e.inherit(e.TM,{b:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),t]},{cN:"number",b:"\\b\\d+",r:0},t]}}),e.registerLanguage("ruby",function(e){var t="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",r={keyword:"and then defined module in return redo if BEGIN retry end for self when next until do begin unless END rescue else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor",literal:"true false nil"},i={cN:"doctag",b:"@[A-Za-z]+"},n={b:"#<",e:">"},a=[e.C("#","$",{c:[i]}),e.C("^\\=begin","^\\=end",{c:[i],r:10}),e.C("^__END__","\\n$")],o={cN:"subst",b:"#\\{",e:"}",k:r},s={cN:"string",c:[e.BE,o],v:[{b:/'/,e:/'/},{b:/"/,e:/"/},{b:/`/,e:/`/},{b:"%[qQwWx]?\\(",e:"\\)"},{b:"%[qQwWx]?\\[",e:"\\]"},{b:"%[qQwWx]?{",e:"}"},{b:"%[qQwWx]?<",e:">"},{b:"%[qQwWx]?/",e:"/"},{b:"%[qQwWx]?%",e:"%"},{b:"%[qQwWx]?-",e:"-"},{b:"%[qQwWx]?\\|",e:"\\|"},{b:/\B\?(\\\d{1,3}|\\x[A-Fa-f0-9]{1,2}|\\u[A-Fa-f0-9]{4}|\\?\S)\b/}]},l={cN:"params",b:"\\(",e:"\\)",endsParent:!0,k:r},c=[s,n,{cN:"class",bK:"class module",e:"$|;",i:/=/,c:[e.inherit(e.TM,{b:"[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?"}),{b:"<\\s*",c:[{b:"("+e.IR+"::)?"+e.IR}]}].concat(a)},{cN:"function",bK:"def",e:"$|;",c:[e.inherit(e.TM,{b:t}),l].concat(a)},{b:e.IR+"::"},{cN:"symbol",b:e.UIR+"(\\!|\\?)?:",r:0},{cN:"symbol",b:":(?!\\s)",c:[s,{b:t}],r:0},{cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",r:0},{b:"(\\$\\W)|((\\$|\\@\\@?)(\\w+))"},{cN:"params",b:/\|/,e:/\|/,k:r},{b:"("+e.RSR+")\\s*",c:[n,{cN:"regexp",c:[e.BE,o],i:/\n/,v:[{b:"/",e:"/[a-z]*"},{b:"%r{",e:"}[a-z]*"},{b:"%r\\(",e:"\\)[a-z]*"},{b:"%r!",e:"![a-z]*"},{b:"%r\\[",e:"\\][a-z]*"}]}].concat(a),r:0}].concat(a);o.c=c,l.c=c;var d="[>?]>",u="[\\w#]+\\(\\w+\\):\\d+:\\d+>",b="(\\w+-)?\\d+\\.\\d+\\.\\d(p\\d+)?[^>]+>",p=[{b:/^\s*=>/,starts:{e:"$",c:c}},{cN:"meta",b:"^("+d+"|"+u+"|"+b+")",starts:{e:"$",c:c}}];return{aliases:["rb","gemspec","podspec","thor","irb"],k:r,i:/\/\*/,c:a.concat(p).concat(c)}}),e.registerLanguage("haml",function(e){return{cI:!0,c:[{cN:"meta",b:"^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$",r:10},e.C("^\\s*(!=#|=#|-#|/).*$",!1,{r:0}),{b:"^\\s*(-|=|!=)(?!#)",starts:{e:"\\n",sL:"ruby"}},{cN:"tag",b:"^\\s*%",c:[{cN:"selector-tag",b:"\\w+"},{cN:"selector-id",b:"#[\\w-]+"},{cN:"selector-class",b:"\\.[\\w-]+"},{b:"{\\s*",e:"\\s*}",c:[{b:":\\w+\\s*=>",e:",\\s+",rB:!0,eW:!0,c:[{cN:"attr",b:":\\w+"},e.ASM,e.QSM,{b:"\\w+",r:0}]}]},{b:"\\(\\s*",e:"\\s*\\)",eE:!0,c:[{b:"\\w+\\s*=",e:"\\s+",rB:!0,eW:!0,c:[{cN:"attr",b:"\\w+",r:0},e.ASM,e.QSM,{b:"\\w+",r:0}]}]}]},{b:"^\\s*[=~]\\s*"},{b:"#{",starts:{e:"}",sL:"ruby"}}]}}),e.registerLanguage("javascript",function(e){return{aliases:["js","jsx"],k:{keyword:"in of if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await static import from as",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Promise"},c:[{cN:"meta",r:10,b:/^\s*['"]use (strict|asm)['"]/},{cN:"meta",b:/^#!/,e:/$/},e.ASM,e.QSM,{cN:"string",b:"`",e:"`",c:[e.BE,{cN:"subst",b:"\\$\\{",e:"\\}"}]},e.CLCM,e.CBCM,{cN:"number",v:[{b:"\\b(0[bB][01]+)"},{b:"\\b(0[oO][0-7]+)"},{b:e.CNR}],r:0},{b:"("+e.RSR+"|\\b(case|return|throw)\\b)\\s*",k:"return throw case",c:[e.CLCM,e.CBCM,e.RM,{b:/</,e:/(\/\w+|\w+\/)>/,sL:"xml",c:[{b:/<\w+\s*\/>/,skip:!0},{b:/<\w+/,e:/(\/\w+|\w+\/)>/,skip:!0,c:["self"]}]}],r:0},{cN:"function",bK:"function",e:/\{/,eE:!0,c:[e.inherit(e.TM,{b:/[A-Za-z$_][0-9A-Za-z$_]*/}),{cN:"params",b:/\(/,e:/\)/,eB:!0,eE:!0,c:[e.CLCM,e.CBCM]}],i:/\[|%/},{b:/\$[(.]/},e.METHOD_GUARD,{cN:"class",bK:"class",e:/[{;=]/,eE:!0,i:/[:"\[\]]/,c:[{bK:"extends"},e.UTM]},{bK:"constructor",e:/\{/,eE:!0}],i:/#(?!!)/}}),e.registerLanguage("json",function(e){var t={literal:"true false null"},r=[e.QSM,e.CNM],i={e:",",eW:!0,eE:!0,c:r,k:t},n={b:"{",e:"}",c:[{cN:"attr",b:/"/,e:/"/,c:[e.BE],i:"\\n"},e.inherit(i,{b:/:/})],i:"\\S"},a={b:"\\[",e:"\\]",c:[e.inherit(i)],i:"\\S"};return r.splice(r.length,0,n,a),{c:r,k:t,i:"\\S"}}),e.registerLanguage("less",function(e){var t="[\\w-]+",r="("+t+"|@{"+t+"})",i=[],n=[],a=function(e){return{cN:"string",b:"~?"+e+".*?"+e}},o=function(e,t,r){return{cN:e,b:t,r:r}},s={b:"\\(",e:"\\)",c:n,r:0};n.push(e.CLCM,e.CBCM,a("'"),a('"'),e.CSSNM,{b:"(url|data-uri)\\(",starts:{cN:"string",e:"[\\)\\n]",eE:!0}},o("number","#[0-9A-Fa-f]+\\b"),s,o("variable","@@?"+t,10),o("variable","@{"+t+"}"),o("built_in","~?`[^`]*?`"),{cN:"attribute",b:t+"\\s*:",e:":",rB:!0,eE:!0},{cN:"meta",b:"!important"});var l=n.concat({b:"{",e:"}",c:i}),c={bK:"when",eW:!0,c:[{bK:"and not"}].concat(n)},d={b:r+"\\s*:",rB:!0,e:"[;}]",r:0,c:[{cN:"attribute",b:r,e:":",eE:!0,starts:{eW:!0,i:"[<=$]",r:0,c:n}}]},u={cN:"keyword",b:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{e:"[;{}]",rE:!0,c:n,r:0}},b={cN:"variable",v:[{b:"@"+t+"\\s*:",r:15},{b:"@"+t}],starts:{e:"[;}]",rE:!0,c:l}},p={v:[{b:"[\\.#:&\\[>]",e:"[;{}]"},{b:r+"[^;]*{",e:"{"}],rB:!0,rE:!0,i:"[<='$\"]",c:[e.CLCM,e.CBCM,c,o("keyword","all\\b"),o("variable","@{"+t+"}"),o("selector-tag",r+"%?",0),o("selector-id","#"+r),o("selector-class","\\."+r,0),o("selector-tag","&",0),{cN:"selector-attr",b:"\\[",e:"\\]"},{cN:"selector-pseudo",b:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{b:"\\(",e:"\\)",c:l},{b:"!important"}]};return i.push(e.CLCM,e.CBCM,u,b,d,p),{cI:!0,i:"[=>'/<($\"]",c:i}}),e.registerLanguage("xml",function(e){var t="[A-Za-z0-9\\._:-]+",r={eW:!0,i:/</,r:0,c:[{cN:"attr",b:t,r:0},{b:/=\s*/,r:0,c:[{cN:"string",endsParent:!0,v:[{b:/"/,e:/"/},{b:/'/,e:/'/},{b:/[^\s"'=<>`]+/}]}]}]};return{aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist"],cI:!0,c:[{cN:"meta",b:"<!DOCTYPE",e:">",r:10,c:[{b:"\\[",e:"\\]"}]},e.C("<!--","-->",{r:10}),{b:"<\\!\\[CDATA\\[",e:"\\]\\]>",r:10},{b:/<\?(php)?/,e:/\?>/,sL:"php",c:[{b:"/\\*",e:"\\*/",skip:!0}]},{cN:"tag",b:"<style(?=\\s|>|$)",e:">",k:{name:"style"},c:[r],starts:{e:"</style>",rE:!0,sL:["css","xml"]}},{cN:"tag",b:"<script(?=\\s|>|$)",e:">",k:{name:"script"},c:[r],starts:{e:"</script>",rE:!0,sL:["actionscript","javascript","handlebars","xml"]}},{cN:"meta",v:[{b:/<\?xml/,e:/\?>/,r:10},{b:/<\?\w+/,e:/\?>/}]},{cN:"tag",b:"</?",e:"/?>",c:[{cN:"name",b:/[^\/><\s]+/,r:0},r]}]}}),e.registerLanguage("markdown",function(e){return{aliases:["md","mkdown","mkd"],c:[{cN:"section",v:[{b:"^#{1,6}",e:"$"},{b:"^.+?\\n[=-]{2,}$"}]},{b:"<",e:">",sL:"xml",r:0},{cN:"bullet",b:"^([*+-]|(\\d+\\.))\\s+"},{cN:"strong",b:"[*_]{2}.+?[*_]{2}"},{cN:"emphasis",v:[{b:"\\*.+?\\*"},{b:"_.+?_",r:0}]},{cN:"quote",b:"^>\\s+",e:"$"},{cN:"code",v:[{b:"^```w*s*$",e:"^```s*$"},{b:"`.+?`"},{b:"^( {4}|\t)",e:"$",r:0}]},{b:"^[-\\*]{3,}",e:"$"},{b:"\\[.+?\\][\\(\\[].*?[\\)\\]]",rB:!0,c:[{cN:"string",b:"\\[",e:"\\]",eB:!0,rE:!0,r:0},{cN:"link",b:"\\]\\(",e:"\\)",eB:!0,eE:!0},{cN:"symbol",b:"\\]\\[",e:"\\]",eB:!0,eE:!0}],r:10},{b:/^\[[^\n]+\]:/,rB:!0,c:[{cN:"symbol",b:/\[/,e:/\]/,eB:!0,eE:!0},{cN:"link",b:/:\s*/,e:/$/,eB:!0}]}]}}),e.registerLanguage("perl",function(e){var t="getpwent getservent quotemeta msgrcv scalar kill dbmclose undef lc ma syswrite tr send umask sysopen shmwrite vec qx utime local oct semctl localtime readpipe do return format read sprintf dbmopen pop getpgrp not getpwnam rewinddir qqfileno qw endprotoent wait sethostent bless s|0 opendir continue each sleep endgrent shutdown dump chomp connect getsockname die socketpair close flock exists index shmgetsub for endpwent redo lstat msgctl setpgrp abs exit select print ref gethostbyaddr unshift fcntl syscall goto getnetbyaddr join gmtime symlink semget splice x|0 getpeername recv log setsockopt cos last reverse gethostbyname getgrnam study formline endhostent times chop length gethostent getnetent pack getprotoent getservbyname rand mkdir pos chmod y|0 substr endnetent printf next open msgsnd readdir use unlink getsockopt getpriority rindex wantarray hex system getservbyport endservent int chr untie rmdir prototype tell listen fork shmread ucfirst setprotoent else sysseek link getgrgid shmctl waitpid unpack getnetbyname reset chdir grep split require caller lcfirst until warn while values shift telldir getpwuid my getprotobynumber delete and sort uc defined srand accept package seekdir getprotobyname semop our rename seek if q|0 chroot sysread setpwent no crypt getc chown sqrt write setnetent setpriority foreach tie sin msgget map stat getlogin unless elsif truncate exec keys glob tied closedirioctl socket readlink eval xor readline binmode setservent eof ord bind alarm pipe atan2 getgrent exp time push setgrent gt lt or ne m|0 break given say state when",r={cN:"subst",b:"[$@]\\{",e:"\\}",k:t},i={b:"->{",e:"}"},n={v:[{b:/\$\d/},{b:/[\$%@](\^\w\b|#\w+(::\w+)*|{\w+}|\w+(::\w*)*)/},{b:/[\$%@][^\s\w{]/,r:0}]},a=[e.BE,r,n],o=[n,e.HCM,e.C("^\\=\\w","\\=cut",{eW:!0}),i,{cN:"string",c:a,v:[{b:"q[qwxr]?\\s*\\(",e:"\\)",r:5},{b:"q[qwxr]?\\s*\\[",e:"\\]",r:5},{b:"q[qwxr]?\\s*\\{",e:"\\}",r:5},{b:"q[qwxr]?\\s*\\|",e:"\\|",r:5},{b:"q[qwxr]?\\s*\\<",e:"\\>",r:5},{b:"qw\\s+q",e:"q",r:5},{b:"'",e:"'",c:[e.BE]},{b:'"',e:'"'},{b:"`",e:"`",c:[e.BE]},{b:"{\\w+}",c:[],r:0},{b:"-?\\w+\\s*\\=\\>",c:[],r:0}]},{cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",r:0},{b:"(\\/\\/|"+e.RSR+"|\\b(split|return|print|reverse|grep)\\b)\\s*",k:"split return print reverse grep",r:0,c:[e.HCM,{cN:"regexp",b:"(s|tr|y)/(\\\\.|[^/])*/(\\\\.|[^/])*/[a-z]*",r:10},{cN:"regexp",b:"(m|qr)?/",e:"/[a-z]*",c:[e.BE],r:0}]},{cN:"function",bK:"sub",e:"(\\s*\\(.*?\\))?[;{]",eE:!0,r:5,c:[e.TM]},{b:"-\\w\\b",r:0},{b:"^__DATA__$",e:"^__END__$",sL:"mojolicious",c:[{b:"^@@.*",e:"$",cN:"comment"}]}];return r.c=o,i.c=o,{aliases:["pl","pm"],l:/[\w\.]+/,k:t,c:o}}),e.registerLanguage("php",function(e){var t={b:"\\$+[a-zA-Z_-ÿ][a-zA-Z0-9_-ÿ]*"},r={cN:"meta",b:/<\?(php)?|\?>/},i={cN:"string",c:[e.BE,r],v:[{b:'b"',e:'"'},{b:"b'",e:"'"},e.inherit(e.ASM,{i:null}),e.inherit(e.QSM,{i:null})]},n={v:[e.BNM,e.CNM]};return{aliases:["php3","php4","php5","php6"],cI:!0,k:"and include_once list abstract global private echo interface as static endswitch array null if endwhile or const for endforeach self var while isset public protected exit foreach throw elseif include __FILE__ empty require_once do xor return parent clone use __CLASS__ __LINE__ else break print eval new catch __METHOD__ case exception default die require __FUNCTION__ enddeclare final try switch continue endfor endif declare unset true false trait goto instanceof insteadof __DIR__ __NAMESPACE__ yield finally",c:[e.HCM,e.C("//","$",{c:[r]}),e.C("/\\*","\\*/",{c:[{cN:"doctag",b:"@[A-Za-z]+"}]}),e.C("__halt_compiler.+?;",!1,{eW:!0,k:"__halt_compiler",l:e.UIR}),{cN:"string",b:/<<<['"]?\w+['"]?$/,e:/^\w+;?$/,c:[e.BE,{cN:"subst",v:[{b:/\$\w+/},{b:/\{\$/,e:/\}/}]}]},r,{cN:"keyword",b:/\$this\b/},t,{b:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{cN:"function",bK:"function",e:/[;{]/,eE:!0,i:"\\$|\\[|%",c:[e.UTM,{cN:"params",b:"\\(",e:"\\)",c:["self",t,e.CBCM,i,n]}]},{cN:"class",bK:"class interface",e:"{",eE:!0,i:/[:\(\$"]/,c:[{bK:"extends implements"},e.UTM]},{bK:"namespace",e:";",i:/[\.']/,c:[e.UTM]},{bK:"use",e:";",c:[e.UTM]},{b:"=>"},i,n]}}),e.registerLanguage("python",function(e){var t={cN:"meta",b:/^(>>>|\.\.\.) /},r={cN:"string",c:[e.BE],v:[{b:/(u|b)?r?'''/,e:/'''/,c:[t],r:10},{b:/(u|b)?r?"""/,e:/"""/,c:[t],r:10},{b:/(u|r|ur)'/,e:/'/,r:10},{b:/(u|r|ur)"/,e:/"/,r:10},{b:/(b|br)'/,e:/'/},{b:/(b|br)"/,e:/"/},e.ASM,e.QSM]},i={cN:"number",r:0,v:[{b:e.BNR+"[lLjJ]?"},{b:"\\b(0o[0-7]+)[lLjJ]?"},{b:e.CNR+"[lLjJ]?"}]},n={cN:"params",b:/\(/,e:/\)/,c:["self",t,i,r]};return{aliases:["py","gyp"],k:{keyword:"and elif is global as in if from raise for except finally print import pass return exec else break not with class assert yield try while continue del or def lambda async await nonlocal|10 None True False",built_in:"Ellipsis NotImplemented"},i:/(<\/|->|\?)/,c:[t,i,r,e.HCM,{v:[{cN:"function",bK:"def",r:10},{cN:"class",bK:"class"}],e:/:/,i:/[${=;\n,]/,c:[e.UTM,n,{b:/->/,eW:!0,k:"None"}]},{cN:"meta",b:/^[\t ]*@/,e:/$/},{b:/\b(print|exec)\(/}]}}),e.registerLanguage("scss",function(e){var t="[a-zA-Z-][a-zA-Z0-9_-]*",r={cN:"variable",b:"(\\$"+t+")\\b"},i={cN:"number",b:"#[0-9A-Fa-f]+"};return{cN:"attribute",b:"[A-Z\\_\\.\\-]+",e:":",eE:!0,i:"[^\\s]",starts:{eW:!0,eE:!0,c:[i,e.CSSNM,e.QSM,e.ASM,e.CBCM,{cN:"meta",b:"!important"}]}},{cI:!0,i:"[=/|']",c:[e.CLCM,e.CBCM,{cN:"selector-id",b:"\\#[A-Za-z0-9_-]+",r:0},{cN:"selector-class",b:"\\.[A-Za-z0-9_-]+",r:0},{cN:"selector-attr",b:"\\[",e:"\\]",i:"$"},{cN:"selector-tag",b:"\\b(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|command|datalist|dd|del|details|dfn|div|dl|dt|em|embed|fieldset|figcaption|figure|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|map|mark|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|rp|rt|ruby|samp|script|section|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)\\b",r:0},{b:":(visited|valid|root|right|required|read-write|read-only|out-range|optional|only-of-type|only-child|nth-of-type|nth-last-of-type|nth-last-child|nth-child|not|link|left|last-of-type|last-child|lang|invalid|indeterminate|in-range|hover|focus|first-of-type|first-line|first-letter|first-child|first|enabled|empty|disabled|default|checked|before|after|active)"},{b:"::(after|before|choices|first-letter|first-line|repeat-index|repeat-item|selection|value)"},r,{cN:"attribute",b:"\\b(z-index|word-wrap|word-spacing|word-break|width|widows|white-space|visibility|vertical-align|unicode-bidi|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform-style|transform-origin|transform|top|text-underline-position|text-transform|text-shadow|text-rendering|text-overflow|text-indent|text-decoration-style|text-decoration-line|text-decoration-color|text-decoration|text-align-last|text-align|tab-size|table-layout|right|resize|quotes|position|pointer-events|perspective-origin|perspective|page-break-inside|page-break-before|page-break-after|padding-top|padding-right|padding-left|padding-bottom|padding|overflow-y|overflow-x|overflow-wrap|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|order|opacity|object-position|object-fit|normal|none|nav-up|nav-right|nav-left|nav-index|nav-down|min-width|min-height|max-width|max-height|mask|marks|margin-top|margin-right|margin-left|margin-bottom|margin|list-style-type|list-style-position|list-style-image|list-style|line-height|letter-spacing|left|justify-content|initial|inherit|ime-mode|image-orientation|image-resolution|image-rendering|icon|hyphens|height|font-weight|font-variant-ligatures|font-variant|font-style|font-stretch|font-size-adjust|font-size|font-language-override|font-kerning|font-feature-settings|font-family|font|float|flex-wrap|flex-shrink|flex-grow|flex-flow|flex-direction|flex-basis|flex|filter|empty-cells|display|direction|cursor|counter-reset|counter-increment|content|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|columns|color|clip-path|clip|clear|caption-side|break-inside|break-before|break-after|box-sizing|box-shadow|box-decoration-break|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-left-width|border-left-style|border-left-color|border-left|border-image-width|border-image-source|border-image-slice|border-image-repeat|border-image-outset|border-image|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border|background-size|background-repeat|background-position|background-origin|background-image|background-color|background-clip|background-attachment|background-blend-mode|background|backface-visibility|auto|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|align-self|align-items|align-content)\\b",i:"[^\\s]"},{b:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"
},{b:":",e:";",c:[r,i,e.CSSNM,e.QSM,e.ASM,{cN:"meta",b:"!important"}]},{b:"@",e:"[{;]",k:"mixin include extend for if else each while charset import debug media page content font-face namespace warn",c:[r,e.QSM,e.ASM,i,e.CSSNM,{b:"\\s[A-Za-z0-9_.-]+",r:0}]}]}}),e.registerLanguage("typescript",function(e){var t={keyword:"in if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const class public private protected get set super static implements enum export import declare type namespace abstract",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document any number boolean string void"};return{aliases:["ts"],k:t,c:[{cN:"meta",b:/^\s*['"]use strict['"]/},e.ASM,e.QSM,{cN:"string",b:"`",e:"`",c:[e.BE,{cN:"subst",b:"\\$\\{",e:"\\}"}]},e.CLCM,e.CBCM,{cN:"number",v:[{b:"\\b(0[bB][01]+)"},{b:"\\b(0[oO][0-7]+)"},{b:e.CNR}],r:0},{b:"("+e.RSR+"|\\b(case|return|throw)\\b)\\s*",k:"return throw case",c:[e.CLCM,e.CBCM,e.RM],r:0},{cN:"function",b:"function",e:/[\{;]/,eE:!0,k:t,c:["self",e.inherit(e.TM,{b:/[A-Za-z$_][0-9A-Za-z$_]*/}),{cN:"params",b:/\(/,e:/\)/,eB:!0,eE:!0,k:t,c:[e.CLCM,e.CBCM],i:/["'\(]/}],i:/%/,r:0},{bK:"constructor",e:/\{/,eE:!0},{b:/module\./,k:{built_in:"module"},r:0},{bK:"module",e:/\{/,eE:!0},{bK:"interface",e:/\{/,eE:!0,k:"interface extends"},{b:/\$[(.]/},{b:"\\."+e.IR,r:0}]}}),e.registerLanguage("yaml",function(e){var t={literal:"{ } true false yes no Yes No True False null"},r="^[ \\-]*",i="[a-zA-Z_][\\w\\-]*",n={cN:"attr",v:[{b:r+i+":"},{b:r+'"'+i+'":'},{b:r+"'"+i+"':"}]},a={cN:"template-variable",v:[{b:"{{",e:"}}"},{b:"%{",e:"}"}]},o={cN:"string",r:0,v:[{b:/'/,e:/'/},{b:/"/,e:/"/}],c:[e.BE,a]};return{cI:!0,aliases:["yml","YAML","yaml"],c:[n,{cN:"meta",b:"^---s*$",r:10},{cN:"string",b:"[\\|>] *$",rE:!0,c:o.c,e:n.v[0].b},{b:"<%[%=-]?",e:"[%-]?%>",sL:"ruby",eB:!0,eE:!0,r:0},{cN:"type",b:"!!"+e.UIR},{cN:"meta",b:"&"+e.UIR+"$"},{cN:"meta",b:"\\*"+e.UIR+"$"},{cN:"bullet",b:"^ *-",r:0},o,e.HCM,e.CNM],k:t}}),e}),function(){"use strict";function e(e){function t(t,r){this.element=t,this.options=e.extend({},a,r),this._create()}function r(e){return e.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")}var i="searcher",n="plugin_"+i,a={itemSelector:"tbody > tr",textSelector:"td",inputSelector:"",caseSensitive:!1,toggle:function(t,r){e(t).toggle(r)}};t.prototype={dispose:function(){this._$input.unbind("."+i);var e=this.options,t=e.toggle||a.toggle;this._$element.find(e.itemSelector).each(function(){t(this,!0)})},filter:function(t){this._lastValue=t;var i=this.options,n=i.textSelector,o=i.toggle||a.toggle,s="gm"+(i.caseSensitive?"":"i"),l=new RegExp("("+r(t)+")",s);this._$element.find(i.itemSelector).each(function(){var t=e(this),r=n?t.find(n):t,i=!1;r=r.each(function(){return i=i||!!e(this).text().match(l),!i}),o(this,i)})},_create:function(){var t=this.options;this._$element=e(this.element),this._fn=e.proxy(this._onValueChange,this);var r="input."+i+" change."+i+" keyup."+i;this._$input=e(t.inputSelector).bind(r,this._fn),this._lastValue=null;var n=t.toggle||a.toggle;this._$element.find(t.itemSelector).each(function(){n(this,!0)})},_onValueChange:function(){var e=this._$input.val();e!==this._lastValue&&this.filter(e)}},e.fn[i]=function(r){var i=Array.prototype.slice.call(arguments,1);return this.each(function(){var a=e.data(this,n),o=typeof r;"string"===o&&a?(a[r].apply(a,i),"dispose"===r&&e.removeData(this,n)):"object"===o&&(a?e.extend(a.options,r):e.data(this,n,new t(this,r)))})}}"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}.call(this),function(e){e.fn.stupidtable=function(t){return this.each(function(){var r=e(this);t=t||{},t=e.extend({},e.fn.stupidtable.default_sort_fns,t),r.data("sortFns",t),r.on("click.stupidtable","thead th",function(){e(this).stupidsort()})})},e.fn.stupidsort=function(t){var r=e(this),i=0,n=e.fn.stupidtable.dir,a=r.closest("table"),o=r.data("sort")||null;if(null!==o){r.parents("tr").find("th").slice(0,e(this).index()).each(function(){var t=e(this).attr("colspan")||1;i+=parseInt(t,10)});var s;return 1==arguments.length?s=t:(s=t||r.data("sort-default")||n.ASC,r.data("sort-dir")&&(s=r.data("sort-dir")===n.ASC?n.DESC:n.ASC)),a.trigger("beforetablesort",{column:i,direction:s}),a.css("display"),setTimeout(function(){var t=[],l=a.data("sortFns")[o],c=a.children("tbody").children("tr");c.each(function(r,n){var a=e(n).children().eq(i),o=a.data("sort-value");"undefined"==typeof o&&(o=a.text(),a.data("sort-value",o)),t.push([o,n])}),t.sort(function(e,t){return l(e[0],t[0])}),s!=n.ASC&&t.reverse(),c=e.map(t,function(e){return e[1]}),a.children("tbody").append(c),a.find("th").data("sort-dir",null).removeClass("sorting-desc sorting-asc"),r.data("sort-dir",s).addClass("sorting-"+s),a.trigger("aftertablesort",{column:i,direction:s}),a.css("display")},10),r}},e.fn.updateSortVal=function(t){var r=e(this);return r.is("[data-sort-value]")&&r.attr("data-sort-value",t),r.data("sort-value",t),r},e.fn.stupidtable.dir={ASC:"asc",DESC:"desc"},e.fn.stupidtable.default_sort_fns={int:function(e,t){return parseInt(e,10)-parseInt(t,10)},float:function(e,t){return parseFloat(e)-parseFloat(t)},string:function(e,t){return e.localeCompare(t)},"string-ins":function(e,t){return e=e.toLocaleLowerCase(),t=t.toLocaleLowerCase(),e.localeCompare(t)}}}(jQuery);var column=$("#file-count").index(),striped_bg=$(".table-striped > tbody > tr:nth-of-type(odd)").css("background-color"),hover_bg,stripedRows=function(){$("#listr-table").has(".table-striped")&&($("tbody tr").css("background-color","inherit"),$("tbody tr:not(.hidden-xs-up):even").css("background-color",striped_bg))};stripedRows(),$(".table-hover>tbody>tr").bind({mouseenter:function(e){hover_bg||($(this).removeAttr("style"),hover_bg=$(this).css("background-color")),$(this).css("background-color",hover_bg)},mouseleave:function(e){stripedRows()}});var decodeFile=function(e){try{return decodeURIComponent(e)}catch(t){return e}};"undefined"!=typeof Dropbox&&$(".save-dropbox").click(function(e){e.preventDefault();var t=$(this).get(0).href;Dropbox.save(t)});var K,Keyboard={elements:{hidden:$("tr.hidden-xs-up"),keyboard:$("#viewer-modal"),search:$("#listr-search"),viewer:$("#viewer-modal")},init:function(){K=this.elements,this.events()},events:function(){$(document).bind("keydown",function(e){Keyboard.revealFiles()}).bind("keyup",function(){Keyboard.hideFiles()}),$(document).bind("keyup",function(e){Keyboard.playerControls()}),$(document).bind("keyup",function(e){Keyboard.focusSearch()})},revealFiles:function(){event.altKey&&($(K.hidden).addClass("reveal").removeClass("hidden-xs-up"),stripedRows())},hideFiles:function(){$(K.hidden).removeClass("reveal").addClass("hidden-xs-up"),stripedRows()},focusSearch:function(){K.viewer.hasClass("in")||70===event.which&&($(K.search).focus(),$(document).scrollTop(0))},playerControls:function(){K.viewer.hasClass("in")&&"undefined"!=typeof player&&(70===event.which&&(player.requestFullscreen?player.requestFullscreen():player.msRequestFullscreen?player.msRequestFullscreen():player.mozRequestFullScreen?player.mozRequestFullScreen():player.webkitRequestFullscreen&&player.webkitRequestFullscreen()),32===event.which&&(event.preventDefault(),player.paused===!1?player.pause():player.play()),playerEnd=player.seekable.end(0),37===event.which&&player.currentTime>=1&&(player.currentTime-=1),39===event.which&&player.currentTime<=playerEnd-1&&(player.currentTime+=1),37===event.which&&event.shiftKey&&(player.currentTime=0),38===event.which&&player.volume<1&&(player.volume+=.1),38===event.which&&event.shiftKey&&(player.volume=1),40===event.which&&player.volume>0&&(player.volume-=.1),40===event.which&&event.shiftKey&&(player.volume=0))}},M,Modal={elements:{viewer:$("#viewer-modal"),modal_body:$(".modal-body"),modal_title:$(".modal-title"),file_meta:$("#file-meta"),full_view:$(".fullview"),button:$(".fullview").data("button"),dropbox:$(".save-dropbox"),email:$(".email-link"),twitter:$(".twitter-link"),facebook:$(".facebook-link"),google:$(".google-link")},init:function(){M=this.elements,this.events()},events:function(){$("#viewer-modal").on("show.bs.modal",function(e){var t=$(e.relatedTarget),r=t.data("type");"text"===r?Modal.setTextModal(t):"source"===r?Modal.setSourceModal(t):"audio"===r?Modal.setAudioModal(t):"video"===r?Modal.setVideoModal(t):"image"===r?Modal.setImageModal(t):"website"===r?Modal.setWebModal(t):"pdf"===r?Modal.setPdfModal(t):"virtual"===r?Modal.setVirtualModal(t):"flash"===r?Modal.setFlashModal(t):"quicktime"===r&&Modal.setQuicktimeModal(t)}),$(M.viewer).on("hide.bs.modal",function(){Modal.stopPlayer()}),$(M.viewer).on("hidden.bs.modal",function(){Modal.reset()})},setAudioModal:function(e){var t={open:null,close:null,file:e.attr("href"),uri:e.get(0).href,size:e.data("size")};t.file&&(M.modal_body.html('<audio src="'+t.file+'" id="player" autoplay controls>Your browser does not support the audio element.</audio>'),Modal.setMeta(t),M.viewer.modal("show"))},setVideoModal:function(e){var t={open:null,close:null,file:e.attr("href"),uri:e.get(0).href,size:e.data("size")};t.file&&(M.modal_body.html('<video src="'+t.file+'" id="player" autoplay controls>Video format or MIME type is not supported</video>'),Modal.setMeta(t),M.viewer.modal("show"))},setImageModal:function(e){var t={open:null,close:null,file:e.attr("href"),uri:e.get(0).href,size:e.data("size")};t.file&&(M.modal_body.html('<img src="'+t.file+'">'),Modal.setMeta(t),M.viewer.modal("show"))},setWebModal:function(e){var t={open:'<div class="embed-responsive embed-responsive-4by3">',close:"</div>",file:e.attr("href"),uri:e.get(0).href,size:e.data("size")};t.file&&(t.html='<iframe id="website" class="embed-responsive-item" src="'+t.file+'" sandbox frameborder="0"></iframe>',M.modal_body.html(t.open+t.html+t.close),Modal.setMeta(t),M.viewer.modal("show"))},setPdfModal:function(e){var t={open:'<div class="embed-responsive embed-responsive-4by3">',close:"</div>",file:e.attr("href"),uri:e.get(0).href,size:e.data("size")};t.file&&(t.html='<iframe class="embed-responsive-item" src="'+t.file+'" type="application/pdf" scale="aspect" frameborder="0"></iframe>',M.modal_body.html(t.open+t.html+t.close),Modal.setMeta(t),M.viewer.modal("show"))},setFlashModal:function(e){var t={open:'<div class="embed-responsive embed-responsive-4by3">',close:"</div>",file:e.attr("href"),uri:e.get(0).href,size:e.data("size")};t.file&&(t.html='<object class="embed-responsive-item" type="application/x-shockwave-flash" data="'+t.file+'"><param name="movie" value="'+t.file+'"><param name="quality" value="high"></object>',M.modal_body.html(t.open+t.html+t.close),Modal.setMeta(t),M.viewer.modal("show"))},setQuicktimeModal:function(e){var t={open:'<div class="embed-responsive embed-responsive-16by9">',close:"</div>",file:e.attr("href"),uri:e.get(0).href,size:e.data("size")};t.html='<embed class="embed-responsive-item" src="'+t.file+'" type="video/quicktime" controller="true" showlogo="false" scale="aspect"',M.modal_body.html(t.open+t.html+t.close),Modal.setMeta(t),M.viewer.modal("show")},setVirtualModal:function(e){var t={open:'<div class="embed-responsive embed-responsive-16by9">',close:"</div>",file:e.attr("href"),uri:e.data("url"),size:e.data("url"),id:e.data("id")};t.file.endsWith(".soundcloud")?(t.open='<div class="embed-responsive embed-responsive-4by3">',t.html='<iframe id="virtual" class="embed-responsive-item" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/'+t.id+'&auto_play=true&hide_related=true&show_comments=false&show_user=true&show_reposts=false&visual=true"></iframe>'):t.file.endsWith(".flickr")?(t.open='<div class="embed-responsive embed-responsive-1by1">',t.html='<iframe id="virtual" class="embed-responsive-item" src="https://www.flickr.com/photos/'+t.id+'/player/" scrolling="no" frameborder="0" allowfullscreen></iframe>'):t.file.endsWith("vimeo")?(t.open='<div class="embed-responsive embed-responsive-16by9">',t.html='<iframe id="virtual" class="embed-responsive-item" src="https://player.vimeo.com/video/'+t.id+'?autoplay=1&title=0&byline=0&portrait=0" frameborder="0" allowfullscreen>Video format or MIME type is not supported</iframe>'):t.file.endsWith("youtube")&&(t.open='<div class="embed-responsive embed-responsive-16by9">',t.html='<iframe id="virtual" class="embed-responsive-item" src="https://www.youtube-nocookie.com/embed/'+t.id+'?autoplay=1&rel=0&showinfo=0" frameborder="0" allowfullscreen>Video format or MIME type is not supported</iframe>'),M.modal_body.html(t.open+t.html+t.close),Modal.setMeta(t),M.viewer.modal("show")},setTextModal:function(e){var t={open:'<pre><code id="text">',close:"</code></pre>",file:e.attr("href"),uri:e.get(0).href,size:e.data("size")};t.file&&$.ajax(t.file,{dataType:"text",success:function(e){M.modal_body.html(t.open,t.close),$("#text").text(decodeFile(e)),Modal.setMeta(t)}}).done(function(){$(M.viewer).modal("show")})},setSourceModal:function(e){var t=e.attr("href")[0].split(".").pop(),r={open:'<pre><code id="source"class="'+t+'" dir="ltr">',close:"</code></pre>",file:e.attr("href"),uri:e.get(0).href,size:e.data("size"),highlight:e.data("highlight")};r.file&&$.ajax(r.file,{dataType:"text",success:function(e){M.modal_body.html(r.open,r.close),$("#source").text(decodeFile(e)),Modal.setMeta(r),$("#source").each(function(e,t){"undefined"!=typeof hljs&&hljs.highlightBlock(t);var r=$("code").css("background-color");$("pre").css("background-color",r)})}}).done(function(){M.viewer.modal("show")})},setMeta:function(e){M.full_view.attr("href",e.file),M.modal_title.text(decodeFile(e.file)),meta="undefined"!=typeof e.size?e.size:null,M.file_meta.text(meta),M.dropbox.attr("href",e.file),M.email.attr("href","mailto:?body="+e.uri),M.twitter.attr("href","http://twitter.com/share?url="+e.uri),M.facebook.attr("href","http://www.facebook.com/sharer/sharer.php?u="+e.uri),M.google.attr("href","https://plus.google.com/share?url="+e.uri)},stopPlayer:function(){var e=document.getElementById("player");e&&(e.pause(),e.src="")},reset:function(){$(".highlight").addClass("hidden-xs-up"),M.modal_body.empty()}},S,Search={elements:{input:$("#listr-search"),table:$("#listr-table")},init:function(){S=this.elements,this.events(),$(S.table).searcher({inputSelector:"#listr-search"})},events:function(){$(S.input).keyup(function(e){Search.clearInput()})},clearInput:function(){27==event.keyCode&&(""===S.input.val()?S.input.blur():S.input.val(""))}};if(jQuery().stupidtable)var table=$("#listr-table").stupidtable();$(function(){Keyboard.init(),Modal.init(),jQuery().searcher&&Search.init()}); |