cas-ds-web-components 1.3.15 → 1.3.17

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.
@@ -22422,6 +22422,7 @@ var __publicField = (obj, key, value) => {
22422
22422
  {
22423
22423
  name: "Mesa Central",
22424
22424
  text: "+56 2 2210 1111",
22425
+ isPrimary: true,
22425
22426
  icon: "flat-hospital",
22426
22427
  url: "tel:+56222101111"
22427
22428
  },
@@ -23178,10 +23179,12 @@ var __publicField = (obj, key, value) => {
23178
23179
  }
23179
23180
  });
23180
23181
  const child = (data4) => {
23181
- const { icon, name: name2, text, url, login } = data4;
23182
+ const { icon, name: name2, text, url, login, isPrimary } = data4;
23182
23183
  return n$8`
23183
- <li>
23184
- <a href="${url}">
23184
+ <li itemscope itemtype="http://schema.org/Organization">
23185
+ <a href="${url}"
23186
+ itemprop="telephone"
23187
+ aria-label="${isPrimary ? "Mesa Central - Teléfono principal: +56 2 2210 1111" : ""}${name2}">
23185
23188
  ${icon ? n$8`
23186
23189
  <div class="icon">
23187
23190
  <cas-icon name="${icon}" size="20"></cas-icon>
@@ -23838,8 +23841,22 @@ var __publicField = (obj, key, value) => {
23838
23841
  urlFormatter(item2) {
23839
23842
  let url = item2.url;
23840
23843
  let isLink = true;
23844
+ if (item2.name === "Presupuesto cirugía y parto") {
23845
+ const storageKey = "ab_test_presupuesto_link";
23846
+ let storedUrl = localStorage.getItem(storageKey);
23847
+ if (!storedUrl) {
23848
+ const urls = [
23849
+ "https://www.clinicaalemana.cl/presupuesto",
23850
+ "https://www.clinicaalemana.cl/informacion-para-pacientes/todo-sobre-hospitalizacion/presupuesto"
23851
+ ];
23852
+ const randomIndex = Math.floor(Math.random() * urls.length);
23853
+ storedUrl = urls[randomIndex];
23854
+ localStorage.setItem(storageKey, storedUrl);
23855
+ }
23856
+ url = storedUrl;
23857
+ }
23841
23858
  if (item2.tracking_type) {
23842
- url = `${item2.url}?${item2.tracking_type}_source=clinicaalemana&${item2.tracking_type}_medium=web&${item2.tracking_type}_campaign=${item2.campaign}`;
23859
+ url = `${url}?${item2.tracking_type}_source=clinicaalemana&${item2.tracking_type}_medium=web&${item2.tracking_type}_campaign=${item2.campaign}`;
23843
23860
  }
23844
23861
  const keyContains = ["clinicaalemana.cl", "webpay", "youtube", "alemanaseguros"];
23845
23862
  if (!keyContains.some((key) => url.includes(key))) {
@@ -23935,7 +23952,20 @@ var __publicField = (obj, key, value) => {
23935
23952
  title="${itemData.cta.title}"
23936
23953
  text="${itemData.cta.text}"
23937
23954
  buttonText="${itemData.cta.button.text}"
23938
- buttonUrl="${itemData.cta.button.url}"
23955
+ buttonUrl="${itemData.cta.title === "¿Necesitas un presupuesto?" ? (() => {
23956
+ const storageKey = "ab_test_presupuesto_link";
23957
+ let storedUrl = localStorage.getItem(storageKey);
23958
+ if (!storedUrl) {
23959
+ const urls = [
23960
+ "https://www.clinicaalemana.cl/presupuesto",
23961
+ "https://www.clinicaalemana.cl/informacion-para-pacientes/todo-sobre-hospitalizacion/presupuesto"
23962
+ ];
23963
+ const randomIndex = Math.floor(Math.random() * urls.length);
23964
+ storedUrl = urls[randomIndex];
23965
+ localStorage.setItem(storageKey, storedUrl);
23966
+ }
23967
+ return storedUrl;
23968
+ })() : itemData.cta.button.url}"
23939
23969
  image="${itemData.cta.image}"
23940
23970
  ></cas-header-card>
23941
23971
  </div>
@@ -24222,7 +24252,24 @@ var __publicField = (obj, key, value) => {
24222
24252
  </li>`;
24223
24253
  };
24224
24254
  const itemLink = (itemData) => {
24225
- const { name: name2, url } = itemData;
24255
+ let { name: name2, url, tracking_type, campaign } = itemData;
24256
+ if (name2 === "Presupuesto cirugía y parto") {
24257
+ const storageKey = "ab_test_presupuesto_link";
24258
+ let storedUrl = localStorage.getItem(storageKey);
24259
+ if (!storedUrl) {
24260
+ const urls = [
24261
+ "https://www.clinicaalemana.cl/presupuesto",
24262
+ "https://www.clinicaalemana.cl/informacion-para-pacientes/todo-sobre-hospitalizacion/presupuesto"
24263
+ ];
24264
+ const randomIndex = Math.floor(Math.random() * urls.length);
24265
+ storedUrl = urls[randomIndex];
24266
+ localStorage.setItem(storageKey, storedUrl);
24267
+ }
24268
+ url = storedUrl;
24269
+ }
24270
+ if (tracking_type && url) {
24271
+ url = `${url}?${tracking_type}_source=clinicaalemana&${tracking_type}_medium=web&${tracking_type}_campaign=${campaign}`;
24272
+ }
24226
24273
  return n$8`<a href=${url} class="item-link">
24227
24274
  <cas-text variant="body1">${name2}</cas-text>
24228
24275
  </a>`;
@@ -21606,6 +21606,7 @@ const header = {
21606
21606
  {
21607
21607
  name: "Mesa Central",
21608
21608
  text: "+56 2 2210 1111",
21609
+ isPrimary: true,
21609
21610
  icon: "flat-hospital",
21610
21611
  url: "tel:+56222101111"
21611
21612
  },
@@ -22362,10 +22363,12 @@ class Head extends s$8 {
22362
22363
  }
22363
22364
  });
22364
22365
  const child = (data4) => {
22365
- const { icon, name: name2, text, url, login } = data4;
22366
+ const { icon, name: name2, text, url, login, isPrimary } = data4;
22366
22367
  return n$8`
22367
- <li>
22368
- <a href="${url}">
22368
+ <li itemscope itemtype="http://schema.org/Organization">
22369
+ <a href="${url}"
22370
+ itemprop="telephone"
22371
+ aria-label="${isPrimary ? "Mesa Central - Teléfono principal: +56 2 2210 1111" : ""}${name2}">
22369
22372
  ${icon ? n$8`
22370
22373
  <div class="icon">
22371
22374
  <cas-icon name="${icon}" size="20"></cas-icon>
@@ -23022,8 +23025,22 @@ let Taxonomy$1 = (_a = class extends s$8 {
23022
23025
  urlFormatter(item2) {
23023
23026
  let url = item2.url;
23024
23027
  let isLink = true;
23028
+ if (item2.name === "Presupuesto cirugía y parto") {
23029
+ const storageKey = "ab_test_presupuesto_link";
23030
+ let storedUrl = localStorage.getItem(storageKey);
23031
+ if (!storedUrl) {
23032
+ const urls = [
23033
+ "https://www.clinicaalemana.cl/presupuesto",
23034
+ "https://www.clinicaalemana.cl/informacion-para-pacientes/todo-sobre-hospitalizacion/presupuesto"
23035
+ ];
23036
+ const randomIndex = Math.floor(Math.random() * urls.length);
23037
+ storedUrl = urls[randomIndex];
23038
+ localStorage.setItem(storageKey, storedUrl);
23039
+ }
23040
+ url = storedUrl;
23041
+ }
23025
23042
  if (item2.tracking_type) {
23026
- url = `${item2.url}?${item2.tracking_type}_source=clinicaalemana&${item2.tracking_type}_medium=web&${item2.tracking_type}_campaign=${item2.campaign}`;
23043
+ url = `${url}?${item2.tracking_type}_source=clinicaalemana&${item2.tracking_type}_medium=web&${item2.tracking_type}_campaign=${item2.campaign}`;
23027
23044
  }
23028
23045
  const keyContains = ["clinicaalemana.cl", "webpay", "youtube", "alemanaseguros"];
23029
23046
  if (!keyContains.some((key) => url.includes(key))) {
@@ -23119,7 +23136,20 @@ let Taxonomy$1 = (_a = class extends s$8 {
23119
23136
  title="${itemData.cta.title}"
23120
23137
  text="${itemData.cta.text}"
23121
23138
  buttonText="${itemData.cta.button.text}"
23122
- buttonUrl="${itemData.cta.button.url}"
23139
+ buttonUrl="${itemData.cta.title === "¿Necesitas un presupuesto?" ? (() => {
23140
+ const storageKey = "ab_test_presupuesto_link";
23141
+ let storedUrl = localStorage.getItem(storageKey);
23142
+ if (!storedUrl) {
23143
+ const urls = [
23144
+ "https://www.clinicaalemana.cl/presupuesto",
23145
+ "https://www.clinicaalemana.cl/informacion-para-pacientes/todo-sobre-hospitalizacion/presupuesto"
23146
+ ];
23147
+ const randomIndex = Math.floor(Math.random() * urls.length);
23148
+ storedUrl = urls[randomIndex];
23149
+ localStorage.setItem(storageKey, storedUrl);
23150
+ }
23151
+ return storedUrl;
23152
+ })() : itemData.cta.button.url}"
23123
23153
  image="${itemData.cta.image}"
23124
23154
  ></cas-header-card>
23125
23155
  </div>
@@ -23406,7 +23436,24 @@ class MenuMobile extends s$8 {
23406
23436
  </li>`;
23407
23437
  };
23408
23438
  const itemLink = (itemData) => {
23409
- const { name: name2, url } = itemData;
23439
+ let { name: name2, url, tracking_type, campaign } = itemData;
23440
+ if (name2 === "Presupuesto cirugía y parto") {
23441
+ const storageKey = "ab_test_presupuesto_link";
23442
+ let storedUrl = localStorage.getItem(storageKey);
23443
+ if (!storedUrl) {
23444
+ const urls = [
23445
+ "https://www.clinicaalemana.cl/presupuesto",
23446
+ "https://www.clinicaalemana.cl/informacion-para-pacientes/todo-sobre-hospitalizacion/presupuesto"
23447
+ ];
23448
+ const randomIndex = Math.floor(Math.random() * urls.length);
23449
+ storedUrl = urls[randomIndex];
23450
+ localStorage.setItem(storageKey, storedUrl);
23451
+ }
23452
+ url = storedUrl;
23453
+ }
23454
+ if (tracking_type && url) {
23455
+ url = `${url}?${tracking_type}_source=clinicaalemana&${tracking_type}_medium=web&${tracking_type}_campaign=${campaign}`;
23456
+ }
23410
23457
  return n$8`<a href=${url} class="item-link">
23411
23458
  <cas-text variant="body1">${name2}</cas-text>
23412
23459
  </a>`;
@@ -18,7 +18,7 @@
18
18
  * SPDX-License-Identifier: BSD-3-Clause
19
19
  */var v1;const ee=window,Ot=ee.trustedTypes,ha=Ot?Ot.createPolicy("lit-html",{createHTML:s=>s}):void 0,u1="$lit$",Y=`lit$${(Math.random()+"").slice(9)}$`,oa="?"+Y,zn=`<${oa}>`,rt=document,u0=()=>rt.createComment(""),g0=s=>s===null||typeof s!="object"&&typeof s!="function",na=Array.isArray,bn=s=>na(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",g1=`[
20
20
  \f\r]`,m0=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ra=/-->/g,la=/>/g,lt=RegExp(`>|${g1}(?:([^\\s"'>=/]+)(${g1}*=${g1}*(?:[^
21
- \f\r"'\`<>=]|("|')|))|$)`,"g"),da=/'/g,ca=/"/g,pa=/^(?:script|style|textarea|title)$/i,va=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),yn=va(1),m1=va(2),Rt=Symbol.for("lit-noChange"),x=Symbol.for("lit-nothing"),ua=new WeakMap,dt=rt.createTreeWalker(rt,129,null,!1);function ga(s,t){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return ha!==void 0?ha.createHTML(t):t}const xn=(s,t)=>{const e=s.length-1,i=[];let a,h=t===2?"<svg>":"",o=m0;for(let r=0;r<e;r++){const n=s[r];let l,d,c=-1,p=0;for(;p<n.length&&(o.lastIndex=p,d=o.exec(n),d!==null);)p=o.lastIndex,o===m0?d[1]==="!--"?o=ra:d[1]!==void 0?o=la:d[2]!==void 0?(pa.test(d[2])&&(a=RegExp("</"+d[2],"g")),o=lt):d[3]!==void 0&&(o=lt):o===lt?d[0]===">"?(o=a??m0,c=-1):d[1]===void 0?c=-2:(c=o.lastIndex-d[2].length,l=d[1],o=d[3]===void 0?lt:d[3]==='"'?ca:da):o===ca||o===da?o=lt:o===ra||o===la?o=m0:(o=lt,a=void 0);const v=o===lt&&s[r+1].startsWith("/>")?" ":"";h+=o===m0?n+zn:c>=0?(i.push(l),n.slice(0,c)+u1+n.slice(c)+Y+v):n+Y+(c===-2?(i.push(void 0),r):v)}return[ga(s,h+(s[e]||"<?>")+(t===2?"</svg>":"")),i]};let f1=class Yo{constructor({strings:t,_$litType$:e},i){let a;this.parts=[];let h=0,o=0;const r=t.length-1,n=this.parts,[l,d]=xn(t,e);if(this.el=Yo.createElement(l,i),dt.currentNode=this.el.content,e===2){const c=this.el.content,p=c.firstChild;p.remove(),c.append(...p.childNodes)}for(;(a=dt.nextNode())!==null&&n.length<r;){if(a.nodeType===1){if(a.hasAttributes()){const c=[];for(const p of a.getAttributeNames())if(p.endsWith(u1)||p.startsWith(Y)){const v=d[o++];if(c.push(p),v!==void 0){const g=a.getAttribute(v.toLowerCase()+u1).split(Y),m=/([.?@])?(.*)/.exec(v);n.push({type:1,index:h,name:m[2],strings:g,ctor:m[1]==="."?Cn:m[1]==="?"?$n:m[1]==="@"?En:ie})}else n.push({type:6,index:h})}for(const p of c)a.removeAttribute(p)}if(pa.test(a.tagName)){const c=a.textContent.split(Y),p=c.length-1;if(p>0){a.textContent=Ot?Ot.emptyScript:"";for(let v=0;v<p;v++)a.append(c[v],u0()),dt.nextNode(),n.push({type:2,index:++h});a.append(c[p],u0())}}}else if(a.nodeType===8)if(a.data===oa)n.push({type:2,index:h});else{let c=-1;for(;(c=a.data.indexOf(Y,c+1))!==-1;)n.push({type:7,index:h}),c+=Y.length-1}h++}}static createElement(t,e){const i=rt.createElement("template");return i.innerHTML=t,i}};function Ft(s,t,e=s,i){var a,h,o,r;if(t===Rt)return t;let n=i!==void 0?(a=e._$Co)===null||a===void 0?void 0:a[i]:e._$Cl;const l=g0(t)?void 0:t._$litDirective$;return(n==null?void 0:n.constructor)!==l&&((h=n==null?void 0:n._$AO)===null||h===void 0||h.call(n,!1),l===void 0?n=void 0:(n=new l(s),n._$AT(s,e,i)),i!==void 0?((o=(r=e)._$Co)!==null&&o!==void 0?o:r._$Co=[])[i]=n:e._$Cl=n),n!==void 0&&(t=Ft(s,n._$AS(s,t.values),n,i)),t}let An=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:a}=this._$AD,h=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:rt).importNode(i,!0);dt.currentNode=h;let o=dt.nextNode(),r=0,n=0,l=a[0];for(;l!==void 0;){if(r===l.index){let d;l.type===2?d=new _1(o,o.nextSibling,this,t):l.type===1?d=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(d=new Sn(o,this,t)),this._$AV.push(d),l=a[++n]}r!==(l==null?void 0:l.index)&&(o=dt.nextNode(),r++)}return dt.currentNode=rt,h}v(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},_1=class Go{constructor(t,e,i,a){var h;this.type=2,this._$AH=x,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=a,this._$Cp=(h=a==null?void 0:a.isConnected)===null||h===void 0||h}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Ft(this,t,e),g0(t)?t===x||t==null||t===""?(this._$AH!==x&&this._$AR(),this._$AH=x):t!==this._$AH&&t!==Rt&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):bn(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==x&&g0(this._$AH)?this._$AA.nextSibling.data=t:this.$(rt.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:a}=t,h=typeof a=="number"?this._$AC(t):(a.el===void 0&&(a.el=f1.createElement(ga(a.h,a.h[0]),this.options)),a);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===h)this._$AH.v(i);else{const o=new An(h,this),r=o.u(this.options);o.v(i),this.$(r),this._$AH=o}}_$AC(t){let e=ua.get(t.strings);return e===void 0&&ua.set(t.strings,e=new f1(t)),e}T(t){na(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,a=0;for(const h of t)a===e.length?e.push(i=new Go(this.k(u0()),this.k(u0()),this,this.options)):i=e[a],i._$AI(h),a++;a<e.length&&(this._$AR(i&&i._$AB.nextSibling,a),e.length=a)}_$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 a=t.nextSibling;t.remove(),t=a}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}},ie=class{constructor(t,e,i,a,h){this.type=1,this._$AH=x,this._$AN=void 0,this.element=t,this.name=e,this._$AM=a,this.options=h,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=x}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,a){const h=this.strings;let o=!1;if(h===void 0)t=Ft(this,t,e,0),o=!g0(t)||t!==this._$AH&&t!==Rt,o&&(this._$AH=t);else{const r=t;let n,l;for(t=h[0],n=0;n<h.length-1;n++)l=Ft(this,r[i+n],e,n),l===Rt&&(l=this._$AH[n]),o||(o=!g0(l)||l!==this._$AH[n]),l===x?t=x:t!==x&&(t+=(l??"")+h[n+1]),this._$AH[n]=l}o&&!a&&this.j(t)}j(t){t===x?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Cn=class extends ie{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===x?void 0:t}};const wn=Ot?Ot.emptyScript:"";let $n=class extends ie{constructor(){super(...arguments),this.type=4}j(t){t&&t!==x?this.element.setAttribute(this.name,wn):this.element.removeAttribute(this.name)}},En=class extends ie{constructor(t,e,i,a,h){super(t,e,i,a,h),this.type=5}_$AI(t,e=this){var i;if((t=(i=Ft(this,t,e,0))!==null&&i!==void 0?i:x)===Rt)return;const a=this._$AH,h=t===x&&a!==x||t.capture!==a.capture||t.once!==a.once||t.passive!==a.passive,o=t!==x&&(a===x||h);h&&this.element.removeEventListener(this.name,this,a),o&&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)}},Sn=class{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){Ft(this,t)}};const ma=ee.litHtmlPolyfillSupport;ma==null||ma(f1,_1),((v1=ee.litHtmlVersions)!==null&&v1!==void 0?v1:ee.litHtmlVersions=[]).push("2.8.0");const M1=(s,t,e)=>{var i,a;const h=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:t;let o=h._$litPart$;if(o===void 0){const r=(a=e==null?void 0:e.renderBefore)!==null&&a!==void 0?a:null;h._$litPart$=o=new _1(t.insertBefore(u0(),r),r,void 0,e??{})}return o._$AI(s),o};/**
21
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),da=/'/g,ca=/"/g,pa=/^(?:script|style|textarea|title)$/i,va=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),yn=va(1),m1=va(2),Rt=Symbol.for("lit-noChange"),x=Symbol.for("lit-nothing"),ua=new WeakMap,dt=rt.createTreeWalker(rt,129,null,!1);function ga(s,t){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return ha!==void 0?ha.createHTML(t):t}const xn=(s,t)=>{const e=s.length-1,i=[];let a,h=t===2?"<svg>":"",o=m0;for(let r=0;r<e;r++){const n=s[r];let l,d,c=-1,p=0;for(;p<n.length&&(o.lastIndex=p,d=o.exec(n),d!==null);)p=o.lastIndex,o===m0?d[1]==="!--"?o=ra:d[1]!==void 0?o=la:d[2]!==void 0?(pa.test(d[2])&&(a=RegExp("</"+d[2],"g")),o=lt):d[3]!==void 0&&(o=lt):o===lt?d[0]===">"?(o=a??m0,c=-1):d[1]===void 0?c=-2:(c=o.lastIndex-d[2].length,l=d[1],o=d[3]===void 0?lt:d[3]==='"'?ca:da):o===ca||o===da?o=lt:o===ra||o===la?o=m0:(o=lt,a=void 0);const v=o===lt&&s[r+1].startsWith("/>")?" ":"";h+=o===m0?n+zn:c>=0?(i.push(l),n.slice(0,c)+u1+n.slice(c)+Y+v):n+Y+(c===-2?(i.push(void 0),r):v)}return[ga(s,h+(s[e]||"<?>")+(t===2?"</svg>":"")),i]};let f1=class Yo{constructor({strings:t,_$litType$:e},i){let a;this.parts=[];let h=0,o=0;const r=t.length-1,n=this.parts,[l,d]=xn(t,e);if(this.el=Yo.createElement(l,i),dt.currentNode=this.el.content,e===2){const c=this.el.content,p=c.firstChild;p.remove(),c.append(...p.childNodes)}for(;(a=dt.nextNode())!==null&&n.length<r;){if(a.nodeType===1){if(a.hasAttributes()){const c=[];for(const p of a.getAttributeNames())if(p.endsWith(u1)||p.startsWith(Y)){const v=d[o++];if(c.push(p),v!==void 0){const g=a.getAttribute(v.toLowerCase()+u1).split(Y),m=/([.?@])?(.*)/.exec(v);n.push({type:1,index:h,name:m[2],strings:g,ctor:m[1]==="."?wn:m[1]==="?"?$n:m[1]==="@"?En:ie})}else n.push({type:6,index:h})}for(const p of c)a.removeAttribute(p)}if(pa.test(a.tagName)){const c=a.textContent.split(Y),p=c.length-1;if(p>0){a.textContent=Ot?Ot.emptyScript:"";for(let v=0;v<p;v++)a.append(c[v],u0()),dt.nextNode(),n.push({type:2,index:++h});a.append(c[p],u0())}}}else if(a.nodeType===8)if(a.data===oa)n.push({type:2,index:h});else{let c=-1;for(;(c=a.data.indexOf(Y,c+1))!==-1;)n.push({type:7,index:h}),c+=Y.length-1}h++}}static createElement(t,e){const i=rt.createElement("template");return i.innerHTML=t,i}};function Ft(s,t,e=s,i){var a,h,o,r;if(t===Rt)return t;let n=i!==void 0?(a=e._$Co)===null||a===void 0?void 0:a[i]:e._$Cl;const l=g0(t)?void 0:t._$litDirective$;return(n==null?void 0:n.constructor)!==l&&((h=n==null?void 0:n._$AO)===null||h===void 0||h.call(n,!1),l===void 0?n=void 0:(n=new l(s),n._$AT(s,e,i)),i!==void 0?((o=(r=e)._$Co)!==null&&o!==void 0?o:r._$Co=[])[i]=n:e._$Cl=n),n!==void 0&&(t=Ft(s,n._$AS(s,t.values),n,i)),t}let An=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:a}=this._$AD,h=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:rt).importNode(i,!0);dt.currentNode=h;let o=dt.nextNode(),r=0,n=0,l=a[0];for(;l!==void 0;){if(r===l.index){let d;l.type===2?d=new _1(o,o.nextSibling,this,t):l.type===1?d=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(d=new Sn(o,this,t)),this._$AV.push(d),l=a[++n]}r!==(l==null?void 0:l.index)&&(o=dt.nextNode(),r++)}return dt.currentNode=rt,h}v(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},_1=class Go{constructor(t,e,i,a){var h;this.type=2,this._$AH=x,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=a,this._$Cp=(h=a==null?void 0:a.isConnected)===null||h===void 0||h}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Ft(this,t,e),g0(t)?t===x||t==null||t===""?(this._$AH!==x&&this._$AR(),this._$AH=x):t!==this._$AH&&t!==Rt&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):bn(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==x&&g0(this._$AH)?this._$AA.nextSibling.data=t:this.$(rt.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:a}=t,h=typeof a=="number"?this._$AC(t):(a.el===void 0&&(a.el=f1.createElement(ga(a.h,a.h[0]),this.options)),a);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===h)this._$AH.v(i);else{const o=new An(h,this),r=o.u(this.options);o.v(i),this.$(r),this._$AH=o}}_$AC(t){let e=ua.get(t.strings);return e===void 0&&ua.set(t.strings,e=new f1(t)),e}T(t){na(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,a=0;for(const h of t)a===e.length?e.push(i=new Go(this.k(u0()),this.k(u0()),this,this.options)):i=e[a],i._$AI(h),a++;a<e.length&&(this._$AR(i&&i._$AB.nextSibling,a),e.length=a)}_$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 a=t.nextSibling;t.remove(),t=a}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}},ie=class{constructor(t,e,i,a,h){this.type=1,this._$AH=x,this._$AN=void 0,this.element=t,this.name=e,this._$AM=a,this.options=h,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=x}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,a){const h=this.strings;let o=!1;if(h===void 0)t=Ft(this,t,e,0),o=!g0(t)||t!==this._$AH&&t!==Rt,o&&(this._$AH=t);else{const r=t;let n,l;for(t=h[0],n=0;n<h.length-1;n++)l=Ft(this,r[i+n],e,n),l===Rt&&(l=this._$AH[n]),o||(o=!g0(l)||l!==this._$AH[n]),l===x?t=x:t!==x&&(t+=(l??"")+h[n+1]),this._$AH[n]=l}o&&!a&&this.j(t)}j(t){t===x?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},wn=class extends ie{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===x?void 0:t}};const Cn=Ot?Ot.emptyScript:"";let $n=class extends ie{constructor(){super(...arguments),this.type=4}j(t){t&&t!==x?this.element.setAttribute(this.name,Cn):this.element.removeAttribute(this.name)}},En=class extends ie{constructor(t,e,i,a,h){super(t,e,i,a,h),this.type=5}_$AI(t,e=this){var i;if((t=(i=Ft(this,t,e,0))!==null&&i!==void 0?i:x)===Rt)return;const a=this._$AH,h=t===x&&a!==x||t.capture!==a.capture||t.once!==a.once||t.passive!==a.passive,o=t!==x&&(a===x||h);h&&this.element.removeEventListener(this.name,this,a),o&&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)}},Sn=class{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){Ft(this,t)}};const ma=ee.litHtmlPolyfillSupport;ma==null||ma(f1,_1),((v1=ee.litHtmlVersions)!==null&&v1!==void 0?v1:ee.litHtmlVersions=[]).push("2.8.0");const M1=(s,t,e)=>{var i,a;const h=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:t;let o=h._$litPart$;if(o===void 0){const r=(a=e==null?void 0:e.renderBefore)!==null&&a!==void 0?a:null;h._$litPart$=o=new _1(t.insertBefore(u0(),r),r,void 0,e??{})}return o._$AI(s),o};/**
22
22
  * @license
23
23
  * Copyright 2017 Google LLC
24
24
  * SPDX-License-Identifier: BSD-3-Clause
@@ -77,7 +77,7 @@
77
77
  \f\r](?:([^\\s"'>=/]+)([
78
78
  \f\r]*=[
79
79
  \f\r]*(?:[^
80
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ca=/'/g,wa=/"/g,$a=/^(?:script|style|textarea|title)$/i,pt=Symbol.for("lit-noChange"),C=Symbol.for("lit-nothing"),Ea=new WeakMap,Bt=Vt.createTreeWalker(Vt,129,null,!1),Hn=(s,t)=>{const e=s.length-1,i=[];let a,h=t===2?"<svg>":"",o=_0;for(let n=0;n<e;n++){const l=s[n];let d,c,p=-1,v=0;for(;v<l.length&&(o.lastIndex=v,c=o.exec(l),c!==null);)v=o.lastIndex,o===_0?c[1]==="!--"?o=xa:c[1]!==void 0?o=Aa:c[2]!==void 0?($a.test(c[2])&&(a=RegExp("</"+c[2],"g")),o=ct):c[3]!==void 0&&(o=ct):o===ct?c[0]===">"?(o=a??_0,p=-1):c[1]===void 0?p=-2:(p=o.lastIndex-c[2].length,d=c[1],o=c[3]===void 0?ct:c[3]==='"'?wa:Ca):o===wa||o===Ca?o=ct:o===xa||o===Aa?o=_0:(o=ct,a=void 0);const g=o===ct&&s[n+1].startsWith("/>")?" ":"";h+=o===_0?l+Nn:p>=0?(i.push(d),l.slice(0,p)+"$lit$"+l.slice(p)+G+g):l+G+(p===-2?(i.push(void 0),n):g)}const r=h+(s[e]||"<?>")+(t===2?"</svg>":"");if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return[za!==void 0?za.createHTML(r):r,i]};let x1=class Ko{constructor({strings:t,_$litType$:e},i){let a;this.parts=[];let h=0,o=0;const r=t.length-1,n=this.parts,[l,d]=Hn(t,e);if(this.el=Ko.createElement(l,i),Bt.currentNode=this.el.content,e===2){const c=this.el.content,p=c.firstChild;p.remove(),c.append(...p.childNodes)}for(;(a=Bt.nextNode())!==null&&n.length<r;){if(a.nodeType===1){if(a.hasAttributes()){const c=[];for(const p of a.getAttributeNames())if(p.endsWith("$lit$")||p.startsWith(G)){const v=d[o++];if(c.push(p),v!==void 0){const g=a.getAttribute(v.toLowerCase()+"$lit$").split(G),m=/([.?@])?(.*)/.exec(v);n.push({type:1,index:h,name:m[2],strings:g,ctor:m[1]==="."?Rn:m[1]==="?"?Dn:m[1]==="@"?Vn:he})}else n.push({type:6,index:h})}for(const p of c)a.removeAttribute(p)}if($a.test(a.tagName)){const c=a.textContent.split(G),p=c.length-1;if(p>0){a.textContent=Dt?Dt.emptyScript:"";for(let v=0;v<p;v++)a.append(c[v],se()),Bt.nextNode(),n.push({type:2,index:++h});a.append(c[p],se())}}}else if(a.nodeType===8)if(a.data===ba)n.push({type:2,index:h});else{let c=-1;for(;(c=a.data.indexOf(G,c+1))!==-1;)n.push({type:7,index:h}),c+=G.length-1}h++}}static createElement(t,e){const i=Vt.createElement("template");return i.innerHTML=t,i}};function Ut(s,t,e=s,i){var a,h,o,r;if(t===pt)return t;let n=i!==void 0?(a=e._$Cl)===null||a===void 0?void 0:a[i]:e._$Cu;const l=f0(t)?void 0:t._$litDirective$;return(n==null?void 0:n.constructor)!==l&&((h=n==null?void 0:n._$AO)===null||h===void 0||h.call(n,!1),l===void 0?n=void 0:(n=new l(s),n._$AT(s,e,i)),i!==void 0?((o=(r=e)._$Cl)!==null&&o!==void 0?o:r._$Cl=[])[i]=n:e._$Cu=n),n!==void 0&&(t=Ut(s,n._$AS(s,t.values),n,i)),t}let On=class{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:a}=this._$AD,h=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:Vt).importNode(i,!0);Bt.currentNode=h;let o=Bt.nextNode(),r=0,n=0,l=a[0];for(;l!==void 0;){if(r===l.index){let d;l.type===2?d=new Sa(o,o.nextSibling,this,t):l.type===1?d=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(d=new Bn(o,this,t)),this.v.push(d),l=a[++n]}r!==(l==null?void 0:l.index)&&(o=Bt.nextNode(),r++)}return h}m(t){let e=0;for(const i of this.v)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},Sa=class Jo{constructor(t,e,i,a){var h;this.type=2,this._$AH=C,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=a,this._$C_=(h=a==null?void 0:a.isConnected)===null||h===void 0||h}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$C_}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=Ut(this,t,e),f0(t)?t===C||t==null||t===""?(this._$AH!==C&&this._$AR(),this._$AH=C):t!==this._$AH&&t!==pt&&this.$(t):t._$litType$!==void 0?this.T(t):t.nodeType!==void 0?this.k(t):Ln(t)?this.O(t):this.$(t)}S(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}$(t){this._$AH!==C&&f0(this._$AH)?this._$AA.nextSibling.data=t:this.k(Vt.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:a}=t,h=typeof a=="number"?this._$AC(t):(a.el===void 0&&(a.el=x1.createElement(a.h,this.options)),a);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===h)this._$AH.m(i);else{const o=new On(h,this),r=o.p(this.options);o.m(i),this.k(r),this._$AH=o}}_$AC(t){let e=Ea.get(t.strings);return e===void 0&&Ea.set(t.strings,e=new x1(t)),e}O(t){ya(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,a=0;for(const h of t)a===e.length?e.push(i=new Jo(this.S(se()),this.S(se()),this,this.options)):i=e[a],i._$AI(h),a++;a<e.length&&(this._$AR(i&&i._$AB.nextSibling,a),e.length=a)}_$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 a=t.nextSibling;t.remove(),t=a}}setConnected(t){var e;this._$AM===void 0&&(this._$C_=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}},he=class{constructor(t,e,i,a,h){this.type=1,this._$AH=C,this._$AN=void 0,this.element=t,this.name=e,this._$AM=a,this.options=h,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=C}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,a){const h=this.strings;let o=!1;if(h===void 0)t=Ut(this,t,e,0),o=!f0(t)||t!==this._$AH&&t!==pt,o&&(this._$AH=t);else{const r=t;let n,l;for(t=h[0],n=0;n<h.length-1;n++)l=Ut(this,r[i+n],e,n),l===pt&&(l=this._$AH[n]),o||(o=!f0(l)||l!==this._$AH[n]),l===C?t=C:t!==C&&(t+=(l??"")+h[n+1]),this._$AH[n]=l}o&&!a&&this.P(t)}P(t){t===C?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Rn=class extends he{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===C?void 0:t}};const Fn=Dt?Dt.emptyScript:"";let Dn=class extends he{constructor(){super(...arguments),this.type=4}P(t){t&&t!==C?this.element.setAttribute(this.name,Fn):this.element.removeAttribute(this.name)}},Vn=class extends he{constructor(t,e,i,a,h){super(t,e,i,a,h),this.type=5}_$AI(t,e=this){var i;if((t=(i=Ut(this,t,e,0))!==null&&i!==void 0?i:C)===pt)return;const a=this._$AH,h=t===C&&a!==C||t.capture!==a.capture||t.once!==a.once||t.passive!==a.passive,o=t!==C&&(a===C||h);h&&this.element.removeEventListener(this.name,this,a),o&&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)}},Bn=class{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){Ut(this,t)}};const ka=ae.litHtmlPolyfillSupport;ka==null||ka(x1,Sa),((y1=ae.litHtmlVersions)!==null&&y1!==void 0?y1:ae.litHtmlVersions=[]).push("2.3.1");/**
80
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),wa=/'/g,Ca=/"/g,$a=/^(?:script|style|textarea|title)$/i,pt=Symbol.for("lit-noChange"),w=Symbol.for("lit-nothing"),Ea=new WeakMap,Bt=Vt.createTreeWalker(Vt,129,null,!1),Hn=(s,t)=>{const e=s.length-1,i=[];let a,h=t===2?"<svg>":"",o=_0;for(let n=0;n<e;n++){const l=s[n];let d,c,p=-1,v=0;for(;v<l.length&&(o.lastIndex=v,c=o.exec(l),c!==null);)v=o.lastIndex,o===_0?c[1]==="!--"?o=xa:c[1]!==void 0?o=Aa:c[2]!==void 0?($a.test(c[2])&&(a=RegExp("</"+c[2],"g")),o=ct):c[3]!==void 0&&(o=ct):o===ct?c[0]===">"?(o=a??_0,p=-1):c[1]===void 0?p=-2:(p=o.lastIndex-c[2].length,d=c[1],o=c[3]===void 0?ct:c[3]==='"'?Ca:wa):o===Ca||o===wa?o=ct:o===xa||o===Aa?o=_0:(o=ct,a=void 0);const g=o===ct&&s[n+1].startsWith("/>")?" ":"";h+=o===_0?l+Nn:p>=0?(i.push(d),l.slice(0,p)+"$lit$"+l.slice(p)+G+g):l+G+(p===-2?(i.push(void 0),n):g)}const r=h+(s[e]||"<?>")+(t===2?"</svg>":"");if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return[za!==void 0?za.createHTML(r):r,i]};let x1=class Ko{constructor({strings:t,_$litType$:e},i){let a;this.parts=[];let h=0,o=0;const r=t.length-1,n=this.parts,[l,d]=Hn(t,e);if(this.el=Ko.createElement(l,i),Bt.currentNode=this.el.content,e===2){const c=this.el.content,p=c.firstChild;p.remove(),c.append(...p.childNodes)}for(;(a=Bt.nextNode())!==null&&n.length<r;){if(a.nodeType===1){if(a.hasAttributes()){const c=[];for(const p of a.getAttributeNames())if(p.endsWith("$lit$")||p.startsWith(G)){const v=d[o++];if(c.push(p),v!==void 0){const g=a.getAttribute(v.toLowerCase()+"$lit$").split(G),m=/([.?@])?(.*)/.exec(v);n.push({type:1,index:h,name:m[2],strings:g,ctor:m[1]==="."?Rn:m[1]==="?"?Dn:m[1]==="@"?Vn:he})}else n.push({type:6,index:h})}for(const p of c)a.removeAttribute(p)}if($a.test(a.tagName)){const c=a.textContent.split(G),p=c.length-1;if(p>0){a.textContent=Dt?Dt.emptyScript:"";for(let v=0;v<p;v++)a.append(c[v],se()),Bt.nextNode(),n.push({type:2,index:++h});a.append(c[p],se())}}}else if(a.nodeType===8)if(a.data===ba)n.push({type:2,index:h});else{let c=-1;for(;(c=a.data.indexOf(G,c+1))!==-1;)n.push({type:7,index:h}),c+=G.length-1}h++}}static createElement(t,e){const i=Vt.createElement("template");return i.innerHTML=t,i}};function Ut(s,t,e=s,i){var a,h,o,r;if(t===pt)return t;let n=i!==void 0?(a=e._$Cl)===null||a===void 0?void 0:a[i]:e._$Cu;const l=f0(t)?void 0:t._$litDirective$;return(n==null?void 0:n.constructor)!==l&&((h=n==null?void 0:n._$AO)===null||h===void 0||h.call(n,!1),l===void 0?n=void 0:(n=new l(s),n._$AT(s,e,i)),i!==void 0?((o=(r=e)._$Cl)!==null&&o!==void 0?o:r._$Cl=[])[i]=n:e._$Cu=n),n!==void 0&&(t=Ut(s,n._$AS(s,t.values),n,i)),t}let On=class{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:a}=this._$AD,h=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:Vt).importNode(i,!0);Bt.currentNode=h;let o=Bt.nextNode(),r=0,n=0,l=a[0];for(;l!==void 0;){if(r===l.index){let d;l.type===2?d=new Sa(o,o.nextSibling,this,t):l.type===1?d=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(d=new Bn(o,this,t)),this.v.push(d),l=a[++n]}r!==(l==null?void 0:l.index)&&(o=Bt.nextNode(),r++)}return h}m(t){let e=0;for(const i of this.v)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},Sa=class Jo{constructor(t,e,i,a){var h;this.type=2,this._$AH=w,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=a,this._$C_=(h=a==null?void 0:a.isConnected)===null||h===void 0||h}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$C_}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=Ut(this,t,e),f0(t)?t===w||t==null||t===""?(this._$AH!==w&&this._$AR(),this._$AH=w):t!==this._$AH&&t!==pt&&this.$(t):t._$litType$!==void 0?this.T(t):t.nodeType!==void 0?this.k(t):Ln(t)?this.O(t):this.$(t)}S(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}$(t){this._$AH!==w&&f0(this._$AH)?this._$AA.nextSibling.data=t:this.k(Vt.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:a}=t,h=typeof a=="number"?this._$AC(t):(a.el===void 0&&(a.el=x1.createElement(a.h,this.options)),a);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===h)this._$AH.m(i);else{const o=new On(h,this),r=o.p(this.options);o.m(i),this.k(r),this._$AH=o}}_$AC(t){let e=Ea.get(t.strings);return e===void 0&&Ea.set(t.strings,e=new x1(t)),e}O(t){ya(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,a=0;for(const h of t)a===e.length?e.push(i=new Jo(this.S(se()),this.S(se()),this,this.options)):i=e[a],i._$AI(h),a++;a<e.length&&(this._$AR(i&&i._$AB.nextSibling,a),e.length=a)}_$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 a=t.nextSibling;t.remove(),t=a}}setConnected(t){var e;this._$AM===void 0&&(this._$C_=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}},he=class{constructor(t,e,i,a,h){this.type=1,this._$AH=w,this._$AN=void 0,this.element=t,this.name=e,this._$AM=a,this.options=h,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=w}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,a){const h=this.strings;let o=!1;if(h===void 0)t=Ut(this,t,e,0),o=!f0(t)||t!==this._$AH&&t!==pt,o&&(this._$AH=t);else{const r=t;let n,l;for(t=h[0],n=0;n<h.length-1;n++)l=Ut(this,r[i+n],e,n),l===pt&&(l=this._$AH[n]),o||(o=!f0(l)||l!==this._$AH[n]),l===w?t=w:t!==w&&(t+=(l??"")+h[n+1]),this._$AH[n]=l}o&&!a&&this.P(t)}P(t){t===w?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Rn=class extends he{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===w?void 0:t}};const Fn=Dt?Dt.emptyScript:"";let Dn=class extends he{constructor(){super(...arguments),this.type=4}P(t){t&&t!==w?this.element.setAttribute(this.name,Fn):this.element.removeAttribute(this.name)}},Vn=class extends he{constructor(t,e,i,a,h){super(t,e,i,a,h),this.type=5}_$AI(t,e=this){var i;if((t=(i=Ut(this,t,e,0))!==null&&i!==void 0?i:w)===pt)return;const a=this._$AH,h=t===w&&a!==w||t.capture!==a.capture||t.once!==a.once||t.passive!==a.passive,o=t!==w&&(a===w||h);h&&this.element.removeEventListener(this.name,this,a),o&&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)}},Bn=class{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){Ut(this,t)}};const ka=ae.litHtmlPolyfillSupport;ka==null||ka(x1,Sa),((y1=ae.litHtmlVersions)!==null&&y1!==void 0?y1:ae.litHtmlVersions=[]).push("2.3.1");/**
81
81
  * @license
82
82
  * Copyright 2017 Google LLC
83
83
  * SPDX-License-Identifier: BSD-3-Clause
@@ -85,11 +85,11 @@
85
85
  * @license
86
86
  * Copyright 2017 Google LLC
87
87
  * SPDX-License-Identifier: BSD-3-Clause
88
- */let A1=class extends Pa{constructor(t){if(super(t),this.it=C,t.type!==Ta.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===C||t==null)return this._t=void 0,this.it=t;if(t===pt)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 e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}};A1.directiveName="unsafeHTML",A1.resultType=1;const oe=Ia(A1),Un={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"};function jn(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Na={exports:{}};/*!
88
+ */let A1=class extends Pa{constructor(t){if(super(t),this.it=w,t.type!==Ta.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===w||t==null)return this._t=void 0,this.it=t;if(t===pt)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 e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}};A1.directiveName="unsafeHTML",A1.resultType=1;const oe=Ia(A1),Un={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"};function jn(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Na={exports:{}};/*!
89
89
  Copyright (c) 2018 Jed Watson.
90
90
  Licensed under the MIT License (MIT), see
91
91
  http://jedwatson.github.io/classnames
92
- */(function(s){(function(){var t={}.hasOwnProperty;function e(){for(var h="",o=0;o<arguments.length;o++){var r=arguments[o];r&&(h=a(h,i(r)))}return h}function i(h){if(typeof h=="string"||typeof h=="number")return h;if(typeof h!="object")return"";if(Array.isArray(h))return e.apply(null,h);if(h.toString!==Object.prototype.toString&&!h.toString.toString().includes("[native code]"))return h.toString();var o="";for(var r in h)t.call(h,r)&&h[r]&&(o=a(o,r));return o}function a(h,o){return o?h?h+" "+o:h+o:h}s.exports?(e.default=e,s.exports=e):window.classNames=e})()})(Na);var qn=Na.exports;const vt=jn(qn);function Wn(s,t,e,i){const a=vt({base:!0,[s]:s,[e]:e,[i]:i});return{tag:Un[t||s]||"p",classNames:a}}const jt="#01A49A",qt="#01736C",La="#E6F6F5",Zn="#4DBFB8",Yn="#CCEDEB",j="#5143D5",Ha="#392F95",K="#EEECFB",ne="#857BE2",Oa="#CBC7F2",Gn="#DCD9F7",Ra="#203442",re="#364855",C1="#79858E",Fa="#909AA1",Kn="#D2D6D9",w1="#E9EBEC",y="#FFFFFF",Da="#F2F5F9",Wt="#E53935",Va="#FFEBEE",$1="#B71C1C",E1="#FFCDD2",Jn="#FFB300",Ba="#FFF8E1",Qn="#FF8F00",Xn="#FFECB3",tr="#7CB342",Ua="#F1F8E9",er="#33691E",ir="#DCEDC8",ar="0 2px 2px rgba(1, 164, 154, 0.25)",sr="0 4px 10px rgba(1, 115, 108, 0.35)",hr="0 1px 2px rgba(1, 115, 108, 0.5)",or="0 2px 2px rgba(121, 133, 142, 0.25)",nr="0 2px 2px rgba(229, 57, 53, 0.25)",rr="0 4px 10px rgba(183, 28, 28, 0.35)",lr="0 1px 2px rgba(183, 28, 28, 0.5)",dr="0 2px 2px rgba(121, 133, 142, 0.25)",cr="Rubik",le="#FFFFFF",pr="#E9EBEC",ja="#79858E",vr="#364855",ur=_`
92
+ */(function(s){(function(){var t={}.hasOwnProperty;function e(){for(var h="",o=0;o<arguments.length;o++){var r=arguments[o];r&&(h=a(h,i(r)))}return h}function i(h){if(typeof h=="string"||typeof h=="number")return h;if(typeof h!="object")return"";if(Array.isArray(h))return e.apply(null,h);if(h.toString!==Object.prototype.toString&&!h.toString.toString().includes("[native code]"))return h.toString();var o="";for(var r in h)t.call(h,r)&&h[r]&&(o=a(o,r));return o}function a(h,o){return o?h?h+" "+o:h+o:h}s.exports?(e.default=e,s.exports=e):window.classNames=e})()})(Na);var qn=Na.exports;const vt=jn(qn);function Wn(s,t,e,i){const a=vt({base:!0,[s]:s,[e]:e,[i]:i});return{tag:Un[t||s]||"p",classNames:a}}const jt="#01A49A",qt="#01736C",La="#E6F6F5",Zn="#4DBFB8",Yn="#CCEDEB",j="#5143D5",Ha="#392F95",K="#EEECFB",ne="#857BE2",Oa="#CBC7F2",Gn="#DCD9F7",Ra="#203442",re="#364855",w1="#79858E",Fa="#909AA1",Kn="#D2D6D9",C1="#E9EBEC",y="#FFFFFF",Da="#F2F5F9",Wt="#E53935",Va="#FFEBEE",$1="#B71C1C",E1="#FFCDD2",Jn="#FFB300",Ba="#FFF8E1",Qn="#FF8F00",Xn="#FFECB3",tr="#7CB342",Ua="#F1F8E9",er="#33691E",ir="#DCEDC8",ar="0 2px 2px rgba(1, 164, 154, 0.25)",sr="0 4px 10px rgba(1, 115, 108, 0.35)",hr="0 1px 2px rgba(1, 115, 108, 0.5)",or="0 2px 2px rgba(121, 133, 142, 0.25)",nr="0 2px 2px rgba(229, 57, 53, 0.25)",rr="0 4px 10px rgba(183, 28, 28, 0.35)",lr="0 1px 2px rgba(183, 28, 28, 0.5)",dr="0 2px 2px rgba(121, 133, 142, 0.25)",cr="Rubik",le="#FFFFFF",pr="#E9EBEC",ja="#79858E",vr="#364855",ur=_`
93
93
  html {
94
94
  font-size: var(--eloisa-ds-font-size-base, 16px);
95
95
  }
@@ -659,8 +659,8 @@
659
659
  margin-left: 8px;
660
660
  }
661
661
 
662
- ${D({variant:"primary1",color:y,colorHover:y,colorActive:y,bgColor:jt,bgColorHover:Zn,bgColorActive:qt,bgColorDisabled:w1,boxShadow:ar,boxShadowHover:sr,boxShadowPressed:hr,boxShadowDisabled:or})}
663
- ${D({variant:"primary2",color:y,colorHover:$1,colorActive:y,bgColor:Wt,bgColorHover:E1,bgColorActive:$1,bgColorDisabled:w1,boxShadow:nr,boxShadowHover:rr,boxShadowPressed:lr,boxShadowDisabled:dr})}
662
+ ${D({variant:"primary1",color:y,colorHover:y,colorActive:y,bgColor:jt,bgColorHover:Zn,bgColorActive:qt,bgColorDisabled:C1,boxShadow:ar,boxShadowHover:sr,boxShadowPressed:hr,boxShadowDisabled:or})}
663
+ ${D({variant:"primary2",color:y,colorHover:$1,colorActive:y,bgColor:Wt,bgColorHover:E1,bgColorActive:$1,bgColorDisabled:C1,boxShadow:nr,boxShadowHover:rr,boxShadowPressed:lr,boxShadowDisabled:dr})}
664
664
  ${D({variant:"outline1",color:qt,colorHover:qt,colorActive:y,bgColor:"transparent",bgColorHover:La,bgColorActive:jt,bgColorDisabled:"transparent"})}
665
665
  .outline1 {
666
666
  border: 1px solid ${u(jt)};
@@ -736,25 +736,25 @@
736
736
 
737
737
  ${D({variant:"text2",color:re,colorHover:vr,colorActive:re,bgColor:y,bgColorHover:pr,bgColorActive:Kn,bgColorDisabled:y})}
738
738
  .text2.loading {
739
- background-color: ${u(C1)};
739
+ background-color: ${u(w1)};
740
740
  }
741
741
 
742
742
  .text2.loading > div {
743
- border-color: ${u(C1)};
743
+ border-color: ${u(w1)};
744
744
  border-top-color: ${u(y)};
745
745
  border-bottom-color: ${u(y)};
746
746
  border-right-color: ${u(y)};
747
747
  }
748
748
 
749
749
  .text2:disabled.loading > div {
750
- border-color: ${u(C1)};
750
+ border-color: ${u(w1)};
751
751
  border-top-color: ${u(y)};
752
752
  border-bottom-color: ${u(y)};
753
753
  border-right-color: ${u(y)};
754
754
  }
755
755
 
756
756
  ${D({variant:"text3",color:j,colorHover:j,colorActive:le,bgColor:y,bgColorHover:K,bgColorActive:ne,bgColorDisabled:y})}
757
- ${D({variant:"icon1",color:j,colorHover:j,colorActive:le,bgColor:K,bgColorHover:Oa,bgColorActive:ne,bgColorDisabled:w1})}
757
+ ${D({variant:"icon1",color:j,colorHover:j,colorActive:le,bgColor:K,bgColorHover:Oa,bgColorActive:ne,bgColorDisabled:C1})}
758
758
  .icon1 {
759
759
  height: 32px;
760
760
  min-width: 32px;
@@ -1330,7 +1330,7 @@
1330
1330
  * SPDX-License-Identifier: BSD-3-Clause
1331
1331
  */var k1;const ue=window,Zt=ue.trustedTypes,Ga=Zt?Zt.createPolicy("lit-html",{createHTML:s=>s}):void 0,T1="$lit$",J=`lit$${(Math.random()+"").slice(9)}$`,Ka="?"+J,yr=`<${Ka}>`,ut=document,ge=()=>ut.createComment(""),M0=s=>s===null||typeof s!="object"&&typeof s!="function",Ja=Array.isArray,xr=s=>Ja(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",I1=`[
1332
1332
  \f\r]`,z0=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Qa=/-->/g,Xa=/>/g,gt=RegExp(`>|${I1}(?:([^\\s"'>=/]+)(${I1}*=${I1}*(?:[^
1333
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ts=/'/g,es=/"/g,is=/^(?:script|style|textarea|title)$/i,b0=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),as=new WeakMap,mt=ut.createTreeWalker(ut,129,null,!1);function ss(s,t){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ga!==void 0?Ga.createHTML(t):t}const Ar=(s,t)=>{const e=s.length-1,i=[];let a,h=t===2?"<svg>":"",o=z0;for(let r=0;r<e;r++){const n=s[r];let l,d,c=-1,p=0;for(;p<n.length&&(o.lastIndex=p,d=o.exec(n),d!==null);)p=o.lastIndex,o===z0?d[1]==="!--"?o=Qa:d[1]!==void 0?o=Xa:d[2]!==void 0?(is.test(d[2])&&(a=RegExp("</"+d[2],"g")),o=gt):d[3]!==void 0&&(o=gt):o===gt?d[0]===">"?(o=a??z0,c=-1):d[1]===void 0?c=-2:(c=o.lastIndex-d[2].length,l=d[1],o=d[3]===void 0?gt:d[3]==='"'?es:ts):o===es||o===ts?o=gt:o===Qa||o===Xa?o=z0:(o=gt,a=void 0);const v=o===gt&&s[r+1].startsWith("/>")?" ":"";h+=o===z0?n+yr:c>=0?(i.push(l),n.slice(0,c)+T1+n.slice(c)+J+v):n+J+(c===-2?(i.push(void 0),r):v)}return[ss(s,h+(s[e]||"<?>")+(t===2?"</svg>":"")),i]};let P1=class Qo{constructor({strings:t,_$litType$:e},i){let a;this.parts=[];let h=0,o=0;const r=t.length-1,n=this.parts,[l,d]=Ar(t,e);if(this.el=Qo.createElement(l,i),mt.currentNode=this.el.content,e===2){const c=this.el.content,p=c.firstChild;p.remove(),c.append(...p.childNodes)}for(;(a=mt.nextNode())!==null&&n.length<r;){if(a.nodeType===1){if(a.hasAttributes()){const c=[];for(const p of a.getAttributeNames())if(p.endsWith(T1)||p.startsWith(J)){const v=d[o++];if(c.push(p),v!==void 0){const g=a.getAttribute(v.toLowerCase()+T1).split(J),m=/([.?@])?(.*)/.exec(v);n.push({type:1,index:h,name:m[2],strings:g,ctor:m[1]==="."?wr:m[1]==="?"?Er:m[1]==="@"?Sr:me})}else n.push({type:6,index:h})}for(const p of c)a.removeAttribute(p)}if(is.test(a.tagName)){const c=a.textContent.split(J),p=c.length-1;if(p>0){a.textContent=Zt?Zt.emptyScript:"";for(let v=0;v<p;v++)a.append(c[v],ge()),mt.nextNode(),n.push({type:2,index:++h});a.append(c[p],ge())}}}else if(a.nodeType===8)if(a.data===Ka)n.push({type:2,index:h});else{let c=-1;for(;(c=a.data.indexOf(J,c+1))!==-1;)n.push({type:7,index:h}),c+=J.length-1}h++}}static createElement(t,e){const i=ut.createElement("template");return i.innerHTML=t,i}};function Yt(s,t,e=s,i){var a,h,o,r;if(t===b0)return t;let n=i!==void 0?(a=e._$Co)===null||a===void 0?void 0:a[i]:e._$Cl;const l=M0(t)?void 0:t._$litDirective$;return(n==null?void 0:n.constructor)!==l&&((h=n==null?void 0:n._$AO)===null||h===void 0||h.call(n,!1),l===void 0?n=void 0:(n=new l(s),n._$AT(s,e,i)),i!==void 0?((o=(r=e)._$Co)!==null&&o!==void 0?o:r._$Co=[])[i]=n:e._$Cl=n),n!==void 0&&(t=Yt(s,n._$AS(s,t.values),n,i)),t}let Cr=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:a}=this._$AD,h=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:ut).importNode(i,!0);mt.currentNode=h;let o=mt.nextNode(),r=0,n=0,l=a[0];for(;l!==void 0;){if(r===l.index){let d;l.type===2?d=new hs(o,o.nextSibling,this,t):l.type===1?d=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(d=new kr(o,this,t)),this._$AV.push(d),l=a[++n]}r!==(l==null?void 0:l.index)&&(o=mt.nextNode(),r++)}return mt.currentNode=ut,h}v(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},hs=class Xo{constructor(t,e,i,a){var h;this.type=2,this._$AH=T,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=a,this._$Cp=(h=a==null?void 0:a.isConnected)===null||h===void 0||h}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Yt(this,t,e),M0(t)?t===T||t==null||t===""?(this._$AH!==T&&this._$AR(),this._$AH=T):t!==this._$AH&&t!==b0&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):xr(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==T&&M0(this._$AH)?this._$AA.nextSibling.data=t:this.$(ut.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:a}=t,h=typeof a=="number"?this._$AC(t):(a.el===void 0&&(a.el=P1.createElement(ss(a.h,a.h[0]),this.options)),a);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===h)this._$AH.v(i);else{const o=new Cr(h,this),r=o.u(this.options);o.v(i),this.$(r),this._$AH=o}}_$AC(t){let e=as.get(t.strings);return e===void 0&&as.set(t.strings,e=new P1(t)),e}T(t){Ja(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,a=0;for(const h of t)a===e.length?e.push(i=new Xo(this.k(ge()),this.k(ge()),this,this.options)):i=e[a],i._$AI(h),a++;a<e.length&&(this._$AR(i&&i._$AB.nextSibling,a),e.length=a)}_$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 a=t.nextSibling;t.remove(),t=a}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}},me=class{constructor(t,e,i,a,h){this.type=1,this._$AH=T,this._$AN=void 0,this.element=t,this.name=e,this._$AM=a,this.options=h,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=T}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,a){const h=this.strings;let o=!1;if(h===void 0)t=Yt(this,t,e,0),o=!M0(t)||t!==this._$AH&&t!==b0,o&&(this._$AH=t);else{const r=t;let n,l;for(t=h[0],n=0;n<h.length-1;n++)l=Yt(this,r[i+n],e,n),l===b0&&(l=this._$AH[n]),o||(o=!M0(l)||l!==this._$AH[n]),l===T?t=T:t!==T&&(t+=(l??"")+h[n+1]),this._$AH[n]=l}o&&!a&&this.j(t)}j(t){t===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},wr=class extends me{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===T?void 0:t}};const $r=Zt?Zt.emptyScript:"";let Er=class extends me{constructor(){super(...arguments),this.type=4}j(t){t&&t!==T?this.element.setAttribute(this.name,$r):this.element.removeAttribute(this.name)}},Sr=class extends me{constructor(t,e,i,a,h){super(t,e,i,a,h),this.type=5}_$AI(t,e=this){var i;if((t=(i=Yt(this,t,e,0))!==null&&i!==void 0?i:T)===b0)return;const a=this._$AH,h=t===T&&a!==T||t.capture!==a.capture||t.once!==a.once||t.passive!==a.passive,o=t!==T&&(a===T||h);h&&this.element.removeEventListener(this.name,this,a),o&&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)}},kr=class{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){Yt(this,t)}};const os=ue.litHtmlPolyfillSupport;os==null||os(P1,hs),((k1=ue.litHtmlVersions)!==null&&k1!==void 0?k1:ue.litHtmlVersions=[]).push("2.8.0");/**
1333
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ts=/'/g,es=/"/g,is=/^(?:script|style|textarea|title)$/i,b0=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),as=new WeakMap,mt=ut.createTreeWalker(ut,129,null,!1);function ss(s,t){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ga!==void 0?Ga.createHTML(t):t}const Ar=(s,t)=>{const e=s.length-1,i=[];let a,h=t===2?"<svg>":"",o=z0;for(let r=0;r<e;r++){const n=s[r];let l,d,c=-1,p=0;for(;p<n.length&&(o.lastIndex=p,d=o.exec(n),d!==null);)p=o.lastIndex,o===z0?d[1]==="!--"?o=Qa:d[1]!==void 0?o=Xa:d[2]!==void 0?(is.test(d[2])&&(a=RegExp("</"+d[2],"g")),o=gt):d[3]!==void 0&&(o=gt):o===gt?d[0]===">"?(o=a??z0,c=-1):d[1]===void 0?c=-2:(c=o.lastIndex-d[2].length,l=d[1],o=d[3]===void 0?gt:d[3]==='"'?es:ts):o===es||o===ts?o=gt:o===Qa||o===Xa?o=z0:(o=gt,a=void 0);const v=o===gt&&s[r+1].startsWith("/>")?" ":"";h+=o===z0?n+yr:c>=0?(i.push(l),n.slice(0,c)+T1+n.slice(c)+J+v):n+J+(c===-2?(i.push(void 0),r):v)}return[ss(s,h+(s[e]||"<?>")+(t===2?"</svg>":"")),i]};let P1=class Qo{constructor({strings:t,_$litType$:e},i){let a;this.parts=[];let h=0,o=0;const r=t.length-1,n=this.parts,[l,d]=Ar(t,e);if(this.el=Qo.createElement(l,i),mt.currentNode=this.el.content,e===2){const c=this.el.content,p=c.firstChild;p.remove(),c.append(...p.childNodes)}for(;(a=mt.nextNode())!==null&&n.length<r;){if(a.nodeType===1){if(a.hasAttributes()){const c=[];for(const p of a.getAttributeNames())if(p.endsWith(T1)||p.startsWith(J)){const v=d[o++];if(c.push(p),v!==void 0){const g=a.getAttribute(v.toLowerCase()+T1).split(J),m=/([.?@])?(.*)/.exec(v);n.push({type:1,index:h,name:m[2],strings:g,ctor:m[1]==="."?Cr:m[1]==="?"?Er:m[1]==="@"?Sr:me})}else n.push({type:6,index:h})}for(const p of c)a.removeAttribute(p)}if(is.test(a.tagName)){const c=a.textContent.split(J),p=c.length-1;if(p>0){a.textContent=Zt?Zt.emptyScript:"";for(let v=0;v<p;v++)a.append(c[v],ge()),mt.nextNode(),n.push({type:2,index:++h});a.append(c[p],ge())}}}else if(a.nodeType===8)if(a.data===Ka)n.push({type:2,index:h});else{let c=-1;for(;(c=a.data.indexOf(J,c+1))!==-1;)n.push({type:7,index:h}),c+=J.length-1}h++}}static createElement(t,e){const i=ut.createElement("template");return i.innerHTML=t,i}};function Yt(s,t,e=s,i){var a,h,o,r;if(t===b0)return t;let n=i!==void 0?(a=e._$Co)===null||a===void 0?void 0:a[i]:e._$Cl;const l=M0(t)?void 0:t._$litDirective$;return(n==null?void 0:n.constructor)!==l&&((h=n==null?void 0:n._$AO)===null||h===void 0||h.call(n,!1),l===void 0?n=void 0:(n=new l(s),n._$AT(s,e,i)),i!==void 0?((o=(r=e)._$Co)!==null&&o!==void 0?o:r._$Co=[])[i]=n:e._$Cl=n),n!==void 0&&(t=Yt(s,n._$AS(s,t.values),n,i)),t}let wr=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:a}=this._$AD,h=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:ut).importNode(i,!0);mt.currentNode=h;let o=mt.nextNode(),r=0,n=0,l=a[0];for(;l!==void 0;){if(r===l.index){let d;l.type===2?d=new hs(o,o.nextSibling,this,t):l.type===1?d=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(d=new kr(o,this,t)),this._$AV.push(d),l=a[++n]}r!==(l==null?void 0:l.index)&&(o=mt.nextNode(),r++)}return mt.currentNode=ut,h}v(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},hs=class Xo{constructor(t,e,i,a){var h;this.type=2,this._$AH=T,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=a,this._$Cp=(h=a==null?void 0:a.isConnected)===null||h===void 0||h}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Yt(this,t,e),M0(t)?t===T||t==null||t===""?(this._$AH!==T&&this._$AR(),this._$AH=T):t!==this._$AH&&t!==b0&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):xr(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==T&&M0(this._$AH)?this._$AA.nextSibling.data=t:this.$(ut.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:a}=t,h=typeof a=="number"?this._$AC(t):(a.el===void 0&&(a.el=P1.createElement(ss(a.h,a.h[0]),this.options)),a);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===h)this._$AH.v(i);else{const o=new wr(h,this),r=o.u(this.options);o.v(i),this.$(r),this._$AH=o}}_$AC(t){let e=as.get(t.strings);return e===void 0&&as.set(t.strings,e=new P1(t)),e}T(t){Ja(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,a=0;for(const h of t)a===e.length?e.push(i=new Xo(this.k(ge()),this.k(ge()),this,this.options)):i=e[a],i._$AI(h),a++;a<e.length&&(this._$AR(i&&i._$AB.nextSibling,a),e.length=a)}_$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 a=t.nextSibling;t.remove(),t=a}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}},me=class{constructor(t,e,i,a,h){this.type=1,this._$AH=T,this._$AN=void 0,this.element=t,this.name=e,this._$AM=a,this.options=h,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=T}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,a){const h=this.strings;let o=!1;if(h===void 0)t=Yt(this,t,e,0),o=!M0(t)||t!==this._$AH&&t!==b0,o&&(this._$AH=t);else{const r=t;let n,l;for(t=h[0],n=0;n<h.length-1;n++)l=Yt(this,r[i+n],e,n),l===b0&&(l=this._$AH[n]),o||(o=!M0(l)||l!==this._$AH[n]),l===T?t=T:t!==T&&(t+=(l??"")+h[n+1]),this._$AH[n]=l}o&&!a&&this.j(t)}j(t){t===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Cr=class extends me{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===T?void 0:t}};const $r=Zt?Zt.emptyScript:"";let Er=class extends me{constructor(){super(...arguments),this.type=4}j(t){t&&t!==T?this.element.setAttribute(this.name,$r):this.element.removeAttribute(this.name)}},Sr=class extends me{constructor(t,e,i,a,h){super(t,e,i,a,h),this.type=5}_$AI(t,e=this){var i;if((t=(i=Yt(this,t,e,0))!==null&&i!==void 0?i:T)===b0)return;const a=this._$AH,h=t===T&&a!==T||t.capture!==a.capture||t.once!==a.once||t.passive!==a.passive,o=t!==T&&(a===T||h);h&&this.element.removeEventListener(this.name,this,a),o&&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)}},kr=class{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){Yt(this,t)}};const os=ue.litHtmlPolyfillSupport;os==null||os(P1,hs),((k1=ue.litHtmlVersions)!==null&&k1!==void 0?k1:ue.litHtmlVersions=[]).push("2.8.0");/**
1334
1334
  * @license
1335
1335
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
1336
1336
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1435,7 +1435,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1435
1435
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1436
1436
  Code distributed by Google as part of the polymer project is also
1437
1437
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1438
- */function D1(s){return s.indexOf(".")>=0}function _t(s){let t=s.indexOf(".");return t===-1?s:s.slice(0,t)}function hl(s,t){return s.indexOf(t+".")===0}function Me(s,t){return t.indexOf(s+".")===0}function ze(s,t,e){return t+e.slice(s.length)}function C0(s){if(Array.isArray(s)){let t=[];for(let e=0;e<s.length;e++){let i=s[e].toString().split(".");for(let a=0;a<i.length;a++)t.push(i[a])}return t.join(".")}else return s}function Ms(s){return Array.isArray(s)?C0(s).split("."):s.toString().split(".")}function O(s,t,e){let i=s,a=Ms(t);for(let h=0;h<a.length;h++){if(!i)return;let o=a[h];i=i[o]}return e&&(e.path=a.join(".")),i}function zs(s,t,e){let i=s,a=Ms(t),h=a[a.length-1];if(a.length>1){for(let o=0;o<a.length-1;o++){let r=a[o];if(i=i[r],!i)return}i[h]=e}else i[t]=e;return a.join(".")}/**
1438
+ */function D1(s){return s.indexOf(".")>=0}function _t(s){let t=s.indexOf(".");return t===-1?s:s.slice(0,t)}function hl(s,t){return s.indexOf(t+".")===0}function Me(s,t){return t.indexOf(s+".")===0}function ze(s,t,e){return t+e.slice(s.length)}function w0(s){if(Array.isArray(s)){let t=[];for(let e=0;e<s.length;e++){let i=s[e].toString().split(".");for(let a=0;a<i.length;a++)t.push(i[a])}return t.join(".")}else return s}function Ms(s){return Array.isArray(s)?w0(s).split("."):s.toString().split(".")}function O(s,t,e){let i=s,a=Ms(t);for(let h=0;h<a.length;h++){if(!i)return;let o=a[h];i=i[o]}return e&&(e.path=a.join(".")),i}function zs(s,t,e){let i=s,a=Ms(t),h=a[a.length-1];if(a.length>1){for(let o=0;o<a.length-1;o++){let r=a[o];if(i=i[r],!i)return}i[h]=e}else i[t]=e;return a.join(".")}/**
1439
1439
  @license
1440
1440
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1441
1441
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1467,7 +1467,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1467
1467
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1468
1468
  Code distributed by Google as part of the polymer project is also
1469
1469
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1470
- */const Cs={};let xe=HTMLElement.prototype;for(;xe;){let s=Object.getOwnPropertyNames(xe);for(let t=0;t<s.length;t++)Cs[s[t]]=!0;xe=Object.getPrototypeOf(xe)}const vl=window.trustedTypes?s=>trustedTypes.isHTML(s)||trustedTypes.isScript(s)||trustedTypes.isScriptURL(s):()=>!1;function ul(s,t){if(!Cs[t]){let e=s[t];e!==void 0&&(s.__data?s._setPendingProperty(t,e):(s.__dataProto?s.hasOwnProperty(JSCompiler_renameProperty("__dataProto",s))||(s.__dataProto=Object.create(s.__dataProto)):s.__dataProto={},s.__dataProto[t]=e))}}const gl=E(s=>{const t=As(s);class e extends t{static createPropertiesForAttributes(){let a=this.observedAttributes;for(let h=0;h<a.length;h++)this.prototype._createPropertyAccessor(bs(a[h]))}static attributeNameForProperty(a){return ye(a)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(a){for(let h in a)this._setProperty(h,a[h])}_ensureAttribute(a,h){const o=this;o.hasAttribute(a)||this._valueToNodeAttribute(o,h,a)}_serializeValue(a){switch(typeof a){case"object":if(a instanceof Date)return a.toString();if(a){if(vl(a))return a;try{return JSON.stringify(a)}catch{return""}}default:return super._serializeValue(a)}}_deserializeValue(a,h){let o;switch(h){case Object:try{o=JSON.parse(a)}catch{o=a}break;case Array:try{o=JSON.parse(a)}catch{o=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${a}`)}break;case Date:o=isNaN(a)?String(a):Number(a),o=new Date(o);break;default:o=super._deserializeValue(a,h);break}return o}_definePropertyAccessor(a,h){ul(this,a),super._definePropertyAccessor(a,h)}_hasAccessor(a){return this.__dataHasAccessor&&this.__dataHasAccessor[a]}_isPropertyPending(a){return!!(this.__dataPending&&a in this.__dataPending)}}return e});/**
1470
+ */const ws={};let xe=HTMLElement.prototype;for(;xe;){let s=Object.getOwnPropertyNames(xe);for(let t=0;t<s.length;t++)ws[s[t]]=!0;xe=Object.getPrototypeOf(xe)}const vl=window.trustedTypes?s=>trustedTypes.isHTML(s)||trustedTypes.isScript(s)||trustedTypes.isScriptURL(s):()=>!1;function ul(s,t){if(!ws[t]){let e=s[t];e!==void 0&&(s.__data?s._setPendingProperty(t,e):(s.__dataProto?s.hasOwnProperty(JSCompiler_renameProperty("__dataProto",s))||(s.__dataProto=Object.create(s.__dataProto)):s.__dataProto={},s.__dataProto[t]=e))}}const gl=E(s=>{const t=As(s);class e extends t{static createPropertiesForAttributes(){let a=this.observedAttributes;for(let h=0;h<a.length;h++)this.prototype._createPropertyAccessor(bs(a[h]))}static attributeNameForProperty(a){return ye(a)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(a){for(let h in a)this._setProperty(h,a[h])}_ensureAttribute(a,h){const o=this;o.hasAttribute(a)||this._valueToNodeAttribute(o,h,a)}_serializeValue(a){switch(typeof a){case"object":if(a instanceof Date)return a.toString();if(a){if(vl(a))return a;try{return JSON.stringify(a)}catch{return""}}default:return super._serializeValue(a)}}_deserializeValue(a,h){let o;switch(h){case Object:try{o=JSON.parse(a)}catch{o=a}break;case Array:try{o=JSON.parse(a)}catch{o=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${a}`)}break;case Date:o=isNaN(a)?String(a):Number(a),o=new Date(o);break;default:o=super._deserializeValue(a,h);break}return o}_definePropertyAccessor(a,h){ul(this,a),super._definePropertyAccessor(a,h)}_hasAccessor(a){return this.__dataHasAccessor&&this.__dataHasAccessor[a]}_isPropertyPending(a){return!!(this.__dataPending&&a in this.__dataPending)}}return e});/**
1471
1471
  @license
1472
1472
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1473
1473
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1475,7 +1475,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1475
1475
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1476
1476
  Code distributed by Google as part of the polymer project is also
1477
1477
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1478
- */const ml={"dom-if":!0,"dom-repeat":!0};let ws=!1,$s=!1;function fl(){if(!ws){ws=!0;const s=document.createElement("textarea");s.placeholder="a",$s=s.placeholder===s.textContent}return $s}function _l(s){fl()&&s.localName==="textarea"&&s.placeholder&&s.placeholder===s.textContent&&(s.textContent=null)}const Ml=(()=>{const s=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(t,e,i)=>{const a=e.getAttribute(i);if(s&&i.startsWith("on-")){t.setAttribute(i,s.createScript(a,i));return}t.setAttribute(i,a)}})();function zl(s){let t=s.getAttribute("is");if(t&&ml[t]){let e=s;for(e.removeAttribute("is"),s=e.ownerDocument.createElement(t),e.parentNode.replaceChild(s,e),s.appendChild(e);e.attributes.length;){const{name:i}=e.attributes[0];Ml(s,e,i),e.removeAttribute(i)}}return s}function Es(s,t){let e=t.parentInfo&&Es(s,t.parentInfo);if(e){for(let i=e.firstChild,a=0;i;i=i.nextSibling)if(t.parentIndex===a++)return i}else return s}function bl(s,t,e,i){i.id&&(t[i.id]=e)}function yl(s,t,e){if(e.events&&e.events.length)for(let i=0,a=e.events,h;i<a.length&&(h=a[i]);i++)s._addMethodEventListenerToNode(t,h.name,h.value,s)}function xl(s,t,e,i){e.templateInfo&&(t._templateInfo=e.templateInfo,t._parentTemplateInfo=i)}function Al(s,t,e){return s=s._methodHost||s,function(a){s[e]?s[e](a,a.detail):console.warn("listener method `"+e+"` not defined")}}const Cl=E(s=>{class t extends s{static _parseTemplate(i,a){if(!i._templateInfo){let h=i._templateInfo={};h.nodeInfoList=[],h.nestedTemplate=!!a,h.stripWhiteSpace=a&&a.stripWhiteSpace||i.hasAttribute&&i.hasAttribute("strip-whitespace"),this._parseTemplateContent(i,h,{parent:null})}return i._templateInfo}static _parseTemplateContent(i,a,h){return this._parseTemplateNode(i.content,a,h)}static _parseTemplateNode(i,a,h){let o=!1,r=i;return r.localName=="template"&&!r.hasAttribute("preserve-content")?o=this._parseTemplateNestedTemplate(r,a,h)||o:r.localName==="slot"&&(a.hasInsertionPoint=!0),_l(r),r.firstChild&&this._parseTemplateChildNodes(r,a,h),r.hasAttributes&&r.hasAttributes()&&(o=this._parseTemplateNodeAttributes(r,a,h)||o),o||h.noted}static _parseTemplateChildNodes(i,a,h){if(!(i.localName==="script"||i.localName==="style"))for(let o=i.firstChild,r=0,n;o;o=n){if(o.localName=="template"&&(o=zl(o)),n=o.nextSibling,o.nodeType===Node.TEXT_NODE){let d=n;for(;d&&d.nodeType===Node.TEXT_NODE;)o.textContent+=d.textContent,n=d.nextSibling,i.removeChild(d),d=n;if(a.stripWhiteSpace&&!o.textContent.trim()){i.removeChild(o);continue}}let l={parentIndex:r,parentInfo:h};this._parseTemplateNode(o,a,l)&&(l.infoIndex=a.nodeInfoList.push(l)-1),o.parentNode&&r++}}static _parseTemplateNestedTemplate(i,a,h){let o=i,r=this._parseTemplate(o,a);return(r.content=o.content.ownerDocument.createDocumentFragment()).appendChild(o.content),h.templateInfo=r,!0}static _parseTemplateNodeAttributes(i,a,h){let o=!1,r=Array.from(i.attributes);for(let n=r.length-1,l;l=r[n];n--)o=this._parseTemplateNodeAttribute(i,a,h,l.name,l.value)||o;return o}static _parseTemplateNodeAttribute(i,a,h,o,r){return o.slice(0,3)==="on-"?(i.removeAttribute(o),h.events=h.events||[],h.events.push({name:o.slice(3),value:r}),!0):o==="id"?(h.id=r,!0):!1}static _contentForTemplate(i){let a=i._templateInfo;return a&&a.content||i.content}_stampTemplate(i,a){i&&!i.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(i),a=a||this.constructor._parseTemplate(i);let h=a.nodeInfoList,o=a.content||i.content,r=document.importNode(o,!0);r.__noInsertionPoint=!a.hasInsertionPoint;let n=r.nodeList=new Array(h.length);r.$={};for(let l=0,d=h.length,c;l<d&&(c=h[l]);l++){let p=n[l]=Es(r,c);bl(this,r.$,p,c),xl(this,p,c,a),yl(this,p,c)}return r=r,r}_addMethodEventListenerToNode(i,a,h,o){o=o||i;let r=Al(o,a,h);return this._addEventListenerToNode(i,a,r),r}_addEventListenerToNode(i,a,h){i.addEventListener(a,h)}_removeEventListenerFromNode(i,a,h){i.removeEventListener(a,h)}}return t});/**
1478
+ */const ml={"dom-if":!0,"dom-repeat":!0};let Cs=!1,$s=!1;function fl(){if(!Cs){Cs=!0;const s=document.createElement("textarea");s.placeholder="a",$s=s.placeholder===s.textContent}return $s}function _l(s){fl()&&s.localName==="textarea"&&s.placeholder&&s.placeholder===s.textContent&&(s.textContent=null)}const Ml=(()=>{const s=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(t,e,i)=>{const a=e.getAttribute(i);if(s&&i.startsWith("on-")){t.setAttribute(i,s.createScript(a,i));return}t.setAttribute(i,a)}})();function zl(s){let t=s.getAttribute("is");if(t&&ml[t]){let e=s;for(e.removeAttribute("is"),s=e.ownerDocument.createElement(t),e.parentNode.replaceChild(s,e),s.appendChild(e);e.attributes.length;){const{name:i}=e.attributes[0];Ml(s,e,i),e.removeAttribute(i)}}return s}function Es(s,t){let e=t.parentInfo&&Es(s,t.parentInfo);if(e){for(let i=e.firstChild,a=0;i;i=i.nextSibling)if(t.parentIndex===a++)return i}else return s}function bl(s,t,e,i){i.id&&(t[i.id]=e)}function yl(s,t,e){if(e.events&&e.events.length)for(let i=0,a=e.events,h;i<a.length&&(h=a[i]);i++)s._addMethodEventListenerToNode(t,h.name,h.value,s)}function xl(s,t,e,i){e.templateInfo&&(t._templateInfo=e.templateInfo,t._parentTemplateInfo=i)}function Al(s,t,e){return s=s._methodHost||s,function(a){s[e]?s[e](a,a.detail):console.warn("listener method `"+e+"` not defined")}}const wl=E(s=>{class t extends s{static _parseTemplate(i,a){if(!i._templateInfo){let h=i._templateInfo={};h.nodeInfoList=[],h.nestedTemplate=!!a,h.stripWhiteSpace=a&&a.stripWhiteSpace||i.hasAttribute&&i.hasAttribute("strip-whitespace"),this._parseTemplateContent(i,h,{parent:null})}return i._templateInfo}static _parseTemplateContent(i,a,h){return this._parseTemplateNode(i.content,a,h)}static _parseTemplateNode(i,a,h){let o=!1,r=i;return r.localName=="template"&&!r.hasAttribute("preserve-content")?o=this._parseTemplateNestedTemplate(r,a,h)||o:r.localName==="slot"&&(a.hasInsertionPoint=!0),_l(r),r.firstChild&&this._parseTemplateChildNodes(r,a,h),r.hasAttributes&&r.hasAttributes()&&(o=this._parseTemplateNodeAttributes(r,a,h)||o),o||h.noted}static _parseTemplateChildNodes(i,a,h){if(!(i.localName==="script"||i.localName==="style"))for(let o=i.firstChild,r=0,n;o;o=n){if(o.localName=="template"&&(o=zl(o)),n=o.nextSibling,o.nodeType===Node.TEXT_NODE){let d=n;for(;d&&d.nodeType===Node.TEXT_NODE;)o.textContent+=d.textContent,n=d.nextSibling,i.removeChild(d),d=n;if(a.stripWhiteSpace&&!o.textContent.trim()){i.removeChild(o);continue}}let l={parentIndex:r,parentInfo:h};this._parseTemplateNode(o,a,l)&&(l.infoIndex=a.nodeInfoList.push(l)-1),o.parentNode&&r++}}static _parseTemplateNestedTemplate(i,a,h){let o=i,r=this._parseTemplate(o,a);return(r.content=o.content.ownerDocument.createDocumentFragment()).appendChild(o.content),h.templateInfo=r,!0}static _parseTemplateNodeAttributes(i,a,h){let o=!1,r=Array.from(i.attributes);for(let n=r.length-1,l;l=r[n];n--)o=this._parseTemplateNodeAttribute(i,a,h,l.name,l.value)||o;return o}static _parseTemplateNodeAttribute(i,a,h,o,r){return o.slice(0,3)==="on-"?(i.removeAttribute(o),h.events=h.events||[],h.events.push({name:o.slice(3),value:r}),!0):o==="id"?(h.id=r,!0):!1}static _contentForTemplate(i){let a=i._templateInfo;return a&&a.content||i.content}_stampTemplate(i,a){i&&!i.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(i),a=a||this.constructor._parseTemplate(i);let h=a.nodeInfoList,o=a.content||i.content,r=document.importNode(o,!0);r.__noInsertionPoint=!a.hasInsertionPoint;let n=r.nodeList=new Array(h.length);r.$={};for(let l=0,d=h.length,c;l<d&&(c=h[l]);l++){let p=n[l]=Es(r,c);bl(this,r.$,p,c),xl(this,p,c,a),yl(this,p,c)}return r=r,r}_addMethodEventListenerToNode(i,a,h,o){o=o||i;let r=Al(o,a,h);return this._addEventListenerToNode(i,a,r),r}_addEventListenerToNode(i,a,h){i.addEventListener(a,h)}_removeEventListenerFromNode(i,a,h){i.removeEventListener(a,h)}}return t});/**
1479
1479
  * @fileoverview
1480
1480
  * @suppress {checkPrototypalTypes}
1481
1481
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1485,7 +1485,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1485
1485
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
1486
1486
  * Google as part of the polymer project is also subject to an additional IP
1487
1487
  * rights grant found at http://polymer.github.io/PATENTS.txt
1488
- */let w0=0;const $0=[],z={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Ss="__computeInfo",wl=/[A-Z]/;function B1(s,t,e){let i=s[t];if(!i)i=s[t]={};else if(!s.hasOwnProperty(t)&&(i=s[t]=Object.create(s[t]),e))for(let a in i){let h=i[a],o=i[a]=Array(h.length);for(let r=0;r<h.length;r++)o[r]=h[r]}return i}function E0(s,t,e,i,a,h){if(t){let o=!1;const r=w0++;for(let n in e){let l=a?_t(n):n,d=t[l];if(d)for(let c=0,p=d.length,v;c<p&&(v=d[c]);c++)(!v.info||v.info.lastRun!==r)&&(!a||U1(n,v.trigger))&&(v.info&&(v.info.lastRun=r),v.fn(s,n,e,i,v.info,a,h),o=!0)}return o}return!1}function $l(s,t,e,i,a,h,o,r){let n=!1,l=o?_t(i):i,d=t[l];if(d)for(let c=0,p=d.length,v;c<p&&(v=d[c]);c++)(!v.info||v.info.lastRun!==e)&&(!o||U1(i,v.trigger))&&(v.info&&(v.info.lastRun=e),v.fn(s,i,a,h,v.info,o,r),n=!0);return n}function U1(s,t){if(t){let e=t.name;return e==s||!!(t.structured&&hl(e,s))||!!(t.wildcard&&Me(e,s))}else return!0}function ks(s,t,e,i,a){let h=typeof a.method=="string"?s[a.method]:a.method,o=a.property;h?h.call(s,s.__data[o],i[o]):a.dynamicFn||console.warn("observer method `"+a.method+"` not defined")}function El(s,t,e,i,a){let h=s[z.NOTIFY],o,r=w0++;for(let l in t)t[l]&&(h&&$l(s,h,r,l,e,i,a)||a&&Sl(s,l,e))&&(o=!0);let n;o&&(n=s.__dataHost)&&n._invalidateProperties&&n._invalidateProperties()}function Sl(s,t,e){let i=_t(t);if(i!==t){let a=ye(i)+"-changed";return Ts(s,a,e[t],t),!0}return!1}function Ts(s,t,e,i){let a={value:e,queueProperty:!0};i&&(a.path=i),ft(s).dispatchEvent(new CustomEvent(t,{detail:a}))}function kl(s,t,e,i,a,h){let r=(h?_t(t):t)!=t?t:null,n=r?O(s,r):s.__data[t];r&&n===void 0&&(n=e[t]),Ts(s,a.eventName,n,r)}function Tl(s,t,e,i,a){let h,o=s.detail,r=o&&o.path;r?(i=ze(e,i,r),h=o&&o.value):h=s.currentTarget[e],h=a?!h:h,(!t[z.READ_ONLY]||!t[z.READ_ONLY][i])&&t._setPendingPropertyOrPath(i,h,!0,!!r)&&(!o||!o.queueProperty)&&t._invalidateProperties()}function Il(s,t,e,i,a){let h=s.__data[t];_e&&(h=_e(h,a.attrName,"attribute",s)),s._propertyToAttribute(t,a.attrName,h)}function Pl(s,t,e,i){let a=s[z.COMPUTE];if(a)if(Gr){w0++;const h=Ll(s),o=[];for(let n in t)Is(n,a,o,h,i);let r;for(;r=o.shift();)Ps(s,"",t,e,r)&&Is(r.methodInfo,a,o,h,i);Object.assign(e,s.__dataOld),Object.assign(t,s.__dataPending),s.__dataPending=null}else{let h=t;for(;E0(s,a,h,e,i);)Object.assign(e,s.__dataOld),Object.assign(t,s.__dataPending),h=s.__dataPending,s.__dataPending=null}}const Nl=(s,t,e)=>{let i=0,a=t.length-1,h=-1;for(;i<=a;){const o=i+a>>1,r=e.get(t[o].methodInfo)-e.get(s.methodInfo);if(r<0)i=o+1;else if(r>0)a=o-1;else{h=o;break}}h<0&&(h=a+1),t.splice(h,0,s)},Is=(s,t,e,i,a)=>{const h=a?_t(s):s,o=t[h];if(o)for(let r=0;r<o.length;r++){const n=o[r];n.info.lastRun!==w0&&(!a||U1(s,n.trigger))&&(n.info.lastRun=w0,Nl(n.info,e,i))}};function Ll(s){let t=s.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=s[z.COMPUTE];let{counts:i,ready:a,total:h}=Hl(s),o;for(;o=a.shift();){t.set(o,t.size);const r=e[o];r&&r.forEach(n=>{const l=n.info.methodInfo;--h,--i[l]===0&&a.push(l)})}h!==0&&console.warn(`Computed graph for ${s.localName} incomplete; circular?`),s.constructor.__orderedComputedDeps=t}return t}function Hl(s){const t=s[Ss],e={},i=s[z.COMPUTE],a=[];let h=0;for(let o in t){const r=t[o];h+=e[o]=r.args.filter(n=>!n.literal).length+(r.dynamicFn?1:0)}for(let o in i)t[o]||a.push(o);return{counts:e,ready:a,total:h}}function Ps(s,t,e,i,a){let h=q1(s,t,e,i,a);if(h===$0)return!1;let o=a.methodInfo;return s.__dataHasAccessor&&s.__dataHasAccessor[o]?s._setPendingProperty(o,h,!0):(s[o]=h,!1)}function Ol(s,t,e){let i=s.__dataLinkedPaths;if(i){let a;for(let h in i){let o=i[h];Me(h,t)?(a=ze(h,o,t),s._setPendingPropertyOrPath(a,e,!0,!0)):Me(o,t)&&(a=ze(o,h,t),s._setPendingPropertyOrPath(a,e,!0,!0))}}}function j1(s,t,e,i,a,h,o){e.bindings=e.bindings||[];let r={kind:i,target:a,parts:h,literal:o,isCompound:h.length!==1};if(e.bindings.push(r),Bl(r)){let{event:l,negate:d}=r.parts[0];r.listenerEvent=l||ye(a)+"-changed",r.listenerNegate=d}let n=t.nodeInfoList.length;for(let l=0;l<r.parts.length;l++){let d=r.parts[l];d.compoundIndex=l,Rl(s,t,r,d,n)}}function Rl(s,t,e,i,a){if(!i.literal)if(e.kind==="attribute"&&e.target[0]==="-")console.warn("Cannot set attribute "+e.target+' because "-" is not a valid attribute starting character');else{let h=i.dependencies,o={index:a,binding:e,part:i,evaluator:s};for(let r=0;r<h.length;r++){let n=h[r];typeof n=="string"&&(n=Fs(n),n.wildcard=!0),s._addTemplatePropertyEffect(t,n.rootProperty,{fn:Fl,info:o,trigger:n})}}}function Fl(s,t,e,i,a,h,o){let r=o[a.index],n=a.binding,l=a.part;if(h&&l.source&&t.length>l.source.length&&n.kind=="property"&&!n.isCompound&&r.__isPropertyEffectsClient&&r.__dataHasAccessor&&r.__dataHasAccessor[n.target]){let d=e[t];t=ze(l.source,n.target,t),r._setPendingPropertyOrPath(t,d,!1,!0)&&s._enqueueClient(r)}else{let d=a.evaluator._evaluateBinding(s,l,t,e,i,h);d!==$0&&Dl(s,r,n,l,d)}}function Dl(s,t,e,i,a){if(a=Vl(t,a,e,i),_e&&(a=_e(a,e.target,e.kind,t)),e.kind=="attribute")s._valueToNodeAttribute(t,a,e.target);else{let h=e.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[h]?(!t[z.READ_ONLY]||!t[z.READ_ONLY][h])&&t._setPendingProperty(h,a)&&s._enqueueClient(t):s._setUnmanagedPropertyToNode(t,h,a)}}function Vl(s,t,e,i){if(e.isCompound){let a=s.__dataCompoundStorage[e.target];a[i.compoundIndex]=t,t=a.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(s.localName==="input"||s.localName==="textarea"))&&(t=t??""),t}function Bl(s){return!!s.target&&s.kind!="attribute"&&s.kind!="text"&&!s.isCompound&&s.parts[0].mode==="{"}function Ul(s,t){let{nodeList:e,nodeInfoList:i}=t;if(i.length)for(let a=0;a<i.length;a++){let h=i[a],o=e[a],r=h.bindings;if(r)for(let n=0;n<r.length;n++){let l=r[n];jl(o,l),ql(o,s,l)}o.__dataHost=s}}function jl(s,t){if(t.isCompound){let e=s.__dataCompoundStorage||(s.__dataCompoundStorage={}),i=t.parts,a=new Array(i.length);for(let o=0;o<i.length;o++)a[o]=i[o].literal;let h=t.target;e[h]=a,t.literal&&t.kind=="property"&&(h==="className"&&(s=ft(s)),s[h]=t.literal)}}function ql(s,t,e){if(e.listenerEvent){let i=e.parts[0];s.addEventListener(e.listenerEvent,function(a){Tl(a,t,e.target,i.source,i.negate)})}}function Ns(s,t,e,i,a,h){h=t.static||h&&(typeof h!="object"||h[t.methodName]);let o={methodName:t.methodName,args:t.args,methodInfo:a,dynamicFn:h};for(let r=0,n;r<t.args.length&&(n=t.args[r]);r++)n.literal||s._addPropertyEffect(n.rootProperty,e,{fn:i,info:o,trigger:n});return h&&s._addPropertyEffect(t.methodName,e,{fn:i,info:o}),o}function q1(s,t,e,i,a){let h=s._methodHost||s,o=h[a.methodName];if(o){let r=s._marshalArgs(a.args,t,e);return r===$0?$0:o.apply(h,r)}else a.dynamicFn||console.warn("method `"+a.methodName+"` not defined")}const Wl=[],Ls="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Zl="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Yl="(?:"+"(?:'(?:[^'\\\\]|\\\\.)*')"+"|"+'(?:"(?:[^"\\\\]|\\\\.)*")'+")",Hs="(?:("+Ls+"|"+Zl+"|"+Yl+")\\s*)",Gl="(?:\\(\\s*(?:"+("(?:"+Hs+"(?:,\\s*"+Hs+")*)")+"?)\\)\\s*)",Kl="("+Ls+"\\s*"+Gl+"?)",Jl="(\\[\\[|{{)\\s*"+"(?:(!)\\s*)?"+Kl+"(?:]]|}})",Os=new RegExp(Jl,"g");function Rs(s){let t="";for(let e=0;e<s.length;e++){let i=s[e].literal;t+=i||""}return t}function W1(s){let t=s.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let i={methodName:t[1],static:!0,args:Wl};if(t[2].trim()){let a=t[2].replace(/\\,/g,"&comma;").split(",");return Ql(a,i)}else return i}return null}function Ql(s,t){return t.args=s.map(function(e){let i=Fs(e);return i.literal||(t.static=!1),i},this),t}function Fs(s){let t=s.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),e={name:t,value:"",literal:!1},i=t[0];switch(i==="-"&&(i=t[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':e.value=t.slice(1,-1),e.literal=!0;break;case"#":e.value=Number(t),e.literal=!0;break}return e.literal||(e.rootProperty=_t(t),e.structured=D1(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function Ds(s,t,e){let i=O(s,e);return i===void 0&&(i=t[e]),i}function Vs(s,t,e,i){const a={indexSplices:i};R1&&!s._overrideLegacyUndefined&&(t.splices=a),s.notifyPath(e+".splices",a),s.notifyPath(e+".length",t.length),R1&&!s._overrideLegacyUndefined&&(a.indexSplices=[])}function S0(s,t,e,i,a,h){Vs(s,t,e,[{index:i,addedCount:a,removed:h,object:t,type:"splice"}])}function Xl(s){return s[0].toUpperCase()+s.substring(1)}const t2=E(s=>{const t=Cl(gl(s));class e 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 z}_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(k0.length){let a=k0[k0.length-1];a._enqueueClient(this),this.__dataHost=a}}_initializeProtoProperties(a){this.__data=Object.create(a),this.__dataPending=Object.create(a),this.__dataOld={}}_initializeInstanceProperties(a){let h=this[z.READ_ONLY];for(let o in a)(!h||!h[o])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[o]=this.__dataPending[o]=a[o])}_addPropertyEffect(a,h,o){this._createPropertyAccessor(a,h==z.READ_ONLY);let r=B1(this,h,!0)[a];r||(r=this[h][a]=[]),r.push(o)}_removePropertyEffect(a,h,o){let r=B1(this,h,!0)[a],n=r.indexOf(o);n>=0&&r.splice(n,1)}_hasPropertyEffect(a,h){let o=this[h];return!!(o&&o[a])}_hasReadOnlyEffect(a){return this._hasPropertyEffect(a,z.READ_ONLY)}_hasNotifyEffect(a){return this._hasPropertyEffect(a,z.NOTIFY)}_hasReflectEffect(a){return this._hasPropertyEffect(a,z.REFLECT)}_hasComputedEffect(a){return this._hasPropertyEffect(a,z.COMPUTE)}_setPendingPropertyOrPath(a,h,o,r){if(r||_t(Array.isArray(a)?a[0]:a)!==a){if(!r){let n=O(this,a);if(a=zs(this,a,h),!a||!super._shouldPropertyChange(a,h,n))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(a,h,o))return Ol(this,a,h),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[a])return this._setPendingProperty(a,h,o);this[a]=h}return!1}_setUnmanagedPropertyToNode(a,h,o){(o!==a[h]||typeof o=="object")&&(h==="className"&&(a=ft(a)),a[h]=o)}_setPendingProperty(a,h,o){let r=this.__dataHasPaths&&D1(a),n=r?this.__dataTemp:this.__data;return this._shouldPropertyChange(a,h,n[a])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),a in this.__dataOld||(this.__dataOld[a]=this.__data[a]),r?this.__dataTemp[a]=h:this.__data[a]=h,this.__dataPending[a]=h,(r||this[z.NOTIFY]&&this[z.NOTIFY][a])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[a]=o),!0):!1}_setProperty(a,h){this._setPendingProperty(a,h,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(a){this.__dataPendingClients=this.__dataPendingClients||[],a!==this&&this.__dataPendingClients.push(a)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let a=this.__dataPendingClients;if(a){this.__dataPendingClients=null;for(let h=0;h<a.length;h++){let o=a[h];o.__dataEnabled?o.__dataPending&&o._flushProperties():o._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(a,h){for(let o in a)(h||!this[z.READ_ONLY]||!this[z.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,a[o],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(a,h,o){let r=this.__dataHasPaths;this.__dataHasPaths=!1;let n;Pl(this,h,o,r),n=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(h,o,r),this._flushClients(),E0(this,this[z.REFLECT],h,o,r),E0(this,this[z.OBSERVE],h,o,r),n&&El(this,n,h,o,r),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(a,h,o){this[z.PROPAGATE]&&E0(this,this[z.PROPAGATE],a,h,o),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,a,h,o)}_runEffectsForTemplate(a,h,o,r){const n=(l,d)=>{E0(this,a.propertyEffects,l,o,d,a.nodeList);for(let c=a.firstChild;c;c=c.nextSibling)this._runEffectsForTemplate(c,l,o,d)};a.runEffects?a.runEffects(n,h,r):n(h,r)}linkPaths(a,h){a=C0(a),h=C0(h),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[a]=h}unlinkPaths(a){a=C0(a),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[a]}notifySplices(a,h){let o={path:""},r=O(this,a,o);Vs(this,r,o.path,h)}get(a,h){return O(h||this,a)}set(a,h,o){o?zs(o,a,h):(!this[z.READ_ONLY]||!this[z.READ_ONLY][a])&&this._setPendingPropertyOrPath(a,h,!0)&&this._invalidateProperties()}push(a,...h){let o={path:""},r=O(this,a,o),n=r.length,l=r.push(...h);return h.length&&S0(this,r,o.path,n,h.length,[]),l}pop(a){let h={path:""},o=O(this,a,h),r=!!o.length,n=o.pop();return r&&S0(this,o,h.path,o.length,0,[n]),n}splice(a,h,o,...r){let n={path:""},l=O(this,a,n);h<0?h=l.length-Math.floor(-h):h&&(h=Math.floor(h));let d;return arguments.length===2?d=l.splice(h):d=l.splice(h,o,...r),(r.length||d.length)&&S0(this,l,n.path,h,r.length,d),d}shift(a){let h={path:""},o=O(this,a,h),r=!!o.length,n=o.shift();return r&&S0(this,o,h.path,0,0,[n]),n}unshift(a,...h){let o={path:""},r=O(this,a,o),n=r.unshift(...h);return h.length&&S0(this,r,o.path,0,h.length,[]),n}notifyPath(a,h){let o;if(arguments.length==1){let r={path:""};h=O(this,a,r),o=r.path}else Array.isArray(a)?o=C0(a):o=a;this._setPendingPropertyOrPath(o,h,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(a,h){this._addPropertyEffect(a,z.READ_ONLY),h&&(this["_set"+Xl(a)]=function(o){this._setProperty(a,o)})}_createPropertyObserver(a,h,o){let r={property:a,method:h,dynamicFn:!!o};this._addPropertyEffect(a,z.OBSERVE,{fn:ks,info:r,trigger:{name:a}}),o&&this._addPropertyEffect(h,z.OBSERVE,{fn:ks,info:r,trigger:{name:h}})}_createMethodObserver(a,h){let o=W1(a);if(!o)throw new Error("Malformed observer expression '"+a+"'");Ns(this,o,z.OBSERVE,q1,null,h)}_createNotifyingProperty(a){this._addPropertyEffect(a,z.NOTIFY,{fn:kl,info:{eventName:ye(a)+"-changed",property:a}})}_createReflectedProperty(a){let h=this.constructor.attributeNameForProperty(a);h[0]==="-"?console.warn("Property "+a+" cannot be reflected to attribute "+h+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(a,z.REFLECT,{fn:Il,info:{attrName:h}})}_createComputedProperty(a,h,o){let r=W1(h);if(!r)throw new Error("Malformed computed expression '"+h+"'");const n=Ns(this,r,z.COMPUTE,Ps,a,o);B1(this,Ss)[a]=n}_marshalArgs(a,h,o){const r=this.__data,n=[];for(let l=0,d=a.length;l<d;l++){let{name:c,structured:p,wildcard:v,value:g,literal:m}=a[l];if(!m)if(v){const A=Me(c,h),S=Ds(r,o,A?h:c);g={path:A?h:c,value:S,base:A?O(r,c):S}}else g=p?Ds(r,o,c):r[c];if(R1&&!this._overrideLegacyUndefined&&g===void 0&&a.length>1)return $0;n[l]=g}return n}static addPropertyEffect(a,h,o){this.prototype._addPropertyEffect(a,h,o)}static createPropertyObserver(a,h,o){this.prototype._createPropertyObserver(a,h,o)}static createMethodObserver(a,h){this.prototype._createMethodObserver(a,h)}static createNotifyingProperty(a){this.prototype._createNotifyingProperty(a)}static createReadOnlyProperty(a,h){this.prototype._createReadOnlyProperty(a,h)}static createReflectedProperty(a){this.prototype._createReflectedProperty(a)}static createComputedProperty(a,h,o){this.prototype._createComputedProperty(a,h,o)}static bindTemplate(a){return this.prototype._bindTemplate(a)}_bindTemplate(a,h){let o=this.constructor._parseTemplate(a),r=this.__preBoundTemplateInfo==o;if(!r)for(let n in o.propertyEffects)this._createPropertyAccessor(n);if(h)if(o=Object.create(o),o.wasPreBound=r,!this.__templateInfo)this.__templateInfo=o;else{const n=a._parentTemplateInfo||this.__templateInfo,l=n.lastChild;o.parent=n,n.lastChild=o,o.previousSibling=l,l?l.nextSibling=o:n.firstChild=o}else this.__preBoundTemplateInfo=o;return o}static _addTemplatePropertyEffect(a,h,o){let r=a.hostProps=a.hostProps||{};r[h]=!0;let n=a.propertyEffects=a.propertyEffects||{};(n[h]=n[h]||[]).push(o)}_stampTemplate(a,h){h=h||this._bindTemplate(a,!0),k0.push(this);let o=super._stampTemplate(a,h);if(k0.pop(),h.nodeList=o.nodeList,!h.wasPreBound){let r=h.childNodes=[];for(let n=o.firstChild;n;n=n.nextSibling)r.push(n)}return o.templateInfo=h,Ul(this,h),this.__dataClientsReady&&(this._runEffectsForTemplate(h,this.__data,null,!1),this._flushClients()),o}_removeBoundDom(a){const h=a.templateInfo,{previousSibling:o,nextSibling:r,parent:n}=h;o?o.nextSibling=r:n&&(n.firstChild=r),r?r.previousSibling=o:n&&(n.lastChild=o),h.nextSibling=h.previousSibling=null;let l=h.childNodes;for(let d=0;d<l.length;d++){let c=l[d];ft(ft(c).parentNode).removeChild(c)}}static _parseTemplateNode(a,h,o){let r=t._parseTemplateNode.call(this,a,h,o);if(a.nodeType===Node.TEXT_NODE){let n=this._parseBindings(a.textContent,h);n&&(a.textContent=Rs(n)||" ",j1(this,h,o,"text","textContent",n),r=!0)}return r}static _parseTemplateNodeAttribute(a,h,o,r,n){let l=this._parseBindings(n,h);if(l){let d=r,c="property";wl.test(r)?c="attribute":r[r.length-1]=="$"&&(r=r.slice(0,-1),c="attribute");let p=Rs(l);return p&&c=="attribute"&&(r=="class"&&a.hasAttribute("class")&&(p+=" "+a.getAttribute(r)),a.setAttribute(r,p)),c=="attribute"&&d=="disable-upgrade$"&&a.setAttribute(r,""),a.localName==="input"&&d==="value"&&a.setAttribute(d,""),a.removeAttribute(d),c==="property"&&(r=bs(r)),j1(this,h,o,c,r,l,p),!0}else return t._parseTemplateNodeAttribute.call(this,a,h,o,r,n)}static _parseTemplateNestedTemplate(a,h,o){let r=t._parseTemplateNestedTemplate.call(this,a,h,o);const n=a.parentNode,l=o.templateInfo,d=n.localName==="dom-if",c=n.localName==="dom-repeat";ds&&(d||c)&&(n.removeChild(a),o=o.parentInfo,o.templateInfo=l,o.noted=!0,r=!1);let p=l.hostProps;if(Kr&&d)p&&(h.hostProps=Object.assign(h.hostProps||{},p),ds||(o.parentInfo.noted=!0));else{let v="{";for(let g in p){let m=[{mode:v,source:g,dependencies:[g],hostProp:!0}];j1(this,h,o,"property","_host_"+g,m)}}return r}static _parseBindings(a,h){let o=[],r=0,n;for(;(n=Os.exec(a))!==null;){n.index>r&&o.push({literal:a.slice(r,n.index)});let l=n[1][0],d=!!n[2],c=n[3].trim(),p=!1,v="",g=-1;l=="{"&&(g=c.indexOf("::"))>0&&(v=c.substring(g+2),c=c.substring(0,g),p=!0);let m=W1(c),A=[];if(m){let{args:S,methodName:N}=m;for(let K0=0;K0<S.length;K0++){let qo=S[K0];qo.literal||A.push(qo)}let st=h.dynamicFns;(st&&st[N]||m.static)&&(A.push(N),m.dynamicFn=!0)}else A.push(c);o.push({source:c,mode:l,negate:d,customEvent:p,signature:m,dependencies:A,event:v}),r=Os.lastIndex}if(r&&r<a.length){let l=a.substring(r);l&&o.push({literal:l})}return o.length?o:null}static _evaluateBinding(a,h,o,r,n,l){let d;return h.signature?d=q1(a,o,r,n,h.signature):o!=h.source?d=O(a,h.source):l&&D1(o)?d=O(a,o):d=a.__data[o],h.negate&&(d=!d),d}}return e}),k0=[];/**
1488
+ */let C0=0;const $0=[],z={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Ss="__computeInfo",Cl=/[A-Z]/;function B1(s,t,e){let i=s[t];if(!i)i=s[t]={};else if(!s.hasOwnProperty(t)&&(i=s[t]=Object.create(s[t]),e))for(let a in i){let h=i[a],o=i[a]=Array(h.length);for(let r=0;r<h.length;r++)o[r]=h[r]}return i}function E0(s,t,e,i,a,h){if(t){let o=!1;const r=C0++;for(let n in e){let l=a?_t(n):n,d=t[l];if(d)for(let c=0,p=d.length,v;c<p&&(v=d[c]);c++)(!v.info||v.info.lastRun!==r)&&(!a||U1(n,v.trigger))&&(v.info&&(v.info.lastRun=r),v.fn(s,n,e,i,v.info,a,h),o=!0)}return o}return!1}function $l(s,t,e,i,a,h,o,r){let n=!1,l=o?_t(i):i,d=t[l];if(d)for(let c=0,p=d.length,v;c<p&&(v=d[c]);c++)(!v.info||v.info.lastRun!==e)&&(!o||U1(i,v.trigger))&&(v.info&&(v.info.lastRun=e),v.fn(s,i,a,h,v.info,o,r),n=!0);return n}function U1(s,t){if(t){let e=t.name;return e==s||!!(t.structured&&hl(e,s))||!!(t.wildcard&&Me(e,s))}else return!0}function ks(s,t,e,i,a){let h=typeof a.method=="string"?s[a.method]:a.method,o=a.property;h?h.call(s,s.__data[o],i[o]):a.dynamicFn||console.warn("observer method `"+a.method+"` not defined")}function El(s,t,e,i,a){let h=s[z.NOTIFY],o,r=C0++;for(let l in t)t[l]&&(h&&$l(s,h,r,l,e,i,a)||a&&Sl(s,l,e))&&(o=!0);let n;o&&(n=s.__dataHost)&&n._invalidateProperties&&n._invalidateProperties()}function Sl(s,t,e){let i=_t(t);if(i!==t){let a=ye(i)+"-changed";return Ts(s,a,e[t],t),!0}return!1}function Ts(s,t,e,i){let a={value:e,queueProperty:!0};i&&(a.path=i),ft(s).dispatchEvent(new CustomEvent(t,{detail:a}))}function kl(s,t,e,i,a,h){let r=(h?_t(t):t)!=t?t:null,n=r?O(s,r):s.__data[t];r&&n===void 0&&(n=e[t]),Ts(s,a.eventName,n,r)}function Tl(s,t,e,i,a){let h,o=s.detail,r=o&&o.path;r?(i=ze(e,i,r),h=o&&o.value):h=s.currentTarget[e],h=a?!h:h,(!t[z.READ_ONLY]||!t[z.READ_ONLY][i])&&t._setPendingPropertyOrPath(i,h,!0,!!r)&&(!o||!o.queueProperty)&&t._invalidateProperties()}function Il(s,t,e,i,a){let h=s.__data[t];_e&&(h=_e(h,a.attrName,"attribute",s)),s._propertyToAttribute(t,a.attrName,h)}function Pl(s,t,e,i){let a=s[z.COMPUTE];if(a)if(Gr){C0++;const h=Ll(s),o=[];for(let n in t)Is(n,a,o,h,i);let r;for(;r=o.shift();)Ps(s,"",t,e,r)&&Is(r.methodInfo,a,o,h,i);Object.assign(e,s.__dataOld),Object.assign(t,s.__dataPending),s.__dataPending=null}else{let h=t;for(;E0(s,a,h,e,i);)Object.assign(e,s.__dataOld),Object.assign(t,s.__dataPending),h=s.__dataPending,s.__dataPending=null}}const Nl=(s,t,e)=>{let i=0,a=t.length-1,h=-1;for(;i<=a;){const o=i+a>>1,r=e.get(t[o].methodInfo)-e.get(s.methodInfo);if(r<0)i=o+1;else if(r>0)a=o-1;else{h=o;break}}h<0&&(h=a+1),t.splice(h,0,s)},Is=(s,t,e,i,a)=>{const h=a?_t(s):s,o=t[h];if(o)for(let r=0;r<o.length;r++){const n=o[r];n.info.lastRun!==C0&&(!a||U1(s,n.trigger))&&(n.info.lastRun=C0,Nl(n.info,e,i))}};function Ll(s){let t=s.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=s[z.COMPUTE];let{counts:i,ready:a,total:h}=Hl(s),o;for(;o=a.shift();){t.set(o,t.size);const r=e[o];r&&r.forEach(n=>{const l=n.info.methodInfo;--h,--i[l]===0&&a.push(l)})}h!==0&&console.warn(`Computed graph for ${s.localName} incomplete; circular?`),s.constructor.__orderedComputedDeps=t}return t}function Hl(s){const t=s[Ss],e={},i=s[z.COMPUTE],a=[];let h=0;for(let o in t){const r=t[o];h+=e[o]=r.args.filter(n=>!n.literal).length+(r.dynamicFn?1:0)}for(let o in i)t[o]||a.push(o);return{counts:e,ready:a,total:h}}function Ps(s,t,e,i,a){let h=q1(s,t,e,i,a);if(h===$0)return!1;let o=a.methodInfo;return s.__dataHasAccessor&&s.__dataHasAccessor[o]?s._setPendingProperty(o,h,!0):(s[o]=h,!1)}function Ol(s,t,e){let i=s.__dataLinkedPaths;if(i){let a;for(let h in i){let o=i[h];Me(h,t)?(a=ze(h,o,t),s._setPendingPropertyOrPath(a,e,!0,!0)):Me(o,t)&&(a=ze(o,h,t),s._setPendingPropertyOrPath(a,e,!0,!0))}}}function j1(s,t,e,i,a,h,o){e.bindings=e.bindings||[];let r={kind:i,target:a,parts:h,literal:o,isCompound:h.length!==1};if(e.bindings.push(r),Bl(r)){let{event:l,negate:d}=r.parts[0];r.listenerEvent=l||ye(a)+"-changed",r.listenerNegate=d}let n=t.nodeInfoList.length;for(let l=0;l<r.parts.length;l++){let d=r.parts[l];d.compoundIndex=l,Rl(s,t,r,d,n)}}function Rl(s,t,e,i,a){if(!i.literal)if(e.kind==="attribute"&&e.target[0]==="-")console.warn("Cannot set attribute "+e.target+' because "-" is not a valid attribute starting character');else{let h=i.dependencies,o={index:a,binding:e,part:i,evaluator:s};for(let r=0;r<h.length;r++){let n=h[r];typeof n=="string"&&(n=Fs(n),n.wildcard=!0),s._addTemplatePropertyEffect(t,n.rootProperty,{fn:Fl,info:o,trigger:n})}}}function Fl(s,t,e,i,a,h,o){let r=o[a.index],n=a.binding,l=a.part;if(h&&l.source&&t.length>l.source.length&&n.kind=="property"&&!n.isCompound&&r.__isPropertyEffectsClient&&r.__dataHasAccessor&&r.__dataHasAccessor[n.target]){let d=e[t];t=ze(l.source,n.target,t),r._setPendingPropertyOrPath(t,d,!1,!0)&&s._enqueueClient(r)}else{let d=a.evaluator._evaluateBinding(s,l,t,e,i,h);d!==$0&&Dl(s,r,n,l,d)}}function Dl(s,t,e,i,a){if(a=Vl(t,a,e,i),_e&&(a=_e(a,e.target,e.kind,t)),e.kind=="attribute")s._valueToNodeAttribute(t,a,e.target);else{let h=e.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[h]?(!t[z.READ_ONLY]||!t[z.READ_ONLY][h])&&t._setPendingProperty(h,a)&&s._enqueueClient(t):s._setUnmanagedPropertyToNode(t,h,a)}}function Vl(s,t,e,i){if(e.isCompound){let a=s.__dataCompoundStorage[e.target];a[i.compoundIndex]=t,t=a.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(s.localName==="input"||s.localName==="textarea"))&&(t=t??""),t}function Bl(s){return!!s.target&&s.kind!="attribute"&&s.kind!="text"&&!s.isCompound&&s.parts[0].mode==="{"}function Ul(s,t){let{nodeList:e,nodeInfoList:i}=t;if(i.length)for(let a=0;a<i.length;a++){let h=i[a],o=e[a],r=h.bindings;if(r)for(let n=0;n<r.length;n++){let l=r[n];jl(o,l),ql(o,s,l)}o.__dataHost=s}}function jl(s,t){if(t.isCompound){let e=s.__dataCompoundStorage||(s.__dataCompoundStorage={}),i=t.parts,a=new Array(i.length);for(let o=0;o<i.length;o++)a[o]=i[o].literal;let h=t.target;e[h]=a,t.literal&&t.kind=="property"&&(h==="className"&&(s=ft(s)),s[h]=t.literal)}}function ql(s,t,e){if(e.listenerEvent){let i=e.parts[0];s.addEventListener(e.listenerEvent,function(a){Tl(a,t,e.target,i.source,i.negate)})}}function Ns(s,t,e,i,a,h){h=t.static||h&&(typeof h!="object"||h[t.methodName]);let o={methodName:t.methodName,args:t.args,methodInfo:a,dynamicFn:h};for(let r=0,n;r<t.args.length&&(n=t.args[r]);r++)n.literal||s._addPropertyEffect(n.rootProperty,e,{fn:i,info:o,trigger:n});return h&&s._addPropertyEffect(t.methodName,e,{fn:i,info:o}),o}function q1(s,t,e,i,a){let h=s._methodHost||s,o=h[a.methodName];if(o){let r=s._marshalArgs(a.args,t,e);return r===$0?$0:o.apply(h,r)}else a.dynamicFn||console.warn("method `"+a.methodName+"` not defined")}const Wl=[],Ls="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Zl="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Yl="(?:"+"(?:'(?:[^'\\\\]|\\\\.)*')"+"|"+'(?:"(?:[^"\\\\]|\\\\.)*")'+")",Hs="(?:("+Ls+"|"+Zl+"|"+Yl+")\\s*)",Gl="(?:\\(\\s*(?:"+("(?:"+Hs+"(?:,\\s*"+Hs+")*)")+"?)\\)\\s*)",Kl="("+Ls+"\\s*"+Gl+"?)",Jl="(\\[\\[|{{)\\s*"+"(?:(!)\\s*)?"+Kl+"(?:]]|}})",Os=new RegExp(Jl,"g");function Rs(s){let t="";for(let e=0;e<s.length;e++){let i=s[e].literal;t+=i||""}return t}function W1(s){let t=s.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let i={methodName:t[1],static:!0,args:Wl};if(t[2].trim()){let a=t[2].replace(/\\,/g,"&comma;").split(",");return Ql(a,i)}else return i}return null}function Ql(s,t){return t.args=s.map(function(e){let i=Fs(e);return i.literal||(t.static=!1),i},this),t}function Fs(s){let t=s.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),e={name:t,value:"",literal:!1},i=t[0];switch(i==="-"&&(i=t[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':e.value=t.slice(1,-1),e.literal=!0;break;case"#":e.value=Number(t),e.literal=!0;break}return e.literal||(e.rootProperty=_t(t),e.structured=D1(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function Ds(s,t,e){let i=O(s,e);return i===void 0&&(i=t[e]),i}function Vs(s,t,e,i){const a={indexSplices:i};R1&&!s._overrideLegacyUndefined&&(t.splices=a),s.notifyPath(e+".splices",a),s.notifyPath(e+".length",t.length),R1&&!s._overrideLegacyUndefined&&(a.indexSplices=[])}function S0(s,t,e,i,a,h){Vs(s,t,e,[{index:i,addedCount:a,removed:h,object:t,type:"splice"}])}function Xl(s){return s[0].toUpperCase()+s.substring(1)}const t2=E(s=>{const t=wl(gl(s));class e 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 z}_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(k0.length){let a=k0[k0.length-1];a._enqueueClient(this),this.__dataHost=a}}_initializeProtoProperties(a){this.__data=Object.create(a),this.__dataPending=Object.create(a),this.__dataOld={}}_initializeInstanceProperties(a){let h=this[z.READ_ONLY];for(let o in a)(!h||!h[o])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[o]=this.__dataPending[o]=a[o])}_addPropertyEffect(a,h,o){this._createPropertyAccessor(a,h==z.READ_ONLY);let r=B1(this,h,!0)[a];r||(r=this[h][a]=[]),r.push(o)}_removePropertyEffect(a,h,o){let r=B1(this,h,!0)[a],n=r.indexOf(o);n>=0&&r.splice(n,1)}_hasPropertyEffect(a,h){let o=this[h];return!!(o&&o[a])}_hasReadOnlyEffect(a){return this._hasPropertyEffect(a,z.READ_ONLY)}_hasNotifyEffect(a){return this._hasPropertyEffect(a,z.NOTIFY)}_hasReflectEffect(a){return this._hasPropertyEffect(a,z.REFLECT)}_hasComputedEffect(a){return this._hasPropertyEffect(a,z.COMPUTE)}_setPendingPropertyOrPath(a,h,o,r){if(r||_t(Array.isArray(a)?a[0]:a)!==a){if(!r){let n=O(this,a);if(a=zs(this,a,h),!a||!super._shouldPropertyChange(a,h,n))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(a,h,o))return Ol(this,a,h),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[a])return this._setPendingProperty(a,h,o);this[a]=h}return!1}_setUnmanagedPropertyToNode(a,h,o){(o!==a[h]||typeof o=="object")&&(h==="className"&&(a=ft(a)),a[h]=o)}_setPendingProperty(a,h,o){let r=this.__dataHasPaths&&D1(a),n=r?this.__dataTemp:this.__data;return this._shouldPropertyChange(a,h,n[a])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),a in this.__dataOld||(this.__dataOld[a]=this.__data[a]),r?this.__dataTemp[a]=h:this.__data[a]=h,this.__dataPending[a]=h,(r||this[z.NOTIFY]&&this[z.NOTIFY][a])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[a]=o),!0):!1}_setProperty(a,h){this._setPendingProperty(a,h,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(a){this.__dataPendingClients=this.__dataPendingClients||[],a!==this&&this.__dataPendingClients.push(a)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let a=this.__dataPendingClients;if(a){this.__dataPendingClients=null;for(let h=0;h<a.length;h++){let o=a[h];o.__dataEnabled?o.__dataPending&&o._flushProperties():o._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(a,h){for(let o in a)(h||!this[z.READ_ONLY]||!this[z.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,a[o],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(a,h,o){let r=this.__dataHasPaths;this.__dataHasPaths=!1;let n;Pl(this,h,o,r),n=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(h,o,r),this._flushClients(),E0(this,this[z.REFLECT],h,o,r),E0(this,this[z.OBSERVE],h,o,r),n&&El(this,n,h,o,r),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(a,h,o){this[z.PROPAGATE]&&E0(this,this[z.PROPAGATE],a,h,o),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,a,h,o)}_runEffectsForTemplate(a,h,o,r){const n=(l,d)=>{E0(this,a.propertyEffects,l,o,d,a.nodeList);for(let c=a.firstChild;c;c=c.nextSibling)this._runEffectsForTemplate(c,l,o,d)};a.runEffects?a.runEffects(n,h,r):n(h,r)}linkPaths(a,h){a=w0(a),h=w0(h),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[a]=h}unlinkPaths(a){a=w0(a),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[a]}notifySplices(a,h){let o={path:""},r=O(this,a,o);Vs(this,r,o.path,h)}get(a,h){return O(h||this,a)}set(a,h,o){o?zs(o,a,h):(!this[z.READ_ONLY]||!this[z.READ_ONLY][a])&&this._setPendingPropertyOrPath(a,h,!0)&&this._invalidateProperties()}push(a,...h){let o={path:""},r=O(this,a,o),n=r.length,l=r.push(...h);return h.length&&S0(this,r,o.path,n,h.length,[]),l}pop(a){let h={path:""},o=O(this,a,h),r=!!o.length,n=o.pop();return r&&S0(this,o,h.path,o.length,0,[n]),n}splice(a,h,o,...r){let n={path:""},l=O(this,a,n);h<0?h=l.length-Math.floor(-h):h&&(h=Math.floor(h));let d;return arguments.length===2?d=l.splice(h):d=l.splice(h,o,...r),(r.length||d.length)&&S0(this,l,n.path,h,r.length,d),d}shift(a){let h={path:""},o=O(this,a,h),r=!!o.length,n=o.shift();return r&&S0(this,o,h.path,0,0,[n]),n}unshift(a,...h){let o={path:""},r=O(this,a,o),n=r.unshift(...h);return h.length&&S0(this,r,o.path,0,h.length,[]),n}notifyPath(a,h){let o;if(arguments.length==1){let r={path:""};h=O(this,a,r),o=r.path}else Array.isArray(a)?o=w0(a):o=a;this._setPendingPropertyOrPath(o,h,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(a,h){this._addPropertyEffect(a,z.READ_ONLY),h&&(this["_set"+Xl(a)]=function(o){this._setProperty(a,o)})}_createPropertyObserver(a,h,o){let r={property:a,method:h,dynamicFn:!!o};this._addPropertyEffect(a,z.OBSERVE,{fn:ks,info:r,trigger:{name:a}}),o&&this._addPropertyEffect(h,z.OBSERVE,{fn:ks,info:r,trigger:{name:h}})}_createMethodObserver(a,h){let o=W1(a);if(!o)throw new Error("Malformed observer expression '"+a+"'");Ns(this,o,z.OBSERVE,q1,null,h)}_createNotifyingProperty(a){this._addPropertyEffect(a,z.NOTIFY,{fn:kl,info:{eventName:ye(a)+"-changed",property:a}})}_createReflectedProperty(a){let h=this.constructor.attributeNameForProperty(a);h[0]==="-"?console.warn("Property "+a+" cannot be reflected to attribute "+h+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(a,z.REFLECT,{fn:Il,info:{attrName:h}})}_createComputedProperty(a,h,o){let r=W1(h);if(!r)throw new Error("Malformed computed expression '"+h+"'");const n=Ns(this,r,z.COMPUTE,Ps,a,o);B1(this,Ss)[a]=n}_marshalArgs(a,h,o){const r=this.__data,n=[];for(let l=0,d=a.length;l<d;l++){let{name:c,structured:p,wildcard:v,value:g,literal:m}=a[l];if(!m)if(v){const A=Me(c,h),S=Ds(r,o,A?h:c);g={path:A?h:c,value:S,base:A?O(r,c):S}}else g=p?Ds(r,o,c):r[c];if(R1&&!this._overrideLegacyUndefined&&g===void 0&&a.length>1)return $0;n[l]=g}return n}static addPropertyEffect(a,h,o){this.prototype._addPropertyEffect(a,h,o)}static createPropertyObserver(a,h,o){this.prototype._createPropertyObserver(a,h,o)}static createMethodObserver(a,h){this.prototype._createMethodObserver(a,h)}static createNotifyingProperty(a){this.prototype._createNotifyingProperty(a)}static createReadOnlyProperty(a,h){this.prototype._createReadOnlyProperty(a,h)}static createReflectedProperty(a){this.prototype._createReflectedProperty(a)}static createComputedProperty(a,h,o){this.prototype._createComputedProperty(a,h,o)}static bindTemplate(a){return this.prototype._bindTemplate(a)}_bindTemplate(a,h){let o=this.constructor._parseTemplate(a),r=this.__preBoundTemplateInfo==o;if(!r)for(let n in o.propertyEffects)this._createPropertyAccessor(n);if(h)if(o=Object.create(o),o.wasPreBound=r,!this.__templateInfo)this.__templateInfo=o;else{const n=a._parentTemplateInfo||this.__templateInfo,l=n.lastChild;o.parent=n,n.lastChild=o,o.previousSibling=l,l?l.nextSibling=o:n.firstChild=o}else this.__preBoundTemplateInfo=o;return o}static _addTemplatePropertyEffect(a,h,o){let r=a.hostProps=a.hostProps||{};r[h]=!0;let n=a.propertyEffects=a.propertyEffects||{};(n[h]=n[h]||[]).push(o)}_stampTemplate(a,h){h=h||this._bindTemplate(a,!0),k0.push(this);let o=super._stampTemplate(a,h);if(k0.pop(),h.nodeList=o.nodeList,!h.wasPreBound){let r=h.childNodes=[];for(let n=o.firstChild;n;n=n.nextSibling)r.push(n)}return o.templateInfo=h,Ul(this,h),this.__dataClientsReady&&(this._runEffectsForTemplate(h,this.__data,null,!1),this._flushClients()),o}_removeBoundDom(a){const h=a.templateInfo,{previousSibling:o,nextSibling:r,parent:n}=h;o?o.nextSibling=r:n&&(n.firstChild=r),r?r.previousSibling=o:n&&(n.lastChild=o),h.nextSibling=h.previousSibling=null;let l=h.childNodes;for(let d=0;d<l.length;d++){let c=l[d];ft(ft(c).parentNode).removeChild(c)}}static _parseTemplateNode(a,h,o){let r=t._parseTemplateNode.call(this,a,h,o);if(a.nodeType===Node.TEXT_NODE){let n=this._parseBindings(a.textContent,h);n&&(a.textContent=Rs(n)||" ",j1(this,h,o,"text","textContent",n),r=!0)}return r}static _parseTemplateNodeAttribute(a,h,o,r,n){let l=this._parseBindings(n,h);if(l){let d=r,c="property";Cl.test(r)?c="attribute":r[r.length-1]=="$"&&(r=r.slice(0,-1),c="attribute");let p=Rs(l);return p&&c=="attribute"&&(r=="class"&&a.hasAttribute("class")&&(p+=" "+a.getAttribute(r)),a.setAttribute(r,p)),c=="attribute"&&d=="disable-upgrade$"&&a.setAttribute(r,""),a.localName==="input"&&d==="value"&&a.setAttribute(d,""),a.removeAttribute(d),c==="property"&&(r=bs(r)),j1(this,h,o,c,r,l,p),!0}else return t._parseTemplateNodeAttribute.call(this,a,h,o,r,n)}static _parseTemplateNestedTemplate(a,h,o){let r=t._parseTemplateNestedTemplate.call(this,a,h,o);const n=a.parentNode,l=o.templateInfo,d=n.localName==="dom-if",c=n.localName==="dom-repeat";ds&&(d||c)&&(n.removeChild(a),o=o.parentInfo,o.templateInfo=l,o.noted=!0,r=!1);let p=l.hostProps;if(Kr&&d)p&&(h.hostProps=Object.assign(h.hostProps||{},p),ds||(o.parentInfo.noted=!0));else{let v="{";for(let g in p){let m=[{mode:v,source:g,dependencies:[g],hostProp:!0}];j1(this,h,o,"property","_host_"+g,m)}}return r}static _parseBindings(a,h){let o=[],r=0,n;for(;(n=Os.exec(a))!==null;){n.index>r&&o.push({literal:a.slice(r,n.index)});let l=n[1][0],d=!!n[2],c=n[3].trim(),p=!1,v="",g=-1;l=="{"&&(g=c.indexOf("::"))>0&&(v=c.substring(g+2),c=c.substring(0,g),p=!0);let m=W1(c),A=[];if(m){let{args:S,methodName:N}=m;for(let K0=0;K0<S.length;K0++){let qo=S[K0];qo.literal||A.push(qo)}let st=h.dynamicFns;(st&&st[N]||m.static)&&(A.push(N),m.dynamicFn=!0)}else A.push(c);o.push({source:c,mode:l,negate:d,customEvent:p,signature:m,dependencies:A,event:v}),r=Os.lastIndex}if(r&&r<a.length){let l=a.substring(r);l&&o.push({literal:l})}return o.length?o:null}static _evaluateBinding(a,h,o,r,n,l){let d;return h.signature?d=q1(a,o,r,n,h.signature):o!=h.source?d=O(a,h.source):l&&D1(o)?d=O(a,o):d=a.__data[o],h.negate&&(d=!d),d}}return e}),k0=[];/**
1489
1489
  @license
1490
1490
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1491
1491
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1539,7 +1539,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1539
1539
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1540
1540
  * Code distributed by Google as part of the polymer project is also
1541
1541
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1542
- */let Gs=0,Ks=0;const Qt=[];let Z1=!1;function u2(){Z1=!1;const s=Qt.length;for(let t=0;t<s;t++){const e=Qt[t];if(e)try{e()}catch(i){setTimeout(()=>{throw i})}}Qt.splice(0,s),Ks+=s}const Ce={after(s){return{run(t){return window.setTimeout(t,s)},cancel(t){window.clearTimeout(t)}}},run(s,t){return window.setTimeout(s,t)},cancel(s){window.clearTimeout(s)}},we={run(s){return window.requestAnimationFrame(s)},cancel(s){window.cancelAnimationFrame(s)}},Js={run(s){return window.requestIdleCallback?window.requestIdleCallback(s):window.setTimeout(s,16)},cancel(s){window.cancelIdleCallback?window.cancelIdleCallback(s):window.clearTimeout(s)}},Qs={run(s){Z1||(Z1=!0,queueMicrotask(()=>u2())),Qt.push(s);const t=Gs;return Gs+=1,t},cancel(s){const t=s-Ks;if(t>=0){if(!Qt[t])throw new Error(`invalid async handle: ${s}`);Qt[t]=null}}};/**
1542
+ */let Gs=0,Ks=0;const Qt=[];let Z1=!1;function u2(){Z1=!1;const s=Qt.length;for(let t=0;t<s;t++){const e=Qt[t];if(e)try{e()}catch(i){setTimeout(()=>{throw i})}}Qt.splice(0,s),Ks+=s}const we={after(s){return{run(t){return window.setTimeout(t,s)},cancel(t){window.clearTimeout(t)}}},run(s,t){return window.setTimeout(s,t)},cancel(s){window.clearTimeout(s)}},Ce={run(s){return window.requestAnimationFrame(s)},cancel(s){window.cancelAnimationFrame(s)}},Js={run(s){return window.requestIdleCallback?window.requestIdleCallback(s):window.setTimeout(s,16)},cancel(s){window.cancelIdleCallback?window.cancelIdleCallback(s):window.clearTimeout(s)}},Qs={run(s){Z1||(Z1=!0,queueMicrotask(()=>u2())),Qt.push(s);const t=Gs;return Gs+=1,t},cancel(s){const t=s-Ks;if(t>=0){if(!Qt[t])throw new Error(`invalid async handle: ${s}`);Qt[t]=null}}};/**
1543
1543
  @license
1544
1544
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1545
1545
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1587,7 +1587,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1587
1587
  * @license
1588
1588
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
1589
1589
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1590
- */const Te=s=>s.test(navigator.userAgent),ti=s=>s.test(navigator.platform),C2=s=>s.test(navigator.vendor);Te(/Android/u),Te(/Chrome/u)&&C2(/Google Inc/u),Te(/Firefox/u);const w2=ti(/^iPad/u)||ti(/^Mac/u)&&navigator.maxTouchPoints>1,$2=ti(/^iPhone/u)||w2,hh=Te(/^((?!chrome|android).)*safari/iu),ei=(()=>{try{return document.createEvent("TouchEvent"),!0}catch{return!1}})();/**
1590
+ */const Te=s=>s.test(navigator.userAgent),ti=s=>s.test(navigator.platform),w2=s=>s.test(navigator.vendor);Te(/Android/u),Te(/Chrome/u)&&w2(/Google Inc/u),Te(/Firefox/u);const C2=ti(/^iPad/u)||ti(/^Mac/u)&&navigator.maxTouchPoints>1,$2=ti(/^iPhone/u)||C2,hh=Te(/^((?!chrome|android).)*safari/iu),ei=(()=>{try{return document.createEvent("TouchEvent"),!0}catch{return!1}})();/**
1591
1591
  * @license
1592
1592
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
1593
1593
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1618,7 +1618,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1618
1618
  * SPDX-License-Identifier: BSD-3-Clause
1619
1619
  */var ii;const Ie=window,Xt=Ie.trustedTypes,nh=Xt?Xt.createPolicy("lit-html",{createHTML:s=>s}):void 0,ai="$lit$",X=`lit$${(Math.random()+"").slice(9)}$`,rh="?"+X,T2=`<${rh}>`,Mt=document,Pe=()=>Mt.createComment(""),N0=s=>s===null||typeof s!="object"&&typeof s!="function",lh=Array.isArray,I2=s=>lh(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",si=`[
1620
1620
  \f\r]`,L0=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,dh=/-->/g,ch=/>/g,zt=RegExp(`>|${si}(?:([^\\s"'>=/]+)(${si}*=${si}*(?:[^
1621
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ph=/'/g,vh=/"/g,uh=/^(?:script|style|textarea|title)$/i,t0=Symbol.for("lit-noChange"),w=Symbol.for("lit-nothing"),gh=new WeakMap,bt=Mt.createTreeWalker(Mt,129,null,!1);function mh(s,t){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return nh!==void 0?nh.createHTML(t):t}const P2=(s,t)=>{const e=s.length-1,i=[];let a,h=t===2?"<svg>":"",o=L0;for(let r=0;r<e;r++){const n=s[r];let l,d,c=-1,p=0;for(;p<n.length&&(o.lastIndex=p,d=o.exec(n),d!==null);)p=o.lastIndex,o===L0?d[1]==="!--"?o=dh:d[1]!==void 0?o=ch:d[2]!==void 0?(uh.test(d[2])&&(a=RegExp("</"+d[2],"g")),o=zt):d[3]!==void 0&&(o=zt):o===zt?d[0]===">"?(o=a??L0,c=-1):d[1]===void 0?c=-2:(c=o.lastIndex-d[2].length,l=d[1],o=d[3]===void 0?zt:d[3]==='"'?vh:ph):o===vh||o===ph?o=zt:o===dh||o===ch?o=L0:(o=zt,a=void 0);const v=o===zt&&s[r+1].startsWith("/>")?" ":"";h+=o===L0?n+T2:c>=0?(i.push(l),n.slice(0,c)+ai+n.slice(c)+X+v):n+X+(c===-2?(i.push(void 0),r):v)}return[mh(s,h+(s[e]||"<?>")+(t===2?"</svg>":"")),i]};let hi=class tn{constructor({strings:t,_$litType$:e},i){let a;this.parts=[];let h=0,o=0;const r=t.length-1,n=this.parts,[l,d]=P2(t,e);if(this.el=tn.createElement(l,i),bt.currentNode=this.el.content,e===2){const c=this.el.content,p=c.firstChild;p.remove(),c.append(...p.childNodes)}for(;(a=bt.nextNode())!==null&&n.length<r;){if(a.nodeType===1){if(a.hasAttributes()){const c=[];for(const p of a.getAttributeNames())if(p.endsWith(ai)||p.startsWith(X)){const v=d[o++];if(c.push(p),v!==void 0){const g=a.getAttribute(v.toLowerCase()+ai).split(X),m=/([.?@])?(.*)/.exec(v);n.push({type:1,index:h,name:m[2],strings:g,ctor:m[1]==="."?L2:m[1]==="?"?O2:m[1]==="@"?R2:Ne})}else n.push({type:6,index:h})}for(const p of c)a.removeAttribute(p)}if(uh.test(a.tagName)){const c=a.textContent.split(X),p=c.length-1;if(p>0){a.textContent=Xt?Xt.emptyScript:"";for(let v=0;v<p;v++)a.append(c[v],Pe()),bt.nextNode(),n.push({type:2,index:++h});a.append(c[p],Pe())}}}else if(a.nodeType===8)if(a.data===rh)n.push({type:2,index:h});else{let c=-1;for(;(c=a.data.indexOf(X,c+1))!==-1;)n.push({type:7,index:h}),c+=X.length-1}h++}}static createElement(t,e){const i=Mt.createElement("template");return i.innerHTML=t,i}};function e0(s,t,e=s,i){var a,h,o,r;if(t===t0)return t;let n=i!==void 0?(a=e._$Co)===null||a===void 0?void 0:a[i]:e._$Cl;const l=N0(t)?void 0:t._$litDirective$;return(n==null?void 0:n.constructor)!==l&&((h=n==null?void 0:n._$AO)===null||h===void 0||h.call(n,!1),l===void 0?n=void 0:(n=new l(s),n._$AT(s,e,i)),i!==void 0?((o=(r=e)._$Co)!==null&&o!==void 0?o:r._$Co=[])[i]=n:e._$Cl=n),n!==void 0&&(t=e0(s,n._$AS(s,t.values),n,i)),t}let N2=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:a}=this._$AD,h=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:Mt).importNode(i,!0);bt.currentNode=h;let o=bt.nextNode(),r=0,n=0,l=a[0];for(;l!==void 0;){if(r===l.index){let d;l.type===2?d=new fh(o,o.nextSibling,this,t):l.type===1?d=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(d=new F2(o,this,t)),this._$AV.push(d),l=a[++n]}r!==(l==null?void 0:l.index)&&(o=bt.nextNode(),r++)}return bt.currentNode=Mt,h}v(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},fh=class en{constructor(t,e,i,a){var h;this.type=2,this._$AH=w,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=a,this._$Cp=(h=a==null?void 0:a.isConnected)===null||h===void 0||h}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=e0(this,t,e),N0(t)?t===w||t==null||t===""?(this._$AH!==w&&this._$AR(),this._$AH=w):t!==this._$AH&&t!==t0&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):I2(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==w&&N0(this._$AH)?this._$AA.nextSibling.data=t:this.$(Mt.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:a}=t,h=typeof a=="number"?this._$AC(t):(a.el===void 0&&(a.el=hi.createElement(mh(a.h,a.h[0]),this.options)),a);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===h)this._$AH.v(i);else{const o=new N2(h,this),r=o.u(this.options);o.v(i),this.$(r),this._$AH=o}}_$AC(t){let e=gh.get(t.strings);return e===void 0&&gh.set(t.strings,e=new hi(t)),e}T(t){lh(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,a=0;for(const h of t)a===e.length?e.push(i=new en(this.k(Pe()),this.k(Pe()),this,this.options)):i=e[a],i._$AI(h),a++;a<e.length&&(this._$AR(i&&i._$AB.nextSibling,a),e.length=a)}_$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 a=t.nextSibling;t.remove(),t=a}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}},Ne=class{constructor(t,e,i,a,h){this.type=1,this._$AH=w,this._$AN=void 0,this.element=t,this.name=e,this._$AM=a,this.options=h,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=w}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,a){const h=this.strings;let o=!1;if(h===void 0)t=e0(this,t,e,0),o=!N0(t)||t!==this._$AH&&t!==t0,o&&(this._$AH=t);else{const r=t;let n,l;for(t=h[0],n=0;n<h.length-1;n++)l=e0(this,r[i+n],e,n),l===t0&&(l=this._$AH[n]),o||(o=!N0(l)||l!==this._$AH[n]),l===w?t=w:t!==w&&(t+=(l??"")+h[n+1]),this._$AH[n]=l}o&&!a&&this.j(t)}j(t){t===w?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},L2=class extends Ne{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===w?void 0:t}};const H2=Xt?Xt.emptyScript:"";let O2=class extends Ne{constructor(){super(...arguments),this.type=4}j(t){t&&t!==w?this.element.setAttribute(this.name,H2):this.element.removeAttribute(this.name)}},R2=class extends Ne{constructor(t,e,i,a,h){super(t,e,i,a,h),this.type=5}_$AI(t,e=this){var i;if((t=(i=e0(this,t,e,0))!==null&&i!==void 0?i:w)===t0)return;const a=this._$AH,h=t===w&&a!==w||t.capture!==a.capture||t.once!==a.once||t.passive!==a.passive,o=t!==w&&(a===w||h);h&&this.element.removeEventListener(this.name,this,a),o&&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)}},F2=class{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){e0(this,t)}};const _h=Ie.litHtmlPolyfillSupport;_h==null||_h(hi,fh),((ii=Ie.litHtmlVersions)!==null&&ii!==void 0?ii:Ie.litHtmlVersions=[]).push("2.8.0");/**
1621
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ph=/'/g,vh=/"/g,uh=/^(?:script|style|textarea|title)$/i,t0=Symbol.for("lit-noChange"),C=Symbol.for("lit-nothing"),gh=new WeakMap,bt=Mt.createTreeWalker(Mt,129,null,!1);function mh(s,t){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return nh!==void 0?nh.createHTML(t):t}const P2=(s,t)=>{const e=s.length-1,i=[];let a,h=t===2?"<svg>":"",o=L0;for(let r=0;r<e;r++){const n=s[r];let l,d,c=-1,p=0;for(;p<n.length&&(o.lastIndex=p,d=o.exec(n),d!==null);)p=o.lastIndex,o===L0?d[1]==="!--"?o=dh:d[1]!==void 0?o=ch:d[2]!==void 0?(uh.test(d[2])&&(a=RegExp("</"+d[2],"g")),o=zt):d[3]!==void 0&&(o=zt):o===zt?d[0]===">"?(o=a??L0,c=-1):d[1]===void 0?c=-2:(c=o.lastIndex-d[2].length,l=d[1],o=d[3]===void 0?zt:d[3]==='"'?vh:ph):o===vh||o===ph?o=zt:o===dh||o===ch?o=L0:(o=zt,a=void 0);const v=o===zt&&s[r+1].startsWith("/>")?" ":"";h+=o===L0?n+T2:c>=0?(i.push(l),n.slice(0,c)+ai+n.slice(c)+X+v):n+X+(c===-2?(i.push(void 0),r):v)}return[mh(s,h+(s[e]||"<?>")+(t===2?"</svg>":"")),i]};let hi=class tn{constructor({strings:t,_$litType$:e},i){let a;this.parts=[];let h=0,o=0;const r=t.length-1,n=this.parts,[l,d]=P2(t,e);if(this.el=tn.createElement(l,i),bt.currentNode=this.el.content,e===2){const c=this.el.content,p=c.firstChild;p.remove(),c.append(...p.childNodes)}for(;(a=bt.nextNode())!==null&&n.length<r;){if(a.nodeType===1){if(a.hasAttributes()){const c=[];for(const p of a.getAttributeNames())if(p.endsWith(ai)||p.startsWith(X)){const v=d[o++];if(c.push(p),v!==void 0){const g=a.getAttribute(v.toLowerCase()+ai).split(X),m=/([.?@])?(.*)/.exec(v);n.push({type:1,index:h,name:m[2],strings:g,ctor:m[1]==="."?L2:m[1]==="?"?O2:m[1]==="@"?R2:Ne})}else n.push({type:6,index:h})}for(const p of c)a.removeAttribute(p)}if(uh.test(a.tagName)){const c=a.textContent.split(X),p=c.length-1;if(p>0){a.textContent=Xt?Xt.emptyScript:"";for(let v=0;v<p;v++)a.append(c[v],Pe()),bt.nextNode(),n.push({type:2,index:++h});a.append(c[p],Pe())}}}else if(a.nodeType===8)if(a.data===rh)n.push({type:2,index:h});else{let c=-1;for(;(c=a.data.indexOf(X,c+1))!==-1;)n.push({type:7,index:h}),c+=X.length-1}h++}}static createElement(t,e){const i=Mt.createElement("template");return i.innerHTML=t,i}};function e0(s,t,e=s,i){var a,h,o,r;if(t===t0)return t;let n=i!==void 0?(a=e._$Co)===null||a===void 0?void 0:a[i]:e._$Cl;const l=N0(t)?void 0:t._$litDirective$;return(n==null?void 0:n.constructor)!==l&&((h=n==null?void 0:n._$AO)===null||h===void 0||h.call(n,!1),l===void 0?n=void 0:(n=new l(s),n._$AT(s,e,i)),i!==void 0?((o=(r=e)._$Co)!==null&&o!==void 0?o:r._$Co=[])[i]=n:e._$Cl=n),n!==void 0&&(t=e0(s,n._$AS(s,t.values),n,i)),t}let N2=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:a}=this._$AD,h=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:Mt).importNode(i,!0);bt.currentNode=h;let o=bt.nextNode(),r=0,n=0,l=a[0];for(;l!==void 0;){if(r===l.index){let d;l.type===2?d=new fh(o,o.nextSibling,this,t):l.type===1?d=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(d=new F2(o,this,t)),this._$AV.push(d),l=a[++n]}r!==(l==null?void 0:l.index)&&(o=bt.nextNode(),r++)}return bt.currentNode=Mt,h}v(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},fh=class en{constructor(t,e,i,a){var h;this.type=2,this._$AH=C,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=a,this._$Cp=(h=a==null?void 0:a.isConnected)===null||h===void 0||h}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=e0(this,t,e),N0(t)?t===C||t==null||t===""?(this._$AH!==C&&this._$AR(),this._$AH=C):t!==this._$AH&&t!==t0&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):I2(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==C&&N0(this._$AH)?this._$AA.nextSibling.data=t:this.$(Mt.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:a}=t,h=typeof a=="number"?this._$AC(t):(a.el===void 0&&(a.el=hi.createElement(mh(a.h,a.h[0]),this.options)),a);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===h)this._$AH.v(i);else{const o=new N2(h,this),r=o.u(this.options);o.v(i),this.$(r),this._$AH=o}}_$AC(t){let e=gh.get(t.strings);return e===void 0&&gh.set(t.strings,e=new hi(t)),e}T(t){lh(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,a=0;for(const h of t)a===e.length?e.push(i=new en(this.k(Pe()),this.k(Pe()),this,this.options)):i=e[a],i._$AI(h),a++;a<e.length&&(this._$AR(i&&i._$AB.nextSibling,a),e.length=a)}_$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 a=t.nextSibling;t.remove(),t=a}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}},Ne=class{constructor(t,e,i,a,h){this.type=1,this._$AH=C,this._$AN=void 0,this.element=t,this.name=e,this._$AM=a,this.options=h,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=C}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,a){const h=this.strings;let o=!1;if(h===void 0)t=e0(this,t,e,0),o=!N0(t)||t!==this._$AH&&t!==t0,o&&(this._$AH=t);else{const r=t;let n,l;for(t=h[0],n=0;n<h.length-1;n++)l=e0(this,r[i+n],e,n),l===t0&&(l=this._$AH[n]),o||(o=!N0(l)||l!==this._$AH[n]),l===C?t=C:t!==C&&(t+=(l??"")+h[n+1]),this._$AH[n]=l}o&&!a&&this.j(t)}j(t){t===C?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},L2=class extends Ne{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===C?void 0:t}};const H2=Xt?Xt.emptyScript:"";let O2=class extends Ne{constructor(){super(...arguments),this.type=4}j(t){t&&t!==C?this.element.setAttribute(this.name,H2):this.element.removeAttribute(this.name)}},R2=class extends Ne{constructor(t,e,i,a,h){super(t,e,i,a,h),this.type=5}_$AI(t,e=this){var i;if((t=(i=e0(this,t,e,0))!==null&&i!==void 0?i:C)===t0)return;const a=this._$AH,h=t===C&&a!==C||t.capture!==a.capture||t.once!==a.once||t.passive!==a.passive,o=t!==C&&(a===C||h);h&&this.element.removeEventListener(this.name,this,a),o&&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)}},F2=class{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){e0(this,t)}};const _h=Ie.litHtmlPolyfillSupport;_h==null||_h(hi,fh),((ii=Ie.litHtmlVersions)!==null&&ii!==void 0?ii:Ie.litHtmlVersions=[]).push("2.8.0");/**
1622
1622
  * @license
1623
1623
  * Copyright 2020 Google LLC
1624
1624
  * SPDX-License-Identifier: BSD-3-Clause
@@ -1630,7 +1630,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1630
1630
  * @license
1631
1631
  * Copyright 2017 Google LLC
1632
1632
  * SPDX-License-Identifier: BSD-3-Clause
1633
- */let oi=class extends j2{constructor(t){if(super(t),this.et=w,t.type!==B2.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===w||t==null)return this.ft=void 0,this.et=t;if(t===t0)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}};oi.directiveName="unsafeHTML",oi.resultType=1;/**
1633
+ */let oi=class extends j2{constructor(t){if(super(t),this.et=C,t.type!==B2.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===C||t==null)return this.ft=void 0,this.et=t;if(t===t0)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}};oi.directiveName="unsafeHTML",oi.resultType=1;/**
1634
1634
  * @license
1635
1635
  * Copyright 2017 Google LLC
1636
1636
  * SPDX-License-Identifier: BSD-3-Clause
@@ -1642,7 +1642,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1642
1642
  * @license
1643
1643
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
1644
1644
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1645
- */const yt={},yh=new Set;function xh(s,t){return(s||"").replace(`${t}:`,"")}function Ah(s){return s?s.split(":")[0]||"vaadin":void 0}function Ch(s,t){s._icons=[...s.querySelectorAll("[id]")].reduce((e,i)=>{const a=xh(i.id,t);return e[a]=i,e},{})}let Le=class extends Ee(Q){static get template(){return null}static get is(){return"vaadin-iconset"}static get properties(){return{name:{type:String,observer:"__nameChanged"},size:{type:Number,value:24}}}static get attachedIcons(){return yh}static getIconset(t){return yt[t]}static getIconSvg(t,e){const i=e||Ah(t),a=this.getIconset(i);if(!t||!a)return{svg:zh(null)};const h=xh(t,i),o=a._icons[h];return{preserveAspectRatio:o?o.getAttribute("preserveAspectRatio"):null,svg:zh(o),size:a.size,viewBox:o?o.getAttribute("viewBox"):null}}static register(t,e,i){if(!yt[t]){const a=document.createElement("vaadin-iconset");a.appendChild(i.content.cloneNode(!0)),yt[t]=a,Ch(a,t),a.size=e,a.name=t,a.__nameChanged(t)}}connectedCallback(){super.connectedCallback(),this.style.display="none";const{name:t}=this;yt[t]=this,Ch(this,t),this.__updateIcons(t)}__updateIcons(t){yh.forEach(e=>{t===Ah(e.icon)&&e._applyIcon()})}__nameChanged(t,e){e&&(yt[t]=yt[e],delete yt[e]),t&&this.__updateIcons(t)}};q(Le);/**
1645
+ */const yt={},yh=new Set;function xh(s,t){return(s||"").replace(`${t}:`,"")}function Ah(s){return s?s.split(":")[0]||"vaadin":void 0}function wh(s,t){s._icons=[...s.querySelectorAll("[id]")].reduce((e,i)=>{const a=xh(i.id,t);return e[a]=i,e},{})}let Le=class extends Ee(Q){static get template(){return null}static get is(){return"vaadin-iconset"}static get properties(){return{name:{type:String,observer:"__nameChanged"},size:{type:Number,value:24}}}static get attachedIcons(){return yh}static getIconset(t){return yt[t]}static getIconSvg(t,e){const i=e||Ah(t),a=this.getIconset(i);if(!t||!a)return{svg:zh(null)};const h=xh(t,i),o=a._icons[h];return{preserveAspectRatio:o?o.getAttribute("preserveAspectRatio"):null,svg:zh(o),size:a.size,viewBox:o?o.getAttribute("viewBox"):null}}static register(t,e,i){if(!yt[t]){const a=document.createElement("vaadin-iconset");a.appendChild(i.content.cloneNode(!0)),yt[t]=a,wh(a,t),a.size=e,a.name=t,a.__nameChanged(t)}}connectedCallback(){super.connectedCallback(),this.style.display="none";const{name:t}=this;yt[t]=this,wh(this,t),this.__updateIcons(t)}__updateIcons(t){yh.forEach(e=>{t===Ah(e.icon)&&e._applyIcon()})}__nameChanged(t,e){e&&(yt[t]=yt[e],delete yt[e]),t&&this.__updateIcons(t)}};q(Le);/**
1646
1646
  * @license
1647
1647
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
1648
1648
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1712,9 +1712,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1712
1712
  * @license
1713
1713
  * Copyright 2017 Google LLC
1714
1714
  * SPDX-License-Identifier: BSD-3-Clause
1715
- */var li;const He=window,i0=He.trustedTypes,wh=i0?i0.createPolicy("lit-html",{createHTML:s=>s}):void 0,di="$lit$",tt=`lit$${(Math.random()+"").slice(9)}$`,$h="?"+tt,Y2=`<${$h}>`,xt=document,Oe=()=>xt.createComment(""),O0=s=>s===null||typeof s!="object"&&typeof s!="function",Eh=Array.isArray,G2=s=>Eh(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",ci=`[
1715
+ */var li;const He=window,i0=He.trustedTypes,Ch=i0?i0.createPolicy("lit-html",{createHTML:s=>s}):void 0,di="$lit$",tt=`lit$${(Math.random()+"").slice(9)}$`,$h="?"+tt,Y2=`<${$h}>`,xt=document,Oe=()=>xt.createComment(""),O0=s=>s===null||typeof s!="object"&&typeof s!="function",Eh=Array.isArray,G2=s=>Eh(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",ci=`[
1716
1716
  \f\r]`,R0=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Sh=/-->/g,kh=/>/g,At=RegExp(`>|${ci}(?:([^\\s"'>=/]+)(${ci}*=${ci}*(?:[^
1717
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Th=/'/g,Ih=/"/g,Ph=/^(?:script|style|textarea|title)$/i,a0=Symbol.for("lit-noChange"),$=Symbol.for("lit-nothing"),Nh=new WeakMap,Ct=xt.createTreeWalker(xt,129,null,!1);function Lh(s,t){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return wh!==void 0?wh.createHTML(t):t}const K2=(s,t)=>{const e=s.length-1,i=[];let a,h=t===2?"<svg>":"",o=R0;for(let r=0;r<e;r++){const n=s[r];let l,d,c=-1,p=0;for(;p<n.length&&(o.lastIndex=p,d=o.exec(n),d!==null);)p=o.lastIndex,o===R0?d[1]==="!--"?o=Sh:d[1]!==void 0?o=kh:d[2]!==void 0?(Ph.test(d[2])&&(a=RegExp("</"+d[2],"g")),o=At):d[3]!==void 0&&(o=At):o===At?d[0]===">"?(o=a??R0,c=-1):d[1]===void 0?c=-2:(c=o.lastIndex-d[2].length,l=d[1],o=d[3]===void 0?At:d[3]==='"'?Ih:Th):o===Ih||o===Th?o=At:o===Sh||o===kh?o=R0:(o=At,a=void 0);const v=o===At&&s[r+1].startsWith("/>")?" ":"";h+=o===R0?n+Y2:c>=0?(i.push(l),n.slice(0,c)+di+n.slice(c)+tt+v):n+tt+(c===-2?(i.push(void 0),r):v)}return[Lh(s,h+(s[e]||"<?>")+(t===2?"</svg>":"")),i]};let pi=class an{constructor({strings:t,_$litType$:e},i){let a;this.parts=[];let h=0,o=0;const r=t.length-1,n=this.parts,[l,d]=K2(t,e);if(this.el=an.createElement(l,i),Ct.currentNode=this.el.content,e===2){const c=this.el.content,p=c.firstChild;p.remove(),c.append(...p.childNodes)}for(;(a=Ct.nextNode())!==null&&n.length<r;){if(a.nodeType===1){if(a.hasAttributes()){const c=[];for(const p of a.getAttributeNames())if(p.endsWith(di)||p.startsWith(tt)){const v=d[o++];if(c.push(p),v!==void 0){const g=a.getAttribute(v.toLowerCase()+di).split(tt),m=/([.?@])?(.*)/.exec(v);n.push({type:1,index:h,name:m[2],strings:g,ctor:m[1]==="."?Q2:m[1]==="?"?td:m[1]==="@"?ed:Re})}else n.push({type:6,index:h})}for(const p of c)a.removeAttribute(p)}if(Ph.test(a.tagName)){const c=a.textContent.split(tt),p=c.length-1;if(p>0){a.textContent=i0?i0.emptyScript:"";for(let v=0;v<p;v++)a.append(c[v],Oe()),Ct.nextNode(),n.push({type:2,index:++h});a.append(c[p],Oe())}}}else if(a.nodeType===8)if(a.data===$h)n.push({type:2,index:h});else{let c=-1;for(;(c=a.data.indexOf(tt,c+1))!==-1;)n.push({type:7,index:h}),c+=tt.length-1}h++}}static createElement(t,e){const i=xt.createElement("template");return i.innerHTML=t,i}};function s0(s,t,e=s,i){var a,h,o,r;if(t===a0)return t;let n=i!==void 0?(a=e._$Co)===null||a===void 0?void 0:a[i]:e._$Cl;const l=O0(t)?void 0:t._$litDirective$;return(n==null?void 0:n.constructor)!==l&&((h=n==null?void 0:n._$AO)===null||h===void 0||h.call(n,!1),l===void 0?n=void 0:(n=new l(s),n._$AT(s,e,i)),i!==void 0?((o=(r=e)._$Co)!==null&&o!==void 0?o:r._$Co=[])[i]=n:e._$Cl=n),n!==void 0&&(t=s0(s,n._$AS(s,t.values),n,i)),t}let J2=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:a}=this._$AD,h=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:xt).importNode(i,!0);Ct.currentNode=h;let o=Ct.nextNode(),r=0,n=0,l=a[0];for(;l!==void 0;){if(r===l.index){let d;l.type===2?d=new Hh(o,o.nextSibling,this,t):l.type===1?d=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(d=new id(o,this,t)),this._$AV.push(d),l=a[++n]}r!==(l==null?void 0:l.index)&&(o=Ct.nextNode(),r++)}return Ct.currentNode=xt,h}v(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},Hh=class sn{constructor(t,e,i,a){var h;this.type=2,this._$AH=$,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=a,this._$Cp=(h=a==null?void 0:a.isConnected)===null||h===void 0||h}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=s0(this,t,e),O0(t)?t===$||t==null||t===""?(this._$AH!==$&&this._$AR(),this._$AH=$):t!==this._$AH&&t!==a0&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):G2(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==$&&O0(this._$AH)?this._$AA.nextSibling.data=t:this.$(xt.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:a}=t,h=typeof a=="number"?this._$AC(t):(a.el===void 0&&(a.el=pi.createElement(Lh(a.h,a.h[0]),this.options)),a);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===h)this._$AH.v(i);else{const o=new J2(h,this),r=o.u(this.options);o.v(i),this.$(r),this._$AH=o}}_$AC(t){let e=Nh.get(t.strings);return e===void 0&&Nh.set(t.strings,e=new pi(t)),e}T(t){Eh(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,a=0;for(const h of t)a===e.length?e.push(i=new sn(this.k(Oe()),this.k(Oe()),this,this.options)):i=e[a],i._$AI(h),a++;a<e.length&&(this._$AR(i&&i._$AB.nextSibling,a),e.length=a)}_$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 a=t.nextSibling;t.remove(),t=a}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}},Re=class{constructor(t,e,i,a,h){this.type=1,this._$AH=$,this._$AN=void 0,this.element=t,this.name=e,this._$AM=a,this.options=h,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=$}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,a){const h=this.strings;let o=!1;if(h===void 0)t=s0(this,t,e,0),o=!O0(t)||t!==this._$AH&&t!==a0,o&&(this._$AH=t);else{const r=t;let n,l;for(t=h[0],n=0;n<h.length-1;n++)l=s0(this,r[i+n],e,n),l===a0&&(l=this._$AH[n]),o||(o=!O0(l)||l!==this._$AH[n]),l===$?t=$:t!==$&&(t+=(l??"")+h[n+1]),this._$AH[n]=l}o&&!a&&this.j(t)}j(t){t===$?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Q2=class extends Re{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===$?void 0:t}};const X2=i0?i0.emptyScript:"";let td=class extends Re{constructor(){super(...arguments),this.type=4}j(t){t&&t!==$?this.element.setAttribute(this.name,X2):this.element.removeAttribute(this.name)}},ed=class extends Re{constructor(t,e,i,a,h){super(t,e,i,a,h),this.type=5}_$AI(t,e=this){var i;if((t=(i=s0(this,t,e,0))!==null&&i!==void 0?i:$)===a0)return;const a=this._$AH,h=t===$&&a!==$||t.capture!==a.capture||t.once!==a.once||t.passive!==a.passive,o=t!==$&&(a===$||h);h&&this.element.removeEventListener(this.name,this,a),o&&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)}},id=class{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){s0(this,t)}};const Oh=He.litHtmlPolyfillSupport;Oh==null||Oh(pi,Hh),((li=He.litHtmlVersions)!==null&&li!==void 0?li:He.litHtmlVersions=[]).push("2.8.0");/**
1717
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Th=/'/g,Ih=/"/g,Ph=/^(?:script|style|textarea|title)$/i,a0=Symbol.for("lit-noChange"),$=Symbol.for("lit-nothing"),Nh=new WeakMap,wt=xt.createTreeWalker(xt,129,null,!1);function Lh(s,t){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ch!==void 0?Ch.createHTML(t):t}const K2=(s,t)=>{const e=s.length-1,i=[];let a,h=t===2?"<svg>":"",o=R0;for(let r=0;r<e;r++){const n=s[r];let l,d,c=-1,p=0;for(;p<n.length&&(o.lastIndex=p,d=o.exec(n),d!==null);)p=o.lastIndex,o===R0?d[1]==="!--"?o=Sh:d[1]!==void 0?o=kh:d[2]!==void 0?(Ph.test(d[2])&&(a=RegExp("</"+d[2],"g")),o=At):d[3]!==void 0&&(o=At):o===At?d[0]===">"?(o=a??R0,c=-1):d[1]===void 0?c=-2:(c=o.lastIndex-d[2].length,l=d[1],o=d[3]===void 0?At:d[3]==='"'?Ih:Th):o===Ih||o===Th?o=At:o===Sh||o===kh?o=R0:(o=At,a=void 0);const v=o===At&&s[r+1].startsWith("/>")?" ":"";h+=o===R0?n+Y2:c>=0?(i.push(l),n.slice(0,c)+di+n.slice(c)+tt+v):n+tt+(c===-2?(i.push(void 0),r):v)}return[Lh(s,h+(s[e]||"<?>")+(t===2?"</svg>":"")),i]};let pi=class an{constructor({strings:t,_$litType$:e},i){let a;this.parts=[];let h=0,o=0;const r=t.length-1,n=this.parts,[l,d]=K2(t,e);if(this.el=an.createElement(l,i),wt.currentNode=this.el.content,e===2){const c=this.el.content,p=c.firstChild;p.remove(),c.append(...p.childNodes)}for(;(a=wt.nextNode())!==null&&n.length<r;){if(a.nodeType===1){if(a.hasAttributes()){const c=[];for(const p of a.getAttributeNames())if(p.endsWith(di)||p.startsWith(tt)){const v=d[o++];if(c.push(p),v!==void 0){const g=a.getAttribute(v.toLowerCase()+di).split(tt),m=/([.?@])?(.*)/.exec(v);n.push({type:1,index:h,name:m[2],strings:g,ctor:m[1]==="."?Q2:m[1]==="?"?td:m[1]==="@"?ed:Re})}else n.push({type:6,index:h})}for(const p of c)a.removeAttribute(p)}if(Ph.test(a.tagName)){const c=a.textContent.split(tt),p=c.length-1;if(p>0){a.textContent=i0?i0.emptyScript:"";for(let v=0;v<p;v++)a.append(c[v],Oe()),wt.nextNode(),n.push({type:2,index:++h});a.append(c[p],Oe())}}}else if(a.nodeType===8)if(a.data===$h)n.push({type:2,index:h});else{let c=-1;for(;(c=a.data.indexOf(tt,c+1))!==-1;)n.push({type:7,index:h}),c+=tt.length-1}h++}}static createElement(t,e){const i=xt.createElement("template");return i.innerHTML=t,i}};function s0(s,t,e=s,i){var a,h,o,r;if(t===a0)return t;let n=i!==void 0?(a=e._$Co)===null||a===void 0?void 0:a[i]:e._$Cl;const l=O0(t)?void 0:t._$litDirective$;return(n==null?void 0:n.constructor)!==l&&((h=n==null?void 0:n._$AO)===null||h===void 0||h.call(n,!1),l===void 0?n=void 0:(n=new l(s),n._$AT(s,e,i)),i!==void 0?((o=(r=e)._$Co)!==null&&o!==void 0?o:r._$Co=[])[i]=n:e._$Cl=n),n!==void 0&&(t=s0(s,n._$AS(s,t.values),n,i)),t}let J2=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:a}=this._$AD,h=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:xt).importNode(i,!0);wt.currentNode=h;let o=wt.nextNode(),r=0,n=0,l=a[0];for(;l!==void 0;){if(r===l.index){let d;l.type===2?d=new Hh(o,o.nextSibling,this,t):l.type===1?d=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(d=new id(o,this,t)),this._$AV.push(d),l=a[++n]}r!==(l==null?void 0:l.index)&&(o=wt.nextNode(),r++)}return wt.currentNode=xt,h}v(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},Hh=class sn{constructor(t,e,i,a){var h;this.type=2,this._$AH=$,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=a,this._$Cp=(h=a==null?void 0:a.isConnected)===null||h===void 0||h}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=s0(this,t,e),O0(t)?t===$||t==null||t===""?(this._$AH!==$&&this._$AR(),this._$AH=$):t!==this._$AH&&t!==a0&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):G2(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==$&&O0(this._$AH)?this._$AA.nextSibling.data=t:this.$(xt.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:a}=t,h=typeof a=="number"?this._$AC(t):(a.el===void 0&&(a.el=pi.createElement(Lh(a.h,a.h[0]),this.options)),a);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===h)this._$AH.v(i);else{const o=new J2(h,this),r=o.u(this.options);o.v(i),this.$(r),this._$AH=o}}_$AC(t){let e=Nh.get(t.strings);return e===void 0&&Nh.set(t.strings,e=new pi(t)),e}T(t){Eh(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,a=0;for(const h of t)a===e.length?e.push(i=new sn(this.k(Oe()),this.k(Oe()),this,this.options)):i=e[a],i._$AI(h),a++;a<e.length&&(this._$AR(i&&i._$AB.nextSibling,a),e.length=a)}_$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 a=t.nextSibling;t.remove(),t=a}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}},Re=class{constructor(t,e,i,a,h){this.type=1,this._$AH=$,this._$AN=void 0,this.element=t,this.name=e,this._$AM=a,this.options=h,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=$}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,a){const h=this.strings;let o=!1;if(h===void 0)t=s0(this,t,e,0),o=!O0(t)||t!==this._$AH&&t!==a0,o&&(this._$AH=t);else{const r=t;let n,l;for(t=h[0],n=0;n<h.length-1;n++)l=s0(this,r[i+n],e,n),l===a0&&(l=this._$AH[n]),o||(o=!O0(l)||l!==this._$AH[n]),l===$?t=$:t!==$&&(t+=(l??"")+h[n+1]),this._$AH[n]=l}o&&!a&&this.j(t)}j(t){t===$?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Q2=class extends Re{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===$?void 0:t}};const X2=i0?i0.emptyScript:"";let td=class extends Re{constructor(){super(...arguments),this.type=4}j(t){t&&t!==$?this.element.setAttribute(this.name,X2):this.element.removeAttribute(this.name)}},ed=class extends Re{constructor(t,e,i,a,h){super(t,e,i,a,h),this.type=5}_$AI(t,e=this){var i;if((t=(i=s0(this,t,e,0))!==null&&i!==void 0?i:$)===a0)return;const a=this._$AH,h=t===$&&a!==$||t.capture!==a.capture||t.once!==a.once||t.passive!==a.passive,o=t!==$&&(a===$||h);h&&this.element.removeEventListener(this.name,this,a),o&&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)}},id=class{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){s0(this,t)}};const Oh=He.litHtmlPolyfillSupport;Oh==null||Oh(pi,Hh),((li=He.litHtmlVersions)!==null&&li!==void 0?li:He.litHtmlVersions=[]).push("2.8.0");/**
1718
1718
  * @license
1719
1719
  * Copyright 2017 Google LLC
1720
1720
  * SPDX-License-Identifier: BSD-3-Clause
@@ -1734,7 +1734,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1734
1734
  * @license
1735
1735
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
1736
1736
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1737
- */const wt={},Fh=new Set;function Dh(s,t){return(s||"").replace(`${t}:`,"")}function Vh(s){return s?s.split(":")[0]||"vaadin":void 0}function Bh(s,t){s._icons=[...s.querySelectorAll("[id]")].reduce((e,i)=>{const a=Dh(i.id,t);return e[a]=i,e},{})}class Uh extends Ee(Q){static get template(){return null}static get is(){return"vaadin-iconset"}static get properties(){return{name:{type:String,observer:"__nameChanged"},size:{type:Number,value:24}}}static get attachedIcons(){return Fh}static getIconset(t){return wt[t]}static getIconSvg(t,e){const i=e||Vh(t),a=this.getIconset(i);if(!t||!a)return{svg:Rh(null)};const h=Dh(t,i),o=a._icons[h];return{preserveAspectRatio:o?o.getAttribute("preserveAspectRatio"):null,svg:Rh(o),size:a.size,viewBox:o?o.getAttribute("viewBox"):null}}static register(t,e,i){if(!wt[t]){const a=document.createElement("vaadin-iconset");a.appendChild(i.content.cloneNode(!0)),wt[t]=a,Bh(a,t),a.size=e,a.name=t,a.__nameChanged(t)}}connectedCallback(){super.connectedCallback(),this.style.display="none";const{name:t}=this;wt[t]=this,Bh(this,t),this.__updateIcons(t)}__updateIcons(t){Fh.forEach(e=>{t===Vh(e.icon)&&e._applyIcon()})}__nameChanged(t,e){e&&(wt[t]=wt[e],delete wt[e]),t&&this.__updateIcons(t)}}q(Uh);/**
1737
+ */const Ct={},Fh=new Set;function Dh(s,t){return(s||"").replace(`${t}:`,"")}function Vh(s){return s?s.split(":")[0]||"vaadin":void 0}function Bh(s,t){s._icons=[...s.querySelectorAll("[id]")].reduce((e,i)=>{const a=Dh(i.id,t);return e[a]=i,e},{})}class Uh extends Ee(Q){static get template(){return null}static get is(){return"vaadin-iconset"}static get properties(){return{name:{type:String,observer:"__nameChanged"},size:{type:Number,value:24}}}static get attachedIcons(){return Fh}static getIconset(t){return Ct[t]}static getIconSvg(t,e){const i=e||Vh(t),a=this.getIconset(i);if(!t||!a)return{svg:Rh(null)};const h=Dh(t,i),o=a._icons[h];return{preserveAspectRatio:o?o.getAttribute("preserveAspectRatio"):null,svg:Rh(o),size:a.size,viewBox:o?o.getAttribute("viewBox"):null}}static register(t,e,i){if(!Ct[t]){const a=document.createElement("vaadin-iconset");a.appendChild(i.content.cloneNode(!0)),Ct[t]=a,Bh(a,t),a.size=e,a.name=t,a.__nameChanged(t)}}connectedCallback(){super.connectedCallback(),this.style.display="none";const{name:t}=this;Ct[t]=this,Bh(this,t),this.__updateIcons(t)}__updateIcons(t){Fh.forEach(e=>{t===Vh(e.icon)&&e._applyIcon()})}__nameChanged(t,e){e&&(Ct[t]=Ct[e],delete Ct[e]),t&&this.__updateIcons(t)}}q(Uh);/**
1738
1738
  * @license
1739
1739
  * Copyright (c) 2015 - 2023 Vaadin Ltd.
1740
1740
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -2405,7 +2405,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2405
2405
  * @license
2406
2406
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
2407
2407
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2408
- */const Cd=_`
2408
+ */const wd=_`
2409
2409
  :host {
2410
2410
  /* Base (background) */
2411
2411
  --lumo-base-color: #fff;
@@ -2490,7 +2490,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2490
2490
  --lumo-disabled-text-color: GrayText;
2491
2491
  }
2492
2492
  }
2493
- `;Gt("color-props",Cd);const wd=_`
2493
+ `;Gt("color-props",wd);const Cd=_`
2494
2494
  [theme~='dark'] {
2495
2495
  /* Base (background) */
2496
2496
  --lumo-base-color: hsl(214, 35%, 21%);
@@ -2605,7 +2605,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2605
2605
  background-color: var(--lumo-contrast-10pct);
2606
2606
  border-radius: var(--lumo-border-radius-m);
2607
2607
  }
2608
- `;L("",wd,{moduleId:"lumo-color"});/**
2608
+ `;L("",Cd,{moduleId:"lumo-color"});/**
2609
2609
  * @license
2610
2610
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
2611
2611
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3790,11 +3790,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3790
3790
  * @license
3791
3791
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
3792
3792
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3793
- */let Ai=!1;window.addEventListener("keydown",()=>{Ai=!0},{capture:!0}),window.addEventListener("mousedown",()=>{Ai=!1},{capture:!0});function Ci(){let s=document.activeElement||document.body;for(;s.shadowRoot&&s.shadowRoot.activeElement;)s=s.shadowRoot.activeElement;return s}function Qd(){return Ai}function Xd(s){const t=s.style;if(t.visibility==="hidden"||t.display==="none")return!0;const e=window.getComputedStyle(s);return e.visibility==="hidden"||e.display==="none"}function tc(s,t){const e=Math.max(s.tabIndex,0),i=Math.max(t.tabIndex,0);return e===0||i===0?i>e:e>i}function ec(s,t){const e=[];for(;s.length>0&&t.length>0;)tc(s[0],t[0])?e.push(t.shift()):e.push(s.shift());return e.concat(s,t)}function wi(s){const t=s.length;if(t<2)return s;const e=Math.ceil(t/2),i=wi(s.slice(0,e)),a=wi(s.slice(e));return ec(i,a)}function ic(s){return s.matches('[tabindex="-1"]')?!1:s.matches("input, select, textarea, button, object")?s.matches(":not([disabled])"):s.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function uo(s){return s.getRootNode().activeElement===s}function ac(s){if(!ic(s))return-1;const t=s.getAttribute("tabindex")||0;return Number(t)}function go(s,t){if(s.nodeType!==Node.ELEMENT_NODE||Xd(s))return!1;const e=s,i=ac(e);let a=i>0;i>=0&&t.push(e);let h=[];return e.localName==="slot"?h=e.assignedNodes({flatten:!0}):h=(e.shadowRoot||e).children,[...h].forEach(o=>{a=go(o,t)||a}),a}function sc(s){const t=[];return go(s,t)?wi(t):t}/**
3793
+ */let Ai=!1;window.addEventListener("keydown",()=>{Ai=!0},{capture:!0}),window.addEventListener("mousedown",()=>{Ai=!1},{capture:!0});function wi(){let s=document.activeElement||document.body;for(;s.shadowRoot&&s.shadowRoot.activeElement;)s=s.shadowRoot.activeElement;return s}function Qd(){return Ai}function Xd(s){const t=s.style;if(t.visibility==="hidden"||t.display==="none")return!0;const e=window.getComputedStyle(s);return e.visibility==="hidden"||e.display==="none"}function tc(s,t){const e=Math.max(s.tabIndex,0),i=Math.max(t.tabIndex,0);return e===0||i===0?i>e:e>i}function ec(s,t){const e=[];for(;s.length>0&&t.length>0;)tc(s[0],t[0])?e.push(t.shift()):e.push(s.shift());return e.concat(s,t)}function Ci(s){const t=s.length;if(t<2)return s;const e=Math.ceil(t/2),i=Ci(s.slice(0,e)),a=Ci(s.slice(e));return ec(i,a)}function ic(s){return s.matches('[tabindex="-1"]')?!1:s.matches("input, select, textarea, button, object")?s.matches(":not([disabled])"):s.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function uo(s){return s.getRootNode().activeElement===s}function ac(s){if(!ic(s))return-1;const t=s.getAttribute("tabindex")||0;return Number(t)}function go(s,t){if(s.nodeType!==Node.ELEMENT_NODE||Xd(s))return!1;const e=s,i=ac(e);let a=i>0;i>=0&&t.push(e);let h=[];return e.localName==="slot"?h=e.assignedNodes({flatten:!0}):h=(e.shadowRoot||e).children,[...h].forEach(o=>{a=go(o,t)||a}),a}function sc(s){const t=[];return go(s,t)?Ci(t):t}/**
3794
3794
  * @license
3795
3795
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
3796
3796
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3797
- */class hc{saveFocus(t){this.focusNode=t||Ci()}restoreFocus(){const t=this.focusNode;t&&(Ci()===document.body?setTimeout(()=>t.focus()):t.focus(),this.focusNode=null)}}/**
3797
+ */class hc{saveFocus(t){this.focusNode=t||wi()}restoreFocus(){const t=this.focusNode;t&&(wi()===document.body?setTimeout(()=>t.focus()):t.focus(),this.focusNode=null)}}/**
3798
3798
  * @license
3799
3799
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
3800
3800
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3802,7 +3802,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3802
3802
  * @license
3803
3803
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
3804
3804
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3805
- */const nc=s=>class extends T0(s){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Jd(this),this.__focusTrapController=new oc(this),this.__focusRestorationController=new hc}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()&&this.__focusRestorationController.restoreFocus()}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const e=Ci();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let i=e;const a=e.ownerDocument;for(;i&&i!==a&&i!==this;)i=i.parentNode||i.host;return i===this}};/**
3805
+ */const nc=s=>class extends T0(s){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Jd(this),this.__focusTrapController=new oc(this),this.__focusRestorationController=new hc}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()&&this.__focusRestorationController.restoreFocus()}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const e=wi();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let i=e;const a=e.ownerDocument;for(;i&&i!==a&&i!==this;)i=i.parentNode||i.host;return i===this}};/**
3806
3806
  * @license
3807
3807
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
3808
3808
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3912,11 +3912,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3912
3912
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3913
3913
  * Code distributed by Google as part of the polymer project is also
3914
3914
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3915
- */const fo=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),mc=fo&&fo[1]>=8,_o=3,fc={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){const s=this._virtualCount;return Math.max(0,s-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(s){s=this._clamp(s,0,this._maxVirtualStart),this._virtualStartVal=s},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(s){s%=this._physicalCount,s<0&&(s=this._physicalCount+s),this._physicalStartVal=s},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(s){this._physicalCountVal=s},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let s=this._firstVisibleIndexVal;if(s==null){let t=this._physicalTop+this._scrollOffset;s=this._iterateItems((e,i)=>{if(t+=this._getPhysicalSizeIncrement(e),t>this._scrollPosition)return i})||0,this._firstVisibleIndexVal=s}return s},get lastVisibleIndex(){let s=this._lastVisibleIndexVal;if(s==null){let t=this._physicalTop+this._scrollOffset;this._iterateItems((e,i)=>{t<this._scrollBottom&&(s=i),t+=this._getPhysicalSizeIncrement(e)}),this._lastVisibleIndexVal=s}return s},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const s=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let t=s-this._scrollPosition;const e=t>=0;if(this._scrollPosition=s,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(t)>this._physicalSize&&this._physicalSize>0){t-=this._scrollOffset;const i=Math.round(t/this._physicalAverage);this._virtualStart+=i,this._physicalStart+=i,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const i=this._getReusables(e);e?(this._physicalTop=i.physicalTop,this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length):(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length),this._update(i.indexes,e?null:i.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),Qs)}},_getReusables(s){let t,e,i;const a=[],h=this._hiddenContentSize*this._ratio,o=this._virtualStart,r=this._virtualEnd,n=this._physicalCount;let l=this._physicalTop+this._scrollOffset;const d=this._physicalBottom+this._scrollOffset,c=this._scrollPosition,p=this._scrollBottom;for(s?(t=this._physicalStart,e=c-l):(t=this._physicalEnd,e=d-p);i=this._getPhysicalSizeIncrement(t),e-=i,!(a.length>=n||e<=h);)if(s){if(r+a.length+1>=this._virtualCount||l+i>=c-this._scrollOffset)break;a.push(t),l+=i,t=(t+1)%n}else{if(o-a.length<=0||l+this._physicalSize-i<=p)break;a.push(t),l-=i,t=t===0?n-1:t-1}return{indexes:a,physicalTop:l-this._scrollOffset}},_update(s,t){if(!(s&&s.length===0||this._physicalCount===0)){if(this._assignModels(s),this._updateMetrics(s),t)for(;t.length;){const e=t.pop();this._physicalTop-=this._getPhysicalSizeIncrement(e)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(s){const e=this._clamp(this._physicalCount+s,_o,this._virtualCount-this._virtualStart)-this._physicalCount;let i=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){const a=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let h=0;h<e;h++)this._physicalSizes.push(0);this._physicalCount+=e,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=e),this._update(),this._templateCost=(window.performance.now()-a)/e,i=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||i===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,i)),Js):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,i),Qs))}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const s=this._getReusables(!0);this._physicalTop=s.physicalTop,this._virtualStart+=s.indexes.length,this._physicalStart+=s.indexes.length,this._update(s.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(_o))},_itemsChanged(s){s.path==="items"&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,we))},_iterateItems(s,t){let e,i,a,h;if(arguments.length===2&&t){for(h=0;h<t.length;h++)if(e=t[h],i=this._computeVidx(e),(a=s.call(this,e,i))!=null)return a}else{for(e=this._physicalStart,i=this._virtualStart;e<this._physicalCount;e++,i++)if((a=s.call(this,e,i))!=null)return a;for(e=0;e<this._physicalStart;e++,i++)if((a=s.call(this,e,i))!=null)return a}},_computeVidx(s){return s>=this._physicalStart?this._virtualStart+(s-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+s},_positionItems(){this._adjustScrollPosition();let s=this._physicalTop;this._iterateItems(t=>{this.translate3d(0,`${s}px`,0,this._physicalItems[t]),s+=this._physicalSizes[t]})},_getPhysicalSizeIncrement(s){return this._physicalSizes[s]},_adjustScrollPosition(){const s=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(s!==0){this._physicalTop-=s;const t=this._scrollPosition;!mc&&t>0&&this._resetScrollPosition(t-s)}},_resetScrollPosition(s){this.scrollTarget&&s>=0&&(this._scrollTop=s,this._scrollPosition=this._scrollTop)},_updateScrollerSize(s){const t=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=t,(s||this._scrollHeight===0||this._scrollPosition>=t-this._physicalSize||Math.abs(t-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${t}px`,this._scrollHeight=t)},scrollToIndex(s){if(typeof s!="number"||s<0||s>this.items.length-1||(P0(),this._physicalCount===0))return;s=this._clamp(s,0,this._virtualCount-1),(!this._isIndexRendered(s)||s>=this._maxVirtualStart)&&(this._virtualStart=s-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let t=this._physicalStart,e=this._virtualStart,i=0;const a=this._hiddenContentSize;for(;e<s&&i<=a;)i+=this._getPhysicalSizeIncrement(t),t=(t+1)%this._physicalCount,e+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+i),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler(){this._debounce("_render",()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)},we)},_isIndexRendered(s){return s>=this._virtualStart&&s<=this._virtualEnd},_getPhysicalIndex(s){return(this._physicalStart+(s-this._virtualStart))%this._physicalCount},_clamp(s,t,e){return Math.min(e,Math.max(t,s))},_debounce(s,t,e){this._debouncers||(this._debouncers={}),this._debouncers[s]=V.debounce(this._debouncers[s],e,t.bind(this)),Xs(this._debouncers[s])}};/**
3915
+ */const fo=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),mc=fo&&fo[1]>=8,_o=3,fc={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){const s=this._virtualCount;return Math.max(0,s-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(s){s=this._clamp(s,0,this._maxVirtualStart),this._virtualStartVal=s},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(s){s%=this._physicalCount,s<0&&(s=this._physicalCount+s),this._physicalStartVal=s},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(s){this._physicalCountVal=s},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let s=this._firstVisibleIndexVal;if(s==null){let t=this._physicalTop+this._scrollOffset;s=this._iterateItems((e,i)=>{if(t+=this._getPhysicalSizeIncrement(e),t>this._scrollPosition)return i})||0,this._firstVisibleIndexVal=s}return s},get lastVisibleIndex(){let s=this._lastVisibleIndexVal;if(s==null){let t=this._physicalTop+this._scrollOffset;this._iterateItems((e,i)=>{t<this._scrollBottom&&(s=i),t+=this._getPhysicalSizeIncrement(e)}),this._lastVisibleIndexVal=s}return s},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const s=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let t=s-this._scrollPosition;const e=t>=0;if(this._scrollPosition=s,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(t)>this._physicalSize&&this._physicalSize>0){t-=this._scrollOffset;const i=Math.round(t/this._physicalAverage);this._virtualStart+=i,this._physicalStart+=i,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const i=this._getReusables(e);e?(this._physicalTop=i.physicalTop,this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length):(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length),this._update(i.indexes,e?null:i.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),Qs)}},_getReusables(s){let t,e,i;const a=[],h=this._hiddenContentSize*this._ratio,o=this._virtualStart,r=this._virtualEnd,n=this._physicalCount;let l=this._physicalTop+this._scrollOffset;const d=this._physicalBottom+this._scrollOffset,c=this._scrollPosition,p=this._scrollBottom;for(s?(t=this._physicalStart,e=c-l):(t=this._physicalEnd,e=d-p);i=this._getPhysicalSizeIncrement(t),e-=i,!(a.length>=n||e<=h);)if(s){if(r+a.length+1>=this._virtualCount||l+i>=c-this._scrollOffset)break;a.push(t),l+=i,t=(t+1)%n}else{if(o-a.length<=0||l+this._physicalSize-i<=p)break;a.push(t),l-=i,t=t===0?n-1:t-1}return{indexes:a,physicalTop:l-this._scrollOffset}},_update(s,t){if(!(s&&s.length===0||this._physicalCount===0)){if(this._assignModels(s),this._updateMetrics(s),t)for(;t.length;){const e=t.pop();this._physicalTop-=this._getPhysicalSizeIncrement(e)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(s){const e=this._clamp(this._physicalCount+s,_o,this._virtualCount-this._virtualStart)-this._physicalCount;let i=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){const a=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let h=0;h<e;h++)this._physicalSizes.push(0);this._physicalCount+=e,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=e),this._update(),this._templateCost=(window.performance.now()-a)/e,i=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||i===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,i)),Js):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,i),Qs))}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const s=this._getReusables(!0);this._physicalTop=s.physicalTop,this._virtualStart+=s.indexes.length,this._physicalStart+=s.indexes.length,this._update(s.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(_o))},_itemsChanged(s){s.path==="items"&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,Ce))},_iterateItems(s,t){let e,i,a,h;if(arguments.length===2&&t){for(h=0;h<t.length;h++)if(e=t[h],i=this._computeVidx(e),(a=s.call(this,e,i))!=null)return a}else{for(e=this._physicalStart,i=this._virtualStart;e<this._physicalCount;e++,i++)if((a=s.call(this,e,i))!=null)return a;for(e=0;e<this._physicalStart;e++,i++)if((a=s.call(this,e,i))!=null)return a}},_computeVidx(s){return s>=this._physicalStart?this._virtualStart+(s-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+s},_positionItems(){this._adjustScrollPosition();let s=this._physicalTop;this._iterateItems(t=>{this.translate3d(0,`${s}px`,0,this._physicalItems[t]),s+=this._physicalSizes[t]})},_getPhysicalSizeIncrement(s){return this._physicalSizes[s]},_adjustScrollPosition(){const s=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(s!==0){this._physicalTop-=s;const t=this._scrollPosition;!mc&&t>0&&this._resetScrollPosition(t-s)}},_resetScrollPosition(s){this.scrollTarget&&s>=0&&(this._scrollTop=s,this._scrollPosition=this._scrollTop)},_updateScrollerSize(s){const t=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=t,(s||this._scrollHeight===0||this._scrollPosition>=t-this._physicalSize||Math.abs(t-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${t}px`,this._scrollHeight=t)},scrollToIndex(s){if(typeof s!="number"||s<0||s>this.items.length-1||(P0(),this._physicalCount===0))return;s=this._clamp(s,0,this._virtualCount-1),(!this._isIndexRendered(s)||s>=this._maxVirtualStart)&&(this._virtualStart=s-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let t=this._physicalStart,e=this._virtualStart,i=0;const a=this._hiddenContentSize;for(;e<s&&i<=a;)i+=this._getPhysicalSizeIncrement(t),t=(t+1)%this._physicalCount,e+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+i),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler(){this._debounce("_render",()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)},Ce)},_isIndexRendered(s){return s>=this._virtualStart&&s<=this._virtualEnd},_getPhysicalIndex(s){return(this._physicalStart+(s-this._virtualStart))%this._physicalCount},_clamp(s,t,e){return Math.min(e,Math.max(t,s))},_debounce(s,t,e){this._debouncers||(this._debouncers={}),this._debouncers[s]=V.debounce(this._debouncers[s],e,t.bind(this)),Xs(this._debouncers[s])}};/**
3916
3916
  * @license
3917
3917
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
3918
3918
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3919
- */const _c=1e5,ki=1e3;class Mo{constructor({createElements:t,updateElement:e,scrollTarget:i,scrollContainer:a,elementsContainer:h,reorderElements:o}){this.isAttached=!0,this._vidxOffset=0,this.createElements=t,this.updateElement=e,this.scrollTarget=i,this.scrollContainer=a,this.elementsContainer=h||a,this.reorderElements=o,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver(()=>this._resizeHandler()),getComputedStyle(this.scrollTarget).overflow==="visible"&&(this.scrollTarget.style.overflow="auto"),getComputedStyle(this.scrollContainer).position==="static"&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",r=>this.__onWheel(r)),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",()=>{this.__mouseDown=!0}),this.scrollTarget.addEventListener("mouseup",()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()}))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}scrollToIndex(t){if(typeof t!="number"||isNaN(t)||this.size===0||!this.scrollTarget.offsetHeight)return;t=this._clamp(t,0,this.size-1);const e=this.__getVisibleElements().length;let i=Math.floor(t/this.size*this._virtualCount);this._virtualCount-i<e?(i=this._virtualCount-(this.size-t),this._vidxOffset=this.size-this._virtualCount):i<e?t<ki?(i=t,this._vidxOffset=0):(i=ki,this._vidxOffset=t-i):this._vidxOffset=t-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),this.adjustedFirstVisibleIndex!==t&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(t)||0),this._scrollHandler()}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),P0(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(t=0,e=this.size-1){const i=[];this.__getVisibleElements().forEach(a=>{a.__virtualIndex>=t&&a.__virtualIndex<=e&&(this.__updateElement(a,a.__virtualIndex,!0),i.push(a))}),this.__afterElementsUpdated(i)}_updateMetrics(t){P0();let e=0,i=0;const a=this._physicalAverageCount,h=this._physicalAverage;this._iterateItems((o,r)=>{i+=this._physicalSizes[o],this._physicalSizes[o]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[o])),e+=this._physicalSizes[o],this._physicalAverageCount+=this._physicalSizes[o]?1:0},t),this._physicalSize=this._physicalSize+e-i,this._physicalAverageCount!==a&&(this._physicalAverage=Math.round((h*a+e)/this._physicalAverageCount))}__getBorderBoxHeight(t){const e=getComputedStyle(t),i=parseFloat(e.height)||0;if(e.boxSizing==="border-box")return i;const a=parseFloat(e.paddingBottom)||0,h=parseFloat(e.paddingTop)||0,o=parseFloat(e.borderBottomWidth)||0,r=parseFloat(e.borderTopWidth)||0;return i+a+h+o+r}__updateElement(t,e,i){t.style.paddingTop&&(t.style.paddingTop=""),!this.__preventElementUpdates&&(t.__lastUpdatedIndex!==e||i)&&(this.updateElement(t,e),t.__lastUpdatedIndex=e)}__afterElementsUpdated(t){t.forEach(e=>{const i=e.offsetHeight;if(i===0)e.style.paddingTop=`${this.__placeholderHeight}px`,this.__placeholderClearDebouncer=V.debounce(this.__placeholderClearDebouncer,we,()=>this._resizeHandler());else{this.__elementHeightQueue.push(i),this.__elementHeightQueue.shift();const a=this.__elementHeightQueue.filter(h=>h!==void 0);this.__placeholderHeight=Math.round(a.reduce((h,o)=>h+o,0)/a.length)}})}__getIndexScrollOffset(t){const e=this.__getVisibleElements().find(i=>i.__virtualIndex===t);return e?this.scrollTarget.getBoundingClientRect().top-e.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(t){t!==this.size&&(this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__size=t,this._physicalItems?(this._updateScrollerSize(),this._virtualCount=this.items.length,this._render()):(this._itemsChanged({path:"items"}),this.__preventElementUpdates=!0,P0(),this.__preventElementUpdates=!1),this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),P0())}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(t){this.scrollTarget.scrollTop=t}get items(){return{length:Math.min(this.size,_c)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const t=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(t["padding-top"],10),this._isRTL=t.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(t){const e=this.createElements(t),i=document.createDocumentFragment();return e.forEach(a=>{a.style.position="absolute",i.appendChild(a),this.__resizeObserver.observe(a)}),this.elementsContainer.appendChild(i),e}_assignModels(t){const e=[];this._iterateItems((i,a)=>{const h=this._physicalItems[i];h.hidden=a>=this.size,h.hidden?delete h.__lastUpdatedIndex:(h.__virtualIndex=a+(this._vidxOffset||0),this.__updateElement(h,h.__virtualIndex),e.push(h))},t),this.__afterElementsUpdated(e)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(t,e,i,a){a.style.transform=`translateY(${e})`}toggleScrollListener(){}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const t=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const e=t>=0,i=this._getReusables(!e);i.indexes.length&&(this._physicalTop=i.physicalTop,e?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler())}t&&(this.__fixInvalidItemPositioningDebouncer=V.debounce(this.__fixInvalidItemPositioningDebouncer,Ce.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=V.debounce(this.__scrollReorderDebouncer,Ce.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(t)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const t=this._physicalTop>this._scrollTop,e=this._physicalBottom<this._scrollBottom,i=this.adjustedFirstVisibleIndex===0,a=this.adjustedLastVisibleIndex===this.size-1;if(t&&!i||e&&!a){const h=e,o=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(h?-1:1),this._scrollHandler(),this._ratio=o}}__onWheel(t){if(t.ctrlKey||this._hasScrolledAncestor(t.target,t.deltaX,t.deltaY))return;let e=t.deltaY;if(t.deltaMode===WheelEvent.DOM_DELTA_LINE?e*=this._scrollLineHeight:t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(e*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=e,t.preventDefault();return}e+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=V.debounce(this.__debouncerWheelAnimationFrame,we,()=>{this._wheelAnimationFrame=!1});const i=Math.abs(t.deltaX)+Math.abs(e);this._canScroll(this.scrollTarget,t.deltaX,e)?(t.preventDefault(),this.scrollTarget.scrollTop+=e,this.scrollTarget.scrollLeft+=t.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=V.debounce(this._debouncerIgnoreNewWheel,Ce.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&i<=this._previousMomentum||this._ignoreNewWheel?t.preventDefault():i>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=i}_hasScrolledAncestor(t,e,i){if(t===this.scrollTarget||t===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(t,e,i)&&["auto","scroll"].indexOf(getComputedStyle(t).overflow)!==-1)return!0;if(t!==this&&t.parentElement)return this._hasScrolledAncestor(t.parentElement,e,i)}_canScroll(t,e,i){return i>0&&t.scrollTop<t.scrollHeight-t.offsetHeight||i<0&&t.scrollTop>0||e>0&&t.scrollLeft<t.scrollWidth-t.offsetWidth||e<0&&t.scrollLeft>0}_increasePoolIfNeeded(t){if(this._physicalCount>2&&t){const i=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(t,Math.min(100,i)))}else super._increasePoolIfNeeded(t)}_getScrollLineHeight(){const t=document.createElement("div");t.style.fontSize="initial",t.style.display="none",document.body.appendChild(t);const e=window.getComputedStyle(t).fontSize;return document.body.removeChild(t),e?window.parseInt(e):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(t=>!t.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const t=this._virtualStart+(this._vidxOffset||0),e=this.__getVisibleElements(),a=e.find(r=>r.contains(this.elementsContainer.getRootNode().activeElement)||r.contains(this.scrollTarget.getRootNode().activeElement))||e[0];if(!a)return;const h=a.__virtualIndex-t,o=e.indexOf(a)-h;if(o>0)for(let r=0;r<o;r++)this.elementsContainer.appendChild(e[r]);else if(o<0)for(let r=e.length+o;r<e.length;r++)this.elementsContainer.insertBefore(e[r],e[0]);if(hh){const{transform:r}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=r})}}_adjustVirtualIndexOffset(t){if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(t)>1e4){const e=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.offsetHeight),i=e*this.size;this._vidxOffset=Math.round(i-e*this._virtualCount)}else{const e=this._vidxOffset,i=ki,a=100;this._scrollTop===0?(this._vidxOffset=0,e!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<i&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,a),super.scrollToIndex(this.firstVisibleIndex+(e-this._vidxOffset)));const h=this.size-this._virtualCount;this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=h,e!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-i&&this._vidxOffset<h&&(this._vidxOffset+=Math.min(h-this._vidxOffset,a),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-e)))}}}Object.setPrototypeOf(Mo.prototype,fc);class Mc{constructor(t){this.__adapter=new Mo(t)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(t){this.__adapter.size=t}scrollToIndex(t){this.__adapter.scrollToIndex(t)}update(t=0,e=this.size-1){this.__adapter.update(t,e)}flush(){this.__adapter.flush()}}/**
3919
+ */const _c=1e5,ki=1e3;class Mo{constructor({createElements:t,updateElement:e,scrollTarget:i,scrollContainer:a,elementsContainer:h,reorderElements:o}){this.isAttached=!0,this._vidxOffset=0,this.createElements=t,this.updateElement=e,this.scrollTarget=i,this.scrollContainer=a,this.elementsContainer=h||a,this.reorderElements=o,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver(()=>this._resizeHandler()),getComputedStyle(this.scrollTarget).overflow==="visible"&&(this.scrollTarget.style.overflow="auto"),getComputedStyle(this.scrollContainer).position==="static"&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",r=>this.__onWheel(r)),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",()=>{this.__mouseDown=!0}),this.scrollTarget.addEventListener("mouseup",()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()}))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}scrollToIndex(t){if(typeof t!="number"||isNaN(t)||this.size===0||!this.scrollTarget.offsetHeight)return;t=this._clamp(t,0,this.size-1);const e=this.__getVisibleElements().length;let i=Math.floor(t/this.size*this._virtualCount);this._virtualCount-i<e?(i=this._virtualCount-(this.size-t),this._vidxOffset=this.size-this._virtualCount):i<e?t<ki?(i=t,this._vidxOffset=0):(i=ki,this._vidxOffset=t-i):this._vidxOffset=t-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),this.adjustedFirstVisibleIndex!==t&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(t)||0),this._scrollHandler()}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),P0(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(t=0,e=this.size-1){const i=[];this.__getVisibleElements().forEach(a=>{a.__virtualIndex>=t&&a.__virtualIndex<=e&&(this.__updateElement(a,a.__virtualIndex,!0),i.push(a))}),this.__afterElementsUpdated(i)}_updateMetrics(t){P0();let e=0,i=0;const a=this._physicalAverageCount,h=this._physicalAverage;this._iterateItems((o,r)=>{i+=this._physicalSizes[o],this._physicalSizes[o]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[o])),e+=this._physicalSizes[o],this._physicalAverageCount+=this._physicalSizes[o]?1:0},t),this._physicalSize=this._physicalSize+e-i,this._physicalAverageCount!==a&&(this._physicalAverage=Math.round((h*a+e)/this._physicalAverageCount))}__getBorderBoxHeight(t){const e=getComputedStyle(t),i=parseFloat(e.height)||0;if(e.boxSizing==="border-box")return i;const a=parseFloat(e.paddingBottom)||0,h=parseFloat(e.paddingTop)||0,o=parseFloat(e.borderBottomWidth)||0,r=parseFloat(e.borderTopWidth)||0;return i+a+h+o+r}__updateElement(t,e,i){t.style.paddingTop&&(t.style.paddingTop=""),!this.__preventElementUpdates&&(t.__lastUpdatedIndex!==e||i)&&(this.updateElement(t,e),t.__lastUpdatedIndex=e)}__afterElementsUpdated(t){t.forEach(e=>{const i=e.offsetHeight;if(i===0)e.style.paddingTop=`${this.__placeholderHeight}px`,this.__placeholderClearDebouncer=V.debounce(this.__placeholderClearDebouncer,Ce,()=>this._resizeHandler());else{this.__elementHeightQueue.push(i),this.__elementHeightQueue.shift();const a=this.__elementHeightQueue.filter(h=>h!==void 0);this.__placeholderHeight=Math.round(a.reduce((h,o)=>h+o,0)/a.length)}})}__getIndexScrollOffset(t){const e=this.__getVisibleElements().find(i=>i.__virtualIndex===t);return e?this.scrollTarget.getBoundingClientRect().top-e.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(t){t!==this.size&&(this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__size=t,this._physicalItems?(this._updateScrollerSize(),this._virtualCount=this.items.length,this._render()):(this._itemsChanged({path:"items"}),this.__preventElementUpdates=!0,P0(),this.__preventElementUpdates=!1),this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),P0())}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(t){this.scrollTarget.scrollTop=t}get items(){return{length:Math.min(this.size,_c)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const t=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(t["padding-top"],10),this._isRTL=t.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(t){const e=this.createElements(t),i=document.createDocumentFragment();return e.forEach(a=>{a.style.position="absolute",i.appendChild(a),this.__resizeObserver.observe(a)}),this.elementsContainer.appendChild(i),e}_assignModels(t){const e=[];this._iterateItems((i,a)=>{const h=this._physicalItems[i];h.hidden=a>=this.size,h.hidden?delete h.__lastUpdatedIndex:(h.__virtualIndex=a+(this._vidxOffset||0),this.__updateElement(h,h.__virtualIndex),e.push(h))},t),this.__afterElementsUpdated(e)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(t,e,i,a){a.style.transform=`translateY(${e})`}toggleScrollListener(){}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const t=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const e=t>=0,i=this._getReusables(!e);i.indexes.length&&(this._physicalTop=i.physicalTop,e?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler())}t&&(this.__fixInvalidItemPositioningDebouncer=V.debounce(this.__fixInvalidItemPositioningDebouncer,we.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=V.debounce(this.__scrollReorderDebouncer,we.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(t)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const t=this._physicalTop>this._scrollTop,e=this._physicalBottom<this._scrollBottom,i=this.adjustedFirstVisibleIndex===0,a=this.adjustedLastVisibleIndex===this.size-1;if(t&&!i||e&&!a){const h=e,o=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(h?-1:1),this._scrollHandler(),this._ratio=o}}__onWheel(t){if(t.ctrlKey||this._hasScrolledAncestor(t.target,t.deltaX,t.deltaY))return;let e=t.deltaY;if(t.deltaMode===WheelEvent.DOM_DELTA_LINE?e*=this._scrollLineHeight:t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(e*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=e,t.preventDefault();return}e+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=V.debounce(this.__debouncerWheelAnimationFrame,Ce,()=>{this._wheelAnimationFrame=!1});const i=Math.abs(t.deltaX)+Math.abs(e);this._canScroll(this.scrollTarget,t.deltaX,e)?(t.preventDefault(),this.scrollTarget.scrollTop+=e,this.scrollTarget.scrollLeft+=t.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=V.debounce(this._debouncerIgnoreNewWheel,we.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&i<=this._previousMomentum||this._ignoreNewWheel?t.preventDefault():i>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=i}_hasScrolledAncestor(t,e,i){if(t===this.scrollTarget||t===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(t,e,i)&&["auto","scroll"].indexOf(getComputedStyle(t).overflow)!==-1)return!0;if(t!==this&&t.parentElement)return this._hasScrolledAncestor(t.parentElement,e,i)}_canScroll(t,e,i){return i>0&&t.scrollTop<t.scrollHeight-t.offsetHeight||i<0&&t.scrollTop>0||e>0&&t.scrollLeft<t.scrollWidth-t.offsetWidth||e<0&&t.scrollLeft>0}_increasePoolIfNeeded(t){if(this._physicalCount>2&&t){const i=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(t,Math.min(100,i)))}else super._increasePoolIfNeeded(t)}_getScrollLineHeight(){const t=document.createElement("div");t.style.fontSize="initial",t.style.display="none",document.body.appendChild(t);const e=window.getComputedStyle(t).fontSize;return document.body.removeChild(t),e?window.parseInt(e):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(t=>!t.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const t=this._virtualStart+(this._vidxOffset||0),e=this.__getVisibleElements(),a=e.find(r=>r.contains(this.elementsContainer.getRootNode().activeElement)||r.contains(this.scrollTarget.getRootNode().activeElement))||e[0];if(!a)return;const h=a.__virtualIndex-t,o=e.indexOf(a)-h;if(o>0)for(let r=0;r<o;r++)this.elementsContainer.appendChild(e[r]);else if(o<0)for(let r=e.length+o;r<e.length;r++)this.elementsContainer.insertBefore(e[r],e[0]);if(hh){const{transform:r}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=r})}}_adjustVirtualIndexOffset(t){if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(t)>1e4){const e=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.offsetHeight),i=e*this.size;this._vidxOffset=Math.round(i-e*this._virtualCount)}else{const e=this._vidxOffset,i=ki,a=100;this._scrollTop===0?(this._vidxOffset=0,e!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<i&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,a),super.scrollToIndex(this.firstVisibleIndex+(e-this._vidxOffset)));const h=this.size-this._virtualCount;this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=h,e!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-i&&this._vidxOffset<h&&(this._vidxOffset+=Math.min(h-this._vidxOffset,a),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-e)))}}}Object.setPrototypeOf(Mo.prototype,fc);class Mc{constructor(t){this.__adapter=new Mo(t)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(t){this.__adapter.size=t}scrollToIndex(t){this.__adapter.scrollToIndex(t)}update(t=0,e=this.size-1){this.__adapter.update(t,e)}flush(){this.__adapter.flush()}}/**
3920
3920
  * @license
3921
3921
  * Copyright (c) 2015 - 2023 Vaadin Ltd.
3922
3922
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3987,11 +3987,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3987
3987
  * @license
3988
3988
  * Copyright (c) 2023 Vaadin Ltd.
3989
3989
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3990
- */const Pi=new Map;function Ni(s){return Pi.has(s)||Pi.set(s,new WeakMap),Pi.get(s)}function yo(s,t){s&&s.removeAttribute(t)}function xo(s,t){if(!s||!t)return;const e=Ni(t);if(e.has(s))return;const i=Q1(s.getAttribute(t));e.set(s,new Set(i))}function Cc(s,t){if(!s||!t)return;const e=Ni(t),i=e.get(s);!i||i.size===0?s.removeAttribute(t):ih(s,t,Se(i)),e.delete(s)}function Li(s,t,e={newId:null,oldId:null,fromUser:!1}){if(!s||!t)return;const{newId:i,oldId:a,fromUser:h}=e,o=Ni(t),r=o.get(s);if(!h&&r){a&&r.delete(a),i&&r.add(i);return}h&&(r?i||o.delete(s):xo(s,t),yo(s,t)),z2(s,t,a);const n=i||Se(r);n&&ih(s,t,n)}function wc(s,t){xo(s,t),yo(s,t)}/**
3990
+ */const Pi=new Map;function Ni(s){return Pi.has(s)||Pi.set(s,new WeakMap),Pi.get(s)}function yo(s,t){s&&s.removeAttribute(t)}function xo(s,t){if(!s||!t)return;const e=Ni(t);if(e.has(s))return;const i=Q1(s.getAttribute(t));e.set(s,new Set(i))}function wc(s,t){if(!s||!t)return;const e=Ni(t),i=e.get(s);!i||i.size===0?s.removeAttribute(t):ih(s,t,Se(i)),e.delete(s)}function Li(s,t,e={newId:null,oldId:null,fromUser:!1}){if(!s||!t)return;const{newId:i,oldId:a,fromUser:h}=e,o=Ni(t),r=o.get(s);if(!h&&r){a&&r.delete(a),i&&r.add(i);return}h&&(r?i||o.delete(s):xo(s,t),yo(s,t)),z2(s,t,a);const n=i||Se(r);n&&ih(s,t,n)}function Cc(s,t){xo(s,t),yo(s,t)}/**
3991
3991
  * @license
3992
3992
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
3993
3993
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3994
- */class $c{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__target=t,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),this.__labelIdFromUser!=null&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(t){this.__setAriaRequiredAttribute(t),this.__required=t}setAriaLabel(t){this.__setAriaLabelToAttribute(t),this.__label=t}setLabelId(t,e=!1){const i=e?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(t,i,e),e?this.__labelIdFromUser=t:this.__labelId=t}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t}__setAriaLabelToAttribute(t){this.__target&&(t?(wc(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(Cc(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(t,e,i){Li(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:i})}__setErrorIdToAriaAttribute(t,e){Li(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setHelperIdToAriaAttribute(t,e){Li(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setAriaRequiredAttribute(t){this.__target&&(["input","textarea"].includes(this.__target.localName)||(t?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
3994
+ */class $c{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__target=t,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),this.__labelIdFromUser!=null&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(t){this.__setAriaRequiredAttribute(t),this.__required=t}setAriaLabel(t){this.__setAriaLabelToAttribute(t),this.__label=t}setLabelId(t,e=!1){const i=e?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(t,i,e),e?this.__labelIdFromUser=t:this.__labelId=t}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t}__setAriaLabelToAttribute(t){this.__target&&(t?(Cc(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(wc(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(t,e,i){Li(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:i})}__setErrorIdToAriaAttribute(t,e){Li(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setHelperIdToAriaAttribute(t,e){Li(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setAriaRequiredAttribute(t){this.__target&&(["input","textarea"].includes(this.__target.localName)||(t?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
3995
3995
  * @license
3996
3996
  * Copyright (c) 2022 - 2023 Vaadin Ltd.
3997
3997
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4036,7 +4036,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4036
4036
  font: inherit;
4037
4037
  color: inherit;
4038
4038
  }
4039
- `]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(e){super._onKeyDown(e),this.allowedCharPattern&&!this.__shouldAcceptKey(e)&&(e.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=V.debounce(this._preventInputDebouncer,Ce.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||e.key.length!==1||this.__allowedCharRegExp.test(e.key)}_onPaste(e){if(this.allowedCharPattern){const i=e.clipboardData.getData("text");this.__allowedTextRegExp.test(i)||(e.preventDefault(),this._markInputPrevented())}}_onDrop(e){if(this.allowedCharPattern){const i=e.dataTransfer.getData("text");this.__allowedTextRegExp.test(i)||(e.preventDefault(),this._markInputPrevented())}}_onBeforeInput(e){this.allowedCharPattern&&e.data&&!this.__allowedTextRegExp.test(e.data)&&(e.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(e){if(e)try{this.__allowedCharRegExp=new RegExp(`^${e}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${e}*$`,"u")}catch(i){console.error(i)}}};/**
4039
+ `]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(e){super._onKeyDown(e),this.allowedCharPattern&&!this.__shouldAcceptKey(e)&&(e.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=V.debounce(this._preventInputDebouncer,we.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||e.key.length!==1||this.__allowedCharRegExp.test(e.key)}_onPaste(e){if(this.allowedCharPattern){const i=e.clipboardData.getData("text");this.__allowedTextRegExp.test(i)||(e.preventDefault(),this._markInputPrevented())}}_onDrop(e){if(this.allowedCharPattern){const i=e.dataTransfer.getData("text");this.__allowedTextRegExp.test(i)||(e.preventDefault(),this._markInputPrevented())}}_onBeforeInput(e){this.allowedCharPattern&&e.data&&!this.__allowedTextRegExp.test(e.data)&&(e.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(e){if(e)try{this.__allowedCharRegExp=new RegExp(`^${e}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${e}*$`,"u")}catch(i){console.error(i)}}};/**
4040
4040
  * @license
4041
4041
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
4042
4042
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4052,9 +4052,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4052
4052
  * @license
4053
4053
  * Copyright 2017 Google LLC
4054
4054
  * SPDX-License-Identifier: BSD-3-Clause
4055
- */var Ri;const Ze=window,l0=Ze.trustedTypes,Co=l0?l0.createPolicy("lit-html",{createHTML:s=>s}):void 0,Fi="$lit$",it=`lit$${(Math.random()+"").slice(9)}$`,wo="?"+it,Rc=`<${wo}>`,kt=document,Ye=()=>kt.createComment(""),U0=s=>s===null||typeof s!="object"&&typeof s!="function",$o=Array.isArray,Fc=s=>$o(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",Di=`[
4055
+ */var Ri;const Ze=window,l0=Ze.trustedTypes,wo=l0?l0.createPolicy("lit-html",{createHTML:s=>s}):void 0,Fi="$lit$",it=`lit$${(Math.random()+"").slice(9)}$`,Co="?"+it,Rc=`<${Co}>`,kt=document,Ye=()=>kt.createComment(""),U0=s=>s===null||typeof s!="object"&&typeof s!="function",$o=Array.isArray,Fc=s=>$o(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",Di=`[
4056
4056
  \f\r]`,j0=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Eo=/-->/g,So=/>/g,Tt=RegExp(`>|${Di}(?:([^\\s"'>=/]+)(${Di}*=${Di}*(?:[^
4057
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ko=/'/g,To=/"/g,Io=/^(?:script|style|textarea|title)$/i,q0=Symbol.for("lit-noChange"),P=Symbol.for("lit-nothing"),Po=new WeakMap,It=kt.createTreeWalker(kt,129,null,!1);function No(s,t){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Co!==void 0?Co.createHTML(t):t}const Dc=(s,t)=>{const e=s.length-1,i=[];let a,h=t===2?"<svg>":"",o=j0;for(let r=0;r<e;r++){const n=s[r];let l,d,c=-1,p=0;for(;p<n.length&&(o.lastIndex=p,d=o.exec(n),d!==null);)p=o.lastIndex,o===j0?d[1]==="!--"?o=Eo:d[1]!==void 0?o=So:d[2]!==void 0?(Io.test(d[2])&&(a=RegExp("</"+d[2],"g")),o=Tt):d[3]!==void 0&&(o=Tt):o===Tt?d[0]===">"?(o=a??j0,c=-1):d[1]===void 0?c=-2:(c=o.lastIndex-d[2].length,l=d[1],o=d[3]===void 0?Tt:d[3]==='"'?To:ko):o===To||o===ko?o=Tt:o===Eo||o===So?o=j0:(o=Tt,a=void 0);const v=o===Tt&&s[r+1].startsWith("/>")?" ":"";h+=o===j0?n+Rc:c>=0?(i.push(l),n.slice(0,c)+Fi+n.slice(c)+it+v):n+it+(c===-2?(i.push(void 0),r):v)}return[No(s,h+(s[e]||"<?>")+(t===2?"</svg>":"")),i]};class W0{constructor({strings:t,_$litType$:e},i){let a;this.parts=[];let h=0,o=0;const r=t.length-1,n=this.parts,[l,d]=Dc(t,e);if(this.el=W0.createElement(l,i),It.currentNode=this.el.content,e===2){const c=this.el.content,p=c.firstChild;p.remove(),c.append(...p.childNodes)}for(;(a=It.nextNode())!==null&&n.length<r;){if(a.nodeType===1){if(a.hasAttributes()){const c=[];for(const p of a.getAttributeNames())if(p.endsWith(Fi)||p.startsWith(it)){const v=d[o++];if(c.push(p),v!==void 0){const g=a.getAttribute(v.toLowerCase()+Fi).split(it),m=/([.?@])?(.*)/.exec(v);n.push({type:1,index:h,name:m[2],strings:g,ctor:m[1]==="."?Bc:m[1]==="?"?jc:m[1]==="@"?qc:Ke})}else n.push({type:6,index:h})}for(const p of c)a.removeAttribute(p)}if(Io.test(a.tagName)){const c=a.textContent.split(it),p=c.length-1;if(p>0){a.textContent=l0?l0.emptyScript:"";for(let v=0;v<p;v++)a.append(c[v],Ye()),It.nextNode(),n.push({type:2,index:++h});a.append(c[p],Ye())}}}else if(a.nodeType===8)if(a.data===wo)n.push({type:2,index:h});else{let c=-1;for(;(c=a.data.indexOf(it,c+1))!==-1;)n.push({type:7,index:h}),c+=it.length-1}h++}}static createElement(t,e){const i=kt.createElement("template");return i.innerHTML=t,i}}function d0(s,t,e=s,i){var a,h,o,r;if(t===q0)return t;let n=i!==void 0?(a=e._$Co)===null||a===void 0?void 0:a[i]:e._$Cl;const l=U0(t)?void 0:t._$litDirective$;return(n==null?void 0:n.constructor)!==l&&((h=n==null?void 0:n._$AO)===null||h===void 0||h.call(n,!1),l===void 0?n=void 0:(n=new l(s),n._$AT(s,e,i)),i!==void 0?((o=(r=e)._$Co)!==null&&o!==void 0?o:r._$Co=[])[i]=n:e._$Cl=n),n!==void 0&&(t=d0(s,n._$AS(s,t.values),n,i)),t}class Vc{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:a}=this._$AD,h=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:kt).importNode(i,!0);It.currentNode=h;let o=It.nextNode(),r=0,n=0,l=a[0];for(;l!==void 0;){if(r===l.index){let d;l.type===2?d=new Ge(o,o.nextSibling,this,t):l.type===1?d=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(d=new Wc(o,this,t)),this._$AV.push(d),l=a[++n]}r!==(l==null?void 0:l.index)&&(o=It.nextNode(),r++)}return It.currentNode=kt,h}v(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Ge{constructor(t,e,i,a){var h;this.type=2,this._$AH=P,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=a,this._$Cp=(h=a==null?void 0:a.isConnected)===null||h===void 0||h}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=d0(this,t,e),U0(t)?t===P||t==null||t===""?(this._$AH!==P&&this._$AR(),this._$AH=P):t!==this._$AH&&t!==q0&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Fc(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==P&&U0(this._$AH)?this._$AA.nextSibling.data=t:this.$(kt.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:a}=t,h=typeof a=="number"?this._$AC(t):(a.el===void 0&&(a.el=W0.createElement(No(a.h,a.h[0]),this.options)),a);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===h)this._$AH.v(i);else{const o=new Vc(h,this),r=o.u(this.options);o.v(i),this.$(r),this._$AH=o}}_$AC(t){let e=Po.get(t.strings);return e===void 0&&Po.set(t.strings,e=new W0(t)),e}T(t){$o(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,a=0;for(const h of t)a===e.length?e.push(i=new Ge(this.k(Ye()),this.k(Ye()),this,this.options)):i=e[a],i._$AI(h),a++;a<e.length&&(this._$AR(i&&i._$AB.nextSibling,a),e.length=a)}_$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 a=t.nextSibling;t.remove(),t=a}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class Ke{constructor(t,e,i,a,h){this.type=1,this._$AH=P,this._$AN=void 0,this.element=t,this.name=e,this._$AM=a,this.options=h,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,a){const h=this.strings;let o=!1;if(h===void 0)t=d0(this,t,e,0),o=!U0(t)||t!==this._$AH&&t!==q0,o&&(this._$AH=t);else{const r=t;let n,l;for(t=h[0],n=0;n<h.length-1;n++)l=d0(this,r[i+n],e,n),l===q0&&(l=this._$AH[n]),o||(o=!U0(l)||l!==this._$AH[n]),l===P?t=P:t!==P&&(t+=(l??"")+h[n+1]),this._$AH[n]=l}o&&!a&&this.j(t)}j(t){t===P?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Bc extends Ke{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===P?void 0:t}}const Uc=l0?l0.emptyScript:"";class jc extends Ke{constructor(){super(...arguments),this.type=4}j(t){t&&t!==P?this.element.setAttribute(this.name,Uc):this.element.removeAttribute(this.name)}}class qc extends Ke{constructor(t,e,i,a,h){super(t,e,i,a,h),this.type=5}_$AI(t,e=this){var i;if((t=(i=d0(this,t,e,0))!==null&&i!==void 0?i:P)===q0)return;const a=this._$AH,h=t===P&&a!==P||t.capture!==a.capture||t.once!==a.once||t.passive!==a.passive,o=t!==P&&(a===P||h);h&&this.element.removeEventListener(this.name,this,a),o&&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 Wc{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){d0(this,t)}}const Lo=Ze.litHtmlPolyfillSupport;Lo==null||Lo(W0,Ge),((Ri=Ze.litHtmlVersions)!==null&&Ri!==void 0?Ri:Ze.litHtmlVersions=[]).push("2.8.0");/**
4057
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ko=/'/g,To=/"/g,Io=/^(?:script|style|textarea|title)$/i,q0=Symbol.for("lit-noChange"),P=Symbol.for("lit-nothing"),Po=new WeakMap,It=kt.createTreeWalker(kt,129,null,!1);function No(s,t){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return wo!==void 0?wo.createHTML(t):t}const Dc=(s,t)=>{const e=s.length-1,i=[];let a,h=t===2?"<svg>":"",o=j0;for(let r=0;r<e;r++){const n=s[r];let l,d,c=-1,p=0;for(;p<n.length&&(o.lastIndex=p,d=o.exec(n),d!==null);)p=o.lastIndex,o===j0?d[1]==="!--"?o=Eo:d[1]!==void 0?o=So:d[2]!==void 0?(Io.test(d[2])&&(a=RegExp("</"+d[2],"g")),o=Tt):d[3]!==void 0&&(o=Tt):o===Tt?d[0]===">"?(o=a??j0,c=-1):d[1]===void 0?c=-2:(c=o.lastIndex-d[2].length,l=d[1],o=d[3]===void 0?Tt:d[3]==='"'?To:ko):o===To||o===ko?o=Tt:o===Eo||o===So?o=j0:(o=Tt,a=void 0);const v=o===Tt&&s[r+1].startsWith("/>")?" ":"";h+=o===j0?n+Rc:c>=0?(i.push(l),n.slice(0,c)+Fi+n.slice(c)+it+v):n+it+(c===-2?(i.push(void 0),r):v)}return[No(s,h+(s[e]||"<?>")+(t===2?"</svg>":"")),i]};class W0{constructor({strings:t,_$litType$:e},i){let a;this.parts=[];let h=0,o=0;const r=t.length-1,n=this.parts,[l,d]=Dc(t,e);if(this.el=W0.createElement(l,i),It.currentNode=this.el.content,e===2){const c=this.el.content,p=c.firstChild;p.remove(),c.append(...p.childNodes)}for(;(a=It.nextNode())!==null&&n.length<r;){if(a.nodeType===1){if(a.hasAttributes()){const c=[];for(const p of a.getAttributeNames())if(p.endsWith(Fi)||p.startsWith(it)){const v=d[o++];if(c.push(p),v!==void 0){const g=a.getAttribute(v.toLowerCase()+Fi).split(it),m=/([.?@])?(.*)/.exec(v);n.push({type:1,index:h,name:m[2],strings:g,ctor:m[1]==="."?Bc:m[1]==="?"?jc:m[1]==="@"?qc:Ke})}else n.push({type:6,index:h})}for(const p of c)a.removeAttribute(p)}if(Io.test(a.tagName)){const c=a.textContent.split(it),p=c.length-1;if(p>0){a.textContent=l0?l0.emptyScript:"";for(let v=0;v<p;v++)a.append(c[v],Ye()),It.nextNode(),n.push({type:2,index:++h});a.append(c[p],Ye())}}}else if(a.nodeType===8)if(a.data===Co)n.push({type:2,index:h});else{let c=-1;for(;(c=a.data.indexOf(it,c+1))!==-1;)n.push({type:7,index:h}),c+=it.length-1}h++}}static createElement(t,e){const i=kt.createElement("template");return i.innerHTML=t,i}}function d0(s,t,e=s,i){var a,h,o,r;if(t===q0)return t;let n=i!==void 0?(a=e._$Co)===null||a===void 0?void 0:a[i]:e._$Cl;const l=U0(t)?void 0:t._$litDirective$;return(n==null?void 0:n.constructor)!==l&&((h=n==null?void 0:n._$AO)===null||h===void 0||h.call(n,!1),l===void 0?n=void 0:(n=new l(s),n._$AT(s,e,i)),i!==void 0?((o=(r=e)._$Co)!==null&&o!==void 0?o:r._$Co=[])[i]=n:e._$Cl=n),n!==void 0&&(t=d0(s,n._$AS(s,t.values),n,i)),t}class Vc{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:a}=this._$AD,h=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:kt).importNode(i,!0);It.currentNode=h;let o=It.nextNode(),r=0,n=0,l=a[0];for(;l!==void 0;){if(r===l.index){let d;l.type===2?d=new Ge(o,o.nextSibling,this,t):l.type===1?d=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(d=new Wc(o,this,t)),this._$AV.push(d),l=a[++n]}r!==(l==null?void 0:l.index)&&(o=It.nextNode(),r++)}return It.currentNode=kt,h}v(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Ge{constructor(t,e,i,a){var h;this.type=2,this._$AH=P,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=a,this._$Cp=(h=a==null?void 0:a.isConnected)===null||h===void 0||h}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=d0(this,t,e),U0(t)?t===P||t==null||t===""?(this._$AH!==P&&this._$AR(),this._$AH=P):t!==this._$AH&&t!==q0&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Fc(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==P&&U0(this._$AH)?this._$AA.nextSibling.data=t:this.$(kt.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:a}=t,h=typeof a=="number"?this._$AC(t):(a.el===void 0&&(a.el=W0.createElement(No(a.h,a.h[0]),this.options)),a);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===h)this._$AH.v(i);else{const o=new Vc(h,this),r=o.u(this.options);o.v(i),this.$(r),this._$AH=o}}_$AC(t){let e=Po.get(t.strings);return e===void 0&&Po.set(t.strings,e=new W0(t)),e}T(t){$o(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,a=0;for(const h of t)a===e.length?e.push(i=new Ge(this.k(Ye()),this.k(Ye()),this,this.options)):i=e[a],i._$AI(h),a++;a<e.length&&(this._$AR(i&&i._$AB.nextSibling,a),e.length=a)}_$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 a=t.nextSibling;t.remove(),t=a}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class Ke{constructor(t,e,i,a,h){this.type=1,this._$AH=P,this._$AN=void 0,this.element=t,this.name=e,this._$AM=a,this.options=h,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,a){const h=this.strings;let o=!1;if(h===void 0)t=d0(this,t,e,0),o=!U0(t)||t!==this._$AH&&t!==q0,o&&(this._$AH=t);else{const r=t;let n,l;for(t=h[0],n=0;n<h.length-1;n++)l=d0(this,r[i+n],e,n),l===q0&&(l=this._$AH[n]),o||(o=!U0(l)||l!==this._$AH[n]),l===P?t=P:t!==P&&(t+=(l??"")+h[n+1]),this._$AH[n]=l}o&&!a&&this.j(t)}j(t){t===P?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Bc extends Ke{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===P?void 0:t}}const Uc=l0?l0.emptyScript:"";class jc extends Ke{constructor(){super(...arguments),this.type=4}j(t){t&&t!==P?this.element.setAttribute(this.name,Uc):this.element.removeAttribute(this.name)}}class qc extends Ke{constructor(t,e,i,a,h){super(t,e,i,a,h),this.type=5}_$AI(t,e=this){var i;if((t=(i=d0(this,t,e,0))!==null&&i!==void 0?i:P)===q0)return;const a=this._$AH,h=t===P&&a!==P||t.capture!==a.capture||t.once!==a.once||t.passive!==a.passive,o=t!==P&&(a===P||h);h&&this.element.removeEventListener(this.name,this,a),o&&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 Wc{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){d0(this,t)}}const Lo=Ze.litHtmlPolyfillSupport;Lo==null||Lo(W0,Ge),((Ri=Ze.litHtmlVersions)!==null&&Ri!==void 0?Ri:Ze.litHtmlVersions=[]).push("2.8.0");/**
4058
4058
  * @license
4059
4059
  * Copyright (c) 2021 - 2023 Vaadin Ltd..
4060
4060
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -5136,9 +5136,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5136
5136
  }
5137
5137
  }
5138
5138
 
5139
- `,Ro={head:[{id:1,icon:"flat-info",name:"Centro de ayuda",url:"https://centrodeayuda.clinicaalemana.cl/?itm_source=header-cas&itm_medium=web&itm_campaign=centro-de-ayuda-header&_ga=2.163849791.1865825919.1676902332-1791707714.1661293851&_gl=1*11v0ttz*_ga*MTc5MTcwNzcxNC4xNjYxMjkzODUx*_ga_PR6Y9MEXR6*MTY3NjkxNDIzNi44Ny4wLjE2NzY5MTQyMzYuMC4wLjA.*_ga_VL9DKPYXQE*MTY3NjkxNDIzNi45Ny4wLjE2NzY5MTQyMzYuNjAuMC4w",hasChildren:!1},{id:2,icon:"flat-helpCenter",name:"Llamar",hasChildren:!0,children:[{name:"Mesa Central",text:"+56 2 2210 1111",icon:"flat-hospital",url:"tel:+56222101111"},{name:"Reserva de horas",text:"+56 2 2910 1700",icon:"flat-calendarOn",url:"tel:+56229101700"},{name:"Rescate de emergencia",text:"+56 2 2910 9911",icon:"flat-urgency",url:"tel:+56229109911"}]},{id:3,icon:"flat-profileOff",name:"Mi Alemana Go",hasChildren:!0,children:[{name:"Iniciar sesión",login:!0,url:"https://www.clinicaalemana.cl/alemana-go-web?itm_source=header-cas&itm_medium=web&itm_campaign=home-cas-iniciar-sesion"},{name:"Crear cuenta",url:"https://miclave.clinicaalemana.cl?itm_source=header-cas&itm_medium=web&itm_campaign=home-cas-pide-tu-clave&_ga=2.98190751.1865825919.1676902332-1791707714.1661293851&_gl=1*1oaa24h*_ga*MTc5MTcwNzcxNC4xNjYxMjkzODUx*_ga_PR6Y9MEXR6*MTY3NzA3NjU3Ni45Ny4wLjE2NzcwNzY1NzYuMC4wLjA.*_ga_VL9DKPYXQE*MTY3NzA3NjU3Ni4xMDcuMC4xNjc3MDc2NTc2LjYwLjAuMA.."}]}],support:[{id:4,name:"Centro de ayuda",icon:"flat-question",url:"https://centrodeayuda.clinicaalemana.cl/"},{id:2,name:"Reserva de hora <br>+56 22210 1700",icon:"flat-calendarOn",url:"tel:+56222101700"},{id:3,name:"Rescate de emergencia <br> +56 22910 9911",icon:"flat-phone",url:"tel:+56229109911"}],legals:[{id:1,name:"Información normativa",url:"https://centrodeayuda.clinicaalemana.cl/terminos_legales"},{id:2,name:"Reclamos y denuncias",url:"https://centrodeayuda.clinicaalemana.cl/reclamos_y_denuncias"},{id:3,name:"Términos legales",url:"https://www.clinicaalemana.cl/terminos-y-condiciones/alemana"}]},Fo=[{id:1,name:"Servicios en línea",icon:"flat-medicTool",hasChildren:!0,children:[{section:"Valores y pagos",items:[{name:"Aranceles",text:"Conoce los valores",icon:"flat-search",url:"https://www.alemana.cl/wls/arancel",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-valores-y-pagos-aranceles"},{name:"Presupuesto cirugía y parto",text:"Solicita tu cotización",icon:"flat-medicTool",url:"https://www.clinicaalemana.cl/presupuesto",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-valores-y-pagos-presupuesto-hospitalizacion"},{name:"Pago de cuentas",text:"Ambulatorio y hospitalización",icon:"flat-fileInvoiceDollar",url:"https://pagos.clinicaalemana.cl/",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-valores-y-pagos-pago-de-cuentas"},{name:"Isapres preferentes",text:"Con cobertura en la clínica",icon:"flat-plus",url:"https://www.clinicaalemana.cl/informacion-para-pacientes/planes-de-isapres-preferentes-clinica-alemana",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-valores-y-pagos-isapres-preferentes"}]},{section:"Exámenes",items:[{name:"Agendar",text:"Reserva tus exámenes",icon:"flat-recipe",url:"https://www.clinicaalemana.cl/examenes-y-procedimientos",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-examenes-agendar"},{name:"Simulador",text:"Simula el copago estimado",icon:"flat-fileInvoiceDollar",url:"https://simulador.clinicaalemana.cl/",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-examenes-simulador"},{name:"Indicaciones de laboratorio",text:"Revisa cómo prepararte",icon:"flat-paper",url:"https://www.clinicaalemana.cl/indicaciones-de-examenes",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-examenes-indicaciones"},{name:"Resultados",text:"Descarga informes e imágenes",icon:"flat-ticket",url:"https://exameneslab.alemana.cl/",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-examenes-resultados"}]},{section:"Hospitalización",items:[{name:"Información clave",text:"Conoce todo el proceso",icon:"flat-listOff",url:"https://www.clinicaalemana.cl/informacion-para-pacientes/todo-sobre-hospitalizacion",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-hospitalizacion-clave-informacion"},{name:"Proceso de alta",text:"Conócelo en detalle",icon:"flat-success",url:"https://www.clinicaalemana.cl/informacion-para-pacientes/todo-sobre-hospitalizacion/alta-medica",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-hospitalizacion-proceso-de-alta"},{name:"Estado de cuenta",text:"Revisa el avance y si ya puedes pagar",icon:"flat-fileInvoiceDollar",url:"https://www.clinicaalemana.cl/informacion-para-pacientes/todo-sobre-hospitalizacion/cuenta",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-hospitalizacion-pago-de-cuentas"}]},{section:"Reserva de hora",items:[{name:"Presencial",text:"Dirígete a una sucursal",icon:"flat-calendarOn",url:"https://reserva.alemana.cl/reserva/portal/busqueda"},{name:"Telemedicina",text:"Atiéndete desde cualquier lugar",icon:"flat-laptop",url:"https://www.clinicaalemana.cl/telemedicina",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-modalidad-de-atencion-telemedicina"},{name:"TeleUrgencia",text:"Para síntomas agudos",icon:"flat-teleUrgency",url:"https://www.clinicaalemana.cl/telemedicina/teleurgencia",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-modalidad-de-atencion-teleurgencia"},{name:"Exámenes y procedimientos",text:"Agenda tus pruebas médicas",icon:"flat-recipe",url:"https://www.clinicaalemana.cl/examenes-y-procedimientos"},{name:"A domicilio",text:"Atiéndete en tu hogar",icon:"flat-urgency",url:"https://www.clinicaalemana.cl/servicios-clinicos/servicios-a-domicilio"}]}],align:"start",cta:{visible:!1,size:"large",color:"gray",title:"¿Necesitas realizarte un examen o procedimiento?",text:"Tenemos más de 700 tipos de análisis disponibles para ti.",image:"https://d51h1y0hva8v.cloudfront.net/images/default-source/home/cta/cta.png?sfvrsn=17005f0b_2",button:{text:"Reservar",url:""}}},{id:2,name:"Especialidades y servicios",icon:"flat-doctor",hasChildren:!0,children:[{section:"Atenciones",items:[{name:"Servicios clínicos",text:"Conoce los que tenemos",icon:"flat-tube",url:"https://www.clinicaalemana.cl/nuestros-servicios/servicios-clinicos",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atenciones-servicios-clinicos"},{name:"Especialidades",text:"Revisa las más de 60 disponibles ",icon:"flat-doctor",url:"https://www.clinicaalemana.cl/nuestros-servicios/especialidades",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atenciones-especialidades"},{name:"Nuestros médicos",text:"Busca por área o especialidad",icon:"flat-doctor",url:"https://www.clinicaalemana.cl/profesional"},{name:"Sucursales",text:"Busca la más cercana",icon:"flat-hospital",url:"https://www.clinicaalemana.cl/sucursales"}]},{section:"Modalidad de atención",items:[{name:"Telemedicina",text:"Consulta de forma virtual",icon:"flat-laptop",url:"https://www.clinicaalemana.cl/telemedicina",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-modalidad-de-atencion-telemedicina"},{name:"TeleUrgencia",text:"Consulta para síntomas agudos",icon:"flat-teleUrgency",url:"https://www.clinicaalemana.cl/telemedicina/teleurgencia",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-modalidad-de-atencion-teleurgencia"},{name:"A domicilio",text:"Atiéndete en tu hogar",icon:"flat-urgency",url:"https://www.clinicaalemana.cl/servicios-clinicos/servicios-a-domicilio"},{name:"Presencial",text:"Dirígete a una sucursal",icon:"flat-branchOffices",url:"https://reserva.alemana.cl/reserva/portal/busqueda",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-modalidad-de-atencion-presencial"}]},{section:"Atención especializada",columns:2,items:[{name:"Maternidad integral",text:"Conoce nuestro servicio",icon:"flat-pregnant",url:"https://www.clinicaalemana.cl/especialidades/maternidad-y-familia/maternidad-integral",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-maternidad-integral"},{name:"Paciente regional",text:"Gestiona tu visita",icon:"flat-regionalPatient",url:"https://www.clinicaalemana.cl/paciente-regional",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-paciente-regional"},{name:"Hospitalización",text:"Revisa todo el proceso",icon:"flat-urgency",url:"https://www.clinicaalemana.cl/informacion-para-pacientes/todo-sobre-hospitalizacion",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-hospitalizacion"},{name:"Solicitudes",text:"Pide copia de boletas, recetas, órdenes y más.",icon:"flat-folder",url:"https://www.clinicaalemana.cl/requerimientos-medicos",tracking_type:"itm",campaign:"menu-superior-solicitudes"},{name:"Salud empresa",text:"Cuida a tus colaboradores",icon:"flat-companyHealth",url:"https://www.clinicaalemana.cl/medicina-preventiva/salud-empresas",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-salud-empresa"},{name:"Centros",text:"Busca el más cercano",icon:"flat-hospital",url:"https://www.clinicaalemana.cl/nuestros-servicios/centros",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-centros"},{name:"Paciente internacional",text:"Solicita tu atención",icon:"flat-interPatient",url:"https://www.clinicaalemana.cl/paciente-internacional",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-paciente-internacional"},{name:"Programas y asesorías",text:"Encuentra el mejor para ti",icon:"flat-hospital",url:"https://www.clinicaalemana.cl/nuestros-servicios/programas",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-programas"}]}],align:"center",cta:{visible:!1,size:"small",color:"purple",title:"¿Necesitas un presupuesto?",text:"Puedes solicitar uno para tu parto o una hospitalización.",image:"https://d51h1y0hva8v.cloudfront.net/images/default-source/home/cta/cta.png?sfvrsn=17005f0b_2",button:{text:"Solicitar",url:""}}},{id:3,name:"Seguros y convenios",icon:"flat-safety",hasChildren:!0,children:[{section:"Personas",items:[{name:"Convenio de Accidentes",text:"Protege a tu familia",icon:"flat-safety",url:"https://www.clinicaalemana.cl/convenio-de-accidentes",tracking_type:"itm",campaign:"menu-superior-seguros-y-convenios-convenio-de-accidentes"},{name:"Alemana Seguros",text:"Elige el mejor para ti",icon:"flat-safety",url:"https://www.alemanaseguros.cl",tracking_type:"utm",campaign:"clininicalamana_menu_superior"},{name:"Todo Alemana",text:"Contrata beneficios adicionales",icon:"flat-safety",url:"https://www.clinicaalemana.cl/todo-alemana/caracteristicas-generales",tracking_type:"itm",campaign:"menu-superior-seguros-y-convenios-todo-alemana"},{name:"Isapres en convenio",text:"",icon:"flat-plus",url:"https://www.clinicaalemana.cl/informacion-para-pacientes/planes-de-isapres-preferentes-clinica-alemana"}]},{section:"Empresas",items:[{name:"Laboratorio",text:"Conoce nuestros servicios",icon:"flat-tube",url:"https://www.clinicaalemana.cl/especialidades/laboratorio-clinico/convenio-laboratorio",tracking_type:"itm",campaign:"menu-superior-seguros-y-convenios-laboratorio"}]}],align:"center",cta:{visible:!1,size:"medium",color:"red",title:"¿Necesitas realizarte un examen?",text:"Más de 700 exámenes y procedimeintos disponibles",image:"https://d51h1y0hva8v.cloudfront.net/images/default-source/home/cta/cta.png?sfvrsn=17005f0b_2",button:{text:"Agendar ",url:""}}},{id:4,name:"Prevención y bienestar",icon:"flat-sex",hasChildren:!0,children:[{section:"Personas",items:[{name:"Salud preventiva",text:"Descubre chequeos y programas",icon:"flat-user",url:"https://www.clinicaalemana.cl/prevencion-y-bienestar",tracking_type:"itm",campaign:"menu-superior-prevencion-y-bienestar"}]},{section:"Empresas",items:[{name:"Salud Empresa",text:"Cuida a tus colaboradores",icon:"flat-companyHealth",url:"https://www.clinicaalemana.cl/medicina-preventiva/salud-empresas",tracking_type:"itm",campaign:"menu-superior-prevencion-y-bienestar-empresas-salud-empresa"}]}],align:"end",cta:{visible:!1}},{id:5,name:"Educación de salud",icon:"flat-youtube",hasChildren:!0,children:[{section:"",items:[{name:"Todo sobre salud",text:"Revisa las principales noticias",icon:"flat-newspaper2",url:"https://www.clinicaalemana.cl/articulos/todas-las-noticias",tracking_type:"itm",campaign:"menu-superior-educacion-de-salud-todo-sobre-salud"},{name:"Banco de enfermedades",text:"Encuentra todo lo que necesitas",icon:"flat-textColor",url:"https://www.clinicaalemana.cl/banco-de-enfermedades",tracking_type:"itm",campaign:"menu-superior-educacion-de-salud-banco-de-enfermedades"},{name:"Alemana Podcast",text:"Escucha a nuestros expertos ",icon:"flat-spotify",url:"https://www.clinicaalemana.cl/centro-de-extension/podcast",tracking_type:"itm",campaign:"menu-superior-educacion-de-salud-alemana-podcast"},{name:"Charlas y talleres",text:"Aprende con nuestros especialistas",icon:"flat-doctor",url:"https://www.clinicaalemana.cl/centro-de-extension/bienvenida-charlas-y-talleres",tracking_type:"itm",campaign:"menu-superior-educacion-de-salud-charlas-y-talleres"},{name:"Video educativos",text:"Mira nuestro contenido",icon:"flat-youtube",url:"https://www.youtube.com/channel/UCVTx7AHcRM8auQ68PLDwrjA",tracking_type:"utm",campaign:"menu-superior-educación-de-salud-video-educativos"}]}],align:"end",cta:{visible:!1}}],l3=Ro.head;class Qe extends b{constructor(){super(),this.showSignin=!1,this.showSearch=!1,this.hideSearch=window.location.href.includes("buscar")}openBookingBox(){const t=new CustomEvent("openBookingBox");document.dispatchEvent(t)}openSignIn(){this.showSignin=!0,this.requestUpdate()}openSearch(){this.showSearch=!0,this.requestUpdate()}closeSingIn(){this.showSignin=!1,this.requestUpdate()}closeSearch(){this.showSearch=!1,this.requestUpdate()}openMenu(){const t=new CustomEvent("openMenuMobile");document.dispatchEvent(t)}initializeSearch(t,e,i=null){const a=this.shadowRoot.querySelector(t),h=this.shadowRoot.querySelector(e),o=i?this.shadowRoot.querySelector(i):null,r=()=>{a.value&&(window.location.href=`https://www.clinicaalemana.cl/buscar?searchTerm=${a.value}`)},n=()=>{const l=a.closest("li");l&&(l.classList.toggle("has-value",!!a.value),l.classList.toggle("focused",!!a.value))};h.addEventListener("click",r),a.addEventListener("keypress",l=>{l.key==="Enter"&&r()}),a.addEventListener("focus",()=>{const l=a.closest("li");l&&l.classList.add("focused")}),a.addEventListener("blur",n),a.addEventListener("input",n),o&&o.addEventListener("click",()=>{a.value="",n()}),a.value=""}initializeDesktopSearch(){this.initializeSearch("#search-input","#searchButton","#clearSearchButton")}initializeMobileSearch(){this.initializeSearch("#searchTermInput",".search-button-mobile")}firstUpdated(){this.hideSearch||this.variant!==B.HOME||(this.isMobile?this.showSearch&&this.initializeMobileSearch():this.initializeDesktopSearch())}updated(){const t=this.shadowRoot.querySelectorAll(".group > li");t.forEach(e=>{e.addEventListener("click",()=>{t.forEach(i=>{i.classList.remove("active")}),e.classList.add("active")})}),!this.hideSearch&&this.showSearch&&this.initializeMobileSearch()}render(){const{isMobile:t,isTablet:e,isMacbookAir:i}=this,a=l3,h=i?"Reservar":"Reservar hora";document.addEventListener("click",d=>{d.composedPath().includes(this)||this.shadowRoot.querySelectorAll(".group > li").forEach(p=>{p.classList.remove("active")})});const o=d=>{const{icon:c,name:p,text:v,url:g,login:m}=d;return f`
5140
- <li>
5141
- <a href="${g}">
5139
+ `,Ro={head:[{id:1,icon:"flat-info",name:"Centro de ayuda",url:"https://centrodeayuda.clinicaalemana.cl/?itm_source=header-cas&itm_medium=web&itm_campaign=centro-de-ayuda-header&_ga=2.163849791.1865825919.1676902332-1791707714.1661293851&_gl=1*11v0ttz*_ga*MTc5MTcwNzcxNC4xNjYxMjkzODUx*_ga_PR6Y9MEXR6*MTY3NjkxNDIzNi44Ny4wLjE2NzY5MTQyMzYuMC4wLjA.*_ga_VL9DKPYXQE*MTY3NjkxNDIzNi45Ny4wLjE2NzY5MTQyMzYuNjAuMC4w",hasChildren:!1},{id:2,icon:"flat-helpCenter",name:"Llamar",hasChildren:!0,children:[{name:"Mesa Central",text:"+56 2 2210 1111",isPrimary:!0,icon:"flat-hospital",url:"tel:+56222101111"},{name:"Reserva de horas",text:"+56 2 2910 1700",icon:"flat-calendarOn",url:"tel:+56229101700"},{name:"Rescate de emergencia",text:"+56 2 2910 9911",icon:"flat-urgency",url:"tel:+56229109911"}]},{id:3,icon:"flat-profileOff",name:"Mi Alemana Go",hasChildren:!0,children:[{name:"Iniciar sesión",login:!0,url:"https://www.clinicaalemana.cl/alemana-go-web?itm_source=header-cas&itm_medium=web&itm_campaign=home-cas-iniciar-sesion"},{name:"Crear cuenta",url:"https://miclave.clinicaalemana.cl?itm_source=header-cas&itm_medium=web&itm_campaign=home-cas-pide-tu-clave&_ga=2.98190751.1865825919.1676902332-1791707714.1661293851&_gl=1*1oaa24h*_ga*MTc5MTcwNzcxNC4xNjYxMjkzODUx*_ga_PR6Y9MEXR6*MTY3NzA3NjU3Ni45Ny4wLjE2NzcwNzY1NzYuMC4wLjA.*_ga_VL9DKPYXQE*MTY3NzA3NjU3Ni4xMDcuMC4xNjc3MDc2NTc2LjYwLjAuMA.."}]}],support:[{id:4,name:"Centro de ayuda",icon:"flat-question",url:"https://centrodeayuda.clinicaalemana.cl/"},{id:2,name:"Reserva de hora <br>+56 22210 1700",icon:"flat-calendarOn",url:"tel:+56222101700"},{id:3,name:"Rescate de emergencia <br> +56 22910 9911",icon:"flat-phone",url:"tel:+56229109911"}],legals:[{id:1,name:"Información normativa",url:"https://centrodeayuda.clinicaalemana.cl/terminos_legales"},{id:2,name:"Reclamos y denuncias",url:"https://centrodeayuda.clinicaalemana.cl/reclamos_y_denuncias"},{id:3,name:"Términos legales",url:"https://www.clinicaalemana.cl/terminos-y-condiciones/alemana"}]},Fo=[{id:1,name:"Servicios en línea",icon:"flat-medicTool",hasChildren:!0,children:[{section:"Valores y pagos",items:[{name:"Aranceles",text:"Conoce los valores",icon:"flat-search",url:"https://www.alemana.cl/wls/arancel",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-valores-y-pagos-aranceles"},{name:"Presupuesto cirugía y parto",text:"Solicita tu cotización",icon:"flat-medicTool",url:"https://www.clinicaalemana.cl/presupuesto",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-valores-y-pagos-presupuesto-hospitalizacion"},{name:"Pago de cuentas",text:"Ambulatorio y hospitalización",icon:"flat-fileInvoiceDollar",url:"https://pagos.clinicaalemana.cl/",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-valores-y-pagos-pago-de-cuentas"},{name:"Isapres preferentes",text:"Con cobertura en la clínica",icon:"flat-plus",url:"https://www.clinicaalemana.cl/informacion-para-pacientes/planes-de-isapres-preferentes-clinica-alemana",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-valores-y-pagos-isapres-preferentes"}]},{section:"Exámenes",items:[{name:"Agendar",text:"Reserva tus exámenes",icon:"flat-recipe",url:"https://www.clinicaalemana.cl/examenes-y-procedimientos",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-examenes-agendar"},{name:"Simulador",text:"Simula el copago estimado",icon:"flat-fileInvoiceDollar",url:"https://simulador.clinicaalemana.cl/",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-examenes-simulador"},{name:"Indicaciones de laboratorio",text:"Revisa cómo prepararte",icon:"flat-paper",url:"https://www.clinicaalemana.cl/indicaciones-de-examenes",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-examenes-indicaciones"},{name:"Resultados",text:"Descarga informes e imágenes",icon:"flat-ticket",url:"https://exameneslab.alemana.cl/",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-examenes-resultados"}]},{section:"Hospitalización",items:[{name:"Información clave",text:"Conoce todo el proceso",icon:"flat-listOff",url:"https://www.clinicaalemana.cl/informacion-para-pacientes/todo-sobre-hospitalizacion",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-hospitalizacion-clave-informacion"},{name:"Proceso de alta",text:"Conócelo en detalle",icon:"flat-success",url:"https://www.clinicaalemana.cl/informacion-para-pacientes/todo-sobre-hospitalizacion/alta-medica",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-hospitalizacion-proceso-de-alta"},{name:"Estado de cuenta",text:"Revisa el avance y si ya puedes pagar",icon:"flat-fileInvoiceDollar",url:"https://www.clinicaalemana.cl/informacion-para-pacientes/todo-sobre-hospitalizacion/cuenta",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-hospitalizacion-pago-de-cuentas"}]},{section:"Reserva de hora",items:[{name:"Presencial",text:"Dirígete a una sucursal",icon:"flat-calendarOn",url:"https://reserva.alemana.cl/reserva/portal/busqueda"},{name:"Telemedicina",text:"Atiéndete desde cualquier lugar",icon:"flat-laptop",url:"https://www.clinicaalemana.cl/telemedicina",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-modalidad-de-atencion-telemedicina"},{name:"TeleUrgencia",text:"Para síntomas agudos",icon:"flat-teleUrgency",url:"https://www.clinicaalemana.cl/telemedicina/teleurgencia",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-modalidad-de-atencion-teleurgencia"},{name:"Exámenes y procedimientos",text:"Agenda tus pruebas médicas",icon:"flat-recipe",url:"https://www.clinicaalemana.cl/examenes-y-procedimientos"},{name:"A domicilio",text:"Atiéndete en tu hogar",icon:"flat-urgency",url:"https://www.clinicaalemana.cl/servicios-clinicos/servicios-a-domicilio"}]}],align:"start",cta:{visible:!1,size:"large",color:"gray",title:"¿Necesitas realizarte un examen o procedimiento?",text:"Tenemos más de 700 tipos de análisis disponibles para ti.",image:"https://d51h1y0hva8v.cloudfront.net/images/default-source/home/cta/cta.png?sfvrsn=17005f0b_2",button:{text:"Reservar",url:""}}},{id:2,name:"Especialidades y servicios",icon:"flat-doctor",hasChildren:!0,children:[{section:"Atenciones",items:[{name:"Servicios clínicos",text:"Conoce los que tenemos",icon:"flat-tube",url:"https://www.clinicaalemana.cl/nuestros-servicios/servicios-clinicos",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atenciones-servicios-clinicos"},{name:"Especialidades",text:"Revisa las más de 60 disponibles ",icon:"flat-doctor",url:"https://www.clinicaalemana.cl/nuestros-servicios/especialidades",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atenciones-especialidades"},{name:"Nuestros médicos",text:"Busca por área o especialidad",icon:"flat-doctor",url:"https://www.clinicaalemana.cl/profesional"},{name:"Sucursales",text:"Busca la más cercana",icon:"flat-hospital",url:"https://www.clinicaalemana.cl/sucursales"}]},{section:"Modalidad de atención",items:[{name:"Telemedicina",text:"Consulta de forma virtual",icon:"flat-laptop",url:"https://www.clinicaalemana.cl/telemedicina",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-modalidad-de-atencion-telemedicina"},{name:"TeleUrgencia",text:"Consulta para síntomas agudos",icon:"flat-teleUrgency",url:"https://www.clinicaalemana.cl/telemedicina/teleurgencia",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-modalidad-de-atencion-teleurgencia"},{name:"A domicilio",text:"Atiéndete en tu hogar",icon:"flat-urgency",url:"https://www.clinicaalemana.cl/servicios-clinicos/servicios-a-domicilio"},{name:"Presencial",text:"Dirígete a una sucursal",icon:"flat-branchOffices",url:"https://reserva.alemana.cl/reserva/portal/busqueda",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-modalidad-de-atencion-presencial"}]},{section:"Atención especializada",columns:2,items:[{name:"Maternidad integral",text:"Conoce nuestro servicio",icon:"flat-pregnant",url:"https://www.clinicaalemana.cl/especialidades/maternidad-y-familia/maternidad-integral",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-maternidad-integral"},{name:"Paciente regional",text:"Gestiona tu visita",icon:"flat-regionalPatient",url:"https://www.clinicaalemana.cl/paciente-regional",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-paciente-regional"},{name:"Hospitalización",text:"Revisa todo el proceso",icon:"flat-urgency",url:"https://www.clinicaalemana.cl/informacion-para-pacientes/todo-sobre-hospitalizacion",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-hospitalizacion"},{name:"Solicitudes",text:"Pide copia de boletas, recetas, órdenes y más.",icon:"flat-folder",url:"https://www.clinicaalemana.cl/requerimientos-medicos",tracking_type:"itm",campaign:"menu-superior-solicitudes"},{name:"Salud empresa",text:"Cuida a tus colaboradores",icon:"flat-companyHealth",url:"https://www.clinicaalemana.cl/medicina-preventiva/salud-empresas",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-salud-empresa"},{name:"Centros",text:"Busca el más cercano",icon:"flat-hospital",url:"https://www.clinicaalemana.cl/nuestros-servicios/centros",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-centros"},{name:"Paciente internacional",text:"Solicita tu atención",icon:"flat-interPatient",url:"https://www.clinicaalemana.cl/paciente-internacional",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-paciente-internacional"},{name:"Programas y asesorías",text:"Encuentra el mejor para ti",icon:"flat-hospital",url:"https://www.clinicaalemana.cl/nuestros-servicios/programas",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-programas"}]}],align:"center",cta:{visible:!1,size:"small",color:"purple",title:"¿Necesitas un presupuesto?",text:"Puedes solicitar uno para tu parto o una hospitalización.",image:"https://d51h1y0hva8v.cloudfront.net/images/default-source/home/cta/cta.png?sfvrsn=17005f0b_2",button:{text:"Solicitar",url:""}}},{id:3,name:"Seguros y convenios",icon:"flat-safety",hasChildren:!0,children:[{section:"Personas",items:[{name:"Convenio de Accidentes",text:"Protege a tu familia",icon:"flat-safety",url:"https://www.clinicaalemana.cl/convenio-de-accidentes",tracking_type:"itm",campaign:"menu-superior-seguros-y-convenios-convenio-de-accidentes"},{name:"Alemana Seguros",text:"Elige el mejor para ti",icon:"flat-safety",url:"https://www.alemanaseguros.cl",tracking_type:"utm",campaign:"clininicalamana_menu_superior"},{name:"Todo Alemana",text:"Contrata beneficios adicionales",icon:"flat-safety",url:"https://www.clinicaalemana.cl/todo-alemana/caracteristicas-generales",tracking_type:"itm",campaign:"menu-superior-seguros-y-convenios-todo-alemana"},{name:"Isapres en convenio",text:"",icon:"flat-plus",url:"https://www.clinicaalemana.cl/informacion-para-pacientes/planes-de-isapres-preferentes-clinica-alemana"}]},{section:"Empresas",items:[{name:"Laboratorio",text:"Conoce nuestros servicios",icon:"flat-tube",url:"https://www.clinicaalemana.cl/especialidades/laboratorio-clinico/convenio-laboratorio",tracking_type:"itm",campaign:"menu-superior-seguros-y-convenios-laboratorio"}]}],align:"center",cta:{visible:!1,size:"medium",color:"red",title:"¿Necesitas realizarte un examen?",text:"Más de 700 exámenes y procedimeintos disponibles",image:"https://d51h1y0hva8v.cloudfront.net/images/default-source/home/cta/cta.png?sfvrsn=17005f0b_2",button:{text:"Agendar ",url:""}}},{id:4,name:"Prevención y bienestar",icon:"flat-sex",hasChildren:!0,children:[{section:"Personas",items:[{name:"Salud preventiva",text:"Descubre chequeos y programas",icon:"flat-user",url:"https://www.clinicaalemana.cl/prevencion-y-bienestar",tracking_type:"itm",campaign:"menu-superior-prevencion-y-bienestar"}]},{section:"Empresas",items:[{name:"Salud Empresa",text:"Cuida a tus colaboradores",icon:"flat-companyHealth",url:"https://www.clinicaalemana.cl/medicina-preventiva/salud-empresas",tracking_type:"itm",campaign:"menu-superior-prevencion-y-bienestar-empresas-salud-empresa"}]}],align:"end",cta:{visible:!1}},{id:5,name:"Educación de salud",icon:"flat-youtube",hasChildren:!0,children:[{section:"",items:[{name:"Todo sobre salud",text:"Revisa las principales noticias",icon:"flat-newspaper2",url:"https://www.clinicaalemana.cl/articulos/todas-las-noticias",tracking_type:"itm",campaign:"menu-superior-educacion-de-salud-todo-sobre-salud"},{name:"Banco de enfermedades",text:"Encuentra todo lo que necesitas",icon:"flat-textColor",url:"https://www.clinicaalemana.cl/banco-de-enfermedades",tracking_type:"itm",campaign:"menu-superior-educacion-de-salud-banco-de-enfermedades"},{name:"Alemana Podcast",text:"Escucha a nuestros expertos ",icon:"flat-spotify",url:"https://www.clinicaalemana.cl/centro-de-extension/podcast",tracking_type:"itm",campaign:"menu-superior-educacion-de-salud-alemana-podcast"},{name:"Charlas y talleres",text:"Aprende con nuestros especialistas",icon:"flat-doctor",url:"https://www.clinicaalemana.cl/centro-de-extension/bienvenida-charlas-y-talleres",tracking_type:"itm",campaign:"menu-superior-educacion-de-salud-charlas-y-talleres"},{name:"Video educativos",text:"Mira nuestro contenido",icon:"flat-youtube",url:"https://www.youtube.com/channel/UCVTx7AHcRM8auQ68PLDwrjA",tracking_type:"utm",campaign:"menu-superior-educación-de-salud-video-educativos"}]}],align:"end",cta:{visible:!1}}],l3=Ro.head;class Qe extends b{constructor(){super(),this.showSignin=!1,this.showSearch=!1,this.hideSearch=window.location.href.includes("buscar")}openBookingBox(){const t=new CustomEvent("openBookingBox");document.dispatchEvent(t)}openSignIn(){this.showSignin=!0,this.requestUpdate()}openSearch(){this.showSearch=!0,this.requestUpdate()}closeSingIn(){this.showSignin=!1,this.requestUpdate()}closeSearch(){this.showSearch=!1,this.requestUpdate()}openMenu(){const t=new CustomEvent("openMenuMobile");document.dispatchEvent(t)}initializeSearch(t,e,i=null){const a=this.shadowRoot.querySelector(t),h=this.shadowRoot.querySelector(e),o=i?this.shadowRoot.querySelector(i):null,r=()=>{a.value&&(window.location.href=`https://www.clinicaalemana.cl/buscar?searchTerm=${a.value}`)},n=()=>{const l=a.closest("li");l&&(l.classList.toggle("has-value",!!a.value),l.classList.toggle("focused",!!a.value))};h.addEventListener("click",r),a.addEventListener("keypress",l=>{l.key==="Enter"&&r()}),a.addEventListener("focus",()=>{const l=a.closest("li");l&&l.classList.add("focused")}),a.addEventListener("blur",n),a.addEventListener("input",n),o&&o.addEventListener("click",()=>{a.value="",n()}),a.value=""}initializeDesktopSearch(){this.initializeSearch("#search-input","#searchButton","#clearSearchButton")}initializeMobileSearch(){this.initializeSearch("#searchTermInput",".search-button-mobile")}firstUpdated(){this.hideSearch||this.variant!==B.HOME||(this.isMobile?this.showSearch&&this.initializeMobileSearch():this.initializeDesktopSearch())}updated(){const t=this.shadowRoot.querySelectorAll(".group > li");t.forEach(e=>{e.addEventListener("click",()=>{t.forEach(i=>{i.classList.remove("active")}),e.classList.add("active")})}),!this.hideSearch&&this.showSearch&&this.initializeMobileSearch()}render(){const{isMobile:t,isTablet:e,isMacbookAir:i}=this,a=l3,h=i?"Reservar":"Reservar hora";document.addEventListener("click",d=>{d.composedPath().includes(this)||this.shadowRoot.querySelectorAll(".group > li").forEach(p=>{p.classList.remove("active")})});const o=d=>{const{icon:c,name:p,text:v,url:g,login:m,isPrimary:A}=d;return f`
5140
+ <li itemscope itemtype="http://schema.org/Organization">
5141
+ <a href="${g}"
5142
+ itemprop="telephone"
5143
+ aria-label="${A?"Mesa Central - Teléfono principal: +56 2 2210 1111":""}${p}">
5142
5144
  ${c?f`
5143
5145
  <div class="icon">
5144
5146
  <cas-icon name="${c}" size="20"></cas-icon>
@@ -5676,7 +5678,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5676
5678
  will-change: initial;
5677
5679
  }
5678
5680
  }
5679
- `,m3=Fo;class Xe extends b{constructor(){super(),this.showMenuMobile=!1}openBookingBox(){const t=new CustomEvent("openBookingBox");document.dispatchEvent(t)}updated(){document.addEventListener("openMenuMobile",()=>{this.showMenuMobile=!0,this.requestUpdate()}),document.addEventListener("closeMenuMobile",()=>{this.showMenuMobile=!1,this.requestUpdate()})}urlFormatter(t){let e=t.url,i=!0;return t.tracking_type&&(e=`${t.url}?${t.tracking_type}_source=clinicaalemana&${t.tracking_type}_medium=web&${t.tracking_type}_campaign=${t.campaign}`),["clinicaalemana.cl","webpay","youtube","alemanaseguros"].some(h=>e.includes(h))||(i=!1),{url:e,isLink:i}}handleMarkClient(t){const e=document.createElement("a");e.setAttribute("href","https://reserva.alemana.cl/"),e.style="visibility:hidden",e.textContent="Alemana",document.body.append(e),e.dispatchEvent(new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window}));const i=e.href.match("_gl=.+"),a=i?"&"+i[0]:"";console.log(e);debugger;console.log("mark",{match:i,_gl:a});const h=t.match(/\?/)?t+a:t+"?"+a;console.log("url",h);debugger;location.href=h}render(){const{showMenuMobile:t,isMobile:e,isTablet:i,isDesktop:a}=this,h=o=>{var r;return f`
5681
+ `,m3=Fo;class Xe extends b{constructor(){super(),this.showMenuMobile=!1}openBookingBox(){const t=new CustomEvent("openBookingBox");document.dispatchEvent(t)}updated(){document.addEventListener("openMenuMobile",()=>{this.showMenuMobile=!0,this.requestUpdate()}),document.addEventListener("closeMenuMobile",()=>{this.showMenuMobile=!1,this.requestUpdate()})}urlFormatter(t){let e=t.url,i=!0;if(t.name==="Presupuesto cirugía y parto"){const h="ab_test_presupuesto_link";let o=localStorage.getItem(h);if(!o){const r=["https://www.clinicaalemana.cl/presupuesto","https://www.clinicaalemana.cl/informacion-para-pacientes/todo-sobre-hospitalizacion/presupuesto"],n=Math.floor(Math.random()*r.length);o=r[n],localStorage.setItem(h,o)}e=o}return t.tracking_type&&(e=`${e}?${t.tracking_type}_source=clinicaalemana&${t.tracking_type}_medium=web&${t.tracking_type}_campaign=${t.campaign}`),["clinicaalemana.cl","webpay","youtube","alemanaseguros"].some(h=>e.includes(h))||(i=!1),{url:e,isLink:i}}handleMarkClient(t){const e=document.createElement("a");e.setAttribute("href","https://reserva.alemana.cl/"),e.style="visibility:hidden",e.textContent="Alemana",document.body.append(e),e.dispatchEvent(new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window}));const i=e.href.match("_gl=.+"),a=i?"&"+i[0]:"";console.log(e);debugger;console.log("mark",{match:i,_gl:a});const h=t.match(/\?/)?t+a:t+"?"+a;console.log("url",h);debugger;location.href=h}render(){const{showMenuMobile:t,isMobile:e,isTablet:i,isDesktop:a}=this,h=o=>{var r;return f`
5680
5682
  <li class="item">
5681
5683
  <div class="top">
5682
5684
  <p class="title">${o.name}</p>
@@ -5732,7 +5734,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5732
5734
  title="${o.cta.title}"
5733
5735
  text="${o.cta.text}"
5734
5736
  buttonText="${o.cta.button.text}"
5735
- buttonUrl="${o.cta.button.url}"
5737
+ buttonUrl="${o.cta.title==="¿Necesitas un presupuesto?"?(()=>{const n="ab_test_presupuesto_link";let l=localStorage.getItem(n);if(!l){const d=["https://www.clinicaalemana.cl/presupuesto","https://www.clinicaalemana.cl/informacion-para-pacientes/todo-sobre-hospitalizacion/presupuesto"],c=Math.floor(Math.random()*d.length);l=d[c],localStorage.setItem(n,l)}return l})():o.cta.button.url}"
5736
5738
  image="${o.cta.image}"
5737
5739
  ></cas-header-card>
5738
5740
  </div>
@@ -5974,7 +5976,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5974
5976
  </a>`:f`<li class="item" @click=${()=>this.handleOpenDrawer(o)}>
5975
5977
  <cas-icon name="${n}" size="20"></cas-icon>
5976
5978
  <cas-text variant="body2">${oe(r)}</cas-text>
5977
- </li>`},a=o=>{const{name:r,url:n}=o;return f`<a href=${n} class="item-link">
5979
+ </li>`},a=o=>{let{name:r,url:n,tracking_type:l,campaign:d}=o;if(r==="Presupuesto cirugía y parto"){const c="ab_test_presupuesto_link";let p=localStorage.getItem(c);if(!p){const v=["https://www.clinicaalemana.cl/presupuesto","https://www.clinicaalemana.cl/informacion-para-pacientes/todo-sobre-hospitalizacion/presupuesto"],g=Math.floor(Math.random()*v.length);p=v[g],localStorage.setItem(c,p)}n=p}return l&&n&&(n=`${n}?${l}_source=clinicaalemana&${l}_medium=web&${l}_campaign=${d}`),f`<a href=${n} class="item-link">
5978
5980
  <cas-text variant="body1">${r}</cas-text>
5979
5981
  </a>`},h=o=>{const{section:r,items:n}=o,l=r.length>0?"item2":"item2 open",d=c=>{const{currentTarget:p}=c,{parentNode:v}=p,{classList:g}=v;g.toggle("open")};return f`<li class=${l}>
5980
5982
  ${r.length>0?f`
@@ -6390,7 +6392,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6390
6392
  </div>
6391
6393
  </div>
6392
6394
  </div>
6393
- `}}M(i1,"styles",b3),M(i1,"shadowRootOptions",{...b.shadowRootOptions,mode:"open"}),M(i1,"properties",{theme:{type:String},size:{type:Number},disableMode:{type:Boolean}});const Do=()=>window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",y3=s=>{const t=document.querySelector("body");s==="dark"?t==null||t.classList.add("eloisa-ds-dark-mode"):t==null||t.classList.remove("eloisa-ds-dark-mode")};function x3(s=null,t){let e=localStorage.getItem("theme")??Do(),i=e==="dark";const a=()=>{e=Do(),i=e==="dark"};return s!==null?(i=s==="true",e=i?"dark":"light"):window.matchMedia("(prefers-color-scheme: dark)").addListener(a),{theme:e,isDark:i}}const{mobile:A3,tablet:C3,macbookAir:w3,desktop:$3}=n3,Vo=()=>window.matchMedia(`(max-width: ${A3}px)`).matches,Bo=()=>window.matchMedia(`(max-width: ${C3}px)`).matches,Uo=()=>window.matchMedia(`(max-width: ${w3}px)`).matches,jo=()=>window.matchMedia(`(max-width: ${$3}px)`).matches;class G0 extends b{constructor(){super(),this.showAlert=!1,this.alert={},this.type=B.HOME,this.theme="light",this.disableMode="true",this.disableDarkModeDefault="false",this.isMobile=Vo(),this.isTablet=Bo(),this.isMacbookAir=Uo(),this.isDesktop=jo(),this.lastScrollPosition=0,this.spaceHeight=0}connectedCallback(){super.connectedCallback(),this.type===B.HOME&&window.addEventListener("scroll",this.handleScroll.bind(this)),window.addEventListener("resize",this.handleResize.bind(this)),window.addEventListener("resize",this.handleSpaces.bind(this))}disconnectedCallback(){this.type===B.HOME&&window.removeEventListener("scroll",this.handleScroll.bind(this)),window.removeEventListener("resize",this.handleResize.bind(this)),window.removeEventListener("resize",this.handleSpaces.bind(this)),super.disconnectedCallback()}handleScroll(){const t=window.pageYOffset||document.documentElement.scrollTop,e=this.shadowRoot.querySelector("header"),i=this.shadowRoot.querySelector("cas-header-taxonomy"),a=this.spaceHeight+"px";t<=this.spaceHeight||t<this.lastScrollPosition?(i.setAttribute("collapsed","false"),i.style.transform="translateY(0)",e.style.height=a):(i.setAttribute("collapsed","true"),i.style.transform="translateY(-100%)",e.style.height=`${this.spaceHeight-72}px`),this.lastScrollPosition=t}handleResize(){const t=this.isMobile,e=this.isTablet,i=this.isMacbookAir,a=this.isDesktop;this.isMobile=Vo(),this.isTablet=Bo(),this.isMacbookAir=Uo(),this.isDesktop=jo(),(t!==this.isMobile||e!==this.isTablet||i!==this.isMacbookAir||a!==this.isDesktop)&&this.requestUpdate()}handleTheme({theme:t}){const e={theme:t,isDark:t==="dark"},i=new CustomEvent("themeChange",{detail:e});this.theme=t,this.defaultDarkMode(),document.dispatchEvent(i)}defaultDarkMode(){y3(this.theme);const t=document.querySelector("head");if(this.disableDarkModeDefault!=="true"&&this.theme==="dark"){const e=document.createElement("style");e.setAttribute("data-name","eloisa-ds-dark-mode"),e.innerHTML=`
6395
+ `}}M(i1,"styles",b3),M(i1,"shadowRootOptions",{...b.shadowRootOptions,mode:"open"}),M(i1,"properties",{theme:{type:String},size:{type:Number},disableMode:{type:Boolean}});const Do=()=>window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",y3=s=>{const t=document.querySelector("body");s==="dark"?t==null||t.classList.add("eloisa-ds-dark-mode"):t==null||t.classList.remove("eloisa-ds-dark-mode")};function x3(s=null,t){let e=localStorage.getItem("theme")??Do(),i=e==="dark";const a=()=>{e=Do(),i=e==="dark"};return s!==null?(i=s==="true",e=i?"dark":"light"):window.matchMedia("(prefers-color-scheme: dark)").addListener(a),{theme:e,isDark:i}}const{mobile:A3,tablet:w3,macbookAir:C3,desktop:$3}=n3,Vo=()=>window.matchMedia(`(max-width: ${A3}px)`).matches,Bo=()=>window.matchMedia(`(max-width: ${w3}px)`).matches,Uo=()=>window.matchMedia(`(max-width: ${C3}px)`).matches,jo=()=>window.matchMedia(`(max-width: ${$3}px)`).matches;class G0 extends b{constructor(){super(),this.showAlert=!1,this.alert={},this.type=B.HOME,this.theme="light",this.disableMode="true",this.disableDarkModeDefault="false",this.isMobile=Vo(),this.isTablet=Bo(),this.isMacbookAir=Uo(),this.isDesktop=jo(),this.lastScrollPosition=0,this.spaceHeight=0}connectedCallback(){super.connectedCallback(),this.type===B.HOME&&window.addEventListener("scroll",this.handleScroll.bind(this)),window.addEventListener("resize",this.handleResize.bind(this)),window.addEventListener("resize",this.handleSpaces.bind(this))}disconnectedCallback(){this.type===B.HOME&&window.removeEventListener("scroll",this.handleScroll.bind(this)),window.removeEventListener("resize",this.handleResize.bind(this)),window.removeEventListener("resize",this.handleSpaces.bind(this)),super.disconnectedCallback()}handleScroll(){const t=window.pageYOffset||document.documentElement.scrollTop,e=this.shadowRoot.querySelector("header"),i=this.shadowRoot.querySelector("cas-header-taxonomy"),a=this.spaceHeight+"px";t<=this.spaceHeight||t<this.lastScrollPosition?(i.setAttribute("collapsed","false"),i.style.transform="translateY(0)",e.style.height=a):(i.setAttribute("collapsed","true"),i.style.transform="translateY(-100%)",e.style.height=`${this.spaceHeight-72}px`),this.lastScrollPosition=t}handleResize(){const t=this.isMobile,e=this.isTablet,i=this.isMacbookAir,a=this.isDesktop;this.isMobile=Vo(),this.isTablet=Bo(),this.isMacbookAir=Uo(),this.isDesktop=jo(),(t!==this.isMobile||e!==this.isTablet||i!==this.isMacbookAir||a!==this.isDesktop)&&this.requestUpdate()}handleTheme({theme:t}){const e={theme:t,isDark:t==="dark"},i=new CustomEvent("themeChange",{detail:e});this.theme=t,this.defaultDarkMode(),document.dispatchEvent(i)}defaultDarkMode(){y3(this.theme);const t=document.querySelector("head");if(this.disableDarkModeDefault!=="true"&&this.theme==="dark"){const e=document.createElement("style");e.setAttribute("data-name","eloisa-ds-dark-mode"),e.innerHTML=`
6394
6396
  // * {
6395
6397
  // filter: invert(1) hue-rotate(180deg);
6396
6398
  // }
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.3.15",
4
+ "version": "1.3.17",
5
5
  "author": "aconejeros",
6
6
  "keywords": [
7
7
  "direflow",