diff --git a/.gitinore b/.gitinore
deleted file mode 100644
index e43b0f9..0000000
--- a/.gitinore
+++ /dev/null
@@ -1 +0,0 @@
-.DS_Store
diff --git a/public/assets/scaffolding-min.js b/public/assets/scaffolding-min.js
index e87394e..843ca57 100644
--- a/public/assets/scaffolding-min.js
+++ b/public/assets/scaffolding-min.js
@@ -1 +1,3373 @@
-!function(){var e=[,function(e){String.prototype.toTitleCase=function(){return this.replace(/\w\S*/g,(function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}))},String.prototype.toSentenceCase=function(){return this.charAt(0).toUpperCase()+this.substr(1).toLowerCase()},String.prototype.toContent=function(){return this.replace(/-/g," ")};const t=(e,t)=>{console.log("fallback");var a=document.createElement("textarea");a.value=e,a.style.top="0",a.style.left="0",a.style.position="fixed",document.body.appendChild(a),a.focus(),a.select();try{var r=document.execCommand("copy");setTimeout((function(){r?n(`Copied ${t}.`):n(`Copy failed (${t}).`,!1)}),1)}catch(e){setTimeout((function(){n(`Copy failed (${t}). ${e.Message}`,!1)}),1)}document.body.removeChild(a)},n=(e,t)=>{t=null==t||t,console.log("Copy success (navigator.clipboard)"),$("body").prepend("
"),$("#copystatus > div").css("top",window.scrollY+100+"px"),$("#copystatus").fadeIn(1e3,(function(){$(this).fadeOut(1e3,(function(){$(this).remove()}))}))};e.exports={url:(()=>{var e={};if(location.search.length>0)for(var t=location.search.substr(1).split("&"),n=0;n0&&(e[a[0]]=decodeURIComponent(a[1].replace(/\+/g,"%20")))}return e})(),cookie:{set:(e,t,n,a,r,i)=>{switch(typeof n){case"number":var s=new Date;n=s.setTime(s+24*n*60*60*1e3);break;case"object":n=n.toGMTString()}document.cookie=e+"="+escape(t)+(n?"; expires="+n:"")+"; path=/"+(r?"; domain="+r:"")+(i?"; secure":"")},get:e=>{for(var t=e+"=",n=document.cookie.split(";"),a=0;a{setCookie(cname,"",-1)}},colour:{copy:(e,a)=>{let r=a.parent().attr("data-"+("var"==e?"token":e));r="var"==e?`var(${r})`:r,navigator.clipboard?navigator.clipboard.writeText(r).then((function(){n(`Copied ${e}.`)}),(function(n){t(r,e)})):t(r,e)},positionTooltip:()=>{$("color-pill > span").each((function(){10*Number($("p").css("font-size").replace("px",""))>$(this).offset().left?$(this).children("div.tooltip-tc").attr("tip-position","right"):$(this).children("div.tooltip-tc").attr("tip-position","bottom")}))}},init:e=>{e()}}},function(e,t,n){var a=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,a={},r={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/=d.reach);A+=x.value.length,x=x.next){var $=x.value;if(t.length>e.length)return;if(!($ instanceof i)){var F,C=1;if(v){if(!(F=s(w,A,e,b))||F.index>=e.length)break;var S=F.index,E=F.index+F[0].length,T=A;for(T+=x.value.length;S>=T;)T+=(x=x.next).value.length;if(A=T-=x.value.length,x.value instanceof i)continue;for(var L=x;L!==t.tail&&(Td.reach&&(d.reach=z);var _=x.prev;if(P&&(_=u(t,_,P),A+=P.length),c(t,_,C),x=u(t,_,new i(p,m?r.tokenize(j,m):j,y,j)),N&&u(t,x,N),C>1){var O={cause:p+","+h,reach:z};o(e,t,n,x.prev,A,O),d&&O.reach>d.reach&&(d.reach=O.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function u(e,t,n){var a=t.next,r={value:n,prev:t,next:a};return t.next=r,a.prev=r,e.length++,r}function c(e,t,n){for(var a=t.next,r=0;r"+i.content+""+i.tag+">"},!e.document)return e.addEventListener?(r.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),a=n.language,i=n.code,s=n.immediateClose;e.postMessage(r.highlight(i,r.languages[a],a)),s&&e.close()}),!1),r):r;var d=r.util.currentScript();function p(){r.manual||r.highlightAll()}if(d&&(r.filename=d.src,d.hasAttribute("data-manual")&&(r.manual=!0)),!r.manual){var g=document.readyState;"loading"===g||"interactive"===g&&d&&d.defer?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return r}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=a),void 0!==n.g&&(n.g.Prism=a),a.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/?[\da-f]{1,8};/i]},a.languages.markup.tag.inside["attr-value"].inside.entity=a.languages.markup.entity,a.languages.markup.doctype.inside["internal-subset"].inside=a.languages.markup,a.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(a.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^$)/i,lookbehind:!0,inside:a.languages[t]},n.cdata=/^$/i;var r={"included-cdata":{pattern://i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:a.languages[t]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},a.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(a.languages.markup.tag,"addAttribute",{value:function(e,t){a.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:a.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),a.languages.html=a.languages.markup,a.languages.mathml=a.languages.markup,a.languages.svg=a.languages.markup,a.languages.xml=a.languages.extend("markup",{}),a.languages.ssml=a.languages.xml,a.languages.atom=a.languages.xml,a.languages.rss=a.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(a),a.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},a.languages.javascript=a.languages.extend("clike",{"class-name":[a.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),a.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,a.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:a.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:a.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:a.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:a.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?: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|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:a.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),a.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:a.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),a.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),a.languages.markup&&(a.languages.markup.tag.addInlined("script","javascript"),a.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),a.languages.js=a.languages.javascript,function(){if(void 0!==a&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},t="data-src-status",n="loading",r="loaded",i="pre[data-src]:not(["+t+'="'+r+'"]):not(['+t+'="'+n+'"])';a.hooks.add("before-highlightall",(function(e){e.selector+=", "+i})),a.hooks.add("before-sanity-check",(function(s){var o=s.element;if(o.matches(i)){s.code="",o.setAttribute(t,n);var l=o.appendChild(document.createElement("CODE"));l.textContent="Loading…";var u=o.getAttribute("data-src"),c=s.language;if("none"===c){var d=(/\.(\w+)$/.exec(u)||[,"none"])[1];c=e[d]||d}a.util.setLanguage(l,c),a.util.setLanguage(o,c);var p=a.plugins.autoloader;p&&p.loadLanguages(c),function(e,t,n){var a=new XMLHttpRequest;a.open("GET",e,!0),a.onreadystatechange=function(){4==a.readyState&&(a.status<400&&a.responseText?t(a.responseText):a.status>=400?n("✖ Error "+a.status+" while fetching file: "+a.statusText):n("✖ Error: File does not exist or is empty"))},a.send(null)}(u,(function(e){o.setAttribute(t,r);var n=function(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var n=Number(t[1]),a=t[2],r=t[3];return a?r?[n,Number(r)]:[n,void 0]:[n,n]}}(o.getAttribute("data-range"));if(n){var i=e.split(/\r\n?|\n/g),s=n[0],u=null==n[1]?i.length:n[1];s<0&&(s+=i.length),s=Math.max(0,Math.min(s-1,i.length)),u<0&&(u+=i.length),u=Math.max(0,Math.min(u,i.length)),e=i.slice(s,u).join("\n"),o.hasAttribute("data-start")||o.setAttribute("data-start",String(s+1))}l.textContent=e,a.highlightElement(l)}),(function(e){o.setAttribute(t,"failed"),l.textContent=e}))}})),a.plugins.fileHighlight={highlight:function(e){for(var t,n=(e||document).querySelectorAll(i),r=0;t=n[r++];)a.highlightElement(t)}};var s=!1;a.fileHighlight=function(){s||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),s=!0),a.plugins.fileHighlight.highlight.apply(this,arguments)}}}()},function(){Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json},function(){!function(e){e.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:e.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:e.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:e.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:e.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:e.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:e.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:e.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:e.languages.javascript}],punctuation:/[.\-!=|]+/};for(var t=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,n=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],a={},r=0,i=n.length;r",(function(){return s.filter})),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[s.language,"language-"+s.language],inside:e.languages[s.language]}}})}e.languages.insertBefore("pug","filter",a)}(Prism)},function(){!function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule;var t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(Prism)},function(){!function(){if("undefined"!=typeof Prism&&"undefined"!=typeof document){var e=[],t={},n=function(){};Prism.plugins.toolbar={};var a=Prism.plugins.toolbar.registerButton=function(n,a){var r;r="function"==typeof a?a:function(e){var t;return"function"==typeof a.onClick?((t=document.createElement("button")).type="button",t.addEventListener("click",(function(){a.onClick.call(this,e)}))):"string"==typeof a.url?(t=document.createElement("a")).href=a.url:t=document.createElement("span"),a.className&&t.classList.add(a.className),t.textContent=a.text,t},n in t?console.warn('There is a button with the key "'+n+'" registered already.'):e.push(t[n]=r)},r=Prism.plugins.toolbar.hook=function(a){var r=a.element.parentNode;if(r&&/pre/i.test(r.nodeName)&&!r.parentNode.classList.contains("code-toolbar")){var i=document.createElement("div");i.classList.add("code-toolbar"),r.parentNode.insertBefore(i,r),i.appendChild(r);var s=document.createElement("div");s.classList.add("toolbar");var o=e,l=function(e){for(;e;){var t=e.getAttribute("data-toolbar-order");if(null!=t)return(t=t.trim()).length?t.split(/\s*,\s*/g):[];e=e.parentElement}}(a.element);l&&(o=l.map((function(e){return t[e]||n}))),o.forEach((function(e){var t=e(a);if(t){var n=document.createElement("div");n.classList.add("toolbar-item"),n.appendChild(t),s.appendChild(n)}})),i.appendChild(s)}};a("label",(function(e){var t=e.element.parentNode;if(t&&/pre/i.test(t.nodeName)&&t.hasAttribute("data-label")){var n,a,r=t.getAttribute("data-label");try{a=document.querySelector("template#"+r)}catch(e){}return a?n=a.content:(t.hasAttribute("data-url")?(n=document.createElement("a")).href=t.getAttribute("data-url"):n=document.createElement("span"),n.textContent=r),n}})),Prism.hooks.add("complete",r)}}()},function(){!function(){if("undefined"!=typeof Prism&&"undefined"!=typeof document){var e="line-numbers",t=/\n(?!$)/g,n=Prism.plugins.lineNumbers={getLine:function(t,n){if("PRE"===t.tagName&&t.classList.contains(e)){var a=t.querySelector(".line-numbers-rows");if(a){var r=parseInt(t.getAttribute("data-start"),10)||1,i=r+(a.children.length-1);ni&&(n=i);var s=n-r;return a.children[s]}}},resize:function(e){r([e])},assumeViewportIndependence:!0},a=void 0;window.addEventListener("resize",(function(){n.assumeViewportIndependence&&a===window.innerWidth||(a=window.innerWidth,r(Array.prototype.slice.call(document.querySelectorAll("pre."+e))))})),Prism.hooks.add("complete",(function(n){if(n.code){var a=n.element,i=a.parentNode;if(i&&/pre/i.test(i.nodeName)&&!a.querySelector(".line-numbers-rows")&&Prism.util.isActive(a,e)){a.classList.remove(e),i.classList.add(e);var s,o=n.code.match(t),l=o?o.length+1:1,u=new Array(l+1).join("");(s=document.createElement("span")).setAttribute("aria-hidden","true"),s.className="line-numbers-rows",s.innerHTML=u,i.hasAttribute("data-start")&&(i.style.counterReset="linenumber "+(parseInt(i.getAttribute("data-start"),10)-1)),n.element.appendChild(s),r([i]),Prism.hooks.run("line-numbers",n)}}})),Prism.hooks.add("line-numbers",(function(e){e.plugins=e.plugins||{},e.plugins.lineNumbers=!0}))}function r(e){if(0!=(e=e.filter((function(e){var t=function(e){if(!e)return null;return window.getComputedStyle?getComputedStyle(e):e.currentStyle||null}(e)["white-space"];return"pre-wrap"===t||"pre-line"===t}))).length){var n=e.map((function(e){var n=e.querySelector("code"),a=e.querySelector(".line-numbers-rows");if(n&&a){var r=e.querySelector(".line-numbers-sizer"),i=n.textContent.split(t);r||((r=document.createElement("span")).className="line-numbers-sizer",n.appendChild(r)),r.innerHTML="0",r.style.display="block";var s=r.getBoundingClientRect().height;return r.innerHTML="",{element:e,lines:i,lineHeights:[],oneLinerHeight:s,sizer:r}}})).filter(Boolean);n.forEach((function(e){var t=e.sizer,n=e.lines,a=e.lineHeights,r=e.oneLinerHeight;a[n.length-1]=void 0,n.forEach((function(e,n){if(e&&e.length>1){var i=t.appendChild(document.createElement("span"));i.style.display="block",i.textContent=e}else a[n]=r}))})),n.forEach((function(e){for(var t=e.sizer,n=e.lineHeights,a=0,r=0;r{t=null==t||t,console.log("Copy success (navigator.clipboard)"),$("body").prepend(""),$("#copystatus > div").css("top",window.scrollY+100+"px"),$("#copystatus").fadeIn(1e3,(function(){$(this).fadeOut(1e3,(function(){$(this).remove()}))}))},r=(e,t)=>{console.log("fallback");var n=document.createElement("textarea");n.value=e,n.style.top="0",n.style.left="0",n.style.position="fixed",document.body.appendChild(n),n.focus(),n.select();try{var r=document.execCommand("copy");setTimeout((function(){r?a(`Copied ${t}.`):a(`Copy failed (${t}).`,!1)}),1)}catch(e){setTimeout((function(){a(`Copy failed (${t}). ${e.Message}`,!1)}),1)}document.body.removeChild(n)},i=(e,t)=>{let n=t.parent().attr("data-"+("var"==e?"token":e));n="var"==e?`var(${n})`:n,navigator.clipboard?navigator.clipboard.writeText(n).then((function(){a(`Copied ${e}.`)}),(function(t){r(n,e)})):r(n,e)},s=()=>{$("color-pill > span").each((function(){10*Number($("p").css("font-size").replace("px",""))>$(this).offset().left?$(this).children("div.tooltip-tc").attr("tip-position","right"):$(this).children("div.tooltip-tc").attr("tip-position","bottom")}))}},function(e,t,n){"use strict";function a(e){let t=e.currentTarget;switch(t.getAttribute("aria-checked")){case"true":t.setAttribute("aria-checked","false");break;case"false":t.setAttribute("aria-checked","true")}}function r(e){let t=document.querySelectorAll("[role='switch']");for(let e=0;e",t[e].setAttribute("aria-checked","false"),t[e].setAttribute("tabindex","0"),t[e].addEventListener("click",a,!1),t[e].addEventListener("keypress",a,!1)}n.r(t),n.d(t,{init:function(){return r}})},function(e,t,n){"use strict";n.r(t),n.d(t,{init:function(){return l}});const a={size:0},r={x:0,y:0};const i=(e,t)=>{let n="";Object.entries(t).forEach((e=>{const[t,a]=e;n+=`${t}: ${a}; `})),e.setAttribute("style",n.trim())},s=()=>{document.querySelectorAll("sticky-note").forEach((e=>{if("absolute"!==e.style.position){let t=document.createElement("sticky-note-wrapper");e.parentNode.insertBefore(t,e),t.appendChild(e),e.setAttribute("content",e.innerHTML.replace(/"/g,'"')),e.innerHTML=``}var t;o(e),(t=e).onmousedown=e=>{r.x=e.clientX-t.offsetLeft,r.y=e.clientY-t.offsetTop,document.onmousemove=e=>{t.style.top=e.clientY-r.y+"px",t.style.left=e.clientX-r.x+"px",t.setAttribute("moved","true")},document.onmouseup=()=>{document.onmouseup=null,document.onmousemove=null}},e.ondblclick=t=>{t.ctrlKey&&o(e)}}))},o=e=>{let t=e.getAttribute("float"),n=e.parentNode.getBoundingClientRect();switch(t){case"left":i(e,{left:-1*n.left+"px"});break;case"right":i(e,{left:Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)-n.left-e.offsetWidth-2*a.size+"px"})}let r=e.getAttribute("offset");null!==r&&(r=r.trim().split(" "),i(e,{top:r[0],left:r[1]}))};function l(e){a.size=parseFloat(getComputedStyle(document.documentElement).fontSize.replace("px","")),s(),document.querySelectorAll("sticky-note").forEach((e=>{})),window.onresize=()=>{a.size=parseFloat(getComputedStyle(document.documentElement).fontSize.replace("px","")),document.querySelectorAll("sticky-note").forEach((e=>{o(e)}))}}},function(e,t,n){"use strict";function a(){document.querySelectorAll(".tab-group, tabset").forEach((e=>{if(null===e.querySelector("[role=tablist]")){const t=e.getAttribute("id");let n="";Array.from(e.children).forEach((e=>{const a=e.getAttribute("tab")||e.getAttribute("data-tab");if(null!==a){const r=a.replace(/\W+/g,"-").toLowerCase(),i=document.createElement("div");i.id=`tab-panel-${t}-${r}`,i.className=""===n?"open":"",i.setAttribute("role","tabpanel"),i.setAttribute("tabindex","0"),i.setAttribute("aria-labelledby",`tab-${t}-${r}`),i.appendChild(e.cloneNode(!0)),e.parentNode.replaceChild(i,e),n+=`${a}`}else e.classList.add("tab-hidden")}));const a=document.createElement("ul");a.setAttribute("role","tablist"),a.innerHTML=`${n}`,e.insertBefore(a,e.firstChild),e.querySelectorAll('[role="tab"]').forEach((e=>{e.addEventListener("click",(()=>{Array.from(e.parentNode.children).forEach((e=>e.classList.remove("selected"))),e.classList.add("selected");Array.from(e.parentNode.parentNode.children).filter((e=>"tabpanel"===e.getAttribute("role"))).forEach((e=>e.classList.remove("open")));const t=e.getAttribute("id").replace("tab","tab-panel");document.getElementById(t).classList.add("open")}))}))}}))}n.r(t),n.d(t,{init:function(){return a}})}],t={};function n(a){var r=t[a];if(void 0!==r)return r.exports;var i=t[a]={exports:{}};return e[a](i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};!function(){"use strict";n.r(a);var e=n(1),t=n(2),r=(n(3),n(4),n(5),n(6),n(7),n(8),n(9)),i=n(10),s=n(11);const o=e=>{r.init(),s.init(),i.init()};jQuery.fn.OneClickSelect=function(){return jQuery(this).on("click",(function(){var e,t;window.getSelection?(t=window.getSelection(),(e=document.createRange()).selectNodeContents(this),t.removeAllRanges(),t.addRange(e)):document.body.createTextRange&&((e=document.body.createTextRange()).moveToElementText(this),e.select())}))},jQuery(document).ready((function(n){null!=e.url.p?(console.log("category:",e.url.p),n("main article:not([data-path^='"+e.url.p+"'])").remove(),-1==e.url.p?n("title").html(`${e.url.p.toContent().toTitleCase()} | ${n("title").attr("data-site")}`):n("title").html(`${e.url.p.substring(e.url.p.lastIndexOf("/")+1).toContent().toTitleCase()} | ${n("title").attr("data-site")}`),console.log("get the 'directory'",-1==e.url.p.indexOf("/")?e.url.p:e.url.p.substring(0,e.url.p.indexOf("/"))),n(".main-nav nav ul li a[href='./?p="+(-1==e.url.p.indexOf("/")?e.url.p:e.url.p.substring(0,e.url.p.indexOf("/")))+"']").parent().addClass("active")):(n("header").addClass("show-feature"),n(".main-nav nav ul li a[href='./']").parent().addClass("active"));let a=n("article").length;function r(){setTimeout((function(){"false"==n("#deprecated").attr("aria-checked")?(n(".status-deprecated").closest("article").addClass("status-deprecated"),e.cookie.set("hide-deprecated",!1,30,"/")):(n("article.status-deprecated").removeClass("status-deprecated"),e.cookie.set("hide-deprecated",!0,30,"/"))}),50)}n("article").each((function(r,i){if("none"!=n(this).attr("data-template")){let r="patterns/"+n(this).attr("data-path")+("true"==n(this).attr("data-core")?"-core":"")+"/index.html";console.log(r),n("#"+n(this).attr("id")).load(r,"",(function(i,s,l){"error"==s&&n("#"+n(this).attr("id")).html(`This pattern appears to be missing.
(${r} returned http status 404)
`),a--,0==a&&(n("article").each((function(){try{n(this).prepend(`${null!=n(this).attr("data-display-text")?n(this).attr("data-display-text"):n(this).attr("data-pattern").toContent().toSentenceCase()}${n(this).attr("data-status").toContent().toSentenceCase()}
`)}catch(e){console.log("Problem creating heading",n(this).attr("data-pattern")),n(this).prepend(`Problem creating heading
The content we found for this header was: ${n(this).attr("data-pattern")}. Check that the data-pattern attribute on the article is set properly. Also check that there is no article tag inside the article.
`)}switch(n(this).attr("data-template")){case"pug":n(this).find("pre").each((function(){n(this).wrapInner("
")}));break;case"md":n(this).find("code").addClass("language-html")}})),n("code").each((function(){n(this).html(n(this).html().replace(/ span, color-pill > span").on("click",(function(t){t.preventDefault();let a="";a=t.metaKey||t.ctrlKey||91==t.keyCode||224==t.keyCode?"var":t.altKey?"token":t.shiftKey?"rgb":"hex",e.colour.copy(a,n(this))})))}))}else a--})),o(),n("#deprecated").on("click",r).on("keypress",r),setTimeout((function(){"true"==e.cookie.get("hide-deprecated")&&(n("#deprecated").attr("aria-checked","true"),r())}),200),console.log("hide deprecated",{type:typeof e.cookie.get("hide-deprecated"),value:e.cookie.get("hide-deprecated")})}))}()}();
\ No newline at end of file
+/******/ (function() { // webpackBootstrap
+/******/ var __webpack_modules__ = ([
+/* 0 */,
+/* 1 */
+/***/ (function(module) {
+
+String.prototype.toTitleCase = function() {
+ return this.replace(/\w\S*/g, function(txt) {
+ return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();
+ });
+}
+
+String.prototype.toSentenceCase = function() {
+ return this.charAt(0).toUpperCase() + this.substr(1).toLowerCase();
+}
+
+String.prototype.toContent = function() {
+ return this.replace(/-/g, " ");
+}
+
+const copyColourFallback = (copyInfo, attr) => {
+ console.log("fallback")
+ var textArea = document.createElement('textarea');
+ textArea.value = copyInfo;
+
+ // Avoid scrolling to bottom
+ textArea.style.top = '0';
+ textArea.style.left = '0';
+ textArea.style.position = 'fixed';
+
+ document.body.appendChild(textArea);
+ textArea.focus();
+ textArea.select();
+
+ try {
+ var successful = document.execCommand('copy');
+ setTimeout(function () {
+ if (successful) {
+ //copyInfo.success();
+ showMessage(`Copied ${attr}.`)
+ } else {
+ //copyInfo.error();
+ showMessage(`Copy failed (${attr}).`, false)
+ }
+ }, 1);
+ } catch (err) {
+ setTimeout(function () {
+ showMessage(`Copy failed (${attr}). ${err.Message}`, false);
+
+ //copyInfo.error(err);
+ }, 1);
+ }
+ document.body.removeChild(textArea);
+}
+
+const showMessage = (m, s) => {
+ s = s == undefined ? true : s;
+ console.log("Copy success (navigator.clipboard)");
+ $("body").prepend("");
+ $("#copystatus > div").css("top", (window.scrollY + 100)+ "px");
+ $("#copystatus").fadeIn(1000, function(){
+ $(this).fadeOut( 1000, function() {
+ $(this).remove();
+ });
+ })
+}
+
+
+
+const getURLVars = () => {
+ var oResult = {};
+ if (location.search.length > 0) {
+ var aQueryString = (location.search.substr(1)).split("&");
+ for (var i = 0; i < aQueryString.length; i++) {
+ var aTemp = aQueryString[i].split("=");
+ if (aTemp[1].length > 0) {
+ oResult[aTemp[0]] = decodeURIComponent(aTemp[1].replace(/\+/g, '%20'));
+ }
+ }
+ }
+ return oResult;
+}
+
+module.exports = {
+ url: getURLVars(),
+ cookie: {
+ set: (name, value, expires, path, domain, secure) => {
+ switch(typeof expires) {
+ case "number" :
+ var d = new Date()
+ expires = d.setTime(d + (expires*24*60*60*1000));
+ break;
+ case "object" :
+ expires = expires.toGMTString();
+ }
+ document.cookie= name + "=" + escape(value) +
+ ((expires) ? "; expires=" + expires : "") +
+ ("; path=/") +
+ ((domain) ? "; domain=" + domain : "") +
+ ((secure) ? "; secure" : "");
+ },
+ get: (cname) => {
+ var name = cname + "=";
+ var ca = document.cookie.split(";");
+ for(var i = 0; i {
+ setCookie(cname, "", -1);
+ },
+ },
+ colour: {
+ // showMessage: (m, s) => {
+ // showMessage(m, s);
+ // },
+ copy: (w, t) => {
+ let c = t.parentNode.getAttribute("data-" + (w=="var" ? "token" : w));
+ c = w == "var" ? `var(${c})` : c;
+
+ if (navigator.clipboard) {
+ navigator.clipboard.writeText(c).then(function() {
+ showMessage(`Copied ${w}.`);
+ }, function(e) {
+ copyColourFallback(c,w);
+ });
+ } else {
+ copyColourFallback(c, w);
+ }
+ },
+ positionTooltip: () => {
+ $("color-pill > span").each(function(){
+ if ((Number($("p").css('font-size').replace("px","")) * 10) > $(this).offset().left) {
+ $(this).children("div.tooltip-tc").attr("tip-position", "right");
+ } else {
+ $(this).children("div.tooltip-tc").attr("tip-position", "bottom");
+ }
+ })
+ }
+ },
+ init: (args = {}) => {
+ const url = getURLVars();
+
+ if (url.p !== undefined) {
+ document.querySelectorAll("main article:not([data-path^='" + url.p + "'])").forEach((a) => {
+ a.remove();
+ });
+
+ if (url.p == -1) {
+ document.querySelector("title").innerHTML = `${url.p.toContent().toTitleCase()} | ${$("title").attr("data-site")}`;
+ } else {
+ document.querySelector("title").innerHTML = `${url.p.substring(url.p.lastIndexOf("/")+1).toContent().toTitleCase()} | ${$("title").attr("data-site")}`
+ }
+ document.querySelector("nav ul li a[href='./?p=" + (url.p.indexOf("/") == -1 ? url.p : url.p.substring(0, url.p.indexOf("/")) ) + "']").parentNode.classList.add("active");
+ } else {
+ document.querySelector("nav ul li a[href='./']").parentNode.classList.add("active");
+ }
+
+ document.querySelectorAll("article").forEach((a) => {
+ if ( a.getAttribute("data-template") != "none" ) {
+ let path = "patterns/" + a.getAttribute("data-path") + (a.getAttribute("data-core") == "true" ? "-core" : "") + "/index.html";
+ const ASYNC = true;
+ let ajx = new XMLHttpRequest();
+ ajx.onreadystatechange = () => {
+ if (ajx.readyState == 4) {
+
+ switch (ajx.status) {
+ case 200:
+ a.innerHTML = a.innerHTML + ajx.responseText;
+
+ switch (a.getAttribute("data-template")) {
+ case "pug":
+ a.querySelectorAll("pre").forEach((aa) => {
+ aa.innerHTML = `${aa.innerHTML}
`;
+ })
+ break;
+ case "md":
+ a.querySelectorAll("code").forEach((aa) => {
+ aa.classList.add("language-html");
+ })
+ break;
+ }
+ a.querySelectorAll("code").forEach((c)=> {
+ c.innerHTML = c.innerHTML.replace(/ {
+ module.exports.colour.positionTooltip();
+ }
+
+ a.querySelectorAll("name > span, color-pill > span").forEach((pill) => {
+ pill.onclick = (e) => {
+ e.preventDefault();
+ let w = "";
+ if (e.metaKey || e.ctrlKey || e.keyCode == 91 || e.keyCode == 224) {
+ w = "var";
+ } else if (e.altKey) {
+ w = "token"
+ } else if (e.shiftKey) {
+ w = "rgb";
+ } else {
+ w = "hex";
+ }
+ module.exports.colour.copy(w, pill);
+ }
+ })
+ break;
+
+ case 404:
+ if (typeof args.notFound == "function") args.notFound(a, path);
+ break;
+
+ default:
+ console.log("uncaught http error", { status: ajx.status, path: a.getAttribute("data-path") });
+ }
+ }
+ };
+ ajx.open("GET", path, ASYNC);
+ ajx.send();
+ }
+ })
+ }
+};
+
+/***/ }),
+/* 2 */
+/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+
+
+/* **********************************************
+ Begin prism-core.js
+********************************************** */
+
+///
+
+var _self = (typeof window !== 'undefined')
+ ? window // if in browser
+ : (
+ (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope)
+ ? self // if in worker
+ : {} // if in node js
+ );
+
+/**
+ * Prism: Lightweight, robust, elegant syntax highlighting
+ *
+ * @license MIT
+ * @author Lea Verou
+ * @namespace
+ * @public
+ */
+var Prism = (function (_self) {
+
+ // Private helper vars
+ var lang = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i;
+ var uniqueId = 0;
+
+ // The grammar object for plaintext
+ var plainTextGrammar = {};
+
+
+ var _ = {
+ /**
+ * By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the
+ * current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load
+ * additional languages or plugins yourself.
+ *
+ * By setting this value to `true`, Prism will not automatically highlight all code elements on the page.
+ *
+ * You obviously have to change this value before the automatic highlighting started. To do this, you can add an
+ * empty Prism object into the global scope before loading the Prism script like this:
+ *
+ * ```js
+ * window.Prism = window.Prism || {};
+ * Prism.manual = true;
+ * // add a new