docker-registry-ui/dist/docker-registry-ui.js

42 lines
152 KiB
JavaScript

/*
* Copyright (C) 2016-2023 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";
/* Riot WIP, @license MIT */var e,t=new Map,r=Symbol("riot-component"),a=new Set,n="is",o="mount",i="update",s="unmount",l="shouldUpdate",u="onBeforeMount",p="onMounted",c="onBeforeUpdate",d="onUpdated",m="onBeforeUnmount",h="onUnmounted",g="props",v="state",f="slots",y="root",x=Symbol("pure"),b=Symbol("is_updating"),T=Symbol("parent"),E=Symbol("attributes"),A=Symbol("template"),w=0,C=2,k=3,I={ATTRIBUTE:w,EVENT:1,TEXT:C,VALUE:k};
/* Riot WIP, @license MIT */function R(e){return e.replace(/-(\w)/g,(function(e,t){return t.toUpperCase()}))}function N(e,t){throw new Error(e,{cause:t})}function U(e){var t=this,r=new Map,a=function(a){return(r.has(a)||r.set(a,e.call(t,a)))&&r.get(a)};return a.cache=r,a}function B(e){return e.reduce((function(e,t){var r=t.value,a=t.type;switch(!0){case!t.name&&a===w:return Object.assign({},e,r);case a===k:e.value=t.value;break;default:e[R(t.name)]=t.value}return e}),{})}function O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?O(Object(r),!0).forEach((function(t){V(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function D(){D=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",s=n.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:T(e,r,s)}),i}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var c={};function d(){}function m(){}function h(){}var g={};l(g,o,(function(){return this}));var v=Object.getPrototypeOf,f=v&&v(v(k([])));f&&f!==t&&r.call(f,o)&&(g=f);var y=h.prototype=d.prototype=Object.create(g);function x(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(a,o,i,s){var l=p(e[a],e,o);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==typeof c&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(c).then((function(e){u.value=e,i(u)}),(function(e){return n("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function T(e,t,r){var a="suspendedStart";return function(n,o){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===n)throw o;return I()}for(r.method=n,r.arg=o;;){var i=r.delegate;if(i){var s=E(i,r);if(s){if(s===c)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===a)throw a="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a="executing";var l=p(e,t,r);if("normal"===l.type){if(a=r.done?"completed":"suspendedYield",l.arg===c)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(a="completed",r.method="throw",r.arg=l.arg)}}}function E(e,t){var r=t.method,a=e.iterator[r];if(void 0===a)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),c;var n=p(a,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,c;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,c):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function A(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function k(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 a=-1,n=function t(){for(;++a<e.length;)if(r.call(e,a))return t.value=e[a],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:I}}function I(){return{value:void 0,done:!0}}return m.prototype=h,a(y,"constructor",{value:h,configurable:!0}),a(h,"constructor",{value:m,configurable:!0}),m.displayName=l(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,l(e,s,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},x(b.prototype),l(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,a,n,o){void 0===o&&(o=Promise);var i=new b(u(t,r,a,n),o);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},x(y),l(y,s,"Generator"),l(y,o,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var a in t)r.push(a);return r.reverse(),function e(){for(;r.length;){var a=r.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},e.values=k,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},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 a(r,a){return i.type="throw",i.arg=e,t.next=r,a&&(t.method="next",t.arg=void 0),!!a}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),l=r.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(e,t){for(var a=this.tryEntries.length-1;a>=0;--a){var n=this.tryEntries[a];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,c):this.complete(i)},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),c},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),c}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var a=r.completion;if("throw"===a.type){var n=a.arg;w(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:k(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),c}},e}function L(e){return L="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},L(e)}function j(){j=function(e,t){return new r(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function r(e,a,n){var o=new RegExp(e,a);return t.set(o,n||t.get(e)),F(o,r.prototype)}function a(e,r){var a=t.get(r);return Object.keys(a).reduce((function(t,r){var n=a[r];if("number"==typeof n)t[r]=e[n];else{for(var o=0;void 0===e[n[o]]&&o+1<n.length;)o++;t[r]=e[n[o]]}return t}),Object.create(null))}return G(r,RegExp),r.prototype.exec=function(t){var r=e.exec.call(this,t);if(r){r.groups=a(r,this);var n=r.indices;n&&(n.groups=a(n,this))}return r},r.prototype[Symbol.replace]=function(r,n){if("string"==typeof n){var o=t.get(this);return e[Symbol.replace].call(this,r,n.replace(/\$<([^>]+)>/g,(function(e,t){var r=o[t];return"$"+(Array.isArray(r)?r.join("$"):r)})))}if("function"==typeof n){var i=this;return e[Symbol.replace].call(this,r,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(a(e,i)),n.apply(this,e)}))}return e[Symbol.replace].call(this,r,n)},j.apply(this,arguments)}function M(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,te(a.key),a)}}function P(e,t,r){return t&&_(e.prototype,t),r&&_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function V(e,t,r){return(t=te(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function G(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&F(e,t)}function $(e){return $=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$(e)}function F(e,t){return F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},F(e,t)}function H(){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 z(e,t,r){return z=H()?Reflect.construct.bind():function(e,t,r){var a=[null];a.push.apply(a,t);var n=new(Function.bind.apply(e,a));return r&&F(n,r.prototype),n},z.apply(null,arguments)}function X(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function q(e,t){return Y(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,n,o,i,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(a=o.call(r)).done)&&(s.push(a.value),s.length!==t);l=!0);}catch(e){u=!0,n=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw n}}return s}}(e,t)||J(e,t)||ee()}function W(e){return Y(e)||Q(e)||J(e)||ee()}function K(e){return function(e){if(Array.isArray(e))return Z(e)}(e)||Q(e)||J(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 Y(e){if(Array.isArray(e))return e}function Q(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function J(e,t){if(e){if("string"==typeof e)return Z(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Z(e,t):void 0}}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function ee(){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 te(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}
/* Riot WIP, @license MIT */function re(e,t){return L(e)===t}function ae(e){var t=e.ownerSVGElement;return!!t||null===t}function ne(e){return"template"===e.tagName.toLowerCase()}function oe(e){return re(e,"function")}function ie(e){return!se(e)&&e.constructor===Object}function se(e){return null==e}function le(){return this}function ue(e){return oe(e)?e.prototype&&e.prototype.constructor?new e:e():e}var pe=Object.freeze((V(e={},o,le),V(e,i,le),V(e,s,le),e)),ce=Object.assign({},pe,{clone:le,createDOM:le});function de(e){for(;e.firstChild;)e.removeChild(e.firstChild)}var me,he,ge=function(e){return e.remove()},ve=function(e,t){return t&&t.parentNode&&t.parentNode.insertBefore(e,t)},fe=2,ye={EACH:0,IF:1,SIMPLE:fe,TAG:3,SLOT:4};
/* Riot WIP, @license MIT */
function xe(e,t,r,a){return void 0===a&&(a={}),Object.defineProperty(e,t,Object.assign({value:r,enumerable:!1,writable:!1,configurable:!0},a)),e}function be(e,t,r){return Object.entries(t).forEach((function(t){var a=q(t,2),n=a[0],o=a[1];xe(e,n,o,r)})),e}function Te(e,t){return Object.entries(t).forEach((function(t){var r=q(t,2),a=r[0],n=r[1];e[a]||(e[a]=n)})),e}var Ee=Symbol(),Ae=Symbol();function we(e){var t=e.dom.cloneNode(!0),r=function(){var e=document.createTextNode(""),t=document.createTextNode("");return e[Ee]=!0,t[Ae]=!0,{head:e,tail:t}}(),a=r.head,n=r.tail;return{avoidDOMInjection:!0,fragment:t,head:a,tail:n,children:[a].concat(K(Array.from(t.childNodes)),[n])}}var Ce=Symbol("unmount"),ke={nodes:[],mount:function(e,t){return this.update(e,t)},update:function(e,t){var r=this.placeholder,a=this.nodes,n=this.childrenMap,o=e===Ce?null:this.evaluate(e),i=function(e,t,r,a){var n=a.condition,o=a.template,i=a.childrenMap,s=a.itemName,l=a.getKey,u=a.indexName,p=a.root,c=a.isTemplateTag,d=new Map,m=[],h=[];return e.forEach((function(e,a){var g=function(e,t){var r=t.itemName,a=t.indexName,n=t.index,o=t.item;xe(e,r,o),a&&xe(e,a,n);return e}(Object.create(t),{itemName:s,indexName:u,index:a,item:e}),v=l?l(g):a,f=i.get(v),y=[];if(!function(e,t){return!!e&&!e(t)}(n,g)){var x=!f,b=f?f.template:o.clone(),T=b.el||p.cloneNode(),E=c&&x?we(b):b.meta;x?m.push((function(){return b.mount(T,g,r,E)})):m.push((function(){return b.update(g,r)})),c?y.push.apply(y,K(E.children)):y.push(T),i.delete(v),h.push.apply(h,y),d.set(v,{nodes:y,template:b,context:g,index:a})}})),{newChildrenMap:d,batches:m,futureNodes:h}}(o?Array.from(o):[],e,t,this),s=i.newChildrenMap,l=i.batches,u=i.futureNodes;return function(e,t,r,a){for(var n,o,i=t.length,s=e.length,l=i,u=0,p=0,c=null;u<s||p<l;)if(s===u)for(var d=l<i?p?r(t[p-1],-0).nextSibling:r(t[l-p],0):a;p<l;)ve(r(t[p++],1),d);else if(l===p)for(;u<s;)c&&c.has(e[u])||ge(r(e[u],-1)),u++;else if(e[u]===t[p])u++,p++;else if(e[s-1]===t[l-1])s--,l--;else if(e[u]===t[l-1]&&t[p]===e[s-1]){var m=r(e[--s],-1).nextSibling;ve(r(t[p++],1),r(e[u++],-1).nextSibling),ve(r(t[--l],1),m),e[s]=t[l]}else{if(!c){c=new Map;for(var h=p;h<l;)c.set(t[h],h++)}if(c.has(e[u])){var g=c.get(e[u]);if(p<g&&g<l){for(var v=u,f=1;++v<s&&v<l&&c.get(e[v])===g+f;)f++;if(f>g-p)for(var y=r(e[u],0);p<g;)ve(r(t[p++],1),y);else n=r(t[p++],1),(o=r(e[u++],-1))&&o.parentNode&&o.parentNode.replaceChild(n,o)}else u++}else ge(r(e[u++],-1))}}(a,u,function(e,t){return function(r,a){if(a<0){var n=e[e.length-1];if(n){var o=n.template,i=n.nodes,s=n.context;i.pop(),i.length||(e.pop(),o.unmount(s,t,null))}}return r}}(Array.from(n.values()),t),r),l.forEach((function(e){return e()})),this.childrenMap=s,this.nodes=u,this},unmount:function(e,t){return this.update(Ce,t),this}};var Ie={mount:function(e,t){return this.update(e,t)},update:function(e,t){var r,a=this,n=!!this.evaluate(e),o=!this.value&&n,i=this.value&&!n;switch(!0){case o:r=a.node.cloneNode(),ve(r,a.placeholder),a.template=a.template.clone(),a.template.mount(r,e,t);break;case i:this.unmount(e);break;default:n&&this.template.update(e,t)}return this.value=n,this},unmount:function(e,t){return this.template.unmount(e,t,!0),this}};var Re="undefined"==typeof Element?{}:Element.prototype,Ne=U((function(e){return Re.hasOwnProperty(e)}));function Ue(e,t,r,a){var n=t.name;if(!n)return a&&function(e,t,r){var a=t?Object.keys(t):[];Object.keys(r).filter((function(e){return!a.includes(e)})).forEach((function(t){return e.removeAttribute(t)}))}(e,r,a),void(r&&function(e,t){Object.entries(t).forEach((function(t){var r=q(t,2),a=r[0],n=r[1];return Ue(e,{name:a},n)}))}(e,r));!Ne(n)&&(function(e){return re(e,"boolean")}(r)||ie(r)||oe(r))&&(e[n]=r),!function(e){return!e&&0!==e}(r)?function(e){return!0===e||["string","number"].includes(L(e))}(r)&&e.setAttribute(n,function(e,t){return!0===t?e:t}(n,r)):e.removeAttribute(n)}var Be=/^on/,Oe=function(e){return Array.isArray(e)?e:[e,!1]},Se={handleEvent:function(e){this[e.type](e)}},De=new WeakMap,Le=function(e){var t=Object.create(Se);return De.set(e,t),t};function je(e){return se(e)?"":e}var Me=function(e,t){var r=e.childNodes[t];if(r.nodeType===Node.COMMENT_NODE){var a=document.createTextNode("");return e.replaceChild(a,r),a}return r};var _e=(V(me={},w,Ue),V(me,1,(function(e,t,r){var a=t.name.replace(Be,""),n=De.get(e)||Le(e),o=q(Oe(r),2),i=o[0],s=o[1],l=n[a],u=i&&!l;l&&!i&&e.removeEventListener(a,n),u&&e.addEventListener(a,n,s),n[a]=i})),V(me,C,(function(e,t,r){e.data=je(r)})),V(me,k,(function(e,t,r){e.value=je(r)})),me),Pe={mount:function(e){return this.value=this.evaluate(e),Ve(this,this.value),this},update:function(e){var t=this.evaluate(e);return this.value!==t&&(Ve(this,t),this.value=t),this},unmount:function(){return 1===this.type&&Ve(this,null),this}};function Ve(e,t){return _e[e.type](e.node,e,t,e.value)}function Ge(e,t){return Object.assign({},Pe,t,{node:t.type===C?Me(e,t.childNodeIndex):e})}var $e=function(e,t){return e[T]||t},Fe={attributes:[],getTemplateScope:function(e,t){return function(e,t,r){if(!e||!e.length)return r;var a=e.map((function(e){return Object.assign({},e,{value:e.evaluate(t)})}));return Object.assign(Object.create(r||null),B(a))}(this.attributes,e,t)},mount:function(e,t){var r=this,a=!!e.slots&&e.slots.find((function(e){return e.id===r.name})),n=this.node.parentNode,o=$e(e,t);return this.template=a&&Qe(a.html,a.bindings).createDOM(n),this.template&&(de(this.node),this.template.mount(this.node,this.getTemplateScope(e,o),o),this.template.children=Array.from(this.node.childNodes)),He(this.node),ge(this.node),this},update:function(e,t){if(this.template){var r=$e(e,t);this.template.update(this.getTemplateScope(e,r),r)}return this},unmount:function(e,t,r){return this.template&&this.template.unmount(this.getTemplateScope(e,t),null,r),this}};function He(e){var t=e&&e.firstChild;t&&(ve(t,e),He(e))}var ze={mount:function(e){return this.update(e)},update:function(e,t){var r=this.evaluate(e);return r&&r===this.name?this.tag.update(e):(this.unmount(e,t,!0),this.name=r,this.tag=function(e,t,r){return void 0===t&&(t=[]),void 0===r&&(r=[]),e?e({slots:t,attributes:r}):Qe(function(e){return e.reduce((function(e,t){return e+t.html}),"")}(t),[].concat(K(function(e){return e.reduce((function(e,t){var r=t.bindings;return e.concat(r)}),[])}(t)),[{expressions:r.map((function(e){return Object.assign({type:w},e)}))}]))}(this.getComponent(r),this.slots,this.attributes),this.tag.mount(this.node,e)),this},unmount:function(e,t,r){return this.tag&&this.tag.unmount(r),this}};var Xe=(V(he={},1,(function(e,t){var r=t.evaluate,a=t.template,n=document.createTextNode("");return ve(n,e),ge(e),Object.assign({},Ie,{node:e,evaluate:r,placeholder:n,template:a.createDOM(e)})})),V(he,fe,(function(e,t){var r,a,n=t.expressions;return Object.assign({},(r=n.map((function(t){return Ge(e,t)})),["mount","update","unmount"].reduce((function(e,t){return Object.assign({},e,V({},t,(function(e){return r.map((function(r){return r[t](e)}))&&a})))}),{})))})),V(he,0,(function(e,t){var r=t.evaluate,a=t.condition,n=t.itemName,o=t.indexName,i=t.getKey,s=t.template,l=document.createTextNode(""),u=e.cloneNode();return ve(l,e),ge(e),Object.assign({},ke,{childrenMap:new Map,node:e,root:u,condition:a,evaluate:r,isTemplateTag:ne(u),template:s.createDOM(e),getKey:i,indexName:o,itemName:n,placeholder:l})})),V(he,3,(function(e,t){var r=t.evaluate,a=t.getComponent,n=t.slots,o=t.attributes;return Object.assign({},ze,{node:e,evaluate:r,slots:n,attributes:o,getComponent:a})})),V(he,4,(function(e,t){var r=t.name,a=t.attributes;return Object.assign({},Fe,{attributes:a,node:e,name:r})})),he);function qe(e,t){return e.map((function(e){return e.type===C?Object.assign({},e,{childNodeIndex:e.childNodeIndex+t}):e}))}function We(e,t,r){var a=t.selector,n=t.type,o=t.redundantAttribute,i=t.expressions,s=a?e.querySelector(a):e;o&&s.removeAttribute(o);var l=i||[];return(Xe[n]||Xe[fe])(s,Object.assign({},t,{expressions:r&&!a?qe(l,r):l}))}function Ke(e,t){return ae(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 r=ne(t)?t:document.createElement("template");return r.innerHTML=e,r.content}(t,e)}var Ye={createDOM:function(e){return this.dom=this.dom||function(e,t){return t&&("string"==typeof t?Ke(e,t):t)}(e,this.html)||document.createDocumentFragment(),this},mount:function(e,t,r,a){var n=this;void 0===a&&(a={}),e||N("Please provide DOM node to mount properly your template"),this.el&&this.unmount(t);var o=a,i=o.fragment,s=o.children,l=o.avoidDOMInjection,u=(s?s[0]:e).parentNode,p=ne(e),c=p?function(e,t,r){var a=Array.from(e.childNodes);return Math.max(a.indexOf(t),a.indexOf(r.head)+1,0)}(u,e,a):null;this.createDOM(e);var d=i||this.dom.cloneNode(!0);return this.el=p?u:e,this.children=p?s||Array.from(d.childNodes):null,!l&&d&&function(e,t){switch(!0){case ae(e):!function(e,t){for(;e.firstChild;)t.appendChild(e.firstChild)}(t,e);break;case ne(e):e.parentNode.replaceChild(t,e);break;default:e.appendChild(t)}}(e,d),this.bindings=this.bindingsData.map((function(e){return We(n.el,e,c)})),this.bindings.forEach((function(e){return e.mount(t,r)})),this.meta=a,this},update:function(e,t){return this.bindings.forEach((function(r){return r.update(e,t)})),this},unmount:function(e,t,r){void 0===r&&(r=!1);var a=this.el;if(!a)return this;switch(this.bindings.forEach((function(a){return a.unmount(e,t,r)})),!0){case a[x]||null===r:break;case Array.isArray(this.children):!function(e){for(var t=0;t<e.length;t++)ge(e[t])}(this.children);break;case!r:de(a);break;case!!r:ge(a)}return this.el=null,this},clone:function(){return Object.assign({},this,{meta:{},el:null})}};function Qe(e,t){return void 0===t&&(t=[]),Object.assign({},Ye,{html:e,bindingsData:t})}
/* Riot v7.1.0, @license MIT */
/* Riot v7.1.0, @license MIT */
var Je=function(e,t){return e[r]=t};function Ze(e){return[o,i,s].reduce((function(t,r){return t[r]=e(r),t}),{})}
/* Riot v7.1.0, @license MIT */
/* Riot WIP, @license MIT */
function et(e){return Array.isArray(e)?e:/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(e))&&"number"==typeof e.length?Array.from(e):[e]}
/* Riot WIP, @license MIT */function tt(e,t){return et("string"==typeof e?(t||document).querySelectorAll(e):e)}var rt,at=Object.freeze({$:function(e){return tt(e,this.root)[0]},$$:function(e){return tt(e,this.root)}}),nt=Object.freeze((V(rt={},l,le),V(rt,u,le),V(rt,p,le),V(rt,c,le),V(rt,d,le),V(rt,m,le),V(rt,h,le),rt)),ot=function(e){return 1===e.length?e[0]:e};function it(e,t,r){var a="object"===L(t)?t:V({},t,r),n=Object.keys(a);return et(e).forEach((function(e){n.forEach((function(t){return e.setAttribute(t,a[t])}))})),e}function st(e,t){return function(e,t,r){var a="string"==typeof t?[t]:t;return ot(et(e).map((function(e){return ot(a.map((function(t){return e[r](t)})))})))}(e,t,"getAttribute")}var lt,ut=new Map,pt=function(){return lt||(it(lt=tt("style[riot]")[0]||document.createElement("style"),"type","text/css"),lt.parentNode||document.head.appendChild(lt),lt)},ct={CSS_BY_NAME:ut,add:function(e,t){return ut.has(e)||(ut.set(e,t),this.inject()),this},inject:function(){return pt().innerHTML=K(ut.values()).join("\n"),this},remove:function(e){return ut.has(e)&&(ut.delete(e),this.inject()),this}};
/* Riot WIP, @license MIT */
function dt(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];return function(){for(var t=arguments.length,a=new Array(t),n=0;n<t;n++)a[n]=arguments[n];return(a=[].concat(r,K(a))).length<e.length?dt.apply(void 0,[e].concat(K(a))):e.apply(void 0,K(a))}}
/* Riot v7.1.0, @license MIT */
/* Riot v7.1.0, @license MIT */
function mt(e,t){(function(e){return st(e,n)||e.tagName.toLowerCase()})(e)!==t&&it(e,n,t)}function ht(e,t){return Object.assign({},e,ue(t))}function gt(e,t){return void 0===t&&(t={}),Object.assign({},function(e){return Array.from(e.attributes).reduce((function(e,t){return e[R(t.name)]=t.value,e}),{})}(e),ue(t))}function vt(e,t){var r,n=t.slots,o=t.attributes,i=t.props;return r=function(e){return K(a).reduce((function(e,t){return t(e)||e}),e)}(be(ie(e)?Object.create(e):e,{mount:function(t,r,a){return void 0===r&&(r={}),xe(t,x,!1),this[T]=a,this[E]=function(e,t){void 0===t&&(t=[]);var r=t.map((function(t){return Ge(e,t)})),a={};return Object.assign(a,Object.assign({expressions:r},Ze((function(e){return function(t){return r.forEach((function(r){return r[e](t)})),a}}))))}(t,o).mount(a),xe(this,g,Object.freeze(Object.assign({},gt(t,i),B(this[E].expressions)))),this[v]=ht(this[v],r),this[A]=this.template.createDOM(t).clone(),Je(t,this),e.name&&mt(t,e.name),xe(this,y,t),xe(this,f,n),this[u](this[g],this[v]),this[A].mount(t,this,a),this[p](this[g],this[v]),this},update:function(e,t){void 0===e&&(e={}),t&&(this[T]=t,this[E].update(t));var r=B(this[E].expressions);if(!1!==this[l](r,this[g]))return xe(this,g,Object.freeze(Object.assign({},this[g],r))),this[v]=ht(this[v],e),this[c](this[g],this[v]),this[b]||(this[b]=!0,this[A].update(this,this[T])),this[d](this[g],this[v]),this[b]=!1,this},unmount:function(e){return this[m](this[g],this[v]),this[E].unmount(),this[A].unmount(this,this[T],null===e?null:!e),this[h](this[g],this[v]),this}})),Object.keys(e).filter((function(t){return oe(e[t])})).forEach((function(e){r[e]=r[e].bind(r)})),r}function ft(e){var t,r,a=e.css,n=e.template,o=e.componentAPI,i=e.name;return a&&i&&ct.add(i,a),dt(vt)(be(Te(o,Object.assign({},nt,(V(t={},g,{}),V(t,v,{}),t))),Object.assign((V(r={},f,null),V(r,y,null),r),at,{name:i,css:a,template:n})))}var yt=function(e){var r,a=(void 0===(r=e.exports?e.exports.components:{})&&(r={}),Object.entries(ue(r)).reduce((function(e,t){var r,a=q(t,2),n=a[0],o=a[1];return e[(r=n,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())]=bt(o),e}),{}));return function(r){return r===e.name?xt(e):a[r]||t.get(r)}},xt=U(bt);function bt(e){var t=e.css,r=e.template,a=e.exports,n=e.name,i=r?function(e,t,r){return e(Qe,I,ye,r)}(r,0,yt(e)):ce;return function(e){var s=e.slots,l=e.attributes,u=e.props;if(a&&a[x])return function(e,t){var r=t.slots,a=t.attributes,n=t.props,i=t.css;t.template&&N("Pure components can not have html"),i&&N("Pure components do not have css");var s=Te(e({slots:r,attributes:a,props:n}),pe);return Ze((function(e){return function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];if(e===o){var n=r[0];xe(n,x,!0),Je(n,s)}return s[e].apply(s,r),s}}))}(a,{slots:s,attributes:l,props:u,css:t,template:r});var p=ue(a)||{},c=ft({css:t,template:i,componentAPI:p,name:n})({slots:s,attributes:l,props:u});return{mount:function(e,t,r){return c.mount(e,r,t)},update:function(e,t){return c.update(t,e)},unmount:function(e){return c.unmount(e)}}}}
/* Riot v7.1.0, @license MIT */function Tt(e,r){var a=r.css,n=r.template,o=r.exports;return t.has(e)&&N('The component "'.concat(e,'" was already registered')),t.set(e,bt({name:e,css:a,template:n,exports:o})),t}
/* Riot WIP, @license MIT */
/* Riot v7.1.0, @license MIT */
var Et={cssManager:ct,DOMBindings:{template:Qe,createBinding:We,createExpression:Ge,bindingTypes:ye,expressionTypes:I},globals:{DOM_COMPONENT_INSTANCE_PROPERTY:r,PARENT_KEY_SYMBOL:T}},At=function(e){G(n,e);var t,r,a=(t=n,r=H(),function(){var e,a=$(t);if(r){var n=$(this).constructor;e=Reflect.construct(a,arguments,n)}else e=a.apply(this,arguments);return X(this,e)});function n(e,t,r){var o;return M(this,n),o=a.call(this),e||console.error("You should set container to the wave!"),o.container=e,o.maxOpacity=t.opacity||.6,o.duration=t.duration||750,o.color=t.color||"#fff",o.center=t.center||!1,o.event=r,o.containerBound=o.receiveBound(),o.maxScale=o.containerBound.size/100*10,o.created=Date.now(),o.start={},o.createNode(),o.waveIn(),o}return P(n,[{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,r=Date.now()-this.created,a=Math.round(this.duration/2)-r;setTimeout((function(){t.setStyles(0),setTimeout((function(){t.wave.parentNode===t.container&&(t.container.removeChild(t.wave),e())}),t.duration)}),a>0?a:0)}},{key:"setStyles",value:function(e){this.wave.setAttribute("style",this.convertStyle({top:"".concat(this.start.x,"px"),left:"".concat(this.start.y,"px"),transform:"scale(".concat(this.maxScale,")"),"transition-duration":"".concat(this.duration,"ms"),"transition-timing-function":"cubic-bezier(0.250, 0.460, 0.450, 0.940)",background:this.color,opacity:e}))}},{key:"convertStyle",value:function(e){var t="";return Object.keys(e).forEach((function(r){e.hasOwnProperty(r)&&(t+=r+":"+e[r]+";")})),t}}]),n}(function(){function e(){M(this,e)}return P(e,[{key:"receiveBound",value:function(){var e;this.container||console.error("Yor class must contain a container. It is DOM Element. Define please this.container property.");var t=this.container&&this.container.ownerDocument,r=t.documentElement;"undefined"!==L(this.container.getBoundingClientRect)&&(e=this.container.getBoundingClientRect());var a=this.getWindow(t);return this.mix(e,{size:Math.max(e.width,e.height),offsetTop:e.top+a.pageYOffset-r.clientTop,offsetLeft:e.left+a.pageXOffset-r.clientLeft})}},{key:"isWindow",value:function(e){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 r in e)r in t||(t[r]=e[r]);return t}}]),e}()),wt={css:null,exports:{onMounted(){this._waves=[],this._events=[]},launch(e){var t=new At(this.$("#waves"),this.props,e);this._waves.push(t),this.props.onWaveStart&&this.props.onWaveStart(t),this._events.length||(this._events.push(e.target.addEventListener("mouseup",(()=>this.hold()))),this._events.push(e.target.addEventListener("mouseleave",(()=>this.hold()))))},hold(){this._waves[this._waves.length-1]&&this._waves[this._waves.length-1].waveOut(this.waveOut),this._waves[this._waves.length-1]&&this._waves.slice(this._waves.length-1,1)},waveOut(){this.props.onWaveEnd&&this.props.onWaveEnd()}},template:(e,t,r,a)=>e('<div expr156="expr156" id="waves"></div>',[{redundantAttribute:"expr156",selector:"[expr156]",expressions:[{type:t.EVENT,name:"onmousedown",evaluate:e=>e.launch}]}]),name:"material-waves"},Ct=function(e){return""===e||"true"===e},kt=function(e){if("function"==typeof e){var t=z(Array,Array.prototype.slice.call(arguments)).slice(1);e.apply(void 0,K(t))}},It={array:function(e){if(!e)return[];for(var t=[],r=0;r<e.length;r++)t.push(e.item(r));return t},children:function(e){return It.array(e&&e.children)}};const Rt=["disabled","rounded","icon","shadow","outlined","inverted"];var Nt={css:null,exports:{state:{attributes:{}},components:{MaterialWaves:wt},onMounted(e,t){this.updateAttributes(e,t),this.root.firstElementChild.onclick=t=>{kt(e.onClick,t)}},onUpdated(e,t){this.updateAttributes(e,t)},updateAttributes(e,t){Rt.forEach((r=>{Ct(e[r])?(this.root.firstElementChild.setAttribute(r,!0),t.attributes[r]=!0):t.attributes[r]=!1}));const r=t.attributes.inverted?e.color:e.textColor,a=t.attributes.inverted?e.textColor:e.color;this.root.firstElementChild.style.background=a,this.root.firstElementChild.style.color=r,t.attributes.outlined&&(this.root.firstElementChild.style["border-color"]=a,this.root.firstElementChild.style.color=r,this.root.firstElementChild.style.background="")},onWaveStart(e){kt(this.props.onWaveStart,e)},onWaveEnd(e){kt(this.props.onWaveEnd,e)},attributeToBool:Ct},template:(e,t,r,a)=>e('<a expr116="expr116"></a><button expr119="expr119"></button>',[{type:r.IF,evaluate:e=>e.props.href,redundantAttribute:"expr116",selector:"[expr116]",template:e('<material-waves expr117="expr117"></material-waves><div class="content"><slot expr118="expr118"></slot></div>',[{expressions:[{type:t.ATTRIBUTE,name:"href",evaluate:e=>e.props.href},{type:t.ATTRIBUTE,name:"target",evaluate:e=>e.props.target}]},{type:r.IF,evaluate:e=>!e.attributeToBool(e.props.disabled),redundantAttribute:"expr117",selector:"[expr117]",template:e(null,[{type:r.TAG,getComponent:a,evaluate:e=>"material-waves",slots:[],attributes:[{type:t.ATTRIBUTE,name:"center",evaluate:e=>e.props.wavesCenter},{type:t.ATTRIBUTE,name:"rounded",evaluate:e=>e.props.rounded},{type:t.ATTRIBUTE,name:"opacity",evaluate:e=>e.props.wavesOpacity},{type:t.ATTRIBUTE,name:"color",evaluate:e=>e.props.wavesColor},{type:t.ATTRIBUTE,name:"duration",evaluate:e=>e.props.wavesDuration},{type:t.EVENT,name:"onWaveStart",evaluate:e=>e.onWaveStart},{type:t.EVENT,name:"onWaveEnd",evaluate:e=>e.onWaveEnd}]}])},{type:r.SLOT,attributes:[],name:"default",redundantAttribute:"expr118",selector:"[expr118]"}])},{type:r.IF,evaluate:e=>!e.props.href,redundantAttribute:"expr119",selector:"[expr119]",template:e('<material-waves expr120="expr120"></material-waves><div class="content"><slot expr121="expr121"></slot></div>',[{expressions:[{type:t.ATTRIBUTE,name:"type",evaluate:e=>e.props.type}]},{type:r.IF,evaluate:e=>!e.attributeToBool(e.props.disabled),redundantAttribute:"expr120",selector:"[expr120]",template:e(null,[{type:r.TAG,getComponent:a,evaluate:e=>"material-waves",slots:[],attributes:[{type:t.ATTRIBUTE,name:"center",evaluate:e=>e.props.wavesCenter},{type:t.ATTRIBUTE,name:"rounded",evaluate:e=>e.props.rounded},{type:t.ATTRIBUTE,name:"opacity",evaluate:e=>e.props.wavesOpacity},{type:t.ATTRIBUTE,name:"color",evaluate:e=>e.props.wavesColor},{type:t.ATTRIBUTE,name:"duration",evaluate:e=>e.props.wavesDuration},{type:t.EVENT,name:"onWaveStart",evaluate:e=>e.onWaveStart},{type:t.EVENT,name:"onWaveEnd",evaluate:e=>e.onWaveEnd}]}])},{type:r.SLOT,attributes:[],name:"default",redundantAttribute:"expr121",selector:"[expr121]"}])}]),name:"material-button"},Ut={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){Ct(this.props.disabled)||(e.target.checked=!this.state.checked,kt(this.props.onChange,e),this.update({checked:!this.state.checked}))}},template:(e,t,r,a)=>e('<div expr129="expr129"><div class="checkmark"></div></div><div expr130="expr130" class="label"><slot expr131="expr131"></slot></div><input expr132="expr132" type="hidden"/>',[{redundantAttribute:"expr129",selector:"[expr129]",expressions:[{type:t.ATTRIBUTE,name:"class",evaluate:e=>["checkbox ",e.state.checked?"checked":""].join("")},{type:t.EVENT,name:"onclick",evaluate:e=>e.onChange}]},{redundantAttribute:"expr130",selector:"[expr130]",expressions:[{type:t.EVENT,name:"onclick",evaluate:e=>e.onChange}]},{type:r.SLOT,attributes:[],name:"default",redundantAttribute:"expr131",selector:"[expr131]"},{redundantAttribute:"expr132",selector:"[expr132]",expressions:[{type:t.VALUE,evaluate:e=>e.state.checked}]}]),name:"material-checkbox"},Bt={css:null,exports:{state:{transition:!1,opened:!1},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){e.onClick&&this.$$(".material-dropdown-item").forEach(((e,t)=>{e.onclick=r=>{const a=e.attributes.getNamedItem("item");r.target.item=a&&a.value,r.target.index=t,kt(this.props.onClick,r)}}))}},template:(e,t,r,a)=>e('<div expr123="expr123"></div>',[{type:r.IF,evaluate:e=>e.props.opened||e.state.opened,redundantAttribute:"expr123",selector:"[expr123]",template:e('<template expr124="expr124"></template><template expr126="expr126"></template>',[{expressions:[{type:t.ATTRIBUTE,name:"class",evaluate:e=>["material-dropdown-container ",!!e.state.transition&&"opening"," ",e.props.animation||"top"].join("")}]},{type:r.IF,evaluate:e=>!e.props.items,redundantAttribute:"expr124",selector:"[expr124]",template:e('<slot expr125="expr125"></slot>',[{type:r.SLOT,attributes:[],name:"default",redundantAttribute:"expr125",selector:"[expr125]"}])},{type:r.EACH,getKey:null,condition:null,template:e('<span expr127="expr127"></span><a expr128="expr128"></a>',[{type:r.IF,evaluate:e=>!e.item.href,redundantAttribute:"expr127",selector:"[expr127]",template:e(" ",[{expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>[e.item.title].join("")},{type:t.ATTRIBUTE,name:"class",evaluate:e=>["material-dropdown-item ",e.props.selected===e.key?"selected":""].join("")},{type:t.ATTRIBUTE,name:"item",evaluate:e=>e.item.name||e.item.title}]}])},{type:r.IF,evaluate:e=>e.item.href,redundantAttribute:"expr128",selector:"[expr128]",template:e(" ",[{expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>[e.item.title].join("")},{type:t.ATTRIBUTE,name:"href",evaluate:e=>e.item.href},{type:t.ATTRIBUTE,name:"class",evaluate:e=>["material-dropdown-item ",e.props.selected===e.key?"selected":""].join("")},{type:t.ATTRIBUTE,name:"item",evaluate:e=>e.item.name||e.item.title},{type:t.ATTRIBUTE,name:"title",evaluate:e=>e.item.title}]}])}]),redundantAttribute:"expr126",selector:"[expr126]",itemName:"item",indexName:"key",evaluate:e=>e.props.items}])}]),name:"material-dropdown"},Ot=function(){function e(t){if(M(this,e),t||console.debug("Sorry, but for using validate mixin you should add an opts argument"),this.type=t.type,t.valid){if(this.validationType="function"==typeof t.valid?"Function":"Regexp","Regexp"===this.validationType)try{this.validationRegexp=new RegExp(t.valid)}catch(e){throw new Error("Something wrong with your regular expression!. Checkout --- ".concat(e))}"Function"===this.validationType&&(this.validationFunction=t.valid||!1)}else t&&-1!=Object.keys(this.base).indexOf(this.type)&&(this.validationType="Type")}return P(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}();const St=["disabled","rounded","outlined","inverted","icon"];var Dt={css:null,exports:{state:{focused:!1,showIcon:!1,value:"",disabled:!1,required:!1,error:!1},components:{MaterialButton:Nt},onMounted(e,t){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 Ot(this.props),this.update({showIcon:!1,value:this.props.value||""}),this.$("input").addEventListener("focus",this.changeFocus),this.$("input").addEventListener("blur",this.changeFocus),this.updateAttributes(e,t)},onBeforeUpdate(e,t){this.state.value=this.$("input").value,this.state.error=0!==t.value.length&&!this.validator.validate(t.value)||0===t.value.length&&Ct(e.required)},onUpdated(e,t){this.updateAttributes(e,t)},updateAttributes(e,t){const r=function(e,t){return e.reduce((function(e,r){return e[r]=Ct(t[r]),e}),{})}(St,e),a=r.inverted?e.textColor:e.color,n=r.inverted?e.color:e.textColor;It.children(this.$(".underline")).forEach((e=>e.style.background=a)),this.$("input").style.color=n,this.$("label")&&(this.$("label").style.color=e.labelColor||n),(r.outlined||r.rounded)&&(this.$(".input-content").style["border-color"]=a)},changeFocus(e){if(Ct(this.props.disabled))return!1;const t=this.$("input")==document.activeElement;this.state.focused!=t&&(this.update({focused:t}),kt(this.props.onFocus,t,e))},changeValue(e){this.update({value:this.$("input").value}),kt(this.props.onValueChange,this.$("input").value,e)},iconClickHandler(e){kt.call(this,this.props.onIconClick,e)},attributeToBool:Ct},template:(e,t,r,a)=>e('<div expr134="expr134"><label expr135="expr135" for="input"></label><input expr136="expr136" autocomplete="off"/><div expr137="expr137" class="iconWrapper"></div></div><div expr140="expr140"></div>',[{redundantAttribute:"expr134",selector:"[expr134]",expressions:[{type:t.ATTRIBUTE,name:"class",evaluate:e=>["input-content ",e.state.value?"not-empty":null," ",e.state.error?"error":null].join("")}]},{type:r.IF,evaluate:e=>e.props.label,redundantAttribute:"expr135",selector:"[expr135]",template:e(" ",[{expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>e.props.label}]}])},{redundantAttribute:"expr136",selector:"[expr136]",expressions:[{type:t.ATTRIBUTE,name:"type",evaluate:e=>e.props.type||"text"},{type:t.ATTRIBUTE,name:"disabled",evaluate:e=>e.attributeToBool(e.props.disabled)},{type:t.ATTRIBUTE,name:"placeholder",evaluate:e=>e.props.placeholder},{type:t.EVENT,name:"onkeyup",evaluate:e=>e.changeValue},{type:t.VALUE,evaluate:e=>e.state.value},{type:t.ATTRIBUTE,name:"required",evaluate:e=>e.attributeToBool(e.props.required)}]},{type:r.IF,evaluate:e=>e.attributeToBool(e.props.icon),redundantAttribute:"expr137",selector:"[expr137]",template:e('<material-button expr138="expr138" color="rgba(0,0,0,0)" center="true" waves-center="true" icon="true"></material-button>',[{type:r.TAG,getComponent:a,evaluate:e=>"material-button",slots:[{id:"default",html:'<slot expr139="expr139"></slot>',bindings:[{type:r.SLOT,attributes:[],name:"default",redundantAttribute:"expr139",selector:"[expr139]"}]}],attributes:[{type:t.ATTRIBUTE,name:"waves-color",evaluate:e=>e.props["waves-color"]||"#fff"},{type:t.EVENT,name:"onclick",evaluate:e=>e.iconClickHandler},{type:t.ATTRIBUTE,name:"waves-opacity",evaluate:e=>e.props["waves-opacity"]||"0.6"},{type:t.ATTRIBUTE,name:"waves-duration",evaluate:e=>e.props["waves-duration"]||"600"}],redundantAttribute:"expr138",selector:"[expr138]"}])},{type:r.IF,evaluate:e=>!e.attributeToBool(e.props.outlined)&&!e.attributeToBool(e.props.rounded),redundantAttribute:"expr140",selector:"[expr140]",template:e('<div class="unfocused-line"></div><div class="focused-line"></div>',[{expressions:[{type:t.ATTRIBUTE,name:"class",evaluate:e=>["underline ",e.state.focused?"focused":null," ",e.state.error?"error":null].join("")}]}])}]),name:"material-input"},Lt={css:null,exports:{state:{transition:!1,opened:!1},onBeforeUpdate(e,t){t.opened!==e.opened&&(t.transition=!0,setTimeout((()=>{this.update({opened:e.opened,transition:!1})}),e.opened?0:200))},onClick(e){kt(this.props.onClick,e,"overlay")}},template:(e,t,r,a)=>e('<div expr142="expr142" class="container"></div>',[{type:r.IF,evaluate:e=>e.props.opened||e.state.opened,redundantAttribute:"expr142",selector:"[expr142]",template:e('<div expr143="expr143" class="overlay"></div><div class="popup"><div expr144="expr144"><slot expr145="expr145"></slot></div></div>',[{redundantAttribute:"expr143",selector:"[expr143]",expressions:[{type:t.EVENT,name:"onclick",evaluate:e=>e.onClick}]},{redundantAttribute:"expr144",selector:"[expr144]",expressions:[{type:t.ATTRIBUTE,name:"class",evaluate:e=>["content ",e.state.transition?"opening":""," ",e.props.animation||"top"].join("")}]},{type:r.SLOT,attributes:[],name:"default",redundantAttribute:"expr145",selector:"[expr145]"}])}]),name:"material-popup"},jt={css:null,exports:{state:{toasts:{}},onBeforeUpdate(e,t){e.message&&!t.internal&&this.addToast({message:e.message,isError:e.isError,color:e.color,textColor:e.textColor},e.duration),t.internal=!1},generateStyle(e){let t="";return e.textColor&&(t+=`color: ${e.textColor};`),e.color&&(t+=`background-color: ${e.color};`),t},addToast(e,t){var r=this.toastID=Math.random().toString(36).substring(7);this.state.toasts[r]=Object.assign(e,{opening:!0}),setTimeout((()=>{this.state.toasts[r].opening=!1,this.update({toasts:this.state.toasts,internal:!0})}),50),this.state.toasts[r].interval=setTimeout((()=>{this.removeToast(r)}),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:(e,t,r,a)=>e('<div expr146="expr146"></div>',[{type:r.EACH,getKey:null,condition:null,template:e(" ",[{expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>[e.state.toasts[e.toastID].message].join("")},{type:t.ATTRIBUTE,name:"class",evaluate:e=>["toast ",e.state.toasts[e.toastID].isError?"error":""," ",e.state.toasts[e.toastID].opening?"opening":""].join("")},{type:t.EVENT,name:"onclick",evaluate:e=>e.removeToastByClick(e.toastID)},{type:t.ATTRIBUTE,name:"style",evaluate:e=>e.generateStyle(e.state.toasts[e.toastID])}]}]),redundantAttribute:"expr146",selector:"[expr146]",itemName:"toastID",indexName:null,evaluate:e=>Object.keys(e.state.toasts)}]),name:"material-snackbar"},Mt={css:null,exports:{onBeforeMount(e,t){this.updateAttributes(e,t)},onMounted(e,t){this.updateAttributes(e,t)},onBeforeUpdate(e,t){this.updateAttributes(e,t)},updateAttributes(e,t){t.checked=void 0!==e.checked?e.checked:t.checked,e.size&&"string"==typeof e.size&&(this.root.style["font-size"]=e.size);const r=this.$("span.material-switch-track"),a=this.$("span.material-switch-thumb"),n=(t.checked?e.trackSelectedColor:e.trackColor)||null,o=(t.checked?e.thumbSelectedColor:e.thumbColor)||null,i=(t.checked?e.outlineSelectedColor:e.outlineColor)||null;r&&(r.style["background-color"]=n),r&&(r.style["border-color"]=i),a&&(a.style["background-color"]=o,a.children.length>0?a.classList.add("material-switch-thumb-w-icon"):a.classList.remove("material-switch-thumb-w-icon"))},onChange(e){Ct(this.props.disabled)||(e.target.checked=!this.state.checked,kt(this.props.onChange,e),this.update({checked:this.checkedValue()}))},checkedValue(){return Ct(this.props.intermediate)?!0!==this.state.checked&&this.state.checked?!this.oldValue:(this.oldValue=this.state.checked,"intermediate"):!this.state.checked},attributeToBool:Ct},template:(e,t,r,a)=>e('<span expr148="expr148" class="material-switch-container"><span class="material-switch-thumb"><template expr149="expr149"></template><template expr151="expr151"></template></span><span class="material-switch-track"></span></span>',[{redundantAttribute:"expr148",selector:"[expr148]",expressions:[{type:t.ATTRIBUTE,name:"checked",evaluate:e=>e.state.checked},{type:t.EVENT,name:"onclick",evaluate:e=>e.onChange}]},{type:r.IF,evaluate:e=>!e.state.checked,redundantAttribute:"expr149",selector:"[expr149]",template:e('<slot expr150="expr150" name="thumb-icon"></slot>',[{type:r.SLOT,attributes:[],name:"thumb-icon",redundantAttribute:"expr150",selector:"[expr150]"}])},{type:r.IF,evaluate:e=>e.state.checked,redundantAttribute:"expr151",selector:"[expr151]",template:e('<slot expr152="expr152" name="thumb-selected-icon"></slot>',[{type:r.SLOT,attributes:[],name:"thumb-selected-icon",redundantAttribute:"expr152",selector:"[expr152]"}])}]),name:"material-switch"},_t={css:null,exports:{state:{selected:0,widths:{}},components:{MaterialButton:Nt},onMounted(e,t){this.$(".line");const r=this.$$("material-button"),a=parseFloat((100/this.props.tabs.length).toFixed(2));r.forEach(((e,n)=>{n==r.length-1&&a*r.length!=100?t.widths[n]=a+(100-a*r.length):t.widths[n]=a,e.style.width=`${t.widths[n]}%`})),this.setLinePosition(),this.updateLineColor(e,t),this.setLinePosition()},onUpdated(e,t){this.updateLineColor(e,t)},updateLineColor(e,t){const r=e.inverted?e.lineColor:e.lineSelectedColor,a=e.inverted?e.lineSelectedColor:e.lineColor,n=this.$(".line"),o=this.$(".line-wrapper");n&&o&&(n.style.background=r,o.style.background=a)},onTabChanged(e,t){this.update({selected:t}),this.setLinePosition(),kt(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+"%",e.style.width=`${this.state.widths[this.state.selected]}%`)},cut:e=>e.length>props.cut?e.substr(0,props.cut)+"...":e},template:(e,t,r,a)=>e('<material-button expr153="expr153"></material-button><div expr155="expr155" class="line-wrapper"></div>',[{type:r.EACH,getKey:null,condition:null,template:e(null,[{type:r.TAG,getComponent:a,evaluate:e=>"material-button",slots:[{id:"default",html:'<div expr154="expr154" class="text"> </div>',bindings:[{redundantAttribute:"expr154",selector:"[expr154]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>e.props.cut?e.cut(e.tab.title||e.tab):e.tab.title||e.tab},{type:t.ATTRIBUTE,name:"title",evaluate:e=>e.tab.title||e.tab}]}]}],attributes:[{type:t.EVENT,name:"onClick",evaluate:e=>t=>e.onTabChanged(t,e.k)},{type:t.ATTRIBUTE,name:"class",evaluate:e=>e.state.selected==e.k?"selected":""},{type:t.ATTRIBUTE,name:"waves-opacity",evaluate:e=>e.props.wavesOpacity},{type:t.ATTRIBUTE,name:"waves-duration",evaluate:e=>e.props.wavesDuration},{type:t.ATTRIBUTE,name:"waves-center",evaluate:e=>e.props.wavesCenter},{type:t.ATTRIBUTE,name:"waves-color",evaluate:e=>e.props.wavesColor},{type:t.ATTRIBUTE,name:"color",evaluate:e=>e.state.selected==e.k&&e.props.inverted?e.props.textSelectedColor:e.props.color},{type:t.ATTRIBUTE,name:"text-color",evaluate:e=>e.state.selected!=e.k||e.props.inverted?e.props.textColor:e.props.textSelectedColor},{type:t.ATTRIBUTE,name:"inverted",evaluate:e=>e.props.inverted}]}]),redundantAttribute:"expr153",selector:"[expr153]",itemName:"tab",indexName:"k",evaluate:e=>e.props.tabs},{type:r.IF,evaluate:e=>e.props.useLine,redundantAttribute:"expr155",selector:"[expr155]",template:e('<div class="line" ref="line"></div>',[{expressions:[{type:t.ATTRIBUTE,name:"inverted",evaluate:e=>e.props.inverted}]}])}]),name:"material-tabs"};function Pt(e,t){void 0===t&&(t={});for(var r=function(e){for(var t=[],r=0;r<e.length;){var a=e[r];if("*"!==a&&"+"!==a&&"?"!==a)if("\\"!==a)if("{"!==a)if("}"!==a)if(":"!==a)if("("!==a)t.push({type:"CHAR",index:r,value:e[r++]});else{var n=1,o="";if("?"===e[s=r+1])throw new TypeError('Pattern cannot start with "?" at '+s);for(;s<e.length;)if("\\"!==e[s]){if(")"===e[s]){if(0==--n){s++;break}}else if("("===e[s]&&(n++,"?"!==e[s+1]))throw new TypeError("Capturing groups are not allowed at "+s);o+=e[s++]}else o+=e[s++]+e[s++];if(n)throw new TypeError("Unbalanced pattern at "+r);if(!o)throw new TypeError("Missing pattern at "+r);t.push({type:"PATTERN",index:r,value:o}),r=s}else{for(var i="",s=r+1;s<e.length;){var l=e.charCodeAt(s);if(!(l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;i+=e[s++]}if(!i)throw new TypeError("Missing parameter name at "+r);t.push({type:"NAME",index:r,value:i}),r=s}else t.push({type:"CLOSE",index:r,value:e[r++]});else t.push({type:"OPEN",index:r,value:e[r++]});else t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});else t.push({type:"MODIFIER",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}(e),a=t.prefixes,n=void 0===a?"./":a,o="[^"+Vt(t.delimiter||"/#?")+"]+?",i=[],s=0,l=0,u="",p=function(e){if(l<r.length&&r[l].type===e)return r[l++].value},c=function(e){var t=p(e);if(void 0!==t)return t;var a=r[l],n=a.type,o=a.index;throw new TypeError("Unexpected "+n+" at "+o+", expected "+e)},d=function(){for(var e,t="";e=p("CHAR")||p("ESCAPED_CHAR");)t+=e;return t};l<r.length;){var m=p("CHAR"),h=p("NAME"),g=p("PATTERN");if(h||g){var v=m||"";-1===n.indexOf(v)&&(u+=v,v=""),u&&(i.push(u),u=""),i.push({name:h||s++,prefix:v,suffix:"",pattern:g||o,modifier:p("MODIFIER")||""})}else{var f=m||p("ESCAPED_CHAR");if(f)u+=f;else if(u&&(i.push(u),u=""),p("OPEN")){v=d();var y=p("NAME")||"",x=p("PATTERN")||"",b=d();c("CLOSE"),i.push({name:y||(x?s++:""),pattern:y&&!x?o:x,prefix:v,suffix:b,modifier:p("MODIFIER")||""})}else c("END")}}return i}function Vt(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Gt(e){return e&&e.sensitive?"":"i"}function $t(e,t,r){return function(e,t,r){void 0===r&&(r={});for(var a=r.strict,n=void 0!==a&&a,o=r.start,i=void 0===o||o,s=r.end,l=void 0===s||s,u=r.encode,p=void 0===u?function(e){return e}:u,c="["+Vt(r.endsWith||"")+"]|$",d="["+Vt(r.delimiter||"/#?")+"]",m=i?"^":"",h=0,g=e;h<g.length;h++){var v=g[h];if("string"==typeof v)m+=Vt(p(v));else{var f=Vt(p(v.prefix)),y=Vt(p(v.suffix));if(v.pattern)if(t&&t.push(v),f||y)if("+"===v.modifier||"*"===v.modifier){var x="*"===v.modifier?"?":"";m+="(?:"+f+"((?:"+v.pattern+")(?:"+y+f+"(?:"+v.pattern+"))*)"+y+")"+x}else m+="(?:"+f+"("+v.pattern+")"+y+")"+v.modifier;else m+="("+v.pattern+")"+v.modifier;else m+="(?:"+f+y+")"+v.modifier}}if(l)n||(m+=d+"?"),m+=r.endsWith?"(?="+c+")":"$";else{var b=e[e.length-1],T="string"==typeof b?d.indexOf(b[b.length-1])>-1:void 0===b;n||(m+="(?:"+d+"(?="+c+"))?"),T||(m+="(?="+d+"|"+c+")")}return new RegExp(m,Gt(r))}(Pt(e,r),t,r)}function Ft(e,t,r){return e instanceof RegExp?function(e,t){if(!t)return e;for(var r=/\((?:\?<(.*?)>)?(?!\?)/g,a=0,n=r.exec(e.source);n;)t.push({name:n[1]||a++,prefix:"",suffix:"",modifier:"",pattern:""}),n=r.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,r){var a=e.map((function(e){return Ft(e,t,r).source}));return new RegExp("(?:"+a.join("|")+")",Gt(r))}(e,t,r):$t(e,t,r)}var Ht=Symbol();function zt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return new Promise((function(e,r){return function t(a,n){if(!a.length)return e(n);var o=W(a),i=o[0],s=o.slice(1),l="function"==typeof i?i(n):i,u=function(e){return t(s,e)};if(null!=l){if(l===Ht)return;if(l.then)return l.then(u,r)}return Promise.resolve(u(l))}(t)}))}zt.cancel=function(){return Ht},zt.compose=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return zt.apply(void 0,K(t.reverse()))};var Xt=new Set,qt=Symbol();function Wt(e,t){return e.forEach((function(r){r(t)===qt&&e.delete(r)})),e}function Kt(e){throw new Error(e)}function Yt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var a=new Set,n=new Set,o=new Set,i=new Set(t),s=function(e){var t=D().mark((function t(){var r;return D().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return void(t.next=3);case 3:return r=t.sent,t.next=6,zt.apply(void 0,[r].concat(K(e)));case 6:t.next=0;break;case 8:case"end":return t.stop()}}),t)}))();return t.next(),t}(i),l=Object.create(s),u=function(e){return function(t){return e.add(t)&&l}},p=function(e){return function(t){return e.delete(t)?l:Kt("Couldn't remove handler passed by reference")}};return Object.assign(l,{on:Object.freeze({value:u(a),error:u(n),end:u(o)}),off:Object.freeze({value:p(a),error:p(n),end:p(o)}),connect:u(i),push:function(e){var t=l.next(e),r=t.value;return t.done||r.then((function(e){return Wt(a,e)}),(function(e){return Wt(n,e)})),l},end:function(){return s.return(),Wt(o),[a,n,o,i].forEach((function(e){return e.clear()})),l},fork:function(){return Yt.apply(void 0,K(i))},next:function(e){var t=s.next(e);return s.next(),t}})}Yt.install=function(e,t){return e&&"string"==typeof e||Kt("Please provide a name (as string) for your erre plugin"),t&&"function"==typeof t||Kt("Please provide a function for your erre plugin"),Xt.has(e)?Kt("The ".concat(e," is already part of the erre API, please provide a different name")):(Yt[e]=t,Xt.add(e)),Yt},Yt.install("cancel",zt.cancel),Yt.install("off",(function(){return qt}));var Qt="undefined"!=typeof process,Jt=function(e){return e.replace(ar.base,"")},Zt=function(e){return function(t){return sr(t,e)?t:Yt.cancel()}},er=function(e,t){return e.on.value(t.push),t.on.end((function(){e.off.value(t.push)})),t},tr=function(e){if(!ar.silentErrors)throw new Error(e)},rr=Yt((function(e){return function(e){return"string"==typeof e}(e)?e:Yt.cancel()})).on.error(tr),ar={base:"",silentErrors:!1,sensitive:!1,strict:!1,end:!0,start:!0,delimiter:"/#?",encode:void 0,endsWith:void 0,prefixes:"./"},nr=function(e){return Object.assign({},ar,e)},or=function(e,t,r){return Ft(e,t,nr(r))},ir=function(e,t,r){void 0===r&&(r={});var a=nr(r).base,n=W(t.exec(e)).slice(1),o=function(){for(var e,t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return Qt?(e=require("url")).parse.apply(e,r):z(URL,r)}(e,a);return o.params=n.reduce((function(e,t,a){var n=r.keys&&r.keys[a];return n&&(e[n.name]=t?decodeURIComponent(t):t),e}),{}),o},sr=function(e,t){return t.test(e)},lr=function(e,t){return[decodeURI,Jt,Zt(e),function(r){return ir(r,e,t)}]};function ur(e,t){var r=[],a=Ft(e,r,t),n=Yt.apply(void 0,K(lr(a,Object.assign({},t,{keys:r}))));return er(rr,n).on.error(tr)}var pr,cr=(pr=null,rr.on.value((function(e){return pr=e})),function(){return pr});function dr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var mr,hr=function(e,t,r){var a=dr.apply(void 0,K(lr(e,r).reverse()))(t);return a.params?a:null},gr={css:null,exports:{onBeforeMount:function(e){var t=cr(),r=or(e.path,[],e);this.state={pathToRegexp:r,route:t&&sr(t,r)?hr(r,t,e):null},rr.on.value(this.onBeforeRoute),this.stream=ur(e.path,e).on.value(this.onRoute)},onBeforeRoute:function(e,t){this.state.route&&!sr(e,this.state.pathToRegexp)&&(this.callLifecycleProperty("onBeforeUnmount",ur),this.update({route:null}),this.callLifecycleProperty("onUnmounted",ur))},onRoute:function(e){this.callLifecycleProperty("onBeforeMount",e),this.update({route:e}),this.callLifecycleProperty("onMounted",e)},callLifecycleProperty:function(e){for(var t,r=arguments.length,a=new Array(r>1?r-1:0),n=1;n<r;n++)a[n-1]=arguments[n];this.props[e]&&(t=this.props)[e].apply(t,a)},onUnmounted:function(){rr.off.value(this.onBeforeRoute),this.stream.end()}},template:function(e,t,r,a){return e('<template expr0="expr0"></template>',[{type:r.IF,evaluate:function(e){return e.state.route},redundantAttribute:"expr0",selector:"[expr0]",template:e('<slot expr1="expr1"></slot>',[{type:r.SLOT,attributes:[{type:t.ATTRIBUTE,name:"route",evaluate:function(e){return e.state.route}}],name:"default",redundantAttribute:"expr1",selector:"[expr1]"}])}])},name:"route-hoc"},vr=function(){return fr()||global},fr=function(){return"undefined"==typeof window?null:window},yr=function(){return"undefined"==typeof document?null:document},xr=function(){var e=fr();return e?e.location:{}},br=(mr=vr()).requestAnimationFrame||mr.setTimeout,Tr=function(){var e=vr();return e.cancelAnimationFrame||e.clearTimeout}(),Er="popstate",Ar="click",wr="/",Cr=/^.+?\/\/+[^/]+/,kr=function(e){return e[e.length-1]===wr?e.substr(0,e.length-1):e},Ir=function(e){var t,r=fr().location,a=r?"".concat(r.protocol,"//").concat(r.host):"",n=(r||{}).pathname;switch(!0){case!1===Boolean(e):return kr("".concat(a).concat(n||""));case/(www|http(s)?:)/.test(e):return e;case"#"===e[0]:return"".concat(a).concat(n&&n!==wr?n:"").concat(e);case e===wr:return kr(a);default:return kr("".concat(a).concat((t=e)[0]===wr?t:"".concat(wr).concat(t)))}};function Rr(e){return Array.isArray(e)?e:/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(e))&&"number"==typeof e.length?Array.from(e):[e]}var Nr=function(e){return e.split(/\s/)};function Ur(e,t,r,a,n){e=Rr(e),Nr(t).forEach((function(t){e.forEach((function(e){return e[a](t,r,n||!1)}))}))}function Br(e,t,r,a){return Ur(e,t,r,"addEventListener",a),e}function Or(e,t,r,a){return Ur(e,t,r,"removeEventListener",a),e}var Sr=function(e){return 1===e.length?e[0]:e};function Dr(e,t){return function(e,t,r){var a="string"==typeof t?[t]:t;return Sr(Rr(e).map((function(e){return Sr(a.map((function(t){return e[r](t)})))})))}(e,t,"hasAttribute")}var Lr=function(){return rr.push(Vr(String(xr().href)))},jr=function(e){var t=e.includes(ar.base)?e:ar.base+e,r=xr(),a="undefined"==typeof history?null:history,n=yr();a&&t!==r.href&&a.pushState(null,n.title,t)},Mr=function e(t){return t&&!_r(t)?e(t.parentNode):t},_r=function(e){return"A"===e.nodeName},Pr=function(e){return!e||!_r(e)||Dr(e,"download")||!Dr(e,"href")||function(e){return e.target&&"_self"!==e.target}(e)||-1===e.href.indexOf(xr().href.match(Cr)[0])},Vr=function(e){return e.replace(ar.base,"")},Gr=function(e){if(!function(e){return e.which&&1!==e.which||e.metaKey||e.ctrlKey||e.shiftKey||e.defaultPrevented}(e)){var t=Mr(e.target);if(!Pr(t)&&!function(e){return e.split("#").length>1}(t.href)&&function(e){return!ar.base||e.includes(ar.base)}(t.href)){var r=Vr(t.href);rr.push(r),e.preventDefault()}}};var $r,Fr="base",Hr=Et.DOMBindings,zr=Hr.template,Xr=Hr.bindingTypes,qr=!1,Wr={css:null,exports:($r=function(e){var t=e.slots,r=e.attributes,a=e.props;qr&&function(e){throw new Error(e)}("Multiple <router> components are not supported");var n=function(e){return r&&r.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 r,a,o,i=this,s=n("initialRoute"),l=s?s.evaluate(t):null,u=cr();qr=!0,this.el=e,this.teardown=(r=this.root,a=fr(),o=r||yr(),a&&(Br(a,Er,Lr),Br(o,Ar,Gr)),rr.on.value(jr),function(){a&&(Or(a,Er,Lr),Or(o,Ar,Gr)),rr.off.value(jr)}),this.setBase(t),u&&!l?this.createSlot(t):(rr.on.value((function e(){i.createSlot(t),rr.off.value(e)})),rr.push(l||window.location.href))},createSlot:function(e){if(t&&t.length){var r=n("onStarted");this.slot=zr(null,[{type:Xr.SLOT,name:"default"}]),this.slot.mount(this.el,{slots:t},e),r&&r.evaluate(e)(cr())}},update:function(e){var t=this;this.setBase(e),this.slot&&(Tr(this.deferred),this.deferred=br((function(){t.slot.update({},e)})))},unmount:function(){var e;this.teardown(),qr=!1,this.slot&&(e=this.slot).unmount.apply(e,arguments)},getBase:function(e){var t=n(Fr);return t?this.el.getAttribute(Fr)||t.evaluate(e):"/"},setBase:function(e){var t;t=a?a.base:this.getBase(e),ar.base=Ir(t)}}},oe($r)||N('riot.pure accepts only arguments of type "function"'),$r[x]=!0,$r),template:null,name:"router-hoc"},Kr="registryServer";function Yr(e){var t=["Bytes","KB","MB","GB","TB"];if(null==e||isNaN(e))return"?";if(0===e)return"0 Byte";var r=parseInt(Math.floor(Math.log(e)/Math.log(1024))),a=e/Math.pow(1024,r);if(a<10){var n=(e-Math.floor(a)*Math.pow(1024,r))/Math.pow(1024,r);return"".concat(Math.floor(a),".").concat(Math.floor(10*n)," ").concat(t[r])}return Math.ceil(a)+" "+t[r]}function Qr(e,t,r){return r||(r=100),e?e.slice((t-1)*r,r*t):[]}function Jr(e,t){return t||(t=100),e?Math.trunc(e.length/t)+1:0}function Zr(e,t){var r=[],a=10;if(1===t)return r;1!==e&&t>=a&&(r.push({icon:"first_page",page:1}),r.push({icon:"chevron_left",page:e-1}));for(var n=Math.round(Math.max(1,Math.min(e-5,t-a+1))),o=n;o<Math.min(t+1,n+a);o++)r.push({page:o,current:o===e,"space-left":1===e&&t>a,"space-right":e===t&&t>a});return e!==t&&t>=a&&(r.push({icon:"chevron_right",page:e+1}),r.push({icon:"last_page",page:t})),r}function ea(e){return e?e.replace(/^https?:\/\//,""):""}function ta(e){return e>="0"&&e<="9"}var ra={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 aa(e){try{var t=JSON.parse(localStorage.getItem(Kr));if(t instanceof Array)return isNaN(e)?t.map((function(e){return e.trim().replace(/\/*$/,"")})):t[e]}catch(e){}return isNaN(e)?[]:""}function na(e){if("string"==typeof e)e=e.split(",");else if(!Array.isArray(e))throw new Error("setRegistries must be called with string or array parameter");e=e.map((function(e){return e.replace(/\/*$/,"")})),localStorage.setItem(Kr,JSON.stringify(e))}function oa(e){var t=e.trim().replace(/\/*$/,""),r=aa().filter((function(e){return e!==t}));return na([t].concat(r)),t}function ia(e){if(e)return e.indexOf("&")<0?window.encodeURIComponent(e):btoa(e)}function sa(e){return!0===e||"true"===e}function la(){var e={};return window.location.search.slice(1).split("&").forEach((function(t){var r=t.indexOf("=");e[t.slice(0,r)]=r<0?"":t.slice(r+1)})),e}function ua(e){var t=la();for(var r in e)null===e[r]?delete t[r]:t[r]=e[r];return t}function pa(e){var t=[];for(var r in e)r&&void 0!==e[r]&&t.push("".concat(r,"=").concat(e[r]));return 0===t.length?"":"?".concat(t.join("&"))}function ca(e){var t=window.location,r=ua(e);return t.origin+t.pathname+pa(r)}var da={home:function(){return ca({page:null})},taglist:function(e){return"".concat(ca({page:null}),"#!/taglist/").concat(e)},getTagListImage:function(){return cr().replace(/^.*(#!)?\/?taglist\//,"")},history:function(e,t){return"".concat(ca({page:null}),"#!/taghistory/image/").concat(e,"/tag/").concat(t)},getTagHistoryImage:function(){return cr().replace(/^.*(#!)?\/?taghistory\/image\/(.*)\/tag\/(.*)\/?$/,"$2")},getTagHistoryTag:function(){return cr().replace(/^.*(#!)?\/?taghistory\/image\/(.*)\/tag\/(.*)\/?$/,"$3")},updateQueryString:function(e){var t=pa(ua(e));history.pushState(null,"",t+window.location.hash)},updateUrlQueryParam:function(e){this.updateQueryString({url:ia(e)})},getUrlQueryParam:function(){var e=la().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 la().page}},ma=function(){function e(t){M(this,e),this.oReq=new XMLHttpRequest,this.oReq.hasHeader=ha,this.oReq.getErrorMessage=ga,this._events={},this._headers={},this.onAuthentication=t&&t.onAuthentication,this.withCredentials=t&&t.withCredentials}return P(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(e,t){this._events[e]=t;var r=this;switch(e){case"loadend":r.oReq.addEventListener("loadend",(function(){if(401!==this.status||this.withCredentials)t.bind(this)();else{var e=this.hasHeader("www-authenticate")&&fa(this.getResponseHeader("www-authenticate"));r.onAuthentication(e,(function(e){var t=new XMLHttpRequest;for(var a in t._url=r._url,t.open(r._method,r._url),r._events)t.addEventListener(a,r._events[a]);for(var n in r._headers)t.setRequestHeader(n,r._headers[n]);e&&e.token?t.setRequestHeader("Authorization","Bearer ".concat(e.token)):t.withCredentials=!0,t.hasHeader=ha,t.getErrorMessage=ga,r.oReq=t,t.send()}))}}));break;case"load":r.oReq.addEventListener("load",(function(){401!==this.status&&t.bind(this)()}));break;default:r.oReq.addEventListener(e,(function(){t.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}(),ha=function(e){return this.getAllResponseHeaders().split("\n").some((function(t){return new RegExp("^"+e+":","i").test(t)}))},ga=function(){return this._url.match("^http://")&&"https:"===window.location.protocol?{code:"MIXED_CONTENT",url:this._url}: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+"`":{code:"INCORRECT_URL",url:this._url}},va=j(/Bearer realm="([^"]+)",service="([^"]+)",scope="([^"]+)"/,{realm:1,service:2,scope:3}),fa=function(e){var t=va.exec(e);return t&&t.groups};function ya(e,t){return!e||t&&t.toLowerCase().indexOf(e)>=0}var xa,ba,Ta,Ea,Aa,wa,Ca,ka,Ia={css:'search-bar material-input,[is="search-bar"] material-input{ line-height: initial; min-width: 5em; } @media screen and (max-width: 400px) { search-bar material-input,[is="search-bar"] material-input{ display: none; } }',exports:{onMounted(e,t){const r=this.$("input");let a="";const n=()=>{a!==r.value&&e.onSearch(r.value.toLowerCase()),a=r.value};r.addEventListener("keyup",n),rr.on.value((()=>{r.value="",n()})),window.addEventListener("keydown",(e=>{if(114===e.keyCode||e.ctrlKey&&70===e.keyCode){if(document.activeElement===r)return!0;e.preventDefault(),r.focus()}}))}},template:(e,t,r,a)=>e('<material-input expr17="expr17" label="Search in page" text-color="var(--header-text)" label-color="var(--neutral-text)" color="var(--accent-text)"></material-input>',[{type:r.TAG,getComponent:a,evaluate:e=>"material-input",slots:[],attributes:[],redundantAttribute:"expr17",selector:"[expr17]"}]),name:"search-bar"},Ra={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),e.showCatalogNbTags&&t.image&&this.getNbTags(e,t)},onBeforeUpdate(e,t){e.filterResults&&t.images?t.nImages=t.images.filter((t=>ya(e.filterResults,t))).length:t.nImages=t.images&&t.images.length},onClick(){this.state.repo&&(this.update({expanded:!this.state.expanded,expanding:!0}),setTimeout((()=>{this.update({expanding:!1})}),50))},getNbTags(e,t){const r=this,a=new ma({onAuthentication:e.onAuthentication});a.addEventListener("load",(function(){if(200===this.status){const e=(JSON.parse(this.responseText).tags||[]).length;r.update({nbTags:e})}else 404===this.status?e.onNotify("Server not found",!0):e.onNotify(this.responseText,!0)})),a.addEventListener("error",(function(){e.onNotify(this.getErrorMessage(),!0)})),a.open("GET",e.registryUrl+"/v2/"+t.image+"/tags/list"),a.send()},matchSearch:ya,router:da},template:(e,t,r,a)=>e('<div expr59="expr59" class="content"></div>',[{type:r.IF,evaluate:e=>!e.props.filterResults||e.state.nImages>0||e.matchSearch(e.props.filterResults,e.state.image),redundantAttribute:"expr59",selector:"[expr59]",template:e('<material-card expr60="expr60" class="list highlight"></material-card><catalog-element expr68="expr68"></catalog-element>',[{type:r.TAG,getComponent:a,evaluate:e=>"material-card",slots:[{id:"default",html:'<a expr61="expr61"></a><material-waves expr63="expr63" center="true" color="#ddd"></material-waves><span expr64="expr64"><i class="material-icons">send</i> <div expr65="expr65" class="item-count right"></div><div expr67="expr67" class="item-count right"></div></span>',bindings:[{type:r.IF,evaluate:e=>e.state.image,redundantAttribute:"expr61",selector:"[expr61]",template:e('<material-waves expr62="expr62" center="true" color="#ddd"></material-waves>',[{expressions:[{type:t.ATTRIBUTE,name:"href",evaluate:e=>e.router.taglist(e.state.image)}]},{type:r.TAG,getComponent:a,evaluate:e=>"material-waves",slots:[],attributes:[],redundantAttribute:"expr62",selector:"[expr62]"}])},{type:r.IF,evaluate:e=>e.state.images,redundantAttribute:"expr63",selector:"[expr63]",template:e(null,[{type:r.TAG,getComponent:a,evaluate:e=>"material-waves",slots:[],attributes:[]}])},{redundantAttribute:"expr64",selector:"[expr64]",expressions:[{type:t.TEXT,childNodeIndex:1,evaluate:e=>[e.state.image||e.state.repo].join("")}]},{type:r.IF,evaluate:e=>e.state.images,redundantAttribute:"expr65",selector:"[expr65]",template:e(' <i expr66="expr66">expand_more</i>',[{expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>[e.state.nImages," images"].join("")}]},{redundantAttribute:"expr66",selector:"[expr66]",expressions:[{type:t.ATTRIBUTE,name:"class",evaluate:e=>["material-icons animated ",e.state.expanded?"expanded":""].join("")}]}])},{type:r.IF,evaluate:e=>e.props.showCatalogNbTags&&e.state.image,redundantAttribute:"expr67",selector:"[expr67]",template:e(' <i class="material-icons animated"></i>',[{expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>[e.state.nbTags," tags"].join("")}]}])}]}],attributes:[{type:t.ATTRIBUTE,name:"expanded",evaluate:e=>e.state.expanded},{type:t.EVENT,name:"onclick",evaluate:e=>e.onClick}],redundantAttribute:"expr60",selector:"[expr60]"},{type:r.EACH,getKey:null,condition:e=>e.state.images,template:e(null,[{type:r.TAG,getComponent:a,evaluate:e=>"catalog-element",slots:[],attributes:[{type:t.ATTRIBUTE,name:"filter-results",evaluate:e=>e.props.filterResults},{type:t.ATTRIBUTE,name:"registry-url",evaluate:e=>e.props.registryUrl},{type:t.EVENT,name:"on-notify",evaluate:e=>e.props.onnNotify},{type:t.EVENT,name:"on-authentication",evaluate:e=>e.props.onAuthentication},{type:t.ATTRIBUTE,name:"show-catalog-nb-tags",evaluate:e=>e.props.showCatalogNbTags},{type:t.ATTRIBUTE,name:"class",evaluate:e=>["animated ",e.state.expanded||e.props.filterResults?"":"hide"," ",e.state.expanding?"expanding":""].join("")},{type:t.ATTRIBUTE,name:"item",evaluate:e=>e.item}]}]),redundantAttribute:"expr68",selector:"[expr68]",itemName:"item",indexName:null,evaluate:e=>e.state.images}])}]),name:"catalog-element"},Na={css:null,exports:{components:{CatalogElement:Ra},state:{registryName:"",length:0,loadend:!1,repositories:[],registryUrl:""},onBeforeMount(e){this.state.registryName=e.registryName,this.state.catalogElementsLimit=e.catalogElementsLimit},onMounted(e,t){this.display(e,t)},onUpdated(e,t){this.display(e,t)},display(e,t){if(e.registryUrl===t.registryUrl)return;t.registryUrl=e.registryUrl;let r=[];const a=this,n=`${e.registryUrl}/v2/_catalog?n=${t.catalogElementsLimit}`,o=new ma({onAuthentication:this.props.onAuthentication});o.addEventListener("load",(function(){200===this.status?(r=JSON.parse(this.responseText).repositories||[],r.sort(),r=r.reduce((function(e,t){const r=t.indexOf("/");if(r>0){const a=t.substring(0,r)+"/";return 0!==e.length&&e[e.length-1].repo==a||e.push({repo:a,images:[]}),e[e.length-1].images.push(t),e}return e.push(t),e}),[])):404===this.status?a.props.onNotify({code:"CATALOG_NOT_FOUND",url:n},!0):a.props.onNotify(this.responseText)})),o.addEventListener("error",(function(){a.props.onNotify(this.getErrorMessage(),!0)})),o.addEventListener("loadend",(function(){a.update({repositories:r,nRepositories:r.length,nImages:r.reduce(((e,t)=>e+(t.images&&t.images.length||1)),0),loadend:!0})})),o.open("GET",n),o.send()}},template:(e,t,r,a)=>e('<material-card expr27="expr27" ref="catalog-tag" class="catalog header"></material-card><div expr30="expr30" class="spinner-wrapper"></div><catalog-element expr32="expr32"></catalog-element>',[{type:r.TAG,getComponent:a,evaluate:e=>"material-card",slots:[{id:"default",html:'<div class="material-card-title-action"><h2 expr28="expr28"> <div expr29="expr29" class="item-count"> </div></h2></div>',bindings:[{redundantAttribute:"expr28",selector:"[expr28]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>["Repositories of ",e.state.registryName].join("")}]},{redundantAttribute:"expr29",selector:"[expr29]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>[e.state.nImages," images in ",e.state.nRepositories," repositories"].join("")}]}]}],attributes:[],redundantAttribute:"expr27",selector:"[expr27]"},{type:r.IF,evaluate:e=>!e.state.loadend,redundantAttribute:"expr30",selector:"[expr30]",template:e('<material-spinner expr31="expr31"></material-spinner>',[{type:r.TAG,getComponent:a,evaluate:e=>"material-spinner",slots:[],attributes:[],redundantAttribute:"expr31",selector:"[expr31]"}])},{type:r.EACH,getKey:null,condition:null,template:e(null,[{type:r.TAG,getComponent:a,evaluate:e=>"catalog-element",slots:[],attributes:[{type:t.ATTRIBUTE,name:"item",evaluate:e=>e.item},{type:t.ATTRIBUTE,name:"filter-results",evaluate:e=>e.props.filterResults},{type:t.ATTRIBUTE,name:"registry-url",evaluate:e=>e.props.registryUrl},{type:t.EVENT,name:"on-notify",evaluate:e=>e.props.onNotify},{type:t.EVENT,name:"on-authentication",evaluate:e=>e.props.onAuthentication},{type:t.ATTRIBUTE,name:"show-catalog-nb-tags",evaluate:e=>e.props.showCatalogNbTags}]}]),redundantAttribute:"expr32",selector:"[expr32]",itemName:"item",indexName:null,evaluate:e=>e.state.repositories}]),name:"catalog"},Ua={};xa={get exports(){return Ua},set exports(e){Ua=e}},ba="*",Ta=Object.defineProperties,Ea=Object.entries,Aa=function(e,t){return function(r,a){return e.has(r)?e.get(r).add(a):e.set(r,(new Set).add(a)),t}},wa=function(e,t){return function(r,a){return r!==ba||a?function(e,t,r,a){if(a){var n=e.get(r);n&&(n.delete(a),0===n.size&&e.delete(r))}else e.delete(r)}(e,0,r,a):e.clear(),t}},Ca=function(e,t){return function(e,r){return t.on(e,(function a(){t.off(e,a);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];r.apply(t,o)}))}},ka=function(e,t){return function(r){for(var a=arguments.length,n=new Array(a>1?a-1:0),o=1;o<a;o++)n[o-1]=arguments[o];var i=e.get(r);return i&&i.forEach((function(e){return e.apply(t,n)})),e.get(ba)&&r!==ba&&t.trigger.apply(t,[ba,r].concat(n)),t}},xa.exports=function(e){var t=new Map;return Ta(e=e||{},Ea({on:Aa,off:wa,one:Ca,trigger:ka}).reduce((function(r,a){var n=q(a,2),o=n[0],i=n[1];return r[o]={value:i(t,e),enumerable:!1,writable:!1,configurable:!1},r}),{})),e};var Ba=Ua,Oa=function(e,t){return e.length>0&&ta(e[e.length-1].charAt(0))==ta(t)?e[e.length-1]+=t:e.push(t),e};function Sa(e,t){for(var r=e.tag.match(/./g).reduce(Oa,[]),a=t.tag.match(/./g).reduce(Oa,[]),n=0;n<r.length&&n<a.length;n++){var o=r[n].localeCompare(a[n]);if(ta(r[n].charAt(0))&&ta(a[n].charAt(0))){var i=r[n]-a[n];if(0!=i)return i}else if(0!=o)return o}return e.tag.length-t.tag.length}var Da=function(){function e(t,r,a){var n=a.list,o=a.registryUrl,i=a.onNotify,s=a.onAuthentication,l=a.useControlCacheHeader;M(this,e),this.name=t,this.tag=r,this.chars=0,this.opts={list:n,registryUrl:o,onNotify:i,onAuthentication:s,useControlCacheHeader:l},this.ociImage=!1,Ba(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.sha256?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.contentDigest?this.trigger("content-digest",this.contentDigest):this.fillInfo()}))}return P(e,[{key:"fillInfo",value:function(){if(!this._fillInfoWaiting){this._fillInfoWaiting=!0;var t=new ma({onAuthentication:this.opts.onAuthentication}),r=this;t.addEventListener("loadend",(function(){if(200===this.status||202===this.status){var a=JSON.parse(this.responseText);if("application/vnd.docker.distribution.manifest.list.v2+json"===a.mediaType&&r.opts.list){r.trigger("list",a);var n=a.manifests[0],o=new e(r.name,n.digest,S(S({},r.opts),{},{list:!1}));return i=r,o.on("*",(function(e,t){var r;i[(r=e,r.replace(/-[a-z]/,(function(e){return e[1].toUpperCase()})))]=t,i.trigger(e,t)})),o.fillInfo(),void(r.variants=[o])}r.ociImage="application/vnd.oci.image.index.v1+json"===a.mediaType,r.layers=a.layers||a.manifests,r.size=r.layers.reduce((function(e,t){return e+t.size}),0),r.sha256=a.config&&a.config.digest,r.trigger("size",r.size),r.trigger("sha256",r.sha256),t.getContentDigest((function(e){r.contentDigest=e,r.trigger("content-digest",e),e||r.opts.onNotify(ra)})),r.ociImage?(r.trigger("creation-date"),r.trigger("blobs"),r.trigger("oci-image")):r.getBlobs(r.sha256)}else 404===this.status?r.opts.onNotify("Manifest for ".concat(r.name,":").concat(r.tag," not found"),!0):r.opts.onNotify(this.responseText);var i})),t.open("GET","".concat(this.opts.registryUrl,"/v2/").concat(r.name,"/manifests/").concat(r.tag)),t.setRequestHeader("Accept","application/vnd.docker.distribution.manifest.v2+json, application/vnd.oci.image.manifest.v1+json, application/vnd.oci.image.index.v1+json"+(r.opts.list?", application/vnd.docker.distribution.manifest.list.v2+json":"")),r.opts.useControlCacheHeader&&t.setRequestHeader("Cache-Control","no-store, no-cache"),t.send()}}},{key:"getBlobs",value:function(e){var t=new ma({onAuthentication:this.opts.onAuthentication}),r=this;t.addEventListener("loadend",(function(){if(200===this.status||202===this.status){var t=JSON.parse(this.responseText);r.creationDate=new Date(t.created),r.blobs=t,r.blobs.history.filter((function(e){return!e.empty_layer})).forEach((function(e,t){e.size=r.layers[t].size,e.id=r.layers[t].digest.replace("sha256:","")})),r.blobs.id=e.replace("sha256:",""),r.trigger("creation-date",r.creationDate),r.trigger("blobs",r.blobs)}else 404===this.status?r.opts.onNotify("Blobs for ".concat(r.name,":").concat(r.tag," not found: blob '").concat(r.blobs,"'"),!0):this.responseText?r.opts.onNotify(this.responseText):r.opts.onNotify('Can"t get blobs for '.concat(r.name,":").concat(r.tag,": blob '").concat(r.blobs,"' (no message error)"),!0)})),t.open("GET","".concat(this.opts.registryUrl,"/v2/").concat(r.name,"/blobs/").concat(e)),t.setRequestHeader("Accept","application/vnd.docker.distribution.manifest.v2+json, application/vnd.oci.image.manifest.v1+json"),t.send()}}]),e}(),La={css:'pagination .container,[is="pagination"] .container{ display: flex; } pagination .container .pagination-centered,[is="pagination"] .container .pagination-centered{ margin: auto; } pagination material-button > :first-child,[is="pagination"] material-button > :first-child{ padding: 0; min-width: 40px; min-height: 44px; } pagination material-button > :first-child .content,[is="pagination"] material-button > :first-child .content{ display: flex; align-content: center; flex-direction: column; font-size: 16px; line-height: 42px; } pagination material-button.current > :first-child.space-left,[is="pagination"] material-button.current > :first-child.space-left{ margin-left: 85px; } pagination material-button.current > :first-child.space-right,[is="pagination"] material-button.current > :first-child.space-right{ margin-right: 85px; } pagination material-button .content i.material-icons,[is="pagination"] material-button .content i.material-icons{ height: unset; }',exports:null,template:(e,t,r,a)=>e('<div class="container"><div class="pagination-centered"><material-button expr69="expr69" waves-color="rgba(158,158,158,.4)" outlined></material-button></div></div>',[{type:r.EACH,getKey:null,condition:null,template:e(null,[{type:r.TAG,getComponent:a,evaluate:e=>"material-button",slots:[{id:"default",html:'<i expr70="expr70" class="material-icons"></i><template expr71="expr71"></template>',bindings:[{type:r.IF,evaluate:e=>e.p.icon,redundantAttribute:"expr70",selector:"[expr70]",template:e(" ",[{expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>e.p.icon}]}])},{type:r.IF,evaluate:e=>!e.p.icon,redundantAttribute:"expr71",selector:"[expr71]",template:e(" ",[{expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>e.p.page}]}])}]}],attributes:[{type:t.ATTRIBUTE,name:"aria-label",evaluate:e=>["page-",e.p.page].join("")},{type:t.ATTRIBUTE,name:"color",evaluate:e=>e.p.current?"var(--accent-text)":"rgba(0, 0, 0, 0 )"},{type:t.ATTRIBUTE,name:"text-color",evaluate:e=>e.p.current?"var(--accent-text)":"var(--primary-text)"},{type:t.ATTRIBUTE,name:"class",evaluate:e=>[e.p.current?"current":""," ",e.p["space-left"]?"space-left":""," ",e.p["space-right"]?"space-right":""].join("")},{type:t.EVENT,name:"onClick",evaluate:e=>t=>e.props.onPageUpdate(e.idx)}]}]),redundantAttribute:"expr69",selector:"[expr69]",itemName:"p",indexName:"idx",evaluate:e=>e.props.pages}]),name:"pagination"},ja={css:null,exports:{onMounted(e){this.loadCreationDate(e)},onUpdated(e){this.loadCreationDate(e)},loadCreationDate(e){e.image.creationDate||e.image.ociImage||(e.image.one("creation-date",(e=>{this.update({date:e,localDate:e&&e.toLocaleString()})})),e.image.trigger("get-date"))},getDate:e=>e.ociImage?"Not Available":`${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"],r=[1,60,3600,86400,2592e3,31104e3,1/0],a=(new Date-e)/1e3,n=0;n<r.length-1;n++){if(2*r[n]>=a)return t[2*n];if(r[n+1]>a)return Math.floor(a/r[n])+" "+t[2*n+1]}}(e.creationDate)} ago`,getLocalDate:e=>e.ociImage?"unavailable on OCI index/Buildkit export cache":e.creationDate&&e.creationDate.toLocaleString()||"unknown"},template:(e,t,r,a)=>e('<div expr158="expr158"> </div>',[{redundantAttribute:"expr158",selector:"[expr158]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>e.getDate(e.props.image)},{type:t.ATTRIBUTE,name:"title",evaluate:e=>["Creation date ",e.getLocalDate(e.props.image)].join("")}]}]),name:"image-date"},Ma={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=>Yr(e.size)},template:(e,t,r,a)=>e('<div expr157="expr157" title="Compressed size of your image."> </div>',[{redundantAttribute:"expr157",selector:"[expr157]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>e.getImageSize(e.props.image)}]}]),name:"image-size"},_a={css:null,exports:{onMounted(e){e.image.on("sha256",(e=>{this.update({sha256:e&&e.substring(0,19)})})),e.image.trigger("get-sha256")}},template:(e,t,r,a)=>e('<div expr159="expr159"> </div>',[{redundantAttribute:"expr159",selector:"[expr159]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>e.props.image.tag},{type:t.ATTRIBUTE,name:"title",evaluate:e=>e.state.sha256}]}]),name:"image-tag"},Pa={css:null,exports:{onMounted(e,t){this.load(e,t)},onUpdated(e,t){this.load(e,t)},load(e,t){e.image.contentDigest||(t.chars=-1,e.image.one("content-digest",(t=>{this.contentDigest=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.contentDigest||"",getContentDigest:(e,t)=>t>=70?e.contentDigest||"":t<=0?"":e.contentDigest&&e.contentDigest.slice(0,t)+"..."},template:(e,t,r,a)=>e('<div expr160="expr160"> </div>',[{redundantAttribute:"expr160",selector:"[expr160]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>e.getContentDigest(e.props.image,e.state.chars)},{type:t.ATTRIBUTE,name:"title",evaluate:e=>e.getTitle(e.props.image,e.state.chars)}]}]),name:"image-content-digest"},Va={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.contentDigest}`,load(e,t){"tag"===e.target||e.image.contentDigest||(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(ra)}},template:(e,t,r,a)=>e('<div class="copy-to-clipboard"><input expr161="expr161" style="display: none; width: 1px; height: 1px"/><material-button expr162="expr162" text-color="var(--neutral-text)" color="inherit" waves-color="var(--hover-background)" waves-center="true" title="Copy pull command." icon></material-button></div>',[{redundantAttribute:"expr161",selector:"[expr161]",expressions:[{type:t.VALUE,evaluate:e=>e.getDockerCmd(e.props)}]},{type:r.TAG,getComponent:a,evaluate:e=>"material-button",slots:[{id:"default",html:'<i class="material-icons">content_copy</i>',bindings:[]}],attributes:[{type:t.EVENT,name:"onClick",evaluate:e=>e.copy}],redundantAttribute:"expr162",selector:"[expr162]"}]),name:"copy-to-clipboard"},Ga={css:null,exports:{onMounted(e){e.image.one("oci-image",(()=>{this.update()}))},buttonTittle(){return this.props.image.ociImage?"History is unavailable on OCI index/Buildkit export cache":"This will show the history of given tag"},routeToHistory(){if(!this.props.image.ociImage)return da.history(this.props.image.name,this.props.image.tag)}},template:(e,t,r,a)=>e('<material-button expr163="expr163" text-color="var(--neutral-text)" color="inherit" waves-color="var(--hover-background)" waves-center="true" icon></material-button>',[{type:r.TAG,getComponent:a,evaluate:e=>"material-button",slots:[{id:"default",html:'<i class="material-icons">history</i>',bindings:[]}],attributes:[{type:t.ATTRIBUTE,name:"title",evaluate:e=>e.buttonTittle()},{type:t.ATTRIBUTE,name:"href",evaluate:e=>e.routeToHistory()},{type:t.ATTRIBUTE,name:"disabled",evaluate:e=>e.props.image.ociImage}],redundantAttribute:"expr163",selector:"[expr163]"}]),name:"tag-history-button"},$a={css:null,exports:{onBeforeMount(e,t){t.checked=e.checked,e.image.one("content-digest",(e=>{this.update({contentDigest:e})}))},onMounted(e,t){e.image.trigger("get-content-digest")},onBeforeUpdate(e,t){t.checked=e.checked},deleteImage(){this.props.handleCheckboxChange(Xa,this.props.image)},handleCheckboxChange(e){const t=e.target.checked?Ha:za;this.props.handleCheckboxChange(t,this.props.image,e.shiftKey)}},template:(e,t,r,a)=>e('<material-button expr164="expr164" text-color="var(--neutral-text)" color="inherit" waves-color="var(--hover-background)" waves-center="true" title="This will delete the image." icon></material-button><material-checkbox expr165="expr165" title="Select this tag to delete it."></material-checkbox>',[{type:r.IF,evaluate:e=>!e.props.multiDelete,redundantAttribute:"expr164",selector:"[expr164]",template:e(null,[{type:r.TAG,getComponent:a,evaluate:e=>"material-button",slots:[{id:"default",html:'<i class="material-icons">delete</i>',bindings:[]}],attributes:[{type:t.ATTRIBUTE,name:"disabled",evaluate:e=>!e.state.contentDigest},{type:t.EVENT,name:"onClick",evaluate:e=>e.deleteImage}]}])},{type:r.IF,evaluate:e=>e.props.multiDelete,redundantAttribute:"expr165",selector:"[expr165]",template:e(null,[{type:r.TAG,getComponent:a,evaluate:e=>"material-checkbox",slots:[],attributes:[{type:t.ATTRIBUTE,name:"disabled",evaluate:e=>!e.state.contentDigest},{type:t.EVENT,name:"onChange",evaluate:e=>e.handleCheckboxChange},{type:t.ATTRIBUTE,name:"checked",evaluate:e=>e.state.checked}]}])}]),name:"remove-image"},Fa={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 r=new Set;return e.forEach((e=>{e.contentDigest&&r.add(e.contentDigest)})),t.filter((e=>r.has(e.contentDigest)))},deleteImages(){this.props.toDelete.forEach((e=>this.getContentDigestThenDelete(e,this.props)))},getContentDigestThenDelete({name:e,tag:t},r){const{registryUrl:a,onNotify:n,onAuthentication:o}=r,i=new ma({onAuthentication:o}),s=this;i.addEventListener("loadend",(function(){200===this.status||202===this.status?i.getContentDigest((function(a){a?s.deleteImage({name:e,tag:t,contentDigest:a},r):n(ERROR_CAN_NOT_READ_CONTENT_DIGEST)})):404===this.status?n(`Manifest for ${e}:${t} not found`,!0):n(this.responseText)})),i.open("GET",`${a}/v2/${e}/manifests/${t}`),i.setRequestHeader("Accept","application/vnd.docker.distribution.manifest.v2+json, application/vnd.oci.image.manifest.v1+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.index.v1+json"),i.send()},deleteImage({name:e,tag:t,contentDigest:r},a){const{registryUrl:n,ignoreError:o,onNotify:i,onAuthentication:s,onClick:l}=a,u=new ma({onAuthentication:s});u.addEventListener("loadend",(function(){200===this.status||202===this.status?(da.taglist(e),i(`Deleting ${e}:${t} image. Run \`registry garbage-collect config.yml\` on your registry`)):404===this.status?o||i({message:"Digest not found for this image in your registry.",isError:!0}):i(this.responseText),l()})),u.open("DELETE",`${n}/v2/${e}/manifests/${r}`),u.setRequestHeader("Accept","application/vnd.docker.distribution.manifest.v2+json, application/vnd.oci.image.manifest.v1+json"),u.addEventListener("error",(function(){const e=this.withCredentials?" When you use credentials on a different hostname, the registry server may fail preflight requests. Check FAQ and issue #104.":"";i({message:"An error occurred when deleting image. Check if your server accept DELETE methods Access-Control-Allow-Methods: ['DELETE']."+e,isError:!0})})),u.send()}},template:(e,t,r,a)=>e('<material-popup expr166="expr166"></material-popup>',[{type:r.TAG,getComponent:a,evaluate:e=>"material-popup",slots:[{id:"default",html:'<div class="material-popup-title">These images will be deleted</div><div class="material-popup-content"><ul><li expr167="expr167"></li></ul></div><div class="material-popup-action"><material-button expr168="expr168" class="dialog-button" waves-color="var(--hover-background)" color="inherit" text-color="var(--primary-text)"></material-button><material-button expr169="expr169" class="dialog-button" waves-color="var(--hover-background)" color="inherit" text-color="var(--primary-text)"></material-button></div>',bindings:[{type:r.EACH,getKey:null,condition:null,template:e(" ",[{expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>[e.image.name,":",e.image.tag].join("")}]}]),redundantAttribute:"expr167",selector:"[expr167]",itemName:"image",indexName:null,evaluate:e=>e.displayImagesToDelete(e.props.toDelete,e.props.tags)},{type:r.TAG,getComponent:a,evaluate:e=>"material-button",slots:[{id:"default",html:"\n Delete\n ",bindings:[]}],attributes:[{type:t.EVENT,name:"onClick",evaluate:e=>e.deleteImages}],redundantAttribute:"expr168",selector:"[expr168]"},{type:r.TAG,getComponent:a,evaluate:e=>"material-button",slots:[{id:"default",html:"\n Cancel\n ",bindings:[]}],attributes:[{type:t.EVENT,name:"onClick",evaluate:e=>e.props.onClick}],redundantAttribute:"expr169",selector:"[expr169]"}]}],attributes:[{type:t.ATTRIBUTE,name:"opened",evaluate:e=>e.props.opened},{type:t.EVENT,name:"onClick",evaluate:e=>e.props.onClick}],redundantAttribute:"expr166",selector:"[expr166]"}]),name:"confirm-delete-image"};const Ha="CHECK",za="UNCHECK",Xa="DELETE";var qa={css:null,exports:{components:{ImageDate:ja,ImageSize:Ma,ImageTag:_a,ImageContentDigest:Pa,CopyToClipboard:Va,RemoveImage:$a,TagHistoryButton:Ga,ConfirmDeleteImage:Fa},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){if(!0===e.altKey){Qr(this.props.tags,this.props.page).filter((e=>ya(this.props.filterResults,e.tag))).forEach((e=>this.state.toDelete.add(e))),this.update({multiDelete:!0,toDelete:this.state.toDelete,slectedImage:void 0})}else this.update({multiDelete:e.target.checked,slectedImage:void 0})},onRemoveImageChange(e,t,r){let a,n=!1,o=!1;switch(e){case Ha:this.state.toDelete.add(t),r&&(a=this.supportShiftKey(t,!0));break;case za:this.state.toDelete.delete(t),r&&(a=this.supportShiftKey(t,!1));break;case Xa:this.state.toDelete.clear(),this.state.toDelete.add(t),n=!0,o=!0}this.update({toDelete:this.state.toDelete,confirmDeleteImage:n,singleDeleteAction:o,slectedImage:a})},supportShiftKey(e,t){if(!this.state.slectedImage)return e;{let r=!1;Qr(this.props.tags,this.props.page).filter((t=>t==this.state.slectedImage||t==e?(r=!r,!0):r)).forEach((e=>{t?this.state.toDelete.add(e):this.state.toDelete.delete(e)}))}},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 r=Qr(e,t);return"date"===this.state.orderType?r.sort(((e,t)=>this.state.desc?(e.creationDate?.getTime()||0)-(t.creationDate?.getTime()||0):(t.creationDate?.getTime()||0)-(e.creationDate?.getTime()||0))):"size"===this.state.orderType&&r.sort(((e,t)=>this.state.desc?e.size-t.size:t.size-e.size)),r},matchSearch:ya},template:(e,t,r,a)=>e('<confirm-delete-image expr72="expr72"></confirm-delete-image><material-card expr73="expr73" class="taglist"></material-card>',[{type:r.TAG,getComponent:a,evaluate:e=>"confirm-delete-image",slots:[],attributes:[{type:t.ATTRIBUTE,name:"opened",evaluate:e=>e.state.confirmDeleteImage},{type:t.EVENT,name:"on-click",evaluate:e=>e.onConfirmDeleteImageClick},{type:t.ATTRIBUTE,name:"registry-url",evaluate:e=>e.props.registryUrl},{type:t.EVENT,name:"on-notify",evaluate:e=>e.props.onNotify},{type:t.EVENT,name:"on-authentication",evaluate:e=>e.props.onAuthentication},{type:t.ATTRIBUTE,name:"tags",evaluate:e=>e.props.tags},{type:t.ATTRIBUTE,name:"to-delete",evaluate:e=>e.state.toDelete}],redundantAttribute:"expr72",selector:"[expr72]"},{type:r.TAG,getComponent:a,evaluate:e=>"material-card",slots:[{id:"default",html:'<table style="border: none"><thead><tr><th expr74="expr74">\n Creation date\n </th><th expr75="expr75">\n Size\n </th><th expr76="expr76" id="image-content-digest-header"></th><th expr77="expr77" id="image-tag-header">\n Tag\n </th><th class="show-tag-history">History</th><th expr78="expr78"></th></tr></thead><tbody><tr expr81="expr81"></tr></tbody></table>',bindings:[{redundantAttribute:"expr74",selector:"[expr74]",expressions:[{type:t.ATTRIBUTE,name:"class",evaluate:e=>["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:e=>()=>e.onPageReorder("date")}]},{redundantAttribute:"expr75",selector:"[expr75]",expressions:[{type:t.ATTRIBUTE,name:"class",evaluate:e=>["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:e=>()=>e.onPageReorder("size")}]},{type:r.IF,evaluate:e=>e.props.showContentDigest,redundantAttribute:"expr76",selector:"[expr76]",template:e("Content Digest",[])},{redundantAttribute:"expr77",selector:"[expr77]",expressions:[{type:t.ATTRIBUTE,name:"class",evaluate:e=>e.props.asc?"material-card-th-sorted-ascending":"material-card-th-sorted-descending"},{type:t.EVENT,name:"onclick",evaluate:e=>e.onReverseOrder}]},{type:r.IF,evaluate:e=>e.props.isImageRemoveActivated,redundantAttribute:"expr78",selector:"[expr78]",template:e('<material-checkbox expr79="expr79" class="indeterminate" title="Toggle multi-delete. Alt+Click to select all tags."></material-checkbox><material-button expr80="expr80" waves-center="true" color="inherit" text-color="var(--neutral-background)" waves-color="var(--hover-background)" title="This will delete selected images." icon></material-button>',[{expressions:[{type:t.ATTRIBUTE,name:"class",evaluate:e=>["remove-tag ",e.state.toDelete.size>0&&!e.state.singleDeleteAction?"delete":""].join("")}]},{type:r.IF,evaluate:e=>0===e.state.toDelete.size||e.state.singleDeleteAction,redundantAttribute:"expr79",selector:"[expr79]",template:e(null,[{type:r.TAG,getComponent:a,evaluate:e=>"material-checkbox",slots:[],attributes:[{type:t.ATTRIBUTE,name:"checked",evaluate:e=>e.state.multiDelete},{type:t.EVENT,name:"onChange",evaluate:e=>e.onRemoveImageHeaderChange}]}])},{type:r.IF,evaluate:e=>e.state.toDelete.size>0&&!e.state.singleDeleteAction,redundantAttribute:"expr80",selector:"[expr80]",template:e(null,[{type:r.TAG,getComponent:a,evaluate:e=>"material-button",slots:[{id:"default",html:'<i class="material-icons">delete</i>',bindings:[]}],attributes:[{type:t.EVENT,name:"onClick",evaluate:e=>e.deleteImages}]}])}])},{type:r.EACH,getKey:null,condition:e=>e.matchSearch(e.props.filterResults,e.image.tag),template:e('<td class="creation-date"><image-date expr82="expr82"></image-date></td><td class="image-size"><image-size expr83="expr83"></image-size></td><td expr84="expr84"></td><td><image-tag expr87="expr87"></image-tag><copy-to-clipboard expr88="expr88" target="tag"></copy-to-clipboard></td><td class="show-tag-history"><tag-history-button expr89="expr89"></tag-history-button></td><td expr90="expr90" class="remove-tag"></td>',[{type:r.TAG,getComponent:a,evaluate:e=>"image-date",slots:[],attributes:[{type:t.ATTRIBUTE,name:"image",evaluate:e=>e.image}],redundantAttribute:"expr82",selector:"[expr82]"},{type:r.TAG,getComponent:a,evaluate:e=>"image-size",slots:[],attributes:[{type:t.ATTRIBUTE,name:"image",evaluate:e=>e.image}],redundantAttribute:"expr83",selector:"[expr83]"},{type:r.IF,evaluate:e=>e.props.showContentDigest,redundantAttribute:"expr84",selector:"[expr84]",template:e('<image-content-digest expr85="expr85"></image-content-digest><copy-to-clipboard expr86="expr86" target="digest"></copy-to-clipboard>',[{type:r.TAG,getComponent:a,evaluate:e=>"image-content-digest",slots:[],attributes:[{type:t.ATTRIBUTE,name:"image",evaluate:e=>e.image}],redundantAttribute:"expr85",selector:"[expr85]"},{type:r.TAG,getComponent:a,evaluate:e=>"copy-to-clipboard",slots:[],attributes:[{type:t.ATTRIBUTE,name:"image",evaluate:e=>e.image},{type:t.ATTRIBUTE,name:"pull-url",evaluate:e=>e.props.pullUrl},{type:t.EVENT,name:"on-notify",evaluate:e=>e.props.onNotify}],redundantAttribute:"expr86",selector:"[expr86]"}])},{type:r.TAG,getComponent:a,evaluate:e=>"image-tag",slots:[],attributes:[{type:t.ATTRIBUTE,name:"image",evaluate:e=>e.image}],redundantAttribute:"expr87",selector:"[expr87]"},{type:r.TAG,getComponent:a,evaluate:e=>"copy-to-clipboard",slots:[],attributes:[{type:t.ATTRIBUTE,name:"image",evaluate:e=>e.image},{type:t.ATTRIBUTE,name:"pull-url",evaluate:e=>e.props.pullUrl},{type:t.EVENT,name:"on-notify",evaluate:e=>e.props.onNotify}],redundantAttribute:"expr88",selector:"[expr88]"},{type:r.TAG,getComponent:a,evaluate:e=>"tag-history-button",slots:[],attributes:[{type:t.ATTRIBUTE,name:"image",evaluate:e=>e.image}],redundantAttribute:"expr89",selector:"[expr89]"},{type:r.IF,evaluate:e=>e.props.isImageRemoveActivated,redundantAttribute:"expr90",selector:"[expr90]",template:e('<remove-image expr91="expr91"></remove-image>',[{type:r.TAG,getComponent:a,evaluate:e=>"remove-image",slots:[],attributes:[{type:t.ATTRIBUTE,name:"multi-delete",evaluate:e=>e.state.multiDelete},{type:t.ATTRIBUTE,name:"image",evaluate:e=>e.image},{type:t.ATTRIBUTE,name:"registry-url",evaluate:e=>e.props.registryUrl},{type:t.ATTRIBUTE,name:"handleCheckboxChange",evaluate:e=>e.onRemoveImageChange},{type:t.ATTRIBUTE,name:"checked",evaluate:e=>e.state.toDelete.has(e.image)},{type:t.EVENT,name:"on-notify",evaluate:e=>e.props.onNotify},{type:t.EVENT,name:"on-authentication",evaluate:e=>e.props.onAuthentication}],redundantAttribute:"expr91",selector:"[expr91]"}])}]),redundantAttribute:"expr81",selector:"[expr81]",itemName:"image",indexName:null,evaluate:e=>e.getPage(e.props.tags,e.props.page)}]}],attributes:[],redundantAttribute:"expr73",selector:"[expr73]"}]),name:"tag-table"},Wa={css:null,exports:{components:{Pagination:La,TagTable:qa},onBeforeMount(e){this.state={registryName:e.registryName,tags:[],loadend:!1,asc:!0,page:da.getPageQueryParam()||1}},onMounted(e,t){this.display(e,t),window.addEventListener("resize",this.onResize),window.requestAnimationFrame(this.onResize)},display(e,t){t.tags=[];const r=this,a=new ma({onAuthentication:e.onAuthentication});a.addEventListener("load",(function(){if(200===this.status){const a=(JSON.parse(this.responseText).tags||[]).map((t=>new Da(e.image,t,{list:!0,registryUrl:e.registryUrl,onNotify:e.onNotify,onAuthentication:e.onAuthentication,useControlCacheHeader:e.useControlCacheHeader}))).sort(Sa);window.requestAnimationFrame(r.onResize),r.update({page:Math.min(t.page,Jr(a)),tags:a})}else 404===this.status?r.props.onNotify("Server not found",!0):r.props.onNotify(this.responseText,!0)})),a.addEventListener("error",(function(){r.props.onNotify(this.getErrorMessage(),!0),t.tags=[]})),a.addEventListener("loadend",(function(){r.update({loadend:!0})})),a.open("GET",e.registryUrl+"/v2/"+e.image+"/tags/list"),a.send(),t.asc=!0},onPageUpdate(e){const t=Zr(this.state.page,Jr(this.state.tags))[e].page;this.update({page:t}),da.updatePageQueryParam(t)},onResize(){const e=window.innerWidth;let t=0;const r=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,r>20&&(t-=r-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(Sa),this.state.asc=!0),this.update()},getPageLabels:Zr,getNumPages:Jr,router:da},template:(e,t,r,a)=>e('<material-card expr33="expr33" class="header"></material-card><div expr38="expr38" class="spinner-wrapper"></div><pagination expr40="expr40"></pagination><tag-table expr41="expr41"></tag-table><pagination expr42="expr42"></pagination>',[{type:r.TAG,getComponent:a,evaluate:e=>"material-card",slots:[{id:"default",html:'<div class="material-card-title-action"><material-button expr34="expr34" text-color="var(--neutral-text)" color="inherit" waves-color="var(--hover-background)" waves-center="true" icon></material-button><h2 expr35="expr35"> <div expr36="expr36" class="source-hint"> </div><div expr37="expr37" class="item-count"> </div></h2></div>',bindings:[{type:r.TAG,getComponent:a,evaluate:e=>"material-button",slots:[{id:"default",html:'<i class="material-icons">arrow_back</i>',bindings:[]}],attributes:[{type:t.ATTRIBUTE,name:"href",evaluate:e=>e.router.home()}],redundantAttribute:"expr34",selector:"[expr34]"},{redundantAttribute:"expr35",selector:"[expr35]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>["Tags of ",e.props.image].join("")}]},{redundantAttribute:"expr36",selector:"[expr36]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>["Sourced from ",e.state.registryName+"/"+e.props.image].join("")}]},{redundantAttribute:"expr37",selector:"[expr37]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>[e.state.tags.length," tags"].join("")}]}]}],attributes:[],redundantAttribute:"expr33",selector:"[expr33]"},{type:r.IF,evaluate:e=>!e.state.loadend,redundantAttribute:"expr38",selector:"[expr38]",template:e('<material-spinner expr39="expr39"></material-spinner>',[{type:r.TAG,getComponent:a,evaluate:e=>"material-spinner",slots:[],attributes:[],redundantAttribute:"expr39",selector:"[expr39]"}])},{type:r.TAG,getComponent:a,evaluate:e=>"pagination",slots:[],attributes:[{type:t.ATTRIBUTE,name:"pages",evaluate:e=>e.getPageLabels(e.state.page,e.getNumPages(e.state.tags))},{type:t.EVENT,name:"onPageUpdate",evaluate:e=>e.onPageUpdate}],redundantAttribute:"expr40",selector:"[expr40]"},{type:r.IF,evaluate:e=>e.state.loadend,redundantAttribute:"expr41",selector:"[expr41]",template:e(null,[{type:r.TAG,getComponent:a,evaluate:e=>"tag-table",slots:[],attributes:[{type:t.ATTRIBUTE,name:"tags",evaluate:e=>e.state.tags},{type:t.ATTRIBUTE,name:"asc",evaluate:e=>e.state.asc},{type:t.ATTRIBUTE,name:"page",evaluate:e=>e.state.page},{type:t.ATTRIBUTE,name:"show-content-digest",evaluate:e=>e.props.showContentDigest},{type:t.ATTRIBUTE,name:"is-image-remove-activated",evaluate:e=>e.props.isImageRemoveActivated},{type:t.EVENT,name:"onReverseOrder",evaluate:e=>e.onReverseOrder},{type:t.ATTRIBUTE,name:"registry-url",evaluate:e=>e.props.registryUrl},{type:t.ATTRIBUTE,name:"pull-url",evaluate:e=>e.props.pullUrl},{type:t.EVENT,name:"on-notify",evaluate:e=>e.props.onNotify},{type:t.ATTRIBUTE,name:"filter-results",evaluate:e=>e.props.filterResults},{type:t.EVENT,name:"on-authentication",evaluate:e=>e.props.onAuthentication}]}])},{type:r.TAG,getComponent:a,evaluate:e=>"pagination",slots:[],attributes:[{type:t.ATTRIBUTE,name:"pages",evaluate:e=>e.getPageLabels(e.state.page,e.getNumPages(e.state.tags))},{type:t.EVENT,name:"onPageUpdate",evaluate:e=>e.onPageUpdate}],redundantAttribute:"expr42",selector:"[expr42]"}]),name:"tag-list"},Ka={css:'dockerfile material-popup .popup material-button,[is="dockerfile"] material-popup .popup material-button{ margin-right: 1em; } dockerfile material-popup .popup > .content,[is="dockerfile"] material-popup .popup > .content{ max-width: 75em; width: 80%; } dockerfile .material-popup-content,[is="dockerfile"] .material-popup-content{ background-color: var(--hover-background); } @media screen and (max-width: 800px) { dockerfile material-popup .popup > .content,[is="dockerfile"] material-popup .popup > .content{ width: 100%; } } dockerfile .instruction,[is="dockerfile"] .instruction{ font-family: \'Roboto Mono\', monospace !important; margin: 0.75em 0; } dockerfile .instruction .keyword,[is="dockerfile"] .instruction .keyword{ color: var(--accent-text); }',exports:null,template:(e,t,r,a)=>e('<material-popup expr92="expr92"></material-popup>',[{type:r.TAG,getComponent:a,evaluate:e=>"material-popup",slots:[{id:"default",html:'<div class="material-popup-title">Dockerfile</div><div class="material-popup-content"><template expr93="expr93"></template></div><div class="material-popup-action"><material-button expr97="expr97" class="dialog-button" waves-color="rgba(158,158,158,.4)" color="inherit" text-color="var(--primary-text)"></material-button></div>',bindings:[{type:r.EACH,getKey:null,condition:null,template:e('<template expr94="expr94"></template>',[{type:r.EACH,getKey:null,condition:null,template:e('<div class="instruction"><span expr95="expr95" class="keyword"> </span><span expr96="expr96"> </span></div>',[{redundantAttribute:"expr95",selector:"[expr95]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>e.element.value}]},{redundantAttribute:"expr96",selector:"[expr96]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>" "+e.element.content}]}]),redundantAttribute:"expr94",selector:"[expr94]",itemName:"element",indexName:null,evaluate:e=>e.props.elements[e.props.elements.length-1-e.idx].filter((e=>"created_by"===e.key))}]),redundantAttribute:"expr93",selector:"[expr93]",itemName:"_",indexName:"idx",evaluate:e=>e.props.elements},{type:r.TAG,getComponent:a,evaluate:e=>"material-button",slots:[{id:"default",html:"\n Close\n ",bindings:[]}],attributes:[{type:t.EVENT,name:"onClick",evaluate:e=>e.props.onClose}],redundantAttribute:"expr97",selector:"[expr97]"}]}],attributes:[{type:t.ATTRIBUTE,name:"opened",evaluate:e=>e.props.opened},{type:t.EVENT,name:"onClick",evaluate:e=>e.props.onClose}],redundantAttribute:"expr92",selector:"[expr92]"}]),name:"dockerfile"};var Ya={css:'tag-history-element.Labels .value,[is="tag-history-element"].Labels .value, :host.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, :host.docker_version .headline #docker_verion { height: 24px; } 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,[is="tag-history-element"] .headline{ height: 24px; display: flex; flex-direction: row; align-items: center; font-weight: bold; } tag-history-element .headline *,[is="tag-history-element"] .headline *{ margin-right: 6px; } 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";case"comment":return"chat";default:return e.startsWith("custom-label-")?"label":""}}(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)},onMounted(e,t){const r=this.$("#docker_verion");r&&(r.innerHTML=(new DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 730 730" fill="var(--neutral-text)">\n <path d="M603.672 530.973c-7.543.12-13.562 6.331-13.443 13.875.119 7.544 6.332 13.562 13.875 13.443 7.495-.118 13.494-6.254 13.445-13.75-.085-7.578-6.297-13.652-13.875-13.568 0 0-.001 0 0 0m0 24.398c-5.975.272-11.04-4.352-11.311-10.326-.271-5.976 4.352-11.04 10.327-11.312 5.975-.27 11.039 4.352 11.31 10.327.01.19.014.382.012.573.204 5.723-4.27 10.527-9.992 10.731-.115.005-.23.007-.346.007"/>\n <path d="M606.81 544.972v-.185a3.476 3.476 0 002.8-3.076 3.815 3.815 0 00-1.322-3.077 8.675 8.675 0 00-4.707-.984 27.066 27.066 0 00-5.2.431v13.538h3.077v-5.446h1.477c1.754 0 2.554.646 2.83 2.154a11.667 11.667 0 001.047 3.292h3.415a10.381 10.381 0 01-1.016-3.385 3.938 3.938 0 00-2.462-3.292m-3.723-.985h-1.508v-3.908a7.457 7.457 0 011.754 0c1.97 0 2.893.831 2.893 2.062 0 1.231-1.415 2-3.076 2m112.135-241.924c-1.938-1.539-20.03-15.199-58.181-15.199a185.562 185.562 0 00-30.061 2.584c-7.384-50.612-49.228-75.288-51.104-76.395l-10.245-5.908-6.738 9.723a137.318 137.318 0 00-18.214 42.582c-6.831 28.891-2.677 56.027 11.999 79.226-17.722 9.876-46.151 12.307-51.904 12.522H30.096c-12.293.017-22.27 9.952-22.336 22.245a338.69 338.69 0 0020.614 120.946c16.214 42.521 40.336 73.842 71.719 93.01 35.167 21.537 92.302 33.844 157.067 33.844a468.88 468.88 0 0087.226-7.907 364.649 364.649 0 00113.839-41.352 312.969 312.969 0 0077.688-63.596c37.29-42.213 59.505-89.226 76.026-131.007h6.584c40.828 0 65.935-16.338 79.78-30.029a87.08 87.08 0 0021.045-31.167l2.923-8.553z"/>\n <path d="M73.725 337.54h63.073a5.507 5.507 0 005.507-5.508V275.85a5.507 5.507 0 00-5.476-5.538H73.725a5.507 5.507 0 00-5.507 5.507v56.212a5.507 5.507 0 005.507 5.508m86.918.001h63.073a5.507 5.507 0 005.507-5.508V275.85a5.507 5.507 0 00-5.477-5.538h-63.104a5.537 5.537 0 00-5.538 5.538v56.181a5.54 5.54 0 005.539 5.508m88.24.001h63.073a5.507 5.507 0 005.507-5.508V275.85a5.507 5.507 0 00-5.477-5.538h-63.104a5.507 5.507 0 00-5.507 5.507v56.212a5.51 5.51 0 005.508 5.508m87.195.001h63.073a5.537 5.537 0 005.538-5.508V275.85a5.537 5.537 0 00-5.538-5.538h-63.073a5.507 5.507 0 00-5.507 5.507v56.212a5.508 5.508 0 005.507 5.508m-175.435-80.826h63.073a5.539 5.539 0 005.507-5.538v-56.18a5.507 5.507 0 00-5.507-5.508h-63.073a5.538 5.538 0 00-5.538 5.507v56.181a5.568 5.568 0 005.538 5.538m88.24 0h63.073a5.539 5.539 0 005.507-5.538v-56.18a5.507 5.507 0 00-5.507-5.508h-63.073a5.507 5.507 0 00-5.507 5.507v56.181a5.539 5.539 0 005.507 5.538m87.195 0h63.073a5.568 5.568 0 005.538-5.538v-56.18a5.537 5.537 0 00-5.538-5.508h-63.073a5.507 5.507 0 00-5.507 5.507v56.181a5.539 5.539 0 005.507 5.538m0-80.856h63.073a5.538 5.538 0 005.538-5.507v-56.213a5.537 5.537 0 00-5.538-5.507h-63.073a5.506 5.506 0 00-5.507 5.507v56.212a5.508 5.508 0 005.507 5.508m87.964 161.683h63.073a5.537 5.537 0 005.538-5.508V275.85a5.537 5.537 0 00-5.538-5.538h-63.073a5.508 5.508 0 00-5.507 5.507v56.212a5.508 5.508 0 005.507 5.508"/>\n</svg>\n',"image/svg+xml").firstElementChild.outerHTML)},cleanName:e=>"id"===e?e:"os"===e?"OS":(e.startsWith("custom-label-")&&(e=e.replace("custom-label-","")),e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/[_-]/g," ").split(" ").map((e=>`${e.charAt(0).toUpperCase()}${e.slice(1)}`)).join(" "))},template:(e,t,r,a)=>e('<div class="headline"><i expr98="expr98" class="material-icons"></i><span expr99="expr99" id="docker_verion"></span><span expr100="expr100"> </span></div><div class="content"><div expr101="expr101" class="value"></div><div expr102="expr102" class="values value"></div></div>',[{expressions:[{type:t.ATTRIBUTE,name:"class",evaluate:e=>e.state.key}]},{type:r.IF,evaluate:e=>"docker_version"!==e.state.key,redundantAttribute:"expr98",selector:"[expr98]",template:e(" ",[{expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>e.state.icon}]}])},{type:r.IF,evaluate:e=>"docker_version"===e.state.key,redundantAttribute:"expr99",selector:"[expr99]",template:e(null,[])},{redundantAttribute:"expr100",selector:"[expr100]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>e.state.name}]},{type:r.IF,evaluate:e=>e.state.value,redundantAttribute:"expr101",selector:"[expr101]",template:e(" ",[{expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>e.state.value}]}])},{type:r.EACH,getKey:null,condition:e=>e.state.values,template:e(" ",[{expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>e.value}]}]),redundantAttribute:"expr102",selector:"[expr102]",itemName:"value",indexName:null,evaluate:e=>e.state.values}]),name:"tag-history-element"};const Qa=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}},Ja=function(e,t){return Qa(e.key)-Qa(t.key)},Za=e=>{if(e.startsWith("COPY"))return{value:"COPY",content:e.replace(/^COPY /,"")};let t=e.match(/\/bin\/sh *-c *#\(nop\) *([A-Z]+) (.*)/);return{value:t&&t[1]||"RUN",content:t&&t[2]||e.replace(/^\/bin\/sh *-c *(#\(nop\))?/,"")}},en=function(e,t){switch(e){case"created":return{key:e,value:new Date(t).toLocaleString()};case"created_by":return t.match(/\/bin\/sh *-c *#\(nop\) *([A-Z]+) (.*)/),{key:e,...Za(t)};case"size":return{key:e,value:Yr(t)};case"Entrypoint":case"Cmd":return{key:e,value:(t||[]).join(" ")};case"Labels":return{key:e,value:Object.keys(t||{}).map((function(e){return t[e]?e+"="+t[e]:""}))};case"Volumes":case"ExposedPorts":return{key:e,value:Object.keys(t)}}return{key:e,value:t||""}};var tn,rn={css:'tag-history h2,[is="tag-history"] h2{ flex-grow: 1; display: flex; flex-direction: row; align-items: center; }',exports:{components:{TagHistoryElement:Ya,Dockerfile:Ka},onBeforeMount(e,t){t.elements=[],t.image=new Da(e.image,e.tag,{list:!0,registryUrl:e.registryUrl,onNotify:e.onNotify,onAuthentication:e.onAuthentication,useControlCacheHeader:e.useControlCacheHeader}),t.image.fillInfo()},onMounted(e,t){t.image.on("blobs",this.processBlobs),t.image.on("list",this.multiArchList)},onTabChanged(e,t){const r=this.state,{registryUrl:a,onNotify:n,useControlCacheHeader:o}=this.props;if(r.elements=[],r.image.variants[t]=r.image.variants[t]||new Da(this.props.image,e.digest,{list:!1,registryUrl:a,onNotify:n,useControlCacheHeader:o}),r.image.variants[t].blobs)return this.processBlobs(r.image.variants[t].blobs);r.image.variants[t].fillInfo(),r.image.variants[t].on("blobs",this.processBlobs)},processBlobs(e){this.state;const{historyCustomLabels:t}=this.props;function r(e){const t=[];for(var r in e)if(e.hasOwnProperty(r)&&"empty_layer"!=r){const a=e[r],n=en(r,a);t.push(n)}return t.sort(Ja)}const a=new Array(e.history.length+1);a[0]=r(function(e,{historyCustomLabels:t}){const r=["architecture","User","created","docker_version","os","Cmd","Entrypoint","Env","Labels","User","Volumes","WorkingDir","author","id","ExposedPorts"].reduce((function(t,r){const a=e[r]||e.config[r];return a&&"architecture"===r&&e.variant?t[r]=a+e.variant:a&&(t[r]=a),t}),{});return!r.author&&r.Labels&&r.Labels.maintainer&&(r.author=e.config.Labels.maintainer,delete r.Labels.maintainer),r.Labels&&t.filter((e=>r.Labels[e])).forEach((e=>{r[`custom-label-${e}`]=r.Labels[e],delete r.Labels[e]})),r}(e,{historyCustomLabels:t})),e.history.forEach((function(t,n){a[e.history.length-n]=r(t)})),this.update({elements:a,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(){return da.taglist(this.props.image)},showDockerfile(){console.log(this),this.update({showDockerfile:!0})},onDockerfileClose(){this.update({showDockerfile:!1})}},template:(e,t,r,a)=>e('<material-card expr43="expr43"></material-card><div expr47="expr47" class="spinner-wrapper"></div><dockerfile expr49="expr49"></dockerfile><material-tabs expr50="expr50" color="var(--background)" text-color="var(--primary-text)" text-selected-color="var(--accent-text)" line-color="var(--background)" line-selected-color="var(--accent-text)"></material-tabs><material-card expr51="expr51"></material-card>',[{type:r.TAG,getComponent:a,evaluate:e=>"material-card",slots:[{id:"default",html:'<div class="material-card-title-action"><material-button expr44="expr44" text-color="var(--neutral-text)" color="inherit" waves-color="var(--hover-background)" waves-center="true" rounded="true" icon></material-button><h2 expr45="expr45"> <i class="material-icons">history</i></h2><material-button expr46="expr46" text-color="var(--accent-text)" color="inherit" waves-color="var(--hover-background)" waves-center="true" rounded="true" outlined></material-button></div>',bindings:[{type:r.TAG,getComponent:a,evaluate:e=>"material-button",slots:[{id:"default",html:'<i class="material-icons">arrow_back</i>',bindings:[]}],attributes:[{type:t.ATTRIBUTE,name:"href",evaluate:e=>e.toTaglist()}],redundantAttribute:"expr44",selector:"[expr44]"},{redundantAttribute:"expr45",selector:"[expr45]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>["History of ",e.props.image,":",e.props.tag].join("")}]},{type:r.TAG,getComponent:a,evaluate:e=>"material-button",slots:[{id:"default",html:"\n Dockerfile\n ",bindings:[]}],attributes:[{type:t.EVENT,name:"onClick",evaluate:e=>e.showDockerfile}],redundantAttribute:"expr46",selector:"[expr46]"}]}],attributes:[],redundantAttribute:"expr43",selector:"[expr43]"},{type:r.IF,evaluate:e=>!e.state.loadend,redundantAttribute:"expr47",selector:"[expr47]",template:e('<material-spinner expr48="expr48"></material-spinner>',[{type:r.TAG,getComponent:a,evaluate:e=>"material-spinner",slots:[],attributes:[],redundantAttribute:"expr48",selector:"[expr48]"}])},{type:r.TAG,getComponent:a,evaluate:e=>"dockerfile",slots:[],attributes:[{type:t.ATTRIBUTE,name:"opened",evaluate:e=>e.state.showDockerfile},{type:t.EVENT,name:"on-close",evaluate:e=>e.onDockerfileClose},{type:t.ATTRIBUTE,name:"elements",evaluate:e=>e.state.elements}],redundantAttribute:"expr49",selector:"[expr49]"},{type:r.IF,evaluate:e=>e.state.archs&&e.state.loadend,redundantAttribute:"expr50",selector:"[expr50]",template:e(null,[{type:r.TAG,getComponent:a,evaluate:e=>"material-tabs",slots:[],attributes:[{type:t.ATTRIBUTE,name:"useLine",evaluate:e=>!0},{type:t.ATTRIBUTE,name:"tabs",evaluate:e=>e.state.archs},{type:t.EVENT,name:"onTabChanged",evaluate:e=>e.onTabChanged}]}])},{type:r.EACH,getKey:null,condition:null,template:e(null,[{type:r.TAG,getComponent:a,evaluate:e=>"material-card",slots:[{id:"default",html:'<tag-history-element expr52="expr52"></tag-history-element>',bindings:[{type:r.EACH,getKey:null,condition:e=>e.entry.value&&e.entry.value.length>0,template:e(null,[{type:r.TAG,getComponent:a,evaluate:e=>"tag-history-element",slots:[],attributes:[{type:t.ATTRIBUTE,name:"entry",evaluate:e=>e.entry}]}]),redundantAttribute:"expr52",selector:"[expr52]",itemName:"entry",indexName:null,evaluate:e=>e.element}]}],attributes:[]}]),redundantAttribute:"expr51",selector:"[expr51]",itemName:"element",indexName:null,evaluate:e=>e.state.elements}]),name:"tag-history"},an={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=oa(e.value);da.home(),this.props.onServerChange(t),this.props.onClose(),setTimeout((()=>da.updateUrlQueryParam(t)),100)},registryUrlValidator:e=>/^https?:\/\//.test(e)&&!/\/v2\/?$/.test(e)},template:(e,t,r,a)=>e('<material-popup expr103="expr103"></material-popup>',[{type:r.TAG,getComponent:a,evaluate:e=>"material-popup",slots:[{id:"default",html:'<div class="material-popup-title">Add your Server ?</div><div class="material-popup-content"><material-input expr104="expr104" label="Server URL" text-color="var(--primary-text)" label-color="var(--neutral-text)" color="var(--accent-text)"></material-input><span>Write your URL without /v2</span></div><div class="material-popup-action"><material-button expr105="expr105" class="dialog-button" waves-color="var(--hover-background)" color="inherit" text-color="var(--primary-text)"></material-button><material-button expr106="expr106" class="dialog-button" waves-color="var(--hover-background)" color="inherit" text-color="var(--primary-text)"></material-button></div>',bindings:[{type:r.TAG,getComponent:a,evaluate:e=>"material-input",slots:[],attributes:[{type:t.EVENT,name:"onkeyup",evaluate:e=>e.onKeyUp},{type:t.ATTRIBUTE,name:"valid",evaluate:e=>e.registryUrlValidator}],redundantAttribute:"expr104",selector:"[expr104]"},{type:r.TAG,getComponent:a,evaluate:e=>"material-button",slots:[{id:"default",html:"\n Add\n ",bindings:[]}],attributes:[{type:t.EVENT,name:"onClick",evaluate:e=>e.add}],redundantAttribute:"expr105",selector:"[expr105]"},{type:r.TAG,getComponent:a,evaluate:e=>"material-button",slots:[{id:"default",html:"\n Cancel\n ",bindings:[]}],attributes:[{type:t.EVENT,name:"onClick",evaluate:e=>e.props.onClose}],redundantAttribute:"expr106",selector:"[expr106]"}]}],attributes:[{type:t.ATTRIBUTE,name:"opened",evaluate:e=>e.props.opened},{type:t.EVENT,name:"onClick",evaluate:e=>e.props.onClose}],redundantAttribute:"expr103",selector:"[expr103]"}]),name:"add-registry-url"},nn={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; font-size: 1em; line-height: 24px; height: 24px; border-bottom: 1px solid var(--accent-text); appearance: none; -moz-appearance: none; -webkit-appearance: none; margin: 1.5em 0; color: var(--primary-text); } change-registry-url select option,[is="change-registry-url"] select option{ background-color: var(--background); }',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 r=oa(t.value);da.home(),this.props.onServerChange(r),this.props.onClose(),setTimeout((()=>da.updateUrlQueryParam(r)),100)},getRegistryServers:aa},template:(e,t,r,a)=>e('<material-popup expr107="expr107"></material-popup>',[{type:r.TAG,getComponent:a,evaluate:e=>"material-popup",slots:[{id:"default",html:'<div class="material-popup-title">Change your Server ?</div><div class="material-popup-content"><select><option expr108="expr108"></option></select></div><div class="material-popup-action"><material-button expr109="expr109" class="dialog-button" waves-color="var(--hover-background)" color="inherit" text-color="var(--primary-text)"></material-button><material-button expr110="expr110" class="dialog-button" waves-color="var(--hover-background)" color="inherit" text-color="var(--primary-text)"></material-button></div>',bindings:[{type:r.EACH,getKey:null,condition:null,template:e(" ",[{expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>e.url},{type:t.ATTRIBUTE,name:"value",evaluate:e=>e.url}]}]),redundantAttribute:"expr108",selector:"[expr108]",itemName:"url",indexName:null,evaluate:e=>e.getRegistryServers()},{type:r.TAG,getComponent:a,evaluate:e=>"material-button",slots:[{id:"default",html:"\n Change\n ",bindings:[]}],attributes:[{type:t.EVENT,name:"onClick",evaluate:e=>e.change}],redundantAttribute:"expr109",selector:"[expr109]"},{type:r.TAG,getComponent:a,evaluate:e=>"material-button",slots:[{id:"default",html:"\n Cancel\n ",bindings:[]}],attributes:[{type:t.EVENT,name:"onClick",evaluate:e=>e.props.onClose}],redundantAttribute:"expr110",selector:"[expr110]"}]}],attributes:[{type:t.ATTRIBUTE,name:"opened",evaluate:e=>e.props.opened},{type:t.EVENT,name:"onClick",evaluate:e=>e.props.onClose}],redundantAttribute:"expr107",selector:"[expr107]"}]),name:"change-registry-url"},on={css:'remove-registry-url material-popup .popup material-button,[is="remove-registry-url"] material-popup .popup material-button{ margin-right: 1em; }',exports:{remove(e){return t=>{var r;r=e,na(aa().filter((function(e){return e!==r}))),setTimeout((()=>this.update()),100)}},getRegistryServers:aa},template:(e,t,r,a)=>e('<material-popup expr111="expr111"></material-popup>',[{type:r.TAG,getComponent:a,evaluate:e=>"material-popup",slots:[{id:"default",html:'<div class="material-popup-title">Remove your Registry Server ?</div><div class="material-popup-content"><ul class="list"><li expr112="expr112"></li></ul></div><div class="material-popup-action"><material-button expr115="expr115" class="dialog-button" waves-color="rgba(158,158,158,.4)" color="inherit" text-color="var(--primary-text)"></material-button></div>',bindings:[{type:r.EACH,getKey:null,condition:null,template:e('<span><material-button expr113="expr113" text-color="var(--neutral-text)" color="inherit" waves-color="var(--hover-background)" waves-center="true" icon></material-button><span expr114="expr114" class="url"> </span></span>',[{type:r.TAG,getComponent:a,evaluate:e=>"material-button",slots:[{id:"default",html:'<i class="material-icons">delete</i>',bindings:[]}],attributes:[{type:t.EVENT,name:"onClick",evaluate:e=>e.remove(e.url)},{type:t.ATTRIBUTE,name:"url",evaluate:e=>e.url}],redundantAttribute:"expr113",selector:"[expr113]"},{redundantAttribute:"expr114",selector:"[expr114]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>e.url}]}]),redundantAttribute:"expr112",selector:"[expr112]",itemName:"url",indexName:null,evaluate:e=>e.getRegistryServers()},{type:r.TAG,getComponent:a,evaluate:e=>"material-button",slots:[{id:"default",html:"\n Close\n ",bindings:[]}],attributes:[{type:t.EVENT,name:"onClick",evaluate:e=>e.props.onClose}],redundantAttribute:"expr115",selector:"[expr115]"}]}],attributes:[{type:t.ATTRIBUTE,name:"opened",evaluate:e=>e.props.opened},{type:t.EVENT,name:"onClick",evaluate:e=>e.props.onClose}],redundantAttribute:"expr111",selector:"[expr111]"}]),name:"remove-registry-url"},sn={css:'dialogs-menu > .material-dropdown-wrapper,[is="dialogs-menu"] > .material-dropdown-wrapper{ color: var(--primary-text); list-style-type: disc; margin-block-start: 0.7em; } dialogs-menu material-dropdown .material-dropdown-container,[is="dialogs-menu"] material-dropdown .material-dropdown-container,dialogs-menu material-dropdown .material-dropdown-container .material-dropdown-item,[is="dialogs-menu"] material-dropdown .material-dropdown-container .material-dropdown-item{ background-color: var(--background); color: var(--primary-text); } dialogs-menu material-dropdown .material-dropdown-container .material-dropdown-item:hover,[is="dialogs-menu"] material-dropdown .material-dropdown-container .material-dropdown-item:hover{ background-color: rgba(0, 0, 0, 0.12); } dialogs-menu .material-dropdown-wrapper material-dropdown .material-dropdown-container,[is="dialogs-menu"] .material-dropdown-wrapper material-dropdown .material-dropdown-container{ right: 0; top: 2em; } dialogs-menu .overlay,[is="dialogs-menu"] .overlay{ position: fixed; height: 100%; width: 100%; top: 0; right: 0; z-index: 10; } dialogs-menu material-button button,[is="dialogs-menu"] material-button button{ float: right; z-index: 2; } dialogs-menu material-button .content i.material-icons,[is="dialogs-menu"] material-button .content i.material-icons{ font-size: 24px; } 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:an,ChangeRegistryUrl:nn,RemoveRegistryUrl:on},dropdownItems:[{title:"Add URL",name:"add-registry-url",ro:!1},{title:"Change URL",name:"change-registry-url",ro:!0},{title:"Remove URL",name:"remove-registry-url",ro:!1}],onDropdownSelect(e){this.update({[e.target.item]:!0,isDropdownOpened:!1})},onClose(e){return()=>{this.update({[e]:!1,isDropdownOpened:!1})}},onClick(){this.update({isDropdownOpened:!this.state.isDropdownOpened})}},template:(e,t,r,a)=>e('<add-registry-url expr53="expr53"></add-registry-url><change-registry-url expr54="expr54"></change-registry-url><remove-registry-url expr55="expr55"></remove-registry-url><div class="material-dropdown-wrapper"><material-button expr56="expr56" waves-center="true" waves-opacity="0.6" waves-duration="600" color="var(--header-background)" text-color="var(--header-text)" icon></material-button><material-dropdown expr57="expr57"></material-dropdown></div><div expr58="expr58" class="overlay"></div>',[{type:r.IF,evaluate:e=>!e.props.readOnlyRegistries,redundantAttribute:"expr53",selector:"[expr53]",template:e(null,[{type:r.TAG,getComponent:a,evaluate:e=>"add-registry-url",slots:[],attributes:[{type:t.ATTRIBUTE,name:"opened",evaluate:e=>e.state["add-registry-url"]},{type:t.EVENT,name:"on-close",evaluate:e=>e.onClose("add-registry-url")},{type:t.EVENT,name:"on-notify",evaluate:e=>e.props.onNotify},{type:t.EVENT,name:"on-server-change",evaluate:e=>e.props.onServerChange}]}])},{type:r.TAG,getComponent:a,evaluate:e=>"change-registry-url",slots:[],attributes:[{type:t.ATTRIBUTE,name:"opened",evaluate:e=>e.state["change-registry-url"]},{type:t.EVENT,name:"on-close",evaluate:e=>e.onClose("change-registry-url")},{type:t.EVENT,name:"on-notify",evaluate:e=>e.props.onNotify},{type:t.EVENT,name:"on-server-change",evaluate:e=>e.props.onServerChange}],redundantAttribute:"expr54",selector:"[expr54]"},{type:r.IF,evaluate:e=>!e.props.readOnlyRegistries,redundantAttribute:"expr55",selector:"[expr55]",template:e(null,[{type:r.TAG,getComponent:a,evaluate:e=>"remove-registry-url",slots:[],attributes:[{type:t.ATTRIBUTE,name:"opened",evaluate:e=>e.state["remove-registry-url"]},{type:t.EVENT,name:"on-close",evaluate:e=>e.onClose("remove-registry-url")},{type:t.EVENT,name:"on-notify",evaluate:e=>e.props.onNotify},{type:t.EVENT,name:"on-server-change",evaluate:e=>e.props.onServerChange}]}])},{type:r.TAG,getComponent:a,evaluate:e=>"material-button",slots:[{id:"default",html:'<i class="material-icons">more_vert</i>',bindings:[]}],attributes:[{type:t.EVENT,name:"onClick",evaluate:e=>e.onClick}],redundantAttribute:"expr56",selector:"[expr56]"},{type:r.TAG,getComponent:a,evaluate:e=>"material-dropdown",slots:[],attributes:[{type:t.ATTRIBUTE,name:"items",evaluate:e=>e.dropdownItems.filter((t=>t.ro||!e.props.readOnlyRegistries))},{type:t.EVENT,name:"on-click",evaluate:e=>e.onDropdownSelect},{type:t.ATTRIBUTE,name:"opened",evaluate:e=>e.state.isDropdownOpened}],redundantAttribute:"expr57",selector:"[expr57]"},{type:r.IF,evaluate:e=>e.state.isDropdownOpened,redundantAttribute:"expr58",selector:"[expr58]",template:e(null,[{expressions:[{type:t.EVENT,name:"onclick",evaluate:e=>e.onClick}]}])}]),name:"dialogs-menu"},ln={css:'error-page,[is="error-page"]{ display: flex; flex-direction: row; margin-top: 20px; } error-page .content,[is="error-page"] .content{ margin: auto; text-align: center; } error-page .content a,[is="error-page"] .content a{ color: var(--accent-text); } error-page .content a:visited,[is="error-page"] .content a:visited{ color: var(--accent-text); } error-page .content p span,[is="error-page"] .content p span{ color: var(--accent-text); font-weight: 700; } error-page .content h2,[is="error-page"] .content h2{ font-weight: 700; }',exports:{getStatusCode(){const{props:e}=this;if("CATALOG_NOT_FOUND"===e.code)return"404"},URL:window.URL},template:(e,t,r,a)=>e('<div class="content"><h1 expr18="expr18"></h1><h2 expr19="expr19"> </h2><template expr20="expr20"></template><template expr22="expr22"></template><template expr25="expr25"></template></div>',[{type:r.IF,evaluate:e=>e.getStatusCode(),redundantAttribute:"expr18",selector:"[expr18]",template:e(" ",[{expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>e.getStatusCode()}]}])},{redundantAttribute:"expr19",selector:"[expr19]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>e.props.code}]},{type:r.IF,evaluate:e=>"CATALOG_NOT_FOUND"===e.props.code,redundantAttribute:"expr20",selector:"[expr20]",template:e('<p>We received a 404 status code from your registry.</p><p>The contact point was <a expr21="expr21"> </a></p><p>\n This may be caused by a misconfiguration of Docker Registry UI. Check the\n <a href="https://joxit.dev/docker-registry-ui/#faq">FAQ</a> and\n <a href="https://joxit.dev/docker-registry-ui/#available-options">Available options</a></p>',[{redundantAttribute:"expr21",selector:"[expr21]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>e.props.url},{type:t.ATTRIBUTE,name:"href",evaluate:e=>e.props.url}]}])},{type:r.IF,evaluate:e=>"MIXED_CONTENT"===e.props.code,redundantAttribute:"expr22",selector:"[expr22]",template:e('<p><span>Mixed Content</span>: The page at `<a expr23="expr23"> </a>`\n was loaded over HTTPS, but requested an insecure server endpoint `<a expr24="expr24"> </a>`.\n </p><p>This request <span>may</span> has been blocked; the content must be served over HTTPS.</p><p>\n You may unset the option `<span>REGISTRY_URL</span>` and set the registry server container URL in\n `<span>NGINX_PROXY_PASS_URL</span>`. It\'s usually the name of your container, and it should be on the shame\n network as the UI.\n </p><p>You can check the issue <a href="https://github.com/Joxit/docker-registry-ui/issues/277">#277</a>.</p>',[{redundantAttribute:"expr23",selector:"[expr23]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>window.location.origin},{type:t.ATTRIBUTE,name:"href",evaluate:e=>window.location.origin}]},{redundantAttribute:"expr24",selector:"[expr24]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>new e.URL(e.props.url).origin},{type:t.ATTRIBUTE,name:"href",evaluate:e=>new e.URL(e.props.url).origin}]}])},{type:r.IF,evaluate:e=>"INCORRECT_URL"===e.props.code,redundantAttribute:"expr25",selector:"[expr25]",template:e('<p expr26="expr26"> </p>',[{redundantAttribute:"expr26",selector:"[expr26]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>["`",e.props.url,"` does not seems to be a correct URL, should starts with http:// or https://."].join("")}]}])}]),name:"error-page"},un={"primary-text":"#25313b","neutral-text":"#777",background:"#fff","hover-background":"#eee","accent-text":"#6680a1","header-text":"#fff","header-background":"#25313b","footer-text":"#fff","footer-neutral-text":"#999","footer-background":"#555"},pn={"primary-text":"#8A9EBA","neutral-text":"#36527A",background:"#22272e","hover-background":"#30404D","accent-text":"#5684FF","header-text":"#fff","header-background":"#333A45","footer-text":"#fff","footer-neutral-text":"#999","footer-background":"#555"},cn="registryUiTheme",dn=function(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^theme-/,"")},mn=function(e,t){var r=function(e){var t=e.theme;if("auto"===t||""===t)switch(localStorage.getItem(cn)){case"dark":return!0;case"light":return!1;default:if("function"==typeof window.matchMedia){var r=window.matchMedia("(prefers-color-scheme: dark)");return r&&r.matches}}return"dark"===t}(e);tn=S({},r?pn:un),Object.entries(e).filter((function(e){var t=q(e,2),r=t[0];return t[1]&&/^theme[A-Z]/.test(r)})).map((function(e){var t=q(e,2),r=t[0],a=t[1];return[dn(r),a]})).forEach((function(e){var t=q(e,2),r=t[0],a=t[1];return tn[r]=a})),Object.entries(tn).forEach((function(e){var r=q(e,2),a=r[0],n=r[1];return t.setProperty("--".concat(a),n)}));var a=r?"dark":"light";return localStorage.setItem(cn,a),a},hn={css:'docker-registry-ui material-navbar,[is="docker-registry-ui"] material-navbar{ height: 64px; color: var(--header-text); background-color: var(--header-background); } docker-registry-ui material-navbar .menu,[is="docker-registry-ui"] material-navbar .menu{ display: flex; } docker-registry-ui material-navbar .nav-wrapper .menu,[is="docker-registry-ui"] material-navbar .nav-wrapper .menu{ flex-shrink: 1; } docker-registry-ui material-footer,[is="docker-registry-ui"] material-footer{ color: var(--footer-neutral-text); background-color: var(--footer-background); } docker-registry-ui material-footer .material-footer-logo,[is="docker-registry-ui"] material-footer .material-footer-logo{ color: var(--footer-text); } docker-registry-ui material-switch i,[is="docker-registry-ui"] material-switch i{ user-select: none; }',exports:{components:{Catalog:Na,TagList:Wa,TagHistory:rn,DialogsMenu:sn,SearchBar:Ia,Router:Wr,Route:gr,ErrorPage:ln},onUpdated(e,t){t.snackbarIsError=!1,t.snackbarMessage=void 0},onBeforeMount(e){(e.defaultRegistries&&e.defaultRegistries.length>0&&0===aa().length||sa(e.readOnlyRegistries))&&na(e.defaultRegistries),window.onselectstart=e=>{if(e.target&&e.target.className)return!["checkbox","checkmark","remove-tag"].find((t=>e.target.className.indexOf(t)>=0))};const t=e.registryUrl||("true"===e.singleRegistry?void 0:da.getUrlQueryParam()||aa(0))||window.location.origin+window.location.pathname.replace(/\/+$/,"");this.state.registryUrl=t.replace(/\/$/,"").replace(/index(\.html?)?$/,""),this.state.name=e.name||ea(e.registryUrl),this.state.catalogElementsLimit=e.catalogElementsLimit||1e5,this.state.pullUrl=this.pullUrl(this.state.registryUrl,e.pullUrl),this.state.useControlCacheHeader=e.useControlCacheHeader;const r=mn(e,this.root.parentNode.style);this.state.themeSwitch="dark"===r},onServerChange(e){this.update({registryUrl:e,name:ea(e),pullUrl:this.pullUrl(e),snackbarMessage:"Registry server changed to `"+e+"`."})},onAuthentication(e,t){if(e&&e.realm&&e.service&&e.scope){const{realm:r,service:a,scope:n}=e,o=new XMLHttpRequest;o.addEventListener("loadend",(()=>{try{const e=JSON.parse(o.responseText);t(e)}catch(e){this.notifySnackbar(`Failed to log in: ${e.message}`,!0)}})),o.open("GET",`${r}?service=${a}&scope=${n}`),o.send()}else t()},onAuthenticationClose(){this.update({authenticationDialogOpened:!1})},pullUrl:(e,t)=>ea(t||e&&e.length>0&&e||window.location.host),notifySnackbar(e,t){"string"==typeof e?this.update({snackbarMessage:e,snackbarIsError:t||!1}):e&&e.code?(this.update({pageError:e}),setTimeout((()=>delete this.state.pageError),1e3)):e&&e.message&&this.update({snackbarMessage:e.message,snackbarIsError:e.isError})},onSearch(e){this.update({filter:e})},onThemeChange(e){const t=e.target.checked?"dark":"light";mn({...this.props,theme:t},this.root.parentNode.style),this.update({themeSwitch:e.target.checked})},baseRoute:"([^#]*?)/(\\?[^#]*?)?(#!)?(/?)",router:da,version:"2.4.1",truthy:sa,stringToArray:function(e){return e&&"string"==typeof e?e.split(","):[]}},template:(e,t,r,a)=>e('<header><material-navbar expr0="expr0"></material-navbar></header><main><router expr3="expr3" base="#!"></router><registry-authentication expr10="expr10"></registry-authentication><error-page expr11="expr11"></error-page><material-snackbar expr12="expr12"></material-snackbar></main><footer><material-footer expr13="expr13" mini="true"></material-footer></footer>',[{type:r.TAG,getComponent:a,evaluate:e=>"material-navbar",slots:[{id:"default",html:'<span class="logo">Docker Registry UI</span><div class="menu"><search-bar expr1="expr1"></search-bar><dialogs-menu expr2="expr2"></dialogs-menu></div>',bindings:[{type:r.TAG,getComponent:a,evaluate:e=>"search-bar",slots:[],attributes:[{type:t.EVENT,name:"on-search",evaluate:e=>e.onSearch}],redundantAttribute:"expr1",selector:"[expr1]"},{type:r.IF,evaluate:e=>"true"!==e.props.singleRegistry,redundantAttribute:"expr2",selector:"[expr2]",template:e(null,[{type:r.TAG,getComponent:a,evaluate:e=>"dialogs-menu",slots:[],attributes:[{type:t.EVENT,name:"on-notify",evaluate:e=>e.notifySnackbar},{type:t.EVENT,name:"on-server-change",evaluate:e=>e.onServerChange},{type:t.ATTRIBUTE,name:"default-registries",evaluate:e=>e.props.defaultRegistries},{type:t.ATTRIBUTE,name:"read-only-registries",evaluate:e=>e.truthy(e.props.readOnlyRegistries)}]}])}]}],attributes:[],redundantAttribute:"expr0",selector:"[expr0]"},{type:r.TAG,getComponent:a,evaluate:e=>"router",slots:[{id:"default",html:'<route expr4="expr4"></route><route expr6="expr6"></route><route expr8="expr8"></route>',bindings:[{type:r.TAG,getComponent:a,evaluate:e=>"route",slots:[{id:"default",html:'<catalog expr5="expr5"></catalog>',bindings:[{type:r.TAG,getComponent:a,evaluate:e=>"catalog",slots:[],attributes:[{type:t.ATTRIBUTE,name:"registry-url",evaluate:e=>e.state.registryUrl},{type:t.ATTRIBUTE,name:"registry-name",evaluate:e=>e.state.name},{type:t.ATTRIBUTE,name:"catalog-elements-limit",evaluate:e=>e.state.catalogElementsLimit},{type:t.EVENT,name:"on-notify",evaluate:e=>e.notifySnackbar},{type:t.ATTRIBUTE,name:"filter-results",evaluate:e=>e.state.filter},{type:t.EVENT,name:"on-authentication",evaluate:e=>e.onAuthentication},{type:t.ATTRIBUTE,name:"show-catalog-nb-tags",evaluate:e=>e.truthy(e.props.showCatalogNbTags)}],redundantAttribute:"expr5",selector:"[expr5]"}]}],attributes:[{type:t.ATTRIBUTE,name:"path",evaluate:e=>e.baseRoute}],redundantAttribute:"expr4",selector:"[expr4]"},{type:r.TAG,getComponent:a,evaluate:e=>"route",slots:[{id:"default",html:'<tag-list expr7="expr7"></tag-list>',bindings:[{type:r.TAG,getComponent:a,evaluate:e=>"tag-list",slots:[],attributes:[{type:t.ATTRIBUTE,name:"registry-url",evaluate:e=>e.state.registryUrl},{type:t.ATTRIBUTE,name:"registry-name",evaluate:e=>e.state.name},{type:t.ATTRIBUTE,name:"pull-url",evaluate:e=>e.state.pullUrl},{type:t.ATTRIBUTE,name:"image",evaluate:e=>e.router.getTagListImage()},{type:t.ATTRIBUTE,name:"show-content-digest",evaluate:e=>e.truthy(e.props.showContentDigest)},{type:t.ATTRIBUTE,name:"is-image-remove-activated",evaluate:e=>e.truthy(e.props.isImageRemoveActivated)},{type:t.EVENT,name:"on-notify",evaluate:e=>e.notifySnackbar},{type:t.ATTRIBUTE,name:"filter-results",evaluate:e=>e.state.filter},{type:t.EVENT,name:"on-authentication",evaluate:e=>e.onAuthentication},{type:t.ATTRIBUTE,name:"use-control-cache-header",evaluate:e=>e.truthy(e.props.useControlCacheHeader)}],redundantAttribute:"expr7",selector:"[expr7]"}]}],attributes:[{type:t.ATTRIBUTE,name:"path",evaluate:e=>[e.baseRoute,"taglist/(.*)"].join("")}],redundantAttribute:"expr6",selector:"[expr6]"},{type:r.TAG,getComponent:a,evaluate:e=>"route",slots:[{id:"default",html:'<tag-history expr9="expr9"></tag-history>',bindings:[{type:r.TAG,getComponent:a,evaluate:e=>"tag-history",slots:[],attributes:[{type:t.ATTRIBUTE,name:"registry-url",evaluate:e=>e.state.registryUrl},{type:t.ATTRIBUTE,name:"registry-name",evaluate:e=>e.state.name},{type:t.ATTRIBUTE,name:"pull-url",evaluate:e=>e.state.pullUrl},{type:t.ATTRIBUTE,name:"image",evaluate:e=>e.router.getTagHistoryImage()},{type:t.ATTRIBUTE,name:"tag",evaluate:e=>e.router.getTagHistoryTag()},{type:t.ATTRIBUTE,name:"is-image-remove-activated",evaluate:e=>e.truthy(e.props.isImageRemoveActivated)},{type:t.EVENT,name:"on-notify",evaluate:e=>e.notifySnackbar},{type:t.EVENT,name:"on-authentication",evaluate:e=>e.onAuthentication},{type:t.ATTRIBUTE,name:"history-custom-labels",evaluate:e=>e.stringToArray(e.props.historyCustomLabels)},{type:t.ATTRIBUTE,name:"use-control-cache-header",evaluate:e=>e.truthy(e.props.useControlCacheHeader)}],redundantAttribute:"expr9",selector:"[expr9]"}]}],attributes:[{type:t.ATTRIBUTE,name:"path",evaluate:e=>[e.baseRoute,"taghistory/(.*)"].join("")}],redundantAttribute:"expr8",selector:"[expr8]"}]}],attributes:[],redundantAttribute:"expr3",selector:"[expr3]"},{type:r.TAG,getComponent:a,evaluate:e=>"registry-authentication",slots:[],attributes:[{type:t.ATTRIBUTE,name:"realm",evaluate:e=>e.state.realm},{type:t.ATTRIBUTE,name:"scope",evaluate:e=>e.state.scope},{type:t.ATTRIBUTE,name:"service",evaluate:e=>e.state.service},{type:t.EVENT,name:"on-close",evaluate:e=>e.onAuthenticationClose},{type:t.EVENT,name:"on-authenticated",evaluate:e=>e.state.onAuthenticated},{type:t.ATTRIBUTE,name:"opened",evaluate:e=>e.state.authenticationDialogOpened}],redundantAttribute:"expr10",selector:"[expr10]"},{type:r.IF,evaluate:e=>e.state.pageError,redundantAttribute:"expr11",selector:"[expr11]",template:e(null,[{type:r.TAG,getComponent:a,evaluate:e=>"error-page",slots:[],attributes:[{type:t.ATTRIBUTE,name:"code",evaluate:e=>e.state.pageError.code},{type:t.ATTRIBUTE,name:"status",evaluate:e=>e.state.pageError.status},{type:t.ATTRIBUTE,name:"message",evaluate:e=>e.state.pageError.message},{type:t.ATTRIBUTE,name:"url",evaluate:e=>e.state.pageError.url}]}])},{type:r.TAG,getComponent:a,evaluate:e=>"material-snackbar",slots:[],attributes:[{type:t.ATTRIBUTE,name:"message",evaluate:e=>e.state.snackbarMessage},{type:t.ATTRIBUTE,name:"is-error",evaluate:e=>e.state.snackbarIsError}],redundantAttribute:"expr12",selector:"[expr12]"},{type:r.TAG,getComponent:a,evaluate:e=>"material-footer",slots:[{id:"default",html:'<a expr14="expr14" class="material-footer-logo" href="https://joxit.github.io/docker-registry-ui/"> </a><ul><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">License AGPL-3.0</a></li><li expr15="expr15"></li></ul>',bindings:[{redundantAttribute:"expr14",selector:"[expr14]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>["Docker Registry UI ",e.version].join("")}]},{type:r.IF,evaluate:e=>"auto"===e.props.theme||""===e.props.theme,redundantAttribute:"expr15",selector:"[expr15]",template:e('<material-switch expr16="expr16" track-selected-color="var(--accent-text)" outline-selected-color="var(--accent-text)"></material-switch>',[{type:r.TAG,getComponent:a,evaluate:e=>"material-switch",slots:[{id:"thumb-icon",html:'<i slot="thumb-icon" class="material-icons" style="color: white; font-size: 0.75em">wb_sunny</i>',bindings:[]},{id:"thumb-selected-icon",html:'<i slot="thumb-selected-icon" class="material-icons" style="color: #79747e; font-size: 0.75em">\n brightness_2\n </i>',bindings:[]}],attributes:[{type:t.EVENT,name:"on-change",evaluate:e=>e.onThemeChange},{type:t.ATTRIBUTE,name:"checked",evaluate:e=>e.state.themeSwitch}],redundantAttribute:"expr16",selector:"[expr16]"}])}]}],attributes:[],redundantAttribute:"expr13",selector:"[expr13]"}]),name:"docker-registry-ui"};Tt("material-card",{css:null,exports:null,template:(e,t,r,a)=>e('<slot expr122="expr122"></slot>',[{type:r.SLOT,attributes:[],name:"default",redundantAttribute:"expr122",selector:"[expr122]"}]),name:"material-card"}),Tt("material-footer",{css:null,exports:{},template:(e,t,r,a)=>e('<div><slot expr133="expr133"></slot></div>',[{type:r.SLOT,attributes:[],name:"default",redundantAttribute:"expr133",selector:"[expr133]"}]),name:"material-footer"}),Tt("material-navbar",{css:null,exports:null,template:(e,t,r,a)=>e('<div class="nav-wrapper"><slot expr141="expr141"></slot></div>',[{expressions:[{type:t.ATTRIBUTE,name:"role",evaluate:e=>"toolbar"}]},{type:r.SLOT,attributes:[],name:"default",redundantAttribute:"expr141",selector:"[expr141]"}]),name:"material-navbar"}),Tt("material-spinner",{css:null,exports:null,template:(e,t,r,a)=>e('<svg class="loader-circular" height="50" width="50"><circle expr147="expr147" class="loader-path" cx="25" cy="25.2" r="19.9" fill="none" stroke-miterlimit="10"/></svg>',[{redundantAttribute:"expr147",selector:"[expr147]",expressions:[{type:t.ATTRIBUTE,name:"stroke-width",evaluate:e=>e.props.strokeWidth||3}]}]),name:"material-spinner"}),Tt("material-button",Nt),Tt("material-waves",wt),Tt("material-checkbox",Ut),Tt("material-snackbar",jt),Tt("material-tabs",_t),Tt("material-dropdown",Bt),Tt("material-popup",Lt),Tt("material-input",Dt),Tt("material-switch",Mt);for(var gn,vn=(gn=hn,function(e,t,r){var a=void 0===r?{}:r,n=a.slots,o=a.attributes,i=a.parentScope;return function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}
/* Riot v7.1.0, @license MIT */((function(t){return t.mount(e,i)}),(function(e){return e({props:t,slots:n,attributes:o})}),bt)(gn)}),fn=document.getElementsByTagName("docker-registry-ui"),yn=0;yn<fn.length;yn++)vn(fn.item(yn))}();