diff --git a/src/public/js/vendor/riot+compiler.min.js b/src/public/js/vendor/riot+compiler.min.js index 88981fe..0f0f4fd 100644 --- a/src/public/js/vendor/riot+compiler.min.js +++ b/src/public/js/vendor/riot+compiler.min.js @@ -1,2 +1,2 @@ -/* Riot v3.9.0, @license MIT */ -var e,t;e=this,t=function(){"use strict";function e(e,t){return(t||document).querySelector(e)}var t,n,r=[],i={},o="yield",s="__global_mixin",a="riot-",u=["ref","data-ref"],l="data-is",c="if",p="each",f="no-reorder",d="show",h="hide",m="key",g="__riot-events__",v="string",x="object",y="undefined",b="function",w="http://www.w3.org/1999/xlink",_="http://www.w3.org/2000/svg",A=/^xlink:(\w+)/,O=typeof window===y?void 0:window,N=/^on/,E=/([-\w]+) ?= ?(?:"([^"]*)|'([^']*)|({[^}]*}))/g,C={viewbox:"viewBox",preserveaspectratio:"preserveAspectRatio"},j=/^(?:disabled|checked|readonly|required|allowfullscreen|auto(?:focus|play)|compact|controls|default|formnovalidate|hidden|ismap|itemscope|loop|multiple|muted|no(?:resize|shade|validate|wrap)?|open|reversed|seamless|selected|sortable|truespeed|typemustmatch)$/,S=0|(O&&O.document||{}).documentMode;function k(e){return"svg"===e?document.createElementNS(_,e):document.createElement(e)}function T(e,t,n){var r=A.exec(t);r&&r[1]?e.setAttributeNS(w,r[1],n):e.setAttribute(t,n)}var L,I,R={},M=[],P=!1;O&&(L=k("style"),I=e("style[type=riot]"),T(L,"type","text/css"),I?(I.id&&(L.id=I.id),I.parentNode.replaceChild(L,I)):document.head.appendChild(L),n=(t=L).styleSheet);var $={styleNode:t,add:function(e,t){t?R[t]=e:M.push(e),P=!0},inject:function(){if(O&&P){P=!1;var e=Object.keys(R).map(function(e){return R[e]}).concat(M).join("\n");n?n.cssText=e:t.innerHTML=e}}},F=function(){var e="[{(,;:?=|&!^~>%*/",t=["case","default","do","else","in","instanceof","prefix","return","typeof","void","yield"],n=t.reduce(function(e,t){return e+t.slice(-1)},""),r=/^\/(?=[^*>/])[^[/\\]*(?:(?:\\.|\[(?:\\.|[^\]\\]*)*\])[^[\\/]*)*?\/[gimuy]*/,i=/[$\w]/;function o(e,t){for(;--t>=0&&/\s/.test(e[t]););return t}return function(s,a){var u=/.*/g,l=u.lastIndex=a++,c=u.exec(s)[0].match(r);if(c){var p=l+c[0].length,f=s[l=o(s,l)];if(l<0||~e.indexOf(f))return p;if("."===f)"."===s[l-1]&&(a=p);else if("+"===f||"-"===f)(s[--l]!==f||(l=o(s,l))<0||!i.test(s[l]))&&(a=p);else if(~n.indexOf(f)){for(var d=l+1;--l>=0&&i.test(s[l]););~t.indexOf(s.slice(l+1,d))&&(a=p)}}return a}}(),z=function(e){var t,n,r="g",i=/"[^"\\]*(?:\\[\S\s][^"\\]*)*"|'[^'\\]*(?:\\[\S\s][^'\\]*)*'|`[^`\\]*(?:\\[\S\s][^`\\]*)*`/g,o=i.source+"|"+/(?:\breturn\s+|(?:[$\w\)\]]|\+\+|--)\s*(\/)(?![*\/]))/.source+"|"+/\/(?=[^*\/])[^[\/\\]*(?:(?:\[(?:\\.|[^\]\\]*)*\]|\\.)[^[\/\\]*)*?([^<]\/)[gim]*/.source,s=RegExp("[\\x00-\\x1F<>a-zA-Z0-9'\",;\\\\]"),a=/(?=[[\]()*+?.^$|])/g,u=i.source+"|"+/(\/)(?![*\/])/.source,l={"(":RegExp("([()])|"+u,r),"[":RegExp("([[\\]])|"+u,r),"{":RegExp("([{}])|"+u,r)},c="{ }",p=["{","}","{","}",/{[^}]*}/,/\\([{}])/g,/\\({)|{/g,RegExp("\\\\(})|([[({])|(})|"+u,r),c,/^\s*{\^?\s*([$\w]+)(?:\s*,\s*(\S+))?\s+in\s+(\S.*)\s*}/,/(^|[^\\]){=[\S\s]*?}/],f=void 0,d=[];function h(e){return e}function m(e,t){return t||(t=d),new RegExp(e.source.replace(/{/g,t[2]).replace(/}/g,t[3]),e.global?r:"")}function g(e){if(e===c)return p;var t=e.split(" ");if(2!==t.length||s.test(e))throw new Error('Unsupported brackets "'+e+'"');return(t=t.concat(e.replace(a,"\\").split(" ")))[4]=m(t[1].length>1?/{[\S\s]*?}/:p[4],t),t[5]=m(e.length>3?/\\({|})/g:p[5],t),t[6]=m(p[6],t),t[7]=RegExp("\\\\("+t[3]+")|([[({])|("+t[3]+")|"+u,r),t[8]=e,t}function v(e){return e instanceof RegExp?t(e):d[e]}function x(e){(e||(e=c))!==d[8]&&(d=g(e),t=e===c?h:m,d[9]=t(p[9])),f=e}return v.split=function(e,t,n){n||(n=d);var r,i,o,s,a,u,c=[],p=n[6],f=[],h="";for(i=o=p.lastIndex=0;r=p.exec(e);){if(u=p.lastIndex,s=r.index,i){if(r[2]){var m=r[2],g=l[m],v=1;for(g.lastIndex=u;r=g.exec(e);)if(r[1]){if(r[1]===m)++v;else if(!--v)break}else g.lastIndex=y(r.index,g.lastIndex,r[2]);p.lastIndex=v?e.length:g.lastIndex;continue}if(!r[3]){p.lastIndex=y(s,u,r[4]);continue}}r[1]||(x(e.slice(o,s)),o=p.lastIndex,(p=n[6+(i^=1)]).lastIndex=o)}return e&&on+2&&(a="⁗"+f.length+"~",f.push(e.slice(n,r)),h+=e.slice(o,n)+a,o=r),r}},v.hasExpr=function(e){return d[4].test(e)},v.loopKeys=function(e){var t=e.match(d[9]);return t?{key:t[1],pos:t[2],val:d[0]+t[3].trim()+d[1]}:{val:e.trim()}},v.array=function(e){return e?g(e):d},Object.defineProperty(v,"settings",{set:function(e){var t;t=(e=e||{}).brackets,Object.defineProperty(e,"brackets",{set:x,get:function(){return f},enumerable:!0}),n=e,x(t)},get:function(){return n}}),v.settings="undefined"!=typeof riot&&riot.settings||{},v.set=x,v.skipRegex=F,v.R_STRINGS=i,v.R_MLCOMMS=/\/\*[^*]*\*+(?:[^*\/][^*]*\*+)*\//g,v.S_QBLOCKS=o,v.S_QBLOCK2=u,v}(),H=function(){var e={};function t(i,o){return i?(e[i]||(e[i]=function(e){var t=function(e){var t,i=z.split(e.replace(n,'"'),1),o=i.qblocks;if(i.length>2||i[0]){var a,u,l=[];for(a=u=0;a %s",e.riotData.tagName||"Unknown tag",this.tmpl),console.log(this.data))}.bind({data:o,tmpl:i})):i}t.hasExpr=z.hasExpr,t.loopKeys=z.loopKeys,t.clearCache=function(){e={}},t.errorHandler=null;var n=/\u2057/g,r=/\u2057(\d+)~/g;var i=/^(?:(-?[_A-Za-z\xA0-\xFF][-\w\xA0-\xFF]*)|\u2057(\d+)~):/,o={"(":/[()]/g,"[":/[[\]]/g,"{":/[{}]/g};function s(e,t,n){if(e=e.replace(/\s+/g," ").trim().replace(/\ ?([[\({},?\.:])\ ?/g,"$1")){for(var r,s=[],a=0;e&&(r=e.match(i))&&!r.index;){var u,l,p=/,|([[{(])|$/g;for(e=RegExp.rightContext,u=r[2]?n[r[2]].slice(1,-1).trim().replace(/\s+/g," "):r[1];l=(r=p.exec(e))[1];)f(l,p);l=e.slice(0,r.index),e=RegExp.rightContext,s[a++]=c(l,1,u)}e=a?a>1?"["+s.join(",")+'].join(" ").trim()':s[0]:c(e,t)}return e;function f(t,n){var r,i=1,s=o[t];for(s.lastIndex=n.lastIndex;r=s.exec(e);)if(r[0]===t)++i;else if(!--i)break;n.lastIndex=i?e.length:s.lastIndex}}var a='"in this?this:'+("object"!=typeof window?"global":"window")+").",u=/[,{][\$\w]+(?=:)|(^ *|[^$\w\.{])(?!(?:typeof|true|false|null|undefined|in|instanceof|is(?:Finite|NaN)|void|NaN|new|Date|RegExp|Math)(?![$\w]))([$_A-Za-z][$\w]*)/g,l=/^(?=(\.[$\w]+))\1(?:[^.[(]|$)/;function c(e,t,n){var r;return e=e.replace(u,function(e,t,n,i,o){return n&&(i=r?0:i+e.length,"this"!==n&&"global"!==n&&"window"!==n?(e=t+'("'+n+a+n,i&&(r="."===(o=o[i])||"("===o||"["===o)):i&&(r=!l.test(o.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}return t.version=z.version="v3.0.8",t}(),U=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,o=t[n],s=0;i=o&&o[s];++s)i==r&&o.splice(s--,1);else delete t[n];else t={};return e},enumerable:!1,writable:!1,configurable:!1},one:{value:function(t,n){return e.on(t,function r(){e.off(t,r),n.apply(e,arguments)})},enumerable:!1,writable:!1,configurable:!1},trigger:{value:function(r){var i,o,s,a=arguments,u=arguments.length-1,l=new Array(u);for(s=0;s'+t+"","application/xml").documentElement,!0);e.appendChild(r)}else e.innerHTML=t}function ee(e,t){if(e)for(var n;n=E.exec(e);)t(n[1].toLowerCase(),n[2]||n[3]||n[4])}function te(){return document.createDocumentFragment()}function ne(e,t,n){e.insertBefore(t,n.parentNode&&n)}function re(e){return Object.keys(e).reduce(function(t,n){return t+" "+n+": "+e[n]+";"},"")}function ie(e,t,n){if(e){var r,i=t(e,n);if(!1===i)return;for(e=e.firstChild;e;)r=e.nextSibling,ie(e,t,i),e=r}}var oe=Object.freeze({$$:K,$:e,createDOMPlaceholder:W,mkEl:k,setAttr:T,toggleVisibility:J,getAttr:Q,remAttr:X,setInnerHTML:Y,walkAttrs:ee,createFrag:te,safeInsert:ne,styleObjectToString:re,walkNodes:ie});function se(e){return B(e)||null===e}function ae(e){return se(e)||""===e}function ue(e){return typeof e===b}function le(e){return e&&typeof e===x}function ce(e){var t=e.ownerSVGElement;return!!t||null===t}function pe(e){return Array.isArray(e)||e instanceof Array}function fe(e){return j.test(e)}function de(e){return typeof e===v}var he=Object.freeze({isBlank:ae,isFunction:ue,isObject:le,isSvg:ce,isWritable:q,isArray:pe,isBoolAttr:fe,isNil:se,isString:de,isUndefined:B});function me(e,t){return-1!==e.indexOf(t)}function ge(e,t){for(var n=e?e.length:0,r=0;r|>([\S\s]*?)<\/yield\s*>|>)/gi,ke=/]*)['"]\s*>([\S\s]*?)<\/yield\s*>/gi,Te=/|>([\S\s]*?)<\/yield\s*>)/gi,Le={tr:"tbody",th:"tr",td:"tr",col:"colgroup"},Ie=S&&S<10?/^(?:t(?:body|head|foot|[rhd])|caption|col(?:group)?|opt(?:ion|group))$/:/^(?:t(?:body|head|foot|[rhd])|caption|col(?:group)?)$/,Re="div",Me="svg";function Pe(t,n,r){var i=t&&t.match(/^\s*<([-\w]+)/),o=i&&i[1].toLowerCase(),s=k(r?Me:Re);return t=function(e,t){if(!je.test(e))return e;var n={};return t=t&&t.replace(ke,function(e,t,r){return n[t]=n[t]||r,""}).trim(),e.replace(Te,function(e,t,r){return n[t]||r||""}).replace(Se,function(e,n){return t||n||""})}(t,n),Ie.test(o)?s=function(t,n,r){var i="o"===r[0],o=i?"select>":"table>";if(t.innerHTML="<"+o+n.trim()+"=O.length,R=j&&k||!j&&!L;R?((L=vt(l,{parent:t,isLoop:!0,isAnonymous:_,tagName:u,root:e.cloneNode(_),item:E,index:h},w)).mount(),I?function(e,t){t?Ue.call(this,e):e.appendChild(this.root)}.apply(L,[c||f,A]):function(e,t,n){n?Ue.apply(this,[e,t]):ne(e,this.root,t.root)}.apply(L,[f,b[h],A]),I||O.splice(h,0,E),b.splice(h,0,L),g&&Oe(t.tags,u,L,!0)):T!==h&&j&&((s||me(i,O[T]))&&(function(e,t,n){n?ot.apply(this,[e,t]):ne(e,this.root,t.root)}.apply(L,[f,b[h],A]),b.splice(h,0,b.splice(T,1)[0]),O.splice(h,0,O.splice(T,1)[0])),n.pos&&(L[n.pos]=h),!g&&L.tags&&function(e){var t=this;ge(Object.keys(this.tags),function(n){it.apply(t.tags[n],[n,e])})}.call(L,h)),D(L.__,{item:E,index:h,parent:t}),d[h]=C,R||L.update(E)}),function(e,t){for(var n=t.length,r=e.length;n>r;)n--,at.apply(t[n],[t,n])}(i,b),O=d.slice(),f.insertBefore(c,h))},n.unmount=function(){ge(b,function(e){e.unmount()})},n}var lt={init:function(e,t,n,r){return this.dom=e,this.attr=n,this.rawValue=r,this.parent=t,this.hasExp=H.hasExpr(r),this},update:function(){var e=this.value,t=this.parent&&$e(this.parent),n=this.dom.__ref||this.tag||this.dom;this.value=this.hasExp?H(this.rawValue,this.parent):this.rawValue,!ae(e)&&t&&He(t.refs,e,n),!ae(this.value)&&de(this.value)?(t&&Oe(t.refs,this.value,n,null,this.parent.__.index),this.value!==e&&T(this.dom,this.attr,this.value)):X(this.dom,this.attr),this.dom.__ref||(this.dom.__ref=n)},unmount:function(){var e=this.tag||this.dom,t=this.parent&&$e(this.parent);!ae(this.value)&&t&&He(t.refs,this.value,e)}};function ct(e,t,n,r){return Z(lt).init(e,t,n,r)}function pt(e){ge(e,function(e){e.unmount?e.unmount(!0):e.tagName?e.tag.unmount(!0):e.unmount&&e.unmount()})}var ft={init:function(e,t,n){X(e,c),D(this,{tag:t,expr:n,stub:W(),pristine:e});var r=e.parentNode;return r.insertBefore(this.stub,e),r.removeChild(e),this},update:function(){this.value=H(this.expr,this.tag),this.value&&!this.current?(this.current=this.pristine.cloneNode(!0),this.stub.parentNode.insertBefore(this.current,this.stub),this.expressions=ht.apply(this.tag,[this.current,!0])):!this.value&&this.current&&(pt(this.expressions),this.current._tag?this.current._tag.unmount():this.current.parentNode&&this.current.parentNode.removeChild(this.current),this.current=null,this.expressions=[]),this.value&&qe.call(this.tag,this.expressions)},unmount:function(){pt(this.expressions||[])}};function dt(e,t,n){return Z(ft).init(e,t,n)}function ht(e,t){var n=this,r=[];return ie(e,function(i){var o,s,a=i.nodeType;if((t||i!==e)&&(3===a&&"STYLE"!==i.parentNode.tagName&&H.hasExpr(i.nodeValue)&&r.push({dom:i,expr:i.nodeValue}),1===a)){var u="VIRTUAL"===i.tagName;if(o=Q(i,p))return u&&T(i,"loopVirtual",!0),r.push(ut(i,n,o)),!1;if(o=Q(i,c))return r.push(dt(i,n,o)),!1;if((o=Q(i,l))&&H.hasExpr(o))return r.push({isRtag:!0,expr:o,dom:i,attrs:[].slice.call(i.attributes)}),!1;if(s=Ne(i),u&&(Q(i,"virtualized")&&i.parentElement.removeChild(i),s||Q(i,"virtualized")||Q(i,"loopVirtual")||(s={tmpl:i.outerHTML})),s&&(i!==e||t)){if(!u)return r.push(ze(s,{root:i,parent:n},i.innerHTML,n)),!1;Q(i,l)&&_e("Virtual tags shouldn't be used together with the \""+l+'" attribute - https://github.com/riot/riot/issues/2511'),T(i,"virtualized",!0);var f=vt({tmpl:i.outerHTML},{root:i,parent:n},i.innerHTML);r.push(f)}mt.apply(n,[i,i.attributes,function(e,t){t&&r.push(t)}])}}),r}function mt(e,t,n){var r=this;ge(t,function(t){if(!t)return!1;var i,s=t.name,a=fe(s);me(u,s)&&e.tagName.toLowerCase()!==o?i=ct(e,r,s,t.value):H.hasExpr(t.value)&&(i={dom:e,expr:t.value,attr:s,bool:a}),n(t,i)})}function gt(e){var t=this.__.isAnonymous;be(this,"isMounted",e),t||(e?this.trigger("mount"):(this.trigger("unmount"),this.off("*"),this.__.wasCreated=!1))}function vt(e,t,n){void 0===e&&(e={}),void 0===t&&(t={});var i,o=t.context||{},u=D({},t.opts),l=t.parent,c=t.isLoop,p=!!t.isAnonymous,f=G.skipAnonymousTags&&p,d=t.item,h=t.index,m=[],v=t.root,x=t.tagName||Ee(v),y="virtual"===x,b=!y&&!e.tmpl;return f||U(o),e.name&&v._tag&&v._tag.unmount(!0),be(o,"isMounted",!1),be(o,"__",{impl:e,root:v,skipAnonymous:f,implAttrs:[],isAnonymous:p,instAttrs:[],innerHTML:n,tagName:x,index:h,isLoop:c,isInline:b,item:d,parent:l,listeners:[],virts:[],wasCreated:!1,tail:null,head:null}),be(o,"_riot_id",ye()),be(o,"root",v),D(o,{opts:u},d),be(o,"parent",l||null),be(o,"tags",{}),be(o,"refs",{}),b||c&&p?i=v:(y||(v.innerHTML=""),i=Pe(e.tmpl,n,ce(v))),be(o,"update",function(e){return n=e,r=m,i=(t=o).__,s={},a=t.isMounted&&!i.skipAnonymous,i.isAnonymous&&i.parent&&D(t,i.parent),D(t,n),De.apply(t,[i.isLoop,i.parent,i.isAnonymous,s,i.instAttrs]),a&&t.isMounted&&ue(t.shouldUpdate)&&!t.shouldUpdate(n,s)?t:(D(t.opts,s),a&&t.trigger("update",n),qe.call(t,r),a&&t.trigger("updated"),t);var t,n,r,i,s,a}),be(o,"mixin",function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return ge(t,function(t){var n,r,i=[],o=["init","__proto__"];t=de(t)?et(t):t,n=ue(t)?new t:t;for(var s=Object.getPrototypeOf(n);i=i.concat(Object.getOwnPropertyNames(r||n)),r=Object.getPrototypeOf(r||n););ge(i,function(t){if(!me(o,t)){var r=V(n,t)||V(s,t),i=r&&(r.get||r.set);!e.hasOwnProperty(t)&&i?Object.defineProperty(e,t,r):e[t]=ue(n[t])?n[t].bind(e):n[t]}}),n.init&&n.init.bind(e)(e.opts)}),e}.apply(void 0,[o].concat(e))}),be(o,"mount",function(){return function(e,t,n,r){var i=e.__,o=i.root;o._tag=e,mt.apply(i.parent,[o,o.attributes,function(t,n){!i.isAnonymous&<.isPrototypeOf(n)&&(n.tag=e),t.expr=n,i.instAttrs.push(t)}]),ee(i.impl.attrs,function(e,t){i.implAttrs.push({name:e,value:t})}),mt.apply(e,[o,i.implAttrs,function(e,t){t?n.push(t):T(o,e.name,e.value)}]),De.apply(e,[i.isLoop,i.parent,i.isAnonymous,r,i.instAttrs]);var a=et(s);if(a&&!i.skipAnonymous)for(var u in a)a.hasOwnProperty(u)&&e.mixin(a[u]);if(i.impl.fn&&i.impl.fn.call(e,r),i.skipAnonymous||e.trigger("before-mount"),ge(ht.apply(e,[t,i.isAnonymous]),function(e){return n.push(e)}),e.update(i.item),!i.isAnonymous&&!i.isInline)for(;t.firstChild;)o.appendChild(t.firstChild);if(be(e,"root",o),!i.skipAnonymous&&e.parent){var l=$e(e.parent);l.one(l.isMounted?"updated":"mount",function(){gt.call(e,!0)})}else gt.call(e,!0);return e.__.wasCreated=!0,e}(o,i,m,u)}),be(o,"unmount",function(e){return function(e,t,n){var i=e.__,o=i.root,s=r.indexOf(e),u=o.parentNode;if(i.skipAnonymous||e.trigger("before-unmount"),ee(i.impl.attrs,function(e){ve(e,a)&&(e=e.slice(a.length)),X(o,e)}),e.__.listeners.forEach(function(e){Object.keys(e[g]).forEach(function(t){e.removeEventListener(t,e[g][t])})}),-1!==s&&r.splice(s,1),i.parent&&!i.isAnonymous){var l=$e(i.parent);i.isVirtual?Object.keys(e.tags).forEach(function(t){return He(l.tags,t,e.tags[t])}):He(l.tags,i.tagName,e)}return e.__.virts&&ge(e.__.virts,function(e){e.parentNode&&e.parentNode.removeChild(e)}),pt(n),ge(i.instAttrs,function(e){return e.expr&&e.expr.unmount&&e.expr.unmount()}),t?Y(o,""):u&&u.removeChild(o),i.onUnmount&&i.onUnmount(),e.isMounted||gt.call(e,!0),gt.call(e,!1),delete o._tag,e}(o,e,m)}),o}function xt(e,t,n,o){var s,a=i[t],u=i[t].class,l=o||(u?Z(u.prototype):{}),c=e._innerHTML=e._innerHTML||e.innerHTML,p=D({root:e,opts:n,context:l},{parent:n?n.parent:null});return a&&e&&(s=vt(a,p,c)),s&&s.mount&&(s.mount(!0),me(r,s)||r.push(s)),s}var yt=Object.freeze({arrayishAdd:Oe,getTagName:Ee,inheritParentProps:Ce,mountTo:xt,selectTags:Ze,arrayishRemove:He,getTag:Ne,initChildTag:ze,moveChildTag:it,makeReplaceVirtual:Ve,getImmediateCustomParentTag:$e,makeVirtual:Ue,moveVirtual:ot,unmountAll:pt,createIfDirective:dt,createRefDirective:ct}),bt=G,wt={tmpl:H,brackets:z,styleManager:$,vdom:r,styleNode:$.styleNode,dom:oe,check:he,misc:Ae,tags:yt},_t=Ge,At=Ke,Ot=We,Nt=Je,Et=et,Ct=tt,jt=nt,St=U,kt=D({},rt,{observable:U,settings:bt,util:wt}),Tt=Object.freeze({settings:bt,util:wt,Tag:_t,tag:At,tag2:Ot,mount:Nt,mixin:Et,update:Ct,unregister:jt,version:"v3.9.0",observable:St,default:kt});function Lt(e){var t=arguments,n=e.source,r=e.global?"g":"";e.ignoreCase&&(r+="i"),e.multiline&&(r+="m");for(var i=1;i)[\S\s]*?-->/.source+"|"+zt,"g"),Bt=/<(-?[A-Za-z][-\w\xA0-\xFF]*)(?:\s+([^"'/>]*(?:(?:"[^"]*"|'[^']*'|\/[^>])[^'"/>]*)*)|\s*)(\/?)>/g,qt=/>[ \t]+<(-?[A-Za-z]|\/[-A-Za-z])/g,Dt=["style","src","d","value"],Zt=/^(?:input|img|br|wbr|hr|area|base|col|embed|keygen|link|meta|param|source|track)$/,Gt=/]*|"[^"]*")*)?>([\S\s]+?)<\/pre\s*>/gi,Kt=/^"(?:number|date(?:time)?|time|month|email|color)\b/i,Wt=/^\s*import(?!\w)(?:(?:\s|[^\s'"])*)['|"].*\n?/gm,Jt=/[ \t]+$/gm,Qt=Lt(/@#\d/,"x01"),Xt=Lt(/@#(\d+)/g,"x01"),Yt="#",en="⁗",tn='"',nn="'";function rn(e){var t,n=Vt;for(1!==e.indexOf("\r")&&(e=e.replace(/\r\n?/g,"\n")),n.lastIndex=0;t=n.exec(e);)"<"===t[0][0]&&(e=RegExp.leftContext+RegExp.rightContext,n.lastIndex=t[3]+1);return e}function on(e,t){var n,r,i,o=[];for(Ut.lastIndex=0,e=e.replace(/\s+/g," ");n=Ut.exec(e);){var s=n[1].toLowerCase(),a=n[2];a?(a[0]!==tn&&(a=tn+(a[0]===nn?a.slice(1,-1):a)+tn),"type"===s&&Kt.test(a)?r=a:(Qt.test(a)&&("value"===s&&(i=1),-1!==Dt.indexOf(s)&&(s="riot-"+s)),o.push(s+"="+a))):o.push(s)}return r&&(i&&(r=tn+t._bp[0]+nn+r.slice(1,-1)+nn+t._bp[1]+tn),o.push("type="+r)),o.join(" ")}function sn(e,t,n){var r=n._bp;if(e&&r[4].test(e)){for(var i,o=t.expr&&(t.parser||t.type)?pn:0,s=z.split(e,0,r),a=1;a"}),!t.whitespace){var r=[];/]/.test(e)&&(e=e.replace(Gt,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(qt,"><$1")),an(e,n).replace(Jt,"")}var ln=/^[ \t]*(((?:async|\*)\s*)?([$_A-Za-z][$\w]*))\s*\([^()]*\)\s*{/m;function cn(e){var t,n,r,i,o,s,a=[],u=RegExp,l=function(e,t){for(var n,r,i,o,s,a,u=new RegExp(Mt,"g"),l=z.skipRegex,c=0|t,p=[[]],f=[],d=u,h=d.lastIndex=c;a=d.exec(e);){if(o=a.index,s=d.lastIndex,r="",i=a[1]){if("{"===i)f.push("}");else if("}"===i){if(f.pop()!==i)throw new Error("Unexpected '}'");"`"===f[f.length-1]&&(i=f.pop())}else"/"===i&&(s=l(e,o))>o+1&&(r=e.slice(o,s));"`"===i&&(s=$t(e,s,f),r=e.slice(o,s),d=f.length?n||(n=new RegExp(Pt,"g")):u)}else"/"===(r=a[0])[0]?(r="*"===r[1]?" ":"",e=e.slice(c,o)+r+e.slice(s),s=o+r.length,r=""):2===r.length&&(r="");r&&(p[0].push(e.slice(h,o)),p.push(r),h=s),d.lastIndex=s}return p[0].push(e.slice(h)),p}(e);for(e=l.shift().join("<%>");t=e.match(ln);)a.push(u.leftContext),r=c(e=u.rightContext),i=t[1],o=t[2]||"",s=t[3],s=(n=!/^(?:if|while|for|switch|catch|function)$/.test(s))?t[0].replace(i,"this."+s+" ="+o+" function"):t[0],a.push(s,e.slice(0,r)),e=e.slice(r),n&&!/^\s*.\s*bind\b/.test(e)&&a.push(".bind(this)");return a.length&&(e=a.join("")+e),l.length&&(e=e.replace(/<%>/g,function(){return l.shift()})),e;function c(e){for(var t=/[{}]/g,n=1;n&&t.exec(e);)"{"===e[t.lastIndex-1]?++n:--n;return n?e.length:t.lastIndex}}function pn(e,t,n,r,i){return/\S/.test(e)?(n||(n=t.type),(t.parser||n&&It._req("js."+n,!0)||cn)(e,r,i).replace(/\r\n?/g,"\n").replace(Jt,"")):""}var fn=RegExp("([{}]|^)[; ]*((?:[^@ ;{}][^{}]*)?[^@ ;{}:] ?)(?={)|"+zt,"g");function dn(e,t,n,r){var i,o;(r=r||{},n)&&("css"!==n&&(e=It._req("css."+n,!0)(t,e,r.parserOpts||{},r.url)));return e=e.replace(z.R_MLCOMMS,"").replace(/\s+/g," ").trim(),t&&(i=t,o=":scope",e=e.replace(fn,function(e,t,n){return n?(n=n.replace(/[^,]+/g,function(e){var t=e.trim();return 0===t.indexOf(i)?e:t&&"from"!==t&&"to"!==t&&"%"!==t.slice(-1)?t=t.indexOf(o)<0?i+" "+t+',[data-is="'+i+'"] '+t:t.replace(o,i)+","+t.replace(o,'[data-is="'+i+'"]'):e}),t?t+" "+n:n):e})),e}var hn=/\stype\s*=\s*(?:(['"])(.+?)\1|(\S+))/i,mn="\\s*=\\s*("+Ht+"|{[^}]+}|\\S+)",gn=/\/>\n|^<(?:\/?-?[A-Za-z][-\w\xA0-\xFF]*\s*|-?[A-Za-z][-\w\xA0-\xFF]*\s+[-\w:\xA0-\xFF][\S\s]*?)>\n/;function vn(e,t){return e?(e=nn+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+nn,t&&-1!==e.indexOf("\n")?e.replace(/\n/g,"\\n"):e):"''"}function xn(e){if(e){var t=e.match(hn);if(t=t&&(t[2]||t[3]))return t.replace("text/","")}return""}function yn(e,t){if(e){var n=e.match(RegExp("\\s"+t+mn,"i"));if(n=n&&n[1])return/^['"]/.test(n)?n.slice(1,-1):n}return""}function bn(e){var t=yn(e,"options").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'");return t?JSON.parse(t):null}var wn=RegExp(/^([ \t]*)<(-?[A-Za-z][-\w\xA0-\xFF]*)(?:\s+([^'"/>]+(?:(?:@|\/[^>])[^'"/>]*)*)|\s*)?(?:\/>|>[ \t]*\n?([\S\s]*)^\1<\/\2\s*>|>(.*)<\/\2\s*>)/.source.replace("@",Ht),"gim"),_n=/]*)?>\n?([\S\s]*?)<\/script\s*>/gi,An=/]*)?>\n?([\S\s]*?)<\/style\s*>/gi;var On,Nn,En={compile:function(e,t,n){var r,i=[],o=e;t||(t={}),t.parserOptions=Ft({template:{},js:{},style:{}},t.parserOptions||{}),r=t.exclude?function(e){return t.exclude.indexOf(e)<0}:function(){return 1},n||(n="");var s,a,u,l,c=z.array(t.brackets);return t.template&&(s=o,a=n,u=t.template,l=t.parserOptions.template,o=It._req("html."+u,!0)(s,l,a)),o=rn(o).replace(wn,function(e,o,s,a,u,l){var p,f,d,h,m,g,v,x,y="",b="",w="",_="",A=[];if(A._bp=c,s=s.toLowerCase(),a=a&&r("attribs")?an(on(sn(a,t,A),A),A):"",(u||(u=l))&&/\S/.test(u))if(l)r("html")&&(w=un(l,t,A));else{var O=function(e){if(/<[-\w]/.test(e))for(var t,n=e.lastIndexOf("<"),r=e.length;-1!==n;){if(t=e.slice(n,r).match(gn))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]}((u=(u=(u=u.replace(RegExp("^"+o,"gm"),"")).replace(_n,function(e,i,o){if(r("js")){var s=(a=o,u=t,c=n,p=xn(l=i),f=yn(l,"src"),d=Ft({},u.parserOptions.js),!f&&pn(a,u,p,Ft(d,bn(l)),c));s&&(y+=(y?"\n":"")+s)}var a,u,l,c,p,f,d;return""})).replace(An,function(e,i,o){var a,u,l,c,p,f,d;return r("css")&&(b+=(b?" ":"")+(a=o,l=i,c=n,p=s,f=Ft({},(u=t).parserOptions.style),d={parserOpts:Ft(f,bn(l)),url:c},dn(a,p,xn(l)||u.style,d))),""})).replace(Jt,""));r("html")&&(w=un(O[0],t,A)),r("js")&&((u=pn(O[1],t,null,null,n))&&(y+=(y?"\n":"")+u),y=y.replace(Wt,function(e){return _+=e.trim()+"\n",""}))}return y=/\S/.test(y)?y.replace(/\n{3,}/g,"\n\n"):"",t.entities?(i.push({tagName:s,html:w,css:b,attribs:a,js:y,imports:_}),""):(p=s,f=w,d=b,h=a,m=y,g=_,v=t.debug?",\n ":", ",x="});",m&&"\n"!==m.slice(-1)&&(x="\n"+x),g+"riot.tag2('"+p+nn+v+vn(f,1)+v+vn(d)+v+vn(h)+", function(opts) {\n"+m+x)}),t.entities?i:o},compileHTML:function(e,t,n){return Array.isArray(t)?(n=t,t={}):(n||(n=[]),t||(t={})),n._bp=z.array(t.brackets),un(rn(e),t,n)},compileCSS:function(e,t,n){return t&&"object"==typeof t?(n=t,t=""):n||(n={}),dn(e,n.tagName,t,n)},compileJS:function(e,t,n,r){return"string"==typeof t&&(r=n,n=t,t={}),n&&"object"==typeof n&&(r=n,n=""),r||(r={}),pn(e,t||{},n,r.parserOptions,r.url)},parsers:It,version:"v3.4.0"};function Cn(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):kn.error('"'+e+'" not found'))},r.onerror=function(e){return kn.error(e)},r.open("GET",e,!0),r.send("")}function jn(e,t){if(typeof e===v){var n=k("script"),r=document.documentElement;t&&(e+="\n//# sourceURL="+t+".js"),n.text=e,r.appendChild(n),r.removeChild(n)}}var Sn=En.parsers;function kn(e,t,n){if(typeof e===v){if(le(t)&&(n=t,t=!1),/^\s*/])[^[/\\]*(?:(?:\\.|\[(?:\\.|[^\]\\]*)*\])[^[\\/]*)*?\/[gimuy]*/,p=/[$\w]/;function f(e,t){for(;0<=--t&&/\s/.test(e[t]););return t}return function(e,t){var r=/.*/g,n=r.lastIndex=t++,i=r.exec(e)[0].match(c);if(i){var o=n+i[0].length,s=e[n=f(e,n)];if(n<0||~"[{(,;:?=|&!^~>%*/".indexOf(s))return o;if("."===s)"."===e[n-1]&&(t=o);else if("+"===s||"-"===s)(e[--n]!==s||(n=f(e,n))<0||!p.test(e[n]))&&(t=o);else if(~l.indexOf(s)){for(var a=n+1;0<=--n&&p.test(e[n]););~u.indexOf(e.slice(n+1,a))&&(t=o)}}return t}}(),P=function(e){var t,r,n="g",i=/"[^"\\]*(?:\\[\S\s][^"\\]*)*"|'[^'\\]*(?:\\[\S\s][^'\\]*)*'|`[^`\\]*(?:\\[\S\s][^`\\]*)*`/g,o=i.source+"|"+/(?:\breturn\s+|(?:[$\w\)\]]|\+\+|--)\s*(\/)(?![*\/]))/.source+"|"+/\/(?=[^*\/])[^[\/\\]*(?:(?:\[(?:\\.|[^\]\\]*)*\]|\\.)[^[\/\\]*)*?([^<]\/)[gim]*/.source,s=RegExp("[\\x00-\\x1F<>a-zA-Z0-9'\",;\\\\]"),a=/(?=[[\]()*+?.^$|])/g,u=i.source+"|"+/(\/)(?![*\/])/.source,x={"(":RegExp("([()])|"+u,n),"[":RegExp("([[\\]])|"+u,n),"{":RegExp("([{}])|"+u,n)},l="{ }",c=["{","}","{","}",/{[^}]*}/,/\\([{}])/g,/\\({)|{/g,RegExp("\\\\(})|([[({])|(})|"+u,n),l,/^\s*{\^?\s*([$\w]+)(?:\s*,\s*(\S+))?\s+in\s+(\S.*)\s*}/,/(^|[^\\]){=[\S\s]*?}/],p=void 0,y=[];function f(e){return e}function d(e,t){return t||(t=y),new RegExp(e.source.replace(/{/g,t[2]).replace(/}/g,t[3]),e.global?n:"")}function h(e){if(e===l)return c;var t=e.split(" ");if(2!==t.length||s.test(e))throw new Error('Unsupported brackets "'+e+'"');return(t=t.concat(e.replace(a,"\\").split(" ")))[4]=d(1 %s",e.riotData.tagName||"Unknown tag",this.tmpl),console.log(this.data))}.bind({data:t,tmpl:e})):e}n.hasExpr=P.hasExpr,n.loopKeys=P.loopKeys,n.clearCache=function(){r={}},n.errorHandler=null;var a=/\u2057/g,u=/\u2057(\d+)~/g;var c=/^(?:(-?[_A-Za-z\xA0-\xFF][-\w\xA0-\xFF]*)|\u2057(\d+)~):/,p={"(":/[()]/g,"[":/[[\]]/g,"{":/[{}]/g};function l(o,e,t){if(o=o.replace(/\s+/g," ").trim().replace(/\ ?([[\({},?\.:])\ ?/g,"$1")){for(var r,n=[],i=0;o&&(r=o.match(c))&&!r.index;){var s,a,u=/,|([[{(])|$/g;for(o=RegExp.rightContext,s=r[2]?t[r[2]].slice(1,-1).trim().replace(/\s+/g," "):r[1];a=(r=u.exec(o))[1];)l(a,u);a=o.slice(0,r.index),o=RegExp.rightContext,n[i++]=d(a,1,s)}o=i?1'+t+"","application/xml").documentElement,!0);e.appendChild(n)}else e.innerHTML=t}function Y(e,t){if(e)for(var r;r=_.exec(e);)t(r[1].toLowerCase(),r[2]||r[3]||r[4])}function ee(){return document.createDocumentFragment()}function te(e,t,r){e.insertBefore(t,r.parentNode&&r)}function re(r){return Object.keys(r).reduce(function(e,t){return e+" "+t+": "+r[t]+";"},"")}function ne(e,t,r){if(e){var n,i=t(e,r);if(!1===i)return;for(e=e.firstChild;e;)n=e.nextSibling,ne(e,t,i),e=n}}var ie=Object.freeze({$$:G,$:s,createDOMPlaceholder:K,mkEl:k,setAttr:S,toggleVisibility:W,getAttr:J,remAttr:Q,setInnerHTML:X,walkAttrs:Y,createFrag:ee,safeInsert:te,styleObjectToString:re,walkNodes:ne});function oe(e){return U(e)||null===e}function se(e){return oe(e)||""===e}function ae(e){return typeof e===c}function ue(e){return e&&typeof e===V}function le(e){var t=e.ownerSVGElement;return!!t||null===t}function ce(e){return Array.isArray(e)||e instanceof Array}function pe(e){return A.test(e)}function fe(e){return typeof e===l}var de=Object.freeze({isBlank:se,isFunction:ae,isObject:ue,isSvg:le,isWritable:B,isArray:ce,isBoolAttr:pe,isNil:oe,isString:fe,isUndefined:U});function he(e,t){return-1!==e.indexOf(t)}function me(e,t){for(var r=e?e.length:0,n=0;n|>([\S\s]*?)<\/yield\s*>|>)/gi,ke=/]*)['"]\s*>([\S\s]*?)<\/yield\s*>/gi,Se=/|>([\S\s]*?)<\/yield\s*>)/gi,Te={tr:"tbody",th:"tr",td:"tr",col:"colgroup"},Le=j&&j<10?/^(?:t(?:body|head|foot|[rhd])|caption|col(?:group)?|opt(?:ion|group))$/:/^(?:t(?:body|head|foot|[rhd])|caption|col(?:group)?)$/,Ie="div",Re="svg";function Me(e,t,r){var n=e&&e.match(/^\s*<([-\w]+)/),i=n&&n[1].toLowerCase(),o=k(r?Re:Ie);return e=function(e,r){if(!Ce.test(e))return e;var n={};return r=r&&r.replace(ke,function(e,t,r){return n[t]=n[t]||r,""}).trim(),e.replace(Se,function(e,t,r){return n[t]||r||""}).replace(je,function(e,t){return r||t||""})}(e,t),Le.test(i)?o=function(e,t,r){var n="o"===r[0],i=n?"select>":"table>";if(e.innerHTML="<"+i+t.trim()+"=$.length,m=l&&p||!l&&!d||!I[r];m?((d=vt(S,{parent:O,isLoop:!0,isAnonymous:M,tagName:k,root:A.cloneNode(M),item:n,index:r},R)).mount(),h?function(e,t){t?He.call(this,e):e.appendChild(this.root)}.apply(d,[v||y,P]):function(e,t,r){r?He.apply(this,[e,t]):te(e,this.root,t.root)}.apply(d,[y,I[r],P]),h||$.splice(r,0,n),I.splice(r,0,d),T&&Ae(O.tags,k,d,!0)):f!==r&&l&&((C||he(g,$[f]))&&(function(e,t,r){r?ot.apply(this,[e,t]):te(e,this.root,t.root)}.apply(d,[y,I[r],P]),I.splice(r,0,I.splice(f,1)[0]),$.splice(r,0,$.splice(f,1)[0])),N.pos&&(d[N.pos]=r),!T&&d.tags&&function(t){var r=this;me(Object.keys(this.tags),function(e){it.apply(r.tags[e],[e,t])})}.call(d,r)),q(d.__,{item:n,index:r,parent:O}),b[r]=u,m||d.update(n)}else _++}),function(e,t,r){for(var n=t.length,i=e.length-r;i)[\S\s]*?-->/.source+"|"+Vt,"g"),Bt=/<(-?[A-Za-z][-\w\xA0-\xFF]*)(?:\s+([^"'/>]*(?:(?:"[^"]*"|'[^']*'|\/[^>])[^'"/>]*)*)|\s*)(\/?)>/g,qt=/>[ \t]+<(-?[A-Za-z]|\/[-A-Za-z])/g,Dt=["style","src","d","value"],Zt=/^(?:input|img|br|wbr|hr|area|base|col|embed|keygen|link|meta|param|source|track)$/,Gt=/]*|"[^"]*")*)?>([\S\s]+?)<\/pre\s*>/gi,Kt=/^"(?:number|date(?:time)?|time|month|email|color)\b/i,Wt=/^\s*import(?!\w)(?:(?:\s|[^\s'"])*)['|"].*\n?/gm,Jt=/[ \t]+$/gm,Qt=Lt(/@#\d/,"x01"),Xt=Lt(/@#(\d+)/g,"x01"),Yt="#",er="⁗",tr='"',rr="'";function nr(e){var t,r=Ut;for(1!==e.indexOf("\r")&&(e=e.replace(/\r\n?/g,"\n")),r.lastIndex=0;t=r.exec(e);)"<"===t[0][0]&&(e=RegExp.leftContext+RegExp.rightContext,r.lastIndex=t[3]+1);return e}function ir(e,t){var r,n,i,o=[];for(Ht.lastIndex=0,e=e.replace(/\s+/g," ");r=Ht.exec(e);){var s=r[1].toLowerCase(),a=r[2];a?(a[0]!==tr&&(a=tr+(a[0]===rr?a.slice(1,-1):a)+tr),"type"===s&&Kt.test(a)?n=a:(Qt.test(a)&&("value"===s&&(i=1),-1!==Dt.indexOf(s)&&(s="riot-"+s)),o.push(s+"="+a))):o.push(s)}return n&&(i&&(n=tr+t._bp[0]+rr+n.slice(1,-1)+rr+t._bp[1]+tr),o.push("type="+n)),o.join(" ")}function or(e,t,r){var n=r._bp;if(e&&n[4].test(e)){for(var i,o=t.expr&&(t.parser||t.type)?cr:0,s=P.split(e,0,n),a=1;a"}),!t.whitespace){var r=[];/]/.test(e)&&(e=e.replace(Gt,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(qt,"><$1")),sr(e,i).replace(Jt,"")}var ur=/^[ \t]*(((?:async|\*)\s*)?([$_A-Za-z][$\w]*))\s*\([^()]*\)\s*{/m;function lr(e){var t,r,n,i,o,s,a=[],u=RegExp,l=function(e,t){for(var r,n,i,o,s,a,u=new RegExp(Mt,"g"),l=P.skipRegex,c=0|t,p=[[]],f=[],d=u,h=d.lastIndex=c;a=d.exec(e);){if(o=a.index,s=d.lastIndex,n="",i=a[1]){if("{"===i)f.push("}");else if("}"===i){if(f.pop()!==i)throw new Error("Unexpected '}'");"`"===f[f.length-1]&&(i=f.pop())}else"/"===i&&o+1<(s=l(e,o))&&(n=e.slice(o,s));"`"===i&&(s=$t(e,s,f),n=e.slice(o,s),d=f.length?r||(r=new RegExp(Pt,"g")):u)}else"/"===(n=a[0])[0]?(n="*"===n[1]?" ":"",e=e.slice(c,o)+n+e.slice(s),s=o+n.length,n=""):2===n.length&&(n="");n&&(p[0].push(e.slice(h,o)),p.push(n),h=s),d.lastIndex=s}return p[0].push(e.slice(h)),p}(e);for(e=l.shift().join("<%>");t=e.match(ur);)a.push(u.leftContext),n=c(e=u.rightContext),i=t[1],o=t[2]||"",s=t[3],s=(r=!/^(?:if|while|for|switch|catch|function)$/.test(s))?t[0].replace(i,"this."+s+" ="+o+" function"):t[0],a.push(s,e.slice(0,n)),e=e.slice(n),r&&!/^\s*.\s*bind\b/.test(e)&&a.push(".bind(this)");return a.length&&(e=a.join("")+e),l.length&&(e=e.replace(/<%>/g,function(){return l.shift()})),e;function c(e){for(var t=/[{}]/g,r=1;r&&t.exec(e);)"{"===e[t.lastIndex-1]?++r:--r;return r?e.length:t.lastIndex}}function cr(e,t,r,n,i){return/\S/.test(e)?(r||(r=t.type),(t.parser||r&&It._req("js."+r,!0)||lr)(e,n,i).replace(/\r\n?/g,"\n").replace(Jt,"")):""}var pr=RegExp("([{}]|^)[; ]*((?:[^@ ;{}][^{}]*)?[^@ ;{}:] ?)(?={)|"+Vt,"g");function fr(e,t,r,n){var i,o;(n=n||{},r)&&("css"!==r&&(e=It._req("css."+r,!0)(t,e,n.parserOpts||{},n.url)));return e=e.replace(P.R_MLCOMMS,"").replace(/\s+/g," ").trim(),t&&(i=t,o=":scope",e=e.replace(pr,function(e,t,r){return r?(r=r.replace(/[^,]+/g,function(e){var t=e.trim();return 0===t.indexOf(i)?e:t&&"from"!==t&&"to"!==t&&"%"!==t.slice(-1)?t=t.indexOf(o)<0?i+" "+t+',[data-is="'+i+'"] '+t:t.replace(o,i)+","+t.replace(o,'[data-is="'+i+'"]'):e}),t?t+" "+r:r):e})),e}var dr=/\stype\s*=\s*(?:(['"])(.+?)\1|(\S+))/i,hr="\\s*=\\s*("+zt+"|{[^}]+}|\\S+)",mr=/\/>\n|^<(?:\/?-?[A-Za-z][-\w\xA0-\xFF]*\s*|-?[A-Za-z][-\w\xA0-\xFF]*\s+[-\w:\xA0-\xFF][\S\s]*?)>\n/;function gr(e,t){return e?(e=rr+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+rr,t&&-1!==e.indexOf("\n")?e.replace(/\n/g,"\\n"):e):"''"}function vr(e){if(e){var t=e.match(dr);if(t=t&&(t[2]||t[3]))return t.replace("text/","")}return""}function xr(e,t){if(e){var r=e.match(RegExp("\\s"+t+hr,"i"));if(r=r&&r[1])return/^['"]/.test(r)?r.slice(1,-1):r}return""}function yr(e){var t=xr(e,"options").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'");return t?JSON.parse(t):null}var br=RegExp(/^([ \t]*)<(-?[A-Za-z][-\w\xA0-\xFF]*)(?:\s+([^'"/>]+(?:(?:@|\/[^>])[^'"/>]*)*)|\s*)?(?:\/>|>[ \t]*\n?([\S\s]*)^\1<\/\2\s*>|>(.*)<\/\2\s*>)/.source.replace("@",zt),"gim"),wr=/]*)?>\n?([\S\s]*?)<\/script\s*>/gi,_r=/]*)?>\n?([\S\s]*?)<\/style\s*>/gi;var Ar,Or,Nr={compile:function(e,b,w){var _,A=[],t=e;b||(b={}),b.parserOptions=Ft({template:{},js:{},style:{}},b.parserOptions||{}),_=b.exclude?function(e){return b.exclude.indexOf(e)<0}:function(){return 1},w||(w="");var r,n,i,o,O=P.array(b.brackets);return b.template&&(r=t,n=w,i=b.template,o=b.parserOptions.template,t=It._req("html."+i,!0)(r,o,n)),t=nr(t).replace(br,function(e,t,c,r,n,i){var o,s,a,u,l,p,f,d,h="",m="",g="",v="",x=[];if(x._bp=O,c=c.toLowerCase(),r=r&&_("attribs")?sr(ir(or(r,b,x),x),x):"",(n||(n=i))&&/\S/.test(n))if(i)_("html")&&(g=ar(i,b,x));else{var y=function(e){if(/<[-\w]/.test(e))for(var t,r=e.lastIndexOf("<"),n=e.length;-1!==r;){if(t=e.slice(r,n).match(mr))return r+=t.index+t[0].length,"<-/>\n"===(t=e.slice(0,r)).slice(-5)&&(t=t.slice(0,-5)),[t,e.slice(r)];n=r,r=e.lastIndexOf("<",r-1)}return["",e]}((n=(n=(n=n.replace(RegExp("^"+t,"gm"),"")).replace(wr,function(e,t,r){if(_("js")){var n=(i=r,o=b,a=w,u=vr(s=t),l=xr(s,"src"),c=Ft({},o.parserOptions.js),!l&&cr(i,o,u,Ft(c,yr(s)),a));n&&(h+=(h?"\n":"")+n)}var i,o,s,a,u,l,c;return""})).replace(_r,function(e,t,r){var n,i,o,s,a,u,l;return _("css")&&(m+=(m?" ":"")+(n=r,o=t,s=w,a=c,u=Ft({},(i=b).parserOptions.style),l={parserOpts:Ft(u,yr(o)),url:s},fr(n,a,vr(o)||i.style,l))),""})).replace(Jt,""));_("html")&&(g=ar(y[0],b,x)),_("js")&&((n=cr(y[1],b,null,null,w))&&(h+=(h?"\n":"")+n),h=h.replace(Wt,function(e){return v+=e.trim()+"\n",""}))}return h=/\S/.test(h)?h.replace(/\n{3,}/g,"\n\n"):"",b.entities?(A.push({tagName:c,html:g,css:m,attribs:r,js:h,imports:v}),""):(o=c,s=g,a=m,u=r,l=h,p=v,f=b.debug?",\n ":", ",d="});",l&&"\n"!==l.slice(-1)&&(d="\n"+d),p+"riot.tag2('"+o+rr+f+gr(s,1)+f+gr(a)+f+gr(u)+", function(opts) {\n"+l+d)}),b.entities?A:t},compileHTML:function(e,t,r){return Array.isArray(t)?(r=t,t={}):(r||(r=[]),t||(t={})),r._bp=P.array(t.brackets),ar(nr(e),t,r)},compileCSS:function(e,t,r){return t&&"object"==typeof t?(r=t,t=""):r||(r={}),fr(e,r.tagName,t,r)},compileJS:function(e,t,r,n){return"string"==typeof t&&(n=r,r=t,t={}),r&&"object"==typeof r&&(n=r,r=""),n||(n={}),cr(e,t||{},r,n.parserOptions,n.url)},parsers:It,version:"v3.5.1"};function Er(e,t,r){var n=new XMLHttpRequest;n.onreadystatechange=function(){4===n.readyState&&(200===n.status||!n.status&&n.responseText.length?t(n.responseText,r,e):kr.error('"'+e+'" not found'))},n.onerror=function(e){return kr.error(e)},n.open("GET",e,!0),n.send("")}function Cr(e,t){if(typeof e===l){var r=k("script"),n=document.documentElement;t&&(e+="\n//# sourceURL="+t+".js"),r.text=e,n.appendChild(r),n.removeChild(r)}}var jr=Nr.parsers;function kr(e,i,t){if(typeof e===l){if(ue(i)&&(t=i,i=!1),/^\s*/])[^[/\\]*(?:(?:\\.|\[(?:\\.|[^\]\\]*)*\])[^[\\/]*)*?\/[gimuy]*/,i=/[$\w]/;function o(t,e){for(;--e>=0&&/\s/.test(t[e]););return e}return function(a,s){var u=/.*/g,l=u.lastIndex=s++,c=u.exec(a)[0].match(r);if(c){var p=l+c[0].length,f=a[l=o(a,l)];if(l<0||~t.indexOf(f))return p;if("."===f)"."===a[l-1]&&(s=p);else if("+"===f||"-"===f)(a[--l]!==f||(l=o(a,l))<0||!i.test(a[l]))&&(s=p);else if(~n.indexOf(f)){for(var d=l+1;--l>=0&&i.test(a[l]););~e.indexOf(a.slice(l+1,d))&&(s=p)}}return s}}(),U=function(t){var e,n,r="g",i=/"[^"\\]*(?:\\[\S\s][^"\\]*)*"|'[^'\\]*(?:\\[\S\s][^'\\]*)*'|`[^`\\]*(?:\\[\S\s][^`\\]*)*`/g,o=i.source+"|"+/(?:\breturn\s+|(?:[$\w\)\]]|\+\+|--)\s*(\/)(?![*\/]))/.source+"|"+/\/(?=[^*\/])[^[\/\\]*(?:(?:\[(?:\\.|[^\]\\]*)*\]|\\.)[^[\/\\]*)*?([^<]\/)[gim]*/.source,a=RegExp("[\\x00-\\x1F<>a-zA-Z0-9'\",;\\\\]"),s=/(?=[[\]()*+?.^$|])/g,u=i.source+"|"+/(\/)(?![*\/])/.source,l={"(":RegExp("([()])|"+u,r),"[":RegExp("([[\\]])|"+u,r),"{":RegExp("([{}])|"+u,r)},c="{ }",p=["{","}","{","}",/{[^}]*}/,/\\([{}])/g,/\\({)|{/g,RegExp("\\\\(})|([[({])|(})|"+u,r),c,/^\s*{\^?\s*([$\w]+)(?:\s*,\s*(\S+))?\s+in\s+(\S.*)\s*}/,/(^|[^\\]){=[\S\s]*?}/],f=void 0,d=[];function h(t){return t}function g(t,e){return e||(e=d),new RegExp(t.source.replace(/{/g,e[2]).replace(/}/g,e[3]),t.global?r:"")}function m(t){if(t===c)return p;var e=t.split(" ");if(2!==e.length||a.test(t))throw new Error('Unsupported brackets "'+t+'"');return(e=e.concat(t.replace(s,"\\").split(" ")))[4]=g(e[1].length>1?/{[\S\s]*?}/:p[4],e),e[5]=g(t.length>3?/\\({|})/g:p[5],e),e[6]=g(p[6],e),e[7]=RegExp("\\\\("+e[3]+")|([[({])|("+e[3]+")|"+u,r),e[8]=t,e}function v(t){return t instanceof RegExp?e(t):d[t]}function y(t){(t||(t=c))!==d[8]&&(d=m(t),e=t===c?h:g,d[9]=e(p[9])),f=t}return v.split=function(t,e,n){n||(n=d);var r,i,o,a,s,u,c=[],p=n[6],f=[],h="";for(i=o=p.lastIndex=0;r=p.exec(t);){if(u=p.lastIndex,a=r.index,i){if(r[2]){var g=r[2],m=l[g],v=1;for(m.lastIndex=u;r=m.exec(t);)if(r[1]){if(r[1]===g)++v;else if(!--v)break}else m.lastIndex=x(r.index,m.lastIndex,r[2]);p.lastIndex=v?t.length:m.lastIndex;continue}if(!r[3]){p.lastIndex=x(a,u,r[4]);continue}}r[1]||(y(t.slice(o,a)),o=p.lastIndex,(p=n[6+(i^=1)]).lastIndex=o)}return t&&on+2&&(s="⁗"+f.length+"~",f.push(t.slice(n,r)),h+=t.slice(o,n)+s,o=r),r}},v.hasExpr=function(t){return d[4].test(t)},v.loopKeys=function(t){var e=t.match(d[9]);return e?{key:e[1],pos:e[2],val:d[0]+e[3].trim()+d[1]}:{val:t.trim()}},v.array=function(t){return t?m(t):d},Object.defineProperty(v,"settings",{set:function(t){var e;e=(t=t||{}).brackets,Object.defineProperty(t,"brackets",{set:y,get:function(){return f},enumerable:!0}),n=t,y(e)},get:function(){return n}}),v.settings="undefined"!=typeof riot&&riot.settings||{},v.set=y,v.skipRegex=H,v.R_STRINGS=i,v.R_MLCOMMS=/\/\*[^*]*\*+(?:[^*\/][^*]*\*+)*\//g,v.S_QBLOCKS=o,v.S_QBLOCK2=u,v}(),B=function(){var t={};function e(i,o){return i?(t[i]||(t[i]=function(t){var e=function(t){var e,i=U.split(t.replace(n,'"'),1),o=i.qblocks;if(i.length>2||i[0]){var s,u,l=[];for(s=u=0;s %s",t.riotData.tagName||"Unknown tag",this.tmpl),console.log(this.data))}.bind({data:o,tmpl:i})):i}e.hasExpr=U.hasExpr,e.loopKeys=U.loopKeys,e.clearCache=function(){t={}},e.errorHandler=null;var n=/\u2057/g,r=/\u2057(\d+)~/g;var i=/^(?:(-?[_A-Za-z\xA0-\xFF][-\w\xA0-\xFF]*)|\u2057(\d+)~):/,o={"(":/[()]/g,"[":/[[\]]/g,"{":/[{}]/g};function a(t,e,n){if(t=t.replace(/\s+/g," ").trim().replace(/\ ?([[\({},?\.:])\ ?/g,"$1")){for(var r,a=[],s=0;t&&(r=t.match(i))&&!r.index;){var u,l,p=/,|([[{(])|$/g;for(t=RegExp.rightContext,u=r[2]?n[r[2]].slice(1,-1).trim().replace(/\s+/g," "):r[1];l=(r=p.exec(t))[1];)f(l,p);l=t.slice(0,r.index),t=RegExp.rightContext,a[s++]=c(l,1,u)}t=s?s>1?"["+a.join(",")+'].join(" ").trim()':a[0]:c(t,e)}return t;function f(e,n){var r,i=1,a=o[e];for(a.lastIndex=n.lastIndex;r=a.exec(t);)if(r[0]===e)++i;else if(!--i)break;n.lastIndex=i?t.length:a.lastIndex}}var s='"in this?this:'+("object"!=typeof window?"global":"window")+").",u=/[,{][\$\w]+(?=:)|(^ *|[^$\w\.{])(?!(?:typeof|true|false|null|undefined|in|instanceof|is(?:Finite|NaN)|void|NaN|new|Date|RegExp|Math)(?![$\w]))([$_A-Za-z][$\w]*)/g,l=/^(?=(\.[$\w]+))\1(?:[^.[(]|$)/;function c(t,e,n){var r;return t=t.replace(u,function(t,e,n,i,o){return n&&(i=r?0:i+t.length,"this"!==n&&"global"!==n&&"window"!==n?(t=e+'("'+n+s+n,i&&(r="."===(o=o[i])||"("===o||"["===o)):i&&(r=!l.test(o.slice(i)))),t}),r&&(t="try{return "+t+"}catch(e){E(e,this)}"),n?t=(r?"function(){"+t+"}.call(this)":"("+t+")")+'?"'+n+'":""':e&&(t="function(v){"+(r?t.replace("return ","v="):"v=("+t+")")+';return v||v===0?v:""}.call(this)'),t}return e.version=U.version="v3.0.8",e}(),z=function(t){t=t||{};var e={},n=Array.prototype.slice;return Object.defineProperties(t,{on:{value:function(n,r){return"function"==typeof r&&(e[n]=e[n]||[]).push(r),t},enumerable:!1,writable:!1,configurable:!1},off:{value:function(n,r){if("*"!=n||r)if(r)for(var i,o=e[n],a=0;i=o&&o[a];++a)i==r&&o.splice(a--,1);else delete e[n];else e={};return t},enumerable:!1,writable:!1,configurable:!1},one:{value:function(e,n){return t.on(e,function r(){t.off(e,r),n.apply(t,arguments)})},enumerable:!1,writable:!1,configurable:!1},trigger:{value:function(r){var i,o,a,s=arguments,u=arguments.length-1,l=new Array(u);for(a=0;a'+e+"","application/xml").documentElement,!0);t.appendChild(r)}else t.innerHTML=e}function et(t,e){if(t)for(var n;n=E.exec(t);)e(n[1].toLowerCase(),n[2]||n[3]||n[4])}function nt(){return document.createDocumentFragment()}function rt(t,e,n){t.insertBefore(e,n.parentNode&&n)}function it(t){return Object.keys(t).reduce(function(e,n){return e+" "+n+": "+t[n]+";"},"")}function ot(t,e,n){if(t){var r,i=e(t,n);if(!1===i)return;for(t=t.firstChild;t;)r=t.nextSibling,ot(t,e,i),t=r}}var at=Object.freeze({$$:G,$:e,createDOMPlaceholder:Q,mkEl:j,setAttr:M,toggleVisibility:J,getAttr:X,remAttr:Y,setInnerHTML:tt,walkAttrs:et,createFrag:nt,safeInsert:rt,styleObjectToString:it,walkNodes:ot});function st(t){return F(t)||null===t}function ut(t){return st(t)||""===t}function lt(t){return typeof t===b}function ct(t){return t&&typeof t===x}function pt(t){var e=t.ownerSVGElement;return!!e||null===e}function ft(t){return Array.isArray(t)||t instanceof Array}function dt(t){return L.test(t)}function ht(t){return typeof t===y}var gt=Object.freeze({isBlank:ut,isFunction:lt,isObject:ct,isSvg:pt,isWritable:K,isArray:ft,isBoolAttr:dt,isNil:st,isString:ht,isUndefined:F});function mt(t,e){return-1!==t.indexOf(e)}function vt(t,e){for(var n=t?t.length:0,r=0;r|>([\S\s]*?)<\/yield\s*>|>)/gi,jt=/]*)['"]\s*>([\S\s]*?)<\/yield\s*>/gi,Mt=/|>([\S\s]*?)<\/yield\s*>)/gi,St={tr:"tbody",th:"tr",td:"tr",col:"colgroup"},It=T&&T<10?/^(?:t(?:body|head|foot|[rhd])|caption|col(?:group)?|opt(?:ion|group))$/:/^(?:t(?:body|head|foot|[rhd])|caption|col(?:group)?)$/,Rt="div",Pt="svg";function Vt(t,n,r){var i=t&&t.match(/^\s*<([-\w]+)/),o=i&&i[1].toLowerCase(),a=j(r?Pt:Rt);return t=function(t,e){if(!Lt.test(t))return t;var n={};return e=e&&e.replace(jt,function(t,e,r){return n[e]=n[e]||r,""}).trim(),t.replace(Mt,function(t,e,r){return n[e]||r||""}).replace(Tt,function(t,n){return e||n||""})}(t,n),It.test(o)?a=function(t,n,r){var i="o"===r[0],o=i?"select>":"table>";if(t.innerHTML="<"+o+n.trim()+"=A.length,I=k&&T||!k&&!M;I?((M=ye(l,{parent:e,isLoop:!0,isAnonymous:w,tagName:u,root:t.cloneNode(w),item:O,index:h},b)).mount(),S?function(t,e){e?zt.call(this,t):t.appendChild(this.root)}.apply(M,[c||f,N]):function(t,e,n){n?zt.apply(this,[t,e]):rt(t,this.root,e.root)}.apply(M,[f,_[h],N]),S||A.splice(h,0,O),_.splice(h,0,M),g&&Ct(e.tags,u,M,!0)):j!==h&&k&&((a||mt(o,A[j]))&&(function(t,e,n){n?ae.apply(this,[t,e]):rt(t,this.root,e.root)}.apply(M,[f,_[h],N]),_.splice(h,0,_.splice(j,1)[0]),A.splice(h,0,A.splice(j,1)[0])),n.pos&&(M[n.pos]=h),!g&&M.tags&&function(t){var e=this;vt(Object.keys(this.tags),function(n){oe.apply(e.tags[n],[n,t])})}.call(M,h)),q(M.__,{item:O,index:h,parent:e}),d[h]=E,I||M.update(O)}),function(t,e){for(var n=e.length,r=t.length;n>r;)n--,ue.apply(e[n],[e,n])}(o,_),A=d.slice(),f.insertBefore(c,h))},n.unmount=function(){vt(_,function(t){t.unmount()})},n}var ce={init:function(t,e,n,r){return this.dom=t,this.attr=n,this.rawValue=r,this.parent=e,this.hasExp=B.hasExpr(r),this},update:function(){var t=this.value,e=this.parent&&$t(this.parent),n=this.dom.__ref||this.tag||this.dom;this.value=this.hasExp?B(this.rawValue,this.parent):this.rawValue,!ut(t)&&e&&Bt(e.refs,t,n),!ut(this.value)&&ht(this.value)?(e&&Ct(e.refs,this.value,n,null,this.parent.__.index),this.value!==t&&M(this.dom,this.attr,this.value)):Y(this.dom,this.attr),this.dom.__ref||(this.dom.__ref=n)},unmount:function(){var t=this.tag||this.dom,e=this.parent&&$t(this.parent);!ut(this.value)&&e&&Bt(e.refs,this.value,t)}};function pe(t,e,n,r){return W(ce).init(t,e,n,r)}function fe(t){vt(t,function(t){t.unmount?t.unmount(!0):t.tagName?t.tag.unmount(!0):t.unmount&&t.unmount()})}var de={init:function(t,e,n){Y(t,p),q(this,{tag:e,expr:n,stub:Q(),pristine:t});var r=t.parentNode;return r.insertBefore(this.stub,t),r.removeChild(t),this},update:function(){this.value=B(this.expr,this.tag),this.value&&!this.current?(this.current=this.pristine.cloneNode(!0),this.stub.parentNode.insertBefore(this.current,this.stub),this.expressions=ge.apply(this.tag,[this.current,!0])):!this.value&&this.current&&(fe(this.expressions),this.current._tag?this.current._tag.unmount():this.current.parentNode&&this.current.parentNode.removeChild(this.current),this.current=null,this.expressions=[]),this.value&&Kt.call(this.tag,this.expressions)},unmount:function(){fe(this.expressions||[])}};function he(t,e,n){return W(de).init(t,e,n)}function ge(t,e){var n=this,r=[];return ot(t,function(i){var o,a,s=i.nodeType;if((e||i!==t)&&(3===s&&"STYLE"!==i.parentNode.tagName&&B.hasExpr(i.nodeValue)&&r.push({dom:i,expr:i.nodeValue}),1===s)){var u="VIRTUAL"===i.tagName;if(o=X(i,f))return u&&M(i,"loopVirtual",!0),r.push(le(i,n,o)),!1;if(o=X(i,p))return r.push(he(i,n,o)),!1;if((o=X(i,c))&&B.hasExpr(o))return r.push({isRtag:!0,expr:o,dom:i,attrs:[].slice.call(i.attributes)}),!1;if(a=Ot(i),u&&(X(i,"virtualized")&&i.parentElement.removeChild(i),a||X(i,"virtualized")||X(i,"loopVirtual")||(a={tmpl:i.outerHTML})),a&&(i!==t||e)){if(!u)return r.push(Ut(a,{root:i,parent:n},i.innerHTML,n)),!1;X(i,c)&&Nt("Virtual tags shouldn't be used together with the \""+c+'" attribute - https://github.com/riot/riot/issues/2511'),M(i,"virtualized",!0);var l=ye({tmpl:i.outerHTML},{root:i,parent:n},i.innerHTML);r.push(l)}me.apply(n,[i,i.attributes,function(t,e){e&&r.push(e)}])}}),r}function me(t,e,n){var r=this;vt(e,function(e){if(!e)return!1;var i,o=e.name,s=dt(o);mt(l,o)&&t.tagName.toLowerCase()!==a?i=pe(t,r,o,e.value):B.hasExpr(e.value)&&(i={dom:t,expr:e.value,attr:o,bool:s}),n(e,i)})}function ve(t){var e=this.__.isAnonymous;bt(this,"isMounted",t),e||(t?this.trigger("mount"):(this.trigger("unmount"),this.off("*"),this.__.wasCreated=!1))}function ye(t,e,n){void 0===t&&(t={}),void 0===e&&(e={});var r,o=e.context||{},a=q({},e.opts),l=e.parent,c=e.isLoop,p=!!e.isAnonymous,f=Z.skipAnonymousTags&&p,d=e.item,h=e.index,g=[],m=e.root,y=e.tagName||Et(m),x="virtual"===y,_=!x&&!t.tmpl;return f||z(o),t.name&&m._tag&&m._tag.unmount(!0),bt(o,"isMounted",!1),bt(o,"__",{impl:t,root:m,skipAnonymous:f,implAttrs:[],isAnonymous:p,instAttrs:[],innerHTML:n,tagName:y,index:h,isLoop:c,isInline:_,item:d,parent:l,listeners:[],virts:[],wasCreated:!1,tail:null,head:null}),bt(o,"_riot_id",_t()),bt(o,"root",m),q(o,{opts:a},d),bt(o,"parent",l||null),bt(o,"tags",{}),bt(o,"refs",{}),_||c&&p?r=m:(x||(m.innerHTML=""),r=Vt(t.tmpl,n,pt(m))),bt(o,"update",function(t){return n=t,r=g,i=(e=o).__,a={},s=e.isMounted&&!i.skipAnonymous,i.isAnonymous&&i.parent&&q(e,i.parent),q(e,n),qt.apply(e,[i.isLoop,i.parent,i.isAnonymous,a,i.instAttrs]),s&&e.isMounted&<(e.shouldUpdate)&&!e.shouldUpdate(n,a)?e:(q(e.opts,a),s&&e.trigger("update",n),Kt.call(e,r),s&&e.trigger("updated"),e);var e,n,r,i,a,s}),bt(o,"mixin",function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return vt(e,function(e){var n,r,i=[],o=["init","__proto__"];e=ht(e)?ee(e):e,n=lt(e)?new e:e;for(var a=Object.getPrototypeOf(n);i=i.concat(Object.getOwnPropertyNames(r||n)),r=Object.getPrototypeOf(r||n););vt(i,function(e){if(!mt(o,e)){var r=D(n,e)||D(a,e),i=r&&(r.get||r.set);!t.hasOwnProperty(e)&&i?Object.defineProperty(t,e,r):t[e]=lt(n[e])?n[e].bind(t):n[e]}}),n.init&&n.init.bind(t)(t.opts)}),t}.apply(void 0,[o].concat(t))}),bt(o,"mount",function(){return function(t,e,n,r){var i=t.__,o=i.root;o._tag=t,me.apply(i.parent,[o,o.attributes,function(e,n){!i.isAnonymous&&ce.isPrototypeOf(n)&&(n.tag=t),e.expr=n,i.instAttrs.push(e)}]),et(i.impl.attrs,function(t,e){i.implAttrs.push({name:t,value:e})}),me.apply(t,[o,i.implAttrs,function(t,e){e?n.push(e):M(o,t.name,t.value)}]),qt.apply(t,[i.isLoop,i.parent,i.isAnonymous,r,i.instAttrs]);var a=ee(s);if(a&&!i.skipAnonymous)for(var u in a)a.hasOwnProperty(u)&&t.mixin(a[u]);if(i.impl.fn&&i.impl.fn.call(t,r),i.skipAnonymous||t.trigger("before-mount"),vt(ge.apply(t,[e,i.isAnonymous]),function(t){return n.push(t)}),t.update(i.item),!i.isAnonymous&&!i.isInline)for(;e.firstChild;)o.appendChild(e.firstChild);if(bt(t,"root",o),!i.skipAnonymous&&t.parent){var l=$t(t.parent);l.one(l.isMounted?"updated":"mount",function(){ve.call(t,!0)})}else ve.call(t,!0);return t.__.wasCreated=!0,t}(o,r,g,a)}),bt(o,"unmount",function(t){return function(t,e,n){var r=t.__,o=r.root,a=i.indexOf(t),s=o.parentNode;if(r.skipAnonymous||t.trigger("before-unmount"),et(r.impl.attrs,function(t){yt(t,u)&&(t=t.slice(u.length)),Y(o,t)}),t.__.listeners.forEach(function(t){Object.keys(t[v]).forEach(function(e){t.removeEventListener(e,t[v][e])})}),-1!==a&&i.splice(a,1),r.parent&&!r.isAnonymous){var l=$t(r.parent);r.isVirtual?Object.keys(t.tags).forEach(function(e){return Bt(l.tags,e,t.tags[e])}):Bt(l.tags,r.tagName,t)}return t.__.virts&&vt(t.__.virts,function(t){t.parentNode&&t.parentNode.removeChild(t)}),fe(n),vt(r.instAttrs,function(t){return t.expr&&t.expr.unmount&&t.expr.unmount()}),e?tt(o,""):s&&s.removeChild(o),r.onUnmount&&r.onUnmount(),t.isMounted||ve.call(t,!0),ve.call(t,!1),delete o._tag,t}(o,t,g)}),o}function xe(t,e,n,r){var a,s=o[e],u=o[e].class,l=r||(u?W(u.prototype):{}),c=t._innerHTML=t._innerHTML||t.innerHTML,p=q({root:t,opts:n,context:l},{parent:n?n.parent:null});return s&&t&&(a=ye(s,p,c)),a&&a.mount&&(a.mount(!0),mt(i,a)||i.push(a)),a}var _e=Object.freeze({arrayishAdd:Ct,getTagName:Et,inheritParentProps:kt,mountTo:xe,selectTags:Wt,arrayishRemove:Bt,getTag:Ot,initChildTag:Ut,moveChildTag:oe,makeReplaceVirtual:Dt,getImmediateCustomParentTag:$t,makeVirtual:zt,moveVirtual:ae,unmountAll:fe,createIfDirective:he,createRefDirective:pe}),be=Z,we={tmpl:B,brackets:U,styleManager:$,vdom:i,styleNode:$.styleNode,dom:at,check:gt,misc:At,tags:_e},Ne=Zt,Ae=Gt,Ce=Qt,Oe=Jt,Ee=ee,ke=ne,Le=re,Te=z,je=q({},ie,{observable:z,settings:be,util:we});t.settings=be,t.util=we,t.Tag=Ne,t.tag=Ae,t.tag2=Ce,t.mount=Oe,t.mixin=Ee,t.update=ke,t.unregister=Le,t.version="v3.9.0",t.observable=Te,t.default=je,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.riot={}); +/* Riot v3.13.1, @license MIT */ +var e,t;e=this,t=function(e){"use strict";function a(e,t){return(t||document).querySelector(e)}var t,n,y=[],$={},s="yield",_="__global_mixin",N="riot-",u=["ref","data-ref"],p="data-is",f="if",d="each",r="no-reorder",C="show",O="hide",i="key",x="__riot-events__",o="string",H="object",l="undefined",c="function",h="http://www.w3.org/1999/xlink",m="http://www.w3.org/2000/svg",g=/^xlink:(\w+)/,v=typeof window===l?void 0:window,b=/^on/,w=/([-\w]+) ?= ?(?:"([^"]*)|'([^']*)|({[^}]*}))/g,k={viewbox:"viewBox",preserveaspectratio:"preserveAspectRatio"},A=/^(?:disabled|checked|readonly|required|allowfullscreen|auto(?:focus|play)|compact|controls|default|formnovalidate|hidden|ismap|itemscope|loop|multiple|muted|no(?:resize|shade|validate|wrap)?|open|reversed|seamless|selected|sortable|truespeed|typemustmatch)$/,E=0|(v&&v.document||{}).documentMode;function L(e){return"svg"===e?document.createElementNS(m,e):document.createElement(e)}function T(e,t,n){var r=g.exec(t);r&&r[1]?e.setAttributeNS(h,r[1],n):e.setAttribute(t,n)}var j,M,S={},I=!1;v&&(j=L("style"),M=a("style[type=riot]"),T(j,"type","text/css"),M?(M.id&&(j.id=M.id),M.parentNode.replaceChild(j,M)):document.head.appendChild(j),n=(t=j).styleSheet);var R={styleNode:t,add:function(e,t){S[t]=e,I=!0},inject:function(){if(v&&I){I=!1;var e=Object.keys(S).map(function(e){return S[e]}).join("\n");n?n.cssText=e:t.innerHTML=e}},remove:function(e){delete S[e],I=!0}},P=function(){var u=["case","default","do","else","in","instanceof","prefix","return","typeof","void","yield"],l=u.reduce(function(e,t){return e+t.slice(-1)},""),c=/^\/(?=[^*>/])[^[/\\]*(?:(?:\\.|\[(?:\\.|[^\]\\]*)*\])[^[\\/]*)*?\/[gimuy]*/,p=/[$\w]/;function f(e,t){for(;0<=--t&&/\s/.test(e[t]););return t}return function(e,t){var n=/.*/g,r=n.lastIndex=t++,i=n.exec(e)[0].match(c);if(i){var o=r+i[0].length,a=e[r=f(e,r)];if(r<0||~"[{(,;:?=|&!^~>%*/".indexOf(a))return o;if("."===a)"."===e[r-1]&&(t=o);else if("+"===a||"-"===a)(e[--r]!==a||(r=f(e,r))<0||!p.test(e[r]))&&(t=o);else if(~l.indexOf(a)){for(var s=r+1;0<=--r&&p.test(e[r]););~u.indexOf(e.slice(r+1,s))&&(t=o)}}return t}}(),V=function(e){var t,n,r="g",i=/"[^"\\]*(?:\\[\S\s][^"\\]*)*"|'[^'\\]*(?:\\[\S\s][^'\\]*)*'|`[^`\\]*(?:\\[\S\s][^`\\]*)*`/g,o=i.source+"|"+/(?:\breturn\s+|(?:[$\w\)\]]|\+\+|--)\s*(\/)(?![*\/]))/.source+"|"+/\/(?=[^*\/])[^[\/\\]*(?:(?:\[(?:\\.|[^\]\\]*)*\]|\\.)[^[\/\\]*)*?([^<]\/)[gim]*/.source,a=RegExp("[\\x00-\\x1F<>a-zA-Z0-9'\",;\\\\]"),s=/(?=[[\]()*+?.^$|])/g,u=i.source+"|"+/(\/)(?![*\/])/.source,y={"(":RegExp("([()])|"+u,r),"[":RegExp("([[\\]])|"+u,r),"{":RegExp("([{}])|"+u,r)},l="{ }",c=["{","}","{","}",/{[^}]*}/,/\\([{}])/g,/\\({)|{/g,RegExp("\\\\(})|([[({])|(})|"+u,r),l,/^\s*{\^?\s*([$\w]+)(?:\s*,\s*(\S+))?\s+in\s+(\S.*)\s*}/,/(^|[^\\]){=[\S\s]*?}/],p=void 0,_=[];function f(e){return e}function d(e,t){return t||(t=_),new RegExp(e.source.replace(/{/g,t[2]).replace(/}/g,t[3]),e.global?r:"")}function h(e){if(e===l)return c;var t=e.split(" ");if(2!==t.length||a.test(e))throw new Error('Unsupported brackets "'+e+'"');return(t=t.concat(e.replace(s,"\\").split(" ")))[4]=d(1 %s",e.riotData.tagName||"Unknown tag",this.tmpl),console.log(this.data))}.bind({data:t,tmpl:e})):e}r.hasExpr=V.hasExpr,r.loopKeys=V.loopKeys,r.clearCache=function(){n={}},r.errorHandler=null;var s=/\u2057/g,u=/\u2057(\d+)~/g;var c=/^(?:(-?[_A-Za-z\xA0-\xFF][-\w\xA0-\xFF]*)|\u2057(\d+)~):/,p={"(":/[()]/g,"[":/[[\]]/g,"{":/[{}]/g};function l(o,e,t){if(o=o.replace(/\s+/g," ").trim().replace(/\ ?([[\({},?\.:])\ ?/g,"$1")){for(var n,r=[],i=0;o&&(n=o.match(c))&&!n.index;){var a,s,u=/,|([[{(])|$/g;for(o=RegExp.rightContext,a=n[2]?t[n[2]].slice(1,-1).trim().replace(/\s+/g," "):n[1];s=(n=u.exec(o))[1];)l(s,u);s=o.slice(0,n.index),o=RegExp.rightContext,r[i++]=d(s,1,a)}o=i?1'+t+"","application/xml").documentElement,!0);e.appendChild(r)}else e.innerHTML=t}function ee(e,t){if(e)for(var n;n=w.exec(e);)t(n[1].toLowerCase(),n[2]||n[3]||n[4])}function te(){return document.createDocumentFragment()}function ne(e,t,n){e.insertBefore(t,n.parentNode&&n)}function re(n){return Object.keys(n).reduce(function(e,t){return e+" "+t+": "+n[t]+";"},"")}function ie(e,t,n){if(e){var r,i=t(e,n);if(!1===i)return;for(e=e.firstChild;e;)r=e.nextSibling,ie(e,t,i),e=r}}var oe=Object.freeze({$$:Z,$:a,createDOMPlaceholder:G,mkEl:L,setAttr:T,toggleVisibility:Q,getAttr:J,remAttr:X,setInnerHTML:Y,walkAttrs:ee,createFrag:te,safeInsert:ne,styleObjectToString:re,walkNodes:ie});function ae(e){return D(e)||null===e}function se(e){return ae(e)||""===e}function ue(e){return typeof e===c}function le(e){return e&&typeof e===H}function ce(e){var t=e.ownerSVGElement;return!!t||null===t}function pe(e){return Array.isArray(e)||e instanceof Array}function fe(e){return A.test(e)}function de(e){return typeof e===o}var he=Object.freeze({isBlank:se,isFunction:ue,isObject:le,isSvg:ce,isWritable:F,isArray:pe,isBoolAttr:fe,isNil:ae,isString:de,isUndefined:D});function me(e,t){return-1!==e.indexOf(t)}function ge(e,t){for(var n=e?e.length:0,r=0;r|>([\S\s]*?)<\/yield\s*>|>)/gi,Te=/]*)['"]\s*>([\S\s]*?)<\/yield\s*>/gi,je=/|>([\S\s]*?)<\/yield\s*>)/gi,Me={tr:"tbody",th:"tr",td:"tr",col:"colgroup"},Se=E&&E<10?/^(?:t(?:body|head|foot|[rhd])|caption|col(?:group)?|opt(?:ion|group))$/:/^(?:t(?:body|head|foot|[rhd])|caption|col(?:group)?)$/,Ie="div",Re="svg";function Pe(e,t,n){var r=e&&e.match(/^\s*<([-\w]+)/),i=r&&r[1].toLowerCase(),o=L(n?Re:Ie);return e=function(e,n){if(!Ee.test(e))return e;var r={};return n=n&&n.replace(Te,function(e,t,n){return r[t]=r[t]||n,""}).trim(),e.replace(je,function(e,t,n){return r[t]||n||""}).replace(Le,function(e,t){return n||t||""})}(e,t),Se.test(i)?o=function(e,t,n){var r="o"===n[0],i=r?"select>":"table>";if(e.innerHTML="<"+i+t.trim()+"=V.length,m=l&&p||!l&&!d||!S[n];m?((d=yt(T,{parent:N,isLoop:!0,isAnonymous:R,tagName:L,root:A.cloneNode(R),item:r,index:n},I)).mount(),h?function(e,t){t?ze.call(this,e):e.appendChild(this.root)}.apply(d,[v||_,P]):function(e,t,n){n?ze.apply(this,[e,t]):ne(e,this.root,t.root)}.apply(d,[_,S[n],P]),h||V.splice(n,0,r),S.splice(n,0,d),j&&Ne(N.tags,L,d,!0)):f!==n&&l&&((k||me(g,V[f]))&&(function(e,t,n){n?at.apply(this,[e,t]):ne(e,this.root,t.root)}.apply(d,[_,S[n],P]),S.splice(n,0,S.splice(f,1)[0]),V.splice(n,0,V.splice(f,1)[0])),C.pos&&(d[C.pos]=n),!j&&d.tags&&function(t){var n=this;ge(Object.keys(this.tags),function(e){ot.apply(n.tags[e],[e,t])})}.call(d,n)),K(d.__,{item:r,index:n,parent:N}),x[n]=u,m||d.update(r)}else w++}),function(e,t,n){for(var r=t.length,i=e.length-n;i