docker-registry-ui/dist/scripts/vendor.js
Joxit 6221958c78 Upgrade to v0.4.0
Merge tags and scripts; now it will be `docker-registry-ui.js` and `docker-registry-ui-static.js`
New sort for tags; will use numerical sort when it is possible
2018-07-24 00:05:45 +02:00

5 lines
No EOL
52 KiB
JavaScript

/* Riot v3.11.1, @license MIT */
var t,e;t=this,e=function(t){"use strict";function a(t,e){return(e||document).querySelector(t)}var e,n,y=[],w={},s="yield",_="__global_mixin",N="riot-",u=["ref","data-ref"],f="data-is",p="if",d="each",r="no-reorder",A="show",C="hide",i="key",x="__riot-events__",o="string",$="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/,O=/([-\w]+) ?= ?(?:"([^"]*)|'([^']*)|({[^}]*}))/g,k={viewbox:"viewBox",preserveaspectratio:"preserveAspectRatio"},E=/^(?: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)$/,L=0|(v&&v.document||{}).documentMode;function T(t){return"svg"===t?document.createElementNS(m,t):document.createElement(t)}function j(t,e,n){var r=g.exec(e);r&&r[1]?t.setAttributeNS(h,r[1],n):t.setAttribute(e,n)}var M,S,I={},R=!1;v&&(M=T("style"),S=a("style[type=riot]"),j(M,"type","text/css"),S?(S.id&&(M.id=S.id),S.parentNode.replaceChild(M,S)):document.head.appendChild(M),n=(e=M).styleSheet);var P={styleNode:e,add:function(t,e){I[e]=t,R=!0},inject:function(){if(v&&R){R=!1;var t=Object.keys(I).map(function(t){return I[t]}).join("\n");n?n.cssText=t:e.innerHTML=t}},remove:function(t){delete I[t],R=!0}},V=function(){var u=["case","default","do","else","in","instanceof","prefix","return","typeof","void","yield"],l=u.reduce(function(t,e){return t+e.slice(-1)},""),c=/^\/(?=[^*>/])[^[/\\]*(?:(?:\\.|\[(?:\\.|[^\]\\]*)*\])[^[\\/]*)*?\/[gimuy]*/,f=/[$\w]/;function p(t,e){for(;0<=--e&&/\s/.test(t[e]););return e}return function(t,e){var n=/.*/g,r=n.lastIndex=e++,i=n.exec(t)[0].match(c);if(i){var o=r+i[0].length,a=t[r=p(t,r)];if(r<0||~"[{(,;:?=|&!^~>%*/".indexOf(a))return o;if("."===a)"."===t[r-1]&&(e=o);else if("+"===a||"-"===a)(t[--r]!==a||(r=p(t,r))<0||!f.test(t[r]))&&(e=o);else if(~l.indexOf(a)){for(var s=r+1;0<=--r&&f.test(t[r]););~u.indexOf(t.slice(r+1,s))&&(e=o)}}return e}}(),H=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,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]*?}/],f=void 0,_=[];function p(t){return t}function d(t,e){return e||(e=_),new RegExp(t.source.replace(/{/g,e[2]).replace(/}/g,e[3]),t.global?r:"")}function h(t){if(t===l)return c;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]=d(1<e[1].length?/{[\S\s]*?}/:c[4],e),e[5]=d(3<t.length?/\\({|})/g:c[5],e),e[6]=d(c[6],e),e[7]=RegExp("\\\\("+e[3]+")|([[({])|("+e[3]+")|"+u,r),e[8]=t,e}function m(t){return t instanceof RegExp?e(t):_[t]}function g(t){(t||(t=l))!==_[8]&&(_=h(t),e=t===l?p:d,_[9]=e(c[9])),f=t}return m.split=function(r,i,e){e||(e=_);var t,n,o,a,s,u,l=[],c=e[6],f=[],p="";for(n=o=c.lastIndex=0;t=c.exec(r);){if(u=c.lastIndex,a=t.index,n){if(t[2]){var d=t[2],h=y[d],m=1;for(h.lastIndex=u;t=h.exec(r);)if(t[1]){if(t[1]===d)++m;else if(!--m)break}else h.lastIndex=v(t.index,h.lastIndex,t[2]);c.lastIndex=m?r.length:h.lastIndex;continue}if(!t[3]){c.lastIndex=v(a,u,t[4]);continue}}t[1]||(g(r.slice(o,a)),o=c.lastIndex,(c=e[6+(n^=1)]).lastIndex=o)}return r&&o<r.length&&g(r.slice(o)),l.qblocks=f,l;function g(t){p&&(t=p+t,p=""),i||n?l.push(t&&t.replace(e[5],"$1")):l.push(t)}function v(t,e,n){return n&&(e=V(r,t)),i&&t+2<e&&(s="⁗"+f.length+"~",f.push(r.slice(t,e)),p+=r.slice(o,t)+s,o=e),e}},m.hasExpr=function(t){return _[4].test(t)},m.loopKeys=function(t){var e=t.match(_[9]);return e?{key:e[1],pos:e[2],val:_[0]+e[3].trim()+_[1]}:{val:t.trim()}},m.array=function(t){return t?h(t):_},Object.defineProperty(m,"settings",{set:function(t){var e;e=(t=t||{}).brackets,Object.defineProperty(t,"brackets",{set:g,get:function(){return f},enumerable:!0}),n=t,g(e)},get:function(){return n}}),m.settings="undefined"!=typeof riot&&riot.settings||{},m.set=g,m.skipRegex=V,m.R_STRINGS=i,m.R_MLCOMMS=/\/\*[^*]*\*+(?:[^*\/][^*]*\*+)*\//g,m.S_QBLOCKS=o,m.S_QBLOCK2=u,m}(),U=function(){var n={};function r(t,e){return t?(n[t]||(n[t]=function(t){var e=function(t){var e,n=H.split(t.replace(s,'"'),1),r=n.qblocks;if(2<n.length||n[0]){var i,o,a=[];for(i=o=0;i<n.length;++i)(e=n[i])&&(e=1&i?l(e,1,r):'"'+e.replace(/\\/g,"\\\\").replace(/\r\n?|\n/g,"\\n").replace(/"/g,'\\"')+'"')&&(a[o++]=e);e=o<2?a[0]:"["+a.join(",")+'].join("")'}else e=l(n[1],0,r);r.length&&(e=e.replace(u,function(t,e){return r[e].replace(/\r/g,"\\r").replace(/\n/g,"\\n")}));return e}(t);"try{return "!==e.slice(0,11)&&(e="return "+e);return new Function("E",e+";")}(t))).call(e,function(t,e){t.riotData={tagName:e&&e.__&&e.__.tagName,_riot_id:e&&e._riot_id},r.errorHandler?r.errorHandler(t):"undefined"!=typeof console&&"function"==typeof console.error&&(console.error(t.message),console.log("<%s> %s",t.riotData.tagName||"Unknown tag",this.tmpl),console.log(this.data))}.bind({data:e,tmpl:t})):t}r.hasExpr=H.hasExpr,r.loopKeys=H.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+)~):/,f={"(":/[()]/g,"[":/[[\]]/g,"{":/[{}]/g};function l(o,t,e){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]?e[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<i?"["+r.join(",")+'].join(" ").trim()':r[0]:d(o,t)}return o;function l(t,e){var n,r=1,i=f[t];for(i.lastIndex=e.lastIndex;n=i.exec(o);)if(n[0]===t)++r;else if(!--r)break;e.lastIndex=r?o.length:i.lastIndex}}var a='"in this?this:'+("object"!=typeof window?"global":"window")+").",i=/[,{][\$\w]+(?=:)|(^ *|[^$\w\.{])(?!(?:typeof|true|false|null|undefined|in|instanceof|is(?:Finite|NaN)|void|NaN|new|Date|RegExp|Math)(?![$\w]))([$_A-Za-z][$\w]*)/g,p=/^(?=(\.[$\w]+))\1(?:[^.[(]|$)/;function d(t,e,n){var o;return t=t.replace(i,function(t,e,n,r,i){return n&&(r=o?0:r+t.length,"this"!==n&&"global"!==n&&"window"!==n?(t=e+'("'+n+a+n,r&&(o="."===(i=i[r])||"("===i||"["===i)):r&&(o=!p.test(i.slice(r)))),t}),o&&(t="try{return "+t+"}catch(e){E(e,this)}"),n?t=(o?"function(){"+t+"}.call(this)":"("+t+")")+'?"'+n+'":""':e&&(t="function(v){"+(o?t.replace("return ","v="):"v=("+t+")")+';return v||v===0?v:""}.call(this)'),t}return r.version=H.version="v3.0.8",r}(),B=function(s){s=s||{};var u={},l=Array.prototype.slice;return Object.defineProperties(s,{on:{value:function(t,e){return"function"==typeof e&&(u[t]=u[t]||[]).push(e),s},enumerable:!1,writable:!1,configurable:!1},off:{value:function(t,e){if("*"!=t||e)if(e)for(var n,r=u[t],i=0;n=r&&r[i];++i)n==e&&r.splice(i--,1);else delete u[t];else u={};return s},enumerable:!1,writable:!1,configurable:!1},one:{value:function(e,n){return s.on(e,function t(){s.off(e,t),n.apply(s,arguments)})},enumerable:!1,writable:!1,configurable:!1},trigger:{value:function(t){var e,n,r,i=arguments,o=arguments.length-1,a=new Array(o);for(r=0;r<o;r++)a[r]=i[r+1];for(e=l.call(u[t]||[],0),r=0;n=e[r];++r)n.apply(s,a);return u["*"]&&"*"!=t&&s.trigger.apply(s,["*",t].concat(a)),s},enumerable:!1,writable:!1,configurable:!1}}),s};function z(t,e){return Object.getOwnPropertyDescriptor(t,e)}function D(t){return typeof t===l}function F(t,e){var n=z(t,e);return D(t[e])||n&&n.writable}function K(t){for(var e,n=1,r=arguments,i=r.length;n<i;n++)if(e=r[n])for(var o in e)F(t,o)&&(t[o]=e[o]);return t}function q(t){return Object.create(t)}var W=K(q(H.settings),{skipAnonymousTags:!0,autoUpdate:!0});function Z(t,e){return[].slice.call((e||document).querySelectorAll(t))}function G(){return document.createTextNode("")}function Q(t,e){t.style.display=e?"":"none",t.hidden=!e}function J(t,e){return t.getAttribute(e)}function X(t,e){t.removeAttribute(e)}function Y(t,e,n){if(n){var r=t.ownerDocument.importNode((new DOMParser).parseFromString('<svg xmlns="'+m+'">'+e+"</svg>","application/xml").documentElement,!0);t.appendChild(r)}else t.innerHTML=e}function tt(t,e){if(t)for(var n;n=O.exec(t);)e(n[1].toLowerCase(),n[2]||n[3]||n[4])}function et(){return document.createDocumentFragment()}function nt(t,e,n){t.insertBefore(e,n.parentNode&&n)}function rt(n){return Object.keys(n).reduce(function(t,e){return t+" "+e+": "+n[e]+";"},"")}function it(t,e,n){if(t){var r,i=e(t,n);if(!1===i)return;for(t=t.firstChild;t;)r=t.nextSibling,it(t,e,i),t=r}}var ot=Object.freeze({$$:Z,$:a,createDOMPlaceholder:G,mkEl:T,setAttr:j,toggleVisibility:Q,getAttr:J,remAttr:X,setInnerHTML:Y,walkAttrs:tt,createFrag:et,safeInsert:nt,styleObjectToString:rt,walkNodes:it});function at(t){return D(t)||null===t}function st(t){return at(t)||""===t}function ut(t){return typeof t===c}function lt(t){return t&&typeof t===$}function ct(t){var e=t.ownerSVGElement;return!!e||null===e}function ft(t){return Array.isArray(t)||t instanceof Array}function pt(t){return E.test(t)}function dt(t){return typeof t===o}var ht=Object.freeze({isBlank:st,isFunction:ut,isObject:lt,isSvg:ct,isWritable:F,isArray:ft,isBoolAttr:pt,isNil:at,isString:dt,isUndefined:D});function mt(t,e){return-1!==t.indexOf(e)}function gt(t,e){for(var n=t?t.length:0,r=0;r<n;r++)e(t[r],r);return t}function vt(t,e){return t.slice(0,e.length)===e}var yt,_t=(yt=-1,function(){return++yt});function xt(t,e,n,r){return Object.defineProperty(t,e,K({value:n,enumerable:!1,writable:!1,configurable:!0},r)),t}function bt(t){return t.replace(/-(\w)/g,function(t,e){return e.toUpperCase()})}function wt(t){console&&console.warn&&console.warn(t)}var Nt=Object.freeze({contains:mt,each:gt,getPropDescriptor:z,startsWith:vt,uid:_t,defineProperty:xt,objectCreate:q,extend:K,toCamel:bt,warn:wt});function At(t,e,n,r,i){var o=t[e],a=ft(o),s=!D(i);if(!o||o!==n)if(!o&&r)t[e]=[n];else if(o)if(a){var u=o.indexOf(n);if(u===i)return;-1!==u&&o.splice(u,1),s?o.splice(i,0,n):o.push(n)}else t[e]=[o,n];else t[e]=n}function Ct(t){return t.tagName&&w[J(t,f)||J(t,f)||t.tagName.toLowerCase()]}function Ot(t,e){var n=Ct(t),r=!e&&J(t,f);return r&&!U.hasExpr(r)?r:n?n.name:t.tagName.toLowerCase()}function kt(){return this.parent?K(q(this),this.parent):this}var Et=/<yield\b/i,Lt=/<yield\s*(?:\/>|>([\S\s]*?)<\/yield\s*>|>)/gi,Tt=/<yield\s+to=['"]([^'">]*)['"]\s*>([\S\s]*?)<\/yield\s*>/gi,jt=/<yield\s+from=['"]?([-\w]+)['"]?\s*(?:\/>|>([\S\s]*?)<\/yield\s*>)/gi,Mt={tr:"tbody",th:"tr",td:"tr",col:"colgroup"},St=L&&L<10?/^(?:t(?:body|head|foot|[rhd])|caption|col(?:group)?|opt(?:ion|group))$/:/^(?:t(?:body|head|foot|[rhd])|caption|col(?:group)?)$/,It="div",Rt="svg";function Pt(t,e,n){var r=t&&t.match(/^\s*<([-\w]+)/),i=r&&r[1].toLowerCase(),o=T(n?Rt:It);return t=function(t,n){if(!Et.test(t))return t;var r={};return n=n&&n.replace(Tt,function(t,e,n){return r[e]=r[e]||n,""}).trim(),t.replace(jt,function(t,e,n){return r[e]||n||""}).replace(Lt,function(t,e){return n||e||""})}(t,e),St.test(i)?o=function(t,e,n){var r="o"===n[0],i=r?"select>":"table>";if(t.innerHTML="<"+i+e.trim()+"</"+i,i=t.firstChild,r)i.selectedIndex=-1;else{var o=Mt[n];o&&1===i.childElementCount&&(i=a(o,i))}return i}(o,t,i):Y(o,t,n),o}var Vt=/^on/;function $t(t){for(var e=t;e.__.isAnonymous&&e.parent;)e=e.parent;return e}function Ht(t,e,n,r){var i,o=function(t,e,n){var r=this.__.parent,i=this.__.item;if(!i)for(;r&&!i;)i=r.__.item,r=r.__.parent;if(F(n,"currentTarget")&&(n.currentTarget=t),F(n,"target")&&(n.target=n.srcElement),F(n,"which")&&(n.which=n.charCode||n.keyCode),n.item=i,e.call(this,n),W.autoUpdate&&!n.preventUpdate){var o=$t(this);o.isMounted&&o.update()}}.bind(r,n,e);n[t]=null,i=t.replace(b,""),mt(r.__.listeners,n)||r.__.listeners.push(n),n[x]||(n[x]={}),n[x][t]&&n.removeEventListener(i,n[x][t]),n[x][t]=o,n.addEventListener(i,o,!1)}function Ut(t,e,n,r){var i=ye(t,e,n),o=e.tagName||Ot(e.root,!0),a=$t(r);return xt(i,"parent",a),i.__.parent=r,At(a.tags,o,i),a!==r&&At(r.tags,o,i),i}function Bt(t,e,n,r){if(ft(t[e])){var i=t[e].indexOf(n);-1!==i&&t[e].splice(i,1),t[e].length?1!==t[e].length||r||(t[e]=t[e][0]):delete t[e]}else t[e]===n&&delete t[e]}function zt(t,e){var n,r,i=G(),o=G(),a=et();for(this.root.insertBefore(i,this.root.firstChild),this.root.appendChild(o),this.__.head=r=i,this.__.tail=o;r;)n=r.nextSibling,a.appendChild(r),this.__.virts.push(r),r=n;e?t.insertBefore(a,e.__.head):t.appendChild(a)}function Dt(t,e){var n=et();zt.call(t,n),e.parentNode.replaceChild(n,e)}function Ft(t){if(!this.root||!J(this.root,"virtualized")){var e,n,r=t.dom,i=(e=t.attr)?(e=e.replace(N,""),k[e]&&(e=k[e]),e):null,o=mt([A,C],i),a=t.root&&"VIRTUAL"===t.root.tagName,s=this.__.isAnonymous,u=r&&(t.parent||r.parentNode),l="style"===i,c="class"===i;if(t._riot_id)t.__.wasCreated?t.update():(t.mount(),a&&Dt(t,t.root));else{if(t.update)return t.update();var f,p,d,h,m,g,v,y=o&&!s?kt.call(this):this,_=!st(n=U(t.expr,y)),x=lt(n);if(x&&(c?n=U(JSON.stringify(n),this):l&&(n=rt(n))),!t.attr||t.wasParsedOnce&&_&&!1!==n||X(r,J(r,t.attr)?t.attr:i),t.bool&&(n=!!n&&i),t.isRtag)return p=this,d=n,m=(f=t).tag||f.dom._tag,g=(m?m.__:{}).head,v="VIRTUAL"===f.dom.tagName,void(m&&f.tagName===d?m.update():(m&&(v&&(h=G(),g.parentNode.insertBefore(h,g)),m.unmount(!0)),dt(d)&&(f.impl=w[d],f.impl&&(f.tag=m=Ut(f.impl,{root:f.dom,parent:p,tagName:d},f.dom.innerHTML,p),gt(f.attrs,function(t){return j(m.root,t.name,t.value)}),f.tagName=d,m.mount(),v&&Dt(m,h||m.root),p.__.onUnmount=function(){var t=m.opts.dataIs;Bt(m.parent.tags,t,m),Bt(m.__.parent.tags,t,m),m.unmount()}))));if((!t.wasParsedOnce||t.value!==n)&&(t.value=n,t.wasParsedOnce=!0,!x||c||l||o)){if(_||(n=""),!i)return n+="",void(u&&("TEXTAREA"===(t.parent=u).tagName?(u.value=n,L||(r.nodeValue=n)):r.nodeValue=n));switch(!0){case ut(n):b=i,Vt.test(b)&&Ht(i,n,r,this);break;case o:Q(r,i===C?!n:n);break;default:t.bool&&(r[i]=n),"value"===i&&r.value!==n?r.value=n:_&&!1!==n&&j(r,i,n),l&&r.hidden&&Q(r,!1)}var b}}}}function Kt(t){gt(t,Ft.bind(this))}function qt(t,e,n,r,i){if(!t||!n){var o=t?kt.call(this):e||this;gt(i,function(t){t.expr&&Ft.call(o,t.expr),r[bt(t.name).replace(N,"")]=t.expr?t.expr.value:t.value})}}function Wt(t){if(!t){var e=Object.keys(w);return e+Wt(e)}return t.filter(function(t){return!/[^-\w]/.test(t)}).reduce(function(t,e){var n=e.trim().toLowerCase();return t+",["+f+'="'+n+'"]'},"")}function Zt(t,e){var n=this,r=n.name,i=n.tmpl,o=n.css,a=n.attrs,s=n.onCreate;return w[r]||(Gt(r,i,o,a,s),w[r].class=this.constructor),_e(t,r,e,this),o&&P.inject(),this}function Gt(t,e,n,r,i){return ut(r)&&(i=r,/^[\w-]+\s?=/.test(n)?(r=n,n=""):r=""),n&&(ut(n)?i=n:P.add(n,t)),t=t.toLowerCase(),w[t]={name:t,tmpl:e,attrs:r,fn:i},t}function Qt(t,e,n,r,i){return n&&P.add(n,t),w[t]={name:t,tmpl:e,attrs:r,fn:i},t}function Jt(t,i,o){var e,n,a=[];if(P.inject(),lt(i)&&(o=i,i=0),e=dt(t)?(t="*"===t?n=Wt():t+Wt(t.split(/, */)))?Z(t):[]:t,"*"===i){if(i=n||Wt(),e.tagName)e=Z(i,e);else{var r=[];gt(e,function(t){return r.push(Z(i,t))}),e=r}i=0}return function t(e){if(e.tagName){var n,r=J(e,f);i&&r!==i&&j(e,f,r=i),(n=_e(e,r||e.tagName.toLowerCase(),o))&&a.push(n)}else e.length&&gt(e,t)}(e),a}var Xt={},Yt=Xt[_]={},te=0;function ee(t,e,n){if(lt(t))ee("__"+te+++"__",t,!0);else{var r=n?Yt:Xt;if(!e){if(D(r[t]))throw new Error("Unregistered mixin: "+t);return r[t]}r[t]=ut(e)?K(e.prototype,r[t]||{})&&e:K(r[t]||{},e)}}function ne(){return gt(y,function(t){return t.update()})}function re(t){return P.remove(t),delete w[t]}var ie=Object.freeze({Tag:Zt,tag:Gt,tag2:Qt,mount:Jt,mixin:ee,update:ne,unregister:re,version:"v3.11.1"});function oe(t,e){var n,r=this.parent;r&&(ft(n=r.tags[t])?n.splice(e,0,n.splice(n.indexOf(this),1)[0]):At(r.tags,t,this))}function ae(t,e){for(var n,r=this.__.head,i=et();r;)if(n=r.nextSibling,i.appendChild(r),(r=n)===this.__.tail){i.appendChild(r),t.insertBefore(i,e.__.head);break}}function se(t,e,n){var r={};return r[t.key]=e,t.pos&&(r[t.pos]=n),r}function ue(t,e){t.splice(e,1),this.unmount(),Bt(this.parent,this,this.__.tagName,!0)}function le(N,A,C){var O=typeof J(N,r)!==o||X(N,r),k=J(N,i),E=!!k&&U.hasExpr(k),L=Ot(N),T=w[L],t=N.parentNode,e=G(),j=Ct(N),M=J(N,p),S=[],I=N.innerHTML,R=!w[L],P="VIRTUAL"===N.tagName,V=[];return X(N,d),X(N,i),(C=U.loopKeys(C)).isLoop=!0,M&&X(N,p),t.insertBefore(e,N),t.removeChild(N),C.update=function(){C.value=U(C.val,A);var g=C.value,v=et(),y=!ft(g)&&!dt(g),_=e.parentNode,x=[],b=y&&!!g;if(_){y&&(g=g?Object.keys(g).map(function(t){return se(C,g[t],t)}):[]);var w=0;gt(g,function(t,e){var n=e-w,r=!b&&C.key?se(C,t,e):t;if(!M||U(M,K(q(A),r))){var i,o,a,s,u=(o=t,a=r,s=E,(i=k)?s?U(i,a):o[i]:o),l=!y&&O&&typeof t===$||k,c=V.indexOf(u),f=-1===c,p=!f&&l?c:n,d=S[p],h=n>=V.length,m=l&&f||!l&&!d||!S[n];m?((d=ye(T,{parent:A,isLoop:!0,isAnonymous:R,tagName:L,root:N.cloneNode(R),item:r,index:n},I)).mount(),h?function(t,e){e?zt.call(this,t):t.appendChild(this.root)}.apply(d,[v||_,P]):function(t,e,n){n?zt.apply(this,[t,e]):nt(t,this.root,e.root)}.apply(d,[_,S[n],P]),h||V.splice(n,0,r),S.splice(n,0,d),j&&At(A.tags,L,d,!0)):p!==n&&l&&((k||mt(g,V[p]))&&(function(t,e,n){n?ae.apply(this,[t,e]):nt(t,this.root,e.root)}.apply(d,[_,S[n],P]),S.splice(n,0,S.splice(p,1)[0]),V.splice(n,0,V.splice(p,1)[0])),C.pos&&(d[C.pos]=n),!j&&d.tags&&function(e){var n=this;gt(Object.keys(this.tags),function(t){oe.apply(n.tags[t],[t,e])})}.call(d,n)),K(d.__,{item:r,index:n,parent:A}),x[n]=u,m||d.update(r)}else w++}),function(t,e,n){for(var r=e.length,i=t.length-n;i<r;)ue.apply(e[--r],[e,r])}(g,S,w),V=x.slice(),_.insertBefore(v,e)}},C.unmount=function(){gt(S,function(t){t.unmount()})},C}var ce={init:function(t,e,n,r){return this.dom=t,this.attr=n,this.rawValue=r,this.parent=e,this.hasExp=U.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?U(this.rawValue,this.parent):this.rawValue,!st(t)&&e&&Bt(e.refs,t,n),!st(this.value)&&dt(this.value)?(e&&At(e.refs,this.value,n,null,this.parent.__.index),this.value!==t&&j(this.dom,this.attr,this.value)):X(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);!st(this.value)&&e&&Bt(e.refs,this.value,t)}};function fe(t,e,n,r){return q(ce).init(t,e,n,r)}function pe(t){gt(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){X(t,p),K(this,{tag:e,expr:n,stub:G(),pristine:t});var r=t.parentNode;return r.insertBefore(this.stub,t),r.removeChild(t),this},update:function(){this.value=U(this.expr,this.tag),this.stub.parentNode&&(this.value&&!this.current?(this.current=this.pristine.cloneNode(!0),this.stub.parentNode.insertBefore(this.current,this.stub),this.expressions=me.apply(this.tag,[this.current,!0])):!this.value&&this.current&&(this.unmount(),this.current=null,this.expressions=[]),this.value&&Kt.call(this.tag,this.expressions))},unmount:function(){this.current&&(this.current._tag?this.current._tag.unmount():this.current.parentNode&&this.current.parentNode.removeChild(this.current)),pe(this.expressions||[])}};function he(t,e,n){return q(de).init(t,e,n)}function me(s,u){var l=this,c=[];return it(s,function(t){var e,n,r=t.nodeType;if((u||t!==s)&&(3===r&&"STYLE"!==t.parentNode.tagName&&U.hasExpr(t.nodeValue)&&c.push({dom:t,expr:t.nodeValue}),1===r)){var i="VIRTUAL"===t.tagName;if(e=J(t,d))return i&&j(t,"loopVirtual",!0),c.push(le(t,l,e)),!1;if(e=J(t,p))return c.push(he(t,l,e)),!1;if((e=J(t,f))&&U.hasExpr(e))return c.push({isRtag:!0,expr:e,dom:t,attrs:[].slice.call(t.attributes)}),!1;if(n=Ct(t),i&&(J(t,"virtualized")&&t.parentElement.removeChild(t),n||J(t,"virtualized")||J(t,"loopVirtual")||(n={tmpl:t.outerHTML})),n&&(t!==s||u)){var o=J(t,f);if(!i||o)return o&&i&&wt("Virtual tags shouldn't be used together with the \""+f+'" attribute - https://github.com/riot/riot/issues/2511'),c.push(Ut(n,{root:t,parent:l},t.innerHTML,l)),!1;j(t,"virtualized",!0);var a=ye({tmpl:t.outerHTML},{root:t,parent:l},t.innerHTML);c.push(a)}ge.apply(l,[t,t.attributes,function(t,e){e&&c.push(e)}])}}),c}function ge(i,t,o){var a=this;gt(t,function(t){if(!t)return!1;var e,n=t.name,r=pt(n);mt(u,n)&&i.tagName.toLowerCase()!==s?e=fe(i,a,n,t.value):U.hasExpr(t.value)&&(e={dom:i,expr:t.value,attr:n,bool:r}),o(t,e)})}function ve(t){var e=this.__.isAnonymous;xt(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,s=e.context||{},i=e.opts||{},o=e.parent,a=e.isLoop,u=!!e.isAnonymous,l=W.skipAnonymousTags&&u,c=e.item,f=e.index,p=t.tmpl,d=[],h=e.root,m=e.tagName||Ot(h),g="virtual"===m,v=!g&&!p;return v||a&&u?r=h:(g||(h.innerHTML=""),r=Pt(p,n,ct(h))),l||B(s),t.name&&h._tag&&h._tag.unmount(!0),xt(s,"__",{impl:t,root:h,skipAnonymous:l,implAttrs:[],isAnonymous:u,instAttrs:[],innerHTML:n,tagName:m,index:f,isLoop:a,isInline:v,item:c,parent:o,listeners:[],virts:[],wasCreated:!1,tail:null,head:null}),[["isMounted",!1],["_riot_id",_t()],["root",h],["opts",i,{writable:!0,enumerable:!0}],["parent",o||null],["tags",{}],["refs",{}],["update",function(t){return n=t,r=d,i=(e=s).__,o={},a=e.isMounted&&!i.skipAnonymous,i.isAnonymous&&i.parent&&K(e,i.parent),K(e,n),qt.apply(e,[i.isLoop,i.parent,i.isAnonymous,o,i.instAttrs]),a&&e.isMounted&&ut(e.shouldUpdate)&&!e.shouldUpdate(n,o)||(K(e.opts,o),a&&e.trigger("update",n),Kt.call(e,r),a&&e.trigger("updated")),e;var e,n,r,i,o,a}],["mixin",function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return function(a){for(var t=[],e=arguments.length-1;0<e--;)t[e]=arguments[e+1];return gt(t,function(t){var r,e,n=[],i=["init","__proto__"];t=dt(t)?ee(t):t,r=ut(t)?new t:t;for(var o=Object.getPrototypeOf(r);n=n.concat(Object.getOwnPropertyNames(e||r)),e=Object.getPrototypeOf(e||r););gt(n,function(t){if(!mt(i,t)){var e=z(r,t)||z(o,t),n=e&&(e.get||e.set);!a.hasOwnProperty(t)&&n?Object.defineProperty(a,t,e):a[t]=ut(r[t])?r[t].bind(a):r[t]}}),r.init&&r.init.bind(a)(a.opts)}),a}.apply(void 0,[s].concat(t))}],["mount",function(){return function(n,t,r,e){var i=n.__,o=i.root;o._tag=n,ge.apply(i.parent,[o,o.attributes,function(t,e){!i.isAnonymous&&ce.isPrototypeOf(e)&&(e.tag=n),t.expr=e,i.instAttrs.push(t)}]),tt(i.impl.attrs,function(t,e){i.implAttrs.push({name:t,value:e})}),ge.apply(n,[o,i.implAttrs,function(t,e){e?r.push(e):j(o,t.name,t.value)}]),qt.apply(n,[i.isLoop,i.parent,i.isAnonymous,e,i.instAttrs]);var a=ee(_);if(a&&!i.skipAnonymous)for(var s in a)a.hasOwnProperty(s)&&n.mixin(a[s]);if(i.impl.fn&&i.impl.fn.call(n,e),i.skipAnonymous||n.trigger("before-mount"),gt(me.apply(n,[t,i.isAnonymous]),function(t){return r.push(t)}),n.update(i.item),!i.isAnonymous&&!i.isInline)for(;t.firstChild;)o.appendChild(t.firstChild);if(xt(n,"root",o),!i.skipAnonymous&&n.parent){var u=$t(n.parent);u.one(u.isMounted?"updated":"mount",function(){ve.call(n,!0)})}else ve.call(n,!0);return n.__.wasCreated=!0,n}(s,r,d,i)}],["unmount",function(t){return function(e,t,n){var r=e.__,i=r.root,o=y.indexOf(e),a=i.parentNode;if(r.skipAnonymous||e.trigger("before-unmount"),tt(r.impl.attrs,function(t){vt(t,N)&&(t=t.slice(N.length)),X(i,t)}),e.__.listeners.forEach(function(e){Object.keys(e[x]).forEach(function(t){e.removeEventListener(t,e[x][t])})}),-1!==o&&y.splice(o,1),r.parent&&!r.isAnonymous){var s=$t(r.parent);r.isVirtual?Object.keys(e.tags).forEach(function(t){return Bt(s.tags,t,e.tags[t])}):Bt(s.tags,r.tagName,e)}return e.__.virts&&gt(e.__.virts,function(t){t.parentNode&&t.parentNode.removeChild(t)}),pe(n),gt(r.instAttrs,function(t){return t.expr&&t.expr.unmount&&t.expr.unmount()}),t?Y(i,""):a&&a.removeChild(i),r.onUnmount&&r.onUnmount(),e.isMounted||ve.call(e,!0),ve.call(e,!1),delete i._tag,e}(s,t,d)}]].reduce(function(t,e){var n=e[0],r=e[1],i=e[2];return xt(s,n,r,i),t},K(s,c))}function _e(t,e,n,r){var i,o=w[e],a=w[e].class,s=r||(a?q(a.prototype):{}),u=t._innerHTML=t._innerHTML||t.innerHTML,l=K({root:t,opts:n,context:s},{parent:n?n.parent:null});return o&&t&&(i=ye(o,l,u)),i&&i.mount&&(i.mount(!0),mt(y,i)||y.push(i)),i}var xe=Object.freeze({arrayishAdd:At,getTagName:Ot,inheritParentProps:kt,mountTo:_e,selectTags:Wt,arrayishRemove:Bt,getTag:Ct,initChildTag:Ut,moveChildTag:oe,makeReplaceVirtual:Dt,getImmediateCustomParentTag:$t,makeVirtual:zt,moveVirtual:ae,unmountAll:pe,createIfDirective:he,createRefDirective:fe}),be=W,we={tmpl:U,brackets:H,styleManager:P,vdom:y,styleNode:P.styleNode,dom:ot,check:ht,misc:Nt,tags:xe},Ne=Zt,Ae=Gt,Ce=Qt,Oe=Jt,ke=ee,Ee=ne,Le=re,Te=B,je=K({},ie,{observable:B,settings:be,util:we});t.settings=be,t.util=we,t.Tag=Ne,t.tag=Ae,t.tag2=Ce,t.mount=Oe,t.mixin=ke,t.update=Ee,t.unregister=Le,t.version="v3.11.1",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={});
var route=function(){"use strict";var e=function(e){e=e||{};var t={},n=Array.prototype.slice;Object.defineProperties(e,{on:{value:function(n,r){if(typeof r=="function"){(t[n]=t[n]||[]).push(r)}return e},enumerable:false,writable:false,configurable:false},off:{value:function(n,r){if(n=="*"&&!r){t={}}else{if(r){var i=t[n];for(var f=0,a;a=i&&i[f];++f){if(a==r){i.splice(f--,1)}}}else{delete t[n]}}return e},enumerable:false,writable:false,configurable:false},one:{value:function(t,n){function r(){e.off(t,r);n.apply(e,arguments)}return e.on(t,r)},enumerable:false,writable:false,configurable:false},trigger:{value:function(r){var i=arguments;var f=arguments.length-1,a=new Array(f),u,o,c;for(c=0;c<f;c++){a[c]=i[c+1]}u=n.call(t[r]||[],0);for(c=0;o=u[c];++c){o.apply(e,a)}if(t["*"]&&r!="*"){e.trigger.apply(e,["*",r].concat(a))}return e},enumerable:false,writable:false,configurable:false}});return e};var t=/^.+?\/\/+[^/]+/,n="EventListener",r="remove"+n,i="add"+n,f="hasAttribute",a="popstate",u="hashchange",o="trigger",c=3,l=typeof window!="undefined"&&window,s=typeof document!="undefined"&&document,h=l&&history,p=l&&(h.location||l.location),d=P.prototype,v=s&&s.ontouchstart?"touchstart":"click",m=e();var y=false,b=false,g,w,$,A,S,x=[],K=0;function N(e){return e.split(/[/?#]/)}function O(e,t){var n=t.replace(/\?/g,"\\?").replace(/\*/g,"([^/?#]+?)").replace(/\.\./,".*");var r=new RegExp("^"+n+"$");var i=e.match(r);if(i){return i.slice(1)}}function T(e,t){var n;return function(){clearTimeout(n);n=setTimeout(e,t)}}function E(e){g=T(L,1);l[i](a,g);l[i](u,g);s[i](v,R);if(e){L(true)}}function P(){this.$=[];e(this);m.on("stop",this.s.bind(this));m.on("emit",this.e.bind(this))}function j(e){return e.replace(/^\/|\/$/,"")}function k(e){return typeof e=="string"}function q(e){return(e||p.href).replace(t,"")}function D(e){return w[0]==="#"?(e||p.href||"").split(w)[1]||"":(p?q(e):e||"").replace(w,"")}function L(e){var t=K===0;if(c<=K){return}K++;x.push(function(){var t=D();if(e||t!==$){m[o]("emit",t);$=t}});if(t){var n;while(n=x.shift()){n()}K=0}}function R(e){if(e.which!==1||e.metaKey||e.ctrlKey||e.shiftKey||e.defaultPrevented){return}var n=e.target;while(n&&n.nodeName!=="A"){n=n.parentNode}if(!n||n.nodeName!=="A"||n[f]("download")||!n[f]("href")||n.target&&n.target!=="_self"||n.href.indexOf(p.href.match(t)[0])===-1){return}if(n.href!==p.href&&(n.href.split("#")[0]===p.href.split("#")[0]||w[0]!=="#"&&q(n.href).indexOf(w)!==0||w[0]==="#"&&n.href.split(w)[0]!==p.href.split(w)[0]||!_(D(n.href),n.title||s.title))){return}e.preventDefault()}function _(e,t,n){if(!h){return m[o]("emit",D(e))}e=w+j(e);t=t||s.title;n?h.replaceState(null,t,e):h.pushState(null,t,e);s.title=t;b=false;L();return b}d.m=function(e,t,n){if(k(e)&&(!t||k(t))){_(e,t,n||false)}else if(t){this.r(e,t)}else{this.r("@",e)}};d.s=function(){this.off("*");this.$=[]};d.e=function(e){this.$.concat("@").some(function(t){var n=(t==="@"?A:S)(j(e),j(t));if(typeof n!="undefined"){this[o].apply(null,[t].concat(n));return b=true}},this)};d.r=function(e,t){if(e!=="@"){e="/"+j(e);this.$.push(e)}this.on(e,t)};var z=new P;var B=z.m.bind(z);B.create=function(){var e=new P;var t=e.m.bind(e);t.stop=e.s.bind(e);return t};B.base=function(e){w=e||"#";$=D()};B.exec=function(){L(true)};B.parser=function(e,t){if(!e&&!t){A=N;S=O}if(e){A=e}if(t){S=t}};B.query=function(){var e={};var t=p.href||$;t.replace(/[?&](.+?)=([^&]*)/g,function(t,n,r){e[n]=r});return e};B.stop=function(){if(y){if(l){l[r](a,g);l[r](u,g);s[r](v,R)}m[o]("stop");y=false}};B.start=function(e){if(!y){if(l){if(document.readyState==="interactive"||document.readyState==="complete"){E(e)}else{document.onreadystatechange=function(){if(document.readyState==="interactive"){setTimeout(function(){E(e)},1)}}}}y=true}};B.base();B.parser();return B}();
!function(t){function e(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var i={};e.m=t,e.c=i,e.i=function(t){return t},e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=38)}([function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=function(){function t(){n(this,t)}return t.prototype.receiveBound=function(){this.container||console.error("Yor class must contain a container. It is DOM Element. Define please this.container property.");var t,e,i,n=this.container&&this.container.ownerDocument;return t=n.documentElement,"undefined"!==o(this.container.getBoundingClientRect)&&(i=this.container.getBoundingClientRect()),e=this.getWindow(n),this.mix(i,{size:Math.max(i.width,i.height),offsetTop:i.top+e.pageYOffset-t.clientTop,offsetLeft:i.left+e.pageXOffset-t.clientLeft})},t.prototype.isWindow=function(t){return null!==t&&t===t.window},t.prototype.getWindow=function(t){return this.isWindow(t)?t:9===t.nodeType&&t.defaultView},t.prototype.mix=function(t,e){for(var i in t)i in e||(e[i]=t[i]);return e},t}();e.default=a,riot.mixin("Bound",a)},function(t,e,i){"use strict";riot.tag2("material-button",'<material-waves onclick="{click}" onmousedown="{launch}" center="{opts.wavesCenter}" rounded="{opts.rounded}" opacity="{opts.wavesOpacity}" color="{opts.wavesColor}" duration="{opts[\'waves-duration\']}" ref="material-waves"></material-waves> <div class="content"><yield></yield></div>',"","",function(t){var e=this;this.dynamicAttributes=["disabled"],this.disabled=t.disabled||!1,this.launch=function(t){e.disabled||e.refs["material-waves"].trigger("launch",t)},this.on("mount",function(){e.refs["material-waves"].on("wavestart",function(t){e.trigger("wavestart",t)}),e.refs["material-waves"].on("waveend",function(){e.trigger("waveend")})}),this.click=function(){t.link&&(window.location.href=t.link),e.trigger("click")},this.mixin("dynamicAttributes")})},function(t,e,i){"use strict";riot.tag2("material-card",'<div class="title" if="{titleExist}"> <content select=".material-card-title"></content> </div> <yield></yield>',"","",function(t){var e=this;this.titleExist=!1,this.on("mount",function(){e.update({titleExist:!!e.root.querySelector(".material-card-title")})}),this.mixin("content")})},function(t,e,i){"use strict";riot.tag2("material-checkbox",'<div class="{checkbox:true,checked:checked}" onclick="{toggle}"> <div class="checkmark"></div> </div> <div class="label" onclick="{toggle}"><yield></yield></div> <input type="hidden" ref="{opts.ref}" riot-value="{checked}">',"","",function(t){var e=this;this.checked=t.checked||!1,this.disabled=t.disabled||!1,this.toggle=function(){if(e.disabled)return!1;e.update({checked:!e.checked}),e.trigger("toggle",e.checked)}})},function(module,exports,__webpack_require__){"use strict";riot.tag2("material-combo",'<material-input ref="input"></material-input> <material-dropdown-list selected="{opts.selected}" ref="dropdown"></material-dropdown-list> <input type="hidden" riot-value="{value}" ref="{opts.ref || \'combo\'}"> <div ref="options" hidden> <yield></yield> </div>',"","",function(opts){var _this=this;this.items=[],this.title=null;var lastValue=this.value,valueChanged=function(){_this.value!==lastValue&&(lastValue=_this.value,_this.root.dispatchEvent(new CustomEvent("change",{value:_this.value})))};if(this.getOptions=function(){Array.prototype.forEach.call(_this.refs.options.children,function(t,e){if("option"==t.tagName.toLowerCase()){var i={title:t.innerHTML,value:t.getAttribute("value")};_this.items.push(i),null!=t.getAttribute("isSelected")&&(_this.refs.dropdown.update({selected:e}),_this.update({value:i.value||i.title}),valueChanged(),_this.title=i.title)}}),_this.refs.dropdown.update({items:_this.items}),_this.refs.dropdown.selected&&_this.update({hValue:_this.refs.dropdown.items[_this.refs.dropdown.selected].value||_this.refs.dropdown.items[_this.refs.dropdown.selected].title}),_this.update({isParsed:!0}),valueChanged()},opts.items)try{this.items=eval(opts.items)||[],this.items.length&&this.refs.dropdown.update({items:this.items})}catch(t){console.error("Something wrong with your items. For details look at it - "+t)}this.on("mount",function(){_this.getOptions(),_this.refs.dropdown.on("selectChanged",function(t){_this.update({value:_this.refs.dropdown.items[t].value||_this.refs.dropdown.items[t].title}),valueChanged(),_this.refs.input.update({value:_this.refs.dropdown.items[t].title}),setTimeout(function(){_this.refs.dropdown.update({items:_this.items})},200)}),_this.refs.input.on("valueChanged",function(t){_this.refs.dropdown.update({items:_this.filter("items",{title:t})})}),_this.refs.input.on("focusChanged",function(t){_this.refs.input.value==(opts.defaulttext||"Choose item")&&t&&_this.refs.input.update({value:""}),""!=_this.refs.input.value||t||_this.refs.input.update({value:opts.defaulttext||"Choose item"}),t&&_this.refs.dropdown.open()}),_this.refs.dropdown.root.style.top=_this.refs.input.root.getBoundingClientRect().height+"px",_this.refs.input.update({value:_this.title||opts.defaulttext||"Choose item"})}),this.mixin("collection")})},function(module,exports,__webpack_require__){"use strict";riot.tag2("material-dropdown-list",'<ul class="{dropdown-content:true,opening:opening}" if="{opened}"> <li each="{item,key in items}" class="{selected:parent.selected==key}"> <span if="{!item.link}" onclick="{parent.select}">{item.title}</span> <a if="{item.link}" href="{item.link}" onclick="{parent.select}" title="{item.title}">{item.title}</a> </li> </ul> <div ref="overlay" if="{opts.extraclose && opened}" onclick="{close}" class="material-dropdown-list-overlay"></div>',"","",function(opts){var _this=this;if(this.opened=!1,opts.items){try{this.items=eval(opts.items)||[]}catch(t){console.error("Something wrong with your items. For details look at it - "+t)}this.update({items:this.items})}opts.selected&&this.update({selected:opts.selected}),this.select=function(t){return _this.update({selected:t.item.key}),_this.close(),_this.trigger("selectChanged",t.item.key,t.item.item),!0},this.open=function(){_this.update({opened:!0,opening:!0}),_this.opts.extraclose&&document.body.appendChild(_this.refs.overlay),setTimeout(function(){_this.update({opening:!1})},0)},this.close=function(){_this.update({opening:!0}),setTimeout(function(){_this.update({opened:!1})},200)}})},function(t,e,i){"use strict";riot.tag2("material-dropdown",'<div ref="dropdown" class="{dropdown:true,opening:opening} {opts.animation || \'top\'}" if="{opened}"> <yield></yield> </div>',"","",function(t){var e=this;this.opened=t.opened||!1,this.open=function(){e.update({opened:!0,opening:!0}),setTimeout(function(){e.update({opening:!1})},0)},this.close=function(){e.update({opening:!0}),setTimeout(function(){e.update({opened:!1})},200)}})},function(t,e,i){"use strict";riot.tag2("material-footer",'<content select=".material-footer-sections"></content> <div class="mini-footer"> <content select=".material-footer-logo"></content> <content select=".material-footer-link-list"></content> </div> <yield></yeild>',"","",function(t){this.mixin("content")})},function(t,e,i){"use strict";riot.tag2("material-input",'<div class="label-placeholder"></div> <div class="{input-content:true,not-empty:value,error:error}"> <label for="input" ref="label" if="{opts.label}">{opts.label}</label> <input type="{opts.type||\'text\'}" disabled="{disabled}" placeholder="{opts.placeholder}" onkeyup="{changeValue}" riot-value="{value}" autocomplete="off" ref="{opts.ref||\'default-input\'}" required="{required}"> <div class="iconWrapper" ref="iconWrapper" if="{opts.icon}"> <material-button ref="iconButton" center="true" waves-center="true" waves-color="{opts[\'waves-color\']||\'#fff\'}" rounded="true" onclick="{iconClickHandler}" waves-opacity="{opts[\'waves-opacity\']||\'0.6\'}" waves-duration="{opts[\'waves-duration\']||\'600\'}"> <yield></yield> </material-button> </div> </div> <div class="{underline:true,focused:focused,error:error}"> <div class="unfocused-line"></div> <div class="focused-line"></div> </div>',"","",function(t){var e=this;if(this.opts=t,this.required="",this.name=t.ref||"input",this.notSupportedTypes=["date","color","datetime","month","range","time"],-1!=this.notSupportedTypes.indexOf(t.type))throw new Error("Sorry but we do not support "+t.type+" type yet!");this.update({showIcon:!1}),this.on("mount",function(){e.update({value:t.value||"",disabled:t.disabled||!1,required:t.required||!1}),e.n=t.ref||"default-input",e.refs[e.n].addEventListener("focus",e.changeFocus),e.refs[e.n].addEventListener("blur",e.changeFocus)}),this.changeFocus=function(i){if(e.disabled)return!1;e.update({focused:e.refs[e.n]==document.activeElement}),e.trigger("focusChanged",e.focused,i),t.focuschanged&&"function"==typeof t.focuschanged&&t.focuschanged(e.focused)},this.changeValue=function(i){e.update({value:e.refs[e.n].value}),e.trigger("valueChanged",e.refs[e.n].value,i),t.valuechanged&&"function"==typeof t.valuechanged&&t.valuechanged(e.refs[e.n].value)},this.iconClickHandler=function(t){e.opts.iconclicked&&"function"==typeof e.opts.iconclicked&&e.opts.iconclicked.call(e,t),e.trigger("iconclicked",t)},this.on("update",function(t){t&&void 0!=t.value&&e.validationType&&e.isValid(e.validate(t.value))}),this.isValid=function(t){e.update({error:!t})},this.mixin("validate")})},function(t,e,i){"use strict";riot.tag2("material-navbar",'<div class="nav-wrapper"> <yield></yield> </div>',"",'role="toolbar"',function(t){})},function(t,e,i){"use strict";riot.tag2("material-pane",'<material-navbar riot-style="height:{opts.materialNavbarHeight || \'60px\'};line-height: {opts.materialNavbarHeight || \'60px\'};background-color:{opts.materialNavbarColor || \'#ccc\'}"> <content select=".material-pane-left-bar"></content> <content select=".material-pane-title"></content> <content select=".material-pane-right-bar"></content> </material-navbar> <div class="content"> <content select=".material-pane-content"></content> <yield></yield> </div>',"","",function(t){this.mixin("content")})},function(t,e,i){"use strict";riot.tag2("material-popup",'<div ref="popup" class="{popup:true,opening:opening} {opts.animation || \'top\'}" if="{opened}"> <div class="content"> <content select=".material-popup-title"></content> <yield></yield> </div> <div select=".material-popup-action"></div> </div> <div class="overlay" onclick="{close}" if="{opened}"></div>',"","",function(t){var e=this;this.opened=t.opened||!1,this.on("mount",function(){document.body.appendChild(e.root)}),this.open=function(){e.update({opened:!0,opening:!0}),setTimeout(function(){e.update({opening:!1})},0)},this.close=function(){e.update({opening:!0}),setTimeout(function(){e.update({opened:!1})},200)},this.mixin("content")})},function(t,e,i){"use strict";riot.tag2("material-snackbar",'<div class="{toast:true,error:toast.isError,opening:toast.opening}" onclick="{parent.removeToastByClick}" each="{toast,key in toasts}"> {toast.message} </div>',"","",function(t){var e=this;this.toasts=[],this.intervals={},this.addToast=function(i,n){var o=e.toastID=Math.random().toString(36).substring(7);e.toasts.push(Object.assign(i,{opening:!0,_id:o})),e.update({toasts:e.toasts}),setTimeout(function(){e.toasts[e.findToastKeyByID(o)].opening=!1,e.update({toasts:e.toasts})},50),e.intervals[o]=setTimeout(function(){e.removeToast(o)},t.duration||n||5e3)},this.removeToastAfterDurationEnding=function(t){e.removeToast(t)},this.findToastKeyByID=function(t){var i=null;return e.toasts.forEach(function(e,n){e._id==t&&(i=n)}),i},this.removeToastByClick=function(t){var i=t.item.toast._id;clearInterval(e.intervals[i]),e.removeToast(i)},this.removeToast=function(t){null!=e.findToastKeyByID(t)&&(e.toasts[e.findToastKeyByID(t)].opening=!0,e.update({toasts:e.toasts}),setTimeout(function(){e.toasts.splice(e.findToastKeyByID(t),1),e.update({toasts:e.toasts})},200))}})},function(t,e,i){"use strict";riot.tag2("material-spinner",'<svg class="loader-circular" height="50" width="50"> <circle class="loader-path" cx="25" cy="25.2" r="19.9" fill="none" stroke-width="{opts.strokewidth||3}" stroke-miterlimit="10"></circle> </svg>',"","",function(t){})},function(module,exports,__webpack_require__){"use strict";riot.tag2("material-tabs",'<material-button each="{tab,k in tabs}" onclick="{parent.onChangeTab}" class="{selected:parent.selected==k}" waves-opacity="{parent.opts.wavesOpacity}" waves-duration="{parent.opts.wavesDuration}" waves-center="{parent.opts.wavesCenter}" waves-color="{parent.opts.wavesColor}"> <div class="text" title="{tab.title}">{parent.opts.cut ? parent.cut(tab.title) : tab.title}</div> </material-button> <div class="line-wrapper" if="{opts.useline}"> <div class="line" ref="line"></div> </div> <yield></yield>',"","",function(opts){var _this=this;if(this.selected=0,this.tabs=[],opts.tabs){var tabs=[];try{tabs=opts.tabs?eval(opts.tabs):[],this.tabs=tabs}catch(t){}}this.on("mount",function(){_this.setWidth(),_this.setLinePosition()}),this.setWidth=function(){[].forEach.call(_this.root.querySelectorAll("material-button"),function(t){t.style.width=_this.refs.line.style.width=(100/_this.tabs.length).toFixed(2)+"%"})},this.onChangeTab=function(t){var e=_this.tabs.indexOf(t.item.tab);_this.changeTab(e)},this.changeTab=function(t){_this.update({selected:t}),_this.setLinePosition(),_this.trigger("tabChanged",_this.tabs[t],t),opts.tabchanged&&"function"==typeof opts.tabchanged&&opts.tabchanged(_this.tabs[t],t)},this.setLinePosition=function(){_this.refs.line.style.left=(100/_this.tabs.length).toFixed(2)*_this.selected+"%"},this.cut=function(t){return t.length>opts.cut?t.substr(0,opts.cut)+"...":t}})},function(t,e,i){"use strict";riot.tag2("material-textarea",'<div class="label-placeholder"></div> <div class="{textarea-content:true,not-empty:value,error:error}"> <label for="textarea" ref="label" if="{opts.label}">{opts.label}</label> <div class="mirror" ref="mirror"></div> <div class="textarea-container"> <textarea disabled="{disabled}" onkeyup="{changeValue}" ref="{opts.ref||\'default-textarea\'}"></textarea> </div> </div> <div class="{underline:true,focused:focused,error:error}"> <div class="unfocused-line"></div> <div class="focused-line"></div> </div>',"","",function(t){var e=this;this.opts=t,this.disabled=t.disabled||!1,this.on("mount",function(){t.maxRows&&(e.refs.mirror.style.maxHeight=t.maxRows*e.refs[e.n].getBoundingClientRect().height+"px"),e.n=t.ref||"default-textarea",e.value=t.value||"",e.refs.mirror.innerHTML=e.format(e.value),e.refs[e.n].value=e.value,e.refs[e.n].scrollTop=e.refs[e.n].scrollHeight,e.refs[e.n].addEventListener("focus",e.changeFocus),e.refs[e.n].addEventListener("blur",e.changeFocus),e.refs[e.n].addEventListener("input",e.inputHandler),e.update({value:e.value})}),this.changeFocus=function(t){if(e.disabled)return!1;var i=e.refs[e.n]==document.activeElement;e.update({focused:i}),e.trigger("focusChanged",i)},this.inputHandler=function(t){var i=e.refs[e.n].value;e.refs.mirror.innerHTML=e.format(i),e.update({value:i})},this.changeValue=function(i){e.trigger("valueChanged",e.refs[e.n].value,i),t.valuechanged&&"function"==typeof t.valuechanged&&t.valuechanged(e.refs[e.n].value)},this.isValid=function(t){e.update({error:!t})},this.format=function(t){return t.replace(/\n/g,"<br/>&nbsp;")},this.on("update",function(t){t&&void 0!=t.value&&e.validationType&&e.isValid(e.validate(t.value))}),this.mixin("validate")})},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=i(0),r=function(t){return t&&t.__esModule?t:{default:t}}(s);riot.tag2("material-waves",'<div id="waves" ref="waves"></div>',"","",function(t){var e=this,i=function(t){function e(i,a,s){n(this,e);var r=o(this,t.call(this));return i||console.error("You should set container to the wave!"),r.container=i,r.maxOpacity=a.opacity||.6,r.duration=a.duration||750,r.color=a.color||"#fff",r.center=a.center||!1,r.event=s,r.containerBound=r.receiveBound(),r.maxScale=r.containerBound.size/100*10,r.created=Date.now(),r.start={},r.createNode(),r.waveIn(),r}return a(e,t),e.prototype.createNode=function(){this.wave=document.createElement("div"),this.wave.classList.add("wave"),this.container.appendChild(this.wave)},e.prototype.waveIn=function(){var t=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;var e=-1!==window.navigator.userAgent.indexOf("Trident");setTimeout(function(){return t.setStyles(t.maxOpacity)},e?50:0)},e.prototype.waveOut=function(t){var e=this,i=Date.now()-this.created,n=Math.round(this.duration/2)-i,o=n>0?n:0;setTimeout(function(){e.setStyles(0),setTimeout(function(){e.wave.parentNode===e.container&&(e.container.removeChild(e.wave),t())},e.duration)},o)},e.prototype.setStyles=function(t){this.wave.setAttribute("style",this.convertStyle({top:this.start.x+"px",left:this.start.y+"px",transform:"scale("+this.maxScale+")","transition-duration":this.duration+"ms","transition-timing-function":"cubic-bezier(0.250, 0.460, 0.450, 0.940)",background:this.color,opacity:t}))},e.prototype.convertStyle=function(t){var e="";return Object.keys(t).forEach(function(i){t.hasOwnProperty(i)&&(e+=i+":"+t[i]+";")}),e},e}(r.default);this._waves=[],this._events=[],this.on("launch",function(n){var o=new i(e.refs.waves,t,n);e._waves.push(o),e.trigger("wavestart",o),e.parent&&e.parent.opts&&e.parent.opts.wavestart&&e.parent.opts.wavestart(o),e._events.length||(e._events.push(n.target.addEventListener("mouseup",function(){return e.trigger("hold")})),e._events.push(n.target.addEventListener("mouseleave",function(){return e.trigger("hold")})))}),this.on("hold",function(){e._waves[e._waves.length-1]&&e._waves[e._waves.length-1].waveOut(e.waveOut),e._waves[e._waves.length-1]&&e._waves.slice(e._waves.length-1,1)}),this.waveOut=function(){e.trigger("waveend"),e.parent&&e.parent.opts&&e.parent.opts.waveend&&e.parent.opts.waveend()}})},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(){n(this,t)}return t.prototype.filter=function(t,e){return this[t].filter(function(t){var i=!1;return Object.keys(e).forEach(function(n){var o=e[n],a=new RegExp(""+o,"i");i=a.test(t[n])}),i})},t.prototype.find=function(t,e){var i={},n=0;return t.forEach(function(t){Object.keys(e).forEach(function(o){var a=e[o];t[o]==a&&(i.e=t,i.k=n)}),n++}),i},t}();e.default=o,riot.mixin("collection",o)},function(t,e,i){"use strict";var n={init:function(){var t=this;this.on("mount",function(){[].forEach.call(t.root.querySelectorAll("content"),function(e){var i=e.getAttribute("select");[].forEach.call(t.root.querySelectorAll(i),function(t){e.parentNode.insertBefore(t,e.nextSibling)}),e.parentNode.removeChild(e)})})}};riot.mixin("content",n)},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(){n(this,t)}return t.prototype.init=function(){var t=this;this.on("update",function(e){e&&t.dynamicAttributes&&t.dynamicAttributes.forEach(function(i){void 0!=e[i]&&t.root.setAttribute(i,e[i])})})},t}();e.default=o,riot.mixin("dynamicAttributes",o)},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(){n(this,t)}return t.prototype.findTag=function(t,e){var i=null;return t.forEach(function(t){t.root.getAttribute("name").toLowerCase()!=e.toLowerCase()&&t.root.tagName.toLowerCase()!=e.toLowerCase()&&t.root.getAttribute("ref").toLowerCase()!=e.toLowerCase()||(i=t)}),i},t.prototype.turnHyphensOptsToCamelCase=function(t){for(var e in t)if(/-/.test(e)){var i=e.replace(/-([a-z])/g,function(t){return t[1].toUpperCase()});t[i]=t[e],delete t[e]}},t}();e.default=o,riot.findTag=o.findTag,riot.mixin("helpers",o)},function(module,exports,__webpack_require__){"use strict";function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(exports,"__esModule",{value:!0});var _createClass=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),ValidateMixin=function(){function ValidateMixin(){_classCallCheck(this,ValidateMixin)}return ValidateMixin.prototype.init=function init(){if(this.opts||console.debug("Sorry, but for using validate mixin you should add following code in your component: this.opts = opts;"),this.opts&&this.opts.valid){if(this.validationType="function"==typeof this[this.opts.valid]?"Function":"Regexp","Regexp"===this.validationType)try{this.validationRegexp=eval(this.opts.valid)}catch(t){throw new Error("Something wrong with your regular expression!. Checkout --- "+t)}"Function"===this.validationType&&(this.validationFunction=this[this.opts.valid]||!1)}else this.opts&&-1!=Object.keys(this.base).indexOf(this.opts.type)&&(this.validationType="Type")},ValidateMixin.prototype.validate=function(t){return this.validationType?this["validateBy"+this.validationType](t):null},ValidateMixin.prototype.validateByFunction=function(t){if(this.validationFunction)return this.validationFunction(t)},ValidateMixin.prototype.validateByRegexp=function(t){if(this.validationRegexp)return this.validationRegexp.test(t)},ValidateMixin.prototype.validateByType=function(t){return this.base[this.opts.type].test(t)},_createClass(ValidateMixin,[{key:"base",get:function(){return{email:/^(([\w\.\-_]+)@[\w\-\_]+(\.\w+){1,}|)$/i,number:/^(\d+|)$/i,tel:/^((\+|\d)?([\d\-\(\)\#])|)+$/i,url:/([--:\w?@%&+~#=]*\.[a-z]{2,4}\/{0,2})((?:[?&](?:\w+)=(?:\w+))+|[--:\w?@%&+~#=]+)?/i}}}]),ValidateMixin}();exports.default=ValidateMixin,riot.mixin("validate",ValidateMixin)},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e,i){"use strict";i(0),i(17),i(18),i(19),i(20),i(21),i(1),i(2),i(3),i(4),i(6),i(5),i(8),i(9),i(10),i(11),i(12),i(13),i(14),i(15),i(16),i(7),i(22),i(23),i(24),i(25),i(27),i(26),i(29),i(30),i(31),i(32),i(33),i(34),i(35),i(36),i(37),i(28)}]);