cas-ds-web-components 1.2.39 → 1.2.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(y,c2){typeof exports=="object"&&typeof module<"u"?c2(exports):typeof define=="function"&&define.amd?define(["exports"],c2):(y=typeof globalThis<"u"?globalThis:y||self,c2(y["all-components"]={}))})(this,function(y){"use strict";(()=>{const e=document.createElement("link");e.setAttribute("href","https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Short+Stack&display=swap"),e.setAttribute("rel","stylesheet"),document.head.appendChild(e)})();var U7={name:"@eloisa-ds/all-components",version:"1.0.43",main:"./all-components.umd.js",module:"./all-components.es.js",exports:{".":{import:"./all-components.es.js",require:"./all-components.umd.js"}}};/**
1
+ (function(y,c2){typeof exports=="object"&&typeof module<"u"?c2(exports):typeof define=="function"&&define.amd?define(["exports"],c2):(y=typeof globalThis<"u"?globalThis:y||self,c2(y["all-components"]={}))})(this,function(y){"use strict";(()=>{const e=document.createElement("link");e.setAttribute("href","https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Short+Stack&display=swap"),e.setAttribute("rel","stylesheet"),document.head.appendChild(e)})();var U7={name:"@eloisa-ds/all-components",version:"1.0.44",main:"./all-components.umd.js",module:"./all-components.es.js",exports:{".":{import:"./all-components.es.js",require:"./all-components.umd.js"}}};/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
@@ -14,7 +14,7 @@
14
14
  \f\r](?:([^\\s"'>=/]+)([
15
15
  \f\r]*=[
16
16
  \f\r]*(?:[^
17
- \f\r"'\`<>=]|("|')|))|$)`,"g"),a6=/'/g,l6=/"/g,n6=/^(?:script|style|textarea|title)$/i,h6=e=>(t,...C)=>({_$litType$:e,strings:t,values:C}),o=h6(1),r6=h6(2),i1=Symbol.for("lit-noChange"),k=Symbol.for("lit-nothing"),d6=new WeakMap,Z1=V1.createTreeWalker(V1,129,null,!1),K7=(e,t)=>{const C=e.length-1,i=[];let s,a=t===2?"<svg>":"",l=D1;for(let h=0;h<C;h++){const r=e[h];let d,c,v=-1,M=0;for(;M<r.length&&(l.lastIndex=M,c=l.exec(r),c!==null);)M=l.lastIndex,l===D1?c[1]==="!--"?l=o6:c[1]!==void 0?l=s6:c[2]!==void 0?(n6.test(c[2])&&(s=RegExp("</"+c[2],"g")),l=c1):c[3]!==void 0&&(l=c1):l===c1?c[0]===">"?(l=s??D1,v=-1):c[1]===void 0?v=-2:(v=l.lastIndex-c[2].length,d=c[1],l=c[3]===void 0?c1:c[3]==='"'?l6:a6):l===l6||l===a6?l=c1:l===o6||l===s6?l=D1:(l=c1,s=void 0);const g=l===c1&&e[h+1].startsWith("/>")?" ":"";a+=l===D1?r+Y7:v>=0?(i.push(d),r.slice(0,v)+"$lit$"+r.slice(v)+e1+g):r+e1+(v===-2?(i.push(void 0),h):g)}const n=a+(e[C]||"<?>")+(t===2?"</svg>":"");if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return[t6!==void 0?t6.createHTML(n):n,i]};class N1{constructor({strings:t,_$litType$:C},i){let s;this.parts=[];let a=0,l=0;const n=t.length-1,h=this.parts,[r,d]=K7(t,C);if(this.el=N1.createElement(r,i),Z1.currentNode=this.el.content,C===2){const c=this.el.content,v=c.firstChild;v.remove(),c.append(...v.childNodes)}for(;(s=Z1.nextNode())!==null&&h.length<n;){if(s.nodeType===1){if(s.hasAttributes()){const c=[];for(const v of s.getAttributeNames())if(v.endsWith("$lit$")||v.startsWith(e1)){const M=d[l++];if(c.push(v),M!==void 0){const g=s.getAttribute(M.toLowerCase()+"$lit$").split(e1),Z=/([.?@])?(.*)/.exec(M);h.push({type:1,index:a,name:Z[2],strings:g,ctor:Z[1]==="."?X7:Z[1]==="?"?C9:Z[1]==="@"?t9:g2})}else h.push({type:6,index:a})}for(const v of c)s.removeAttribute(v)}if(n6.test(s.tagName)){const c=s.textContent.split(e1),v=c.length-1;if(v>0){s.textContent=H1?H1.emptyScript:"";for(let M=0;M<v;M++)s.append(c[M],O1()),Z1.nextNode(),h.push({type:2,index:++a});s.append(c[v],O1())}}}else if(s.nodeType===8)if(s.data===e6)h.push({type:2,index:a});else{let c=-1;for(;(c=s.data.indexOf(e1,c+1))!==-1;)h.push({type:7,index:a}),c+=e1.length-1}a++}}static createElement(t,C){const i=V1.createElement("template");return i.innerHTML=t,i}}function x1(e,t,C=e,i){var s,a,l,n;if(t===i1)return t;let h=i!==void 0?(s=C._$Co)===null||s===void 0?void 0:s[i]:C._$Cl;const r=F1(t)?void 0:t._$litDirective$;return h?.constructor!==r&&((a=h?._$AO)===null||a===void 0||a.call(h,!1),r===void 0?h=void 0:(h=new r(e),h._$AT(e,C,i)),i!==void 0?((l=(n=C)._$Co)!==null&&l!==void 0?l:n._$Co=[])[i]=h:C._$Cl=h),h!==void 0&&(t=x1(e,h._$AS(e,t.values),h,i)),t}class J7{constructor(t,C){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=C}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var C;const{el:{content:i},parts:s}=this._$AD,a=((C=t?.creationScope)!==null&&C!==void 0?C:V1).importNode(i,!0);Z1.currentNode=a;let l=Z1.nextNode(),n=0,h=0,r=s[0];for(;r!==void 0;){if(n===r.index){let d;r.type===2?d=new R1(l,l.nextSibling,this,t):r.type===1?d=new r.ctor(l,r.name,r.strings,this,t):r.type===6&&(d=new e9(l,this,t)),this.u.push(d),r=s[++h]}n!==r?.index&&(l=Z1.nextNode(),n++)}return a}p(t){let C=0;for(const i of this.u)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,C),C+=i.strings.length-2):i._$AI(t[C])),C++}}class R1{constructor(t,C,i,s){var a;this.type=2,this._$AH=k,this._$AN=void 0,this._$AA=t,this._$AB=C,this._$AM=i,this.options=s,this._$Cm=(a=s?.isConnected)===null||a===void 0||a}get _$AU(){var t,C;return(C=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&C!==void 0?C:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const C=this._$AM;return C!==void 0&&t.nodeType===11&&(t=C.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,C=this){t=x1(this,t,C),F1(t)?t===k||t==null||t===""?(this._$AH!==k&&this._$AR(),this._$AH=k):t!==this._$AH&&t!==i1&&this.g(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):G7(t)?this.k(t):this.g(t)}O(t,C=this._$AB){return this._$AA.parentNode.insertBefore(t,C)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==k&&F1(this._$AH)?this._$AA.nextSibling.data=t:this.T(V1.createTextNode(t)),this._$AH=t}$(t){var C;const{values:i,_$litType$:s}=t,a=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=N1.createElement(s.h,this.options)),s);if(((C=this._$AH)===null||C===void 0?void 0:C._$AD)===a)this._$AH.p(i);else{const l=new J7(a,this),n=l.v(this.options);l.p(i),this.T(n),this._$AH=l}}_$AC(t){let C=d6.get(t.strings);return C===void 0&&d6.set(t.strings,C=new N1(t)),C}k(t){i6(this._$AH)||(this._$AH=[],this._$AR());const C=this._$AH;let i,s=0;for(const a of t)s===C.length?C.push(i=new R1(this.O(O1()),this.O(O1()),this,this.options)):i=C[s],i._$AI(a),s++;s<C.length&&(this._$AR(i&&i._$AB.nextSibling,s),C.length=s)}_$AR(t=this._$AA.nextSibling,C){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,C);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var C;this._$AM===void 0&&(this._$Cm=t,(C=this._$AP)===null||C===void 0||C.call(this,t))}}class g2{constructor(t,C,i,s,a){this.type=1,this._$AH=k,this._$AN=void 0,this.element=t,this.name=C,this._$AM=s,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=k}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,C=this,i,s){const a=this.strings;let l=!1;if(a===void 0)t=x1(this,t,C,0),l=!F1(t)||t!==this._$AH&&t!==i1,l&&(this._$AH=t);else{const n=t;let h,r;for(t=a[0],h=0;h<a.length-1;h++)r=x1(this,n[i+h],C,h),r===i1&&(r=this._$AH[h]),l||(l=!F1(r)||r!==this._$AH[h]),r===k?t=k:t!==k&&(t+=(r??"")+a[h+1]),this._$AH[h]=r}l&&!s&&this.j(t)}j(t){t===k?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class X7 extends g2{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===k?void 0:t}}const Q7=H1?H1.emptyScript:"";class C9 extends g2{constructor(){super(...arguments),this.type=4}j(t){t&&t!==k?this.element.setAttribute(this.name,Q7):this.element.removeAttribute(this.name)}}class t9 extends g2{constructor(t,C,i,s,a){super(t,C,i,s,a),this.type=5}_$AI(t,C=this){var i;if((t=(i=x1(this,t,C,0))!==null&&i!==void 0?i:k)===i1)return;const s=this._$AH,a=t===k&&s!==k||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,l=t!==k&&(s===k||a);a&&this.element.removeEventListener(this.name,this,s),l&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var C,i;typeof this._$AH=="function"?this._$AH.call((i=(C=this.options)===null||C===void 0?void 0:C.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}}class e9{constructor(t,C,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=C,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){x1(this,t)}}const c6=L2.litHtmlPolyfillSupport;c6?.(N1,R1),((i3=L2.litHtmlVersions)!==null&&i3!==void 0?i3:L2.litHtmlVersions=[]).push("2.4.0");const o3=(e,t,C)=>{var i,s;const a=(i=C?.renderBefore)!==null&&i!==void 0?i:t;let l=a._$litPart$;if(l===void 0){const n=(s=C?.renderBefore)!==null&&s!==void 0?s:null;a._$litPart$=l=new R1(t.insertBefore(O1(),n),n,void 0,C??{})}return l._$AI(e),l};/**
17
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),a6=/'/g,l6=/"/g,n6=/^(?:script|style|textarea|title)$/i,h6=e=>(t,...C)=>({_$litType$:e,strings:t,values:C}),o=h6(1),r6=h6(2),i1=Symbol.for("lit-noChange"),B=Symbol.for("lit-nothing"),d6=new WeakMap,Z1=V1.createTreeWalker(V1,129,null,!1),K7=(e,t)=>{const C=e.length-1,i=[];let s,a=t===2?"<svg>":"",l=D1;for(let h=0;h<C;h++){const r=e[h];let d,c,v=-1,M=0;for(;M<r.length&&(l.lastIndex=M,c=l.exec(r),c!==null);)M=l.lastIndex,l===D1?c[1]==="!--"?l=o6:c[1]!==void 0?l=s6:c[2]!==void 0?(n6.test(c[2])&&(s=RegExp("</"+c[2],"g")),l=c1):c[3]!==void 0&&(l=c1):l===c1?c[0]===">"?(l=s??D1,v=-1):c[1]===void 0?v=-2:(v=l.lastIndex-c[2].length,d=c[1],l=c[3]===void 0?c1:c[3]==='"'?l6:a6):l===l6||l===a6?l=c1:l===o6||l===s6?l=D1:(l=c1,s=void 0);const g=l===c1&&e[h+1].startsWith("/>")?" ":"";a+=l===D1?r+Y7:v>=0?(i.push(d),r.slice(0,v)+"$lit$"+r.slice(v)+e1+g):r+e1+(v===-2?(i.push(void 0),h):g)}const n=a+(e[C]||"<?>")+(t===2?"</svg>":"");if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return[t6!==void 0?t6.createHTML(n):n,i]};class N1{constructor({strings:t,_$litType$:C},i){let s;this.parts=[];let a=0,l=0;const n=t.length-1,h=this.parts,[r,d]=K7(t,C);if(this.el=N1.createElement(r,i),Z1.currentNode=this.el.content,C===2){const c=this.el.content,v=c.firstChild;v.remove(),c.append(...v.childNodes)}for(;(s=Z1.nextNode())!==null&&h.length<n;){if(s.nodeType===1){if(s.hasAttributes()){const c=[];for(const v of s.getAttributeNames())if(v.endsWith("$lit$")||v.startsWith(e1)){const M=d[l++];if(c.push(v),M!==void 0){const g=s.getAttribute(M.toLowerCase()+"$lit$").split(e1),Z=/([.?@])?(.*)/.exec(M);h.push({type:1,index:a,name:Z[2],strings:g,ctor:Z[1]==="."?X7:Z[1]==="?"?C9:Z[1]==="@"?t9:g2})}else h.push({type:6,index:a})}for(const v of c)s.removeAttribute(v)}if(n6.test(s.tagName)){const c=s.textContent.split(e1),v=c.length-1;if(v>0){s.textContent=H1?H1.emptyScript:"";for(let M=0;M<v;M++)s.append(c[M],O1()),Z1.nextNode(),h.push({type:2,index:++a});s.append(c[v],O1())}}}else if(s.nodeType===8)if(s.data===e6)h.push({type:2,index:a});else{let c=-1;for(;(c=s.data.indexOf(e1,c+1))!==-1;)h.push({type:7,index:a}),c+=e1.length-1}a++}}static createElement(t,C){const i=V1.createElement("template");return i.innerHTML=t,i}}function x1(e,t,C=e,i){var s,a,l,n;if(t===i1)return t;let h=i!==void 0?(s=C._$Co)===null||s===void 0?void 0:s[i]:C._$Cl;const r=F1(t)?void 0:t._$litDirective$;return h?.constructor!==r&&((a=h?._$AO)===null||a===void 0||a.call(h,!1),r===void 0?h=void 0:(h=new r(e),h._$AT(e,C,i)),i!==void 0?((l=(n=C)._$Co)!==null&&l!==void 0?l:n._$Co=[])[i]=h:C._$Cl=h),h!==void 0&&(t=x1(e,h._$AS(e,t.values),h,i)),t}class J7{constructor(t,C){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=C}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var C;const{el:{content:i},parts:s}=this._$AD,a=((C=t?.creationScope)!==null&&C!==void 0?C:V1).importNode(i,!0);Z1.currentNode=a;let l=Z1.nextNode(),n=0,h=0,r=s[0];for(;r!==void 0;){if(n===r.index){let d;r.type===2?d=new R1(l,l.nextSibling,this,t):r.type===1?d=new r.ctor(l,r.name,r.strings,this,t):r.type===6&&(d=new e9(l,this,t)),this.u.push(d),r=s[++h]}n!==r?.index&&(l=Z1.nextNode(),n++)}return a}p(t){let C=0;for(const i of this.u)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,C),C+=i.strings.length-2):i._$AI(t[C])),C++}}class R1{constructor(t,C,i,s){var a;this.type=2,this._$AH=B,this._$AN=void 0,this._$AA=t,this._$AB=C,this._$AM=i,this.options=s,this._$Cm=(a=s?.isConnected)===null||a===void 0||a}get _$AU(){var t,C;return(C=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&C!==void 0?C:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const C=this._$AM;return C!==void 0&&t.nodeType===11&&(t=C.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,C=this){t=x1(this,t,C),F1(t)?t===B||t==null||t===""?(this._$AH!==B&&this._$AR(),this._$AH=B):t!==this._$AH&&t!==i1&&this.g(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):G7(t)?this.k(t):this.g(t)}O(t,C=this._$AB){return this._$AA.parentNode.insertBefore(t,C)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==B&&F1(this._$AH)?this._$AA.nextSibling.data=t:this.T(V1.createTextNode(t)),this._$AH=t}$(t){var C;const{values:i,_$litType$:s}=t,a=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=N1.createElement(s.h,this.options)),s);if(((C=this._$AH)===null||C===void 0?void 0:C._$AD)===a)this._$AH.p(i);else{const l=new J7(a,this),n=l.v(this.options);l.p(i),this.T(n),this._$AH=l}}_$AC(t){let C=d6.get(t.strings);return C===void 0&&d6.set(t.strings,C=new N1(t)),C}k(t){i6(this._$AH)||(this._$AH=[],this._$AR());const C=this._$AH;let i,s=0;for(const a of t)s===C.length?C.push(i=new R1(this.O(O1()),this.O(O1()),this,this.options)):i=C[s],i._$AI(a),s++;s<C.length&&(this._$AR(i&&i._$AB.nextSibling,s),C.length=s)}_$AR(t=this._$AA.nextSibling,C){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,C);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var C;this._$AM===void 0&&(this._$Cm=t,(C=this._$AP)===null||C===void 0||C.call(this,t))}}class g2{constructor(t,C,i,s,a){this.type=1,this._$AH=B,this._$AN=void 0,this.element=t,this.name=C,this._$AM=s,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=B}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,C=this,i,s){const a=this.strings;let l=!1;if(a===void 0)t=x1(this,t,C,0),l=!F1(t)||t!==this._$AH&&t!==i1,l&&(this._$AH=t);else{const n=t;let h,r;for(t=a[0],h=0;h<a.length-1;h++)r=x1(this,n[i+h],C,h),r===i1&&(r=this._$AH[h]),l||(l=!F1(r)||r!==this._$AH[h]),r===B?t=B:t!==B&&(t+=(r??"")+a[h+1]),this._$AH[h]=r}l&&!s&&this.j(t)}j(t){t===B?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class X7 extends g2{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===B?void 0:t}}const Q7=H1?H1.emptyScript:"";class C9 extends g2{constructor(){super(...arguments),this.type=4}j(t){t&&t!==B?this.element.setAttribute(this.name,Q7):this.element.removeAttribute(this.name)}}class t9 extends g2{constructor(t,C,i,s,a){super(t,C,i,s,a),this.type=5}_$AI(t,C=this){var i;if((t=(i=x1(this,t,C,0))!==null&&i!==void 0?i:B)===i1)return;const s=this._$AH,a=t===B&&s!==B||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,l=t!==B&&(s===B||a);a&&this.element.removeEventListener(this.name,this,s),l&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var C,i;typeof this._$AH=="function"?this._$AH.call((i=(C=this.options)===null||C===void 0?void 0:C.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}}class e9{constructor(t,C,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=C,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){x1(this,t)}}const c6=L2.litHtmlPolyfillSupport;c6?.(N1,R1),((i3=L2.litHtmlVersions)!==null&&i3!==void 0?i3:L2.litHtmlVersions=[]).push("2.4.0");const o3=(e,t,C)=>{var i,s;const a=(i=C?.renderBefore)!==null&&i!==void 0?i:t;let l=a._$litPart$;if(l===void 0){const n=(s=C?.renderBefore)!==null&&s!==void 0?s:null;a._$litPart$=l=new R1(t.insertBefore(O1(),n),n,void 0,C??{})}return l._$AI(e),l};/**
18
18
  * @license
19
19
  * Copyright 2017 Google LLC
20
20
  * SPDX-License-Identifier: BSD-3-Clause
@@ -6105,7 +6105,7 @@
6105
6105
  * @license
6106
6106
  * Copyright 2017 Google LLC
6107
6107
  * SPDX-License-Identifier: BSD-3-Clause
6108
- */class H2 extends f3{constructor(t){if(super(t),this.it=k,t.type!==w2.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===k||t==null)return this._t=void 0,this.it=t;if(t===i1)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const C=[t];return C.raw=C,this._t={_$litType$:this.constructor.resultType,strings:C,values:[]}}}H2.directiveName="unsafeHTML",H2.resultType=1;const w3=m2(H2),ms={h1:"h1",display1:"h1",h2:"h2",display2:"h2",h3:"h3",display3:"h3",h4:"h4",headline1:"h4",h5:"h5",headline2:"h5",h6:"h6",headline3:"h6",headline4:"h6",headline5:"h6",p:"p",body1:"p",body2:"p",footnote1:"p",footnote2:"p",caption1:"p",caption2:"p",button:"span",link:"span",span:"span"};var e8={exports:{}};/*!
6108
+ */class H2 extends f3{constructor(t){if(super(t),this.it=B,t.type!==w2.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===B||t==null)return this._t=void 0,this.it=t;if(t===i1)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const C=[t];return C.raw=C,this._t={_$litType$:this.constructor.resultType,strings:C,values:[]}}}H2.directiveName="unsafeHTML",H2.resultType=1;const w3=m2(H2),ms={h1:"h1",display1:"h1",h2:"h2",display2:"h2",h3:"h3",display3:"h3",h4:"h4",headline1:"h4",h5:"h5",headline2:"h5",h6:"h6",headline3:"h6",headline4:"h6",headline5:"h6",p:"p",body1:"p",body2:"p",footnote1:"p",footnote2:"p",caption1:"p",caption2:"p",button:"span",link:"span",span:"span"};var e8={exports:{}};/*!
6109
6109
  Copyright (c) 2018 Jed Watson.
6110
6110
  Licensed under the MIT License (MIT), see
6111
6111
  http://jedwatson.github.io/classnames
@@ -7354,7 +7354,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7354
7354
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
7355
7355
  * Google as part of the polymer project is also subject to an additional IP
7356
7356
  * rights grant found at http://polymer.github.io/PATENTS.txt
7357
- */let Q1=0;const C2=[],_={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},y8="__computeInfo",ka=/[A-Z]/;function k3(e,t,C){let i=e[t];if(!i)i=e[t]={};else if(!e.hasOwnProperty(t)&&(i=e[t]=Object.create(e[t]),C))for(let s in i){let a=i[s],l=i[s]=Array(a.length);for(let n=0;n<a.length;n++)l[n]=a[n]}return i}function t2(e,t,C,i,s,a){if(t){let l=!1;const n=Q1++;for(let h in C){let r=s?g1(h):h,d=t[r];if(d)for(let c=0,v=d.length,M;c<v&&(M=d[c]);c++)(!M.info||M.info.lastRun!==n)&&(!s||B3(h,M.trigger))&&(M.info&&(M.info.lastRun=n),M.fn(e,h,C,i,M.info,s,a),l=!0)}return l}return!1}function Ba(e,t,C,i,s,a,l,n){let h=!1,r=l?g1(i):i,d=t[r];if(d)for(let c=0,v=d.length,M;c<v&&(M=d[c]);c++)(!M.info||M.info.lastRun!==C)&&(!l||B3(i,M.trigger))&&(M.info&&(M.info.lastRun=C),M.fn(e,i,s,a,M.info,l,n),h=!0);return h}function B3(e,t){if(t){let C=t.name;return C==e||!!(t.structured&&ra(C,e))||!!(t.wildcard&&x2(C,e))}else return!0}function z8(e,t,C,i,s){let a=typeof s.method=="string"?e[s.method]:s.method,l=s.property;a?a.call(e,e.__data[l],i[l]):s.dynamicFn||console.warn("observer method `"+s.method+"` not defined")}function Aa(e,t,C,i,s){let a=e[_.NOTIFY],l,n=Q1++;for(let r in t)t[r]&&(a&&Ba(e,a,n,r,C,i,s)||s&&Ea(e,r,C))&&(l=!0);let h;l&&(h=e.__dataHost)&&h._invalidateProperties&&h._invalidateProperties()}function Ea(e,t,C){let i=g1(t);if(i!==t){let s=y2(i)+"-changed";return k8(e,s,C[t],t),!0}return!1}function k8(e,t,C,i){let s={value:C,queueProperty:!0};i&&(s.path=i),D(e).dispatchEvent(new CustomEvent(t,{detail:s}))}function Sa(e,t,C,i,s,a){let n=(a?g1(t):t)!=t?t:null,h=n?P(e,n):e.__data[t];n&&h===void 0&&(h=C[t]),k8(e,s.eventName,h,n)}function $a(e,t,C,i,s){let a,l=e.detail,n=l&&l.path;n?(i=b2(C,i,n),a=l&&l.value):a=e.currentTarget[C],a=s?!a:a,(!t[_.READ_ONLY]||!t[_.READ_ONLY][i])&&t._setPendingPropertyOrPath(i,a,!0,Boolean(n))&&(!l||!l.queueProperty)&&t._invalidateProperties()}function Ta(e,t,C,i,s){let a=e.__data[t];Z2&&(a=Z2(a,s.attrName,"attribute",e)),e._propertyToAttribute(t,s.attrName,a)}function Ia(e,t,C,i){let s=e[_.COMPUTE];if(s)if(Ca){Q1++;const a=Oa(e),l=[];for(let h in t)B8(h,s,l,a,i);let n;for(;n=l.shift();)A8(e,"",t,C,n)&&B8(n.methodInfo,s,l,a,i);Object.assign(C,e.__dataOld),Object.assign(t,e.__dataPending),e.__dataPending=null}else{let a=t;for(;t2(e,s,a,C,i);)Object.assign(C,e.__dataOld),Object.assign(t,e.__dataPending),a=e.__dataPending,e.__dataPending=null}}const Pa=(e,t,C)=>{let i=0,s=t.length-1,a=-1;for(;i<=s;){const l=i+s>>1,n=C.get(t[l].methodInfo)-C.get(e.methodInfo);if(n<0)i=l+1;else if(n>0)s=l-1;else{a=l;break}}a<0&&(a=s+1),t.splice(a,0,e)},B8=(e,t,C,i,s)=>{const a=s?g1(e):e,l=t[a];if(l)for(let n=0;n<l.length;n++){const h=l[n];h.info.lastRun!==Q1&&(!s||B3(e,h.trigger))&&(h.info.lastRun=Q1,Pa(h.info,C,i))}};function Oa(e){let t=e.constructor.__orderedComputedDeps;if(!t){t=new Map;const C=e[_.COMPUTE];let{counts:i,ready:s,total:a}=Fa(e),l;for(;l=s.shift();){t.set(l,t.size);const n=C[l];n&&n.forEach(h=>{const r=h.info.methodInfo;--a,--i[r]===0&&s.push(r)})}a!==0&&console.warn(`Computed graph for ${e.localName} incomplete; circular?`),e.constructor.__orderedComputedDeps=t}return t}function Fa(e){const t=e[y8],C={},i=e[_.COMPUTE],s=[];let a=0;for(let l in t){const n=t[l];a+=C[l]=n.args.filter(h=>!h.literal).length+(n.dynamicFn?1:0)}for(let l in i)t[l]||s.push(l);return{counts:C,ready:s,total:a}}function A8(e,t,C,i,s){let a=E3(e,t,C,i,s);if(a===C2)return!1;let l=s.methodInfo;return e.__dataHasAccessor&&e.__dataHasAccessor[l]?e._setPendingProperty(l,a,!0):(e[l]=a,!1)}function Da(e,t,C){let i=e.__dataLinkedPaths;if(i){let s;for(let a in i){let l=i[a];x2(a,t)?(s=b2(a,l,t),e._setPendingPropertyOrPath(s,C,!0,!0)):x2(l,t)&&(s=b2(l,a,t),e._setPendingPropertyOrPath(s,C,!0,!0))}}}function A3(e,t,C,i,s,a,l){C.bindings=C.bindings||[];let n={kind:i,target:s,parts:a,literal:l,isCompound:a.length!==1};if(C.bindings.push(n),qa(n)){let{event:r,negate:d}=n.parts[0];n.listenerEvent=r||y2(s)+"-changed",n.listenerNegate=d}let h=t.nodeInfoList.length;for(let r=0;r<n.parts.length;r++){let d=n.parts[r];d.compoundIndex=r,Na(e,t,n,d,h)}}function Na(e,t,C,i,s){if(!i.literal)if(C.kind==="attribute"&&C.target[0]==="-")console.warn("Cannot set attribute "+C.target+' because "-" is not a valid attribute starting character');else{let a=i.dependencies,l={index:s,binding:C,part:i,evaluator:e};for(let n=0;n<a.length;n++){let h=a[n];typeof h=="string"&&(h=P8(h),h.wildcard=!0),e._addTemplatePropertyEffect(t,h.rootProperty,{fn:Ra,info:l,trigger:h})}}}function Ra(e,t,C,i,s,a,l){let n=l[s.index],h=s.binding,r=s.part;if(a&&r.source&&t.length>r.source.length&&h.kind=="property"&&!h.isCompound&&n.__isPropertyEffectsClient&&n.__dataHasAccessor&&n.__dataHasAccessor[h.target]){let d=C[t];t=b2(r.source,h.target,t),n._setPendingPropertyOrPath(t,d,!1,!0)&&e._enqueueClient(n)}else{let d=s.evaluator._evaluateBinding(e,r,t,C,i,a);d!==C2&&ja(e,n,h,r,d)}}function ja(e,t,C,i,s){if(s=Ua(t,s,C,i),Z2&&(s=Z2(s,C.target,C.kind,t)),C.kind=="attribute")e._valueToNodeAttribute(t,s,C.target);else{let a=C.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[a]?(!t[_.READ_ONLY]||!t[_.READ_ONLY][a])&&t._setPendingProperty(a,s)&&e._enqueueClient(t):e._setUnmanagedPropertyToNode(t,a,s)}}function Ua(e,t,C,i){if(C.isCompound){let s=e.__dataCompoundStorage[C.target];s[i.compoundIndex]=t,t=s.join("")}return C.kind!=="attribute"&&(C.target==="textContent"||C.target==="value"&&(e.localName==="input"||e.localName==="textarea"))&&(t=t??""),t}function qa(e){return Boolean(e.target)&&e.kind!="attribute"&&e.kind!="text"&&!e.isCompound&&e.parts[0].mode==="{"}function Wa(e,t){let{nodeList:C,nodeInfoList:i}=t;if(i.length)for(let s=0;s<i.length;s++){let a=i[s],l=C[s],n=a.bindings;if(n)for(let h=0;h<n.length;h++){let r=n[h];Ya(l,r),Ga(l,e,r)}l.__dataHost=e}}function Ya(e,t){if(t.isCompound){let C=e.__dataCompoundStorage||(e.__dataCompoundStorage={}),i=t.parts,s=new Array(i.length);for(let l=0;l<i.length;l++)s[l]=i[l].literal;let a=t.target;C[a]=s,t.literal&&t.kind=="property"&&(a==="className"&&(e=D(e)),e[a]=t.literal)}}function Ga(e,t,C){if(C.listenerEvent){let i=C.parts[0];e.addEventListener(C.listenerEvent,function(s){$a(s,t,C.target,i.source,i.negate)})}}function E8(e,t,C,i,s,a){a=t.static||a&&(typeof a!="object"||a[t.methodName]);let l={methodName:t.methodName,args:t.args,methodInfo:s,dynamicFn:a};for(let n=0,h;n<t.args.length&&(h=t.args[n]);n++)h.literal||e._addPropertyEffect(h.rootProperty,C,{fn:i,info:l,trigger:h});return a&&e._addPropertyEffect(t.methodName,C,{fn:i,info:l}),l}function E3(e,t,C,i,s){let a=e._methodHost||e,l=a[s.methodName];if(l){let n=e._marshalArgs(s.args,t,C);return n===C2?C2:l.apply(a,n)}else s.dynamicFn||console.warn("method `"+s.methodName+"` not defined")}const Ka=[],S8="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Ja="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Xa="(?:'(?:[^'\\\\]|\\\\.)*')",Qa='(?:"(?:[^"\\\\]|\\\\.)*")',Cl="(?:"+Xa+"|"+Qa+")",$8="(?:("+S8+"|"+Ja+"|"+Cl+")\\s*)",tl="(?:"+$8+"(?:,\\s*"+$8+")*)",el="(?:\\(\\s*(?:"+tl+"?)\\)\\s*)",il="("+S8+"\\s*"+el+"?)",ol="(\\[\\[|{{)\\s*",sl="(?:]]|}})",al=ol+"(?:(!)\\s*)?"+il+sl,T8=new RegExp(al,"g");function I8(e){let t="";for(let C=0;C<e.length;C++)t+=e[C].literal||"";return t}function S3(e){let t=e.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let i={methodName:t[1],static:!0,args:Ka};if(t[2].trim()){let s=t[2].replace(/\\,/g,"&comma;").split(",");return ll(s,i)}else return i}return null}function ll(e,t){return t.args=e.map(function(C){let i=P8(C);return i.literal||(t.static=!1),i},this),t}function P8(e){let t=e.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),C={name:t,value:"",literal:!1},i=t[0];switch(i==="-"&&(i=t[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':C.value=t.slice(1,-1),C.literal=!0;break;case"#":C.value=Number(t),C.literal=!0;break}return C.literal||(C.rootProperty=g1(t),C.structured=_3(t),C.structured&&(C.wildcard=t.slice(-2)==".*",C.wildcard&&(C.name=t.slice(0,-2)))),C}function O8(e,t,C){let i=P(e,C);return i===void 0&&(i=t[C]),i}function F8(e,t,C,i){const s={indexSplices:i};x3&&!e._overrideLegacyUndefined&&(t.splices=s),e.notifyPath(C+".splices",s),e.notifyPath(C+".length",t.length),x3&&!e._overrideLegacyUndefined&&(s.indexSplices=[])}function e2(e,t,C,i,s,a){F8(e,t,C,[{index:i,addedCount:s,removed:a,object:t,type:"splice"}])}function nl(e){return e[0].toUpperCase()+e.substring(1)}const hl=b(e=>{const t=za(fa(e));class C extends t{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return _}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(i2.length){let s=i2[i2.length-1];s._enqueueClient(this),this.__dataHost=s}}_initializeProtoProperties(s){this.__data=Object.create(s),this.__dataPending=Object.create(s),this.__dataOld={}}_initializeInstanceProperties(s){let a=this[_.READ_ONLY];for(let l in s)(!a||!a[l])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[l]=this.__dataPending[l]=s[l])}_addPropertyEffect(s,a,l){this._createPropertyAccessor(s,a==_.READ_ONLY);let n=k3(this,a,!0)[s];n||(n=this[a][s]=[]),n.push(l)}_removePropertyEffect(s,a,l){let n=k3(this,a,!0)[s],h=n.indexOf(l);h>=0&&n.splice(h,1)}_hasPropertyEffect(s,a){let l=this[a];return Boolean(l&&l[s])}_hasReadOnlyEffect(s){return this._hasPropertyEffect(s,_.READ_ONLY)}_hasNotifyEffect(s){return this._hasPropertyEffect(s,_.NOTIFY)}_hasReflectEffect(s){return this._hasPropertyEffect(s,_.REFLECT)}_hasComputedEffect(s){return this._hasPropertyEffect(s,_.COMPUTE)}_setPendingPropertyOrPath(s,a,l,n){if(n||g1(Array.isArray(s)?s[0]:s)!==s){if(!n){let h=P(this,s);if(s=f8(this,s,a),!s||!super._shouldPropertyChange(s,a,h))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(s,a,l))return Da(this,s,a),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[s])return this._setPendingProperty(s,a,l);this[s]=a}return!1}_setUnmanagedPropertyToNode(s,a,l){(l!==s[a]||typeof l=="object")&&(a==="className"&&(s=D(s)),s[a]=l)}_setPendingProperty(s,a,l){let n=this.__dataHasPaths&&_3(s),h=n?this.__dataTemp:this.__data;return this._shouldPropertyChange(s,a,h[s])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),s in this.__dataOld||(this.__dataOld[s]=this.__data[s]),n?this.__dataTemp[s]=a:this.__data[s]=a,this.__dataPending[s]=a,(n||this[_.NOTIFY]&&this[_.NOTIFY][s])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[s]=l),!0):!1}_setProperty(s,a){this._setPendingProperty(s,a,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(s){this.__dataPendingClients=this.__dataPendingClients||[],s!==this&&this.__dataPendingClients.push(s)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let s=this.__dataPendingClients;if(s){this.__dataPendingClients=null;for(let a=0;a<s.length;a++){let l=s[a];l.__dataEnabled?l.__dataPending&&l._flushProperties():l._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(s,a){for(let l in s)(a||!this[_.READ_ONLY]||!this[_.READ_ONLY][l])&&this._setPendingPropertyOrPath(l,s[l],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(s,a,l){let n=this.__dataHasPaths;this.__dataHasPaths=!1;let h;Ia(this,a,l,n),h=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(a,l,n),this._flushClients(),t2(this,this[_.REFLECT],a,l,n),t2(this,this[_.OBSERVE],a,l,n),h&&Aa(this,h,a,l,n),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(s,a,l){this[_.PROPAGATE]&&t2(this,this[_.PROPAGATE],s,a,l),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,s,a,l)}_runEffectsForTemplate(s,a,l,n){const h=(r,d)=>{t2(this,s.propertyEffects,r,l,d,s.nodeList);for(let c=s.firstChild;c;c=c.nextSibling)this._runEffectsForTemplate(c,r,l,d)};s.runEffects?s.runEffects(h,a,n):h(a,n)}linkPaths(s,a){s=X1(s),a=X1(a),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[s]=a}unlinkPaths(s){s=X1(s),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[s]}notifySplices(s,a){let l={path:""},n=P(this,s,l);F8(this,n,l.path,a)}get(s,a){return P(a||this,s)}set(s,a,l){l?f8(l,s,a):(!this[_.READ_ONLY]||!this[_.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,a,!0)&&this._invalidateProperties()}push(s,...a){let l={path:""},n=P(this,s,l),h=n.length,r=n.push(...a);return a.length&&e2(this,n,l.path,h,a.length,[]),r}pop(s){let a={path:""},l=P(this,s,a),n=Boolean(l.length),h=l.pop();return n&&e2(this,l,a.path,l.length,0,[h]),h}splice(s,a,l,...n){let h={path:""},r=P(this,s,h);a<0?a=r.length-Math.floor(-a):a&&(a=Math.floor(a));let d;return arguments.length===2?d=r.splice(a):d=r.splice(a,l,...n),(n.length||d.length)&&e2(this,r,h.path,a,n.length,d),d}shift(s){let a={path:""},l=P(this,s,a),n=Boolean(l.length),h=l.shift();return n&&e2(this,l,a.path,0,0,[h]),h}unshift(s,...a){let l={path:""},n=P(this,s,l),h=n.unshift(...a);return a.length&&e2(this,n,l.path,0,a.length,[]),h}notifyPath(s,a){let l;if(arguments.length==1){let n={path:""};a=P(this,s,n),l=n.path}else Array.isArray(s)?l=X1(s):l=s;this._setPendingPropertyOrPath(l,a,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(s,a){this._addPropertyEffect(s,_.READ_ONLY),a&&(this["_set"+nl(s)]=function(l){this._setProperty(s,l)})}_createPropertyObserver(s,a,l){let n={property:s,method:a,dynamicFn:Boolean(l)};this._addPropertyEffect(s,_.OBSERVE,{fn:z8,info:n,trigger:{name:s}}),l&&this._addPropertyEffect(a,_.OBSERVE,{fn:z8,info:n,trigger:{name:a}})}_createMethodObserver(s,a){let l=S3(s);if(!l)throw new Error("Malformed observer expression '"+s+"'");E8(this,l,_.OBSERVE,E3,null,a)}_createNotifyingProperty(s){this._addPropertyEffect(s,_.NOTIFY,{fn:Sa,info:{eventName:y2(s)+"-changed",property:s}})}_createReflectedProperty(s){let a=this.constructor.attributeNameForProperty(s);a[0]==="-"?console.warn("Property "+s+" cannot be reflected to attribute "+a+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(s,_.REFLECT,{fn:Ta,info:{attrName:a}})}_createComputedProperty(s,a,l){let n=S3(a);if(!n)throw new Error("Malformed computed expression '"+a+"'");const h=E8(this,n,_.COMPUTE,A8,s,l);k3(this,y8)[s]=h}_marshalArgs(s,a,l){const n=this.__data,h=[];for(let r=0,d=s.length;r<d;r++){let{name:c,structured:v,wildcard:M,value:g,literal:Z}=s[r];if(!Z)if(M){const w=x2(c,a),B=O8(n,l,w?a:c);g={path:w?a:c,value:B,base:w?P(n,c):B}}else g=v?O8(n,l,c):n[c];if(x3&&!this._overrideLegacyUndefined&&g===void 0&&s.length>1)return C2;h[r]=g}return h}static addPropertyEffect(s,a,l){this.prototype._addPropertyEffect(s,a,l)}static createPropertyObserver(s,a,l){this.prototype._createPropertyObserver(s,a,l)}static createMethodObserver(s,a){this.prototype._createMethodObserver(s,a)}static createNotifyingProperty(s){this.prototype._createNotifyingProperty(s)}static createReadOnlyProperty(s,a){this.prototype._createReadOnlyProperty(s,a)}static createReflectedProperty(s){this.prototype._createReflectedProperty(s)}static createComputedProperty(s,a,l){this.prototype._createComputedProperty(s,a,l)}static bindTemplate(s){return this.prototype._bindTemplate(s)}_bindTemplate(s,a){let l=this.constructor._parseTemplate(s),n=this.__preBoundTemplateInfo==l;if(!n)for(let h in l.propertyEffects)this._createPropertyAccessor(h);if(a)if(l=Object.create(l),l.wasPreBound=n,!this.__templateInfo)this.__templateInfo=l;else{const h=s._parentTemplateInfo||this.__templateInfo,r=h.lastChild;l.parent=h,h.lastChild=l,l.previousSibling=r,r?r.nextSibling=l:h.firstChild=l}else this.__preBoundTemplateInfo=l;return l}static _addTemplatePropertyEffect(s,a,l){let n=s.hostProps=s.hostProps||{};n[a]=!0;let h=s.propertyEffects=s.propertyEffects||{};(h[a]=h[a]||[]).push(l)}_stampTemplate(s,a){a=a||this._bindTemplate(s,!0),i2.push(this);let l=super._stampTemplate(s,a);if(i2.pop(),a.nodeList=l.nodeList,!a.wasPreBound){let n=a.childNodes=[];for(let h=l.firstChild;h;h=h.nextSibling)n.push(h)}return l.templateInfo=a,Wa(this,a),this.__dataClientsReady&&(this._runEffectsForTemplate(a,this.__data,null,!1),this._flushClients()),l}_removeBoundDom(s){const a=s.templateInfo,{previousSibling:l,nextSibling:n,parent:h}=a;l?l.nextSibling=n:h&&(h.firstChild=n),n?n.previousSibling=l:h&&(h.lastChild=l),a.nextSibling=a.previousSibling=null;let r=a.childNodes;for(let d=0;d<r.length;d++){let c=r[d];D(D(c).parentNode).removeChild(c)}}static _parseTemplateNode(s,a,l){let n=t._parseTemplateNode.call(this,s,a,l);if(s.nodeType===Node.TEXT_NODE){let h=this._parseBindings(s.textContent,a);h&&(s.textContent=I8(h)||" ",A3(this,a,l,"text","textContent",h),n=!0)}return n}static _parseTemplateNodeAttribute(s,a,l,n,h){let r=this._parseBindings(h,a);if(r){let d=n,c="property";ka.test(n)?c="attribute":n[n.length-1]=="$"&&(n=n.slice(0,-1),c="attribute");let v=I8(r);return v&&c=="attribute"&&(n=="class"&&s.hasAttribute("class")&&(v+=" "+s.getAttribute(n)),s.setAttribute(n,v)),c=="attribute"&&d=="disable-upgrade$"&&s.setAttribute(n,""),s.localName==="input"&&d==="value"&&s.setAttribute(d,""),s.removeAttribute(d),c==="property"&&(n=y3(n)),A3(this,a,l,c,n,r,v),!0}else return t._parseTemplateNodeAttribute.call(this,s,a,l,n,h)}static _parseTemplateNestedTemplate(s,a,l){let n=t._parseTemplateNestedTemplate.call(this,s,a,l);const h=s.parentNode,r=l.templateInfo,d=h.localName==="dom-if",c=h.localName==="dom-repeat";h8&&(d||c)&&(h.removeChild(s),l=l.parentInfo,l.templateInfo=r,l.noted=!0,n=!1);let v=r.hostProps;if(ta&&d)v&&(a.hostProps=Object.assign(a.hostProps||{},v),h8||(l.parentInfo.noted=!0));else{let M="{";for(let g in v){let Z=[{mode:M,source:g,dependencies:[g],hostProp:!0}];A3(this,a,l,"property","_host_"+g,Z)}}return n}static _parseBindings(s,a){let l=[],n=0,h;for(;(h=T8.exec(s))!==null;){h.index>n&&l.push({literal:s.slice(n,h.index)});let r=h[1][0],d=Boolean(h[2]),c=h[3].trim(),v=!1,M="",g=-1;r=="{"&&(g=c.indexOf("::"))>0&&(M=c.substring(g+2),c=c.substring(0,g),v=!0);let Z=S3(c),w=[];if(Z){let{args:B,methodName:A}=Z;for(let z=0;z<B.length;z++){let $=B[z];$.literal||w.push($)}let x=a.dynamicFns;(x&&x[A]||Z.static)&&(w.push(A),Z.dynamicFn=!0)}else w.push(c);l.push({source:c,mode:r,negate:d,customEvent:v,signature:Z,dependencies:w,event:M}),n=T8.lastIndex}if(n&&n<s.length){let r=s.substring(n);r&&l.push({literal:r})}return l.length?l:null}static _evaluateBinding(s,a,l,n,h,r){let d;return a.signature?d=E3(s,l,n,h,a.signature):l!=a.source?d=P(s,a.source):r&&_3(l)?d=P(s,l):d=s.__data[l],a.negate&&(d=!d),d}}return C}),i2=[];/**
7357
+ */let Q1=0;const C2=[],_={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},y8="__computeInfo",ka=/[A-Z]/;function k3(e,t,C){let i=e[t];if(!i)i=e[t]={};else if(!e.hasOwnProperty(t)&&(i=e[t]=Object.create(e[t]),C))for(let s in i){let a=i[s],l=i[s]=Array(a.length);for(let n=0;n<a.length;n++)l[n]=a[n]}return i}function t2(e,t,C,i,s,a){if(t){let l=!1;const n=Q1++;for(let h in C){let r=s?g1(h):h,d=t[r];if(d)for(let c=0,v=d.length,M;c<v&&(M=d[c]);c++)(!M.info||M.info.lastRun!==n)&&(!s||B3(h,M.trigger))&&(M.info&&(M.info.lastRun=n),M.fn(e,h,C,i,M.info,s,a),l=!0)}return l}return!1}function Ba(e,t,C,i,s,a,l,n){let h=!1,r=l?g1(i):i,d=t[r];if(d)for(let c=0,v=d.length,M;c<v&&(M=d[c]);c++)(!M.info||M.info.lastRun!==C)&&(!l||B3(i,M.trigger))&&(M.info&&(M.info.lastRun=C),M.fn(e,i,s,a,M.info,l,n),h=!0);return h}function B3(e,t){if(t){let C=t.name;return C==e||!!(t.structured&&ra(C,e))||!!(t.wildcard&&x2(C,e))}else return!0}function z8(e,t,C,i,s){let a=typeof s.method=="string"?e[s.method]:s.method,l=s.property;a?a.call(e,e.__data[l],i[l]):s.dynamicFn||console.warn("observer method `"+s.method+"` not defined")}function Aa(e,t,C,i,s){let a=e[_.NOTIFY],l,n=Q1++;for(let r in t)t[r]&&(a&&Ba(e,a,n,r,C,i,s)||s&&Ea(e,r,C))&&(l=!0);let h;l&&(h=e.__dataHost)&&h._invalidateProperties&&h._invalidateProperties()}function Ea(e,t,C){let i=g1(t);if(i!==t){let s=y2(i)+"-changed";return k8(e,s,C[t],t),!0}return!1}function k8(e,t,C,i){let s={value:C,queueProperty:!0};i&&(s.path=i),D(e).dispatchEvent(new CustomEvent(t,{detail:s}))}function Sa(e,t,C,i,s,a){let n=(a?g1(t):t)!=t?t:null,h=n?P(e,n):e.__data[t];n&&h===void 0&&(h=C[t]),k8(e,s.eventName,h,n)}function $a(e,t,C,i,s){let a,l=e.detail,n=l&&l.path;n?(i=b2(C,i,n),a=l&&l.value):a=e.currentTarget[C],a=s?!a:a,(!t[_.READ_ONLY]||!t[_.READ_ONLY][i])&&t._setPendingPropertyOrPath(i,a,!0,Boolean(n))&&(!l||!l.queueProperty)&&t._invalidateProperties()}function Ta(e,t,C,i,s){let a=e.__data[t];Z2&&(a=Z2(a,s.attrName,"attribute",e)),e._propertyToAttribute(t,s.attrName,a)}function Ia(e,t,C,i){let s=e[_.COMPUTE];if(s)if(Ca){Q1++;const a=Oa(e),l=[];for(let h in t)B8(h,s,l,a,i);let n;for(;n=l.shift();)A8(e,"",t,C,n)&&B8(n.methodInfo,s,l,a,i);Object.assign(C,e.__dataOld),Object.assign(t,e.__dataPending),e.__dataPending=null}else{let a=t;for(;t2(e,s,a,C,i);)Object.assign(C,e.__dataOld),Object.assign(t,e.__dataPending),a=e.__dataPending,e.__dataPending=null}}const Pa=(e,t,C)=>{let i=0,s=t.length-1,a=-1;for(;i<=s;){const l=i+s>>1,n=C.get(t[l].methodInfo)-C.get(e.methodInfo);if(n<0)i=l+1;else if(n>0)s=l-1;else{a=l;break}}a<0&&(a=s+1),t.splice(a,0,e)},B8=(e,t,C,i,s)=>{const a=s?g1(e):e,l=t[a];if(l)for(let n=0;n<l.length;n++){const h=l[n];h.info.lastRun!==Q1&&(!s||B3(e,h.trigger))&&(h.info.lastRun=Q1,Pa(h.info,C,i))}};function Oa(e){let t=e.constructor.__orderedComputedDeps;if(!t){t=new Map;const C=e[_.COMPUTE];let{counts:i,ready:s,total:a}=Fa(e),l;for(;l=s.shift();){t.set(l,t.size);const n=C[l];n&&n.forEach(h=>{const r=h.info.methodInfo;--a,--i[r]===0&&s.push(r)})}a!==0&&console.warn(`Computed graph for ${e.localName} incomplete; circular?`),e.constructor.__orderedComputedDeps=t}return t}function Fa(e){const t=e[y8],C={},i=e[_.COMPUTE],s=[];let a=0;for(let l in t){const n=t[l];a+=C[l]=n.args.filter(h=>!h.literal).length+(n.dynamicFn?1:0)}for(let l in i)t[l]||s.push(l);return{counts:C,ready:s,total:a}}function A8(e,t,C,i,s){let a=E3(e,t,C,i,s);if(a===C2)return!1;let l=s.methodInfo;return e.__dataHasAccessor&&e.__dataHasAccessor[l]?e._setPendingProperty(l,a,!0):(e[l]=a,!1)}function Da(e,t,C){let i=e.__dataLinkedPaths;if(i){let s;for(let a in i){let l=i[a];x2(a,t)?(s=b2(a,l,t),e._setPendingPropertyOrPath(s,C,!0,!0)):x2(l,t)&&(s=b2(l,a,t),e._setPendingPropertyOrPath(s,C,!0,!0))}}}function A3(e,t,C,i,s,a,l){C.bindings=C.bindings||[];let n={kind:i,target:s,parts:a,literal:l,isCompound:a.length!==1};if(C.bindings.push(n),qa(n)){let{event:r,negate:d}=n.parts[0];n.listenerEvent=r||y2(s)+"-changed",n.listenerNegate=d}let h=t.nodeInfoList.length;for(let r=0;r<n.parts.length;r++){let d=n.parts[r];d.compoundIndex=r,Na(e,t,n,d,h)}}function Na(e,t,C,i,s){if(!i.literal)if(C.kind==="attribute"&&C.target[0]==="-")console.warn("Cannot set attribute "+C.target+' because "-" is not a valid attribute starting character');else{let a=i.dependencies,l={index:s,binding:C,part:i,evaluator:e};for(let n=0;n<a.length;n++){let h=a[n];typeof h=="string"&&(h=P8(h),h.wildcard=!0),e._addTemplatePropertyEffect(t,h.rootProperty,{fn:Ra,info:l,trigger:h})}}}function Ra(e,t,C,i,s,a,l){let n=l[s.index],h=s.binding,r=s.part;if(a&&r.source&&t.length>r.source.length&&h.kind=="property"&&!h.isCompound&&n.__isPropertyEffectsClient&&n.__dataHasAccessor&&n.__dataHasAccessor[h.target]){let d=C[t];t=b2(r.source,h.target,t),n._setPendingPropertyOrPath(t,d,!1,!0)&&e._enqueueClient(n)}else{let d=s.evaluator._evaluateBinding(e,r,t,C,i,a);d!==C2&&ja(e,n,h,r,d)}}function ja(e,t,C,i,s){if(s=Ua(t,s,C,i),Z2&&(s=Z2(s,C.target,C.kind,t)),C.kind=="attribute")e._valueToNodeAttribute(t,s,C.target);else{let a=C.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[a]?(!t[_.READ_ONLY]||!t[_.READ_ONLY][a])&&t._setPendingProperty(a,s)&&e._enqueueClient(t):e._setUnmanagedPropertyToNode(t,a,s)}}function Ua(e,t,C,i){if(C.isCompound){let s=e.__dataCompoundStorage[C.target];s[i.compoundIndex]=t,t=s.join("")}return C.kind!=="attribute"&&(C.target==="textContent"||C.target==="value"&&(e.localName==="input"||e.localName==="textarea"))&&(t=t??""),t}function qa(e){return Boolean(e.target)&&e.kind!="attribute"&&e.kind!="text"&&!e.isCompound&&e.parts[0].mode==="{"}function Wa(e,t){let{nodeList:C,nodeInfoList:i}=t;if(i.length)for(let s=0;s<i.length;s++){let a=i[s],l=C[s],n=a.bindings;if(n)for(let h=0;h<n.length;h++){let r=n[h];Ya(l,r),Ga(l,e,r)}l.__dataHost=e}}function Ya(e,t){if(t.isCompound){let C=e.__dataCompoundStorage||(e.__dataCompoundStorage={}),i=t.parts,s=new Array(i.length);for(let l=0;l<i.length;l++)s[l]=i[l].literal;let a=t.target;C[a]=s,t.literal&&t.kind=="property"&&(a==="className"&&(e=D(e)),e[a]=t.literal)}}function Ga(e,t,C){if(C.listenerEvent){let i=C.parts[0];e.addEventListener(C.listenerEvent,function(s){$a(s,t,C.target,i.source,i.negate)})}}function E8(e,t,C,i,s,a){a=t.static||a&&(typeof a!="object"||a[t.methodName]);let l={methodName:t.methodName,args:t.args,methodInfo:s,dynamicFn:a};for(let n=0,h;n<t.args.length&&(h=t.args[n]);n++)h.literal||e._addPropertyEffect(h.rootProperty,C,{fn:i,info:l,trigger:h});return a&&e._addPropertyEffect(t.methodName,C,{fn:i,info:l}),l}function E3(e,t,C,i,s){let a=e._methodHost||e,l=a[s.methodName];if(l){let n=e._marshalArgs(s.args,t,C);return n===C2?C2:l.apply(a,n)}else s.dynamicFn||console.warn("method `"+s.methodName+"` not defined")}const Ka=[],S8="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Ja="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Xa="(?:'(?:[^'\\\\]|\\\\.)*')",Qa='(?:"(?:[^"\\\\]|\\\\.)*")',Cl="(?:"+Xa+"|"+Qa+")",$8="(?:("+S8+"|"+Ja+"|"+Cl+")\\s*)",tl="(?:"+$8+"(?:,\\s*"+$8+")*)",el="(?:\\(\\s*(?:"+tl+"?)\\)\\s*)",il="("+S8+"\\s*"+el+"?)",ol="(\\[\\[|{{)\\s*",sl="(?:]]|}})",al=ol+"(?:(!)\\s*)?"+il+sl,T8=new RegExp(al,"g");function I8(e){let t="";for(let C=0;C<e.length;C++)t+=e[C].literal||"";return t}function S3(e){let t=e.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let i={methodName:t[1],static:!0,args:Ka};if(t[2].trim()){let s=t[2].replace(/\\,/g,"&comma;").split(",");return ll(s,i)}else return i}return null}function ll(e,t){return t.args=e.map(function(C){let i=P8(C);return i.literal||(t.static=!1),i},this),t}function P8(e){let t=e.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),C={name:t,value:"",literal:!1},i=t[0];switch(i==="-"&&(i=t[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':C.value=t.slice(1,-1),C.literal=!0;break;case"#":C.value=Number(t),C.literal=!0;break}return C.literal||(C.rootProperty=g1(t),C.structured=_3(t),C.structured&&(C.wildcard=t.slice(-2)==".*",C.wildcard&&(C.name=t.slice(0,-2)))),C}function O8(e,t,C){let i=P(e,C);return i===void 0&&(i=t[C]),i}function F8(e,t,C,i){const s={indexSplices:i};x3&&!e._overrideLegacyUndefined&&(t.splices=s),e.notifyPath(C+".splices",s),e.notifyPath(C+".length",t.length),x3&&!e._overrideLegacyUndefined&&(s.indexSplices=[])}function e2(e,t,C,i,s,a){F8(e,t,C,[{index:i,addedCount:s,removed:a,object:t,type:"splice"}])}function nl(e){return e[0].toUpperCase()+e.substring(1)}const hl=b(e=>{const t=za(fa(e));class C extends t{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return _}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(i2.length){let s=i2[i2.length-1];s._enqueueClient(this),this.__dataHost=s}}_initializeProtoProperties(s){this.__data=Object.create(s),this.__dataPending=Object.create(s),this.__dataOld={}}_initializeInstanceProperties(s){let a=this[_.READ_ONLY];for(let l in s)(!a||!a[l])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[l]=this.__dataPending[l]=s[l])}_addPropertyEffect(s,a,l){this._createPropertyAccessor(s,a==_.READ_ONLY);let n=k3(this,a,!0)[s];n||(n=this[a][s]=[]),n.push(l)}_removePropertyEffect(s,a,l){let n=k3(this,a,!0)[s],h=n.indexOf(l);h>=0&&n.splice(h,1)}_hasPropertyEffect(s,a){let l=this[a];return Boolean(l&&l[s])}_hasReadOnlyEffect(s){return this._hasPropertyEffect(s,_.READ_ONLY)}_hasNotifyEffect(s){return this._hasPropertyEffect(s,_.NOTIFY)}_hasReflectEffect(s){return this._hasPropertyEffect(s,_.REFLECT)}_hasComputedEffect(s){return this._hasPropertyEffect(s,_.COMPUTE)}_setPendingPropertyOrPath(s,a,l,n){if(n||g1(Array.isArray(s)?s[0]:s)!==s){if(!n){let h=P(this,s);if(s=f8(this,s,a),!s||!super._shouldPropertyChange(s,a,h))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(s,a,l))return Da(this,s,a),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[s])return this._setPendingProperty(s,a,l);this[s]=a}return!1}_setUnmanagedPropertyToNode(s,a,l){(l!==s[a]||typeof l=="object")&&(a==="className"&&(s=D(s)),s[a]=l)}_setPendingProperty(s,a,l){let n=this.__dataHasPaths&&_3(s),h=n?this.__dataTemp:this.__data;return this._shouldPropertyChange(s,a,h[s])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),s in this.__dataOld||(this.__dataOld[s]=this.__data[s]),n?this.__dataTemp[s]=a:this.__data[s]=a,this.__dataPending[s]=a,(n||this[_.NOTIFY]&&this[_.NOTIFY][s])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[s]=l),!0):!1}_setProperty(s,a){this._setPendingProperty(s,a,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(s){this.__dataPendingClients=this.__dataPendingClients||[],s!==this&&this.__dataPendingClients.push(s)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let s=this.__dataPendingClients;if(s){this.__dataPendingClients=null;for(let a=0;a<s.length;a++){let l=s[a];l.__dataEnabled?l.__dataPending&&l._flushProperties():l._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(s,a){for(let l in s)(a||!this[_.READ_ONLY]||!this[_.READ_ONLY][l])&&this._setPendingPropertyOrPath(l,s[l],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(s,a,l){let n=this.__dataHasPaths;this.__dataHasPaths=!1;let h;Ia(this,a,l,n),h=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(a,l,n),this._flushClients(),t2(this,this[_.REFLECT],a,l,n),t2(this,this[_.OBSERVE],a,l,n),h&&Aa(this,h,a,l,n),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(s,a,l){this[_.PROPAGATE]&&t2(this,this[_.PROPAGATE],s,a,l),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,s,a,l)}_runEffectsForTemplate(s,a,l,n){const h=(r,d)=>{t2(this,s.propertyEffects,r,l,d,s.nodeList);for(let c=s.firstChild;c;c=c.nextSibling)this._runEffectsForTemplate(c,r,l,d)};s.runEffects?s.runEffects(h,a,n):h(a,n)}linkPaths(s,a){s=X1(s),a=X1(a),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[s]=a}unlinkPaths(s){s=X1(s),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[s]}notifySplices(s,a){let l={path:""},n=P(this,s,l);F8(this,n,l.path,a)}get(s,a){return P(a||this,s)}set(s,a,l){l?f8(l,s,a):(!this[_.READ_ONLY]||!this[_.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,a,!0)&&this._invalidateProperties()}push(s,...a){let l={path:""},n=P(this,s,l),h=n.length,r=n.push(...a);return a.length&&e2(this,n,l.path,h,a.length,[]),r}pop(s){let a={path:""},l=P(this,s,a),n=Boolean(l.length),h=l.pop();return n&&e2(this,l,a.path,l.length,0,[h]),h}splice(s,a,l,...n){let h={path:""},r=P(this,s,h);a<0?a=r.length-Math.floor(-a):a&&(a=Math.floor(a));let d;return arguments.length===2?d=r.splice(a):d=r.splice(a,l,...n),(n.length||d.length)&&e2(this,r,h.path,a,n.length,d),d}shift(s){let a={path:""},l=P(this,s,a),n=Boolean(l.length),h=l.shift();return n&&e2(this,l,a.path,0,0,[h]),h}unshift(s,...a){let l={path:""},n=P(this,s,l),h=n.unshift(...a);return a.length&&e2(this,n,l.path,0,a.length,[]),h}notifyPath(s,a){let l;if(arguments.length==1){let n={path:""};a=P(this,s,n),l=n.path}else Array.isArray(s)?l=X1(s):l=s;this._setPendingPropertyOrPath(l,a,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(s,a){this._addPropertyEffect(s,_.READ_ONLY),a&&(this["_set"+nl(s)]=function(l){this._setProperty(s,l)})}_createPropertyObserver(s,a,l){let n={property:s,method:a,dynamicFn:Boolean(l)};this._addPropertyEffect(s,_.OBSERVE,{fn:z8,info:n,trigger:{name:s}}),l&&this._addPropertyEffect(a,_.OBSERVE,{fn:z8,info:n,trigger:{name:a}})}_createMethodObserver(s,a){let l=S3(s);if(!l)throw new Error("Malformed observer expression '"+s+"'");E8(this,l,_.OBSERVE,E3,null,a)}_createNotifyingProperty(s){this._addPropertyEffect(s,_.NOTIFY,{fn:Sa,info:{eventName:y2(s)+"-changed",property:s}})}_createReflectedProperty(s){let a=this.constructor.attributeNameForProperty(s);a[0]==="-"?console.warn("Property "+s+" cannot be reflected to attribute "+a+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(s,_.REFLECT,{fn:Ta,info:{attrName:a}})}_createComputedProperty(s,a,l){let n=S3(a);if(!n)throw new Error("Malformed computed expression '"+a+"'");const h=E8(this,n,_.COMPUTE,A8,s,l);k3(this,y8)[s]=h}_marshalArgs(s,a,l){const n=this.__data,h=[];for(let r=0,d=s.length;r<d;r++){let{name:c,structured:v,wildcard:M,value:g,literal:Z}=s[r];if(!Z)if(M){const w=x2(c,a),k=O8(n,l,w?a:c);g={path:w?a:c,value:k,base:w?P(n,c):k}}else g=v?O8(n,l,c):n[c];if(x3&&!this._overrideLegacyUndefined&&g===void 0&&s.length>1)return C2;h[r]=g}return h}static addPropertyEffect(s,a,l){this.prototype._addPropertyEffect(s,a,l)}static createPropertyObserver(s,a,l){this.prototype._createPropertyObserver(s,a,l)}static createMethodObserver(s,a){this.prototype._createMethodObserver(s,a)}static createNotifyingProperty(s){this.prototype._createNotifyingProperty(s)}static createReadOnlyProperty(s,a){this.prototype._createReadOnlyProperty(s,a)}static createReflectedProperty(s){this.prototype._createReflectedProperty(s)}static createComputedProperty(s,a,l){this.prototype._createComputedProperty(s,a,l)}static bindTemplate(s){return this.prototype._bindTemplate(s)}_bindTemplate(s,a){let l=this.constructor._parseTemplate(s),n=this.__preBoundTemplateInfo==l;if(!n)for(let h in l.propertyEffects)this._createPropertyAccessor(h);if(a)if(l=Object.create(l),l.wasPreBound=n,!this.__templateInfo)this.__templateInfo=l;else{const h=s._parentTemplateInfo||this.__templateInfo,r=h.lastChild;l.parent=h,h.lastChild=l,l.previousSibling=r,r?r.nextSibling=l:h.firstChild=l}else this.__preBoundTemplateInfo=l;return l}static _addTemplatePropertyEffect(s,a,l){let n=s.hostProps=s.hostProps||{};n[a]=!0;let h=s.propertyEffects=s.propertyEffects||{};(h[a]=h[a]||[]).push(l)}_stampTemplate(s,a){a=a||this._bindTemplate(s,!0),i2.push(this);let l=super._stampTemplate(s,a);if(i2.pop(),a.nodeList=l.nodeList,!a.wasPreBound){let n=a.childNodes=[];for(let h=l.firstChild;h;h=h.nextSibling)n.push(h)}return l.templateInfo=a,Wa(this,a),this.__dataClientsReady&&(this._runEffectsForTemplate(a,this.__data,null,!1),this._flushClients()),l}_removeBoundDom(s){const a=s.templateInfo,{previousSibling:l,nextSibling:n,parent:h}=a;l?l.nextSibling=n:h&&(h.firstChild=n),n?n.previousSibling=l:h&&(h.lastChild=l),a.nextSibling=a.previousSibling=null;let r=a.childNodes;for(let d=0;d<r.length;d++){let c=r[d];D(D(c).parentNode).removeChild(c)}}static _parseTemplateNode(s,a,l){let n=t._parseTemplateNode.call(this,s,a,l);if(s.nodeType===Node.TEXT_NODE){let h=this._parseBindings(s.textContent,a);h&&(s.textContent=I8(h)||" ",A3(this,a,l,"text","textContent",h),n=!0)}return n}static _parseTemplateNodeAttribute(s,a,l,n,h){let r=this._parseBindings(h,a);if(r){let d=n,c="property";ka.test(n)?c="attribute":n[n.length-1]=="$"&&(n=n.slice(0,-1),c="attribute");let v=I8(r);return v&&c=="attribute"&&(n=="class"&&s.hasAttribute("class")&&(v+=" "+s.getAttribute(n)),s.setAttribute(n,v)),c=="attribute"&&d=="disable-upgrade$"&&s.setAttribute(n,""),s.localName==="input"&&d==="value"&&s.setAttribute(d,""),s.removeAttribute(d),c==="property"&&(n=y3(n)),A3(this,a,l,c,n,r,v),!0}else return t._parseTemplateNodeAttribute.call(this,s,a,l,n,h)}static _parseTemplateNestedTemplate(s,a,l){let n=t._parseTemplateNestedTemplate.call(this,s,a,l);const h=s.parentNode,r=l.templateInfo,d=h.localName==="dom-if",c=h.localName==="dom-repeat";h8&&(d||c)&&(h.removeChild(s),l=l.parentInfo,l.templateInfo=r,l.noted=!0,n=!1);let v=r.hostProps;if(ta&&d)v&&(a.hostProps=Object.assign(a.hostProps||{},v),h8||(l.parentInfo.noted=!0));else{let M="{";for(let g in v){let Z=[{mode:M,source:g,dependencies:[g],hostProp:!0}];A3(this,a,l,"property","_host_"+g,Z)}}return n}static _parseBindings(s,a){let l=[],n=0,h;for(;(h=T8.exec(s))!==null;){h.index>n&&l.push({literal:s.slice(n,h.index)});let r=h[1][0],d=Boolean(h[2]),c=h[3].trim(),v=!1,M="",g=-1;r=="{"&&(g=c.indexOf("::"))>0&&(M=c.substring(g+2),c=c.substring(0,g),v=!0);let Z=S3(c),w=[];if(Z){let{args:k,methodName:A}=Z;for(let z=0;z<k.length;z++){let $=k[z];$.literal||w.push($)}let x=a.dynamicFns;(x&&x[A]||Z.static)&&(w.push(A),Z.dynamicFn=!0)}else w.push(c);l.push({source:c,mode:r,negate:d,customEvent:v,signature:Z,dependencies:w,event:M}),n=T8.lastIndex}if(n&&n<s.length){let r=s.substring(n);r&&l.push({literal:r})}return l.length?l:null}static _evaluateBinding(s,a,l,n,h,r){let d;return a.signature?d=E3(s,l,n,h,a.signature):l!=a.source?d=P(s,a.source):r&&_3(l)?d=P(s,l):d=s.__data[l],a.negate&&(d=!d),d}}return C}),i2=[];/**
7358
7358
  @license
7359
7359
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
7360
7360
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -7380,7 +7380,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7380
7380
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
7381
7381
  * Google as part of the polymer project is also subject to an additional IP
7382
7382
  * rights grant found at http://polymer.github.io/PATENTS.txt
7383
- */const cl="3.5.1",D8=window.ShadyCSS&&window.ShadyCSS.cssBuild,pl=b(e=>{const t=dl(hl(e));function C(h){if(!h.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",h))){h.__propertyDefaults=null;let r=h._properties;for(let d in r){let c=r[d];"value"in c&&(h.__propertyDefaults=h.__propertyDefaults||{},h.__propertyDefaults[d]=c)}}return h.__propertyDefaults}function i(h){return h.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",h))||(h.__ownObservers=h.hasOwnProperty(JSCompiler_renameProperty("observers",h))?h.observers:null),h.__ownObservers}function s(h,r,d,c){d.computed&&(d.readOnly=!0),d.computed&&(h._hasReadOnlyEffect(r)?console.warn(`Cannot redefine computed property '${r}'.`):h._createComputedProperty(r,d.computed,c)),d.readOnly&&!h._hasReadOnlyEffect(r)?h._createReadOnlyProperty(r,!d.computed):d.readOnly===!1&&h._hasReadOnlyEffect(r)&&console.warn(`Cannot make readOnly property '${r}' non-readOnly.`),d.reflectToAttribute&&!h._hasReflectEffect(r)?h._createReflectedProperty(r):d.reflectToAttribute===!1&&h._hasReflectEffect(r)&&console.warn(`Cannot make reflected property '${r}' non-reflected.`),d.notify&&!h._hasNotifyEffect(r)?h._createNotifyingProperty(r):d.notify===!1&&h._hasNotifyEffect(r)&&console.warn(`Cannot make notify property '${r}' non-notify.`),d.observer&&h._createPropertyObserver(r,d.observer,c[d.observer]),h._addPropertyToAttributeMap(r)}function a(h,r,d,c){if(!D8){const v=r.content.querySelectorAll("style"),M=g8(r),g=ha(d),Z=r.content.firstElementChild;for(let B=0;B<g.length;B++){let A=g[B];A.textContent=h._processStyleText(A.textContent,c),r.content.insertBefore(A,Z)}let w=0;for(let B=0;B<M.length;B++){let A=M[B],x=v[w];x!==A?(A=A.cloneNode(!0),x.parentNode.insertBefore(A,x)):w++,A.textContent=h._processStyleText(A.textContent,c)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(r,d),ea&&D8&&Ys){const v=r.content.querySelectorAll("style");if(v){let M="";Array.from(v).forEach(g=>{M+=g.textContent,g.parentNode.removeChild(g)}),h._styleSheet=new CSSStyleSheet,h._styleSheet.replaceSync(M)}}}function l(h){let r=null;if(h&&(!Z3||Ks)&&(r=J1.import(h,"template"),Z3&&!r))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${h}`);return r}class n extends t{static get polymerElementVersion(){return cl}static _finalizeClass(){t._finalizeClass.call(this);const r=i(this);r&&this.createObservers(r,this._properties),this._prepareTemplate()}static _prepareTemplate(){let r=this.template;r&&(typeof r=="string"?(console.error("template getter must return HTMLTemplateElement"),r=null):Js||(r=r.cloneNode(!0))),this.prototype._template=r}static createProperties(r){for(let d in r)s(this.prototype,d,r[d],r)}static createObservers(r,d){const c=this.prototype;for(let v=0;v<r.length;v++)c._createMethodObserver(r[v],d)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let r=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof r=="function"&&(r=r()),this._template=r!==void 0?r:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&l(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(r){this._template=r}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const r=this.importMeta;if(r)this._importPath=V3(r.url);else{const d=J1.import(this.is);this._importPath=d&&d.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=Gs,this.importPath=this.constructor.importPath;let r=C(this.constructor);if(!!r)for(let d in r){let c=r[d];if(this._canApplyPropertyDefault(d)){let v=typeof c.value=="function"?c.value.call(this):c.value;this._hasAccessor(d)?this._setPendingProperty(d,v,!0):this[d]=v}}}_canApplyPropertyDefault(r){return!this.hasOwnProperty(r)}static _processStyleText(r,d){return H3(r,d)}static _finalizeTemplate(r){const d=this.prototype._template;if(d&&!d.__polymerFinalized){d.__polymerFinalized=!0;const c=this.importPath,v=c?K1(c):"";a(this,d,r,v),this.prototype._bindTemplate(d)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(r){const d=D(this);if(d.attachShadow)return r?(d.shadowRoot||(d.attachShadow({mode:"open",shadyUpgradeFragment:r}),d.shadowRoot.appendChild(r),this.constructor._styleSheet&&(d.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Qs&&window.ShadyDOM&&window.ShadyDOM.flushInitial(d.shadowRoot),d.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(r){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,r)}resolveUrl(r,d){return!d&&this.importPath&&(d=K1(this.importPath)),K1(r,d)}static _parseTemplateContent(r,d,c){return d.dynamicFns=d.dynamicFns||this._properties,t._parseTemplateContent.call(this,r,d,c)}static _addTemplatePropertyEffect(r,d,c){return Xs&&!(d in this._properties)&&!(c.info.part.signature&&c.info.part.signature.static)&&!c.info.part.hostProp&&!r.nestedTemplate&&console.warn(`Property '${d}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,r,d,c)}}return n});/**
7383
+ */const cl="3.5.1",D8=window.ShadyCSS&&window.ShadyCSS.cssBuild,pl=b(e=>{const t=dl(hl(e));function C(h){if(!h.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",h))){h.__propertyDefaults=null;let r=h._properties;for(let d in r){let c=r[d];"value"in c&&(h.__propertyDefaults=h.__propertyDefaults||{},h.__propertyDefaults[d]=c)}}return h.__propertyDefaults}function i(h){return h.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",h))||(h.__ownObservers=h.hasOwnProperty(JSCompiler_renameProperty("observers",h))?h.observers:null),h.__ownObservers}function s(h,r,d,c){d.computed&&(d.readOnly=!0),d.computed&&(h._hasReadOnlyEffect(r)?console.warn(`Cannot redefine computed property '${r}'.`):h._createComputedProperty(r,d.computed,c)),d.readOnly&&!h._hasReadOnlyEffect(r)?h._createReadOnlyProperty(r,!d.computed):d.readOnly===!1&&h._hasReadOnlyEffect(r)&&console.warn(`Cannot make readOnly property '${r}' non-readOnly.`),d.reflectToAttribute&&!h._hasReflectEffect(r)?h._createReflectedProperty(r):d.reflectToAttribute===!1&&h._hasReflectEffect(r)&&console.warn(`Cannot make reflected property '${r}' non-reflected.`),d.notify&&!h._hasNotifyEffect(r)?h._createNotifyingProperty(r):d.notify===!1&&h._hasNotifyEffect(r)&&console.warn(`Cannot make notify property '${r}' non-notify.`),d.observer&&h._createPropertyObserver(r,d.observer,c[d.observer]),h._addPropertyToAttributeMap(r)}function a(h,r,d,c){if(!D8){const v=r.content.querySelectorAll("style"),M=g8(r),g=ha(d),Z=r.content.firstElementChild;for(let k=0;k<g.length;k++){let A=g[k];A.textContent=h._processStyleText(A.textContent,c),r.content.insertBefore(A,Z)}let w=0;for(let k=0;k<M.length;k++){let A=M[k],x=v[w];x!==A?(A=A.cloneNode(!0),x.parentNode.insertBefore(A,x)):w++,A.textContent=h._processStyleText(A.textContent,c)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(r,d),ea&&D8&&Ys){const v=r.content.querySelectorAll("style");if(v){let M="";Array.from(v).forEach(g=>{M+=g.textContent,g.parentNode.removeChild(g)}),h._styleSheet=new CSSStyleSheet,h._styleSheet.replaceSync(M)}}}function l(h){let r=null;if(h&&(!Z3||Ks)&&(r=J1.import(h,"template"),Z3&&!r))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${h}`);return r}class n extends t{static get polymerElementVersion(){return cl}static _finalizeClass(){t._finalizeClass.call(this);const r=i(this);r&&this.createObservers(r,this._properties),this._prepareTemplate()}static _prepareTemplate(){let r=this.template;r&&(typeof r=="string"?(console.error("template getter must return HTMLTemplateElement"),r=null):Js||(r=r.cloneNode(!0))),this.prototype._template=r}static createProperties(r){for(let d in r)s(this.prototype,d,r[d],r)}static createObservers(r,d){const c=this.prototype;for(let v=0;v<r.length;v++)c._createMethodObserver(r[v],d)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let r=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof r=="function"&&(r=r()),this._template=r!==void 0?r:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&l(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(r){this._template=r}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const r=this.importMeta;if(r)this._importPath=V3(r.url);else{const d=J1.import(this.is);this._importPath=d&&d.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=Gs,this.importPath=this.constructor.importPath;let r=C(this.constructor);if(!!r)for(let d in r){let c=r[d];if(this._canApplyPropertyDefault(d)){let v=typeof c.value=="function"?c.value.call(this):c.value;this._hasAccessor(d)?this._setPendingProperty(d,v,!0):this[d]=v}}}_canApplyPropertyDefault(r){return!this.hasOwnProperty(r)}static _processStyleText(r,d){return H3(r,d)}static _finalizeTemplate(r){const d=this.prototype._template;if(d&&!d.__polymerFinalized){d.__polymerFinalized=!0;const c=this.importPath,v=c?K1(c):"";a(this,d,r,v),this.prototype._bindTemplate(d)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(r){const d=D(this);if(d.attachShadow)return r?(d.shadowRoot||(d.attachShadow({mode:"open",shadyUpgradeFragment:r}),d.shadowRoot.appendChild(r),this.constructor._styleSheet&&(d.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Qs&&window.ShadyDOM&&window.ShadyDOM.flushInitial(d.shadowRoot),d.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(r){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,r)}resolveUrl(r,d){return!d&&this.importPath&&(d=K1(this.importPath)),K1(r,d)}static _parseTemplateContent(r,d,c){return d.dynamicFns=d.dynamicFns||this._properties,t._parseTemplateContent.call(this,r,d,c)}static _addTemplatePropertyEffect(r,d,c){return Xs&&!(d in this._properties)&&!(c.info.part.signature&&c.info.part.signature.static)&&!c.info.part.hostProp&&!r.nestedTemplate&&console.warn(`Property '${d}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,r,d,c)}}return n});/**
7384
7384
  @license
7385
7385
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
7386
7386
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -7497,7 +7497,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7497
7497
  * @license
7498
7498
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
7499
7499
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7500
- */function Q8(e){let t=k;if(e){const C=e.cloneNode(!0);C.removeAttribute("id"),t=r6`${X8(C.outerHTML)}`}return t}function Ul(e){return Rl(e,Nl.SVG)||e===k}function C4(e){let t=e==null||e===""?k:e;return Ul(t)||(console.error("[vaadin-icon] Invalid svg passed, please use Lit svg literal."),t=k),t}function ql(e,t){const C=C4(e);o3(C,t)}function Wl(e){return r6`${X8(e)}`}/**
7500
+ */function Q8(e){let t=B;if(e){const C=e.cloneNode(!0);C.removeAttribute("id"),t=r6`${X8(C.outerHTML)}`}return t}function Ul(e){return Rl(e,Nl.SVG)||e===B}function C4(e){let t=e==null||e===""?B:e;return Ul(t)||(console.error("[vaadin-icon] Invalid svg passed, please use Lit svg literal."),t=B),t}function ql(e,t){const C=C4(e);o3(C,t)}function Wl(e){return r6`${X8(e)}`}/**
7501
7501
  * @license
7502
7502
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
7503
7503
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -8216,7 +8216,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
8216
8216
  * @license
8217
8217
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
8218
8218
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
8219
- */const l4=Symbol("valueNotInitialized");class Xl extends Jl{constructor(t){if(super(t),t.type!==w2.ELEMENT)throw new Error(`\`${this.constructor.name}\` must be bound to an element.`);this.previousValue=l4}render(t,C){return k}update(t,[C,i]){return this.hasChanged(i)&&(this.host=t.options&&t.options.host,this.element=t.element,this.renderer=C,this.previousValue===l4?this.addRenderer():this.runRenderer(),this.previousValue=Array.isArray(i)?[...i]:i),k}reconnected(){this.addRenderer()}disconnected(){this.removeRenderer()}addRenderer(){throw new Error("The `addRenderer` method must be implemented.")}runRenderer(){throw new Error("The `runRenderer` method must be implemented.")}removeRenderer(){throw new Error("The `removeRenderer` method must be implemented.")}renderRenderer(t,...C){const i=this.renderer.call(this.host,...C);o3(i,t,{host:this.host})}hasChanged(t){return Array.isArray(t)?!Array.isArray(this.previousValue)||this.previousValue.length!==t.length?!0:t.some((C,i)=>C!==this.previousValue[i]):this.previousValue!==t}}/**
8219
+ */const l4=Symbol("valueNotInitialized");class Xl extends Jl{constructor(t){if(super(t),t.type!==w2.ELEMENT)throw new Error(`\`${this.constructor.name}\` must be bound to an element.`);this.previousValue=l4}render(t,C){return B}update(t,[C,i]){return this.hasChanged(i)&&(this.host=t.options&&t.options.host,this.element=t.element,this.renderer=C,this.previousValue===l4?this.addRenderer():this.runRenderer(),this.previousValue=Array.isArray(i)?[...i]:i),B}reconnected(){this.addRenderer()}disconnected(){this.removeRenderer()}addRenderer(){throw new Error("The `addRenderer` method must be implemented.")}runRenderer(){throw new Error("The `runRenderer` method must be implemented.")}removeRenderer(){throw new Error("The `removeRenderer` method must be implemented.")}renderRenderer(t,...C){const i=this.renderer.call(this.host,...C);o3(i,t,{host:this.host})}hasChanged(t){return Array.isArray(t)?!Array.isArray(this.previousValue)||this.previousValue.length!==t.length?!0:t.some((C,i)=>C!==this.previousValue[i]):this.previousValue!==t}}/**
8220
8220
  * @license
8221
8221
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
8222
8222
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -9652,7 +9652,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9652
9652
  * @license
9653
9653
  * Copyright (c) 2017 Anton Korzunov
9654
9654
  * SPDX-License-Identifier: MIT
9655
- */let z1=new WeakMap,I2=new WeakMap,P2={},i5=0;const f4=e=>e&&e.nodeType===Node.ELEMENT_NODE,o5=(...e)=>{console.error(`Error: ${e.join(" ")}. Skip setting aria-hidden.`)},Qn=(e,t)=>f4(e)?t.map(C=>{if(!f4(C))return o5(C,"is not a valid element"),null;let i=C;for(;i&&i!==e;){if(e.contains(i))return C;i=i.getRootNode().host}return o5(C,"is not contained inside",e),null}).filter(C=>Boolean(C)):(o5(e,"is not a valid element"),[]),Ch=(e,t,C,i)=>{const s=Qn(t,Array.isArray(e)?e:[e]);P2[C]||(P2[C]=new WeakMap);const a=P2[C],l=[],n=new Set,h=new Set(s),r=c=>{if(!c||n.has(c))return;n.add(c);const v=c.assignedSlot;v&&r(v),r(c.parentNode||c.host)};s.forEach(r);const d=c=>{if(!c||h.has(c))return;const v=c.shadowRoot;(v?[...c.children,...v.children]:[...c.children]).forEach(g=>{if(!["template","script","style"].includes(g.localName))if(n.has(g))d(g);else{const Z=g.getAttribute(i),w=Z!==null&&Z!=="false",B=(z1.get(g)||0)+1,A=(a.get(g)||0)+1;z1.set(g,B),a.set(g,A),l.push(g),B===1&&w&&I2.set(g,!0),A===1&&g.setAttribute(C,"true"),w||g.setAttribute(i,"true")}})};return d(t),n.clear(),i5+=1,()=>{l.forEach(c=>{const v=z1.get(c)-1,M=a.get(c)-1;z1.set(c,v),a.set(c,M),v||(I2.has(c)?I2.delete(c):c.removeAttribute(i)),M||c.removeAttribute(C)}),i5-=1,i5||(z1=new WeakMap,z1=new WeakMap,I2=new WeakMap,P2={})}},th=(e,t=document.body,C="data-aria-hidden")=>{const i=Array.from(Array.isArray(e)?e:[e]);return t&&i.push(...Array.from(t.querySelectorAll("[aria-live]"))),Ch(i,t,C,"aria-hidden")};/**
9655
+ */let z1=new WeakMap,I2=new WeakMap,P2={},i5=0;const f4=e=>e&&e.nodeType===Node.ELEMENT_NODE,o5=(...e)=>{console.error(`Error: ${e.join(" ")}. Skip setting aria-hidden.`)},Qn=(e,t)=>f4(e)?t.map(C=>{if(!f4(C))return o5(C,"is not a valid element"),null;let i=C;for(;i&&i!==e;){if(e.contains(i))return C;i=i.getRootNode().host}return o5(C,"is not contained inside",e),null}).filter(C=>Boolean(C)):(o5(e,"is not a valid element"),[]),Ch=(e,t,C,i)=>{const s=Qn(t,Array.isArray(e)?e:[e]);P2[C]||(P2[C]=new WeakMap);const a=P2[C],l=[],n=new Set,h=new Set(s),r=c=>{if(!c||n.has(c))return;n.add(c);const v=c.assignedSlot;v&&r(v),r(c.parentNode||c.host)};s.forEach(r);const d=c=>{if(!c||h.has(c))return;const v=c.shadowRoot;(v?[...c.children,...v.children]:[...c.children]).forEach(g=>{if(!["template","script","style"].includes(g.localName))if(n.has(g))d(g);else{const Z=g.getAttribute(i),w=Z!==null&&Z!=="false",k=(z1.get(g)||0)+1,A=(a.get(g)||0)+1;z1.set(g,k),a.set(g,A),l.push(g),k===1&&w&&I2.set(g,!0),A===1&&g.setAttribute(C,"true"),w||g.setAttribute(i,"true")}})};return d(t),n.clear(),i5+=1,()=>{l.forEach(c=>{const v=z1.get(c)-1,M=a.get(c)-1;z1.set(c,v),a.set(c,M),v||(I2.has(c)?I2.delete(c):c.removeAttribute(i)),M||c.removeAttribute(C)}),i5-=1,i5||(z1=new WeakMap,z1=new WeakMap,I2=new WeakMap,P2={})}},th=(e,t=document.body,C="data-aria-hidden")=>{const i=Array.from(Array.isArray(e)?e:[e]);return t&&i.push(...Array.from(t.querySelectorAll("[aria-live]"))),Ch(i,t,C,"aria-hidden")};/**
9656
9656
  * @license
9657
9657
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
9658
9658
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -10651,7 +10651,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10651
10651
  </div>
10652
10652
  ${g?L`<div class="icon-login"><cas-icon name="flat-check" size="20"></cas-icon></div>`:null}
10653
10653
  </a>
10654
- </li>`},n=(r,d)=>{const{icon:c,name:v,hasChildren:M,url:g,children:Z}=r,w=M?"div":"a",B=Z?.map(x=>l(x)),A=`<${w} class="item" ${g?`href=${g}`:""}>
10654
+ </li>`},n=(r,d)=>{const{icon:c,name:v,hasChildren:M,url:g,children:Z}=r,w=M?"div":"a",k=Z?.map(x=>l(x)),A=`<${w} class="item" ${g?`href=${g}`:""}>
10655
10655
  <cas-icon name="${c}" size=${t?32:20}></cas-icon>
10656
10656
  ${t?"":`<cas-text variant="footnote2">${v}</cas-text>`}
10657
10657
  ${M?`<cas-icon name="flat-chevronDown" size=${t?20:16}></cas-icon>`:""}
@@ -10663,7 +10663,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10663
10663
  ${M?L`
10664
10664
  <div class="children">
10665
10665
  <ul>
10666
- ${B}
10666
+ ${k}
10667
10667
  </ul>
10668
10668
  </div>
10669
10669
  `:""}
@@ -12505,10 +12505,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
12505
12505
  :host([alignment="trailing"]) .has-icon label {
12506
12506
  padding-left: 16px;
12507
12507
  }
12508
- `;function id({value:e,hasError:t,icon:C,pattern:i,showHelperText:s}){const a=s==="true"||t,l=C!=="",n=e!=="",h=od({value:e,pattern:i}),r=S({"input-container":!0,"has-content":n,"has-error":t||n&&!h,"has-icon":l});return{showHelper:a,contentStyle:r,hasValue:n,hasIcon:l,isValid:h}}function od({value:e,pattern:t}){return t?(typeof t=="string"?new RegExp(t.startsWith("/")&&t.endsWith("/")?t.slice(1,-1):t):t)?.test(e)??!1:!0}class C7 extends f{static formAssociated=!0;static styles=ed;static shadowRootOptions={...f.shadowRootOptions,mode:"open"};static properties={type:{type:String},name:{type:String},value:{type:String},label:{type:String},pattern:{type:String},required:{type:String},disabled:{type:String},readonly:{type:String},isInputError:{type:String},helperText:{type:String},showHelperText:{type:String},icon:{type:String},iconSize:{type:String},alignment:{type:String},iconProps:{type:String},iconPosition:{type:String}};constructor(){super(),this.value="",this.name=this.getAttribute("label")?.toLowerCase().replace(" ","-")||"input",this.isInputError="false",this.icon="",this.iconSize="20",this.alignment="leading"}_onChange(t){this.value=t.composedPath()[0].value,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}updated(){this.disabled==="true"&&this.shadowRoot.querySelector("input")?.setAttribute("disabled",!0),this.readonly&&this.shadowRoot.querySelector("input")?.setAttribute("readonly",!0)}firstUpdated(){const{iconProps:t,iconPosition:C}=this;C==="right"&&this.setAttribute("alignment","trailing");const i=t?.replace(/'/g,'"');if(i){let s=JSON.parse(i);this.icon=s.name,this.iconSize=s.size}}render(){const{label:t,value:C,name:i,required:s,pattern:a,isInputError:l,helperText:n,icon:h,showHelperText:r}=this,{showHelper:d,contentStyle:c,hasIcon:v,isValid:M}=id({value:C,hasError:l==="true",icon:h,pattern:a,required:this.required,showHelperText:r}),g={name:i,value:C,error:!1,success:!1};let Z="Campo v\xE1lido";s&&!C||!M?(s&&!C&&(Z="Este campo es requerido"),M||(Z=`El valor ingresado no es v\xE1lido ${n}`),g.error=!0):g.success=!0;const w=new CustomEvent("callback",{detail:{...g,message:Z}});return this.dispatchEvent(w),L`
12509
- <div class=${c}>
12508
+ `;function id({value:e,hasError:t,icon:C,pattern:i,showHelperText:s,placeholder:a}){const l=s==="true"||t,n=C!=="",h=e!=="",r=od({value:e,pattern:i}),d=S({"input-container":!0,"has-content":h||a,"has-error":t||h&&!r,"has-icon":n});return{showHelper:l,contentStyle:d,hasValue:h,hasIcon:n,isValid:r}}function od({value:e,pattern:t}){return t?(typeof t=="string"?new RegExp(t.startsWith("/")&&t.endsWith("/")?t.slice(1,-1):t):t)?.test(e)??!1:!0}class C7 extends f{static formAssociated=!0;static styles=ed;static shadowRootOptions={...f.shadowRootOptions,mode:"open"};static properties={type:{type:String},name:{type:String},value:{type:String},label:{type:String},pattern:{type:String},required:{type:String},disabled:{type:String},readonly:{type:String},isInputError:{type:String},helperText:{type:String},showHelperText:{type:String},icon:{type:String},iconSize:{type:String},alignment:{type:String},placeholder:{type:String},iconProps:{type:String},iconPosition:{type:String}};constructor(){super(),this.value="",this.name=this.getAttribute("label")?.toLowerCase().replace(" ","-")||"input",this.isInputError="false",this.icon="",this.iconSize="20",this.alignment="leading"}_onChange(t){this.value=t.composedPath()[0].value,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}updated(){this.disabled==="true"&&this.shadowRoot.querySelector("input")?.setAttribute("disabled",!0),this.readonly&&this.shadowRoot.querySelector("input")?.setAttribute("readonly",!0)}firstUpdated(){const{iconProps:t,iconPosition:C}=this;C==="right"&&this.setAttribute("alignment","trailing");const i=t?.replace(/'/g,'"');if(i){let s=JSON.parse(i);this.icon=s.name,this.iconSize=s.size}}render(){const{label:t,value:C,name:i,required:s,pattern:a,isInputError:l,helperText:n,icon:h,showHelperText:r,placeholder:d}=this,{showHelper:c,contentStyle:v,hasIcon:M,isValid:g}=id({value:C,hasError:l==="true",icon:h,pattern:a,required:s,showHelperText:r,placeholder:d}),Z={name:i,value:C,error:!1,success:!1};let w="Campo v\xE1lido";s&&!C||!g?(s&&!C&&(w="Este campo es requerido"),g||(w=`El valor ingresado no es v\xE1lido ${n}`),Z.error=!0):Z.success=!0;const k=new CustomEvent("callback",{detail:{...Z,message:w}});return this.dispatchEvent(k),L`
12509
+ <div class=${v}>
12510
12510
  <div class="input-content">
12511
- ${v?L`
12511
+ ${M?L`
12512
12512
  <div class="icon">
12513
12513
  <cas-icon name=${h} size=${this.iconSize}></cas-icon>
12514
12514
  </div>
@@ -12516,14 +12516,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
12516
12516
  <input
12517
12517
  name=${i}
12518
12518
  type="${this.type}"
12519
- placeholder=" "
12519
+ placeholder=${d}
12520
12520
  .value=${this.value}
12521
12521
  .required="${s}"
12522
12522
  @input=${this._onChange}
12523
12523
  />
12524
12524
  <label>${t} ${s?"(requerido)":""}</label>
12525
12525
  </div>
12526
- ${d?L`
12526
+ ${c?L`
12527
12527
  <div class="helper">
12528
12528
  <cas-text variant="caption1">${n}</cas-text>
12529
12529
  </div>
@@ -13928,7 +13928,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
13928
13928
  padding: 16px;
13929
13929
  }
13930
13930
  }
13931
- `;const d7=(e,t)=>new Date(e,t,0).getDate(),c7=({year:e,month:t,day:C})=>{const i=t<10?`0${t}`:t,s=C<10?`0${C}`:C;return`${e}-${i}-${s}`};function Ad(){const e=new Date,t=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],C=["Dom","Lun","Mar","Mie","Jue","Vie","Sab"],i=e.getFullYear(),s=e.getMonth()+1,a=[...Array(10).keys()].map(l=>l+i);return{date:e,weekdays:C,currentYear:i,currentMonth:s,month_names:t,years:a}}function Ed({month:e,year:t,selectValue:C,disablePast:i,disableWeekends:s,availableDays:a,disablePrevious:l,disableNext:n}){const h=[],r=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],d=d7(t,e),c=new Date,v=new Date(t,e-1,1),M=new Date(t,e-1,0).getDate();for(let w=v.getDay();w>0;w--)h.push({name:M+1-w,isCurrentMonth:!1,isCurrentDay:!1,isToday:!1});for(let w=0;w<d;w++){const B=a?.includes(w+1),A=c.getDate()===w+1&&c.getMonth()===e-1,x=C===c7({year:t,month:e,day:w+1}),z=new Date(t,e-1,w+1),q=(()=>{if(l){const V=new Date(l);if(V.setHours(0,0,0,0),z<=V)return!0}if(n){const V=new Date(n);if(V.setHours(0,0,0,0),z>V)return!0}if(i){const V=new Date;if(V.setHours(0,0,0,0),z<V)return!0}if(s){const V=z.getDay();if(V===0||V===6)return!0}return!1})(),m=c7({year:t,month:e,day:w+1});h.push({value:m,name:1+w,isCurrentMonth:!0,isCurrentDay:w+1===c.getDate(),isToday:A,isAvailable:B,date:z,disabled:q,selected:x})}const g=h.length%7===0?0:7-h.length%7;for(let w=0;w<g;w++)h.push({name:w+1,isCurrentMonth:!1,isCurrentDay:!1,isToday:!1});return{year:t,month:r[e-1],days:d7(t,e),calendar:h}}function Sd(e){const{isAvailable:t,isCurrentMonth:C,isToday:i,disabled:s,selected:a}=e;return{dayStyles:S({"item-day":!0,"current-month":C,available:t,today:i,disabled:s,selected:a})}}class p7 extends f{static formAssociated=!0;static styles=Bd;static shadowRootOptions={...f.shadowRootOptions,mode:"open"};static properties={label:{type:String},open:{type:Boolean},name:{type:String},value:{type:String},year:{type:Number},month:{type:Number},disabled:{type:String},disablePast:{type:Boolean},disableControls:{type:Boolean},initialValue:{type:String},disablePrevious:{type:String},disableNext:{type:String},disableWeekends:{type:Boolean}};constructor(){super(),this.open=!1,this.label="date picker",this.name=this.getAttribute("label")?.toLowerCase().replace(" ","-")||"date-picker",this.value="",this.year=new Date().getFullYear(),this.month=new Date().getMonth()+1,this.initialValue="",this.disabled=!1,this.disablePrevious="",this.disableNext=""}handleOpen(){this.open=!0}handleClose(){this.open=!1}changeMonthPrev(){if(this.disableControls)return null;this.month===1?(this.year=this.year-1,this.month=12):this.month=this.month-1,this.requestUpdate()}changeMonthNext(){if(this.disableControls)return null;this.month===12?(this.year=this.year+1,this.month=1):this.month=this.month+1,this.requestUpdate()}onChange(t){this.value=t.target.value}updated(){const t=this.disabled==="true"||this.disabled===!0,C=this.shadowRoot.querySelector("cas-input");t?C?.setAttribute("disabled",!0):C?.removeAttribute("disabled")}render(){const{disablePast:t,disableWeekends:C,open:i,year:s,month:a,disablePrevious:l,disableNext:n}=this,{weekdays:h,month_names:r,years:d}=Ad(),c=Ed({month:a,year:s,selectValue:this.value,disablePast:t,disableWeekends:C,disablePrevious:l,disableNext:n});document.addEventListener("click",x=>{x.composedPath().includes(this)||this.handleClose()});const v=()=>{this.shadowRoot.querySelectorAll(".dropdown").forEach(z=>{z.classList.remove("open")})},M=x=>{const{dayStyles:z}=Sd(x);return L`
13931
+ `;const d7=(e,t)=>new Date(e,t,0).getDate(),c7=({year:e,month:t,day:C})=>{const i=t<10?`0${t}`:t,s=C<10?`0${C}`:C;return`${e}-${i}-${s}`};function Ad(){const e=new Date,t=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],C=["Dom","Lun","Mar","Mie","Jue","Vie","Sab"],i=e.getFullYear(),s=e.getMonth()+1,a=[...Array(10).keys()].map(l=>l+i);return{date:e,weekdays:C,currentYear:i,currentMonth:s,month_names:t,years:a}}function Ed({month:e,year:t,selectValue:C,disablePast:i,disableWeekends:s,availableDays:a,disablePrevious:l,disableNext:n}){const h=[],r=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],d=d7(t,e),c=new Date,v=new Date(t,e-1,1),M=new Date(t,e-1,0).getDate();for(let w=v.getDay();w>0;w--)h.push({name:M+1-w,isCurrentMonth:!1,isCurrentDay:!1,isToday:!1});for(let w=0;w<d;w++){const k=a?.includes(w+1),A=c.getDate()===w+1&&c.getMonth()===e-1,x=C===c7({year:t,month:e,day:w+1}),z=new Date(t,e-1,w+1),q=(()=>{if(l){const V=new Date(l);if(V.setHours(0,0,0,0),z<=V)return!0}if(n){const V=new Date(n);if(V.setHours(0,0,0,0),z>V)return!0}if(i){const V=new Date;if(V.setHours(0,0,0,0),z<V)return!0}if(s){const V=z.getDay();if(V===0||V===6)return!0}return!1})(),m=c7({year:t,month:e,day:w+1});h.push({value:m,name:1+w,isCurrentMonth:!0,isCurrentDay:w+1===c.getDate(),isToday:A,isAvailable:k,date:z,disabled:q,selected:x})}const g=h.length%7===0?0:7-h.length%7;for(let w=0;w<g;w++)h.push({name:w+1,isCurrentMonth:!1,isCurrentDay:!1,isToday:!1});return{year:t,month:r[e-1],days:d7(t,e),calendar:h}}function Sd(e){const{isAvailable:t,isCurrentMonth:C,isToday:i,disabled:s,selected:a}=e;return{dayStyles:S({"item-day":!0,"current-month":C,available:t,today:i,disabled:s,selected:a})}}class p7 extends f{static formAssociated=!0;static styles=Bd;static shadowRootOptions={...f.shadowRootOptions,mode:"open"};static properties={label:{type:String},open:{type:Boolean},name:{type:String},value:{type:String},year:{type:Number},month:{type:Number},disabled:{type:String},disablePast:{type:Boolean},disableControls:{type:Boolean},initialValue:{type:String},disablePrevious:{type:String},disableNext:{type:String},disableWeekends:{type:Boolean}};constructor(){super(),this.open=!1,this.label="date picker",this.name=this.getAttribute("label")?.toLowerCase().replace(" ","-")||"date-picker",this.value="",this.year=new Date().getFullYear(),this.month=new Date().getMonth()+1,this.initialValue="",this.disabled=!1,this.disablePrevious="",this.disableNext=""}handleOpen(){this.open=!0}handleClose(){this.open=!1}changeMonthPrev(){if(this.disableControls)return null;this.month===1?(this.year=this.year-1,this.month=12):this.month=this.month-1,this.requestUpdate()}changeMonthNext(){if(this.disableControls)return null;this.month===12?(this.year=this.year+1,this.month=1):this.month=this.month+1,this.requestUpdate()}onChange(t){this.value=t.target.value}updated(){const t=this.disabled==="true"||this.disabled===!0,C=this.shadowRoot.querySelector("cas-input");t?C?.setAttribute("disabled",!0):C?.removeAttribute("disabled")}render(){const{disablePast:t,disableWeekends:C,open:i,year:s,month:a,disablePrevious:l,disableNext:n}=this,{weekdays:h,month_names:r,years:d}=Ad(),c=Ed({month:a,year:s,selectValue:this.value,disablePast:t,disableWeekends:C,disablePrevious:l,disableNext:n});document.addEventListener("click",x=>{x.composedPath().includes(this)||this.handleClose()});const v=()=>{this.shadowRoot.querySelectorAll(".dropdown").forEach(z=>{z.classList.remove("open")})},M=x=>{const{dayStyles:z}=Sd(x);return L`
13932
13932
  <button type="button" class=${z} @click=${q=>{if(v(),x.isCurrentMonth&&!x.disabled){const m=q.target.parentNode.querySelectorAll("button");for(let V=0;V<m.length;V++)m[V].classList.remove("selected");q.target.classList.add("selected"),this.value=x.value,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("callback",{detail:{value:x.value,name:this.name,message:"Success",success:!0,error:!1},bubbles:!0,composed:!0}))}else console.log("not available")}} >
13933
13933
  ${x.name}
13934
13934
  </button>
@@ -13961,7 +13961,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
13961
13961
  ${z?.map((m,V)=>Z(m,$,V))}
13962
13962
  </div>
13963
13963
  </div>
13964
- `,B=x=>L`
13964
+ `,k=x=>L`
13965
13965
  <div class="month-container">
13966
13966
  <div class="header-month">
13967
13967
  <button class="prev-month" @click=${this.changeMonthPrev}>
@@ -14005,7 +14005,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
14005
14005
  `)({name:this.name,value:this.value})}
14006
14006
  ${i?L`
14007
14007
  <section class="content">
14008
- ${B(c)}
14008
+ ${k(c)}
14009
14009
  </section>
14010
14010
  `:null}
14011
14011
  </div>
@@ -14358,7 +14358,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
14358
14358
  width: 300px;
14359
14359
  }
14360
14360
  }
14361
- `;const v7=(e,t)=>new Date(e,t,0).getDate(),E1=({year:e,month:t,day:C})=>{const i=t<10?`0${t}`:t,s=C<10?`0${C}`:C;return`${e}-${i}-${s}`};function Td(){const e=new Date,t=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],C=["Dom","Lun","Mar","Mie","Jue","Vie","Sab"],i=e.getFullYear(),s=e.getMonth()+1,a=[...Array(10).keys()].map(l=>l+i);return{date:e,weekdays:C,currentYear:i,currentMonth:s,month_names:t,years:a}}function L7({month:e,year:t,selectValue:C,range:i,disablePast:s,availableDays:a}){const l=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],n=[],h=v7(t,e),r=new Date,d=new Date(t,e-1,1),c=new Date(t,e-1,0).getDate();for(let g=d.getDay();g>0;g--)n.push({name:c+1-g,isCurrentMonth:!1,isCurrentDay:!1,isToday:!1});for(let g=0;g<h;g++){const Z=i.start.value&&i.end.value,w=Z&&i.start.value<=E1({year:t,month:e,day:g+1})&&i.end.value>=E1({year:t,month:e,day:g+1}),B=Z&&i.start.value===E1({year:t,month:e,day:g+1}),A=Z&&i.end.value===E1({year:t,month:e,day:g+1}),x=a?.includes(g+1),z=r.getDate()===g+1&&r.getMonth()===e-1,$=C===E1({year:t,month:e,day:g+1}),q=new Date(t,e-1,g+1),m=s&&q.setHours(0,0,0,0)<r.setHours(0,0,0,0);n.push({value:E1({year:t,month:e,day:g+1}),name:1+g,isCurrentMonth:!0,isCurrentDay:g+1===r.getDate(),isToday:z,isAvailable:x,date:q,disabled:m,selected:$,inRange:w,isStart:B,isEnd:A})}const v=42-n.length;for(let g=0;g<v;g++)n.push({name:g+1,isCurrentMonth:!1,isCurrentDay:!1,isToday:!1});return{year:t,month:l[e-1],days:v7(t,e),calendar:n}}function Id(e){const{isAvailable:t,isCurrentMonth:C,isToday:i,disabled:s,selected:a,inRange:l,isStart:n,isEnd:h}=e;return{dayStyles:S({"item-day":!0,"current-month":C,available:t,today:i,disabled:s,selected:a,range:l,start:n,end:h})}}class g7 extends f{static formAssociated=!0;static styles=$d;static shadowRootOptions={...f.shadowRootOptions,mode:"open"};static properties={label:{type:String},open:{type:Boolean},name:{type:String},value:{type:Array},disablePast:{type:Boolean},disableControls:{type:Boolean},showLegend:{type:Boolean},hideSelector:{type:Boolean},alignDisplay:{type:String}};constructor(){super(),this.open=!1,this.name="desde-hasta",this.value=[],this.year=new Date().getFullYear(),this.years=[],this.month=new Date().getMonth()+1,this.valueStart="",this.valueEnd=""}handleClose(){this.open=!1}changeMonthPrev(){if(this.disableControls)return null;this.month===1?(this.year=this.year-1,this.month=12):this.month=this.month-1,this.requestUpdate()}changeMonthNext(){if(this.disableControls)return null;this.month===12?(this.year=this.year+1,this.month=1):this.month=this.month+1,this.requestUpdate()}onChange(t){this.value=t.target.value}render(){const{disablePast:t,showLegend:C,open:i,year:s,month:a,valueStart:l,valueEnd:n}=this,{weekdays:h,month_names:r,years:d}=Td(),c={start:{value:this.valueStart,year:this.valueStart.split("-")[0],month:this.valueStart.split("-")[1],day:this.valueStart.split("-")[2]},end:{value:this.valueEnd,year:this.valueEnd.split("-")[0],month:this.valueEnd.split("-")[1],day:this.valueEnd.split("-")[2]}},v=L7({month:a,year:s,selectValue:this.valueStart,range:c,disablePast:t}),M=L7({month:a+1,year:s,selectValue:this.valueEnd,range:c,disablePast:t});document.addEventListener("click",m=>{m.composedPath().includes(this)||this.handleClose()});const g=()=>{this.shadowRoot.querySelectorAll(".dropdown").forEach(V=>{V.classList.remove("open")})},Z=m=>{const{dayStyles:V}=Id(m),T=()=>{if(this.valueStart==="")this.valueStart=m.value,this.valueEnd="";else if(this.valueStart!==""&&m.value<this.valueStart)this.valueStart=m.value;else if(this.valueEnd!==""&&m.value>this.valueEnd)this.valueEnd=m.value;else if(this.valueStart!==""&&this.valueEnd===""){this.valueEnd=m.value,this.value=[this.valueStart,this.valueEnd],this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0,detail:{value:`${this.valueStart} - ${this.valueEnd}`}}));const j={value:`${this.valueStart} - ${this.valueEnd}`,name:this.name,start:this.valueStart,end:this.valueEnd,message:`${this.name}: ${this.valueStart} - ${this.valueEnd}`,error:!1,success:!0};this.dispatchEvent(new CustomEvent("callback",{detail:j,bubbles:!0,composed:!0})),this.open=!1}else this.valueStart!==""&&this.valueEnd!==""?(this.valueStart=m.value,this.valueEnd=""):(this.valueStart="",this.valueEnd="");this.setAttribute("date-start",this.valueStart),this.setAttribute("date-end",this.valueEnd)};return o`
14361
+ `;const v7=(e,t)=>new Date(e,t,0).getDate(),E1=({year:e,month:t,day:C})=>{const i=t<10?`0${t}`:t,s=C<10?`0${C}`:C;return`${e}-${i}-${s}`};function Td(){const e=new Date,t=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],C=["Dom","Lun","Mar","Mie","Jue","Vie","Sab"],i=e.getFullYear(),s=e.getMonth()+1,a=[...Array(10).keys()].map(l=>l+i);return{date:e,weekdays:C,currentYear:i,currentMonth:s,month_names:t,years:a}}function L7({month:e,year:t,selectValue:C,range:i,disablePast:s,availableDays:a}){const l=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],n=[],h=v7(t,e),r=new Date,d=new Date(t,e-1,1),c=new Date(t,e-1,0).getDate();for(let g=d.getDay();g>0;g--)n.push({name:c+1-g,isCurrentMonth:!1,isCurrentDay:!1,isToday:!1});for(let g=0;g<h;g++){const Z=i.start.value&&i.end.value,w=Z&&i.start.value<=E1({year:t,month:e,day:g+1})&&i.end.value>=E1({year:t,month:e,day:g+1}),k=Z&&i.start.value===E1({year:t,month:e,day:g+1}),A=Z&&i.end.value===E1({year:t,month:e,day:g+1}),x=a?.includes(g+1),z=r.getDate()===g+1&&r.getMonth()===e-1,$=C===E1({year:t,month:e,day:g+1}),q=new Date(t,e-1,g+1),m=s&&q.setHours(0,0,0,0)<r.setHours(0,0,0,0);n.push({value:E1({year:t,month:e,day:g+1}),name:1+g,isCurrentMonth:!0,isCurrentDay:g+1===r.getDate(),isToday:z,isAvailable:x,date:q,disabled:m,selected:$,inRange:w,isStart:k,isEnd:A})}const v=42-n.length;for(let g=0;g<v;g++)n.push({name:g+1,isCurrentMonth:!1,isCurrentDay:!1,isToday:!1});return{year:t,month:l[e-1],days:v7(t,e),calendar:n}}function Id(e){const{isAvailable:t,isCurrentMonth:C,isToday:i,disabled:s,selected:a,inRange:l,isStart:n,isEnd:h}=e;return{dayStyles:S({"item-day":!0,"current-month":C,available:t,today:i,disabled:s,selected:a,range:l,start:n,end:h})}}class g7 extends f{static formAssociated=!0;static styles=$d;static shadowRootOptions={...f.shadowRootOptions,mode:"open"};static properties={label:{type:String},open:{type:Boolean},name:{type:String},value:{type:Array},disablePast:{type:Boolean},disableControls:{type:Boolean},showLegend:{type:Boolean},hideSelector:{type:Boolean},alignDisplay:{type:String}};constructor(){super(),this.open=!1,this.name="desde-hasta",this.value=[],this.year=new Date().getFullYear(),this.years=[],this.month=new Date().getMonth()+1,this.valueStart="",this.valueEnd=""}handleClose(){this.open=!1}changeMonthPrev(){if(this.disableControls)return null;this.month===1?(this.year=this.year-1,this.month=12):this.month=this.month-1,this.requestUpdate()}changeMonthNext(){if(this.disableControls)return null;this.month===12?(this.year=this.year+1,this.month=1):this.month=this.month+1,this.requestUpdate()}onChange(t){this.value=t.target.value}render(){const{disablePast:t,showLegend:C,open:i,year:s,month:a,valueStart:l,valueEnd:n}=this,{weekdays:h,month_names:r,years:d}=Td(),c={start:{value:this.valueStart,year:this.valueStart.split("-")[0],month:this.valueStart.split("-")[1],day:this.valueStart.split("-")[2]},end:{value:this.valueEnd,year:this.valueEnd.split("-")[0],month:this.valueEnd.split("-")[1],day:this.valueEnd.split("-")[2]}},v=L7({month:a,year:s,selectValue:this.valueStart,range:c,disablePast:t}),M=L7({month:a+1,year:s,selectValue:this.valueEnd,range:c,disablePast:t});document.addEventListener("click",m=>{m.composedPath().includes(this)||this.handleClose()});const g=()=>{this.shadowRoot.querySelectorAll(".dropdown").forEach(V=>{V.classList.remove("open")})},Z=m=>{const{dayStyles:V}=Id(m),T=()=>{if(this.valueStart==="")this.valueStart=m.value,this.valueEnd="";else if(this.valueStart!==""&&m.value<this.valueStart)this.valueStart=m.value;else if(this.valueEnd!==""&&m.value>this.valueEnd)this.valueEnd=m.value;else if(this.valueStart!==""&&this.valueEnd===""){this.valueEnd=m.value,this.value=[this.valueStart,this.valueEnd],this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0,detail:{value:`${this.valueStart} - ${this.valueEnd}`}}));const j={value:`${this.valueStart} - ${this.valueEnd}`,name:this.name,start:this.valueStart,end:this.valueEnd,message:`${this.name}: ${this.valueStart} - ${this.valueEnd}`,error:!1,success:!0};this.dispatchEvent(new CustomEvent("callback",{detail:j,bubbles:!0,composed:!0})),this.open=!1}else this.valueStart!==""&&this.valueEnd!==""?(this.valueStart=m.value,this.valueEnd=""):(this.valueStart="",this.valueEnd="");this.setAttribute("date-start",this.valueStart),this.setAttribute("date-end",this.valueEnd)};return o`
14362
14362
  <button type="button" class=${V} @click=${j=>{if(g(),m.isCurrentMonth&&!m.disabled){const P1=j.target.parentNode.querySelectorAll("button");for(let G5=0;G5<P1.length;G5++)P1[G5].classList.remove("selected");j.target.classList.add("selected"),T()}else console.log("not available")}} >
14363
14363
  ${m.name}
14364
14364
  </button>
@@ -14377,7 +14377,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
14377
14377
  <cas-text text="Sin horas disponibles" variant="caption2"></cas-text>
14378
14378
  </div>
14379
14379
  </div>
14380
- `,B=(m,V,T)=>o`
14380
+ `,k=(m,V,T)=>o`
14381
14381
  <div class="item-dropdown" @click=${()=>{V==="year"?this.year=m:this.month=T+1,g(),this.requestUpdate()}}>
14382
14382
  <cas-text variant="footnote2" >${m}</cas-text>
14383
14383
  </div>
@@ -14388,7 +14388,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
14388
14388
  <cas-icon name="flat-sortDown" size="20"></cas-icon>
14389
14389
  </div>
14390
14390
  <div class="dropdown-content scrollable">
14391
- ${V?.map((j,P1)=>B(j,T,P1))}
14391
+ ${V?.map((j,P1)=>k(j,T,P1))}
14392
14392
  </div>
14393
14393
  </div>
14394
14394
  `,x=m=>o`
@@ -2,27 +2,27 @@
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const $=window,k=$.ShadowRoot&&($.ShadyCSS===void 0||$.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,z=Symbol(),W=new WeakMap;class J{constructor(t,e,i){if(this._$cssResult$=!0,i!==z)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(k&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=W.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&W.set(e,t))}return t}toString(){return this.cssText}}const Z=n=>new J(typeof n=="string"?n:n+"",void 0,z),pt=(n,...t)=>{const e=n.length===1?n[0]:t.reduce((i,s,o)=>i+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+n[o+1],n[0]);return new J(e,n,z)},ut=(n,t)=>{k?n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const i=document.createElement("style"),s=$.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,n.appendChild(i)})},K=k?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return Z(e)})(n):n;/**
5
+ */const $=window,k=$.ShadowRoot&&($.ShadyCSS===void 0||$.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,z=Symbol(),J=new WeakMap;class Z{constructor(t,e,i){if(this._$cssResult$=!0,i!==z)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(k&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=J.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&J.set(e,t))}return t}toString(){return this.cssText}}const K=n=>new Z(typeof n=="string"?n:n+"",void 0,z),ut=(n,...t)=>{const e=n.length===1?n[0]:t.reduce((i,s,o)=>i+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+n[o+1],n[0]);return new Z(e,n,z)},vt=(n,t)=>{k?n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const i=document.createElement("style"),s=$.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,n.appendChild(i)})},F=k?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return K(e)})(n):n;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */var j;const R=window,F=R.trustedTypes,vt=F?F.emptyScript:"",G=R.reactiveElementPolyfillSupport,I={toAttribute(n,t){switch(t){case Boolean:n=n?vt:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch{e=null}}return e}},Q=(n,t)=>t!==n&&(t==t||n==n),L={attribute:!0,type:String,converter:I,reflect:!1,hasChanged:Q};class A extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),((e=this.h)!==null&&e!==void 0?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,i)=>{const s=this._$Ep(i,e);s!==void 0&&(this._$Ev.set(s,i),t.push(s))}),t}static createProperty(t,e=L){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i=typeof t=="symbol"?Symbol():"__"+t,s=this.getPropertyDescriptor(t,i,e);s!==void 0&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(s){const o=this[t];this[e]=s,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||L}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,i=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const s of i)this.createProperty(s,e[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const s of i)e.unshift(K(s))}else t!==void 0&&e.push(K(t));return e}static _$Ep(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)===null||i===void 0||i.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return ut(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostConnected)===null||i===void 0?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostDisconnected)===null||i===void 0?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=L){var s;const o=this.constructor._$Ep(t,i);if(o!==void 0&&i.reflect===!0){const r=(((s=i.converter)===null||s===void 0?void 0:s.toAttribute)!==void 0?i.converter:I).toAttribute(e,i.type);this._$El=t,r==null?this.removeAttribute(o):this.setAttribute(o,r),this._$El=null}}_$AK(t,e){var i;const s=this.constructor,o=s._$Ev.get(t);if(o!==void 0&&this._$El!==o){const r=s.getPropertyOptions(o),h=typeof r.converter=="function"?{fromAttribute:r.converter}:((i=r.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?r.converter:I;this._$El=o,this[o]=h.fromAttribute(e,r.type),this._$El=null}}requestUpdate(t,e,i){let s=!0;t!==void 0&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||Q)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,i))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((s,o)=>this[o]=s),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),(t=this._$ES)===null||t===void 0||t.forEach(s=>{var o;return(o=s.hostUpdate)===null||o===void 0?void 0:o.call(s)}),this.update(i)):this._$Ek()}catch(s){throw e=!1,this._$Ek(),s}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var s;return(s=i.hostUpdated)===null||s===void 0?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,i)=>this._$EO(i,this[i],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}A.finalized=!0,A.elementProperties=new Map,A.elementStyles=[],A.shadowRootOptions={mode:"open"},G?.({ReactiveElement:A}),((j=R.reactiveElementVersions)!==null&&j!==void 0?j:R.reactiveElementVersions=[]).push("1.4.2");/**
9
+ */var j;const R=window,G=R.trustedTypes,$t=G?G.emptyScript:"",Q=R.reactiveElementPolyfillSupport,I={toAttribute(n,t){switch(t){case Boolean:n=n?$t:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch{e=null}}return e}},X=(n,t)=>t!==n&&(t==t||n==n),L={attribute:!0,type:String,converter:I,reflect:!1,hasChanged:X};class A extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),((e=this.h)!==null&&e!==void 0?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,i)=>{const s=this._$Ep(i,e);s!==void 0&&(this._$Ev.set(s,i),t.push(s))}),t}static createProperty(t,e=L){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i=typeof t=="symbol"?Symbol():"__"+t,s=this.getPropertyDescriptor(t,i,e);s!==void 0&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(s){const o=this[t];this[e]=s,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||L}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,i=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const s of i)this.createProperty(s,e[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const s of i)e.unshift(F(s))}else t!==void 0&&e.push(F(t));return e}static _$Ep(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)===null||i===void 0||i.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return vt(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostConnected)===null||i===void 0?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostDisconnected)===null||i===void 0?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=L){var s;const o=this.constructor._$Ep(t,i);if(o!==void 0&&i.reflect===!0){const r=(((s=i.converter)===null||s===void 0?void 0:s.toAttribute)!==void 0?i.converter:I).toAttribute(e,i.type);this._$El=t,r==null?this.removeAttribute(o):this.setAttribute(o,r),this._$El=null}}_$AK(t,e){var i;const s=this.constructor,o=s._$Ev.get(t);if(o!==void 0&&this._$El!==o){const r=s.getPropertyOptions(o),c=typeof r.converter=="function"?{fromAttribute:r.converter}:((i=r.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?r.converter:I;this._$El=o,this[o]=c.fromAttribute(e,r.type),this._$El=null}}requestUpdate(t,e,i){let s=!0;t!==void 0&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||X)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,i))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((s,o)=>this[o]=s),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),(t=this._$ES)===null||t===void 0||t.forEach(s=>{var o;return(o=s.hostUpdate)===null||o===void 0?void 0:o.call(s)}),this.update(i)):this._$Ek()}catch(s){throw e=!1,this._$Ek(),s}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var s;return(s=i.hostUpdated)===null||s===void 0?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,i)=>this._$EO(i,this[i],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}A.finalized=!0,A.elementProperties=new Map,A.elementStyles=[],A.shadowRootOptions={mode:"open"},Q?.({ReactiveElement:A}),((j=R.reactiveElementVersions)!==null&&j!==void 0?j:R.reactiveElementVersions=[]).push("1.4.2");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */var B;const N=window,b=N.trustedTypes,X=b?b.createPolicy("lit-html",{createHTML:n=>n}):void 0,f=`lit$${(Math.random()+"").slice(9)}$`,Y="?"+f,$t=`<${Y}>`,S=document,P=(n="")=>S.createComment(n),O=n=>n===null||typeof n!="object"&&typeof n!="function",tt=Array.isArray,ft=n=>tt(n)||typeof n?.[Symbol.iterator]=="function",U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,et=/-->/g,it=/>/g,y=RegExp(`>|[
13
+ */var B;const N=window,b=N.trustedTypes,Y=b?b.createPolicy("lit-html",{createHTML:n=>n}):void 0,f=`lit$${(Math.random()+"").slice(9)}$`,tt="?"+f,ft=`<${tt}>`,S=document,P=(n="")=>S.createComment(n),O=n=>n===null||typeof n!="object"&&typeof n!="function",et=Array.isArray,gt=n=>et(n)||typeof n?.[Symbol.iterator]=="function",U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,it=/-->/g,st=/>/g,_=RegExp(`>|[
14
14
  \f\r](?:([^\\s"'>=/]+)([
15
15
  \f\r]*=[
16
16
  \f\r]*(?:[^
17
- \f\r"'\`<>=]|("|')|))|$)`,"g"),st=/'/g,nt=/"/g,ot=/^(?:script|style|textarea|title)$/i,gt=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),_t=gt(1),E=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),rt=new WeakMap,x=S.createTreeWalker(S,129,null,!1),yt=(n,t)=>{const e=n.length-1,i=[];let s,o=t===2?"<svg>":"",r=U;for(let l=0;l<e;l++){const a=n[l];let u,c,d=-1,v=0;for(;v<a.length&&(r.lastIndex=v,c=r.exec(a),c!==null);)v=r.lastIndex,r===U?c[1]==="!--"?r=et:c[1]!==void 0?r=it:c[2]!==void 0?(ot.test(c[2])&&(s=RegExp("</"+c[2],"g")),r=y):c[3]!==void 0&&(r=y):r===y?c[0]===">"?(r=s??U,d=-1):c[1]===void 0?d=-2:(d=r.lastIndex-c[2].length,u=c[1],r=c[3]===void 0?y:c[3]==='"'?nt:st):r===nt||r===st?r=y:r===et||r===it?r=U:(r=y,s=void 0);const g=r===y&&n[l+1].startsWith("/>")?" ":"";o+=r===U?a+$t:d>=0?(i.push(u),a.slice(0,d)+"$lit$"+a.slice(d)+f+g):a+f+(d===-2?(i.push(void 0),l):g)}const h=o+(n[e]||"<?>")+(t===2?"</svg>":"");if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return[X!==void 0?X.createHTML(h):h,i]};class H{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,r=0;const h=t.length-1,l=this.parts,[a,u]=yt(t,e);if(this.el=H.createElement(a,i),x.currentNode=this.el.content,e===2){const c=this.el.content,d=c.firstChild;d.remove(),c.append(...d.childNodes)}for(;(s=x.nextNode())!==null&&l.length<h;){if(s.nodeType===1){if(s.hasAttributes()){const c=[];for(const d of s.getAttributeNames())if(d.endsWith("$lit$")||d.startsWith(f)){const v=u[r++];if(c.push(d),v!==void 0){const g=s.getAttribute(v.toLowerCase()+"$lit$").split(f),_=/([.?@])?(.*)/.exec(v);l.push({type:1,index:o,name:_[2],strings:g,ctor:_[1]==="."?At:_[1]==="?"?St:_[1]==="@"?Et:M})}else l.push({type:6,index:o})}for(const d of c)s.removeAttribute(d)}if(ot.test(s.tagName)){const c=s.textContent.split(f),d=c.length-1;if(d>0){s.textContent=b?b.emptyScript:"";for(let v=0;v<d;v++)s.append(c[v],P()),x.nextNode(),l.push({type:2,index:++o});s.append(c[d],P())}}}else if(s.nodeType===8)if(s.data===Y)l.push({type:2,index:o});else{let c=-1;for(;(c=s.data.indexOf(f,c+1))!==-1;)l.push({type:7,index:o}),c+=f.length-1}o++}}static createElement(t,e){const i=S.createElement("template");return i.innerHTML=t,i}}function w(n,t,e=n,i){var s,o,r,h;if(t===E)return t;let l=i!==void 0?(s=e._$Co)===null||s===void 0?void 0:s[i]:e._$Cl;const a=O(t)?void 0:t._$litDirective$;return l?.constructor!==a&&((o=l?._$AO)===null||o===void 0||o.call(l,!1),a===void 0?l=void 0:(l=new a(n),l._$AT(n,e,i)),i!==void 0?((r=(h=e)._$Co)!==null&&r!==void 0?r:h._$Co=[])[i]=l:e._$Cl=l),l!==void 0&&(t=w(n,l._$AS(n,t.values),l,i)),t}class mt{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:s}=this._$AD,o=((e=t?.creationScope)!==null&&e!==void 0?e:S).importNode(i,!0);x.currentNode=o;let r=x.nextNode(),h=0,l=0,a=s[0];for(;a!==void 0;){if(h===a.index){let u;a.type===2?u=new T(r,r.nextSibling,this,t):a.type===1?u=new a.ctor(r,a.name,a.strings,this,t):a.type===6&&(u=new xt(r,this,t)),this.u.push(u),a=s[++l]}h!==a?.index&&(r=x.nextNode(),h++)}return o}p(t){let e=0;for(const i of this.u)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class T{constructor(t,e,i,s){var o;this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cm=(o=s?.isConnected)===null||o===void 0||o}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&t.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=w(this,t,e),O(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==E&&this.g(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ft(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==p&&O(this._$AH)?this._$AA.nextSibling.data=t:this.T(S.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:s}=t,o=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=H.createElement(s.h,this.options)),s);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===o)this._$AH.p(i);else{const r=new mt(o,this),h=r.v(this.options);r.p(i),this.T(h),this._$AH=r}}_$AC(t){let e=rt.get(t.strings);return e===void 0&&rt.set(t.strings,e=new H(t)),e}k(t){tt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const o of t)s===e.length?e.push(i=new T(this.O(P()),this.O(P()),this,this.options)):i=e[s],i._$AI(o),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,e);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cm=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class M{constructor(t,e,i,s,o){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=p}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const o=this.strings;let r=!1;if(o===void 0)t=w(this,t,e,0),r=!O(t)||t!==this._$AH&&t!==E,r&&(this._$AH=t);else{const h=t;let l,a;for(t=o[0],l=0;l<o.length-1;l++)a=w(this,h[i+l],e,l),a===E&&(a=this._$AH[l]),r||(r=!O(a)||a!==this._$AH[l]),a===p?t=p:t!==p&&(t+=(a??"")+o[l+1]),this._$AH[l]=a}r&&!s&&this.j(t)}j(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class At extends M{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}}const bt=b?b.emptyScript:"";class St extends M{constructor(){super(...arguments),this.type=4}j(t){t&&t!==p?this.element.setAttribute(this.name,bt):this.element.removeAttribute(this.name)}}class Et extends M{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){var i;if((t=(i=w(this,t,e,0))!==null&&i!==void 0?i:p)===E)return;const s=this._$AH,o=t===p&&s!==p||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==p&&(s===p||o);o&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}}class xt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){w(this,t)}}const lt=N.litHtmlPolyfillSupport;lt?.(H,T),((B=N.litHtmlVersions)!==null&&B!==void 0?B:N.litHtmlVersions=[]).push("2.4.0");const wt=(n,t,e)=>{var i,s;const o=(i=e?.renderBefore)!==null&&i!==void 0?i:t;let r=o._$litPart$;if(r===void 0){const h=(s=e?.renderBefore)!==null&&s!==void 0?s:null;o._$litPart$=r=new T(t.insertBefore(P(),h),h,void 0,e??{})}return r._$AI(n),r};/**
17
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),nt=/'/g,ot=/"/g,rt=/^(?:script|style|textarea|title)$/i,_t=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),yt=_t(1),E=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),lt=new WeakMap,x=S.createTreeWalker(S,129,null,!1),mt=(n,t)=>{const e=n.length-1,i=[];let s,o=t===2?"<svg>":"",r=U;for(let l=0;l<e;l++){const a=n[l];let u,h,d=-1,v=0;for(;v<a.length&&(r.lastIndex=v,h=r.exec(a),h!==null);)v=r.lastIndex,r===U?h[1]==="!--"?r=it:h[1]!==void 0?r=st:h[2]!==void 0?(rt.test(h[2])&&(s=RegExp("</"+h[2],"g")),r=_):h[3]!==void 0&&(r=_):r===_?h[0]===">"?(r=s??U,d=-1):h[1]===void 0?d=-2:(d=r.lastIndex-h[2].length,u=h[1],r=h[3]===void 0?_:h[3]==='"'?ot:nt):r===ot||r===nt?r=_:r===it||r===st?r=U:(r=_,s=void 0);const y=r===_&&n[l+1].startsWith("/>")?" ":"";o+=r===U?a+ft:d>=0?(i.push(u),a.slice(0,d)+"$lit$"+a.slice(d)+f+y):a+f+(d===-2?(i.push(void 0),l):y)}const c=o+(n[e]||"<?>")+(t===2?"</svg>":"");if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Y!==void 0?Y.createHTML(c):c,i]};class H{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,r=0;const c=t.length-1,l=this.parts,[a,u]=mt(t,e);if(this.el=H.createElement(a,i),x.currentNode=this.el.content,e===2){const h=this.el.content,d=h.firstChild;d.remove(),h.append(...d.childNodes)}for(;(s=x.nextNode())!==null&&l.length<c;){if(s.nodeType===1){if(s.hasAttributes()){const h=[];for(const d of s.getAttributeNames())if(d.endsWith("$lit$")||d.startsWith(f)){const v=u[r++];if(h.push(d),v!==void 0){const y=s.getAttribute(v.toLowerCase()+"$lit$").split(f),g=/([.?@])?(.*)/.exec(v);l.push({type:1,index:o,name:g[2],strings:y,ctor:g[1]==="."?bt:g[1]==="?"?Et:g[1]==="@"?xt:M})}else l.push({type:6,index:o})}for(const d of h)s.removeAttribute(d)}if(rt.test(s.tagName)){const h=s.textContent.split(f),d=h.length-1;if(d>0){s.textContent=b?b.emptyScript:"";for(let v=0;v<d;v++)s.append(h[v],P()),x.nextNode(),l.push({type:2,index:++o});s.append(h[d],P())}}}else if(s.nodeType===8)if(s.data===tt)l.push({type:2,index:o});else{let h=-1;for(;(h=s.data.indexOf(f,h+1))!==-1;)l.push({type:7,index:o}),h+=f.length-1}o++}}static createElement(t,e){const i=S.createElement("template");return i.innerHTML=t,i}}function w(n,t,e=n,i){var s,o,r,c;if(t===E)return t;let l=i!==void 0?(s=e._$Co)===null||s===void 0?void 0:s[i]:e._$Cl;const a=O(t)?void 0:t._$litDirective$;return l?.constructor!==a&&((o=l?._$AO)===null||o===void 0||o.call(l,!1),a===void 0?l=void 0:(l=new a(n),l._$AT(n,e,i)),i!==void 0?((r=(c=e)._$Co)!==null&&r!==void 0?r:c._$Co=[])[i]=l:e._$Cl=l),l!==void 0&&(t=w(n,l._$AS(n,t.values),l,i)),t}class At{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:s}=this._$AD,o=((e=t?.creationScope)!==null&&e!==void 0?e:S).importNode(i,!0);x.currentNode=o;let r=x.nextNode(),c=0,l=0,a=s[0];for(;a!==void 0;){if(c===a.index){let u;a.type===2?u=new T(r,r.nextSibling,this,t):a.type===1?u=new a.ctor(r,a.name,a.strings,this,t):a.type===6&&(u=new wt(r,this,t)),this.u.push(u),a=s[++l]}c!==a?.index&&(r=x.nextNode(),c++)}return o}p(t){let e=0;for(const i of this.u)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class T{constructor(t,e,i,s){var o;this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cm=(o=s?.isConnected)===null||o===void 0||o}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&t.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=w(this,t,e),O(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==E&&this.g(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):gt(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==p&&O(this._$AH)?this._$AA.nextSibling.data=t:this.T(S.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:s}=t,o=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=H.createElement(s.h,this.options)),s);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===o)this._$AH.p(i);else{const r=new At(o,this),c=r.v(this.options);r.p(i),this.T(c),this._$AH=r}}_$AC(t){let e=lt.get(t.strings);return e===void 0&&lt.set(t.strings,e=new H(t)),e}k(t){et(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const o of t)s===e.length?e.push(i=new T(this.O(P()),this.O(P()),this,this.options)):i=e[s],i._$AI(o),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,e);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cm=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class M{constructor(t,e,i,s,o){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=p}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const o=this.strings;let r=!1;if(o===void 0)t=w(this,t,e,0),r=!O(t)||t!==this._$AH&&t!==E,r&&(this._$AH=t);else{const c=t;let l,a;for(t=o[0],l=0;l<o.length-1;l++)a=w(this,c[i+l],e,l),a===E&&(a=this._$AH[l]),r||(r=!O(a)||a!==this._$AH[l]),a===p?t=p:t!==p&&(t+=(a??"")+o[l+1]),this._$AH[l]=a}r&&!s&&this.j(t)}j(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class bt extends M{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}}const St=b?b.emptyScript:"";class Et extends M{constructor(){super(...arguments),this.type=4}j(t){t&&t!==p?this.element.setAttribute(this.name,St):this.element.removeAttribute(this.name)}}class xt extends M{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){var i;if((t=(i=w(this,t,e,0))!==null&&i!==void 0?i:p)===E)return;const s=this._$AH,o=t===p&&s!==p||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==p&&(s===p||o);o&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}}class wt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){w(this,t)}}const at=N.litHtmlPolyfillSupport;at?.(H,T),((B=N.litHtmlVersions)!==null&&B!==void 0?B:N.litHtmlVersions=[]).push("2.4.0");const Ct=(n,t,e)=>{var i,s;const o=(i=e?.renderBefore)!==null&&i!==void 0?i:t;let r=o._$litPart$;if(r===void 0){const c=(s=e?.renderBefore)!==null&&s!==void 0?s:null;o._$litPart$=r=new T(t.insertBefore(P(),c),c,void 0,e??{})}return r._$AI(n),r};/**
18
18
  * @license
19
19
  * Copyright 2017 Google LLC
20
20
  * SPDX-License-Identifier: BSD-3-Clause
21
- */var D,q;class C extends A{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=wt(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return E}}C.finalized=!0,C._$litElement$=!0,(D=globalThis.litElementHydrateSupport)===null||D===void 0||D.call(globalThis,{LitElement:C});const at=globalThis.litElementPolyfillSupport;at?.({LitElement:C}),((q=globalThis.litElementVersions)!==null&&q!==void 0?q:globalThis.litElementVersions=[]).push("3.2.2");/**
21
+ */var D,V;class C extends A{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Ct(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return E}}C.finalized=!0,C._$litElement$=!0,(D=globalThis.litElementHydrateSupport)===null||D===void 0||D.call(globalThis,{LitElement:C});const ht=globalThis.litElementPolyfillSupport;ht?.({LitElement:C}),((V=globalThis.litElementVersions)!==null&&V!==void 0?V:globalThis.litElementVersions=[]).push("3.2.2");/**
22
22
  * @license
23
23
  * Copyright 2020 Google LLC
24
24
  * SPDX-License-Identifier: BSD-3-Clause
25
- */const Ct=Symbol.for(""),Pt=n=>{if(n?.r===Ct)return n?._$litStatic$},ht=new Map,Ot=n=>(t,...e)=>{const i=e.length;let s,o;const r=[],h=[];let l,a=0,u=!1;for(;a<i;){for(l=t[a];a<i&&(o=e[a],(s=Pt(o))!==void 0);)l+=s+t[++a],u=!0;h.push(o),r.push(l),a++}if(a===i&&r.push(t[i]),u){const c=r.join("$$lit$$");(t=ht.get(c))===void 0&&(r.raw=r,ht.set(c,t=r)),e=h}return n(t,...e)},V=Ot(_t);var Ut=pt`
25
+ */const Pt=Symbol.for(""),Ot=n=>{if(n?.r===Pt)return n?._$litStatic$},ct=new Map,Ut=n=>(t,...e)=>{const i=e.length;let s,o;const r=[],c=[];let l,a=0,u=!1;for(;a<i;){for(l=t[a];a<i&&(o=e[a],(s=Ot(o))!==void 0);)l+=s+t[++a],u=!0;c.push(o),r.push(l),a++}if(a===i&&r.push(t[i]),u){const h=r.join("$$lit$$");(t=ct.get(h))===void 0&&(r.raw=r,ct.set(h,t=r)),e=c}return n(t,...e)},q=Ut(yt);var Ht=ut`
26
26
  :host([fullWidth]) {
27
27
  width: 100%;
28
28
  }
@@ -40,7 +40,7 @@
40
40
  border-radius: 8px;
41
41
  width: 100%;
42
42
  padding: 26px 16px 10px;
43
- border: 1px solid ${Z("#BCC2C6")};
43
+ border: 1px solid ${K("#BCC2C6")};
44
44
  font-family: 'Rubik', system-ui;
45
45
  font-style: normal;
46
46
  font-weight: 400;
@@ -177,14 +177,14 @@
177
177
  :host([alignment="trailing"]) .has-icon label {
178
178
  padding-left: 16px;
179
179
  }
180
- `,ct={exports:{}};/*!
180
+ `,dt={exports:{}};/*!
181
181
  Copyright (c) 2018 Jed Watson.
182
182
  Licensed under the MIT License (MIT), see
183
183
  http://jedwatson.github.io/classnames
184
- */(function(n){(function(){var t={}.hasOwnProperty;function e(){for(var i=[],s=0;s<arguments.length;s++){var o=arguments[s];if(!!o){var r=typeof o;if(r==="string"||r==="number")i.push(o);else if(Array.isArray(o)){if(o.length){var h=e.apply(null,o);h&&i.push(h)}}else if(r==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){i.push(o.toString());continue}for(var l in o)t.call(o,l)&&o[l]&&i.push(l)}}}return i.join(" ")}n.exports?(e.default=e,n.exports=e):window.classNames=e})()})(ct);var Ht=ct.exports;function Tt({value:n,hasError:t,icon:e,pattern:i,showHelperText:s}){const o=s==="true"||t,r=e!=="",h=n!=="",l=Rt({value:n,pattern:i}),a=Ht({"input-container":!0,"has-content":h,"has-error":t||h&&!l,"has-icon":r});return{showHelper:o,contentStyle:a,hasValue:h,hasIcon:r,isValid:l}}function Rt({value:n,pattern:t}){return t?(typeof t=="string"?new RegExp(t.startsWith("/")&&t.endsWith("/")?t.slice(1,-1):t):t)?.test(n)??!1:!0}class dt extends C{static formAssociated=!0;static styles=Ut;static shadowRootOptions={...C.shadowRootOptions,mode:"open"};static properties={type:{type:String},name:{type:String},value:{type:String},label:{type:String},pattern:{type:String},required:{type:String},disabled:{type:String},readonly:{type:String},isInputError:{type:String},helperText:{type:String},showHelperText:{type:String},icon:{type:String},iconSize:{type:String},alignment:{type:String},iconProps:{type:String},iconPosition:{type:String}};constructor(){super(),this.value="",this.name=this.getAttribute("label")?.toLowerCase().replace(" ","-")||"input",this.isInputError="false",this.icon="",this.iconSize="20",this.alignment="leading"}_onChange(t){this.value=t.composedPath()[0].value,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}updated(){this.disabled==="true"&&this.shadowRoot.querySelector("input")?.setAttribute("disabled",!0),this.readonly&&this.shadowRoot.querySelector("input")?.setAttribute("readonly",!0)}firstUpdated(){const{iconProps:t,iconPosition:e}=this;e==="right"&&this.setAttribute("alignment","trailing");const i=t?.replace(/'/g,'"');if(i){let s=JSON.parse(i);this.icon=s.name,this.iconSize=s.size}}render(){const{label:t,value:e,name:i,required:s,pattern:o,isInputError:r,helperText:h,icon:l,showHelperText:a}=this,{showHelper:u,contentStyle:c,hasIcon:d,isValid:v}=Tt({value:e,hasError:r==="true",icon:l,pattern:o,required:this.required,showHelperText:a}),g={name:i,value:e,error:!1,success:!1};let _="Campo v\xE1lido";s&&!e||!v?(s&&!e&&(_="Este campo es requerido"),v||(_=`El valor ingresado no es v\xE1lido ${h}`),g.error=!0):g.success=!0;const Nt=new CustomEvent("callback",{detail:{...g,message:_}});return this.dispatchEvent(Nt),V`
185
- <div class=${c}>
184
+ */(function(n){(function(){var t={}.hasOwnProperty;function e(){for(var i=[],s=0;s<arguments.length;s++){var o=arguments[s];if(!!o){var r=typeof o;if(r==="string"||r==="number")i.push(o);else if(Array.isArray(o)){if(o.length){var c=e.apply(null,o);c&&i.push(c)}}else if(r==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){i.push(o.toString());continue}for(var l in o)t.call(o,l)&&o[l]&&i.push(l)}}}return i.join(" ")}n.exports?(e.default=e,n.exports=e):window.classNames=e})()})(dt);var Tt=dt.exports;function Rt({value:n,hasError:t,icon:e,pattern:i,showHelperText:s,placeholder:o}){const r=s==="true"||t,c=e!=="",l=n!=="",a=Nt({value:n,pattern:i}),u=Tt({"input-container":!0,"has-content":l||o,"has-error":t||l&&!a,"has-icon":c});return{showHelper:r,contentStyle:u,hasValue:l,hasIcon:c,isValid:a}}function Nt({value:n,pattern:t}){return t?(typeof t=="string"?new RegExp(t.startsWith("/")&&t.endsWith("/")?t.slice(1,-1):t):t)?.test(n)??!1:!0}class pt extends C{static formAssociated=!0;static styles=Ht;static shadowRootOptions={...C.shadowRootOptions,mode:"open"};static properties={type:{type:String},name:{type:String},value:{type:String},label:{type:String},pattern:{type:String},required:{type:String},disabled:{type:String},readonly:{type:String},isInputError:{type:String},helperText:{type:String},showHelperText:{type:String},icon:{type:String},iconSize:{type:String},alignment:{type:String},placeholder:{type:String},iconProps:{type:String},iconPosition:{type:String}};constructor(){super(),this.value="",this.name=this.getAttribute("label")?.toLowerCase().replace(" ","-")||"input",this.isInputError="false",this.icon="",this.iconSize="20",this.alignment="leading"}_onChange(t){this.value=t.composedPath()[0].value,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}updated(){this.disabled==="true"&&this.shadowRoot.querySelector("input")?.setAttribute("disabled",!0),this.readonly&&this.shadowRoot.querySelector("input")?.setAttribute("readonly",!0)}firstUpdated(){const{iconProps:t,iconPosition:e}=this;e==="right"&&this.setAttribute("alignment","trailing");const i=t?.replace(/'/g,'"');if(i){let s=JSON.parse(i);this.icon=s.name,this.iconSize=s.size}}render(){const{label:t,value:e,name:i,required:s,pattern:o,isInputError:r,helperText:c,icon:l,showHelperText:a,placeholder:u}=this,{showHelper:h,contentStyle:d,hasIcon:v,isValid:y}=Rt({value:e,hasError:r==="true",icon:l,pattern:o,required:s,showHelperText:a,placeholder:u}),g={name:i,value:e,error:!1,success:!1};let W="Campo v\xE1lido";s&&!e||!y?(s&&!e&&(W="Este campo es requerido"),y||(W=`El valor ingresado no es v\xE1lido ${c}`),g.error=!0):g.success=!0;const Mt=new CustomEvent("callback",{detail:{...g,message:W}});return this.dispatchEvent(Mt),q`
185
+ <div class=${d}>
186
186
  <div class="input-content">
187
- ${d?V`
187
+ ${v?q`
188
188
  <div class="icon">
189
189
  <cas-icon name=${l} size=${this.iconSize}></cas-icon>
190
190
  </div>
@@ -192,17 +192,17 @@
192
192
  <input
193
193
  name=${i}
194
194
  type="${this.type}"
195
- placeholder=" "
195
+ placeholder=${u}
196
196
  .value=${this.value}
197
197
  .required="${s}"
198
198
  @input=${this._onChange}
199
199
  />
200
200
  <label>${t} ${s?"(requerido)":""}</label>
201
201
  </div>
202
- ${u?V`
202
+ ${h?q`
203
203
  <div class="helper">
204
- <cas-text variant="caption1">${h}</cas-text>
204
+ <cas-text variant="caption1">${c}</cas-text>
205
205
  </div>
206
206
  `:""}
207
207
  </div>
208
- `}}customElements.get("cas-input")||customElements.define("cas-input",dt),m.CasInput=dt,Object.defineProperties(m,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
208
+ `}}customElements.get("cas-input")||customElements.define("cas-input",pt),m.CasInput=pt,Object.defineProperties(m,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cas-ds-web-components",
3
3
  "description": "Web Components based on CAS DS",
4
- "version": "1.2.39",
4
+ "version": "1.2.40",
5
5
  "author": "aconejeros",
6
6
  "keywords": [
7
7
  "direflow",