/* Riot WIP, @license MIT */vare,t=newMap,r=Symbol("riot-component"),a=newSet,n="is",o="mount",i="update",s="unmount",l="shouldUpdate",u="onBeforeMount",p="onMounted",c="onBeforeUpdate",d="onUpdated",m="onBeforeUnmount",h="onUnmounted",g="props",v="state",f="slots",y="root",x=Symbol("pure"),b=Symbol("is_updating"),T=Symbol("parent"),E=Symbol("attributes"),A=Symbol("template"),w=0,C=2,k=3,I={ATTRIBUTE:w,EVENT:1,TEXT:C,VALUE:k};
/* Riot WIP, @license MIT */functionR(e){returne.replace(/-(\w)/g,(function(e,t){returnt.toUpperCase()}))}functionN(e,t){thrownewError(e,{cause:t})}functionU(e){vart=this,r=newMap,a=function(a){return(r.has(a)||r.set(a,e.call(t,a)))&&r.get(a)};returna.cache=r,a}functionB(e){returne.reduce((function(e,t){varr=t.value,a=t.type;switch(!0){case!t.name&&a===w:returnObject.assign({},e,r);casea===k:e.value=t.value;break;default:e[R(t.name)]=t.value}returne}),{})}functionO(e,t){varr=Object.keys(e);if(Object.getOwnPropertySymbols){vara=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}returnr}functionS(e){for(vart=1;t<arguments.length;t++){varr=null!=arguments[t]?arguments[t]:{};t%2?O(Object(r),!0).forEach((function(t){V(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}returne}functionD(){D=function(){returne};vare={},t=Object.prototype,r=t.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},n="function"==typeofSymbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",s=n.toStringTag||"@@toStringTag";functionl(e,t,r){returnObject.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){returne[t]=r}}functionu(e,t,r,n){varo=t&&t.prototypeinstanceofd?t:d,i=Object.create(o.prototype),s=newC(n||[]);returna(i,"_invoke",{value:T(e,r,s)}),i}functionp(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;varc={};functiond(){}functionm(){}functionh(){}varg={};l(g,o,(function(){returnthis}));varv=Object.getPrototypeOf,f=v&&v(v(k([])));f&&f!==t&&r.call(f,o)&&(g=f);vary=h.prototype=d.prototype=Object.create(g);functionx(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){returnthis._invoke(t,e)}))}))}functionb(e,t){functionn(a,o,i,s){varl=p(e[a],e,o);if("throw"!==l.type){varu=l.arg,c=u.value;returnc&&"object"==typeofc&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(c).then((function(e){u.value=e,i(u)}),(function(e){returnn("throw",e,i,s)}))}s(l.arg)}varo;a(this,"_invoke",{value:function(e,r){functiona(){returnnewt((function(t,a){n(e,r,t,a)}))}returno=o?o.then(a,a):a()}})}functionT(e,t,r){vara="suspendedStart";returnfunction(n,o){if("executing"===a)thrownewError("Generator is already running");if("completed"===a){if("throw"===n)throwo;returnI()}for(r.method=n,r.arg=o;;){vari=r.delegate;if(i){vars=E(i,r);if(s){if(s===c)continue;returns}}if("next"===r.method)r.sent=r._sent=r.arg;elseif("throw"===r.method){if("suspendedStart"===a)throwa="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a="executing";varl=p(e,t,r);if("normal"===l.type){if(a=r.done?"completed":"suspendedYield",l.arg===c)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(a="completed",r.method="throw",r.arg=l.arg)}}}functionE(e,t){varr=t.method,a=e.iterator[r];if(void0===a)returnt.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void0,E(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=newTypeError("The iterator does not provide a '"+r+"' method")),c;varn=p(a,e.iterator,t.arg);if("throw"===n.type)returnt.method="throw",t.arg=n.arg,t.delegate=null,c;varo=n.arg;returno?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void0),t.delegate=null,c):o:(t.method="throw",t.arg=newTypeError("iterator result is not an object"),t.delegate=null,c)}functionA(e){vart={tryLoc:e[0]};1ine&&(t.catchLoc=e[1]),2ine&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}functionw(e){vart=e.completion||{};t.type="normal",deletet.arg,e.completion=t}functionC(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(
/* Riot WIP, @license MIT */functionre(e,t){returnL(e)===t}functionae(e){vart=e.ownerSVGElement;return!!t||null===t}functionne(e){return"template"===e.tagName.toLowerCase()}functionoe(e){returnre(e,"function")}functionie(e){return!se(e)&&e.constructor===Object}functionse(e){returnnull==e}functionle(){returnthis}functionue(e){returnoe(e)?e.prototype&&e.prototype.constructor?newe:e():e}varpe=Object.freeze((V(e={},o,le),V(e,i,le),V(e,s,le),e)),ce=Object.assign({},pe,{clone:le,createDOM:le});functionde(e){for(;e.firstChild;)e.removeChild(e.firstChild)}varme,he,ge=function(e){returne.remove()},ve=function(e,t){returnt&&t.parentNode&&t.parentNode.insertBefore(e,t)},fe=2,ye={EACH:0,IF:1,SIMPLE:fe,TAG:3,SLOT:4};
functionmt(e,t){(function(e){returnst(e,n)||e.tagName.toLowerCase()})(e)!==t&&it(e,n,t)}functionht(e,t){returnObject.assign({},e,ue(t))}functiongt(e,t){returnvoid0===t&&(t={}),Object.assign({},function(e){returnArray.from(e.attributes).reduce((function(e,t){returne[R(t.name)]=t.value,e}),{})}(e),ue(t))}functionvt(e,t){varr,n=t.slots,o=t.attributes,i=t.props;returnr=function(e){returnK(a).reduce((function(e,t){returnt(e)||e}),e)}(be(ie(e)?Object.create(e):e,{mount:function(t,r,a){returnvoid0===r&&(r={}),xe(t,x,!1),this[T]=a,this[E]=function(e,t){void0===t&&(t=[]);varr=t.map((function(t){returnGe(e,t)})),a={};returnObject.assign(a,Object.assign({expressions:r},Ze((function(e){returnfunction(t){returnr.forEach((function(r){returnr[e](t)})),a}}))))}(t,o).mount(a),xe(this,g,Object.freeze(Object.assign({},gt(t,i),B(this[E].expressions)))),this[v]=ht(this[v],r),this[A]=this.template.createDOM(t).clone(),Je(t,this),e.name&&mt(t,e.name),xe(this,y,t),xe(this,f,n),this[u](this[g],this[v]),this[A].mount(t,this,a),this[p](this[g],this[v]),this},update:function(e,t){void0===e&&(e={}),t&&(this[T]=t,this[E].update(t));varr=B(this[E].expressions);if(!1!==this[l](r,this[g]))returnxe(this,g,Object.freeze(Object.assign({},this[g],r))),this[v]=ht(this[v],e),this[c](this[g],this[v]),this[b]||(this[b]=!0,this[A].update(this,this[T])),this[d](this[g],this[v]),this[b]=!1,this},unmount:function(e){returnthis[m](this[g],this[v]),this[E].unmount(),this[A].unmount(this,this[T],null===e?null:!e),this[h](this[g],this[v]),this}})),Object.keys(e).filter((function(t){returnoe(e[t])})).forEach((function(e){r[e]=r[e].bind(r)})),r}functionft(e){vart,r,a=e.css,n=e.template,o=e.componentAPI,i=e.name;returna&&i&&ct.add(i,a),dt(vt)(be(Te(o,Object.assign({},nt,(V(t={},g,{}),V(t,v,{}),t))),Object.assign((V(r={},f,null),V(r,y,null),r),at,{name:i,css:a,template:n})))}varyt=function(e){varr,a=(void0===(r=e.exports?e.exports.components:{})&&(r={}),Object.entries(ue(r)).reduce((function(e,t){varr,a=q(t,2),n=a[0],o=a[1];returne[(r=n,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())]=bt(o),e}),{}));returnfunction(r){returnr===e.name?xt(e):a[r]||t.get(r)}},xt=U(bt);functionbt(e){vart=e.css,r=e.template,a=e.exports,n=e.name,i=r?function(e,t,r){returne(Qe,I,ye,r)}(r,0,yt(e)):ce;returnfunction(e){vars=e.slots,l=e.attributes,u=e.props;if(a&&a[x])returnfunction(e,t){varr=t.slots,a=t.attributes,n=t.props,i=t.css;t.template&&N("Pure components can not have html"),i&&N("Pure components do not have css");vars=Te(e({slots:r,attributes:a,props:n}),pe);returnZe((function(e){returnfunction(){for(vart=arguments.length,r=newArray(t),a=0;a<t;a++)r[a]=arguments[a];if(e===o){varn=r[0];xe(n,x,!0),Je(n,s)}returns[e].apply(s,r),s}}))}(a,{slots:s,attributes:l,props:u,css:t,template:r});varp=ue(a)||{},c=ft({css:t,template:i,componentAPI:p,name:n})({slots:s,attributes:l,props:u});return{mount:function(e,t,r){returnc.mount(e,r,t)},update:function(e,t){returnc.update(t,e)},unmount:function(e){returnc.unmount(e)}}}}
/* Riot v7.1.0, @license MIT */functionTt(e,r){vara=r.css,n=r.template,o=r.exports;returnt.has(e)&&N('The component "'.concat(e,'" was already registered')),t.set(e,bt({name:e,css:a,template:n,exports:o})),t}
varEt={cssManager:ct,DOMBindings:{template:Qe,createBinding:We,createExpression:Ge,bindingTypes:ye,expressionTypes:I},globals:{DOM_COMPONENT_INSTANCE_PROPERTY:r,PARENT_KEY_SYMBOL:T}},At=function(e){G(n,e);vart,r,a=(t=n,r=H(),function(){vare,a=$(t);if(r){varn=$(this).constructor;e=Reflect.construct(a,arguments,n)}elsee=a.apply(this,arguments);returnX(this,e)});functionn(e,t,r){varo;returnM(this,n),o=a.call(this),e||console.error("You should set container to the wave!"),o.container=e,o.maxOpacity=t.opacity||.6,o.duration=t.duration||750,o.color=t.color||"#fff",o.center=t.center||!1,o.event=r,o.containerBound=o.receiveBound(),o.maxScale=o.containerBound.size/100*10,o.created=Date.now(),o.start={},o.createNode(),o.waveIn(),o}returnP(n,[{key:"createNode",value:function(){this.wave=document.createElement("div"),this.wave.classList.add("wave"),this.container.appendChild(this.wave)}},{key:"waveIn",value:function(){vare=this;this.center&&!this.event&&console.error("Setup at least mouse event... Or just set center attribute"),this.start.x=this.center?this.containerBound.height/2:this.event.pageY-this.containerBound.offsetTop,this.start.y=this.center?this.containerBound.width/2:this.event.pageX-this.containerBound.offsetLeft;vart=-1!==window.navigator.userAgent.indexOf("Trident");setTimeout((function(){returne.setStyles(e.maxOpacity)}),t?50:0)}},{key:"waveOut",value:function(e){vart=this,r=Date.now()-this.created,a=Math.round(this.duration/2)-r;setTimeout((function(){t.setStyles(0),setTimeout((function(){t.wave.parentNode===t.container&&(t.container.removeChild(t.wave),e())}),t.duration)}),a>0?a:0)}},{key:"setStyles",value:function(e){this.wave.setAttribute("style",this.convertStyle({top:"".concat(this.start.x,"px"),left:"".concat(this.start.y,"px"),transform:"scale(".concat(this.maxScale,")"),"transition-duration":"".concat(this.duration,"ms"),"transition-timing-function":"cubic-bezier(0.250, 0.460, 0.450, 0.940)",background:this.color,opacity:e}))}},{key:"convertStyle",value:function(e){vart="";returnObject.keys(e).forEach((function(r){e.hasOwnProperty(r)&&(t+=r+":"+e[r]+";")})),t}}]),n}(function(){functione(){M(this,e)}returnP(e,[{key:"receiveBound",value:function(){vare;this.container||console.error("Yor class must contain a container. It is DOM Element. Define please this.container property.");vart=this.container&&this.container.ownerDocument,r=t.documentElement;"undefined"!==L(this.container.getBoundingClientRect)&&(e=this.container.getBoundingClientRect());vara=this.getWindow(t);returnthis.mix(e,{size:Math.max(e.width,e.height),offsetTop:e.top+a.pageYOffset-r.clientTop,offsetLeft:e.left+a.pageXOffset-r.clientLeft})}},{key:"isWindow",value:function(e){returnnull!==e&&e===e.window}},{key:"getWindow",value:function(e){returnthis.isWindow(e)?e:9===e.nodeType&&e.defaultView}},{key:"mix",value:function(e,t){for(varrine)rint||(t[r]=e[r]);returnt}}]),e}()),wt={css:null,exports:{onMounted(){this._waves=[],this._events=[]},launch(e){vart=newAt(this.$("#waves"),this.props,e);this._waves.push(t),this.props.onWaveStart&&this.props.onWaveStart(t),this._events.length||(this._events.push(e.target.addEventListener("mouseup",(()=>this.hold()))),this._events.push(e.target.addEventListener("mouseleave",(()=>this.hold()))))},hold(){this._waves[this._waves.length-1]&&this._waves[this._waves.length-1].waveOut(this.waveOut),this._waves[this._waves.length-1]&&this._waves.slice(this._waves.length-1,1)},waveOut(){this.props.onWaveEnd&&this.props.onWaveEnd()}},template:(e,t,r,a)=>e('<div expr156="expr156" id="waves"></div>',[{redundantAttribute:"expr156",selector:"[expr156]",expressions:[{type:t.EVENT,name:"onmousedown",evaluate:e=>e.launch}]}]),name:"material-waves"},Ct=function(e){return""===e||"true"===e},kt=function(e){if("function"==typeofe){vart=z(Array,Array.prototype.slice.call(arguments)).slice(1);e.apply(void0,K(t))}},It={array:function(e){if(!e)return[];for(vart=[],r=0;r<e.length;r++)t.push(e.item(r));returnt},children:function(e){returnIt.array(e&&e.children)}};constRt=["disabled","rounded","icon","sh