"+t:"",r&&(t+=" "+_e(r,n)),"<"+t+i+">"}),!t.whitespace){var r=[];/]/.test(e)&&(e=e.replace(vn,function(e){return r.push(e),""})),e=e.trim().replace(/\s+/g," "),r.length&&(e=e.replace(/\u0002/g,function(){return r.shift()}))}return t.compact&&(e=e.replace(dn,"><$1")),Oe(e,n).replace(bn,"")}function Ne(e){var t,n,r,i,s,o,a=[],u=RegExp;for(~e.indexOf("/")&&(e=function(e,t,n){for(t.lastIndex=0;n=t.exec(e);)n[1]?t.lastIndex=Ct.skipRegex(e,n.index):"/"===n[0][0]&&(e=e.slice(0,n.index)+" "+e.slice(t.lastIndex),t.lastIndex=n.index+1);return e}(e,An));t=e.match(Cn);)a.push(u.leftContext),r=function(e,t){var n,r=1;for(t.lastIndex=0;r&&(n=t.exec(e));)"{"===n[0]?++r:"}"===n[0]&&--r;return r?e.length:t.lastIndex}(e=u.rightContext,Sn),i=t[1],s=t[2]||"",o=t[3],o=(n=!/^(?:if|while|for|switch|catch|function)$/.test(o))?t[0].replace(i,"this."+o+" ="+s+" function"):t[0],a.push(o,e.slice(0,r)),e=e.slice(r),n&&!/^\s*.\s*bind\b/.test(e)&&a.push(".bind(this)");return a.length?a.join("")+e:e}function Ee(e,t,n,r,i){return/\S/.test(e)?(n||(n=t.type),(t.parser||n&&an._req("js."+n,!0)||Ne)(e,r,i).replace(/\r\n?/g,"\n").replace(bn,"")):""}function Ce(e,t){return t.replace(Tn,function(t,n,r){return r?(r=r.replace(/[^,]+/g,function(t){var n=t.trim();return 0===n.indexOf(e)?t:n&&"from"!==n&&"to"!==n&&"%"!==n.slice(-1)?n=n.indexOf(":scope")<0?e+" "+n+',[data-is="'+e+'"] '+n:n.replace(":scope",e)+","+n.replace(":scope",'[data-is="'+e+'"]'):t}),n?n+" "+r:r):t})}function Se(e,t,n,r){return r=r||{},n&&"css"!==n&&(e=an._req("css."+n,!0)(t,e,r.parserOpts||{},r.url)),e=e.replace(Ct.R_MLCOMMS,"").replace(/\s+/g," ").trim(),t&&(e=Ce(t,e)),e}function Ae(e,t){return e?(e=En+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+En,t&&~e.indexOf("\n")?e.replace(/\n/g,"\\n"):e):"''"}function Te(e,t,n,r,i,s,o){var a=o.debug?",\n ":", ",u="});";return i&&"\n"!==i.slice(-1)&&(u="\n"+u),s+"riot.tag2('"+e+En+a+Ae(t,1)+a+Ae(n)+a+Ae(r)+", function(opts) {\n"+i+u}function Le(e){if(/<[-\w]/.test(e))for(var t,n=e.lastIndexOf("<"),r=e.length;~n;){if(t=e.slice(n,r).match(Rn))return n+=t.index+t[0].length,"<-/>\n"===(t=e.slice(0,n)).slice(-5)&&(t=t.slice(0,-5)),[t,e.slice(n)];r=n,n=e.lastIndexOf("<",n-1)}return["",e]}function ke(e){if(e){var t=e.match(Ln);if(t=t&&(t[2]||t[3]))return t.replace("text/","")}return""}function Re(e,t){if(e){var n=e.match(RegExp("\\s"+t+kn,"i"));if(n=n&&n[1])return/^['"]/.test(n)?n.slice(1,-1):n}return""}function Ie(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'")}function Me(e){var t=Ie(Re(e,"options"));return t?JSON.parse(t):null}function $e(e,t,n,r){var i=ke(n),s=Re(n,"src"),o=un({},t.parserOptions.js);return!s&&Ee(e,t,i,un(o,Me(n)),r)}function Pe(e,t,n,r,i){var s=un({},t.parserOptions.style),o={parserOpts:un(s,Me(n)),url:r};return Se(e,i,ke(n)||t.style,o)}function Fe(e,t,n,r){return an._req("html."+n,!0)(e,r,t)}function He(e,t,n){var r=new XMLHttpRequest;r.onreadystatechange=function(){4===r.readyState&&(200===r.status||!r.status&&r.responseText.length)&&t(r.responseText,n,e)},r.open("GET",e,!0),r.send("")}function ze(e,t){if(typeof e===nt){var n=d("script"),r=document.documentElement;t&&(e+="\n//# sourceURL="+t+".js"),n.text=e,r.appendChild(n),r.removeChild(n)}}function Be(e,t){function n(){Ot.trigger("ready"),jt=!0,e&&e()}function r(e,t,r){ze(Pn.compile(e,t,r),r),--s||n()}var i=c('script[type="riot/tag"]'),s=i.length;if(s)for(var o=0;o=0&&/\s/.test(e[t]););return t}var t="[{(,;:?=|&!^~>%*/",n=["case","default","do","else","in","instanceof","prefix","return","typeof","void","yield"],r=n.reduce(function(e,t){return e+t.slice(-1)},""),i=/^\/(?=[^*>/])[^[/\\]*(?:(?:\\.|\[(?:\\.|[^\]\\]*)*\])[^[\\/]*)*?\/[gimuy]*/,s=/[$\w]/;return function(o,a){var u=/.*/g,c=u.lastIndex=a++,l=u.exec(o)[0].match(i);if(l){var p=c+l[0].length,f=o[c=e(o,c)];if(c<0||~t.indexOf(f))return p;if("."===f)"."===o[c-1]&&(a=p);else if("+"===f||"-"===f)(o[--c]!==f||(c=e(o,c))<0||!s.test(o[c]))&&(a=p);else if(~r.indexOf(f)){for(var h=c+1;--c>=0&&s.test(o[c]););~n.indexOf(o.slice(c+1,h))&&(a=p)}}return a}}(),Ct=function(e){function t(e){return e}function n(e,t){return t||(t=y),new RegExp(e.source.replace(/{/g,t[2]).replace(/}/g,t[3]),e.global?u:"")}function r(e){if(e===m)return v;var t=e.split(" ");if(2!==t.length||f.test(e))throw new Error('Unsupported brackets "'+e+'"');return t=t.concat(e.replace(h,"\\").split(" ")),t[4]=n(t[1].length>1?/{[\S\s]*?}/:v[4],t),t[5]=n(e.length>3?/\\({|})/g:v[5],t),t[6]=n(v[6],t),t[7]=RegExp("\\\\("+t[3]+")|([[({])|("+t[3]+")|"+d,u),t[8]=e,t}function i(e){return e instanceof RegExp?o(e):y[e]}function s(e){(e||(e=m))!==y[8]&&(y=r(e),o=e===m?t:n,y[9]=o(v[9])),x=e}var o,a,u="g",c=/\/\*[^*]*\*+(?:[^*\/][^*]*\*+)*\//g,l=/"[^"\\]*(?:\\[\S\s][^"\\]*)*"|'[^'\\]*(?:\\[\S\s][^'\\]*)*'|`[^`\\]*(?:\\[\S\s][^`\\]*)*`/g,p=l.source+"|"+/(?:\breturn\s+|(?:[$\w\)\]]|\+\+|--)\s*(\/)(?![*\/]))/.source+"|"+/\/(?=[^*\/])[^[\/\\]*(?:(?:\[(?:\\.|[^\]\\]*)*\]|\\.)[^[\/\\]*)*?([^<]\/)[gim]*/.source,f=RegExp("[\\x00-\\x1F<>a-zA-Z0-9'\",;\\\\]"),h=/(?=[[\]()*+?.^$|])/g,d=l.source+"|"+/(\/)(?![*\/])/.source,g={"(":RegExp("([()])|"+d,u),"[":RegExp("([[\\]])|"+d,u),"{":RegExp("([{}])|"+d,u)},m="{ }",v=["{","}","{","}",/{[^}]*}/,/\\([{}])/g,/\\({)|{/g,RegExp("\\\\(})|([[({])|(})|"+d,u),m,/^\s*{\^?\s*([$\w]+)(?:\s*,\s*(\S+))?\s+in\s+(\S.*)\s*}/,/(^|[^\\]){=[\S\s]*?}/],x=void 0,y=[];return i.split=function(e,t,n){function r(e){d&&(e=d+e,d=""),t||o?p.push(e&&e.replace(n[5],"$1")):p.push(e)}function i(n,r,i){return i&&(r=Et(e,n)),t&&r>n+2&&(c="⁗"+h.length+"~",h.push(e.slice(n,r)),d+=e.slice(a,n)+c,a=r),r}n||(n=y);var s,o,a,u,c,l,p=[],f=n[6],h=[],d="";for(o=a=f.lastIndex=0;s=f.exec(e);){if(l=f.lastIndex,u=s.index,o){if(s[2]){var m=s[2],v=g[m],x=1;for(v.lastIndex=l;s=v.exec(e);)if(s[1]){if(s[1]===m)++x;else if(!--x)break}else v.lastIndex=i(s.index,v.lastIndex,s[2]);f.lastIndex=x?e.length:v.lastIndex;continue}if(!s[3]){f.lastIndex=i(u,l,s[4]);continue}}s[1]||(r(e.slice(a,u)),a=f.lastIndex,(f=n[6+(o^=1)]).lastIndex=a)}return e&&a %s",t.riotData.tagName||"Unknown tag",this.tmpl),console.log(this.data))}function n(e){var t=r(e);return"try{return "!==t.slice(0,11)&&(t="return "+t),new Function("E",t+";")}function r(e){var t,n=Ct.split(e.replace(a,'"'),1),r=n.qblocks;if(n.length>2||n[0]){var s,o,c=[];for(s=o=0;s1?"["+i.join(",")+'].join(" ").trim()':i[0]:s(e,t)}return e}function s(e,t,n){var r;return e=e.replace(f,function(e,t,n,i,s){return n&&(i=r?0:i+e.length,"this"!==n&&"global"!==n&&"window"!==n?(e=t+'("'+n+p+n,i&&(r="."===(s=s[i])||"("===s||"["===s)):i&&(r=!h.test(s.slice(i)))),e}),r&&(e="try{return "+e+"}catch(e){E(e,this)}"),n?e=(r?"function(){"+e+"}.call(this)":"("+e+")")+'?"'+n+'":""':t&&(e="function(v){"+(r?e.replace("return ","v="):"v=("+e+")")+';return v||v===0?v:""}.call(this)'),e}var o={};e.hasExpr=Ct.hasExpr,e.loopKeys=Ct.loopKeys,e.clearCache=function(){o={}},e.errorHandler=null;var a=/\u2057/g,u=/\u2057(\d+)~/g,c=/^(?:(-?[_A-Za-z\xA0-\xFF][-\w\xA0-\xFF]*)|\u2057(\d+)~):/,l={"(":/[()]/g,"[":/[[\]]/g,"{":/[{}]/g},p='"in this?this:'+("object"!=typeof window?"global":"window")+").",f=/[,{][\$\w]+(?=:)|(^ *|[^$\w\.{])(?!(?:typeof|true|false|null|undefined|in|instanceof|is(?:Finite|NaN)|void|NaN|new|Date|RegExp|Math)(?![$\w]))([$_A-Za-z][$\w]*)/g,h=/^(?=(\.[$\w]+))\1(?:[^.[(]|$)/;return e.version=Ct.version="v3.0.8",e}(),At=function(e){e=e||{};var t={},n=Array.prototype.slice;return Object.defineProperties(e,{on:{value:function(n,r){return"function"==typeof r&&(t[n]=t[n]||[]).push(r),e},enumerable:!1,writable:!1,configurable:!1},off:{value:function(n,r){if("*"!=n||r)if(r)for(var i,s=t[n],o=0;i=s&&s[o];++o)i==r&&s.splice(o--,1);else delete t[n];else t={};return e},enumerable:!1,writable:!1,configurable:!1},one:{value:function(t,n){function r(){e.off(t,r),n.apply(e,arguments)}return e.on(t,r)},enumerable:!1,writable:!1,configurable:!1},trigger:{value:function(r){var i,s,o,a=arguments,u=arguments.length-1,c=new Array(u);for(o=0;o|>([\S\s]*?)<\/yield\s*>|>)/gi,$t=/]*)['"]\s*>([\S\s]*?)<\/yield\s*>/gi,Pt=/|>([\S\s]*?)<\/yield\s*>)/gi,Ft={tr:"tbody",th:"tr",td:"tr",col:"colgroup"},Ht=vt&&vt<10?lt:pt,zt="div",Bt="svg",Ut={},Vt=Ut[Ze]={},qt=0,Dt=Object.freeze({Tag:W,tag:Q,tag2:J,mount:X,mixin:Y,update:ee,unregister:te,version:"v3.6.1"}),Zt=0,Kt=Object.freeze({getTag:ie,inheritFrom:se,moveChildTag:oe,initChildTag:ae,getImmediateCustomParentTag:ue,unmountAll:ce,getTagName:le,cleanUpData:pe,arrayishAdd:fe,arrayishRemove:he,mountTo:de,makeReplaceVirtual:ge,makeVirtual:me,moveVirtual:ve,selectTags:xe}),Gt=Lt,Wt={tmpl:St,brackets:Ct,styleManager:Nt,vdom:qe,styleNode:Nt.styleNode,dom:yt,check:xt,misc:Tt,tags:Kt},Qt=W,Jt=Q,Xt=J,Yt=X,en=Y,tn=ee,nn=te,rn=At,sn=A({},Dt,{observable:At,settings:Gt,util:Wt}),on=Object.freeze({settings:Gt,util:Wt,Tag:Qt,tag:Jt,tag2:Xt,mount:Yt,mixin:en,update:tn,unregister:nn,version:"v3.6.1",observable:rn,default:sn}),an=function(e){function t(t){var n=e[t];if(n)return n;throw new Error('Parser "'+t+'" not loaded.')}function n(e,t){if(t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function r(e,r,i,s){return i=n({pretty:!0,filename:s,doctype:"html"},i),t(e).render(r,i)}var i={};return i.html={jade:function(e,t,n){return console.log('DEPRECATION WARNING: jade was renamed "pug" - The jade parser will be removed in riot@3.0.0!'),r("jade",e,t,n)},pug:function(e,t,n){return r("pug",e,t,n)}},i.css={less:function(e,r,i,s){var o;return i=n({sync:!0,syncImport:!0,filename:s},i),t("less").render(r,i,function(e,t){if(e)throw e;o=t.css}),o}},i.js={es6:function(e,r,i){return t("Babel").transform(e,n({plugins:[["transform-es2015-template-literals",{loose:!0}],"transform-es2015-literals","transform-es2015-function-name","transform-es2015-arrow-functions","transform-es2015-block-scoped-functions",["transform-es2015-classes",{loose:!0}],"transform-es2015-object-super","transform-es2015-shorthand-properties","transform-es2015-duplicate-keys",["transform-es2015-computed-properties",{loose:!0}],["transform-es2015-for-of",{loose:!0}],"transform-es2015-sticky-regex","transform-es2015-unicode-regex","check-es2015-constants",["transform-es2015-spread",{loose:!0}],"transform-es2015-parameters",["transform-es2015-destructuring",{loose:!0}],"transform-es2015-block-scoping","transform-es2015-typeof-symbol",["transform-es2015-modules-commonjs",{allowTopLevelThis:!0}],["transform-regenerator",{async:!1,asyncGenerators:!1}]]},r)).code},buble:function(e,r,i){return r=n({source:i,modules:!1},r),t("buble").transform(e,r).code},coffee:function(e,r){return t("CoffeeScript").compile(e,n({bare:!0},r))},livescript:function(e,r){return t("livescript").compile(e,n({bare:!0,header:!1},r))},typescript:function(e,n){return t("typescript")(e,n)},none:function(e){return e}},i.js.javascript=i.js.none,i.js.coffeescript=i.js.coffee,i._req=function(e){var t=e.split(".");if(2!==t.length)throw new Error("Bad format for parsers._req");var n=i[t[0]][t[1]];if(n)return n;throw new Error('Parser "'+e+'" not found.')},i.utils={extend:n},i}(window||global),un=an.utils.extend,cn=/"[^"\n\\]*(?:\\[\S\s][^"\n\\]*)*"|'[^'\n\\]*(?:\\[\S\s][^'\n\\]*)*'/.source,ln=Ct.R_STRINGS.source,pn=/ *([-\w:\xA0-\xFF]+) ?(?:= ?('[^']*'|"[^"]*"|\S+))?/g,fn=RegExp(//.source+"|"+cn,"g"),hn=/<(-?[A-Za-z][-\w\xA0-\xFF]*)(?:\s+([^"'\/>]*(?:(?:"[^"]*"|'[^']*'|\/[^>])[^'"\/>]*)*)|\s*)(\/?)>/g,dn=/>[ \t]+<(-?[A-Za-z]|\/[-A-Za-z])/g,gn=["style","src","d","value"],mn=/^(?:input|img|br|wbr|hr|area|base|col|embed|keygen|link|meta|param|source|track)$/,vn=/]*|"[^"]*")*)?>([\S\s]+?)<\/pre\s*>/gi,xn=/^"(?:number|date(?:time)?|time|month|email|color)\b/i,yn=/^\s*import(?!\w)(?:(?:\s|[^\s'"])*)['|"].*\n?/gm,bn=/[ \t]+$/gm,_n=ye(/@#\d/,"x01"),wn=ye(/@#(\d+)/g,"x01"),On="#",jn="⁗",Nn='"',En="'",Cn=/^[ \t]*(((?:async|\*)\s*)?([$_A-Za-z][$\w]*))\s*\([^()]*\)\s*{/m,Sn=RegExp("[{}]|"+Ct.S_QBLOCKS,"g"),An=RegExp(Ct.R_MLCOMMS.source+"|//[^\r\n]*|"+Ct.S_QBLOCK2,"g"),Tn=RegExp("([{}]|^)[; ]*((?:[^@ ;{}][^{}]*)?[^@ ;{}:] ?)(?={)|"+cn,"g"),Ln=/\stype\s*=\s*(?:(['"])(.+?)\1|(\S+))/i,kn="\\s*=\\s*("+ln+"|{[^}]+}|\\S+)",Rn=/\/>\n|^<(?:\/?-?[A-Za-z][-\w\xA0-\xFF]*\s*|-?[A-Za-z][-\w\xA0-\xFF]*\s+[-\w:\xA0-\xFF][\S\s]*?)>\n/,In=RegExp(/^([ \t]*)<(-?[A-Za-z][-\w\xA0-\xFF]*)(?:\s+([^'"\/>]+(?:(?:@|\/[^>])[^'"\/>]*)*)|\s*)?(?:\/>|>[ \t]*\n?([\S\s]*)^\1<\/\2\s*>|>(.*)<\/\2\s*>)/.source.replace("@",ln),"gim"),Mn=/