/*
 * Copyright (C) 2016-2021 Jones Magloire @Joxit
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 * @license AGPL
 */
!function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function p(e,t,n){return(p=c()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var a=new(Function.bind.apply(e,r));return n&&l(a,n.prototype),a}).apply(null,arguments)}function d(e){var t="function"==typeof Map?new Map:void 0;return(d=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return p(e,arguments,u(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),l(r,e)})(e)}function f(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e,t){return v(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||x(e,t)||T()}function h(e){return v(e)||y(e)||x(e)||T()}function g(e){return function(e){if(Array.isArray(e))return b(e)}(e)||y(e)||x(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e){if(Array.isArray(e))return e}function y(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function x(e,t){if(e){if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function T(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function E(e,t){E=function(e,t){return new i(e,void 0,t)};var n=d(RegExp),r=RegExp.prototype,a=new WeakMap;function i(e,t,r){var i=n.call(this,e,t);return a.set(i,r||a.get(e)),i}function o(e,t){var n=a.get(t);return Object.keys(n).reduce((function(t,r){return t[r]=e[n[r]],t}),Object.create(null))}return s(i,n),i.prototype.exec=function(e){var t=r.exec.call(this,e);return t&&(t.groups=o(t,this)),t},i.prototype[Symbol.replace]=function(e,t){if("string"==typeof t){var n=a.get(this);return r[Symbol.replace].call(this,e,t.replace(/\$<([^>]+)>/g,(function(e,t){return"$"+n[t]})))}if("function"==typeof t){var i=this;return r[Symbol.replace].call(this,e,(function(){var e=[];return e.push.apply(e,arguments),"object"!=typeof e[e.length-1]&&e.push(o(e,i)),t.apply(this,e)}))}return r[Symbol.replace].call(this,e,t)},E.apply(this,arguments)}var A,w,C,N;
/* Riot v5.3.1, @license MIT */function I(e){return e.replace(/-(\w)/g,(function(e,t){return t.toUpperCase()}))}function R(e,t){e.firstChild&&(t.appendChild(e.firstChild),R(e,t))}function k(e){Array.from(e).forEach(U)}var U=function(e){return e&&e.parentNode&&e.parentNode.removeChild(e)},O=function(e,t){return t&&t.parentNode&&t.parentNode.insertBefore(e,t)},S=new Map,B=Symbol("riot-component"),L=new Set,D="is",j="mount",_="update",M="unmount",P="shouldUpdate",G="onBeforeMount",V="onMounted",z="onBeforeUpdate",$="onUpdated",H="onBeforeUnmount",F="onUnmounted",q="props",K="state",W="slots",X="root",Y=Symbol("pure"),Q=Symbol("is_updating"),J=Symbol("parent"),Z=Symbol("attributes"),ee=Symbol("template"),te=Object.freeze({__proto__:null,COMPONENTS_IMPLEMENTATION_MAP:S,DOM_COMPONENT_INSTANCE_PROPERTY:B,PLUGINS_SET:L,IS_DIRECTIVE:D,VALUE_ATTRIBUTE:"value",MOUNT_METHOD_KEY:j,UPDATE_METHOD_KEY:_,UNMOUNT_METHOD_KEY:M,SHOULD_UPDATE_KEY:P,ON_BEFORE_MOUNT_KEY:G,ON_MOUNTED_KEY:V,ON_BEFORE_UPDATE_KEY:z,ON_UPDATED_KEY:$,ON_BEFORE_UNMOUNT_KEY:H,ON_UNMOUNTED_KEY:F,PROPS_KEY:q,STATE_KEY:K,SLOTS_KEY:W,ROOT_KEY:X,IS_PURE_SYMBOL:Y,IS_COMPONENT_UPDATING:Q,PARENT_KEY_SYMBOL:J,ATTRIBUTES_KEY_SYMBOL:Z,TEMPLATE_KEY_SYMBOL:ee}),ne={EACH:0,IF:1,SIMPLE:2,TAG:3,SLOT:4},re={ATTRIBUTE:0,EVENT:1,TEXT:2,VALUE:3},ae=Symbol("head"),ie=Symbol("tail");function oe(e){var t=e.dom.cloneNode(!0),n=function(){var e=document.createComment("fragment head"),t=document.createComment("fragment tail");return e[ae]=!0,t[ie]=!0,{head:e,tail:t}}(),r=n.head,a=n.tail;return{avoidDOMInjection:!0,fragment:t,head:r,tail:a,children:[r].concat(g(Array.from(t.childNodes)),[a])}}function se(e){var t=e.head,n=e.tail,r=ue([t],t.nextSibling,(function(e){return e===n}),!1);return r.push(n),r}function ue(e,t,n,r){var a=t.nextSibling;return r||t[ae]||t[ie]||e.push(t),!a||n(t)?e:ue(e,a,n,r&&!t[ie]||a[ae])}function le(t,n){return e(t)===n}function ce(e){var t=e.ownerSVGElement;return!!t||null===t}function pe(e){return!me(e.content)}function de(e){return le(e,"function")}function fe(e){return!me(e)&&e.constructor===Object}function me(e){return null==e}var he=Symbol("unmount"),ge={nodes:[],mount:function(e,t){return this.update(e,t)},update:function(e,t){var n=this.placeholder,r=this.nodes,a=this.childrenMap,i=e===he?null:this.evaluate(e),o=function(e,t,n,r){var a=r.condition,i=r.template,o=r.childrenMap,s=r.itemName,u=r.getKey,l=r.indexName,c=r.root,p=r.isTemplateTag,d=new Map,f=[],m=[];return e.forEach((function(e,r){var h=function(e,t){var n=t.itemName,r=t.indexName,a=t.index,i=t.item;e[n]=i,r&&(e[r]=a);return e}(Object.create(t),{itemName:s,indexName:l,index:r,item:e}),v=u?u(h):r,y=o.get(v),x=[];if(!function(e,t){return!!e&&!1===Boolean(e(t))}(a,h)){var b=!y,T=y?y.template:i.clone(),E=T.el||c.cloneNode(),A=p&&b?oe(T):T.meta;b?f.push((function(){return T.mount(E,h,n,A)})):f.push((function(){return T.update(h,n)})),p?x.push.apply(x,g(b?A.children:se(A))):x.push(E),o.delete(v),m.push.apply(m,x),d.set(v,{nodes:x,template:T,context:h,index:r})}})),{newChildrenMap:d,batches:f,futureNodes:m}}(i?Array.from(i):[],e,t,this),s=o.newChildrenMap,u=o.batches,l=o.futureNodes;return function(e,t,n,r){for(var a,i,o=t.length,s=e.length,u=o,l=0,c=0,p=null;l<s||c<u;)if(s===l)for(var d=u<o?c?n(t[c-1],-0).nextSibling:n(t[u-c],0):r;c<u;)O(n(t[c++],1),d);else if(u===c)for(;l<s;)p&&p.has(e[l])||U(n(e[l],-1)),l++;else if(e[l]===t[c])l++,c++;else if(e[s-1]===t[u-1])s--,u--;else if(e[l]===t[u-1]&&t[c]===e[s-1]){var f=n(e[--s],-1).nextSibling;O(n(t[c++],1),n(e[l++],-1).nextSibling),O(n(t[--u],1),f),e[s]=t[u]}else{if(!p){p=new Map;for(var m=c;m<u;)p.set(t[m],m++)}if(p.has(e[l])){var h=p.get(e[l]);if(c<h&&h<u){for(var g=l,v=1;++g<s&&g<u&&p.get(e[g])===h+v;)v++;if(v>h-c)for(var y=n(e[l],0);c<h;)O(n(t[c++],1),y);else a=n(t[c++],1),(i=n(e[l++],-1))&&i.parentNode&&i.parentNode.replaceChild(a,i)}else l++}else U(n(e[l++],-1))}}(r,l,function(e,t){return function(n,r){if(r<0){var a=e[e.length-1];if(a){var i=a.template,o=a.nodes,s=a.context;o.pop(),0===o.length&&(e.pop(),i.unmount(s,t,null))}}return n}}(Array.from(a.values()),t),n),u.forEach((function(e){return e()})),this.childrenMap=s,this.nodes=l,function(e){var t=e[0],n=e[e.length-1];t&&(t[ae]=!0);n&&(n[ie]=!0)}(this.nodes),this},unmount:function(e,t){return this.update(he,t),this}};var ve={mount:function(e,t){return this.update(e,t)},update:function(e,t){var n,r=this,a=!!this.evaluate(e),i=!this.value&&a,o=this.value&&!a;switch(!0){case i:n=r.node.cloneNode(),O(n,r.placeholder),r.template=r.template.clone(),r.template.mount(n,e,t);break;case o:this.unmount(e);break;default:a&&this.template.update(e,t)}return this.value=a,this},unmount:function(e,t){return this.template.unmount(e,t,!0),this}};function ye(e){throw new Error(e)}function xe(e){var t=this,n=new Map,r=function(r){return(n.has(r)||n.set(r,e.call(t,r)))&&n.get(r)};return r.cache=n,r}function be(e){return e.reduce((function(e,t){var n=t.value,r=t.type;switch(!0){case!t.name&&0===r:return Object.assign({},e,n);case 3===r:e.value=t.value;break;default:e[I(t.name)]=t.value}return e}),{})}var Te="removeAttribute",Ee="setAttribute",Ae="undefined"==typeof Element?{}:Element.prototype,we=xe((function(e){return Ae.hasOwnProperty(e)}));function Ce(e,t,n,r){var a=t.name;if(!a)return r&&function(e,t,n){var r=t?Object.keys(t):[];Object.keys(n).filter((function(e){return!r.includes(e)})).forEach((function(t){return e.removeAttribute(t)}))}(e,n,r),void(n&&function(e,t){Object.entries(t).forEach((function(t){var n=m(t,2),r=n[0],a=n[1];return Ce(e,{name:r},a)}))}(e,n));!we(a)&&(function(e){return le(e,"boolean")}(n)||fe(n)||de(n))&&(e[a]=n),e[function(e){return me(e)||!1===e||""===e||fe(e)||de(e)?Te:Ee}(n)](a,function(e,t){return!0===t?e:t}(a,n))}var Ne=/^on/,Ie={handleEvent:function(e){this[e.type](e)}},Re=new WeakMap;function ke(e){return me(e)?"":e}var Ue=function(e,t){var n=e.childNodes[t];if(n.nodeType===Node.COMMENT_NODE){var r=document.createTextNode("");return e.replaceChild(r,n),r}return n};var Oe=(a(A={},0,Ce),a(A,1,(function(e,t,n){var r=t.name.replace(Ne,""),a=Re.get(e)||function(e){var t=Object.create(Ie);return Re.set(e,t),t}(e),i=m(function(e){return Array.isArray(e)?e:[e,!1]}(n),2),o=i[0],s=i[1],u=a[r],l=o&&!u;u&&!o&&e.removeEventListener(r,a),l&&e.addEventListener(r,a,s),a[r]=o})),a(A,2,(function(e,t,n){e.data=ke(n)})),a(A,3,(function(e,t,n){e.value=ke(n)})),A),Se={mount:function(e){return this.value=this.evaluate(e),Be(this,this.value),this},update:function(e){var t=this.evaluate(e);return this.value!==t&&(Be(this,t),this.value=t),this},unmount:function(){return 1===this.type&&Be(this,null),this}};function Be(e,t){return Oe[e.type](e.node,e,t,e.value)}function Le(e,t){return Object.assign({},Se,t,{node:2===t.type?Ue(e,t.childNodeIndex):e})}var De=function(e,t){return e[J]||t},je={attributes:[],getTemplateScope:function(e,t){return function(e,t,n){if(!e||!e.length)return n;var r=e.map((function(e){return Object.assign({},e,{value:e.evaluate(t)})}));return Object.assign(Object.create(n||null),be(r))}(this.attributes,e,t)},mount:function(e,t){var n=this,r=!!e.slots&&e.slots.find((function(e){return e.id===n.name})),a=this.node.parentNode,i=De(e,t);return this.template=r&&Fe(r.html,r.bindings).createDOM(a),this.template&&(this.template.mount(this.node,this.getTemplateScope(e,i),i),this.template.children=Array.from(this.node.childNodes),_e(this.node)),U(this.node),this},update:function(e,t){if(this.template){var n=De(e,t);this.template.update(this.getTemplateScope(e,n),n)}return this},unmount:function(e,t,n){return this.template&&this.template.unmount(this.getTemplateScope(e,t),null,n),this}};function _e(e){var t=e&&e.firstChild;t&&(O(t,e),_e(e))}var Me={mount:function(e){return this.update(e)},update:function(e,t){var n=this.evaluate(e);return n===this.name?this.tag.update(e):(this.unmount(e,t,!0),this.name=n,this.tag=function(e,t,n){return void 0===t&&(t=[]),void 0===n&&(n=[]),e?e({slots:t,attributes:n}):Fe(function(e){return e.reduce((function(e,t){return e+t.html}),"")}(t),[].concat(g(function(e){return e.reduce((function(e,t){var n=t.bindings;return e.concat(n)}),[])}(t)),[{expressions:n.map((function(e){return Object.assign({type:0},e)}))}]))}(this.getComponent(n),this.slots,this.attributes),this.tag.mount(this.node,e)),this},unmount:function(e,t,n){return this.tag&&this.tag.unmount(n),this}};var Pe=(a(w={},1,(function(e,t){var n=t.evaluate,r=t.template,a=document.createTextNode("");return O(a,e),U(e),Object.assign({},ve,{node:e,evaluate:n,placeholder:a,template:r.createDOM(e)})})),a(w,2,(function(e,t){var n,r,i=t.expressions;return Object.assign({},(n=i.map((function(t){return Le(e,t)})),["mount","update","unmount"].reduce((function(e,t){return Object.assign({},e,a({},t,(function(e){return n.map((function(n){return n[t](e)}))&&r})))}),{})))})),a(w,0,(function(e,t){var n=t.evaluate,r=t.condition,a=t.itemName,i=t.indexName,o=t.getKey,s=t.template,u=document.createTextNode(""),l=e.cloneNode();return O(u,e),U(e),Object.assign({},ge,{childrenMap:new Map,node:e,root:l,condition:r,evaluate:n,isTemplateTag:pe(l),template:s.createDOM(e),getKey:o,indexName:i,itemName:a,placeholder:u})})),a(w,3,(function(e,t){var n=t.evaluate,r=t.getComponent,a=t.slots,i=t.attributes;return Object.assign({},Me,{node:e,evaluate:n,slots:a,attributes:i,getComponent:r})})),a(w,4,(function(e,t){var n=t.name,r=t.attributes;return Object.assign({},je,{attributes:r,node:e,name:n})})),w);function Ge(e,t){return e.map((function(e){return 2===e.type?Object.assign({},e,{childNodeIndex:e.childNodeIndex+t}):e}))}function Ve(e,t,n){var r=t.selector,a=t.type,i=t.redundantAttribute,o=t.expressions,s=r?e.querySelector(r):e;i&&s.removeAttribute(i);var u=o||[];return(Pe[a]||Pe[2])(s,Object.assign({},t,{expressions:n&&!r?Ge(u,n):u}))}function ze(e,t){return ce(e)?function(e,t){return t.ownerDocument.importNode((new window.DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg">'.concat(e,"</svg>"),"application/xml").documentElement,!0)}(t,e):function(e,t){var n=pe(t)?t:document.createElement("template");return n.innerHTML=e,n.content}(t,e)}function $e(e,t){switch(!0){case ce(e):R(t,e);break;case pe(e):e.parentNode.replaceChild(t,e);break;default:e.appendChild(t)}}var He=Object.freeze({createDOM:function(e){return this.dom=this.dom||function(e,t){return t&&("string"==typeof t?ze(e,t):t)}(e,this.html),this},mount:function(e,t,n,r){var a=this;if(void 0===r&&(r={}),!e)throw new Error("Please provide DOM node to mount properly your template");this.el&&this.unmount(t);var i=r,o=i.fragment,s=i.children,u=i.avoidDOMInjection,l=(s?s[0]:e).parentNode,c=pe(e),p=c?Math.max(Array.from(l.childNodes).indexOf(e),0):null;return this.isTemplateTag=c,this.createDOM(e),this.dom&&(this.fragment=o||this.dom.cloneNode(!0)),this.el=this.isTemplateTag?l:e,this.children=this.isTemplateTag?s||Array.from(this.fragment.childNodes):null,!u&&this.fragment&&$e(e,this.fragment),this.bindings=this.bindingsData.map((function(e){return Ve(a.el,e,p)})),this.bindings.forEach((function(e){return e.mount(t,n)})),this.meta=r,this},update:function(e,t){return this.bindings.forEach((function(n){return n.update(e,t)})),this},unmount:function(e,t,n){if(this.el){switch(this.bindings.forEach((function(r){return r.unmount(e,t,n)})),!0){case this.el[Y]:break;case this.children&&null!==n:k(this.children);break;case!0===n:U(this.el);break;case null!==n:k(this.el.childNodes)}this.el=null}return this},clone:function(){return Object.assign({},this,{meta:{},el:null})}});function Fe(e,t){return void 0===t&&(t=[]),Object.assign({},He,{html:e,bindingsData:t})}var qe=Object.freeze({__proto__:null,template:Fe,createBinding:Ve,createExpression:Le,bindingTypes:ne,expressionTypes:re});function Ke(){return this}function We(e){return de(e)?e.prototype&&e.prototype.constructor?new e:e():e}function Xe(e,t,n,r){return void 0===r&&(r={}),Object.defineProperty(e,t,Object.assign({value:n,enumerable:!1,writable:!1,configurable:!0},r)),e}function Ye(e,t,n){return Object.entries(t).forEach((function(t){var r=m(t,2),a=r[0],i=r[1];Xe(e,a,i,n)})),e}function Qe(e,t){return Object.entries(t).forEach((function(t){var n=m(t,2),r=n[0],a=n[1];e[r]||(e[r]=a)})),e}function Je(e){return Array.isArray(e)?e:/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(e))&&"number"==typeof e.length?Array.from(e):[e]}function Ze(e,t){return Je("string"==typeof e?(t||document).querySelectorAll(e):e)}var et=function(e){return 1===e.length?e[0]:e};function tt(t,n,r){var i="object"===e(n)?n:a({},n,r),o=Object.keys(i);return Je(t).forEach((function(e){o.forEach((function(t){return e.setAttribute(t,i[t])}))})),t}function nt(e,t){return function(e,t,n){var r="string"==typeof t?[t]:t;return et(Je(e).map((function(e){return et(r.map((function(t){return e[n](t)})))})))}(e,t,"getAttribute")}var rt,at=new Map,it=function(){return rt||(tt(rt=Ze("style[riot]")[0]||document.createElement("style"),"type","text/css"),rt.parentNode||document.head.appendChild(rt),rt)},ot={CSS_BY_NAME:at,add:function(e,t){return at.has(e)||(at.set(e,t),this.inject()),this},inject:function(){return it().innerHTML=g(at.values()).join("\n"),this},remove:function(e){return at.has(e)&&(at.delete(e),this.inject()),this}};function st(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return(r=[].concat(n,g(r))).length<e.length?st.apply(void 0,[e].concat(g(r))):e.apply(void 0,g(r))}}var ut=Object.freeze({$:function(e){return Ze(e,this.root)[0]},$$:function(e){return Ze(e,this.root)}}),lt=Object.freeze((a(C={},j,Ke),a(C,_,Ke),a(C,M,Ke),C)),ct=Object.freeze((a(N={},P,Ke),a(N,G,Ke),a(N,V,Ke),a(N,z,Ke),a(N,$,Ke),a(N,H,Ke),a(N,F,Ke),N)),pt=Object.assign({},lt,{clone:Ke,createDOM:Ke}),dt=xe(vt);function ft(e,t){return void 0===t&&(t={}),Object.assign({},function(e){return Array.from(e.attributes).reduce((function(e,t){return e[I(t.name)]=t.value,e}),{})}(e),We(t))}var mt=function(e,t){return e[B]=t};function ht(e){return[j,_,M].reduce((function(t,n){return t[n]=e(n),t}),{})}function gt(e,t){var n=function(e){void 0===e&&(e={});return Object.entries(We(e)).reduce((function(e,t){var n,r=m(t,2),a=r[0],i=r[1];return e[(n=a,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())]=vt(i),e}),{})}(t.exports?t.exports.components:{});return e(Fe,re,ne,(function(e){return e===t.name?dt(t):n[e]||S.get(e)}))}function vt(e){var t=e.css,n=e.template,r=e.exports,a=e.name,i=n?gt(n,e):pt;return function(e){var o=e.slots,s=e.attributes,u=e.props;if(r&&r[Y])return function(e,t){var n=t.slots,r=t.attributes,a=t.props,i=t.css;t.template&&ye("Pure components can not have html"),i&&ye("Pure components do not have css");var o=Qe(e({slots:n,attributes:r,props:a}),lt);return ht((function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(e===j){var a=n[0];a[Y]=!0,mt(a,o)}return o[e].apply(o,n),o}}))}(r,{slots:o,attributes:s,props:u,css:t,template:n});var l=We(r)||{},c=yt({css:t,template:i,componentAPI:l,name:a})({slots:o,attributes:s,props:u});return{mount:function(e,t,n){return c.mount(e,n,t)},update:function(e,t){return c.update(t,e)},unmount:function(e){return c.unmount(e)}}}}function yt(e){var t,n=e.css,r=e.template,i=e.componentAPI,o=e.name;return n&&o&&ot.add(o,n),st(Tt)(Ye(Qe(i,Object.assign({},ct,a({},K,{}))),Object.assign((a(t={},W,null),a(t,X,null),t),ut,{name:o,css:n,template:r})))}function xt(e,t){return Object.assign({},e,We(t))}function bt(e,t){(function(e){return nt(e,D)||e.tagName.toLowerCase()})(e)!==t&&tt(e,D,t)}function Tt(e,t){var n,r=t.slots,a=t.attributes,i=t.props;return n=function(e){return g(L).reduce((function(e,t){return t(e)||e}),e)}(Ye(fe(e)?Object.create(e):e,{mount:function(t,n,o){return void 0===n&&(n={}),this[Z]=function(e,t){void 0===t&&(t=[]);var n=t.map((function(t){return Le(e,t)})),r={};return Object.assign(r,Object.assign({expressions:n},ht((function(e){return function(t){return n.forEach((function(n){return n[e](t)})),r}}))))}(t,a).mount(o),Xe(this,q,Object.freeze(Object.assign({},ft(t,i),be(this[Z].expressions)))),this.state=xt(this.state,n),this[ee]=this.template.createDOM(t).clone(),mt(t,this),e.name&&bt(t,e.name),Xe(this,X,t),Xe(this,W,r),this.onBeforeMount(this.props,this.state),this[J]=o,this[ee].mount(t,this,o),this.onMounted(this.props,this.state),this},update:function(e,t){void 0===e&&(e={}),t&&(this[J]=t,this[Z].update(t));var n=be(this[Z].expressions);if(!1!==this.shouldUpdate(n,this.props))return Xe(this,q,Object.freeze(Object.assign({},this.props,n))),this.state=xt(this.state,e),this.onBeforeUpdate(this.props,this.state),this[Q]||(this[Q]=!0,this[ee].update(this,this[J])),this.onUpdated(this.props,this.state),this[Q]=!1,this},unmount:function(e){return this.onBeforeUnmount(this.props,this.state),this[Z].unmount(),this[ee].unmount(this,this[J],null===e?null:!e),this.onUnmounted(this.props,this.state),this}})),Object.keys(e).filter((function(t){return de(e[t])})).forEach((function(e){n[e]=n[e].bind(n)})),n}te.DOM_COMPONENT_INSTANCE_PROPERTY;var Et=te.COMPONENTS_IMPLEMENTATION_MAP;function At(e,t){var n=t.css,r=t.template,a=t.exports;return Et.has(e)&&ye('The component "'.concat(e,'" was already registered')),Et.set(e,vt({name:e,css:n,template:r,exports:a})),Et}te.PLUGINS_SET;var wt={cssManager:ot,DOMBindings:qe,createComponent:vt,defineComponent:yt,globals:te},Ct={css:null,exports:{onMounted(){this.disabled=""===this.props.disabled||this.props.disabled||!1;const e=this.props.onClick||this.props.onclick;this.root.onclick=t=>{this.props.link&&(window.location.href=this.props.link),"function"==typeof e&&e(t)}},onWaveStart(e){"function"==typeof this.props.onWaveStart&&this.props.onWaveStart(e)},onWaveEnd(e){"function"==typeof this.props.onWaveEnd&&this.props.onWaveEnd(e)}},template:function(e,t,n,r){return e('<material-waves expr502="expr502"></material-waves><div class="content"><slot expr503="expr503"></slot></div>',[{type:n.TAG,getComponent:r,evaluate:function(e){return"material-waves"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"center",evaluate:function(e){return e.props.wavesCenter}},{type:t.ATTRIBUTE,name:"rounded",evaluate:function(e){return e.props.rounded}},{type:t.ATTRIBUTE,name:"opacity",evaluate:function(e){return e.props.wavesOpacity}},{type:t.ATTRIBUTE,name:"color",evaluate:function(e){return e.props.wavesColor}},{type:t.ATTRIBUTE,name:"duration",evaluate:function(e){return e.props.wavesDuration}},{type:t.EVENT,name:"onWaveStart",evaluate:function(e){return e.onWaveStart}},{type:t.EVENT,name:"onWaveEnd",evaluate:function(e){return e.onWaveEnd}}],redundantAttribute:"expr502",selector:"[expr502]"},{type:n.SLOT,attributes:[],name:"default",redundantAttribute:"expr503",selector:"[expr503]"}])},name:"material-button"},Nt={css:null,exports:{state:{titleExist:!0},onMounted(e,t){const n=this.$(".title");n.children&&0!==n.children.length||this.update({titleExist:!1})}},template:function(e,t,n,r){return e('<div expr504="expr504" class="title"></div><slot expr506="expr506"></slot>',[{type:n.IF,evaluate:function(e){return e.state.titleExist},redundantAttribute:"expr504",selector:"[expr504]",template:e('<slot expr505="expr505" name="title"></slot>',[{type:n.SLOT,attributes:[],name:"title",redundantAttribute:"expr505",selector:"[expr505]"}])},{type:n.SLOT,attributes:[],name:"default",redundantAttribute:"expr506",selector:"[expr506]"}])},name:"material-card"},It={css:null,exports:{onBeforeMount(e,t){t.checked=void 0!==e.checked?e.checked:t.checked},onBeforeUpdate(e,t){t.checked=void 0!==e.checked?e.checked:t.checked},onChange(e){"function"==typeof this.props.onChange&&this.props.onChange(!this.state.checked,e),this.update({checked:!this.state.checked})}},template:function(e,t,n,r){return e('<div expr507="expr507"><div class="checkmark"></div></div><div expr508="expr508" class="label"><slot expr509="expr509"></slot></div><input expr510="expr510" type="hidden"/>',[{redundantAttribute:"expr507",selector:"[expr507]",expressions:[{type:t.ATTRIBUTE,name:"class",evaluate:function(e){return["checkbox ",e.state.checked?"checked":""].join("")}},{type:t.EVENT,name:"onclick",evaluate:function(e){return e.onChange}}]},{redundantAttribute:"expr508",selector:"[expr508]",expressions:[{type:t.EVENT,name:"onclick",evaluate:function(e){return e.onChange}}]},{type:n.SLOT,attributes:[],name:"default",redundantAttribute:"expr509",selector:"[expr509]"},{redundantAttribute:"expr510",selector:"[expr510]",expressions:[{type:t.VALUE,evaluate:function(e){return e.state.checked}}]}])},name:"material-checkbox"},Rt={css:null,exports:{state:{opening:!1,opened:!1},onMounted(){this.state.opened=this.props.opened||!1,this.props.selected&&this.update({selected:props.selected})},onBeforeUpdate(e,t){e.opened!==t.opened&&(t.opening=!0)},onUpdated(e,t){t.opening&&setTimeout((()=>{this.update({opening:!1,opened:e.opened})}),e.opened?0:200)},select({item:e,key:t}){return this.update({selected:t}),"function"==typeof this.props.onSelect&&this.props.onSelect(t,e),!0}},template:function(e,t,n,r){return e('<ul expr517="expr517"></ul>',[{type:n.IF,evaluate:function(e){return e.state.opening||e.state.opened},redundantAttribute:"expr517",selector:"[expr517]",template:e('<li expr518="expr518"></li>',[{expressions:[{type:t.ATTRIBUTE,name:"class",evaluate:function(e){return["dropdown-content ",e.state.opening?"opening":""].join("")}}]},{type:n.EACH,getKey:null,condition:null,template:e('<span expr519="expr519"></span><a expr520="expr520"></a>',[{expressions:[{type:t.ATTRIBUTE,name:"class",evaluate:function(e){return e.props.selected==e.key?"selected":""}}]},{type:n.IF,evaluate:function(e){return!e.item.link},redundantAttribute:"expr519",selector:"[expr519]",template:e(" ",[{expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return e.item.title}},{type:t.EVENT,name:"onclick",evaluate:function(e){return e.select.bind(null,{item:e.item,key:e.key})}}]}])},{type:n.IF,evaluate:function(e){return e.item.link},redundantAttribute:"expr520",selector:"[expr520]",template:e(" ",[{expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return e.item.title}},{type:t.ATTRIBUTE,name:"href",evaluate:function(e){return e.item.link}},{type:t.EVENT,name:"onclick",evaluate:function(e){return e.select(e.item)}},{type:t.ATTRIBUTE,name:"title",evaluate:function(e){return e.item.title}}]}])}]),redundantAttribute:"expr518",selector:"[expr518]",itemName:"item",indexName:"key",evaluate:function(e){return e.props.items}}])}])},name:"material-dropdown-list"},kt={css:null,exports:{onMounted(e,t){this.updateClasses()},onUpdated(e,t){this.updateClasses()},updateClasses(){const e=this.$(".mini-footer");for(let e=0;e<this.root.children.length;e++)this.updateClass(this.root.children[e]);if(e)for(let t=0;t<e.children.length;t++)this.updateClass(e.children[t])},updateClass(e){e.slot&&e.slot.length>0&&e.classList.add(`material-footer-${e.slot}`)}},template:function(e,t,n,r){return e('<slot expr511="expr511" name="sections"></slot><div class="mini-footer"><slot expr512="expr512" name="logo"></slot><slot expr513="expr513" name="link-list"></slot></div><slot expr514="expr514"></slot>',[{type:n.SLOT,attributes:[],name:"sections",redundantAttribute:"expr511",selector:"[expr511]"},{type:n.SLOT,attributes:[],name:"logo",redundantAttribute:"expr512",selector:"[expr512]"},{type:n.SLOT,attributes:[],name:"link-list",redundantAttribute:"expr513",selector:"[expr513]"},{type:n.SLOT,attributes:[],name:"default",redundantAttribute:"expr514",selector:"[expr514]"}])},name:"material-footer"},Ut=function(){function e(n){if(t(this,e),n||console.debug("Sorry, but for using validate mixin you should add an opts argument"),this.type=n.type,n.valid){if(this.validationType="function"==typeof this[n.valid]?"Function":"Regexp","Regexp"===this.validationType)try{this.validationRegexp=new RegExp(n.valid)}catch(e){throw new Error("Something wrong with your regular expression!. Checkout --- ".concat(e))}"Function"===this.validationType&&(this.validationFunction=this[n.valid]||!1)}else n&&-1!=Object.keys(this.base).indexOf(this.type)&&(this.validationType="Type")}return r(e,[{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}}},{key:"validate",value:function(e){return!this.validationType||this["validateBy"+this.validationType](e)}},{key:"validateByFunction",value:function(e){if(this.validationFunction)return this.validationFunction(e)}},{key:"validateByRegexp",value:function(e){if(this.validationRegexp)return this.validationRegexp.test(e)}},{key:"validateByType",value:function(e){return this.base[this.type].test(e)}}]),e}(),Ot={css:null,exports:{state:{focused:!1,showIcon:!1,value:"",disabled:!1,required:!1,error:!1},onMounted(){if(this.required="",this.notSupportedTypes=["date","color","datetime","month","range","time"],-1!=this.notSupportedTypes.indexOf(this.props.type))throw new Error(`Sorry but we do not support ${this.props.type} type yet!`);this.validator=new Ut(this.props),this.update({showIcon:!1,value:this.props.value||"",disabled:""===this.props.disabled||this.props.disabled||!1,required:""===this.props.required||this.props.required||!1}),this.$("input").addEventListener("focus",this.changeFocus),this.$("input").addEventListener("blur",this.changeFocus)},onBeforeUpdate(e,t){this.state.error=0!==t.value.length&&!this.validator.validate(t.value)},changeFocus(e){if(this.disabled)return!1;this.update({focused:this.$("input")==document.activeElement}),this.props.focuschanged&&"function"==typeof this.props.focuschanged&&this.props.focuschanged(this.focused,e)},changeValue(e){this.update({value:this.$("input").value}),this.props.valuechanged&&"function"==typeof this.props.valuechanged&&this.props.valuechanged(this.$("input").value,e)},iconClickHandler(e){this.props.iconclicked&&"function"==typeof this.props.iconclicked&&this.props.iconclicked.call(this,e)}},template:function(e,t,n,r){return e('<div class="label-placeholder"></div><div expr522="expr522"><label expr523="expr523" for="input"></label><input expr524="expr524" autocomplete="off"/><div expr525="expr525" class="iconWrapper"></div></div><div expr528="expr528"><div class="unfocused-line"></div><div class="focused-line"></div></div>',[{redundantAttribute:"expr522",selector:"[expr522]",expressions:[{type:t.ATTRIBUTE,name:"class",evaluate:function(e){return["input-content ",e.state.value?"not-empty":null," ",e.state.error?"error":null].join("")}}]},{type:n.IF,evaluate:function(e){return e.props.label},redundantAttribute:"expr523",selector:"[expr523]",template:e(" ",[{expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return e.props.label}}]}])},{redundantAttribute:"expr524",selector:"[expr524]",expressions:[{type:t.ATTRIBUTE,name:"type",evaluate:function(e){return e.props.type||"text"}},{type:t.ATTRIBUTE,name:"disabled",evaluate:function(e){return e.state.disabled}},{type:t.ATTRIBUTE,name:"placeholder",evaluate:function(e){return e.props.placeholder}},{type:t.EVENT,name:"onkeyup",evaluate:function(e){return e.changeValue}},{type:t.VALUE,evaluate:function(e){return e.state.value}},{type:t.ATTRIBUTE,name:"required",evaluate:function(e){return e.state.required}}]},{type:n.IF,evaluate:function(e){return e.props.icon},redundantAttribute:"expr525",selector:"[expr525]",template:e('<material-button expr526="expr526" center="true" waves-center="true" rounded="true"></material-button>',[{type:n.TAG,getComponent:r,evaluate:function(e){return"material-button"},slots:[{id:"default",html:'<slot expr527="expr527"></slot>',bindings:[{type:n.SLOT,attributes:[],name:"default",redundantAttribute:"expr527",selector:"[expr527]"}]}],attributes:[{type:t.ATTRIBUTE,name:"waves-color",evaluate:function(e){return e.props["waves-color"]||"#fff"}},{type:t.EVENT,name:"onclick",evaluate:function(e){return e.iconClickHandler}},{type:t.ATTRIBUTE,name:"waves-opacity",evaluate:function(e){return e.props["waves-opacity"]||"0.6"}},{type:t.ATTRIBUTE,name:"waves-duration",evaluate:function(e){return e.props["waves-duration"]||"600"}}],redundantAttribute:"expr526",selector:"[expr526]"}])},{redundantAttribute:"expr528",selector:"[expr528]",expressions:[{type:t.ATTRIBUTE,name:"class",evaluate:function(e){return["underline ",e.state.focused?"focused":null," ",e.state.error?"error":null].join("")}}]}])},name:"material-input"},St={css:null,exports:{state:{transition:!1,opened:!1},onMounted(e,t){},onBeforeUpdate(e,t){t.opened!==e.opened&&(t.transition=!0,setTimeout((()=>{this.update({opened:e.opened,transition:!1})}),e.opened?0:200))},onUpdated(e,t){const n=this.$(".content");if(n)for(let e=0;e<n.children.length;e++)this.updateClass(n.children[e])},updateClass(e){switch(e.slot){case"title":e.classList.add("material-popup-title");break;case"action":e.classList.add("material-popup-action");break;case"content":e.classList.add("material-popup-content")}},onClick(e){"function"==typeof this.props.onClick&&this.props.onClick(e,"overlay")}},template:function(e,t,n,r){return e('<div expr535="expr535" class="container"></div>',[{type:n.IF,evaluate:function(e){return e.props.opened||e.state.opened},redundantAttribute:"expr535",selector:"[expr535]",template:e('<div expr536="expr536" class="overlay"></div><div expr537="expr537"><div class="content"><slot expr538="expr538" name="title"></slot><slot expr539="expr539" name="content"></slot><slot expr540="expr540" name="action"></slot></div></div>',[{redundantAttribute:"expr536",selector:"[expr536]",expressions:[{type:t.EVENT,name:"onclick",evaluate:function(e){return e.onClick}}]},{redundantAttribute:"expr537",selector:"[expr537]",expressions:[{type:t.ATTRIBUTE,name:"class",evaluate:function(e){return["popup ",e.state.transition?"opening":""," ",e.props.animation||"top"].join("")}}]},{type:n.SLOT,attributes:[],name:"title",redundantAttribute:"expr538",selector:"[expr538]"},{type:n.SLOT,attributes:[],name:"content",redundantAttribute:"expr539",selector:"[expr539]"},{type:n.SLOT,attributes:[],name:"action",redundantAttribute:"expr540",selector:"[expr540]"}])}])},name:"material-popup"},Bt={css:null,exports:{state:{toasts:{}},onBeforeUpdate(e,t){e.message&&!t.internal&&this.addToast({message:e.message,isError:e.isError},e.duration),t.internal=!1},addToast(e,t){var n=this.toastID=Math.random().toString(36).substring(7);this.state.toasts[n]=Object.assign(e,{opening:!0}),setTimeout((()=>{this.state.toasts[n].opening=!1,this.update({toasts:this.state.toasts,internal:!0})}),50),this.state.toasts[n].interval=setTimeout((()=>{this.removeToast(n)}),t||5e3)},removeToastByClick(e){return()=>{clearInterval(this.state.toasts[e].interval),this.removeToast(e)}},removeToast(e){this.state.toasts[e]&&(this.state.toasts[e].opening=!0,this.update({toasts:this.state.toasts,internal:!0}),setTimeout((()=>{delete this.state.toasts[e],this.update({toasts:this.state.toasts,internal:!0})}),200))}},template:function(e,t,n,r){return e('<div expr542="expr542"></div>',[{type:n.EACH,getKey:null,condition:null,template:e(" ",[{expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return[e.state.toasts[e.toastID].message].join("")}},{type:t.ATTRIBUTE,name:"class",evaluate:function(e){return["toast ",e.state.toasts[e.toastID].isError?"error":""," ",e.state.toasts[e.toastID].opening?"opening":""].join("")}},{type:t.EVENT,name:"onclick",evaluate:function(e){return e.removeToastByClick(e.toastID)}}]}]),redundantAttribute:"expr542",selector:"[expr542]",itemName:"toastID",indexName:null,evaluate:function(e){return Object.keys(e.state.toasts)}}])},name:"material-snackbar"},Lt={css:null,exports:{state:{selected:0},onMounted(e,t){const n=this.$(".line");this.$$("material-button").forEach((e=>{e.style.width=(100/this.props.tabs.length).toFixed(2)+"%",n&&(n.style.width=e.style.width)})),this.setLinePosition()},onTabChanged(e,t){this.update({selected:t}),this.setLinePosition(),"function"==typeof this.props.onTabChanged&&this.props.onTabChanged(this.props.tabs[t],t)},setLinePosition(){const e=this.$(".line");e&&(e.style.left=(100/this.props.tabs.length).toFixed(2)*this.state.selected+"%")},cut:e=>e.length>props.cut?e.substr(0,props.cut)+"...":e},template:function(e,t,n,r){return e('<material-button expr543="expr543"></material-button><div expr545="expr545" class="line-wrapper"></div><slot expr546="expr546"></slot>',[{type:n.EACH,getKey:null,condition:null,template:e(null,[{type:n.TAG,getComponent:r,evaluate:function(e){return"material-button"},slots:[{id:"default",html:'<div expr544="expr544" class="text"> </div>',bindings:[{redundantAttribute:"expr544",selector:"[expr544]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return e.props.cut?e.cut(e.tab.title):e.tab.title}},{type:t.ATTRIBUTE,name:"title",evaluate:function(e){return e.tab.title}}]}]}],attributes:[{type:t.EVENT,name:"onClick",evaluate:function(e){return t=>e.onTabChanged(t,e.k)}},{type:t.ATTRIBUTE,name:"class",evaluate:function(e){return e.state.selected==e.k?"selected":""}},{type:t.ATTRIBUTE,name:"waves-opacity",evaluate:function(e){return e.props.wavesOpacity}},{type:t.ATTRIBUTE,name:"waves-duration",evaluate:function(e){return e.props.wavesDuration}},{type:t.ATTRIBUTE,name:"waves-center",evaluate:function(e){return e.props.wavesCenter}},{type:t.ATTRIBUTE,name:"waves-color",evaluate:function(e){return e.props.wavesColor}}]}]),redundantAttribute:"expr543",selector:"[expr543]",itemName:"tab",indexName:"k",evaluate:function(e){return e.props.tabs}},{type:n.IF,evaluate:function(e){return e.props.useLine},redundantAttribute:"expr545",selector:"[expr545]",template:e('<div class="line" ref="line"></div>',[])},{type:n.SLOT,attributes:[],name:"default",redundantAttribute:"expr546",selector:"[expr546]"}])},name:"material-tabs"},Dt=function(e){s(o,e);var n,a,i=(n=o,a=c(),function(){var e,t=u(n);if(a){var r=u(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return f(this,e)});function o(e,n,r){var a;return t(this,o),a=i.call(this),e||console.error("You should set container to the wave!"),a.container=e,a.maxOpacity=n.opacity||.6,a.duration=n.duration||750,a.color=n.color||"#fff",a.center=n.center||!1,a.event=r,a.containerBound=a.receiveBound(),a.maxScale=a.containerBound.size/100*10,a.created=Date.now(),a.start={},a.createNode(),a.waveIn(),a}return r(o,[{key:"createNode",value:function(){this.wave=document.createElement("div"),this.wave.classList.add("wave"),this.container.appendChild(this.wave)}},{key:"waveIn",value:function(){var e=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 t=-1!==window.navigator.userAgent.indexOf("Trident");setTimeout((function(){return e.setStyles(e.maxOpacity)}),t?50:0)}},{key:"waveOut",value:function(e){var t=this,n=Date.now()-this.created,r=Math.round(this.duration/2)-n;setTimeout((function(){t.setStyles(0),setTimeout((function(){t.wave.parentNode===t.container&&(t.container.removeChild(t.wave),e())}),t.duration)}),r>0?r: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){var t="";return Object.keys(e).forEach((function(n){e.hasOwnProperty(n)&&(t+=n+":"+e[n]+";")})),t}}]),o}(function(){function n(){t(this,n)}return r(n,[{key:"receiveBound",value:function(){var t;this.container||console.error("Yor class must contain a container. It is DOM Element. Define please this.container property.");var n=this.container&&this.container.ownerDocument,r=n.documentElement;"undefined"!==e(this.container.getBoundingClientRect)&&(t=this.container.getBoundingClientRect());var a=this.getWindow(n);return this.mix(t,{size:Math.max(t.width,t.height),offsetTop:t.top+a.pageYOffset-r.clientTop,offsetLeft:t.left+a.pageXOffset-r.clientLeft})}},{key:"isWindow",value:function(e){return null!==e&&e===e.window}},{key:"getWindow",value:function(e){return this.isWindow(e)?e:9===e.nodeType&&e.defaultView}},{key:"mix",value:function(e,t){for(var n in e)n in t||(t[n]=e[n]);return t}}]),n}()),jt={css:null,exports:{onMounted(){this._waves=[],this._events=[]},launch(e){var t=new Dt(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:function(e,t,n,r){return e('<div expr547="expr547" id="waves"></div>',[{redundantAttribute:"expr547",selector:"[expr547]",expressions:[{type:t.EVENT,name:"onmousedown",evaluate:function(e){return e.launch}}]}])},name:"material-waves"};function _t(e){var t={exports:{}};return e(t,t.exports),t.exports}function Mt(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var a=1,i="";if("?"===e[s=n+1])throw new TypeError('Pattern cannot start with "?" at '+s);for(;s<e.length;)if("\\"!==e[s]){if(")"===e[s]){if(0==--a){s++;break}}else if("("===e[s]&&(a++,"?"!==e[s+1]))throw new TypeError("Capturing groups are not allowed at "+s);i+=e[s++]}else i+=e[s++]+e[s++];if(a)throw new TypeError("Unbalanced pattern at "+n);if(!i)throw new TypeError("Missing pattern at "+n);t.push({type:"PATTERN",index:n,value:i}),n=s}else{for(var o="",s=n+1;s<e.length;){var u=e.charCodeAt(s);if(!(u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||95===u))break;o+=e[s++]}if(!o)throw new TypeError("Missing parameter name at "+n);t.push({type:"NAME",index:n,value:o}),n=s}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,a=void 0===r?"./":r,i="[^"+Pt(t.delimiter||"/#?")+"]+?",o=[],s=0,u=0,l="",c=function(e){if(u<n.length&&n[u].type===e)return n[u++].value},p=function(e){var t=c(e);if(void 0!==t)return t;var r=n[u],a=r.type,i=r.index;throw new TypeError("Unexpected "+a+" at "+i+", expected "+e)},d=function(){for(var e,t="";e=c("CHAR")||c("ESCAPED_CHAR");)t+=e;return t};u<n.length;){var f=c("CHAR"),m=c("NAME"),h=c("PATTERN");if(m||h){var g=f||"";-1===a.indexOf(g)&&(l+=g,g=""),l&&(o.push(l),l=""),o.push({name:m||s++,prefix:g,suffix:"",pattern:h||i,modifier:c("MODIFIER")||""})}else{var v=f||c("ESCAPED_CHAR");if(v)l+=v;else if(l&&(o.push(l),l=""),c("OPEN")){g=d();var y=c("NAME")||"",x=c("PATTERN")||"",b=d();p("CLOSE"),o.push({name:y||(x?s++:""),pattern:y&&!x?i:x,prefix:g,suffix:b,modifier:c("MODIFIER")||""})}else p("END")}}return o}function Pt(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Gt(e){return e&&e.sensitive?"":"i"}function Vt(e,t,n){return function(e,t,n){void 0===n&&(n={});for(var r=n.strict,a=void 0!==r&&r,i=n.start,o=void 0===i||i,s=n.end,u=void 0===s||s,l=n.encode,c=void 0===l?function(e){return e}:l,p="["+Pt(n.endsWith||"")+"]|$",d="["+Pt(n.delimiter||"/#?")+"]",f=o?"^":"",m=0,h=e;m<h.length;m++){var g=h[m];if("string"==typeof g)f+=Pt(c(g));else{var v=Pt(c(g.prefix)),y=Pt(c(g.suffix));if(g.pattern)if(t&&t.push(g),v||y)if("+"===g.modifier||"*"===g.modifier){var x="*"===g.modifier?"?":"";f+="(?:"+v+"((?:"+g.pattern+")(?:"+y+v+"(?:"+g.pattern+"))*)"+y+")"+x}else f+="(?:"+v+"("+g.pattern+")"+y+")"+g.modifier;else f+="("+g.pattern+")"+g.modifier;else f+="(?:"+v+y+")"+g.modifier}}if(u)a||(f+=d+"?"),f+=n.endsWith?"(?="+p+")":"$";else{var b=e[e.length-1],T="string"==typeof b?d.indexOf(b[b.length-1])>-1:void 0===b;a||(f+="(?:"+d+"(?="+p+"))?"),T||(f+="(?="+d+"|"+p+")")}return new RegExp(f,Gt(n))}(Mt(e,n),t,n)}function zt(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:"",suffix:"",modifier:"",pattern:""});return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map((function(e){return zt(e,t,n).source}));return new RegExp("(?:"+r.join("|")+")",Gt(n))}(e,t,n):Vt(e,t,n)}_t((function(t){var n=function(t){var n,r=Object.prototype,a=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var a=t&&t.prototype instanceof v?t:v,i=Object.create(a.prototype),o=new k(r||[]);return i._invoke=function(e,t,n){var r=d;return function(a,i){if(r===m)throw new Error("Generator is already running");if(r===h){if("throw"===a)throw i;return O()}for(n.method=a,n.arg=i;;){var o=n.delegate;if(o){var s=N(o,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=m;var u=p(e,t,n);if("normal"===u.type){if(r=n.done?h:f,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=h,n.method="throw",n.arg=u.arg)}}}(e,n,o),i}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d="suspendedStart",f="suspendedYield",m="executing",h="completed",g={};function v(){}function y(){}function x(){}var b={};b[o]=function(){return this};var T=Object.getPrototypeOf,E=T&&T(T(U([])));E&&E!==r&&a.call(E,o)&&(b=E);var A=x.prototype=v.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function C(t,n){function r(i,o,s,u){var l=p(t[i],t,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"===e(d)&&a.call(d,"__await")?n.resolve(d.__await).then((function(e){r("next",e,s,u)}),(function(e){r("throw",e,s,u)})):n.resolve(d).then((function(e){c.value=e,s(c)}),(function(e){return r("throw",e,s,u)}))}u(l.arg)}var i;this._invoke=function(e,t){function a(){return new n((function(n,a){r(e,t,n,a)}))}return i=i?i.then(a,a):a()}}function N(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,N(e,t),"throw"===t.method))return g;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var a=p(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,g;var i=a.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,g):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function R(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function U(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(a.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=n,t.done=!0,t};return i.next=i}}return{next:O}}function O(){return{value:n,done:!0}}return y.prototype=A.constructor=x,x.constructor=y,y.displayName=l(x,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,l(e,u,"GeneratorFunction")),e.prototype=Object.create(A),e},t.awrap=function(e){return{__await:e}},w(C.prototype),C.prototype[s]=function(){return this},t.AsyncIterator=C,t.async=function(e,n,r,a,i){void 0===i&&(i=Promise);var o=new C(c(e,n,r,a),i);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},w(A),l(A,u,"Generator"),A[o]=function(){return this},A.toString=function(){return"[object Generator]"},t.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=U,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(R),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,a){return s.type="throw",s.arg=e,t.next=r,a&&(t.method="next",t.arg=n),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=a.call(o,"catchLoc"),l=a.call(o,"finallyLoc");if(u&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),R(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;R(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:U(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),g}},t}(t.exports);try{regeneratorRuntime=n}catch(e){Function("r","regeneratorRuntime = r")(n)}}));var $t=Symbol();function Ht(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Promise((function(e,n){return function t(r,a){if(!r.length)return e(a);var i=h(r),o=i[0],s=i.slice(1),u="function"==typeof o?o(a):o,l=function(e){return t(s,e)};if(null!=u){if(u===$t)return;if(u.then)return u.then(l,n)}return Promise.resolve(l(u))}(t)}))}Ht.cancel=function(){return $t},Ht.compose=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ht.apply(void 0,g(t.reverse()))};var Ft=new Set,qt=Symbol();function Kt(e){var t=regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return void(t.next=3);case 3:return n=t.sent,t.next=6,Ht.apply(void 0,[n].concat(g(e)));case 6:t.next=0;break;case 8:case"end":return t.stop()}}),t)}))();return t.next(),t}function Wt(e,t){return e.forEach((function(n){n(t)===qt&&e.delete(n)})),e}function Xt(e){throw new Error(e)}function Yt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=new Set,a=new Set,i=new Set,o=new Set(t),s=Kt(o),u=Object.create(s),l=function(e){return function(t){return e.add(t)&&u}},c=function(e){return function(t){return e.delete(t)?u:Xt("Couldn't remove handler passed by reference")}};return Object.assign(u,{on:Object.freeze({value:l(r),error:l(a),end:l(i)}),off:Object.freeze({value:c(r),error:c(a),end:c(i)}),connect:l(o),push:function(e){var t=u.next(e),n=t.value;return t.done||n.then((function(e){return Wt(r,e)}),(function(e){return Wt(a,e)})),u},end:function(){return s.return(),Wt(i),[r,a,i,o].forEach((function(e){return e.clear()})),u},fork:function(){return Yt.apply(void 0,g(o))},next:function(e){var t=s.next(e);return s.next(),t}})}Yt.install=function(e,t){return e&&"string"==typeof e||Xt("Please provide a name (as string) for your erre plugin"),t&&"function"==typeof t||Xt("Please provide a function for your erre plugin"),Ft.has(e)?Xt("The ".concat(e," is already part of the erre API, please provide a different name")):(Yt[e]=t,Ft.add(e)),Yt},Yt.install("cancel",Ht.cancel),Yt.install("off",(function(){return qt}));var Qt="undefined"!=typeof process,Jt=function(e){return e.replace(nn.base,"")},Zt=function(e){return function(t){return sn(t,e)?t:Yt.cancel()}},en=function(e){if(!nn.silentErrors)throw new Error(e)},tn=Yt((function(e){return function(e){return"string"==typeof e}(e)?e:Yt.cancel()})).on.error(en),nn={base:"",silentErrors:!1,sensitive:!1,strict:!1,end:!0,start:!0,delimiter:"/#?",encode:void 0,endsWith:void 0,prefixes:"./"},rn=function(e){return Object.assign({},nn,e)},an=function(e,t,n){return zt(e,t,rn(n))},on=function(e,t,n){void 0===n&&(n={});var r=rn(n).base,a=h(t.exec(e)).slice(1),i=function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Qt?(e=require("url")).parse.apply(e,n):p(URL,n)}(e,r);return i.params=a.reduce((function(e,t,r){var a=n.keys&&n.keys[r];return a&&(e[a.name]=t),e}),{}),i},sn=function(e,t){return t.test(e)},un=function(e,t){return[Jt,Zt(e),function(n){return on(n,e,t)}]};function ln(e,t){var n,r,a=[],i=zt(e,a,t),o=Yt.apply(void 0,g(un(i,Object.assign({},t,{keys:a}))));return(n=tn,r=o,n.on.value(r.push),r.on.end((function(){n.off.value(r.push)})),r).on.error(en)}var cn,pn=(cn=null,tn.on.value((function(e){return cn=e})),function(){return cn});function dn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var fn=function(e,t,n){var r=dn.apply(void 0,g(un(e,n).reverse()))(t);return r.params?r:null},mn={css:null,exports:{onBeforeMount:function(e){var t=pn(),n=an(e.path,[],e);this.state={pathToRegexp:n,route:t&&sn(t,n)?fn(n,t,e):null},tn.on.value(this.onBeforeRoute),this.stream=ln(e.path,e).on.value(this.onRoute)},onBeforeRoute:function(e,t){this.state.route&&!sn(e,this.state.pathToRegexp)&&(this.callLifecycleProperty("onBeforeUnmount",ln),this.update({route:null}),this.callLifecycleProperty("onUnmounted",ln))},onRoute:function(e){this.callLifecycleProperty("onBeforeMount",e),this.update({route:e}),this.callLifecycleProperty("onMounted",e)},callLifecycleProperty:function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];this.props[e]&&(t=this.props)[e].apply(t,r)},onUnmounted:function(){tn.off.value(this.onBeforeRoute),this.stream.end()}},template:function(e,t,n,r){return e('<template expr0="expr0"></template>',[{type:n.IF,evaluate:function(e){return e.state.route},redundantAttribute:"expr0",selector:"[expr0]",template:e('<slot expr1="expr1"></slot>',[{type:n.SLOT,attributes:[{type:t.ATTRIBUTE,name:"route",evaluate:function(e){return e.state.route}}],name:"default",redundantAttribute:"expr1",selector:"[expr1]"}])}])},name:"route-hoc"},hn="popstate",gn="click",vn="/",yn=/^.+?\/\/+[^/]+/,xn=function(){return"undefined"==typeof window?null:window},bn=function(){return"undefined"==typeof document?null:document},Tn=function(){var e=xn();return e?e.location:{}},En=function(e){return e[e.length-1]===vn?e.substr(0,e.length-1):e},An=function(e){var t,n=xn().location,r=n?"".concat(n.protocol,"//").concat(n.host):"",a=(n||{}).pathname;switch(!0){case!1===Boolean(e):return En("".concat(r).concat(a||""));case/(www|http(s)?:)/.test(e):return e;case"#"===e[0]:return"".concat(r).concat(a&&a!==vn?a:"").concat(e);case e===vn:return En(r);default:return En("".concat(r).concat((t=e)[0]===vn?t:"".concat(vn).concat(t)))}};function wn(e){return Array.isArray(e)?e:/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(e))&&"number"==typeof e.length?Array.from(e):[e]}function Cn(e,t,n,r,a){var i;e=wn(e),(i=t,i.split(/\s/)).forEach((function(t){e.forEach((function(e){return e[r](t,n,a||!1)}))}))}function Nn(e,t,n,r){return Cn(e,t,n,"addEventListener",r),e}function In(e,t,n,r){return Cn(e,t,n,"removeEventListener",r),e}var Rn=function(e){return 1===e.length?e[0]:e};function kn(e,t){return function(e,t,n){var r="string"==typeof t?[t]:t;return Rn(wn(e).map((function(e){return Rn(r.map((function(t){return e[n](t)})))})))}(e,t,"hasAttribute")}var Un=function(){return tn.push(Dn(String(Tn().href)))},On=function(e){var t=e.includes(nn.base)?e:nn.base+e,n=Tn(),r="undefined"==typeof history?null:history,a=bn();r&&t!==n.href&&r.pushState(null,a.title,t)},Sn=function e(t){return t&&!Bn(t)?e(t.parentNode):t},Bn=function(e){return"A"===e.nodeName},Ln=function(e){return!e||!Bn(e)||kn(e,"download")||!kn(e,"href")||function(e){return e.target&&"_self"!==e.target}(e)||-1===e.href.indexOf(Tn().href.match(yn)[0])},Dn=function(e){return e.replace(nn.base,"")},jn=function(e){if(!function(e){return e.which&&1!==e.which||e.metaKey||e.ctrlKey||e.shiftKey||e.defaultPrevented}(e)){var t=Sn(e.target);if(!Ln(t)&&!function(e){return e.split("#").length>1}(t.href)&&function(e){return!nn.base||e.includes(nn.base)}(t.href)){var n=Dn(t.href);tn.push(n),e.preventDefault()}}};var _n,Mn=wt.DOMBindings,Pn=Mn.template,Gn=Mn.bindingTypes,Vn=window.requestAnimationFrame||window.setTimeout,zn=window.cancelAnimationFrame||window.clearTimeout,$n=!1,Hn={css:null,exports:(_n=function(e){var t=e.slots,n=e.attributes,r=e.props;$n&&function(e){throw new Error(e)}("Multiple <router> components are not supported");var a=function(e){return n&&n.find((function(t){return t.name.replace(/-(\w)/g,(function(e,t){return t.toUpperCase()}))===e}))};return{slot:null,el:null,teardown:null,mount:function(e,t){var n,r,i,o=this,s=a("initialRoute"),u=s?s.evaluate(t):null,l=pn();$n=!0,this.el=e,this.teardown=(n=this.root,r=xn(),i=n||bn(),r&&(Nn(r,hn,Un),Nn(i,gn,jn)),tn.on.value(On),function(){r&&(In(r,hn,Un),In(i,gn,jn)),tn.off.value(On)}),this.setBase(t),l&&!u?this.createSlot(t):(tn.on.value((function e(){o.createSlot(t),tn.off.value(e)})),tn.push(u||window.location.href))},createSlot:function(e){if(t&&t.length){var n=a("onStarted");this.slot=Pn(null,[{type:Gn.SLOT,name:"default"}]),this.slot.mount(this.el,{slots:t},e),n&&n.evaluate(e)(pn())}},update:function(e){var t=this;this.setBase(e),this.slot&&(zn(this.deferred),this.deferred=Vn((function(){t.slot.update({},e)})))},unmount:function(){var e;this.teardown(),$n=!1,this.slot&&(e=this.slot).unmount.apply(e,arguments)},getBase:function(e){var t=a("base");return t?t.evaluate(e):"/"},setBase:function(e){var t;t=r?r.base:this.getBase(e),nn.base=An(t)}}},de(_n)||ye('riot.pure accepts only arguments of type "function"'),_n[Y]=!0,_n),template:null,name:"router-hoc"};function Fn(e){if(null==e||isNaN(e))return"?";if(0==e)return"0 Byte";var t=parseInt(Math.floor(Math.log(e)/Math.log(1024)));return Math.ceil(e/Math.pow(1024,t))+" "+["Bytes","KB","MB","GB","TB"][t]}function qn(e,t,n){return n||(n=100),e?e.slice((t-1)*n,n*t):[]}function Kn(e,t){return t||(t=100),e?Math.trunc(e.length/t)+1:0}function Wn(e){return e?e.replace(/^https?:\/\//,""):""}function Xn(e){return e>="0"&&e<="9"}var Yn={message:"Access on registry response was blocked. Try adding the header `Access-Control-Expose-Headers: Docker-Content-Digest` to your proxy or registry: https://docs.docker.com/registry/configuration/#http",isError:!0};function Qn(e){try{var t=JSON.parse(localStorage.getItem("registryServer"));if(t instanceof Array)return isNaN(e)?t.map((function(e){return e.trim().replace(/\/*$/,"")})):t[e]}catch(e){}return isNaN(e)?[]:""}function Jn(e){if(e)return e.indexOf("&")<0?window.encodeURIComponent(e):btoa(e)}function Zn(){var e={};return window.location.search.slice(1).split("&").forEach((function(t){var n=t.indexOf("=");e[t.slice(0,n)]=n<0?"":t.slice(n+1)})),e}function er(e){var t=Zn();for(var n in e)null===e[n]?delete t[n]:t[n]=e[n];return t}function tr(e){var t=[];for(var n in e)n&&void 0!==e[n]&&t.push("".concat(n,"=").concat(e[n]));return 0===t.length?"":"?".concat(t.join("&"))}function nr(e){var t=window.location,n=er(e);return t.origin+t.pathname+tr(n)}var rr={home:function(){tn.push(nr({page:null}))},taglist:function(e){tn.push("".concat(nr({page:null}),"#!/taglist/").concat(e))},getTagListImage:function(){return pn().replace(/^.*(#!)?\/?taglist\//,"")},history:function(e,t){tn.push("".concat(nr({page:null}),"#!/taghistory/image/").concat(e,"/tag/").concat(t))},getTagHistoryImage:function(){return pn().replace(/^.*(#!)?\/?taghistory\/image\/(.*)\/tag\/(.*)\/?$/,"$2")},getTagHistoryTag:function(){return pn().replace(/^.*(#!)?\/?taghistory\/image\/(.*)\/tag\/(.*)\/?$/,"$3")},updateQueryString:function(e){var t=tr(er(e));history.pushState(null,"",t+window.location.hash)},updateUrlQueryParam:function(e){this.updateQueryString({url:Jn(e)})},getUrlQueryParam:function(){var e=Zn().url;if(e)try{return function(e){if(e)return e.startsWith("http")?window.decodeURIComponent(e):atob(e)}(e)}catch(t){console.error("Can't decode query parameter URL: ".concat(e),t)}},updatePageQueryParam:function(e){this.updateQueryString({page:e})},getPageQueryParam:function(){return Zn().page}};function ar(e,t){return!e||t&&t.toLowerCase().indexOf(e)>=0}var ir={css:'search-bar material-input,[is="search-bar"] material-input{ position: absolute; top: 0em; right: 64px; max-width: 20%; } @media screen and (max-width: 400px) { search-bar material-input,[is="search-bar"] material-input{ display: none; } } search-bar material-input input,[is="search-bar"] material-input input{ color: #fff; }',exports:{onMounted(e,t){const n=this.$("input");let r="";const a=()=>{r!==n.value&&e.onSearch(n.value.toLowerCase()),r=n.value};n.addEventListener("keyup",a),tn.on.value((()=>{n.value="",a()}))}},template:function(e,t,n,r){return e('<material-input expr424="expr424" placeholder="Search in page"></material-input>',[{type:n.TAG,getComponent:r,evaluate:function(e){return"material-input"},slots:[],attributes:[],redundantAttribute:"expr424",selector:"[expr424]"}])},name:"search-bar"},or={css:null,exports:{onBeforeMount(e,t){e.item.images&&1===e.item.images.length?t.image=e.item.images[0]:"string"==typeof e.item?t.image=e.item:e.item.images&&e.item.repo&&(t.images=e.item.images,t.repo=e.item.repo,t.nImages=e.item.images.length)},onBeforeUpdate(e,t){e.filterResults&&t.images?t.nImages=t.images.filter((t=>ar(e.filterResults,t))).length:t.nImages=t.images&&t.images.length},onClick(){const e=this.state;e.repo?(this.update({expanded:!this.state.expanded,expanding:!0}),setTimeout((()=>{this.update({expanding:!1})}),50)):rr.taglist(e.image)},setLaunchListener(e){this.triggerLaunch=e},matchSearch:ar},template:function(e,t,n,r){return e('<div expr455="expr455" class="content"></div>',[{type:n.IF,evaluate:function(e){return!e.props.filterResults||e.state.nImages>0||e.matchSearch(e.props.filterResults,e.state.image)},redundantAttribute:"expr455",selector:"[expr455]",template:e('<material-card expr456="expr456" class="list highlight"></material-card><catalog-element expr461="expr461"></catalog-element>',[{type:n.TAG,getComponent:r,evaluate:function(e){return"material-card"},slots:[{id:"default",html:'<material-waves expr457="expr457" center="true" color="#ddd"></material-waves><span expr458="expr458"><i class="material-icons">send</i> <div expr459="expr459" class="item-count right"></div></span>',bindings:[{type:n.TAG,getComponent:r,evaluate:function(e){return"material-waves"},slots:[],attributes:[{type:t.EVENT,name:"onmousedown",evaluate:function(e){return e.triggerLaunch}},{type:t.ATTRIBUTE,name:"setLaunchListener",evaluate:function(e){return e.setLaunchListener}}],redundantAttribute:"expr457",selector:"[expr457]"},{redundantAttribute:"expr458",selector:"[expr458]",expressions:[{type:t.TEXT,childNodeIndex:1,evaluate:function(e){return[e.state.image||e.state.repo].join("")}}]},{type:n.IF,evaluate:function(e){return e.state.images},redundantAttribute:"expr459",selector:"[expr459]",template:e(' <i expr460="expr460">expand_more</i>',[{expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return[e.state.nImages," images"].join("")}}]},{redundantAttribute:"expr460",selector:"[expr460]",expressions:[{type:t.ATTRIBUTE,name:"class",evaluate:function(e){return["material-icons animated ",e.state.expanded?"expanded":""].join("")}}]}])}]}],attributes:[{type:t.ATTRIBUTE,name:"expanded",evaluate:function(e){return e.state.expanded}},{type:t.EVENT,name:"onclick",evaluate:function(e){return e.onClick}}],redundantAttribute:"expr456",selector:"[expr456]"},{type:n.EACH,getKey:null,condition:function(e){return e.state.images},template:e(null,[{type:n.TAG,getComponent:r,evaluate:function(e){return"catalog-element"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"filter-results",evaluate:function(e){return e.props.filterResults}},{type:t.ATTRIBUTE,name:"class",evaluate:function(e){return["animated ",e.state.expanded||e.props.filterResults?"":"hide"," ",e.state.expanding?"expanding":""].join("")}},{type:t.ATTRIBUTE,name:"item",evaluate:function(e){return e.item}}]}]),redundantAttribute:"expr461",selector:"[expr461]",itemName:"item",indexName:null,evaluate:function(e){return e.state.images}}])}])},name:"catalog-element"},sr=function(){function e(n){t(this,e),this.oReq=new XMLHttpRequest,this.oReq.hasHeader=ur,this.oReq.getErrorMessage=lr,this._events={},this._headers={},this.onAuthentication=n&&n.onAuthentication,this.withCredentials=n&&n.withCredentials}return r(e,[{key:"getContentDigest",value:function(e){this.oReq.hasHeader("Docker-Content-Digest")?e(this.oReq.getResponseHeader("Docker-Content-Digest")):window.crypto&&window.TextEncoder&&crypto.subtle.digest("SHA-256",(new TextEncoder).encode(this.oReq.responseText)).then((function(t){e("sha256:"+Array.from(new Uint8Array(t)).map((function(e){return e.toString(16).padStart(2,"0")})).join(""))}))}},{key:"addEventListener",value:function(t,n){this._events[t]=n;var r=this;switch(t){case"loadend":r.oReq.addEventListener("loadend",(function(){if(401!=this.status||this.withCredentials)n.bind(this)();else{var t=pr(this.getResponseHeader("www-authenticate"));r.onAuthentication(t,(function(t){var n=new XMLHttpRequest;for(var a in n._url=r._url,n.open(r._method,r._url),r._events)n.addEventListener(a,r._events[a]);for(var i in r._headers)n.setRequestHeader(i,r._headers[i]);t&&t.token?n.setRequestHeader("Authorization","Bearer ".concat(t.token)):n.withCredentials=!0,n.hasHeader=ur,n.getErrorMessage=e.getErrorMessage,r.oReq=n,n.send()}))}}));break;case"load":r.oReq.addEventListener("load",(function(){401!==this.status&&n.bind(this)()}));break;default:r.oReq.addEventListener(t,(function(){n.bind(this)()}))}}},{key:"setRequestHeader",value:function(e,t){this.oReq.setRequestHeader(e,t),this._headers[e]=t}},{key:"open",value:function(e,t){this._method=e,this._url=t,this.oReq._url=t,this.withCredentials&&(this.oReq.withCredentials=!0),this.oReq.open(e,t)}},{key:"send",value:function(){this.oReq.send()}}]),e}(),ur=function(e){return this.getAllResponseHeaders().split("\n").some((function(t){return new RegExp("^"+e+":","i").test(t)}))},lr=function(){return this._url.match("^http://")&&"https:"===window.location.protocol?"Mixed Content: The page at `"+window.location.origin+"` was loaded over HTTPS, but requested an insecure server endpoint `"+new URL(this._url).origin+"`. This request has been blocked; the content must be served over HTTPS.":this._url&&this._url.match("^http")?this.withCredentials&&!this.hasHeader("Access-Control-Allow-Credentials")?"The `Access-Control-Allow-Credentials` header in the response is missing and must be set to `true` when the request's credentials mode is on. Origin `"+new URL(this._url).origin+"` is therefore not allowed access.":"An error occured: Check your connection and your registry must have `Access-Control-Allow-Origin` header set to `"+window.location.origin+"`":"Incorrect server endpoint."},cr=E(/Bearer realm="((?:(?!")[\s\S])+)",service="((?:(?!")[\s\S])+)",scope="((?:(?!")[\s\S])+)"/,{realm:1,service:2,scope:3}),pr=function(e){var t=cr.exec(e);return t&&t.groups},dr={css:null,exports:{components:{CatalogElement:or},state:{registryName:"",length:0,loadend:!1,repositories:[]},onBeforeMount(e){this.state.registryName=e.registryName,this.state.catalogElementsLimit=e.catalogElementsLimit},onMounted(e){this.display(e,this.state)},display(e,t){let n=[];const r=this,a=new sr({onAuthentication:this.props.onAuthentication});a.addEventListener("load",(function(){200==this.status?(n=JSON.parse(this.responseText).repositories||[],n.sort(),n=n.reduce((function(e,t){const n=t.indexOf("/");if(n>0){const r=t.substring(0,n)+"/";return 0!=e.length&&e[e.length-1].repo==r||e.push({repo:r,images:[]}),e[e.length-1].images.push(t),e}return e.push(t),e}),[])):404==this.status?r.props.onNotify("Server not found",!0):r.props.onNotify(this.responseText)})),a.addEventListener("error",(function(){r.props.onNotify(this.getErrorMessage(),!0)})),a.addEventListener("loadend",(function(){r.update({repositories:n,nRepositories:n.length,nImages:n.reduce(((e,t)=>e+(t.images&&t.images.length||1)),0),loadend:!0})})),a.open("GET",`${e.registryUrl}/v2/_catalog?n=${t.catalogElementsLimit}`),a.send()}},template:function(e,t,n,r){return e('<material-card expr425="expr425" ref="catalog-tag" class="catalog header"></material-card><div expr428="expr428" class="spinner-wrapper"></div><catalog-element expr430="expr430"></catalog-element>',[{type:n.TAG,getComponent:r,evaluate:function(e){return"material-card"},slots:[{id:"default",html:'<div class="material-card-title-action"><h2 expr426="expr426"> <div expr427="expr427" class="item-count"> </div></h2></div>',bindings:[{redundantAttribute:"expr426",selector:"[expr426]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return["Repositories of ",e.state.registryName].join("")}}]},{redundantAttribute:"expr427",selector:"[expr427]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return[e.state.nImages," images in ",e.state.nRepositories," repositories"].join("")}}]}]}],attributes:[],redundantAttribute:"expr425",selector:"[expr425]"},{type:n.IF,evaluate:function(e){return!e.state.loadend},redundantAttribute:"expr428",selector:"[expr428]",template:e('<material-spinner expr429="expr429"></material-spinner>',[{type:n.TAG,getComponent:r,evaluate:function(e){return"material-spinner"},slots:[],attributes:[],redundantAttribute:"expr429",selector:"[expr429]"}])},{type:n.EACH,getKey:null,condition:null,template:e(null,[{type:n.TAG,getComponent:r,evaluate:function(e){return"catalog-element"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"item",evaluate:function(e){return e.item}},{type:t.ATTRIBUTE,name:"filter-results",evaluate:function(e){return e.props.filterResults}}]}]),redundantAttribute:"expr430",selector:"[expr430]",itemName:"item",indexName:null,evaluate:function(e){return e.state.repositories}}])},name:"catalog"},fr=_t((function(e,t){var n,r,a,i,o,s,u;n="*",r=Object.defineProperties,a=Object.entries,i=function(e,t){return function(n,r){return e.has(n)?e.get(n).add(r):e.set(n,(new Set).add(r)),t}},o=function(e,t){return function(r,a){if(r!==n||a)if(a){var i=e.get(r);i&&(i.delete(a),0===i.size&&e.delete(r))}else e.delete(r);else e.clear();return t}},s=function(e,t){return function(e,n){return t.on(e,(function r(){t.off(e,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];n.apply(t,i)}))}},u=function(e,t){return function(r){for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;o<a;o++)i[o-1]=arguments[o];var s=e.get(r);return s&&s.forEach((function(e){return e.apply(t,i)})),e.get(n)&&r!==n&&t.trigger.apply(t,[n,r].concat(i)),t}},e.exports=function(e){var t=new Map;return r(e=e||{},a({on:i,off:o,one:s,trigger:u}).reduce((function(n,r){var a=m(r,2),i=a[0],o=a[1];return n[i]={value:o(t,e),enumerable:!1,writable:!1,configurable:!1},n}),{})),e}})),mr=function(e,t){return e.length>0&&Xn(e[e.length-1].charAt(0))==Xn(t)?e[e.length-1]+=t:e.push(t),e};function hr(e,t){for(var n=e.tag.match(/./g).reduce(mr,[]),r=t.tag.match(/./g).reduce(mr,[]),a=0;a<n.length&&a<r.length;a++){var i=n[a].localeCompare(r[a]);if(Xn(n[a].charAt(0))&&Xn(r[a].charAt(0))){var o=n[a]-r[a];if(0!=o)return o}else if(0!=i)return i}return e.tag.length-t.tag.length}var gr=function(){function e(n,r,a){var i=a.list,o=a.registryUrl,s=a.onNotify,u=a.onAuthentication;t(this,e),this.name=n,this.tag=r,this.chars=0,this.opts={list:i,registryUrl:o,onNotify:s,onAuthentication:u},fr(this),this.on("get-size",(function(){return void 0!==this.size?this.trigger("size",this.size):this.fillInfo()})),this.on("get-sha256",(function(){return void 0!==this.size?this.trigger("sha256",this.sha256):this.fillInfo()})),this.on("get-date",(function(){return void 0!==this.creationDate?this.trigger("creation-date",this.creationDate):this.fillInfo()})),this.on("content-digest-chars",(function(e){this.chars=e})),this.on("get-content-digest-chars",(function(){return this.trigger("content-digest-chars",this.chars)})),this.on("get-content-digest",(function(){return void 0!==this.digest?this.trigger("content-digest",this.digest):this.fillInfo()}))}return r(e,[{key:"fillInfo",value:function(){if(!this._fillInfoWaiting){this._fillInfoWaiting=!0;var t=new sr({onAuthentication:this.opts.onAuthentication}),n=this;t.addEventListener("loadend",(function(){if(200==this.status||202==this.status){var r=JSON.parse(this.responseText);if("application/vnd.docker.distribution.manifest.list.v2+json"===r.mediaType&&!r.layers){n.trigger("list",r);var a=r.manifests[0],i=new e(n.name,a.digest,o(o({},n.opts),{},{list:!1}));return s=n,i.on("*",(function(e,t){s.trigger(e,t)})),i.fillInfo(),void(n.variants=[i])}n.size=r.layers.reduce((function(e,t){return e+t.size}),0),n.sha256=r.config.digest,n.layers=r.layers,n.trigger("size",n.size),n.trigger("sha256",n.sha256),t.getContentDigest((function(e){n.digest=e,n.trigger("content-digest",e),e||n.opts.onNotify(Yn)})),n.getBlobs(r.config.digest)}else 404==this.status?n.opts.onNotify("Manifest for ".concat(n.name,":").concat(n.tag," not found"),!0):n.opts.onNotify(this.responseText);var s})),t.open("GET","".concat(this.opts.registryUrl,"/v2/").concat(n.name,"/manifests/").concat(n.tag)),t.setRequestHeader("Accept","application/vnd.docker.distribution.manifest.v2+json, application/vnd.oci.image.manifest.v1+json"+(n.opts.list?", application/vnd.docker.distribution.manifest.list.v2+json":"")),t.send()}}},{key:"getBlobs",value:function(e){var t=new sr({onAuthentication:this.opts.onAuthentication}),n=this;t.addEventListener("loadend",(function(){if(200==this.status||202==this.status){var t=JSON.parse(this.responseText);n.creationDate=new Date(t.created),n.blobs=t,n.blobs.history.filter((function(e){return!e.empty_layer})).forEach((function(e,t){e.size=n.layers[t].size,e.id=n.layers[t].digest.replace("sha256:","")})),n.blobs.id=e.replace("sha256:",""),n.trigger("creation-date",n.creationDate),n.trigger("blobs",n.blobs)}else 404==this.status?n.opts.onNotify("Blobs for ".concat(n.name,":").concat(n.tag," not found"),!0):n.opts.onNotify(this.responseText)})),t.open("GET","".concat(this.opts.registryUrl,"/v2/").concat(n.name,"/blobs/").concat(e)),t.setRequestHeader("Accept","application/vnd.docker.distribution.manifest.v2+json, application/vnd.oci.image.manifest.v1+json"),t.send()}}]),e}(),vr={css:null,exports:{onBeforeMount(e,t){t.checked=e.checked,e.image.one("content-digest",(e=>{this.update({digest:e})}))},onMounted(e,t){e.image.trigger("get-content-digest")},onBeforeUpdate(e,t){t.checked=e.checked},deleteImage(){this.props.handleCheckboxChange(br,this.props.image)},handleCheckboxChange(e){const t=e?yr:xr;this.props.handleCheckboxChange(t,this.props.image)}},template:function(e,t,n,r){return e('<material-button expr555="expr555" waves-center="true" rounded="true" waves-color="#ddd" title="This will delete the image."></material-button><material-checkbox expr556="expr556" title="Select this tag to delete it."></material-checkbox>',[{type:n.IF,evaluate:function(e){return!e.props.multiDelete},redundantAttribute:"expr555",selector:"[expr555]",template:e(null,[{type:n.TAG,getComponent:r,evaluate:function(e){return"material-button"},slots:[{id:"default",html:'<i class="material-icons">delete</i>',bindings:[]}],attributes:[{type:t.ATTRIBUTE,name:"disabled",evaluate:function(e){return!e.state.digest}},{type:t.EVENT,name:"onClick",evaluate:function(e){return e.deleteImage}}]}])},{type:n.IF,evaluate:function(e){return e.props.multiDelete},redundantAttribute:"expr556",selector:"[expr556]",template:e(null,[{type:n.TAG,getComponent:r,evaluate:function(e){return"material-checkbox"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"disabled",evaluate:function(e){return!e.state.digest}},{type:t.EVENT,name:"onChange",evaluate:function(e){return e.handleCheckboxChange}},{type:t.ATTRIBUTE,name:"checked",evaluate:function(e){return e.state.checked}}]}])}])},name:"remove-image"};const yr="CHECK",xr="UNCHECK",br="DELETE";const Tr=function(e){switch(e){case"created":return 1;case"created_by":return 2;case"size":return 3;case"os":return 4;case"architecture":return 5;case"id":return 6;case"linux":return 7;case"docker_version":return 8;default:return 10}},Er=function(e,t){return Tr(e.key)-Tr(t.key)},Ar=function(e,t){switch(e){case"created":return new Date(t).toLocaleString();case"created_by":const e=t.match(/\/bin\/sh *-c *#\(nop\) *([A-Z]+)/);return e&&e[1]||"RUN";case"size":return Fn(t);case"Entrypoint":case"Cmd":return(t||[]).join(" ");case"Labels":return Object.keys(t||{}).map((function(e){return t[e]?e+"="+t[e]:""}));case"Volumes":case"ExposedPorts":return Object.keys(t)}return t||""};var wr={css:null,exports:{components:{Catalog:dr,TagList:{css:null,exports:{components:{Pagination:{css:null,exports:null,template:function(e,t,n,r){return e('<div class="conatianer"><div class="pagination-centered"><material-button expr462="expr462" waves-color="rgba(158,158,158,.4)"></material-button></div></div>',[{type:n.EACH,getKey:null,condition:null,template:e(null,[{type:n.TAG,getComponent:r,evaluate:function(e){return"material-button"},slots:[{id:"default",html:'<i expr463="expr463" class="material-icons"></i><div expr464="expr464"></div>',bindings:[{type:n.IF,evaluate:function(e){return e.p.icon},redundantAttribute:"expr463",selector:"[expr463]",template:e(" ",[{expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return e.p.icon}}]}])},{type:n.IF,evaluate:function(e){return!e.p.icon},redundantAttribute:"expr464",selector:"[expr464]",template:e(" ",[{expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return e.p.page}}]}])}]}],attributes:[{type:t.ATTRIBUTE,name:"class",evaluate:function(e){return[e.p.current?"current":""," ",e.p["space-left"]?"space-left":""," ",e.p["space-right"]?"space-right":""].join("")}},{type:t.EVENT,name:"onClick",evaluate:function(e){return()=>e.props.onPageUpdate(e.p.page)}}]}]),redundantAttribute:"expr462",selector:"[expr462]",itemName:"p",indexName:null,evaluate:function(e){return e.props.pages}}])},name:"pagination"},TagTable:{css:null,exports:{components:{ImageDate:{css:null,exports:{onMounted(e){e.image.one("creation-date",(e=>{this.update({date:e,localDate:e.toLocaleString()})})),e.image.trigger("get-date")},getDate:e=>function(e){if(void 0===e)return"";for(var t=["a second","seconds","a minute","minutes","an hour","hours","a day","days","a month","months","a year","years"],n=[1,60,3600,86400,2592e3,31104e3,1/0],r=(new Date-e)/1e3,a=0;a<n.length-1;a++){if(2*n[a]>=r)return t[2*a];if(n[a+1]>r)return Math.floor(r/n[a])+" "+t[2*a+1]}}(e.creationDate),getLocalDate:e=>e.creationDate&&e.creationDate.toLocaleString()||"unknown"},template:function(e,t,n,r){return e('<div expr549="expr549"> </div>',[{redundantAttribute:"expr549",selector:"[expr549]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return[e.getDate(e.props.image)," ago"].join("")}},{type:t.ATTRIBUTE,name:"title",evaluate:function(e){return["Creation date ",e.getLocalDate(e.props.image)].join("")}}]}])},name:"image-date"},ImageSize:{css:null,exports:{onMounted(e,t){this.load(e,t)},onUpdated(e,t){this.load(e,t)},load(e,t){"number"!=typeof e.image.size&&(e.image.on("size",(e=>{this.update({size:e})})),e.image.trigger("get-size"))},getImageSize:e=>Fn(e.size)},template:function(e,t,n,r){return e('<div expr548="expr548" title="Compressed size of your image."> </div>',[{redundantAttribute:"expr548",selector:"[expr548]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return e.getImageSize(e.props.image)}}]}])},name:"image-size"},ImageTag:{css:null,exports:{onMounted(e){e.image.on("sha256",(e=>{this.update({sha256:e.substring(0,19)})})),e.image.trigger("get-sha256")}},template:function(e,t,n,r){return e('<div expr550="expr550"> </div>',[{redundantAttribute:"expr550",selector:"[expr550]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return e.props.image.tag}},{type:t.ATTRIBUTE,name:"title",evaluate:function(e){return e.state.sha256}}]}])},name:"image-tag"},ImageContentDigest:{css:null,exports:{onMounted(e,t){this.load(e,t)},onUpdated(e,t){this.load(e,t)},load(e,t){e.image.digest||(t.chars=-1,e.image.one("content-digest",(t=>{this.digest=t,e.image.on("content-digest-chars",this.onResize),e.image.trigger("get-content-digest-chars")})),e.image.trigger("get-content-digest"))},onResize(e){e!==this.state.chars&&this.update({chars:e})},getTitle:(e,t)=>t>=70?"":e.digest||"",getDigest:(e,t)=>t>=70?e.digest||"":t<=0?"":e.digest&&e.digest.slice(0,t)+"..."},template:function(e,t,n,r){return e('<div expr551="expr551"> </div>',[{redundantAttribute:"expr551",selector:"[expr551]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return e.getDigest(e.props.image,e.state.chars)}},{type:t.ATTRIBUTE,name:"title",evaluate:function(e){return e.getTitle(e.props.image,e.state.chars)}}]}])},name:"image-content-digest"},CopyToClipboard:{css:null,exports:{onMounted(e,t){this.load(e,t)},onUpdated(e,t){this.load(e,t)},getDockerCmd:e=>"tag"===e.target?`docker pull ${e.pullUrl}/${e.image.name}:${e.image.tag}`:`docker pull ${e.pullUrl}/${e.image.name}@${e.image.digest}`,load(e,t){"tag"===e.target||e.image.digest||(e.image.one("content-digest",(e=>{this.update()})),e.image.trigger("get-content-digest"))},copy(){const e=this.$("input");e.value?(e.style.display="block",e.select(),document.execCommand("copy"),e.style.display="none",this.props.onNotify("`"+e.value+"` has been copied to clipboard.")):this.props.onNotify(Yn)}},template:function(e,t,n,r){return e('<div class="copy-to-clipboard"><input expr552="expr552" style="display: none; width: 1px; height: 1px;"/><material-button expr553="expr553" waves-center="true" rounded="true" waves-color="#ddd" title="Copy pull command."></material-button></div>',[{redundantAttribute:"expr552",selector:"[expr552]",expressions:[{type:t.VALUE,evaluate:function(e){return e.getDockerCmd(e.props)}}]},{type:n.TAG,getComponent:r,evaluate:function(e){return"material-button"},slots:[{id:"default",html:'<i class="material-icons">content_copy</i>',bindings:[]}],attributes:[{type:t.EVENT,name:"onClick",evaluate:function(e){return e.copy}}],redundantAttribute:"expr553",selector:"[expr553]"}])},name:"copy-to-clipboard"},RemoveImage:vr,TagHistoryButton:{css:null,exports:{routeToHistory(){rr.history(this.props.image.name,this.props.image.tag)}},template:function(e,t,n,r){return e('<material-button expr554="expr554" title="This will show the history of given tag" waves-center="true" rounded="true" waves-color="#ddd"></material-button>',[{type:n.TAG,getComponent:r,evaluate:function(e){return"material-button"},slots:[{id:"default",html:'<i class="material-icons">history</i>',bindings:[]}],attributes:[{type:t.EVENT,name:"onClick",evaluate:function(e){return e.routeToHistory}}],redundantAttribute:"expr554",selector:"[expr554]"}])},name:"tag-history-button"},ConfirmDeleteImage:{css:'confirm-delete-image,[is="confirm-delete-image"]{ color: #000; list-style-type: disc; margin-block-start: 0.7em; } confirm-delete-image material-popup .content .material-popup-content,[is="confirm-delete-image"] material-popup .content .material-popup-content{ overflow-y: auto; max-height: 250px; }',exports:{displayImagesToDelete(e,t){const n=new Set;return e.forEach((e=>{e.digest&&n.add(e.digest)})),t.filter((e=>n.has(e.digest)))},deleteImages(){this.props.toDelete.forEach((e=>this.deleteImage(e,this.props)))},deleteImage(e,t){const{registryUrl:n,ignoreError:r,onNotify:a,onAuthentication:i,onClick:o}=t;if(!e.digest)return void a(`Information for ${s}:${u} are not yet loaded.`);const s=e.name,u=e.tag,l=new sr({onAuthentication:i});l.addEventListener("loadend",(function(){200==this.status||202==this.status?(rr.taglist(s),a(`Deleting ${s}:${u} image. Run \`registry garbage-collect config.yml\` on your registry`)):404==this.status?r||a({message:"Digest not found for this image in your registry.",isError:!0}):a(this.responseText),o()})),l.open("DELETE",`${n}/v2/${s}/manifests/${e.digest}`),l.setRequestHeader("Accept","application/vnd.docker.distribution.manifest.v2+json, application/vnd.oci.image.manifest.v1+json"),l.addEventListener("error",(function(){a({message:"An error occurred when deleting image. Check if your server accept DELETE methods Access-Control-Allow-Methods: ['DELETE'].",isError:!0})})),l.send()}},template:function(e,t,n,r){return e('<material-popup expr557="expr557"></material-popup>',[{type:n.TAG,getComponent:r,evaluate:function(e){return"material-popup"},slots:[{id:"title",html:'<div slot="title">These images will be deleted</div>',bindings:[]},{id:"content",html:'<div slot="content"><ul><li expr558="expr558"></li></ul></div>',bindings:[{type:n.EACH,getKey:null,condition:null,template:e(" ",[{expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return[e.image.name,":",e.image.tag].join("")}}]}]),redundantAttribute:"expr558",selector:"[expr558]",itemName:"image",indexName:null,evaluate:function(e){return e.displayImagesToDelete(e.props.toDelete,e.props.tags)}}]},{id:"action",html:'<div slot="action"><material-button expr559="expr559" class="dialog-button" waves-color="rgba(158,158,158,.4)"></material-button><material-button expr560="expr560" class="dialog-button" waves-color="rgba(158,158,158,.4)"></material-button></div>',bindings:[{type:n.TAG,getComponent:r,evaluate:function(e){return"material-button"},slots:[{id:"default",html:"\n        Delete\n      ",bindings:[]}],attributes:[{type:t.EVENT,name:"onClick",evaluate:function(e){return e.deleteImages}}],redundantAttribute:"expr559",selector:"[expr559]"},{type:n.TAG,getComponent:r,evaluate:function(e){return"material-button"},slots:[{id:"default",html:"\n        Cancel\n      ",bindings:[]}],attributes:[{type:t.EVENT,name:"onClick",evaluate:function(e){return e.props.onClick}}],redundantAttribute:"expr560",selector:"[expr560]"}]}],attributes:[{type:t.ATTRIBUTE,name:"opened",evaluate:function(e){return e.props.opened}},{type:t.EVENT,name:"onClick",evaluate:function(e){return e.props.onClick}}],redundantAttribute:"expr557",selector:"[expr557]"}])},name:"confirm-delete-image"}},onBeforeMount(e){this.state={toDelete:new Set,multiDelete:!1,page:e.page}},onBeforeUpdate(e,t){t.page!==e.page&&t.toDelete.clear(),t.page=e.page},deleteImages(){this.update({confirmDeleteImage:!0})},onConfirmDeleteImageClick(){this.state.singleDeleteAction&&this.state.toDelete.clear(),this.update({singleDeleteAction:!1,confirmDeleteImage:!1})},onRemoveImageHeaderChange(e,t){if(!0===t.altKey){qn(this.props.tags,this.props.page).filter((e=>ar(this.props.filterResults,e.tag))).forEach((e=>this.state.toDelete.add(e))),this.update({multiDelete:!0,toDelete:this.state.toDelete})}else this.update({multiDelete:e})},onRemoveImageChange(e,t){let n=!1,r=!1;switch(e){case yr:this.state.toDelete.add(t);break;case xr:this.state.toDelete.delete(t);break;case br:this.state.toDelete.clear(),this.state.toDelete.add(t),n=!0,r=!0}this.update({toDelete:this.state.toDelete,confirmDeleteImage:n,singleDeleteAction:r})},onReverseOrder(){this.state.orderType=null,this.state.desc=!1,this.props.onReverseOrder()},onPageReorder(e){this.update({orderType:e,desc:this.state.orderType&&this.state.orderType!==e||!this.state.desc})},getPage(e,t){const n=qn(e,t);return"date"===this.state.orderType?n.sort(((e,t)=>this.state.desc?e.creationDate.getTime()-t.creationDate.getTime():t.creationDate.getTime()-e.creationDate.getTime())):"size"===this.state.orderType&&n.sort(((e,t)=>this.state.desc?e.size-t.size:t.size-e.size)),n},matchSearch:ar},template:function(e,t,n,r){return e('<confirm-delete-image expr465="expr465"></confirm-delete-image><material-card expr466="expr466" class="taglist"></material-card>',[{type:n.TAG,getComponent:r,evaluate:function(e){return"confirm-delete-image"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"opened",evaluate:function(e){return e.state.confirmDeleteImage}},{type:t.EVENT,name:"on-click",evaluate:function(e){return e.onConfirmDeleteImageClick}},{type:t.ATTRIBUTE,name:"registry-url",evaluate:function(e){return e.props.registryUrl}},{type:t.EVENT,name:"on-notify",evaluate:function(e){return e.props.onNotify}},{type:t.EVENT,name:"on-authentication",evaluate:function(e){return e.props.onAuthentication}},{type:t.ATTRIBUTE,name:"tags",evaluate:function(e){return e.props.tags}},{type:t.ATTRIBUTE,name:"to-delete",evaluate:function(e){return e.state.toDelete}}],redundantAttribute:"expr465",selector:"[expr465]"},{type:n.TAG,getComponent:r,evaluate:function(e){return"material-card"},slots:[{id:"default",html:'<table style="border: none;"><thead><tr><th expr467="expr467">\n            Creation date\n          </th><th expr468="expr468">\n            Size\n          </th><th expr469="expr469" id="image-content-digest-header"></th><th expr470="expr470" id="image-tag-header">Tag\n          </th><th class="show-tag-history">History</th><th expr471="expr471"></th></tr></thead><tbody><tr expr474="expr474"></tr></tbody></table>',bindings:[{redundantAttribute:"expr467",selector:"[expr467]",expressions:[{type:t.ATTRIBUTE,name:"class",evaluate:function(e){return["creation-date ",e.state.desc&&"date"===e.state.orderType?"material-card-th-sorted-descending":"material-card-th-sorted-ascending"].join("")}},{type:t.EVENT,name:"onclick",evaluate:function(e){return()=>e.onPageReorder("date")}}]},{redundantAttribute:"expr468",selector:"[expr468]",expressions:[{type:t.ATTRIBUTE,name:"class",evaluate:function(e){return["image-size ",e.state.desc&&"size"===e.state.orderType?"material-card-th-sorted-descending":"material-card-th-sorted-ascending"].join("")}},{type:t.EVENT,name:"onclick",evaluate:function(e){return()=>e.onPageReorder("size")}}]},{type:n.IF,evaluate:function(e){return e.props.showContentDigest},redundantAttribute:"expr469",selector:"[expr469]",template:e("Content Digest",[])},{redundantAttribute:"expr470",selector:"[expr470]",expressions:[{type:t.ATTRIBUTE,name:"class",evaluate:function(e){return e.props.asc?"material-card-th-sorted-ascending":"material-card-th-sorted-descending"}},{type:t.EVENT,name:"onclick",evaluate:function(e){return e.onReverseOrder}}]},{type:n.IF,evaluate:function(e){return e.props.isImageRemoveActivated},redundantAttribute:"expr471",selector:"[expr471]",template:e('<material-checkbox expr472="expr472" class="indeterminate" title="Toggle multi-delete. Alt+Click to select all tags."></material-checkbox><material-button expr473="expr473" waves-center="true" rounded="true" waves-color="#ddd" title="This will delete selected images."></material-button>',[{expressions:[{type:t.ATTRIBUTE,name:"class",evaluate:function(e){return["remove-tag ",e.state.toDelete.size>0&&!e.state.singleDeleteAction?"delete":""].join("")}}]},{type:n.IF,evaluate:function(e){return 0===e.state.toDelete.size||e.state.singleDeleteAction},redundantAttribute:"expr472",selector:"[expr472]",template:e(null,[{type:n.TAG,getComponent:r,evaluate:function(e){return"material-checkbox"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"checked",evaluate:function(e){return e.state.multiDelete}},{type:t.EVENT,name:"onChange",evaluate:function(e){return e.onRemoveImageHeaderChange}}]}])},{type:n.IF,evaluate:function(e){return e.state.toDelete.size>0&&!e.state.singleDeleteAction},redundantAttribute:"expr473",selector:"[expr473]",template:e(null,[{type:n.TAG,getComponent:r,evaluate:function(e){return"material-button"},slots:[{id:"default",html:'<i class="material-icons">delete</i>',bindings:[]}],attributes:[{type:t.EVENT,name:"onClick",evaluate:function(e){return e.deleteImages}}]}])}])},{type:n.EACH,getKey:null,condition:function(e){return e.matchSearch(e.props.filterResults,e.image.tag)},template:e('<td class="creation-date"><image-date expr475="expr475"></image-date></td><td class="image-size"><image-size expr476="expr476"></image-size></td><td expr477="expr477"></td><td><image-tag expr480="expr480"></image-tag><copy-to-clipboard expr481="expr481" target="tag"></copy-to-clipboard></td><td class="show-tag-history"><tag-history-button expr482="expr482"></tag-history-button></td><td expr483="expr483" class="remove-tag"></td>',[{type:n.TAG,getComponent:r,evaluate:function(e){return"image-date"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"image",evaluate:function(e){return e.image}}],redundantAttribute:"expr475",selector:"[expr475]"},{type:n.TAG,getComponent:r,evaluate:function(e){return"image-size"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"image",evaluate:function(e){return e.image}}],redundantAttribute:"expr476",selector:"[expr476]"},{type:n.IF,evaluate:function(e){return e.props.showContentDigest},redundantAttribute:"expr477",selector:"[expr477]",template:e('<image-content-digest expr478="expr478"></image-content-digest><copy-to-clipboard expr479="expr479" target="digest"></copy-to-clipboard>',[{type:n.TAG,getComponent:r,evaluate:function(e){return"image-content-digest"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"image",evaluate:function(e){return e.image}}],redundantAttribute:"expr478",selector:"[expr478]"},{type:n.TAG,getComponent:r,evaluate:function(e){return"copy-to-clipboard"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"image",evaluate:function(e){return e.image}},{type:t.ATTRIBUTE,name:"pull-url",evaluate:function(e){return e.props.pullUrl}},{type:t.EVENT,name:"on-notify",evaluate:function(e){return e.props.onNotify}}],redundantAttribute:"expr479",selector:"[expr479]"}])},{type:n.TAG,getComponent:r,evaluate:function(e){return"image-tag"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"image",evaluate:function(e){return e.image}}],redundantAttribute:"expr480",selector:"[expr480]"},{type:n.TAG,getComponent:r,evaluate:function(e){return"copy-to-clipboard"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"image",evaluate:function(e){return e.image}},{type:t.ATTRIBUTE,name:"pull-url",evaluate:function(e){return e.props.pullUrl}},{type:t.EVENT,name:"on-notify",evaluate:function(e){return e.props.onNotify}}],redundantAttribute:"expr481",selector:"[expr481]"},{type:n.TAG,getComponent:r,evaluate:function(e){return"tag-history-button"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"image",evaluate:function(e){return e.image}}],redundantAttribute:"expr482",selector:"[expr482]"},{type:n.IF,evaluate:function(e){return e.props.isImageRemoveActivated},redundantAttribute:"expr483",selector:"[expr483]",template:e('<remove-image expr484="expr484"></remove-image>',[{type:n.TAG,getComponent:r,evaluate:function(e){return"remove-image"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"multi-delete",evaluate:function(e){return e.state.multiDelete}},{type:t.ATTRIBUTE,name:"image",evaluate:function(e){return e.image}},{type:t.ATTRIBUTE,name:"registry-url",evaluate:function(e){return e.props.registryUrl}},{type:t.ATTRIBUTE,name:"handleCheckboxChange",evaluate:function(e){return e.onRemoveImageChange}},{type:t.ATTRIBUTE,name:"checked",evaluate:function(e){return e.state.toDelete.has(e.image)}},{type:t.EVENT,name:"on-notify",evaluate:function(e){return e.props.onNotify}},{type:t.EVENT,name:"on-authentication",evaluate:function(e){return e.props.onAuthentication}}],redundantAttribute:"expr484",selector:"[expr484]"}])}]),redundantAttribute:"expr474",selector:"[expr474]",itemName:"image",indexName:null,evaluate:function(e){return e.getPage(e.props.tags,e.props.page)}}]}],attributes:[],redundantAttribute:"expr466",selector:"[expr466]"}])},name:"tag-table"}},onBeforeMount(e){this.state={registryName:e.registryName,tags:[],loadend:!1,asc:!0,page:rr.getPageQueryParam()||1}},onMounted(e,t){this.display(e,t),window.addEventListener("resize",this.onResize),window.requestAnimationFrame(this.onResize)},display(e,t){t.tags=[];const n=this,r=new sr({onAuthentication:e.onAuthentication});r.addEventListener("load",(function(){if(200==this.status){const r=(JSON.parse(this.responseText).tags||[]).map((t=>new gr(e.image,t,{registryUrl:e.registryUrl,onNotify:e.onNotify,onAuthentication:e.onAuthentication}))).sort(hr);window.requestAnimationFrame(n.onResize),n.update({page:Math.min(t.page,Kn(r)),tags:r})}else 404==this.status?n.props.onNotify("Server not found",!0):n.props.onNotify(this.responseText,!0)})),r.addEventListener("error",(function(){n.props.onNotify(this.getErrorMessage(),!0),t.tags=[]})),r.addEventListener("loadend",(function(){n.update({loadend:!0})})),r.open("GET",e.registryUrl+"/v2/"+e.image+"/tags/list"),r.send(),t.asc=!0},onPageUpdate(e){this.update({page:e}),rr.updatePageQueryParam(e)},onResize(){const e=window.innerWidth;let t=0;const n=this.state.tags.reduce((function(e,t){return t.tag.length>e?t.tag.length:e}),0);t=e>=1440?71:e<1024?0:15+(e-1024)/416*56,n>20&&(t-=n-20),t=Math.floor(t),this.state.tags.map((function(e){e.trigger("content-digest-chars",t)}))},onReverseOrder(){this.state.asc?(this.state.tags.reverse(),this.state.asc=!1):(this.state.tags.sort(hr),this.state.asc=!0),this.update()},getPageLabels:function(e,t){var n=[],r=10;if(1===t)return n;1!==e&&t>=r&&(n.push({icon:"first_page",page:1}),n.push({icon:"chevron_left",page:e-1}));for(var a=Math.round(Math.max(1,Math.min(e-5,t-r+1))),i=a;i<Math.min(t+1,a+r);i++)n.push({page:i,current:i===e,"space-left":1===e&&t>r,"space-right":e===t&&t>r});return e!==t&&t>=r&&(n.push({icon:"chevron_right",page:e+1}),n.push({icon:"last_page",page:t})),n},getNumPages:Kn,router:rr},template:function(e,t,n,r){return e('<material-card expr431="expr431" class="header"></material-card><div expr436="expr436" class="spinner-wrapper"></div><pagination expr438="expr438"></pagination><tag-table expr439="expr439"></tag-table><pagination expr440="expr440"></pagination>',[{type:n.TAG,getComponent:r,evaluate:function(e){return"material-card"},slots:[{id:"default",html:'<div class="material-card-title-action "><material-button expr432="expr432" waves-center="true" rounded="true" waves-color="#ddd"></material-button><h2 expr433="expr433"> <div expr434="expr434" class="source-hint"> </div><div expr435="expr435" class="item-count"> </div></h2></div>',bindings:[{type:n.TAG,getComponent:r,evaluate:function(e){return"material-button"},slots:[{id:"default",html:'<i class="material-icons">arrow_back</i>',bindings:[]}],attributes:[{type:t.EVENT,name:"onClick",evaluate:function(e){return e.router.home}}],redundantAttribute:"expr432",selector:"[expr432]"},{redundantAttribute:"expr433",selector:"[expr433]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return["Tags of ",e.props.image].join("")}}]},{redundantAttribute:"expr434",selector:"[expr434]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return["Sourced from ",e.state.registryName+"/"+e.props.image].join("")}}]},{redundantAttribute:"expr435",selector:"[expr435]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return[e.state.tags.length," tags"].join("")}}]}]}],attributes:[],redundantAttribute:"expr431",selector:"[expr431]"},{type:n.IF,evaluate:function(e){return!e.state.loadend},redundantAttribute:"expr436",selector:"[expr436]",template:e('<material-spinner expr437="expr437"></material-spinner>',[{type:n.TAG,getComponent:r,evaluate:function(e){return"material-spinner"},slots:[],attributes:[],redundantAttribute:"expr437",selector:"[expr437]"}])},{type:n.TAG,getComponent:r,evaluate:function(e){return"pagination"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"pages",evaluate:function(e){return e.getPageLabels(e.state.page,e.getNumPages(e.state.tags))}},{type:t.EVENT,name:"onPageUpdate",evaluate:function(e){return e.onPageUpdate}}],redundantAttribute:"expr438",selector:"[expr438]"},{type:n.IF,evaluate:function(e){return e.state.loadend},redundantAttribute:"expr439",selector:"[expr439]",template:e(null,[{type:n.TAG,getComponent:r,evaluate:function(e){return"tag-table"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"tags",evaluate:function(e){return e.state.tags}},{type:t.ATTRIBUTE,name:"asc",evaluate:function(e){return e.state.asc}},{type:t.ATTRIBUTE,name:"page",evaluate:function(e){return e.state.page}},{type:t.ATTRIBUTE,name:"show-content-digest",evaluate:function(e){return e.props.showContentDigest}},{type:t.ATTRIBUTE,name:"is-image-remove-activated",evaluate:function(e){return e.props.isImageRemoveActivated}},{type:t.EVENT,name:"onReverseOrder",evaluate:function(e){return e.onReverseOrder}},{type:t.ATTRIBUTE,name:"registry-url",evaluate:function(e){return e.props.registryUrl}},{type:t.ATTRIBUTE,name:"pull-url",evaluate:function(e){return e.props.pullUrl}},{type:t.EVENT,name:"on-notify",evaluate:function(e){return e.props.onNotify}},{type:t.ATTRIBUTE,name:"filter-results",evaluate:function(e){return e.props.filterResults}},{type:t.EVENT,name:"on-authentication",evaluate:function(e){return e.props.onAuthentication}}]}])},{type:n.TAG,getComponent:r,evaluate:function(e){return"pagination"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"pages",evaluate:function(e){return e.getPageLabels(e.state.page,e.getNumPages(e.state.tags))}},{type:t.EVENT,name:"onPageUpdate",evaluate:function(e){return e.onPageUpdate}}],redundantAttribute:"expr440",selector:"[expr440]"}])},name:"tag-list"},TagHistory:{css:null,exports:{components:{TagHistoryElement:{css:'tag-history-element.Labels .value,[is="tag-history-element"].Labels .value,tag-history-element.Env .value,[is="tag-history-element"].Env .value{ margin-bottom: 0.5em; } tag-history-element i,[is="tag-history-element"] i{ font-size: 20px; padding: 0px; } tag-history-element.docker_version .headline .material-icons,[is="tag-history-element"].docker_version .headline .material-icons{ background-size: 24px auto; background-image: url("images/docker-logo.svg"); background-repeat: no-repeat; } tag-history-element,[is="tag-history-element"]{ display: block; padding: 20px; min-width: 100px; min-height: 3em; width: 420px; float: left; } tag-history-element .content,[is="tag-history-element"] .content{ overflow-x: auto; } tag-history-element.id .content,[is="tag-history-element"].id .content{ overflow-x: initial; } tag-history-element .headline p,[is="tag-history-element"] .headline p{ font-weight: bold; line-height: 20px; position: relative; display: inline; top: -4px; } tag-history-element.id div.value,[is="tag-history-element"].id div.value{ font-size: 12px; }',exports:{onBeforeStart(e,t){t.key=e.entry.key,t.icon=function(e){switch(e){case"architecture":return"memory";case"created":return"event";case"docker_version":return"";case"os":return"developer_board";case"Cmd":return"launch";case"Entrypoint":return"input";case"Env":return"notes";case"Labels":return"label";case"User":return"face";case"Volumes":return"storage";case"WorkingDir":return"home";case"author":return"account_circle";case"id":case"digest":return"settings_ethernet";case"created_by":return"build";case"size":return"get_app";case"ExposedPorts":return"router"}}(e.entry.key),t.name=this.cleanName(e.entry.key),e.entry.value instanceof Array?t.values=e.entry.value:t.value=e.entry.value},onBeforeMount(e,t){this.onBeforeStart(e,t)},onBeforeUpdate(e,t){this.onBeforeStart(e,t)},cleanName:e=>"id"===e?e:"os"===e?"OS":e.replace(/([a-z])([A-Z])/g,"$1 $2").replace("_"," ").split(" ").map((e=>`${e.charAt(0).toUpperCase()}${e.slice(1)}`)).join(" ")},template:function(e,t,n,r){return e('<div class="headline"><i expr485="expr485" class="material-icons"> </i><p expr486="expr486"> </p></div><div class="content"><div expr487="expr487" class="value"></div><div expr488="expr488" class="values value"></div></div>',[{expressions:[{type:t.ATTRIBUTE,name:"class",evaluate:function(e){return e.state.key}}]},{redundantAttribute:"expr485",selector:"[expr485]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return e.state.icon}}]},{redundantAttribute:"expr486",selector:"[expr486]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return e.state.name}}]},{type:n.IF,evaluate:function(e){return e.state.value},redundantAttribute:"expr487",selector:"[expr487]",template:e(" ",[{expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return[e.state.value].join("")}}]}])},{type:n.EACH,getKey:null,condition:function(e){return e.state.values},template:e(" ",[{expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return[e.value].join("")}}]}]),redundantAttribute:"expr488",selector:"[expr488]",itemName:"value",indexName:null,evaluate:function(e){return e.state.values}}])},name:"tag-history-element"}},onBeforeMount(e,t){t.elements=[],t.image=new gr(e.image,e.tag,{list:!0,registryUrl:e.registryUrl,onNotify:e.onNotify,onAuthentication:e.onAuthentication}),t.image.fillInfo()},onMounted(e,t){t.image.on("blobs",this.processBlobs),t.image.on("list",this.multiArchList)},onTabChanged(e,t){const n=this.state,{registryUrl:r,onNotify:a}=this.props;if(n.elements=[],n.image.variants[t]=n.image.variants[t]||new gr(this.props.image,e.digest,{list:!1,registryUrl:r,onNotify:a}),n.image.variants[t].blobs)return this.processBlobs(n.image.variants[t].blobs);n.image.variants[t].fillInfo(),n.image.variants[t].on("blobs",this.processBlobs)},processBlobs(e){function t(e){const t=[];for(var n in e)if(e.hasOwnProperty(n)&&"empty_layer"!=n){const r=e[n],a={key:n,value:Ar(n,r)};t.push(a)}return t.sort(Er)}this.state;const n=new Array(e.history.length+1);n[0]=t(function(e){const t=["architecture","User","created","docker_version","os","Cmd","Entrypoint","Env","Labels","User","Volumes","WorkingDir","author","id","ExposedPorts"].reduce((function(t,n){const r=e[n]||e.config[n];return r&&"architecture"===n&&e.variant?t[n]=r+e.variant:r&&(t[n]=r),t}),{});return!t.author&&t.Labels&&t.Labels.maintainer&&(t.author=e.config.Labels.maintainer,delete t.Labels.maintainer),t}(e)),e.history.forEach((function(r,a){n[e.history.length-a]=t(r)})),this.update({elements:n,loadend:!0})},multiArchList(e){const t=(e=e.manifests||e).map((function(e){return{title:e.platform.os+"/"+e.platform.architecture+(e.platform.variant?e.platform.variant:""),digest:e.digest}}));this.update({archs:t})},toTaglist(){rr.taglist(this.props.image)}},template:function(e,t,n,r){return e('<material-card expr441="expr441" ref="tag-history-tag" class="tag-history header"></material-card><div expr444="expr444" class="spinner-wrapper"></div><material-tabs expr446="expr446"></material-tabs><material-card expr447="expr447" class="tag-history-element"></material-card>',[{type:n.TAG,getComponent:r,evaluate:function(e){return"material-card"},slots:[{id:"default",html:'<div class="material-card-title-action"><material-button expr442="expr442" waves-center="true" rounded="true" waves-color="#ddd"></material-button><h2 expr443="expr443"> <i class="material-icons">history</i></h2></div>',bindings:[{type:n.TAG,getComponent:r,evaluate:function(e){return"material-button"},slots:[{id:"default",html:'<i class="material-icons">arrow_back</i>',bindings:[]}],attributes:[{type:t.EVENT,name:"onClick",evaluate:function(e){return e.toTaglist}}],redundantAttribute:"expr442",selector:"[expr442]"},{redundantAttribute:"expr443",selector:"[expr443]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return["History of ",e.props.image,":",e.props.tag].join("")}}]}]}],attributes:[],redundantAttribute:"expr441",selector:"[expr441]"},{type:n.IF,evaluate:function(e){return!e.state.loadend},redundantAttribute:"expr444",selector:"[expr444]",template:e('<material-spinner expr445="expr445"></material-spinner>',[{type:n.TAG,getComponent:r,evaluate:function(e){return"material-spinner"},slots:[],attributes:[],redundantAttribute:"expr445",selector:"[expr445]"}])},{type:n.IF,evaluate:function(e){return e.state.archs&&e.state.loadend},redundantAttribute:"expr446",selector:"[expr446]",template:e(null,[{type:n.TAG,getComponent:r,evaluate:function(e){return"material-tabs"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"useLine",evaluate:function(e){return!0}},{type:t.ATTRIBUTE,name:"tabs",evaluate:function(e){return e.state.archs}},{type:t.EVENT,name:"onTabChanged",evaluate:function(e){return e.onTabChanged}}]}])},{type:n.EACH,getKey:null,condition:null,template:e(null,[{type:n.TAG,getComponent:r,evaluate:function(e){return"material-card"},slots:[{id:"default",html:'<tag-history-element expr448="expr448"></tag-history-element>',bindings:[{type:n.EACH,getKey:null,condition:function(e){return e.entry.value&&e.entry.value.length>0},template:e(null,[{type:n.TAG,getComponent:r,evaluate:function(e){return"tag-history-element"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"entry",evaluate:function(e){return e.entry}}]}]),redundantAttribute:"expr448",selector:"[expr448]",itemName:"entry",indexName:null,evaluate:function(e){return e.element}}]}],attributes:[]}]),redundantAttribute:"expr447",selector:"[expr447]",itemName:"element",indexName:null,evaluate:function(e){return e.state.elements}}])},name:"tag-history"},DialogsMenu:{css:'dialogs-menu > .container,[is="dialogs-menu"] > .container{ position: absolute; top: 0px; right: 16px; color: #000; list-style-type: disc; margin-block-start: 0.7em; } dialogs-menu .overlay,[is="dialogs-menu"] .overlay{ position: fixed; height: 100%; width: 100%; top: 0; right: 0; z-index: 10; } dialogs-menu material-button,[is="dialogs-menu"] material-button{ background: rgba(255, 255, 255, 0); float: right; z-index: 2; } dialogs-menu material-button .content i.material-icons,[is="dialogs-menu"] material-button .content i.material-icons{ color: #fff; font-size: 24px; } dialogs-menu material-dropdown-list,[is="dialogs-menu"] material-dropdown-list{ display: inline-block; position: relative; } dialogs-menu material-dropdown-list ul.dropdown-content,[is="dialogs-menu"] material-dropdown-list ul.dropdown-content{ min-width: 156px; padding: 8px 0; margin: 0; } dialogs-menu material-dropdown-list ul.dropdown-content li span,[is="dialogs-menu"] material-dropdown-list ul.dropdown-content li span{ font-size: 1rem; line-height: 1.2em; } dialogs-menu material-popup *,[is="dialogs-menu"] material-popup *{ line-height: 1em; } dialogs-menu material-popup material-button .content,[is="dialogs-menu"] material-popup material-button .content{ line-height: 36px; }',exports:{components:{AddRegistryUrl:{css:null,exports:{onKeyUp(e){13===e.keyCode&&this.add()},add(){const e=this.$("input");if(!e||!e.value||0===e.value.length)return this.props.onNotify("The input field is empty. Please enter an url.",!0);if(!e.value.startsWith("http"))return this.props.onNotify("The input field should start with http:// or https://.",!0);const t=e.value.trim().replace(/\/*$/,""),n=Qn().filter((e=>e!==t));localStorage.setItem("registryServer",JSON.stringify([t].concat(n))),rr.home(),this.props.onServerChange(t),this.props.onClose(),setTimeout((()=>rr.updateUrlQueryParam(t)),100)}},template:function(e,t,n,r){return e('<material-popup expr489="expr489"></material-popup>',[{type:n.TAG,getComponent:r,evaluate:function(e){return"material-popup"},slots:[{id:"title",html:'<div slot="title">Add your Server ?</div>',bindings:[]},{id:"content",html:'<div slot="content"><material-input expr490="expr490" placeholder="Server URL"></material-input><span>Write your URL without /v2</span></div>',bindings:[{type:n.TAG,getComponent:r,evaluate:function(e){return"material-input"},slots:[],attributes:[{type:t.EVENT,name:"onkeyup",evaluate:function(e){return e.onKeyUp}}],redundantAttribute:"expr490",selector:"[expr490]"}]},{id:"action",html:'<div slot="action"><material-button expr491="expr491" class="dialog-button" waves-color="rgba(158,158,158,.4)"></material-button><material-button expr492="expr492" class="dialog-button" waves-color="rgba(158,158,158,.4)"></material-button></div>',bindings:[{type:n.TAG,getComponent:r,evaluate:function(e){return"material-button"},slots:[{id:"default",html:"\n        Add\n      ",bindings:[]}],attributes:[{type:t.EVENT,name:"onClick",evaluate:function(e){return e.add}}],redundantAttribute:"expr491",selector:"[expr491]"},{type:n.TAG,getComponent:r,evaluate:function(e){return"material-button"},slots:[{id:"default",html:"\n        Cancel\n      ",bindings:[]}],attributes:[{type:t.EVENT,name:"onClick",evaluate:function(e){return e.props.onClose}}],redundantAttribute:"expr492",selector:"[expr492]"}]}],attributes:[{type:t.ATTRIBUTE,name:"opened",evaluate:function(e){return e.props.opened}},{type:t.EVENT,name:"onClick",evaluate:function(e){return e.props.onClose}}],redundantAttribute:"expr489",selector:"[expr489]"}])},name:"add-registry-url"},ChangeRegistryUrl:{css:'change-registry-url select,[is="change-registry-url"] select{ position: relative; outline: 0; box-shadow: none; padding: 0; width: 100%; background: 0 0; border: none; font-weight: 400; line-height: 24px; height: 24px; border-bottom: 1px solid #2f6975; appearance: none; -moz-appearance: none; -webkit-appearance: none; margin: 1.5em 0; }',exports:{change(e){const t=this.$("select");if(!t||!t.value||0===t.value.length)return this.props.onNotify("The select field is empty. Please add an url.",!0);if(!t.value.startsWith("http"))return this.props.onNotify("The select field should start with http:// or https://.",!0);const n=t.value.trim().replace(/\/*$/,""),r=Qn().filter((e=>e!==n));localStorage.setItem("registryServer",JSON.stringify([n].concat(r))),rr.home(),this.props.onServerChange(n),this.props.onClose(),setTimeout((()=>rr.updateUrlQueryParam(n)),100)},getRegistryServers:Qn},template:function(e,t,n,r){return e('<material-popup expr498="expr498"></material-popup>',[{type:n.TAG,getComponent:r,evaluate:function(e){return"material-popup"},slots:[{id:"title",html:'<div slot="title">Change your Server ?</div>',bindings:[]},{id:"content",html:'<div slot="content"><select><option expr499="expr499"></option></select></div>',bindings:[{type:n.EACH,getKey:null,condition:null,template:e(" ",[{expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return e.url}},{type:t.ATTRIBUTE,name:"value",evaluate:function(e){return e.url}}]}]),redundantAttribute:"expr499",selector:"[expr499]",itemName:"url",indexName:null,evaluate:function(e){return e.getRegistryServers()}}]},{id:"action",html:'<div slot="action"><material-button expr500="expr500" class="dialog-button" waves-color="rgba(158,158,158,.4)"></material-button><material-button expr501="expr501" class="dialog-button" waves-color="rgba(158,158,158,.4)"></material-button></div>',bindings:[{type:n.TAG,getComponent:r,evaluate:function(e){return"material-button"},slots:[{id:"default",html:"\n        Change\n      ",bindings:[]}],attributes:[{type:t.EVENT,name:"onClick",evaluate:function(e){return e.change}}],redundantAttribute:"expr500",selector:"[expr500]"},{type:n.TAG,getComponent:r,evaluate:function(e){return"material-button"},slots:[{id:"default",html:"\n        Cancel\n      ",bindings:[]}],attributes:[{type:t.EVENT,name:"onClick",evaluate:function(e){return e.props.onClose}}],redundantAttribute:"expr501",selector:"[expr501]"}]}],attributes:[{type:t.ATTRIBUTE,name:"opened",evaluate:function(e){return e.props.opened}},{type:t.EVENT,name:"onClick",evaluate:function(e){return e.props.onClick}}],redundantAttribute:"expr498",selector:"[expr498]"}])},name:"change-registry-url"},RemoveRegistryUrl:{css:'remove-registry-url material-popup .popup material-button,[is="remove-registry-url"] material-popup .popup material-button{ margin-right: 1em; } remove-registry-url material-popup .popup material-button .content i.material-icons,[is="remove-registry-url"] material-popup .popup material-button .content i.material-icons{ color: #777; }',exports:{remove(e){const t=e.currentTarget.attributes.url&&e.currentTarget.attributes.url.value,n=Qn().filter((e=>e!==t));localStorage.setItem("registryServer",JSON.stringify(n)),setTimeout((()=>this.update()),100)},getRegistryServers:Qn},template:function(e,t,n,r){return e('<material-popup expr493="expr493"></material-popup>',[{type:n.TAG,getComponent:r,evaluate:function(e){return"material-popup"},slots:[{id:"title",html:'<div slot="title">Remove your Registry Server ?</div>',bindings:[]},{id:"content",html:'<div slot="content"><ul class="list"><li expr494="expr494"></li></ul></div>',bindings:[{type:n.EACH,getKey:null,condition:null,template:e('<span><material-button expr495="expr495" rounded="true" waves-color="rgba(158,158,158,.4)" waves-center="true"></material-button><span expr496="expr496" class="url"> </span></span>',[{type:n.TAG,getComponent:r,evaluate:function(e){return"material-button"},slots:[{id:"default",html:'<i class="material-icons">delete</i>',bindings:[]}],attributes:[{type:t.EVENT,name:"onClick",evaluate:function(e){return e.remove}},{type:t.ATTRIBUTE,name:"url",evaluate:function(e){return e.url}}],redundantAttribute:"expr495",selector:"[expr495]"},{redundantAttribute:"expr496",selector:"[expr496]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return e.url}}]}]),redundantAttribute:"expr494",selector:"[expr494]",itemName:"url",indexName:null,evaluate:function(e){return e.getRegistryServers()}}]},{id:"action",html:'<div slot="action"><material-button expr497="expr497" class="dialog-button" waves-color="rgba(158,158,158,.4)"></material-button></div>',bindings:[{type:n.TAG,getComponent:r,evaluate:function(e){return"material-button"},slots:[{id:"default",html:"\n        Close\n      ",bindings:[]}],attributes:[{type:t.EVENT,name:"onClick",evaluate:function(e){return e.props.onClose}}],redundantAttribute:"expr497",selector:"[expr497]"}]}],attributes:[{type:t.ATTRIBUTE,name:"opened",evaluate:function(e){return e.props.opened}},{type:t.EVENT,name:"onClick",evaluate:function(e){return e.props.onClose}}],redundantAttribute:"expr493",selector:"[expr493]"}])},name:"remove-registry-url"}},dropdownItems:[{title:"Add URL",name:"add-registry-url"},{title:"Change URL",name:"change-registry-url"},{title:"Remove URL",name:"remove-registry-url"}],onDropdownSelect(e,t){this.update({[t.name]:!0,isDropdownOpened:!1})},onClose(e){return()=>{this.update({[e]:!1,isDropdownOpened:!1})}},onClick(){this.update({isDropdownOpened:!this.state.isDropdownOpened})}},template:function(e,t,n,r){return e('<add-registry-url expr449="expr449"></add-registry-url><change-registry-url expr450="expr450"></change-registry-url><remove-registry-url expr451="expr451"></remove-registry-url><div class="container"><material-button expr452="expr452" waves-center="true" rounded="true" waves-opacity="0.6" waves-duration="600"></material-button><material-dropdown-list expr453="expr453"></material-dropdown-list></div><div expr454="expr454" class="overlay"></div>',[{type:n.TAG,getComponent:r,evaluate:function(e){return"add-registry-url"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"opened",evaluate:function(e){return e.state["add-registry-url"]}},{type:t.EVENT,name:"on-close",evaluate:function(e){return e.onClose("add-registry-url")}},{type:t.EVENT,name:"on-notify",evaluate:function(e){return e.props.onNotify}},{type:t.EVENT,name:"on-server-change",evaluate:function(e){return e.props.onServerChange}}],redundantAttribute:"expr449",selector:"[expr449]"},{type:n.TAG,getComponent:r,evaluate:function(e){return"change-registry-url"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"opened",evaluate:function(e){return e.state["change-registry-url"]}},{type:t.EVENT,name:"on-close",evaluate:function(e){return e.onClose("change-registry-url")}},{type:t.EVENT,name:"on-notify",evaluate:function(e){return e.props.onNotify}},{type:t.EVENT,name:"on-server-change",evaluate:function(e){return e.props.onServerChange}}],redundantAttribute:"expr450",selector:"[expr450]"},{type:n.TAG,getComponent:r,evaluate:function(e){return"remove-registry-url"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"opened",evaluate:function(e){return e.state["remove-registry-url"]}},{type:t.EVENT,name:"on-close",evaluate:function(e){return e.onClose("remove-registry-url")}},{type:t.EVENT,name:"on-notify",evaluate:function(e){return e.props.onNotify}},{type:t.EVENT,name:"on-server-change",evaluate:function(e){return e.props.onServerChange}}],redundantAttribute:"expr451",selector:"[expr451]"},{type:n.TAG,getComponent:r,evaluate:function(e){return"material-button"},slots:[{id:"default",html:'<i class="material-icons">more_vert</i>',bindings:[]}],attributes:[{type:t.EVENT,name:"onClick",evaluate:function(e){return e.onClick}}],redundantAttribute:"expr452",selector:"[expr452]"},{type:n.TAG,getComponent:r,evaluate:function(e){return"material-dropdown-list"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"items",evaluate:function(e){return e.dropdownItems}},{type:t.EVENT,name:"onSelect",evaluate:function(e){return e.onDropdownSelect}},{type:t.ATTRIBUTE,name:"opened",evaluate:function(e){return e.state.isDropdownOpened}}],redundantAttribute:"expr453",selector:"[expr453]"},{type:n.IF,evaluate:function(e){return e.state.isDropdownOpened},redundantAttribute:"expr454",selector:"[expr454]",template:e(null,[{expressions:[{type:t.EVENT,name:"onclick",evaluate:function(e){return e.onClick}}]}])}])},name:"dialogs-menu"},SearchBar:ir,Router:Hn,Route:mn},onUpdated(e,t){t.snackbarIsError=!1,t.snackbarMessage=void 0},onBeforeMount(e){const t=e.registryUrl||("true"===e.singleRegistry?void 0:rr.getUrlQueryParam()||Qn(0))||window.location.origin+window.location.pathname.replace(/\/+$/,"");this.state.registryUrl=t.replace(/\/$/,""),this.state.name=e.name||Wn(e.registryUrl),this.state.catalogElementsLimit=e.catalogElementsLimit||1e5,this.state.pullUrl=this.pullUrl(this.state.registryUrl,e.pullUrl)},onServerChange(e){this.update({registryUrl:e,name:Wn(e),pullUrl:this.pullUrl(e),snackbarMessage:"Registry server changed to `"+e+"`."})},onAuthentication(e,t){if(e&&e.realm&&e.service&&e.scope){const{realm:n,service:r,scope:a}=e,i=new XMLHttpRequest;i.addEventListener("loadend",(()=>{try{const e=JSON.parse(i.responseText);t(e)}catch(e){this.notifySnackbar(`Failed to log in: ${e.message}`,!0)}})),i.open("GET",`${n}?service=${r}&scope=${a}`),i.send()}else t()},onAuthenticationClose(){this.update({authenticationDialogOpened:!1})},pullUrl:(e,t)=>Wn(t||e&&e.length>0&&e||window.location.host),notifySnackbar(e,t){"string"==typeof e?this.update({snackbarMessage:e,snackbarIsError:t||!1}):e&&e.message&&this.update({snackbarMessage:e.message,snackbarIsError:e.isError})},onSearch(e){this.update({filter:e})},baseRoute:"([^#]*?)/(\\?[^#]*?)?(#!)?(/?)",router:rr,version:"2.0.6",truthy:function(e){return!0===e||"true"===e}},template:function(e,t,n,r){return e('<header><material-navbar expr410="expr410"></material-navbar></header><main><router expr413="expr413" base="#!"></router><registry-authentication expr420="expr420"></registry-authentication><material-snackbar expr421="expr421"></material-snackbar></main><footer><material-footer expr422="expr422"></material-footer></footer>',[{type:n.TAG,getComponent:r,evaluate:function(e){return"material-navbar"},slots:[{id:"default",html:'<div class="logo">Docker Registry UI</div><search-bar expr411="expr411"></search-bar><dialogs-menu expr412="expr412"></dialogs-menu>',bindings:[{type:n.TAG,getComponent:r,evaluate:function(e){return"search-bar"},slots:[],attributes:[{type:t.EVENT,name:"on-search",evaluate:function(e){return e.onSearch}}],redundantAttribute:"expr411",selector:"[expr411]"},{type:n.IF,evaluate:function(e){return"true"!==e.props.singleRegistry},redundantAttribute:"expr412",selector:"[expr412]",template:e(null,[{type:n.TAG,getComponent:r,evaluate:function(e){return"dialogs-menu"},slots:[],attributes:[{type:t.EVENT,name:"on-notify",evaluate:function(e){return e.notifySnackbar}},{type:t.EVENT,name:"on-server-change",evaluate:function(e){return e.onServerChange}}]}])}]}],attributes:[],redundantAttribute:"expr410",selector:"[expr410]"},{type:n.TAG,getComponent:r,evaluate:function(e){return"router"},slots:[{id:"default",html:'<route expr414="expr414"></route><route expr416="expr416"></route><route expr418="expr418"></route>',bindings:[{type:n.TAG,getComponent:r,evaluate:function(e){return"route"},slots:[{id:"default",html:'<catalog expr415="expr415"></catalog>',bindings:[{type:n.TAG,getComponent:r,evaluate:function(e){return"catalog"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"registry-url",evaluate:function(e){return e.state.registryUrl}},{type:t.ATTRIBUTE,name:"registry-name",evaluate:function(e){return e.state.name}},{type:t.ATTRIBUTE,name:"catalog-elements-limit",evaluate:function(e){return e.state.catalogElementsLimit}},{type:t.EVENT,name:"on-notify",evaluate:function(e){return e.notifySnackbar}},{type:t.ATTRIBUTE,name:"filter-results",evaluate:function(e){return e.state.filter}},{type:t.EVENT,name:"on-authentication",evaluate:function(e){return e.onAuthentication}}],redundantAttribute:"expr415",selector:"[expr415]"}]}],attributes:[{type:t.ATTRIBUTE,name:"path",evaluate:function(e){return e.baseRoute}}],redundantAttribute:"expr414",selector:"[expr414]"},{type:n.TAG,getComponent:r,evaluate:function(e){return"route"},slots:[{id:"default",html:'<tag-list expr417="expr417"></tag-list>',bindings:[{type:n.TAG,getComponent:r,evaluate:function(e){return"tag-list"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"registry-url",evaluate:function(e){return e.state.registryUrl}},{type:t.ATTRIBUTE,name:"registry-name",evaluate:function(e){return e.state.name}},{type:t.ATTRIBUTE,name:"pull-url",evaluate:function(e){return e.state.pullUrl}},{type:t.ATTRIBUTE,name:"image",evaluate:function(e){return e.router.getTagListImage()}},{type:t.ATTRIBUTE,name:"show-content-digest",evaluate:function(e){return e.truthy(e.props.showContentDigest)}},{type:t.ATTRIBUTE,name:"is-image-remove-activated",evaluate:function(e){return e.truthy(e.props.isImageRemoveActivated)}},{type:t.EVENT,name:"on-notify",evaluate:function(e){return e.notifySnackbar}},{type:t.ATTRIBUTE,name:"filter-results",evaluate:function(e){return e.state.filter}},{type:t.EVENT,name:"on-authentication",evaluate:function(e){return e.onAuthentication}}],redundantAttribute:"expr417",selector:"[expr417]"}]}],attributes:[{type:t.ATTRIBUTE,name:"path",evaluate:function(e){return[e.baseRoute,"taglist/(.*)"].join("")}}],redundantAttribute:"expr416",selector:"[expr416]"},{type:n.TAG,getComponent:r,evaluate:function(e){return"route"},slots:[{id:"default",html:'<tag-history expr419="expr419"></tag-history>',bindings:[{type:n.TAG,getComponent:r,evaluate:function(e){return"tag-history"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"registry-url",evaluate:function(e){return e.state.registryUrl}},{type:t.ATTRIBUTE,name:"registry-name",evaluate:function(e){return e.state.name}},{type:t.ATTRIBUTE,name:"pull-url",evaluate:function(e){return e.state.pullUrl}},{type:t.ATTRIBUTE,name:"image",evaluate:function(e){return e.router.getTagHistoryImage()}},{type:t.ATTRIBUTE,name:"tag",evaluate:function(e){return e.router.getTagHistoryTag()}},{type:t.ATTRIBUTE,name:"is-image-remove-activated",evaluate:function(e){return e.truthy(e.props.isImageRemoveActivated)}},{type:t.EVENT,name:"on-notify",evaluate:function(e){return e.notifySnackbar}},{type:t.EVENT,name:"on-authentication",evaluate:function(e){return e.onAuthentication}}],redundantAttribute:"expr419",selector:"[expr419]"}]}],attributes:[{type:t.ATTRIBUTE,name:"path",evaluate:function(e){return[e.baseRoute,"taghistory/(.*)"].join("")}}],redundantAttribute:"expr418",selector:"[expr418]"}]}],attributes:[],redundantAttribute:"expr413",selector:"[expr413]"},{type:n.TAG,getComponent:r,evaluate:function(e){return"registry-authentication"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"realm",evaluate:function(e){return e.state.realm}},{type:t.ATTRIBUTE,name:"scope",evaluate:function(e){return e.state.scope}},{type:t.ATTRIBUTE,name:"service",evaluate:function(e){return e.state.service}},{type:t.EVENT,name:"on-close",evaluate:function(e){return e.onAuthenticationClose}},{type:t.EVENT,name:"on-authenticated",evaluate:function(e){return e.state.onAuthenticated}},{type:t.ATTRIBUTE,name:"opened",evaluate:function(e){return e.state.authenticationDialogOpened}}],redundantAttribute:"expr420",selector:"[expr420]"},{type:n.TAG,getComponent:r,evaluate:function(e){return"material-snackbar"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"message",evaluate:function(e){return e.state.snackbarMessage}},{type:t.ATTRIBUTE,name:"is-error",evaluate:function(e){return e.state.snackbarIsError}}],redundantAttribute:"expr421",selector:"[expr421]"},{type:n.TAG,getComponent:r,evaluate:function(e){return"material-footer"},slots:[{id:"logo",html:'<a expr423="expr423" slot="logo" href="https://joxit.github.io/docker-registry-ui/"> </a>',bindings:[{redundantAttribute:"expr423",selector:"[expr423]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return["Docker Registry UI ",e.version].join("")}}]}]},{id:"link-list",html:'<ul slot="link-list"><li><a href="https://github.com/Joxit/docker-registry-ui">Contribute on GitHub</a></li><li><a href="https://github.com/Joxit/docker-registry-ui/blob/main/LICENSE">Privacy &amp; Terms</a></li></ul>',bindings:[]}],attributes:[],redundantAttribute:"expr422",selector:"[expr422]"}])},name:"docker-registry-ui"};At("material-card",Nt),At("material-footer",kt),At("material-navbar",{css:null,exports:null,template:function(e,t,n,r){return e('<div class="nav-wrapper"><slot expr521="expr521"></slot></div>',[{expressions:[{type:t.ATTRIBUTE,name:"role",evaluate:function(e){return"toolbar"}}]},{type:n.SLOT,attributes:[],name:"default",redundantAttribute:"expr521",selector:"[expr521]"}])},name:"material-navbar"}),At("material-spinner",{css:null,exports:null,template:function(e,t,n,r){return e('<svg class="loader-circular" height="50" width="50"><circle expr541="expr541" class="loader-path" cx="25" cy="25.2" r="19.9" fill="none" stroke-miterlimit="10"/></svg>',[{redundantAttribute:"expr541",selector:"[expr541]",expressions:[{type:t.ATTRIBUTE,name:"stroke-width",evaluate:function(e){return e.props.strokewidth||3}}]}])},name:"material-spinner"}),At("material-button",Ct),At("material-waves",jt),At("material-checkbox",It),At("material-snackbar",Bt),At("material-tabs",Lt),At("material-dropdown-list",Rt),At("material-popup",St),At("material-input",Ot);for(var Cr,Nr=(Cr=wr,function(e,t,n){var r=void 0===n?{}:n,a=r.slots,i=r.attributes,o=r.parentScope;return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}((function(t){return t.mount(e,o)}),(function(e){return e({props:t,slots:a,attributes:i})}),vt)(Cr)}),Ir=document.getElementsByTagName("docker-registry-ui"),Rr=0;Rr<Ir.length;Rr++)Nr(Ir.item(Rr))}();
