7 lines
94 KiB
JavaScript
7 lines
94 KiB
JavaScript
|
/**See http://casual-effects.com/markdeep for @license and documentation.
|
||
|
markdeep.min.js 0.21 (C) 2017 Morgan McGuire
|
||
|
highlight.min.js 9.5.0 (C) 2016 Ivan Sagalaev https://highlightjs.org/*/
|
||
|
!function(){"use strict";function e(e,t,r){return"<"+e+(r?" "+r:"")+">"+t+"</"+e+">"}function t(e){try{var t=document.createElement("canvas"),r=t.getContext("2d");return r.font="10pt "+e,r.measureText("M").width}catch(e){return 10}}function r(e,t){if(window.markdeepOptions&&void 0!==window.markdeepOptions[e]){var r=window.markdeepOptions[e];return t?(r=r[t],void 0!==r?r:J[e][t]):window.markdeepOptions[e]}return void 0!==J[e]?t?J[e][t]:J[e]:void console.warn('Illegal option: "'+e+'"')}function n(t,n){if(r("showLabels")){var a=" {\xa0"+t+"\xa0}";return n?e(n,a):a}return""}function a(e){return r("lang").keyword[e.toLowerCase()]||e}function i(e){return(e+"").rp(/&/g,"&").rp(/</g,"<").rp(/>/g,">").rp(/"/g,""")}function s(e){return e.rp(/</g,"<").rp(/>/g,">").rp(/"/g,'"').rp(/'/g,"'").rp(/–/g,"\u2013").rp(/—/g,"---").rp(/&/g,"&")}function o(e){return e.rp(/<.*?>/g,"")}function c(e){return encodeURI(e.rp(/\s/g,"").toLowerCase())}function l(){for(var t="",r=1;r<=6;++r){t+="h"+r+"::before {\ncontent:";for(var n=1;n<=r;++n)t+="counter(h"+n+') "'+(n<r?".":" ")+'"';t+=";\ncounter-increment: h"+r+";margin-right:10px}"}return e("style",t)}function u(e,t){var r=e.innerHTML;return r=r.rp(/(?:<style class="fallback">[\s\S]*?<\/style>[\s\S]*)<\/\S+@\S+\.\S+?>/gim,""),r=r.rp(/<\/h?ttps?:.*>/gi,""),r=r.rp(/<(https?): (.*?)>/gi,function(e,t,r){var n="<"+t+"://"+r.rp(/=""\s/g,"/");return'=""'===n.ss(n.length-3)&&(n=n.ss(0,n.length-3)),n=n.rp(/"/g,""),n+">"}),r=r.rp(/<style class=["']fallback["']>.*?<\/style>/gim,""),r=s(r)}function d(e){function t(e,t,r){for(var n=t,a=t;a<r;++a,++n){var i=e.charCodeAt(n);n+=i>=55296&&i<=56319}return n-r}function r(){u=e.indexOf("\n",s)+1,d=t(e,s+o,s+c),p=p||/\S/.test(e.ss(s,s+o)),g=g||/[^ *\t\n\r]/.test(e.ss(s+c+d+1,u))}for(var n={p:e,q:"",s:"",u:""},a=e.indexOf(I);a>=0;a=e.indexOf(I,a+I.length)){var i,s=Q(0,e.lastIndexOf("\n",a))+1,o=a-s;for(i=a+I.length;e[i]===L;++i);var c=i-s-1,l={p:e.ss(0,s),q:"",s:"center",u:e.ss(s,a).rp(/[ \t]+$/," ")},u=0,d=0,p=!1,g=!1;r();for(var m=!0,f=i;m;){if(s=u,r(),0===s)return n;if(p?l.s="floatright":g&&(l.s="floatleft"),e[s+o]!==L||p&&e[s+c+d]!==L)m=!1;else{var h;for(h=o;h<c&&e[s+h]===L;++h);var b=s+o,x=s+c+d;if(!p){var y=e.indexOf("\n",b);y!==-1&&(x=Math.min(x,y))}if(l.u+=e.ss(f,b).rp(/^[ \t]*[ \t]/," ").rp(/[ \t][ \t]*$/," "),h===c)return l.u+=e.ss(s+c+1),l;l.q+=e.ss(b+1,x)+"\n",f=x+1}}}return n}function p(e,t,r,n){var a=t.source,i="[^ \\t\\n"+a+"]",s="([^A-Za-z0-9])("+a+")("+i+".*?(\\n.+?)*?)"+a+"(?![A-Za-z0-9])";return e.rp(RegExp(s,"g"),"$1<"+r+(n?" "+n:"")+">$3</"+r+">")}function g(t,n){function a(e){return e.trim().rp(/^\||\|$/g,"")}var i=/(?:\n[ \t]*(?:(?:\|?[ \t\S]+?(?:\|[ \t\S]+?)+\|?)|\|[ \t\S]+\|)(?=\n))/.source,s=/\n[ \t]*(?:(?:\|? *\:?-+\:?(?: *\| *\:?-+\:?)+ *\|?|)|\|[\:-]+\|)(?=\n)/.source,o=/\n[ \t]*\[[^\n\|]+\][ \t]*(?=\n)/.source,c=RegExp(i+s+i+"+("+o+")?","g");return t=t.rp(c,function(t){var i=t.split("\n"),s="",o=""===i[0]?1:0,c=i[i.length-1].trim();c.length>3&&"["===c[0]&&"]"===c[c.length-1]?(i.pop(),c=c.ss(1,c.length-1)):c=void 0;var l=[];a(i[o+1]).rp(/:?-+:?/g,function(e){var t=":"===e[0],r=":"===e[e.length-1];l.push(n(' style="text-align:'+(t&&r?"center":r?"right":"left")+'"'))});for(var u=i[o+1].trim(),d="|"===u[0],p="|"===u[u.length-1],g="th",m=o;m<i.length;++m){u=i[m].trim(),d||"|"!==u[0]||(u=" "+u),p||"|"!==u[u.length-1]||(u+=" "),u=a(u);var f=0;s+=e("tr","<"+g+l[0]+"> "+u.rp(/ *\| */g,function(){return++f," </"+g+"><"+g+l[f]+"> "})+" </"+g+">")+"\n",m==o&&(++m,g="td")}return s=e("table",s,n('class="table"')),c&&(c=e("div",c,n('class="tablecaption"')),s=r("captionAbove","table")?c+s:"\n"+s+c),e("div",s,"class='table'")})}function m(e,t){for(var r=/\n\s*\n/.source,n=/[:,]\s*\n/.source,a=RegExp("("+n+"|"+r+"|<p>s*\n|<br/>s*\n?)"+/((?:[ \t]*(?:\d+\.|-|\+|\*)(?:[ \t]+.+\n(?:[ \t]*\n)?)+)+)/.source,"gm"),i=!0,s={"+":t('class="plus"'),"-":t('class="minus"'),"*":t('class="asterisk"')},o=t('class="number"');i;)i=!1,e=e.rp(a,function(e,t,r){var n=t,a=[],c={F:-1};for(r.split("\n").forEach(function(e){va
|
||
|
Z.ea=function(e){this.da.push(e)},Z.U=N(W.U),Z.V=N(W.V),Z.X=N(W.X),Z.W=N(W.W),Z.Y=N(W.Y),Z.Z=N(W.Z),Z.$=N(W.$),Z.aa=N(W.aa),Z.T=N(W.T),Z.ba=N(W.ba),Z.ca=N(W.ca),Z.toSVG=function(){for(var e="",t=0;t<this.da.length;++t)e+=this.da[t].toSVG()+"\n";return e};var G=k.prototype;G.ea=function(e,t,r,n){void 0===r&&(r=t,t=e.y,e=e.x),x(r)||console.error("Illegal decoration character: "+r);var a={C:y(e,t),type:r,angle:n||0};b(r)?this.fa.push(a):this.fa.unshift(a)},G.toSVG=function(){for(var e="",t=0;t<this.fa.length;++t){var r=this.fa[t],n=r.C;if(h(r.type)){var a=")"===r.type?.75:-.75,i=y(n.x,n.y-.5),s=y(n.x,n.y+.5),o=y(n.x+a,n.y-.5),c=y(n.x+a,n.y+.5);e+='<path d="M '+s+" C "+c+o+i+'" style="fill:none;"/>'}else if(b(r.type))e+='<circle cx="'+n.x*T+'" cy="'+n.y*T*L+'" r="'+(T-D)+'" class="'+("*"===r.type?"closed":"open")+'dot"/>';else if(l(r.type)){var d=Math.round(63.75*(3-q.indexOf(r.type)));e+='<rect x="'+(n.x-.5)*T+'" y="'+(n.y-.5)*T*L+'" width="'+T+'" height="'+T*L+'" stroke=none fill="rgb('+d+","+d+","+d+')"/>'}else if(u(r.type)){var p=P.indexOf(r.type),g=.5-(1&p),m=.5-(p>>1);g*=ee(m);var f=y(n.x+g,n.y-m),i=y(n.x+g,n.y+m),s=y(n.x-g,n.y+m);e+='<polygon points="'+f+i+s+'" style="stroke:none"/>\n'}else{var f=y(n.x+1,n.y),i=y(n.x-.5,n.y-.35),s=y(n.x-.5,n.y+.35);e+='<polygon points="'+f+i+s+'" style="stroke:none" transform="rotate('+r.angle+","+n+')"/>\n'}}return e};var J=v(e),K=new M,te=new k;j(J,K),A(J,K,te);var re='<svg class="diagram" xmlns="http://www.w3.org/2000/svg" version="1.1" height="'+(J.height+1)*T*L+'" width="'+(J.width+1)*T+'"';if("floatleft"===t?re+=' style="float:left;margin:15px 30px 15px 0;"':"floatright"===t?re+=' style="float:right;margin:15px 0 15px 30px;"':"center"===t&&(re+=' style="margin:0 auto 0 auto;"'),re+='><g transform="translate('+y(1,1)+')">\n',E){re+='<g style="opacity:0.1">\n';for(var ne=0;ne<J.width;++ne)for(var ae=0;ae<J.height;++ae)re+='<rect x="'+((ne-.5)*T+1)+'" + y="'+((ae-.5)*T*L+2)+'" width="'+(T-2)+'" height="'+(T*L-2)+'" style="fill:',re+=J.I(ne,ae)?"red;":" "===J(ne,ae)?"gray;opacity:0.05":"blue;",re+='"/>\n';re+="</g>\n"}if(re+=K.toSVG(),re+=te.toSVG(),!$){re+='<g transform="translate(0,0)">';for(var ae=0;ae<J.height;++ae)for(var ne=0;ne<J.width;++ne){var ie=J(ne,ae);/[\u2B22\u2B21]/.test(ie)?re+='<text text-anchor="middle" x="'+ne*T+'" y="'+(4+ae*T*L)+'" style="font-size:20.5px">'+i(ie)+"</text>":" "===ie||J.I(ne,ae)||(re+='<text text-anchor="middle" x="'+ne*T+'" y="'+(4+ae*T*L)+'">'+i(ie)+"</text>")}re+="</g>"}if(B){re+='<g transform="translate(2,2)">\n';for(var ne=0;ne<J.width;++ne)for(var ae=0;ae<J.height;++ae){var ie=J(ne,ae);" "!==ie&&(re+='<text text-anchor="middle" x="'+ne*T+'" y="'+(4+ae*T*L)+'" style="fill:#F00;font-family:Menlo,monospace;font-size:12px;text-align:center">'+i(ie)+"</text>")}re+="</g>"}return re+="</g></svg>",re=re.rp(RegExp(S,"g"),"o")}function N(e){return e.search(/markdeep\S*?\.js$/i)!==-1}function k(e){return Array.prototype.slice.call(e)}function j(){parent.postMessage(ue+"="+document.body.innerHTML,"*")}function A(e){return e&&e.ss(0,e.lastIndexOf("/")+1)}var S='<div class="markdeepFooter"><i>formatted by <a href="http://casual-effects.com/markdeep" style="color:#999">Markdeep 0.21 </a></i><div style="display:inline-block;font-size:13px;font-family:\'Times New Roman\',serif;vertical-align:middle;transform:translate(-3px,-1px)rotate(135deg);">✒</div></div>',T=String.prototype;T.rp=T.replace,T.ss=T.substring,T.regexIndexOf=function(e,t){var r=this.ss(t||0).search(e);return r>=0?r+(t||0):r};var E=!1,B=E,$=B,D=2,L="*",I=Array(6).join(L);!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(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function r(e){return e.nodeName.toLowerCase()}function n(e,t){var r=e&&e.exec(t);return r&&0===r.index}function a(e){return k.test(e)}function i(e){var t,r,n,i,s=e.className+" ";if(s+=e.parentN
|
||
|
b:/"/,e:/"/,c:[e.BE,t,{cN:"variable",b:/\$\(/,e:/\)/,c:[e.BE]}]},n={cN:"string",b:/'/,e:/'/};return{aliases:["sh","zsh"],l:/\b-?[a-z\._]+\b/,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,n,t]}}),hljs.g("shell",function(e){return{aliases:["console"],c:[{cN:"meta",b:"^\\s{0,3}[\\w\\d\\[\\]()@-]*[>%$#]",starts:{e:"$",sL:"bash"}}]}}),hljs.g("http",function(e){var t="HTTP/[0-9\\.]+";return{aliases:["https"],i:"\\S",c:[{b:"^"+t,e:"$",c:[{cN:"number",b:"\\b\\d{3}\\b"}]},{b:"^[A-Z]+ (.*?) "+t+"$",rB:!0,e:"$",c:[{cN:"string",b:" ",e:" ",eB:!0,eE:!0},{b:t},{cN:"keyword",b:"[A-Z]+"}]},{cN:"attribute",b:"^\\w",e:": ",eE:!0,i:"\\n|\\s|=",starts:{e:"$",r:0}},{b:"\\n\\n",starts:{sL:[],eW:!0}}]}}),hljs.g("cs",function(e){var t={keyword:"abstract as base bool break byte case catch char checked const continue decimal default delegate do double enum event explicit extern finally fixed float for foreach goto if implicit in int interface internal is lock long nameof object operator out override params private protected public readonly ref sbyte sealed short sizeof stackalloc static string struct switch this try typeof uint ulong unchecked unsafe ushort using virtual void volatile while add alias ascending async await by descending dynamic equals from get global group into join let on orderby partial remove select set value var where yield",literal:"null false true"},r={cN:"string",b:'@"',e:'"',c:[{b:'""'}]},n=e.inherit(r,{i:/\n/}),a={cN:"subst",b:"{",e:"}",k:t},i=e.inherit(a,{i:/\n/}),s={cN:"string",b:/\$"/,e:'"',i:/\n/,c:[{b:"{{"},{b:"}}"},e.BE,i]},o={cN:"string",b:/\$@"/,e:'"',c:[{b:"{{"},{b:"}}"},{b:'""'},a]},c=e.inherit(o,{i:/\n/,c:[{b:"{{"},{b:"}}"},{b:'""'},i]});a.c=[o,s,r,e.ASM,e.QSM,e.CNM,e.CBCM],i.c=[c,s,n,e.ASM,e.QSM,e.CNM,e.inherit(e.CBCM,{i:/\n/})];var l={v:[o,s,r,e.ASM,e.QSM]},u=e.IR+"(<"+e.IR+"(\\s*,\\s*"+e.IR+")*>)?(\\[\\])?";return{aliases:["csharp"],k:t,i:/::/,c:[e.C("///","$",{rB:!0,c:[{cN:"doctag",v:[{b:"///",r:0},{b:"<!--|-->"},{b:"</?",e:">"}]}]}),e.CLCM,e.CBCM,{cN:"meta",b:"#",e:"$",k:{"meta-keyword":"if else elif endif define undef warning error line region endregion pragma checksum"}},l,e.CNM,{bK:"class interface",e:/[{;=]/,i:/[^\s:]/,c:[e.TM,e.CLCM,e.CBCM]},{bK:"namespace",e:/[{;=]/,i:/[^\s:]/,c:[e.inherit(e.TM,{b:"[a-zA-Z](\\.?\\w)*"}),e.CLCM,e.CBCM]},{cN:"meta",b:"^\\s*\\[",eB:!0,e:"\\]",eE:!0,c:[{cN:"meta-string",b:/"/,e:/"/}]},{bK:"new return throw await else",r:0},{cN:"function",b:"("+u+"\\s+)+"+e.IR+"\\s*\\(",rB:!0,e:/[{;=]/,eE:!0,k:t,c:[{b:e.IR+"\\s*\\(",rB:!0,c:[e.TM],r:0},{cN:"params",b:/\(/,e:/\)/,eB:!0,eE:!0,k:t,r:0,c:[l,e.CNM,e.CBCM]},e.CLCM,e.CBCM]}]}}),hljs.g("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 yield import export from as default await 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$_]*",n={cN:"subst",b:/#\{/,e:/}/,k:t},a=[e.BNM,e.inherit(e.CNM,{starts:{e:"(\\
|
||
|
|