@everymatrix/player-account-transactions-history 1.86.26 → 1.86.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";var Fd=Object.defineProperty,$d=Object.defineProperties;var Vd=Object.getOwnPropertyDescriptors;var cs=Object.getOwnPropertySymbols;var Wd=Object.prototype.hasOwnProperty,jd=Object.prototype.propertyIsEnumerable;var co=(r,e,t)=>e in r?Fd(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,oi=(r,e)=>{for(var t in e||(e={}))Wd.call(e,t)&&co(r,t,e[t]);if(cs)for(var t of cs(e))jd.call(e,t)&&co(r,t,e[t]);return r},ni=(r,e)=>$d(r,Vd(e));var qe=(r,e,t)=>(co(r,typeof e!="symbol"?e+"":e,t),t);var si=(r,e,t)=>new Promise((i,o)=>{var n=l=>{try{a(t.next(l))}catch(h){o(h)}},s=l=>{try{a(t.throw(l))}catch(h){o(h)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(n,s);a((t=t.apply(r,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../stencil/ui-skeleton-BreIU6e5.cjs");function De(){}function tl(r){return r()}function us(){return Object.create(null)}function sr(r){r.forEach(tl)}function En(r){return typeof r=="function"}function rl(r,e){return r!=r?e==e:r!==e||r&&typeof r=="object"||typeof r=="function"}function Ud(r){return Object.keys(r).length===0}function il(r,...e){if(r==null){for(const i of e)i(void 0);return De}const t=r.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Gd(r,e,t){r.$$.on_destroy.push(il(e,t))}function f(r,e){r.appendChild(e)}function qd(r,e,t){const i=Yd(r);if(!i.getElementById(e)){const o=E("style");o.id=e,o.textContent=t,Xd(i,o)}}function Yd(r){if(!r)return document;const e=r.getRootNode?r.getRootNode():r.ownerDocument;return e&&e.host?e:r.ownerDocument}function Xd(r,e){return f(r.head||r,e),e.sheet}function ie(r,e,t){r.insertBefore(e,t||null)}function re(r){r.parentNode&&r.parentNode.removeChild(r)}function He(r,e){for(let t=0;t<r.length;t+=1)r[t]&&r[t].d(e)}function E(r){return document.createElement(r)}function xe(r){return document.createElementNS("http://www.w3.org/2000/svg",r)}function ge(r){return document.createTextNode(r)}function U(){return ge(" ")}function $i(){return ge("")}function gt(r,e,t,i){return r.addEventListener(e,t,i),()=>r.removeEventListener(e,t,i)}function p(r,e,t){t==null?r.removeAttribute(e):r.getAttribute(e)!==t&&r.setAttribute(e,t)}function Ye(r,e,t){const i=e.toLowerCase();i in r?r[i]=typeof r[i]=="boolean"&&t===""?!0:t:e in r?r[e]=typeof r[e]=="boolean"&&t===""?!0:t:p(r,e,t)}function Kd(r){return Array.from(r.childNodes)}function Ie(r,e){e=""+e,r.data!==e&&(r.data=e)}function Zd(r){const e={};return r.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}let Tr;function Ar(r){Tr=r}function Jd(){if(!Tr)throw new Error("Function called outside component initialization");return Tr}function Qd(r){Jd().$$.on_mount.push(r)}const jt=[],It=[];let Gt=[];const ps=[],ol=Promise.resolve();let zo=!1;function nl(){zo||(zo=!0,ol.then(ye))}function ec(){return nl(),ol}function Bo(r){Gt.push(r)}const uo=new Set;let $t=0;function ye(){if($t!==0)return;const r=Tr;do{try{for(;$t<jt.length;){const e=jt[$t];$t++,Ar(e),tc(e.$$)}}catch(e){throw jt.length=0,$t=0,e}for(Ar(null),jt.length=0,$t=0;It.length;)It.pop()();for(let e=0;e<Gt.length;e+=1){const t=Gt[e];uo.has(t)||(uo.add(t),t())}Gt.length=0}while(jt.length);for(;ps.length;)ps.pop()();zo=!1,uo.clear(),Ar(r)}function tc(r){if(r.fragment!==null){r.update(),sr(r.before_update);const e=r.dirty;r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,e),r.after_update.forEach(Bo)}}function rc(r){const e=[],t=[];Gt.forEach(i=>r.indexOf(i)===-1?e.push(i):t.push(i)),t.forEach(i=>i()),Gt=e}const ic=new Set;function oc(r,e){r&&r.i&&(ic.delete(r),r.i(e))}function me(r){return(r==null?void 0:r.length)!==void 0?r:Array.from(r)}function nc(r,e,t){const{fragment:i,after_update:o}=r.$$;i&&i.m(e,t),Bo(()=>{const n=r.$$.on_mount.map(tl).filter(En);r.$$.on_destroy?r.$$.on_destroy.push(...n):sr(n),r.$$.on_mount=[]}),o.forEach(Bo)}function sc(r,e){const t=r.$$;t.fragment!==null&&(rc(t.after_update),sr(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function ac(r,e){r.$$.dirty[0]===-1&&(jt.push(r),nl(),r.$$.dirty.fill(0)),r.$$.dirty[e/31|0]|=1<<e%31}function lc(r,e,t,i,o,n,s=null,a=[-1]){const l=Tr;Ar(r);const h=r.$$={fragment:null,ctx:[],props:n,update:De,not_equal:o,bound:us(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:us(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(h.root);let d=!1;if(h.ctx=t?t(r,e.props||{},(c,u,...m)=>{const g=m.length?m[0]:u;return h.ctx&&o(h.ctx[c],h.ctx[c]=g)&&(!h.skip_bound&&h.bound[c]&&h.bound[c](g),d&&ac(r,c)),u}):[],h.update(),d=!0,sr(h.before_update),h.fragment=i?i(h.ctx):!1,e.target){if(e.hydrate){const c=Kd(e.target);h.fragment&&h.fragment.l(c),c.forEach(re)}else h.fragment&&h.fragment.c();e.intro&&oc(r.$$.fragment),nc(r,e.target,e.anchor),ye()}Ar(l)}let sl;typeof HTMLElement=="function"&&(sl=class extends HTMLElement{constructor(e,t,i){super();qe(this,"$$ctor");qe(this,"$$s");qe(this,"$$c");qe(this,"$$cn",!1);qe(this,"$$d",{});qe(this,"$$r",!1);qe(this,"$$p_d",{});qe(this,"$$l",{});qe(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,i&&this.attachShadow({mode:"open"})}addEventListener(e,t,i){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,i)}removeEventListener(e,t,i){if(super.removeEventListener(e,t,i),this.$$c){const o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}connectedCallback(){return si(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(n){return()=>{let s;return{c:function(){s=E("slot"),n!=="default"&&p(s,"name",n)},m:function(h,d){ie(h,s,d)},d:function(h){h&&re(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const t={},i=Zd(this);for(const n of this.$$s)n in i&&(t[n]=[e(n)]);for(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=gi(s,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:ni(oi({},this.$$d),{$$slots:t,$$scope:{ctx:[]}})});const o=()=>{this.$$r=!0;for(const n in this.$$p_d)if(this.$$d[n]=this.$$c.$$.ctx[this.$$c.$$.props[n]],this.$$p_d[n].reflect){const s=gi(n,this.$$d[n],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,s)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(const n in this.$$l)for(const s of this.$$l[n]){const a=this.$$c.$on(n,s);this.$$l_u.set(s,a)}this.$$l={}}})}attributeChangedCallback(e,t,i){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=gi(e,i,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function gi(r,e,t,i){var n;const o=(n=t[r])==null?void 0:n.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!i||!t[r])return e;if(i==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function hc(r,e,t,i,o,n){let s=class extends sl{constructor(){super(r,t,o),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(a=>(e[a].attribute||a).toLowerCase())}};return Object.keys(e).forEach(a=>{Object.defineProperty(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var h;l=gi(a,l,e),this.$$d[a]=l,(h=this.$$c)==null||h.$set({[a]:l})}})}),i.forEach(a=>{Object.defineProperty(s.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),r.element=s,s}class dc{constructor(){qe(this,"$$");qe(this,"$$set")}$destroy(){sc(this,1),this.$destroy=De}$on(e,t){if(!En(t))return De;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(t),()=>{const o=i.indexOf(t);o!==-1&&i.splice(o,1)}}$set(e){this.$$set&&!Ud(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const cc="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(cc);function uc(r,e){if(r){const t=document.createElement("style");t.innerHTML=e,r.appendChild(t)}}function pc(r,e){if(!r||!e)return;const t=new URL(e);fetch(t.href).then(i=>i.text()).then(i=>{const o=document.createElement("style");o.innerHTML=i,r&&r.appendChild(o)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function mc(r,e,t){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(e,o=>{i.innerHTML=o,r&&r.appendChild(i)})}}/*! *****************************************************************************
1
+ "use strict";var $d=Object.defineProperty,Vd=Object.defineProperties;var Wd=Object.getOwnPropertyDescriptors;var cs=Object.getOwnPropertySymbols;var jd=Object.prototype.hasOwnProperty,Ud=Object.prototype.propertyIsEnumerable;var co=(r,e,t)=>e in r?$d(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,oi=(r,e)=>{for(var t in e||(e={}))jd.call(e,t)&&co(r,t,e[t]);if(cs)for(var t of cs(e))Ud.call(e,t)&&co(r,t,e[t]);return r},ni=(r,e)=>Vd(r,Wd(e));var qe=(r,e,t)=>(co(r,typeof e!="symbol"?e+"":e,t),t);var si=(r,e,t)=>new Promise((i,o)=>{var n=l=>{try{a(t.next(l))}catch(h){o(h)}},s=l=>{try{a(t.throw(l))}catch(h){o(h)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(n,s);a((t=t.apply(r,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../stencil/ui-skeleton-BreIU6e5.cjs");function De(){}function rl(r){return r()}function us(){return Object.create(null)}function sr(r){r.forEach(rl)}function En(r){return typeof r=="function"}function il(r,e){return r!=r?e==e:r!==e||r&&typeof r=="object"||typeof r=="function"}function Gd(r){return Object.keys(r).length===0}function ol(r,...e){if(r==null){for(const i of e)i(void 0);return De}const t=r.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function qd(r,e,t){r.$$.on_destroy.push(ol(e,t))}function f(r,e){r.appendChild(e)}function Yd(r,e,t){const i=Xd(r);if(!i.getElementById(e)){const o=E("style");o.id=e,o.textContent=t,Kd(i,o)}}function Xd(r){if(!r)return document;const e=r.getRootNode?r.getRootNode():r.ownerDocument;return e&&e.host?e:r.ownerDocument}function Kd(r,e){return f(r.head||r,e),e.sheet}function ie(r,e,t){r.insertBefore(e,t||null)}function re(r){r.parentNode&&r.parentNode.removeChild(r)}function He(r,e){for(let t=0;t<r.length;t+=1)r[t]&&r[t].d(e)}function E(r){return document.createElement(r)}function xe(r){return document.createElementNS("http://www.w3.org/2000/svg",r)}function ge(r){return document.createTextNode(r)}function U(){return ge(" ")}function $i(){return ge("")}function gt(r,e,t,i){return r.addEventListener(e,t,i),()=>r.removeEventListener(e,t,i)}function p(r,e,t){t==null?r.removeAttribute(e):r.getAttribute(e)!==t&&r.setAttribute(e,t)}function Ye(r,e,t){const i=e.toLowerCase();i in r?r[i]=typeof r[i]=="boolean"&&t===""?!0:t:e in r?r[e]=typeof r[e]=="boolean"&&t===""?!0:t:p(r,e,t)}function Zd(r){return Array.from(r.childNodes)}function Ie(r,e){e=""+e,r.data!==e&&(r.data=e)}function Jd(r){const e={};return r.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}let Tr;function Ar(r){Tr=r}function Qd(){if(!Tr)throw new Error("Function called outside component initialization");return Tr}function ec(r){Qd().$$.on_mount.push(r)}const jt=[],It=[];let Gt=[];const ps=[],nl=Promise.resolve();let zo=!1;function sl(){zo||(zo=!0,nl.then(ye))}function tc(){return sl(),nl}function Bo(r){Gt.push(r)}const uo=new Set;let $t=0;function ye(){if($t!==0)return;const r=Tr;do{try{for(;$t<jt.length;){const e=jt[$t];$t++,Ar(e),rc(e.$$)}}catch(e){throw jt.length=0,$t=0,e}for(Ar(null),jt.length=0,$t=0;It.length;)It.pop()();for(let e=0;e<Gt.length;e+=1){const t=Gt[e];uo.has(t)||(uo.add(t),t())}Gt.length=0}while(jt.length);for(;ps.length;)ps.pop()();zo=!1,uo.clear(),Ar(r)}function rc(r){if(r.fragment!==null){r.update(),sr(r.before_update);const e=r.dirty;r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,e),r.after_update.forEach(Bo)}}function ic(r){const e=[],t=[];Gt.forEach(i=>r.indexOf(i)===-1?e.push(i):t.push(i)),t.forEach(i=>i()),Gt=e}const oc=new Set;function nc(r,e){r&&r.i&&(oc.delete(r),r.i(e))}function me(r){return(r==null?void 0:r.length)!==void 0?r:Array.from(r)}function sc(r,e,t){const{fragment:i,after_update:o}=r.$$;i&&i.m(e,t),Bo(()=>{const n=r.$$.on_mount.map(rl).filter(En);r.$$.on_destroy?r.$$.on_destroy.push(...n):sr(n),r.$$.on_mount=[]}),o.forEach(Bo)}function ac(r,e){const t=r.$$;t.fragment!==null&&(ic(t.after_update),sr(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function lc(r,e){r.$$.dirty[0]===-1&&(jt.push(r),sl(),r.$$.dirty.fill(0)),r.$$.dirty[e/31|0]|=1<<e%31}function hc(r,e,t,i,o,n,s=null,a=[-1]){const l=Tr;Ar(r);const h=r.$$={fragment:null,ctx:[],props:n,update:De,not_equal:o,bound:us(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:us(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(h.root);let d=!1;if(h.ctx=t?t(r,e.props||{},(c,u,...m)=>{const g=m.length?m[0]:u;return h.ctx&&o(h.ctx[c],h.ctx[c]=g)&&(!h.skip_bound&&h.bound[c]&&h.bound[c](g),d&&lc(r,c)),u}):[],h.update(),d=!0,sr(h.before_update),h.fragment=i?i(h.ctx):!1,e.target){if(e.hydrate){const c=Zd(e.target);h.fragment&&h.fragment.l(c),c.forEach(re)}else h.fragment&&h.fragment.c();e.intro&&nc(r.$$.fragment),sc(r,e.target,e.anchor),ye()}Ar(l)}let al;typeof HTMLElement=="function"&&(al=class extends HTMLElement{constructor(e,t,i){super();qe(this,"$$ctor");qe(this,"$$s");qe(this,"$$c");qe(this,"$$cn",!1);qe(this,"$$d",{});qe(this,"$$r",!1);qe(this,"$$p_d",{});qe(this,"$$l",{});qe(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,i&&this.attachShadow({mode:"open"})}addEventListener(e,t,i){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,i)}removeEventListener(e,t,i){if(super.removeEventListener(e,t,i),this.$$c){const o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}connectedCallback(){return si(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(n){return()=>{let s;return{c:function(){s=E("slot"),n!=="default"&&p(s,"name",n)},m:function(h,d){ie(h,s,d)},d:function(h){h&&re(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const t={},i=Jd(this);for(const n of this.$$s)n in i&&(t[n]=[e(n)]);for(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=gi(s,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:ni(oi({},this.$$d),{$$slots:t,$$scope:{ctx:[]}})});const o=()=>{this.$$r=!0;for(const n in this.$$p_d)if(this.$$d[n]=this.$$c.$$.ctx[this.$$c.$$.props[n]],this.$$p_d[n].reflect){const s=gi(n,this.$$d[n],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,s)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(const n in this.$$l)for(const s of this.$$l[n]){const a=this.$$c.$on(n,s);this.$$l_u.set(s,a)}this.$$l={}}})}attributeChangedCallback(e,t,i){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=gi(e,i,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function gi(r,e,t,i){var n;const o=(n=t[r])==null?void 0:n.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!i||!t[r])return e;if(i==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function dc(r,e,t,i,o,n){let s=class extends al{constructor(){super(r,t,o),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(a=>(e[a].attribute||a).toLowerCase())}};return Object.keys(e).forEach(a=>{Object.defineProperty(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var h;l=gi(a,l,e),this.$$d[a]=l,(h=this.$$c)==null||h.$set({[a]:l})}})}),i.forEach(a=>{Object.defineProperty(s.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),r.element=s,s}class cc{constructor(){qe(this,"$$");qe(this,"$$set")}$destroy(){ac(this,1),this.$destroy=De}$on(e,t){if(!En(t))return De;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(t),()=>{const o=i.indexOf(t);o!==-1&&i.splice(o,1)}}$set(e){this.$$set&&!Gd(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const uc="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(uc);function pc(r,e){if(r){const t=document.createElement("style");t.innerHTML=e,r.appendChild(t)}}function mc(r,e){if(!r||!e)return;const t=new URL(e);fetch(t.href).then(i=>i.text()).then(i=>{const o=document.createElement("style");o.innerHTML=i,r&&r.appendChild(o)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function fc(r,e,t){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(e,o=>{i.innerHTML=o,r&&r.appendChild(i)})}}/*! *****************************************************************************
2
2
  Copyright (c) Microsoft Corporation.
3
3
 
4
4
  Permission to use, copy, modify, and/or distribute this software for any
@@ -11,11 +11,11 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
11
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
12
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
13
  PERFORMANCE OF THIS SOFTWARE.
14
- ***************************************************************************** */var Lo=function(r,e){return Lo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])},Lo(r,e)};function jr(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Lo(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function Ho(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],i=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ro(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var i=t.call(r),o,n=[],s;try{for(;(e===void 0||e-- >0)&&!(o=i.next()).done;)n.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(s)throw s.error}}return n}function Fo(r,e,t){if(arguments.length===2)for(var i=0,o=e.length,n;i<o;i++)(n||!(i in e))&&(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return r.concat(n||e)}function at(r){return typeof r=="function"}function al(r){var e=function(i){Error.call(i),i.stack=new Error().stack},t=r(e);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var po=al(function(r){return function(t){r(this),this.message=t?t.length+` errors occurred during unsubscription:
14
+ ***************************************************************************** */var Lo=function(r,e){return Lo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])},Lo(r,e)};function jr(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Lo(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function Ho(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],i=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ro(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var i=t.call(r),o,n=[],s;try{for(;(e===void 0||e-- >0)&&!(o=i.next()).done;)n.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(s)throw s.error}}return n}function Fo(r,e,t){if(arguments.length===2)for(var i=0,o=e.length,n;i<o;i++)(n||!(i in e))&&(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return r.concat(n||e)}function at(r){return typeof r=="function"}function ll(r){var e=function(i){Error.call(i),i.stack=new Error().stack},t=r(e);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var po=ll(function(r){return function(t){r(this),this.message=t?t.length+` errors occurred during unsubscription:
15
15
  `+t.map(function(i,o){return o+1+") "+i.toString()}).join(`
16
- `):"",this.name="UnsubscriptionError",this.errors=t}});function $o(r,e){if(r){var t=r.indexOf(e);0<=t&&r.splice(t,1)}}var Vi=function(){function r(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return r.prototype.unsubscribe=function(){var e,t,i,o,n;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=Ho(s),l=a.next();!l.done;l=a.next()){var h=l.value;h.remove(this)}}catch(_){e={error:_}}finally{try{l&&!l.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else s.remove(this);var d=this.initialTeardown;if(at(d))try{d()}catch(_){n=_ instanceof po?_.errors:[_]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var u=Ho(c),m=u.next();!m.done;m=u.next()){var g=m.value;try{ms(g)}catch(_){n=n!=null?n:[],_ instanceof po?n=Fo(Fo([],Ro(n)),Ro(_.errors)):n.push(_)}}}catch(_){i={error:_}}finally{try{m&&!m.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}}if(n)throw new po(n)}},r.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)ms(e);else{if(e instanceof r){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}},r.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},r.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},r.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&$o(t,e)},r.prototype.remove=function(e){var t=this._finalizers;t&&$o(t,e),e instanceof r&&e._removeParent(this)},r.EMPTY=function(){var e=new r;return e.closed=!0,e}(),r}(),ll=Vi.EMPTY;function hl(r){return r instanceof Vi||r&&"closed"in r&&at(r.remove)&&at(r.add)&&at(r.unsubscribe)}function ms(r){at(r)?r():r.unsubscribe()}var fc={Promise:void 0},_c={setTimeout:function(r,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return setTimeout.apply(void 0,Fo([r,e],Ro(t)))},clearTimeout:function(r){return clearTimeout(r)},delegate:void 0};function vc(r){_c.setTimeout(function(){throw r})}function fs(){}function bi(r){r()}var dl=function(r){jr(e,r);function e(t){var i=r.call(this)||this;return i.isStopped=!1,t?(i.destination=t,hl(t)&&t.add(i)):i.destination=yc,i}return e.create=function(t,i,o){return new Vo(t,i,o)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(Vi),gc=function(){function r(e){this.partialObserver=e}return r.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(i){ai(i)}},r.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(i){ai(i)}else ai(e)},r.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){ai(t)}},r}(),Vo=function(r){jr(e,r);function e(t,i,o){var n=r.call(this)||this,s;return at(t)||!t?s={next:t!=null?t:void 0,error:i!=null?i:void 0,complete:o!=null?o:void 0}:s=t,n.destination=new gc(s),n}return e}(dl);function ai(r){vc(r)}function bc(r){throw r}var yc={closed:!0,next:fs,error:bc,complete:fs},xc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function wc(r){return r}function Cc(r){return r.length===0?wc:r.length===1?r[0]:function(t){return r.reduce(function(i,o){return o(i)},t)}}var _s=function(){function r(e){e&&(this._subscribe=e)}return r.prototype.lift=function(e){var t=new r;return t.source=this,t.operator=e,t},r.prototype.subscribe=function(e,t,i){var o=this,n=Sc(e)?e:new Vo(e,t,i);return bi(function(){var s=o,a=s.operator,l=s.source;n.add(a?a.call(n,l):l?o._subscribe(n):o._trySubscribe(n))}),n},r.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},r.prototype.forEach=function(e,t){var i=this;return t=vs(t),new t(function(o,n){var s=new Vo({next:function(a){try{e(a)}catch(l){n(l),s.unsubscribe()}},error:n,complete:o});i.subscribe(s)})},r.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},r.prototype[xc]=function(){return this},r.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Cc(e)(this)},r.prototype.toPromise=function(e){var t=this;return e=vs(e),new e(function(i,o){var n;t.subscribe(function(s){return n=s},function(s){return o(s)},function(){return i(n)})})},r.create=function(e){return new r(e)},r}();function vs(r){var e;return(e=r!=null?r:fc.Promise)!==null&&e!==void 0?e:Promise}function Ec(r){return r&&at(r.next)&&at(r.error)&&at(r.complete)}function Sc(r){return r&&r instanceof dl||Ec(r)&&hl(r)}var Ac=al(function(r){return function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),cl=function(r){jr(e,r);function e(){var t=r.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return e.prototype.lift=function(t){var i=new gs(this,this);return i.operator=t,i},e.prototype._throwIfClosed=function(){if(this.closed)throw new Ac},e.prototype.next=function(t){var i=this;bi(function(){var o,n;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var s=Ho(i.currentObservers),a=s.next();!a.done;a=s.next()){var l=a.value;l.next(t)}}catch(h){o={error:h}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}}})},e.prototype.error=function(t){var i=this;bi(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=t;for(var o=i.observers;o.length;)o.shift().error(t)}})},e.prototype.complete=function(){var t=this;bi(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var i=t.observers;i.length;)i.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(t){return this._throwIfClosed(),r.prototype._trySubscribe.call(this,t)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var i=this,o=this,n=o.hasError,s=o.isStopped,a=o.observers;return n||s?ll:(this.currentObservers=null,a.push(t),new Vi(function(){i.currentObservers=null,$o(a,t)}))},e.prototype._checkFinalizedStatuses=function(t){var i=this,o=i.hasError,n=i.thrownError,s=i.isStopped;o?t.error(n):s&&t.complete()},e.prototype.asObservable=function(){var t=new _s;return t.source=this,t},e.create=function(t,i){return new gs(t,i)},e}(_s),gs=function(r){jr(e,r);function e(t,i){var o=r.call(this)||this;return o.destination=t,o.source=i,o}return e.prototype.next=function(t){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.next)===null||o===void 0||o.call(i,t)},e.prototype.error=function(t){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.error)===null||o===void 0||o.call(i,t)},e.prototype.complete=function(){var t,i;(i=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||i===void 0||i.call(t)},e.prototype._subscribe=function(t){var i,o;return(o=(i=this.source)===null||i===void 0?void 0:i.subscribe(t))!==null&&o!==void 0?o:ll},e}(cl),ul={now:function(){return(ul.delegate||Date).now()},delegate:void 0},Pc=function(r){jr(e,r);function e(t,i,o){t===void 0&&(t=1/0),i===void 0&&(i=1/0),o===void 0&&(o=ul);var n=r.call(this)||this;return n._bufferSize=t,n._windowTime=i,n._timestampProvider=o,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=i===1/0,n._bufferSize=Math.max(1,t),n._windowTime=Math.max(1,i),n}return e.prototype.next=function(t){var i=this,o=i.isStopped,n=i._buffer,s=i._infiniteTimeWindow,a=i._timestampProvider,l=i._windowTime;o||(n.push(t),!s&&n.push(a.now()+l)),this._trimBuffer(),r.prototype.next.call(this,t)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(t),o=this,n=o._infiniteTimeWindow,s=o._buffer,a=s.slice(),l=0;l<a.length&&!t.closed;l+=n?1:2)t.next(a[l]);return this._checkFinalizedStatuses(t),i},e.prototype._trimBuffer=function(){var t=this,i=t._bufferSize,o=t._timestampProvider,n=t._buffer,s=t._infiniteTimeWindow,a=(s?1:2)*i;if(i<1/0&&a<n.length&&n.splice(0,n.length-a),!s){for(var l=o.now(),h=0,d=1;d<n.length&&n[d]<=l;d+=2)h=d;h&&n.splice(0,h+1)}},e}(cl);const bs=[],ys={},kc=(r,e=0)=>{if(bs.indexOf(r)==-1){const t=new Pc(e);ys[r]=t,bs.push(r)}return ys[r]},Vt=[];function Tc(r,e){return{subscribe:Wi(r,e).subscribe}}function Wi(r,e=De){let t;const i=new Set;function o(a){if(rl(r,a)&&(r=a,t)){const l=!Vt.length;for(const h of i)h[1](),Vt.push(h,r);if(l){for(let h=0;h<Vt.length;h+=2)Vt[h][0](Vt[h+1]);Vt.length=0}}}function n(a){o(a(r))}function s(a,l=De){const h=[a,l];return i.add(h),i.size===1&&(t=e(o,n)||De),a(r),()=>{i.delete(h),i.size===0&&t&&(t(),t=null)}}return{set:o,update:n,subscribe:s}}function ar(r,e,t){const i=!Array.isArray(r),o=i?[r]:r;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const n=e.length<2;return Tc(t,(s,a)=>{let l=!1;const h=[];let d=0,c=De;const u=()=>{if(d)return;c();const g=e(i?h[0]:h,s,a);n?s(g):c=En(g)?g:De},m=o.map((g,_)=>il(g,y=>{h[_]=y,d&=~(1<<_),l&&u()},()=>{d|=1<<_}));return l=!0,u(),function(){sr(m),c(),l=!1}})}var pl=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Sn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Ic=function(e){return Dc(e)&&!Oc(e)};function Dc(r){return!!r&&typeof r=="object"}function Oc(r){var e=Object.prototype.toString.call(r);return e==="[object RegExp]"||e==="[object Date]"||zc(r)}var Mc=typeof Symbol=="function"&&Symbol.for,Nc=Mc?Symbol.for("react.element"):60103;function zc(r){return r.$$typeof===Nc}function Bc(r){return Array.isArray(r)?[]:{}}function Ir(r,e){return e.clone!==!1&&e.isMergeableObject(r)?Jt(Bc(r),r,e):r}function Lc(r,e,t){return r.concat(e).map(function(i){return Ir(i,t)})}function Hc(r,e){if(!e.customMerge)return Jt;var t=e.customMerge(r);return typeof t=="function"?t:Jt}function Rc(r){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(r).filter(function(e){return Object.propertyIsEnumerable.call(r,e)}):[]}function xs(r){return Object.keys(r).concat(Rc(r))}function ml(r,e){try{return e in r}catch(t){return!1}}function Fc(r,e){return ml(r,e)&&!(Object.hasOwnProperty.call(r,e)&&Object.propertyIsEnumerable.call(r,e))}function $c(r,e,t){var i={};return t.isMergeableObject(r)&&xs(r).forEach(function(o){i[o]=Ir(r[o],t)}),xs(e).forEach(function(o){Fc(r,o)||(ml(r,o)&&t.isMergeableObject(e[o])?i[o]=Hc(o,t)(r[o],e[o],t):i[o]=Ir(e[o],t))}),i}function Jt(r,e,t){t=t||{},t.arrayMerge=t.arrayMerge||Lc,t.isMergeableObject=t.isMergeableObject||Ic,t.cloneUnlessOtherwiseSpecified=Ir;var i=Array.isArray(e),o=Array.isArray(r),n=i===o;return n?i?t.arrayMerge(r,e,t):$c(r,e,t):Ir(e,t)}Jt.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(i,o){return Jt(i,o,t)},{})};var Vc=Jt,Wc=Vc;const jc=Sn(Wc);var Wo=function(r,e){return Wo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])},Wo(r,e)};function ji(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Wo(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Qe=function(){return Qe=Object.assign||function(e){for(var t,i=1,o=arguments.length;i<o;i++){t=arguments[i];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Qe.apply(this,arguments)};function Uc(r,e){var t={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&e.indexOf(i)<0&&(t[i]=r[i]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(r);o<i.length;o++)e.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(r,i[o])&&(t[i[o]]=r[i[o]]);return t}function mo(r,e,t){if(t||arguments.length===2)for(var i=0,o=e.length,n;i<o;i++)(n||!(i in e))&&(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return r.concat(n||Array.prototype.slice.call(e))}function fo(r,e){var t=e&&e.cache?e.cache:Jc,i=e&&e.serializer?e.serializer:Kc,o=e&&e.strategy?e.strategy:Yc;return o(r,{cache:t,serializer:i})}function Gc(r){return r==null||typeof r=="number"||typeof r=="boolean"}function qc(r,e,t,i){var o=Gc(i)?i:t(i),n=e.get(o);return typeof n=="undefined"&&(n=r.call(this,i),e.set(o,n)),n}function fl(r,e,t){var i=Array.prototype.slice.call(arguments,3),o=t(i),n=e.get(o);return typeof n=="undefined"&&(n=r.apply(this,i),e.set(o,n)),n}function _l(r,e,t,i,o){return t.bind(e,r,i,o)}function Yc(r,e){var t=r.length===1?qc:fl;return _l(r,this,t,e.cache.create(),e.serializer)}function Xc(r,e){return _l(r,this,fl,e.cache.create(),e.serializer)}var Kc=function(){return JSON.stringify(arguments)},Zc=function(){function r(){this.cache=Object.create(null)}return r.prototype.get=function(e){return this.cache[e]},r.prototype.set=function(e,t){this.cache[e]=t},r}(),Jc={create:function(){return new Zc}},_o={variadic:Xc},Si=function(){return Si=Object.assign||function(e){for(var t,i=1,o=arguments.length;i<o;i++){t=arguments[i];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Si.apply(this,arguments)};var X;(function(r){r[r.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",r[r.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",r[r.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",r[r.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",r[r.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",r[r.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",r[r.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",r[r.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",r[r.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",r[r.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",r[r.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",r[r.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",r[r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",r[r.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",r[r.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",r[r.INVALID_TAG=23]="INVALID_TAG",r[r.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",r[r.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",r[r.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(X||(X={}));var pe;(function(r){r[r.literal=0]="literal",r[r.argument=1]="argument",r[r.number=2]="number",r[r.date=3]="date",r[r.time=4]="time",r[r.select=5]="select",r[r.plural=6]="plural",r[r.pound=7]="pound",r[r.tag=8]="tag"})(pe||(pe={}));var Qt;(function(r){r[r.number=0]="number",r[r.dateTime=1]="dateTime"})(Qt||(Qt={}));function ws(r){return r.type===pe.literal}function Qc(r){return r.type===pe.argument}function vl(r){return r.type===pe.number}function gl(r){return r.type===pe.date}function bl(r){return r.type===pe.time}function yl(r){return r.type===pe.select}function xl(r){return r.type===pe.plural}function eu(r){return r.type===pe.pound}function wl(r){return r.type===pe.tag}function Cl(r){return!!(r&&typeof r=="object"&&r.type===Qt.number)}function jo(r){return!!(r&&typeof r=="object"&&r.type===Qt.dateTime)}var El=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,tu=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function ru(r){var e={};return r.replace(tu,function(t){var i=t.length;switch(t[0]){case"G":e.era=i===4?"long":i===5?"narrow":"short";break;case"y":e.year=i===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=i===4?"long":i===5?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][i-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][i-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][i-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][i-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":e.minute=["numeric","2-digit"][i-1];break;case"s":e.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=i<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),e}var _e=function(){return _e=Object.assign||function(e){for(var t,i=1,o=arguments.length;i<o;i++){t=arguments[i];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},_e.apply(this,arguments)};var iu=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function ou(r){if(r.length===0)throw new Error("Number skeleton cannot be empty");for(var e=r.split(iu).filter(function(u){return u.length>0}),t=[],i=0,o=e;i<o.length;i++){var n=o[i],s=n.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],l=s.slice(1),h=0,d=l;h<d.length;h++){var c=d[h];if(c.length===0)throw new Error("Invalid number skeleton")}t.push({stem:a,options:l})}return t}function nu(r){return r.replace(/^(.*?)-/,"")}var Cs=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Sl=/^(@+)?(\+|#+)?[rs]?$/g,su=/(\*)(0+)|(#+)(0+)|(0+)/g,Al=/^(0+)$/;function Es(r){var e={};return r[r.length-1]==="r"?e.roundingPriority="morePrecision":r[r.length-1]==="s"&&(e.roundingPriority="lessPrecision"),r.replace(Sl,function(t,i,o){return typeof o!="string"?(e.minimumSignificantDigits=i.length,e.maximumSignificantDigits=i.length):o==="+"?e.minimumSignificantDigits=i.length:i[0]==="#"?e.maximumSignificantDigits=i.length:(e.minimumSignificantDigits=i.length,e.maximumSignificantDigits=i.length+(typeof o=="string"?o.length:0)),""}),e}function Pl(r){switch(r){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function au(r){var e;if(r[0]==="E"&&r[1]==="E"?(e={notation:"engineering"},r=r.slice(2)):r[0]==="E"&&(e={notation:"scientific"},r=r.slice(1)),e){var t=r.slice(0,2);if(t==="+!"?(e.signDisplay="always",r=r.slice(2)):t==="+?"&&(e.signDisplay="exceptZero",r=r.slice(2)),!Al.test(r))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=r.length}return e}function Ss(r){var e={},t=Pl(r);return t||e}function lu(r){for(var e={},t=0,i=r;t<i.length;t++){var o=i[t];switch(o.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=o.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=nu(o.options[0]);continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=_e(_e(_e({},e),{notation:"scientific"}),o.options.reduce(function(l,h){return _e(_e({},l),Ss(h))},{}));continue;case"engineering":e=_e(_e(_e({},e),{notation:"engineering"}),o.options.reduce(function(l,h){return _e(_e({},l),Ss(h))},{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":e.roundingMode="floor";continue;case"rounding-mode-ceiling":e.roundingMode="ceil";continue;case"rounding-mode-down":e.roundingMode="trunc";continue;case"rounding-mode-up":e.roundingMode="expand";continue;case"rounding-mode-half-even":e.roundingMode="halfEven";continue;case"rounding-mode-half-down":e.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":e.roundingMode="halfExpand";continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(su,function(l,h,d,c,u,m){if(h)e.minimumIntegerDigits=d.length;else{if(c&&u)throw new Error("We currently do not support maximum integer digits");if(m)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Al.test(o.stem)){e.minimumIntegerDigits=o.stem.length;continue}if(Cs.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Cs,function(l,h,d,c,u,m){return d==="*"?e.minimumFractionDigits=h.length:c&&c[0]==="#"?e.maximumFractionDigits=c.length:u&&m?(e.minimumFractionDigits=u.length,e.maximumFractionDigits=u.length+m.length):(e.minimumFractionDigits=h.length,e.maximumFractionDigits=h.length),""});var n=o.options[0];n==="w"?e=_e(_e({},e),{trailingZeroDisplay:"stripIfInteger"}):n&&(e=_e(_e({},e),Es(n)));continue}if(Sl.test(o.stem)){e=_e(_e({},e),Es(o.stem));continue}var s=Pl(o.stem);s&&(e=_e(_e({},e),s));var a=au(o.stem);a&&(e=_e(_e({},e),a))}return e}var li={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function hu(r,e){for(var t="",i=0;i<r.length;i++){var o=r.charAt(i);if(o==="j"){for(var n=0;i+1<r.length&&r.charAt(i+1)===o;)n++,i++;var s=1+(n&1),a=n<2?1:3+(n>>1),l="a",h=du(e);for((h=="H"||h=="k")&&(a=0);a-- >0;)t+=l;for(;s-- >0;)t=h+t}else o==="J"?t+="H":t+=o}return t}function du(r){var e=r.hourCycle;if(e===void 0&&r.hourCycles&&r.hourCycles.length&&(e=r.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var t=r.language,i;t!=="root"&&(i=r.maximize().region);var o=li[i||""]||li[t||""]||li["".concat(t,"-001")]||li["001"];return o[0]}var vo,cu=new RegExp("^".concat(El.source,"*")),uu=new RegExp("".concat(El.source,"*$"));function J(r,e){return{start:r,end:e}}var pu=!!String.prototype.startsWith&&"_a".startsWith("a",1),mu=!!String.fromCodePoint,fu=!!Object.fromEntries,_u=!!String.prototype.codePointAt,vu=!!String.prototype.trimStart,gu=!!String.prototype.trimEnd,bu=!!Number.isSafeInteger,yu=bu?Number.isSafeInteger:function(r){return typeof r=="number"&&isFinite(r)&&Math.floor(r)===r&&Math.abs(r)<=9007199254740991},Uo=!0;try{var xu=Tl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Uo=((vo=xu.exec("a"))===null||vo===void 0?void 0:vo[0])==="a"}catch(r){Uo=!1}var As=pu?function(e,t,i){return e.startsWith(t,i)}:function(e,t,i){return e.slice(i,i+t.length)===t},Go=mu?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var i="",o=e.length,n=0,s;o>n;){if(s=e[n++],s>1114111)throw RangeError(s+" is not a valid code point");i+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return i},Ps=fu?Object.fromEntries:function(e){for(var t={},i=0,o=e;i<o.length;i++){var n=o[i],s=n[0],a=n[1];t[s]=a}return t},kl=_u?function(e,t){return e.codePointAt(t)}:function(e,t){var i=e.length;if(!(t<0||t>=i)){var o=e.charCodeAt(t),n;return o<55296||o>56319||t+1===i||(n=e.charCodeAt(t+1))<56320||n>57343?o:(o-55296<<10)+(n-56320)+65536}},wu=vu?function(e){return e.trimStart()}:function(e){return e.replace(cu,"")},Cu=gu?function(e){return e.trimEnd()}:function(e){return e.replace(uu,"")};function Tl(r,e){return new RegExp(r,e)}var qo;if(Uo){var ks=Tl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");qo=function(e,t){var i;ks.lastIndex=t;var o=ks.exec(e);return(i=o[1])!==null&&i!==void 0?i:""}}else qo=function(e,t){for(var i=[];;){var o=kl(e,t);if(o===void 0||Il(o)||Pu(o))break;i.push(o),t+=o>=65536?2:1}return Go.apply(void 0,i)};var Eu=function(){function r(e,t){t===void 0&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return r.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},r.prototype.parseMessage=function(e,t,i){for(var o=[];!this.isEOF();){var n=this.char();if(n===123){var s=this.parseArgument(e,i);if(s.err)return s;o.push(s.val)}else{if(n===125&&e>0)break;if(n===35&&(t==="plural"||t==="selectordinal")){var a=this.clonePosition();this.bump(),o.push({type:pe.pound,location:J(a,this.clonePosition())})}else if(n===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(X.UNMATCHED_CLOSING_TAG,J(this.clonePosition(),this.clonePosition()))}else if(n===60&&!this.ignoreTag&&Yo(this.peek()||0)){var s=this.parseTag(e,t);if(s.err)return s;o.push(s.val)}else{var s=this.parseLiteral(e,t);if(s.err)return s;o.push(s.val)}}}return{val:o,err:null}},r.prototype.parseTag=function(e,t){var i=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:pe.literal,value:"<".concat(o,"/>"),location:J(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var n=this.parseMessage(e+1,t,!0);if(n.err)return n;var s=n.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Yo(this.char()))return this.error(X.INVALID_TAG,J(a,this.clonePosition()));var l=this.clonePosition(),h=this.parseTagName();return o!==h?this.error(X.UNMATCHED_CLOSING_TAG,J(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:pe.tag,value:o,children:s,location:J(i,this.clonePosition())},err:null}:this.error(X.INVALID_TAG,J(a,this.clonePosition())))}else return this.error(X.UNCLOSED_TAG,J(i,this.clonePosition()))}else return this.error(X.INVALID_TAG,J(i,this.clonePosition()))},r.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&Au(this.char());)this.bump();return this.message.slice(e,this.offset())},r.prototype.parseLiteral=function(e,t){for(var i=this.clonePosition(),o="";;){var n=this.tryParseQuote(t);if(n){o+=n;continue}var s=this.tryParseUnquoted(e,t);if(s){o+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){o+=a;continue}break}var l=J(i,this.clonePosition());return{val:{type:pe.literal,value:o,location:l},err:null}},r.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Su(this.peek()||0))?(this.bump(),"<"):null},r.prototype.tryParseQuote=function(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(e==="plural"||e==="selectordinal")break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(i===39)if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}else t.push(i);this.bump()}return Go.apply(void 0,t)},r.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(t==="plural"||t==="selectordinal")||i===125&&e>0?null:(this.bump(),Go(i))},r.prototype.parseArgument=function(e,t){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(X.EXPECT_ARGUMENT_CLOSING_BRACE,J(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(X.EMPTY_ARGUMENT,J(i,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(X.MALFORMED_ARGUMENT,J(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(X.EXPECT_ARGUMENT_CLOSING_BRACE,J(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:pe.argument,value:o,location:J(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(X.EXPECT_ARGUMENT_CLOSING_BRACE,J(i,this.clonePosition())):this.parseArgumentOptions(e,t,o,i);default:return this.error(X.MALFORMED_ARGUMENT,J(i,this.clonePosition()))}},r.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),i=qo(this.message,t),o=t+i.length;this.bumpTo(o);var n=this.clonePosition(),s=J(e,n);return{value:i,location:s}},r.prototype.parseArgumentOptions=function(e,t,i,o){var n,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(X.EXPECT_ARGUMENT_TYPE,J(s,l));case"number":case"date":case"time":{this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;var u=Cu(c.val);if(u.length===0)return this.error(X.EXPECT_ARGUMENT_STYLE,J(this.clonePosition(),this.clonePosition()));var m=J(d,this.clonePosition());h={style:u,styleLocation:m}}var g=this.tryParseArgumentClose(o);if(g.err)return g;var _=J(o,this.clonePosition());if(h&&As(h==null?void 0:h.style,"::",0)){var y=wu(h.style.slice(2));if(a==="number"){var c=this.parseNumberSkeletonFromString(y,h.styleLocation);return c.err?c:{val:{type:pe.number,value:i,location:_,style:c.val},err:null}}else{if(y.length===0)return this.error(X.EXPECT_DATE_TIME_SKELETON,_);var D=y;this.locale&&(D=hu(y,this.locale));var u={type:Qt.dateTime,pattern:D,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?ru(D):{}},A=a==="date"?pe.date:pe.time;return{val:{type:A,value:i,location:_,style:u},err:null}}}return{val:{type:a==="number"?pe.number:a==="date"?pe.date:pe.time,value:i,location:_,style:(n=h==null?void 0:h.style)!==null&&n!==void 0?n:null},err:null}}case"plural":case"selectordinal":case"select":{var M=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(X.EXPECT_SELECT_ARGUMENT_OPTIONS,J(M,Si({},M)));this.bumpSpace();var R=this.parseIdentifierIfPossible(),W=0;if(a!=="select"&&R.value==="offset"){if(!this.bumpIf(":"))return this.error(X.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,J(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(X.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,X.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),R=this.parseIdentifierIfPossible(),W=c.val}var Q=this.tryParsePluralOrSelectOptions(e,a,t,R);if(Q.err)return Q;var g=this.tryParseArgumentClose(o);if(g.err)return g;var S=J(o,this.clonePosition());return a==="select"?{val:{type:pe.select,value:i,options:Ps(Q.val),location:S},err:null}:{val:{type:pe.plural,value:i,options:Ps(Q.val),offset:W,pluralType:a==="plural"?"cardinal":"ordinal",location:S},err:null}}default:return this.error(X.INVALID_ARGUMENT_TYPE,J(s,l))}},r.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(X.EXPECT_ARGUMENT_CLOSING_BRACE,J(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},r.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(X.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,J(o,this.clonePosition()));this.bump();break}case 123:{e+=1,this.bump();break}case 125:{if(e>0)e-=1;else return{val:this.message.slice(t.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(t.offset,this.offset()),err:null}},r.prototype.parseNumberSkeletonFromString=function(e,t){var i=[];try{i=ou(e)}catch(o){return this.error(X.INVALID_NUMBER_SKELETON,t)}return{val:{type:Qt.number,tokens:i,location:t,parsedOptions:this.shouldParseSkeletons?lu(i):{}},err:null}},r.prototype.tryParsePluralOrSelectOptions=function(e,t,i,o){for(var n,s=!1,a=[],l=new Set,h=o.value,d=o.location;;){if(h.length===0){var c=this.clonePosition();if(t!=="select"&&this.bumpIf("=")){var u=this.tryParseDecimalInteger(X.EXPECT_PLURAL_ARGUMENT_SELECTOR,X.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;d=J(c,this.clonePosition()),h=this.message.slice(c.offset,this.offset())}else break}if(l.has(h))return this.error(t==="select"?X.DUPLICATE_SELECT_ARGUMENT_SELECTOR:X.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);h==="other"&&(s=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(t==="select"?X.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:X.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,J(this.clonePosition(),this.clonePosition()));var g=this.parseMessage(e+1,t,i);if(g.err)return g;var _=this.tryParseArgumentClose(m);if(_.err)return _;a.push([h,{value:g.val,location:J(m,this.clonePosition())}]),l.add(h),this.bumpSpace(),n=this.parseIdentifierIfPossible(),h=n.value,d=n.location}return a.length===0?this.error(t==="select"?X.EXPECT_SELECT_ARGUMENT_SELECTOR:X.EXPECT_PLURAL_ARGUMENT_SELECTOR,J(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(X.MISSING_OTHER_CLAUSE,J(this.clonePosition(),this.clonePosition())):{val:a,err:null}},r.prototype.tryParseDecimalInteger=function(e,t){var i=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var n=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)n=!0,s=s*10+(a-48),this.bump();else break}var l=J(o,this.clonePosition());return n?(s*=i,yu(s)?{val:s,err:null}:this.error(t,l)):this.error(e,l)},r.prototype.offset=function(){return this.position.offset},r.prototype.isEOF=function(){return this.offset()===this.message.length},r.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},r.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=kl(this.message,e);if(t===void 0)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},r.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},r.prototype.bump=function(){if(!this.isEOF()){var e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},r.prototype.bumpIf=function(e){if(As(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},r.prototype.bumpUntil=function(e){var t=this.offset(),i=this.message.indexOf(e,t);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},r.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},r.prototype.bumpSpace=function(){for(;!this.isEOF()&&Il(this.char());)this.bump()},r.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),i=this.message.charCodeAt(t+(e>=65536?2:1));return i!=null?i:null},r}();function Yo(r){return r>=97&&r<=122||r>=65&&r<=90}function Su(r){return Yo(r)||r===47}function Au(r){return r===45||r===46||r>=48&&r<=57||r===95||r>=97&&r<=122||r>=65&&r<=90||r==183||r>=192&&r<=214||r>=216&&r<=246||r>=248&&r<=893||r>=895&&r<=8191||r>=8204&&r<=8205||r>=8255&&r<=8256||r>=8304&&r<=8591||r>=11264&&r<=12271||r>=12289&&r<=55295||r>=63744&&r<=64975||r>=65008&&r<=65533||r>=65536&&r<=983039}function Il(r){return r>=9&&r<=13||r===32||r===133||r>=8206&&r<=8207||r===8232||r===8233}function Pu(r){return r>=33&&r<=35||r===36||r>=37&&r<=39||r===40||r===41||r===42||r===43||r===44||r===45||r>=46&&r<=47||r>=58&&r<=59||r>=60&&r<=62||r>=63&&r<=64||r===91||r===92||r===93||r===94||r===96||r===123||r===124||r===125||r===126||r===161||r>=162&&r<=165||r===166||r===167||r===169||r===171||r===172||r===174||r===176||r===177||r===182||r===187||r===191||r===215||r===247||r>=8208&&r<=8213||r>=8214&&r<=8215||r===8216||r===8217||r===8218||r>=8219&&r<=8220||r===8221||r===8222||r===8223||r>=8224&&r<=8231||r>=8240&&r<=8248||r===8249||r===8250||r>=8251&&r<=8254||r>=8257&&r<=8259||r===8260||r===8261||r===8262||r>=8263&&r<=8273||r===8274||r===8275||r>=8277&&r<=8286||r>=8592&&r<=8596||r>=8597&&r<=8601||r>=8602&&r<=8603||r>=8604&&r<=8607||r===8608||r>=8609&&r<=8610||r===8611||r>=8612&&r<=8613||r===8614||r>=8615&&r<=8621||r===8622||r>=8623&&r<=8653||r>=8654&&r<=8655||r>=8656&&r<=8657||r===8658||r===8659||r===8660||r>=8661&&r<=8691||r>=8692&&r<=8959||r>=8960&&r<=8967||r===8968||r===8969||r===8970||r===8971||r>=8972&&r<=8991||r>=8992&&r<=8993||r>=8994&&r<=9e3||r===9001||r===9002||r>=9003&&r<=9083||r===9084||r>=9085&&r<=9114||r>=9115&&r<=9139||r>=9140&&r<=9179||r>=9180&&r<=9185||r>=9186&&r<=9254||r>=9255&&r<=9279||r>=9280&&r<=9290||r>=9291&&r<=9311||r>=9472&&r<=9654||r===9655||r>=9656&&r<=9664||r===9665||r>=9666&&r<=9719||r>=9720&&r<=9727||r>=9728&&r<=9838||r===9839||r>=9840&&r<=10087||r===10088||r===10089||r===10090||r===10091||r===10092||r===10093||r===10094||r===10095||r===10096||r===10097||r===10098||r===10099||r===10100||r===10101||r>=10132&&r<=10175||r>=10176&&r<=10180||r===10181||r===10182||r>=10183&&r<=10213||r===10214||r===10215||r===10216||r===10217||r===10218||r===10219||r===10220||r===10221||r===10222||r===10223||r>=10224&&r<=10239||r>=10240&&r<=10495||r>=10496&&r<=10626||r===10627||r===10628||r===10629||r===10630||r===10631||r===10632||r===10633||r===10634||r===10635||r===10636||r===10637||r===10638||r===10639||r===10640||r===10641||r===10642||r===10643||r===10644||r===10645||r===10646||r===10647||r===10648||r>=10649&&r<=10711||r===10712||r===10713||r===10714||r===10715||r>=10716&&r<=10747||r===10748||r===10749||r>=10750&&r<=11007||r>=11008&&r<=11055||r>=11056&&r<=11076||r>=11077&&r<=11078||r>=11079&&r<=11084||r>=11085&&r<=11123||r>=11124&&r<=11125||r>=11126&&r<=11157||r===11158||r>=11159&&r<=11263||r>=11776&&r<=11777||r===11778||r===11779||r===11780||r===11781||r>=11782&&r<=11784||r===11785||r===11786||r===11787||r===11788||r===11789||r>=11790&&r<=11798||r===11799||r>=11800&&r<=11801||r===11802||r===11803||r===11804||r===11805||r>=11806&&r<=11807||r===11808||r===11809||r===11810||r===11811||r===11812||r===11813||r===11814||r===11815||r===11816||r===11817||r>=11818&&r<=11822||r===11823||r>=11824&&r<=11833||r>=11834&&r<=11835||r>=11836&&r<=11839||r===11840||r===11841||r===11842||r>=11843&&r<=11855||r>=11856&&r<=11857||r===11858||r>=11859&&r<=11903||r>=12289&&r<=12291||r===12296||r===12297||r===12298||r===12299||r===12300||r===12301||r===12302||r===12303||r===12304||r===12305||r>=12306&&r<=12307||r===12308||r===12309||r===12310||r===12311||r===12312||r===12313||r===12314||r===12315||r===12316||r===12317||r>=12318&&r<=12319||r===12320||r===12336||r===64830||r===64831||r>=65093&&r<=65094}function Xo(r){r.forEach(function(e){if(delete e.location,yl(e)||xl(e))for(var t in e.options)delete e.options[t].location,Xo(e.options[t].value);else vl(e)&&Cl(e.style)||(gl(e)||bl(e))&&jo(e.style)?delete e.style.location:wl(e)&&Xo(e.children)})}function ku(r,e){e===void 0&&(e={}),e=Si({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var t=new Eu(r,e).parse();if(t.err){var i=SyntaxError(X[t.err.kind]);throw i.location=t.err.location,i.originalMessage=t.err.message,i}return e!=null&&e.captureLocation||Xo(t.val),t.val}var er;(function(r){r.MISSING_VALUE="MISSING_VALUE",r.INVALID_VALUE="INVALID_VALUE",r.MISSING_INTL_API="MISSING_INTL_API"})(er||(er={}));var Ui=function(r){ji(e,r);function e(t,i,o){var n=r.call(this,t)||this;return n.code=i,n.originalMessage=o,n}return e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),Ts=function(r){ji(e,r);function e(t,i,o,n){return r.call(this,'Invalid values for "'.concat(t,'": "').concat(i,'". Options are "').concat(Object.keys(o).join('", "'),'"'),er.INVALID_VALUE,n)||this}return e}(Ui),Tu=function(r){ji(e,r);function e(t,i,o){return r.call(this,'Value for "'.concat(t,'" must be of type ').concat(i),er.INVALID_VALUE,o)||this}return e}(Ui),Iu=function(r){ji(e,r);function e(t,i){return r.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(i,'"'),er.MISSING_VALUE,i)||this}return e}(Ui),Me;(function(r){r[r.literal=0]="literal",r[r.object=1]="object"})(Me||(Me={}));function Du(r){return r.length<2?r:r.reduce(function(e,t){var i=e[e.length-1];return!i||i.type!==Me.literal||t.type!==Me.literal?e.push(t):i.value+=t.value,e},[])}function Ou(r){return typeof r=="function"}function yi(r,e,t,i,o,n,s){if(r.length===1&&ws(r[0]))return[{type:Me.literal,value:r[0].value}];for(var a=[],l=0,h=r;l<h.length;l++){var d=h[l];if(ws(d)){a.push({type:Me.literal,value:d.value});continue}if(eu(d)){typeof n=="number"&&a.push({type:Me.literal,value:t.getNumberFormat(e).format(n)});continue}var c=d.value;if(!(o&&c in o))throw new Iu(c,s);var u=o[c];if(Qc(d)){(!u||typeof u=="string"||typeof u=="number")&&(u=typeof u=="string"||typeof u=="number"?String(u):""),a.push({type:typeof u=="string"?Me.literal:Me.object,value:u});continue}if(gl(d)){var m=typeof d.style=="string"?i.date[d.style]:jo(d.style)?d.style.parsedOptions:void 0;a.push({type:Me.literal,value:t.getDateTimeFormat(e,m).format(u)});continue}if(bl(d)){var m=typeof d.style=="string"?i.time[d.style]:jo(d.style)?d.style.parsedOptions:i.time.medium;a.push({type:Me.literal,value:t.getDateTimeFormat(e,m).format(u)});continue}if(vl(d)){var m=typeof d.style=="string"?i.number[d.style]:Cl(d.style)?d.style.parsedOptions:void 0;m&&m.scale&&(u=u*(m.scale||1)),a.push({type:Me.literal,value:t.getNumberFormat(e,m).format(u)});continue}if(wl(d)){var g=d.children,_=d.value,y=o[_];if(!Ou(y))throw new Tu(_,"function",s);var D=yi(g,e,t,i,o,n),A=y(D.map(function(W){return W.value}));Array.isArray(A)||(A=[A]),a.push.apply(a,A.map(function(W){return{type:typeof W=="string"?Me.literal:Me.object,value:W}}))}if(yl(d)){var M=d.options[u]||d.options.other;if(!M)throw new Ts(d.value,u,Object.keys(d.options),s);a.push.apply(a,yi(M.value,e,t,i,o));continue}if(xl(d)){var M=d.options["=".concat(u)];if(!M){if(!Intl.PluralRules)throw new Ui(`Intl.PluralRules is not available in this environment.
16
+ `):"",this.name="UnsubscriptionError",this.errors=t}});function $o(r,e){if(r){var t=r.indexOf(e);0<=t&&r.splice(t,1)}}var Vi=function(){function r(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return r.prototype.unsubscribe=function(){var e,t,i,o,n;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=Ho(s),l=a.next();!l.done;l=a.next()){var h=l.value;h.remove(this)}}catch(_){e={error:_}}finally{try{l&&!l.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else s.remove(this);var d=this.initialTeardown;if(at(d))try{d()}catch(_){n=_ instanceof po?_.errors:[_]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var u=Ho(c),m=u.next();!m.done;m=u.next()){var g=m.value;try{ms(g)}catch(_){n=n!=null?n:[],_ instanceof po?n=Fo(Fo([],Ro(n)),Ro(_.errors)):n.push(_)}}}catch(_){i={error:_}}finally{try{m&&!m.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}}if(n)throw new po(n)}},r.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)ms(e);else{if(e instanceof r){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}},r.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},r.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},r.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&$o(t,e)},r.prototype.remove=function(e){var t=this._finalizers;t&&$o(t,e),e instanceof r&&e._removeParent(this)},r.EMPTY=function(){var e=new r;return e.closed=!0,e}(),r}(),hl=Vi.EMPTY;function dl(r){return r instanceof Vi||r&&"closed"in r&&at(r.remove)&&at(r.add)&&at(r.unsubscribe)}function ms(r){at(r)?r():r.unsubscribe()}var _c={Promise:void 0},vc={setTimeout:function(r,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return setTimeout.apply(void 0,Fo([r,e],Ro(t)))},clearTimeout:function(r){return clearTimeout(r)},delegate:void 0};function gc(r){vc.setTimeout(function(){throw r})}function fs(){}function bi(r){r()}var cl=function(r){jr(e,r);function e(t){var i=r.call(this)||this;return i.isStopped=!1,t?(i.destination=t,dl(t)&&t.add(i)):i.destination=xc,i}return e.create=function(t,i,o){return new Vo(t,i,o)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(Vi),bc=function(){function r(e){this.partialObserver=e}return r.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(i){ai(i)}},r.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(i){ai(i)}else ai(e)},r.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){ai(t)}},r}(),Vo=function(r){jr(e,r);function e(t,i,o){var n=r.call(this)||this,s;return at(t)||!t?s={next:t!=null?t:void 0,error:i!=null?i:void 0,complete:o!=null?o:void 0}:s=t,n.destination=new bc(s),n}return e}(cl);function ai(r){gc(r)}function yc(r){throw r}var xc={closed:!0,next:fs,error:yc,complete:fs},wc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Cc(r){return r}function Ec(r){return r.length===0?Cc:r.length===1?r[0]:function(t){return r.reduce(function(i,o){return o(i)},t)}}var _s=function(){function r(e){e&&(this._subscribe=e)}return r.prototype.lift=function(e){var t=new r;return t.source=this,t.operator=e,t},r.prototype.subscribe=function(e,t,i){var o=this,n=Ac(e)?e:new Vo(e,t,i);return bi(function(){var s=o,a=s.operator,l=s.source;n.add(a?a.call(n,l):l?o._subscribe(n):o._trySubscribe(n))}),n},r.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},r.prototype.forEach=function(e,t){var i=this;return t=vs(t),new t(function(o,n){var s=new Vo({next:function(a){try{e(a)}catch(l){n(l),s.unsubscribe()}},error:n,complete:o});i.subscribe(s)})},r.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},r.prototype[wc]=function(){return this},r.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ec(e)(this)},r.prototype.toPromise=function(e){var t=this;return e=vs(e),new e(function(i,o){var n;t.subscribe(function(s){return n=s},function(s){return o(s)},function(){return i(n)})})},r.create=function(e){return new r(e)},r}();function vs(r){var e;return(e=r!=null?r:_c.Promise)!==null&&e!==void 0?e:Promise}function Sc(r){return r&&at(r.next)&&at(r.error)&&at(r.complete)}function Ac(r){return r&&r instanceof cl||Sc(r)&&dl(r)}var Pc=ll(function(r){return function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ul=function(r){jr(e,r);function e(){var t=r.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return e.prototype.lift=function(t){var i=new gs(this,this);return i.operator=t,i},e.prototype._throwIfClosed=function(){if(this.closed)throw new Pc},e.prototype.next=function(t){var i=this;bi(function(){var o,n;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var s=Ho(i.currentObservers),a=s.next();!a.done;a=s.next()){var l=a.value;l.next(t)}}catch(h){o={error:h}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}}})},e.prototype.error=function(t){var i=this;bi(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=t;for(var o=i.observers;o.length;)o.shift().error(t)}})},e.prototype.complete=function(){var t=this;bi(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var i=t.observers;i.length;)i.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(t){return this._throwIfClosed(),r.prototype._trySubscribe.call(this,t)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var i=this,o=this,n=o.hasError,s=o.isStopped,a=o.observers;return n||s?hl:(this.currentObservers=null,a.push(t),new Vi(function(){i.currentObservers=null,$o(a,t)}))},e.prototype._checkFinalizedStatuses=function(t){var i=this,o=i.hasError,n=i.thrownError,s=i.isStopped;o?t.error(n):s&&t.complete()},e.prototype.asObservable=function(){var t=new _s;return t.source=this,t},e.create=function(t,i){return new gs(t,i)},e}(_s),gs=function(r){jr(e,r);function e(t,i){var o=r.call(this)||this;return o.destination=t,o.source=i,o}return e.prototype.next=function(t){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.next)===null||o===void 0||o.call(i,t)},e.prototype.error=function(t){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.error)===null||o===void 0||o.call(i,t)},e.prototype.complete=function(){var t,i;(i=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||i===void 0||i.call(t)},e.prototype._subscribe=function(t){var i,o;return(o=(i=this.source)===null||i===void 0?void 0:i.subscribe(t))!==null&&o!==void 0?o:hl},e}(ul),pl={now:function(){return(pl.delegate||Date).now()},delegate:void 0},kc=function(r){jr(e,r);function e(t,i,o){t===void 0&&(t=1/0),i===void 0&&(i=1/0),o===void 0&&(o=pl);var n=r.call(this)||this;return n._bufferSize=t,n._windowTime=i,n._timestampProvider=o,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=i===1/0,n._bufferSize=Math.max(1,t),n._windowTime=Math.max(1,i),n}return e.prototype.next=function(t){var i=this,o=i.isStopped,n=i._buffer,s=i._infiniteTimeWindow,a=i._timestampProvider,l=i._windowTime;o||(n.push(t),!s&&n.push(a.now()+l)),this._trimBuffer(),r.prototype.next.call(this,t)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(t),o=this,n=o._infiniteTimeWindow,s=o._buffer,a=s.slice(),l=0;l<a.length&&!t.closed;l+=n?1:2)t.next(a[l]);return this._checkFinalizedStatuses(t),i},e.prototype._trimBuffer=function(){var t=this,i=t._bufferSize,o=t._timestampProvider,n=t._buffer,s=t._infiniteTimeWindow,a=(s?1:2)*i;if(i<1/0&&a<n.length&&n.splice(0,n.length-a),!s){for(var l=o.now(),h=0,d=1;d<n.length&&n[d]<=l;d+=2)h=d;h&&n.splice(0,h+1)}},e}(ul);const bs=[],ys={},Tc=(r,e=0)=>{if(bs.indexOf(r)==-1){const t=new kc(e);ys[r]=t,bs.push(r)}return ys[r]},Vt=[];function Ic(r,e){return{subscribe:Wi(r,e).subscribe}}function Wi(r,e=De){let t;const i=new Set;function o(a){if(il(r,a)&&(r=a,t)){const l=!Vt.length;for(const h of i)h[1](),Vt.push(h,r);if(l){for(let h=0;h<Vt.length;h+=2)Vt[h][0](Vt[h+1]);Vt.length=0}}}function n(a){o(a(r))}function s(a,l=De){const h=[a,l];return i.add(h),i.size===1&&(t=e(o,n)||De),a(r),()=>{i.delete(h),i.size===0&&t&&(t(),t=null)}}return{set:o,update:n,subscribe:s}}function ar(r,e,t){const i=!Array.isArray(r),o=i?[r]:r;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const n=e.length<2;return Ic(t,(s,a)=>{let l=!1;const h=[];let d=0,c=De;const u=()=>{if(d)return;c();const g=e(i?h[0]:h,s,a);n?s(g):c=En(g)?g:De},m=o.map((g,_)=>ol(g,y=>{h[_]=y,d&=~(1<<_),l&&u()},()=>{d|=1<<_}));return l=!0,u(),function(){sr(m),c(),l=!1}})}var ml=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Sn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Dc=function(e){return Oc(e)&&!Mc(e)};function Oc(r){return!!r&&typeof r=="object"}function Mc(r){var e=Object.prototype.toString.call(r);return e==="[object RegExp]"||e==="[object Date]"||Bc(r)}var Nc=typeof Symbol=="function"&&Symbol.for,zc=Nc?Symbol.for("react.element"):60103;function Bc(r){return r.$$typeof===zc}function Lc(r){return Array.isArray(r)?[]:{}}function Ir(r,e){return e.clone!==!1&&e.isMergeableObject(r)?Jt(Lc(r),r,e):r}function Hc(r,e,t){return r.concat(e).map(function(i){return Ir(i,t)})}function Rc(r,e){if(!e.customMerge)return Jt;var t=e.customMerge(r);return typeof t=="function"?t:Jt}function Fc(r){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(r).filter(function(e){return Object.propertyIsEnumerable.call(r,e)}):[]}function xs(r){return Object.keys(r).concat(Fc(r))}function fl(r,e){try{return e in r}catch(t){return!1}}function $c(r,e){return fl(r,e)&&!(Object.hasOwnProperty.call(r,e)&&Object.propertyIsEnumerable.call(r,e))}function Vc(r,e,t){var i={};return t.isMergeableObject(r)&&xs(r).forEach(function(o){i[o]=Ir(r[o],t)}),xs(e).forEach(function(o){$c(r,o)||(fl(r,o)&&t.isMergeableObject(e[o])?i[o]=Rc(o,t)(r[o],e[o],t):i[o]=Ir(e[o],t))}),i}function Jt(r,e,t){t=t||{},t.arrayMerge=t.arrayMerge||Hc,t.isMergeableObject=t.isMergeableObject||Dc,t.cloneUnlessOtherwiseSpecified=Ir;var i=Array.isArray(e),o=Array.isArray(r),n=i===o;return n?i?t.arrayMerge(r,e,t):Vc(r,e,t):Ir(e,t)}Jt.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(i,o){return Jt(i,o,t)},{})};var Wc=Jt,jc=Wc;const Uc=Sn(jc);var Wo=function(r,e){return Wo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])},Wo(r,e)};function ji(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Wo(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Qe=function(){return Qe=Object.assign||function(e){for(var t,i=1,o=arguments.length;i<o;i++){t=arguments[i];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Qe.apply(this,arguments)};function Gc(r,e){var t={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&e.indexOf(i)<0&&(t[i]=r[i]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(r);o<i.length;o++)e.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(r,i[o])&&(t[i[o]]=r[i[o]]);return t}function mo(r,e,t){if(t||arguments.length===2)for(var i=0,o=e.length,n;i<o;i++)(n||!(i in e))&&(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return r.concat(n||Array.prototype.slice.call(e))}function fo(r,e){var t=e&&e.cache?e.cache:Qc,i=e&&e.serializer?e.serializer:Zc,o=e&&e.strategy?e.strategy:Xc;return o(r,{cache:t,serializer:i})}function qc(r){return r==null||typeof r=="number"||typeof r=="boolean"}function Yc(r,e,t,i){var o=qc(i)?i:t(i),n=e.get(o);return typeof n=="undefined"&&(n=r.call(this,i),e.set(o,n)),n}function _l(r,e,t){var i=Array.prototype.slice.call(arguments,3),o=t(i),n=e.get(o);return typeof n=="undefined"&&(n=r.apply(this,i),e.set(o,n)),n}function vl(r,e,t,i,o){return t.bind(e,r,i,o)}function Xc(r,e){var t=r.length===1?Yc:_l;return vl(r,this,t,e.cache.create(),e.serializer)}function Kc(r,e){return vl(r,this,_l,e.cache.create(),e.serializer)}var Zc=function(){return JSON.stringify(arguments)},Jc=function(){function r(){this.cache=Object.create(null)}return r.prototype.get=function(e){return this.cache[e]},r.prototype.set=function(e,t){this.cache[e]=t},r}(),Qc={create:function(){return new Jc}},_o={variadic:Kc},Si=function(){return Si=Object.assign||function(e){for(var t,i=1,o=arguments.length;i<o;i++){t=arguments[i];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Si.apply(this,arguments)};var X;(function(r){r[r.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",r[r.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",r[r.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",r[r.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",r[r.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",r[r.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",r[r.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",r[r.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",r[r.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",r[r.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",r[r.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",r[r.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",r[r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",r[r.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",r[r.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",r[r.INVALID_TAG=23]="INVALID_TAG",r[r.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",r[r.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",r[r.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(X||(X={}));var pe;(function(r){r[r.literal=0]="literal",r[r.argument=1]="argument",r[r.number=2]="number",r[r.date=3]="date",r[r.time=4]="time",r[r.select=5]="select",r[r.plural=6]="plural",r[r.pound=7]="pound",r[r.tag=8]="tag"})(pe||(pe={}));var Qt;(function(r){r[r.number=0]="number",r[r.dateTime=1]="dateTime"})(Qt||(Qt={}));function ws(r){return r.type===pe.literal}function eu(r){return r.type===pe.argument}function gl(r){return r.type===pe.number}function bl(r){return r.type===pe.date}function yl(r){return r.type===pe.time}function xl(r){return r.type===pe.select}function wl(r){return r.type===pe.plural}function tu(r){return r.type===pe.pound}function Cl(r){return r.type===pe.tag}function El(r){return!!(r&&typeof r=="object"&&r.type===Qt.number)}function jo(r){return!!(r&&typeof r=="object"&&r.type===Qt.dateTime)}var Sl=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ru=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function iu(r){var e={};return r.replace(ru,function(t){var i=t.length;switch(t[0]){case"G":e.era=i===4?"long":i===5?"narrow":"short";break;case"y":e.year=i===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=i===4?"long":i===5?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][i-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][i-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][i-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][i-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":e.minute=["numeric","2-digit"][i-1];break;case"s":e.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=i<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),e}var _e=function(){return _e=Object.assign||function(e){for(var t,i=1,o=arguments.length;i<o;i++){t=arguments[i];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},_e.apply(this,arguments)};var ou=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function nu(r){if(r.length===0)throw new Error("Number skeleton cannot be empty");for(var e=r.split(ou).filter(function(u){return u.length>0}),t=[],i=0,o=e;i<o.length;i++){var n=o[i],s=n.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],l=s.slice(1),h=0,d=l;h<d.length;h++){var c=d[h];if(c.length===0)throw new Error("Invalid number skeleton")}t.push({stem:a,options:l})}return t}function su(r){return r.replace(/^(.*?)-/,"")}var Cs=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Al=/^(@+)?(\+|#+)?[rs]?$/g,au=/(\*)(0+)|(#+)(0+)|(0+)/g,Pl=/^(0+)$/;function Es(r){var e={};return r[r.length-1]==="r"?e.roundingPriority="morePrecision":r[r.length-1]==="s"&&(e.roundingPriority="lessPrecision"),r.replace(Al,function(t,i,o){return typeof o!="string"?(e.minimumSignificantDigits=i.length,e.maximumSignificantDigits=i.length):o==="+"?e.minimumSignificantDigits=i.length:i[0]==="#"?e.maximumSignificantDigits=i.length:(e.minimumSignificantDigits=i.length,e.maximumSignificantDigits=i.length+(typeof o=="string"?o.length:0)),""}),e}function kl(r){switch(r){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function lu(r){var e;if(r[0]==="E"&&r[1]==="E"?(e={notation:"engineering"},r=r.slice(2)):r[0]==="E"&&(e={notation:"scientific"},r=r.slice(1)),e){var t=r.slice(0,2);if(t==="+!"?(e.signDisplay="always",r=r.slice(2)):t==="+?"&&(e.signDisplay="exceptZero",r=r.slice(2)),!Pl.test(r))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=r.length}return e}function Ss(r){var e={},t=kl(r);return t||e}function hu(r){for(var e={},t=0,i=r;t<i.length;t++){var o=i[t];switch(o.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=o.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=su(o.options[0]);continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=_e(_e(_e({},e),{notation:"scientific"}),o.options.reduce(function(l,h){return _e(_e({},l),Ss(h))},{}));continue;case"engineering":e=_e(_e(_e({},e),{notation:"engineering"}),o.options.reduce(function(l,h){return _e(_e({},l),Ss(h))},{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":e.roundingMode="floor";continue;case"rounding-mode-ceiling":e.roundingMode="ceil";continue;case"rounding-mode-down":e.roundingMode="trunc";continue;case"rounding-mode-up":e.roundingMode="expand";continue;case"rounding-mode-half-even":e.roundingMode="halfEven";continue;case"rounding-mode-half-down":e.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":e.roundingMode="halfExpand";continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(au,function(l,h,d,c,u,m){if(h)e.minimumIntegerDigits=d.length;else{if(c&&u)throw new Error("We currently do not support maximum integer digits");if(m)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Pl.test(o.stem)){e.minimumIntegerDigits=o.stem.length;continue}if(Cs.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Cs,function(l,h,d,c,u,m){return d==="*"?e.minimumFractionDigits=h.length:c&&c[0]==="#"?e.maximumFractionDigits=c.length:u&&m?(e.minimumFractionDigits=u.length,e.maximumFractionDigits=u.length+m.length):(e.minimumFractionDigits=h.length,e.maximumFractionDigits=h.length),""});var n=o.options[0];n==="w"?e=_e(_e({},e),{trailingZeroDisplay:"stripIfInteger"}):n&&(e=_e(_e({},e),Es(n)));continue}if(Al.test(o.stem)){e=_e(_e({},e),Es(o.stem));continue}var s=kl(o.stem);s&&(e=_e(_e({},e),s));var a=lu(o.stem);a&&(e=_e(_e({},e),a))}return e}var li={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function du(r,e){for(var t="",i=0;i<r.length;i++){var o=r.charAt(i);if(o==="j"){for(var n=0;i+1<r.length&&r.charAt(i+1)===o;)n++,i++;var s=1+(n&1),a=n<2?1:3+(n>>1),l="a",h=cu(e);for((h=="H"||h=="k")&&(a=0);a-- >0;)t+=l;for(;s-- >0;)t=h+t}else o==="J"?t+="H":t+=o}return t}function cu(r){var e=r.hourCycle;if(e===void 0&&r.hourCycles&&r.hourCycles.length&&(e=r.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var t=r.language,i;t!=="root"&&(i=r.maximize().region);var o=li[i||""]||li[t||""]||li["".concat(t,"-001")]||li["001"];return o[0]}var vo,uu=new RegExp("^".concat(Sl.source,"*")),pu=new RegExp("".concat(Sl.source,"*$"));function J(r,e){return{start:r,end:e}}var mu=!!String.prototype.startsWith&&"_a".startsWith("a",1),fu=!!String.fromCodePoint,_u=!!Object.fromEntries,vu=!!String.prototype.codePointAt,gu=!!String.prototype.trimStart,bu=!!String.prototype.trimEnd,yu=!!Number.isSafeInteger,xu=yu?Number.isSafeInteger:function(r){return typeof r=="number"&&isFinite(r)&&Math.floor(r)===r&&Math.abs(r)<=9007199254740991},Uo=!0;try{var wu=Il("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Uo=((vo=wu.exec("a"))===null||vo===void 0?void 0:vo[0])==="a"}catch(r){Uo=!1}var As=mu?function(e,t,i){return e.startsWith(t,i)}:function(e,t,i){return e.slice(i,i+t.length)===t},Go=fu?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var i="",o=e.length,n=0,s;o>n;){if(s=e[n++],s>1114111)throw RangeError(s+" is not a valid code point");i+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return i},Ps=_u?Object.fromEntries:function(e){for(var t={},i=0,o=e;i<o.length;i++){var n=o[i],s=n[0],a=n[1];t[s]=a}return t},Tl=vu?function(e,t){return e.codePointAt(t)}:function(e,t){var i=e.length;if(!(t<0||t>=i)){var o=e.charCodeAt(t),n;return o<55296||o>56319||t+1===i||(n=e.charCodeAt(t+1))<56320||n>57343?o:(o-55296<<10)+(n-56320)+65536}},Cu=gu?function(e){return e.trimStart()}:function(e){return e.replace(uu,"")},Eu=bu?function(e){return e.trimEnd()}:function(e){return e.replace(pu,"")};function Il(r,e){return new RegExp(r,e)}var qo;if(Uo){var ks=Il("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");qo=function(e,t){var i;ks.lastIndex=t;var o=ks.exec(e);return(i=o[1])!==null&&i!==void 0?i:""}}else qo=function(e,t){for(var i=[];;){var o=Tl(e,t);if(o===void 0||Dl(o)||ku(o))break;i.push(o),t+=o>=65536?2:1}return Go.apply(void 0,i)};var Su=function(){function r(e,t){t===void 0&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return r.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},r.prototype.parseMessage=function(e,t,i){for(var o=[];!this.isEOF();){var n=this.char();if(n===123){var s=this.parseArgument(e,i);if(s.err)return s;o.push(s.val)}else{if(n===125&&e>0)break;if(n===35&&(t==="plural"||t==="selectordinal")){var a=this.clonePosition();this.bump(),o.push({type:pe.pound,location:J(a,this.clonePosition())})}else if(n===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(X.UNMATCHED_CLOSING_TAG,J(this.clonePosition(),this.clonePosition()))}else if(n===60&&!this.ignoreTag&&Yo(this.peek()||0)){var s=this.parseTag(e,t);if(s.err)return s;o.push(s.val)}else{var s=this.parseLiteral(e,t);if(s.err)return s;o.push(s.val)}}}return{val:o,err:null}},r.prototype.parseTag=function(e,t){var i=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:pe.literal,value:"<".concat(o,"/>"),location:J(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var n=this.parseMessage(e+1,t,!0);if(n.err)return n;var s=n.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Yo(this.char()))return this.error(X.INVALID_TAG,J(a,this.clonePosition()));var l=this.clonePosition(),h=this.parseTagName();return o!==h?this.error(X.UNMATCHED_CLOSING_TAG,J(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:pe.tag,value:o,children:s,location:J(i,this.clonePosition())},err:null}:this.error(X.INVALID_TAG,J(a,this.clonePosition())))}else return this.error(X.UNCLOSED_TAG,J(i,this.clonePosition()))}else return this.error(X.INVALID_TAG,J(i,this.clonePosition()))},r.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&Pu(this.char());)this.bump();return this.message.slice(e,this.offset())},r.prototype.parseLiteral=function(e,t){for(var i=this.clonePosition(),o="";;){var n=this.tryParseQuote(t);if(n){o+=n;continue}var s=this.tryParseUnquoted(e,t);if(s){o+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){o+=a;continue}break}var l=J(i,this.clonePosition());return{val:{type:pe.literal,value:o,location:l},err:null}},r.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Au(this.peek()||0))?(this.bump(),"<"):null},r.prototype.tryParseQuote=function(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(e==="plural"||e==="selectordinal")break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(i===39)if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}else t.push(i);this.bump()}return Go.apply(void 0,t)},r.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(t==="plural"||t==="selectordinal")||i===125&&e>0?null:(this.bump(),Go(i))},r.prototype.parseArgument=function(e,t){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(X.EXPECT_ARGUMENT_CLOSING_BRACE,J(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(X.EMPTY_ARGUMENT,J(i,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(X.MALFORMED_ARGUMENT,J(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(X.EXPECT_ARGUMENT_CLOSING_BRACE,J(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:pe.argument,value:o,location:J(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(X.EXPECT_ARGUMENT_CLOSING_BRACE,J(i,this.clonePosition())):this.parseArgumentOptions(e,t,o,i);default:return this.error(X.MALFORMED_ARGUMENT,J(i,this.clonePosition()))}},r.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),i=qo(this.message,t),o=t+i.length;this.bumpTo(o);var n=this.clonePosition(),s=J(e,n);return{value:i,location:s}},r.prototype.parseArgumentOptions=function(e,t,i,o){var n,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(X.EXPECT_ARGUMENT_TYPE,J(s,l));case"number":case"date":case"time":{this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;var u=Eu(c.val);if(u.length===0)return this.error(X.EXPECT_ARGUMENT_STYLE,J(this.clonePosition(),this.clonePosition()));var m=J(d,this.clonePosition());h={style:u,styleLocation:m}}var g=this.tryParseArgumentClose(o);if(g.err)return g;var _=J(o,this.clonePosition());if(h&&As(h==null?void 0:h.style,"::",0)){var y=Cu(h.style.slice(2));if(a==="number"){var c=this.parseNumberSkeletonFromString(y,h.styleLocation);return c.err?c:{val:{type:pe.number,value:i,location:_,style:c.val},err:null}}else{if(y.length===0)return this.error(X.EXPECT_DATE_TIME_SKELETON,_);var D=y;this.locale&&(D=du(y,this.locale));var u={type:Qt.dateTime,pattern:D,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?iu(D):{}},A=a==="date"?pe.date:pe.time;return{val:{type:A,value:i,location:_,style:u},err:null}}}return{val:{type:a==="number"?pe.number:a==="date"?pe.date:pe.time,value:i,location:_,style:(n=h==null?void 0:h.style)!==null&&n!==void 0?n:null},err:null}}case"plural":case"selectordinal":case"select":{var M=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(X.EXPECT_SELECT_ARGUMENT_OPTIONS,J(M,Si({},M)));this.bumpSpace();var R=this.parseIdentifierIfPossible(),W=0;if(a!=="select"&&R.value==="offset"){if(!this.bumpIf(":"))return this.error(X.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,J(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(X.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,X.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),R=this.parseIdentifierIfPossible(),W=c.val}var Q=this.tryParsePluralOrSelectOptions(e,a,t,R);if(Q.err)return Q;var g=this.tryParseArgumentClose(o);if(g.err)return g;var S=J(o,this.clonePosition());return a==="select"?{val:{type:pe.select,value:i,options:Ps(Q.val),location:S},err:null}:{val:{type:pe.plural,value:i,options:Ps(Q.val),offset:W,pluralType:a==="plural"?"cardinal":"ordinal",location:S},err:null}}default:return this.error(X.INVALID_ARGUMENT_TYPE,J(s,l))}},r.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(X.EXPECT_ARGUMENT_CLOSING_BRACE,J(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},r.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(X.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,J(o,this.clonePosition()));this.bump();break}case 123:{e+=1,this.bump();break}case 125:{if(e>0)e-=1;else return{val:this.message.slice(t.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(t.offset,this.offset()),err:null}},r.prototype.parseNumberSkeletonFromString=function(e,t){var i=[];try{i=nu(e)}catch(o){return this.error(X.INVALID_NUMBER_SKELETON,t)}return{val:{type:Qt.number,tokens:i,location:t,parsedOptions:this.shouldParseSkeletons?hu(i):{}},err:null}},r.prototype.tryParsePluralOrSelectOptions=function(e,t,i,o){for(var n,s=!1,a=[],l=new Set,h=o.value,d=o.location;;){if(h.length===0){var c=this.clonePosition();if(t!=="select"&&this.bumpIf("=")){var u=this.tryParseDecimalInteger(X.EXPECT_PLURAL_ARGUMENT_SELECTOR,X.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;d=J(c,this.clonePosition()),h=this.message.slice(c.offset,this.offset())}else break}if(l.has(h))return this.error(t==="select"?X.DUPLICATE_SELECT_ARGUMENT_SELECTOR:X.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);h==="other"&&(s=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(t==="select"?X.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:X.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,J(this.clonePosition(),this.clonePosition()));var g=this.parseMessage(e+1,t,i);if(g.err)return g;var _=this.tryParseArgumentClose(m);if(_.err)return _;a.push([h,{value:g.val,location:J(m,this.clonePosition())}]),l.add(h),this.bumpSpace(),n=this.parseIdentifierIfPossible(),h=n.value,d=n.location}return a.length===0?this.error(t==="select"?X.EXPECT_SELECT_ARGUMENT_SELECTOR:X.EXPECT_PLURAL_ARGUMENT_SELECTOR,J(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(X.MISSING_OTHER_CLAUSE,J(this.clonePosition(),this.clonePosition())):{val:a,err:null}},r.prototype.tryParseDecimalInteger=function(e,t){var i=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var n=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)n=!0,s=s*10+(a-48),this.bump();else break}var l=J(o,this.clonePosition());return n?(s*=i,xu(s)?{val:s,err:null}:this.error(t,l)):this.error(e,l)},r.prototype.offset=function(){return this.position.offset},r.prototype.isEOF=function(){return this.offset()===this.message.length},r.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},r.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Tl(this.message,e);if(t===void 0)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},r.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},r.prototype.bump=function(){if(!this.isEOF()){var e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},r.prototype.bumpIf=function(e){if(As(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},r.prototype.bumpUntil=function(e){var t=this.offset(),i=this.message.indexOf(e,t);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},r.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},r.prototype.bumpSpace=function(){for(;!this.isEOF()&&Dl(this.char());)this.bump()},r.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),i=this.message.charCodeAt(t+(e>=65536?2:1));return i!=null?i:null},r}();function Yo(r){return r>=97&&r<=122||r>=65&&r<=90}function Au(r){return Yo(r)||r===47}function Pu(r){return r===45||r===46||r>=48&&r<=57||r===95||r>=97&&r<=122||r>=65&&r<=90||r==183||r>=192&&r<=214||r>=216&&r<=246||r>=248&&r<=893||r>=895&&r<=8191||r>=8204&&r<=8205||r>=8255&&r<=8256||r>=8304&&r<=8591||r>=11264&&r<=12271||r>=12289&&r<=55295||r>=63744&&r<=64975||r>=65008&&r<=65533||r>=65536&&r<=983039}function Dl(r){return r>=9&&r<=13||r===32||r===133||r>=8206&&r<=8207||r===8232||r===8233}function ku(r){return r>=33&&r<=35||r===36||r>=37&&r<=39||r===40||r===41||r===42||r===43||r===44||r===45||r>=46&&r<=47||r>=58&&r<=59||r>=60&&r<=62||r>=63&&r<=64||r===91||r===92||r===93||r===94||r===96||r===123||r===124||r===125||r===126||r===161||r>=162&&r<=165||r===166||r===167||r===169||r===171||r===172||r===174||r===176||r===177||r===182||r===187||r===191||r===215||r===247||r>=8208&&r<=8213||r>=8214&&r<=8215||r===8216||r===8217||r===8218||r>=8219&&r<=8220||r===8221||r===8222||r===8223||r>=8224&&r<=8231||r>=8240&&r<=8248||r===8249||r===8250||r>=8251&&r<=8254||r>=8257&&r<=8259||r===8260||r===8261||r===8262||r>=8263&&r<=8273||r===8274||r===8275||r>=8277&&r<=8286||r>=8592&&r<=8596||r>=8597&&r<=8601||r>=8602&&r<=8603||r>=8604&&r<=8607||r===8608||r>=8609&&r<=8610||r===8611||r>=8612&&r<=8613||r===8614||r>=8615&&r<=8621||r===8622||r>=8623&&r<=8653||r>=8654&&r<=8655||r>=8656&&r<=8657||r===8658||r===8659||r===8660||r>=8661&&r<=8691||r>=8692&&r<=8959||r>=8960&&r<=8967||r===8968||r===8969||r===8970||r===8971||r>=8972&&r<=8991||r>=8992&&r<=8993||r>=8994&&r<=9e3||r===9001||r===9002||r>=9003&&r<=9083||r===9084||r>=9085&&r<=9114||r>=9115&&r<=9139||r>=9140&&r<=9179||r>=9180&&r<=9185||r>=9186&&r<=9254||r>=9255&&r<=9279||r>=9280&&r<=9290||r>=9291&&r<=9311||r>=9472&&r<=9654||r===9655||r>=9656&&r<=9664||r===9665||r>=9666&&r<=9719||r>=9720&&r<=9727||r>=9728&&r<=9838||r===9839||r>=9840&&r<=10087||r===10088||r===10089||r===10090||r===10091||r===10092||r===10093||r===10094||r===10095||r===10096||r===10097||r===10098||r===10099||r===10100||r===10101||r>=10132&&r<=10175||r>=10176&&r<=10180||r===10181||r===10182||r>=10183&&r<=10213||r===10214||r===10215||r===10216||r===10217||r===10218||r===10219||r===10220||r===10221||r===10222||r===10223||r>=10224&&r<=10239||r>=10240&&r<=10495||r>=10496&&r<=10626||r===10627||r===10628||r===10629||r===10630||r===10631||r===10632||r===10633||r===10634||r===10635||r===10636||r===10637||r===10638||r===10639||r===10640||r===10641||r===10642||r===10643||r===10644||r===10645||r===10646||r===10647||r===10648||r>=10649&&r<=10711||r===10712||r===10713||r===10714||r===10715||r>=10716&&r<=10747||r===10748||r===10749||r>=10750&&r<=11007||r>=11008&&r<=11055||r>=11056&&r<=11076||r>=11077&&r<=11078||r>=11079&&r<=11084||r>=11085&&r<=11123||r>=11124&&r<=11125||r>=11126&&r<=11157||r===11158||r>=11159&&r<=11263||r>=11776&&r<=11777||r===11778||r===11779||r===11780||r===11781||r>=11782&&r<=11784||r===11785||r===11786||r===11787||r===11788||r===11789||r>=11790&&r<=11798||r===11799||r>=11800&&r<=11801||r===11802||r===11803||r===11804||r===11805||r>=11806&&r<=11807||r===11808||r===11809||r===11810||r===11811||r===11812||r===11813||r===11814||r===11815||r===11816||r===11817||r>=11818&&r<=11822||r===11823||r>=11824&&r<=11833||r>=11834&&r<=11835||r>=11836&&r<=11839||r===11840||r===11841||r===11842||r>=11843&&r<=11855||r>=11856&&r<=11857||r===11858||r>=11859&&r<=11903||r>=12289&&r<=12291||r===12296||r===12297||r===12298||r===12299||r===12300||r===12301||r===12302||r===12303||r===12304||r===12305||r>=12306&&r<=12307||r===12308||r===12309||r===12310||r===12311||r===12312||r===12313||r===12314||r===12315||r===12316||r===12317||r>=12318&&r<=12319||r===12320||r===12336||r===64830||r===64831||r>=65093&&r<=65094}function Xo(r){r.forEach(function(e){if(delete e.location,xl(e)||wl(e))for(var t in e.options)delete e.options[t].location,Xo(e.options[t].value);else gl(e)&&El(e.style)||(bl(e)||yl(e))&&jo(e.style)?delete e.style.location:Cl(e)&&Xo(e.children)})}function Tu(r,e){e===void 0&&(e={}),e=Si({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var t=new Su(r,e).parse();if(t.err){var i=SyntaxError(X[t.err.kind]);throw i.location=t.err.location,i.originalMessage=t.err.message,i}return e!=null&&e.captureLocation||Xo(t.val),t.val}var er;(function(r){r.MISSING_VALUE="MISSING_VALUE",r.INVALID_VALUE="INVALID_VALUE",r.MISSING_INTL_API="MISSING_INTL_API"})(er||(er={}));var Ui=function(r){ji(e,r);function e(t,i,o){var n=r.call(this,t)||this;return n.code=i,n.originalMessage=o,n}return e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),Ts=function(r){ji(e,r);function e(t,i,o,n){return r.call(this,'Invalid values for "'.concat(t,'": "').concat(i,'". Options are "').concat(Object.keys(o).join('", "'),'"'),er.INVALID_VALUE,n)||this}return e}(Ui),Iu=function(r){ji(e,r);function e(t,i,o){return r.call(this,'Value for "'.concat(t,'" must be of type ').concat(i),er.INVALID_VALUE,o)||this}return e}(Ui),Du=function(r){ji(e,r);function e(t,i){return r.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(i,'"'),er.MISSING_VALUE,i)||this}return e}(Ui),Me;(function(r){r[r.literal=0]="literal",r[r.object=1]="object"})(Me||(Me={}));function Ou(r){return r.length<2?r:r.reduce(function(e,t){var i=e[e.length-1];return!i||i.type!==Me.literal||t.type!==Me.literal?e.push(t):i.value+=t.value,e},[])}function Mu(r){return typeof r=="function"}function yi(r,e,t,i,o,n,s){if(r.length===1&&ws(r[0]))return[{type:Me.literal,value:r[0].value}];for(var a=[],l=0,h=r;l<h.length;l++){var d=h[l];if(ws(d)){a.push({type:Me.literal,value:d.value});continue}if(tu(d)){typeof n=="number"&&a.push({type:Me.literal,value:t.getNumberFormat(e).format(n)});continue}var c=d.value;if(!(o&&c in o))throw new Du(c,s);var u=o[c];if(eu(d)){(!u||typeof u=="string"||typeof u=="number")&&(u=typeof u=="string"||typeof u=="number"?String(u):""),a.push({type:typeof u=="string"?Me.literal:Me.object,value:u});continue}if(bl(d)){var m=typeof d.style=="string"?i.date[d.style]:jo(d.style)?d.style.parsedOptions:void 0;a.push({type:Me.literal,value:t.getDateTimeFormat(e,m).format(u)});continue}if(yl(d)){var m=typeof d.style=="string"?i.time[d.style]:jo(d.style)?d.style.parsedOptions:i.time.medium;a.push({type:Me.literal,value:t.getDateTimeFormat(e,m).format(u)});continue}if(gl(d)){var m=typeof d.style=="string"?i.number[d.style]:El(d.style)?d.style.parsedOptions:void 0;m&&m.scale&&(u=u*(m.scale||1)),a.push({type:Me.literal,value:t.getNumberFormat(e,m).format(u)});continue}if(Cl(d)){var g=d.children,_=d.value,y=o[_];if(!Mu(y))throw new Iu(_,"function",s);var D=yi(g,e,t,i,o,n),A=y(D.map(function(W){return W.value}));Array.isArray(A)||(A=[A]),a.push.apply(a,A.map(function(W){return{type:typeof W=="string"?Me.literal:Me.object,value:W}}))}if(xl(d)){var M=d.options[u]||d.options.other;if(!M)throw new Ts(d.value,u,Object.keys(d.options),s);a.push.apply(a,yi(M.value,e,t,i,o));continue}if(wl(d)){var M=d.options["=".concat(u)];if(!M){if(!Intl.PluralRules)throw new Ui(`Intl.PluralRules is not available in this environment.
17
17
  Try polyfilling it using "@formatjs/intl-pluralrules"
18
- `,er.MISSING_INTL_API,s);var R=t.getPluralRules(e,{type:d.pluralType}).select(u-(d.offset||0));M=d.options[R]||d.options.other}if(!M)throw new Ts(d.value,u,Object.keys(d.options),s);a.push.apply(a,yi(M.value,e,t,i,o,u-(d.offset||0)));continue}}return Du(a)}function Mu(r,e){return e?Qe(Qe(Qe({},r||{}),e||{}),Object.keys(r).reduce(function(t,i){return t[i]=Qe(Qe({},r[i]),e[i]||{}),t},{})):r}function Nu(r,e){return e?Object.keys(r).reduce(function(t,i){return t[i]=Mu(r[i],e[i]),t},Qe({},r)):r}function go(r){return{create:function(){return{get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}function zu(r){return r===void 0&&(r={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:fo(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.NumberFormat).bind.apply(e,mo([void 0],t,!1)))},{cache:go(r.number),strategy:_o.variadic}),getDateTimeFormat:fo(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.DateTimeFormat).bind.apply(e,mo([void 0],t,!1)))},{cache:go(r.dateTime),strategy:_o.variadic}),getPluralRules:fo(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.PluralRules).bind.apply(e,mo([void 0],t,!1)))},{cache:go(r.pluralRules),strategy:_o.variadic})}}var Bu=function(){function r(e,t,i,o){t===void 0&&(t=r.defaultLocale);var n=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var h=n.formatToParts(l);if(h.length===1)return h[0].value;var d=h.reduce(function(c,u){return!c.length||u.type!==Me.literal||typeof c[c.length-1]!="string"?c.push(u.value):c[c.length-1]+=u.value,c},[]);return d.length<=1?d[0]||"":d},this.formatToParts=function(l){return yi(n.ast,n.locales,n.formatters,n.formats,l,void 0,n.message)},this.resolvedOptions=function(){var l;return{locale:((l=n.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(n.locales)[0]}},this.getAst=function(){return n.ast},this.locales=t,this.resolvedLocale=r.resolveLocale(t),typeof e=="string"){if(this.message=e,!r.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=o||{};s.formatters;var a=Uc(s,["formatters"]);this.ast=r.__parse(e,Qe(Qe({},a),{locale:this.resolvedLocale}))}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Nu(r.formats,i),this.formatters=o&&o.formatters||zu(this.formatterCache)}return Object.defineProperty(r,"defaultLocale",{get:function(){return r.memoizedDefaultLocale||(r.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),r.memoizedDefaultLocale},enumerable:!1,configurable:!0}),r.memoizedDefaultLocale=null,r.resolveLocale=function(e){if(typeof Intl.Locale!="undefined"){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale(typeof e=="string"?e:e[0])}},r.__parse=ku,r.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},r}();function Lu(r,e){if(e==null)return;if(e in r)return r[e];const t=e.split(".");let i=r;for(let o=0;o<t.length;o++)if(typeof i=="object"){if(o>0){const n=t.slice(o,t.length).join(".");if(n in i){i=i[n];break}}i=i[t[o]]}else i=void 0;return i}const bt={},Hu=(r,e,t)=>t&&(e in bt||(bt[e]={}),r in bt[e]||(bt[e][r]=t),t),Dl=(r,e)=>{if(e==null)return;if(e in bt&&r in bt[e])return bt[e][r];const t=Gi(e);for(let i=0;i<t.length;i++){const o=t[i],n=Fu(o,r);if(n)return Hu(r,e,n)}};let An;const Ur=Wi({});function Ru(r){return An[r]||null}function Ol(r){return r in An}function Fu(r,e){if(!Ol(r))return null;const t=Ru(r);return Lu(t,e)}function $u(r){if(r==null)return;const e=Gi(r);for(let t=0;t<e.length;t++){const i=e[t];if(Ol(i))return i}}function Ml(r,...e){delete bt[r],Ur.update(t=>(t[r]=jc.all([t[r]||{},...e]),t))}ar([Ur],([r])=>Object.keys(r));Ur.subscribe(r=>An=r);const xi={};function Vu(r,e){xi[r].delete(e),xi[r].size===0&&delete xi[r]}function Nl(r){return xi[r]}function Wu(r){return Gi(r).map(e=>{const t=Nl(e);return[e,t?[...t]:[]]}).filter(([,e])=>e.length>0)}function Ko(r){return r==null?!1:Gi(r).some(e=>{var t;return(t=Nl(e))==null?void 0:t.size})}function ju(r,e){return Promise.all(e.map(i=>(Vu(r,i),i().then(o=>o.default||o)))).then(i=>Ml(r,...i))}const vr={};function zl(r){if(!Ko(r))return r in vr?vr[r]:Promise.resolve();const e=Wu(r);return vr[r]=Promise.all(e.map(([t,i])=>ju(t,i))).then(()=>{if(Ko(r))return zl(r);delete vr[r]}),vr[r]}const Uu={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},Gu={fallbackLocale:null,loadingDelay:200,formats:Uu,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},qu=Gu;function tr(){return qu}const bo=Wi(!1);var Yu=Object.defineProperty,Xu=Object.defineProperties,Ku=Object.getOwnPropertyDescriptors,Is=Object.getOwnPropertySymbols,Zu=Object.prototype.hasOwnProperty,Ju=Object.prototype.propertyIsEnumerable,Ds=(r,e,t)=>e in r?Yu(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Qu=(r,e)=>{for(var t in e||(e={}))Zu.call(e,t)&&Ds(r,t,e[t]);if(Is)for(var t of Is(e))Ju.call(e,t)&&Ds(r,t,e[t]);return r},ep=(r,e)=>Xu(r,Ku(e));let Zo;const Ai=Wi(null);function Os(r){return r.split("-").map((e,t,i)=>i.slice(0,t+1).join("-")).reverse()}function Gi(r,e=tr().fallbackLocale){const t=Os(r);return e?[...new Set([...t,...Os(e)])]:t}function zt(){return Zo!=null?Zo:void 0}Ai.subscribe(r=>{Zo=r!=null?r:void 0,typeof window!="undefined"&&r!=null&&document.documentElement.setAttribute("lang",r)});const tp=r=>{if(r&&$u(r)&&Ko(r)){const{loadingDelay:e}=tr();let t;return typeof window!="undefined"&&zt()!=null&&e?t=window.setTimeout(()=>bo.set(!0),e):bo.set(!0),zl(r).then(()=>{Ai.set(r)}).finally(()=>{clearTimeout(t),bo.set(!1)})}return Ai.set(r)},lr=ep(Qu({},Ai),{set:tp}),qi=r=>{const e=Object.create(null);return i=>{const o=JSON.stringify(i);return o in e?e[o]:e[o]=r(i)}};var rp=Object.defineProperty,Pi=Object.getOwnPropertySymbols,Bl=Object.prototype.hasOwnProperty,Ll=Object.prototype.propertyIsEnumerable,Ms=(r,e,t)=>e in r?rp(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Pn=(r,e)=>{for(var t in e||(e={}))Bl.call(e,t)&&Ms(r,t,e[t]);if(Pi)for(var t of Pi(e))Ll.call(e,t)&&Ms(r,t,e[t]);return r},hr=(r,e)=>{var t={};for(var i in r)Bl.call(r,i)&&e.indexOf(i)<0&&(t[i]=r[i]);if(r!=null&&Pi)for(var i of Pi(r))e.indexOf(i)<0&&Ll.call(r,i)&&(t[i]=r[i]);return t};const Dr=(r,e)=>{const{formats:t}=tr();if(r in t&&e in t[r])return t[r][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${r} format.`)},ip=qi(r=>{var e=r,{locale:t,format:i}=e,o=hr(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(o=Dr("number",i)),new Intl.NumberFormat(t,o)}),op=qi(r=>{var e=r,{locale:t,format:i}=e,o=hr(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?o=Dr("date",i):Object.keys(o).length===0&&(o=Dr("date","short")),new Intl.DateTimeFormat(t,o)}),np=qi(r=>{var e=r,{locale:t,format:i}=e,o=hr(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?o=Dr("time",i):Object.keys(o).length===0&&(o=Dr("time","short")),new Intl.DateTimeFormat(t,o)}),sp=(r={})=>{var e=r,{locale:t=zt()}=e,i=hr(e,["locale"]);return ip(Pn({locale:t},i))},ap=(r={})=>{var e=r,{locale:t=zt()}=e,i=hr(e,["locale"]);return op(Pn({locale:t},i))},lp=(r={})=>{var e=r,{locale:t=zt()}=e,i=hr(e,["locale"]);return np(Pn({locale:t},i))},hp=qi((r,e=zt())=>new Bu(r,e,tr().formats,{ignoreTag:tr().ignoreTag})),dp=(r,e={})=>{var t,i,o,n;let s=e;typeof r=="object"&&(s=r,r=s.id);const{values:a,locale:l=zt(),default:h}=s;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let d=Dl(r,l);if(!d)d=(n=(o=(i=(t=tr()).handleMissingMessage)==null?void 0:i.call(t,{locale:l,id:r,defaultValue:h}))!=null?o:h)!=null?n:r;else if(typeof d!="string")return console.warn(`[svelte-i18n] Message with id "${r}" must be of type "string", found: "${typeof d}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),d;if(!a)return d;let c=d;try{c=hp(d,l).format(a)}catch(u){u instanceof Error&&console.warn(`[svelte-i18n] Message "${r}" has syntax error:`,u.message)}return c},cp=(r,e)=>lp(e).format(r),up=(r,e)=>ap(e).format(r),pp=(r,e)=>sp(e).format(r),mp=(r,e=zt())=>Dl(r,e),fp=ar([lr,Ur],()=>dp);ar([lr],()=>cp);ar([lr],()=>up);ar([lr],()=>pp);ar([lr,Ur],()=>mp);window.emWidgets={topic:kc};const _p=r=>r.toLowerCase().match(/android/i)?"Android":r.toLowerCase().match(/iphone/i)?"iPhone":r.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";String(Number.MAX_SAFE_INTEGER).length;function Ns(r,e){Ml(r,e)}function vp(r){lr.set(r)}const zs={en:{headerTitle:"Historical Transactions",Casino:"Casino",Sports:"Sports",Payments:"Payments",dateFrom:"Period From",dateTo:"Period To",dateFilter:"Filter",InvalidSession:"The session you are using is invalid, please check..",checkPeriod:"Please select other period in order to see data.",Type:"Type",Status:"Status",Amount:"Amount",Currency:"Currency",Date:"Date","Game Name":"Game Name",Date:"Transaction ID","Bet Amount":"Bet Amount","Win Amount":"Win Amount","Transaction ID":"Transaction ID",Stake:"Stake",Description:"Description","Bet Part":"Bet Part","Bet Type":"Bet Type","Free Bet":"Free Bet","Win Type":"Win Type","Play Type":"Play Type","Bet Adjustment":"Bet Adjustment","Bet ID":"Bet ID",Price:"Price",Selection:"Selection",Market:"Market",Sport:"Sport",Date:"Date",Sport:"Sport",Sport:"Sport",Multiple:"Multiple",Winnings:"Winnings"},"zh-hk":{headerTitle:"历史交易",Casino:"赌场",Sports:"体育",Payments:"付款",dateFrom:"开始日期",dateTo:"结束日期",dateFilter:"筛选",InvalidSession:"您使用的会话无效,请检查。",checkPeriod:"请选择其他时间段以查看数据。",Type:"类型",Status:"状态",Amount:"金额",Currency:"货币",Date:"日期","Game Name":"游戏名称","Transaction ID":"交易ID","Bet Amount":"投注金额","Win Amount":"赢取金额",Stake:"赌注",Description:"描述","Bet Part":"投注部分","Bet Type":"投注类型","Free Bet":"免费投注","Win Type":"赢取类型","Play Type":"播放類型","Bet Adjustment":"投注调整","Bet ID":"投注ID",Price:"价格",Selection:"选择",Market:"市场",Sport:"体育",Multiple:"多重",Winnings:"獲勝"},fr:{headerTitle:"Transactions Historiques",Casino:"Casino",Sports:"Sports",Payments:"Paiements",dateFrom:"Période De",dateTo:"Période À",dateFilter:"Filtrer",InvalidSession:"La session que vous utilisez est invalide, veuillez vérifier.",checkPeriod:"Veuillez sélectionner une autre période pour voir les données.",Type:"Type",Status:"Statut",Amount:"Montant",Currency:"Devise",Date:"Date","Game Name":"Nom du Jeu","Transaction ID":"ID de Transaction","Bet Amount":"Montant du Pari","Win Amount":"Montant Gagné",Stake:"Mise",Description:"Description","Bet Part":"Partie du Pari","Bet Type":"Type de Pari","Free Bet":"Pari Gratuit","Win Type":"Type de Gain","Play Type":"Type de lecture","Bet Adjustment":"Ajustement du Pari","Bet ID":"ID du Pari",Price:"Prix",Selection:"Sélection",Market:"Marché",Sport:"Sport",Multiple:"Multiple",Winnings:"Gains"},ro:{headerTitle:"Tranzacții Istorice",Casino:"Cazinou",Sports:"Sporturi",Payments:"Plăți",dateFrom:"Perioada De",dateTo:"Perioada Până",dateFilter:"Filtru",InvalidSession:"Sesiunea pe care o utilizați este invalidă, vă rugăm să verificați.",checkPeriod:"Vă rugăm să selectați o altă perioadă pentru a vedea datele.",Type:"Tip",Status:"Stare",Amount:"Sumă",Currency:"Monedă",Date:"Data","Game Name":"Numele Jocului","Transaction ID":"ID-ul Tranzacției","Bet Amount":"Suma Pariei","Win Amount":"Suma Câștigată",Stake:"Miză",Description:"Descriere","Bet Part":"Partea Pariei","Bet Type":"Tipul Pariei","Free Bet":"Pariu Gratuit","Win Type":"Tipul Câștigului","Play Type":"Tip de redare","Bet Adjustment":"Ajustarea Pariei","Bet ID":"ID-ul Pariei",Price:"Preț",Selection:"Selecție",Market:"Piață",Sport:"Sport",Multiple:"Multiplu",Winnings:"Câștiguri"},es:{headerTitle:"Transacciones Históricas",Casino:"Casino",Sports:"Deportes",Payments:"Pagos",dateFrom:"Período Desde",dateTo:"Período Hasta",dateFilter:"Filtrar",InvalidSession:"La sesión que está utilizando es inválida, por favor verifique.",checkPeriod:"Por favor seleccione otro período para ver los datos.",Type:"Tipo",Status:"Estado",Amount:"Cantidad",Currency:"Moneda",Date:"Fecha","Game Name":"Nombre del Juego","Transaction ID":"ID de Transacción","Bet Amount":"Cantidad Apostada","Win Amount":"Cantidad Ganada",Stake:"Apuesta",Description:"Descripción","Bet Part":"Parte de la Apuesta","Bet Type":"Tipo de Apuesta","Free Bet":"Apuesta Gratis","Win Type":"Tipo de Ganancia","Play Type":"Tipo de reproducción","Bet Adjustment":"Ajuste de Apuesta","Bet ID":"ID de Apuesta",Price:"Precio",Selection:"Selección",Market:"Mercado",Sport:"Deporte",Multiple:"Múltiple",Winnings:"Ganancias"},pt:{headerTitle:"Transações Históricas",Casino:"Cassino",Sports:"Esportes",Payments:"Pagamentos",dateFrom:"Período De",dateTo:"Período Até",dateFilter:"Filtrar",InvalidSession:"A sessão que você está usando é inválida, por favor verifique.",checkPeriod:"Por favor selecione outro período para ver os dados.",Type:"Tipo",Status:"Status",Amount:"Quantia",Currency:"Moeda",Date:"Data","Game Name":"Nome do Jogo","Transaction ID":"ID da Transação","Bet Amount":"Quantia Apostada","Win Amount":"Quantia Ganha",Stake:"Aposta",Description:"Descrição","Bet Part":"Parte da Aposta","Bet Type":"Tipo de Aposta","Free Bet":"Aposta Grátis","Win Type":"Tipo de Ganho","Play Type":"Tipo de reprodução","Bet Adjustment":"Ajuste de Aposta","Bet ID":"ID da Aposta",Price:"Preço",Selection:"Seleção",Market:"Mercado",Sport:"Esporte",Multiple:"Múltiplo",Winnings:"Ganhos"},hr:{headerTitle:"Povijesne Transakcije",Casino:"Casino",Sports:"Sportovi",Payments:"Plaćanja",dateFrom:"Razdoblje Od",dateTo:"Razdoblje Do",dateFilter:"Filtriraj",InvalidSession:"Sesija koju koristite je nevažeća, molimo provjerite.",checkPeriod:"Molimo odaberite drugo razdoblje za pregled podataka.",Type:"Vrsta",Status:"Status",Amount:"Iznos",Currency:"Valuta",Date:"Datum","Game Name":"Naziv Igre","Transaction ID":"ID Transakcije","Bet Amount":"Iznos Oklade","Win Amount":"Iznos Dobitka",Stake:"Ulog",Description:"Opis","Bet Part":"Dio Oklade","Bet Type":"Vrsta Oklade","Free Bet":"Besplatna Oklada","Win Type":"Vrsta Dobitka","Play Type":"Vrsta reprodukcije","Bet Adjustment":"Prilagodba Oklade","Bet ID":"ID Oklade",Price:"Cijena",Selection:"Izbor",Market:"Tržište",Sport:"Sport",Multiple:"Višestruko",Winnings:"Dobitci"},"pt-br":{headerTitle:"Transações Históricas",Casino:"Cassino",Sports:"Esportes",Payments:"Pagamentos",dateFrom:"Período De",dateTo:"Período Até",dateFilter:"Filtrar",InvalidSession:"A sessão que você está usando é inválida, por favor verifique.",checkPeriod:"Por favor selecione outro período para ver os dados.",Type:"Tipo",Status:"Status",Amount:"Quantia",Currency:"Moeda",Date:"Data","Game Name":"Nome do Jogo","Transaction ID":"ID da Transação","Bet Amount":"Quantia Apostada","Win Amount":"Quantia Ganha",Stake:"Aposta",Description:"Descrição","Bet Part":"Parte da Aposta","Bet Type":"Tipo de Aposta","Free Bet":"Aposta Grátis","Win Type":"Tipo de Ganho","Play Type":"Tipo de reprodução","Bet Adjustment":"Ajuste de Aposta","Bet ID":"ID da Aposta",Price:"Preço",Selection:"Seleção",Market:"Mercado",Sport:"Esporte",Multiple:"Múltiplo",Winnings:"Ganhos"},"es-mx":{headerTitle:"Transacciones Históricas",Casino:"Casino",Sports:"Deportes",Payments:"Pagos",dateFrom:"Período Desde",dateTo:"Período Hasta",dateFilter:"Filtrar",InvalidSession:"La sesión que está utilizando es inválida, por favor verifique.",checkPeriod:"Por favor seleccione otro período para ver los datos.",Type:"Tipo",Status:"Estado",Amount:"Cantidad",Currency:"Moneda",Date:"Fecha","Game Name":"Nombre del Juego","Transaction ID":"ID de Transacción","Bet Amount":"Cantidad Apostada","Win Amount":"Cantidad Ganada",Stake:"Apuesta",Description:"Descripción","Bet Part":"Parte de la Apuesta","Bet Type":"Tipo de Apuesta","Free Bet":"Apuesta Gratis","Win Type":"Tipo de Ganancia","Play Type":"Tipo de reproducción","Bet Adjustment":"Ajuste de Apuesta","Bet ID":"ID de Apuesta",Price:"Precio",Selection:"Selección",Market:"Mercado",Sport:"Deporte",Multiple:"Múltiple",Winnings:"Ganancias"},tr:{headerTitle:"Geçmiş İşlemler",Casino:"Casino",Sports:"Sporlar",Payments:"Ödemeler",dateFrom:"Dönemden",dateTo:"Döneme",dateFilter:"Filtre",InvalidSession:"Kullandığınız oturum geçersiz, lütfen kontrol edin.",checkPeriod:"Verileri görmek için lütfen başka bir dönem seçin.",Type:"Tür",Status:"Durum",Amount:"Miktar",Currency:"Para Birimi",Date:"Tarih","Game Name":"Oyun Adı","Transaction ID":"İşlem ID","Bet Amount":"Bahis Miktarı","Win Amount":"Kazanç Miktarı",Stake:"Bahis",Description:"Açıklama","Bet Part":"Bahis Bölümü","Bet Type":"Bahis Türü","Free Bet":"Ücretsiz Bahis","Win Type":"Kazanç Türü","Play Type":"Oynatma Türü","Bet Adjustment":"Bahis Ayarı","Bet ID":"Bahis ID",Price:"Fiyat",Selection:"Seçim",Market:"Pazar",Sport:"Spor",Multiple:"Çoklu",Winnings:"Kazanan"},"en-us":{headerTitle:"Historical Transactions",Casino:"Casino",Sports:"Sports",Payments:"Payments",dateFrom:"Period From",dateTo:"Period To",dateFilter:"Filter",InvalidSession:"The session you are using is invalid, please check..",checkPeriod:"Please select other period in order to see data.",Type:"Type",Status:"Status",Amount:"Amount",Currency:"Currency",Date:"Date","Game Name":"Game Name",Date:"Transaction ID","Bet Amount":"Bet Amount","Win Amount":"Win Amount","Transaction ID":"Transaction ID",Stake:"Stake",Description:"Description","Bet Part":"Bet Part","Bet Type":"Bet Type","Free Bet":"Free Bet","Win Type":"Win Type","Play Type":"Play Type","Bet Adjustment":"Bet Adjustment","Bet ID":"Bet ID",Price:"Price",Selection:"Selection",Market:"Market",Sport:"Sport",Date:"Date",Sport:"Sport",Sport:"Sport",Multiple:"Multiple",Winnings:"Winnings"}};var Hl={exports:{}};(function(r,e){(function(t,i){r.exports=i()})(pl,function(){var t=1e3,i=6e4,o=36e5,n="millisecond",s="second",a="minute",l="hour",h="day",d="week",c="month",u="quarter",m="year",g="date",_="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,D=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,A={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(B){var w=["th","st","nd","rd"],C=B%100;return"["+B+(w[(C-20)%10]||w[C]||w[0])+"]"}},M=function(B,w,C){var T=String(B);return!T||T.length>=w?B:""+Array(w+1-T.length).join(C)+B},R={s:M,z:function(B){var w=-B.utcOffset(),C=Math.abs(w),T=Math.floor(C/60),x=C%60;return(w<=0?"+":"-")+M(T,2,"0")+":"+M(x,2,"0")},m:function B(w,C){if(w.date()<C.date())return-B(C,w);var T=12*(C.year()-w.year())+(C.month()-w.month()),x=w.clone().add(T,c),N=C-x<0,z=w.clone().add(T+(N?-1:1),c);return+(-(T+(C-x)/(N?x-z:z-x))||0)},a:function(B){return B<0?Math.ceil(B)||0:Math.floor(B)},p:function(B){return{M:c,y:m,w:d,d:h,D:g,h:l,m:a,s,ms:n,Q:u}[B]||String(B||"").toLowerCase().replace(/s$/,"")},u:function(B){return B===void 0}},W="en",Q={};Q[W]=A;var S="$isDayjsObject",P=function(B){return B instanceof he||!(!B||!B[S])},b=function B(w,C,T){var x;if(!w)return W;if(typeof w=="string"){var N=w.toLowerCase();Q[N]&&(x=N),C&&(Q[N]=C,x=N);var z=w.split("-");if(!x&&z.length>1)return B(z[0])}else{var V=w.name;Q[V]=w,x=V}return!T&&x&&(W=x),x||!T&&W},O=function(B,w){if(P(B))return B.clone();var C=typeof w=="object"?w:{};return C.date=B,C.args=arguments,new he(C)},$=R;$.l=b,$.i=P,$.w=function(B,w){return O(B,{locale:w.$L,utc:w.$u,x:w.$x,$offset:w.$offset})};var he=function(){function B(C){this.$L=b(C.locale,null,!0),this.parse(C),this.$x=this.$x||C.x||{},this[S]=!0}var w=B.prototype;return w.parse=function(C){this.$d=function(T){var x=T.date,N=T.utc;if(x===null)return new Date(NaN);if($.u(x))return new Date;if(x instanceof Date)return new Date(x);if(typeof x=="string"&&!/Z$/i.test(x)){var z=x.match(y);if(z){var V=z[2]-1||0,q=(z[7]||"0").substring(0,3);return N?new Date(Date.UTC(z[1],V,z[3]||1,z[4]||0,z[5]||0,z[6]||0,q)):new Date(z[1],V,z[3]||1,z[4]||0,z[5]||0,z[6]||0,q)}}return new Date(x)}(C),this.init()},w.init=function(){var C=this.$d;this.$y=C.getFullYear(),this.$M=C.getMonth(),this.$D=C.getDate(),this.$W=C.getDay(),this.$H=C.getHours(),this.$m=C.getMinutes(),this.$s=C.getSeconds(),this.$ms=C.getMilliseconds()},w.$utils=function(){return $},w.isValid=function(){return this.$d.toString()!==_},w.isSame=function(C,T){var x=O(C);return this.startOf(T)<=x&&x<=this.endOf(T)},w.isAfter=function(C,T){return O(C)<this.startOf(T)},w.isBefore=function(C,T){return this.endOf(T)<O(C)},w.$g=function(C,T,x){return $.u(C)?this[T]:this.set(x,C)},w.unix=function(){return Math.floor(this.valueOf()/1e3)},w.valueOf=function(){return this.$d.getTime()},w.startOf=function(C,T){var x=this,N=!!$.u(T)||T,z=$.p(C),V=function(be,ue){var fe=$.w(x.$u?Date.UTC(x.$y,ue,be):new Date(x.$y,ue,be),x);return N?fe:fe.endOf(h)},q=function(be,ue){return $.w(x.toDate()[be].apply(x.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(ue)),x)},oe=this.$W,ne=this.$M,se=this.$D,we="set"+(this.$u?"UTC":"");switch(z){case m:return N?V(1,0):V(31,11);case c:return N?V(1,ne):V(0,ne+1);case d:var ce=this.$locale().weekStart||0,Oe=(oe<ce?oe+7:oe)-ce;return V(N?se-Oe:se+(6-Oe),ne);case h:case g:return q(we+"Hours",0);case l:return q(we+"Minutes",1);case a:return q(we+"Seconds",2);case s:return q(we+"Milliseconds",3);default:return this.clone()}},w.endOf=function(C){return this.startOf(C,!1)},w.$set=function(C,T){var x,N=$.p(C),z="set"+(this.$u?"UTC":""),V=(x={},x[h]=z+"Date",x[g]=z+"Date",x[c]=z+"Month",x[m]=z+"FullYear",x[l]=z+"Hours",x[a]=z+"Minutes",x[s]=z+"Seconds",x[n]=z+"Milliseconds",x)[N],q=N===h?this.$D+(T-this.$W):T;if(N===c||N===m){var oe=this.clone().set(g,1);oe.$d[V](q),oe.init(),this.$d=oe.set(g,Math.min(this.$D,oe.daysInMonth())).$d}else V&&this.$d[V](q);return this.init(),this},w.set=function(C,T){return this.clone().$set(C,T)},w.get=function(C){return this[$.p(C)]()},w.add=function(C,T){var x,N=this;C=Number(C);var z=$.p(T),V=function(ne){var se=O(N);return $.w(se.date(se.date()+Math.round(ne*C)),N)};if(z===c)return this.set(c,this.$M+C);if(z===m)return this.set(m,this.$y+C);if(z===h)return V(1);if(z===d)return V(7);var q=(x={},x[a]=i,x[l]=o,x[s]=t,x)[z]||1,oe=this.$d.getTime()+C*q;return $.w(oe,this)},w.subtract=function(C,T){return this.add(-1*C,T)},w.format=function(C){var T=this,x=this.$locale();if(!this.isValid())return x.invalidDate||_;var N=C||"YYYY-MM-DDTHH:mm:ssZ",z=$.z(this),V=this.$H,q=this.$m,oe=this.$M,ne=x.weekdays,se=x.months,we=x.meridiem,ce=function(ue,fe,ke,ze){return ue&&(ue[fe]||ue(T,N))||ke[fe].slice(0,ze)},Oe=function(ue){return $.s(V%12||12,ue,"0")},be=we||function(ue,fe,ke){var ze=ue<12?"AM":"PM";return ke?ze.toLowerCase():ze};return N.replace(D,function(ue,fe){return fe||function(ke){switch(ke){case"YY":return String(T.$y).slice(-2);case"YYYY":return $.s(T.$y,4,"0");case"M":return oe+1;case"MM":return $.s(oe+1,2,"0");case"MMM":return ce(x.monthsShort,oe,se,3);case"MMMM":return ce(se,oe);case"D":return T.$D;case"DD":return $.s(T.$D,2,"0");case"d":return String(T.$W);case"dd":return ce(x.weekdaysMin,T.$W,ne,2);case"ddd":return ce(x.weekdaysShort,T.$W,ne,3);case"dddd":return ne[T.$W];case"H":return String(V);case"HH":return $.s(V,2,"0");case"h":return Oe(1);case"hh":return Oe(2);case"a":return be(V,q,!0);case"A":return be(V,q,!1);case"m":return String(q);case"mm":return $.s(q,2,"0");case"s":return String(T.$s);case"ss":return $.s(T.$s,2,"0");case"SSS":return $.s(T.$ms,3,"0");case"Z":return z}return null}(ue)||z.replace(":","")})},w.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},w.diff=function(C,T,x){var N,z=this,V=$.p(T),q=O(C),oe=(q.utcOffset()-this.utcOffset())*i,ne=this-q,se=function(){return $.m(z,q)};switch(V){case m:N=se()/12;break;case c:N=se();break;case u:N=se()/3;break;case d:N=(ne-oe)/6048e5;break;case h:N=(ne-oe)/864e5;break;case l:N=ne/o;break;case a:N=ne/i;break;case s:N=ne/t;break;default:N=ne}return x?N:$.a(N)},w.daysInMonth=function(){return this.endOf(c).$D},w.$locale=function(){return Q[this.$L]},w.locale=function(C,T){if(!C)return this.$L;var x=this.clone(),N=b(C,T,!0);return N&&(x.$L=N),x},w.clone=function(){return $.w(this.$d,this)},w.toDate=function(){return new Date(this.valueOf())},w.toJSON=function(){return this.isValid()?this.toISOString():null},w.toISOString=function(){return this.$d.toISOString()},w.toString=function(){return this.$d.toUTCString()},B}(),de=he.prototype;return O.prototype=de,[["$ms",n],["$s",s],["$m",a],["$H",l],["$W",h],["$M",c],["$y",m],["$D",g]].forEach(function(B){de[B[1]]=function(w){return this.$g(w,B[0],B[1])}}),O.extend=function(B,w){return B.$i||(B(w,he,O),B.$i=!0),O},O.locale=b,O.isDayjs=P,O.unix=function(B){return O(1e3*B)},O.en=Q[W],O.Ls=Q,O.p={},O})})(Hl);var gp=Hl.exports;const hi=Sn(gp);var Rl={exports:{}};(function(r,e){(function(t,i){r.exports=i()})(pl,function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},i=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,n=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,a={},l=function(_){return(_=+_)+(_>68?1900:2e3)},h=function(_){return function(y){this[_]=+y}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(_){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var D=y.match(/([+-]|\d\d)/g),A=60*D[1]+(+D[2]||0);return A===0?0:D[0]==="+"?-A:A}(_)}],c=function(_){var y=a[_];return y&&(y.indexOf?y:y.s.concat(y.f))},u=function(_,y){var D,A=a.meridiem;if(A){for(var M=1;M<=24;M+=1)if(_.indexOf(A(M,0,y))>-1){D=M>12;break}}else D=_===(y?"pm":"PM");return D},m={A:[s,function(_){this.afternoon=u(_,!1)}],a:[s,function(_){this.afternoon=u(_,!0)}],S:[/\d/,function(_){this.milliseconds=100*+_}],SS:[o,function(_){this.milliseconds=10*+_}],SSS:[/\d{3}/,function(_){this.milliseconds=+_}],s:[n,h("seconds")],ss:[n,h("seconds")],m:[n,h("minutes")],mm:[n,h("minutes")],H:[n,h("hours")],h:[n,h("hours")],HH:[n,h("hours")],hh:[n,h("hours")],D:[n,h("day")],DD:[o,h("day")],Do:[s,function(_){var y=a.ordinal,D=_.match(/\d+/);if(this.day=D[0],y)for(var A=1;A<=31;A+=1)y(A).replace(/\[|\]/g,"")===_&&(this.day=A)}],M:[n,h("month")],MM:[o,h("month")],MMM:[s,function(_){var y=c("months"),D=(c("monthsShort")||y.map(function(A){return A.slice(0,3)})).indexOf(_)+1;if(D<1)throw new Error;this.month=D%12||D}],MMMM:[s,function(_){var y=c("months").indexOf(_)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,h("year")],YY:[o,function(_){this.year=l(_)}],YYYY:[/\d{4}/,h("year")],Z:d,ZZ:d};function g(_){var y,D;y=_,D=a&&a.formats;for(var A=(_=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(b,O,$){var he=$&&$.toUpperCase();return O||D[$]||t[$]||D[he].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(de,B,w){return B||w.slice(1)})})).match(i),M=A.length,R=0;R<M;R+=1){var W=A[R],Q=m[W],S=Q&&Q[0],P=Q&&Q[1];A[R]=P?{regex:S,parser:P}:W.replace(/^\[|\]$/g,"")}return function(b){for(var O={},$=0,he=0;$<M;$+=1){var de=A[$];if(typeof de=="string")he+=de.length;else{var B=de.regex,w=de.parser,C=b.slice(he),T=B.exec(C)[0];w.call(O,T),b=b.replace(T,"")}}return function(x){var N=x.afternoon;if(N!==void 0){var z=x.hours;N?z<12&&(x.hours+=12):z===12&&(x.hours=0),delete x.afternoon}}(O),O}}return function(_,y,D){D.p.customParseFormat=!0,_&&_.parseTwoDigitYear&&(l=_.parseTwoDigitYear);var A=y.prototype,M=A.parse;A.parse=function(R){var W=R.date,Q=R.utc,S=R.args;this.$u=Q;var P=S[1];if(typeof P=="string"){var b=S[2]===!0,O=S[3]===!0,$=b||O,he=S[2];O&&(he=S[2]),a=this.$locale(),!b&&he&&(a=D.Ls[he]),this.$d=function(C,T,x){try{if(["x","X"].indexOf(T)>-1)return new Date((T==="X"?1e3:1)*C);var N=g(T)(C),z=N.year,V=N.month,q=N.day,oe=N.hours,ne=N.minutes,se=N.seconds,we=N.milliseconds,ce=N.zone,Oe=new Date,be=q||(z||V?1:Oe.getDate()),ue=z||Oe.getFullYear(),fe=0;z&&!V||(fe=V>0?V-1:Oe.getMonth());var ke=oe||0,ze=ne||0,Ke=se||0,dt=we||0;return ce?new Date(Date.UTC(ue,fe,be,ke,ze,Ke,dt+60*ce.offset*1e3)):x?new Date(Date.UTC(ue,fe,be,ke,ze,Ke,dt)):new Date(ue,fe,be,ke,ze,Ke,dt)}catch(tt){return new Date("")}}(W,P,Q),this.init(),he&&he!==!0&&(this.$L=this.locale(he).$L),$&&W!=this.format(P)&&(this.$d=new Date("")),a={}}else if(P instanceof Array)for(var de=P.length,B=1;B<=de;B+=1){S[1]=P[B-1];var w=D.apply(this,S);if(w.isValid()){this.$d=w.$d,this.$L=w.$L,this.init();break}B===de&&(this.$d=new Date(""))}else M.call(this,R)}}})})(Rl);var bp=Rl.exports;const yp=Sn(bp);var xp=Object.defineProperty,wp=Object.defineProperties,Cp=Object.getOwnPropertyDescriptors,Bs=Object.getOwnPropertySymbols,Ep=Object.prototype.hasOwnProperty,Sp=Object.prototype.propertyIsEnumerable,Jo=(r,e,t)=>e in r?xp(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,ki=(r,e)=>{for(var t in e||(e={}))Ep.call(e,t)&&Jo(r,t,e[t]);if(Bs)for(var t of Bs(e))Sp.call(e,t)&&Jo(r,t,e[t]);return r},Fl=(r,e)=>wp(r,Cp(e)),Te=(r,e,t)=>(Jo(r,typeof e!="symbol"?e+"":e,t),t),Ti=(r,e,t)=>new Promise((i,o)=>{var n=l=>{try{a(t.next(l))}catch(h){o(h)}},s=l=>{try{a(t.throw(l))}catch(h){o(h)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(n,s);a((t=t.apply(r,e)).next())});/**
18
+ `,er.MISSING_INTL_API,s);var R=t.getPluralRules(e,{type:d.pluralType}).select(u-(d.offset||0));M=d.options[R]||d.options.other}if(!M)throw new Ts(d.value,u,Object.keys(d.options),s);a.push.apply(a,yi(M.value,e,t,i,o,u-(d.offset||0)));continue}}return Ou(a)}function Nu(r,e){return e?Qe(Qe(Qe({},r||{}),e||{}),Object.keys(r).reduce(function(t,i){return t[i]=Qe(Qe({},r[i]),e[i]||{}),t},{})):r}function zu(r,e){return e?Object.keys(r).reduce(function(t,i){return t[i]=Nu(r[i],e[i]),t},Qe({},r)):r}function go(r){return{create:function(){return{get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}function Bu(r){return r===void 0&&(r={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:fo(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.NumberFormat).bind.apply(e,mo([void 0],t,!1)))},{cache:go(r.number),strategy:_o.variadic}),getDateTimeFormat:fo(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.DateTimeFormat).bind.apply(e,mo([void 0],t,!1)))},{cache:go(r.dateTime),strategy:_o.variadic}),getPluralRules:fo(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.PluralRules).bind.apply(e,mo([void 0],t,!1)))},{cache:go(r.pluralRules),strategy:_o.variadic})}}var Lu=function(){function r(e,t,i,o){t===void 0&&(t=r.defaultLocale);var n=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var h=n.formatToParts(l);if(h.length===1)return h[0].value;var d=h.reduce(function(c,u){return!c.length||u.type!==Me.literal||typeof c[c.length-1]!="string"?c.push(u.value):c[c.length-1]+=u.value,c},[]);return d.length<=1?d[0]||"":d},this.formatToParts=function(l){return yi(n.ast,n.locales,n.formatters,n.formats,l,void 0,n.message)},this.resolvedOptions=function(){var l;return{locale:((l=n.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(n.locales)[0]}},this.getAst=function(){return n.ast},this.locales=t,this.resolvedLocale=r.resolveLocale(t),typeof e=="string"){if(this.message=e,!r.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=o||{};s.formatters;var a=Gc(s,["formatters"]);this.ast=r.__parse(e,Qe(Qe({},a),{locale:this.resolvedLocale}))}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=zu(r.formats,i),this.formatters=o&&o.formatters||Bu(this.formatterCache)}return Object.defineProperty(r,"defaultLocale",{get:function(){return r.memoizedDefaultLocale||(r.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),r.memoizedDefaultLocale},enumerable:!1,configurable:!0}),r.memoizedDefaultLocale=null,r.resolveLocale=function(e){if(typeof Intl.Locale!="undefined"){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale(typeof e=="string"?e:e[0])}},r.__parse=Tu,r.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},r}();function Hu(r,e){if(e==null)return;if(e in r)return r[e];const t=e.split(".");let i=r;for(let o=0;o<t.length;o++)if(typeof i=="object"){if(o>0){const n=t.slice(o,t.length).join(".");if(n in i){i=i[n];break}}i=i[t[o]]}else i=void 0;return i}const bt={},Ru=(r,e,t)=>t&&(e in bt||(bt[e]={}),r in bt[e]||(bt[e][r]=t),t),Ol=(r,e)=>{if(e==null)return;if(e in bt&&r in bt[e])return bt[e][r];const t=Gi(e);for(let i=0;i<t.length;i++){const o=t[i],n=$u(o,r);if(n)return Ru(r,e,n)}};let An;const Ur=Wi({});function Fu(r){return An[r]||null}function Ml(r){return r in An}function $u(r,e){if(!Ml(r))return null;const t=Fu(r);return Hu(t,e)}function Vu(r){if(r==null)return;const e=Gi(r);for(let t=0;t<e.length;t++){const i=e[t];if(Ml(i))return i}}function Nl(r,...e){delete bt[r],Ur.update(t=>(t[r]=Uc.all([t[r]||{},...e]),t))}ar([Ur],([r])=>Object.keys(r));Ur.subscribe(r=>An=r);const xi={};function Wu(r,e){xi[r].delete(e),xi[r].size===0&&delete xi[r]}function zl(r){return xi[r]}function ju(r){return Gi(r).map(e=>{const t=zl(e);return[e,t?[...t]:[]]}).filter(([,e])=>e.length>0)}function Ko(r){return r==null?!1:Gi(r).some(e=>{var t;return(t=zl(e))==null?void 0:t.size})}function Uu(r,e){return Promise.all(e.map(i=>(Wu(r,i),i().then(o=>o.default||o)))).then(i=>Nl(r,...i))}const vr={};function Bl(r){if(!Ko(r))return r in vr?vr[r]:Promise.resolve();const e=ju(r);return vr[r]=Promise.all(e.map(([t,i])=>Uu(t,i))).then(()=>{if(Ko(r))return Bl(r);delete vr[r]}),vr[r]}const Gu={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},qu={fallbackLocale:null,loadingDelay:200,formats:Gu,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Yu=qu;function tr(){return Yu}const bo=Wi(!1);var Xu=Object.defineProperty,Ku=Object.defineProperties,Zu=Object.getOwnPropertyDescriptors,Is=Object.getOwnPropertySymbols,Ju=Object.prototype.hasOwnProperty,Qu=Object.prototype.propertyIsEnumerable,Ds=(r,e,t)=>e in r?Xu(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,ep=(r,e)=>{for(var t in e||(e={}))Ju.call(e,t)&&Ds(r,t,e[t]);if(Is)for(var t of Is(e))Qu.call(e,t)&&Ds(r,t,e[t]);return r},tp=(r,e)=>Ku(r,Zu(e));let Zo;const Ai=Wi(null);function Os(r){return r.split("-").map((e,t,i)=>i.slice(0,t+1).join("-")).reverse()}function Gi(r,e=tr().fallbackLocale){const t=Os(r);return e?[...new Set([...t,...Os(e)])]:t}function zt(){return Zo!=null?Zo:void 0}Ai.subscribe(r=>{Zo=r!=null?r:void 0,typeof window!="undefined"&&r!=null&&document.documentElement.setAttribute("lang",r)});const rp=r=>{if(r&&Vu(r)&&Ko(r)){const{loadingDelay:e}=tr();let t;return typeof window!="undefined"&&zt()!=null&&e?t=window.setTimeout(()=>bo.set(!0),e):bo.set(!0),Bl(r).then(()=>{Ai.set(r)}).finally(()=>{clearTimeout(t),bo.set(!1)})}return Ai.set(r)},lr=tp(ep({},Ai),{set:rp}),qi=r=>{const e=Object.create(null);return i=>{const o=JSON.stringify(i);return o in e?e[o]:e[o]=r(i)}};var ip=Object.defineProperty,Pi=Object.getOwnPropertySymbols,Ll=Object.prototype.hasOwnProperty,Hl=Object.prototype.propertyIsEnumerable,Ms=(r,e,t)=>e in r?ip(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Pn=(r,e)=>{for(var t in e||(e={}))Ll.call(e,t)&&Ms(r,t,e[t]);if(Pi)for(var t of Pi(e))Hl.call(e,t)&&Ms(r,t,e[t]);return r},hr=(r,e)=>{var t={};for(var i in r)Ll.call(r,i)&&e.indexOf(i)<0&&(t[i]=r[i]);if(r!=null&&Pi)for(var i of Pi(r))e.indexOf(i)<0&&Hl.call(r,i)&&(t[i]=r[i]);return t};const Dr=(r,e)=>{const{formats:t}=tr();if(r in t&&e in t[r])return t[r][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${r} format.`)},op=qi(r=>{var e=r,{locale:t,format:i}=e,o=hr(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(o=Dr("number",i)),new Intl.NumberFormat(t,o)}),np=qi(r=>{var e=r,{locale:t,format:i}=e,o=hr(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?o=Dr("date",i):Object.keys(o).length===0&&(o=Dr("date","short")),new Intl.DateTimeFormat(t,o)}),sp=qi(r=>{var e=r,{locale:t,format:i}=e,o=hr(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?o=Dr("time",i):Object.keys(o).length===0&&(o=Dr("time","short")),new Intl.DateTimeFormat(t,o)}),ap=(r={})=>{var e=r,{locale:t=zt()}=e,i=hr(e,["locale"]);return op(Pn({locale:t},i))},lp=(r={})=>{var e=r,{locale:t=zt()}=e,i=hr(e,["locale"]);return np(Pn({locale:t},i))},hp=(r={})=>{var e=r,{locale:t=zt()}=e,i=hr(e,["locale"]);return sp(Pn({locale:t},i))},dp=qi((r,e=zt())=>new Lu(r,e,tr().formats,{ignoreTag:tr().ignoreTag})),cp=(r,e={})=>{var t,i,o,n;let s=e;typeof r=="object"&&(s=r,r=s.id);const{values:a,locale:l=zt(),default:h}=s;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let d=Ol(r,l);if(!d)d=(n=(o=(i=(t=tr()).handleMissingMessage)==null?void 0:i.call(t,{locale:l,id:r,defaultValue:h}))!=null?o:h)!=null?n:r;else if(typeof d!="string")return console.warn(`[svelte-i18n] Message with id "${r}" must be of type "string", found: "${typeof d}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),d;if(!a)return d;let c=d;try{c=dp(d,l).format(a)}catch(u){u instanceof Error&&console.warn(`[svelte-i18n] Message "${r}" has syntax error:`,u.message)}return c},up=(r,e)=>hp(e).format(r),pp=(r,e)=>lp(e).format(r),mp=(r,e)=>ap(e).format(r),fp=(r,e=zt())=>Ol(r,e),_p=ar([lr,Ur],()=>cp);ar([lr],()=>up);ar([lr],()=>pp);ar([lr],()=>mp);ar([lr,Ur],()=>fp);window.emWidgets={topic:Tc};const vp=r=>r.toLowerCase().match(/android/i)?"Android":r.toLowerCase().match(/iphone/i)?"iPhone":r.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";String(Number.MAX_SAFE_INTEGER).length;function Ns(r,e){Nl(r,e)}function gp(r){lr.set(r)}const zs={en:{headerTitle:"Historical Transactions",Casino:"Casino",Sports:"Sports",Payments:"Payments",dateFrom:"Period From",dateTo:"Period To",dateFilter:"Filter",InvalidSession:"The session you are using is invalid, please check..",checkPeriod:"Please select other period in order to see data.",Type:"Type",Status:"Status",Amount:"Amount",Currency:"Currency",Date:"Date","Game Name":"Game Name",Date:"Transaction ID","Bet Amount":"Bet Amount","Win Amount":"Win Amount","Transaction ID":"Transaction ID",Stake:"Stake",Description:"Description","Bet Part":"Bet Part","Bet Type":"Bet Type","Free Bet":"Free Bet","Win Type":"Win Type","Play Type":"Play Type","Bet Adjustment":"Bet Adjustment","Bet ID":"Bet ID",Price:"Price",Selection:"Selection",Market:"Market",Sport:"Sport",Date:"Date",Sport:"Sport",Sport:"Sport",Multiple:"Multiple",Winnings:"Winnings"},"zh-hk":{headerTitle:"历史交易",Casino:"赌场",Sports:"体育",Payments:"付款",dateFrom:"开始日期",dateTo:"结束日期",dateFilter:"筛选",InvalidSession:"您使用的会话无效,请检查。",checkPeriod:"请选择其他时间段以查看数据。",Type:"类型",Status:"状态",Amount:"金额",Currency:"货币",Date:"日期","Game Name":"游戏名称","Transaction ID":"交易ID","Bet Amount":"投注金额","Win Amount":"赢取金额",Stake:"赌注",Description:"描述","Bet Part":"投注部分","Bet Type":"投注类型","Free Bet":"免费投注","Win Type":"赢取类型","Play Type":"播放類型","Bet Adjustment":"投注调整","Bet ID":"投注ID",Price:"价格",Selection:"选择",Market:"市场",Sport:"体育",Multiple:"多重",Winnings:"獲勝"},fr:{headerTitle:"Transactions Historiques",Casino:"Casino",Sports:"Sports",Payments:"Paiements",dateFrom:"Période De",dateTo:"Période À",dateFilter:"Filtrer",InvalidSession:"La session que vous utilisez est invalide, veuillez vérifier.",checkPeriod:"Veuillez sélectionner une autre période pour voir les données.",Type:"Type",Status:"Statut",Amount:"Montant",Currency:"Devise",Date:"Date","Game Name":"Nom du Jeu","Transaction ID":"ID de Transaction","Bet Amount":"Montant du Pari","Win Amount":"Montant Gagné",Stake:"Mise",Description:"Description","Bet Part":"Partie du Pari","Bet Type":"Type de Pari","Free Bet":"Pari Gratuit","Win Type":"Type de Gain","Play Type":"Type de lecture","Bet Adjustment":"Ajustement du Pari","Bet ID":"ID du Pari",Price:"Prix",Selection:"Sélection",Market:"Marché",Sport:"Sport",Multiple:"Multiple",Winnings:"Gains"},ro:{headerTitle:"Tranzacții Istorice",Casino:"Cazinou",Sports:"Sporturi",Payments:"Plăți",dateFrom:"Perioada De",dateTo:"Perioada Până",dateFilter:"Filtru",InvalidSession:"Sesiunea pe care o utilizați este invalidă, vă rugăm să verificați.",checkPeriod:"Vă rugăm să selectați o altă perioadă pentru a vedea datele.",Type:"Tip",Status:"Stare",Amount:"Sumă",Currency:"Monedă",Date:"Data","Game Name":"Numele Jocului","Transaction ID":"ID-ul Tranzacției","Bet Amount":"Suma Pariei","Win Amount":"Suma Câștigată",Stake:"Miză",Description:"Descriere","Bet Part":"Partea Pariei","Bet Type":"Tipul Pariei","Free Bet":"Pariu Gratuit","Win Type":"Tipul Câștigului","Play Type":"Tip de redare","Bet Adjustment":"Ajustarea Pariei","Bet ID":"ID-ul Pariei",Price:"Preț",Selection:"Selecție",Market:"Piață",Sport:"Sport",Multiple:"Multiplu",Winnings:"Câștiguri"},es:{headerTitle:"Transacciones Históricas",Casino:"Casino",Sports:"Deportes",Payments:"Pagos",dateFrom:"Período Desde",dateTo:"Período Hasta",dateFilter:"Filtrar",InvalidSession:"La sesión que está utilizando es inválida, por favor verifique.",checkPeriod:"Por favor seleccione otro período para ver los datos.",Type:"Tipo",Status:"Estado",Amount:"Cantidad",Currency:"Moneda",Date:"Fecha","Game Name":"Nombre del Juego","Transaction ID":"ID de Transacción","Bet Amount":"Cantidad Apostada","Win Amount":"Cantidad Ganada",Stake:"Apuesta",Description:"Descripción","Bet Part":"Parte de la Apuesta","Bet Type":"Tipo de Apuesta","Free Bet":"Apuesta Gratis","Win Type":"Tipo de Ganancia","Play Type":"Tipo de reproducción","Bet Adjustment":"Ajuste de Apuesta","Bet ID":"ID de Apuesta",Price:"Precio",Selection:"Selección",Market:"Mercado",Sport:"Deporte",Multiple:"Múltiple",Winnings:"Ganancias"},pt:{headerTitle:"Transações Históricas",Casino:"Cassino",Sports:"Esportes",Payments:"Pagamentos",dateFrom:"Período De",dateTo:"Período Até",dateFilter:"Filtrar",InvalidSession:"A sessão que você está usando é inválida, por favor verifique.",checkPeriod:"Por favor selecione outro período para ver os dados.",Type:"Tipo",Status:"Status",Amount:"Quantia",Currency:"Moeda",Date:"Data","Game Name":"Nome do Jogo","Transaction ID":"ID da Transação","Bet Amount":"Quantia Apostada","Win Amount":"Quantia Ganha",Stake:"Aposta",Description:"Descrição","Bet Part":"Parte da Aposta","Bet Type":"Tipo de Aposta","Free Bet":"Aposta Grátis","Win Type":"Tipo de Ganho","Play Type":"Tipo de reprodução","Bet Adjustment":"Ajuste de Aposta","Bet ID":"ID da Aposta",Price:"Preço",Selection:"Seleção",Market:"Mercado",Sport:"Esporte",Multiple:"Múltiplo",Winnings:"Ganhos"},hr:{headerTitle:"Povijesne Transakcije",Casino:"Casino",Sports:"Sportovi",Payments:"Plaćanja",dateFrom:"Razdoblje Od",dateTo:"Razdoblje Do",dateFilter:"Filtriraj",InvalidSession:"Sesija koju koristite je nevažeća, molimo provjerite.",checkPeriod:"Molimo odaberite drugo razdoblje za pregled podataka.",Type:"Vrsta",Status:"Status",Amount:"Iznos",Currency:"Valuta",Date:"Datum","Game Name":"Naziv Igre","Transaction ID":"ID Transakcije","Bet Amount":"Iznos Oklade","Win Amount":"Iznos Dobitka",Stake:"Ulog",Description:"Opis","Bet Part":"Dio Oklade","Bet Type":"Vrsta Oklade","Free Bet":"Besplatna Oklada","Win Type":"Vrsta Dobitka","Play Type":"Vrsta reprodukcije","Bet Adjustment":"Prilagodba Oklade","Bet ID":"ID Oklade",Price:"Cijena",Selection:"Izbor",Market:"Tržište",Sport:"Sport",Multiple:"Višestruko",Winnings:"Dobitci"},"pt-br":{headerTitle:"Transações Históricas",Casino:"Cassino",Sports:"Esportes",Payments:"Pagamentos",dateFrom:"Período De",dateTo:"Período Até",dateFilter:"Filtrar",InvalidSession:"A sessão que você está usando é inválida, por favor verifique.",checkPeriod:"Por favor selecione outro período para ver os dados.",Type:"Tipo",Status:"Status",Amount:"Quantia",Currency:"Moeda",Date:"Data","Game Name":"Nome do Jogo","Transaction ID":"ID da Transação","Bet Amount":"Quantia Apostada","Win Amount":"Quantia Ganha",Stake:"Aposta",Description:"Descrição","Bet Part":"Parte da Aposta","Bet Type":"Tipo de Aposta","Free Bet":"Aposta Grátis","Win Type":"Tipo de Ganho","Play Type":"Tipo de reprodução","Bet Adjustment":"Ajuste de Aposta","Bet ID":"ID da Aposta",Price:"Preço",Selection:"Seleção",Market:"Mercado",Sport:"Esporte",Multiple:"Múltiplo",Winnings:"Ganhos"},"es-mx":{headerTitle:"Transacciones Históricas",Casino:"Casino",Sports:"Deportes",Payments:"Pagos",dateFrom:"Período Desde",dateTo:"Período Hasta",dateFilter:"Filtrar",InvalidSession:"La sesión que está utilizando es inválida, por favor verifique.",checkPeriod:"Por favor seleccione otro período para ver los datos.",Type:"Tipo",Status:"Estado",Amount:"Cantidad",Currency:"Moneda",Date:"Fecha","Game Name":"Nombre del Juego","Transaction ID":"ID de Transacción","Bet Amount":"Cantidad Apostada","Win Amount":"Cantidad Ganada",Stake:"Apuesta",Description:"Descripción","Bet Part":"Parte de la Apuesta","Bet Type":"Tipo de Apuesta","Free Bet":"Apuesta Gratis","Win Type":"Tipo de Ganancia","Play Type":"Tipo de reproducción","Bet Adjustment":"Ajuste de Apuesta","Bet ID":"ID de Apuesta",Price:"Precio",Selection:"Selección",Market:"Mercado",Sport:"Deporte",Multiple:"Múltiple",Winnings:"Ganancias"},tr:{headerTitle:"Geçmiş İşlemler",Casino:"Casino",Sports:"Sporlar",Payments:"Ödemeler",dateFrom:"Dönemden",dateTo:"Döneme",dateFilter:"Filtre",InvalidSession:"Kullandığınız oturum geçersiz, lütfen kontrol edin.",checkPeriod:"Verileri görmek için lütfen başka bir dönem seçin.",Type:"Tür",Status:"Durum",Amount:"Miktar",Currency:"Para Birimi",Date:"Tarih","Game Name":"Oyun Adı","Transaction ID":"İşlem ID","Bet Amount":"Bahis Miktarı","Win Amount":"Kazanç Miktarı",Stake:"Bahis",Description:"Açıklama","Bet Part":"Bahis Bölümü","Bet Type":"Bahis Türü","Free Bet":"Ücretsiz Bahis","Win Type":"Kazanç Türü","Play Type":"Oynatma Türü","Bet Adjustment":"Bahis Ayarı","Bet ID":"Bahis ID",Price:"Fiyat",Selection:"Seçim",Market:"Pazar",Sport:"Spor",Multiple:"Çoklu",Winnings:"Kazanan"},"en-us":{headerTitle:"Historical Transactions",Casino:"Casino",Sports:"Sports",Payments:"Payments",dateFrom:"Period From",dateTo:"Period To",dateFilter:"Filter",InvalidSession:"The session you are using is invalid, please check..",checkPeriod:"Please select other period in order to see data.",Type:"Type",Status:"Status",Amount:"Amount",Currency:"Currency",Date:"Date","Game Name":"Game Name",Date:"Transaction ID","Bet Amount":"Bet Amount","Win Amount":"Win Amount","Transaction ID":"Transaction ID",Stake:"Stake",Description:"Description","Bet Part":"Bet Part","Bet Type":"Bet Type","Free Bet":"Free Bet","Win Type":"Win Type","Play Type":"Play Type","Bet Adjustment":"Bet Adjustment","Bet ID":"Bet ID",Price:"Price",Selection:"Selection",Market:"Market",Sport:"Sport",Date:"Date",Sport:"Sport",Sport:"Sport",Multiple:"Multiple",Winnings:"Winnings"}};var Rl={exports:{}};(function(r,e){(function(t,i){r.exports=i()})(ml,function(){var t=1e3,i=6e4,o=36e5,n="millisecond",s="second",a="minute",l="hour",h="day",d="week",c="month",u="quarter",m="year",g="date",_="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,D=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,A={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(B){var w=["th","st","nd","rd"],C=B%100;return"["+B+(w[(C-20)%10]||w[C]||w[0])+"]"}},M=function(B,w,C){var T=String(B);return!T||T.length>=w?B:""+Array(w+1-T.length).join(C)+B},R={s:M,z:function(B){var w=-B.utcOffset(),C=Math.abs(w),T=Math.floor(C/60),x=C%60;return(w<=0?"+":"-")+M(T,2,"0")+":"+M(x,2,"0")},m:function B(w,C){if(w.date()<C.date())return-B(C,w);var T=12*(C.year()-w.year())+(C.month()-w.month()),x=w.clone().add(T,c),N=C-x<0,z=w.clone().add(T+(N?-1:1),c);return+(-(T+(C-x)/(N?x-z:z-x))||0)},a:function(B){return B<0?Math.ceil(B)||0:Math.floor(B)},p:function(B){return{M:c,y:m,w:d,d:h,D:g,h:l,m:a,s,ms:n,Q:u}[B]||String(B||"").toLowerCase().replace(/s$/,"")},u:function(B){return B===void 0}},W="en",Q={};Q[W]=A;var S="$isDayjsObject",P=function(B){return B instanceof he||!(!B||!B[S])},b=function B(w,C,T){var x;if(!w)return W;if(typeof w=="string"){var N=w.toLowerCase();Q[N]&&(x=N),C&&(Q[N]=C,x=N);var z=w.split("-");if(!x&&z.length>1)return B(z[0])}else{var V=w.name;Q[V]=w,x=V}return!T&&x&&(W=x),x||!T&&W},O=function(B,w){if(P(B))return B.clone();var C=typeof w=="object"?w:{};return C.date=B,C.args=arguments,new he(C)},$=R;$.l=b,$.i=P,$.w=function(B,w){return O(B,{locale:w.$L,utc:w.$u,x:w.$x,$offset:w.$offset})};var he=function(){function B(C){this.$L=b(C.locale,null,!0),this.parse(C),this.$x=this.$x||C.x||{},this[S]=!0}var w=B.prototype;return w.parse=function(C){this.$d=function(T){var x=T.date,N=T.utc;if(x===null)return new Date(NaN);if($.u(x))return new Date;if(x instanceof Date)return new Date(x);if(typeof x=="string"&&!/Z$/i.test(x)){var z=x.match(y);if(z){var V=z[2]-1||0,q=(z[7]||"0").substring(0,3);return N?new Date(Date.UTC(z[1],V,z[3]||1,z[4]||0,z[5]||0,z[6]||0,q)):new Date(z[1],V,z[3]||1,z[4]||0,z[5]||0,z[6]||0,q)}}return new Date(x)}(C),this.init()},w.init=function(){var C=this.$d;this.$y=C.getFullYear(),this.$M=C.getMonth(),this.$D=C.getDate(),this.$W=C.getDay(),this.$H=C.getHours(),this.$m=C.getMinutes(),this.$s=C.getSeconds(),this.$ms=C.getMilliseconds()},w.$utils=function(){return $},w.isValid=function(){return this.$d.toString()!==_},w.isSame=function(C,T){var x=O(C);return this.startOf(T)<=x&&x<=this.endOf(T)},w.isAfter=function(C,T){return O(C)<this.startOf(T)},w.isBefore=function(C,T){return this.endOf(T)<O(C)},w.$g=function(C,T,x){return $.u(C)?this[T]:this.set(x,C)},w.unix=function(){return Math.floor(this.valueOf()/1e3)},w.valueOf=function(){return this.$d.getTime()},w.startOf=function(C,T){var x=this,N=!!$.u(T)||T,z=$.p(C),V=function(be,ue){var fe=$.w(x.$u?Date.UTC(x.$y,ue,be):new Date(x.$y,ue,be),x);return N?fe:fe.endOf(h)},q=function(be,ue){return $.w(x.toDate()[be].apply(x.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(ue)),x)},oe=this.$W,ne=this.$M,se=this.$D,we="set"+(this.$u?"UTC":"");switch(z){case m:return N?V(1,0):V(31,11);case c:return N?V(1,ne):V(0,ne+1);case d:var ce=this.$locale().weekStart||0,Oe=(oe<ce?oe+7:oe)-ce;return V(N?se-Oe:se+(6-Oe),ne);case h:case g:return q(we+"Hours",0);case l:return q(we+"Minutes",1);case a:return q(we+"Seconds",2);case s:return q(we+"Milliseconds",3);default:return this.clone()}},w.endOf=function(C){return this.startOf(C,!1)},w.$set=function(C,T){var x,N=$.p(C),z="set"+(this.$u?"UTC":""),V=(x={},x[h]=z+"Date",x[g]=z+"Date",x[c]=z+"Month",x[m]=z+"FullYear",x[l]=z+"Hours",x[a]=z+"Minutes",x[s]=z+"Seconds",x[n]=z+"Milliseconds",x)[N],q=N===h?this.$D+(T-this.$W):T;if(N===c||N===m){var oe=this.clone().set(g,1);oe.$d[V](q),oe.init(),this.$d=oe.set(g,Math.min(this.$D,oe.daysInMonth())).$d}else V&&this.$d[V](q);return this.init(),this},w.set=function(C,T){return this.clone().$set(C,T)},w.get=function(C){return this[$.p(C)]()},w.add=function(C,T){var x,N=this;C=Number(C);var z=$.p(T),V=function(ne){var se=O(N);return $.w(se.date(se.date()+Math.round(ne*C)),N)};if(z===c)return this.set(c,this.$M+C);if(z===m)return this.set(m,this.$y+C);if(z===h)return V(1);if(z===d)return V(7);var q=(x={},x[a]=i,x[l]=o,x[s]=t,x)[z]||1,oe=this.$d.getTime()+C*q;return $.w(oe,this)},w.subtract=function(C,T){return this.add(-1*C,T)},w.format=function(C){var T=this,x=this.$locale();if(!this.isValid())return x.invalidDate||_;var N=C||"YYYY-MM-DDTHH:mm:ssZ",z=$.z(this),V=this.$H,q=this.$m,oe=this.$M,ne=x.weekdays,se=x.months,we=x.meridiem,ce=function(ue,fe,ke,ze){return ue&&(ue[fe]||ue(T,N))||ke[fe].slice(0,ze)},Oe=function(ue){return $.s(V%12||12,ue,"0")},be=we||function(ue,fe,ke){var ze=ue<12?"AM":"PM";return ke?ze.toLowerCase():ze};return N.replace(D,function(ue,fe){return fe||function(ke){switch(ke){case"YY":return String(T.$y).slice(-2);case"YYYY":return $.s(T.$y,4,"0");case"M":return oe+1;case"MM":return $.s(oe+1,2,"0");case"MMM":return ce(x.monthsShort,oe,se,3);case"MMMM":return ce(se,oe);case"D":return T.$D;case"DD":return $.s(T.$D,2,"0");case"d":return String(T.$W);case"dd":return ce(x.weekdaysMin,T.$W,ne,2);case"ddd":return ce(x.weekdaysShort,T.$W,ne,3);case"dddd":return ne[T.$W];case"H":return String(V);case"HH":return $.s(V,2,"0");case"h":return Oe(1);case"hh":return Oe(2);case"a":return be(V,q,!0);case"A":return be(V,q,!1);case"m":return String(q);case"mm":return $.s(q,2,"0");case"s":return String(T.$s);case"ss":return $.s(T.$s,2,"0");case"SSS":return $.s(T.$ms,3,"0");case"Z":return z}return null}(ue)||z.replace(":","")})},w.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},w.diff=function(C,T,x){var N,z=this,V=$.p(T),q=O(C),oe=(q.utcOffset()-this.utcOffset())*i,ne=this-q,se=function(){return $.m(z,q)};switch(V){case m:N=se()/12;break;case c:N=se();break;case u:N=se()/3;break;case d:N=(ne-oe)/6048e5;break;case h:N=(ne-oe)/864e5;break;case l:N=ne/o;break;case a:N=ne/i;break;case s:N=ne/t;break;default:N=ne}return x?N:$.a(N)},w.daysInMonth=function(){return this.endOf(c).$D},w.$locale=function(){return Q[this.$L]},w.locale=function(C,T){if(!C)return this.$L;var x=this.clone(),N=b(C,T,!0);return N&&(x.$L=N),x},w.clone=function(){return $.w(this.$d,this)},w.toDate=function(){return new Date(this.valueOf())},w.toJSON=function(){return this.isValid()?this.toISOString():null},w.toISOString=function(){return this.$d.toISOString()},w.toString=function(){return this.$d.toUTCString()},B}(),de=he.prototype;return O.prototype=de,[["$ms",n],["$s",s],["$m",a],["$H",l],["$W",h],["$M",c],["$y",m],["$D",g]].forEach(function(B){de[B[1]]=function(w){return this.$g(w,B[0],B[1])}}),O.extend=function(B,w){return B.$i||(B(w,he,O),B.$i=!0),O},O.locale=b,O.isDayjs=P,O.unix=function(B){return O(1e3*B)},O.en=Q[W],O.Ls=Q,O.p={},O})})(Rl);var bp=Rl.exports;const hi=Sn(bp);var Fl={exports:{}};(function(r,e){(function(t,i){r.exports=i()})(ml,function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},i=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,n=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,a={},l=function(_){return(_=+_)+(_>68?1900:2e3)},h=function(_){return function(y){this[_]=+y}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(_){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var D=y.match(/([+-]|\d\d)/g),A=60*D[1]+(+D[2]||0);return A===0?0:D[0]==="+"?-A:A}(_)}],c=function(_){var y=a[_];return y&&(y.indexOf?y:y.s.concat(y.f))},u=function(_,y){var D,A=a.meridiem;if(A){for(var M=1;M<=24;M+=1)if(_.indexOf(A(M,0,y))>-1){D=M>12;break}}else D=_===(y?"pm":"PM");return D},m={A:[s,function(_){this.afternoon=u(_,!1)}],a:[s,function(_){this.afternoon=u(_,!0)}],S:[/\d/,function(_){this.milliseconds=100*+_}],SS:[o,function(_){this.milliseconds=10*+_}],SSS:[/\d{3}/,function(_){this.milliseconds=+_}],s:[n,h("seconds")],ss:[n,h("seconds")],m:[n,h("minutes")],mm:[n,h("minutes")],H:[n,h("hours")],h:[n,h("hours")],HH:[n,h("hours")],hh:[n,h("hours")],D:[n,h("day")],DD:[o,h("day")],Do:[s,function(_){var y=a.ordinal,D=_.match(/\d+/);if(this.day=D[0],y)for(var A=1;A<=31;A+=1)y(A).replace(/\[|\]/g,"")===_&&(this.day=A)}],M:[n,h("month")],MM:[o,h("month")],MMM:[s,function(_){var y=c("months"),D=(c("monthsShort")||y.map(function(A){return A.slice(0,3)})).indexOf(_)+1;if(D<1)throw new Error;this.month=D%12||D}],MMMM:[s,function(_){var y=c("months").indexOf(_)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,h("year")],YY:[o,function(_){this.year=l(_)}],YYYY:[/\d{4}/,h("year")],Z:d,ZZ:d};function g(_){var y,D;y=_,D=a&&a.formats;for(var A=(_=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(b,O,$){var he=$&&$.toUpperCase();return O||D[$]||t[$]||D[he].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(de,B,w){return B||w.slice(1)})})).match(i),M=A.length,R=0;R<M;R+=1){var W=A[R],Q=m[W],S=Q&&Q[0],P=Q&&Q[1];A[R]=P?{regex:S,parser:P}:W.replace(/^\[|\]$/g,"")}return function(b){for(var O={},$=0,he=0;$<M;$+=1){var de=A[$];if(typeof de=="string")he+=de.length;else{var B=de.regex,w=de.parser,C=b.slice(he),T=B.exec(C)[0];w.call(O,T),b=b.replace(T,"")}}return function(x){var N=x.afternoon;if(N!==void 0){var z=x.hours;N?z<12&&(x.hours+=12):z===12&&(x.hours=0),delete x.afternoon}}(O),O}}return function(_,y,D){D.p.customParseFormat=!0,_&&_.parseTwoDigitYear&&(l=_.parseTwoDigitYear);var A=y.prototype,M=A.parse;A.parse=function(R){var W=R.date,Q=R.utc,S=R.args;this.$u=Q;var P=S[1];if(typeof P=="string"){var b=S[2]===!0,O=S[3]===!0,$=b||O,he=S[2];O&&(he=S[2]),a=this.$locale(),!b&&he&&(a=D.Ls[he]),this.$d=function(C,T,x){try{if(["x","X"].indexOf(T)>-1)return new Date((T==="X"?1e3:1)*C);var N=g(T)(C),z=N.year,V=N.month,q=N.day,oe=N.hours,ne=N.minutes,se=N.seconds,we=N.milliseconds,ce=N.zone,Oe=new Date,be=q||(z||V?1:Oe.getDate()),ue=z||Oe.getFullYear(),fe=0;z&&!V||(fe=V>0?V-1:Oe.getMonth());var ke=oe||0,ze=ne||0,Ke=se||0,dt=we||0;return ce?new Date(Date.UTC(ue,fe,be,ke,ze,Ke,dt+60*ce.offset*1e3)):x?new Date(Date.UTC(ue,fe,be,ke,ze,Ke,dt)):new Date(ue,fe,be,ke,ze,Ke,dt)}catch(tt){return new Date("")}}(W,P,Q),this.init(),he&&he!==!0&&(this.$L=this.locale(he).$L),$&&W!=this.format(P)&&(this.$d=new Date("")),a={}}else if(P instanceof Array)for(var de=P.length,B=1;B<=de;B+=1){S[1]=P[B-1];var w=D.apply(this,S);if(w.isValid()){this.$d=w.$d,this.$L=w.$L,this.init();break}B===de&&(this.$d=new Date(""))}else M.call(this,R)}}})})(Fl);var yp=Fl.exports;const xp=Sn(yp);var wp=Object.defineProperty,Cp=Object.defineProperties,Ep=Object.getOwnPropertyDescriptors,Bs=Object.getOwnPropertySymbols,Sp=Object.prototype.hasOwnProperty,Ap=Object.prototype.propertyIsEnumerable,Jo=(r,e,t)=>e in r?wp(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,ki=(r,e)=>{for(var t in e||(e={}))Sp.call(e,t)&&Jo(r,t,e[t]);if(Bs)for(var t of Bs(e))Ap.call(e,t)&&Jo(r,t,e[t]);return r},$l=(r,e)=>Cp(r,Ep(e)),Te=(r,e,t)=>(Jo(r,typeof e!="symbol"?e+"":e,t),t),Ti=(r,e,t)=>new Promise((i,o)=>{var n=l=>{try{a(t.next(l))}catch(h){o(h)}},s=l=>{try{a(t.throw(l))}catch(h){o(h)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(n,s);a((t=t.apply(r,e)).next())});/**
19
19
  * @license
20
20
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
21
21
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -23,25 +23,25 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
23
23
  * @license
24
24
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
25
25
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
26
- */class Ap extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}G(Ap);/**
26
+ */class Pp extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}G(Pp);/**
27
27
  * @license
28
28
  * Copyright 2019 Google LLC
29
29
  * SPDX-License-Identifier: BSD-3-Clause
30
- */const wi=globalThis,kn=wi.ShadowRoot&&(wi.ShadyCSS===void 0||wi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Tn=Symbol(),Ls=new WeakMap;let In=class{constructor(r,e,t){if(this._$cssResult$=!0,t!==Tn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=r,this.t=e}get styleSheet(){let r=this.o;const e=this.t;if(kn&&r===void 0){const t=e!==void 0&&e.length===1;t&&(r=Ls.get(e)),r===void 0&&((this.o=r=new CSSStyleSheet).replaceSync(this.cssText),t&&Ls.set(e,r))}return r}toString(){return this.cssText}};const Pp=r=>new In(typeof r=="string"?r:r+"",void 0,Tn),k=(r,...e)=>{const t=r.length===1?r[0]:e.reduce((i,o,n)=>i+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+r[n+1],r[0]);return new In(t,r,Tn)},$l=(r,e)=>{if(kn)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const i=document.createElement("style"),o=wi.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=t.cssText,r.appendChild(i)}},Hs=kn?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return Pp(t)})(r):r;/**
30
+ */const wi=globalThis,kn=wi.ShadowRoot&&(wi.ShadyCSS===void 0||wi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Tn=Symbol(),Ls=new WeakMap;let In=class{constructor(r,e,t){if(this._$cssResult$=!0,t!==Tn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=r,this.t=e}get styleSheet(){let r=this.o;const e=this.t;if(kn&&r===void 0){const t=e!==void 0&&e.length===1;t&&(r=Ls.get(e)),r===void 0&&((this.o=r=new CSSStyleSheet).replaceSync(this.cssText),t&&Ls.set(e,r))}return r}toString(){return this.cssText}};const kp=r=>new In(typeof r=="string"?r:r+"",void 0,Tn),k=(r,...e)=>{const t=r.length===1?r[0]:e.reduce((i,o,n)=>i+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+r[n+1],r[0]);return new In(t,r,Tn)},Vl=(r,e)=>{if(kn)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const i=document.createElement("style"),o=wi.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=t.cssText,r.appendChild(i)}},Hs=kn?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return kp(t)})(r):r;/**
31
31
  * @license
32
32
  * Copyright 2017 Google LLC
33
33
  * SPDX-License-Identifier: BSD-3-Clause
34
- */const{is:kp,defineProperty:Tp,getOwnPropertyDescriptor:Ip,getOwnPropertyNames:Dp,getOwnPropertySymbols:Op,getPrototypeOf:Mp}=Object,rr=globalThis,Rs=rr.trustedTypes,Np=Rs?Rs.emptyScript:"",Fs=rr.reactiveElementPolyfillSupport,Pr=(r,e)=>r,Qo={toAttribute(r,e){switch(e){case Boolean:r=r?Np:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch(i){t=null}}return t}},Vl=(r,e)=>!kp(r,e),$s={attribute:!0,type:String,converter:Qo,reflect:!1,useDefault:!1,hasChanged:Vl};Symbol.metadata!=null||(Symbol.metadata=Symbol("metadata")),rr.litPropertyMetadata!=null||(rr.litPropertyMetadata=new WeakMap);class Ut extends HTMLElement{static addInitializer(e){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=$s){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(e,i,t);o!==void 0&&Tp(this.prototype,e,o)}}static getPropertyDescriptor(e,t,i){var o;const{get:n,set:s}=(o=Ip(this.prototype,e))!=null?o:{get(){return this[t]},set(a){this[t]=a}};return{get:n,set(a){const l=n==null?void 0:n.call(this);s==null||s.call(this,a),this.requestUpdate(e,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return(t=this.elementProperties.get(e))!=null?t:$s}static _$Ei(){if(this.hasOwnProperty(Pr("elementProperties")))return;const e=Mp(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Pr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Pr("properties"))){const t=this.properties,i=[...Dp(t),...Op(t)];for(const o of i)this.createProperty(o,t[o])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[i,o]of t)this.elementProperties.set(i,o)}this._$Eh=new Map;for(const[t,i]of this.elementProperties){const o=this._$Eu(t,i);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const o of i)t.unshift(Hs(o))}else e!==void 0&&t.push(Hs(e));return t}static _$Eu(e,t){const i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t,i;((t=this._$EO)!=null?t:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)==null||i.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var e;const t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return $l(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostConnected)==null?void 0:i.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostDisconnected)==null?void 0:i.call(t)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$ET(e,t){var i;const o=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,o);if(n!==void 0&&o.reflect===!0){const s=(((i=o.converter)==null?void 0:i.toAttribute)!==void 0?o.converter:Qo).toAttribute(t,o.type);this._$Em=e,s==null?this.removeAttribute(n):this.setAttribute(n,s),this._$Em=null}}_$AK(e,t){var i,o,n;const s=this.constructor,a=s._$Eh.get(e);if(a!==void 0&&this._$Em!==a){const l=s.getPropertyOptions(a),h=typeof l.converter=="function"?{fromAttribute:l.converter}:((i=l.converter)==null?void 0:i.fromAttribute)!==void 0?l.converter:Qo;this._$Em=a;const d=h.fromAttribute(t,l.type);this[a]=(n=d!=null?d:(o=this._$Ej)==null?void 0:o.get(a))!=null?n:d,this._$Em=null}}requestUpdate(e,t,i){var o,n;if(e!==void 0){const s=this.constructor,a=this[e];if(i!=null||(i=s.getPropertyOptions(e)),!(((o=i.hasChanged)!=null?o:Vl)(a,t)||i.useDefault&&i.reflect&&a===((n=this._$Ej)==null?void 0:n.get(e))&&!this.hasAttribute(s._$Eu(e,i))))return;this.C(e,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:i,reflect:o,wrapped:n},s){var a,l,h;i&&!((a=this._$Ej)!=null?a:this._$Ej=new Map).has(e)&&(this._$Ej.set(e,(l=s!=null?s:t)!=null?l:this[e]),n!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(t=void 0),this._$AL.set(e,t)),o===!0&&this._$Em!==e&&((h=this._$Eq)!=null?h:this._$Eq=new Set).add(e))}_$EP(){return Ti(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&(yield e),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,s]of this._$Ep)this[n]=s;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[n,s]of o){const{wrapped:a}=s,l=this[n];a!==!0||this._$AL.has(n)||l===void 0||this.C(n,void 0,s,l)}}let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),(e=this._$EO)==null||e.forEach(o=>{var n;return(n=o.hostUpdate)==null?void 0:n.call(o)}),this.update(i)):this._$EM()}catch(o){throw t=!1,this._$EM(),o}t&&this._$AE(i)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(i=>{var o;return(o=i.hostUpdated)==null?void 0:o.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}}var Vs;Ut.elementStyles=[],Ut.shadowRootOptions={mode:"open"},Ut[Pr("elementProperties")]=new Map,Ut[Pr("finalized")]=new Map,Fs==null||Fs({ReactiveElement:Ut}),((Vs=rr.reactiveElementVersions)!=null?Vs:rr.reactiveElementVersions=[]).push("2.1.1");/**
34
+ */const{is:Tp,defineProperty:Ip,getOwnPropertyDescriptor:Dp,getOwnPropertyNames:Op,getOwnPropertySymbols:Mp,getPrototypeOf:Np}=Object,rr=globalThis,Rs=rr.trustedTypes,zp=Rs?Rs.emptyScript:"",Fs=rr.reactiveElementPolyfillSupport,Pr=(r,e)=>r,Qo={toAttribute(r,e){switch(e){case Boolean:r=r?zp:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch(i){t=null}}return t}},Wl=(r,e)=>!Tp(r,e),$s={attribute:!0,type:String,converter:Qo,reflect:!1,useDefault:!1,hasChanged:Wl};Symbol.metadata!=null||(Symbol.metadata=Symbol("metadata")),rr.litPropertyMetadata!=null||(rr.litPropertyMetadata=new WeakMap);let Ut=class extends HTMLElement{static addInitializer(r){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(r)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(r,e=$s){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(r)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(r,e),!e.noAccessor){const t=Symbol(),i=this.getPropertyDescriptor(r,t,e);i!==void 0&&Ip(this.prototype,r,i)}}static getPropertyDescriptor(r,e,t){var i;const{get:o,set:n}=(i=Dp(this.prototype,r))!=null?i:{get(){return this[e]},set(s){this[e]=s}};return{get:o,set(s){const a=o==null?void 0:o.call(this);n==null||n.call(this,s),this.requestUpdate(r,a,t)},configurable:!0,enumerable:!0}}static getPropertyOptions(r){var e;return(e=this.elementProperties.get(r))!=null?e:$s}static _$Ei(){if(this.hasOwnProperty(Pr("elementProperties")))return;const r=Np(this);r.finalize(),r.l!==void 0&&(this.l=[...r.l]),this.elementProperties=new Map(r.elementProperties)}static finalize(){if(this.hasOwnProperty(Pr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Pr("properties"))){const e=this.properties,t=[...Op(e),...Mp(e)];for(const i of t)this.createProperty(i,e[i])}const r=this[Symbol.metadata];if(r!==null){const e=litPropertyMetadata.get(r);if(e!==void 0)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const i=this._$Eu(e,t);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(r){const e=[];if(Array.isArray(r)){const t=new Set(r.flat(1/0).reverse());for(const i of t)e.unshift(Hs(i))}else r!==void 0&&e.push(Hs(r));return e}static _$Eu(r,e){const t=e.attribute;return t===!1?void 0:typeof t=="string"?t:typeof r=="string"?r.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var r;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(r=this.constructor.l)==null||r.forEach(e=>e(this))}addController(r){var e,t;((e=this._$EO)!=null?e:this._$EO=new Set).add(r),this.renderRoot!==void 0&&this.isConnected&&((t=r.hostConnected)==null||t.call(r))}removeController(r){var e;(e=this._$EO)==null||e.delete(r)}_$E_(){const r=new Map,e=this.constructor.elementProperties;for(const t of e.keys())this.hasOwnProperty(t)&&(r.set(t,this[t]),delete this[t]);r.size>0&&(this._$Ep=r)}createRenderRoot(){var r;const e=(r=this.shadowRoot)!=null?r:this.attachShadow(this.constructor.shadowRootOptions);return Vl(e,this.constructor.elementStyles),e}connectedCallback(){var r;this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(r=this._$EO)==null||r.forEach(e=>{var t;return(t=e.hostConnected)==null?void 0:t.call(e)})}enableUpdating(r){}disconnectedCallback(){var r;(r=this._$EO)==null||r.forEach(e=>{var t;return(t=e.hostDisconnected)==null?void 0:t.call(e)})}attributeChangedCallback(r,e,t){this._$AK(r,t)}_$ET(r,e){var t;const i=this.constructor.elementProperties.get(r),o=this.constructor._$Eu(r,i);if(o!==void 0&&i.reflect===!0){const n=(((t=i.converter)==null?void 0:t.toAttribute)!==void 0?i.converter:Qo).toAttribute(e,i.type);this._$Em=r,n==null?this.removeAttribute(o):this.setAttribute(o,n),this._$Em=null}}_$AK(r,e){var t,i,o;const n=this.constructor,s=n._$Eh.get(r);if(s!==void 0&&this._$Em!==s){const a=n.getPropertyOptions(s),l=typeof a.converter=="function"?{fromAttribute:a.converter}:((t=a.converter)==null?void 0:t.fromAttribute)!==void 0?a.converter:Qo;this._$Em=s;const h=l.fromAttribute(e,a.type);this[s]=(o=h!=null?h:(i=this._$Ej)==null?void 0:i.get(s))!=null?o:h,this._$Em=null}}requestUpdate(r,e,t,i=!1,o){var n,s;if(r!==void 0){const a=this.constructor;if(i===!1&&(o=this[r]),t!=null||(t=a.getPropertyOptions(r)),!(((n=t.hasChanged)!=null?n:Wl)(o,e)||t.useDefault&&t.reflect&&o===((s=this._$Ej)==null?void 0:s.get(r))&&!this.hasAttribute(a._$Eu(r,t))))return;this.C(r,e,t)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(r,e,{useDefault:t,reflect:i,wrapped:o},n){var s,a,l;t&&!((s=this._$Ej)!=null?s:this._$Ej=new Map).has(r)&&(this._$Ej.set(r,(a=n!=null?n:e)!=null?a:this[r]),o!==!0||n!==void 0)||(this._$AL.has(r)||(this.hasUpdated||t||(e=void 0),this._$AL.set(r,e)),i===!0&&this._$Em!==r&&((l=this._$Eq)!=null?l:this._$Eq=new Set).add(r))}_$EP(){return Ti(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(e){Promise.reject(e)}const r=this.scheduleUpdate();return r!=null&&(yield r),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,n]of this._$Ep)this[o]=n;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[o,n]of i){const{wrapped:s}=n,a=this[o];s!==!0||this._$AL.has(o)||a===void 0||this.C(o,void 0,n,a)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(r=this._$EO)==null||r.forEach(i=>{var o;return(o=i.hostUpdate)==null?void 0:o.call(i)}),this.update(t)):this._$EM()}catch(i){throw e=!1,this._$EM(),i}e&&this._$AE(t)}willUpdate(r){}_$AE(r){var e;(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostUpdated)==null?void 0:i.call(t)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(r)),this.updated(r)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(r){return!0}update(r){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(r){}firstUpdated(r){}};var Vs;Ut.elementStyles=[],Ut.shadowRootOptions={mode:"open"},Ut[Pr("elementProperties")]=new Map,Ut[Pr("finalized")]=new Map,Fs==null||Fs({ReactiveElement:Ut}),((Vs=rr.reactiveElementVersions)!=null?Vs:rr.reactiveElementVersions=[]).push("2.1.2");/**
35
35
  * @license
36
36
  * Copyright 2017 Google LLC
37
37
  * SPDX-License-Identifier: BSD-3-Clause
38
- */const Ii=globalThis,Di=Ii.trustedTypes,Ws=Di?Di.createPolicy("lit-html",{createHTML:r=>r}):void 0,Wl="$lit$",vt=`lit$${Math.random().toFixed(9).slice(2)}$`,jl="?"+vt,zp=`<${jl}>`,Nt=document,Or=()=>Nt.createComment(""),Mr=r=>r===null||typeof r!="object"&&typeof r!="function",Dn=Array.isArray,Bp=r=>Dn(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",yo=`[
39
- \f\r]`,gr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,js=/-->/g,Us=/>/g,Tt=RegExp(`>|${yo}(?:([^\\s"'>=/]+)(${yo}*=${yo}*(?:[^
40
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Gs=/'/g,qs=/"/g,Ul=/^(?:script|style|textarea|title)$/i,ir=Symbol.for("lit-noChange"),Se=Symbol.for("lit-nothing"),Ys=new WeakMap,Dt=Nt.createTreeWalker(Nt,129);function Gl(r,e){if(!Dn(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ws!==void 0?Ws.createHTML(e):e}const Lp=(r,e)=>{const t=r.length-1,i=[];let o,n=e===2?"<svg>":e===3?"<math>":"",s=gr;for(let a=0;a<t;a++){const l=r[a];let h,d,c=-1,u=0;for(;u<l.length&&(s.lastIndex=u,d=s.exec(l),d!==null);)u=s.lastIndex,s===gr?d[1]==="!--"?s=js:d[1]!==void 0?s=Us:d[2]!==void 0?(Ul.test(d[2])&&(o=RegExp("</"+d[2],"g")),s=Tt):d[3]!==void 0&&(s=Tt):s===Tt?d[0]===">"?(s=o!=null?o:gr,c=-1):d[1]===void 0?c=-2:(c=s.lastIndex-d[2].length,h=d[1],s=d[3]===void 0?Tt:d[3]==='"'?qs:Gs):s===qs||s===Gs?s=Tt:s===js||s===Us?s=gr:(s=Tt,o=void 0);const m=s===Tt&&r[a+1].startsWith("/>")?" ":"";n+=s===gr?l+zp:c>=0?(i.push(h),l.slice(0,c)+Wl+l.slice(c)+vt+m):l+vt+(c===-2?a:m)}return[Gl(r,n+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]};class Nr{constructor({strings:e,_$litType$:t},i){let o;this.parts=[];let n=0,s=0;const a=e.length-1,l=this.parts,[h,d]=Lp(e,t);if(this.el=Nr.createElement(h,i),Dt.currentNode=this.el.content,t===2||t===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(o=Dt.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(const c of o.getAttributeNames())if(c.endsWith(Wl)){const u=d[s++],m=o.getAttribute(c).split(vt),g=/([.?@])?(.*)/.exec(u);l.push({type:1,index:n,name:g[2],strings:m,ctor:g[1]==="."?Rp:g[1]==="?"?Fp:g[1]==="@"?$p:Yi}),o.removeAttribute(c)}else c.startsWith(vt)&&(l.push({type:6,index:n}),o.removeAttribute(c));if(Ul.test(o.tagName)){const c=o.textContent.split(vt),u=c.length-1;if(u>0){o.textContent=Di?Di.emptyScript:"";for(let m=0;m<u;m++)o.append(c[m],Or()),Dt.nextNode(),l.push({type:2,index:++n});o.append(c[u],Or())}}}else if(o.nodeType===8)if(o.data===jl)l.push({type:2,index:n});else{let c=-1;for(;(c=o.data.indexOf(vt,c+1))!==-1;)l.push({type:7,index:n}),c+=vt.length-1}n++}}static createElement(e,t){const i=Nt.createElement("template");return i.innerHTML=e,i}}function or(r,e,t=r,i){var o,n,s;if(e===ir)return e;let a=i!==void 0?(o=t._$Co)==null?void 0:o[i]:t._$Cl;const l=Mr(e)?void 0:e._$litDirective$;return(a==null?void 0:a.constructor)!==l&&((n=a==null?void 0:a._$AO)==null||n.call(a,!1),l===void 0?a=void 0:(a=new l(r),a._$AT(r,t,i)),i!==void 0?((s=t._$Co)!=null?s:t._$Co=[])[i]=a:t._$Cl=a),a!==void 0&&(e=or(r,a._$AS(r,e.values),a,i)),e}class Hp{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:i},parts:o}=this._$AD,n=((t=e==null?void 0:e.creationScope)!=null?t:Nt).importNode(i,!0);Dt.currentNode=n;let s=Dt.nextNode(),a=0,l=0,h=o[0];for(;h!==void 0;){if(a===h.index){let d;h.type===2?d=new Gr(s,s.nextSibling,this,e):h.type===1?d=new h.ctor(s,h.name,h.strings,this,e):h.type===6&&(d=new Vp(s,this,e)),this._$AV.push(d),h=o[++l]}a!==(h==null?void 0:h.index)&&(s=Dt.nextNode(),a++)}return Dt.currentNode=Nt,n}p(e){let t=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class Gr{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this._$Cv}constructor(e,t,i,o){var n;this.type=2,this._$AH=Se,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=o,this._$Cv=(n=o==null?void 0:o.isConnected)!=null?n:!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=or(this,e,t),Mr(e)?e===Se||e==null||e===""?(this._$AH!==Se&&this._$AR(),this._$AH=Se):e!==this._$AH&&e!==ir&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Bp(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Se&&Mr(this._$AH)?this._$AA.nextSibling.data=e:this.T(Nt.createTextNode(e)),this._$AH=e}$(e){var t;const{values:i,_$litType$:o}=e,n=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Nr.createElement(Gl(o.h,o.h[0]),this.options)),o);if(((t=this._$AH)==null?void 0:t._$AD)===n)this._$AH.p(i);else{const s=new Hp(n,this),a=s.u(this.options);s.p(i),this.T(a),this._$AH=s}}_$AC(e){let t=Ys.get(e.strings);return t===void 0&&Ys.set(e.strings,t=new Nr(e)),t}k(e){Dn(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,o=0;for(const n of e)o===t.length?t.push(i=new Gr(this.O(Or()),this.O(Or()),this,this.options)):i=t[o],i._$AI(n),o++;o<t.length&&(this._$AR(i&&i._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,t);e!==this._$AB;){const o=e.nextSibling;e.remove(),e=o}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class Yi{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,o,n){this.type=1,this._$AH=Se,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Se}_$AI(e,t=this,i,o){const n=this.strings;let s=!1;if(n===void 0)e=or(this,e,t,0),s=!Mr(e)||e!==this._$AH&&e!==ir,s&&(this._$AH=e);else{const a=e;let l,h;for(e=n[0],l=0;l<n.length-1;l++)h=or(this,a[i+l],t,l),h===ir&&(h=this._$AH[l]),s||(s=!Mr(h)||h!==this._$AH[l]),h===Se?e=Se:e!==Se&&(e+=(h!=null?h:"")+n[l+1]),this._$AH[l]=h}s&&!o&&this.j(e)}j(e){e===Se?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class Rp extends Yi{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Se?void 0:e}}class Fp extends Yi{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Se)}}class $p extends Yi{constructor(e,t,i,o,n){super(e,t,i,o,n),this.type=5}_$AI(e,t=this){var i;if((e=(i=or(this,e,t,0))!=null?i:Se)===ir)return;const o=this._$AH,n=e===Se&&o!==Se||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,s=e!==Se&&(o===Se||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;typeof this._$AH=="function"?this._$AH.call((i=(t=this.options)==null?void 0:t.host)!=null?i:this.element,e):this._$AH.handleEvent(e)}}class Vp{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){or(this,e)}}const Xs=Ii.litHtmlPolyfillSupport;var Ks;Xs==null||Xs(Nr,Gr),((Ks=Ii.litHtmlVersions)!=null?Ks:Ii.litHtmlVersions=[]).push("3.3.1");const ql=(r,e,t)=>{var i,o;const n=(i=t==null?void 0:t.renderBefore)!=null?i:e;let s=n._$litPart$;if(s===void 0){const a=(o=t==null?void 0:t.renderBefore)!=null?o:null;n._$litPart$=s=new Gr(e.insertBefore(Or(),a),a,void 0,t!=null?t:{})}return s._$AI(r),s};/**
38
+ */const Ii=globalThis,Ws=r=>r,Di=Ii.trustedTypes,js=Di?Di.createPolicy("lit-html",{createHTML:r=>r}):void 0,jl="$lit$",vt=`lit$${Math.random().toFixed(9).slice(2)}$`,Ul="?"+vt,Bp=`<${Ul}>`,Nt=document,Or=()=>Nt.createComment(""),Mr=r=>r===null||typeof r!="object"&&typeof r!="function",Dn=Array.isArray,Lp=r=>Dn(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",yo=`[
39
+ \f\r]`,gr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Us=/-->/g,Gs=/>/g,Tt=RegExp(`>|${yo}(?:([^\\s"'>=/]+)(${yo}*=${yo}*(?:[^
40
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),qs=/'/g,Ys=/"/g,Gl=/^(?:script|style|textarea|title)$/i,ir=Symbol.for("lit-noChange"),Se=Symbol.for("lit-nothing"),Xs=new WeakMap,Dt=Nt.createTreeWalker(Nt,129);function ql(r,e){if(!Dn(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return js!==void 0?js.createHTML(e):e}const Hp=(r,e)=>{const t=r.length-1,i=[];let o,n=e===2?"<svg>":e===3?"<math>":"",s=gr;for(let a=0;a<t;a++){const l=r[a];let h,d,c=-1,u=0;for(;u<l.length&&(s.lastIndex=u,d=s.exec(l),d!==null);)u=s.lastIndex,s===gr?d[1]==="!--"?s=Us:d[1]!==void 0?s=Gs:d[2]!==void 0?(Gl.test(d[2])&&(o=RegExp("</"+d[2],"g")),s=Tt):d[3]!==void 0&&(s=Tt):s===Tt?d[0]===">"?(s=o!=null?o:gr,c=-1):d[1]===void 0?c=-2:(c=s.lastIndex-d[2].length,h=d[1],s=d[3]===void 0?Tt:d[3]==='"'?Ys:qs):s===Ys||s===qs?s=Tt:s===Us||s===Gs?s=gr:(s=Tt,o=void 0);const m=s===Tt&&r[a+1].startsWith("/>")?" ":"";n+=s===gr?l+Bp:c>=0?(i.push(h),l.slice(0,c)+jl+l.slice(c)+vt+m):l+vt+(c===-2?a:m)}return[ql(r,n+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]};class Nr{constructor({strings:e,_$litType$:t},i){let o;this.parts=[];let n=0,s=0;const a=e.length-1,l=this.parts,[h,d]=Hp(e,t);if(this.el=Nr.createElement(h,i),Dt.currentNode=this.el.content,t===2||t===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(o=Dt.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(const c of o.getAttributeNames())if(c.endsWith(jl)){const u=d[s++],m=o.getAttribute(c).split(vt),g=/([.?@])?(.*)/.exec(u);l.push({type:1,index:n,name:g[2],strings:m,ctor:g[1]==="."?Fp:g[1]==="?"?$p:g[1]==="@"?Vp:Yi}),o.removeAttribute(c)}else c.startsWith(vt)&&(l.push({type:6,index:n}),o.removeAttribute(c));if(Gl.test(o.tagName)){const c=o.textContent.split(vt),u=c.length-1;if(u>0){o.textContent=Di?Di.emptyScript:"";for(let m=0;m<u;m++)o.append(c[m],Or()),Dt.nextNode(),l.push({type:2,index:++n});o.append(c[u],Or())}}}else if(o.nodeType===8)if(o.data===Ul)l.push({type:2,index:n});else{let c=-1;for(;(c=o.data.indexOf(vt,c+1))!==-1;)l.push({type:7,index:n}),c+=vt.length-1}n++}}static createElement(e,t){const i=Nt.createElement("template");return i.innerHTML=e,i}}function or(r,e,t=r,i){var o,n,s;if(e===ir)return e;let a=i!==void 0?(o=t._$Co)==null?void 0:o[i]:t._$Cl;const l=Mr(e)?void 0:e._$litDirective$;return(a==null?void 0:a.constructor)!==l&&((n=a==null?void 0:a._$AO)==null||n.call(a,!1),l===void 0?a=void 0:(a=new l(r),a._$AT(r,t,i)),i!==void 0?((s=t._$Co)!=null?s:t._$Co=[])[i]=a:t._$Cl=a),a!==void 0&&(e=or(r,a._$AS(r,e.values),a,i)),e}class Rp{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:i},parts:o}=this._$AD,n=((t=e==null?void 0:e.creationScope)!=null?t:Nt).importNode(i,!0);Dt.currentNode=n;let s=Dt.nextNode(),a=0,l=0,h=o[0];for(;h!==void 0;){if(a===h.index){let d;h.type===2?d=new Gr(s,s.nextSibling,this,e):h.type===1?d=new h.ctor(s,h.name,h.strings,this,e):h.type===6&&(d=new Wp(s,this,e)),this._$AV.push(d),h=o[++l]}a!==(h==null?void 0:h.index)&&(s=Dt.nextNode(),a++)}return Dt.currentNode=Nt,n}p(e){let t=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class Gr{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this._$Cv}constructor(e,t,i,o){var n;this.type=2,this._$AH=Se,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=o,this._$Cv=(n=o==null?void 0:o.isConnected)!=null?n:!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=or(this,e,t),Mr(e)?e===Se||e==null||e===""?(this._$AH!==Se&&this._$AR(),this._$AH=Se):e!==this._$AH&&e!==ir&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Lp(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Se&&Mr(this._$AH)?this._$AA.nextSibling.data=e:this.T(Nt.createTextNode(e)),this._$AH=e}$(e){var t;const{values:i,_$litType$:o}=e,n=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Nr.createElement(ql(o.h,o.h[0]),this.options)),o);if(((t=this._$AH)==null?void 0:t._$AD)===n)this._$AH.p(i);else{const s=new Rp(n,this),a=s.u(this.options);s.p(i),this.T(a),this._$AH=s}}_$AC(e){let t=Xs.get(e.strings);return t===void 0&&Xs.set(e.strings,t=new Nr(e)),t}k(e){Dn(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,o=0;for(const n of e)o===t.length?t.push(i=new Gr(this.O(Or()),this.O(Or()),this,this.options)):i=t[o],i._$AI(n),o++;o<t.length&&(this._$AR(i&&i._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,t);e!==this._$AB;){const o=Ws(e).nextSibling;Ws(e).remove(),e=o}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class Yi{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,o,n){this.type=1,this._$AH=Se,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Se}_$AI(e,t=this,i,o){const n=this.strings;let s=!1;if(n===void 0)e=or(this,e,t,0),s=!Mr(e)||e!==this._$AH&&e!==ir,s&&(this._$AH=e);else{const a=e;let l,h;for(e=n[0],l=0;l<n.length-1;l++)h=or(this,a[i+l],t,l),h===ir&&(h=this._$AH[l]),s||(s=!Mr(h)||h!==this._$AH[l]),h===Se?e=Se:e!==Se&&(e+=(h!=null?h:"")+n[l+1]),this._$AH[l]=h}s&&!o&&this.j(e)}j(e){e===Se?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class Fp extends Yi{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Se?void 0:e}}class $p extends Yi{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Se)}}class Vp extends Yi{constructor(e,t,i,o,n){super(e,t,i,o,n),this.type=5}_$AI(e,t=this){var i;if((e=(i=or(this,e,t,0))!=null?i:Se)===ir)return;const o=this._$AH,n=e===Se&&o!==Se||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,s=e!==Se&&(o===Se||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;typeof this._$AH=="function"?this._$AH.call((i=(t=this.options)==null?void 0:t.host)!=null?i:this.element,e):this._$AH.handleEvent(e)}}class Wp{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){or(this,e)}}const Ks=Ii.litHtmlPolyfillSupport;var Zs;Ks==null||Ks(Nr,Gr),((Zs=Ii.litHtmlVersions)!=null?Zs:Ii.litHtmlVersions=[]).push("3.3.2");const Yl=(r,e,t)=>{var i,o;const n=(i=t==null?void 0:t.renderBefore)!=null?i:e;let s=n._$litPart$;if(s===void 0){const a=(o=t==null?void 0:t.renderBefore)!=null?o:null;n._$litPart$=s=new Gr(e.insertBefore(Or(),a),a,void 0,t!=null?t:{})}return s._$AI(r),s};/**
41
41
  * @license
42
42
  * Copyright 2017 Google LLC
43
43
  * SPDX-License-Identifier: BSD-3-Clause
44
- */const zr=globalThis;class qt extends Ut{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore!=null||(e.renderBefore=t.firstChild),t}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ql(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return ir}}var Zs;qt._$litElement$=!0,qt.finalized=!0,(Zs=zr.litElementHydrateSupport)==null||Zs.call(zr,{LitElement:qt});const Js=zr.litElementPolyfillSupport;Js==null||Js({LitElement:qt});var Qs;((Qs=zr.litElementVersions)!=null?Qs:zr.litElementVersions=[]).push("4.2.1");/**
44
+ */const zr=globalThis;class qt extends Ut{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore!=null||(e.renderBefore=t.firstChild),t}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Yl(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return ir}}var Js;qt._$litElement$=!0,qt.finalized=!0,(Js=zr.litElementHydrateSupport)==null||Js.call(zr,{LitElement:qt});const Qs=zr.litElementPolyfillSupport;Qs==null||Qs({LitElement:qt});var ea;((ea=zr.litElementVersions)!=null?ea:zr.litElementVersions=[]).push("4.2.2");/**
45
45
  * @license
46
46
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
47
47
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -49,17 +49,17 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
49
49
  * @license
50
50
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
51
51
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
52
- */const Yl=[],en=new Set,On=new Set;function Xl(r){return r&&Object.prototype.hasOwnProperty.call(r,"__themes")}function Wp(r){return Xl(customElements.get(r))}function jp(r=[]){return[r].flat(1/0).filter(e=>e instanceof In?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function Kl(r,e){return(r||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function Zl(r){return r.map(e=>e.cssText).join(`
53
- `)}const Oi="vaadin-themable-mixin-style";function Up(r,e){const t=document.createElement("style");t.id=Oi,t.textContent=Zl(r),e.content.appendChild(t)}function Gp(r){if(!r.shadowRoot)return;const e=r.constructor;if(r instanceof qt)[...r.shadowRoot.querySelectorAll("style")].forEach(t=>t.remove()),$l(r.shadowRoot,e.elementStyles);else{const t=r.shadowRoot.getElementById(Oi),i=e.prototype._template;t.textContent=i.content.getElementById(Oi).textContent}}function qp(r){en.forEach(e=>{const t=e.deref();t instanceof r?Gp(t):t||en.delete(e)})}function Jl(r){if(r.prototype instanceof qt)r.elementStyles=r.finalizeStyles(r.styles);else{const e=r.prototype._template;e.content.getElementById(Oi).textContent=Zl(r.getStylesForThis())}On.forEach(e=>{const t=customElements.get(e);t!==r&&t.prototype instanceof r&&Jl(t)})}function Yp(r,e){const t=r.__themes;return!t||!e?!1:t.some(i=>i.styles.some(o=>e.some(n=>n.cssText===o.cssText)))}function L(r,e,t={}){e=jp(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(r,e,t):Yl.push({themeFor:r,styles:e,include:t.include,moduleId:t.moduleId}),r&&On.forEach(i=>{if(Kl(r,i)&&Wp(i)){const o=customElements.get(i);Yp(o,e)?console.warn(`Registering styles that already exist for ${i}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${i}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`),Jl(o),qp(o)}})}function tn(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Yl}function Xp(r=""){let e=0;return r.startsWith("lumo-")||r.startsWith("material-")?e=1:r.startsWith("vaadin-")&&(e=2),e}function Ql(r){const e=[];return r.include&&[].concat(r.include).forEach(t=>{const i=tn().find(o=>o.moduleId===t);i?e.push(...Ql(i),...i.styles):console.warn(`Included moduleId ${t} not found in style registry`)},r.styles),e}function Kp(r){const e=`${r}-default-theme`,t=tn().filter(i=>i.moduleId!==e&&Kl(i.themeFor,r)).map(i=>Fl(ki({},i),{styles:[...Ql(i),...i.styles],includePriority:Xp(i.moduleId)})).sort((i,o)=>o.includePriority-i.includePriority);return t.length>0?t:tn().filter(i=>i.moduleId===e)}const le=r=>class extends Xi(r){constructor(){super(),en.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&On.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||Xl(this)||Up(this.getStylesForThis(),e)}static finalizeStyles(e){const t=this.getStylesForThis();return e?[...[e].flat(1/0),...t]:t}static getStylesForThis(){const e=r.__themes||[],t=Object.getPrototypeOf(this.prototype),i=(t?t.constructor.__themes:[])||[];this.__themes=[...e,...i,...Kp(this.is)];const o=this.__themes.flatMap(n=>n.styles);return o.filter((n,s)=>s===o.lastIndexOf(n))}};/**
52
+ */const Xl=[],en=new Set,On=new Set;function Kl(r){return r&&Object.prototype.hasOwnProperty.call(r,"__themes")}function jp(r){return Kl(customElements.get(r))}function Up(r=[]){return[r].flat(1/0).filter(e=>e instanceof In?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function Zl(r,e){return(r||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function Jl(r){return r.map(e=>e.cssText).join(`
53
+ `)}const Oi="vaadin-themable-mixin-style";function Gp(r,e){const t=document.createElement("style");t.id=Oi,t.textContent=Jl(r),e.content.appendChild(t)}function qp(r){if(!r.shadowRoot)return;const e=r.constructor;if(r instanceof qt)[...r.shadowRoot.querySelectorAll("style")].forEach(t=>t.remove()),Vl(r.shadowRoot,e.elementStyles);else{const t=r.shadowRoot.getElementById(Oi),i=e.prototype._template;t.textContent=i.content.getElementById(Oi).textContent}}function Yp(r){en.forEach(e=>{const t=e.deref();t instanceof r?qp(t):t||en.delete(e)})}function Ql(r){if(r.prototype instanceof qt)r.elementStyles=r.finalizeStyles(r.styles);else{const e=r.prototype._template;e.content.getElementById(Oi).textContent=Jl(r.getStylesForThis())}On.forEach(e=>{const t=customElements.get(e);t!==r&&t.prototype instanceof r&&Ql(t)})}function Xp(r,e){const t=r.__themes;return!t||!e?!1:t.some(i=>i.styles.some(o=>e.some(n=>n.cssText===o.cssText)))}function L(r,e,t={}){e=Up(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(r,e,t):Xl.push({themeFor:r,styles:e,include:t.include,moduleId:t.moduleId}),r&&On.forEach(i=>{if(Zl(r,i)&&jp(i)){const o=customElements.get(i);Xp(o,e)?console.warn(`Registering styles that already exist for ${i}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${i}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`),Ql(o),Yp(o)}})}function tn(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Xl}function Kp(r=""){let e=0;return r.startsWith("lumo-")||r.startsWith("material-")?e=1:r.startsWith("vaadin-")&&(e=2),e}function eh(r){const e=[];return r.include&&[].concat(r.include).forEach(t=>{const i=tn().find(o=>o.moduleId===t);i?e.push(...eh(i),...i.styles):console.warn(`Included moduleId ${t} not found in style registry`)},r.styles),e}function Zp(r){const e=`${r}-default-theme`,t=tn().filter(i=>i.moduleId!==e&&Zl(i.themeFor,r)).map(i=>$l(ki({},i),{styles:[...eh(i),...i.styles],includePriority:Kp(i.moduleId)})).sort((i,o)=>o.includePriority-i.includePriority);return t.length>0?t:tn().filter(i=>i.moduleId===e)}const le=r=>class extends Xi(r){constructor(){super(),en.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&On.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||Kl(this)||Gp(this.getStylesForThis(),e)}static finalizeStyles(e){const t=this.getStylesForThis();return e?[...[e].flat(1/0),...t]:t}static getStylesForThis(){const e=r.__themes||[],t=Object.getPrototypeOf(this.prototype),i=(t?t.constructor.__themes:[])||[];this.__themes=[...e,...i,...Zp(this.is)];const o=this.__themes.flatMap(n=>n.styles);return o.filter((n,s)=>s===o.lastIndexOf(n))}};/**
54
54
  * @license
55
55
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
56
56
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
57
- */const Zp=(r,...e)=>{const t=document.createElement("style");t.id=r,t.textContent=e.map(i=>i.toString()).join(`
58
- `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",t)},dr=(r,...e)=>{Zp(`lumo-${r}`,e)};/**
57
+ */const Jp=(r,...e)=>{const t=document.createElement("style");t.id=r,t.textContent=e.map(i=>i.toString()).join(`
58
+ `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",t)},dr=(r,...e)=>{Jp(`lumo-${r}`,e)};/**
59
59
  * @license
60
60
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
61
61
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
62
- */const Jp=k`
62
+ */const Qp=k`
63
63
  :host {
64
64
  /* Base (background) */
65
65
  --lumo-base-color: #fff;
@@ -144,7 +144,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
144
144
  --lumo-disabled-text-color: GrayText;
145
145
  }
146
146
  }
147
- `;dr("color-props",Jp);const Qp=k`
147
+ `;dr("color-props",Qp);const em=k`
148
148
  [theme~='dark'] {
149
149
  /* Base (background) */
150
150
  --lumo-base-color: hsl(214, 35%, 21%);
@@ -262,11 +262,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
262
262
  pre code {
263
263
  background: transparent;
264
264
  }
265
- `;L("",Qp,{moduleId:"lumo-color"});/**
265
+ `;L("",em,{moduleId:"lumo-color"});/**
266
266
  * @license
267
267
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
268
268
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
269
- */const em=k`
269
+ */const tm=k`
270
270
  @font-face {
271
271
  font-family: 'lumo-icons';
272
272
  src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEgAAsAAAAAIjQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2cAABeAWri7U2hlYWQAAA3oAAAAMAAAADZa/6SsaGhlYQAADhgAAAAdAAAAJAbpA35obXR4AAAOOAAAABAAAACspBAAAGxvY2EAAA5IAAAAWAAAAFh57oA4bWF4cAAADqAAAAAfAAAAIAFKAXBuYW1lAAAOwAAAATEAAAIuUUJZCHBvc3QAAA/0AAABKwAAAelm8SzVeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+yDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mIO+p/FEMUcxDANKMwIkgMABn8MLQB4nO3SWW6DMABF0UtwCEnIPM/zhLK8LqhfXRybSP14XUYtHV9hGYQwQBNIo3cUIPkhQeM7rib1ekqnXg981XuC1qvy84lzojleh3puxL0hPjGjRU473teloEefAUNGjJkwZcacBUtWrNmwZceeA0dOnLlw5cadB09elPGhGf+j0NTI/65KfXerT6JhqKnpRKtgOpuqaTrtKjPUlqHmhto21I7pL6i6hlqY3q7qGWrfUAeGOjTUkaGODXViqFNDnRnq3FAXhro01JWhrg11Y6hbQ90Z6t5QD4Z6NNSToZ4N9WKoV0O9GerdUB+G+jTUl6GWRvkL24BkEXictVh9bFvVFb/nxvbz+7Rf/N6zHcd2bCfP+Wic1Z9N0jpNHCD9SNqqoVBgbQoMjY+pjA4hNnWa2pV1rHSIif0DGkyT2k10Kmu1Cag6huj4ZpqYBHSqJsTEJgZCG3TaVBFv595nO3ZIv4RIrPPuvefe884599zzO/cRF8G/tgn6CFFImNgkR0ggX8wlspbhSSWSdrC5ozd30s2dw5afzvgtyz9/zG9t1hV4RtF1pXolowvtzc2z6L2aYUQM45jKH9WDTvd1LRDoDASYWhfTzTyvboXz6uZX4ARX5wrF39y+HM2+CJ8d0pkyqBIqoze3D12ez4DrFoYzxI8dWwMrDlZ2DMqQAR9AROsJU+2smlTPaTTco52BVxXa2a2+I8vvqd2dVHm1LoPeTn/AZPRYGthDYOeZjBjKoFsVGulR3lGU95SeCK44oHU7MhWUGUKZDT3oSUcG2GWuh+EDDfUYA/jhIhl0TOsJNYSEu7mQmi3UzfXwZKA4BsVsHLXQYGgJW95qEtpJ1VcW9HiTriZBlFEqxsDjA09yCNUoQxxwd7KWSTt2y3GTKifkqHRCoWZc3m11Wa/dKdFgXD4kSYfkeJBKd8KMz7J8dZn/cGRCcLGDnA2Ge3bKzcvlnTDNthFWLH7Xt80ua5FMjA4WKelWv5Xo16vHuYzpRbJhhdVlftuRK0VlR27D9lu5TF0DPBi60OrHNO0AfP/uRWvhn/U3LXICE+nh+3IHPUJ8JE6GyBjZQLbjGchlrSgYngF8zyrIF4NJD3atUcgWsWunGN/UHX5B5/yg7uF87Nqp4Gf52F3gH73DjEZNRoqCKAr9giQJp5rGJABpiVE2htNhW9R8nw0jqYjCYcY4LIjwYNScf4WN06IZnZCEqsI4cFaQbo4Z1TsZBx40YhXkHOecaYE5oY37IIQ+iJJ+UsDYSun5MuRSBRZRUUhlY2DqOGajOR6zrSU/5My6l2DnusH1GQgnw5BZP7iuYM/ahcfQ7Z8y51ddfutvuwNqWQ0cBYr8fj0U0vsHpwerVaB2sWhXT2NExi2r1KUE2tUuVMnkepVQrxTmpQrZTG4iu8he8iPyM3KcPE/+RP5KPoE2CEAKclCBzXATxkYOtUY/o961PWRqsj0chRrHFBbtrjP9/P0ven5pcbRdpL94vfsy33e5+izuwz3nFLFPVNayPZx/jdG1fOChflFRvYzsW6L18efgLrSWIgvcqnGJYi4skO4xREURjbDuxKke5v0T3Mrzkt2fi31uyZlLLrqIpEuXXsMlgw442Jb0GAxjS1DM20kBoCzHLXm/jEm0IltdcvU0fEW24jgiwwRjVd9u4NJHcIyoHJcwvyVqgqj5hqBJ1ZWSJryh9p56UWhX1XbhRbW2ZopuZWsQd5y8mEQ8M+C6xjRYxZbDKWf5AgY+Qq/l6wSPk16zDFjowYuu+wjx13mfkxbyDDxadYT/LijZyI0THB+6yfLaWsRcO82zo9mWTNtpO18qlorZoIVMwSN40tky5DOQ1MCIAe24mvlsuwIIxPb10+uXDQ4uWz/9m3rj+ql7p6bufZARuPVq5tXtsn6KwfP8Jy0TeWOyNhUJN6mhX5rkUTtUppQWEMNTqEdaCGKFYKJaQrCE4JtDLYOlNEKmO5kBTPGY2A0N2sY3+dVlo1N9ycBsIGtOjQ2p/tlZvzo0ur4v6cOh8NTospB7U/X40KahoU3bGIH97dnwmtHlYffVG3R1YOwKM2vNhrPhCT5zk64sG53oS4b31aYjqe/B7+kQiXBN+b6h21hNUPMq29B8CU4elINdygMPKF1B+WBTG7Z9ZshpN/xwEuuDQZR+nuoo4CDaAiiwXmLpmukMQyPf/JMclqgL1ixZQ/nnP2VbdUODFGt2fgBvL123rlLYu/6A9ckb7F3K0/CyBMEu6aQoPscroCcacVehvyQyCZAsizsWWBkoLC+WAiWnOksLKaeuQDzGuqSk42aiYTiJ4zf9afl17SrqaTO1f+XlZAfIuYcq7/IqYMaMrksOJ6vHkOCPDq943xcCnHqVD9pHFRpMqSPXrIua1WNs+tOz1U+ciTCDpPk+c4QYJIHnYhxP/kVPAq+ahFpVhPcHp8qyarhiF+HsBU9Hrl+UZa876fbKipL0KqB6OdUveErgtOI97fZ63ae9SvWU6k2w1JfwqnUbHsYcFCJFrC/W12zIMMirWYEHxMPs6LGYSdkSZ5TsNP9PCpwnWC3HKZ1lydNjWHC2Mn3l6vL0dHn1ldP3LTSrX+vKrBqv7KmMr8p0SR6P1NqF63or6XRlIyO90f7+kf7+myOhvt4tq7f09oUiTc2/dycGgqFQcCDRLYmi1NL7fk0CknVMxEg/cdfs/TnpJMNkgqwj17B8beVazSrVbU4lG67IZYOCnWrYy3yBR9cyWcChywos3LJBEdhhFoAdYjiw0rLGm0xU5OzoGm5/ZfmHjVZpNNg6SznzGKDdwv2cCtVn6Eaxo12cfxLprpVtTcZ6hVx6dow7Yq7e8LXO8PY9Jgjoze9yCtU5FNbegcKkQMdCbt9au/te4Ebe0jkc0ukUL32eYnTpNs20h0KpUOhZPYwVcfhZnfdqeCvDfXiuCbAoYWcXERPc/mDQD3/hdF+wK4i/xv3kYfprIpAuMkk2kW3kdtS0kBIKpZwp8KxmsCyfM1MFzAss9LBkDxRyThiaqTLwKYKJVTwmWTudMyz+yks09346MDh4m72yOxCKrt1XMlQ1qPVlTEVVQ1ofdK/sCWjtZu9qGwZ8YZ9PPWlo1IV3eW3+U0aXblP39zrt+JPf6UhEQ1rUjNBULN+utyuaDNW34kpAVuSOeMTyWbSNWnooFu+QFNWQ4d/Ox4IPWx41fP/fB/Rjeoz08ezPA9TysMtmnOXfGN7Ui3xIYLDALrlDLOP09qtJuY2OeL0+QZXdRnR1nxRVBF/SOyKKPpcrn9mWzH4rH9IidE+PTNU2182+hOgSItrE1slByS24vaLvJpxOqe4Pduf3HJkZ+jLqUz9rRzB7p8gKcgWZwV1L8JtUS5Z2JxZSOCuBoMTQihMzLbCPA0KqGMAljRQjONklW/wjnXKy8vxT/Elvm3/KiMUMOoV0/vnDYlhec0SMKtt3/kKMyOt33tj2bqxQLsTjSGLl+EAsNhCnTyRGktW55EgCn/A4PlnWn+Mg8bgZrWqHxTbPwMuyy1u5YeZF2SUM7JRhddwRgiRuxpmgJmxn9ZW7XpcF3ViX/ar6ptRpGJ0S9Adg4qhb9sI3vbL7qNJV/y4i07t5TZBiho1imFoMz3gED+CtjYUxvP4SOxov4bFoNPg5aR1e+G4UgDPoedJTpogyCJ7oYvRqoVS0MQAy+CoNEdTDUjok5ZHZL/WtjV7rFj3PKQE3iKp7ou+rIxN3b9LB1dGjeT4cvKo3FrnWpYpuaFd/h3dtV8UeKN1Y9hpR3dt4p0H/zKuPQq0kZQUIIpuDfoiETsnIk+gCWMJZUXHtE8V9LkUc2TE8vOMbO4ax/MACabzyaGXc7u3FBr11ThBdB8SIeMAlCntG2KThHSPsaj2Dc9KNyY2a0KZ7ODaTHoRiFkeYz+shZBpCS4X6471KKKnuHd84edfk5F37d1XO5bbkcltu2ZLNbvnPXiUVAnVvprJrP+NObryjxrllS65md6Tm6wzFHRR4dY3QUUjb7MgxaIixU8hspi98fl/Xc+IB4iU66eCVL9YfAfahiSUt4TONS8x0D8W7u8vd3fGWx6OXlM/U1IoU/s61PGhpyXRFa3eReq2qG56lvmYtXavCC1iN7lbiBpWxXHU+cSlztVLVz0tVN600fVsLxaVDknhYioeoXP3t4lqV1r79MAw0GCI1FTL1YIGzPL1MMlJ9ZsN9P7lvA2yr9ZFUzwzPrVgxN/x/SS+chwB4nGNgZGBgAOLPrYdY4vltvjJwM78AijDUqG5oRND/XzNPZboF5HIwMIFEAU/lC+J4nGNgZGBgDvqfBSRfMAAB81QGRgZUoA0AVvYDbwAAAHicY2BgYGB+MTQwAM8EJo8AAAAAAE4AmgDoAQoBLAFOAXABmgHEAe4CGgKcAugEmgS8BNYE8gUOBSoFegXQBf4GRAZmBrYHGAeQCBgIUghqCP4JRgm+CdoKBAo+CoQKugr0C1QLmgvAeJxjYGRgYNBmTGEQZQABJiDmAkIGhv9gPgMAGJQBvAB4nG2RPU7DMBiG3/QP0UoIBGJh8QILavozdmRo9w7d09RpUzlx5LgVvQMn4BAcgoEzcAgOwVvzSZVQbcnf48fvFysJgGt8IcJxROiG9TgauODuj5ukG+EW+UG4jR4ehTv0Q+EunjER7uEWmk+IWpc0d3gVbuAKb8JN+nfhFvlDuI17fAp36L+Fu1jgR7iHp+jF7Arbz1Nb1nO93pnEncSJFtrVuS3VKB6e5EyX2iVer9TyoOr9eux9pjJnCzW1pdfGWFU5u9WpjzfeV5PBIBMfp7aAwQ4FLPrIkbKWqDHn+67pDRK4s4lzbsEux5qHvcIIMb/nueSMyTKkE3jWFdNLHLjW2PPmMa1Hxn3GjGW/wjT0HtOG09JU4WxLk9LH2ISuiv9twJn9y8fh9uIXI+BknAAAAHicbY7ZboMwEEW5CVBCSLrv+76kfJRjTwHFsdGAG+Xvy5JUfehIHp0rnxmNN/D6ir3/a4YBhvARIMQOIowQY4wEE0yxiz3s4wCHOMIxTnCKM5zjApe4wjVucIs73OMBj3jCM17wije84wMzfHqJ0EVmUkmmJo77oOmrHvfIRZbXsTCZplTZldlgb3TYGVHProwFs11t1A57tcON2rErR3PBqcwF1/6ctI6k0GSU4JHMSS6WghdJQ99sTbfuN7QLJ9vQ37dNrgyktnIxlDYLJNuqitpRbYWKFNuyDT6pog6oOYKHtKakeakqKjHXpPwlGRcsC+OqxLIiJpXqoqqDMreG2l5bv9Ri3TRX+c23DZna9WFFgmXuO6Ps1Jm/w6ErW8N3FbHn/QC444j0AA==)
@@ -319,11 +319,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
319
319
  --lumo-icons-upload: '\\ea29';
320
320
  --lumo-icons-user: '\\ea2a';
321
321
  }
322
- `;dr("font-icons",em);/**
322
+ `;dr("font-icons",tm);/**
323
323
  * @license
324
324
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
325
325
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
326
- */const tm=k`
326
+ */const rm=k`
327
327
  :host {
328
328
  --lumo-size-xs: 1.625rem;
329
329
  --lumo-size-s: 1.875rem;
@@ -338,11 +338,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
338
338
  /* For backwards compatibility */
339
339
  --lumo-icon-size: var(--lumo-icon-size-m);
340
340
  }
341
- `;dr("sizing-props",tm);/**
341
+ `;dr("sizing-props",rm);/**
342
342
  * @license
343
343
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
344
344
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
345
- */const rm=k`
345
+ */const im=k`
346
346
  :host {
347
347
  /* Square */
348
348
  --lumo-space-xs: 0.25rem;
@@ -365,11 +365,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
365
365
  --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
366
366
  --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
367
367
  }
368
- `;dr("spacing-props",rm);/**
368
+ `;dr("spacing-props",im);/**
369
369
  * @license
370
370
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
371
371
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
372
- */const im=k`
372
+ */const om=k`
373
373
  :host {
374
374
  /* Border radius */
375
375
  --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
@@ -469,11 +469,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
469
469
  --vaadin-input-field-value-font-size: var(--lumo-font-size-m);
470
470
  --vaadin-input-field-value-font-weight: 500;
471
471
  }
472
- `;dr("style-props",im);/**
472
+ `;dr("style-props",om);/**
473
473
  * @license
474
474
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
475
475
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
476
- */const om=k`
476
+ */const nm=k`
477
477
  :host {
478
478
  /* prettier-ignore */
479
479
  --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
@@ -493,7 +493,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
493
493
  --lumo-line-height-s: 1.375;
494
494
  --lumo-line-height-m: 1.625;
495
495
  }
496
- `,nm=k`
496
+ `,sm=k`
497
497
  body,
498
498
  :host {
499
499
  font-family: var(--lumo-font-family);
@@ -585,7 +585,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
585
585
  border-left: none;
586
586
  border-right: 2px solid var(--lumo-contrast-30pct);
587
587
  }
588
- `;L("",nm,{moduleId:"lumo-typography"});dr("typography-props",om);L("vaadin-checkbox",k`
588
+ `;L("",sm,{moduleId:"lumo-typography"});dr("typography-props",nm);L("vaadin-checkbox",k`
589
589
  :host {
590
590
  color: var(--vaadin-checkbox-label-color, var(--lumo-body-text-color));
591
591
  font-size: var(--vaadin-checkbox-label-font-size, var(--lumo-font-size-m));
@@ -905,7 +905,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
905
905
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
906
906
  Code distributed by Google as part of the polymer project is also
907
907
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
908
- */let sm=/(url\()([^)]*)(\))/g,am=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,di,Re;function kr(r,e){if(r&&am.test(r)||r==="//")return r;if(di===void 0){di=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",di=t.href==="http://a/c%20d"}catch(t){}}if(e||(e=document.baseURI||window.location.href),di)try{return new URL(r,e).href}catch(t){return r}return Re||(Re=document.implementation.createHTMLDocument("temp"),Re.base=Re.createElement("base"),Re.head.appendChild(Re.base),Re.anchor=Re.createElement("a"),Re.body.appendChild(Re.anchor)),Re.base.href=e,Re.anchor.href=r,Re.anchor.href||r}function Mn(r,e){return r.replace(sm,function(t,i,o,n){return i+"'"+kr(o.replace(/["']/g,""),e)+"'"+n})}function Nn(r){return r.substring(0,r.lastIndexOf("/")+1)}/**
908
+ */let am=/(url\()([^)]*)(\))/g,lm=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,di,Re;function kr(r,e){if(r&&lm.test(r)||r==="//")return r;if(di===void 0){di=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",di=t.href==="http://a/c%20d"}catch(t){}}if(e||(e=document.baseURI||window.location.href),di)try{return new URL(r,e).href}catch(t){return r}return Re||(Re=document.implementation.createHTMLDocument("temp"),Re.base=Re.createElement("base"),Re.head.appendChild(Re.base),Re.anchor=Re.createElement("a"),Re.body.appendChild(Re.anchor)),Re.base.href=e,Re.anchor.href=r,Re.anchor.href||r}function Mn(r,e){return r.replace(am,function(t,i,o,n){return i+"'"+kr(o.replace(/["']/g,""),e)+"'"+n})}function Nn(r){return r.substring(0,r.lastIndexOf("/")+1)}/**
909
909
  @license
910
910
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
911
911
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -913,7 +913,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
913
913
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
914
914
  Code distributed by Google as part of the polymer project is also
915
915
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
916
- */const eh=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const lm=eh&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const r=new CSSStyleSheet;r.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[r],e.shadowRoot.adoptedStyleSheets[0]===r}catch(r){return!1}})();let hm=window.Polymer&&window.Polymer.rootPath||Nn(document.baseURI||window.location.href),Mi=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let Ni=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,dm=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,th=window.Polymer&&window.Polymer.legacyOptimizations||!1,rh=window.Polymer&&window.Polymer.legacyWarnings||!1,cm=window.Polymer&&window.Polymer.syncInitialRender||!1,rn=window.Polymer&&window.Polymer.legacyUndefined||!1,um=window.Polymer&&window.Polymer.orderedComputed||!1,ea=window.Polymer&&window.Polymer.removeNestedTemplates||!1,pm=window.Polymer&&window.Polymer.fastDomIf||!1,ta=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let mm=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
916
+ */const th=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const hm=th&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const r=new CSSStyleSheet;r.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[r],e.shadowRoot.adoptedStyleSheets[0]===r}catch(r){return!1}})();let dm=window.Polymer&&window.Polymer.rootPath||Nn(document.baseURI||window.location.href),Mi=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let Ni=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,cm=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,rh=window.Polymer&&window.Polymer.legacyOptimizations||!1,ih=window.Polymer&&window.Polymer.legacyWarnings||!1,um=window.Polymer&&window.Polymer.syncInitialRender||!1,rn=window.Polymer&&window.Polymer.legacyUndefined||!1,pm=window.Polymer&&window.Polymer.orderedComputed||!1,ta=window.Polymer&&window.Polymer.removeNestedTemplates||!1,mm=window.Polymer&&window.Polymer.fastDomIf||!1,ra=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let fm=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
917
917
  @license
918
918
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
919
919
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -921,7 +921,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
921
921
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
922
922
  Code distributed by Google as part of the polymer project is also
923
923
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
924
- */let fm=0;const ve=function(r){let e=r.__mixinApplications;e||(e=new WeakMap,r.__mixinApplications=e);let t=fm++;function i(o){let n=o.__mixinSet;if(n&&n[t])return o;let s=e,a=s.get(o);if(!a){a=r(o),s.set(o,a);let l=Object.create(a.__mixinSet||n||null);l[t]=!0,a.__mixinSet=l}return a}return i};/**
924
+ */let _m=0;const ve=function(r){let e=r.__mixinApplications;e||(e=new WeakMap,r.__mixinApplications=e);let t=_m++;function i(o){let n=o.__mixinSet;if(n&&n[t])return o;let s=e,a=s.get(o);if(!a){a=r(o),s.set(o,a);let l=Object.create(a.__mixinSet||n||null);l[t]=!0,a.__mixinSet=l}return a}return i};/**
925
925
  @license
926
926
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
927
927
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -929,7 +929,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
929
929
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
930
930
  Code distributed by Google as part of the polymer project is also
931
931
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
932
- */let zn={},ih={};function ra(r,e){zn[r]=ih[r.toLowerCase()]=e}function ia(r){return zn[r]||ih[r.toLowerCase()]}function _m(r){r.querySelector("style")&&console.warn("dom-module %s has style outside template",r.id)}class Br extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let i=ia(e);return i&&t?i.querySelector(t):i}return null}attributeChangedCallback(e,t,i,o){t!==i&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=kr(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=Nn(t)}return this.__assetpath}register(e){if(e=e||this.id,e){if(Ni&&ia(e)!==void 0)throw ra(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,ra(e,this),_m(this)}}}Br.prototype.modules=zn;customElements.define("dom-module",Br);/**
932
+ */let zn={},oh={};function ia(r,e){zn[r]=oh[r.toLowerCase()]=e}function oa(r){return zn[r]||oh[r.toLowerCase()]}function vm(r){r.querySelector("style")&&console.warn("dom-module %s has style outside template",r.id)}class Br extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let i=oa(e);return i&&t?i.querySelector(t):i}return null}attributeChangedCallback(e,t,i,o){t!==i&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=kr(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=Nn(t)}return this.__assetpath}register(e){if(e=e||this.id,e){if(Ni&&oa(e)!==void 0)throw ia(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,ia(e,this),vm(this)}}}Br.prototype.modules=zn;customElements.define("dom-module",Br);/**
933
933
  @license
934
934
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
935
935
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -937,7 +937,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
937
937
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
938
938
  Code distributed by Google as part of the polymer project is also
939
939
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
940
- */const vm="link[rel=import][type~=css]",gm="include",oa="shady-unscoped";function oh(r){return Br.import(r)}function na(r){let e=r.body?r.body:r;const t=Mn(e.textContent,r.baseURI),i=document.createElement("style");return i.textContent=t,i}function bm(r){const e=r.trim().split(/\s+/),t=[];for(let i=0;i<e.length;i++)t.push(...ym(e[i]));return t}function ym(r){const e=oh(r);if(!e)return console.warn("Could not find style data in module named",r),[];if(e._styles===void 0){const t=[];t.push(...sh(e));const i=e.querySelector("template");i&&t.push(...nh(i,e.assetpath)),e._styles=t}return e._styles}function nh(r,e){if(!r._styles){const t=[],i=r.content.querySelectorAll("style");for(let o=0;o<i.length;o++){let n=i[o],s=n.getAttribute(gm);s&&t.push(...bm(s).filter(function(a,l,h){return h.indexOf(a)===l})),e&&(n.textContent=Mn(n.textContent,e)),t.push(n)}r._styles=t}return r._styles}function xm(r){let e=oh(r);return e?sh(e):[]}function sh(r){const e=[],t=r.querySelectorAll(vm);for(let i=0;i<t.length;i++){let o=t[i];if(o.import){const n=o.import,s=o.hasAttribute(oa);if(s&&!n._unscopedStyle){const a=na(n);a.setAttribute(oa,""),n._unscopedStyle=a}else n._style||(n._style=na(n));e.push(s?n._unscopedStyle:n._style)}}return e}/**
940
+ */const gm="link[rel=import][type~=css]",bm="include",na="shady-unscoped";function nh(r){return Br.import(r)}function sa(r){let e=r.body?r.body:r;const t=Mn(e.textContent,r.baseURI),i=document.createElement("style");return i.textContent=t,i}function ym(r){const e=r.trim().split(/\s+/),t=[];for(let i=0;i<e.length;i++)t.push(...xm(e[i]));return t}function xm(r){const e=nh(r);if(!e)return console.warn("Could not find style data in module named",r),[];if(e._styles===void 0){const t=[];t.push(...ah(e));const i=e.querySelector("template");i&&t.push(...sh(i,e.assetpath)),e._styles=t}return e._styles}function sh(r,e){if(!r._styles){const t=[],i=r.content.querySelectorAll("style");for(let o=0;o<i.length;o++){let n=i[o],s=n.getAttribute(bm);s&&t.push(...ym(s).filter(function(a,l,h){return h.indexOf(a)===l})),e&&(n.textContent=Mn(n.textContent,e)),t.push(n)}r._styles=t}return r._styles}function wm(r){let e=nh(r);return e?ah(e):[]}function ah(r){const e=[],t=r.querySelectorAll(gm);for(let i=0;i<t.length;i++){let o=t[i];if(o.import){const n=o.import,s=o.hasAttribute(na);if(s&&!n._unscopedStyle){const a=sa(n);a.setAttribute(na,""),n._unscopedStyle=a}else n._style||(n._style=sa(n));e.push(s?n._unscopedStyle:n._style)}}return e}/**
941
941
  @license
942
942
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
943
943
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -953,7 +953,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
953
953
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
954
954
  Code distributed by Google as part of the polymer project is also
955
955
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
956
- */function on(r){return r.indexOf(".")>=0}function Bt(r){let e=r.indexOf(".");return e===-1?r:r.slice(0,e)}function ah(r,e){return r.indexOf(e+".")===0}function Lr(r,e){return e.indexOf(r+".")===0}function Hr(r,e,t){return e+t.slice(r.length)}function wm(r,e){return r===e||ah(r,e)||Lr(r,e)}function Cr(r){if(Array.isArray(r)){let e=[];for(let t=0;t<r.length;t++){let i=r[t].toString().split(".");for(let o=0;o<i.length;o++)e.push(i[o])}return e.join(".")}else return r}function lh(r){return Array.isArray(r)?Cr(r).split("."):r.toString().split(".")}function Le(r,e,t){let i=r,o=lh(e);for(let n=0;n<o.length;n++){if(!i)return;let s=o[n];i=i[s]}return t&&(t.path=o.join(".")),i}function sa(r,e,t){let i=r,o=lh(e),n=o[o.length-1];if(o.length>1){for(let s=0;s<o.length-1;s++){let a=o[s];if(i=i[a],!i)return}i[n]=t}else i[e]=t;return o.join(".")}/**
956
+ */function on(r){return r.indexOf(".")>=0}function Bt(r){let e=r.indexOf(".");return e===-1?r:r.slice(0,e)}function lh(r,e){return r.indexOf(e+".")===0}function Lr(r,e){return e.indexOf(r+".")===0}function Hr(r,e,t){return e+t.slice(r.length)}function Cm(r,e){return r===e||lh(r,e)||Lr(r,e)}function Cr(r){if(Array.isArray(r)){let e=[];for(let t=0;t<r.length;t++){let i=r[t].toString().split(".");for(let o=0;o<i.length;o++)e.push(i[o])}return e.join(".")}else return r}function hh(r){return Array.isArray(r)?Cr(r).split("."):r.toString().split(".")}function Le(r,e,t){let i=r,o=hh(e);for(let n=0;n<o.length;n++){if(!i)return;let s=o[n];i=i[s]}return t&&(t.path=o.join(".")),i}function aa(r,e,t){let i=r,o=hh(e),n=o[o.length-1];if(o.length>1){for(let s=0;s<o.length-1;s++){let a=o[s];if(i=i[a],!i)return}i[n]=t}else i[e]=t;return o.join(".")}/**
957
957
  @license
958
958
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
959
959
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -961,7 +961,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
961
961
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
962
962
  Code distributed by Google as part of the polymer project is also
963
963
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
964
- */const zi={},Cm=/-[a-z]/g,Em=/([A-Z])/g;function hh(r){return zi[r]||(zi[r]=r.indexOf("-")<0?r:r.replace(Cm,e=>e[1].toUpperCase()))}function Ki(r){return zi[r]||(zi[r]=r.replace(Em,"-$1").toLowerCase())}/**
964
+ */const zi={},Em=/-[a-z]/g,Sm=/([A-Z])/g;function dh(r){return zi[r]||(zi[r]=r.indexOf("-")<0?r:r.replace(Em,e=>e[1].toUpperCase()))}function Ki(r){return zi[r]||(zi[r]=r.replace(Sm,"-$1").toLowerCase())}/**
965
965
  @license
966
966
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
967
967
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -969,7 +969,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
969
969
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
970
970
  Code distributed by Google as part of the polymer project is also
971
971
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
972
- */let Sm=0,dh=0,Yt=[],Am=0,nn=!1,ch=document.createTextNode("");new window.MutationObserver(Pm).observe(ch,{characterData:!0});function Pm(){nn=!1;const r=Yt.length;for(let e=0;e<r;e++){let t=Yt[e];if(t)try{t()}catch(i){setTimeout(()=>{throw i})}}Yt.splice(0,r),dh+=r}const km={after(r){return{run(e){return window.setTimeout(e,r)},cancel(e){window.clearTimeout(e)}}},run(r,e){return window.setTimeout(r,e)},cancel(r){window.clearTimeout(r)}},uh={run(r){return nn||(nn=!0,ch.textContent=Am++),Yt.push(r),Sm++},cancel(r){const e=r-dh;if(e>=0){if(!Yt[e])throw new Error("invalid async handle: "+r);Yt[e]=null}}};/**
972
+ */let Am=0,ch=0,Yt=[],Pm=0,nn=!1,uh=document.createTextNode("");new window.MutationObserver(km).observe(uh,{characterData:!0});function km(){nn=!1;const r=Yt.length;for(let e=0;e<r;e++){let t=Yt[e];if(t)try{t()}catch(i){setTimeout(()=>{throw i})}}Yt.splice(0,r),ch+=r}const Tm={after(r){return{run(e){return window.setTimeout(e,r)},cancel(e){window.clearTimeout(e)}}},run(r,e){return window.setTimeout(r,e)},cancel(r){window.clearTimeout(r)}},ph={run(r){return nn||(nn=!0,uh.textContent=Pm++),Yt.push(r),Am++},cancel(r){const e=r-ch;if(e>=0){if(!Yt[e])throw new Error("invalid async handle: "+r);Yt[e]=null}}};/**
973
973
  @license
974
974
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
975
975
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -977,7 +977,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
977
977
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
978
978
  Code distributed by Google as part of the polymer project is also
979
979
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
980
- */const Tm=uh,ph=ve(r=>{class e extends r{static createProperties(i){const o=this.prototype;for(let n in i)n in o||o._createPropertyAccessor(n)}static attributeNameForProperty(i){return i.toLowerCase()}static typeForProperty(i){}_createPropertyAccessor(i,o){this._addPropertyToAttributeMap(i),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[i]||(this.__dataHasAccessor[i]=!0,this._definePropertyAccessor(i,o))}_addPropertyToAttributeMap(i){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let o=this.__dataAttributes[i];return o||(o=this.constructor.attributeNameForProperty(i),this.__dataAttributes[o]=i),o}_definePropertyAccessor(i,o){Object.defineProperty(this,i,{get(){return this.__data[i]},set:o?function(){}:function(n){this._setPendingProperty(i,n,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let i in this.__dataHasAccessor)this.hasOwnProperty(i)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[i]=this[i],delete this[i])}_initializeInstanceProperties(i){Object.assign(this,i)}_setProperty(i,o){this._setPendingProperty(i,o)&&this._invalidateProperties()}_getProperty(i){return this.__data[i]}_setPendingProperty(i,o,n){let s=this.__data[i],a=this._shouldPropertyChange(i,o,s);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(i in this.__dataOld)&&(this.__dataOld[i]=s),this.__data[i]=o,this.__dataPending[i]=o),a}_isPropertyPending(i){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(i))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Tm.run(()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())}))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const i=this.__data,o=this.__dataPending,n=this.__dataOld;this._shouldPropertiesChange(i,o,n)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(i,o,n)),this.__dataCounter--}_shouldPropertiesChange(i,o,n){return!!o}_propertiesChanged(i,o,n){}_shouldPropertyChange(i,o,n){return n!==o&&(n===n||o===o)}attributeChangedCallback(i,o,n,s){o!==n&&this._attributeToProperty(i,n),super.attributeChangedCallback&&super.attributeChangedCallback(i,o,n,s)}_attributeToProperty(i,o,n){if(!this.__serializing){const s=this.__dataAttributes,a=s&&s[i]||i;this[a]=this._deserializeValue(o,n||this.constructor.typeForProperty(a))}}_propertyToAttribute(i,o,n){this.__serializing=!0,n=arguments.length<3?this[i]:n,this._valueToNodeAttribute(this,n,o||this.constructor.attributeNameForProperty(i)),this.__serializing=!1}_valueToNodeAttribute(i,o,n){const s=this._serializeValue(o);(n==="class"||n==="name"||n==="slot")&&(i=Pe(i)),s===void 0?i.removeAttribute(n):i.setAttribute(n,s===""&&window.trustedTypes?window.trustedTypes.emptyScript:s)}_serializeValue(i){switch(typeof i){case"boolean":return i?"":void 0;default:return i!=null?i.toString():void 0}}_deserializeValue(i,o){switch(o){case Boolean:return i!==null;case Number:return Number(i);default:return i}}}return e});/**
980
+ */const Im=ph,mh=ve(r=>{class e extends r{static createProperties(i){const o=this.prototype;for(let n in i)n in o||o._createPropertyAccessor(n)}static attributeNameForProperty(i){return i.toLowerCase()}static typeForProperty(i){}_createPropertyAccessor(i,o){this._addPropertyToAttributeMap(i),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[i]||(this.__dataHasAccessor[i]=!0,this._definePropertyAccessor(i,o))}_addPropertyToAttributeMap(i){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let o=this.__dataAttributes[i];return o||(o=this.constructor.attributeNameForProperty(i),this.__dataAttributes[o]=i),o}_definePropertyAccessor(i,o){Object.defineProperty(this,i,{get(){return this.__data[i]},set:o?function(){}:function(n){this._setPendingProperty(i,n,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let i in this.__dataHasAccessor)this.hasOwnProperty(i)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[i]=this[i],delete this[i])}_initializeInstanceProperties(i){Object.assign(this,i)}_setProperty(i,o){this._setPendingProperty(i,o)&&this._invalidateProperties()}_getProperty(i){return this.__data[i]}_setPendingProperty(i,o,n){let s=this.__data[i],a=this._shouldPropertyChange(i,o,s);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(i in this.__dataOld)&&(this.__dataOld[i]=s),this.__data[i]=o,this.__dataPending[i]=o),a}_isPropertyPending(i){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(i))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Im.run(()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())}))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const i=this.__data,o=this.__dataPending,n=this.__dataOld;this._shouldPropertiesChange(i,o,n)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(i,o,n)),this.__dataCounter--}_shouldPropertiesChange(i,o,n){return!!o}_propertiesChanged(i,o,n){}_shouldPropertyChange(i,o,n){return n!==o&&(n===n||o===o)}attributeChangedCallback(i,o,n,s){o!==n&&this._attributeToProperty(i,n),super.attributeChangedCallback&&super.attributeChangedCallback(i,o,n,s)}_attributeToProperty(i,o,n){if(!this.__serializing){const s=this.__dataAttributes,a=s&&s[i]||i;this[a]=this._deserializeValue(o,n||this.constructor.typeForProperty(a))}}_propertyToAttribute(i,o,n){this.__serializing=!0,n=arguments.length<3?this[i]:n,this._valueToNodeAttribute(this,n,o||this.constructor.attributeNameForProperty(i)),this.__serializing=!1}_valueToNodeAttribute(i,o,n){const s=this._serializeValue(o);(n==="class"||n==="name"||n==="slot")&&(i=Pe(i)),s===void 0?i.removeAttribute(n):i.setAttribute(n,s===""&&window.trustedTypes?window.trustedTypes.emptyScript:s)}_serializeValue(i){switch(typeof i){case"boolean":return i?"":void 0;default:return i!=null?i.toString():void 0}}_deserializeValue(i,o){switch(o){case Boolean:return i!==null;case Number:return Number(i);default:return i}}}return e});/**
981
981
  @license
982
982
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
983
983
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -985,7 +985,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
985
985
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
986
986
  Code distributed by Google as part of the polymer project is also
987
987
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
988
- */const mh={};let ci=HTMLElement.prototype;for(;ci;){let r=Object.getOwnPropertyNames(ci);for(let e=0;e<r.length;e++)mh[r[e]]=!0;ci=Object.getPrototypeOf(ci)}const Im=window.trustedTypes?r=>trustedTypes.isHTML(r)||trustedTypes.isScript(r)||trustedTypes.isScriptURL(r):()=>!1;function Dm(r,e){if(!mh[e]){let t=r[e];t!==void 0&&(r.__data?r._setPendingProperty(e,t):(r.__dataProto?r.hasOwnProperty(JSCompiler_renameProperty("__dataProto",r))||(r.__dataProto=Object.create(r.__dataProto)):r.__dataProto={},r.__dataProto[e]=t))}}const Om=ve(r=>{const e=ph(r);class t extends e{static createPropertiesForAttributes(){let o=this.observedAttributes;for(let n=0;n<o.length;n++)this.prototype._createPropertyAccessor(hh(o[n]))}static attributeNameForProperty(o){return Ki(o)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(o){for(let n in o)this._setProperty(n,o[n])}_ensureAttribute(o,n){const s=this;s.hasAttribute(o)||this._valueToNodeAttribute(s,n,o)}_serializeValue(o){switch(typeof o){case"object":if(o instanceof Date)return o.toString();if(o){if(Im(o))return o;try{return JSON.stringify(o)}catch(n){return""}}default:return super._serializeValue(o)}}_deserializeValue(o,n){let s;switch(n){case Object:try{s=JSON.parse(o)}catch(a){s=o}break;case Array:try{s=JSON.parse(o)}catch(a){s=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${o}`)}break;case Date:s=isNaN(o)?String(o):Number(o),s=new Date(s);break;default:s=super._deserializeValue(o,n);break}return s}_definePropertyAccessor(o,n){Dm(this,o),super._definePropertyAccessor(o,n)}_hasAccessor(o){return this.__dataHasAccessor&&this.__dataHasAccessor[o]}_isPropertyPending(o){return!!(this.__dataPending&&o in this.__dataPending)}}return t});/**
988
+ */const fh={};let ci=HTMLElement.prototype;for(;ci;){let r=Object.getOwnPropertyNames(ci);for(let e=0;e<r.length;e++)fh[r[e]]=!0;ci=Object.getPrototypeOf(ci)}const Dm=window.trustedTypes?r=>trustedTypes.isHTML(r)||trustedTypes.isScript(r)||trustedTypes.isScriptURL(r):()=>!1;function Om(r,e){if(!fh[e]){let t=r[e];t!==void 0&&(r.__data?r._setPendingProperty(e,t):(r.__dataProto?r.hasOwnProperty(JSCompiler_renameProperty("__dataProto",r))||(r.__dataProto=Object.create(r.__dataProto)):r.__dataProto={},r.__dataProto[e]=t))}}const Mm=ve(r=>{const e=mh(r);class t extends e{static createPropertiesForAttributes(){let o=this.observedAttributes;for(let n=0;n<o.length;n++)this.prototype._createPropertyAccessor(dh(o[n]))}static attributeNameForProperty(o){return Ki(o)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(o){for(let n in o)this._setProperty(n,o[n])}_ensureAttribute(o,n){const s=this;s.hasAttribute(o)||this._valueToNodeAttribute(s,n,o)}_serializeValue(o){switch(typeof o){case"object":if(o instanceof Date)return o.toString();if(o){if(Dm(o))return o;try{return JSON.stringify(o)}catch(n){return""}}default:return super._serializeValue(o)}}_deserializeValue(o,n){let s;switch(n){case Object:try{s=JSON.parse(o)}catch(a){s=o}break;case Array:try{s=JSON.parse(o)}catch(a){s=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${o}`)}break;case Date:s=isNaN(o)?String(o):Number(o),s=new Date(s);break;default:s=super._deserializeValue(o,n);break}return s}_definePropertyAccessor(o,n){Om(this,o),super._definePropertyAccessor(o,n)}_hasAccessor(o){return this.__dataHasAccessor&&this.__dataHasAccessor[o]}_isPropertyPending(o){return!!(this.__dataPending&&o in this.__dataPending)}}return t});/**
989
989
  @license
990
990
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
991
991
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -993,7 +993,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
993
993
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
994
994
  Code distributed by Google as part of the polymer project is also
995
995
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
996
- */const Mm={"dom-if":!0,"dom-repeat":!0};let aa=!1,la=!1;function Nm(){if(!aa){aa=!0;const r=document.createElement("textarea");r.placeholder="a",la=r.placeholder===r.textContent}return la}function zm(r){Nm()&&r.localName==="textarea"&&r.placeholder&&r.placeholder===r.textContent&&(r.textContent=null)}const Bm=(()=>{const r=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,i)=>{const o=t.getAttribute(i);if(r&&i.startsWith("on-")){e.setAttribute(i,r.createScript(o,i));return}e.setAttribute(i,o)}})();function Lm(r){let e=r.getAttribute("is");if(e&&Mm[e]){let t=r;for(t.removeAttribute("is"),r=t.ownerDocument.createElement(e),t.parentNode.replaceChild(r,t),r.appendChild(t);t.attributes.length;){const{name:i}=t.attributes[0];Bm(r,t,i),t.removeAttribute(i)}}return r}function fh(r,e){let t=e.parentInfo&&fh(r,e.parentInfo);if(t){for(let i=t.firstChild,o=0;i;i=i.nextSibling)if(e.parentIndex===o++)return i}else return r}function Hm(r,e,t,i){i.id&&(e[i.id]=t)}function Rm(r,e,t){if(t.events&&t.events.length)for(let i=0,o=t.events,n;i<o.length&&(n=o[i]);i++)r._addMethodEventListenerToNode(e,n.name,n.value,r)}function Fm(r,e,t,i){t.templateInfo&&(e._templateInfo=t.templateInfo,e._parentTemplateInfo=i)}function $m(r,e,t){return r=r._methodHost||r,function(i){r[t]?r[t](i,i.detail):console.warn("listener method `"+t+"` not defined")}}const Vm=ve(r=>{class e extends r{static _parseTemplate(i,o){if(!i._templateInfo){let n=i._templateInfo={};n.nodeInfoList=[],n.nestedTemplate=!!o,n.stripWhiteSpace=o&&o.stripWhiteSpace||i.hasAttribute&&i.hasAttribute("strip-whitespace"),this._parseTemplateContent(i,n,{parent:null})}return i._templateInfo}static _parseTemplateContent(i,o,n){return this._parseTemplateNode(i.content,o,n)}static _parseTemplateNode(i,o,n){let s=!1,a=i;return a.localName=="template"&&!a.hasAttribute("preserve-content")?s=this._parseTemplateNestedTemplate(a,o,n)||s:a.localName==="slot"&&(o.hasInsertionPoint=!0),zm(a),a.firstChild&&this._parseTemplateChildNodes(a,o,n),a.hasAttributes&&a.hasAttributes()&&(s=this._parseTemplateNodeAttributes(a,o,n)||s),s||n.noted}static _parseTemplateChildNodes(i,o,n){if(!(i.localName==="script"||i.localName==="style"))for(let s=i.firstChild,a=0,l;s;s=l){if(s.localName=="template"&&(s=Lm(s)),l=s.nextSibling,s.nodeType===Node.TEXT_NODE){let d=l;for(;d&&d.nodeType===Node.TEXT_NODE;)s.textContent+=d.textContent,l=d.nextSibling,i.removeChild(d),d=l;if(o.stripWhiteSpace&&!s.textContent.trim()){i.removeChild(s);continue}}let h={parentIndex:a,parentInfo:n};this._parseTemplateNode(s,o,h)&&(h.infoIndex=o.nodeInfoList.push(h)-1),s.parentNode&&a++}}static _parseTemplateNestedTemplate(i,o,n){let s=i,a=this._parseTemplate(s,o);return(a.content=s.content.ownerDocument.createDocumentFragment()).appendChild(s.content),n.templateInfo=a,!0}static _parseTemplateNodeAttributes(i,o,n){let s=!1,a=Array.from(i.attributes);for(let l=a.length-1,h;h=a[l];l--)s=this._parseTemplateNodeAttribute(i,o,n,h.name,h.value)||s;return s}static _parseTemplateNodeAttribute(i,o,n,s,a){return s.slice(0,3)==="on-"?(i.removeAttribute(s),n.events=n.events||[],n.events.push({name:s.slice(3),value:a}),!0):s==="id"?(n.id=a,!0):!1}static _contentForTemplate(i){let o=i._templateInfo;return o&&o.content||i.content}_stampTemplate(i,o){i&&!i.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(i),o=o||this.constructor._parseTemplate(i);let n=o.nodeInfoList,s=o.content||i.content,a=document.importNode(s,!0);a.__noInsertionPoint=!o.hasInsertionPoint;let l=a.nodeList=new Array(n.length);a.$={};for(let h=0,d=n.length,c;h<d&&(c=n[h]);h++){let u=l[h]=fh(a,c);Hm(this,a.$,u,c),Fm(this,u,c,o),Rm(this,u,c)}return a=a,a}_addMethodEventListenerToNode(i,o,n,s){s=s||i;let a=$m(s,o,n);return this._addEventListenerToNode(i,o,a),a}_addEventListenerToNode(i,o,n){i.addEventListener(o,n)}_removeEventListenerFromNode(i,o,n){i.removeEventListener(o,n)}}return e});/**
996
+ */const Nm={"dom-if":!0,"dom-repeat":!0};let la=!1,ha=!1;function zm(){if(!la){la=!0;const r=document.createElement("textarea");r.placeholder="a",ha=r.placeholder===r.textContent}return ha}function Bm(r){zm()&&r.localName==="textarea"&&r.placeholder&&r.placeholder===r.textContent&&(r.textContent=null)}const Lm=(()=>{const r=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,i)=>{const o=t.getAttribute(i);if(r&&i.startsWith("on-")){e.setAttribute(i,r.createScript(o,i));return}e.setAttribute(i,o)}})();function Hm(r){let e=r.getAttribute("is");if(e&&Nm[e]){let t=r;for(t.removeAttribute("is"),r=t.ownerDocument.createElement(e),t.parentNode.replaceChild(r,t),r.appendChild(t);t.attributes.length;){const{name:i}=t.attributes[0];Lm(r,t,i),t.removeAttribute(i)}}return r}function _h(r,e){let t=e.parentInfo&&_h(r,e.parentInfo);if(t){for(let i=t.firstChild,o=0;i;i=i.nextSibling)if(e.parentIndex===o++)return i}else return r}function Rm(r,e,t,i){i.id&&(e[i.id]=t)}function Fm(r,e,t){if(t.events&&t.events.length)for(let i=0,o=t.events,n;i<o.length&&(n=o[i]);i++)r._addMethodEventListenerToNode(e,n.name,n.value,r)}function $m(r,e,t,i){t.templateInfo&&(e._templateInfo=t.templateInfo,e._parentTemplateInfo=i)}function Vm(r,e,t){return r=r._methodHost||r,function(i){r[t]?r[t](i,i.detail):console.warn("listener method `"+t+"` not defined")}}const Wm=ve(r=>{class e extends r{static _parseTemplate(i,o){if(!i._templateInfo){let n=i._templateInfo={};n.nodeInfoList=[],n.nestedTemplate=!!o,n.stripWhiteSpace=o&&o.stripWhiteSpace||i.hasAttribute&&i.hasAttribute("strip-whitespace"),this._parseTemplateContent(i,n,{parent:null})}return i._templateInfo}static _parseTemplateContent(i,o,n){return this._parseTemplateNode(i.content,o,n)}static _parseTemplateNode(i,o,n){let s=!1,a=i;return a.localName=="template"&&!a.hasAttribute("preserve-content")?s=this._parseTemplateNestedTemplate(a,o,n)||s:a.localName==="slot"&&(o.hasInsertionPoint=!0),Bm(a),a.firstChild&&this._parseTemplateChildNodes(a,o,n),a.hasAttributes&&a.hasAttributes()&&(s=this._parseTemplateNodeAttributes(a,o,n)||s),s||n.noted}static _parseTemplateChildNodes(i,o,n){if(!(i.localName==="script"||i.localName==="style"))for(let s=i.firstChild,a=0,l;s;s=l){if(s.localName=="template"&&(s=Hm(s)),l=s.nextSibling,s.nodeType===Node.TEXT_NODE){let d=l;for(;d&&d.nodeType===Node.TEXT_NODE;)s.textContent+=d.textContent,l=d.nextSibling,i.removeChild(d),d=l;if(o.stripWhiteSpace&&!s.textContent.trim()){i.removeChild(s);continue}}let h={parentIndex:a,parentInfo:n};this._parseTemplateNode(s,o,h)&&(h.infoIndex=o.nodeInfoList.push(h)-1),s.parentNode&&a++}}static _parseTemplateNestedTemplate(i,o,n){let s=i,a=this._parseTemplate(s,o);return(a.content=s.content.ownerDocument.createDocumentFragment()).appendChild(s.content),n.templateInfo=a,!0}static _parseTemplateNodeAttributes(i,o,n){let s=!1,a=Array.from(i.attributes);for(let l=a.length-1,h;h=a[l];l--)s=this._parseTemplateNodeAttribute(i,o,n,h.name,h.value)||s;return s}static _parseTemplateNodeAttribute(i,o,n,s,a){return s.slice(0,3)==="on-"?(i.removeAttribute(s),n.events=n.events||[],n.events.push({name:s.slice(3),value:a}),!0):s==="id"?(n.id=a,!0):!1}static _contentForTemplate(i){let o=i._templateInfo;return o&&o.content||i.content}_stampTemplate(i,o){i&&!i.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(i),o=o||this.constructor._parseTemplate(i);let n=o.nodeInfoList,s=o.content||i.content,a=document.importNode(s,!0);a.__noInsertionPoint=!o.hasInsertionPoint;let l=a.nodeList=new Array(n.length);a.$={};for(let h=0,d=n.length,c;h<d&&(c=n[h]);h++){let u=l[h]=_h(a,c);Rm(this,a.$,u,c),$m(this,u,c,o),Fm(this,u,c)}return a=a,a}_addMethodEventListenerToNode(i,o,n,s){s=s||i;let a=Vm(s,o,n);return this._addEventListenerToNode(i,o,a),a}_addEventListenerToNode(i,o,n){i.addEventListener(o,n)}_removeEventListenerFromNode(i,o,n){i.removeEventListener(o,n)}}return e});/**
997
997
  * @fileoverview
998
998
  * @suppress {checkPrototypalTypes}
999
999
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1003,7 +1003,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1003
1003
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
1004
1004
  * Google as part of the polymer project is also subject to an additional IP
1005
1005
  * rights grant found at http://polymer.github.io/PATENTS.txt
1006
- */let Rr=0;const Fr=[],te={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},_h="__computeInfo",Wm=/[A-Z]/;function xo(r,e,t){let i=r[e];if(!i)i=r[e]={};else if(!r.hasOwnProperty(e)&&(i=r[e]=Object.create(r[e]),t))for(let o in i){let n=i[o],s=i[o]=Array(n.length);for(let a=0;a<n.length;a++)s[a]=n[a]}return i}function Er(r,e,t,i,o,n){if(e){let s=!1;const a=Rr++;for(let l in t){let h=o?Bt(l):l,d=e[h];if(d)for(let c=0,u=d.length,m;c<u&&(m=d[c]);c++)(!m.info||m.info.lastRun!==a)&&(!o||Bn(l,m.trigger))&&(m.info&&(m.info.lastRun=a),m.fn(r,l,t,i,m.info,o,n),s=!0)}return s}return!1}function jm(r,e,t,i,o,n,s,a){let l=!1,h=s?Bt(i):i,d=e[h];if(d)for(let c=0,u=d.length,m;c<u&&(m=d[c]);c++)(!m.info||m.info.lastRun!==t)&&(!s||Bn(i,m.trigger))&&(m.info&&(m.info.lastRun=t),m.fn(r,i,o,n,m.info,s,a),l=!0);return l}function Bn(r,e){if(e){let t=e.name;return t==r||!!(e.structured&&ah(t,r))||!!(e.wildcard&&Lr(t,r))}else return!0}function ha(r,e,t,i,o){let n=typeof o.method=="string"?r[o.method]:o.method,s=o.property;n?n.call(r,r.__data[s],i[s]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined")}function Um(r,e,t,i,o){let n=r[te.NOTIFY],s,a=Rr++;for(let h in e)e[h]&&(n&&jm(r,n,a,h,t,i,o)||o&&Gm(r,h,t))&&(s=!0);let l;s&&(l=r.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Gm(r,e,t){let i=Bt(e);if(i!==e){let o=Ki(i)+"-changed";return vh(r,o,t[e],e),!0}return!1}function vh(r,e,t,i){let o={value:t,queueProperty:!0};i&&(o.path=i),Pe(r).dispatchEvent(new CustomEvent(e,{detail:o}))}function qm(r,e,t,i,o,n){let s=(n?Bt(e):e)!=e?e:null,a=s?Le(r,s):r.__data[e];s&&a===void 0&&(a=t[e]),vh(r,o.eventName,a,s)}function Ym(r,e,t,i,o){let n,s=r.detail,a=s&&s.path;a?(i=Hr(t,i,a),n=s&&s.value):n=r.currentTarget[t],n=o?!n:n,(!e[te.READ_ONLY]||!e[te.READ_ONLY][i])&&e._setPendingPropertyOrPath(i,n,!0,!!a)&&(!s||!s.queueProperty)&&e._invalidateProperties()}function Xm(r,e,t,i,o){let n=r.__data[e];Mi&&(n=Mi(n,o.attrName,"attribute",r)),r._propertyToAttribute(e,o.attrName,n)}function Km(r,e,t,i){let o=r[te.COMPUTE];if(o)if(um){Rr++;const n=Jm(r),s=[];for(let l in e)da(l,o,s,n,i);let a;for(;a=s.shift();)gh(r,"",e,t,a)&&da(a.methodInfo,o,s,n,i);Object.assign(t,r.__dataOld),Object.assign(e,r.__dataPending),r.__dataPending=null}else{let n=e;for(;Er(r,o,n,t,i);)Object.assign(t,r.__dataOld),Object.assign(e,r.__dataPending),n=r.__dataPending,r.__dataPending=null}}const Zm=(r,e,t)=>{let i=0,o=e.length-1,n=-1;for(;i<=o;){const s=i+o>>1,a=t.get(e[s].methodInfo)-t.get(r.methodInfo);if(a<0)i=s+1;else if(a>0)o=s-1;else{n=s;break}}n<0&&(n=o+1),e.splice(n,0,r)},da=(r,e,t,i,o)=>{const n=o?Bt(r):r,s=e[n];if(s)for(let a=0;a<s.length;a++){const l=s[a];l.info.lastRun!==Rr&&(!o||Bn(r,l.trigger))&&(l.info.lastRun=Rr,Zm(l.info,t,i))}};function Jm(r){let e=r.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=r[te.COMPUTE];let{counts:i,ready:o,total:n}=Qm(r),s;for(;s=o.shift();){e.set(s,e.size);const a=t[s];a&&a.forEach(l=>{const h=l.info.methodInfo;--n,--i[h]===0&&o.push(h)})}n!==0&&console.warn(`Computed graph for ${r.localName} incomplete; circular?`),r.constructor.__orderedComputedDeps=e}return e}function Qm(r){const e=r[_h],t={},i=r[te.COMPUTE],o=[];let n=0;for(let s in e){const a=e[s];n+=t[s]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let s in i)e[s]||o.push(s);return{counts:t,ready:o,total:n}}function gh(r,e,t,i,o){let n=sn(r,e,t,i,o);if(n===Fr)return!1;let s=o.methodInfo;return r.__dataHasAccessor&&r.__dataHasAccessor[s]?r._setPendingProperty(s,n,!0):(r[s]=n,!1)}function ef(r,e,t){let i=r.__dataLinkedPaths;if(i){let o;for(let n in i){let s=i[n];Lr(n,e)?(o=Hr(n,s,e),r._setPendingPropertyOrPath(o,t,!0,!0)):Lr(s,e)&&(o=Hr(s,n,e),r._setPendingPropertyOrPath(o,t,!0,!0))}}}function wo(r,e,t,i,o,n,s){t.bindings=t.bindings||[];let a={kind:i,target:o,parts:n,literal:s,isCompound:n.length!==1};if(t.bindings.push(a),sf(a)){let{event:h,negate:d}=a.parts[0];a.listenerEvent=h||Ki(o)+"-changed",a.listenerNegate=d}let l=e.nodeInfoList.length;for(let h=0;h<a.parts.length;h++){let d=a.parts[h];d.compoundIndex=h,tf(r,e,a,d,l)}}function tf(r,e,t,i,o){if(!i.literal)if(t.kind==="attribute"&&t.target[0]==="-")console.warn("Cannot set attribute "+t.target+' because "-" is not a valid attribute starting character');else{let n=i.dependencies,s={index:o,binding:t,part:i,evaluator:r};for(let a=0;a<n.length;a++){let l=n[a];typeof l=="string"&&(l=yh(l),l.wildcard=!0),r._addTemplatePropertyEffect(e,l.rootProperty,{fn:rf,info:s,trigger:l})}}}function rf(r,e,t,i,o,n,s){let a=s[o.index],l=o.binding,h=o.part;if(n&&h.source&&e.length>h.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let d=t[e];e=Hr(h.source,l.target,e),a._setPendingPropertyOrPath(e,d,!1,!0)&&r._enqueueClient(a)}else{let d=o.evaluator._evaluateBinding(r,h,e,t,i,n);d!==Fr&&of(r,a,l,h,d)}}function of(r,e,t,i,o){if(o=nf(e,o,t,i),Mi&&(o=Mi(o,t.target,t.kind,e)),t.kind=="attribute")r._valueToNodeAttribute(e,o,t.target);else{let n=t.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[n]?(!e[te.READ_ONLY]||!e[te.READ_ONLY][n])&&e._setPendingProperty(n,o)&&r._enqueueClient(e):r._setUnmanagedPropertyToNode(e,n,o)}}function nf(r,e,t,i){if(t.isCompound){let o=r.__dataCompoundStorage[t.target];o[i.compoundIndex]=e,e=o.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(r.localName==="input"||r.localName==="textarea"))&&(e=e==null?"":e),e}function sf(r){return!!r.target&&r.kind!="attribute"&&r.kind!="text"&&!r.isCompound&&r.parts[0].mode==="{"}function af(r,e){let{nodeList:t,nodeInfoList:i}=e;if(i.length)for(let o=0;o<i.length;o++){let n=i[o],s=t[o],a=n.bindings;if(a)for(let l=0;l<a.length;l++){let h=a[l];lf(s,h),hf(s,r,h)}s.__dataHost=r}}function lf(r,e){if(e.isCompound){let t=r.__dataCompoundStorage||(r.__dataCompoundStorage={}),i=e.parts,o=new Array(i.length);for(let s=0;s<i.length;s++)o[s]=i[s].literal;let n=e.target;t[n]=o,e.literal&&e.kind=="property"&&(n==="className"&&(r=Pe(r)),r[n]=e.literal)}}function hf(r,e,t){if(t.listenerEvent){let i=t.parts[0];r.addEventListener(t.listenerEvent,function(o){Ym(o,e,t.target,i.source,i.negate)})}}function ca(r,e,t,i,o,n){n=e.static||n&&(typeof n!="object"||n[e.methodName]);let s={methodName:e.methodName,args:e.args,methodInfo:o,dynamicFn:n};for(let a=0,l;a<e.args.length&&(l=e.args[a]);a++)l.literal||r._addPropertyEffect(l.rootProperty,t,{fn:i,info:s,trigger:l});return n&&r._addPropertyEffect(e.methodName,t,{fn:i,info:s}),s}function sn(r,e,t,i,o){let n=r._methodHost||r,s=n[o.methodName];if(s){let a=r._marshalArgs(o.args,e,t);return a===Fr?Fr:s.apply(n,a)}else o.dynamicFn||console.warn("method `"+o.methodName+"` not defined")}const df=[],bh="(?:[a-zA-Z_$][\\w.:$\\-*]*)",cf="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",uf="(?:'(?:[^'\\\\]|\\\\.)*')",pf='(?:"(?:[^"\\\\]|\\\\.)*")',mf="(?:"+uf+"|"+pf+")",ua="(?:("+bh+"|"+cf+"|"+mf+")\\s*)",ff="(?:"+ua+"(?:,\\s*"+ua+")*)",_f="(?:\\(\\s*(?:"+ff+"?)\\)\\s*)",vf="("+bh+"\\s*"+_f+"?)",gf="(\\[\\[|{{)\\s*",bf="(?:]]|}})",yf="(?:(!)\\s*)?",xf=gf+yf+vf+bf,pa=new RegExp(xf,"g");function ma(r){let e="";for(let t=0;t<r.length;t++){let i=r[t].literal;e+=i||""}return e}function Co(r){let e=r.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:df};if(e[2].trim()){let i=e[2].replace(/\\,/g,"&comma;").split(",");return wf(i,t)}else return t}return null}function wf(r,e){return e.args=r.map(function(t){let i=yh(t);return i.literal||(e.static=!1),i},this),e}function yh(r){let e=r.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},i=e[0];switch(i==="-"&&(i=e[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':t.value=e.slice(1,-1),t.literal=!0;break;case"#":t.value=Number(e),t.literal=!0;break}return t.literal||(t.rootProperty=Bt(e),t.structured=on(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function fa(r,e,t){let i=Le(r,t);return i===void 0&&(i=e[t]),i}function xh(r,e,t,i){const o={indexSplices:i};rn&&!r._overrideLegacyUndefined&&(e.splices=o),r.notifyPath(t+".splices",o),r.notifyPath(t+".length",e.length),rn&&!r._overrideLegacyUndefined&&(o.indexSplices=[])}function br(r,e,t,i,o,n){xh(r,e,t,[{index:i,addedCount:o,removed:n,object:e,type:"splice"}])}function Cf(r){return r[0].toUpperCase()+r.substring(1)}const Ln=ve(r=>{const e=Vm(Om(r));class t extends e{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 te}_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(yr.length){let o=yr[yr.length-1];o._enqueueClient(this),this.__dataHost=o}}_initializeProtoProperties(o){this.__data=Object.create(o),this.__dataPending=Object.create(o),this.__dataOld={}}_initializeInstanceProperties(o){let n=this[te.READ_ONLY];for(let s in o)(!n||!n[s])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[s]=this.__dataPending[s]=o[s])}_addPropertyEffect(o,n,s){this._createPropertyAccessor(o,n==te.READ_ONLY);let a=xo(this,n,!0)[o];a||(a=this[n][o]=[]),a.push(s)}_removePropertyEffect(o,n,s){let a=xo(this,n,!0)[o],l=a.indexOf(s);l>=0&&a.splice(l,1)}_hasPropertyEffect(o,n){let s=this[n];return!!(s&&s[o])}_hasReadOnlyEffect(o){return this._hasPropertyEffect(o,te.READ_ONLY)}_hasNotifyEffect(o){return this._hasPropertyEffect(o,te.NOTIFY)}_hasReflectEffect(o){return this._hasPropertyEffect(o,te.REFLECT)}_hasComputedEffect(o){return this._hasPropertyEffect(o,te.COMPUTE)}_setPendingPropertyOrPath(o,n,s,a){if(a||Bt(Array.isArray(o)?o[0]:o)!==o){if(!a){let l=Le(this,o);if(o=sa(this,o,n),!o||!super._shouldPropertyChange(o,n,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(o,n,s))return ef(this,o,n),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[o])return this._setPendingProperty(o,n,s);this[o]=n}return!1}_setUnmanagedPropertyToNode(o,n,s){(s!==o[n]||typeof s=="object")&&(n==="className"&&(o=Pe(o)),o[n]=s)}_setPendingProperty(o,n,s){let a=this.__dataHasPaths&&on(o),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(o,n,l[o])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),o in this.__dataOld||(this.__dataOld[o]=this.__data[o]),a?this.__dataTemp[o]=n:this.__data[o]=n,this.__dataPending[o]=n,(a||this[te.NOTIFY]&&this[te.NOTIFY][o])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[o]=s),!0):!1}_setProperty(o,n){this._setPendingProperty(o,n,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(o){this.__dataPendingClients=this.__dataPendingClients||[],o!==this&&this.__dataPendingClients.push(o)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let o=this.__dataPendingClients;if(o){this.__dataPendingClients=null;for(let n=0;n<o.length;n++){let s=o[n];s.__dataEnabled?s.__dataPending&&s._flushProperties():s._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(o,n){for(let s in o)(n||!this[te.READ_ONLY]||!this[te.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,o[s],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(o,n,s){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Km(this,n,s,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(n,s,a),this._flushClients(),Er(this,this[te.REFLECT],n,s,a),Er(this,this[te.OBSERVE],n,s,a),l&&Um(this,l,n,s,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(o,n,s){this[te.PROPAGATE]&&Er(this,this[te.PROPAGATE],o,n,s),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,o,n,s)}_runEffectsForTemplate(o,n,s,a){const l=(h,d)=>{Er(this,o.propertyEffects,h,s,d,o.nodeList);for(let c=o.firstChild;c;c=c.nextSibling)this._runEffectsForTemplate(c,h,s,d)};o.runEffects?o.runEffects(l,n,a):l(n,a)}linkPaths(o,n){o=Cr(o),n=Cr(n),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[o]=n}unlinkPaths(o){o=Cr(o),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[o]}notifySplices(o,n){let s={path:""},a=Le(this,o,s);xh(this,a,s.path,n)}get(o,n){return Le(n||this,o)}set(o,n,s){s?sa(s,o,n):(!this[te.READ_ONLY]||!this[te.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,n,!0)&&this._invalidateProperties()}push(o,...n){let s={path:""},a=Le(this,o,s),l=a.length,h=a.push(...n);return n.length&&br(this,a,s.path,l,n.length,[]),h}pop(o){let n={path:""},s=Le(this,o,n),a=!!s.length,l=s.pop();return a&&br(this,s,n.path,s.length,0,[l]),l}splice(o,n,s,...a){let l={path:""},h=Le(this,o,l);n<0?n=h.length-Math.floor(-n):n&&(n=Math.floor(n));let d;return arguments.length===2?d=h.splice(n):d=h.splice(n,s,...a),(a.length||d.length)&&br(this,h,l.path,n,a.length,d),d}shift(o){let n={path:""},s=Le(this,o,n),a=!!s.length,l=s.shift();return a&&br(this,s,n.path,0,0,[l]),l}unshift(o,...n){let s={path:""},a=Le(this,o,s),l=a.unshift(...n);return n.length&&br(this,a,s.path,0,n.length,[]),l}notifyPath(o,n){let s;if(arguments.length==1){let a={path:""};n=Le(this,o,a),s=a.path}else Array.isArray(o)?s=Cr(o):s=o;this._setPendingPropertyOrPath(s,n,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(o,n){this._addPropertyEffect(o,te.READ_ONLY),n&&(this["_set"+Cf(o)]=function(s){this._setProperty(o,s)})}_createPropertyObserver(o,n,s){let a={property:o,method:n,dynamicFn:!!s};this._addPropertyEffect(o,te.OBSERVE,{fn:ha,info:a,trigger:{name:o}}),s&&this._addPropertyEffect(n,te.OBSERVE,{fn:ha,info:a,trigger:{name:n}})}_createMethodObserver(o,n){let s=Co(o);if(!s)throw new Error("Malformed observer expression '"+o+"'");ca(this,s,te.OBSERVE,sn,null,n)}_createNotifyingProperty(o){this._addPropertyEffect(o,te.NOTIFY,{fn:qm,info:{eventName:Ki(o)+"-changed",property:o}})}_createReflectedProperty(o){let n=this.constructor.attributeNameForProperty(o);n[0]==="-"?console.warn("Property "+o+" cannot be reflected to attribute "+n+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(o,te.REFLECT,{fn:Xm,info:{attrName:n}})}_createComputedProperty(o,n,s){let a=Co(n);if(!a)throw new Error("Malformed computed expression '"+n+"'");const l=ca(this,a,te.COMPUTE,gh,o,s);xo(this,_h)[o]=l}_marshalArgs(o,n,s){const a=this.__data,l=[];for(let h=0,d=o.length;h<d;h++){let{name:c,structured:u,wildcard:m,value:g,literal:_}=o[h];if(!_)if(m){const y=Lr(c,n),D=fa(a,s,y?n:c);g={path:y?n:c,value:D,base:y?Le(a,c):D}}else g=u?fa(a,s,c):a[c];if(rn&&!this._overrideLegacyUndefined&&g===void 0&&o.length>1)return Fr;l[h]=g}return l}static addPropertyEffect(o,n,s){this.prototype._addPropertyEffect(o,n,s)}static createPropertyObserver(o,n,s){this.prototype._createPropertyObserver(o,n,s)}static createMethodObserver(o,n){this.prototype._createMethodObserver(o,n)}static createNotifyingProperty(o){this.prototype._createNotifyingProperty(o)}static createReadOnlyProperty(o,n){this.prototype._createReadOnlyProperty(o,n)}static createReflectedProperty(o){this.prototype._createReflectedProperty(o)}static createComputedProperty(o,n,s){this.prototype._createComputedProperty(o,n,s)}static bindTemplate(o){return this.prototype._bindTemplate(o)}_bindTemplate(o,n){let s=this.constructor._parseTemplate(o),a=this.__preBoundTemplateInfo==s;if(!a)for(let l in s.propertyEffects)this._createPropertyAccessor(l);if(n)if(s=Object.create(s),s.wasPreBound=a,!this.__templateInfo)this.__templateInfo=s;else{const l=o._parentTemplateInfo||this.__templateInfo,h=l.lastChild;s.parent=l,l.lastChild=s,s.previousSibling=h,h?h.nextSibling=s:l.firstChild=s}else this.__preBoundTemplateInfo=s;return s}static _addTemplatePropertyEffect(o,n,s){let a=o.hostProps=o.hostProps||{};a[n]=!0;let l=o.propertyEffects=o.propertyEffects||{};(l[n]=l[n]||[]).push(s)}_stampTemplate(o,n){n=n||this._bindTemplate(o,!0),yr.push(this);let s=super._stampTemplate(o,n);if(yr.pop(),n.nodeList=s.nodeList,!n.wasPreBound){let a=n.childNodes=[];for(let l=s.firstChild;l;l=l.nextSibling)a.push(l)}return s.templateInfo=n,af(this,n),this.__dataClientsReady&&(this._runEffectsForTemplate(n,this.__data,null,!1),this._flushClients()),s}_removeBoundDom(o){const n=o.templateInfo,{previousSibling:s,nextSibling:a,parent:l}=n;s?s.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=s:l&&(l.lastChild=s),n.nextSibling=n.previousSibling=null;let h=n.childNodes;for(let d=0;d<h.length;d++){let c=h[d];Pe(Pe(c).parentNode).removeChild(c)}}static _parseTemplateNode(o,n,s){let a=e._parseTemplateNode.call(this,o,n,s);if(o.nodeType===Node.TEXT_NODE){let l=this._parseBindings(o.textContent,n);l&&(o.textContent=ma(l)||" ",wo(this,n,s,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(o,n,s,a,l){let h=this._parseBindings(l,n);if(h){let d=a,c="property";Wm.test(a)?c="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),c="attribute");let u=ma(h);return u&&c=="attribute"&&(a=="class"&&o.hasAttribute("class")&&(u+=" "+o.getAttribute(a)),o.setAttribute(a,u)),c=="attribute"&&d=="disable-upgrade$"&&o.setAttribute(a,""),o.localName==="input"&&d==="value"&&o.setAttribute(d,""),o.removeAttribute(d),c==="property"&&(a=hh(a)),wo(this,n,s,c,a,h,u),!0}else return e._parseTemplateNodeAttribute.call(this,o,n,s,a,l)}static _parseTemplateNestedTemplate(o,n,s){let a=e._parseTemplateNestedTemplate.call(this,o,n,s);const l=o.parentNode,h=s.templateInfo,d=l.localName==="dom-if",c=l.localName==="dom-repeat";ea&&(d||c)&&(l.removeChild(o),s=s.parentInfo,s.templateInfo=h,s.noted=!0,a=!1);let u=h.hostProps;if(pm&&d)u&&(n.hostProps=Object.assign(n.hostProps||{},u),ea||(s.parentInfo.noted=!0));else{let m="{";for(let g in u){let _=[{mode:m,source:g,dependencies:[g],hostProp:!0}];wo(this,n,s,"property","_host_"+g,_)}}return a}static _parseBindings(o,n){let s=[],a=0,l;for(;(l=pa.exec(o))!==null;){l.index>a&&s.push({literal:o.slice(a,l.index)});let h=l[1][0],d=!!l[2],c=l[3].trim(),u=!1,m="",g=-1;h=="{"&&(g=c.indexOf("::"))>0&&(m=c.substring(g+2),c=c.substring(0,g),u=!0);let _=Co(c),y=[];if(_){let{args:D,methodName:A}=_;for(let R=0;R<D.length;R++){let W=D[R];W.literal||y.push(W)}let M=n.dynamicFns;(M&&M[A]||_.static)&&(y.push(A),_.dynamicFn=!0)}else y.push(c);s.push({source:c,mode:h,negate:d,customEvent:u,signature:_,dependencies:y,event:m}),a=pa.lastIndex}if(a&&a<o.length){let h=o.substring(a);h&&s.push({literal:h})}return s.length?s:null}static _evaluateBinding(o,n,s,a,l,h){let d;return n.signature?d=sn(o,s,a,l,n.signature):s!=n.source?d=Le(o,n.source):h&&on(s)?d=Le(o,s):d=o.__data[s],n.negate&&(d=!d),d}}return t}),yr=[];/**
1006
+ */let Rr=0;const Fr=[],te={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},vh="__computeInfo",jm=/[A-Z]/;function xo(r,e,t){let i=r[e];if(!i)i=r[e]={};else if(!r.hasOwnProperty(e)&&(i=r[e]=Object.create(r[e]),t))for(let o in i){let n=i[o],s=i[o]=Array(n.length);for(let a=0;a<n.length;a++)s[a]=n[a]}return i}function Er(r,e,t,i,o,n){if(e){let s=!1;const a=Rr++;for(let l in t){let h=o?Bt(l):l,d=e[h];if(d)for(let c=0,u=d.length,m;c<u&&(m=d[c]);c++)(!m.info||m.info.lastRun!==a)&&(!o||Bn(l,m.trigger))&&(m.info&&(m.info.lastRun=a),m.fn(r,l,t,i,m.info,o,n),s=!0)}return s}return!1}function Um(r,e,t,i,o,n,s,a){let l=!1,h=s?Bt(i):i,d=e[h];if(d)for(let c=0,u=d.length,m;c<u&&(m=d[c]);c++)(!m.info||m.info.lastRun!==t)&&(!s||Bn(i,m.trigger))&&(m.info&&(m.info.lastRun=t),m.fn(r,i,o,n,m.info,s,a),l=!0);return l}function Bn(r,e){if(e){let t=e.name;return t==r||!!(e.structured&&lh(t,r))||!!(e.wildcard&&Lr(t,r))}else return!0}function da(r,e,t,i,o){let n=typeof o.method=="string"?r[o.method]:o.method,s=o.property;n?n.call(r,r.__data[s],i[s]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined")}function Gm(r,e,t,i,o){let n=r[te.NOTIFY],s,a=Rr++;for(let h in e)e[h]&&(n&&Um(r,n,a,h,t,i,o)||o&&qm(r,h,t))&&(s=!0);let l;s&&(l=r.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function qm(r,e,t){let i=Bt(e);if(i!==e){let o=Ki(i)+"-changed";return gh(r,o,t[e],e),!0}return!1}function gh(r,e,t,i){let o={value:t,queueProperty:!0};i&&(o.path=i),Pe(r).dispatchEvent(new CustomEvent(e,{detail:o}))}function Ym(r,e,t,i,o,n){let s=(n?Bt(e):e)!=e?e:null,a=s?Le(r,s):r.__data[e];s&&a===void 0&&(a=t[e]),gh(r,o.eventName,a,s)}function Xm(r,e,t,i,o){let n,s=r.detail,a=s&&s.path;a?(i=Hr(t,i,a),n=s&&s.value):n=r.currentTarget[t],n=o?!n:n,(!e[te.READ_ONLY]||!e[te.READ_ONLY][i])&&e._setPendingPropertyOrPath(i,n,!0,!!a)&&(!s||!s.queueProperty)&&e._invalidateProperties()}function Km(r,e,t,i,o){let n=r.__data[e];Mi&&(n=Mi(n,o.attrName,"attribute",r)),r._propertyToAttribute(e,o.attrName,n)}function Zm(r,e,t,i){let o=r[te.COMPUTE];if(o)if(pm){Rr++;const n=Qm(r),s=[];for(let l in e)ca(l,o,s,n,i);let a;for(;a=s.shift();)bh(r,"",e,t,a)&&ca(a.methodInfo,o,s,n,i);Object.assign(t,r.__dataOld),Object.assign(e,r.__dataPending),r.__dataPending=null}else{let n=e;for(;Er(r,o,n,t,i);)Object.assign(t,r.__dataOld),Object.assign(e,r.__dataPending),n=r.__dataPending,r.__dataPending=null}}const Jm=(r,e,t)=>{let i=0,o=e.length-1,n=-1;for(;i<=o;){const s=i+o>>1,a=t.get(e[s].methodInfo)-t.get(r.methodInfo);if(a<0)i=s+1;else if(a>0)o=s-1;else{n=s;break}}n<0&&(n=o+1),e.splice(n,0,r)},ca=(r,e,t,i,o)=>{const n=o?Bt(r):r,s=e[n];if(s)for(let a=0;a<s.length;a++){const l=s[a];l.info.lastRun!==Rr&&(!o||Bn(r,l.trigger))&&(l.info.lastRun=Rr,Jm(l.info,t,i))}};function Qm(r){let e=r.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=r[te.COMPUTE];let{counts:i,ready:o,total:n}=ef(r),s;for(;s=o.shift();){e.set(s,e.size);const a=t[s];a&&a.forEach(l=>{const h=l.info.methodInfo;--n,--i[h]===0&&o.push(h)})}n!==0&&console.warn(`Computed graph for ${r.localName} incomplete; circular?`),r.constructor.__orderedComputedDeps=e}return e}function ef(r){const e=r[vh],t={},i=r[te.COMPUTE],o=[];let n=0;for(let s in e){const a=e[s];n+=t[s]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let s in i)e[s]||o.push(s);return{counts:t,ready:o,total:n}}function bh(r,e,t,i,o){let n=sn(r,e,t,i,o);if(n===Fr)return!1;let s=o.methodInfo;return r.__dataHasAccessor&&r.__dataHasAccessor[s]?r._setPendingProperty(s,n,!0):(r[s]=n,!1)}function tf(r,e,t){let i=r.__dataLinkedPaths;if(i){let o;for(let n in i){let s=i[n];Lr(n,e)?(o=Hr(n,s,e),r._setPendingPropertyOrPath(o,t,!0,!0)):Lr(s,e)&&(o=Hr(s,n,e),r._setPendingPropertyOrPath(o,t,!0,!0))}}}function wo(r,e,t,i,o,n,s){t.bindings=t.bindings||[];let a={kind:i,target:o,parts:n,literal:s,isCompound:n.length!==1};if(t.bindings.push(a),af(a)){let{event:h,negate:d}=a.parts[0];a.listenerEvent=h||Ki(o)+"-changed",a.listenerNegate=d}let l=e.nodeInfoList.length;for(let h=0;h<a.parts.length;h++){let d=a.parts[h];d.compoundIndex=h,rf(r,e,a,d,l)}}function rf(r,e,t,i,o){if(!i.literal)if(t.kind==="attribute"&&t.target[0]==="-")console.warn("Cannot set attribute "+t.target+' because "-" is not a valid attribute starting character');else{let n=i.dependencies,s={index:o,binding:t,part:i,evaluator:r};for(let a=0;a<n.length;a++){let l=n[a];typeof l=="string"&&(l=xh(l),l.wildcard=!0),r._addTemplatePropertyEffect(e,l.rootProperty,{fn:of,info:s,trigger:l})}}}function of(r,e,t,i,o,n,s){let a=s[o.index],l=o.binding,h=o.part;if(n&&h.source&&e.length>h.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let d=t[e];e=Hr(h.source,l.target,e),a._setPendingPropertyOrPath(e,d,!1,!0)&&r._enqueueClient(a)}else{let d=o.evaluator._evaluateBinding(r,h,e,t,i,n);d!==Fr&&nf(r,a,l,h,d)}}function nf(r,e,t,i,o){if(o=sf(e,o,t,i),Mi&&(o=Mi(o,t.target,t.kind,e)),t.kind=="attribute")r._valueToNodeAttribute(e,o,t.target);else{let n=t.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[n]?(!e[te.READ_ONLY]||!e[te.READ_ONLY][n])&&e._setPendingProperty(n,o)&&r._enqueueClient(e):r._setUnmanagedPropertyToNode(e,n,o)}}function sf(r,e,t,i){if(t.isCompound){let o=r.__dataCompoundStorage[t.target];o[i.compoundIndex]=e,e=o.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(r.localName==="input"||r.localName==="textarea"))&&(e=e==null?"":e),e}function af(r){return!!r.target&&r.kind!="attribute"&&r.kind!="text"&&!r.isCompound&&r.parts[0].mode==="{"}function lf(r,e){let{nodeList:t,nodeInfoList:i}=e;if(i.length)for(let o=0;o<i.length;o++){let n=i[o],s=t[o],a=n.bindings;if(a)for(let l=0;l<a.length;l++){let h=a[l];hf(s,h),df(s,r,h)}s.__dataHost=r}}function hf(r,e){if(e.isCompound){let t=r.__dataCompoundStorage||(r.__dataCompoundStorage={}),i=e.parts,o=new Array(i.length);for(let s=0;s<i.length;s++)o[s]=i[s].literal;let n=e.target;t[n]=o,e.literal&&e.kind=="property"&&(n==="className"&&(r=Pe(r)),r[n]=e.literal)}}function df(r,e,t){if(t.listenerEvent){let i=t.parts[0];r.addEventListener(t.listenerEvent,function(o){Xm(o,e,t.target,i.source,i.negate)})}}function ua(r,e,t,i,o,n){n=e.static||n&&(typeof n!="object"||n[e.methodName]);let s={methodName:e.methodName,args:e.args,methodInfo:o,dynamicFn:n};for(let a=0,l;a<e.args.length&&(l=e.args[a]);a++)l.literal||r._addPropertyEffect(l.rootProperty,t,{fn:i,info:s,trigger:l});return n&&r._addPropertyEffect(e.methodName,t,{fn:i,info:s}),s}function sn(r,e,t,i,o){let n=r._methodHost||r,s=n[o.methodName];if(s){let a=r._marshalArgs(o.args,e,t);return a===Fr?Fr:s.apply(n,a)}else o.dynamicFn||console.warn("method `"+o.methodName+"` not defined")}const cf=[],yh="(?:[a-zA-Z_$][\\w.:$\\-*]*)",uf="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",pf="(?:'(?:[^'\\\\]|\\\\.)*')",mf='(?:"(?:[^"\\\\]|\\\\.)*")',ff="(?:"+pf+"|"+mf+")",pa="(?:("+yh+"|"+uf+"|"+ff+")\\s*)",_f="(?:"+pa+"(?:,\\s*"+pa+")*)",vf="(?:\\(\\s*(?:"+_f+"?)\\)\\s*)",gf="("+yh+"\\s*"+vf+"?)",bf="(\\[\\[|{{)\\s*",yf="(?:]]|}})",xf="(?:(!)\\s*)?",wf=bf+xf+gf+yf,ma=new RegExp(wf,"g");function fa(r){let e="";for(let t=0;t<r.length;t++){let i=r[t].literal;e+=i||""}return e}function Co(r){let e=r.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:cf};if(e[2].trim()){let i=e[2].replace(/\\,/g,"&comma;").split(",");return Cf(i,t)}else return t}return null}function Cf(r,e){return e.args=r.map(function(t){let i=xh(t);return i.literal||(e.static=!1),i},this),e}function xh(r){let e=r.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},i=e[0];switch(i==="-"&&(i=e[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':t.value=e.slice(1,-1),t.literal=!0;break;case"#":t.value=Number(e),t.literal=!0;break}return t.literal||(t.rootProperty=Bt(e),t.structured=on(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function _a(r,e,t){let i=Le(r,t);return i===void 0&&(i=e[t]),i}function wh(r,e,t,i){const o={indexSplices:i};rn&&!r._overrideLegacyUndefined&&(e.splices=o),r.notifyPath(t+".splices",o),r.notifyPath(t+".length",e.length),rn&&!r._overrideLegacyUndefined&&(o.indexSplices=[])}function br(r,e,t,i,o,n){wh(r,e,t,[{index:i,addedCount:o,removed:n,object:e,type:"splice"}])}function Ef(r){return r[0].toUpperCase()+r.substring(1)}const Ln=ve(r=>{const e=Wm(Mm(r));class t extends e{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 te}_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(yr.length){let o=yr[yr.length-1];o._enqueueClient(this),this.__dataHost=o}}_initializeProtoProperties(o){this.__data=Object.create(o),this.__dataPending=Object.create(o),this.__dataOld={}}_initializeInstanceProperties(o){let n=this[te.READ_ONLY];for(let s in o)(!n||!n[s])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[s]=this.__dataPending[s]=o[s])}_addPropertyEffect(o,n,s){this._createPropertyAccessor(o,n==te.READ_ONLY);let a=xo(this,n,!0)[o];a||(a=this[n][o]=[]),a.push(s)}_removePropertyEffect(o,n,s){let a=xo(this,n,!0)[o],l=a.indexOf(s);l>=0&&a.splice(l,1)}_hasPropertyEffect(o,n){let s=this[n];return!!(s&&s[o])}_hasReadOnlyEffect(o){return this._hasPropertyEffect(o,te.READ_ONLY)}_hasNotifyEffect(o){return this._hasPropertyEffect(o,te.NOTIFY)}_hasReflectEffect(o){return this._hasPropertyEffect(o,te.REFLECT)}_hasComputedEffect(o){return this._hasPropertyEffect(o,te.COMPUTE)}_setPendingPropertyOrPath(o,n,s,a){if(a||Bt(Array.isArray(o)?o[0]:o)!==o){if(!a){let l=Le(this,o);if(o=aa(this,o,n),!o||!super._shouldPropertyChange(o,n,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(o,n,s))return tf(this,o,n),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[o])return this._setPendingProperty(o,n,s);this[o]=n}return!1}_setUnmanagedPropertyToNode(o,n,s){(s!==o[n]||typeof s=="object")&&(n==="className"&&(o=Pe(o)),o[n]=s)}_setPendingProperty(o,n,s){let a=this.__dataHasPaths&&on(o),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(o,n,l[o])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),o in this.__dataOld||(this.__dataOld[o]=this.__data[o]),a?this.__dataTemp[o]=n:this.__data[o]=n,this.__dataPending[o]=n,(a||this[te.NOTIFY]&&this[te.NOTIFY][o])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[o]=s),!0):!1}_setProperty(o,n){this._setPendingProperty(o,n,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(o){this.__dataPendingClients=this.__dataPendingClients||[],o!==this&&this.__dataPendingClients.push(o)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let o=this.__dataPendingClients;if(o){this.__dataPendingClients=null;for(let n=0;n<o.length;n++){let s=o[n];s.__dataEnabled?s.__dataPending&&s._flushProperties():s._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(o,n){for(let s in o)(n||!this[te.READ_ONLY]||!this[te.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,o[s],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(o,n,s){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Zm(this,n,s,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(n,s,a),this._flushClients(),Er(this,this[te.REFLECT],n,s,a),Er(this,this[te.OBSERVE],n,s,a),l&&Gm(this,l,n,s,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(o,n,s){this[te.PROPAGATE]&&Er(this,this[te.PROPAGATE],o,n,s),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,o,n,s)}_runEffectsForTemplate(o,n,s,a){const l=(h,d)=>{Er(this,o.propertyEffects,h,s,d,o.nodeList);for(let c=o.firstChild;c;c=c.nextSibling)this._runEffectsForTemplate(c,h,s,d)};o.runEffects?o.runEffects(l,n,a):l(n,a)}linkPaths(o,n){o=Cr(o),n=Cr(n),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[o]=n}unlinkPaths(o){o=Cr(o),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[o]}notifySplices(o,n){let s={path:""},a=Le(this,o,s);wh(this,a,s.path,n)}get(o,n){return Le(n||this,o)}set(o,n,s){s?aa(s,o,n):(!this[te.READ_ONLY]||!this[te.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,n,!0)&&this._invalidateProperties()}push(o,...n){let s={path:""},a=Le(this,o,s),l=a.length,h=a.push(...n);return n.length&&br(this,a,s.path,l,n.length,[]),h}pop(o){let n={path:""},s=Le(this,o,n),a=!!s.length,l=s.pop();return a&&br(this,s,n.path,s.length,0,[l]),l}splice(o,n,s,...a){let l={path:""},h=Le(this,o,l);n<0?n=h.length-Math.floor(-n):n&&(n=Math.floor(n));let d;return arguments.length===2?d=h.splice(n):d=h.splice(n,s,...a),(a.length||d.length)&&br(this,h,l.path,n,a.length,d),d}shift(o){let n={path:""},s=Le(this,o,n),a=!!s.length,l=s.shift();return a&&br(this,s,n.path,0,0,[l]),l}unshift(o,...n){let s={path:""},a=Le(this,o,s),l=a.unshift(...n);return n.length&&br(this,a,s.path,0,n.length,[]),l}notifyPath(o,n){let s;if(arguments.length==1){let a={path:""};n=Le(this,o,a),s=a.path}else Array.isArray(o)?s=Cr(o):s=o;this._setPendingPropertyOrPath(s,n,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(o,n){this._addPropertyEffect(o,te.READ_ONLY),n&&(this["_set"+Ef(o)]=function(s){this._setProperty(o,s)})}_createPropertyObserver(o,n,s){let a={property:o,method:n,dynamicFn:!!s};this._addPropertyEffect(o,te.OBSERVE,{fn:da,info:a,trigger:{name:o}}),s&&this._addPropertyEffect(n,te.OBSERVE,{fn:da,info:a,trigger:{name:n}})}_createMethodObserver(o,n){let s=Co(o);if(!s)throw new Error("Malformed observer expression '"+o+"'");ua(this,s,te.OBSERVE,sn,null,n)}_createNotifyingProperty(o){this._addPropertyEffect(o,te.NOTIFY,{fn:Ym,info:{eventName:Ki(o)+"-changed",property:o}})}_createReflectedProperty(o){let n=this.constructor.attributeNameForProperty(o);n[0]==="-"?console.warn("Property "+o+" cannot be reflected to attribute "+n+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(o,te.REFLECT,{fn:Km,info:{attrName:n}})}_createComputedProperty(o,n,s){let a=Co(n);if(!a)throw new Error("Malformed computed expression '"+n+"'");const l=ua(this,a,te.COMPUTE,bh,o,s);xo(this,vh)[o]=l}_marshalArgs(o,n,s){const a=this.__data,l=[];for(let h=0,d=o.length;h<d;h++){let{name:c,structured:u,wildcard:m,value:g,literal:_}=o[h];if(!_)if(m){const y=Lr(c,n),D=_a(a,s,y?n:c);g={path:y?n:c,value:D,base:y?Le(a,c):D}}else g=u?_a(a,s,c):a[c];if(rn&&!this._overrideLegacyUndefined&&g===void 0&&o.length>1)return Fr;l[h]=g}return l}static addPropertyEffect(o,n,s){this.prototype._addPropertyEffect(o,n,s)}static createPropertyObserver(o,n,s){this.prototype._createPropertyObserver(o,n,s)}static createMethodObserver(o,n){this.prototype._createMethodObserver(o,n)}static createNotifyingProperty(o){this.prototype._createNotifyingProperty(o)}static createReadOnlyProperty(o,n){this.prototype._createReadOnlyProperty(o,n)}static createReflectedProperty(o){this.prototype._createReflectedProperty(o)}static createComputedProperty(o,n,s){this.prototype._createComputedProperty(o,n,s)}static bindTemplate(o){return this.prototype._bindTemplate(o)}_bindTemplate(o,n){let s=this.constructor._parseTemplate(o),a=this.__preBoundTemplateInfo==s;if(!a)for(let l in s.propertyEffects)this._createPropertyAccessor(l);if(n)if(s=Object.create(s),s.wasPreBound=a,!this.__templateInfo)this.__templateInfo=s;else{const l=o._parentTemplateInfo||this.__templateInfo,h=l.lastChild;s.parent=l,l.lastChild=s,s.previousSibling=h,h?h.nextSibling=s:l.firstChild=s}else this.__preBoundTemplateInfo=s;return s}static _addTemplatePropertyEffect(o,n,s){let a=o.hostProps=o.hostProps||{};a[n]=!0;let l=o.propertyEffects=o.propertyEffects||{};(l[n]=l[n]||[]).push(s)}_stampTemplate(o,n){n=n||this._bindTemplate(o,!0),yr.push(this);let s=super._stampTemplate(o,n);if(yr.pop(),n.nodeList=s.nodeList,!n.wasPreBound){let a=n.childNodes=[];for(let l=s.firstChild;l;l=l.nextSibling)a.push(l)}return s.templateInfo=n,lf(this,n),this.__dataClientsReady&&(this._runEffectsForTemplate(n,this.__data,null,!1),this._flushClients()),s}_removeBoundDom(o){const n=o.templateInfo,{previousSibling:s,nextSibling:a,parent:l}=n;s?s.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=s:l&&(l.lastChild=s),n.nextSibling=n.previousSibling=null;let h=n.childNodes;for(let d=0;d<h.length;d++){let c=h[d];Pe(Pe(c).parentNode).removeChild(c)}}static _parseTemplateNode(o,n,s){let a=e._parseTemplateNode.call(this,o,n,s);if(o.nodeType===Node.TEXT_NODE){let l=this._parseBindings(o.textContent,n);l&&(o.textContent=fa(l)||" ",wo(this,n,s,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(o,n,s,a,l){let h=this._parseBindings(l,n);if(h){let d=a,c="property";jm.test(a)?c="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),c="attribute");let u=fa(h);return u&&c=="attribute"&&(a=="class"&&o.hasAttribute("class")&&(u+=" "+o.getAttribute(a)),o.setAttribute(a,u)),c=="attribute"&&d=="disable-upgrade$"&&o.setAttribute(a,""),o.localName==="input"&&d==="value"&&o.setAttribute(d,""),o.removeAttribute(d),c==="property"&&(a=dh(a)),wo(this,n,s,c,a,h,u),!0}else return e._parseTemplateNodeAttribute.call(this,o,n,s,a,l)}static _parseTemplateNestedTemplate(o,n,s){let a=e._parseTemplateNestedTemplate.call(this,o,n,s);const l=o.parentNode,h=s.templateInfo,d=l.localName==="dom-if",c=l.localName==="dom-repeat";ta&&(d||c)&&(l.removeChild(o),s=s.parentInfo,s.templateInfo=h,s.noted=!0,a=!1);let u=h.hostProps;if(mm&&d)u&&(n.hostProps=Object.assign(n.hostProps||{},u),ta||(s.parentInfo.noted=!0));else{let m="{";for(let g in u){let _=[{mode:m,source:g,dependencies:[g],hostProp:!0}];wo(this,n,s,"property","_host_"+g,_)}}return a}static _parseBindings(o,n){let s=[],a=0,l;for(;(l=ma.exec(o))!==null;){l.index>a&&s.push({literal:o.slice(a,l.index)});let h=l[1][0],d=!!l[2],c=l[3].trim(),u=!1,m="",g=-1;h=="{"&&(g=c.indexOf("::"))>0&&(m=c.substring(g+2),c=c.substring(0,g),u=!0);let _=Co(c),y=[];if(_){let{args:D,methodName:A}=_;for(let R=0;R<D.length;R++){let W=D[R];W.literal||y.push(W)}let M=n.dynamicFns;(M&&M[A]||_.static)&&(y.push(A),_.dynamicFn=!0)}else y.push(c);s.push({source:c,mode:h,negate:d,customEvent:u,signature:_,dependencies:y,event:m}),a=ma.lastIndex}if(a&&a<o.length){let h=o.substring(a);h&&s.push({literal:h})}return s.length?s:null}static _evaluateBinding(o,n,s,a,l,h){let d;return n.signature?d=sn(o,s,a,l,n.signature):s!=n.source?d=Le(o,n.source):h&&on(s)?d=Le(o,s):d=o.__data[s],n.negate&&(d=!d),d}}return t}),yr=[];/**
1007
1007
  @license
1008
1008
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1009
1009
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1019,7 +1019,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1019
1019
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1020
1020
  Code distributed by Google as part of the polymer project is also
1021
1021
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1022
- */function Ef(r){const e={};for(let t in r){const i=r[t];e[t]=typeof i=="function"?{type:i}:i}return e}const Sf=ve(r=>{const e=ph(r);function t(n){const s=Object.getPrototypeOf(n);return s.prototype instanceof o?s:null}function i(n){if(!n.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",n))){let s=null;if(n.hasOwnProperty(JSCompiler_renameProperty("properties",n))){const a=n.properties;a&&(s=Ef(a))}n.__ownProperties=s}return n.__ownProperties}class o extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const s=this._properties;this.__observedAttributes=s?Object.keys(s).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const s=t(this);s&&s.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const s=i(this);s&&this.createProperties(s)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const s=t(this);this.__properties=Object.assign({},s&&s._properties,i(this))}return this.__properties}static typeForProperty(s){const a=this._properties[s];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return o});/**
1022
+ */function Sf(r){const e={};for(let t in r){const i=r[t];e[t]=typeof i=="function"?{type:i}:i}return e}const Af=ve(r=>{const e=mh(r);function t(n){const s=Object.getPrototypeOf(n);return s.prototype instanceof o?s:null}function i(n){if(!n.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",n))){let s=null;if(n.hasOwnProperty(JSCompiler_renameProperty("properties",n))){const a=n.properties;a&&(s=Sf(a))}n.__ownProperties=s}return n.__ownProperties}class o extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const s=this._properties;this.__observedAttributes=s?Object.keys(s).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const s=t(this);s&&s.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const s=i(this);s&&this.createProperties(s)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const s=t(this);this.__properties=Object.assign({},s&&s._properties,i(this))}return this.__properties}static typeForProperty(s){const a=this._properties[s];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return o});/**
1023
1023
  * @fileoverview
1024
1024
  * @suppress {checkPrototypalTypes}
1025
1025
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1029,7 +1029,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1029
1029
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
1030
1030
  * Google as part of the polymer project is also subject to an additional IP
1031
1031
  * rights grant found at http://polymer.github.io/PATENTS.txt
1032
- */const Af="3.5.2",_a=window.ShadyCSS&&window.ShadyCSS.cssBuild,Pf=ve(r=>{const e=Sf(Ln(r));function t(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let h=l._properties;for(let d in h){let c=h[d];"value"in c&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[d]=c)}}return l.__propertyDefaults}function i(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function o(l,h,d,c){d.computed&&(d.readOnly=!0),d.computed&&(l._hasReadOnlyEffect(h)?console.warn(`Cannot redefine computed property '${h}'.`):l._createComputedProperty(h,d.computed,c)),d.readOnly&&!l._hasReadOnlyEffect(h)?l._createReadOnlyProperty(h,!d.computed):d.readOnly===!1&&l._hasReadOnlyEffect(h)&&console.warn(`Cannot make readOnly property '${h}' non-readOnly.`),d.reflectToAttribute&&!l._hasReflectEffect(h)?l._createReflectedProperty(h):d.reflectToAttribute===!1&&l._hasReflectEffect(h)&&console.warn(`Cannot make reflected property '${h}' non-reflected.`),d.notify&&!l._hasNotifyEffect(h)?l._createNotifyingProperty(h):d.notify===!1&&l._hasNotifyEffect(h)&&console.warn(`Cannot make notify property '${h}' non-notify.`),d.observer&&l._createPropertyObserver(h,d.observer,c[d.observer]),l._addPropertyToAttributeMap(h)}function n(l,h,d,c){if(!_a){const u=h.content.querySelectorAll("style"),m=nh(h),g=xm(d),_=h.content.firstElementChild;for(let D=0;D<g.length;D++){let A=g[D];A.textContent=l._processStyleText(A.textContent,c),h.content.insertBefore(A,_)}let y=0;for(let D=0;D<m.length;D++){let A=m[D],M=u[y];M!==A?(A=A.cloneNode(!0),M.parentNode.insertBefore(A,M)):y++,A.textContent=l._processStyleText(A.textContent,c)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(h,d),mm&&_a&&lm){const u=h.content.querySelectorAll("style");if(u){let m="";Array.from(u).forEach(g=>{m+=g.textContent,g.parentNode.removeChild(g)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(m)}}}function s(l){let h=null;if(l&&(!Ni||dm)&&(h=Br.import(l,"template"),Ni&&!h))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return h}class a extends e{static get polymerElementVersion(){return Af}static _finalizeClass(){e._finalizeClass.call(this);const h=i(this);h&&this.createObservers(h,this._properties),this._prepareTemplate()}static _prepareTemplate(){let h=this.template;h&&(typeof h=="string"?(console.error("template getter must return HTMLTemplateElement"),h=null):th||(h=h.cloneNode(!0))),this.prototype._template=h}static createProperties(h){for(let d in h)o(this.prototype,d,h[d],h)}static createObservers(h,d){const c=this.prototype;for(let u=0;u<h.length;u++)c._createMethodObserver(h[u],d)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let h=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof h=="function"&&(h=h()),this._template=h!==void 0?h:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&s(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(h){this._template=h}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const h=this.importMeta;if(h)this._importPath=Nn(h.url);else{const d=Br.import(this.is);this._importPath=d&&d.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=hm,this.importPath=this.constructor.importPath;let h=t(this.constructor);if(h)for(let d in h){let c=h[d];if(this._canApplyPropertyDefault(d)){let u=typeof c.value=="function"?c.value.call(this):c.value;this._hasAccessor(d)?this._setPendingProperty(d,u,!0):this[d]=u}}}_canApplyPropertyDefault(h){return!this.hasOwnProperty(h)}static _processStyleText(h,d){return Mn(h,d)}static _finalizeTemplate(h){const d=this.prototype._template;if(d&&!d.__polymerFinalized){d.__polymerFinalized=!0;const c=this.importPath,u=c?kr(c):"";n(this,d,h,u),this.prototype._bindTemplate(d)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(h){const d=Pe(this);if(d.attachShadow)return h?(d.shadowRoot||(d.attachShadow({mode:"open",shadyUpgradeFragment:h}),d.shadowRoot.appendChild(h),this.constructor._styleSheet&&(d.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),cm&&window.ShadyDOM&&window.ShadyDOM.flushInitial(d.shadowRoot),d.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(h){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,h)}resolveUrl(h,d){return!d&&this.importPath&&(d=kr(this.importPath)),kr(h,d)}static _parseTemplateContent(h,d,c){return d.dynamicFns=d.dynamicFns||this._properties,e._parseTemplateContent.call(this,h,d,c)}static _addTemplatePropertyEffect(h,d,c){return rh&&!(d in this._properties)&&!(c.info.part.signature&&c.info.part.signature.static)&&!c.info.part.hostProp&&!h.nestedTemplate&&console.warn(`Property '${d}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,h,d,c)}}return a});/**
1032
+ */const Pf="3.5.2",va=window.ShadyCSS&&window.ShadyCSS.cssBuild,kf=ve(r=>{const e=Af(Ln(r));function t(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let h=l._properties;for(let d in h){let c=h[d];"value"in c&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[d]=c)}}return l.__propertyDefaults}function i(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function o(l,h,d,c){d.computed&&(d.readOnly=!0),d.computed&&(l._hasReadOnlyEffect(h)?console.warn(`Cannot redefine computed property '${h}'.`):l._createComputedProperty(h,d.computed,c)),d.readOnly&&!l._hasReadOnlyEffect(h)?l._createReadOnlyProperty(h,!d.computed):d.readOnly===!1&&l._hasReadOnlyEffect(h)&&console.warn(`Cannot make readOnly property '${h}' non-readOnly.`),d.reflectToAttribute&&!l._hasReflectEffect(h)?l._createReflectedProperty(h):d.reflectToAttribute===!1&&l._hasReflectEffect(h)&&console.warn(`Cannot make reflected property '${h}' non-reflected.`),d.notify&&!l._hasNotifyEffect(h)?l._createNotifyingProperty(h):d.notify===!1&&l._hasNotifyEffect(h)&&console.warn(`Cannot make notify property '${h}' non-notify.`),d.observer&&l._createPropertyObserver(h,d.observer,c[d.observer]),l._addPropertyToAttributeMap(h)}function n(l,h,d,c){if(!va){const u=h.content.querySelectorAll("style"),m=sh(h),g=wm(d),_=h.content.firstElementChild;for(let D=0;D<g.length;D++){let A=g[D];A.textContent=l._processStyleText(A.textContent,c),h.content.insertBefore(A,_)}let y=0;for(let D=0;D<m.length;D++){let A=m[D],M=u[y];M!==A?(A=A.cloneNode(!0),M.parentNode.insertBefore(A,M)):y++,A.textContent=l._processStyleText(A.textContent,c)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(h,d),fm&&va&&hm){const u=h.content.querySelectorAll("style");if(u){let m="";Array.from(u).forEach(g=>{m+=g.textContent,g.parentNode.removeChild(g)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(m)}}}function s(l){let h=null;if(l&&(!Ni||cm)&&(h=Br.import(l,"template"),Ni&&!h))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return h}class a extends e{static get polymerElementVersion(){return Pf}static _finalizeClass(){e._finalizeClass.call(this);const h=i(this);h&&this.createObservers(h,this._properties),this._prepareTemplate()}static _prepareTemplate(){let h=this.template;h&&(typeof h=="string"?(console.error("template getter must return HTMLTemplateElement"),h=null):rh||(h=h.cloneNode(!0))),this.prototype._template=h}static createProperties(h){for(let d in h)o(this.prototype,d,h[d],h)}static createObservers(h,d){const c=this.prototype;for(let u=0;u<h.length;u++)c._createMethodObserver(h[u],d)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let h=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof h=="function"&&(h=h()),this._template=h!==void 0?h:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&s(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(h){this._template=h}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const h=this.importMeta;if(h)this._importPath=Nn(h.url);else{const d=Br.import(this.is);this._importPath=d&&d.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=dm,this.importPath=this.constructor.importPath;let h=t(this.constructor);if(h)for(let d in h){let c=h[d];if(this._canApplyPropertyDefault(d)){let u=typeof c.value=="function"?c.value.call(this):c.value;this._hasAccessor(d)?this._setPendingProperty(d,u,!0):this[d]=u}}}_canApplyPropertyDefault(h){return!this.hasOwnProperty(h)}static _processStyleText(h,d){return Mn(h,d)}static _finalizeTemplate(h){const d=this.prototype._template;if(d&&!d.__polymerFinalized){d.__polymerFinalized=!0;const c=this.importPath,u=c?kr(c):"";n(this,d,h,u),this.prototype._bindTemplate(d)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(h){const d=Pe(this);if(d.attachShadow)return h?(d.shadowRoot||(d.attachShadow({mode:"open",shadyUpgradeFragment:h}),d.shadowRoot.appendChild(h),this.constructor._styleSheet&&(d.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),um&&window.ShadyDOM&&window.ShadyDOM.flushInitial(d.shadowRoot),d.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(h){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,h)}resolveUrl(h,d){return!d&&this.importPath&&(d=kr(this.importPath)),kr(h,d)}static _parseTemplateContent(h,d,c){return d.dynamicFns=d.dynamicFns||this._properties,e._parseTemplateContent.call(this,h,d,c)}static _addTemplatePropertyEffect(h,d,c){return ih&&!(d in this._properties)&&!(c.info.part.signature&&c.info.part.signature.static)&&!c.info.part.hostProp&&!h.nestedTemplate&&console.warn(`Property '${d}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,h,d,c)}}return a});/**
1033
1033
  @license
1034
1034
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1035
1035
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1037,7 +1037,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1037
1037
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1038
1038
  Code distributed by Google as part of the polymer project is also
1039
1039
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1040
- */const va=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:r=>r});class wh{constructor(e,t){Eh(e,t);const i=t.reduce((o,n,s)=>o+Ch(n)+e[s+1],e[0]);this.value=i.toString()}toString(){return this.value}}function Ch(r){if(r instanceof wh)return r.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${r}`)}function kf(r){if(r instanceof HTMLTemplateElement)return r.innerHTML;if(r instanceof wh)return Ch(r);throw new Error(`non-template value passed to Polymer's html function: ${r}`)}const K=function(r,...e){Eh(r,e);const t=document.createElement("template");let i=e.reduce((o,n,s)=>o+kf(n)+r[s+1],r[0]);return va&&(i=va.createHTML(i)),t.innerHTML=i,t},Eh=(r,e)=>{if(!Array.isArray(r)||!Array.isArray(r.raw)||e.length!==r.length-1)throw new TypeError("Invalid call to the html template tag")};/**
1040
+ */const ga=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:r=>r});class Ch{constructor(e,t){Sh(e,t);const i=t.reduce((o,n,s)=>o+Eh(n)+e[s+1],e[0]);this.value=i.toString()}toString(){return this.value}}function Eh(r){if(r instanceof Ch)return r.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${r}`)}function Tf(r){if(r instanceof HTMLTemplateElement)return r.innerHTML;if(r instanceof Ch)return Eh(r);throw new Error(`non-template value passed to Polymer's html function: ${r}`)}const K=function(r,...e){Sh(r,e);const t=document.createElement("template");let i=e.reduce((o,n,s)=>o+Tf(n)+r[s+1],r[0]);return ga&&(i=ga.createHTML(i)),t.innerHTML=i,t},Sh=(r,e)=>{if(!Array.isArray(r)||!Array.isArray(r.raw)||e.length!==r.length-1)throw new TypeError("Invalid call to the html template tag")};/**
1041
1041
  @license
1042
1042
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1043
1043
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1045,7 +1045,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1045
1045
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1046
1046
  Code distributed by Google as part of the polymer project is also
1047
1047
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1048
- */const Z=Pf(HTMLElement),Tf=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Ci=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function If(){function r(){return!0}return Sh(r)}function Df(){try{return Of()?!0:Mf()?Ci?!Nf():!If():!1}catch(r){return!1}}function Of(){return localStorage.getItem("vaadin.developmentmode.force")}function Mf(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Nf(){return!!(Ci&&Object.keys(Ci).map(r=>Ci[r]).filter(r=>r.productionMode).length>0)}function Sh(r,e){if(typeof r!="function")return;const t=Tf.exec(r.toString());if(t)try{r=new Function(t[1])}catch(i){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",i)}return r(e)}window.Vaadin=window.Vaadin||{};const ga=function(r,e){if(window.Vaadin.developmentMode)return Sh(r,e)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Df());function zf(){/*! vaadin-dev-mode:start
1048
+ */const Z=kf(HTMLElement),If=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Ci=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Df(){function r(){return!0}return Ah(r)}function Of(){try{return Mf()?!0:Nf()?Ci?!zf():!Df():!1}catch(r){return!1}}function Mf(){return localStorage.getItem("vaadin.developmentmode.force")}function Nf(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function zf(){return!!(Ci&&Object.keys(Ci).map(r=>Ci[r]).filter(r=>r.productionMode).length>0)}function Ah(r,e){if(typeof r!="function")return;const t=If.exec(r.toString());if(t)try{r=new Function(t[1])}catch(i){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",i)}return r(e)}window.Vaadin=window.Vaadin||{};const ba=function(r,e){if(window.Vaadin.developmentMode)return Ah(r,e)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Of());function Bf(){/*! vaadin-dev-mode:start
1049
1049
  (function () {
1050
1050
  'use strict';
1051
1051
 
@@ -1523,7 +1523,7 @@ try {
1523
1523
 
1524
1524
  }());
1525
1525
 
1526
- vaadin-dev-mode:end **/}const Bf=function(){if(typeof ga=="function")return ga(zf)};/**
1526
+ vaadin-dev-mode:end **/}const Lf=function(){if(typeof ba=="function")return ba(Bf)};/**
1527
1527
  * @license
1528
1528
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1529
1529
  * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1531,7 +1531,7 @@ try {
1531
1531
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1532
1532
  * Code distributed by Google as part of the polymer project is also
1533
1533
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1534
- */let ba=0,Ah=0;const Xt=[];let an=!1;function Lf(){an=!1;const r=Xt.length;for(let e=0;e<r;e++){const t=Xt[e];if(t)try{t()}catch(i){setTimeout(()=>{throw i})}}Xt.splice(0,r),Ah+=r}const yt={after(r){return{run(e){return window.setTimeout(e,r)},cancel(e){window.clearTimeout(e)}}},run(r,e){return window.setTimeout(r,e)},cancel(r){window.clearTimeout(r)}},$r={run(r){return window.requestAnimationFrame(r)},cancel(r){window.cancelAnimationFrame(r)}},Ph={run(r){return window.requestIdleCallback?window.requestIdleCallback(r):window.setTimeout(r,16)},cancel(r){window.cancelIdleCallback?window.cancelIdleCallback(r):window.clearTimeout(r)}},Bi={run(r){an||(an=!0,queueMicrotask(()=>Lf())),Xt.push(r);const e=ba;return ba+=1,e},cancel(r){const e=r-Ah;if(e>=0){if(!Xt[e])throw new Error(`invalid async handle: ${r}`);Xt[e]=null}}};/**
1534
+ */let ya=0,Ph=0;const Xt=[];let an=!1;function Hf(){an=!1;const r=Xt.length;for(let e=0;e<r;e++){const t=Xt[e];if(t)try{t()}catch(i){setTimeout(()=>{throw i})}}Xt.splice(0,r),Ph+=r}const yt={after(r){return{run(e){return window.setTimeout(e,r)},cancel(e){window.clearTimeout(e)}}},run(r,e){return window.setTimeout(r,e)},cancel(r){window.clearTimeout(r)}},$r={run(r){return window.requestAnimationFrame(r)},cancel(r){window.cancelAnimationFrame(r)}},kh={run(r){return window.requestIdleCallback?window.requestIdleCallback(r):window.setTimeout(r,16)},cancel(r){window.cancelIdleCallback?window.cancelIdleCallback(r):window.clearTimeout(r)}},Bi={run(r){an||(an=!0,queueMicrotask(()=>Hf())),Xt.push(r);const e=ya;return ya+=1,e},cancel(r){const e=r-Ph;if(e>=0){if(!Xt[e])throw new Error(`invalid async handle: ${r}`);Xt[e]=null}}};/**
1535
1535
  @license
1536
1536
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1537
1537
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1539,19 +1539,19 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
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
- */const Vr=new Set;let Fe=class ln{static debounce(e,t,i){return e instanceof ln?e._cancelAsync():e=new ln,e.setConfig(t,i),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,Vr.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Vr.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}};function kh(r){Vr.add(r)}function Hf(){const r=!!Vr.size;return Vr.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),r}const Sr=()=>{let r;do r=Hf();while(r)};/**
1542
+ */const Vr=new Set;let Fe=class ln{static debounce(e,t,i){return e instanceof ln?e._cancelAsync():e=new ln,e.setConfig(t,i),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,Vr.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Vr.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}};function Th(r){Vr.add(r)}function Rf(){const r=!!Vr.size;return Vr.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),r}const Sr=()=>{let r;do r=Rf();while(r)};/**
1543
1543
  * @license
1544
1544
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1545
1545
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1546
- */const ot=[];function hn(r,e,t=r.getAttribute("dir")){e?r.setAttribute("dir",e):t!=null&&r.removeAttribute("dir")}function dn(){return document.documentElement.getAttribute("dir")}function Rf(){const r=dn();ot.forEach(e=>{hn(e,r)})}const Ff=new MutationObserver(Rf);Ff.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const $e=r=>class extends r{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>e===""?null:e}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),hn(this,dn(),null))}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),e!=="dir")return;const o=dn(),n=i===o&&ot.indexOf(this)===-1,s=!i&&t&&ot.indexOf(this)===-1;n||s?(this.__subscribe(),hn(this,o,i)):i!==o&&t===o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=ot.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,i){i==="dir"&&t===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,t,i)}_attributeToProperty(e,t,i){e==="dir"&&!t?this.dir="":super._attributeToProperty(e,t,i)}__subscribe(){ot.includes(this)||ot.push(this)}__unsubscribe(){ot.includes(this)&&ot.splice(ot.indexOf(this),1)}};/**
1546
+ */const ot=[];function hn(r,e,t=r.getAttribute("dir")){e?r.setAttribute("dir",e):t!=null&&r.removeAttribute("dir")}function dn(){return document.documentElement.getAttribute("dir")}function Ff(){const r=dn();ot.forEach(e=>{hn(e,r)})}const $f=new MutationObserver(Ff);$f.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const $e=r=>class extends r{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>e===""?null:e}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),hn(this,dn(),null))}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),e!=="dir")return;const o=dn(),n=i===o&&ot.indexOf(this)===-1,s=!i&&t&&ot.indexOf(this)===-1;n||s?(this.__subscribe(),hn(this,o,i)):i!==o&&t===o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=ot.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,i){i==="dir"&&t===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,t,i)}_attributeToProperty(e,t,i){e==="dir"&&!t?this.dir="":super._attributeToProperty(e,t,i)}__subscribe(){ot.includes(this)||ot.push(this)}__unsubscribe(){ot.includes(this)&&ot.splice(ot.indexOf(this),1)}};/**
1547
1547
  * @license
1548
1548
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1549
1549
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1550
- */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Bf()};let Eo;const ya=new Set,Ve=r=>class extends $e(r){static finalize(){super.finalize();const{is:e}=this;e&&!ya.has(e)&&(window.Vaadin.registrations.push(this),ya.add(e),window.Vaadin.developmentModeCallback&&(Eo=Fe.debounce(Eo,Ph,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),kh(Eo)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
1550
+ */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Lf()};let Eo;const xa=new Set,Ve=r=>class extends $e(r){static finalize(){super.finalize();const{is:e}=this;e&&!xa.has(e)&&(window.Vaadin.registrations.push(this),xa.add(e),window.Vaadin.developmentModeCallback&&(Eo=Fe.debounce(Eo,kh,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),Th(Eo)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
1551
1551
  * @license
1552
1552
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1553
1553
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1554
- */function $f(r){const e=[];for(;r;){if(r.nodeType===Node.DOCUMENT_NODE){e.push(r);break}if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(r),r=r.host;continue}if(r.assignedSlot){r=r.assignedSlot;continue}r=r.parentNode}return e}function Th(r){const e=[];let t;return r.localName==="slot"?t=r.assignedElements():(e.push(r),t=[...r.children]),t.forEach(i=>e.push(...Th(i))),e}function Hn(r){return r?new Set(r.split(" ")):new Set}function Zi(r){return r?[...r].join(" "):""}function Ih(r,e,t){const i=Hn(r.getAttribute(e));i.add(t),r.setAttribute(e,Zi(i))}function Vf(r,e,t){const i=Hn(r.getAttribute(e));if(i.delete(t),i.size===0){r.removeAttribute(e);return}r.setAttribute(e,Zi(i))}function Wf(r){return r.nodeType===Node.TEXT_NODE&&r.textContent.trim()===""}/**
1554
+ */function Vf(r){const e=[];for(;r;){if(r.nodeType===Node.DOCUMENT_NODE){e.push(r);break}if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(r),r=r.host;continue}if(r.assignedSlot){r=r.assignedSlot;continue}r=r.parentNode}return e}function Ih(r){const e=[];let t;return r.localName==="slot"?t=r.assignedElements():(e.push(r),t=[...r.children]),t.forEach(i=>e.push(...Ih(i))),e}function Hn(r){return r?new Set(r.split(" ")):new Set}function Zi(r){return r?[...r].join(" "):""}function Dh(r,e,t){const i=Hn(r.getAttribute(e));i.add(t),r.setAttribute(e,Zi(i))}function Wf(r,e,t){const i=Hn(r.getAttribute(e));if(i.delete(t),i.size===0){r.removeAttribute(e);return}r.setAttribute(e,Zi(i))}function jf(r){return r.nodeType===Node.TEXT_NODE&&r.textContent.trim()===""}/**
1555
1555
  * @license
1556
1556
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
1557
1557
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1559,11 +1559,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1559
1559
  * @license
1560
1560
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1561
1561
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1562
- */let jf=0;function qr(){return jf++}/**
1562
+ */let Uf=0;function qr(){return Uf++}/**
1563
1563
  * @license
1564
1564
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1565
1565
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1566
- */class Ne extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${qr()}`}constructor(e,t,i,o={}){super();const{initializer:n,multiple:s,observe:a,useUniqueId:l,uniqueIdPrefix:h}=o;this.host=e,this.slotName=t,this.tagName=i,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof s=="boolean"?s:!1,this.slotInitializer=n,s&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(e,h||t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){const e=this.getSlotChildren();if(e.length===0){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=e,e.forEach(t=>{this.initAddedNode(t)})}attachDefaultNode(){const{host:e,slotName:t,tagName:i}=this;let o=this.defaultNode;return!o&&i&&(o=document.createElement(i),o instanceof Element&&(t!==""&&o.setAttribute("slot",t),this.defaultNode=o)),o&&(this.node=o,e.appendChild(o)),o}getSlotChildren(){const{slotName:e}=this;return Array.from(this.host.childNodes).filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.slot===e||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&e==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){const{slotInitializer:t}=this;t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){const{slotName:e}=this,t=e===""?"slot:not([name])":`slot[name=${e}]`,i=this.host.shadowRoot.querySelector(t);this.__slotObserver=new Rn(i,({addedNodes:o,removedNodes:n})=>{const s=this.multiple?this.nodes:[this.node],a=o.filter(l=>!Wf(l)&&!s.includes(l));n.length&&(this.nodes=s.filter(l=>!n.includes(l)),n.forEach(l=>{this.teardownNode(l)})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...s,...a].filter(l=>l!==this.defaultNode),a.forEach(l=>{this.initAddedNode(l)})):(this.node&&this.node.remove(),this.node=a[0],this.initAddedNode(this.node)))})}}/**
1566
+ */class Ne extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${qr()}`}constructor(e,t,i,o={}){super();const{initializer:n,multiple:s,observe:a,useUniqueId:l,uniqueIdPrefix:h}=o;this.host=e,this.slotName=t,this.tagName=i,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof s=="boolean"?s:!1,this.slotInitializer=n,s&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(e,h||t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){const e=this.getSlotChildren();if(e.length===0){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=e,e.forEach(t=>{this.initAddedNode(t)})}attachDefaultNode(){const{host:e,slotName:t,tagName:i}=this;let o=this.defaultNode;return!o&&i&&(o=document.createElement(i),o instanceof Element&&(t!==""&&o.setAttribute("slot",t),this.defaultNode=o)),o&&(this.node=o,e.appendChild(o)),o}getSlotChildren(){const{slotName:e}=this;return Array.from(this.host.childNodes).filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.slot===e||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&e==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){const{slotInitializer:t}=this;t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){const{slotName:e}=this,t=e===""?"slot:not([name])":`slot[name=${e}]`,i=this.host.shadowRoot.querySelector(t);this.__slotObserver=new Rn(i,({addedNodes:o,removedNodes:n})=>{const s=this.multiple?this.nodes:[this.node],a=o.filter(l=>!jf(l)&&!s.includes(l));n.length&&(this.nodes=s.filter(l=>!n.includes(l)),n.forEach(l=>{this.teardownNode(l)})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...s,...a].filter(l=>l!==this.defaultNode),a.forEach(l=>{this.initAddedNode(l)})):(this.node&&this.node.remove(),this.node=a[0],this.initAddedNode(this.node)))})}}/**
1567
1567
  * @license
1568
1568
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
1569
1569
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1575,7 +1575,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1575
1575
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1576
1576
  Code distributed by Google as part of the polymer project is also
1577
1577
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1578
- */const Uf=r=>r,Dh=typeof document.head.style.touchAction=="string",cn="__polymerGestures",So="__polymerGesturesHandled",un="__polymerGesturesTouchAction",xa=25,wa=5,Gf=2,qf=["mousedown","mousemove","mouseup","click"],Yf=[0,1,4,2],Xf=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(r){return!1}}();function Oh(r){return qf.indexOf(r)>-1}let Kf=!1;(function(){try{const r=Object.defineProperty({},"passive",{get(){Kf=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(r){}})();const Zf=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Jf={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Mt(r){const e=r.type;if(!Oh(e))return!1;if(e==="mousemove"){let t=r.buttons===void 0?1:r.buttons;return r instanceof window.MouseEvent&&!Xf&&(t=Yf[r.which]||0),!!(t&1)}return(r.button===void 0?0:r.button)===0}function Qf(r){if(r.type==="click"){if(r.detail===0)return!0;const e=xt(r);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const t=e.getBoundingClientRect(),i=r.pageX,o=r.pageY;return!(i>=t.left&&i<=t.right&&o>=t.top&&o<=t.bottom)}return!1}const nt={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function e_(r){let e="auto";const t=Nh(r);for(let i=0,o;i<t.length;i++)if(o=t[i],o[un]){e=o[un];break}return e}function Mh(r,e,t){r.movefn=e,r.upfn=t,document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)}function Kt(r){document.removeEventListener("mousemove",r.movefn),document.removeEventListener("mouseup",r.upfn),r.movefn=null,r.upfn=null}const Nh=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:r=>r.composedPath&&r.composedPath()||[],Fn={},Ot=[];function t_(r,e){let t=document.elementFromPoint(r,e),i=t;for(;i&&i.shadowRoot&&!window.ShadyDOM;){const o=i;if(i=i.shadowRoot.elementFromPoint(r,e),o===i)break;i&&(t=i)}return t}function xt(r){const e=Nh(r);return e.length>0?e[0]:r.target}function r_(r){const e=r.type,t=r.currentTarget[cn];if(!t)return;const i=t[e];if(!i)return;if(!r[So]&&(r[So]={},e.startsWith("touch"))){const n=r.changedTouches[0];if(e==="touchstart"&&r.touches.length===1&&(nt.touch.id=n.identifier),nt.touch.id!==n.identifier)return;Dh||(e==="touchstart"||e==="touchmove")&&i_(r)}const o=r[So];if(!o.skip){for(let n=0,s;n<Ot.length;n++)s=Ot[n],i[s.name]&&!o[s.name]&&s.flow&&s.flow.start.indexOf(r.type)>-1&&s.reset&&s.reset();for(let n=0,s;n<Ot.length;n++)s=Ot[n],i[s.name]&&!o[s.name]&&(o[s.name]=!0,s[e](r))}}function i_(r){const e=r.changedTouches[0],t=r.type;if(t==="touchstart")nt.touch.x=e.clientX,nt.touch.y=e.clientY,nt.touch.scrollDecided=!1;else if(t==="touchmove"){if(nt.touch.scrollDecided)return;nt.touch.scrollDecided=!0;const i=e_(r);let o=!1;const n=Math.abs(nt.touch.x-e.clientX),s=Math.abs(nt.touch.y-e.clientY);r.cancelable&&(i==="none"?o=!0:i==="pan-x"?o=s>n:i==="pan-y"&&(o=n>s)),o?r.preventDefault():Li("track")}}function Je(r,e,t){return Fn[e]?(o_(r,e,t),!0):!1}function o_(r,e,t){const i=Fn[e],o=i.deps,n=i.name;let s=r[cn];s||(r[cn]=s={});for(let a=0,l,h;a<o.length;a++)l=o[a],!(Zf&&Oh(l)&&l!=="click")&&(h=s[l],h||(s[l]=h={_count:0}),h._count===0&&r.addEventListener(l,r_,void 0),h[n]=(h[n]||0)+1,h._count=(h._count||0)+1);r.addEventListener(e,t),i.touchAction&&zh(r,i.touchAction)}function $n(r){Ot.push(r),r.emits.forEach(e=>{Fn[e]=r})}function n_(r){for(let e=0,t;e<Ot.length;e++){t=Ot[e];for(let i=0,o;i<t.emits.length;i++)if(o=t.emits[i],o===r)return t}return null}function zh(r,e){Dh&&r instanceof HTMLElement&&Bi.run(()=>{r.style.touchAction=e}),r[un]=e}function Vn(r,e,t){const i=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(i.detail=t,Uf(r).dispatchEvent(i),i.defaultPrevented){const o=t.preventer||t.sourceEvent;o&&o.preventDefault&&o.preventDefault()}}function Li(r){const e=n_(r);e.info&&(e.info.prevent=!0)}$n({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Kt(this.info)},mousedown(r){if(!Mt(r))return;const e=xt(r),t=this,i=n=>{Mt(n)||(xr("up",e,n),Kt(t.info))},o=n=>{Mt(n)&&xr("up",e,n),Kt(t.info)};Mh(this.info,i,o),xr("down",e,r)},touchstart(r){xr("down",xt(r),r.changedTouches[0],r)},touchend(r){xr("up",xt(r),r.changedTouches[0],r)}});function xr(r,e,t,i){e&&Vn(e,r,{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:i,prevent(o){return Li(o)}})}$n({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(r){this.moves.length>Gf&&this.moves.shift(),this.moves.push(r)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,Kt(this.info)},mousedown(r){if(!Mt(r))return;const e=xt(r),t=this,i=n=>{const s=n.clientX,a=n.clientY;Ca(t.info,s,a)&&(t.info.state=t.info.started?n.type==="mouseup"?"end":"track":"start",t.info.state==="start"&&Li("tap"),t.info.addMove({x:s,y:a}),Mt(n)||(t.info.state="end",Kt(t.info)),e&&Ao(t.info,e,n),t.info.started=!0)},o=n=>{t.info.started&&i(n),Kt(t.info)};Mh(this.info,i,o),this.info.x=r.clientX,this.info.y=r.clientY},touchstart(r){const e=r.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(r){const e=xt(r),t=r.changedTouches[0],i=t.clientX,o=t.clientY;Ca(this.info,i,o)&&(this.info.state==="start"&&Li("tap"),this.info.addMove({x:i,y:o}),Ao(this.info,e,t),this.info.state="track",this.info.started=!0)},touchend(r){const e=xt(r),t=r.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:t.clientX,y:t.clientY}),Ao(this.info,e,t))}});function Ca(r,e,t){if(r.prevent)return!1;if(r.started)return!0;const i=Math.abs(r.x-e),o=Math.abs(r.y-t);return i>=wa||o>=wa}function Ao(r,e,t){if(!e)return;const i=r.moves[r.moves.length-2],o=r.moves[r.moves.length-1],n=o.x-r.x,s=o.y-r.y;let a,l=0;i&&(a=o.x-i.x,l=o.y-i.y),Vn(e,"track",{state:r.state,x:t.clientX,y:t.clientY,dx:n,dy:s,ddx:a,ddy:l,sourceEvent:t,hover(){return t_(t.clientX,t.clientY)}})}$n({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(r){Mt(r)&&(this.info.x=r.clientX,this.info.y=r.clientY)},click(r){Mt(r)&&Ea(this.info,r)},touchstart(r){const e=r.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(r){Ea(this.info,r.changedTouches[0],r)}});function Ea(r,e,t){const i=Math.abs(e.clientX-r.x),o=Math.abs(e.clientY-r.y),n=xt(t||e);!n||Jf[n.localName]&&n.hasAttribute("disabled")||(isNaN(i)||isNaN(o)||i<=xa&&o<=xa||Qf(e))&&(r.prevent||Vn(n,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:t}))}/**
1578
+ */const Gf=r=>r,Oh=typeof document.head.style.touchAction=="string",cn="__polymerGestures",So="__polymerGesturesHandled",un="__polymerGesturesTouchAction",wa=25,Ca=5,qf=2,Yf=["mousedown","mousemove","mouseup","click"],Xf=[0,1,4,2],Kf=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(r){return!1}}();function Mh(r){return Yf.indexOf(r)>-1}let Zf=!1;(function(){try{const r=Object.defineProperty({},"passive",{get(){Zf=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(r){}})();const Jf=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Qf={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Mt(r){const e=r.type;if(!Mh(e))return!1;if(e==="mousemove"){let t=r.buttons===void 0?1:r.buttons;return r instanceof window.MouseEvent&&!Kf&&(t=Xf[r.which]||0),!!(t&1)}return(r.button===void 0?0:r.button)===0}function e_(r){if(r.type==="click"){if(r.detail===0)return!0;const e=xt(r);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const t=e.getBoundingClientRect(),i=r.pageX,o=r.pageY;return!(i>=t.left&&i<=t.right&&o>=t.top&&o<=t.bottom)}return!1}const nt={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function t_(r){let e="auto";const t=zh(r);for(let i=0,o;i<t.length;i++)if(o=t[i],o[un]){e=o[un];break}return e}function Nh(r,e,t){r.movefn=e,r.upfn=t,document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)}function Kt(r){document.removeEventListener("mousemove",r.movefn),document.removeEventListener("mouseup",r.upfn),r.movefn=null,r.upfn=null}const zh=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:r=>r.composedPath&&r.composedPath()||[],Fn={},Ot=[];function r_(r,e){let t=document.elementFromPoint(r,e),i=t;for(;i&&i.shadowRoot&&!window.ShadyDOM;){const o=i;if(i=i.shadowRoot.elementFromPoint(r,e),o===i)break;i&&(t=i)}return t}function xt(r){const e=zh(r);return e.length>0?e[0]:r.target}function i_(r){const e=r.type,t=r.currentTarget[cn];if(!t)return;const i=t[e];if(!i)return;if(!r[So]&&(r[So]={},e.startsWith("touch"))){const n=r.changedTouches[0];if(e==="touchstart"&&r.touches.length===1&&(nt.touch.id=n.identifier),nt.touch.id!==n.identifier)return;Oh||(e==="touchstart"||e==="touchmove")&&o_(r)}const o=r[So];if(!o.skip){for(let n=0,s;n<Ot.length;n++)s=Ot[n],i[s.name]&&!o[s.name]&&s.flow&&s.flow.start.indexOf(r.type)>-1&&s.reset&&s.reset();for(let n=0,s;n<Ot.length;n++)s=Ot[n],i[s.name]&&!o[s.name]&&(o[s.name]=!0,s[e](r))}}function o_(r){const e=r.changedTouches[0],t=r.type;if(t==="touchstart")nt.touch.x=e.clientX,nt.touch.y=e.clientY,nt.touch.scrollDecided=!1;else if(t==="touchmove"){if(nt.touch.scrollDecided)return;nt.touch.scrollDecided=!0;const i=t_(r);let o=!1;const n=Math.abs(nt.touch.x-e.clientX),s=Math.abs(nt.touch.y-e.clientY);r.cancelable&&(i==="none"?o=!0:i==="pan-x"?o=s>n:i==="pan-y"&&(o=n>s)),o?r.preventDefault():Li("track")}}function Je(r,e,t){return Fn[e]?(n_(r,e,t),!0):!1}function n_(r,e,t){const i=Fn[e],o=i.deps,n=i.name;let s=r[cn];s||(r[cn]=s={});for(let a=0,l,h;a<o.length;a++)l=o[a],!(Jf&&Mh(l)&&l!=="click")&&(h=s[l],h||(s[l]=h={_count:0}),h._count===0&&r.addEventListener(l,i_,void 0),h[n]=(h[n]||0)+1,h._count=(h._count||0)+1);r.addEventListener(e,t),i.touchAction&&Bh(r,i.touchAction)}function $n(r){Ot.push(r),r.emits.forEach(e=>{Fn[e]=r})}function s_(r){for(let e=0,t;e<Ot.length;e++){t=Ot[e];for(let i=0,o;i<t.emits.length;i++)if(o=t.emits[i],o===r)return t}return null}function Bh(r,e){Oh&&r instanceof HTMLElement&&Bi.run(()=>{r.style.touchAction=e}),r[un]=e}function Vn(r,e,t){const i=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(i.detail=t,Gf(r).dispatchEvent(i),i.defaultPrevented){const o=t.preventer||t.sourceEvent;o&&o.preventDefault&&o.preventDefault()}}function Li(r){const e=s_(r);e.info&&(e.info.prevent=!0)}$n({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Kt(this.info)},mousedown(r){if(!Mt(r))return;const e=xt(r),t=this,i=n=>{Mt(n)||(xr("up",e,n),Kt(t.info))},o=n=>{Mt(n)&&xr("up",e,n),Kt(t.info)};Nh(this.info,i,o),xr("down",e,r)},touchstart(r){xr("down",xt(r),r.changedTouches[0],r)},touchend(r){xr("up",xt(r),r.changedTouches[0],r)}});function xr(r,e,t,i){e&&Vn(e,r,{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:i,prevent(o){return Li(o)}})}$n({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(r){this.moves.length>qf&&this.moves.shift(),this.moves.push(r)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,Kt(this.info)},mousedown(r){if(!Mt(r))return;const e=xt(r),t=this,i=n=>{const s=n.clientX,a=n.clientY;Ea(t.info,s,a)&&(t.info.state=t.info.started?n.type==="mouseup"?"end":"track":"start",t.info.state==="start"&&Li("tap"),t.info.addMove({x:s,y:a}),Mt(n)||(t.info.state="end",Kt(t.info)),e&&Ao(t.info,e,n),t.info.started=!0)},o=n=>{t.info.started&&i(n),Kt(t.info)};Nh(this.info,i,o),this.info.x=r.clientX,this.info.y=r.clientY},touchstart(r){const e=r.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(r){const e=xt(r),t=r.changedTouches[0],i=t.clientX,o=t.clientY;Ea(this.info,i,o)&&(this.info.state==="start"&&Li("tap"),this.info.addMove({x:i,y:o}),Ao(this.info,e,t),this.info.state="track",this.info.started=!0)},touchend(r){const e=xt(r),t=r.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:t.clientX,y:t.clientY}),Ao(this.info,e,t))}});function Ea(r,e,t){if(r.prevent)return!1;if(r.started)return!0;const i=Math.abs(r.x-e),o=Math.abs(r.y-t);return i>=Ca||o>=Ca}function Ao(r,e,t){if(!e)return;const i=r.moves[r.moves.length-2],o=r.moves[r.moves.length-1],n=o.x-r.x,s=o.y-r.y;let a,l=0;i&&(a=o.x-i.x,l=o.y-i.y),Vn(e,"track",{state:r.state,x:t.clientX,y:t.clientY,dx:n,dy:s,ddx:a,ddy:l,sourceEvent:t,hover(){return r_(t.clientX,t.clientY)}})}$n({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(r){Mt(r)&&(this.info.x=r.clientX,this.info.y=r.clientY)},click(r){Mt(r)&&Sa(this.info,r)},touchstart(r){const e=r.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(r){Sa(this.info,r.changedTouches[0],r)}});function Sa(r,e,t){const i=Math.abs(e.clientX-r.x),o=Math.abs(e.clientY-r.y),n=xt(t||e);!n||Qf[n.localName]&&n.hasAttribute("disabled")||(isNaN(i)||isNaN(o)||i<=wa&&o<=wa||e_(e))&&(r.prevent||Vn(n,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:t}))}/**
1579
1579
  * @license
1580
1580
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1581
1581
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1591,7 +1591,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1591
1591
  * @license
1592
1592
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1593
1593
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1594
- */let jn=!1;window.addEventListener("keydown",()=>{jn=!0},{capture:!0});window.addEventListener("mousedown",()=>{jn=!1},{capture:!0});function pn(){let r=document.activeElement||document.body;for(;r.shadowRoot&&r.shadowRoot.activeElement;)r=r.shadowRoot.activeElement;return r}function Ji(){return jn}function Bh(r){const e=r.style;if(e.visibility==="hidden"||e.display==="none")return!0;const t=window.getComputedStyle(r);return t.visibility==="hidden"||t.display==="none"}function s_(r,e){const t=Math.max(r.tabIndex,0),i=Math.max(e.tabIndex,0);return t===0||i===0?i>t:t>i}function a_(r,e){const t=[];for(;r.length>0&&e.length>0;)s_(r[0],e[0])?t.push(e.shift()):t.push(r.shift());return t.concat(r,e)}function mn(r){const e=r.length;if(e<2)return r;const t=Math.ceil(e/2),i=mn(r.slice(0,t)),o=mn(r.slice(t));return a_(i,o)}function fn(r){return r.offsetParent===null&&r.clientWidth===0&&r.clientHeight===0?!0:Bh(r)}function Un(r){return r.matches('[tabindex="-1"]')?!1:r.matches("input, select, textarea, button, object")?r.matches(":not([disabled])"):r.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Gn(r){return r.getRootNode().activeElement===r}function l_(r){if(!Un(r))return-1;const e=r.getAttribute("tabindex")||0;return Number(e)}function Lh(r,e){if(r.nodeType!==Node.ELEMENT_NODE||Bh(r))return!1;const t=r,i=l_(t);let o=i>0;i>=0&&e.push(t);let n=[];return t.localName==="slot"?n=t.assignedNodes({flatten:!0}):n=(t.shadowRoot||t).children,[...n].forEach(s=>{o=Lh(s,e)||o}),o}function h_(r){const e=[];return Lh(r,e)?mn(e):e}/**
1594
+ */let jn=!1;window.addEventListener("keydown",()=>{jn=!0},{capture:!0});window.addEventListener("mousedown",()=>{jn=!1},{capture:!0});function pn(){let r=document.activeElement||document.body;for(;r.shadowRoot&&r.shadowRoot.activeElement;)r=r.shadowRoot.activeElement;return r}function Ji(){return jn}function Lh(r){const e=r.style;if(e.visibility==="hidden"||e.display==="none")return!0;const t=window.getComputedStyle(r);return t.visibility==="hidden"||t.display==="none"}function a_(r,e){const t=Math.max(r.tabIndex,0),i=Math.max(e.tabIndex,0);return t===0||i===0?i>t:t>i}function l_(r,e){const t=[];for(;r.length>0&&e.length>0;)a_(r[0],e[0])?t.push(e.shift()):t.push(r.shift());return t.concat(r,e)}function mn(r){const e=r.length;if(e<2)return r;const t=Math.ceil(e/2),i=mn(r.slice(0,t)),o=mn(r.slice(t));return l_(i,o)}function fn(r){return r.offsetParent===null&&r.clientWidth===0&&r.clientHeight===0?!0:Lh(r)}function Un(r){return r.matches('[tabindex="-1"]')?!1:r.matches("input, select, textarea, button, object")?r.matches(":not([disabled])"):r.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Gn(r){return r.getRootNode().activeElement===r}function h_(r){if(!Un(r))return-1;const e=r.getAttribute("tabindex")||0;return Number(e)}function Hh(r,e){if(r.nodeType!==Node.ELEMENT_NODE||Lh(r))return!1;const t=r,i=h_(t);let o=i>0;i>=0&&e.push(t);let n=[];return t.localName==="slot"?n=t.assignedNodes({flatten:!0}):n=(t.shadowRoot||t).children,[...n].forEach(s=>{o=Hh(s,e)||o}),o}function d_(r){const e=[];return Hh(r,e)?mn(e):e}/**
1595
1595
  * @license
1596
1596
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1597
1597
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1599,11 +1599,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1599
1599
  * @license
1600
1600
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1601
1601
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1602
- */const Hh=r=>class extends cr(r){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,t){super._disabledChanged(e,t),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):t&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1)}};/**
1602
+ */const Rh=r=>class extends cr(r){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,t){super._disabledChanged(e,t),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):t&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1)}};/**
1603
1603
  * @license
1604
1604
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1605
1605
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1606
- */const Qi=ve(r=>class extends Ht(Hh(r)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,t){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):t&&this._removeFocusListeners(t)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,t){super._disabledChanged(e,t),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){e!==void 0&&this.focusElement&&(this.focusElement.tabIndex=e,e!==-1&&(this.tabindex=void 0)),this.disabled&&e&&(e!==-1&&(this._lastTabIndex=e),this.tabindex=void 0)}});/**
1606
+ */const Qi=ve(r=>class extends Ht(Rh(r)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,t){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):t&&this._removeFocusListeners(t)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,t){super._disabledChanged(e,t),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){e!==void 0&&this.focusElement&&(this.focusElement.tabIndex=e,e!==-1&&(this.tabindex=void 0)),this.disabled&&e&&(e!==-1&&(this._lastTabIndex=e),this.tabindex=void 0)}});/**
1607
1607
  * @license
1608
1608
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1609
1609
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1615,15 +1615,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1615
1615
  * @license
1616
1616
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1617
1617
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1618
- */const d_=ve(r=>class extends qn(cr(Yr(r))){static get properties(){return{checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return[...super.delegateProps,"checked"]}_onChange(e){const t=e.target;this._toggleChecked(t.checked)}_toggleChecked(e){this.checked=e}});/**
1618
+ */const c_=ve(r=>class extends qn(cr(Yr(r))){static get properties(){return{checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return[...super.delegateProps,"checked"]}_onChange(e){const t=e.target;this._toggleChecked(t.checked)}_toggleChecked(e){this.checked=e}});/**
1619
1619
  * @license
1620
1620
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
1621
1621
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1622
- */const Po=new Map;function Yn(r){return Po.has(r)||Po.set(r,new WeakMap),Po.get(r)}function Rh(r,e){r&&r.removeAttribute(e)}function Fh(r,e){if(!r||!e)return;const t=Yn(e);if(t.has(r))return;const i=Hn(r.getAttribute(e));t.set(r,new Set(i))}function c_(r,e){if(!r||!e)return;const t=Yn(e),i=t.get(r);!i||i.size===0?r.removeAttribute(e):Ih(r,e,Zi(i)),t.delete(r)}function Zt(r,e,t={newId:null,oldId:null,fromUser:!1}){if(!r||!e)return;const{newId:i,oldId:o,fromUser:n}=t,s=Yn(e),a=s.get(r);if(!n&&a){o&&a.delete(o),i&&a.add(i);return}n&&(a?i||s.delete(r):Fh(r,e),Rh(r,e)),Vf(r,e,o);const l=i||Zi(a);l&&Ih(r,e,l)}function u_(r,e){Fh(r,e),Rh(r,e)}/**
1622
+ */const Po=new Map;function Yn(r){return Po.has(r)||Po.set(r,new WeakMap),Po.get(r)}function Fh(r,e){r&&r.removeAttribute(e)}function $h(r,e){if(!r||!e)return;const t=Yn(e);if(t.has(r))return;const i=Hn(r.getAttribute(e));t.set(r,new Set(i))}function u_(r,e){if(!r||!e)return;const t=Yn(e),i=t.get(r);!i||i.size===0?r.removeAttribute(e):Dh(r,e,Zi(i)),t.delete(r)}function Zt(r,e,t={newId:null,oldId:null,fromUser:!1}){if(!r||!e)return;const{newId:i,oldId:o,fromUser:n}=t,s=Yn(e),a=s.get(r);if(!n&&a){o&&a.delete(o),i&&a.add(i);return}n&&(a?i||s.delete(r):$h(r,e),Fh(r,e)),Wf(r,e,o);const l=i||Zi(a);l&&Dh(r,e,l)}function p_(r,e){$h(r,e),Fh(r,e)}/**
1623
1623
  * @license
1624
1624
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1625
1625
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1626
- */class p_{constructor(e){this.host=e,this.__required=!1}setTarget(e){this.__target=e,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(e){this.__setAriaRequiredAttribute(e),this.__required=e}setAriaLabel(e){this.__setAriaLabelToAttribute(e),this.__label=e}setLabelId(e,t=!1){const i=t?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(e,i,t),t?this.__labelIdFromUser=e:this.__labelId=e}setErrorId(e){this.__setErrorIdToAriaAttribute(e,this.__errorId),this.__errorId=e}setHelperId(e){this.__setHelperIdToAriaAttribute(e,this.__helperId),this.__helperId=e}__setAriaLabelToAttribute(e){this.__target&&(e?(u_(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&(c_(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,i){Zt(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:i})}__setErrorIdToAriaAttribute(e,t){Zt(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){Zt(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setAriaRequiredAttribute(e){this.__target&&(["input","textarea"].includes(this.__target.localName)||(e?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
1626
+ */class m_{constructor(e){this.host=e,this.__required=!1}setTarget(e){this.__target=e,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(e){this.__setAriaRequiredAttribute(e),this.__required=e}setAriaLabel(e){this.__setAriaLabelToAttribute(e),this.__label=e}setLabelId(e,t=!1){const i=t?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(e,i,t),t?this.__labelIdFromUser=e:this.__labelId=e}setErrorId(e){this.__setErrorIdToAriaAttribute(e,this.__errorId),this.__errorId=e}setHelperId(e){this.__setHelperIdToAriaAttribute(e,this.__helperId),this.__helperId=e}__setAriaLabelToAttribute(e){this.__target&&(e?(p_(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&(u_(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,i){Zt(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:i})}__setErrorIdToAriaAttribute(e,t){Zt(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){Zt(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setAriaRequiredAttribute(e){this.__target&&(["input","textarea"].includes(this.__target.localName)||(e?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
1627
1627
  * @license
1628
1628
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1629
1629
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1635,23 +1635,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1635
1635
  * @license
1636
1636
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
1637
1637
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1638
- */class Xn extends Ne{constructor(e,t,i,o={}){super(e,t,i,Fl(ki({},o),{useUniqueId:!0}))}initCustomNode(e){this.__updateNodeId(e),this.__notifyChange(e)}teardownNode(e){const t=this.getSlotChild();t&&t!==this.defaultNode?this.__notifyChange(t):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const e=super.attachDefaultNode();return e&&this.__updateNodeId(e),e}restoreDefaultNode(){}updateDefaultNode(e){this.__notifyChange(e)}observeNode(e){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(t=>{t.forEach(i=>{const o=i.target,n=o===this.node;i.type==="attributes"?n&&this.__updateNodeId(o):(n||o.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(e){return e?e.nodeType===Node.ELEMENT_NODE&&(customElements.get(e.localName)||e.children.length>0)||e.textContent&&e.textContent.trim()!=="":!1}__notifyChange(e){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(e),node:e}}))}__updateNodeId(e){const t=!this.nodes||e===this.nodes[0];e.nodeType===Node.ELEMENT_NODE&&(!this.multiple||t)&&!e.id&&(e.id=this.defaultId)}}/**
1638
+ */class Xn extends Ne{constructor(e,t,i,o={}){super(e,t,i,$l(ki({},o),{useUniqueId:!0}))}initCustomNode(e){this.__updateNodeId(e),this.__notifyChange(e)}teardownNode(e){const t=this.getSlotChild();t&&t!==this.defaultNode?this.__notifyChange(t):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const e=super.attachDefaultNode();return e&&this.__updateNodeId(e),e}restoreDefaultNode(){}updateDefaultNode(e){this.__notifyChange(e)}observeNode(e){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(t=>{t.forEach(i=>{const o=i.target,n=o===this.node;i.type==="attributes"?n&&this.__updateNodeId(o):(n||o.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(e){return e?e.nodeType===Node.ELEMENT_NODE&&(customElements.get(e.localName)||e.children.length>0)||e.textContent&&e.textContent.trim()!=="":!1}__notifyChange(e){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(e),node:e}}))}__updateNodeId(e){const t=!this.nodes||e===this.nodes[0];e.nodeType===Node.ELEMENT_NODE&&(!this.multiple||t)&&!e.id&&(e.id=this.defaultId)}}/**
1639
1639
  * @license
1640
1640
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1641
1641
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1642
- */class m_ extends Xn{constructor(e){super(e,"error-message","div")}setErrorMessage(e){this.errorMessage=e,this.updateDefaultNode(this.node)}setInvalid(e){this.invalid=e,this.updateDefaultNode(this.node)}initAddedNode(e){e!==this.defaultNode&&this.initCustomNode(e)}initNode(e){this.updateDefaultNode(e)}initCustomNode(e){e.textContent&&!this.errorMessage&&(this.errorMessage=e.textContent.trim()),super.initCustomNode(e)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(e){const{errorMessage:t,invalid:i}=this,o=!!(i&&t&&t.trim()!=="");e&&(e.textContent=o?t:"",e.hidden=!o,o&&Ei(t,{mode:"assertive"})),super.updateDefaultNode(e)}}/**
1642
+ */class f_ extends Xn{constructor(e){super(e,"error-message","div")}setErrorMessage(e){this.errorMessage=e,this.updateDefaultNode(this.node)}setInvalid(e){this.invalid=e,this.updateDefaultNode(this.node)}initAddedNode(e){e!==this.defaultNode&&this.initCustomNode(e)}initNode(e){this.updateDefaultNode(e)}initCustomNode(e){e.textContent&&!this.errorMessage&&(this.errorMessage=e.textContent.trim()),super.initCustomNode(e)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(e){const{errorMessage:t,invalid:i}=this,o=!!(i&&t&&t.trim()!=="");e&&(e.textContent=o?t:"",e.hidden=!o,o&&Ei(t,{mode:"assertive"})),super.updateDefaultNode(e)}}/**
1643
1643
  * @license
1644
1644
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1645
1645
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1646
- */class f_ extends Xn{constructor(e){super(e,"helper",null)}setHelperText(e){this.helperText=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:e}=this;if(e&&e.trim()!==""){this.tagName="div";const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.helperText),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
1646
+ */class __ extends Xn{constructor(e){super(e,"helper",null)}setHelperText(e){this.helperText=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:e}=this;if(e&&e.trim()!==""){this.tagName="div";const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.helperText),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
1647
1647
  * @license
1648
1648
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1649
1649
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1650
- */class $h extends Xn{constructor(e){super(e,"label","label")}setLabel(e){this.label=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:e}=this;if(e&&e.trim()!==""){const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.label),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
1650
+ */class Vh extends Xn{constructor(e){super(e,"label","label")}setLabel(e){this.label=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:e}=this;if(e&&e.trim()!==""){const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.label),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
1651
1651
  * @license
1652
1652
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1653
1653
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1654
- */const __=ve(r=>class extends et(r){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new $h(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent)})}get _labelId(){const e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}});/**
1654
+ */const v_=ve(r=>class extends et(r){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Vh(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent)})}get _labelId(){const e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}});/**
1655
1655
  * @license
1656
1656
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1657
1657
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1659,7 +1659,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1659
1659
  * @license
1660
1660
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1661
1661
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1662
- */const eo=r=>class extends Kn(__(et(r))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new p_(this),this._helperController=new f_(this),this._errorController=new m_(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",e=>{const{hasContent:t,node:i}=e.detail;this.__labelChanged(t,i)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:t,node:i}=e.detail;this.toggleAttribute("has-helper",t),this.__helperChanged(t,i)})}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(e,t){e?this._fieldAriaController.setHelperId(t.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,t){e?this._fieldAriaController.setLabelId(t.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{if(e){const t=this._errorNode;this._fieldAriaController.setErrorId(t&&t.id)}else this._fieldAriaController.setErrorId(null)})}};/**
1662
+ */const eo=r=>class extends Kn(v_(et(r))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new m_(this),this._helperController=new __(this),this._errorController=new f_(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",e=>{const{hasContent:t,node:i}=e.detail;this.__labelChanged(t,i)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:t,node:i}=e.detail;this.toggleAttribute("has-helper",t),this.__helperChanged(t,i)})}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(e,t){e?this._fieldAriaController.setHelperId(t.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,t){e?this._fieldAriaController.setLabelId(t.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{if(e){const t=this._errorNode;this._fieldAriaController.setErrorId(t&&t.id)}else this._fieldAriaController.setErrorId(null)})}};/**
1663
1663
  * @license
1664
1664
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1665
1665
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1671,11 +1671,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1671
1671
  * @license
1672
1672
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1673
1673
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1674
- */const v_=r=>class extends eo(d_(Qi(Wn(r)))){static get properties(){return{indeterminate:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},name:{type:String,value:""},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},tabindex:{type:Number,value:0,reflectToAttribute:!0}}}static get observers(){return["__readonlyChanged(readonly, inputElement)"]}static get delegateProps(){return[...super.delegateProps,"indeterminate"]}static get delegateAttrs(){return[...super.delegateAttrs,"name","invalid","required"]}constructor(){super(),this._setType("checkbox"),this._boundOnInputClick=this._onInputClick.bind(this),this.value="on"}ready(){super.ready(),this.addController(new Xr(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Kr(this.inputElement,this._labelController)),this._createMethodObserver("_checkedChanged(checked)")}_shouldSetActive(e){return this.readonly||e.target.localName==="a"||e.target===this._helperNode||e.target===this._errorNode?!1:super._shouldSetActive(e)}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("click",this._boundOnInputClick)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("click",this._boundOnInputClick)}_onInputClick(e){this.readonly&&e.preventDefault()}__readonlyChanged(e,t){t&&(e?t.setAttribute("aria-readonly","true"):t.removeAttribute("aria-readonly"))}_toggleChecked(e){this.indeterminate&&(this.indeterminate=!1),super._toggleChecked(e)}checkValidity(){return!this.required||!!this.checked}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_checkedChanged(e){(e||this.__oldChecked)&&this.validate(),this.__oldChecked=e}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate()}_onRequiredIndicatorClick(){this._labelNode.click()}};/**
1674
+ */const g_=r=>class extends eo(c_(Qi(Wn(r)))){static get properties(){return{indeterminate:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},name:{type:String,value:""},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},tabindex:{type:Number,value:0,reflectToAttribute:!0}}}static get observers(){return["__readonlyChanged(readonly, inputElement)"]}static get delegateProps(){return[...super.delegateProps,"indeterminate"]}static get delegateAttrs(){return[...super.delegateAttrs,"name","invalid","required"]}constructor(){super(),this._setType("checkbox"),this._boundOnInputClick=this._onInputClick.bind(this),this.value="on"}ready(){super.ready(),this.addController(new Xr(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Kr(this.inputElement,this._labelController)),this._createMethodObserver("_checkedChanged(checked)")}_shouldSetActive(e){return this.readonly||e.target.localName==="a"||e.target===this._helperNode||e.target===this._errorNode?!1:super._shouldSetActive(e)}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("click",this._boundOnInputClick)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("click",this._boundOnInputClick)}_onInputClick(e){this.readonly&&e.preventDefault()}__readonlyChanged(e,t){t&&(e?t.setAttribute("aria-readonly","true"):t.removeAttribute("aria-readonly"))}_toggleChecked(e){this.indeterminate&&(this.indeterminate=!1),super._toggleChecked(e)}checkValidity(){return!this.required||!!this.checked}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_checkedChanged(e){(e||this.__oldChecked)&&this.validate(),this.__oldChecked=e}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate()}_onRequiredIndicatorClick(){this._labelNode.click()}};/**
1675
1675
  * @license
1676
1676
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1677
1677
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1678
- */const g_=k`
1678
+ */const b_=k`
1679
1679
  :host {
1680
1680
  display: inline-block;
1681
1681
  }
@@ -1767,7 +1767,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1767
1767
  * @license
1768
1768
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1769
1769
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1770
- */L("vaadin-checkbox",g_,{moduleId:"vaadin-checkbox-styles"});class b_ extends v_(Ve(le(Z))){static get is(){return"vaadin-checkbox"}static get template(){return K`
1770
+ */L("vaadin-checkbox",b_,{moduleId:"vaadin-checkbox-styles"});class y_ extends g_(Ve(le(Z))){static get is(){return"vaadin-checkbox"}static get template(){return K`
1771
1771
  <div class="vaadin-checkbox-container">
1772
1772
  <div part="checkbox" aria-hidden="true"></div>
1773
1773
  <slot name="input"></slot>
@@ -1783,11 +1783,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1783
1783
  </div>
1784
1784
  </div>
1785
1785
  <slot name="tooltip"></slot>
1786
- `}ready(){super.ready(),this._tooltipController=new ht(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}G(b_);/**
1786
+ `}ready(){super.ready(),this._tooltipController=new ht(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}G(y_);/**
1787
1787
  * @license
1788
1788
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1789
1789
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1790
- */const Vh=k`
1790
+ */const Wh=k`
1791
1791
  :host {
1792
1792
  --_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
1793
1793
  }
@@ -1959,7 +1959,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1959
1959
  margin-left: 0;
1960
1960
  margin-right: calc(var(--lumo-border-radius-m) / 4);
1961
1961
  }
1962
- `;L("",Zn,{moduleId:"lumo-required-field"});const y_=k`
1962
+ `;L("",Zn,{moduleId:"lumo-required-field"});const x_=k`
1963
1963
  :host {
1964
1964
  color: var(--lumo-body-text-color);
1965
1965
  font-size: var(--lumo-font-size-m);
@@ -2002,15 +2002,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2002
2002
  color: var(--lumo-secondary-text-color);
2003
2003
  }
2004
2004
  }
2005
- `;L("vaadin-checkbox-group",[Zn,Vh,y_],{moduleId:"lumo-checkbox-group"});/**
2005
+ `;L("vaadin-checkbox-group",[Zn,Wh,x_],{moduleId:"lumo-checkbox-group"});/**
2006
2006
  * @license
2007
2007
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
2008
2008
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2009
- */const x_=r=>class extends eo(Ht(cr(r))){static get properties(){return{value:{type:Array,value:()=>[],notify:!0,sync:!0,observer:"__valueChanged"},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__readonlyChanged"}}}constructor(){super(),this.__registerCheckbox=this.__registerCheckbox.bind(this),this.__unregisterCheckbox=this.__unregisterCheckbox.bind(this),this.__onCheckboxCheckedChanged=this.__onCheckboxCheckedChanged.bind(this),this._tooltipController=new ht(this),this._tooltipController.addEventListener("tooltip-changed",e=>{const t=e.detail.node;if(t&&t.isConnected){const i=this.__checkboxes.map(o=>o.inputElement);this._tooltipController.setAriaTarget(i)}else this._tooltipController.setAriaTarget([])})}get __checkboxes(){return this.__filterCheckboxes([...this.children])}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","group");const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Rn(e,({addedNodes:t,removedNodes:i})=>{const o=this.__filterCheckboxes(t),n=this.__filterCheckboxes(i);o.forEach(this.__registerCheckbox),n.forEach(this.__unregisterCheckbox);const s=this.__checkboxes.map(a=>a.inputElement);this._tooltipController.setAriaTarget(s),this.__warnOfCheckboxesWithoutValue(o)}),this.addController(this._tooltipController)}checkValidity(){return!this.required||!!(this.value&&this.value.length>0)}__filterCheckboxes(e){return e.filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.localName==="vaadin-checkbox")}__warnOfCheckboxesWithoutValue(e){e.some(t=>{const{value:i}=t;return!t.hasAttribute("value")&&(!i||i==="on")})&&console.warn("Please provide the value attribute to all the checkboxes inside the checkbox group.")}__registerCheckbox(e){e.addEventListener("checked-changed",this.__onCheckboxCheckedChanged),this.disabled&&(e.disabled=!0),this.readonly&&(e.readonly=!0),e.checked?this.__addCheckboxToValue(e.value):this.value&&this.value.includes(e.value)&&(e.checked=!0)}__unregisterCheckbox(e){e.removeEventListener("checked-changed",this.__onCheckboxCheckedChanged),e.checked&&this.__removeCheckboxFromValue(e.value)}_disabledChanged(e,t){super._disabledChanged(e,t),!(!e&&t===void 0)&&t!==e&&this.__checkboxes.forEach(i=>{i.disabled=e})}__addCheckboxToValue(e){this.value?this.value.includes(e)||(this.value=[...this.value,e]):this.value=[e]}__removeCheckboxFromValue(e){this.value&&this.value.includes(e)&&(this.value=this.value.filter(t=>t!==e))}__onCheckboxCheckedChanged(e){const t=e.target;t.checked?this.__addCheckboxToValue(t.value):this.__removeCheckboxFromValue(t.value)}__valueChanged(e,t){e&&e.length===0&&t===void 0||(this.toggleAttribute("has-value",e&&e.length>0),this.__checkboxes.forEach(i=>{i.checked=e&&e.includes(i.value)}),t!==void 0&&this.validate())}__readonlyChanged(e,t){(e||t)&&this.__checkboxes.forEach(i=>{i.readonly=e})}_shouldRemoveFocus(e){return!this.contains(e.relatedTarget)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}};/**
2009
+ */const w_=r=>class extends eo(Ht(cr(r))){static get properties(){return{value:{type:Array,value:()=>[],notify:!0,sync:!0,observer:"__valueChanged"},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__readonlyChanged"}}}constructor(){super(),this.__registerCheckbox=this.__registerCheckbox.bind(this),this.__unregisterCheckbox=this.__unregisterCheckbox.bind(this),this.__onCheckboxCheckedChanged=this.__onCheckboxCheckedChanged.bind(this),this._tooltipController=new ht(this),this._tooltipController.addEventListener("tooltip-changed",e=>{const t=e.detail.node;if(t&&t.isConnected){const i=this.__checkboxes.map(o=>o.inputElement);this._tooltipController.setAriaTarget(i)}else this._tooltipController.setAriaTarget([])})}get __checkboxes(){return this.__filterCheckboxes([...this.children])}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","group");const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Rn(e,({addedNodes:t,removedNodes:i})=>{const o=this.__filterCheckboxes(t),n=this.__filterCheckboxes(i);o.forEach(this.__registerCheckbox),n.forEach(this.__unregisterCheckbox);const s=this.__checkboxes.map(a=>a.inputElement);this._tooltipController.setAriaTarget(s),this.__warnOfCheckboxesWithoutValue(o)}),this.addController(this._tooltipController)}checkValidity(){return!this.required||!!(this.value&&this.value.length>0)}__filterCheckboxes(e){return e.filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.localName==="vaadin-checkbox")}__warnOfCheckboxesWithoutValue(e){e.some(t=>{const{value:i}=t;return!t.hasAttribute("value")&&(!i||i==="on")})&&console.warn("Please provide the value attribute to all the checkboxes inside the checkbox group.")}__registerCheckbox(e){e.addEventListener("checked-changed",this.__onCheckboxCheckedChanged),this.disabled&&(e.disabled=!0),this.readonly&&(e.readonly=!0),e.checked?this.__addCheckboxToValue(e.value):this.value&&this.value.includes(e.value)&&(e.checked=!0)}__unregisterCheckbox(e){e.removeEventListener("checked-changed",this.__onCheckboxCheckedChanged),e.checked&&this.__removeCheckboxFromValue(e.value)}_disabledChanged(e,t){super._disabledChanged(e,t),!(!e&&t===void 0)&&t!==e&&this.__checkboxes.forEach(i=>{i.disabled=e})}__addCheckboxToValue(e){this.value?this.value.includes(e)||(this.value=[...this.value,e]):this.value=[e]}__removeCheckboxFromValue(e){this.value&&this.value.includes(e)&&(this.value=this.value.filter(t=>t!==e))}__onCheckboxCheckedChanged(e){const t=e.target;t.checked?this.__addCheckboxToValue(t.value):this.__removeCheckboxFromValue(t.value)}__valueChanged(e,t){e&&e.length===0&&t===void 0||(this.toggleAttribute("has-value",e&&e.length>0),this.__checkboxes.forEach(i=>{i.checked=e&&e.includes(i.value)}),t!==void 0&&this.validate())}__readonlyChanged(e,t){(e||t)&&this.__checkboxes.forEach(i=>{i.readonly=e})}_shouldRemoveFocus(e){return!this.contains(e.relatedTarget)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}};/**
2010
2010
  * @license
2011
2011
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
2012
2012
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2013
- */const w_=k`
2013
+ */const C_=k`
2014
2014
  :host {
2015
2015
  display: inline-flex;
2016
2016
  }
@@ -2043,7 +2043,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2043
2043
  * @license
2044
2044
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
2045
2045
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2046
- */L("vaadin-checkbox-group",w_,{moduleId:"vaadin-checkbox-group-styles"});class C_ extends x_(Ve(le(Z))){static get is(){return"vaadin-checkbox-group"}static get template(){return K`
2046
+ */L("vaadin-checkbox-group",C_,{moduleId:"vaadin-checkbox-group-styles"});class E_ extends w_(Ve(le(Z))){static get is(){return"vaadin-checkbox-group"}static get template(){return K`
2047
2047
  <div class="vaadin-group-field-container">
2048
2048
  <div part="label">
2049
2049
  <slot name="label"></slot>
@@ -2064,7 +2064,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2064
2064
  </div>
2065
2065
 
2066
2066
  <slot name="tooltip"></slot>
2067
- `}}G(C_);/**
2067
+ `}}G(E_);/**
2068
2068
  * @license
2069
2069
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2070
2070
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -2167,7 +2167,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2167
2167
  opacity: 0;
2168
2168
  }
2169
2169
  }
2170
- `;L("",to,{moduleId:"lumo-menu-overlay-core"});const E_=k`
2170
+ `;L("",to,{moduleId:"lumo-menu-overlay-core"});const S_=k`
2171
2171
  /* Small viewport (bottom sheet) styles */
2172
2172
  /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
2173
2173
  @media (max-width: 450px), (max-height: 450px) {
@@ -2229,7 +2229,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2229
2229
  transform: translateY(150%);
2230
2230
  }
2231
2231
  }
2232
- `,Jn=[ur,to,E_];L("",Jn,{moduleId:"lumo-menu-overlay"});const S_=k`
2232
+ `,Jn=[ur,to,S_];L("",Jn,{moduleId:"lumo-menu-overlay"});const A_=k`
2233
2233
  [part='overlay'] {
2234
2234
  /*
2235
2235
  Width:
@@ -2274,7 +2274,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2274
2274
  max-height: 70vh;
2275
2275
  }
2276
2276
  }
2277
- `;L("vaadin-date-picker-overlay",[Jn,S_],{moduleId:"lumo-date-picker-overlay"});const Wh=k`
2277
+ `;L("vaadin-date-picker-overlay",[Jn,A_],{moduleId:"lumo-date-picker-overlay"});const jh=k`
2278
2278
  :host {
2279
2279
  /* Sizing */
2280
2280
  --lumo-button-size: var(--lumo-size-m);
@@ -2550,7 +2550,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2550
2550
  margin-left: 0;
2551
2551
  margin-right: 0;
2552
2552
  }
2553
- `;L("vaadin-button",Wh,{moduleId:"lumo-button"});L("vaadin-date-picker-year",k`
2553
+ `;L("vaadin-button",jh,{moduleId:"lumo-button"});L("vaadin-date-picker-year",k`
2554
2554
  :host([current]) [part='year-number'] {
2555
2555
  color: var(--lumo-primary-text-color);
2556
2556
  }
@@ -3084,7 +3084,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3084
3084
  * @license
3085
3085
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3086
3086
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3087
- */const A_=k`
3087
+ */const P_=k`
3088
3088
  :host {
3089
3089
  --lumo-text-field-size: var(--lumo-size-m);
3090
3090
  color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
@@ -3215,7 +3215,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3215
3215
  [part='clear-button']::before {
3216
3216
  content: var(--lumo-icons-cross);
3217
3217
  }
3218
- `,Rt=[Zn,Qn,Vh,A_];L("",Rt,{moduleId:"lumo-input-field-shared-styles"});const P_=k`
3218
+ `,Rt=[Zn,Qn,Wh,P_];L("",Rt,{moduleId:"lumo-input-field-shared-styles"});const k_=k`
3219
3219
  [part='toggle-button']::before {
3220
3220
  content: var(--lumo-icons-calendar);
3221
3221
  }
@@ -3237,15 +3237,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3237
3237
  :host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
3238
3238
  --_lumo-text-field-overflow-mask-image: none;
3239
3239
  }
3240
- `;L("vaadin-date-picker",[Rt,P_],{moduleId:"lumo-date-picker"});/**
3240
+ `;L("vaadin-date-picker",[Rt,k_],{moduleId:"lumo-date-picker"});/**
3241
3241
  * @license
3242
3242
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3243
3243
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3244
- */const k_=r=>class extends r{static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",e=>{e.target===this&&e.preventDefault()}),this.addEventListener("click",e=>{e.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(t=>t.focus&&t.focus())})}};/**
3244
+ */const T_=r=>class extends r{static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",e=>{e.target===this&&e.preventDefault()}),this.addEventListener("click",e=>{e.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(t=>t.focus&&t.focus())})}};/**
3245
3245
  * @license
3246
3246
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3247
3247
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3248
- */const T_=k`
3248
+ */const I_=k`
3249
3249
  :host {
3250
3250
  display: flex;
3251
3251
  align-items: center;
@@ -3314,11 +3314,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3314
3314
  * @license
3315
3315
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3316
3316
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3317
- */L("vaadin-input-container",T_,{moduleId:"vaadin-input-container-styles"});class jh extends k_(le($e(Z))){static get is(){return"vaadin-input-container"}static get template(){return K`
3317
+ */L("vaadin-input-container",I_,{moduleId:"vaadin-input-container-styles"});class Uh extends T_(le($e(Z))){static get is(){return"vaadin-input-container"}static get template(){return K`
3318
3318
  <slot name="prefix"></slot>
3319
3319
  <slot></slot>
3320
3320
  <slot name="suffix"></slot>
3321
- `}}G(jh);/**
3321
+ `}}G(Uh);/**
3322
3322
  * @license
3323
3323
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3324
3324
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3389,55 +3389,55 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3389
3389
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3390
3390
  Code distributed by Google as part of the polymer project is also
3391
3391
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3392
- */let _n=!1,I_=[],Uh=[];function D_(){_n=!0,requestAnimationFrame(function(){_n=!1,O_(I_),setTimeout(function(){M_(Uh)})})}function O_(r){for(;r.length;)Gh(r.shift())}function M_(r){for(let e=0,t=r.length;e<t;e++)Gh(r.shift())}function Gh(r){const e=r[0],t=r[1],i=r[2];try{t.apply(e,i)}catch(o){setTimeout(()=>{throw o})}}function es(r,e,t){_n||D_(),Uh.push([r,e,t])}/**
3392
+ */let _n=!1,D_=[],Gh=[];function O_(){_n=!0,requestAnimationFrame(function(){_n=!1,M_(D_),setTimeout(function(){N_(Gh)})})}function M_(r){for(;r.length;)qh(r.shift())}function N_(r){for(let e=0,t=r.length;e<t;e++)qh(r.shift())}function qh(r){const e=r[0],t=r[1],i=r[2];try{t.apply(e,i)}catch(o){setTimeout(()=>{throw o})}}function es(r,e,t){_n||O_(),Gh.push([r,e,t])}/**
3393
3393
  * @license
3394
3394
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3395
3395
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3396
- */const ro=r=>r.test(navigator.userAgent),vn=r=>r.test(navigator.platform),N_=r=>r.test(navigator.vendor);ro(/Android/u);ro(/Chrome/u)&&N_(/Google Inc/u);ro(/Firefox/u);const z_=vn(/^iPad/u)||vn(/^Mac/u)&&navigator.maxTouchPoints>1,B_=vn(/^iPhone/u),ts=B_||z_,L_=ro(/^((?!chrome|android).)*safari/iu),gn=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(r){return!1}})();/**
3396
+ */const ro=r=>r.test(navigator.userAgent),vn=r=>r.test(navigator.platform),z_=r=>r.test(navigator.vendor);ro(/Android/u);ro(/Chrome/u)&&z_(/Google Inc/u);ro(/Firefox/u);const B_=vn(/^iPad/u)||vn(/^Mac/u)&&navigator.maxTouchPoints>1,L_=vn(/^iPhone/u),ts=L_||B_,H_=ro(/^((?!chrome|android).)*safari/iu),gn=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(r){return!1}})();/**
3397
3397
  * @license
3398
3398
  * Copyright (c) 2017 Anton Korzunov
3399
3399
  * SPDX-License-Identifier: MIT
3400
- */let Wt=new WeakMap,pi=new WeakMap,mi={},ko=0;const Sa=r=>r&&r.nodeType===Node.ELEMENT_NODE,To=(...r)=>{console.error(`Error: ${r.join(" ")}. Skip setting aria-hidden.`)},H_=(r,e)=>Sa(r)?e.map(t=>{if(!Sa(t))return To(t,"is not a valid element"),null;let i=t;for(;i&&i!==r;){if(r.contains(i))return t;i=i.getRootNode().host}return To(t,"is not contained inside",r),null}).filter(t=>!!t):(To(r,"is not a valid element"),[]),R_=(r,e,t,i)=>{const o=H_(e,Array.isArray(r)?r:[r]);mi[t]||(mi[t]=new WeakMap);const n=mi[t],s=[],a=new Set,l=new Set(o),h=c=>{if(!c||a.has(c))return;a.add(c);const u=c.assignedSlot;u&&h(u),h(c.parentNode||c.host)};o.forEach(h);const d=c=>{if(!c||l.has(c))return;const u=c.shadowRoot;(u?[...c.children,...u.children]:[...c.children]).forEach(m=>{if(!["template","script","style"].includes(m.localName))if(a.has(m))d(m);else{const g=m.getAttribute(i),_=g!==null&&g!=="false",y=(Wt.get(m)||0)+1,D=(n.get(m)||0)+1;Wt.set(m,y),n.set(m,D),s.push(m),y===1&&_&&pi.set(m,!0),D===1&&m.setAttribute(t,"true"),_||m.setAttribute(i,"true")}})};return d(e),a.clear(),ko+=1,()=>{s.forEach(c=>{const u=Wt.get(c)-1,m=n.get(c)-1;Wt.set(c,u),n.set(c,m),u||(pi.has(c)?pi.delete(c):c.removeAttribute(i)),m||c.removeAttribute(t)}),ko-=1,ko||(Wt=new WeakMap,Wt=new WeakMap,pi=new WeakMap,mi={})}},qh=(r,e=document.body,t="data-aria-hidden")=>{const i=Array.from(Array.isArray(r)?r:[r]);return e&&i.push(...Array.from(e.querySelectorAll("[aria-live]"))),R_(i,e,t,"aria-hidden")};/**
3400
+ */let Wt=new WeakMap,pi=new WeakMap,mi={},ko=0;const Aa=r=>r&&r.nodeType===Node.ELEMENT_NODE,To=(...r)=>{console.error(`Error: ${r.join(" ")}. Skip setting aria-hidden.`)},R_=(r,e)=>Aa(r)?e.map(t=>{if(!Aa(t))return To(t,"is not a valid element"),null;let i=t;for(;i&&i!==r;){if(r.contains(i))return t;i=i.getRootNode().host}return To(t,"is not contained inside",r),null}).filter(t=>!!t):(To(r,"is not a valid element"),[]),F_=(r,e,t,i)=>{const o=R_(e,Array.isArray(r)?r:[r]);mi[t]||(mi[t]=new WeakMap);const n=mi[t],s=[],a=new Set,l=new Set(o),h=c=>{if(!c||a.has(c))return;a.add(c);const u=c.assignedSlot;u&&h(u),h(c.parentNode||c.host)};o.forEach(h);const d=c=>{if(!c||l.has(c))return;const u=c.shadowRoot;(u?[...c.children,...u.children]:[...c.children]).forEach(m=>{if(!["template","script","style"].includes(m.localName))if(a.has(m))d(m);else{const g=m.getAttribute(i),_=g!==null&&g!=="false",y=(Wt.get(m)||0)+1,D=(n.get(m)||0)+1;Wt.set(m,y),n.set(m,D),s.push(m),y===1&&_&&pi.set(m,!0),D===1&&m.setAttribute(t,"true"),_||m.setAttribute(i,"true")}})};return d(e),a.clear(),ko+=1,()=>{s.forEach(c=>{const u=Wt.get(c)-1,m=n.get(c)-1;Wt.set(c,u),n.set(c,m),u||(pi.has(c)?pi.delete(c):c.removeAttribute(i)),m||c.removeAttribute(t)}),ko-=1,ko||(Wt=new WeakMap,Wt=new WeakMap,pi=new WeakMap,mi={})}},Yh=(r,e=document.body,t="data-aria-hidden")=>{const i=Array.from(Array.isArray(r)?r:[r]);return e&&i.push(...Array.from(e.querySelectorAll("[aria-live]"))),F_(i,e,t,"aria-hidden")};/**
3401
3401
  * @license
3402
3402
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3403
3403
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3404
- */class F_{constructor(e,t){this.host=e,this.callback=typeof t=="function"?t:()=>e}showModal(){const e=this.callback();this.__showOthers=qh(e)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
3404
+ */class $_{constructor(e,t){this.host=e,this.callback=typeof t=="function"?t:()=>e}showModal(){const e=this.callback();this.__showOthers=Yh(e)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
3405
3405
  * @license
3406
3406
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3407
3407
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3408
- */class $_{saveFocus(e){this.focusNode=e||pn()}restoreFocus(e){const t=this.focusNode;if(!t)return;const i=e?e.preventScroll:!1;pn()===document.body?setTimeout(()=>t.focus({preventScroll:i})):t.focus({preventScroll:i}),this.focusNode=null}}/**
3408
+ */class V_{saveFocus(e){this.focusNode=e||pn()}restoreFocus(e){const t=this.focusNode;if(!t)return;const i=e?e.preventScroll:!1;pn()===document.body?setTimeout(()=>t.focus({preventScroll:i})):t.focus({preventScroll:i}),this.focusNode=null}}/**
3409
3409
  * @license
3410
3410
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3411
3411
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3412
- */const Io=[];class V_{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return h_(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(Gn).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(e){if(this.__trapNode=e,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Io.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Io.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from(Io).pop()&&e.key==="Tab"){e.preventDefault();const t=e.shiftKey;this.__focusNextElement(t)}}__focusNextElement(e=!1){const t=this.__focusableElements,i=e?-1:1,o=this.__focusedElementIndex,n=(t.length+o+i)%t.length,s=t[n];s.focus(),s.localName==="input"&&s.select()}}/**
3412
+ */const Io=[];class W_{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return d_(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(Gn).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(e){if(this.__trapNode=e,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Io.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Io.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from(Io).pop()&&e.key==="Tab"){e.preventDefault();const t=e.shiftKey;this.__focusNextElement(t)}}__focusNextElement(e=!1){const t=this.__focusableElements,i=e?-1:1,o=this.__focusedElementIndex,n=(t.length+o+i)%t.length,s=t[n];s.focus(),s.localName==="input"&&s.select()}}/**
3413
3413
  * @license
3414
3414
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3415
3415
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3416
- */const W_=r=>class extends et(r){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new F_(this),this.__focusTrapController=new V_(this),this.__focusRestorationController=new $_}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){if(this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()){const e=!Ji();this.__focusRestorationController.restoreFocus({preventScroll:e})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const e=pn();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let t=e;const i=e.ownerDocument;for(;t&&t!==i&&t!==this;)t=t.parentNode||t.host;return t===this}};/**
3416
+ */const j_=r=>class extends et(r){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new $_(this),this.__focusTrapController=new W_(this),this.__focusRestorationController=new V_}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){if(this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()){const e=!Ji();this.__focusRestorationController.restoreFocus({preventScroll:e})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const e=pn();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let t=e;const i=e.ownerDocument;for(;t&&t!==i&&t!==this;)t=t.parentNode||t.host;return t===this}};/**
3417
3417
  * @license
3418
3418
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3419
3419
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3420
- */const Yh=()=>Array.from(document.body.children).filter(r=>r instanceof HTMLElement&&r._hasOverlayStackMixin&&!r.hasAttribute("closing")).sort((r,e)=>r.__zIndex-e.__zIndex||0),bn=()=>Yh().filter(r=>r.$.overlay),j_=r=>r===bn().pop(),Xh=r=>class extends r{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return j_(this)}bringToFront(){let e="";const t=Yh().filter(i=>i!==this).pop();t&&(e=t.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),bn().forEach(e=>{e!==this&&(e.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const e=bn();let t;for(;(t=e.pop())&&!(t!==this&&(t.$.overlay.style.removeProperty("pointer-events"),!t.modeless)););}};/**
3420
+ */const Xh=()=>Array.from(document.body.children).filter(r=>r instanceof HTMLElement&&r._hasOverlayStackMixin&&!r.hasAttribute("closing")).sort((r,e)=>r.__zIndex-e.__zIndex||0),bn=()=>Xh().filter(r=>r.$.overlay),U_=r=>r===bn().pop(),Kh=r=>class extends r{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return U_(this)}bringToFront(){let e="";const t=Xh().filter(i=>i!==this).pop();t&&(e=t.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),bn().forEach(e=>{e!==this&&(e.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const e=bn();let t;for(;(t=e.pop())&&!(t!==this&&(t.$.overlay.style.removeProperty("pointer-events"),!t.modeless)););}};/**
3421
3421
  * @license
3422
3422
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3423
3423
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3424
- */const Jr=r=>class extends W_(Xh(r)){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),ts&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&this.$.overlay.focus()})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(e){const t=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),t.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,t=window.innerWidth>e,i=document.documentElement.clientHeight;t&&i>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${i-e}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(e,t,i,o){const n=this._oldOwner!==t||this._oldModel!==i;this._oldModel=i,this._oldOwner=t;const s=this._oldRenderer!==e,a=this._oldRenderer!==void 0;this._oldRenderer=e;const l=this._oldOpened!==o;this._oldOpened=o,s&&a&&(this.innerHTML="",delete this._$litPart$),o&&e&&(s||l||n)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,t){e?(this._saveFocus(),this._animatedOpening(),es(this,()=>{this._trapFocus();const i=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(i)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):t&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const e=getComputedStyle(this),t=e.getPropertyValue("animation-name");return e.getPropertyValue("display")!=="none"&&t&&t!=="none"}_enqueueAnimation(e,t){const i=`__${e}Handler`,o=n=>{n&&n.target!==this||(t(),this.removeEventListener("animationend",o),delete this[i])};this[i]=o,this.addEventListener("animationend",o)}_flushAnimation(e){const t=`__${e}Handler`;typeof this[t]=="function"&&this[t]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(e))return;const t=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const t=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}}};/**
3424
+ */const Jr=r=>class extends j_(Kh(r)){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),ts&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&this.$.overlay.focus()})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(e){const t=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),t.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,t=window.innerWidth>e,i=document.documentElement.clientHeight;t&&i>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${i-e}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(e,t,i,o){const n=this._oldOwner!==t||this._oldModel!==i;this._oldModel=i,this._oldOwner=t;const s=this._oldRenderer!==e,a=this._oldRenderer!==void 0;this._oldRenderer=e;const l=this._oldOpened!==o;this._oldOpened=o,s&&a&&(this.innerHTML="",delete this._$litPart$),o&&e&&(s||l||n)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,t){e?(this._saveFocus(),this._animatedOpening(),es(this,()=>{this._trapFocus();const i=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(i)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):t&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const e=getComputedStyle(this),t=e.getPropertyValue("animation-name");return e.getPropertyValue("display")!=="none"&&t&&t!=="none"}_enqueueAnimation(e,t){const i=`__${e}Handler`,o=n=>{n&&n.target!==this||(t(),this.removeEventListener("animationend",o),delete this[i])};this[i]=o,this.addEventListener("animationend",o)}_flushAnimation(e){const t=`__${e}Handler`;typeof this[t]=="function"&&this[t]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(e))return;const t=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const t=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}}};/**
3425
3425
  * @license
3426
3426
  * Copyright (c) 2024 Vaadin Ltd.
3427
3427
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3428
- */function U_(r,e){let t=null;const i=document.documentElement;function o(){t&&t.disconnect(),t=null}function n(s=!1,a=1){o();const{left:l,top:h,width:d,height:c}=r.getBoundingClientRect();if(s||e(),!d||!c)return;const u=Math.floor(h),m=Math.floor(i.clientWidth-(l+d)),g=Math.floor(i.clientHeight-(h+c)),_=Math.floor(l),y={rootMargin:`${-u}px ${-m}px ${-g}px ${-_}px`,threshold:Math.max(0,Math.min(1,a))||1};let D=!0;function A(M){let R=M[0].intersectionRatio;if(R!==a){if(!D)return n();R===0&&(R=1e-7),n(!1,R)}D=!1}t=new IntersectionObserver(A,y),t.observe(r)}return n(!0),o}/**
3428
+ */function G_(r,e){let t=null;const i=document.documentElement;function o(){t&&t.disconnect(),t=null}function n(s=!1,a=1){o();const{left:l,top:h,width:d,height:c}=r.getBoundingClientRect();if(s||e(),!d||!c)return;const u=Math.floor(h),m=Math.floor(i.clientWidth-(l+d)),g=Math.floor(i.clientHeight-(h+c)),_=Math.floor(l),y={rootMargin:`${-u}px ${-m}px ${-g}px ${-_}px`,threshold:Math.max(0,Math.min(1,a))||1};let D=!0;function A(M){let R=M[0].intersectionRatio;if(R!==a){if(!D)return n();R===0&&(R=1e-7),n(!1,R)}D=!1}t=new IntersectionObserver(A,y),t.observe(r)}return n(!0),o}/**
3429
3429
  * @license
3430
3430
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3431
3431
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3432
- */const Do={start:"top",end:"bottom"},Oo={start:"left",end:"right"},Aa=new ResizeObserver(r=>{setTimeout(()=>{r.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),rs=r=>class extends r{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=$f(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=U_(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(e,t){if(this.__removeUpdatePositionEventListeners(),t&&(t.__overlay=null,Aa.unobserve(t),e&&(this.__addUpdatePositionEventListeners(),t.__overlay=this,Aa.observe(t))),e){const i=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(o=>{this.__margins[o]=parseInt(i[o],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){e.target instanceof Node&&this.contains(e.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const e=this.positionTarget.getBoundingClientRect();if(e.width===0&&e.height===0&&this.opened){this.opened=!1;return}const t=this.__shouldAlignStartVertically(e);this.style.justifyContent=t?"flex-start":"flex-end";const i=this.__isRTL,o=this.__shouldAlignStartHorizontally(e,i),n=!i&&o||i&&!o;this.style.alignItems=n?"flex-start":"flex-end";const s=this.getBoundingClientRect(),a=this.__calculatePositionInOneDimension(e,s,this.noVerticalOverlap,Do,this,t),l=this.__calculatePositionInOneDimension(e,s,this.noHorizontalOverlap,Oo,this,o);Object.assign(this.style,a,l),this.toggleAttribute("bottom-aligned",!t),this.toggleAttribute("top-aligned",t),this.toggleAttribute("end-aligned",!n),this.toggleAttribute("start-aligned",n)}__shouldAlignStartHorizontally(e,t){const i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const o=Math.min(window.innerWidth,document.documentElement.clientWidth),n=!t&&this.horizontalAlign==="start"||t&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,i,o,this.__margins,n,this.noHorizontalOverlap,Oo)}__shouldAlignStartVertically(e){const t=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const i=Math.min(window.innerHeight,document.documentElement.clientHeight),o=this.verticalAlign==="top";return this.__shouldAlignStart(e,t,i,this.__margins,o,this.noVerticalOverlap,Do)}__shouldAlignStart(e,t,i,o,n,s,a){const l=i-e[s?a.end:a.start]-o[a.end],h=e[s?a.start:a.end]-o[a.start],d=n?l:h,c=d>(n?h:l)||d>t;return n===c}__adjustBottomProperty(e,t,i){let o;if(e===t.end){if(t.end===Do.end){const n=Math.min(window.innerHeight,document.documentElement.clientHeight);if(i>n&&this.__oldViewportHeight){const s=this.__oldViewportHeight-n;o=i-s}this.__oldViewportHeight=n}if(t.end===Oo.end){const n=Math.min(window.innerWidth,document.documentElement.clientWidth);if(i>n&&this.__oldViewportWidth){const s=this.__oldViewportWidth-n;o=i-s}this.__oldViewportWidth=n}}return o}__calculatePositionInOneDimension(e,t,i,o,n,s){const a=s?o.start:o.end,l=s?o.end:o.start,h=parseFloat(n.style[a]||getComputedStyle(n)[a]),d=this.__adjustBottomProperty(a,o,h),c=t[s?o.start:o.end]-e[i===s?o.end:o.start],u=d?`${d}px`:`${h+c*(s?-1:1)}px`;return{[a]:u,[l]:""}}};/**
3432
+ */const Do={start:"top",end:"bottom"},Oo={start:"left",end:"right"},Pa=new ResizeObserver(r=>{setTimeout(()=>{r.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),rs=r=>class extends r{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=Vf(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=G_(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(e,t){if(this.__removeUpdatePositionEventListeners(),t&&(t.__overlay=null,Pa.unobserve(t),e&&(this.__addUpdatePositionEventListeners(),t.__overlay=this,Pa.observe(t))),e){const i=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(o=>{this.__margins[o]=parseInt(i[o],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){e.target instanceof Node&&this.contains(e.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const e=this.positionTarget.getBoundingClientRect();if(e.width===0&&e.height===0&&this.opened){this.opened=!1;return}const t=this.__shouldAlignStartVertically(e);this.style.justifyContent=t?"flex-start":"flex-end";const i=this.__isRTL,o=this.__shouldAlignStartHorizontally(e,i),n=!i&&o||i&&!o;this.style.alignItems=n?"flex-start":"flex-end";const s=this.getBoundingClientRect(),a=this.__calculatePositionInOneDimension(e,s,this.noVerticalOverlap,Do,this,t),l=this.__calculatePositionInOneDimension(e,s,this.noHorizontalOverlap,Oo,this,o);Object.assign(this.style,a,l),this.toggleAttribute("bottom-aligned",!t),this.toggleAttribute("top-aligned",t),this.toggleAttribute("end-aligned",!n),this.toggleAttribute("start-aligned",n)}__shouldAlignStartHorizontally(e,t){const i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const o=Math.min(window.innerWidth,document.documentElement.clientWidth),n=!t&&this.horizontalAlign==="start"||t&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,i,o,this.__margins,n,this.noHorizontalOverlap,Oo)}__shouldAlignStartVertically(e){const t=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const i=Math.min(window.innerHeight,document.documentElement.clientHeight),o=this.verticalAlign==="top";return this.__shouldAlignStart(e,t,i,this.__margins,o,this.noVerticalOverlap,Do)}__shouldAlignStart(e,t,i,o,n,s,a){const l=i-e[s?a.end:a.start]-o[a.end],h=e[s?a.start:a.end]-o[a.start],d=n?l:h,c=d>(n?h:l)||d>t;return n===c}__adjustBottomProperty(e,t,i){let o;if(e===t.end){if(t.end===Do.end){const n=Math.min(window.innerHeight,document.documentElement.clientHeight);if(i>n&&this.__oldViewportHeight){const s=this.__oldViewportHeight-n;o=i-s}this.__oldViewportHeight=n}if(t.end===Oo.end){const n=Math.min(window.innerWidth,document.documentElement.clientWidth);if(i>n&&this.__oldViewportWidth){const s=this.__oldViewportWidth-n;o=i-s}this.__oldViewportWidth=n}}return o}__calculatePositionInOneDimension(e,t,i,o,n,s){const a=s?o.start:o.end,l=s?o.end:o.start,h=parseFloat(n.style[a]||getComputedStyle(n)[a]),d=this.__adjustBottomProperty(a,o,h),c=t[s?o.start:o.end]-e[i===s?o.end:o.start],u=d?`${d}px`:`${h+c*(s?-1:1)}px`;return{[a]:u,[l]:""}}};/**
3433
3433
  * @license
3434
3434
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
3435
3435
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3436
- */const G_=r=>class extends rs(Jr(r)){_shouldCloseOnOutsideClick(e){return!e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!Un(e.composedPath()[0])&&e.preventDefault()}};/**
3436
+ */const q_=r=>class extends rs(Jr(r)){_shouldCloseOnOutsideClick(e){return!e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!Un(e.composedPath()[0])&&e.preventDefault()}};/**
3437
3437
  * @license
3438
3438
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3439
3439
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3440
- */const q_=k`
3440
+ */const Y_=k`
3441
3441
  [part='overlay'] {
3442
3442
  display: flex;
3443
3443
  flex: auto;
@@ -3456,18 +3456,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3456
3456
  * @license
3457
3457
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3458
3458
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3459
- */L("vaadin-date-picker-overlay",[Zr,q_],{moduleId:"vaadin-date-picker-overlay-styles"});class Y_ extends G_($e(le(Z))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return K`
3459
+ */L("vaadin-date-picker-overlay",[Zr,Y_],{moduleId:"vaadin-date-picker-overlay-styles"});class X_ extends q_($e(le(Z))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return K`
3460
3460
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
3461
3461
  <div part="overlay" id="overlay">
3462
3462
  <div part="content" id="content">
3463
3463
  <slot></slot>
3464
3464
  </div>
3465
3465
  </div>
3466
- `}}G(Y_);/**
3466
+ `}}G(X_);/**
3467
3467
  * @license
3468
3468
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3469
3469
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3470
- */const Kh=k`
3470
+ */const Zh=k`
3471
3471
  :host {
3472
3472
  display: inline-block;
3473
3473
  position: relative;
@@ -3527,7 +3527,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3527
3527
  outline-color: GrayText;
3528
3528
  }
3529
3529
  }
3530
- `,X_=r=>r`
3530
+ `,K_=r=>r`
3531
3531
  <div class="vaadin-button-container">
3532
3532
  <span part="prefix" aria-hidden="true">
3533
3533
  <slot name="prefix"></slot>
@@ -3544,15 +3544,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3544
3544
  * @license
3545
3545
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3546
3546
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3547
- */const is=r=>class extends Wn(Hh(Ht(r))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(e){super._onKeyDown(e),!(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)&&this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click())}};/**
3547
+ */const is=r=>class extends Wn(Rh(Ht(r))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(e){super._onKeyDown(e),!(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)&&this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click())}};/**
3548
3548
  * @license
3549
3549
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3550
3550
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3551
- */L("vaadin-button",Kh,{moduleId:"vaadin-button-styles"});class K_ extends is(Ve(le(et(Z)))){static get is(){return"vaadin-button"}static get template(){return X_(K)}ready(){super.ready(),this._tooltipController=new ht(this),this.addController(this._tooltipController)}}G(K_);/**
3551
+ */L("vaadin-button",Zh,{moduleId:"vaadin-button-styles"});class Z_ extends is(Ve(le(et(Z)))){static get is(){return"vaadin-button"}static get template(){return K_(K)}ready(){super.ready(),this._tooltipController=new ht(this),this.addController(this._tooltipController)}}G(Z_);/**
3552
3552
  * @license
3553
3553
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3554
3554
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3555
- */function Z_(r){let e=r.getDay();e===0&&(e=7);const t=4-e,i=new Date(r.getTime()+t*24*3600*1e3),o=new Date(0,0);o.setFullYear(i.getFullYear());const n=i.getTime()-o.getTime(),s=Math.round(n/(24*3600*1e3));return Math.floor(s/7+1)}function yn(r){const e=new Date(r);return e.setHours(0,0,0,0),e}function lt(r,e,t=yn){return r instanceof Date&&e instanceof Date&&t(r).getTime()===t(e).getTime()}function os(r){return{day:r.getDate(),month:r.getMonth(),year:r.getFullYear()}}function nr(r,e,t,i){let o=!1;if(typeof i=="function"&&r){const n=os(r);o=i(n)}return(!e||r>=e)&&(!t||r<=t)&&!o}function Zh(r,e){return e.filter(t=>t!==void 0).reduce((t,i)=>{if(!i)return t;if(!t)return i;const o=Math.abs(r.getTime()-i.getTime()),n=Math.abs(t.getTime()-r.getTime());return o<n?i:t})}function Jh(r){const e=new Date,t=new Date(e);return t.setDate(1),t.setMonth(parseInt(r)+e.getMonth()),t}function J_(r,e,t=0,i=1){if(e>99)throw new Error("The provided year cannot have more than 2 digits.");if(e<0)throw new Error("The provided year cannot be negative.");let o=e+Math.floor(r.getFullYear()/100)*100;return r<new Date(o-50,t,i)?o-=100:r>new Date(o+50,t,i)&&(o+=100),o}function wr(r){const e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(r);if(!e)return;const t=new Date(0,0);return t.setFullYear(parseInt(e[1],10)),t.setMonth(parseInt(e[2],10)-1),t.setDate(parseInt(e[3],10)),t}function Q_(r){const e=(l,h="00")=>(h+l).substr((h+l).length-h.length);let t="",i="0000",o=r.year;o<0?(o=-o,t="-",i="000000"):r.year>=1e4&&(t="+",i="000000");const n=t+e(o,i),s=e(r.month+1),a=e(r.day);return[n,s,a].join("-")}function ev(r){return r instanceof Date?Q_({year:r.getFullYear(),month:r.getMonth(),day:r.getDate()}):""}/**
3555
+ */function J_(r){let e=r.getDay();e===0&&(e=7);const t=4-e,i=new Date(r.getTime()+t*24*3600*1e3),o=new Date(0,0);o.setFullYear(i.getFullYear());const n=i.getTime()-o.getTime(),s=Math.round(n/(24*3600*1e3));return Math.floor(s/7+1)}function yn(r){const e=new Date(r);return e.setHours(0,0,0,0),e}function lt(r,e,t=yn){return r instanceof Date&&e instanceof Date&&t(r).getTime()===t(e).getTime()}function os(r){return{day:r.getDate(),month:r.getMonth(),year:r.getFullYear()}}function nr(r,e,t,i){let o=!1;if(typeof i=="function"&&r){const n=os(r);o=i(n)}return(!e||r>=e)&&(!t||r<=t)&&!o}function Jh(r,e){return e.filter(t=>t!==void 0).reduce((t,i)=>{if(!i)return t;if(!t)return i;const o=Math.abs(r.getTime()-i.getTime()),n=Math.abs(t.getTime()-r.getTime());return o<n?i:t})}function Qh(r){const e=new Date,t=new Date(e);return t.setDate(1),t.setMonth(parseInt(r)+e.getMonth()),t}function Q_(r,e,t=0,i=1){if(e>99)throw new Error("The provided year cannot have more than 2 digits.");if(e<0)throw new Error("The provided year cannot be negative.");let o=e+Math.floor(r.getFullYear()/100)*100;return r<new Date(o-50,t,i)?o-=100:r>new Date(o+50,t,i)&&(o+=100),o}function wr(r){const e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(r);if(!e)return;const t=new Date(0,0);return t.setFullYear(parseInt(e[1],10)),t.setMonth(parseInt(e[2],10)-1),t.setDate(parseInt(e[3],10)),t}function ev(r){const e=(l,h="00")=>(h+l).substr((h+l).length-h.length);let t="",i="0000",o=r.year;o<0?(o=-o,t="-",i="000000"):r.year>=1e4&&(t="+",i="000000");const n=t+e(o,i),s=e(r.month+1),a=e(r.day);return[n,s,a].join("-")}function tv(r){return r instanceof Date?ev({year:r.getFullYear(),month:r.getMonth(),day:r.getDate()}):""}/**
3556
3556
  @license
3557
3557
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3558
3558
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3560,7 +3560,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3560
3560
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3561
3561
  Code distributed by Google as part of the polymer project is also
3562
3562
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3563
- */class Hi{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,Wr.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Wr.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}static debounce(e,t,i){return e instanceof Hi?e._cancelAsync():e=new Hi,e.setConfig(t,i),e}}let Wr=new Set;const tv=function(r){Wr.add(r)},rv=function(){const r=!!Wr.size;return Wr.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),r};/**
3563
+ */class Hi{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,Wr.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Wr.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}static debounce(e,t,i){return e instanceof Hi?e._cancelAsync():e=new Hi,e.setConfig(t,i),e}}let Wr=new Set;const rv=function(r){Wr.add(r)},iv=function(){const r=!!Wr.size;return Wr.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),r};/**
3564
3564
  @license
3565
3565
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3566
3566
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3568,11 +3568,11 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3568
3568
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3569
3569
  Code distributed by Google as part of the polymer project is also
3570
3570
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3571
- */const ns=function(){let r,e;do r=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),e=rv();while(r||e)};/**
3571
+ */const ns=function(){let r,e;do r=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),e=iv();while(r||e)};/**
3572
3572
  * @license
3573
3573
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3574
3574
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3575
- */const Qh=document.createElement("template");Qh.innerHTML=`
3575
+ */const ed=document.createElement("template");ed.innerHTML=`
3576
3576
  <style>
3577
3577
  :host {
3578
3578
  display: block;
@@ -3622,11 +3622,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3622
3622
  <div class="buffer"></div>
3623
3623
  <div id="fullHeight"></div>
3624
3624
  </div>
3625
- `;class ed extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Qh.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(e){e&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const e=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),t="background-position";this.$.fullHeight.style.setProperty(t,e);const i=getComputedStyle(this.$.fullHeight).getPropertyValue(t);this.$.fullHeight.style.removeProperty(t),this._itemHeightVal=parseFloat(i)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(e){this._preventScrollEvent=!0,e>this._firstIndex&&e<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(e-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~e,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=e%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout(()=>{this.$.scroller.classList.remove("notouchscroll")},10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach(e=>{this.$[e.id]=e}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`)}forceUpdate(){this._debouncerScrollFinish&&this._debouncerScrollFinish.flush(),this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel()),ns()}_createElement(){}_updateElement(e,t){}_finishInit(){this._initDone||(this._buffers.forEach(e=>{[...e.children].forEach(t=>{this._ensureStampedInstance(t._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(e){const t=e?1:0;this._buffers[t].translateY=this._buffers[t?0:1].translateY+this._bufferHeight*(t?-1:1),this._buffers[t].style.transform=`translate3d(0, ${this._buffers[t].translateY}px, 0)`,this._buffers[t].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const e=this.$.scroller.scrollTop;(e<this._bufferHeight||e>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const t=this.itemHeight+this.bufferOffset,i=e>this._buffers[1].translateY+t,o=e<this._buffers[0].translateY+t;(i||o)&&(this._translateBuffer(o),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=Fe.debounce(this._debouncerScrollFinish,yt.after(200),()=>{const n=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],n)&&!this._isVisible(this._buffers[1],n)&&(this.position=this.position)})}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach(e=>{e.style.transform=`translate3d(0, ${e.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=Fe.debounce(this._debouncerUpdateClones,yt.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const e=this.getBoundingClientRect();this._buffers.forEach(t=>{for(let i=0;i<this.bufferSize;i++){const o=document.createElement("div");o.style.height=`${this.itemHeight}px`,o.instance={};const n=`vaadin-infinite-scroller-item-content-${qr()}`,s=document.createElement("slot");s.setAttribute("name",n),s._itemWrapper=o,t.appendChild(s),o.setAttribute("slot",n),this.appendChild(o),this._isVisible(o,e)&&this._ensureStampedInstance(o)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(e){if(e.firstElementChild)return;const t=e.instance;e.instance=this._createElement(),e.appendChild(e.instance),Object.keys(t).forEach(i=>{e.instance[i]=t[i]})}_updateClones(e){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const t=e?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((i,o)=>{if(!i.updated){const n=this._firstIndex+this.bufferSize*o;[...i.children].forEach((s,a)=>{const l=s._itemWrapper;(!e||this._isVisible(l,t))&&this._updateElement(l.instance,n+a)}),i.updated=!0}})}_isVisible(e,t){const i=e.getBoundingClientRect();return i.bottom>t.top&&i.top<t.bottom}}/**
3625
+ `;class td extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(ed.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(e){e&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const e=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),t="background-position";this.$.fullHeight.style.setProperty(t,e);const i=getComputedStyle(this.$.fullHeight).getPropertyValue(t);this.$.fullHeight.style.removeProperty(t),this._itemHeightVal=parseFloat(i)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(e){this._preventScrollEvent=!0,e>this._firstIndex&&e<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(e-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~e,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=e%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout(()=>{this.$.scroller.classList.remove("notouchscroll")},10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach(e=>{this.$[e.id]=e}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`)}forceUpdate(){this._debouncerScrollFinish&&this._debouncerScrollFinish.flush(),this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel()),ns()}_createElement(){}_updateElement(e,t){}_finishInit(){this._initDone||(this._buffers.forEach(e=>{[...e.children].forEach(t=>{this._ensureStampedInstance(t._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(e){const t=e?1:0;this._buffers[t].translateY=this._buffers[t?0:1].translateY+this._bufferHeight*(t?-1:1),this._buffers[t].style.transform=`translate3d(0, ${this._buffers[t].translateY}px, 0)`,this._buffers[t].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const e=this.$.scroller.scrollTop;(e<this._bufferHeight||e>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const t=this.itemHeight+this.bufferOffset,i=e>this._buffers[1].translateY+t,o=e<this._buffers[0].translateY+t;(i||o)&&(this._translateBuffer(o),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=Fe.debounce(this._debouncerScrollFinish,yt.after(200),()=>{const n=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],n)&&!this._isVisible(this._buffers[1],n)&&(this.position=this.position)})}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach(e=>{e.style.transform=`translate3d(0, ${e.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=Fe.debounce(this._debouncerUpdateClones,yt.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const e=this.getBoundingClientRect();this._buffers.forEach(t=>{for(let i=0;i<this.bufferSize;i++){const o=document.createElement("div");o.style.height=`${this.itemHeight}px`,o.instance={};const n=`vaadin-infinite-scroller-item-content-${qr()}`,s=document.createElement("slot");s.setAttribute("name",n),s._itemWrapper=o,t.appendChild(s),o.setAttribute("slot",n),this.appendChild(o),this._isVisible(o,e)&&this._ensureStampedInstance(o)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(e){if(e.firstElementChild)return;const t=e.instance;e.instance=this._createElement(),e.appendChild(e.instance),Object.keys(t).forEach(i=>{e.instance[i]=t[i]})}_updateClones(e){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const t=e?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((i,o)=>{if(!i.updated){const n=this._firstIndex+this.bufferSize*o;[...i.children].forEach((s,a)=>{const l=s._itemWrapper;(!e||this._isVisible(l,t))&&this._updateElement(l.instance,n+a)}),i.updated=!0}})}_isVisible(e,t){const i=e.getBoundingClientRect();return i.bottom>t.top&&i.top<t.bottom}}/**
3626
3626
  * @license
3627
3627
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3628
3628
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3629
- */const td=document.createElement("template");td.innerHTML=`
3629
+ */const rd=document.createElement("template");rd.innerHTML=`
3630
3630
  <style>
3631
3631
  :host {
3632
3632
  --vaadin-infinite-scroller-item-height: 270px;
@@ -3638,11 +3638,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3638
3638
  height: 100%;
3639
3639
  }
3640
3640
  </style>
3641
- `;class iv extends ed{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(td.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(e,t){e.month=Jh(t)}}G(iv);/**
3641
+ `;class ov extends td{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(rd.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(e,t){e.month=Qh(t)}}G(ov);/**
3642
3642
  * @license
3643
3643
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3644
3644
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3645
- */const rd=document.createElement("template");rd.innerHTML=`
3645
+ */const id=document.createElement("template");id.innerHTML=`
3646
3646
  <style>
3647
3647
  :host {
3648
3648
  --vaadin-infinite-scroller-item-height: 80px;
@@ -3676,15 +3676,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3676
3676
  border-left-color: #000;
3677
3677
  }
3678
3678
  </style>
3679
- `;class ov extends ed{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(rd.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(e,t){e.year=this._yearAfterXYears(t)}_yearAfterXYears(e){const t=new Date,i=new Date(t);return i.setFullYear(parseInt(e)+t.getFullYear()),i.getFullYear()}}G(ov);/**
3679
+ `;class nv extends td{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(id.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(e,t){e.year=this._yearAfterXYears(t)}_yearAfterXYears(e){const t=new Date,i=new Date(t);return i.setFullYear(parseInt(e)+t.getFullYear()),i.getFullYear()}}G(nv);/**
3680
3680
  * @license
3681
3681
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3682
3682
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3683
- */const nv=r=>class extends r{static get properties(){return{year:{type:String,sync:!0},selectedDate:{type:Object,sync:!0}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(e,t){this.toggleAttribute("selected",t&&t.getFullYear()===e),this.toggleAttribute("current",e===new Date().getFullYear())}};/**
3683
+ */const sv=r=>class extends r{static get properties(){return{year:{type:String,sync:!0},selectedDate:{type:Object,sync:!0}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(e,t){this.toggleAttribute("selected",t&&t.getFullYear()===e),this.toggleAttribute("current",e===new Date().getFullYear())}};/**
3684
3684
  * @license
3685
3685
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3686
3686
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3687
- */class sv extends le(nv(Z)){static get is(){return"vaadin-date-picker-year"}static get template(){return K`
3687
+ */class av extends le(sv(Z)){static get is(){return"vaadin-date-picker-year"}static get template(){return K`
3688
3688
  <style>
3689
3689
  :host {
3690
3690
  display: block;
@@ -3693,7 +3693,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3693
3693
  </style>
3694
3694
  <div part="year-number">[[year]]</div>
3695
3695
  <div part="year-separator" aria-hidden="true"></div>
3696
- `}}G(sv);/**
3696
+ `}}G(av);/**
3697
3697
  @license
3698
3698
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3699
3699
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3701,7 +3701,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3701
3701
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3702
3702
  Code distributed by Google as part of the polymer project is also
3703
3703
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3704
- */function ss(r,e,t,i,o){let n;o&&(n=typeof t=="object"&&t!==null,n&&(i=r.__dataTemp[e]));let s=i!==t&&(i===i||t===t);return n&&s&&(r.__dataTemp[e]=t),s}const as=ve(r=>{class e extends r{_shouldPropertyChange(i,o,n){return ss(this,i,o,n,!0)}}return e}),av=ve(r=>{class e extends r{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(i,o,n){return ss(this,i,o,n,this.mutableData)}}return e});as._mutablePropertyChange=ss;/**
3704
+ */function ss(r,e,t,i,o){let n;o&&(n=typeof t=="object"&&t!==null,n&&(i=r.__dataTemp[e]));let s=i!==t&&(i===i||t===t);return n&&s&&(r.__dataTemp[e]=t),s}const as=ve(r=>{class e extends r{_shouldPropertyChange(i,o,n){return ss(this,i,o,n,!0)}}return e}),lv=ve(r=>{class e extends r{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(i,o,n){return ss(this,i,o,n,this.mutableData)}}return e});as._mutablePropertyChange=ss;/**
3705
3705
  @license
3706
3706
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3707
3707
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3709,7 +3709,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3709
3709
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3710
3710
  Code distributed by Google as part of the polymer project is also
3711
3711
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3712
- */let xn=null;function wn(){return xn}wn.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:wn,writable:!0}});const id=Ln(wn),lv=as(id);function hv(r,e){xn=r,Object.setPrototypeOf(r,e.prototype),new e,xn=null}const dv=Ln(class{});function cv(r,e){for(let t=0;t<e.length;t++){let i=e[t];if(!!r!=!!i.__hideTemplateChildren__)if(i.nodeType===Node.TEXT_NODE)r?(i.__polymerTextContent__=i.textContent,i.textContent=""):i.textContent=i.__polymerTextContent__;else if(i.localName==="slot")if(r)i.__polymerReplaced__=document.createComment("hidden-slot"),Pe(Pe(i).parentNode).replaceChild(i.__polymerReplaced__,i);else{const o=i.__polymerReplaced__;o&&Pe(Pe(o).parentNode).replaceChild(i,o)}else i.style&&(r?(i.__polymerDisplay__=i.style.display,i.style.display="none"):i.style.display=i.__polymerDisplay__);i.__hideTemplateChildren__=r,i._showHideChildren&&i._showHideChildren(r)}}class Ct extends dv{constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);let t=[];this.children=t;for(let o=this.root.firstChild;o;o=o.nextSibling)t.push(o),o.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let i=this.__templatizeOptions;(e&&i.instanceProps||!i.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(let t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(let t in e)this._setPendingProperty(t,e[t])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,i){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,t,o=>{o.model=this,i(o)});else{let o=this.__dataHost.__dataHost;o&&o._addEventListenerToNode(e,t,i)}}_showHideChildren(e){cv(e,this.children)}_setUnmanagedPropertyToNode(e,t,i){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&t=="textContent"?e.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(e,t,i)}get parentModel(){let e=this.__parentModel;if(!e){let t;e=this;do e=e.__dataHost.__dataHost;while((t=e.__templatizeOptions)&&!t.parentModel);this.__parentModel=e}return e}dispatchEvent(e){return!0}}Ct.prototype.__dataHost;Ct.prototype.__templatizeOptions;Ct.prototype._methodHost;Ct.prototype.__templatizeOwner;Ct.prototype.__hostProps;const uv=as(Ct);function Pa(r){let e=r.__dataHost;return e&&e._methodHost||e}function pv(r,e,t){let i=t.mutableData?uv:Ct;Cn.mixin&&(i=Cn.mixin(i));let o=class extends i{};return o.prototype.__templatizeOptions=t,o.prototype._bindTemplate(r),_v(o,r,e,t),o}function mv(r,e,t,i){let o=t.forwardHostProp;if(o&&e.hasHostProps){const n=r.localName=="template";let s=e.templatizeTemplateClass;if(!s){if(n){let l=t.mutableData?lv:id;class h extends l{}s=e.templatizeTemplateClass=h}else{const l=r.constructor;class h extends l{}s=e.templatizeTemplateClass=h}let a=e.hostProps;for(let l in a)s.prototype._addPropertyEffect("_host_"+l,s.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:fv(l,o)}),s.prototype._createNotifyingProperty("_host_"+l);rh&&i&&bv(e,t,i)}if(r.__dataProto&&Object.assign(r.__data,r.__dataProto),n)hv(r,s),r.__dataTemp={},r.__dataPending=null,r.__dataOld=null,r._enableProperties();else{Object.setPrototypeOf(r,s.prototype);const a=e.hostProps;for(let l in a)if(l="_host_"+l,l in r){const h=r[l];delete r[l],r.__data[l]=h}}}}function fv(r,e){return function(t,i,o){e.call(t.__templatizeOwner,i.substring(6),o[i])}}function _v(r,e,t,i){let o=t.hostProps||{};for(let n in i.instanceProps){delete o[n];let s=i.notifyInstanceProp;s&&r.prototype._addPropertyEffect(n,r.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:vv(n,s)})}if(i.forwardHostProp&&e.__dataHost)for(let n in o)t.hasHostProps||(t.hasHostProps=!0),r.prototype._addPropertyEffect(n,r.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:gv()})}function vv(r,e){return function(t,i,o){e.call(t.__templatizeOwner,t,i,o[i])}}function gv(){return function(r,e,t){r.__dataHost._setPendingPropertyOrPath("_host_"+e,t[e],!0,!0)}}function Cn(r,e,t){if(Ni&&!Pa(r))throw new Error("strictTemplatePolicy: template owner not trusted");if(t=t||{},r.__templatizeOwner)throw new Error("A <template> can only be templatized once");r.__templatizeOwner=e;let i=(e?e.constructor:Ct)._parseTemplate(r),o=i.templatizeInstanceClass;o||(o=pv(r,i,t),i.templatizeInstanceClass=o);const n=Pa(r);mv(r,i,t,n);let s=class extends o{};return s.prototype._methodHost=n,s.prototype.__dataHost=r,s.prototype.__templatizeOwner=e,s.prototype.__hostProps=i.hostProps,s=s,s}function bv(r,e,t){const i=t.constructor._properties,{propertyEffects:o}=r,{instanceProps:n}=e;for(let s in o)if(!i[s]&&!(n&&n[s])){const a=o[s];for(let l=0;l<a.length;l++){const{part:h}=a[l].info;if(!(h.signature&&h.signature.static)){console.warn(`Property '${s}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function yv(r,e){let t;for(;e;)if(t=e.__dataHost?e:e.__templatizeInstance)if(t.__dataHost!=r)e=t.__dataHost;else return t;else e=Pe(e).parentNode;return null}/**
3712
+ */let xn=null;function wn(){return xn}wn.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:wn,writable:!0}});const od=Ln(wn),hv=as(od);function dv(r,e){xn=r,Object.setPrototypeOf(r,e.prototype),new e,xn=null}const cv=Ln(class{});function uv(r,e){for(let t=0;t<e.length;t++){let i=e[t];if(!!r!=!!i.__hideTemplateChildren__)if(i.nodeType===Node.TEXT_NODE)r?(i.__polymerTextContent__=i.textContent,i.textContent=""):i.textContent=i.__polymerTextContent__;else if(i.localName==="slot")if(r)i.__polymerReplaced__=document.createComment("hidden-slot"),Pe(Pe(i).parentNode).replaceChild(i.__polymerReplaced__,i);else{const o=i.__polymerReplaced__;o&&Pe(Pe(o).parentNode).replaceChild(i,o)}else i.style&&(r?(i.__polymerDisplay__=i.style.display,i.style.display="none"):i.style.display=i.__polymerDisplay__);i.__hideTemplateChildren__=r,i._showHideChildren&&i._showHideChildren(r)}}class Ct extends cv{constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);let t=[];this.children=t;for(let o=this.root.firstChild;o;o=o.nextSibling)t.push(o),o.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let i=this.__templatizeOptions;(e&&i.instanceProps||!i.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(let t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(let t in e)this._setPendingProperty(t,e[t])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,i){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,t,o=>{o.model=this,i(o)});else{let o=this.__dataHost.__dataHost;o&&o._addEventListenerToNode(e,t,i)}}_showHideChildren(e){uv(e,this.children)}_setUnmanagedPropertyToNode(e,t,i){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&t=="textContent"?e.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(e,t,i)}get parentModel(){let e=this.__parentModel;if(!e){let t;e=this;do e=e.__dataHost.__dataHost;while((t=e.__templatizeOptions)&&!t.parentModel);this.__parentModel=e}return e}dispatchEvent(e){return!0}}Ct.prototype.__dataHost;Ct.prototype.__templatizeOptions;Ct.prototype._methodHost;Ct.prototype.__templatizeOwner;Ct.prototype.__hostProps;const pv=as(Ct);function ka(r){let e=r.__dataHost;return e&&e._methodHost||e}function mv(r,e,t){let i=t.mutableData?pv:Ct;Cn.mixin&&(i=Cn.mixin(i));let o=class extends i{};return o.prototype.__templatizeOptions=t,o.prototype._bindTemplate(r),vv(o,r,e,t),o}function fv(r,e,t,i){let o=t.forwardHostProp;if(o&&e.hasHostProps){const n=r.localName=="template";let s=e.templatizeTemplateClass;if(!s){if(n){let l=t.mutableData?hv:od;class h extends l{}s=e.templatizeTemplateClass=h}else{const l=r.constructor;class h extends l{}s=e.templatizeTemplateClass=h}let a=e.hostProps;for(let l in a)s.prototype._addPropertyEffect("_host_"+l,s.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:_v(l,o)}),s.prototype._createNotifyingProperty("_host_"+l);ih&&i&&yv(e,t,i)}if(r.__dataProto&&Object.assign(r.__data,r.__dataProto),n)dv(r,s),r.__dataTemp={},r.__dataPending=null,r.__dataOld=null,r._enableProperties();else{Object.setPrototypeOf(r,s.prototype);const a=e.hostProps;for(let l in a)if(l="_host_"+l,l in r){const h=r[l];delete r[l],r.__data[l]=h}}}}function _v(r,e){return function(t,i,o){e.call(t.__templatizeOwner,i.substring(6),o[i])}}function vv(r,e,t,i){let o=t.hostProps||{};for(let n in i.instanceProps){delete o[n];let s=i.notifyInstanceProp;s&&r.prototype._addPropertyEffect(n,r.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:gv(n,s)})}if(i.forwardHostProp&&e.__dataHost)for(let n in o)t.hasHostProps||(t.hasHostProps=!0),r.prototype._addPropertyEffect(n,r.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:bv()})}function gv(r,e){return function(t,i,o){e.call(t.__templatizeOwner,t,i,o[i])}}function bv(){return function(r,e,t){r.__dataHost._setPendingPropertyOrPath("_host_"+e,t[e],!0,!0)}}function Cn(r,e,t){if(Ni&&!ka(r))throw new Error("strictTemplatePolicy: template owner not trusted");if(t=t||{},r.__templatizeOwner)throw new Error("A <template> can only be templatized once");r.__templatizeOwner=e;let i=(e?e.constructor:Ct)._parseTemplate(r),o=i.templatizeInstanceClass;o||(o=mv(r,i,t),i.templatizeInstanceClass=o);const n=ka(r);fv(r,i,t,n);let s=class extends o{};return s.prototype._methodHost=n,s.prototype.__dataHost=r,s.prototype.__templatizeOwner=e,s.prototype.__hostProps=i.hostProps,s=s,s}function yv(r,e,t){const i=t.constructor._properties,{propertyEffects:o}=r,{instanceProps:n}=e;for(let s in o)if(!i[s]&&!(n&&n[s])){const a=o[s];for(let l=0;l<a.length;l++){const{part:h}=a[l].info;if(!(h.signature&&h.signature.static)){console.warn(`Property '${s}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function xv(r,e){let t;for(;e;)if(t=e.__dataHost?e:e.__templatizeInstance)if(t.__dataHost!=r)e=t.__dataHost;else return t;else e=Pe(e).parentNode;return null}/**
3713
3713
  @license
3714
3714
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3715
3715
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3717,7 +3717,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3717
3717
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3718
3718
  Code distributed by Google as part of the polymer project is also
3719
3719
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3720
- */let ka=!1;function xv(){if(th&&!eh){if(!ka){ka=!0;const r=document.createElement("style");r.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(r)}return!0}return!1}/**
3720
+ */let Ta=!1;function wv(){if(rh&&!th){if(!Ta){Ta=!0;const r=document.createElement("style");r.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(r)}return!0}return!1}/**
3721
3721
  @license
3722
3722
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3723
3723
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3725,15 +3725,15 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3725
3725
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3726
3726
  Code distributed by Google as part of the polymer project is also
3727
3727
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3728
- */const wv=av(Z);class Ta extends wv{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!ta,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let e=0;e<this.__instances.length;e++)this.__detachInstance(e);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),xv()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let e=Pe(Pe(this).parentNode);for(let t=0;t<this.__instances.length;t++)this.__attachInstance(t,e);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const e=this;let t=this.template=e._templateInfo?e:this.querySelector("template");if(!t){let o=new MutationObserver(()=>{if(this.querySelector("template"))o.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return o.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=Cn(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(o,n){let s=this.__instances;for(let a=0,l;a<s.length&&(l=s[a]);a++)l.forwardHostProp(o,n)},notifyInstanceProp:function(o,n,s){if(wm(this.as,n)){let a=o[this.itemsIndexAs];n==this.as&&(this.items[a]=s);let l=Hr(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,n);this.notifyPath(l,s)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(e){if(typeof e=="string"){let t=e,i=this.__getMethodHost();return function(){return i[t].apply(i,arguments)}}return e}__sortChanged(e){this.__sortFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__filterChanged(e){this.__filterFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(e){return Math.ceil(1e3/e)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(e){if(this.__sortFn||this.__filterFn){if(!e)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let t=this.__observePaths;for(let i=0;i<t.length;i++)e.indexOf(t[i])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(e){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(e.path,e.value)||(e.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,t=0){this.__renderDebouncer=Hi.debounce(this.__renderDebouncer,t>0?km.after(t):uh,e.bind(this)),tv(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),ns()}__render(){if(!this.__ensureTemplatized())return;let e=this.items||[];const t=this.__sortAndFilterItems(e),i=this.__calculateLimit(t.length);this.__updateInstances(e,i,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!ta||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(e){let t=new Array(e.length);for(let i=0;i<e.length;i++)t[i]=i;return this.__filterFn&&(t=t.filter((i,o,n)=>this.__filterFn(e[i],o,n))),this.__sortFn&&t.sort((i,o)=>this.__sortFn(e[i],e[o])),t}__calculateLimit(e){let t=e;const i=this.__instances.length;if(this.initialCount){let o;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(e,this.initialCount),o=Math.max(t-i,0),this.__chunkCount=o||1):(o=Math.min(Math.max(e-i,0),this.__chunkCount),t=Math.min(i+o,e)),this.__shouldMeasureChunk=o===this.__chunkCount,this.__shouldContinueChunking=t<e,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,t}__continueChunking(){if(this.__shouldMeasureChunk){const e=performance.now()-this.__renderStartTime,t=this._targetFrameTime/e;this.__chunkCount=Math.round(this.__chunkCount*t)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,t,i){const o=this.__itemsIdxToInstIdx={};let n;for(n=0;n<t;n++){let s=this.__instances[n],a=i[n],l=e[a];o[a]=n,s?(s._setPendingProperty(this.as,l),s._setPendingProperty(this.indexAs,n),s._setPendingProperty(this.itemsIndexAs,a),s._flushProperties()):this.__insertInstance(l,n,a)}for(let s=this.__instances.length-1;s>=n;s--)this.__detachAndRemoveInstance(s)}__detachInstance(e){let t=this.__instances[e];const i=Pe(t.root);for(let o=0;o<t.children.length;o++){let n=t.children[o];i.appendChild(n)}return t}__attachInstance(e,t){let i=this.__instances[e];t.insertBefore(i.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,i){let o={};return o[this.as]=e,o[this.indexAs]=t,o[this.itemsIndexAs]=i,new this.__ctor(o)}__insertInstance(e,t,i){const o=this.__stampInstance(e,t,i);let n=this.__instances[t+1],s=n?n.children[0]:this;return Pe(Pe(this).parentNode).insertBefore(o.root,s),this.__instances[t]=o,o}_showHideChildren(e){for(let t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(e)}__handleItemPath(e,t){let i=e.slice(6),o=i.indexOf("."),n=o<0?i:i.substring(0,o);if(n==parseInt(n,10)){let s=o<0?"":i.substring(o+1);this.__handleObservedPaths(s);let a=this.__itemsIdxToInstIdx[n],l=this.__instances[a];if(l){let h=this.as+(s?"."+s:"");l._setPendingPropertyOrPath(h,t,!1,!0),l._flushProperties()}return!0}}itemForElement(e){let t=this.modelForElement(e);return t&&t[this.as]}indexForElement(e){let t=this.modelForElement(e);return t&&t[this.indexAs]}modelForElement(e){return yv(this.template,e)}}customElements.define(Ta.is,Ta);/**
3728
+ */const Cv=lv(Z);class Ia extends Cv{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!ra,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let e=0;e<this.__instances.length;e++)this.__detachInstance(e);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),wv()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let e=Pe(Pe(this).parentNode);for(let t=0;t<this.__instances.length;t++)this.__attachInstance(t,e);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const e=this;let t=this.template=e._templateInfo?e:this.querySelector("template");if(!t){let o=new MutationObserver(()=>{if(this.querySelector("template"))o.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return o.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=Cn(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(o,n){let s=this.__instances;for(let a=0,l;a<s.length&&(l=s[a]);a++)l.forwardHostProp(o,n)},notifyInstanceProp:function(o,n,s){if(Cm(this.as,n)){let a=o[this.itemsIndexAs];n==this.as&&(this.items[a]=s);let l=Hr(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,n);this.notifyPath(l,s)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(e){if(typeof e=="string"){let t=e,i=this.__getMethodHost();return function(){return i[t].apply(i,arguments)}}return e}__sortChanged(e){this.__sortFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__filterChanged(e){this.__filterFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(e){return Math.ceil(1e3/e)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(e){if(this.__sortFn||this.__filterFn){if(!e)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let t=this.__observePaths;for(let i=0;i<t.length;i++)e.indexOf(t[i])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(e){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(e.path,e.value)||(e.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,t=0){this.__renderDebouncer=Hi.debounce(this.__renderDebouncer,t>0?Tm.after(t):ph,e.bind(this)),rv(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),ns()}__render(){if(!this.__ensureTemplatized())return;let e=this.items||[];const t=this.__sortAndFilterItems(e),i=this.__calculateLimit(t.length);this.__updateInstances(e,i,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!ra||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(e){let t=new Array(e.length);for(let i=0;i<e.length;i++)t[i]=i;return this.__filterFn&&(t=t.filter((i,o,n)=>this.__filterFn(e[i],o,n))),this.__sortFn&&t.sort((i,o)=>this.__sortFn(e[i],e[o])),t}__calculateLimit(e){let t=e;const i=this.__instances.length;if(this.initialCount){let o;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(e,this.initialCount),o=Math.max(t-i,0),this.__chunkCount=o||1):(o=Math.min(Math.max(e-i,0),this.__chunkCount),t=Math.min(i+o,e)),this.__shouldMeasureChunk=o===this.__chunkCount,this.__shouldContinueChunking=t<e,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,t}__continueChunking(){if(this.__shouldMeasureChunk){const e=performance.now()-this.__renderStartTime,t=this._targetFrameTime/e;this.__chunkCount=Math.round(this.__chunkCount*t)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,t,i){const o=this.__itemsIdxToInstIdx={};let n;for(n=0;n<t;n++){let s=this.__instances[n],a=i[n],l=e[a];o[a]=n,s?(s._setPendingProperty(this.as,l),s._setPendingProperty(this.indexAs,n),s._setPendingProperty(this.itemsIndexAs,a),s._flushProperties()):this.__insertInstance(l,n,a)}for(let s=this.__instances.length-1;s>=n;s--)this.__detachAndRemoveInstance(s)}__detachInstance(e){let t=this.__instances[e];const i=Pe(t.root);for(let o=0;o<t.children.length;o++){let n=t.children[o];i.appendChild(n)}return t}__attachInstance(e,t){let i=this.__instances[e];t.insertBefore(i.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,i){let o={};return o[this.as]=e,o[this.indexAs]=t,o[this.itemsIndexAs]=i,new this.__ctor(o)}__insertInstance(e,t,i){const o=this.__stampInstance(e,t,i);let n=this.__instances[t+1],s=n?n.children[0]:this;return Pe(Pe(this).parentNode).insertBefore(o.root,s),this.__instances[t]=o,o}_showHideChildren(e){for(let t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(e)}__handleItemPath(e,t){let i=e.slice(6),o=i.indexOf("."),n=o<0?i:i.substring(0,o);if(n==parseInt(n,10)){let s=o<0?"":i.substring(o+1);this.__handleObservedPaths(s);let a=this.__itemsIdxToInstIdx[n],l=this.__instances[a];if(l){let h=this.as+(s?"."+s:"");l._setPendingPropertyOrPath(h,t,!1,!0),l._flushProperties()}return!0}}itemForElement(e){let t=this.modelForElement(e);return t&&t[this.as]}indexForElement(e){let t=this.modelForElement(e);return t&&t[this.indexAs]}modelForElement(e){return xv(this.template,e)}}customElements.define(Ia.is,Ia);/**
3729
3729
  * @license
3730
3730
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3731
3731
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3732
- */const Cv=r=>class extends Ht(r){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},isDateDisabled:{type:Function,value:()=>!1},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find(e=>lt(e.date,this.focusedDate))}ready(){super.ready(),Je(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,t,i){const o=new Date(0,0);o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(1);const n=new Date(0,0);return n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()+1),n.setDate(0),t&&i&&t.getMonth()===i.getMonth()&&t.getMonth()===e.getMonth()&&i.getDate()-t.getDate()>=0?!1:!nr(o,t,i)&&!nr(n,t,i)}_getTitle(e,t){if(!(e===void 0||t===void 0))return t.formatTitle(t.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,t){e.setDate(e.getDate()+t)}_applyFirstDayOfWeek(e,t){if(!(e===void 0||t===void 0))return e.slice(t).concat(e.slice(0,t))}_getWeekDayNames(e,t){if(e===void 0||t===void 0)return[];const{weekdays:i,weekdaysShort:o,firstDayOfWeek:n}=e,s=this._applyFirstDayOfWeek(o,n);return this._applyFirstDayOfWeek(i,n).map((a,l)=>({weekDay:a,weekDayShort:s[l]})).slice(0,7)}__focusedDateChanged(e,t){Array.isArray(t)&&t.some(i=>lt(i,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,t){return e&&t&&t.firstDayOfWeek===1}_isToday(e){return lt(new Date,e)}_getDays(e,t){if(e===void 0||t===void 0)return[];const i=new Date(0,0);for(i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);i.getDay()!==t.firstDayOfWeek;)this._dateAdd(i,-1);const o=[],n=i.getMonth(),s=e.getMonth();for(;i.getMonth()===s||i.getMonth()===n;)o.push(i.getMonth()===s?new Date(i.getTime()):null),this._dateAdd(i,1);return o}_getWeeks(e){return e.reduce((t,i,o)=>(o%7===0&&t.push([]),t[t.length-1].push(i),t),[])}_handleTap(e){!this.ignoreTaps&&!this._notTapping&&e.target.date&&!e.target.hasAttribute("disabled")&&(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})))}_preventDefault(e){e.preventDefault()}__getWeekNumber(e){const t=e.reduce((i,o)=>!i&&o?o:i);return Z_(t)}__getDayAriaLabel(e){if(!e)return"";let t=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(t+=`, ${this.i18n.today}`),t}};/**
3732
+ */const Ev=r=>class extends Ht(r){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},isDateDisabled:{type:Function,value:()=>!1},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find(e=>lt(e.date,this.focusedDate))}ready(){super.ready(),Je(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,t,i){const o=new Date(0,0);o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(1);const n=new Date(0,0);return n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()+1),n.setDate(0),t&&i&&t.getMonth()===i.getMonth()&&t.getMonth()===e.getMonth()&&i.getDate()-t.getDate()>=0?!1:!nr(o,t,i)&&!nr(n,t,i)}_getTitle(e,t){if(!(e===void 0||t===void 0))return t.formatTitle(t.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,t){e.setDate(e.getDate()+t)}_applyFirstDayOfWeek(e,t){if(!(e===void 0||t===void 0))return e.slice(t).concat(e.slice(0,t))}_getWeekDayNames(e,t){if(e===void 0||t===void 0)return[];const{weekdays:i,weekdaysShort:o,firstDayOfWeek:n}=e,s=this._applyFirstDayOfWeek(o,n);return this._applyFirstDayOfWeek(i,n).map((a,l)=>({weekDay:a,weekDayShort:s[l]})).slice(0,7)}__focusedDateChanged(e,t){Array.isArray(t)&&t.some(i=>lt(i,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,t){return e&&t&&t.firstDayOfWeek===1}_isToday(e){return lt(new Date,e)}_getDays(e,t){if(e===void 0||t===void 0)return[];const i=new Date(0,0);for(i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);i.getDay()!==t.firstDayOfWeek;)this._dateAdd(i,-1);const o=[],n=i.getMonth(),s=e.getMonth();for(;i.getMonth()===s||i.getMonth()===n;)o.push(i.getMonth()===s?new Date(i.getTime()):null),this._dateAdd(i,1);return o}_getWeeks(e){return e.reduce((t,i,o)=>(o%7===0&&t.push([]),t[t.length-1].push(i),t),[])}_handleTap(e){!this.ignoreTaps&&!this._notTapping&&e.target.date&&!e.target.hasAttribute("disabled")&&(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})))}_preventDefault(e){e.preventDefault()}__getWeekNumber(e){const t=e.reduce((i,o)=>!i&&o?o:i);return J_(t)}__getDayAriaLabel(e){if(!e)return"";let t=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(t+=`, ${this.i18n.today}`),t}};/**
3733
3733
  * @license
3734
3734
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3735
3735
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3736
- */const Ev=k`
3736
+ */const Sv=k`
3737
3737
  :host {
3738
3738
  display: block;
3739
3739
  }
@@ -3793,7 +3793,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3793
3793
  * @license
3794
3794
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3795
3795
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3796
- */L("vaadin-month-calendar",Ev,{moduleId:"vaadin-month-calendar-styles"});class Sv extends Cv(le(Z)){static get template(){return K`
3796
+ */L("vaadin-month-calendar",Sv,{moduleId:"vaadin-month-calendar-styles"});class Av extends Ev(le(Z)){static get template(){return K`
3797
3797
  <div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
3798
3798
  <table
3799
3799
  id="monthGrid"
@@ -3835,7 +3835,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3835
3835
  </template>
3836
3836
  </tbody>
3837
3837
  </table>
3838
- `}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate, isDateDisabled)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(e,t){e&&t&&t.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(e,t,i,o,n,s){const a=["date"],l=e>yn(new Date),h=e<yn(new Date);return this.__isDayDisabled(e,o,n,s)&&a.push("disabled"),this.__isDayFocused(e,t)&&a.push("focused"),this.__isDaySelected(e,i)&&a.push("selected"),this._isToday(e)&&a.push("today"),h&&a.push("past"),l&&a.push("future"),a.join(" ")}__isDayFocused(e,t){return lt(e,t)}__isDaySelected(e,t){return lt(e,t)}__getDayAriaSelected(e,t){if(this.__isDaySelected(e,t))return"true"}__isDayDisabled(e,t,i,o){return!nr(e,t,i,o)}__getDayAriaDisabled(e,t,i,o){if(!(e===void 0||t===void 0&&i===void 0&&o===void 0)&&this.__isDayDisabled(e,t,i,o))return"true"}__getDayTabindex(e,t){return this.__isDayFocused(e,t)?"0":"-1"}}G(Sv);/**
3838
+ `}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate, isDateDisabled)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(e,t){e&&t&&t.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(e,t,i,o,n,s){const a=["date"],l=e>yn(new Date),h=e<yn(new Date);return this.__isDayDisabled(e,o,n,s)&&a.push("disabled"),this.__isDayFocused(e,t)&&a.push("focused"),this.__isDaySelected(e,i)&&a.push("selected"),this._isToday(e)&&a.push("today"),h&&a.push("past"),l&&a.push("future"),a.join(" ")}__isDayFocused(e,t){return lt(e,t)}__isDaySelected(e,t){return lt(e,t)}__getDayAriaSelected(e,t){if(this.__isDaySelected(e,t))return"true"}__isDayDisabled(e,t,i,o){return!nr(e,t,i,o)}__getDayAriaDisabled(e,t,i,o){if(!(e===void 0||t===void 0&&i===void 0&&o===void 0)&&this.__isDayDisabled(e,t,i,o))return"true"}__getDayTabindex(e,t){return this.__isDayFocused(e,t)?"0":"-1"}}G(Av);/**
3839
3839
  * @license
3840
3840
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3841
3841
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3843,11 +3843,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3843
3843
  * @license
3844
3844
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3845
3845
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3846
- */const Av=r=>class extends r{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){zh(this.$.scrollers,"pan-y"),Je(this.$.scrollers,"track",this._track.bind(this)),Je(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Je(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Je(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new ls(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new Ne(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onTodayButtonKeyDown(t)),Je(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new Ne(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onCancelButtonKeyDown(t)),Je(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,t){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+i,t),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new Ne(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",t=>{this.__onMonthCalendarKeyDown(t)}),e.addEventListener("init-done",()=>{const t=[...this.querySelectorAll("vaadin-month-calendar")];t.forEach(i=>{i.addEventListener("selected-date-changed",o=>{this.selectedDate=o.detail.value})}),this.calendars=t}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new Ne(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),Je(e,"tap",t=>{this._onYearTap(t)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,t){e&&(e.textContent=t&&t.cancel)}__updateTodayButton(e,t,i,o,n){e&&(e.textContent=t&&t.today,e.disabled=!this._isTodayAllowed(i,o,n))}__updateCalendars(e,t,i,o,n,s,a,l,h,d){e&&e.length&&e.forEach(c=>{c.i18n=t,c.minDate=i,c.maxDate=o,c.isDateDisabled=d,c.focusedDate=s,c.selectedDate=n,c.showWeekNumbers=a,c.ignoreTaps=l,h?c.setAttribute("theme",h):c.removeAttribute("theme")})}__updateYears(e,t,i){e&&e.length&&e.forEach(o=>{o.selectedDate=t,i?o.setAttribute("theme",i):o.removeAttribute("theme")})}_selectDate(e){return this._dateAllowed(e)?(this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,t=!0){if(!e)return;const i=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const a=this._calculateWeekScrollOffset(e);this._scrollToPosition(i+a,t);return}const o=this._monthScroller.position>i,n=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,s=this._monthScroller.position+n-1<i;o?this._scrollToPosition(i,t):s&&this._scrollToPosition(i-n+1,t)}_calculateWeekScrollOffset(e){const t=new Date(0,0);t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(1);let i=0;for(;t.getDate()<e.getDate();)t.setDate(t.getDate()+1),t.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=Fe.debounce(this._debouncer,yt.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,t,i){return e&&t&&typeof t.formatDate=="function"?t.formatDate(os(e)):i}_onTodayTap(){const e=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const t=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+t*12,!0)}}_scrollToPosition(e,t){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!t){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let i;this._revealPromise=new Promise(l=>{i=l});const o=(l,h,d,c)=>(l/=c/2,l<1?d/2*l*l+h:(l-=1,-d/2*(l*(l-2)-1)+h));let n=0;const s=this._monthScroller.position,a=l=>{n||(n=l);const h=l-n;if(h<this.scrollDuration){const d=o(h,s,this._targetPosition-s,this.scrollDuration);this._monthScroller.position=d,window.requestAnimationFrame(a)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:s}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,i(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(a)}_limit(e,t){return Math.min(t.max,Math.max(t.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const t=this._translateX+e.detail.ddx;this._translateX=this._limit(t,{min:0,max:this._yearScrollerWidth})}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return Jh(e).getFullYear()}_differenceInMonths(e,t){return(e.getFullYear()-t.getFullYear())*12-t.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){lt(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let t=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),t=!0;break;case"ArrowUp":this._moveFocusByDays(-7),t=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),t=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),t=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),t=!0);break;case" ":this.__toggleDate(this.focusedDate),t=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),t=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),t=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),t=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),t=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}t&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,t){switch(e.stopPropagation(),t){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const e=this.focusableDateElement;e&&lt(e.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,e.focus())}}focusDate(e,t){return Ti(this,null,function*(){const i=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,t||(this._focusedMonthDate=i.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return Ti(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(t=>{es(this,()=>{ns(),t()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(Zh(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,t,i){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,i):this._dateAllowed(this.focusedDate)?t>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,t){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+e),t&&i.setDate(this.focusedDate.getDate()+t),i}_moveFocusByDays(e){const t=this._getDateDiff(0,e);this._focusAllowedDate(t,e,!1)}_moveFocusByMonths(e){const t=this._getDateDiff(e),i=t.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),t.setDate(this._focusedMonthDate),t.getMonth()!==i&&t.setDate(0),this._focusAllowedDate(t,e,!0)}_moveFocusInsideMonth(e,t){const i=new Date(0,0);i.setFullYear(e.getFullYear()),t==="minDate"?(i.setMonth(e.getMonth()),i.setDate(1)):(i.setMonth(e.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(e)?this.focusDate(this[t]):this._focusClosestDate(e)}_dateAllowed(e,t=this.minDate,i=this.maxDate,o=this.isDateDisabled){return nr(e,t,i,o)}_isTodayAllowed(e,t,i){return this._dateAllowed(this._getTodayMidnight(),e,t,i)}_getTodayMidnight(){const e=new Date,t=new Date(0,0);return t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(e.getDate()),t}};/**
3846
+ */const Pv=r=>class extends r{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){Bh(this.$.scrollers,"pan-y"),Je(this.$.scrollers,"track",this._track.bind(this)),Je(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Je(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Je(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new ls(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new Ne(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onTodayButtonKeyDown(t)),Je(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new Ne(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onCancelButtonKeyDown(t)),Je(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,t){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+i,t),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new Ne(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",t=>{this.__onMonthCalendarKeyDown(t)}),e.addEventListener("init-done",()=>{const t=[...this.querySelectorAll("vaadin-month-calendar")];t.forEach(i=>{i.addEventListener("selected-date-changed",o=>{this.selectedDate=o.detail.value})}),this.calendars=t}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new Ne(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),Je(e,"tap",t=>{this._onYearTap(t)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,t){e&&(e.textContent=t&&t.cancel)}__updateTodayButton(e,t,i,o,n){e&&(e.textContent=t&&t.today,e.disabled=!this._isTodayAllowed(i,o,n))}__updateCalendars(e,t,i,o,n,s,a,l,h,d){e&&e.length&&e.forEach(c=>{c.i18n=t,c.minDate=i,c.maxDate=o,c.isDateDisabled=d,c.focusedDate=s,c.selectedDate=n,c.showWeekNumbers=a,c.ignoreTaps=l,h?c.setAttribute("theme",h):c.removeAttribute("theme")})}__updateYears(e,t,i){e&&e.length&&e.forEach(o=>{o.selectedDate=t,i?o.setAttribute("theme",i):o.removeAttribute("theme")})}_selectDate(e){return this._dateAllowed(e)?(this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,t=!0){if(!e)return;const i=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const a=this._calculateWeekScrollOffset(e);this._scrollToPosition(i+a,t);return}const o=this._monthScroller.position>i,n=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,s=this._monthScroller.position+n-1<i;o?this._scrollToPosition(i,t):s&&this._scrollToPosition(i-n+1,t)}_calculateWeekScrollOffset(e){const t=new Date(0,0);t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(1);let i=0;for(;t.getDate()<e.getDate();)t.setDate(t.getDate()+1),t.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=Fe.debounce(this._debouncer,yt.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,t,i){return e&&t&&typeof t.formatDate=="function"?t.formatDate(os(e)):i}_onTodayTap(){const e=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const t=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+t*12,!0)}}_scrollToPosition(e,t){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!t){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let i;this._revealPromise=new Promise(l=>{i=l});const o=(l,h,d,c)=>(l/=c/2,l<1?d/2*l*l+h:(l-=1,-d/2*(l*(l-2)-1)+h));let n=0;const s=this._monthScroller.position,a=l=>{n||(n=l);const h=l-n;if(h<this.scrollDuration){const d=o(h,s,this._targetPosition-s,this.scrollDuration);this._monthScroller.position=d,window.requestAnimationFrame(a)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:s}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,i(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(a)}_limit(e,t){return Math.min(t.max,Math.max(t.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const t=this._translateX+e.detail.ddx;this._translateX=this._limit(t,{min:0,max:this._yearScrollerWidth})}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return Qh(e).getFullYear()}_differenceInMonths(e,t){return(e.getFullYear()-t.getFullYear())*12-t.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){lt(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let t=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),t=!0;break;case"ArrowUp":this._moveFocusByDays(-7),t=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),t=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),t=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),t=!0);break;case" ":this.__toggleDate(this.focusedDate),t=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),t=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),t=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),t=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),t=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}t&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,t){switch(e.stopPropagation(),t){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const e=this.focusableDateElement;e&&lt(e.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,e.focus())}}focusDate(e,t){return Ti(this,null,function*(){const i=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,t||(this._focusedMonthDate=i.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return Ti(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(t=>{es(this,()=>{ns(),t()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(Jh(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,t,i){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,i):this._dateAllowed(this.focusedDate)?t>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,t){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+e),t&&i.setDate(this.focusedDate.getDate()+t),i}_moveFocusByDays(e){const t=this._getDateDiff(0,e);this._focusAllowedDate(t,e,!1)}_moveFocusByMonths(e){const t=this._getDateDiff(e),i=t.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),t.setDate(this._focusedMonthDate),t.getMonth()!==i&&t.setDate(0),this._focusAllowedDate(t,e,!0)}_moveFocusInsideMonth(e,t){const i=new Date(0,0);i.setFullYear(e.getFullYear()),t==="minDate"?(i.setMonth(e.getMonth()),i.setDate(1)):(i.setMonth(e.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(e)?this.focusDate(this[t]):this._focusClosestDate(e)}_dateAllowed(e,t=this.minDate,i=this.maxDate,o=this.isDateDisabled){return nr(e,t,i,o)}_isTodayAllowed(e,t,i){return this._dateAllowed(this._getTodayMidnight(),e,t,i)}_getTodayMidnight(){const e=new Date,t=new Date(0,0);return t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(e.getDate()),t}};/**
3847
3847
  * @license
3848
3848
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3849
3849
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3850
- */const Pv=k`
3850
+ */const kv=k`
3851
3851
  :host {
3852
3852
  display: flex;
3853
3853
  flex-direction: column;
@@ -3911,7 +3911,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3911
3911
  * @license
3912
3912
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3913
3913
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3914
- */L("vaadin-date-picker-overlay-content",Pv,{moduleId:"vaadin-date-picker-overlay-content-styles"});class kv extends Av(et(le($e(Z)))){static get template(){return K`
3914
+ */L("vaadin-date-picker-overlay-content",kv,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Tv extends Pv(et(le($e(Z)))){static get template(){return K`
3915
3915
  <div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
3916
3916
  <div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
3917
3917
  <div part="clear-button" hidden$="[[!selectedDate]]"></div>
@@ -3931,15 +3931,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3931
3931
  <slot name="today-button"></slot>
3932
3932
  <slot name="cancel-button"></slot>
3933
3933
  </div>
3934
- `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}G(kv);/**
3934
+ `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}G(Tv);/**
3935
3935
  * @license
3936
3936
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3937
3937
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3938
- */const Mo=new WeakMap;function Tv(r){return Mo.has(r)||Mo.set(r,new Set),Mo.get(r)}function Iv(r,e){const t=document.createElement("style");t.textContent=r,e===document?document.head.appendChild(t):e.insertBefore(t,e.firstChild)}const od=ve(r=>class extends r{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),t=Tv(e);this.slotStyles.forEach(i=>{t.has(i)||(Iv(i,e),t.add(i))})}});/**
3938
+ */const Mo=new WeakMap;function Iv(r){return Mo.has(r)||Mo.set(r,new Set),Mo.get(r)}function Dv(r,e){const t=document.createElement("style");t.textContent=r,e===document?document.head.appendChild(t):e.insertBefore(t,e.firstChild)}const nd=ve(r=>class extends r{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),t=Iv(e);this.slotStyles.forEach(i=>{t.has(i)||(Dv(i,e),t.add(i))})}});/**
3939
3939
  * @license
3940
3940
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3941
3941
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3942
- */const Dv=r=>class extends Yr(Lt(r)){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)))}_onClearButtonClick(e){e.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(e){e.preventDefault(),gn||this.inputElement.focus()}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
3942
+ */const Ov=r=>class extends Yr(Lt(r)){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)))}_onClearButtonClick(e){e.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(e){e.preventDefault(),gn||this.inputElement.focus()}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
3943
3943
  * @license
3944
3944
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3945
3945
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3947,7 +3947,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3947
3947
  * @license
3948
3948
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3949
3949
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3950
- */const io=r=>class extends od(Qi(hs(eo(Dv(Lt(r)))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this)}get slotStyles(){return[`
3950
+ */const io=r=>class extends nd(Qi(hs(eo(Ov(Lt(r)))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this)}get slotStyles(){return[`
3951
3951
  :is(input[slot='input'], textarea[slot='textarea'])::placeholder {
3952
3952
  font: inherit;
3953
3953
  color: inherit;
@@ -3956,7 +3956,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3956
3956
  * @license
3957
3957
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3958
3958
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3959
- */const Ov=k`
3959
+ */const Mv=k`
3960
3960
  [part='clear-button'] {
3961
3961
  display: none;
3962
3962
  cursor: default;
@@ -3973,7 +3973,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3973
3973
  * @license
3974
3974
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3975
3975
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3976
- */const nd=k`
3976
+ */const sd=k`
3977
3977
  :host {
3978
3978
  display: inline-flex;
3979
3979
  outline: none;
@@ -4011,7 +4011,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4011
4011
  * @license
4012
4012
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
4013
4013
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4014
- */const sd=k`
4014
+ */const ad=k`
4015
4015
  [class$='container'] {
4016
4016
  display: flex;
4017
4017
  flex-direction: column;
@@ -4023,7 +4023,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4023
4023
  * @license
4024
4024
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
4025
4025
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4026
- */const oo=[nd,sd,Ov];/**
4026
+ */const oo=[sd,ad,Mv];/**
4027
4027
  * @license
4028
4028
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
4029
4029
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4031,15 +4031,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4031
4031
  * @license
4032
4032
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4033
4033
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4034
- */class ad{constructor(e){this.host=e,e.addEventListener("opened-changed",()=>{e.opened||this.__setVirtualKeyboardEnabled(!1)}),e.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),e.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(e){this.host.inputElement&&(this.host.inputElement.inputMode=e?"":"none")}}/**
4034
+ */class ld{constructor(e){this.host=e,e.addEventListener("opened-changed",()=>{e.opened||this.__setVirtualKeyboardEnabled(!1)}),e.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),e.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(e){this.host.inputElement&&(this.host.inputElement.inputMode=e?"":"none")}}/**
4035
4035
  * @license
4036
4036
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
4037
4037
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4038
- */const Mv=r=>class extends Qr(et(Qi(hs(Lt(r))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){const t=String(e.year).replace(/\d+/u,i=>"0000".substr(i.length)+i);return[e.month+1,e.day,t].join("/")},parseDate(e){const t=e.split("/"),i=new Date;let o,n=i.getMonth(),s=i.getFullYear();if(t.length===3){if(n=parseInt(t[0])-1,o=parseInt(t[1]),s=parseInt(t[2]),t[2].length<3&&s>=0){const a=this.referenceDate?wr(this.referenceDate):new Date;s=J_(a,s,n,o)}}else t.length===2?(n=parseInt(t[0])-1,o=parseInt(t[1])):t.length===1&&(o=parseInt(t[0]));if(o!==void 0)return{day:o,month:n,year:s}},formatTitle:(e,t)=>`${e} ${t}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:ts},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return!this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(e){super._onFocus(e),this._noInput&&!Ji()&&e.target.blur()}_onBlur(e){super._onBlur(e),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new ls(this._fullscreenMediaQuery,t=>{this._fullscreen=t})),this.addController(new ad(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(e){if(e.firstChild)return;const t=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(t),this._overlayContent=t,t.addEventListener("close",()=>{this._close()}),t.addEventListener("focus-input",this._focusAndSelect.bind(this)),t.addEventListener("date-tap",i=>{this.__commitDate(i.detail.date),this._close()}),t.addEventListener("date-selected",i=>{this.__commitDate(i.detail.date)}),t.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),t.addEventListener("focusout",i=>{this._shouldRemoveFocus(i)&&this._setFocused(!1)}),t.addEventListener("focused-date-changed",i=>{this._focusedDate=i.detail.value}),t.addEventListener("click",i=>i.stopPropagation())}__parseDate(e){if(!this.i18n.parseDate)return;let t=this.i18n.parseDate(e);if(t&&(t=wr(`${t.year}-${t.month+1}-${t.day}`)),t&&!isNaN(t.getTime()))return t}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(os(e))}checkValidity(){const e=this._inputElementValue,t=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),i=!this._selectedDate||nr(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let o=!0;return this.inputElement&&(this.inputElement.checkValidity?o=this.inputElement.checkValidity():this.inputElement.validate&&(o=this.inputElement.validate())),t&&i&&o}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:t}=e;return this.opened&&t!==null&&t!==document.body&&!this.contains(t)&&!this._overlayContent.contains(t)?!0:!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__commitValueChange(){const e=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==e&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=e}__commitDate(e){this.__keepCommittedValue=!0,this._selectedDate=e,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,t,i,o,n,s){return!e||t&&(!s||n)||i&&n||!o.parseDate}_formatISO(e){return ev(e)}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,t){e===void 0||t===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,t){e===void 0||t===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,t){const i=wr(e);if(e&&!i){this.value=t;return}e?lt(this._selectedDate,i)||(this._selectedDate=i,t!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,t,i,o,n,s,a,l,h){e&&(e.i18n=t,e.label=i,e.minDate=o,e.maxDate=n,e.focusedDate=s,e.selectedDate=a,e.showWeekNumbers=l,e.isDateDisabled=h)}__updateOverlayContentTheme(e,t){e&&(t?e.setAttribute("theme",t):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,t){e&&e.toggleAttribute("fullscreen",t)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const e=this._overlayContent;e.reset();const t=this._getInitialPosition();e.initialPosition=t;const i=e.focusedDate||t;e.scrollToDate(i),this._ignoreFocusedDateChange=!0,e.focusedDate=i,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const o=this._nativeInput;this._noInput&&o&&(o.blur(),this._overlayContent.focusDateElement());const n=this._noInput?e:[o,e];this.__showOthers=qh(n)}_getInitialPosition(){const e=wr(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||nr(t,this._minDate,this._maxDate,this.isDateDisabled)?t:this._minDate||this._maxDate?Zh(t,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",t=this.__parseDate(e);t?this.__commitDate(t):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1)}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this._closedByEscape&&this._applyInputValue(this._selectedDate),this.__commitParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,t){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,t)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this.__commitDate(null)}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){this.opened?this.close():this.__commitParsedOrFocusedDate()}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){e.stopPropagation(),this._onClearButtonClick(e);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate)}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,lt(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return wr(e)}};/**
4038
+ */const Nv=r=>class extends Qr(et(Qi(hs(Lt(r))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){const t=String(e.year).replace(/\d+/u,i=>"0000".substr(i.length)+i);return[e.month+1,e.day,t].join("/")},parseDate(e){const t=e.split("/"),i=new Date;let o,n=i.getMonth(),s=i.getFullYear();if(t.length===3){if(n=parseInt(t[0])-1,o=parseInt(t[1]),s=parseInt(t[2]),t[2].length<3&&s>=0){const a=this.referenceDate?wr(this.referenceDate):new Date;s=Q_(a,s,n,o)}}else t.length===2?(n=parseInt(t[0])-1,o=parseInt(t[1])):t.length===1&&(o=parseInt(t[0]));if(o!==void 0)return{day:o,month:n,year:s}},formatTitle:(e,t)=>`${e} ${t}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:ts},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return!this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(e){super._onFocus(e),this._noInput&&!Ji()&&e.target.blur()}_onBlur(e){super._onBlur(e),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new ls(this._fullscreenMediaQuery,t=>{this._fullscreen=t})),this.addController(new ld(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(e){if(e.firstChild)return;const t=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(t),this._overlayContent=t,t.addEventListener("close",()=>{this._close()}),t.addEventListener("focus-input",this._focusAndSelect.bind(this)),t.addEventListener("date-tap",i=>{this.__commitDate(i.detail.date),this._close()}),t.addEventListener("date-selected",i=>{this.__commitDate(i.detail.date)}),t.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),t.addEventListener("focusout",i=>{this._shouldRemoveFocus(i)&&this._setFocused(!1)}),t.addEventListener("focused-date-changed",i=>{this._focusedDate=i.detail.value}),t.addEventListener("click",i=>i.stopPropagation())}__parseDate(e){if(!this.i18n.parseDate)return;let t=this.i18n.parseDate(e);if(t&&(t=wr(`${t.year}-${t.month+1}-${t.day}`)),t&&!isNaN(t.getTime()))return t}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(os(e))}checkValidity(){const e=this._inputElementValue,t=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),i=!this._selectedDate||nr(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let o=!0;return this.inputElement&&(this.inputElement.checkValidity?o=this.inputElement.checkValidity():this.inputElement.validate&&(o=this.inputElement.validate())),t&&i&&o}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:t}=e;return this.opened&&t!==null&&t!==document.body&&!this.contains(t)&&!this._overlayContent.contains(t)?!0:!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__commitValueChange(){const e=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==e&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=e}__commitDate(e){this.__keepCommittedValue=!0,this._selectedDate=e,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,t,i,o,n,s){return!e||t&&(!s||n)||i&&n||!o.parseDate}_formatISO(e){return tv(e)}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,t){e===void 0||t===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,t){e===void 0||t===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,t){const i=wr(e);if(e&&!i){this.value=t;return}e?lt(this._selectedDate,i)||(this._selectedDate=i,t!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,t,i,o,n,s,a,l,h){e&&(e.i18n=t,e.label=i,e.minDate=o,e.maxDate=n,e.focusedDate=s,e.selectedDate=a,e.showWeekNumbers=l,e.isDateDisabled=h)}__updateOverlayContentTheme(e,t){e&&(t?e.setAttribute("theme",t):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,t){e&&e.toggleAttribute("fullscreen",t)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const e=this._overlayContent;e.reset();const t=this._getInitialPosition();e.initialPosition=t;const i=e.focusedDate||t;e.scrollToDate(i),this._ignoreFocusedDateChange=!0,e.focusedDate=i,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const o=this._nativeInput;this._noInput&&o&&(o.blur(),this._overlayContent.focusDateElement());const n=this._noInput?e:[o,e];this.__showOthers=Yh(n)}_getInitialPosition(){const e=wr(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||nr(t,this._minDate,this._maxDate,this.isDateDisabled)?t:this._minDate||this._maxDate?Jh(t,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",t=this.__parseDate(e);t?this.__commitDate(t):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1)}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this._closedByEscape&&this._applyInputValue(this._selectedDate),this.__commitParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,t){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,t)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this.__commitDate(null)}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){this.opened?this.close():this.__commitParsedOrFocusedDate()}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){e.stopPropagation(),this._onClearButtonClick(e);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate)}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,lt(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return wr(e)}};/**
4039
4039
  * @license
4040
4040
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
4041
4041
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4042
- */const Nv=k`
4042
+ */const zv=k`
4043
4043
  :host([opened]) {
4044
4044
  pointer-events: auto;
4045
4045
  }
@@ -4056,7 +4056,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4056
4056
  * @license
4057
4057
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
4058
4058
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4059
- */L("vaadin-date-picker",[oo,Nv],{moduleId:"vaadin-date-picker-styles"});class zv extends Mv(io(le(Ve(Z)))){static get is(){return"vaadin-date-picker"}static get template(){return K`
4059
+ */L("vaadin-date-picker",[oo,zv],{moduleId:"vaadin-date-picker-styles"});class Bv extends Nv(io(le(Ve(Z)))){static get is(){return"vaadin-date-picker"}static get template(){return K`
4060
4060
  <div class="vaadin-date-picker-container">
4061
4061
  <div part="label">
4062
4062
  <slot name="label"></slot>
@@ -4098,7 +4098,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4098
4098
  ></vaadin-date-picker-overlay>
4099
4099
 
4100
4100
  <slot name="tooltip"></slot>
4101
- `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Xr(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new Kr(this.inputElement,this._labelController)),this._tooltipController=new ht(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(e){e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}G(zv);/**
4101
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Xr(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new Kr(this.inputElement,this._labelController)),this._tooltipController=new ht(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(e){e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}G(Bv);/**
4102
4102
  * @license
4103
4103
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
4104
4104
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4106,15 +4106,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4106
4106
  * @license
4107
4107
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4108
4108
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4109
- */const Bv=r=>class extends io(r){static get properties(){return{autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"autocapitalize","autocomplete","autocorrect"]}get __data(){return this.__dataValue||{}}set __data(e){this.__dataValue=e}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.value&&e.value!==this.value&&(console.warn(`Please define value on the <${this.localName}> component!`),e.value=""),this.value&&(e.value=this.value))}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_onInput(e){super._onInput(e),this.invalid&&this.validate()}_valueChanged(e,t){super._valueChanged(e,t),t!==void 0&&this.invalid&&this.validate()}};/**
4109
+ */const Lv=r=>class extends io(r){static get properties(){return{autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"autocapitalize","autocomplete","autocorrect"]}get __data(){return this.__dataValue||{}}set __data(e){this.__dataValue=e}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.value&&e.value!==this.value&&(console.warn(`Please define value on the <${this.localName}> component!`),e.value=""),this.value&&(e.value=this.value))}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_onInput(e){super._onInput(e),this.invalid&&this.validate()}_valueChanged(e,t){super._valueChanged(e,t),t!==void 0&&this.invalid&&this.validate()}};/**
4110
4110
  * @license
4111
4111
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4112
4112
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4113
- */const Lv=r=>class extends Bv(r){static get properties(){return{maxlength:{type:Number},minlength:{type:Number},pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"maxlength","minlength","pattern"]}static get constraints(){return[...super.constraints,"maxlength","minlength","pattern"]}constructor(){super(),this._setType("text")}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Xr(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Kr(this.inputElement,this._labelController))}};/**
4113
+ */const Hv=r=>class extends Lv(r){static get properties(){return{maxlength:{type:Number},minlength:{type:Number},pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"maxlength","minlength","pattern"]}static get constraints(){return[...super.constraints,"maxlength","minlength","pattern"]}constructor(){super(),this._setType("text")}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Xr(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Kr(this.inputElement,this._labelController))}};/**
4114
4114
  * @license
4115
4115
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
4116
4116
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4117
- */L("vaadin-text-field",oo,{moduleId:"vaadin-text-field-styles"});class ld extends Lv(le(Ve(Z))){static get is(){return"vaadin-text-field"}static get template(){return K`
4117
+ */L("vaadin-text-field",oo,{moduleId:"vaadin-text-field-styles"});class hd extends Hv(le(Ve(Z))){static get is(){return"vaadin-text-field"}static get template(){return K`
4118
4118
  <div class="vaadin-field-container">
4119
4119
  <div part="label">
4120
4120
  <slot name="label"></slot>
@@ -4143,11 +4143,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4143
4143
  </div>
4144
4144
  </div>
4145
4145
  <slot name="tooltip"></slot>
4146
- `}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new ht(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}G(ld);/**
4146
+ `}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new ht(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}G(hd);/**
4147
4147
  * @license
4148
4148
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4149
4149
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4150
- */const Hv=k`
4150
+ */const Rv=k`
4151
4151
  :host {
4152
4152
  position: absolute;
4153
4153
  right: 0;
@@ -4160,11 +4160,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4160
4160
  background: transparent;
4161
4161
  outline: none;
4162
4162
  }
4163
- `;L("vaadin-password-field-button",[Wh,Hv],{moduleId:"lumo-password-field-button"});/**
4163
+ `;L("vaadin-password-field-button",[jh,Rv],{moduleId:"lumo-password-field-button"});/**
4164
4164
  * @license
4165
4165
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4166
4166
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4167
- */const Rv=k`
4167
+ */const Fv=k`
4168
4168
  [part='reveal-button']::before {
4169
4169
  content: var(--lumo-icons-eye);
4170
4170
  }
@@ -4182,15 +4182,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4182
4182
  [part='reveal-button'][hidden] {
4183
4183
  display: none !important;
4184
4184
  }
4185
- `;L("vaadin-password-field",[Rt,Rv],{moduleId:"lumo-password-field"});/**
4185
+ `;L("vaadin-password-field",[Rt,Fv],{moduleId:"lumo-password-field"});/**
4186
4186
  * @license
4187
4187
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4188
4188
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4189
- */L("vaadin-password-field-button",Kh,{moduleId:"vaadin-password-field-button-styles"});class Fv extends is($e(le(Z))){static get is(){return"vaadin-password-field-button"}static get template(){return K``}}G(Fv);/**
4189
+ */L("vaadin-password-field-button",Zh,{moduleId:"vaadin-password-field-button-styles"});class $v extends is($e(le(Z))){static get is(){return"vaadin-password-field-button"}static get template(){return K``}}G($v);/**
4190
4190
  * @license
4191
4191
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4192
4192
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4193
- */const $v=r=>class extends od(cr(Ht(Yr(r)))){static get properties(){return{revealButtonHidden:{type:Boolean,observer:"_revealButtonHiddenChanged",value:!1},passwordVisible:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_passwordVisibleChanged",readOnly:!0},i18n:{type:Object,value:()=>({reveal:"Show password"})}}}static get observers(){return["__i18nChanged(i18n)"]}constructor(){super(),this._setType("password"),this.__boundRevealButtonClick=this._onRevealButtonClick.bind(this),this.__boundRevealButtonMouseDown=this._onRevealButtonMouseDown.bind(this),this.__lastChange=""}get slotStyles(){const e=this.localName;return[...super.slotStyles,`
4193
+ */const Vv=r=>class extends nd(cr(Ht(Yr(r)))){static get properties(){return{revealButtonHidden:{type:Boolean,observer:"_revealButtonHiddenChanged",value:!1},passwordVisible:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_passwordVisibleChanged",readOnly:!0},i18n:{type:Object,value:()=>({reveal:"Show password"})}}}static get observers(){return["__i18nChanged(i18n)"]}constructor(){super(),this._setType("password"),this.__boundRevealButtonClick=this._onRevealButtonClick.bind(this),this.__boundRevealButtonMouseDown=this._onRevealButtonMouseDown.bind(this),this.__lastChange=""}get slotStyles(){const e=this.localName;return[...super.slotStyles,`
4194
4194
  ${e} [slot="input"]::-ms-reveal {
4195
4195
  display: none;
4196
4196
  }
@@ -4198,11 +4198,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4198
4198
  * @license
4199
4199
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4200
4200
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4201
- */const Vv=K`
4201
+ */const Wv=K`
4202
4202
  <div part="reveal-button" slot="suffix">
4203
4203
  <slot name="reveal"></slot>
4204
4204
  </div>
4205
- `;let fi;class Wv extends $v(ld){static get is(){return"vaadin-password-field"}static get template(){if(!fi){fi=super.template.cloneNode(!0);const e=Vv.content.querySelector('[part="reveal-button"]');fi.content.querySelector('[part="input-field"]').appendChild(e)}return fi}}G(Wv);const no=k`
4205
+ `;let fi;class jv extends Vv(hd){static get is(){return"vaadin-password-field"}static get template(){if(!fi){fi=super.template.cloneNode(!0);const e=Wv.content.querySelector('[part="reveal-button"]');fi.content.querySelector('[part="input-field"]').appendChild(e)}return fi}}G(jv);const no=k`
4206
4206
  :host {
4207
4207
  display: flex;
4208
4208
  align-items: center;
@@ -4286,7 +4286,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4286
4286
  width: var(--lumo-icon-size-m);
4287
4287
  height: var(--lumo-icon-size-m);
4288
4288
  }
4289
- `;L("vaadin-item",no,{moduleId:"lumo-item"});const hd=k`
4289
+ `;L("vaadin-item",no,{moduleId:"lumo-item"});const dd=k`
4290
4290
  :host {
4291
4291
  transition: background-color 100ms;
4292
4292
  overflow: hidden;
@@ -4298,11 +4298,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4298
4298
  :host([focused]:not([disabled])) {
4299
4299
  box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
4300
4300
  }
4301
- `;L("vaadin-combo-box-item",[no,hd],{moduleId:"lumo-combo-box-item"});/**
4301
+ `;L("vaadin-combo-box-item",[no,dd],{moduleId:"lumo-combo-box-item"});/**
4302
4302
  * @license
4303
4303
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
4304
4304
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4305
- */const dd=k`
4305
+ */const cd=k`
4306
4306
  [part~='loader'] {
4307
4307
  box-sizing: border-box;
4308
4308
  width: var(--lumo-icon-size-s);
@@ -4344,7 +4344,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4344
4344
  transform: rotate(360deg);
4345
4345
  }
4346
4346
  }
4347
- `,cd=k`
4347
+ `,ud=k`
4348
4348
  [part='content'] {
4349
4349
  padding: 0;
4350
4350
  }
@@ -4365,7 +4365,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4365
4365
  :host([bottom-aligned]) [part~='overlay'] {
4366
4366
  margin-bottom: var(--lumo-space-xs);
4367
4367
  }
4368
- `,ud=k`
4368
+ `,pd=k`
4369
4369
  [part~='loader'] {
4370
4370
  position: absolute;
4371
4371
  z-index: 1;
@@ -4373,24 +4373,24 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4373
4373
  top: var(--lumo-space-s);
4374
4374
  margin-inline: auto 0;
4375
4375
  }
4376
- `;L("vaadin-combo-box-overlay",[ur,to,cd,dd,ud,k`
4376
+ `;L("vaadin-combo-box-overlay",[ur,to,ud,cd,pd,k`
4377
4377
  :host {
4378
4378
  --_vaadin-combo-box-items-container-border-width: var(--lumo-space-xs);
4379
4379
  --_vaadin-combo-box-items-container-border-style: solid;
4380
4380
  }
4381
- `],{moduleId:"lumo-combo-box-overlay"});const jv=k`
4381
+ `],{moduleId:"lumo-combo-box-overlay"});const Uv=k`
4382
4382
  [part='toggle-button']::before {
4383
4383
  content: var(--lumo-icons-dropdown);
4384
4384
  }
4385
- `;L("vaadin-combo-box",[Rt,jv],{moduleId:"lumo-combo-box"});/**
4385
+ `;L("vaadin-combo-box",[Rt,Uv],{moduleId:"lumo-combo-box"});/**
4386
4386
  * @license
4387
4387
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4388
4388
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4389
- */const pd=r=>class extends r{static get properties(){return{index:{type:Number},item:{type:Object},label:{type:String},selected:{type:Boolean,value:!1,reflectToAttribute:!0},focused:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Function}}}static get observers(){return["__rendererOrItemChanged(renderer, index, item, selected, focused)","__updateLabel(label, renderer)"]}static get observedAttributes(){return[...super.observedAttributes,"hidden"]}attributeChangedCallback(e,t,i){e==="hidden"&&i!==null?this.index=void 0:super.attributeChangedCallback(e,t,i)}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;const e=this._owner.getAttribute("dir");e&&this.setAttribute("dir",e)}requestContentUpdate(){if(!this.renderer||this.hidden)return;const e={index:this.index,item:this.item,focused:this.focused,selected:this.selected};this.renderer(this,this._owner,e)}__rendererOrItemChanged(e,t,i){i===void 0||t===void 0||(this._oldRenderer!==e&&(this.innerHTML="",delete this._$litPart$),e&&(this._oldRenderer=e,this.requestContentUpdate()))}__updateLabel(e,t){t||(this.textContent=e)}};/**
4389
+ */const md=r=>class extends r{static get properties(){return{index:{type:Number},item:{type:Object},label:{type:String},selected:{type:Boolean,value:!1,reflectToAttribute:!0},focused:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Function}}}static get observers(){return["__rendererOrItemChanged(renderer, index, item, selected, focused)","__updateLabel(label, renderer)"]}static get observedAttributes(){return[...super.observedAttributes,"hidden"]}attributeChangedCallback(e,t,i){e==="hidden"&&i!==null?this.index=void 0:super.attributeChangedCallback(e,t,i)}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;const e=this._owner.getAttribute("dir");e&&this.setAttribute("dir",e)}requestContentUpdate(){if(!this.renderer||this.hidden)return;const e={index:this.index,item:this.item,focused:this.focused,selected:this.selected};this.renderer(this,this._owner,e)}__rendererOrItemChanged(e,t,i){i===void 0||t===void 0||(this._oldRenderer!==e&&(this.innerHTML="",delete this._$litPart$),e&&(this._oldRenderer=e,this.requestContentUpdate()))}__updateLabel(e,t){t||(this.textContent=e)}};/**
4390
4390
  * @license
4391
4391
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4392
4392
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4393
- */class Uv extends pd(le($e(Z))){static get template(){return K`
4393
+ */class Gv extends md(le($e(Z))){static get template(){return K`
4394
4394
  <style>
4395
4395
  :host {
4396
4396
  display: block;
@@ -4404,15 +4404,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4404
4404
  <div part="content">
4405
4405
  <slot></slot>
4406
4406
  </div>
4407
- `}static get is(){return"vaadin-combo-box-item"}}G(Uv);/**
4407
+ `}static get is(){return"vaadin-combo-box-item"}}G(Gv);/**
4408
4408
  * @license
4409
4409
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4410
4410
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4411
- */const md=r=>class extends rs(r){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}connectedCallback(){super.connectedCallback();const e=this._comboBox,t=e&&e.getAttribute("dir");t&&this.setAttribute("dir",t)}_shouldCloseOnOutsideClick(e){const t=e.composedPath();return!t.includes(this.positionTarget)&&!t.includes(this)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!Un(e.composedPath()[0])&&e.preventDefault()}_updateOverlayWidth(){const e=this.localName;this.style.setProperty(`--_${e}-default-width`,`${this.positionTarget.clientWidth}px`);const t=getComputedStyle(this._comboBox).getPropertyValue(`--${e}-width`);t===""?this.style.removeProperty(`--${e}-width`):this.style.setProperty(`--${e}-width`,t)}_setOverlayWidth(e,t){e&&t&&(this._updateOverlayWidth(),this._updatePosition())}};/**
4411
+ */const fd=r=>class extends rs(r){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}connectedCallback(){super.connectedCallback();const e=this._comboBox,t=e&&e.getAttribute("dir");t&&this.setAttribute("dir",t)}_shouldCloseOnOutsideClick(e){const t=e.composedPath();return!t.includes(this.positionTarget)&&!t.includes(this)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!Un(e.composedPath()[0])&&e.preventDefault()}_updateOverlayWidth(){const e=this.localName;this.style.setProperty(`--_${e}-default-width`,`${this.positionTarget.clientWidth}px`);const t=getComputedStyle(this._comboBox).getPropertyValue(`--${e}-width`);t===""?this.style.removeProperty(`--${e}-width`):this.style.setProperty(`--${e}-width`,t)}_setOverlayWidth(e,t){e&&t&&(this._updateOverlayWidth(),this._updatePosition())}};/**
4412
4412
  * @license
4413
4413
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4414
4414
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4415
- */const Gv=k`
4415
+ */const qv=k`
4416
4416
  #overlay {
4417
4417
  width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
4418
4418
  }
@@ -4422,13 +4422,13 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4422
4422
  flex-direction: column;
4423
4423
  height: 100%;
4424
4424
  }
4425
- `;L("vaadin-combo-box-overlay",[Zr,Gv],{moduleId:"vaadin-combo-box-overlay-styles"});class qv extends md(Jr($e(le(Z)))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return K`
4425
+ `;L("vaadin-combo-box-overlay",[Zr,qv],{moduleId:"vaadin-combo-box-overlay-styles"});class Yv extends fd(Jr($e(le(Z)))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return K`
4426
4426
  <div id="backdrop" part="backdrop" hidden></div>
4427
4427
  <div part="overlay" id="overlay">
4428
4428
  <div part="loader"></div>
4429
4429
  <div part="content" id="content"><slot></slot></div>
4430
4430
  </div>
4431
- `}}G(qv);/**
4431
+ `}}G(Yv);/**
4432
4432
  * @license
4433
4433
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
4434
4434
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4440,11 +4440,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4440
4440
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
4441
4441
  * Code distributed by Google as part of the polymer project is also
4442
4442
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
4443
- */const Ia=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),Yv=Ia&&Ia[1]>=8,Da=3,Xv={_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 r=this._virtualCount;return Math.max(0,r-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(r){r=this._clamp(r,0,this._maxVirtualStart),this._virtualStartVal=r},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(r){r%=this._physicalCount,r<0&&(r=this._physicalCount+r),this._physicalStartVal=r},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(r){this._physicalCountVal=r},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let r=this._firstVisibleIndexVal;if(r==null){let e=this._physicalTop+this._scrollOffset;r=this._iterateItems((t,i)=>{if(e+=this._getPhysicalSizeIncrement(t),e>this._scrollPosition)return i})||0,this._firstVisibleIndexVal=r}return r},get lastVisibleIndex(){let r=this._lastVisibleIndexVal;if(r==null){let e=this._physicalTop+this._scrollOffset;this._iterateItems((t,i)=>{e<this._scrollBottom&&(r=i),e+=this._getPhysicalSizeIncrement(t)}),this._lastVisibleIndexVal=r}return r},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const r=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let e=r-this._scrollPosition;const t=e>=0;if(this._scrollPosition=r,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(e)>this._physicalSize&&this._physicalSize>0){e-=this._scrollOffset;const i=Math.round(e/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(t);t?(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,t?null:i.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),Bi)}},_getReusables(r){let e,t,i;const o=[],n=this._hiddenContentSize*this._ratio,s=this._virtualStart,a=this._virtualEnd,l=this._physicalCount;let h=this._physicalTop+this._scrollOffset;const d=this._physicalBottom+this._scrollOffset,c=this._scrollPosition,u=this._scrollBottom;for(r?(e=this._physicalStart,t=c-h):(e=this._physicalEnd,t=d-u);i=this._getPhysicalSizeIncrement(e),t-=i,!(o.length>=l||t<=n);)if(r){if(a+o.length+1>=this._virtualCount||h+i>=c-this._scrollOffset)break;o.push(e),h+=i,e=(e+1)%l}else{if(s-o.length<=0||h+this._physicalSize-i<=u)break;o.push(e),h-=i,e=e===0?l-1:e-1}return{indexes:o,physicalTop:h-this._scrollOffset}},_update(r,e){if(!(r&&r.length===0||this._physicalCount===0)){if(this._assignModels(r),this._updateMetrics(r),e)for(;e.length;){const t=e.pop();this._physicalTop-=this._getPhysicalSizeIncrement(t)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(r){const e=this._clamp(this._physicalCount+r,Da,this._virtualCount-this._virtualStart)-this._physicalCount;let t=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){const i=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let o=0;o<e;o++)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()-i)/e,t=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||t===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,t)),Ph):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,t),Bi))}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const r=this._getReusables(!0);this._physicalTop=r.physicalTop,this._virtualStart+=r.indexes.length,this._physicalStart+=r.indexes.length,this._update(r.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(Da))},_itemsChanged(r){r.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,$r))},_iterateItems(r,e){let t,i,o,n;if(arguments.length===2&&e){for(n=0;n<e.length;n++)if(t=e[n],i=this._computeVidx(t),(o=r.call(this,t,i))!=null)return o}else{for(t=this._physicalStart,i=this._virtualStart;t<this._physicalCount;t++,i++)if((o=r.call(this,t,i))!=null)return o;for(t=0;t<this._physicalStart;t++,i++)if((o=r.call(this,t,i))!=null)return o}},_computeVidx(r){return r>=this._physicalStart?this._virtualStart+(r-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+r},_positionItems(){this._adjustScrollPosition();let r=this._physicalTop;this._iterateItems(e=>{this.translate3d(0,`${r}px`,0,this._physicalItems[e]),r+=this._physicalSizes[e]})},_getPhysicalSizeIncrement(r){return this._physicalSizes[r]},_adjustScrollPosition(){const r=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(r!==0){this._physicalTop-=r;const e=this._scrollPosition;!Yv&&e>0&&this._resetScrollPosition(e-r)}},_resetScrollPosition(r){this.scrollTarget&&r>=0&&(this._scrollTop=r,this._scrollPosition=this._scrollTop)},_updateScrollerSize(r){const e=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=e,(r||this._scrollHeight===0||this._scrollPosition>=e-this._physicalSize||Math.abs(e-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${e}px`,this._scrollHeight=e)},scrollToIndex(r){if(typeof r!="number"||r<0||r>this.items.length-1||(Sr(),this._physicalCount===0))return;r=this._clamp(r,0,this._virtualCount-1),(!this._isIndexRendered(r)||r>=this._maxVirtualStart)&&(this._virtualStart=r-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let e=this._physicalStart,t=this._virtualStart,i=0;const o=this._hiddenContentSize;for(;t<r&&i<=o;)i+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,t+=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)},$r)},_isIndexRendered(r){return r>=this._virtualStart&&r<=this._virtualEnd},_getPhysicalIndex(r){return(this._physicalStart+(r-this._virtualStart))%this._physicalCount},_clamp(r,e,t){return Math.min(t,Math.max(e,r))},_debounce(r,e,t){this._debouncers||(this._debouncers={}),this._debouncers[r]=Fe.debounce(this._debouncers[r],t,e.bind(this)),kh(this._debouncers[r])}};/**
4443
+ */const Da=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),Xv=Da&&Da[1]>=8,Oa=3,Kv={_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 r=this._virtualCount;return Math.max(0,r-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(r){r=this._clamp(r,0,this._maxVirtualStart),this._virtualStartVal=r},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(r){r%=this._physicalCount,r<0&&(r=this._physicalCount+r),this._physicalStartVal=r},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(r){this._physicalCountVal=r},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let r=this._firstVisibleIndexVal;if(r==null){let e=this._physicalTop+this._scrollOffset;r=this._iterateItems((t,i)=>{if(e+=this._getPhysicalSizeIncrement(t),e>this._scrollPosition)return i})||0,this._firstVisibleIndexVal=r}return r},get lastVisibleIndex(){let r=this._lastVisibleIndexVal;if(r==null){let e=this._physicalTop+this._scrollOffset;this._iterateItems((t,i)=>{e<this._scrollBottom&&(r=i),e+=this._getPhysicalSizeIncrement(t)}),this._lastVisibleIndexVal=r}return r},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const r=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let e=r-this._scrollPosition;const t=e>=0;if(this._scrollPosition=r,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(e)>this._physicalSize&&this._physicalSize>0){e-=this._scrollOffset;const i=Math.round(e/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(t);t?(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,t?null:i.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),Bi)}},_getReusables(r){let e,t,i;const o=[],n=this._hiddenContentSize*this._ratio,s=this._virtualStart,a=this._virtualEnd,l=this._physicalCount;let h=this._physicalTop+this._scrollOffset;const d=this._physicalBottom+this._scrollOffset,c=this._scrollPosition,u=this._scrollBottom;for(r?(e=this._physicalStart,t=c-h):(e=this._physicalEnd,t=d-u);i=this._getPhysicalSizeIncrement(e),t-=i,!(o.length>=l||t<=n);)if(r){if(a+o.length+1>=this._virtualCount||h+i>=c-this._scrollOffset)break;o.push(e),h+=i,e=(e+1)%l}else{if(s-o.length<=0||h+this._physicalSize-i<=u)break;o.push(e),h-=i,e=e===0?l-1:e-1}return{indexes:o,physicalTop:h-this._scrollOffset}},_update(r,e){if(!(r&&r.length===0||this._physicalCount===0)){if(this._assignModels(r),this._updateMetrics(r),e)for(;e.length;){const t=e.pop();this._physicalTop-=this._getPhysicalSizeIncrement(t)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(r){const e=this._clamp(this._physicalCount+r,Oa,this._virtualCount-this._virtualStart)-this._physicalCount;let t=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){const i=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let o=0;o<e;o++)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()-i)/e,t=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||t===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,t)),kh):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,t),Bi))}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const r=this._getReusables(!0);this._physicalTop=r.physicalTop,this._virtualStart+=r.indexes.length,this._physicalStart+=r.indexes.length,this._update(r.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(Oa))},_itemsChanged(r){r.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,$r))},_iterateItems(r,e){let t,i,o,n;if(arguments.length===2&&e){for(n=0;n<e.length;n++)if(t=e[n],i=this._computeVidx(t),(o=r.call(this,t,i))!=null)return o}else{for(t=this._physicalStart,i=this._virtualStart;t<this._physicalCount;t++,i++)if((o=r.call(this,t,i))!=null)return o;for(t=0;t<this._physicalStart;t++,i++)if((o=r.call(this,t,i))!=null)return o}},_computeVidx(r){return r>=this._physicalStart?this._virtualStart+(r-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+r},_positionItems(){this._adjustScrollPosition();let r=this._physicalTop;this._iterateItems(e=>{this.translate3d(0,`${r}px`,0,this._physicalItems[e]),r+=this._physicalSizes[e]})},_getPhysicalSizeIncrement(r){return this._physicalSizes[r]},_adjustScrollPosition(){const r=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(r!==0){this._physicalTop-=r;const e=this._scrollPosition;!Xv&&e>0&&this._resetScrollPosition(e-r)}},_resetScrollPosition(r){this.scrollTarget&&r>=0&&(this._scrollTop=r,this._scrollPosition=this._scrollTop)},_updateScrollerSize(r){const e=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=e,(r||this._scrollHeight===0||this._scrollPosition>=e-this._physicalSize||Math.abs(e-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${e}px`,this._scrollHeight=e)},scrollToIndex(r){if(typeof r!="number"||r<0||r>this.items.length-1||(Sr(),this._physicalCount===0))return;r=this._clamp(r,0,this._virtualCount-1),(!this._isIndexRendered(r)||r>=this._maxVirtualStart)&&(this._virtualStart=r-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let e=this._physicalStart,t=this._virtualStart,i=0;const o=this._hiddenContentSize;for(;t<r&&i<=o;)i+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,t+=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)},$r)},_isIndexRendered(r){return r>=this._virtualStart&&r<=this._virtualEnd},_getPhysicalIndex(r){return(this._physicalStart+(r-this._virtualStart))%this._physicalCount},_clamp(r,e,t){return Math.min(t,Math.max(e,r))},_debounce(r,e,t){this._debouncers||(this._debouncers={}),this._debouncers[r]=Fe.debounce(this._debouncers[r],t,e.bind(this)),Th(this._debouncers[r])}};/**
4444
4444
  * @license
4445
4445
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4446
4446
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4447
- */const Kv=1e5,No=1e3;class fd{constructor({createElements:e,updateElement:t,scrollTarget:i,scrollContainer:o,elementsContainer:n,reorderElements:s}){this.isAttached=!0,this._vidxOffset=0,this.createElements=e,this.updateElement=t,this.scrollTarget=i,this.scrollContainer=o,this.elementsContainer=n||o,this.reorderElements=s,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()),new ResizeObserver(([{contentRect:a}])=>{const l=a.width===0&&a.height===0;!l&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=l}).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",a=>this.__onWheel(a)),this.scrollTarget.addEventListener("virtualizer-element-focused",a=>this.__onElementFocused(a)),this.elementsContainer.addEventListener("focusin",()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}))}),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}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some(e=>e.__virtualizerPlaceholder)}scrollToIndex(e){if(typeof e!="number"||isNaN(e)||this.size===0||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),e=this._clamp(e,0,this.size-1);const t=this.__getVisibleElements().length;let i=Math.floor(e/this.size*this._virtualCount);this._virtualCount-i<t?(i=this._virtualCount-(this.size-e),this._vidxOffset=this._maxVirtualIndexOffset):i<t?e<No?(i=e,this._vidxOffset=0):(i=No,this._vidxOffset=e-i):this._vidxOffset=e-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),this.adjustedFirstVisibleIndex!==e&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(e)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=e)}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),Sr(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(e=0,t=this.size-1){const i=[];this.__getVisibleElements().forEach(o=>{o.__virtualIndex>=e&&o.__virtualIndex<=t&&(this.__updateElement(o,o.__virtualIndex,!0),i.push(o))}),this.__afterElementsUpdated(i)}_updateMetrics(e){Sr();let t=0,i=0;const o=this._physicalAverageCount,n=this._physicalAverage;this._iterateItems((s,a)=>{i+=this._physicalSizes[s],this._physicalSizes[s]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[s])),t+=this._physicalSizes[s],this._physicalAverageCount+=this._physicalSizes[s]?1:0},e),this._physicalSize=this._physicalSize+t-i,this._physicalAverageCount!==o&&(this._physicalAverage=Math.round((n*o+t)/this._physicalAverageCount))}__getBorderBoxHeight(e){const t=getComputedStyle(e),i=parseFloat(t.height)||0;if(t.boxSizing==="border-box")return i;const o=parseFloat(t.paddingBottom)||0,n=parseFloat(t.paddingTop)||0,s=parseFloat(t.borderBottomWidth)||0,a=parseFloat(t.borderTopWidth)||0;return i+o+n+s+a}__updateElement(e,t,i){e.__virtualizerPlaceholder&&(e.style.paddingTop="",e.style.opacity="",e.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(e.__lastUpdatedIndex!==t||i)&&(this.updateElement(e,t),e.__lastUpdatedIndex=t)}__afterElementsUpdated(e){e.forEach(t=>{const i=t.offsetHeight;if(i===0)t.style.paddingTop=`${this.__placeholderHeight}px`,t.style.opacity="0",t.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=Fe.debounce(this.__placeholderClearDebouncer,$r,()=>this._resizeHandler());else{this.__elementHeightQueue.push(i),this.__elementHeightQueue.shift();const o=this.__elementHeightQueue.filter(n=>n!==void 0);this.__placeholderHeight=Math.round(o.reduce((n,s)=>n+s,0)/o.length)}}),this.__pendingScrollToIndex!==void 0&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(e){const t=this.__getVisibleElements().find(i=>i.__virtualIndex===e);return t?this.scrollTarget.getBoundingClientRect().top-t.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(e){if(e===this.size)return;this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0;let t,i;if(e>0&&(t=this.adjustedFirstVisibleIndex,i=this.__getIndexScrollOffset(t)),this.__size=e,this._itemsChanged({path:"items"}),Sr(),e>0){t=Math.min(t,e-1),this.scrollToIndex(t);const o=this.__getIndexScrollOffset(t);i!==void 0&&o!==void 0&&(this._scrollTop+=i-o)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),Sr(),this._debounce("_update",this._update,Bi)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,Kv)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const e=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(e["padding-top"],10),this._isRTL=e.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(e){const t=this.createElements(e),i=document.createDocumentFragment();return t.forEach(o=>{o.style.position="absolute",i.appendChild(o),this.__resizeObserver.observe(o)}),this.elementsContainer.appendChild(i),t}_assignModels(e){const t=[];this._iterateItems((i,o)=>{const n=this._physicalItems[i];n.hidden=o>=this.size,n.hidden?delete n.__lastUpdatedIndex:(n.__virtualIndex=o+(this._vidxOffset||0),this.__updateElement(n,n.__virtualIndex),t.push(n))},e),this.__afterElementsUpdated(t)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(e,t,i,o){o.style.transform=`translateY(${t})`}toggleScrollListener(){}__getFocusedElement(e=this.__getVisibleElements()){return e.find(t=>t.contains(this.elementsContainer.getRootNode().activeElement)||t.contains(this.scrollTarget.getRootNode().activeElement))}__nextFocusableSiblingMissing(e,t){return t.indexOf(e)===t.length-1&&this.size>e.__virtualIndex+1}__previousFocusableSiblingMissing(e,t){return t.indexOf(e)===0&&e.__virtualIndex>0}__onElementFocused(e){if(!this.reorderElements)return;const t=e.detail.element;if(!t)return;const i=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(t,i)||this.__nextFocusableSiblingMissing(t,i))&&this.flush();const o=this.__getVisibleElements();this.__nextFocusableSiblingMissing(t,o)?(this._scrollTop+=Math.ceil(t.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(t,o)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(t.getBoundingClientRect().top),this.flush())}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const e=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const t=e>=0,i=this._getReusables(!t);i.indexes.length&&(this._physicalTop=i.physicalTop,t?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler())}e&&(this.__fixInvalidItemPositioningDebouncer=Fe.debounce(this.__fixInvalidItemPositioningDebouncer,yt.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=Fe.debounce(this.__scrollReorderDebouncer,yt.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(e)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const e=this._physicalTop>this._scrollTop,t=this._physicalBottom<this._scrollBottom,i=this.adjustedFirstVisibleIndex===0,o=this.adjustedLastVisibleIndex===this.size-1;if(e&&!i||t&&!o){const n=t,s=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(n?-1:1),this._scrollHandler(),this._ratio=s}}__onWheel(e){if(e.ctrlKey||this._hasScrolledAncestor(e.target,e.deltaX,e.deltaY))return;let t=e.deltaY;if(e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._scrollLineHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=t,e.preventDefault();return}t+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=Fe.debounce(this.__debouncerWheelAnimationFrame,$r,()=>{this._wheelAnimationFrame=!1});const i=Math.abs(e.deltaX)+Math.abs(t);this._canScroll(this.scrollTarget,e.deltaX,t)?(e.preventDefault(),this.scrollTarget.scrollTop+=t,this.scrollTarget.scrollLeft+=e.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=Fe.debounce(this._debouncerIgnoreNewWheel,yt.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&i<=this._previousMomentum||this._ignoreNewWheel?e.preventDefault():i>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=i}_hasScrolledAncestor(e,t,i){if(e===this.scrollTarget||e===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(e,t,i)&&["auto","scroll"].indexOf(getComputedStyle(e).overflow)!==-1)return!0;if(e!==this&&e.parentElement)return this._hasScrolledAncestor(e.parentElement,t,i)}_canScroll(e,t,i){return i>0&&e.scrollTop<e.scrollHeight-e.offsetHeight||i<0&&e.scrollTop>0||t>0&&e.scrollLeft<e.scrollWidth-e.offsetWidth||t<0&&e.scrollLeft>0}_increasePoolIfNeeded(e){if(this._physicalCount>2&&e){const t=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(e,Math.min(100,t)))}else super._increasePoolIfNeeded(e)}get _optPhysicalSize(){const e=super._optPhysicalSize;return e<=0||this.__hasPlaceholders()?e:e+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(this._physicalCount===0)return 0;const e=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),t=Math.max(...this._physicalSizes);return t>Math.min(...this._physicalSizes)?Math.max(0,t-e):0}_getScrollLineHeight(){const e=document.createElement("div");e.style.fontSize="initial",e.style.display="none",document.body.appendChild(e);const t=window.getComputedStyle(e).fontSize;return document.body.removeChild(e),t?window.parseInt(t):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(e=>!e.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const e=this._virtualStart+(this._vidxOffset||0),t=this.__getVisibleElements(),i=this.__getFocusedElement(t)||t[0];if(!i)return;const o=i.__virtualIndex-e,n=t.indexOf(i)-o;if(n>0)for(let s=0;s<n;s++)this.elementsContainer.appendChild(t[s]);else if(n<0)for(let s=t.length+n;s<t.length;s++)this.elementsContainer.insertBefore(t[s],t[0]);if(L_){const{transform:s}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=s})}}_adjustVirtualIndexOffset(e){const t=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(e)>1e4){const i=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(i*t)}else{const i=this._vidxOffset,o=No,n=100;this._scrollTop===0?(this._vidxOffset=0,i!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<o&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,n),super.scrollToIndex(this.firstVisibleIndex+(i-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=t,i!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-o&&this._vidxOffset<t&&(this._vidxOffset+=Math.min(t-this._vidxOffset,n),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-i)))}}}Object.setPrototypeOf(fd.prototype,Xv);class Zv{constructor(e){this.__adapter=new fd(e)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(e){this.__adapter.size=e}scrollToIndex(e){this.__adapter.scrollToIndex(e)}update(e=0,t=this.size-1){this.__adapter.update(e,t)}flush(){this.__adapter.flush()}}/**
4447
+ */const Zv=1e5,No=1e3;class _d{constructor({createElements:e,updateElement:t,scrollTarget:i,scrollContainer:o,elementsContainer:n,reorderElements:s}){this.isAttached=!0,this._vidxOffset=0,this.createElements=e,this.updateElement=t,this.scrollTarget=i,this.scrollContainer=o,this.elementsContainer=n||o,this.reorderElements=s,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()),new ResizeObserver(([{contentRect:a}])=>{const l=a.width===0&&a.height===0;!l&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=l}).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",a=>this.__onWheel(a)),this.scrollTarget.addEventListener("virtualizer-element-focused",a=>this.__onElementFocused(a)),this.elementsContainer.addEventListener("focusin",()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}))}),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}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some(e=>e.__virtualizerPlaceholder)}scrollToIndex(e){if(typeof e!="number"||isNaN(e)||this.size===0||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),e=this._clamp(e,0,this.size-1);const t=this.__getVisibleElements().length;let i=Math.floor(e/this.size*this._virtualCount);this._virtualCount-i<t?(i=this._virtualCount-(this.size-e),this._vidxOffset=this._maxVirtualIndexOffset):i<t?e<No?(i=e,this._vidxOffset=0):(i=No,this._vidxOffset=e-i):this._vidxOffset=e-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),this.adjustedFirstVisibleIndex!==e&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(e)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=e)}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),Sr(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(e=0,t=this.size-1){const i=[];this.__getVisibleElements().forEach(o=>{o.__virtualIndex>=e&&o.__virtualIndex<=t&&(this.__updateElement(o,o.__virtualIndex,!0),i.push(o))}),this.__afterElementsUpdated(i)}_updateMetrics(e){Sr();let t=0,i=0;const o=this._physicalAverageCount,n=this._physicalAverage;this._iterateItems((s,a)=>{i+=this._physicalSizes[s],this._physicalSizes[s]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[s])),t+=this._physicalSizes[s],this._physicalAverageCount+=this._physicalSizes[s]?1:0},e),this._physicalSize=this._physicalSize+t-i,this._physicalAverageCount!==o&&(this._physicalAverage=Math.round((n*o+t)/this._physicalAverageCount))}__getBorderBoxHeight(e){const t=getComputedStyle(e),i=parseFloat(t.height)||0;if(t.boxSizing==="border-box")return i;const o=parseFloat(t.paddingBottom)||0,n=parseFloat(t.paddingTop)||0,s=parseFloat(t.borderBottomWidth)||0,a=parseFloat(t.borderTopWidth)||0;return i+o+n+s+a}__updateElement(e,t,i){e.__virtualizerPlaceholder&&(e.style.paddingTop="",e.style.opacity="",e.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(e.__lastUpdatedIndex!==t||i)&&(this.updateElement(e,t),e.__lastUpdatedIndex=t)}__afterElementsUpdated(e){e.forEach(t=>{const i=t.offsetHeight;if(i===0)t.style.paddingTop=`${this.__placeholderHeight}px`,t.style.opacity="0",t.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=Fe.debounce(this.__placeholderClearDebouncer,$r,()=>this._resizeHandler());else{this.__elementHeightQueue.push(i),this.__elementHeightQueue.shift();const o=this.__elementHeightQueue.filter(n=>n!==void 0);this.__placeholderHeight=Math.round(o.reduce((n,s)=>n+s,0)/o.length)}}),this.__pendingScrollToIndex!==void 0&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(e){const t=this.__getVisibleElements().find(i=>i.__virtualIndex===e);return t?this.scrollTarget.getBoundingClientRect().top-t.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(e){if(e===this.size)return;this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0;let t,i;if(e>0&&(t=this.adjustedFirstVisibleIndex,i=this.__getIndexScrollOffset(t)),this.__size=e,this._itemsChanged({path:"items"}),Sr(),e>0){t=Math.min(t,e-1),this.scrollToIndex(t);const o=this.__getIndexScrollOffset(t);i!==void 0&&o!==void 0&&(this._scrollTop+=i-o)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),Sr(),this._debounce("_update",this._update,Bi)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,Zv)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const e=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(e["padding-top"],10),this._isRTL=e.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(e){const t=this.createElements(e),i=document.createDocumentFragment();return t.forEach(o=>{o.style.position="absolute",i.appendChild(o),this.__resizeObserver.observe(o)}),this.elementsContainer.appendChild(i),t}_assignModels(e){const t=[];this._iterateItems((i,o)=>{const n=this._physicalItems[i];n.hidden=o>=this.size,n.hidden?delete n.__lastUpdatedIndex:(n.__virtualIndex=o+(this._vidxOffset||0),this.__updateElement(n,n.__virtualIndex),t.push(n))},e),this.__afterElementsUpdated(t)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(e,t,i,o){o.style.transform=`translateY(${t})`}toggleScrollListener(){}__getFocusedElement(e=this.__getVisibleElements()){return e.find(t=>t.contains(this.elementsContainer.getRootNode().activeElement)||t.contains(this.scrollTarget.getRootNode().activeElement))}__nextFocusableSiblingMissing(e,t){return t.indexOf(e)===t.length-1&&this.size>e.__virtualIndex+1}__previousFocusableSiblingMissing(e,t){return t.indexOf(e)===0&&e.__virtualIndex>0}__onElementFocused(e){if(!this.reorderElements)return;const t=e.detail.element;if(!t)return;const i=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(t,i)||this.__nextFocusableSiblingMissing(t,i))&&this.flush();const o=this.__getVisibleElements();this.__nextFocusableSiblingMissing(t,o)?(this._scrollTop+=Math.ceil(t.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(t,o)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(t.getBoundingClientRect().top),this.flush())}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const e=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const t=e>=0,i=this._getReusables(!t);i.indexes.length&&(this._physicalTop=i.physicalTop,t?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler())}e&&(this.__fixInvalidItemPositioningDebouncer=Fe.debounce(this.__fixInvalidItemPositioningDebouncer,yt.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=Fe.debounce(this.__scrollReorderDebouncer,yt.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(e)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const e=this._physicalTop>this._scrollTop,t=this._physicalBottom<this._scrollBottom,i=this.adjustedFirstVisibleIndex===0,o=this.adjustedLastVisibleIndex===this.size-1;if(e&&!i||t&&!o){const n=t,s=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(n?-1:1),this._scrollHandler(),this._ratio=s}}__onWheel(e){if(e.ctrlKey||this._hasScrolledAncestor(e.target,e.deltaX,e.deltaY))return;let t=e.deltaY;if(e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._scrollLineHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=t,e.preventDefault();return}t+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=Fe.debounce(this.__debouncerWheelAnimationFrame,$r,()=>{this._wheelAnimationFrame=!1});const i=Math.abs(e.deltaX)+Math.abs(t);this._canScroll(this.scrollTarget,e.deltaX,t)?(e.preventDefault(),this.scrollTarget.scrollTop+=t,this.scrollTarget.scrollLeft+=e.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=Fe.debounce(this._debouncerIgnoreNewWheel,yt.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&i<=this._previousMomentum||this._ignoreNewWheel?e.preventDefault():i>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=i}_hasScrolledAncestor(e,t,i){if(e===this.scrollTarget||e===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(e,t,i)&&["auto","scroll"].indexOf(getComputedStyle(e).overflow)!==-1)return!0;if(e!==this&&e.parentElement)return this._hasScrolledAncestor(e.parentElement,t,i)}_canScroll(e,t,i){return i>0&&e.scrollTop<e.scrollHeight-e.offsetHeight||i<0&&e.scrollTop>0||t>0&&e.scrollLeft<e.scrollWidth-e.offsetWidth||t<0&&e.scrollLeft>0}_increasePoolIfNeeded(e){if(this._physicalCount>2&&e){const t=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(e,Math.min(100,t)))}else super._increasePoolIfNeeded(e)}get _optPhysicalSize(){const e=super._optPhysicalSize;return e<=0||this.__hasPlaceholders()?e:e+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(this._physicalCount===0)return 0;const e=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),t=Math.max(...this._physicalSizes);return t>Math.min(...this._physicalSizes)?Math.max(0,t-e):0}_getScrollLineHeight(){const e=document.createElement("div");e.style.fontSize="initial",e.style.display="none",document.body.appendChild(e);const t=window.getComputedStyle(e).fontSize;return document.body.removeChild(e),t?window.parseInt(t):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(e=>!e.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const e=this._virtualStart+(this._vidxOffset||0),t=this.__getVisibleElements(),i=this.__getFocusedElement(t)||t[0];if(!i)return;const o=i.__virtualIndex-e,n=t.indexOf(i)-o;if(n>0)for(let s=0;s<n;s++)this.elementsContainer.appendChild(t[s]);else if(n<0)for(let s=t.length+n;s<t.length;s++)this.elementsContainer.insertBefore(t[s],t[0]);if(H_){const{transform:s}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=s})}}_adjustVirtualIndexOffset(e){const t=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(e)>1e4){const i=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(i*t)}else{const i=this._vidxOffset,o=No,n=100;this._scrollTop===0?(this._vidxOffset=0,i!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<o&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,n),super.scrollToIndex(this.firstVisibleIndex+(i-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=t,i!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-o&&this._vidxOffset<t&&(this._vidxOffset+=Math.min(t-this._vidxOffset,n),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-i)))}}}Object.setPrototypeOf(_d.prototype,Kv);class Jv{constructor(e){this.__adapter=new _d(e)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(e){this.__adapter.size=e}scrollToIndex(e){this.__adapter.scrollToIndex(e)}update(e=0,t=this.size-1){this.__adapter.update(e,t)}flush(){this.__adapter.flush()}}/**
4448
4448
  * @license
4449
4449
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4450
4450
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4452,11 +4452,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4452
4452
  * @license
4453
4453
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4454
4454
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4455
- */const _d=r=>class extends r{static get properties(){return{items:{type:Array,sync:!0,observer:"__itemsChanged"},focusedIndex:{type:Number,sync:!0,observer:"__focusedIndexChanged"},loading:{type:Boolean,sync:!0,observer:"__loadingChanged"},opened:{type:Boolean,sync:!0,observer:"__openedChanged"},selectedItem:{type:Object,sync:!0,observer:"__selectedItemChanged"},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,sync:!0,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this)}get _viewportTotalPaddingBottom(){if(this._cachedViewportTotalPaddingBottom===void 0){const e=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[e.paddingBottom,e.borderBottomWidth].map(t=>parseInt(t,10)).reduce((t,i)=>t+i)}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${qr()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",e=>e.stopPropagation()),this.__patchWheelOverScrolling()}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update())}scrollIntoView(e){if(!this.__virtualizer||!(this.opened&&e>=0))return;const t=this._visibleItemsCount();let i=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),i=e-t+1):e>this.__virtualizer.firstVisibleIndex&&(i=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,i));const o=[...this.children].find(l=>!l.hidden&&l.index===this.__virtualizer.lastVisibleIndex);if(!o||e!==o.index)return;const n=o.getBoundingClientRect(),s=this.getBoundingClientRect(),a=n.bottom-s.bottom+this._viewportTotalPaddingBottom;a>0&&(this.scrollTop+=a)}_isItemSelected(e,t,i){return e instanceof wt?!1:i&&e!==void 0&&t!==void 0?Ri(i,e)===Ri(i,t):e===t}__initVirtualizer(){this.__virtualizer=new Zv({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0})}__itemsChanged(e){e&&this.__virtualizer&&this.requestContentUpdate()}__loadingChanged(){this.requestContentUpdate()}__openedChanged(e){e&&(this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate())}__selectedItemChanged(){this.requestContentUpdate()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.requestContentUpdate()}__focusedIndexChanged(e,t){e!==t&&this.requestContentUpdate(),e>=0&&!this.loading&&this.scrollIntoView(e)}__rendererChanged(e,t){(e||t)&&this.requestContentUpdate()}__createElements(e){return[...Array(e)].map(()=>{const t=document.createElement(`${this.__hostTagName}-item`);return t.addEventListener("click",this.__boundOnItemClick),t.tabIndex="-1",t.style.width="100%",t})}_updateElement(e,t){const i=this.items[t],o=this.focusedIndex,n=this._isItemSelected(i,this.selectedItem,this.itemIdPath);e.setProperties({item:i,index:t,label:this.getItemLabel(i),selected:n,renderer:this.renderer,focused:!this.loading&&o===t}),typeof this.itemClassNameGenerator=="function"?e.className=this.itemClassNameGenerator(i):e.className!==""&&(e.className=""),e.performUpdate&&!e.hasUpdated&&e.performUpdate(),e.id=`${this.__hostTagName}-item-${t}`,e.setAttribute("role",t!==void 0?"option":!1),e.setAttribute("aria-selected",n.toString()),e.setAttribute("aria-posinset",t+1),e.setAttribute("aria-setsize",this.items.length),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme"),i instanceof wt&&this.__requestItemByIndex(t)}__onItemClick(e){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:e.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",e=>{const t=this.scrollTop===0,i=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(t&&e.deltaY<0||i&&e.deltaY>0)&&e.preventDefault()})}__requestItemByIndex(e){requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:e}}))})}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}};/**
4455
+ */const vd=r=>class extends r{static get properties(){return{items:{type:Array,sync:!0,observer:"__itemsChanged"},focusedIndex:{type:Number,sync:!0,observer:"__focusedIndexChanged"},loading:{type:Boolean,sync:!0,observer:"__loadingChanged"},opened:{type:Boolean,sync:!0,observer:"__openedChanged"},selectedItem:{type:Object,sync:!0,observer:"__selectedItemChanged"},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,sync:!0,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this)}get _viewportTotalPaddingBottom(){if(this._cachedViewportTotalPaddingBottom===void 0){const e=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[e.paddingBottom,e.borderBottomWidth].map(t=>parseInt(t,10)).reduce((t,i)=>t+i)}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${qr()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",e=>e.stopPropagation()),this.__patchWheelOverScrolling()}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update())}scrollIntoView(e){if(!this.__virtualizer||!(this.opened&&e>=0))return;const t=this._visibleItemsCount();let i=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),i=e-t+1):e>this.__virtualizer.firstVisibleIndex&&(i=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,i));const o=[...this.children].find(l=>!l.hidden&&l.index===this.__virtualizer.lastVisibleIndex);if(!o||e!==o.index)return;const n=o.getBoundingClientRect(),s=this.getBoundingClientRect(),a=n.bottom-s.bottom+this._viewportTotalPaddingBottom;a>0&&(this.scrollTop+=a)}_isItemSelected(e,t,i){return e instanceof wt?!1:i&&e!==void 0&&t!==void 0?Ri(i,e)===Ri(i,t):e===t}__initVirtualizer(){this.__virtualizer=new Jv({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0})}__itemsChanged(e){e&&this.__virtualizer&&this.requestContentUpdate()}__loadingChanged(){this.requestContentUpdate()}__openedChanged(e){e&&(this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate())}__selectedItemChanged(){this.requestContentUpdate()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.requestContentUpdate()}__focusedIndexChanged(e,t){e!==t&&this.requestContentUpdate(),e>=0&&!this.loading&&this.scrollIntoView(e)}__rendererChanged(e,t){(e||t)&&this.requestContentUpdate()}__createElements(e){return[...Array(e)].map(()=>{const t=document.createElement(`${this.__hostTagName}-item`);return t.addEventListener("click",this.__boundOnItemClick),t.tabIndex="-1",t.style.width="100%",t})}_updateElement(e,t){const i=this.items[t],o=this.focusedIndex,n=this._isItemSelected(i,this.selectedItem,this.itemIdPath);e.setProperties({item:i,index:t,label:this.getItemLabel(i),selected:n,renderer:this.renderer,focused:!this.loading&&o===t}),typeof this.itemClassNameGenerator=="function"?e.className=this.itemClassNameGenerator(i):e.className!==""&&(e.className=""),e.performUpdate&&!e.hasUpdated&&e.performUpdate(),e.id=`${this.__hostTagName}-item-${t}`,e.setAttribute("role",t!==void 0?"option":!1),e.setAttribute("aria-selected",n.toString()),e.setAttribute("aria-posinset",t+1),e.setAttribute("aria-setsize",this.items.length),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme"),i instanceof wt&&this.__requestItemByIndex(t)}__onItemClick(e){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:e.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",e=>{const t=this.scrollTop===0,i=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(t&&e.deltaY<0||i&&e.deltaY>0)&&e.preventDefault()})}__requestItemByIndex(e){requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:e}}))})}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}};/**
4456
4456
  * @license
4457
4457
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4458
4458
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4459
- */class Jv extends _d(Z){static get is(){return"vaadin-combo-box-scroller"}static get template(){return K`
4459
+ */class Qv extends vd(Z){static get is(){return"vaadin-combo-box-scroller"}static get template(){return K`
4460
4460
  <style>
4461
4461
  :host {
4462
4462
  display: block;
@@ -4483,15 +4483,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4483
4483
  <div id="selector">
4484
4484
  <slot></slot>
4485
4485
  </div>
4486
- `}}G(Jv);/**
4486
+ `}}G(Qv);/**
4487
4487
  * @license
4488
4488
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4489
4489
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4490
- */const Qv=r=>class extends hs(r){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}};/**
4490
+ */const eg=r=>class extends hs(r){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}};/**
4491
4491
  * @license
4492
4492
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4493
4493
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4494
- */function Fi(r,e,t=0){let i=e;for(const o of r.subCaches){const n=o.parentCacheIndex;if(i<=n)break;if(i<=n+o.flatSize)return Fi(o,i-n-1,t+1);i-=o.flatSize}return{cache:r,item:r.items[i],index:i,page:Math.floor(i/r.pageSize),level:t}}function vd({getItemId:r},e,t,i=0,o=0){for(let n=0;n<e.items.length;n++){const s=e.items[n];if(s&&r(s)===r(t))return{cache:e,level:i,item:s,index:n,page:Math.floor(n/e.pageSize),subCache:e.getSubCache(n),flatIndex:o+e.getFlatIndex(n)}}for(const n of e.subCaches){const s=o+e.getFlatIndex(n.parentCacheIndex),a=vd({getItemId:r},n,t,i+1,s+1);if(a)return a}}function gd(r,[e,...t],i=0){e===1/0&&(e=r.size-1);const o=r.getFlatIndex(e),n=r.getSubCache(e);return n&&n.flatSize>0&&t.length?gd(n,t,i+o+1):i+o}/**
4494
+ */function Fi(r,e,t=0){let i=e;for(const o of r.subCaches){const n=o.parentCacheIndex;if(i<=n)break;if(i<=n+o.flatSize)return Fi(o,i-n-1,t+1);i-=o.flatSize}return{cache:r,item:r.items[i],index:i,page:Math.floor(i/r.pageSize),level:t}}function gd({getItemId:r},e,t,i=0,o=0){for(let n=0;n<e.items.length;n++){const s=e.items[n];if(s&&r(s)===r(t))return{cache:e,level:i,item:s,index:n,page:Math.floor(n/e.pageSize),subCache:e.getSubCache(n),flatIndex:o+e.getFlatIndex(n)}}for(const n of e.subCaches){const s=o+e.getFlatIndex(n.parentCacheIndex),a=gd({getItemId:r},n,t,i+1,s+1);if(a)return a}}function bd(r,[e,...t],i=0){e===1/0&&(e=r.size-1);const o=r.getFlatIndex(e),n=r.getSubCache(e);return n&&n.flatSize>0&&t.length?bd(n,t,i+o+1):i+o}/**
4495
4495
  * @license
4496
4496
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4497
4497
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4499,11 +4499,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4499
4499
  * @license
4500
4500
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4501
4501
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4502
- */class eg extends EventTarget{constructor(e,{size:t,pageSize:i,isExpanded:o,getItemId:n,isPlaceholder:s,placeholder:a,dataProvider:l,dataProviderParams:h}){super(),Te(this,"host"),Te(this,"dataProvider"),Te(this,"dataProviderParams"),Te(this,"pageSize"),Te(this,"isExpanded"),Te(this,"getItemId"),Te(this,"rootCache"),Te(this,"placeholder"),Te(this,"isPlaceholder"),this.host=e,this.pageSize=i,this.getItemId=n,this.isExpanded=o,this.placeholder=a,this.isPlaceholder=s,this.dataProvider=l,this.dataProviderParams=h,this.rootCache=this.__createRootCache(t)}get flatSize(){return this.rootCache.flatSize}get __cacheContext(){return{isExpanded:this.isExpanded,placeholder:this.placeholder,__controller:this}}isLoading(){return this.rootCache.isLoading}setPageSize(e){this.pageSize=e,this.clearCache()}setDataProvider(e){this.dataProvider=e,this.clearCache()}recalculateFlatSize(){this.rootCache.recalculateFlatSize()}clearCache(){this.rootCache=this.__createRootCache(this.rootCache.size)}getFlatIndexContext(e){return Fi(this.rootCache,e)}getItemContext(e){return vd({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return gd(this.rootCache,e)}ensureFlatIndexLoaded(e){const{cache:t,page:i,item:o}=this.getFlatIndexContext(e);this.__isItemLoaded(o)||this.__loadCachePage(t,i)}ensureFlatIndexHierarchy(e){const{cache:t,item:i,index:o}=this.getFlatIndexContext(e);if(this.__isItemLoaded(i)&&this.isExpanded(i)&&!t.getSubCache(o)){const n=t.createSubCache(o);this.__loadCachePage(n,0)}}loadFirstPage(){this.__loadCachePage(this.rootCache,0)}__createRootCache(e){return new ds(this.__cacheContext,this.pageSize,e)}__loadCachePage(e,t){if(!this.dataProvider||e.pendingRequests[t])return;let i={page:t,pageSize:this.pageSize,parentItem:e.parentItem};this.dataProviderParams&&(i=ki(ki({},i),this.dataProviderParams()));const o=(n,s)=>{e.pendingRequests[t]===o&&(s!==void 0?e.size=s:i.parentItem&&(e.size=n.length),e.setPage(t,n),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete e.pendingRequests[t],this.dispatchEvent(new CustomEvent("page-loaded")))};e.pendingRequests[t]=o,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(i,o)}__isItemLoaded(e){return this.isPlaceholder?!this.isPlaceholder(e):this.placeholder?e!==this.placeholder:!!e}}/**
4502
+ */class tg extends EventTarget{constructor(e,{size:t,pageSize:i,isExpanded:o,getItemId:n,isPlaceholder:s,placeholder:a,dataProvider:l,dataProviderParams:h}){super(),Te(this,"host"),Te(this,"dataProvider"),Te(this,"dataProviderParams"),Te(this,"pageSize"),Te(this,"isExpanded"),Te(this,"getItemId"),Te(this,"rootCache"),Te(this,"placeholder"),Te(this,"isPlaceholder"),this.host=e,this.pageSize=i,this.getItemId=n,this.isExpanded=o,this.placeholder=a,this.isPlaceholder=s,this.dataProvider=l,this.dataProviderParams=h,this.rootCache=this.__createRootCache(t)}get flatSize(){return this.rootCache.flatSize}get __cacheContext(){return{isExpanded:this.isExpanded,placeholder:this.placeholder,__controller:this}}isLoading(){return this.rootCache.isLoading}setPageSize(e){this.pageSize=e,this.clearCache()}setDataProvider(e){this.dataProvider=e,this.clearCache()}recalculateFlatSize(){this.rootCache.recalculateFlatSize()}clearCache(){this.rootCache=this.__createRootCache(this.rootCache.size)}getFlatIndexContext(e){return Fi(this.rootCache,e)}getItemContext(e){return gd({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return bd(this.rootCache,e)}ensureFlatIndexLoaded(e){const{cache:t,page:i,item:o}=this.getFlatIndexContext(e);this.__isItemLoaded(o)||this.__loadCachePage(t,i)}ensureFlatIndexHierarchy(e){const{cache:t,item:i,index:o}=this.getFlatIndexContext(e);if(this.__isItemLoaded(i)&&this.isExpanded(i)&&!t.getSubCache(o)){const n=t.createSubCache(o);this.__loadCachePage(n,0)}}loadFirstPage(){this.__loadCachePage(this.rootCache,0)}__createRootCache(e){return new ds(this.__cacheContext,this.pageSize,e)}__loadCachePage(e,t){if(!this.dataProvider||e.pendingRequests[t])return;let i={page:t,pageSize:this.pageSize,parentItem:e.parentItem};this.dataProviderParams&&(i=ki(ki({},i),this.dataProviderParams()));const o=(n,s)=>{e.pendingRequests[t]===o&&(s!==void 0?e.size=s:i.parentItem&&(e.size=n.length),e.setPage(t,n),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete e.pendingRequests[t],this.dispatchEvent(new CustomEvent("page-loaded")))};e.pendingRequests[t]=o,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(i,o)}__isItemLoaded(e){return this.isPlaceholder?!this.isPlaceholder(e):this.placeholder?e!==this.placeholder:!!e}}/**
4503
4503
  * @license
4504
4504
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4505
4505
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4506
- */const bd=r=>class extends r{static get properties(){return{pageSize:{type:Number,value:50,observer:"_pageSizeChanged",sync:!0},size:{type:Number,observer:"_sizeChanged",sync:!0},dataProvider:{type:Object,observer:"_dataProviderChanged",sync:!0},__dataProviderInitialized:{type:Boolean,value:!1},__previousDataProviderFilter:{type:String}}}static get observers(){return["_dataProviderFilterChanged(filter)","_warnDataProviderValue(dataProvider, value)","_ensureFirstPage(opened)"]}constructor(){super(),this.__dataProviderController=new eg(this,{placeholder:new wt,isPlaceholder:e=>e instanceof wt,dataProviderParams:()=>({filter:this.filter})}),this.__dataProviderController.addEventListener("page-requested",this.__onDataProviderPageRequested.bind(this)),this.__dataProviderController.addEventListener("page-loaded",this.__onDataProviderPageLoaded.bind(this))}ready(){super.ready(),this._scroller.addEventListener("index-requested",e=>{if(!this._shouldFetchData())return;const t=e.detail.index;t!==void 0&&this.__dataProviderController.ensureFlatIndexLoaded(t)}),this.__dataProviderInitialized=!0,this.dataProvider&&this.__synchronizeControllerState()}_dataProviderFilterChanged(e){if(this.__previousDataProviderFilter===void 0&&e===""){this.__previousDataProviderFilter=e;return}this.__previousDataProviderFilter!==e&&(this.__previousDataProviderFilter=e,this.__keepOverlayOpened=!0,this.size=void 0,this.clearCache(),this.__keepOverlayOpened=!1)}_shouldFetchData(){return this.dataProvider?this.opened||this.filter&&this.filter.length:!1}_ensureFirstPage(e){!this._shouldFetchData()||!e||(this._forceNextRequest||this.size===void 0?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this.size>0&&this.__dataProviderController.ensureFlatIndexLoaded(0))}__onDataProviderPageRequested(){this.loading=!0}__onDataProviderPageLoaded(){const{rootCache:e}=this.__dataProviderController;e.items=[...e.items],this.__synchronizeControllerState(),!this.opened&&!this._isInputFocused()&&this._commitValue()}clearCache(){this.dataProvider&&(this.__dataProviderController.clearCache(),this.__synchronizeControllerState(),this._shouldFetchData()?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this._forceNextRequest=!0)}_sizeChanged(e){const{rootCache:t}=this.__dataProviderController;t.size!==e&&(t.size=e,t.items=[...t.items],this.__synchronizeControllerState())}_filteredItemsChanged(e){if(super._filteredItemsChanged(e),this.dataProvider&&e){const{rootCache:t}=this.__dataProviderController;t.items!==e&&(t.items=e,this.__synchronizeControllerState())}}__synchronizeControllerState(){if(this.__dataProviderInitialized&&this.dataProvider){const{rootCache:e}=this.__dataProviderController;this.size=e.size,this.filteredItems=e.items,this.loading=this.__dataProviderController.isLoading()}}_pageSizeChanged(e,t){if(Math.floor(e)!==e||e<1)throw this.pageSize=t,new Error("`pageSize` value must be an integer > 0");this.__dataProviderController.setPageSize(e),this.clearCache()}_dataProviderChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.dataProvider=t}),this.__dataProviderController.setDataProvider(e),this.clearCache()}_ensureItemsOrDataProvider(e){if(this.items!==void 0&&this.dataProvider!==void 0)throw e(),new Error("Using `items` and `dataProvider` together is not supported")}_warnDataProviderValue(e,t){if(e&&t!==""&&(this.selectedItem===void 0||this.selectedItem===null)){const i=this.__getItemIndexByValue(this.filteredItems,t);(i<0||!this._getItemLabel(this.filteredItems[i]))&&console.warn("Warning: unable to determine the label for the provided `value`. Nothing to display in the text field. This usually happens when setting an initial `value` before any items are returned from the `dataProvider` callback. Consider setting `selectedItem` instead of `value`")}}};/**
4506
+ */const yd=r=>class extends r{static get properties(){return{pageSize:{type:Number,value:50,observer:"_pageSizeChanged",sync:!0},size:{type:Number,observer:"_sizeChanged",sync:!0},dataProvider:{type:Object,observer:"_dataProviderChanged",sync:!0},__dataProviderInitialized:{type:Boolean,value:!1},__previousDataProviderFilter:{type:String}}}static get observers(){return["_dataProviderFilterChanged(filter)","_warnDataProviderValue(dataProvider, value)","_ensureFirstPage(opened)"]}constructor(){super(),this.__dataProviderController=new tg(this,{placeholder:new wt,isPlaceholder:e=>e instanceof wt,dataProviderParams:()=>({filter:this.filter})}),this.__dataProviderController.addEventListener("page-requested",this.__onDataProviderPageRequested.bind(this)),this.__dataProviderController.addEventListener("page-loaded",this.__onDataProviderPageLoaded.bind(this))}ready(){super.ready(),this._scroller.addEventListener("index-requested",e=>{if(!this._shouldFetchData())return;const t=e.detail.index;t!==void 0&&this.__dataProviderController.ensureFlatIndexLoaded(t)}),this.__dataProviderInitialized=!0,this.dataProvider&&this.__synchronizeControllerState()}_dataProviderFilterChanged(e){if(this.__previousDataProviderFilter===void 0&&e===""){this.__previousDataProviderFilter=e;return}this.__previousDataProviderFilter!==e&&(this.__previousDataProviderFilter=e,this.__keepOverlayOpened=!0,this.size=void 0,this.clearCache(),this.__keepOverlayOpened=!1)}_shouldFetchData(){return this.dataProvider?this.opened||this.filter&&this.filter.length:!1}_ensureFirstPage(e){!this._shouldFetchData()||!e||(this._forceNextRequest||this.size===void 0?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this.size>0&&this.__dataProviderController.ensureFlatIndexLoaded(0))}__onDataProviderPageRequested(){this.loading=!0}__onDataProviderPageLoaded(){const{rootCache:e}=this.__dataProviderController;e.items=[...e.items],this.__synchronizeControllerState(),!this.opened&&!this._isInputFocused()&&this._commitValue()}clearCache(){this.dataProvider&&(this.__dataProviderController.clearCache(),this.__synchronizeControllerState(),this._shouldFetchData()?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this._forceNextRequest=!0)}_sizeChanged(e){const{rootCache:t}=this.__dataProviderController;t.size!==e&&(t.size=e,t.items=[...t.items],this.__synchronizeControllerState())}_filteredItemsChanged(e){if(super._filteredItemsChanged(e),this.dataProvider&&e){const{rootCache:t}=this.__dataProviderController;t.items!==e&&(t.items=e,this.__synchronizeControllerState())}}__synchronizeControllerState(){if(this.__dataProviderInitialized&&this.dataProvider){const{rootCache:e}=this.__dataProviderController;this.size=e.size,this.filteredItems=e.items,this.loading=this.__dataProviderController.isLoading()}}_pageSizeChanged(e,t){if(Math.floor(e)!==e||e<1)throw this.pageSize=t,new Error("`pageSize` value must be an integer > 0");this.__dataProviderController.setPageSize(e),this.clearCache()}_dataProviderChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.dataProvider=t}),this.__dataProviderController.setDataProvider(e),this.clearCache()}_ensureItemsOrDataProvider(e){if(this.items!==void 0&&this.dataProvider!==void 0)throw e(),new Error("Using `items` and `dataProvider` together is not supported")}_warnDataProviderValue(e,t){if(e&&t!==""&&(this.selectedItem===void 0||this.selectedItem===null)){const i=this.__getItemIndexByValue(this.filteredItems,t);(i<0||!this._getItemLabel(this.filteredItems[i]))&&console.warn("Warning: unable to determine the label for the provided `value`. Nothing to display in the text field. This usually happens when setting an initial `value` before any items are returned from the `dataProvider` callback. Consider setting `selectedItem` instead of `value`")}}};/**
4507
4507
  * @license
4508
4508
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4509
4509
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4511,11 +4511,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4511
4511
  * @license
4512
4512
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4513
4513
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4514
- */function Oa(r){return r!=null}function Ma(r,e){return r.findIndex(t=>t instanceof wt?!1:e(t))}const yd=r=>class extends Qr(et(Kn(Ht(Lt(Yr(cr(r))))))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Object,sync:!0},items:{type:Array,sync:!0,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},selectedItem:{type:Object,notify:!0,sync:!0},itemClassNameGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0},itemIdPath:{type:String,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_closeOnBlurIsPrevented:Boolean,_scroller:{type:Object,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"},__keepOverlayOpened:{type:Boolean,sync:!0}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading, __keepOverlayOpened)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, _theme, itemClassNameGenerator)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(e){super._inputElementChanged(e);const t=this._nativeInput;t&&(t.autocomplete="off",t.autocapitalize="off",t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-expanded",!!this.opened),t.setAttribute("spellcheck","false"),t.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown))}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const e=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront()})};this.addEventListener("mousedown",e),this.addEventListener("touchstart",e),so(this),this.addController(new ad(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(e=>{e.requestContentUpdate()}))}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(e,t,i){super._propertiesChanged(e,t,i),t.filter!==void 0&&this._filterChanged(t.filter)}updated(e){super.updated(e),e.has("filter")&&this._filterChanged(this.filter)}_initOverlay(){const e=this.$.overlay;e._comboBox=this,e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("opened-changed",t=>{this._overlayOpened=t.detail.value}),this._overlayElement=e}_initScroller(e){const t=document.createElement(`${this._tagNamePrefix}-scroller`);t.owner=e||this,t.getItemLabel=this._getItemLabel.bind(this),t.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const i=this._overlayElement;i.renderer=o=>{o.innerHTML||o.appendChild(t)},i.requestContentUpdate(),this._scroller=t}_updateScroller(e,t,i,o,n,s,a,l,h,d){if(e&&(i&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:i?t:[],opened:i,loading:o,selectedItem:n,itemIdPath:s,focusedIndex:a,renderer:l,theme:h,itemClassNameGenerator:d}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate()}catch(c){}}_openedOrItemsChanged(e,t,i,o){this._overlayOpened=e&&(o||i||!!(t&&t.length))}_overlayOpenedChanged(e,t){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):t&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(e,t){t!==void 0&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&Gn(this.inputElement)}_updateActiveDescendant(e){const t=this._nativeInput;if(!t)return;const i=this._getItemElements().find(o=>o.index===e);i?t.setAttribute("aria-activedescendant",i.id):t.removeAttribute("aria-activedescendant")}_openedChanged(e,t){if(t===void 0)return;e?!this._isInputFocused()&&!gn&&this.inputElement&&this.inputElement.focus():this._onClosed();const i=this._nativeInput;i&&(i.setAttribute("aria-expanded",!!e),e?i.setAttribute("aria-controls",this._scroller.id):i.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open()}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open())}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e)}_onKeyDown(e){super._onKeyDown(e),e.key==="ArrowDown"?(this._onArrowDown(),e.preventDefault()):e.key==="ArrowUp"&&(this._onArrowUp(),e.preventDefault())}_getItemLabel(e){let t=e&&this.itemLabelPath?Ri(this.itemLabelPath,e):void 0;return t==null&&(t=e?e.toString():""),t}_getItemValue(e){let t=e&&this.itemValuePath?Ri(this.itemValuePath,e):void 0;return t===void 0&&(t=e?e.toString():""),t}_onArrowDown(){if(this.opened){const e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const e=this._dropdownItems;e&&(this._focusedIndex=e.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(e),this._markAllSelectionRange()}}_setSelectionRange(e,t){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,t)}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(this._inputElementValue!==void 0){const e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e)}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close()}_onEnter(e){if(!this._hasValidInputValue()){e.preventDefault(),e.stopPropagation();return}this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){const e=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!e}_onEscape(e){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(e.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("click",()=>{gn&&!this._isInputFocused()&&document.activeElement.blur()}))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}_clearFilter(){this.filter=""}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this.selectedItem!==e&&(this.selectedItem=e),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(this._inputElementValue===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const e=[this.selectedItem,...this._dropdownItems||[]],t=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!t){const i=this._inputElementValue;this._lastCustomValue=i;const o=new CustomEvent("custom-value-set",{detail:i,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(o),o.defaultPrevented||(this.value=i)}else!this.allowCustomValue&&!this.opened&&t?this.value=this._getItemValue(t):this._revertInputValueToValue()}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(e){const t=this._inputElementValue,i={};this.filter===t?this._filterChanged(this.filter):i.filter=t,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(i.opened=!0),this.setProperties(i)}_onChange(e){e.stopPropagation()}_itemLabelPathChanged(e){typeof e!="string"&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem)}_selectedItemChanged(e){if(e==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const t=this._getItemValue(e);if(this.value!==t&&(this.value=t,this.value!==t))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e)}}_valueChanged(e,t){e===""&&t===void 0||(Oa(e)?(this._getItemValue(this.selectedItem)!==e&&this._selectItemForValue(e),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=e),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this._clearFilter(),this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.items=t}),e?this.filteredItems=e.slice(0):t&&(this.filteredItems=null)}_filteredItemsChanged(e){this._setDropdownItems(e)}_filterItems(e,t){return e&&e.filter(i=>(t=t?t.toString().toLowerCase():"",this._getItemLabel(i).toString().toLowerCase().indexOf(t)>-1))}_selectItemForValue(e){const t=this.__getItemIndexByValue(this.filteredItems,e),i=this.selectedItem;t>=0?this.selectedItem=this.filteredItems[t]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&i===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){const t=this._dropdownItems;this._dropdownItems=e;const i=t?t[this._focusedIndex]:null,o=this.__getItemIndexByValue(e,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&o>=0&&(this.selectedItem=e[o]);const n=this.__getItemIndexByValue(e,this._getItemValue(i));n>-1?this._focusedIndex=n:this._focusedIndex=this.__getItemIndexByLabel(e,this.filter)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(e){this._scroller&&this._scroller.scrollIntoView(e)}__getItemIndexByValue(e,t){return!e||!Oa(t)?-1:Ma(e,i=>this._getItemValue(i)===t)}__getItemIndexByLabel(e,t){return!e||!t?-1:Ma(e,i=>this._getItemLabel(i).toString().toLowerCase()===t.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof wt)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(e.detail.item),this.close())}_setFocused(e){if(super._setFocused(e),!e&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}if(Ji()){this._closeOrCommit();return}this.opened?this._overlayOpened||this.close():this._commitValue()}}_shouldRemoveFocus(e){return e.relatedTarget&&e.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:e.relatedTarget===this._overlayElement?(e.composedPath()[0].focus(),!1):!0}_onTouchend(e){!this.clearElement||e.composedPath()[0]!==this.clearElement||(e.preventDefault(),this._onClearAction())}};/**
4514
+ */function Ma(r){return r!=null}function Na(r,e){return r.findIndex(t=>t instanceof wt?!1:e(t))}const xd=r=>class extends Qr(et(Kn(Ht(Lt(Yr(cr(r))))))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Object,sync:!0},items:{type:Array,sync:!0,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},selectedItem:{type:Object,notify:!0,sync:!0},itemClassNameGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0},itemIdPath:{type:String,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_closeOnBlurIsPrevented:Boolean,_scroller:{type:Object,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"},__keepOverlayOpened:{type:Boolean,sync:!0}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading, __keepOverlayOpened)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, _theme, itemClassNameGenerator)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(e){super._inputElementChanged(e);const t=this._nativeInput;t&&(t.autocomplete="off",t.autocapitalize="off",t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-expanded",!!this.opened),t.setAttribute("spellcheck","false"),t.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown))}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const e=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront()})};this.addEventListener("mousedown",e),this.addEventListener("touchstart",e),so(this),this.addController(new ld(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(e=>{e.requestContentUpdate()}))}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(e,t,i){super._propertiesChanged(e,t,i),t.filter!==void 0&&this._filterChanged(t.filter)}updated(e){super.updated(e),e.has("filter")&&this._filterChanged(this.filter)}_initOverlay(){const e=this.$.overlay;e._comboBox=this,e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("opened-changed",t=>{this._overlayOpened=t.detail.value}),this._overlayElement=e}_initScroller(e){const t=document.createElement(`${this._tagNamePrefix}-scroller`);t.owner=e||this,t.getItemLabel=this._getItemLabel.bind(this),t.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const i=this._overlayElement;i.renderer=o=>{o.innerHTML||o.appendChild(t)},i.requestContentUpdate(),this._scroller=t}_updateScroller(e,t,i,o,n,s,a,l,h,d){if(e&&(i&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:i?t:[],opened:i,loading:o,selectedItem:n,itemIdPath:s,focusedIndex:a,renderer:l,theme:h,itemClassNameGenerator:d}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate()}catch(c){}}_openedOrItemsChanged(e,t,i,o){this._overlayOpened=e&&(o||i||!!(t&&t.length))}_overlayOpenedChanged(e,t){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):t&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(e,t){t!==void 0&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&Gn(this.inputElement)}_updateActiveDescendant(e){const t=this._nativeInput;if(!t)return;const i=this._getItemElements().find(o=>o.index===e);i?t.setAttribute("aria-activedescendant",i.id):t.removeAttribute("aria-activedescendant")}_openedChanged(e,t){if(t===void 0)return;e?!this._isInputFocused()&&!gn&&this.inputElement&&this.inputElement.focus():this._onClosed();const i=this._nativeInput;i&&(i.setAttribute("aria-expanded",!!e),e?i.setAttribute("aria-controls",this._scroller.id):i.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open()}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open())}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e)}_onKeyDown(e){super._onKeyDown(e),e.key==="ArrowDown"?(this._onArrowDown(),e.preventDefault()):e.key==="ArrowUp"&&(this._onArrowUp(),e.preventDefault())}_getItemLabel(e){let t=e&&this.itemLabelPath?Ri(this.itemLabelPath,e):void 0;return t==null&&(t=e?e.toString():""),t}_getItemValue(e){let t=e&&this.itemValuePath?Ri(this.itemValuePath,e):void 0;return t===void 0&&(t=e?e.toString():""),t}_onArrowDown(){if(this.opened){const e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const e=this._dropdownItems;e&&(this._focusedIndex=e.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(e),this._markAllSelectionRange()}}_setSelectionRange(e,t){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,t)}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(this._inputElementValue!==void 0){const e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e)}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close()}_onEnter(e){if(!this._hasValidInputValue()){e.preventDefault(),e.stopPropagation();return}this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){const e=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!e}_onEscape(e){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(e.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("click",()=>{gn&&!this._isInputFocused()&&document.activeElement.blur()}))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}_clearFilter(){this.filter=""}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this.selectedItem!==e&&(this.selectedItem=e),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(this._inputElementValue===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const e=[this.selectedItem,...this._dropdownItems||[]],t=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!t){const i=this._inputElementValue;this._lastCustomValue=i;const o=new CustomEvent("custom-value-set",{detail:i,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(o),o.defaultPrevented||(this.value=i)}else!this.allowCustomValue&&!this.opened&&t?this.value=this._getItemValue(t):this._revertInputValueToValue()}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(e){const t=this._inputElementValue,i={};this.filter===t?this._filterChanged(this.filter):i.filter=t,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(i.opened=!0),this.setProperties(i)}_onChange(e){e.stopPropagation()}_itemLabelPathChanged(e){typeof e!="string"&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem)}_selectedItemChanged(e){if(e==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const t=this._getItemValue(e);if(this.value!==t&&(this.value=t,this.value!==t))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e)}}_valueChanged(e,t){e===""&&t===void 0||(Ma(e)?(this._getItemValue(this.selectedItem)!==e&&this._selectItemForValue(e),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=e),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this._clearFilter(),this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.items=t}),e?this.filteredItems=e.slice(0):t&&(this.filteredItems=null)}_filteredItemsChanged(e){this._setDropdownItems(e)}_filterItems(e,t){return e&&e.filter(i=>(t=t?t.toString().toLowerCase():"",this._getItemLabel(i).toString().toLowerCase().indexOf(t)>-1))}_selectItemForValue(e){const t=this.__getItemIndexByValue(this.filteredItems,e),i=this.selectedItem;t>=0?this.selectedItem=this.filteredItems[t]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&i===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){const t=this._dropdownItems;this._dropdownItems=e;const i=t?t[this._focusedIndex]:null,o=this.__getItemIndexByValue(e,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&o>=0&&(this.selectedItem=e[o]);const n=this.__getItemIndexByValue(e,this._getItemValue(i));n>-1?this._focusedIndex=n:this._focusedIndex=this.__getItemIndexByLabel(e,this.filter)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(e){this._scroller&&this._scroller.scrollIntoView(e)}__getItemIndexByValue(e,t){return!e||!Ma(t)?-1:Na(e,i=>this._getItemValue(i)===t)}__getItemIndexByLabel(e,t){return!e||!t?-1:Na(e,i=>this._getItemLabel(i).toString().toLowerCase()===t.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof wt)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(e.detail.item),this.close())}_setFocused(e){if(super._setFocused(e),!e&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}if(Ji()){this._closeOrCommit();return}this.opened?this._overlayOpened||this.close():this._commitValue()}}_shouldRemoveFocus(e){return e.relatedTarget&&e.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:e.relatedTarget===this._overlayElement?(e.composedPath()[0].focus(),!1):!0}_onTouchend(e){!this.clearElement||e.composedPath()[0]!==this.clearElement||(e.preventDefault(),this._onClearAction())}};/**
4515
4515
  * @license
4516
4516
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4517
4517
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4518
- */L("vaadin-combo-box",oo,{moduleId:"vaadin-combo-box-styles"});class tg extends bd(yd(Qv(io(le(Ve(Z)))))){static get is(){return"vaadin-combo-box"}static get template(){return K`
4518
+ */L("vaadin-combo-box",oo,{moduleId:"vaadin-combo-box-styles"});class rg extends yd(xd(eg(io(le(Ve(Z)))))){static get is(){return"vaadin-combo-box"}static get template(){return K`
4519
4519
  <style>
4520
4520
  :host([opened]) {
4521
4521
  pointer-events: auto;
@@ -4560,11 +4560,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4560
4560
  ></vaadin-combo-box-overlay>
4561
4561
 
4562
4562
  <slot name="tooltip"></slot>
4563
- `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Xr(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Kr(this.inputElement,this._labelController)),this._tooltipController=new ht(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(e){e.stopPropagation(),super._onClearButtonClick(e)}_onHostClick(e){const t=e.composedPath();(t.includes(this._labelNode)||t.includes(this._positionTarget))&&super._onHostClick(e)}}G(tg);/**
4563
+ `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Xr(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Kr(this.inputElement,this._labelController)),this._tooltipController=new ht(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(e){e.stopPropagation(),super._onClearButtonClick(e)}_onHostClick(e){const t=e.composedPath();(t.includes(this._labelNode)||t.includes(this._positionTarget))&&super._onHostClick(e)}}G(rg);/**
4564
4564
  * @license
4565
4565
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4566
4566
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4567
- */const rg=k`
4567
+ */const ig=k`
4568
4568
  :host {
4569
4569
  font-size: var(--lumo-font-size-xxs);
4570
4570
  line-height: 1;
@@ -4653,18 +4653,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4653
4653
  -webkit-text-fill-color: var(--lumo-disabled-text-color);
4654
4654
  pointer-events: none;
4655
4655
  }
4656
- `;L("vaadin-multi-select-combo-box-chip",[Qn,rg],{moduleId:"lumo-multi-select-combo-box-chip"});/**
4656
+ `;L("vaadin-multi-select-combo-box-chip",[Qn,ig],{moduleId:"lumo-multi-select-combo-box-chip"});/**
4657
4657
  * @license
4658
4658
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4659
4659
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4660
- */const ig=k`
4660
+ */const og=k`
4661
4661
  @media (any-hover: hover) {
4662
4662
  :host(:hover[readonly]) {
4663
4663
  background-color: transparent;
4664
4664
  cursor: default;
4665
4665
  }
4666
4666
  }
4667
- `;L("vaadin-multi-select-combo-box-item",[no,hd,ig],{moduleId:"lumo-multi-select-combo-box-item"});L("vaadin-multi-select-combo-box-overlay",[ur,to,cd,dd,ud,k`
4667
+ `;L("vaadin-multi-select-combo-box-item",[no,dd,og],{moduleId:"lumo-multi-select-combo-box-item"});L("vaadin-multi-select-combo-box-overlay",[ur,to,ud,cd,pd,k`
4668
4668
  :host {
4669
4669
  --_vaadin-multi-select-combo-box-items-container-border-width: var(--lumo-space-xs);
4670
4670
  --_vaadin-multi-select-combo-box-items-container-border-style: solid;
@@ -4673,7 +4673,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4673
4673
  :host([auto-expand-vertically]) {
4674
4674
  padding-block: var(--lumo-space-xs);
4675
4675
  }
4676
- `,{moduleId:"lumo-multi-select-combo-box-container"});const og=k`
4676
+ `,{moduleId:"lumo-multi-select-combo-box-container"});const ng=k`
4677
4677
  :host([has-value]) {
4678
4678
  padding-inline-start: 0;
4679
4679
  }
@@ -4726,11 +4726,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4726
4726
  color: var(--lumo-contrast-60pct);
4727
4727
  cursor: var(--lumo-clickable-cursor);
4728
4728
  }
4729
- `;L("vaadin-multi-select-combo-box",[Rt,og],{moduleId:"lumo-multi-select-combo-box"});/**
4729
+ `;L("vaadin-multi-select-combo-box",[Rt,ng],{moduleId:"lumo-multi-select-combo-box"});/**
4730
4730
  * @license
4731
4731
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4732
4732
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4733
- */class ng extends le(Z){static get is(){return"vaadin-multi-select-combo-box-chip"}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},label:{type:String},item:{type:Object}}}static get template(){return K`
4733
+ */class sg extends le(Z){static get is(){return"vaadin-multi-select-combo-box-chip"}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},label:{type:String},item:{type:Object}}}static get template(){return K`
4734
4734
  <style>
4735
4735
  :host {
4736
4736
  display: inline-flex;
@@ -4759,7 +4759,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4759
4759
  </style>
4760
4760
  <div part="label">[[label]]</div>
4761
4761
  <div part="remove-button" on-click="_onRemoveClick"></div>
4762
- `}_onRemoveClick(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("item-removed",{detail:{item:this.item},bubbles:!0,composed:!0}))}}G(ng);/**
4762
+ `}_onRemoveClick(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("item-removed",{detail:{item:this.item},bubbles:!0,composed:!0}))}}G(sg);/**
4763
4763
  * @license
4764
4764
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4765
4765
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4773,11 +4773,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4773
4773
  :host([auto-expand-vertically]) #wrapper {
4774
4774
  flex-wrap: wrap;
4775
4775
  }
4776
- `,{moduleId:"vaadin-multi-select-combo-box-container-styles"});let _i;class sg extends jh{static get is(){return"vaadin-multi-select-combo-box-container"}static get template(){if(!_i){_i=super.template.cloneNode(!0);const e=_i.content,t=e.querySelectorAll("slot"),i=document.createElement("div");i.setAttribute("id","wrapper"),e.insertBefore(i,t[2]),i.appendChild(t[0]),i.appendChild(t[1])}return _i}static get properties(){return{autoExpandVertically:{type:Boolean,reflectToAttribute:!0}}}}G(sg);/**
4776
+ `,{moduleId:"vaadin-multi-select-combo-box-container-styles"});let _i;class ag extends Uh{static get is(){return"vaadin-multi-select-combo-box-container"}static get template(){if(!_i){_i=super.template.cloneNode(!0);const e=_i.content,t=e.querySelectorAll("slot"),i=document.createElement("div");i.setAttribute("id","wrapper"),e.insertBefore(i,t[2]),i.appendChild(t[0]),i.appendChild(t[1])}return _i}static get properties(){return{autoExpandVertically:{type:Boolean,reflectToAttribute:!0}}}}G(ag);/**
4777
4777
  * @license
4778
4778
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4779
4779
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4780
- */class ag extends pd(le($e(Z))){static get is(){return"vaadin-multi-select-combo-box-item"}static get template(){return K`
4780
+ */class lg extends md(le($e(Z))){static get is(){return"vaadin-multi-select-combo-box-item"}static get template(){return K`
4781
4781
  <style>
4782
4782
  :host {
4783
4783
  display: block;
@@ -4791,11 +4791,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4791
4791
  <div part="content">
4792
4792
  <slot></slot>
4793
4793
  </div>
4794
- `}}G(ag);/**
4794
+ `}}G(lg);/**
4795
4795
  * @license
4796
4796
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4797
4797
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4798
- */const lg=k`
4798
+ */const hg=k`
4799
4799
  #overlay {
4800
4800
  width: var(
4801
4801
  --vaadin-multi-select-combo-box-overlay-width,
@@ -4808,17 +4808,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4808
4808
  flex-direction: column;
4809
4809
  height: 100%;
4810
4810
  }
4811
- `;L("vaadin-multi-select-combo-box-overlay",[Zr,lg],{moduleId:"vaadin-multi-select-combo-box-overlay-styles"});class hg extends md(Jr($e(le(Z)))){static get is(){return"vaadin-multi-select-combo-box-overlay"}static get template(){return K`
4811
+ `;L("vaadin-multi-select-combo-box-overlay",[Zr,hg],{moduleId:"vaadin-multi-select-combo-box-overlay-styles"});class dg extends fd(Jr($e(le(Z)))){static get is(){return"vaadin-multi-select-combo-box-overlay"}static get template(){return K`
4812
4812
  <div id="backdrop" part="backdrop" hidden></div>
4813
4813
  <div part="overlay" id="overlay">
4814
4814
  <div part="loader"></div>
4815
4815
  <div part="content" id="content"><slot></slot></div>
4816
4816
  </div>
4817
- `}}G(hg);/**
4817
+ `}}G(dg);/**
4818
4818
  * @license
4819
4819
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4820
4820
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4821
- */class dg extends _d(Z){static get is(){return"vaadin-multi-select-combo-box-scroller"}static get template(){return K`
4821
+ */class cg extends vd(Z){static get is(){return"vaadin-multi-select-combo-box-scroller"}static get template(){return K`
4822
4822
  <style>
4823
4823
  :host {
4824
4824
  display: block;
@@ -4845,11 +4845,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4845
4845
  <div id="selector">
4846
4846
  <slot></slot>
4847
4847
  </div>
4848
- `}ready(){super.ready(),this.setAttribute("aria-multiselectable","true")}_isItemSelected(e,t,i){return e instanceof wt||this.owner.readonly?!1:this.owner._findIndex(e,this.owner.selectedItems,i)>-1}_updateElement(e,t){super._updateElement(e,t),e.toggleAttribute("readonly",this.owner.readonly)}}G(dg);/**
4848
+ `}ready(){super.ready(),this.setAttribute("aria-multiselectable","true")}_isItemSelected(e,t,i){return e instanceof wt||this.owner.readonly?!1:this.owner._findIndex(e,this.owner.selectedItems,i)>-1}_updateElement(e,t){super._updateElement(e,t),e.toggleAttribute("readonly",this.owner.readonly)}}G(cg);/**
4849
4849
  * @license
4850
4850
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4851
4851
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4852
- */class cg extends bd(yd(le(Z))){static get is(){return"vaadin-multi-select-combo-box-internal"}static get template(){return K`
4852
+ */class ug extends yd(xd(le(Z))){static get is(){return"vaadin-multi-select-combo-box-internal"}static get template(){return K`
4853
4853
  <style>
4854
4854
  :host([opened]) {
4855
4855
  pointer-events: auto;
@@ -4867,15 +4867,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4867
4867
  no-vertical-overlap
4868
4868
  restore-focus-node="[[inputElement]]"
4869
4869
  ></vaadin-multi-select-combo-box-overlay>
4870
- `}static get properties(){return{filteredItems:{type:Array,notify:!0},keepFilter:{type:Boolean,value:!1},loading:{type:Boolean,notify:!0},size:{type:Number,notify:!0},selectedItems:{type:Array,value:()=>[]},selectedItemsOnTop:{type:Boolean,value:!1},lastFilter:{type:String,notify:!0},topGroup:{type:Array,observer:"_topGroupChanged"},_target:{type:Object}}}static get observers(){return["_readonlyChanged(readonly)"]}get clearElement(){return this.querySelector('[part="clear-button"]')}get _tagNamePrefix(){return"vaadin-multi-select-combo-box"}constructor(){super(),this.addEventListener("custom-value-set",this.__onCustomValueSet.bind(this))}open(){!this.disabled&&!(this.readonly&&this.selectedItems.length===0)&&(this.opened=!0)}ready(){super.ready(),this._target=this,this._toggleElement=this.querySelector(".toggle-button")}_readonlyChanged(){this._setDropdownItems(this.filteredItems)}_setDropdownItems(e){if(this.readonly){super._setDropdownItems(this.selectedItems);return}if(this.filter||!this.selectedItemsOnTop){super._setDropdownItems(e);return}if(e&&e.length&&this.topGroup&&this.topGroup.length){const t=e.filter(i=>this._comboBox._findIndex(i,this.topGroup,this.itemIdPath)===-1);super._setDropdownItems(this.topGroup.concat(t));return}super._setDropdownItems(e)}_topGroupChanged(e){e&&this._setDropdownItems(this.filteredItems)}_initScroller(){const e=this.getRootNode().host;this._comboBox=e,super._initScroller(e)}_onEnter(e){if(this.opened){if(e.preventDefault(),e.stopPropagation(),this.readonly)this.close();else if(this._hasValidInputValue()){const t=this._dropdownItems[this._focusedIndex];this._commitValue(),this._focusedIndex=this._dropdownItems.indexOf(t)}return}super._onEnter(e)}_onEscape(e){if(this.readonly){e.stopPropagation(),this.opened&&this.close();return}super._onEscape(e)}_clearFilter(){(!this.keepFilter||!this.opened)&&super._clearFilter()}_revertInputValueToValue(){super._revertInputValueToValue(),this.filter=""}_commitValue(){this.lastFilter=this.filter,super._commitValue()}_onArrowDown(){this.readonly?this.opened||this.open():super._onArrowDown()}_onArrowUp(){this.readonly?this.opened||this.open():super._onArrowUp()}_setFocused(e){e||(this._ignoreCommitValue=!0),super._setFocused(e),!e&&this.readonly&&!this._closeOnBlurIsPrevented&&this.close()}_onClosed(){this._ignoreCommitValue=!0,super._onClosed()}_detectAndDispatchChange(){if(this._ignoreCommitValue){this._ignoreCommitValue=!1,this.clear(),this._inputElementValue="";return}super._detectAndDispatchChange()}_overlaySelectedItemChanged(e){e.stopPropagation(),!this.readonly&&(e.detail.item instanceof wt||this.opened&&(this.lastFilter=this.filter,this.dispatchEvent(new CustomEvent("combo-box-item-selected",{detail:{item:e.detail.item}}))))}_shouldFetchData(){return this.readonly?!1:super._shouldFetchData()}clearCache(){this.readonly||super.clearCache()}__onCustomValueSet(e){this._ignoreCommitValue&&e.stopImmediatePropagation()}}G(cg);/**
4870
+ `}static get properties(){return{filteredItems:{type:Array,notify:!0},keepFilter:{type:Boolean,value:!1},loading:{type:Boolean,notify:!0},size:{type:Number,notify:!0},selectedItems:{type:Array,value:()=>[]},selectedItemsOnTop:{type:Boolean,value:!1},lastFilter:{type:String,notify:!0},topGroup:{type:Array,observer:"_topGroupChanged"},_target:{type:Object}}}static get observers(){return["_readonlyChanged(readonly)"]}get clearElement(){return this.querySelector('[part="clear-button"]')}get _tagNamePrefix(){return"vaadin-multi-select-combo-box"}constructor(){super(),this.addEventListener("custom-value-set",this.__onCustomValueSet.bind(this))}open(){!this.disabled&&!(this.readonly&&this.selectedItems.length===0)&&(this.opened=!0)}ready(){super.ready(),this._target=this,this._toggleElement=this.querySelector(".toggle-button")}_readonlyChanged(){this._setDropdownItems(this.filteredItems)}_setDropdownItems(e){if(this.readonly){super._setDropdownItems(this.selectedItems);return}if(this.filter||!this.selectedItemsOnTop){super._setDropdownItems(e);return}if(e&&e.length&&this.topGroup&&this.topGroup.length){const t=e.filter(i=>this._comboBox._findIndex(i,this.topGroup,this.itemIdPath)===-1);super._setDropdownItems(this.topGroup.concat(t));return}super._setDropdownItems(e)}_topGroupChanged(e){e&&this._setDropdownItems(this.filteredItems)}_initScroller(){const e=this.getRootNode().host;this._comboBox=e,super._initScroller(e)}_onEnter(e){if(this.opened){if(e.preventDefault(),e.stopPropagation(),this.readonly)this.close();else if(this._hasValidInputValue()){const t=this._dropdownItems[this._focusedIndex];this._commitValue(),this._focusedIndex=this._dropdownItems.indexOf(t)}return}super._onEnter(e)}_onEscape(e){if(this.readonly){e.stopPropagation(),this.opened&&this.close();return}super._onEscape(e)}_clearFilter(){(!this.keepFilter||!this.opened)&&super._clearFilter()}_revertInputValueToValue(){super._revertInputValueToValue(),this.filter=""}_commitValue(){this.lastFilter=this.filter,super._commitValue()}_onArrowDown(){this.readonly?this.opened||this.open():super._onArrowDown()}_onArrowUp(){this.readonly?this.opened||this.open():super._onArrowUp()}_setFocused(e){e||(this._ignoreCommitValue=!0),super._setFocused(e),!e&&this.readonly&&!this._closeOnBlurIsPrevented&&this.close()}_onClosed(){this._ignoreCommitValue=!0,super._onClosed()}_detectAndDispatchChange(){if(this._ignoreCommitValue){this._ignoreCommitValue=!1,this.clear(),this._inputElementValue="";return}super._detectAndDispatchChange()}_overlaySelectedItemChanged(e){e.stopPropagation(),!this.readonly&&(e.detail.item instanceof wt||this.opened&&(this.lastFilter=this.filter,this.dispatchEvent(new CustomEvent("combo-box-item-selected",{detail:{item:e.detail.item}}))))}_shouldFetchData(){return this.readonly?!1:super._shouldFetchData()}clearCache(){this.readonly||super.clearCache()}__onCustomValueSet(e){this._ignoreCommitValue&&e.stopImmediatePropagation()}}G(ug);/**
4871
4871
  * @license
4872
4872
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4873
4873
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4874
- */const vi=new ResizeObserver(r=>{setTimeout(()=>{r.forEach(e=>{e.target.resizables?e.target.resizables.forEach(t=>{t._onResize(e.contentRect)}):e.target._onResize(e.contentRect)})})}),xd=ve(r=>class extends r{get _observeParent(){return!1}connectedCallback(){if(super.connectedCallback(),vi.observe(this),this._observeParent){const e=this.parentNode instanceof ShadowRoot?this.parentNode.host:this.parentNode;e.resizables||(e.resizables=new Set,vi.observe(e)),e.resizables.add(this),this.__parent=e}}disconnectedCallback(){super.disconnectedCallback(),vi.unobserve(this);const e=this.__parent;if(this._observeParent&&e){const t=e.resizables;t&&(t.delete(this),t.size===0&&vi.unobserve(e)),this.__parent=null}}_onResize(e){}});/**
4874
+ */const vi=new ResizeObserver(r=>{setTimeout(()=>{r.forEach(e=>{e.target.resizables?e.target.resizables.forEach(t=>{t._onResize(e.contentRect)}):e.target._onResize(e.contentRect)})})}),wd=ve(r=>class extends r{get _observeParent(){return!1}connectedCallback(){if(super.connectedCallback(),vi.observe(this),this._observeParent){const e=this.parentNode instanceof ShadowRoot?this.parentNode.host:this.parentNode;e.resizables||(e.resizables=new Set,vi.observe(e)),e.resizables.add(this),this.__parent=e}}disconnectedCallback(){super.disconnectedCallback(),vi.unobserve(this);const e=this.__parent;if(this._observeParent&&e){const t=e.resizables;t&&(t.delete(this),t.size===0&&vi.unobserve(e)),this.__parent=null}}_onResize(e){}});/**
4875
4875
  * @license
4876
4876
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4877
4877
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4878
- */const ug=k`
4878
+ */const pg=k`
4879
4879
  :host {
4880
4880
  --input-min-width: var(--vaadin-multi-select-combo-box-input-min-width, 4em);
4881
4881
  --_chip-min-width: var(--vaadin-multi-select-combo-box-chip-min-width, 50px);
@@ -4913,7 +4913,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4913
4913
  :host([auto-expand-horizontally]) [class$='container'] {
4914
4914
  width: auto;
4915
4915
  }
4916
- `;L("vaadin-multi-select-combo-box",[oo,ug],{moduleId:"vaadin-multi-select-combo-box-styles"});class pg extends xd(io(le(Ve(Z)))){static get is(){return"vaadin-multi-select-combo-box"}static get template(){return K`
4916
+ `;L("vaadin-multi-select-combo-box",[oo,pg],{moduleId:"vaadin-multi-select-combo-box-styles"});class mg extends wd(io(le(Ve(Z)))){static get is(){return"vaadin-multi-select-combo-box"}static get template(){return K`
4917
4917
  <div class="vaadin-multi-select-combo-box-container">
4918
4918
  <div part="label">
4919
4919
  <slot name="label"></slot>
@@ -4989,7 +4989,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4989
4989
  color: transparent !important;
4990
4990
  forced-color-adjust: none;
4991
4991
  }
4992
- `]}get clearElement(){return this.$.clearButton}get _chips(){return[...this.querySelectorAll('[slot="chip"]')]}get _hasValue(){return this.selectedItems&&this.selectedItems.length>0}ready(){super.ready(),this.addController(new Xr(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Kr(this.inputElement,this._labelController)),this._tooltipController=new ht(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._inputField=this.shadowRoot.querySelector('[part="input-field"]'),this._overflowController=new Ne(this,"overflow","vaadin-multi-select-combo-box-chip",{initializer:e=>{e.addEventListener("mousedown",t=>this._preventBlur(t)),this._overflow=e}}),this.addController(this._overflowController),this.__updateChips(),so(this)}checkValidity(){return this.required&&!this.readonly?this._hasValue:!0}clear(){this.__updateSelection([]),Ei(this.i18n.cleared)}clearCache(){this.$&&this.$.comboBox&&this.$.comboBox.clearCache()}requestContentUpdate(){this.$&&this.$.comboBox&&this.$.comboBox.requestContentUpdate()}_disabledChanged(e,t){super._disabledChanged(e,t),(e||t)&&this.__updateChips()}_inputElementChanged(e){super._inputElementChanged(e),e&&this.$.comboBox._setInputElement(e)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&(this._focusedChipIndex=-1,this.validate())}_onResize(){this.__updateChips()}_delegateAttribute(e,t){if(this.stateTarget){if(e==="required"){this._delegateAttribute("aria-required",t?"true":!1);return}super._delegateAttribute(e,t)}}_autoExpandHorizontallyChanged(e,t){(e||t)&&this.__updateChips()}_autoExpandVerticallyChanged(e,t){(e||t)&&this.__updateChips()}_clearButtonVisibleChanged(e,t){(e||t)&&this.__updateChips()}_onFilteredItemsChanged(e){const{value:t}=e.detail;(Array.isArray(t)||t==null)&&(this.filteredItems=t)}_readonlyChanged(e,t){(e||t)&&this.__updateChips(),this.dataProvider&&this.clearCache()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.__updateChips()}_pageSizeChanged(e,t){(Math.floor(e)!==e||e<=0)&&(this.pageSize=t,console.error('"pageSize" value must be an integer > 0')),this.$.comboBox.pageSize=this.pageSize}_placeholderChanged(e){const t=this.__tmpA11yPlaceholder;t!==e&&(this.__savedPlaceholder=e,t&&(this.placeholder=t))}_selectedItemsChanged(e){if(this._toggleHasValue(this._hasValue),this._hasValue){const t=this._mergeItemLabels(e);this.__tmpA11yPlaceholder===void 0&&(this.__savedPlaceholder=this.placeholder),this.__tmpA11yPlaceholder=t,this.placeholder=t}else this.__tmpA11yPlaceholder!==void 0&&(delete this.__tmpA11yPlaceholder,this.placeholder=this.__savedPlaceholder);this.__updateChips(),this.requestContentUpdate(),this.opened&&this.$.comboBox.$.overlay._updateOverlayWidth()}_getItemLabel(e){return this.$.comboBox._getItemLabel(e)}_mergeItemLabels(e){return e.map(t=>this._getItemLabel(t)).join(", ")}_findIndex(e,t,i){if(i&&e){for(let o=0;o<t.length;o++)if(t[o]&&t[o][i]===e[i])return o;return-1}return t.indexOf(e)}__clearInternalValue(e=!1){!this.keepFilter||e?(this.filter="",this.$.comboBox.clear()):(this.$.comboBox.clear(),this._inputElementValue=this.filter)}__announceItem(e,t,i){const o=t?"selected":"deselected",n=this.i18n.total.replace("{count}",i||0);Ei(`${e} ${this.i18n[o]} ${n}`)}__removeItem(e){const t=[...this.selectedItems];t.splice(t.indexOf(e),1),this.__updateSelection(t);const i=this._getItemLabel(e);this.__announceItem(i,!1,t.length)}__selectItem(e){const t=[...this.selectedItems],i=this._findIndex(e,t,this.itemIdPath),o=this._getItemLabel(e);let n=!1;if(i!==-1){const s=this._lastFilter;if(s&&s.toLowerCase()===o.toLowerCase()){this.__clearInternalValue();return}t.splice(i,1)}else t.push(e),n=!0;this.__updateSelection(t),this.__clearInternalValue(),this.__announceItem(o,n,t.length)}__updateSelection(e){this.selectedItems=e,this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}__updateTopGroup(e,t,i){e?i||(this._topGroup=[...t]):this._topGroup=[]}__createChip(e){const t=document.createElement("vaadin-multi-select-combo-box-chip");t.setAttribute("slot","chip"),t.item=e,t.disabled=this.disabled,t.readonly=this.readonly;const i=this._getItemLabel(e);return t.label=i,t.setAttribute("title",i),typeof this.itemClassNameGenerator=="function"&&(t.className=this.itemClassNameGenerator(e)),t.addEventListener("item-removed",o=>this._onItemRemoved(o)),t.addEventListener("mousedown",o=>this._preventBlur(o)),t}__getOverflowWidth(){const e=this._overflow;e.style.visibility="hidden",e.removeAttribute("hidden");const t=e.getAttribute("count");e.setAttribute("count","99");const i=getComputedStyle(e),o=e.clientWidth+parseInt(i.marginInlineStart);return e.setAttribute("count",t),e.setAttribute("hidden",""),e.style.visibility="",o}__updateChips(){if(!this._inputField||!this.inputElement)return;this._chips.forEach(s=>{s.remove()});const e=[...this.selectedItems],t=this._inputField.$.wrapper.clientWidth,i=parseInt(getComputedStyle(this.inputElement).flexBasis);let o=t-i;e.length>1&&(o-=this.__getOverflowWidth());const n=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width"));if(this.autoExpandHorizontally){const s=[];for(let h=e.length-1,d=null;h>=0;h--){const c=this.__createChip(e[h]);this.insertBefore(c,d),d=c,s.unshift(c)}const a=[],l=this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth;if(!this.autoExpandVertically&&l<i){for(;s.length>1;){s.pop().remove(),a.unshift(e.pop());const h=a.length>0?i+this.__getOverflowWidth():i;if(this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth>=h)break}s.length===1&&(s[0].style.maxWidth=`${Math.max(n,o)}px`)}this._overflowItems=a;return}for(let s=e.length-1,a=null;s>=0;s--){const l=this.__createChip(e[s]);if(this.insertBefore(l,a),!this.autoExpandVertically&&this.$.chips.clientWidth>o)if(a===null)l.style.maxWidth=`${Math.max(n,o)}px`;else{l.remove();break}e.pop(),a=l}this._overflowItems=e}__updateOverflowChip(e,t,i,o){if(e){const n=t.length;e.label=`${n}`,e.setAttribute("count",`${n}`),e.setAttribute("title",this._mergeItemLabels(t)),e.toggleAttribute("hidden",n===0),e.disabled=i,e.readonly=o}}_onClearButtonTouchend(e){e.preventDefault(),e.stopPropagation(),this.clear()}_onClearButtonClick(e){e.stopPropagation(),this.clear()}_onChange(e){e.stopPropagation()}_onEscape(e){this.clearButtonVisible&&this.selectedItems&&this.selectedItems.length&&(e.stopPropagation(),this.selectedItems=[])}_onKeyDown(e){super._onKeyDown(e);const t=this._chips;if(!this.readonly&&t.length>0)switch(e.key){case"Backspace":this._onBackSpace(t);break;case"ArrowLeft":this._onArrowLeft(t,e);break;case"ArrowRight":this._onArrowRight(t,e);break;default:this._focusedChipIndex=-1;break}}_onArrowLeft(e,t){if(this.inputElement.selectionStart!==0)return;const i=this._focusedChipIndex;i!==-1&&t.preventDefault();let o;this.__isRTL?i===e.length-1?o=-1:i>-1&&(o=i+1):i===-1?o=e.length-1:i>0&&(o=i-1),o!==void 0&&(this._focusedChipIndex=o)}_onArrowRight(e,t){if(this.inputElement.selectionStart!==0)return;const i=this._focusedChipIndex;i!==-1&&t.preventDefault();let o;this.__isRTL?i===-1?o=e.length-1:i>0&&(o=i-1):i===e.length-1?o=-1:i>-1&&(o=i+1),o!==void 0&&(this._focusedChipIndex=o)}_onBackSpace(e){if(this.inputElement.selectionStart!==0)return;const t=this._focusedChipIndex;t===-1?this._focusedChipIndex=e.length-1:(this.__removeItem(e[t].item),this._focusedChipIndex=-1)}_focusedChipIndexChanged(e,t){if(e>-1||t>-1){const i=this._chips;if(i.forEach((o,n)=>{o.toggleAttribute("focused",n===e)}),e>-1){const o=i[e].item,n=this._getItemLabel(o);Ei(`${n} ${this.i18n.focused}`)}}}_onComboBoxChange(){const e=this.$.comboBox.selectedItem;e&&this.__selectItem(e)}_onComboBoxItemSelected(e){this.__selectItem(e.detail.item)}_onCustomValueSet(e){e.preventDefault(),e.stopPropagation(),this.__clearInternalValue(!0),this.dispatchEvent(new CustomEvent("custom-value-set",{detail:e.detail,composed:!0,bubbles:!0}))}_onItemRemoved(e){this.__removeItem(e.detail.item)}_preventBlur(e){e.preventDefault()}}G(pg);L("vaadin-notification-card",k`
4992
+ `]}get clearElement(){return this.$.clearButton}get _chips(){return[...this.querySelectorAll('[slot="chip"]')]}get _hasValue(){return this.selectedItems&&this.selectedItems.length>0}ready(){super.ready(),this.addController(new Xr(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Kr(this.inputElement,this._labelController)),this._tooltipController=new ht(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._inputField=this.shadowRoot.querySelector('[part="input-field"]'),this._overflowController=new Ne(this,"overflow","vaadin-multi-select-combo-box-chip",{initializer:e=>{e.addEventListener("mousedown",t=>this._preventBlur(t)),this._overflow=e}}),this.addController(this._overflowController),this.__updateChips(),so(this)}checkValidity(){return this.required&&!this.readonly?this._hasValue:!0}clear(){this.__updateSelection([]),Ei(this.i18n.cleared)}clearCache(){this.$&&this.$.comboBox&&this.$.comboBox.clearCache()}requestContentUpdate(){this.$&&this.$.comboBox&&this.$.comboBox.requestContentUpdate()}_disabledChanged(e,t){super._disabledChanged(e,t),(e||t)&&this.__updateChips()}_inputElementChanged(e){super._inputElementChanged(e),e&&this.$.comboBox._setInputElement(e)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&(this._focusedChipIndex=-1,this.validate())}_onResize(){this.__updateChips()}_delegateAttribute(e,t){if(this.stateTarget){if(e==="required"){this._delegateAttribute("aria-required",t?"true":!1);return}super._delegateAttribute(e,t)}}_autoExpandHorizontallyChanged(e,t){(e||t)&&this.__updateChips()}_autoExpandVerticallyChanged(e,t){(e||t)&&this.__updateChips()}_clearButtonVisibleChanged(e,t){(e||t)&&this.__updateChips()}_onFilteredItemsChanged(e){const{value:t}=e.detail;(Array.isArray(t)||t==null)&&(this.filteredItems=t)}_readonlyChanged(e,t){(e||t)&&this.__updateChips(),this.dataProvider&&this.clearCache()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.__updateChips()}_pageSizeChanged(e,t){(Math.floor(e)!==e||e<=0)&&(this.pageSize=t,console.error('"pageSize" value must be an integer > 0')),this.$.comboBox.pageSize=this.pageSize}_placeholderChanged(e){const t=this.__tmpA11yPlaceholder;t!==e&&(this.__savedPlaceholder=e,t&&(this.placeholder=t))}_selectedItemsChanged(e){if(this._toggleHasValue(this._hasValue),this._hasValue){const t=this._mergeItemLabels(e);this.__tmpA11yPlaceholder===void 0&&(this.__savedPlaceholder=this.placeholder),this.__tmpA11yPlaceholder=t,this.placeholder=t}else this.__tmpA11yPlaceholder!==void 0&&(delete this.__tmpA11yPlaceholder,this.placeholder=this.__savedPlaceholder);this.__updateChips(),this.requestContentUpdate(),this.opened&&this.$.comboBox.$.overlay._updateOverlayWidth()}_getItemLabel(e){return this.$.comboBox._getItemLabel(e)}_mergeItemLabels(e){return e.map(t=>this._getItemLabel(t)).join(", ")}_findIndex(e,t,i){if(i&&e){for(let o=0;o<t.length;o++)if(t[o]&&t[o][i]===e[i])return o;return-1}return t.indexOf(e)}__clearInternalValue(e=!1){!this.keepFilter||e?(this.filter="",this.$.comboBox.clear()):(this.$.comboBox.clear(),this._inputElementValue=this.filter)}__announceItem(e,t,i){const o=t?"selected":"deselected",n=this.i18n.total.replace("{count}",i||0);Ei(`${e} ${this.i18n[o]} ${n}`)}__removeItem(e){const t=[...this.selectedItems];t.splice(t.indexOf(e),1),this.__updateSelection(t);const i=this._getItemLabel(e);this.__announceItem(i,!1,t.length)}__selectItem(e){const t=[...this.selectedItems],i=this._findIndex(e,t,this.itemIdPath),o=this._getItemLabel(e);let n=!1;if(i!==-1){const s=this._lastFilter;if(s&&s.toLowerCase()===o.toLowerCase()){this.__clearInternalValue();return}t.splice(i,1)}else t.push(e),n=!0;this.__updateSelection(t),this.__clearInternalValue(),this.__announceItem(o,n,t.length)}__updateSelection(e){this.selectedItems=e,this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}__updateTopGroup(e,t,i){e?i||(this._topGroup=[...t]):this._topGroup=[]}__createChip(e){const t=document.createElement("vaadin-multi-select-combo-box-chip");t.setAttribute("slot","chip"),t.item=e,t.disabled=this.disabled,t.readonly=this.readonly;const i=this._getItemLabel(e);return t.label=i,t.setAttribute("title",i),typeof this.itemClassNameGenerator=="function"&&(t.className=this.itemClassNameGenerator(e)),t.addEventListener("item-removed",o=>this._onItemRemoved(o)),t.addEventListener("mousedown",o=>this._preventBlur(o)),t}__getOverflowWidth(){const e=this._overflow;e.style.visibility="hidden",e.removeAttribute("hidden");const t=e.getAttribute("count");e.setAttribute("count","99");const i=getComputedStyle(e),o=e.clientWidth+parseInt(i.marginInlineStart);return e.setAttribute("count",t),e.setAttribute("hidden",""),e.style.visibility="",o}__updateChips(){if(!this._inputField||!this.inputElement)return;this._chips.forEach(s=>{s.remove()});const e=[...this.selectedItems],t=this._inputField.$.wrapper.clientWidth,i=parseInt(getComputedStyle(this.inputElement).flexBasis);let o=t-i;e.length>1&&(o-=this.__getOverflowWidth());const n=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width"));if(this.autoExpandHorizontally){const s=[];for(let h=e.length-1,d=null;h>=0;h--){const c=this.__createChip(e[h]);this.insertBefore(c,d),d=c,s.unshift(c)}const a=[],l=this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth;if(!this.autoExpandVertically&&l<i){for(;s.length>1;){s.pop().remove(),a.unshift(e.pop());const h=a.length>0?i+this.__getOverflowWidth():i;if(this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth>=h)break}s.length===1&&(s[0].style.maxWidth=`${Math.max(n,o)}px`)}this._overflowItems=a;return}for(let s=e.length-1,a=null;s>=0;s--){const l=this.__createChip(e[s]);if(this.insertBefore(l,a),!this.autoExpandVertically&&this.$.chips.clientWidth>o)if(a===null)l.style.maxWidth=`${Math.max(n,o)}px`;else{l.remove();break}e.pop(),a=l}this._overflowItems=e}__updateOverflowChip(e,t,i,o){if(e){const n=t.length;e.label=`${n}`,e.setAttribute("count",`${n}`),e.setAttribute("title",this._mergeItemLabels(t)),e.toggleAttribute("hidden",n===0),e.disabled=i,e.readonly=o}}_onClearButtonTouchend(e){e.preventDefault(),e.stopPropagation(),this.clear()}_onClearButtonClick(e){e.stopPropagation(),this.clear()}_onChange(e){e.stopPropagation()}_onEscape(e){this.clearButtonVisible&&this.selectedItems&&this.selectedItems.length&&(e.stopPropagation(),this.selectedItems=[])}_onKeyDown(e){super._onKeyDown(e);const t=this._chips;if(!this.readonly&&t.length>0)switch(e.key){case"Backspace":this._onBackSpace(t);break;case"ArrowLeft":this._onArrowLeft(t,e);break;case"ArrowRight":this._onArrowRight(t,e);break;default:this._focusedChipIndex=-1;break}}_onArrowLeft(e,t){if(this.inputElement.selectionStart!==0)return;const i=this._focusedChipIndex;i!==-1&&t.preventDefault();let o;this.__isRTL?i===e.length-1?o=-1:i>-1&&(o=i+1):i===-1?o=e.length-1:i>0&&(o=i-1),o!==void 0&&(this._focusedChipIndex=o)}_onArrowRight(e,t){if(this.inputElement.selectionStart!==0)return;const i=this._focusedChipIndex;i!==-1&&t.preventDefault();let o;this.__isRTL?i===-1?o=e.length-1:i>0&&(o=i-1):i===e.length-1?o=-1:i>-1&&(o=i+1),o!==void 0&&(this._focusedChipIndex=o)}_onBackSpace(e){if(this.inputElement.selectionStart!==0)return;const t=this._focusedChipIndex;t===-1?this._focusedChipIndex=e.length-1:(this.__removeItem(e[t].item),this._focusedChipIndex=-1)}_focusedChipIndexChanged(e,t){if(e>-1||t>-1){const i=this._chips;if(i.forEach((o,n)=>{o.toggleAttribute("focused",n===e)}),e>-1){const o=i[e].item,n=this._getItemLabel(o);Ei(`${n} ${this.i18n.focused}`)}}}_onComboBoxChange(){const e=this.$.comboBox.selectedItem;e&&this.__selectItem(e)}_onComboBoxItemSelected(e){this.__selectItem(e.detail.item)}_onCustomValueSet(e){e.preventDefault(),e.stopPropagation(),this.__clearInternalValue(!0),this.dispatchEvent(new CustomEvent("custom-value-set",{detail:e.detail,composed:!0,bubbles:!0}))}_onItemRemoved(e){this.__removeItem(e.detail.item)}_preventBlur(e){e.preventDefault()}}G(mg);L("vaadin-notification-card",k`
4993
4993
  :host {
4994
4994
  position: relative;
4995
4995
  margin: var(--lumo-space-s);
@@ -5207,11 +5207,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5207
5207
  * @license
5208
5208
  * Copyright 2020 Google LLC
5209
5209
  * SPDX-License-Identifier: BSD-3-Clause
5210
- */const mg=(r,e)=>(r==null?void 0:r._$litType$)!==void 0;/**
5210
+ */const fg=(r,e)=>(r==null?void 0:r._$litType$)!==void 0;/**
5211
5211
  * @license
5212
5212
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5213
5213
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5214
- */class fg extends Xh(le(Ve(Z))){static get template(){return K`
5214
+ */class _g extends Kh(le(Ve(Z))){static get template(){return K`
5215
5215
  <style>
5216
5216
  :host {
5217
5217
  position: fixed;
@@ -5278,7 +5278,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5278
5278
  <div region="bottom-end"><slot name="bottom-end"></slot></div>
5279
5279
  </div>
5280
5280
  <div region="bottom-stretch"><slot name="bottom-stretch"></slot></div>
5281
- `}static get is(){return"vaadin-notification-container"}static get properties(){return{opened:{type:Boolean,value:!1,observer:"_openedChanged"}}}constructor(){super(),this._boundVaadinOverlayClose=this._onVaadinOverlayClose.bind(this),ts&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}_openedChanged(e){e?(document.body.appendChild(this),document.addEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))):(document.body.removeChild(this),document.removeEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener))}_detectIosNavbar(){const e=window.innerHeight,t=window.innerWidth>e,i=document.documentElement.clientHeight;t&&i>e?this.style.bottom=`${i-e}px`:this.style.bottom="0"}_onVaadinOverlayClose(e){const t=e.detail.sourceEvent;t&&t.composedPath().indexOf(this)>=0&&e.preventDefault()}}class _g extends le(Z){static get template(){return K`
5281
+ `}static get is(){return"vaadin-notification-container"}static get properties(){return{opened:{type:Boolean,value:!1,observer:"_openedChanged"}}}constructor(){super(),this._boundVaadinOverlayClose=this._onVaadinOverlayClose.bind(this),ts&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}_openedChanged(e){e?(document.body.appendChild(this),document.addEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))):(document.body.removeChild(this),document.removeEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener))}_detectIosNavbar(){const e=window.innerHeight,t=window.innerWidth>e,i=document.documentElement.clientHeight;t&&i>e?this.style.bottom=`${i-e}px`:this.style.bottom="0"}_onVaadinOverlayClose(e){const t=e.detail.sourceEvent;t&&t.composedPath().indexOf(this)>=0&&e.preventDefault()}}class vg extends le(Z){static get template(){return K`
5282
5282
  <style>
5283
5283
  :host {
5284
5284
  display: block;
@@ -5307,7 +5307,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5307
5307
  }
5308
5308
  </style>
5309
5309
  <vaadin-notification-card theme$="[[_theme]]"> </vaadin-notification-card>
5310
- `}static get is(){return"vaadin-notification"}static get properties(){return{duration:{type:Number,value:5e3},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},position:{type:String,value:"bottom-start",observer:"_positionChanged"},renderer:Function}}static get observers(){return["_durationChanged(duration, opened)","_rendererChanged(renderer, opened, _overlayElement)"]}static show(e,t){return mg(e)?st._createAndShowNotification(i=>{ql(e,i)},t):st._createAndShowNotification(i=>{i.innerText=e},t)}static _createAndShowNotification(e,t){const i=document.createElement(st.is);return t&&Number.isFinite(t.duration)&&(i.duration=t.duration),t&&t.position&&(i.position=t.position),t&&t.theme&&i.setAttribute("theme",t.theme),i.renderer=e,document.body.appendChild(i),i.opened=!0,i.addEventListener("opened-changed",o=>{o.detail.value||i.remove()}),i}get _container(){return st._container||(st._container=document.createElement("vaadin-notification-container"),document.body.appendChild(st._container)),st._container}get _card(){return this._overlayElement}ready(){super.ready(),this._overlayElement=this.shadowRoot.querySelector("vaadin-notification-card"),so(this)}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask(()=>{this.isConnected||(this.opened=!1)})}requestContentUpdate(){this.renderer&&this.renderer(this._card,this)}_rendererChanged(e,t,i){if(!i)return;const o=this._oldRenderer!==e;this._oldRenderer=e,o&&(i.innerHTML="",delete i._$litPart$),t&&(this._didAnimateNotificationAppend||this._animatedAppendNotificationCard(),this.requestContentUpdate())}open(){this.opened=!0}close(){this.opened=!1}_openedChanged(e){e?(this._container.opened=!0,this._animatedAppendNotificationCard()):this._card&&this._closeNotificationCard()}__cleanUpOpeningClosingState(){this._card.removeAttribute("opening"),this._card.removeAttribute("closing"),this._card.removeEventListener("animationend",this.__animationEndListener)}_animatedAppendNotificationCard(){this._card?(this.__cleanUpOpeningClosingState(),this._card.setAttribute("opening",""),this._appendNotificationCard(),this.__animationEndListener=()=>this.__cleanUpOpeningClosingState(),this._card.addEventListener("animationend",this.__animationEndListener),this._didAnimateNotificationAppend=!0):this._didAnimateNotificationAppend=!1}_appendNotificationCard(){if(this._card){if(!this._container.shadowRoot.querySelector(`slot[name="${this.position}"]`)){console.warn(`Invalid alignment parameter provided: position=${this.position}`);return}this._container.bringToFront(),this._card.slot=this.position,this._container.firstElementChild&&/top/u.test(this.position)?this._container.insertBefore(this._card,this._container.firstElementChild):this._container.appendChild(this._card)}}_removeNotificationCard(){this._card.parentNode&&this._card.parentNode.removeChild(this._card),this._card.removeAttribute("closing"),this._container.opened=!!this._container.firstElementChild,this.dispatchEvent(new CustomEvent("closed"))}_closeNotificationCard(){this._durationTimeoutId&&clearTimeout(this._durationTimeoutId),this._animatedRemoveNotificationCard()}_animatedRemoveNotificationCard(){this.__cleanUpOpeningClosingState(),this._card.setAttribute("closing","");const e=getComputedStyle(this._card).getPropertyValue("animation-name");e&&e!=="none"?(this.__animationEndListener=()=>{this._removeNotificationCard(),this.__cleanUpOpeningClosingState()},this._card.addEventListener("animationend",this.__animationEndListener)):this._removeNotificationCard()}_positionChanged(){this.opened&&this._animatedAppendNotificationCard()}_durationChanged(e,t){t&&(clearTimeout(this._durationTimeoutId),e>0&&(this._durationTimeoutId=setTimeout(()=>this.close(),e)))}}G(fg);G(_g);G(st);const wd=k`
5310
+ `}static get is(){return"vaadin-notification"}static get properties(){return{duration:{type:Number,value:5e3},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},position:{type:String,value:"bottom-start",observer:"_positionChanged"},renderer:Function}}static get observers(){return["_durationChanged(duration, opened)","_rendererChanged(renderer, opened, _overlayElement)"]}static show(e,t){return fg(e)?st._createAndShowNotification(i=>{Yl(e,i)},t):st._createAndShowNotification(i=>{i.innerText=e},t)}static _createAndShowNotification(e,t){const i=document.createElement(st.is);return t&&Number.isFinite(t.duration)&&(i.duration=t.duration),t&&t.position&&(i.position=t.position),t&&t.theme&&i.setAttribute("theme",t.theme),i.renderer=e,document.body.appendChild(i),i.opened=!0,i.addEventListener("opened-changed",o=>{o.detail.value||i.remove()}),i}get _container(){return st._container||(st._container=document.createElement("vaadin-notification-container"),document.body.appendChild(st._container)),st._container}get _card(){return this._overlayElement}ready(){super.ready(),this._overlayElement=this.shadowRoot.querySelector("vaadin-notification-card"),so(this)}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask(()=>{this.isConnected||(this.opened=!1)})}requestContentUpdate(){this.renderer&&this.renderer(this._card,this)}_rendererChanged(e,t,i){if(!i)return;const o=this._oldRenderer!==e;this._oldRenderer=e,o&&(i.innerHTML="",delete i._$litPart$),t&&(this._didAnimateNotificationAppend||this._animatedAppendNotificationCard(),this.requestContentUpdate())}open(){this.opened=!0}close(){this.opened=!1}_openedChanged(e){e?(this._container.opened=!0,this._animatedAppendNotificationCard()):this._card&&this._closeNotificationCard()}__cleanUpOpeningClosingState(){this._card.removeAttribute("opening"),this._card.removeAttribute("closing"),this._card.removeEventListener("animationend",this.__animationEndListener)}_animatedAppendNotificationCard(){this._card?(this.__cleanUpOpeningClosingState(),this._card.setAttribute("opening",""),this._appendNotificationCard(),this.__animationEndListener=()=>this.__cleanUpOpeningClosingState(),this._card.addEventListener("animationend",this.__animationEndListener),this._didAnimateNotificationAppend=!0):this._didAnimateNotificationAppend=!1}_appendNotificationCard(){if(this._card){if(!this._container.shadowRoot.querySelector(`slot[name="${this.position}"]`)){console.warn(`Invalid alignment parameter provided: position=${this.position}`);return}this._container.bringToFront(),this._card.slot=this.position,this._container.firstElementChild&&/top/u.test(this.position)?this._container.insertBefore(this._card,this._container.firstElementChild):this._container.appendChild(this._card)}}_removeNotificationCard(){this._card.parentNode&&this._card.parentNode.removeChild(this._card),this._card.removeAttribute("closing"),this._container.opened=!!this._container.firstElementChild,this.dispatchEvent(new CustomEvent("closed"))}_closeNotificationCard(){this._durationTimeoutId&&clearTimeout(this._durationTimeoutId),this._animatedRemoveNotificationCard()}_animatedRemoveNotificationCard(){this.__cleanUpOpeningClosingState(),this._card.setAttribute("closing","");const e=getComputedStyle(this._card).getPropertyValue("animation-name");e&&e!=="none"?(this.__animationEndListener=()=>{this._removeNotificationCard(),this.__cleanUpOpeningClosingState()},this._card.addEventListener("animationend",this.__animationEndListener)):this._removeNotificationCard()}_positionChanged(){this.opened&&this._animatedAppendNotificationCard()}_durationChanged(e,t){t&&(clearTimeout(this._durationTimeoutId),e>0&&(this._durationTimeoutId=setTimeout(()=>this.close(),e)))}}G(_g);G(vg);G(st);const Cd=k`
5311
5311
  :host {
5312
5312
  -webkit-tap-highlight-color: transparent;
5313
5313
  --_lumo-item-selected-icon-display: var(--_lumo-list-box-item-selected-icon-display, block);
@@ -5321,11 +5321,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5321
5321
  margin: var(--lumo-space-s) var(--lumo-border-radius-m);
5322
5322
  background-color: var(--lumo-contrast-10pct);
5323
5323
  }
5324
- `;L("vaadin-list-box",wd,{moduleId:"lumo-list-box"});/**
5324
+ `;L("vaadin-list-box",Cd,{moduleId:"lumo-list-box"});/**
5325
5325
  * @license
5326
5326
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5327
5327
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5328
- */L("vaadin-select-item",no,{moduleId:"lumo-select-item"});L("vaadin-select-list-box",wd,{moduleId:"lumo-select-list-box"});const vg=k`
5328
+ */L("vaadin-select-item",no,{moduleId:"lumo-select-item"});L("vaadin-select-list-box",Cd,{moduleId:"lumo-select-list-box"});const gg=k`
5329
5329
  :host(:not([theme*='align'])) ::slotted([slot='value']) {
5330
5330
  text-align: start;
5331
5331
  }
@@ -5368,7 +5368,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5368
5368
  --_lumo-selected-item-height: var(--lumo-size-s);
5369
5369
  --_lumo-selected-item-padding: 0;
5370
5370
  }
5371
- `;L("vaadin-select",[Rt,vg],{moduleId:"lumo-select"});L("vaadin-select-value-button",k`
5371
+ `;L("vaadin-select",[Rt,gg],{moduleId:"lumo-select"});L("vaadin-select-value-button",k`
5372
5372
  :host {
5373
5373
  font-family: var(--lumo-font-family);
5374
5374
  font-size: var(--vaadin-input-field-value-font-size, var(--lumo-font-size-m));
@@ -5387,7 +5387,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5387
5387
  ::slotted(*:hover) {
5388
5388
  background-color: transparent;
5389
5389
  }
5390
- `,{moduleId:"lumo-select-value-button"});const gg=k`
5390
+ `,{moduleId:"lumo-select-value-button"});const bg=k`
5391
5391
  :host {
5392
5392
  --_lumo-item-selected-icon-display: block;
5393
5393
  }
@@ -5423,15 +5423,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5423
5423
  :host([theme~='align-center']) {
5424
5424
  text-align: center;
5425
5425
  }
5426
- `;L("vaadin-select-overlay",[Jn,gg],{moduleId:"lumo-select-overlay"});/**
5426
+ `;L("vaadin-select-overlay",[Jn,bg],{moduleId:"lumo-select-overlay"});/**
5427
5427
  * @license
5428
5428
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5429
5429
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5430
- */const Cd=r=>class extends Wn(Ht(r)){static get properties(){return{_hasVaadinItemMixin:{value:!0},selected:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_selectedChanged"},_value:String}}get _activeKeys(){return["Enter"," "]}get value(){return this._value!==void 0?this._value:this.textContent.trim()}set value(e){this._value=e}ready(){super.ready();const e=this.getAttribute("value");e!==null&&(this.value=e)}focus(){this.disabled||(super.focus(),this._setFocused(!0))}_shouldSetActive(e){return!this.disabled&&!(e.type==="keydown"&&e.defaultPrevented)}_selectedChanged(e){this.setAttribute("aria-selected",e)}_disabledChanged(e){super._disabledChanged(e),e&&(this.selected=!1,this.blur())}_onKeyDown(e){super._onKeyDown(e),this._activeKeys.includes(e.key)&&!e.defaultPrevented&&(e.preventDefault(),this.click())}};/**
5430
+ */const Ed=r=>class extends Wn(Ht(r)){static get properties(){return{_hasVaadinItemMixin:{value:!0},selected:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_selectedChanged"},_value:String}}get _activeKeys(){return["Enter"," "]}get value(){return this._value!==void 0?this._value:this.textContent.trim()}set value(e){this._value=e}ready(){super.ready();const e=this.getAttribute("value");e!==null&&(this.value=e)}focus(){this.disabled||(super.focus(),this._setFocused(!0))}_shouldSetActive(e){return!this.disabled&&!(e.type==="keydown"&&e.defaultPrevented)}_selectedChanged(e){this.setAttribute("aria-selected",e)}_disabledChanged(e){super._disabledChanged(e),e&&(this.selected=!1,this.blur())}_onKeyDown(e){super._onKeyDown(e),this._activeKeys.includes(e.key)&&!e.defaultPrevented&&(e.preventDefault(),this.click())}};/**
5431
5431
  * @license
5432
5432
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5433
5433
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5434
- */class bg extends Cd(le($e(Z))){static get is(){return"vaadin-select-item"}static get template(){return K`
5434
+ */class yg extends Ed(le($e(Z))){static get is(){return"vaadin-select-item"}static get template(){return K`
5435
5435
  <style>
5436
5436
  :host {
5437
5437
  display: inline-block;
@@ -5445,23 +5445,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5445
5445
  <div part="content">
5446
5446
  <slot></slot>
5447
5447
  </div>
5448
- `}ready(){super.ready(),this.setAttribute("role","option")}}G(bg);/**
5448
+ `}ready(){super.ready(),this.setAttribute("role","option")}}G(yg);/**
5449
5449
  * @license
5450
5450
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
5451
5451
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5452
- */function Ed(r,e){const{scrollLeft:t}=r;return e!=="rtl"?t:r.scrollWidth-r.clientWidth+t}function yg(r,e,t){e!=="rtl"?r.scrollLeft=t:r.scrollLeft=r.clientWidth-r.scrollWidth+t}/**
5452
+ */function Sd(r,e){const{scrollLeft:t}=r;return e!=="rtl"?t:r.scrollWidth-r.clientWidth+t}function xg(r,e,t){e!=="rtl"?r.scrollLeft=t:r.scrollLeft=r.clientWidth-r.scrollWidth+t}/**
5453
5453
  * @license
5454
5454
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
5455
5455
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5456
- */const xg=r=>class extends Lt(r){get focused(){return(this._getItems()||[]).find(Gn)}get _vertical(){return!0}focus(){const e=this._getItems();if(Array.isArray(e)){const t=this._getAvailableIndex(e,0,null,i=>!fn(i));t>=0&&this._focus(t)}}_getItems(){return Array.from(this.children)}_onKeyDown(e){if(super._onKeyDown(e),e.metaKey||e.ctrlKey)return;const{key:t}=e,i=this._getItems()||[],o=i.indexOf(this.focused);let n,s;const a=!this._vertical&&this.getAttribute("dir")==="rtl"?-1:1;this.__isPrevKey(t)?(s=-a,n=o-a):this.__isNextKey(t)?(s=a,n=o+a):t==="Home"?(s=1,n=0):t==="End"&&(s=-1,n=i.length-1),n=this._getAvailableIndex(i,n,s,l=>!fn(l)),n>=0&&(e.preventDefault(),this._focus(n,!0))}__isPrevKey(e){return this._vertical?e==="ArrowUp":e==="ArrowLeft"}__isNextKey(e){return this._vertical?e==="ArrowDown":e==="ArrowRight"}_focus(e,t=!1){const i=this._getItems();this._focusItem(i[e],t)}_focusItem(e){e&&(e.focus(),e.setAttribute("focus-ring",""))}_getAvailableIndex(e,t,i,o){const n=e.length;let s=t;for(let a=0;typeof s=="number"&&a<n;a+=1,s+=i||1){s<0?s=n-1:s>=n&&(s=0);const l=e[s];if(!l.hasAttribute("disabled")&&this.__isMatchingItem(l,o))return s}return-1}__isMatchingItem(e,t){return typeof t=="function"?t(e):!0}};/**
5456
+ */const wg=r=>class extends Lt(r){get focused(){return(this._getItems()||[]).find(Gn)}get _vertical(){return!0}focus(){const e=this._getItems();if(Array.isArray(e)){const t=this._getAvailableIndex(e,0,null,i=>!fn(i));t>=0&&this._focus(t)}}_getItems(){return Array.from(this.children)}_onKeyDown(e){if(super._onKeyDown(e),e.metaKey||e.ctrlKey)return;const{key:t}=e,i=this._getItems()||[],o=i.indexOf(this.focused);let n,s;const a=!this._vertical&&this.getAttribute("dir")==="rtl"?-1:1;this.__isPrevKey(t)?(s=-a,n=o-a):this.__isNextKey(t)?(s=a,n=o+a):t==="Home"?(s=1,n=0):t==="End"&&(s=-1,n=i.length-1),n=this._getAvailableIndex(i,n,s,l=>!fn(l)),n>=0&&(e.preventDefault(),this._focus(n,!0))}__isPrevKey(e){return this._vertical?e==="ArrowUp":e==="ArrowLeft"}__isNextKey(e){return this._vertical?e==="ArrowDown":e==="ArrowRight"}_focus(e,t=!1){const i=this._getItems();this._focusItem(i[e],t)}_focusItem(e){e&&(e.focus(),e.setAttribute("focus-ring",""))}_getAvailableIndex(e,t,i,o){const n=e.length;let s=t;for(let a=0;typeof s=="number"&&a<n;a+=1,s+=i||1){s<0?s=n-1:s>=n&&(s=0);const l=e[s];if(!l.hasAttribute("disabled")&&this.__isMatchingItem(l,o))return s}return-1}__isMatchingItem(e,t){return typeof t=="function"?t(e):!0}};/**
5457
5457
  * @license
5458
5458
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5459
5459
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5460
- */const Sd=r=>class extends xg(r){static get properties(){return{disabled:{type:Boolean,value:!1,reflectToAttribute:!0},selected:{type:Number,reflectToAttribute:!0,notify:!0},orientation:{type:String,reflectToAttribute:!0,value:""},items:{type:Array,readOnly:!0,notify:!0},_searchBuf:{type:String,value:""}}}static get observers(){return["_enhanceItems(items, orientation, selected, disabled)"]}get _isRTL(){return!this._vertical&&this.getAttribute("dir")==="rtl"}get _scrollerElement(){return console.warn(`Please implement the '_scrollerElement' property in <${this.localName}>`),this}get _vertical(){return this.orientation!=="horizontal"}focus(){this._observer&&this._observer.flush();const e=Array.isArray(this.items)?this.items:[],t=this._getAvailableIndex(e,0,null,i=>i.tabIndex===0&&!fn(i));t>=0?this._focus(t):super.focus()}ready(){super.ready(),this.addEventListener("click",t=>this._onClick(t));const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Rn(e,()=>{this._setItems(this._filterItems(Th(this)))})}_getItems(){return this.items}_enhanceItems(e,t,i,o){if(!o&&e){this.setAttribute("aria-orientation",t||"vertical"),e.forEach(s=>{t?s.setAttribute("orientation",t):s.removeAttribute("orientation")}),this._setFocusable(i<0||!i?0:i);const n=e[i];e.forEach(s=>{s.selected=s===n}),n&&!n.disabled&&this._scrollToItem(i)}}_filterItems(e){return e.filter(t=>t._hasVaadinItemMixin)}_onClick(e){if(e.metaKey||e.shiftKey||e.ctrlKey||e.defaultPrevented)return;const t=this._filterItems(e.composedPath())[0];let i;t&&!t.disabled&&(i=this.items.indexOf(t))>=0&&(this.selected=i)}_searchKey(e,t){this._searchReset=Fe.debounce(this._searchReset,yt.after(500),()=>{this._searchBuf=""}),this._searchBuf+=t.toLowerCase(),this.items.some(o=>this.__isMatchingKey(o))||(this._searchBuf=t.toLowerCase());const i=this._searchBuf.length===1?e+1:e;return this._getAvailableIndex(this.items,i,1,o=>this.__isMatchingKey(o)&&getComputedStyle(o).display!=="none")}__isMatchingKey(e){return e.textContent.replace(/[^\p{L}\p{Nd}]/gu,"").toLowerCase().startsWith(this._searchBuf)}_onKeyDown(e){if(e.metaKey||e.ctrlKey)return;const t=e.key,i=this.items.indexOf(this.focused);if(/[\p{L}\p{Nd}]/u.test(t)&&t.length===1){const o=this._searchKey(i,t);o>=0&&this._focus(o);return}super._onKeyDown(e)}_isItemHidden(e){return getComputedStyle(e).display==="none"}_setFocusable(e){e=this._getAvailableIndex(this.items,e,1);const t=this.items[e];this.items.forEach(i=>{i.tabIndex=i===t?0:-1})}_focus(e){this.items.forEach((t,i)=>{t.focused=i===e}),this._setFocusable(e),this._scrollToItem(e),super._focus(e)}_scrollToItem(e){const t=this.items[e];if(!t)return;const i=this._vertical?["top","bottom"]:this._isRTL?["right","left"]:["left","right"],o=this._scrollerElement.getBoundingClientRect(),n=(this.items[e+1]||t).getBoundingClientRect(),s=(this.items[e-1]||t).getBoundingClientRect();let a=0;!this._isRTL&&n[i[1]]>=o[i[1]]||this._isRTL&&n[i[1]]<=o[i[1]]?a=n[i[1]]-o[i[1]]:(!this._isRTL&&s[i[0]]<=o[i[0]]||this._isRTL&&s[i[0]]>=o[i[0]])&&(a=s[i[0]]-o[i[0]]),this._scroll(a)}_scroll(e){if(this._vertical)this._scrollerElement.scrollTop+=e;else{const t=this.getAttribute("dir")||"ltr",i=Ed(this._scrollerElement,t)+e;yg(this._scrollerElement,t,i)}}};/**
5460
+ */const Ad=r=>class extends wg(r){static get properties(){return{disabled:{type:Boolean,value:!1,reflectToAttribute:!0},selected:{type:Number,reflectToAttribute:!0,notify:!0},orientation:{type:String,reflectToAttribute:!0,value:""},items:{type:Array,readOnly:!0,notify:!0},_searchBuf:{type:String,value:""}}}static get observers(){return["_enhanceItems(items, orientation, selected, disabled)"]}get _isRTL(){return!this._vertical&&this.getAttribute("dir")==="rtl"}get _scrollerElement(){return console.warn(`Please implement the '_scrollerElement' property in <${this.localName}>`),this}get _vertical(){return this.orientation!=="horizontal"}focus(){this._observer&&this._observer.flush();const e=Array.isArray(this.items)?this.items:[],t=this._getAvailableIndex(e,0,null,i=>i.tabIndex===0&&!fn(i));t>=0?this._focus(t):super.focus()}ready(){super.ready(),this.addEventListener("click",t=>this._onClick(t));const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Rn(e,()=>{this._setItems(this._filterItems(Ih(this)))})}_getItems(){return this.items}_enhanceItems(e,t,i,o){if(!o&&e){this.setAttribute("aria-orientation",t||"vertical"),e.forEach(s=>{t?s.setAttribute("orientation",t):s.removeAttribute("orientation")}),this._setFocusable(i<0||!i?0:i);const n=e[i];e.forEach(s=>{s.selected=s===n}),n&&!n.disabled&&this._scrollToItem(i)}}_filterItems(e){return e.filter(t=>t._hasVaadinItemMixin)}_onClick(e){if(e.metaKey||e.shiftKey||e.ctrlKey||e.defaultPrevented)return;const t=this._filterItems(e.composedPath())[0];let i;t&&!t.disabled&&(i=this.items.indexOf(t))>=0&&(this.selected=i)}_searchKey(e,t){this._searchReset=Fe.debounce(this._searchReset,yt.after(500),()=>{this._searchBuf=""}),this._searchBuf+=t.toLowerCase(),this.items.some(o=>this.__isMatchingKey(o))||(this._searchBuf=t.toLowerCase());const i=this._searchBuf.length===1?e+1:e;return this._getAvailableIndex(this.items,i,1,o=>this.__isMatchingKey(o)&&getComputedStyle(o).display!=="none")}__isMatchingKey(e){return e.textContent.replace(/[^\p{L}\p{Nd}]/gu,"").toLowerCase().startsWith(this._searchBuf)}_onKeyDown(e){if(e.metaKey||e.ctrlKey)return;const t=e.key,i=this.items.indexOf(this.focused);if(/[\p{L}\p{Nd}]/u.test(t)&&t.length===1){const o=this._searchKey(i,t);o>=0&&this._focus(o);return}super._onKeyDown(e)}_isItemHidden(e){return getComputedStyle(e).display==="none"}_setFocusable(e){e=this._getAvailableIndex(this.items,e,1);const t=this.items[e];this.items.forEach(i=>{i.tabIndex=i===t?0:-1})}_focus(e){this.items.forEach((t,i)=>{t.focused=i===e}),this._setFocusable(e),this._scrollToItem(e),super._focus(e)}_scrollToItem(e){const t=this.items[e];if(!t)return;const i=this._vertical?["top","bottom"]:this._isRTL?["right","left"]:["left","right"],o=this._scrollerElement.getBoundingClientRect(),n=(this.items[e+1]||t).getBoundingClientRect(),s=(this.items[e-1]||t).getBoundingClientRect();let a=0;!this._isRTL&&n[i[1]]>=o[i[1]]||this._isRTL&&n[i[1]]<=o[i[1]]?a=n[i[1]]-o[i[1]]:(!this._isRTL&&s[i[0]]<=o[i[0]]||this._isRTL&&s[i[0]]>=o[i[0]])&&(a=s[i[0]]-o[i[0]]),this._scroll(a)}_scroll(e){if(this._vertical)this._scrollerElement.scrollTop+=e;else{const t=this.getAttribute("dir")||"ltr",i=Sd(this._scrollerElement,t)+e;xg(this._scrollerElement,t,i)}}};/**
5461
5461
  * @license
5462
5462
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5463
5463
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5464
- */class wg extends Sd(le($e(et(Z)))){static get is(){return"vaadin-select-list-box"}static get template(){return K`
5464
+ */class Cg extends Ad(le($e(et(Z)))){static get is(){return"vaadin-select-list-box"}static get template(){return K`
5465
5465
  <style>
5466
5466
  :host {
5467
5467
  display: flex;
@@ -5481,15 +5481,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5481
5481
  <div part="items">
5482
5482
  <slot></slot>
5483
5483
  </div>
5484
- `}static get properties(){return{orientation:{readOnly:!0}}}get _scrollerElement(){return this.shadowRoot.querySelector('[part="items"]')}ready(){super.ready(),this.setAttribute("role","listbox")}}G(wg);/**
5484
+ `}static get properties(){return{orientation:{readOnly:!0}}}get _scrollerElement(){return this.shadowRoot.querySelector('[part="items"]')}ready(){super.ready(),this.setAttribute("role","listbox")}}G(Cg);/**
5485
5485
  * @license
5486
5486
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5487
5487
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5488
- */const Cg=r=>class extends rs(Jr($e(r))){static get observers(){return["_updateOverlayWidth(opened, owner)"]}ready(){super.ready(),this.restoreFocusOnClose=!0}_getMenuElement(){return Array.from(this.children).find(e=>e.localName!=="style")}_updateOverlayWidth(e,t){if(e&&t){const i="--vaadin-select-overlay-width",o=getComputedStyle(t).getPropertyValue(i);o===""?this.style.removeProperty(i):this.style.setProperty(i,o)}}};/**
5488
+ */const Eg=r=>class extends rs(Jr($e(r))){static get observers(){return["_updateOverlayWidth(opened, owner)"]}ready(){super.ready(),this.restoreFocusOnClose=!0}_getMenuElement(){return Array.from(this.children).find(e=>e.localName!=="style")}_updateOverlayWidth(e,t){if(e&&t){const i="--vaadin-select-overlay-width",o=getComputedStyle(t).getPropertyValue(i);o===""?this.style.removeProperty(i):this.style.setProperty(i,o)}}};/**
5489
5489
  * @license
5490
5490
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5491
5491
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5492
- */const Eg=k`
5492
+ */const Sg=k`
5493
5493
  :host {
5494
5494
  align-items: flex-start;
5495
5495
  justify-content: flex-start;
@@ -5504,18 +5504,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5504
5504
  outline: 3px solid;
5505
5505
  }
5506
5506
  }
5507
- `;L("vaadin-select-overlay",[Zr,Eg],{moduleId:"vaadin-select-overlay-styles"});class Sg extends Cg(le(Z)){static get is(){return"vaadin-select-overlay"}static get template(){return K`
5507
+ `;L("vaadin-select-overlay",[Zr,Sg],{moduleId:"vaadin-select-overlay-styles"});class Ag extends Eg(le(Z)){static get is(){return"vaadin-select-overlay"}static get template(){return K`
5508
5508
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
5509
5509
  <div part="overlay" id="overlay" tabindex="0">
5510
5510
  <div part="content" id="content">
5511
5511
  <slot></slot>
5512
5512
  </div>
5513
5513
  </div>
5514
- `}ready(){super.ready(),this.owner=this.__dataHost,this.owner._overlayElement=this}requestContentUpdate(){if(super.requestContentUpdate(),this.owner){const e=this._getMenuElement();this.owner._assignMenuElement(e)}}}G(Sg);/**
5514
+ `}ready(){super.ready(),this.owner=this.__dataHost,this.owner._overlayElement=this}requestContentUpdate(){if(super.requestContentUpdate(),this.owner){const e=this._getMenuElement();this.owner._assignMenuElement(e)}}}G(Ag);/**
5515
5515
  * @license
5516
5516
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5517
5517
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5518
- */const Ag=k`
5518
+ */const Pg=k`
5519
5519
  :host {
5520
5520
  display: inline-block;
5521
5521
  position: relative;
@@ -5561,17 +5561,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5561
5561
  * @license
5562
5562
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5563
5563
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5564
- */L("vaadin-select-value-button",Ag,{moduleId:"vaadin-select-value-button-styles"});class Pg extends is(le(Z)){static get is(){return"vaadin-select-value-button"}static get template(){return K`
5564
+ */L("vaadin-select-value-button",Pg,{moduleId:"vaadin-select-value-button-styles"});class kg extends is(le(Z)){static get is(){return"vaadin-select-value-button"}static get template(){return K`
5565
5565
  <div class="vaadin-button-container">
5566
5566
  <span part="label">
5567
5567
  <slot></slot>
5568
5568
  </span>
5569
5569
  </div>
5570
- `}}G(Pg);/**
5570
+ `}}G(kg);/**
5571
5571
  * @license
5572
5572
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
5573
5573
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5574
- */const kg=k`
5574
+ */const Tg=k`
5575
5575
  .sr-only {
5576
5576
  border: 0 !important;
5577
5577
  clip: rect(1px, 1px, 1px, 1px) !important;
@@ -5589,15 +5589,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5589
5589
  * @license
5590
5590
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
5591
5591
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5592
- */class Tg extends Ne{constructor(e){super(e,"value","vaadin-select-value-button",{initializer:(t,i)=>{i._setFocusElement(t),i.ariaTarget=t,i.stateTarget=t,t.setAttribute("aria-haspopup","listbox")}})}}/**
5592
+ */class Ig extends Ne{constructor(e){super(e,"value","vaadin-select-value-button",{initializer:(t,i)=>{i._setFocusElement(t),i.ariaTarget=t,i.stateTarget=t,t.setAttribute("aria-haspopup","listbox")}})}}/**
5593
5593
  * @license
5594
5594
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5595
5595
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5596
- */const Ig=r=>class extends Qr(Qi(qn(Lt(eo(r))))){static get properties(){return{items:{type:Array,observer:"__itemsChanged"},opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0,sync:!0},renderer:{type:Object},value:{type:String,value:"",notify:!0,observer:"_valueChanged"},name:{type:String},placeholder:{type:String},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},noVerticalOverlap:{type:Boolean,value:!1},_phone:Boolean,_phoneMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},_inputContainer:Object,_items:Object}}static get delegateAttrs(){return[...super.delegateAttrs,"invalid"]}static get observers(){return["_updateAriaExpanded(opened, focusElement)","_updateSelectedItem(value, _items, placeholder)","_openedChanged(opened, _overlayElement, _inputContainer)"]}constructor(){super(),this._itemId=`value-${this.localName}-${qr()}`,this._srLabelController=new $h(this),this._srLabelController.slotName="sr-label"}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}ready(){super.ready(),this._inputContainer=this.shadowRoot.querySelector('[part~="input-field"]'),this._valueButtonController=new Tg(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new ls(this._phoneMediaQuery,e=>{this._phone=e})),this._tooltipController=new ht(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.focusElement),this.addController(this._tooltipController)}requestContentUpdate(){this._overlayElement&&(this._overlayElement.requestContentUpdate(),this._menuElement&&this._menuElement.items&&this._updateSelectedItem(this.value,this._menuElement.items))}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate()}__itemsChanged(e,t){(e||t)&&this.requestContentUpdate()}_assignMenuElement(e){e&&e!==this.__lastMenuElement&&(this._menuElement=e,this.__initMenuItems(e),e.addEventListener("items-changed",()=>{this.__initMenuItems(e)}),e.addEventListener("selected-changed",()=>this.__updateValueButton()),e.addEventListener("keydown",t=>this._onKeyDownInside(t),!0),e.addEventListener("click",t=>{const i=t.composedPath().find(o=>o._hasVaadinItemMixin);this.__dispatchChangePending=!!(i&&i.value!==void 0&&i.value!==this.value),this.opened=!1},!0),this.__lastMenuElement=e)}__initMenuItems(e){e.items&&(this._items=e.items)}_valueChanged(e,t){this.toggleAttribute("has-value",!!e),t!==void 0&&!this.__dispatchChangePending&&this.validate()}_onClick(e){this.disabled||(e.preventDefault(),this.opened=!this.readonly)}_onToggleMouseDown(e){e.preventDefault()}_onKeyDown(e){if(e.target===this.focusElement&&!this.readonly&&!this.disabled&&!this.opened){if(/^(Enter|SpaceBar|\s|ArrowDown|Down|ArrowUp|Up)$/u.test(e.key))e.preventDefault(),this.opened=!0;else if(/[\p{L}\p{Nd}]/u.test(e.key)&&e.key.length===1){const t=this._menuElement.selected,i=t!==void 0?t:-1,o=this._menuElement._searchKey(i,e.key);o>=0&&(this.__dispatchChangePending=!0,this._updateAriaLive(!0),this._menuElement.selected=o)}}}_onKeyDownInside(e){/^(Tab)$/u.test(e.key)&&(this.opened=!1)}_openedChanged(e,t,i){if(!(!t||!i)){if(e){if(this.disabled||this.readonly){this.opened=!1;return}this._updateAriaLive(!1),t.style.setProperty("--vaadin-select-text-field-width",`${i.offsetWidth}px`);const o=this.hasAttribute("focus-ring");this._openedWithFocusRing=o,o&&this.removeAttribute("focus-ring")}else this.__oldOpened&&(this._openedWithFocusRing&&this.setAttribute("focus-ring",""),!this.__dispatchChangePending&&!this._keyboardActive&&this.validate());this.__oldOpened=e}}_updateAriaExpanded(e,t){t&&t.setAttribute("aria-expanded",e?"true":"false")}_updateAriaLive(e){this.focusElement&&(e?this.focusElement.setAttribute("aria-live","polite"):this.focusElement.removeAttribute("aria-live"))}__attachSelectedItem(e){let t;const i=e.getAttribute("label");i?t=this.__createItemElement({label:i}):t=e.cloneNode(!0),t._sourceItem=e,this.__appendValueItemElement(t,this.focusElement),t.selected=!0}__createItemElement(e){const t=document.createElement(e.component||"vaadin-select-item");return e.label&&(t.textContent=e.label),e.value&&(t.value=e.value),e.disabled&&(t.disabled=e.disabled),e.className&&(t.className=e.className),t}__appendValueItemElement(e,t){t.appendChild(e),e.removeAttribute("tabindex"),e.removeAttribute("aria-selected"),e.removeAttribute("role"),e.removeAttribute("focused"),e.removeAttribute("focus-ring"),e.removeAttribute("active"),e.setAttribute("id",this._itemId)}_accessibleNameChanged(e){this._srLabelController.setLabel(e),this._setCustomAriaLabelledBy(e?this._srLabelController.defaultId:null)}_accessibleNameRefChanged(e){this._setCustomAriaLabelledBy(e)}_setCustomAriaLabelledBy(e){const t=this._getLabelIdWithItemId(e);this._fieldAriaController.setLabelId(t,!0)}_getLabelIdWithItemId(e){const t=this._items&&this._items[this._menuElement.selected]||this.placeholder?this._itemId:"";return e?`${e} ${t}`.trim():null}__updateValueButton(){const e=this.focusElement;if(!e)return;e.innerHTML="";const t=this._items[this._menuElement.selected];if(e.removeAttribute("placeholder"),this._hasContent(t))this.__attachSelectedItem(t);else if(this.placeholder){const o=this.__createItemElement({label:this.placeholder});this.__appendValueItemElement(o,e),e.setAttribute("placeholder","")}!this._valueChanging&&t&&(this._selectedChanging=!0,this.value=t.value||"",this.__dispatchChangePending&&this.__dispatchChange(),delete this._selectedChanging);const i=t||this.placeholder?{newId:this._itemId}:{oldId:this._itemId};Zt(e,"aria-labelledby",i),(this.accessibleName||this.accessibleNameRef)&&this._setCustomAriaLabelledBy(this.accessibleNameRef||this._srLabelController.defaultId)}_hasContent(e){if(!e)return!1;const t=!!(e.hasAttribute("label")?e.getAttribute("label"):e.textContent.trim()),i=e.childElementCount>0;return t||i}_updateSelectedItem(e,t){if(t){const i=e==null?e:e.toString();this._menuElement.selected=t.reduce((o,n,s)=>o===void 0&&n.value===i?s:o,void 0),this._selectedChanging||(this._valueChanging=!0,this.__updateValueButton(),delete this._valueChanging)}}_shouldRemoveFocus(){return!this.opened}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}checkValidity(){return!this.required||this.readonly||!!this.value}__defaultRenderer(e,t){if(!this.items||this.items.length===0){e.textContent="";return}let i=e.firstElementChild;i||(i=document.createElement("vaadin-select-list-box"),e.appendChild(i)),i.textContent="",this.items.forEach(o=>{i.appendChild(this.__createItemElement(o))})}__dispatchChange(){return Ti(this,null,function*(){this.updateComplete&&(yield this.updateComplete),this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChangePending=!1})}};/**
5596
+ */const Dg=r=>class extends Qr(Qi(qn(Lt(eo(r))))){static get properties(){return{items:{type:Array,observer:"__itemsChanged"},opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0,sync:!0},renderer:{type:Object},value:{type:String,value:"",notify:!0,observer:"_valueChanged"},name:{type:String},placeholder:{type:String},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},noVerticalOverlap:{type:Boolean,value:!1},_phone:Boolean,_phoneMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},_inputContainer:Object,_items:Object}}static get delegateAttrs(){return[...super.delegateAttrs,"invalid"]}static get observers(){return["_updateAriaExpanded(opened, focusElement)","_updateSelectedItem(value, _items, placeholder)","_openedChanged(opened, _overlayElement, _inputContainer)"]}constructor(){super(),this._itemId=`value-${this.localName}-${qr()}`,this._srLabelController=new Vh(this),this._srLabelController.slotName="sr-label"}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}ready(){super.ready(),this._inputContainer=this.shadowRoot.querySelector('[part~="input-field"]'),this._valueButtonController=new Ig(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new ls(this._phoneMediaQuery,e=>{this._phone=e})),this._tooltipController=new ht(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.focusElement),this.addController(this._tooltipController)}requestContentUpdate(){this._overlayElement&&(this._overlayElement.requestContentUpdate(),this._menuElement&&this._menuElement.items&&this._updateSelectedItem(this.value,this._menuElement.items))}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate()}__itemsChanged(e,t){(e||t)&&this.requestContentUpdate()}_assignMenuElement(e){e&&e!==this.__lastMenuElement&&(this._menuElement=e,this.__initMenuItems(e),e.addEventListener("items-changed",()=>{this.__initMenuItems(e)}),e.addEventListener("selected-changed",()=>this.__updateValueButton()),e.addEventListener("keydown",t=>this._onKeyDownInside(t),!0),e.addEventListener("click",t=>{const i=t.composedPath().find(o=>o._hasVaadinItemMixin);this.__dispatchChangePending=!!(i&&i.value!==void 0&&i.value!==this.value),this.opened=!1},!0),this.__lastMenuElement=e)}__initMenuItems(e){e.items&&(this._items=e.items)}_valueChanged(e,t){this.toggleAttribute("has-value",!!e),t!==void 0&&!this.__dispatchChangePending&&this.validate()}_onClick(e){this.disabled||(e.preventDefault(),this.opened=!this.readonly)}_onToggleMouseDown(e){e.preventDefault()}_onKeyDown(e){if(e.target===this.focusElement&&!this.readonly&&!this.disabled&&!this.opened){if(/^(Enter|SpaceBar|\s|ArrowDown|Down|ArrowUp|Up)$/u.test(e.key))e.preventDefault(),this.opened=!0;else if(/[\p{L}\p{Nd}]/u.test(e.key)&&e.key.length===1){const t=this._menuElement.selected,i=t!==void 0?t:-1,o=this._menuElement._searchKey(i,e.key);o>=0&&(this.__dispatchChangePending=!0,this._updateAriaLive(!0),this._menuElement.selected=o)}}}_onKeyDownInside(e){/^(Tab)$/u.test(e.key)&&(this.opened=!1)}_openedChanged(e,t,i){if(!(!t||!i)){if(e){if(this.disabled||this.readonly){this.opened=!1;return}this._updateAriaLive(!1),t.style.setProperty("--vaadin-select-text-field-width",`${i.offsetWidth}px`);const o=this.hasAttribute("focus-ring");this._openedWithFocusRing=o,o&&this.removeAttribute("focus-ring")}else this.__oldOpened&&(this._openedWithFocusRing&&this.setAttribute("focus-ring",""),!this.__dispatchChangePending&&!this._keyboardActive&&this.validate());this.__oldOpened=e}}_updateAriaExpanded(e,t){t&&t.setAttribute("aria-expanded",e?"true":"false")}_updateAriaLive(e){this.focusElement&&(e?this.focusElement.setAttribute("aria-live","polite"):this.focusElement.removeAttribute("aria-live"))}__attachSelectedItem(e){let t;const i=e.getAttribute("label");i?t=this.__createItemElement({label:i}):t=e.cloneNode(!0),t._sourceItem=e,this.__appendValueItemElement(t,this.focusElement),t.selected=!0}__createItemElement(e){const t=document.createElement(e.component||"vaadin-select-item");return e.label&&(t.textContent=e.label),e.value&&(t.value=e.value),e.disabled&&(t.disabled=e.disabled),e.className&&(t.className=e.className),t}__appendValueItemElement(e,t){t.appendChild(e),e.removeAttribute("tabindex"),e.removeAttribute("aria-selected"),e.removeAttribute("role"),e.removeAttribute("focused"),e.removeAttribute("focus-ring"),e.removeAttribute("active"),e.setAttribute("id",this._itemId)}_accessibleNameChanged(e){this._srLabelController.setLabel(e),this._setCustomAriaLabelledBy(e?this._srLabelController.defaultId:null)}_accessibleNameRefChanged(e){this._setCustomAriaLabelledBy(e)}_setCustomAriaLabelledBy(e){const t=this._getLabelIdWithItemId(e);this._fieldAriaController.setLabelId(t,!0)}_getLabelIdWithItemId(e){const t=this._items&&this._items[this._menuElement.selected]||this.placeholder?this._itemId:"";return e?`${e} ${t}`.trim():null}__updateValueButton(){const e=this.focusElement;if(!e)return;e.innerHTML="";const t=this._items[this._menuElement.selected];if(e.removeAttribute("placeholder"),this._hasContent(t))this.__attachSelectedItem(t);else if(this.placeholder){const o=this.__createItemElement({label:this.placeholder});this.__appendValueItemElement(o,e),e.setAttribute("placeholder","")}!this._valueChanging&&t&&(this._selectedChanging=!0,this.value=t.value||"",this.__dispatchChangePending&&this.__dispatchChange(),delete this._selectedChanging);const i=t||this.placeholder?{newId:this._itemId}:{oldId:this._itemId};Zt(e,"aria-labelledby",i),(this.accessibleName||this.accessibleNameRef)&&this._setCustomAriaLabelledBy(this.accessibleNameRef||this._srLabelController.defaultId)}_hasContent(e){if(!e)return!1;const t=!!(e.hasAttribute("label")?e.getAttribute("label"):e.textContent.trim()),i=e.childElementCount>0;return t||i}_updateSelectedItem(e,t){if(t){const i=e==null?e:e.toString();this._menuElement.selected=t.reduce((o,n,s)=>o===void 0&&n.value===i?s:o,void 0),this._selectedChanging||(this._valueChanging=!0,this.__updateValueButton(),delete this._valueChanging)}}_shouldRemoveFocus(){return!this.opened}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}checkValidity(){return!this.required||this.readonly||!!this.value}__defaultRenderer(e,t){if(!this.items||this.items.length===0){e.textContent="";return}let i=e.firstElementChild;i||(i=document.createElement("vaadin-select-list-box"),e.appendChild(i)),i.textContent="",this.items.forEach(o=>{i.appendChild(this.__createItemElement(o))})}__dispatchChange(){return Ti(this,null,function*(){this.updateComplete&&(yield this.updateComplete),this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChangePending=!1})}};/**
5597
5597
  * @license
5598
5598
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5599
5599
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5600
- */L("vaadin-select",[nd,sd,kg],{moduleId:"vaadin-select-styles"});class Dg extends Ig(Ve(le(Z))){static get is(){return"vaadin-select"}static get template(){return K`
5600
+ */L("vaadin-select",[sd,ad,Tg],{moduleId:"vaadin-select-styles"});class Og extends Dg(Ve(le(Z))){static get is(){return"vaadin-select"}static get template(){return K`
5601
5601
  <style>
5602
5602
  :host {
5603
5603
  position: relative;
@@ -5650,7 +5650,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5650
5650
  <div class="sr-only">
5651
5651
  <slot name="sr-label"></slot>
5652
5652
  </div>
5653
- `}static get observers(){return["_rendererChanged(renderer, _overlayElement)"]}ready(){super.ready(),so(this)}_rendererChanged(e,t){t&&(t.renderer=e||this.__defaultRenderer,this.requestContentUpdate())}_onOverlayOpen(){this._menuElement&&this._menuElement.focus()}}G(Dg);const Ad=k`
5653
+ `}static get observers(){return["_rendererChanged(renderer, _overlayElement)"]}ready(){super.ready(),so(this)}_rendererChanged(e,t){t&&(t.renderer=e||this.__defaultRenderer,this.requestContentUpdate())}_onOverlayOpen(){this._menuElement&&this._menuElement.focus()}}G(Og);const Pd=k`
5654
5654
  /* Optical centering */
5655
5655
  :host::before,
5656
5656
  :host::after {
@@ -5750,7 +5750,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5750
5750
  transform: scale(1.02);
5751
5751
  }
5752
5752
  }
5753
- `;L("vaadin-dialog-overlay",[ur,Ad],{moduleId:"lumo-dialog"});L("vaadin-confirm-dialog-overlay",[ur,Ad,k`
5753
+ `;L("vaadin-dialog-overlay",[ur,Pd],{moduleId:"lumo-dialog"});L("vaadin-confirm-dialog-overlay",[ur,Pd,k`
5754
5754
  [part='header'] ::slotted(h3) {
5755
5755
  margin-top: 0 !important;
5756
5756
  margin-bottom: 0 !important;
@@ -5789,11 +5789,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5789
5789
  * @license
5790
5790
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5791
5791
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5792
- */const Og=r=>class extends r{static get properties(){return{opened:{type:Boolean,value:!1,notify:!0},noCloseOnOutsideClick:{type:Boolean,value:!1},noCloseOnEsc:{type:Boolean,value:!1},modeless:{type:Boolean,value:!1},overlayRole:{type:String,value:"dialog"}}}ready(){super.ready();const e=this.$.overlay;e.addEventListener("vaadin-overlay-outside-click",this._handleOutsideClick.bind(this)),e.addEventListener("vaadin-overlay-escape-press",this._handleEscPress.bind(this)),e.addEventListener("vaadin-overlay-closed",this.__handleOverlayClosed.bind(this)),this._overlayElement=e}__handleOverlayClosed(){this.dispatchEvent(new CustomEvent("closed"))}connectedCallback(){super.connectedCallback(),this.__restoreOpened&&(this.opened=!0)}disconnectedCallback(){super.disconnectedCallback(),setTimeout(()=>{this.isConnected||(this.__restoreOpened=this.opened,this.opened=!1)})}_onOverlayOpened(e){e.detail.value===!1&&(this.opened=!1)}_handleOutsideClick(e){this.noCloseOnOutsideClick&&e.preventDefault()}_handleEscPress(e){this.noCloseOnEsc&&e.preventDefault()}_bringOverlayToFront(){this.modeless&&this._overlayElement.bringToFront()}};/**
5792
+ */const Mg=r=>class extends r{static get properties(){return{opened:{type:Boolean,value:!1,notify:!0},noCloseOnOutsideClick:{type:Boolean,value:!1},noCloseOnEsc:{type:Boolean,value:!1},modeless:{type:Boolean,value:!1},overlayRole:{type:String,value:"dialog"}}}ready(){super.ready();const e=this.$.overlay;e.addEventListener("vaadin-overlay-outside-click",this._handleOutsideClick.bind(this)),e.addEventListener("vaadin-overlay-escape-press",this._handleEscPress.bind(this)),e.addEventListener("vaadin-overlay-closed",this.__handleOverlayClosed.bind(this)),this._overlayElement=e}__handleOverlayClosed(){this.dispatchEvent(new CustomEvent("closed"))}connectedCallback(){super.connectedCallback(),this.__restoreOpened&&(this.opened=!0)}disconnectedCallback(){super.disconnectedCallback(),setTimeout(()=>{this.isConnected||(this.__restoreOpened=this.opened,this.opened=!1)})}_onOverlayOpened(e){e.detail.value===!1&&(this.opened=!1)}_handleOutsideClick(e){this.noCloseOnOutsideClick&&e.preventDefault()}_handleEscPress(e){this.noCloseOnEsc&&e.preventDefault()}_bringOverlayToFront(){this.modeless&&this._overlayElement.bringToFront()}};/**
5793
5793
  * @license
5794
5794
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5795
5795
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5796
- */const Mg=k`
5796
+ */const Ng=k`
5797
5797
  [part='header'],
5798
5798
  [part='header-content'],
5799
5799
  [part='footer'] {
@@ -5968,11 +5968,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5968
5968
  * @license
5969
5969
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
5970
5970
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5971
- */const Ng=r=>class extends r{static get properties(){return{ariaLabel:{type:String,value:""},contentHeight:{type:String},contentWidth:{type:String}}}static get observers(){return["__updateContentHeight(contentHeight, _overlayElement)","__updateContentWidth(contentWidth, _overlayElement)"]}__updateDimension(e,t,i){const o=`--_vaadin-confirm-dialog-content-${t}`;i?e.style.setProperty(o,i):e.style.removeProperty(o)}__updateContentHeight(e,t){t&&this.__updateDimension(t,"height",e)}__updateContentWidth(e,t){t&&this.__updateDimension(t,"width",e)}};/**
5971
+ */const zg=r=>class extends r{static get properties(){return{ariaLabel:{type:String,value:""},contentHeight:{type:String},contentWidth:{type:String}}}static get observers(){return["__updateContentHeight(contentHeight, _overlayElement)","__updateContentWidth(contentWidth, _overlayElement)"]}__updateDimension(e,t,i){const o=`--_vaadin-confirm-dialog-content-${t}`;i?e.style.setProperty(o,i):e.style.removeProperty(o)}__updateContentHeight(e,t){t&&this.__updateDimension(t,"height",e)}__updateContentWidth(e,t){t&&this.__updateDimension(t,"width",e)}};/**
5972
5972
  * @license
5973
5973
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
5974
5974
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5975
- */const zg=k`
5975
+ */const Bg=k`
5976
5976
  :host {
5977
5977
  --_vaadin-confirm-dialog-content-width: auto;
5978
5978
  --_vaadin-confirm-dialog-content-height: auto;
@@ -5995,7 +5995,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5995
5995
  * @license
5996
5996
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
5997
5997
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5998
- */L("vaadin-confirm-dialog-overlay",[Zr,Mg,zg],{moduleId:"vaadin-confirm-dialog-overlay-styles"});class Bg extends Jr($e(le(Z))){static get is(){return"vaadin-confirm-dialog-overlay"}static get template(){return K`
5998
+ */L("vaadin-confirm-dialog-overlay",[Zr,Ng,Bg],{moduleId:"vaadin-confirm-dialog-overlay-styles"});class Lg extends Jr($e(le(Z))){static get is(){return"vaadin-confirm-dialog-overlay"}static get template(){return K`
5999
5999
  <div part="backdrop" id="backdrop" hidden$="[[!withBackdrop]]"></div>
6000
6000
  <div part="overlay" id="overlay" tabindex="0">
6001
6001
  <section id="resizerContainer" class="resizer-container">
@@ -6016,7 +6016,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6016
6016
  </footer>
6017
6017
  </section>
6018
6018
  </div>
6019
- `}ready(){super.ready(),this.setAttribute("has-header",""),this.setAttribute("has-footer","")}}G(Bg);class Lg extends Ng(Og(Qr(Xi(Z)))){static get is(){return"vaadin-confirm-dialog-dialog"}static get template(){return K`
6019
+ `}ready(){super.ready(),this.setAttribute("has-header",""),this.setAttribute("has-footer","")}}G(Lg);class Hg extends zg(Mg(Qr(Xi(Z)))){static get is(){return"vaadin-confirm-dialog-dialog"}static get template(){return K`
6020
6020
  <style>
6021
6021
  :host {
6022
6022
  display: none;
@@ -6037,15 +6037,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6037
6037
  restore-focus-on-close
6038
6038
  focus-trap
6039
6039
  ></vaadin-confirm-dialog-overlay>
6040
- `}}G(Lg);/**
6040
+ `}}G(Hg);/**
6041
6041
  * @license
6042
6042
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
6043
6043
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6044
- */const Hg=r=>class extends r{static get properties(){return{accessibleDescriptionRef:{type:String},opened:{type:Boolean,value:!1,notify:!0},header:{type:String,value:""},message:{type:String,value:""},confirmText:{type:String,value:"Confirm"},confirmTheme:{type:String,value:"primary"},noCloseOnEsc:{type:Boolean,value:!1},rejectButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},rejectText:{type:String,value:"Reject"},rejectTheme:{type:String,value:"error tertiary"},cancelButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},cancelText:{type:String,value:"Cancel"},cancelTheme:{type:String,value:"tertiary"},overlayClass:{type:String},_cancelButton:{type:Object},_confirmButton:{type:Object},_headerNode:{type:Object},_messageNodes:{type:Array,value:()=>[]},_overlayElement:{type:Object,sync:!0},_rejectButton:{type:Object},_contentHeight:{type:String},_contentWidth:{type:String}}}static get observers(){return["__updateConfirmButton(_confirmButton, confirmText, confirmTheme)","__updateCancelButton(_cancelButton, cancelText, cancelTheme, cancelButtonVisible)","__updateHeaderNode(_headerNode, header)","__updateMessageNodes(_messageNodes, message)","__updateRejectButton(_rejectButton, rejectText, rejectTheme, rejectButtonVisible)","__accessibleDescriptionRefChanged(_overlayElement, _messageNodes, accessibleDescriptionRef)"]}constructor(){super(),this.__cancel=this.__cancel.bind(this),this.__confirm=this.__confirm.bind(this),this.__reject=this.__reject.bind(this)}get __slottedNodes(){return[this._headerNode,...this._messageNodes,this._cancelButton,this._confirmButton,this._rejectButton]}ready(){super.ready(),this._headerController=new Ne(this,"header","h3",{initializer:e=>{this._headerNode=e}}),this.addController(this._headerController),this._messageController=new Ne(this,"","div",{multiple:!0,observe:!1,initializer:e=>{const t=document.createElement("div");t.style.display="contents";const i=`confirm-dialog-message-${qr()}`;t.id=i,this.appendChild(t),t.appendChild(e),this._messageNodes=[...this._messageNodes,t]}}),this.addController(this._messageController),this._cancelController=new Ne(this,"cancel-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("cancel",e)}}),this.addController(this._cancelController),this._rejectController=new Ne(this,"reject-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("reject",e)}}),this.addController(this._rejectController),this._confirmController=new Ne(this,"confirm-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("confirm",e)}}),this.addController(this._confirmController)}_initOverlay(e){e.addEventListener("vaadin-overlay-escape-press",this._escPressed.bind(this)),e.addEventListener("vaadin-overlay-open",()=>this.__onDialogOpened()),e.addEventListener("vaadin-overlay-closed",()=>this.__onDialogClosed()),e.setAttribute("role","alertdialog")}__onDialogOpened(){const e=this._overlayElement;this.__slottedNodes.forEach(i=>{e.appendChild(i)});const t=e.querySelector('[slot="confirm-button"]');t&&t.focus()}__onDialogClosed(){this.__slottedNodes.forEach(e=>{this.appendChild(e)}),this.dispatchEvent(new CustomEvent("closed"))}__accessibleDescriptionRefChanged(e,t,i){!e||!t||(i!==void 0?Zt(e,"aria-describedby",{newId:i,oldId:this.__oldAccessibleDescriptionRef,fromUser:!0}):t.forEach(o=>{Zt(e,"aria-describedby",{newId:o.id})}),this.__oldAccessibleDescriptionRef=i)}__setupSlottedButton(e,t){const i=`_${e}Button`,o=`__${e}`;this[i]&&this[i]!==t&&this[i].remove(),t.addEventListener("click",this[o]),this[i]=t}__updateCancelButton(e,t,i,o){e&&(e===this._cancelController.defaultNode&&(e.textContent=t,e.setAttribute("theme",i)),e.toggleAttribute("hidden",!o))}__updateConfirmButton(e,t,i){e&&e===this._confirmController.defaultNode&&(e.textContent=t,e.setAttribute("theme",i))}__updateHeaderNode(e,t){e&&e===this._headerController.defaultNode&&(e.textContent=t)}__updateMessageNodes(e,t){if(e&&e.length>0){const i=e.find(o=>this._messageController.defaultNode&&o===this._messageController.defaultNode.parentElement);i&&(i.firstChild.textContent=t)}}__updateRejectButton(e,t,i,o){e&&(e===this._rejectController.defaultNode&&(e.textContent=t,e.setAttribute("theme",i)),e.toggleAttribute("hidden",!o))}_escPressed(e){e.defaultPrevented||this.__cancel()}__confirm(){this.dispatchEvent(new CustomEvent("confirm")),this.opened=!1}__cancel(){this.dispatchEvent(new CustomEvent("cancel")),this.opened=!1}__reject(){this.dispatchEvent(new CustomEvent("reject")),this.opened=!1}_getAriaLabel(e){return e||"confirmation"}};/**
6044
+ */const Rg=r=>class extends r{static get properties(){return{accessibleDescriptionRef:{type:String},opened:{type:Boolean,value:!1,notify:!0},header:{type:String,value:""},message:{type:String,value:""},confirmText:{type:String,value:"Confirm"},confirmTheme:{type:String,value:"primary"},noCloseOnEsc:{type:Boolean,value:!1},rejectButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},rejectText:{type:String,value:"Reject"},rejectTheme:{type:String,value:"error tertiary"},cancelButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},cancelText:{type:String,value:"Cancel"},cancelTheme:{type:String,value:"tertiary"},overlayClass:{type:String},_cancelButton:{type:Object},_confirmButton:{type:Object},_headerNode:{type:Object},_messageNodes:{type:Array,value:()=>[]},_overlayElement:{type:Object,sync:!0},_rejectButton:{type:Object},_contentHeight:{type:String},_contentWidth:{type:String}}}static get observers(){return["__updateConfirmButton(_confirmButton, confirmText, confirmTheme)","__updateCancelButton(_cancelButton, cancelText, cancelTheme, cancelButtonVisible)","__updateHeaderNode(_headerNode, header)","__updateMessageNodes(_messageNodes, message)","__updateRejectButton(_rejectButton, rejectText, rejectTheme, rejectButtonVisible)","__accessibleDescriptionRefChanged(_overlayElement, _messageNodes, accessibleDescriptionRef)"]}constructor(){super(),this.__cancel=this.__cancel.bind(this),this.__confirm=this.__confirm.bind(this),this.__reject=this.__reject.bind(this)}get __slottedNodes(){return[this._headerNode,...this._messageNodes,this._cancelButton,this._confirmButton,this._rejectButton]}ready(){super.ready(),this._headerController=new Ne(this,"header","h3",{initializer:e=>{this._headerNode=e}}),this.addController(this._headerController),this._messageController=new Ne(this,"","div",{multiple:!0,observe:!1,initializer:e=>{const t=document.createElement("div");t.style.display="contents";const i=`confirm-dialog-message-${qr()}`;t.id=i,this.appendChild(t),t.appendChild(e),this._messageNodes=[...this._messageNodes,t]}}),this.addController(this._messageController),this._cancelController=new Ne(this,"cancel-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("cancel",e)}}),this.addController(this._cancelController),this._rejectController=new Ne(this,"reject-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("reject",e)}}),this.addController(this._rejectController),this._confirmController=new Ne(this,"confirm-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("confirm",e)}}),this.addController(this._confirmController)}_initOverlay(e){e.addEventListener("vaadin-overlay-escape-press",this._escPressed.bind(this)),e.addEventListener("vaadin-overlay-open",()=>this.__onDialogOpened()),e.addEventListener("vaadin-overlay-closed",()=>this.__onDialogClosed()),e.setAttribute("role","alertdialog")}__onDialogOpened(){const e=this._overlayElement;this.__slottedNodes.forEach(i=>{e.appendChild(i)});const t=e.querySelector('[slot="confirm-button"]');t&&t.focus()}__onDialogClosed(){this.__slottedNodes.forEach(e=>{this.appendChild(e)}),this.dispatchEvent(new CustomEvent("closed"))}__accessibleDescriptionRefChanged(e,t,i){!e||!t||(i!==void 0?Zt(e,"aria-describedby",{newId:i,oldId:this.__oldAccessibleDescriptionRef,fromUser:!0}):t.forEach(o=>{Zt(e,"aria-describedby",{newId:o.id})}),this.__oldAccessibleDescriptionRef=i)}__setupSlottedButton(e,t){const i=`_${e}Button`,o=`__${e}`;this[i]&&this[i]!==t&&this[i].remove(),t.addEventListener("click",this[o]),this[i]=t}__updateCancelButton(e,t,i,o){e&&(e===this._cancelController.defaultNode&&(e.textContent=t,e.setAttribute("theme",i)),e.toggleAttribute("hidden",!o))}__updateConfirmButton(e,t,i){e&&e===this._confirmController.defaultNode&&(e.textContent=t,e.setAttribute("theme",i))}__updateHeaderNode(e,t){e&&e===this._headerController.defaultNode&&(e.textContent=t)}__updateMessageNodes(e,t){if(e&&e.length>0){const i=e.find(o=>this._messageController.defaultNode&&o===this._messageController.defaultNode.parentElement);i&&(i.firstChild.textContent=t)}}__updateRejectButton(e,t,i,o){e&&(e===this._rejectController.defaultNode&&(e.textContent=t,e.setAttribute("theme",i)),e.toggleAttribute("hidden",!o))}_escPressed(e){e.defaultPrevented||this.__cancel()}__confirm(){this.dispatchEvent(new CustomEvent("confirm")),this.opened=!1}__cancel(){this.dispatchEvent(new CustomEvent("cancel")),this.opened=!1}__reject(){this.dispatchEvent(new CustomEvent("reject")),this.opened=!1}_getAriaLabel(e){return e||"confirmation"}};/**
6045
6045
  * @license
6046
6046
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
6047
6047
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6048
- */class Rg extends Hg(Ve(Xi(et(Z)))){static get template(){return K`
6048
+ */class Fg extends Rg(Ve(Xi(et(Z)))){static get template(){return K`
6049
6049
  <style>
6050
6050
  :host,
6051
6051
  [hidden] {
@@ -6072,7 +6072,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6072
6072
  <slot name="reject-button"></slot>
6073
6073
  <slot name="confirm-button"></slot>
6074
6074
  </div>
6075
- `}static get is(){return"vaadin-confirm-dialog"}ready(){super.ready(),this._overlayElement=this.$.dialog.$.overlay,this._initOverlay(this._overlayElement)}}G(Rg);L("vaadin-tab",k`
6075
+ `}static get is(){return"vaadin-confirm-dialog"}ready(){super.ready(),this._overlayElement=this.$.dialog.$.overlay,this._initOverlay(this._overlayElement)}}G(Fg);L("vaadin-tab",k`
6076
6076
  :host {
6077
6077
  box-sizing: border-box;
6078
6078
  padding: 0.5rem 0.75rem;
@@ -6309,11 +6309,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6309
6309
  * @license
6310
6310
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6311
6311
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6312
- */const Fg=r=>class extends Cd(r){ready(){super.ready(),this.setAttribute("role","tab")}_onKeyUp(e){const t=this.hasAttribute("active");if(super._onKeyUp(e),t){const i=this.querySelector("a");i&&i.click()}}};/**
6312
+ */const $g=r=>class extends Ed(r){ready(){super.ready(),this.setAttribute("role","tab")}_onKeyUp(e){const t=this.hasAttribute("active");if(super._onKeyUp(e),t){const i=this.querySelector("a");i&&i.click()}}};/**
6313
6313
  * @license
6314
6314
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6315
6315
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6316
- */const $g=k`
6316
+ */const Vg=k`
6317
6317
  :host {
6318
6318
  display: block;
6319
6319
  }
@@ -6336,10 +6336,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6336
6336
  * @license
6337
6337
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6338
6338
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6339
- */L("vaadin-tab",$g,{moduleId:"vaadin-tab-styles"});class Vg extends Ve(le(Fg(et(Z)))){static get template(){return K`
6339
+ */L("vaadin-tab",Vg,{moduleId:"vaadin-tab-styles"});class Wg extends Ve(le($g(et(Z)))){static get template(){return K`
6340
6340
  <slot></slot>
6341
6341
  <slot name="tooltip"></slot>
6342
- `}static get is(){return"vaadin-tab"}ready(){super.ready(),this._tooltipController=new ht(this),this.addController(this._tooltipController)}}G(Vg);L("vaadin-tabs",k`
6342
+ `}static get is(){return"vaadin-tab"}ready(){super.ready(),this._tooltipController=new ht(this),this.addController(this._tooltipController)}}G(Wg);L("vaadin-tabs",k`
6343
6343
  :host {
6344
6344
  -webkit-tap-highlight-color: transparent;
6345
6345
  }
@@ -6581,11 +6581,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6581
6581
  * @license
6582
6582
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6583
6583
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6584
- */const Wg=r=>class extends xd(Sd(r)){static get properties(){return{orientation:{value:"horizontal",type:String,reflectToAttribute:!0,sync:!0},selected:{value:0,type:Number}}}static get observers(){return["__tabsItemsChanged(items)"]}constructor(){super(),this.__itemsResizeObserver=new ResizeObserver(()=>{setTimeout(()=>this._updateOverflow())})}get _scrollOffset(){return this._vertical?this._scrollerElement.offsetHeight:this._scrollerElement.offsetWidth}get _scrollerElement(){return this.$.scroll}get __direction(){return!this._vertical&&this.__isRTL?1:-1}ready(){super.ready(),this._scrollerElement.addEventListener("scroll",()=>this._updateOverflow()),this.setAttribute("role","tablist"),es(this,()=>{this._updateOverflow()})}_onResize(){this._updateOverflow()}__tabsItemsChanged(e){this.__itemsResizeObserver.disconnect(),(e||[]).forEach(t=>{this.__itemsResizeObserver.observe(t)}),this._updateOverflow()}_scrollForward(){const e=this._getNavigationButtonVisibleWidth("forward-button"),t=this._getNavigationButtonVisibleWidth("back-button"),i=this._scrollerElement.getBoundingClientRect(),o=[...this.items].reverse().find(a=>this._isItemVisible(a,e,t,i)).getBoundingClientRect(),n=20+this.shadowRoot.querySelector('[part="back-button"]').clientWidth;let s;if(this.__isRTL){const a=i.right-n;s=o.right-a}else{const a=i.left+n;s=o.left-a}-this.__direction*s<1&&(s=-this.__direction*(this._scrollOffset-n)),this._scroll(s)}_scrollBack(){const e=this._getNavigationButtonVisibleWidth("forward-button"),t=this._getNavigationButtonVisibleWidth("back-button"),i=this._scrollerElement.getBoundingClientRect(),o=this.items.find(a=>this._isItemVisible(a,e,t,i)).getBoundingClientRect(),n=20+this.shadowRoot.querySelector('[part="forward-button"]').clientWidth;let s;if(this.__isRTL){const a=i.left+n;s=o.left-a}else{const a=i.right-n;s=o.right-a}this.__direction*s<1&&(s=this.__direction*(this._scrollOffset-n)),this._scroll(s)}_isItemVisible(e,t,i,o){if(this._vertical)throw new Error("Visibility check is only supported for horizontal tabs.");const n=this.__isRTL?i:t,s=this.__isRTL?t:i,a=o.right-n,l=o.left+s,h=e.getBoundingClientRect();return a>Math.floor(h.left)&&l<Math.ceil(h.right)}_getNavigationButtonVisibleWidth(e){const t=this.shadowRoot.querySelector(`[part="${e}"]`);return window.getComputedStyle(t).opacity==="0"?0:t.clientWidth}_updateOverflow(){const e=this._vertical?this._scrollerElement.scrollTop:Ed(this._scrollerElement,this.getAttribute("dir")),t=this._vertical?this._scrollerElement.scrollHeight:this._scrollerElement.scrollWidth;let i=Math.floor(e)>1?"start":"";Math.ceil(e)<Math.ceil(t-this._scrollOffset)&&(i+=" end"),this.__direction===1&&(i=i.replace(/start|end/giu,o=>o==="start"?"end":"start")),i?this.setAttribute("overflow",i.trim()):this.removeAttribute("overflow")}};/**
6584
+ */const jg=r=>class extends wd(Ad(r)){static get properties(){return{orientation:{value:"horizontal",type:String,reflectToAttribute:!0,sync:!0},selected:{value:0,type:Number}}}static get observers(){return["__tabsItemsChanged(items)"]}constructor(){super(),this.__itemsResizeObserver=new ResizeObserver(()=>{setTimeout(()=>this._updateOverflow())})}get _scrollOffset(){return this._vertical?this._scrollerElement.offsetHeight:this._scrollerElement.offsetWidth}get _scrollerElement(){return this.$.scroll}get __direction(){return!this._vertical&&this.__isRTL?1:-1}ready(){super.ready(),this._scrollerElement.addEventListener("scroll",()=>this._updateOverflow()),this.setAttribute("role","tablist"),es(this,()=>{this._updateOverflow()})}_onResize(){this._updateOverflow()}__tabsItemsChanged(e){this.__itemsResizeObserver.disconnect(),(e||[]).forEach(t=>{this.__itemsResizeObserver.observe(t)}),this._updateOverflow()}_scrollForward(){const e=this._getNavigationButtonVisibleWidth("forward-button"),t=this._getNavigationButtonVisibleWidth("back-button"),i=this._scrollerElement.getBoundingClientRect(),o=[...this.items].reverse().find(a=>this._isItemVisible(a,e,t,i)).getBoundingClientRect(),n=20+this.shadowRoot.querySelector('[part="back-button"]').clientWidth;let s;if(this.__isRTL){const a=i.right-n;s=o.right-a}else{const a=i.left+n;s=o.left-a}-this.__direction*s<1&&(s=-this.__direction*(this._scrollOffset-n)),this._scroll(s)}_scrollBack(){const e=this._getNavigationButtonVisibleWidth("forward-button"),t=this._getNavigationButtonVisibleWidth("back-button"),i=this._scrollerElement.getBoundingClientRect(),o=this.items.find(a=>this._isItemVisible(a,e,t,i)).getBoundingClientRect(),n=20+this.shadowRoot.querySelector('[part="forward-button"]').clientWidth;let s;if(this.__isRTL){const a=i.left+n;s=o.left-a}else{const a=i.right-n;s=o.right-a}this.__direction*s<1&&(s=this.__direction*(this._scrollOffset-n)),this._scroll(s)}_isItemVisible(e,t,i,o){if(this._vertical)throw new Error("Visibility check is only supported for horizontal tabs.");const n=this.__isRTL?i:t,s=this.__isRTL?t:i,a=o.right-n,l=o.left+s,h=e.getBoundingClientRect();return a>Math.floor(h.left)&&l<Math.ceil(h.right)}_getNavigationButtonVisibleWidth(e){const t=this.shadowRoot.querySelector(`[part="${e}"]`);return window.getComputedStyle(t).opacity==="0"?0:t.clientWidth}_updateOverflow(){const e=this._vertical?this._scrollerElement.scrollTop:Sd(this._scrollerElement,this.getAttribute("dir")),t=this._vertical?this._scrollerElement.scrollHeight:this._scrollerElement.scrollWidth;let i=Math.floor(e)>1?"start":"";Math.ceil(e)<Math.ceil(t-this._scrollOffset)&&(i+=" end"),this.__direction===1&&(i=i.replace(/start|end/giu,o=>o==="start"?"end":"start")),i?this.setAttribute("overflow",i.trim()):this.removeAttribute("overflow")}};/**
6585
6585
  * @license
6586
6586
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6587
6587
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6588
- */const jg=k`
6588
+ */const Ug=k`
6589
6589
  :host {
6590
6590
  display: flex;
6591
6591
  align-items: center;
@@ -6665,7 +6665,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6665
6665
  * @license
6666
6666
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6667
6667
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6668
- */L("vaadin-tabs",jg,{moduleId:"vaadin-tabs-styles"});class Ug extends Wg(Ve(le(Z))){static get template(){return K`
6668
+ */L("vaadin-tabs",Ug,{moduleId:"vaadin-tabs-styles"});class Gg extends jg(Ve(le(Z))){static get template(){return K`
6669
6669
  <div on-click="_scrollBack" part="back-button" aria-hidden="true"></div>
6670
6670
 
6671
6671
  <div id="scroll" part="tabs">
@@ -6673,7 +6673,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6673
6673
  </div>
6674
6674
 
6675
6675
  <div on-click="_scrollForward" part="forward-button" aria-hidden="true"></div>
6676
- `}static get is(){return"vaadin-tabs"}}G(Ug);function Gg(r){qd(r,"svelte-xdr5hv",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.headerTextNone{display:none}.historyContainer{container-type:inline-size}.historyContainer .desktopSubmenu{display:flex}.historyContainer .allSubmenuRows{display:none}.historyContainer .historyWrapper{padding:50px}.historyContainer .historyWrapper .historyHeader{width:100%;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:20px}.historyContainer .historyWrapper .historyHeader .headerText p{color:var(--emw--color-primary, #22b04e);font-size:var(--emw--font-size-x-large, 26px);font-family:inherit}.historyContainer .historyWrapper .historyHeader .headerText.skeleton{width:250px;height:30px}.historyContainer .historyWrapper .historyHeader .headerController{display:inherit;flex-direction:row;align-items:center;flex-wrap:wrap;justify-content:flex-start;gap:30px}.historyContainer .historyWrapper .historyHeader .headerController.skeleton .toggleContent{justify-content:flex-start;overflow:hidden}.historyContainer .historyWrapper .historyHeader .headerController.skeleton .toggleContent .toggleCheckbox{border:none;padding:0;margin:0}.historyContainer .historyWrapper .historyHeader .headerController.skeleton .toggleContent .label{width:70px;height:15px;border-radius:var(--emw--border-radius-medium, 20px);overflow:hidden}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent{display:inherit;flex-direction:row;align-items:inherit;justify-content:inherit;background-color:transparent;border:none;cursor:pointer}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent .toggleCheckbox{width:20px;height:20px;padding:2px;margin:2px 0 2px 0;border-radius:100%;position:relative;border:1px solid var(--emw--color-gray-300, #666178)}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent .toggleCheckbox [type=checkbox]{display:none}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent .toggleCheckbox::before{content:"";width:12.75px;height:12.75px;border-radius:var(--emw--border-radius-large, 20px);cursor:pointer;position:absolute;top:50%;left:50%;z-index:1;transform:translate(-50%, -50%);transition:all 0.5s ease}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent.checked .toggleCheckbox{border:1px solid var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent.checked .toggleCheckbox::before{background-color:var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent .label{font-size:var(--emw--size-standard, 16px);font-family:inherit;margin-left:10px}.historyContainer .historyWrapper .historyFilter{display:flex;align-items:flex-end;gap:10px;padding-bottom:30px;padding:20px 0px}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer{display:flex;gap:5px}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate{width:190px;color:var(--emw--color-gray-300, #58586b);display:flex;flex-direction:column;position:relative;align-items:flex-start;gap:10px}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate.BonusesCalendarMobile,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px;width:48%}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%;border-radius:var(--emw--border-radius-medium, 20px)}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate label,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate label{font-size:var(--emw--font-size-small, 14px);font-weight:300}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate input,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate input{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #e6e6e6);border-radius:var(--emw--border-radius-small, 5px);box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px;outline-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22b04e) 80%, black 20%), var(--emw--color-primary, #22b04e), color-mix(in srgb, var(--emw--color-primary, #22b04e) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0e5924);color:var(--emw--button-text-color, #ffffff);border-radius:var(--emw--button-border-radius, 50px);cursor:pointer;width:120px;height:40px;font-size:var(--emw--font-size-medium, 15px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:9px;outline:none}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter.historyCalendarFilterMobile{width:100%;height:44px}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter.disable{cursor:default;color:var(--emw--color-white, #ffffff);background:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarStartDate,.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarEndDate{align-items:normal;overflow:hidden}.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarStartDate .label,.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarEndDate .label{height:15px;overflow:hidden;border-radius:20px}.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarFilter{padding:0;background:transparent;border:none;overflow:hidden}.historyContainer .historyWrapper .historyTable{width:100%;display:flex;flex-direction:column;border:1px solid var(--emw--color-primary, #22b04e);background-color:var(--emw--color-white, #ffffff);overflow:auto;scrollbar-width:thin}.historyContainer .historyWrapper .historyTable::-webkit-scrollbar{width:6px;height:6px}.historyContainer .historyWrapper .historyTable .tableWrapper{width:100%;display:flex;flex-direction:column}.historyContainer .historyWrapper .historyTable .tableWrapper.sports{width:100%;display:flex}.historyContainer .historyWrapper .historyTable .tableWrapper.sports .tableHead span{min-width:102px}.historyContainer .historyWrapper .historyTable .tableWrapper.sports .tableContent .tableRow .tableData span{min-width:101px}.historyContainer .historyWrapper .historyTable .tableHead{display:flex}.historyContainer .historyWrapper .historyTable .tableHead span{display:flex;justify-content:center;align-items:center;min-width:100px;flex:1 1 20%;padding:12px 0;text-align:center;color:var(--emw--button-text-color, #ffffff);background:var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyTable .tableContent{width:100%;max-height:546px;overflow-y:auto}.historyContainer .historyWrapper .historyTable .tableContent::-webkit-scrollbar{width:6px;height:6px}.historyContainer .historyWrapper .historyTable .tableContent .tableRow{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:10px 5px;background-color:var(--emw--color-primary, rgba(68, 224, 117, 0.811))}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData{display:flex;justify-content:center;align-items:center;width:100%}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu{width:100px;display:flex;justify-content:center;align-items:center;flex:1 1 20%;text-align:center;cursor:pointer;font-weight:700;font-size:inherit;text-decoration:underline;color:var(--emw--color-white, #ffffff);border:none;background-color:transparent}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu .iconToggleSubMenu{width:18px;height:18px;padding-bottom:5px;box-sizing:content-box;fill:var(--emw--color-white, #ffffff);transform:rotateX(0deg);transition:all 0.3s ease-in-out}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu .iconToggleSubMenu.active{transform:rotateX(180deg)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu span{width:70px;flex:none}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span{flex:1 1 20%;text-align:center;min-width:100px}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span.approved svg{width:30px;height:30px;fill:transparent}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span.approved svg path{stroke:var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span.decline svg{width:30px;height:30px;fill:transparent}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span.decline svg path{stroke:var(--emw--color-error, #ed0909)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu{display:flex;flex-direction:row;justify-content:center;align-items:center;width:100%;overflow:hidden;max-height:0px;overflow:hidden;opacity:0;transition:all 0.3s ease-in-out}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu .tableData{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;overflow:hidden}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu .tableData .label{width:100%;padding:0;overflow-wrap:break-word}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu.active{max-height:1000px;opacity:1}.historyContainer .historyWrapper .historyTable .tableContent .tableRow:nth-of-type(odd){background-color:var(--emw--color-white, #ffffff)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow:nth-of-type(odd) .tableData .toggleSubMenu{color:var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow:nth-of-type(odd) .tableData .toggleSubMenu .iconToggleSubMenu{fill:var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyTable.skeleton .tableHead{gap:40px;padding:18px 25px}.historyContainer .historyWrapper .historyTable.skeleton .tableHead div{width:100px;overflow:hidden;height:15px;border-radius:10px;flex:1 1 20%}.historyContainer .historyWrapper .historyTable.skeleton .tableContent .tableRow{padding:0px}.historyContainer .historyWrapper .historyTable.skeleton .tableContent .tableRow .tableData{gap:40px;padding:18px 25px;border-radius:10px}.historyContainer .historyWrapper .historyTable.skeleton .tableContent .tableRow .tableData div{overflow:hidden;height:15px;border-radius:10px;width:100px;flex:1 1 20%;text-align:center}.historyContainer .historyWrapper .historyPaginationContainer{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:20px;padding-top:10px}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex{width:fit-content;display:flex;flex-direction:row;align-items:center;justify-content:center;border:1px solid var(--emw--color-primary, #22b04e);border-radius:var(--emw--border-radius-small, 5px)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .indexDisplay{text-align:center;width:40px;padding:10px;transition:all 0.3s ease;border-left:1px solid var(--emw--color-primary, #22b04e);border-right:1px solid var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .indexDisplay input{width:100%}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .indexDisplay.disable{color:var(--emw--color-white, #ffffff);background:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight{display:flex;justify-content:center;align-items:center;width:20px;height:20px;padding:9px;box-sizing:content-box;cursor:pointer;transition:all 0.3s ease;background-color:transparent;border:none}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft svg,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight svg{fill:var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft.disable,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight.disable{cursor:default;background:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft.disable svg,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight.disable svg{fill:var(--emw--color-white, #ffffff)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft.disable:hover,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight.disable:hover{background-color:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft:hover,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight:hover{background-color:var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft:hover svg,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight:hover svg{fill:var(--emw--color-white, #ffffff)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize{width:fit-content;display:inline;text-align:center;width:80px;height:43px}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector{width:100%;height:100%;position:relative;border:none;background-color:transparent;cursor:pointer;border-radius:var(--emw--border-radius-small, 5px)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .currentPageSize{width:100%;height:100%;padding:10px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;border:1px solid var(--emw--color-primary, #22b04e);border-radius:var(--emw--border-radius-small, 5px)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .currentPageSize .icon{width:15px;height:15px;padding-bottom:2px;transform:rotateX(0deg);box-sizing:content-box;transition:all 0.3s ease;fill:var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown{width:100%;max-height:0px;position:absolute;top:120%;left:0;text-align:left;overflow:hidden;opacity:0;background-color:var(--emw--color-white, #ffffff);border:1px solid var(--emw--color-primary, #22b04e);border-radius:var(--emw--border-radius-small, 5px);transition:all 0.3s ease}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown .dropDownRow{width:100%;cursor:pointer;padding:10px;border:none;background-color:transparent;border-bottom:1px solid var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown .dropDownRow .p{flex:1 1 20%;text-align:center}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown .dropDownRow:hover{background-color:var(--emw--color-primary, rgba(68, 224, 117, 0.811))}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown .dropDownRow:nth-last-child(1){border:none}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.active .currentPageSize .icon{transform:rotateX(180deg)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.active .pageSizeDropDown{max-height:1000px;opacity:1}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.disable{cursor:default;background-color:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.disable .currentPageSize{color:var(--emw--color-white, #ffffff)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.disable .currentPageSize .icon{fill:var(--emw--color-white, #ffffff)}.historyContainer .historyWrapper .historyPaginationContainer.skeleton .historyPageIndex{display:block;width:100px;border:none;overflow:hidden;border-radius:5px}.historyContainer .historyWrapper .historyPaginationContainer.skeleton .historyPageSize{border:none;overflow:hidden;border-radius:5px}.historyContainer .historyMobileWrapper.historyWrapper{padding:20px 15px}.historyContainer .historyMobileWrapper.historyWrapper .historyHeader .headerText{display:none}.historyContainer .historyMobileWrapper.historyWrapper .historyHeader .historyReturnButton{display:inline-flex;border:none;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));align-items:center;column-gap:10px;margin-bottom:10px}.historyContainer .historyMobileWrapper.historyWrapper .historyHeader .historyReturnButton .historyReturnText{font-size:var(--emw--size-standard, 16px)}.historyContainer .historyMobileWrapper.historyWrapper .historyHeader .historyReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.historyContainer .historyMobileWrapper.historyWrapper .historyHeader .historyReturnButton.skeleton{width:200px;height:20px}.historyContainer .historyMobileWrapper.historyWrapper .historyHeader .headerController{width:100%;align-items:center;justify-content:center}.historyContainer .historyMobileWrapper.historyWrapper .historyFilter{flex-direction:column;align-items:center}.historyContainer .historyMobileWrapper.historyWrapper .historyFilter .historyCalendarContainer{width:100%}.historyContainer .historyMobileWrapper.historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate,.historyContainer .historyMobileWrapper.historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate{width:inherit}.historyContainer .historyMobileWrapper.historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate .VaadinDatePicker,.historyContainer .historyMobileWrapper.historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate .VaadinDatePicker{width:inherit}.historyContainer .historyMobileWrapper.historyWrapper .historyFilter .historyCalendarFilter{width:100%}.historyContainer .historyMobileWrapper.historyWrapper .historyTable{overflow:auto}.historyContainer .historyMobileWrapper.historyWrapper .historyTable .tableHead{min-width:fit-content}.historyContainer .historyMobileWrapper.historyWrapper .historyTable .tableContent{min-width:fit-content;max-height:430px}.historyContainer .historyMobileWrapper.historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown{top:-150px}@container (max-width: 425px){.historyContainer .historyWrapper{display:flex;flex-direction:column}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer{width:100%;flex-direction:column}.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarStartDate .label,.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarEndDate .label{width:100px}.historyContainer .historyWrapper .historyTable{overflow:auto}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span{padding:5px 0;font-size:13px}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown{top:-150px}}@container (max-width: 520px){.historyContainer .historyWrapper .historyFilter{flex-direction:column;align-items:flex-start}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer{flex-direction:column;width:100%}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate{min-width:190px;width:100%}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate vaadin-date-picker,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate vaadin-date-picker{width:100%}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter{min-width:190px;width:100%}}@container (max-width: 784px){.historyContainer .historyWrapper .historyTable{min-width:190px}.historyContainer .historyWrapper .historyTable .tableWrapper{display:flex}.historyContainer .historyWrapper .historyTable .tableHead{display:none}.historyContainer .historyWrapper .historyTable .tableRow{display:flex;flex-direction:column;border:1px solid #ddd;margin-bottom:16px;border-radius:8px;overflow:hidden;background:#fff;text-align:center}.historyContainer .historyWrapper .historyTable .tableData{display:flex;flex-direction:column;padding:16px}.historyContainer .historyWrapper .historyTable .tableData span{width:100%}.historyContainer .historyWrapper .historyTable .tableData span[data-label],.historyContainer .historyWrapper .historyTable .tableData button[data-label]{display:flex;justify-content:space-between;align-items:center;padding:4px 0;border-bottom:1px solid #eee}.historyContainer .historyWrapper .historyTable .tableData span[data-label]::before,.historyContainer .historyWrapper .historyTable .tableData button[data-label]::before{content:attr(data-label);font-weight:600;color:#555;margin-right:16px;flex:1;text-align:left}.historyContainer .historyWrapper .historyTable .tableData button[data-label]{padding:2px 0}.historyContainer .historyWrapper .historyTable .tableData span[data-label]:last-child{border-bottom:none}.historyContainer .historyWrapper .historyTable .tableData span[data-label],.historyContainer .historyWrapper .historyTable .tableData button[data-label] span{flex:2;text-align:right;font-weight:normal;color:#222}.historyContainer .historyWrapper .historyTable .tableContent{overflow-y:visible;padding:10px 5px}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span{text-align:right}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu{width:100%}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu{display:none;margin-top:15px}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu.active{display:block;padding:0 18px}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu .tableData{display:flex;flex-direction:column;padding:1px}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu .label{display:flex;justify-content:space-between;padding:3px 0;font-size:14px;border-bottom:1px solid #eee;flex:2;text-align:right;font-weight:normal;color:rgba(0, 0, 0, 0.7);padding:2px 0}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu .label::before{content:attr(data-label);font-weight:600;display:inline-block;width:100px;flex:1;text-align:left;margin-right:8px}.historyContainer .historyWrapper .historyTable .tableContent .submenuRow{margin-top:10px}.historyContainer .historyWrapper .historyTable .tableContent .remainingRows .submenuRow{margin:0}.historyContainer .historyWrapper .historyTable .tableContent .remainingRows .submenuRow:last-of-type .tableData span{border-bottom:none}.historyContainer .historyWrapper .historyTable .tableContent .submenuRowTitle{font-size:14px}.historyContainer .remainingRows{margin-top:15px}.historyContainer .desktopSubmenu{display:none}.historyContainer .allSubmenuRows{display:flex;flex-direction:column}}@container (min-width: 785px){.historyContainer .historyWrapper .historyTable .tableWrapper.sports{display:block}}')}function Na(r,e,t){const i=r.slice();return i[99]=e[t],i}function za(r,e,t){const i=r.slice();return i[102]=e[t],i[103]=e,i[104]=t,i}function Ba(r,e,t){const i=r.slice();return i[105]=e[t],i}function La(r,e,t){const i=r.slice();return i[90]=e[t],i[109]=t,i}function Ha(r,e,t){const i=r.slice();return i[105]=e[t],i}function Ra(r,e,t){const i=r.slice();return i[112]=e[t],i}function Fa(r,e,t){const i=r.slice();return i[115]=e[t],i}function $a(r,e,t){const i=r.slice();return i[112]=e[t],i}function Va(r,e,t){const i=r.slice();return i[112]=e[t],i}function Wa(r,e,t){const i=r.slice();return i[122]=e[t],i[104]=t,i}function qg(r,e,t){const i=r.slice();return i[90]=e[t],i}function Yg(r,e,t){const i=r.slice();return i[90]=e[t],i}function Xg(r,e,t){const i=r.slice();return i[90]=e[t],i}function Kg(r,e,t){const i=r.slice();return i[90]=e[t],i}function Zg(r){let e,t,i,o,n,s,a=r[19]("headerTitle")+"",l,h,d,c,u,m,g,_,y=r[19]("dateFrom")+"",D,A,M,R,W,Q,S=r[19]("dateTo")+"",P,b,O,$,he,de=r[19]("dateFilter")+"",B,w,C,T,x,N,z,V,q,oe,ne,se,we,ce,Oe,be,ue,fe,ke,ze,Ke,dt,tt,ct,We,ee,ei,Et,je,rt,pr,mr,fr,Be,Ft,_r,ut,St,At,ti,it=r[20]&&Qg(r),pt=me(r[15]),Ce=[];for(let I=0;I<pt.length;I+=1)Ce[I]=ja(Wa(r,pt,I));let mt=me(r[21][r[7]]),Ee=[];for(let I=0;I<mt.length;I+=1)Ee[I]=Ga(Va(r,mt,I));function ri(I,ae){return I[12]?eb:tb}let Pt=ri(r),Ue=Pt(r),ft=me(r[29]),Ae=[];for(let I=0;I<ft.length;I+=1)Ae[I]=el(Na(r,ft,I));return{c(){e=E("div"),t=E("div"),i=E("div"),it&&it.c(),o=U(),n=E("div"),s=E("p"),l=ge(a),h=U(),d=E("div");for(let I=0;I<Ce.length;I+=1)Ce[I].c();c=U(),u=E("div"),m=E("div"),g=E("div"),_=E("label"),D=ge(y),A=U(),M=E("vaadin-date-picker"),R=U(),W=E("div"),Q=E("label"),P=ge(S),b=U(),O=E("vaadin-date-picker"),$=U(),he=E("button"),B=ge(de),C=U(),T=E("table"),x=E("div"),N=E("thead");for(let I=0;I<Ee.length;I+=1)Ee[I].c();z=U(),V=E("tbody"),Ue.c(),oe=U(),ne=E("div"),se=E("div"),we=E("button"),ce=xe("svg"),Oe=xe("path"),ue=U(),fe=E("div"),ke=E("p"),ze=ge(r[9]),dt=U(),tt=E("button"),ct=xe("svg"),We=xe("path"),ei=U(),Et=E("div"),je=E("button"),rt=E("div"),pr=E("p"),mr=ge(r[8]),fr=U(),Be=xe("svg"),Ft=xe("path"),_r=U(),ut=E("div");for(let I=0;I<Ae.length;I+=1)Ae[I].c();p(n,"class","headerText "+(r[20]?"headerTextNone":"")),p(d,"class","headerController"),p(i,"class","historyHeader"),p(_,"for","historyCalendarStartDate"),Ye(M,"max",r[4]),Ye(M,"value",r[5]),Ye(M,"placeholder","From"),Ye(M,"class","VaadinDatePicker"),p(g,"class","historyCalendarStartDate"),p(Q,"for","historyCalendarEndDate"),Ye(O,"max",r[4]),Ye(O,"value",r[6]),Ye(O,"placeholder","To"),Ye(O,"class","VaadinDatePicker"),p(W,"class","historyCalendarEndDate"),p(m,"class","historyCalendarContainer"),p(he,"class",w="historyCalendarFilter "+(r[18].filterButton?"":"disable")),p(u,"class","historyFilter"),p(N,"class","tableHead"),p(V,"class","tableContent"),p(x,"class",q=`tableWrapper ${r[7].replace("$","")} ${r[20]?"tableWrapperMobile":""}`),p(T,"class","historyTable"),p(Oe,"d","M1.293,12.707a1,1,0,0,1,0-1.414l5-5A1,1,0,0,1,7.707,7.707L4.414,11H22a1,1,0,0,1,0,2H4.414l3.293,3.293a1,1,0,1,1-1.414,1.414Z"),p(ce,"viewBox","1 4 17 17"),p(ce,"xmlns","http://www.w3.org/2000/svg"),p(we,"class",be="arrowLeft "+(r[18].previousPage?"":"disable")),p(fe,"class",Ke="indexDisplay "+(!r[18].previousPage&&!r[18].nextPage?"disable":"")),p(We,"d","M17.707,17.707a1,1,0,0,1-1.414-1.414L19.586,13H2a1,1,0,0,1,0-2H19.586L16.293,7.707a1,1,0,0,1,1.414-1.414l5,5a1,1,0,0,1,0,1.414Z"),p(ct,"viewBox","6 4 17 17"),p(ct,"xmlns","http://www.w3.org/2000/svg"),p(tt,"class",ee="arrowRight "+(r[18].nextPage?"":"disable")),p(se,"class","historyPageIndex"),p(Ft,"d","M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z"),p(Be,"xmlns","http://www.w3.org/2000/svg"),p(Be,"viewBox","6 5 20 20"),p(Be,"class","icon"),p(rt,"class","currentPageSize"),p(ut,"class","pageSizeDropDown"),p(je,"class",St="pageSizeSelector "+(r[11]?"active":"")+" "+(r[18].pageSize?"":"disable")),p(Et,"class","historyPageSize"),p(ne,"class","historyPaginationContainer"),p(t,"class","historyWrapper "+(r[20]?"historyMobileWrapper":"")),p(e,"class","historyContainer")},m(I,ae){ie(I,e,ae),f(e,t),f(t,i),it&&it.m(i,null),f(i,o),f(i,n),f(n,s),f(s,l),f(i,h),f(i,d);for(let H=0;H<Ce.length;H+=1)Ce[H]&&Ce[H].m(d,null);f(t,c),f(t,u),f(u,m),f(m,g),f(g,_),f(_,D),f(g,A),f(g,M),r[57](M),f(m,R),f(m,W),f(W,Q),f(Q,P),f(W,b),f(W,O),r[58](O),f(u,$),f(u,he),f(he,B),f(t,C),f(t,T),f(T,x),f(x,N);for(let H=0;H<Ee.length;H+=1)Ee[H]&&Ee[H].m(N,null);f(x,z),f(x,V),Ue.m(V,null),r[62](T),f(t,oe),f(t,ne),f(ne,se),f(se,we),f(we,ce),f(ce,Oe),f(se,ue),f(se,fe),f(fe,ke),f(ke,ze),f(se,dt),f(se,tt),f(tt,ct),f(ct,We),f(ne,ei),f(ne,Et),f(Et,je),f(je,rt),f(rt,pr),f(pr,mr),f(rt,fr),f(rt,Be),f(Be,Ft),f(je,_r),f(je,ut);for(let H=0;H<Ae.length;H+=1)Ae[H]&&Ae[H].m(ut,null);At||(ti=[gt(he,"click",r[59]),gt(we,"click",r[63]),gt(tt,"click",r[64]),gt(je,"click",r[66])],At=!0)},p(I,ae){if(I[20]&&it.p(I,ae),ae[0]&524288&&a!==(a=I[19]("headerTitle")+"")&&Ie(l,a),ae[0]&1074298880){pt=me(I[15]);let H;for(H=0;H<pt.length;H+=1){const Ze=Wa(I,pt,H);Ce[H]?Ce[H].p(Ze,ae):(Ce[H]=ja(Ze),Ce[H].c(),Ce[H].m(d,null))}for(;H<Ce.length;H+=1)Ce[H].d(1);Ce.length=pt.length}if(ae[0]&524288&&y!==(y=I[19]("dateFrom")+"")&&Ie(D,y),ae[0]&16&&Ye(M,"max",I[4]),ae[0]&32&&Ye(M,"value",I[5]),ae[0]&524288&&S!==(S=I[19]("dateTo")+"")&&Ie(P,S),ae[0]&16&&Ye(O,"max",I[4]),ae[0]&64&&Ye(O,"value",I[6]),ae[0]&524288&&de!==(de=I[19]("dateFilter")+"")&&Ie(B,de),ae[0]&262144&&w!==(w="historyCalendarFilter "+(I[18].filterButton?"":"disable"))&&p(he,"class",w),ae[0]&136839296){mt=me(I[21][I[7]]);let H;for(H=0;H<mt.length;H+=1){const Ze=Va(I,mt,H);Ee[H]?Ee[H].p(Ze,ae):(Ee[H]=Ga(Ze),Ee[H].c(),Ee[H].m(N,null))}for(;H<Ee.length;H+=1)Ee[H].d(1);Ee.length=mt.length}if(Pt===(Pt=ri(I))&&Ue?Ue.p(I,ae):(Ue.d(1),Ue=Pt(I),Ue&&(Ue.c(),Ue.m(V,null))),ae[0]&128&&q!==(q=`tableWrapper ${I[7].replace("$","")} ${I[20]?"tableWrapperMobile":""}`)&&p(x,"class",q),ae[0]&262144&&be!==(be="arrowLeft "+(I[18].previousPage?"":"disable"))&&p(we,"class",be),ae[0]&512&&Ie(ze,I[9]),ae[0]&262144&&Ke!==(Ke="indexDisplay "+(!I[18].previousPage&&!I[18].nextPage?"disable":""))&&p(fe,"class",Ke),ae[0]&262144&&ee!==(ee="arrowRight "+(I[18].nextPage?"":"disable"))&&p(tt,"class",ee),ae[0]&256&&Ie(mr,I[8]),ae[0]&536870912|ae[1]&4){ft=me(I[29]);let H;for(H=0;H<ft.length;H+=1){const Ze=Na(I,ft,H);Ae[H]?Ae[H].p(Ze,ae):(Ae[H]=el(Ze),Ae[H].c(),Ae[H].m(ut,null))}for(;H<Ae.length;H+=1)Ae[H].d(1);Ae.length=ft.length}ae[0]&264192&&St!==(St="pageSizeSelector "+(I[11]?"active":"")+" "+(I[18].pageSize?"":"disable"))&&p(je,"class",St)},d(I){I&&re(e),it&&it.d(),He(Ce,I),r[57](null),r[58](null),He(Ee,I),Ue.d(),r[62](null),He(Ae,I),At=!1,sr(ti)}}}function Jg(r){let e,t,i,o,n,s,a,l,h,d,c,u,m,g;function _(P,b){return P[20]?db:hb}let D=_(r)(r),A=me({length:3}),M=[];for(let P=0;P<A.length;P+=1)M[P]=cb(Kg(r,A,P));let R=me({length:6}),W=[];for(let P=0;P<R.length;P+=1)W[P]=ub(Xg(r,R,P));let Q=me({length:5}),S=[];for(let P=0;P<Q.length;P+=1)S[P]=mb(qg(r,Q,P));return{c(){e=E("div"),t=E("div"),i=E("div"),D.c(),o=U(),n=E("div");for(let P=0;P<M.length;P+=1)M[P].c();s=U(),a=E("div"),a.innerHTML='<div class="historyCalendarContainer"><div class="historyCalendarStartDate"><div class="label"><ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton></div> <ui-skeleton structure="rectangle" width="auto" height="10px"></ui-skeleton></div> <div class="historyCalendarEndDate"><div class="label"><ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton></div> <ui-skeleton structure="rectangle" width="auto" height="10px"></ui-skeleton></div></div> <div class="historyCalendarFilter"><ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton></div>',l=U(),h=E("table"),d=E("thead");for(let P=0;P<W.length;P+=1)W[P].c();c=U(),u=E("tbody");for(let P=0;P<S.length;P+=1)S[P].c();m=U(),g=E("div"),g.innerHTML='<div class="historyPageIndex"><ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton></div> <div class="historyPageSize"><ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton></div>',p(n,"class","headerController skeleton"),p(i,"class","historyHeader"),p(a,"class","historyFilter skeleton"),p(d,"class","tableHead"),p(u,"class","tableContent"),p(h,"class","historyTable skeleton"),p(g,"class","historyPaginationContainer skeleton"),p(t,"class","historyWrapper "+(r[20]?"historyMobileWrapper":"")),p(e,"class","historyContainer")},m(P,b){ie(P,e,b),f(e,t),f(t,i),D.m(i,null),f(i,o),f(i,n);for(let O=0;O<M.length;O+=1)M[O]&&M[O].m(n,null);f(t,s),f(t,a),f(t,l),f(t,h),f(h,d);for(let O=0;O<W.length;O+=1)W[O]&&W[O].m(d,null);f(h,c),f(h,u);for(let O=0;O<S.length;O+=1)S[O]&&S[O].m(u,null);f(t,m),f(t,g)},p:De,d(P){P&&re(e),D.d(),He(M,P),He(W,P),He(S,P)}}}function Qg(r){let e,t,i,o,n,s,a,l,h,d,c=r[19]("headerTitle")+"",u,m,g;return{c(){e=E("button"),t=xe("svg"),i=xe("defs"),o=xe("style"),n=ge(`.pathstyle {
6676
+ `}static get is(){return"vaadin-tabs"}}G(Gg);function qg(r){Yd(r,"svelte-xdr5hv",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.headerTextNone{display:none}.historyContainer{container-type:inline-size}.historyContainer .desktopSubmenu{display:flex}.historyContainer .allSubmenuRows{display:none}.historyContainer .historyWrapper{padding:50px}.historyContainer .historyWrapper .historyHeader{width:100%;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:20px}.historyContainer .historyWrapper .historyHeader .headerText p{color:var(--emw--color-primary, #22b04e);font-size:var(--emw--font-size-x-large, 26px);font-family:inherit}.historyContainer .historyWrapper .historyHeader .headerText.skeleton{width:250px;height:30px}.historyContainer .historyWrapper .historyHeader .headerController{display:inherit;flex-direction:row;align-items:center;flex-wrap:wrap;justify-content:flex-start;gap:30px}.historyContainer .historyWrapper .historyHeader .headerController.skeleton .toggleContent{justify-content:flex-start;overflow:hidden}.historyContainer .historyWrapper .historyHeader .headerController.skeleton .toggleContent .toggleCheckbox{border:none;padding:0;margin:0}.historyContainer .historyWrapper .historyHeader .headerController.skeleton .toggleContent .label{width:70px;height:15px;border-radius:var(--emw--border-radius-medium, 20px);overflow:hidden}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent{display:inherit;flex-direction:row;align-items:inherit;justify-content:inherit;background-color:transparent;border:none;cursor:pointer}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent .toggleCheckbox{width:20px;height:20px;padding:2px;margin:2px 0 2px 0;border-radius:100%;position:relative;border:1px solid var(--emw--color-gray-300, #666178)}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent .toggleCheckbox [type=checkbox]{display:none}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent .toggleCheckbox::before{content:"";width:12.75px;height:12.75px;border-radius:var(--emw--border-radius-large, 20px);cursor:pointer;position:absolute;top:50%;left:50%;z-index:1;transform:translate(-50%, -50%);transition:all 0.5s ease}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent.checked .toggleCheckbox{border:1px solid var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent.checked .toggleCheckbox::before{background-color:var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent .label{font-size:var(--emw--size-standard, 16px);font-family:inherit;margin-left:10px}.historyContainer .historyWrapper .historyFilter{display:flex;align-items:flex-end;gap:10px;padding-bottom:30px;padding:20px 0px}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer{display:flex;gap:5px}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate{width:190px;color:var(--emw--color-gray-300, #58586b);display:flex;flex-direction:column;position:relative;align-items:flex-start;gap:10px}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate.BonusesCalendarMobile,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px;width:48%}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%;border-radius:var(--emw--border-radius-medium, 20px)}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate label,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate label{font-size:var(--emw--font-size-small, 14px);font-weight:300}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate input,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate input{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #e6e6e6);border-radius:var(--emw--border-radius-small, 5px);box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px;outline-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22b04e) 80%, black 20%), var(--emw--color-primary, #22b04e), color-mix(in srgb, var(--emw--color-primary, #22b04e) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0e5924);color:var(--emw--button-text-color, #ffffff);border-radius:var(--emw--button-border-radius, 50px);cursor:pointer;width:120px;height:40px;font-size:var(--emw--font-size-medium, 15px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:9px;outline:none}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter.historyCalendarFilterMobile{width:100%;height:44px}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter.disable{cursor:default;color:var(--emw--color-white, #ffffff);background:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarStartDate,.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarEndDate{align-items:normal;overflow:hidden}.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarStartDate .label,.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarEndDate .label{height:15px;overflow:hidden;border-radius:20px}.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarFilter{padding:0;background:transparent;border:none;overflow:hidden}.historyContainer .historyWrapper .historyTable{width:100%;display:flex;flex-direction:column;border:1px solid var(--emw--color-primary, #22b04e);background-color:var(--emw--color-white, #ffffff);overflow:auto;scrollbar-width:thin}.historyContainer .historyWrapper .historyTable::-webkit-scrollbar{width:6px;height:6px}.historyContainer .historyWrapper .historyTable .tableWrapper{width:100%;display:flex;flex-direction:column}.historyContainer .historyWrapper .historyTable .tableWrapper.sports{width:100%;display:flex}.historyContainer .historyWrapper .historyTable .tableWrapper.sports .tableHead span{min-width:102px}.historyContainer .historyWrapper .historyTable .tableWrapper.sports .tableContent .tableRow .tableData span{min-width:101px}.historyContainer .historyWrapper .historyTable .tableHead{display:flex}.historyContainer .historyWrapper .historyTable .tableHead span{display:flex;justify-content:center;align-items:center;min-width:100px;flex:1 1 20%;padding:12px 0;text-align:center;color:var(--emw--button-text-color, #ffffff);background:var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyTable .tableContent{width:100%;max-height:546px;overflow-y:auto}.historyContainer .historyWrapper .historyTable .tableContent::-webkit-scrollbar{width:6px;height:6px}.historyContainer .historyWrapper .historyTable .tableContent .tableRow{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:10px 5px;background-color:var(--emw--color-primary, rgba(68, 224, 117, 0.811))}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData{display:flex;justify-content:center;align-items:center;width:100%}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu{width:100px;display:flex;justify-content:center;align-items:center;flex:1 1 20%;text-align:center;cursor:pointer;font-weight:700;font-size:inherit;text-decoration:underline;color:var(--emw--color-white, #ffffff);border:none;background-color:transparent}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu .iconToggleSubMenu{width:18px;height:18px;padding-bottom:5px;box-sizing:content-box;fill:var(--emw--color-white, #ffffff);transform:rotateX(0deg);transition:all 0.3s ease-in-out}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu .iconToggleSubMenu.active{transform:rotateX(180deg)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu span{width:70px;flex:none}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span{flex:1 1 20%;text-align:center;min-width:100px}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span.approved svg{width:30px;height:30px;fill:transparent}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span.approved svg path{stroke:var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span.decline svg{width:30px;height:30px;fill:transparent}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span.decline svg path{stroke:var(--emw--color-error, #ed0909)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu{display:flex;flex-direction:row;justify-content:center;align-items:center;width:100%;overflow:hidden;max-height:0px;overflow:hidden;opacity:0;transition:all 0.3s ease-in-out}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu .tableData{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;overflow:hidden}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu .tableData .label{width:100%;padding:0;overflow-wrap:break-word}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu.active{max-height:1000px;opacity:1}.historyContainer .historyWrapper .historyTable .tableContent .tableRow:nth-of-type(odd){background-color:var(--emw--color-white, #ffffff)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow:nth-of-type(odd) .tableData .toggleSubMenu{color:var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow:nth-of-type(odd) .tableData .toggleSubMenu .iconToggleSubMenu{fill:var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyTable.skeleton .tableHead{gap:40px;padding:18px 25px}.historyContainer .historyWrapper .historyTable.skeleton .tableHead div{width:100px;overflow:hidden;height:15px;border-radius:10px;flex:1 1 20%}.historyContainer .historyWrapper .historyTable.skeleton .tableContent .tableRow{padding:0px}.historyContainer .historyWrapper .historyTable.skeleton .tableContent .tableRow .tableData{gap:40px;padding:18px 25px;border-radius:10px}.historyContainer .historyWrapper .historyTable.skeleton .tableContent .tableRow .tableData div{overflow:hidden;height:15px;border-radius:10px;width:100px;flex:1 1 20%;text-align:center}.historyContainer .historyWrapper .historyPaginationContainer{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:20px;padding-top:10px}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex{width:fit-content;display:flex;flex-direction:row;align-items:center;justify-content:center;border:1px solid var(--emw--color-primary, #22b04e);border-radius:var(--emw--border-radius-small, 5px)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .indexDisplay{text-align:center;width:40px;padding:10px;transition:all 0.3s ease;border-left:1px solid var(--emw--color-primary, #22b04e);border-right:1px solid var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .indexDisplay input{width:100%}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .indexDisplay.disable{color:var(--emw--color-white, #ffffff);background:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight{display:flex;justify-content:center;align-items:center;width:20px;height:20px;padding:9px;box-sizing:content-box;cursor:pointer;transition:all 0.3s ease;background-color:transparent;border:none}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft svg,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight svg{fill:var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft.disable,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight.disable{cursor:default;background:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft.disable svg,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight.disable svg{fill:var(--emw--color-white, #ffffff)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft.disable:hover,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight.disable:hover{background-color:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft:hover,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight:hover{background-color:var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft:hover svg,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight:hover svg{fill:var(--emw--color-white, #ffffff)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize{width:fit-content;display:inline;text-align:center;width:80px;height:43px}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector{width:100%;height:100%;position:relative;border:none;background-color:transparent;cursor:pointer;border-radius:var(--emw--border-radius-small, 5px)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .currentPageSize{width:100%;height:100%;padding:10px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;border:1px solid var(--emw--color-primary, #22b04e);border-radius:var(--emw--border-radius-small, 5px)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .currentPageSize .icon{width:15px;height:15px;padding-bottom:2px;transform:rotateX(0deg);box-sizing:content-box;transition:all 0.3s ease;fill:var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown{width:100%;max-height:0px;position:absolute;top:120%;left:0;text-align:left;overflow:hidden;opacity:0;background-color:var(--emw--color-white, #ffffff);border:1px solid var(--emw--color-primary, #22b04e);border-radius:var(--emw--border-radius-small, 5px);transition:all 0.3s ease}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown .dropDownRow{width:100%;cursor:pointer;padding:10px;border:none;background-color:transparent;border-bottom:1px solid var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown .dropDownRow .p{flex:1 1 20%;text-align:center}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown .dropDownRow:hover{background-color:var(--emw--color-primary, rgba(68, 224, 117, 0.811))}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown .dropDownRow:nth-last-child(1){border:none}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.active .currentPageSize .icon{transform:rotateX(180deg)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.active .pageSizeDropDown{max-height:1000px;opacity:1}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.disable{cursor:default;background-color:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.disable .currentPageSize{color:var(--emw--color-white, #ffffff)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.disable .currentPageSize .icon{fill:var(--emw--color-white, #ffffff)}.historyContainer .historyWrapper .historyPaginationContainer.skeleton .historyPageIndex{display:block;width:100px;border:none;overflow:hidden;border-radius:5px}.historyContainer .historyWrapper .historyPaginationContainer.skeleton .historyPageSize{border:none;overflow:hidden;border-radius:5px}.historyContainer .historyMobileWrapper.historyWrapper{padding:20px 15px}.historyContainer .historyMobileWrapper.historyWrapper .historyHeader .headerText{display:none}.historyContainer .historyMobileWrapper.historyWrapper .historyHeader .historyReturnButton{display:inline-flex;border:none;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));align-items:center;column-gap:10px;margin-bottom:10px}.historyContainer .historyMobileWrapper.historyWrapper .historyHeader .historyReturnButton .historyReturnText{font-size:var(--emw--size-standard, 16px)}.historyContainer .historyMobileWrapper.historyWrapper .historyHeader .historyReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.historyContainer .historyMobileWrapper.historyWrapper .historyHeader .historyReturnButton.skeleton{width:200px;height:20px}.historyContainer .historyMobileWrapper.historyWrapper .historyHeader .headerController{width:100%;align-items:center;justify-content:center}.historyContainer .historyMobileWrapper.historyWrapper .historyFilter{flex-direction:column;align-items:center}.historyContainer .historyMobileWrapper.historyWrapper .historyFilter .historyCalendarContainer{width:100%}.historyContainer .historyMobileWrapper.historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate,.historyContainer .historyMobileWrapper.historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate{width:inherit}.historyContainer .historyMobileWrapper.historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate .VaadinDatePicker,.historyContainer .historyMobileWrapper.historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate .VaadinDatePicker{width:inherit}.historyContainer .historyMobileWrapper.historyWrapper .historyFilter .historyCalendarFilter{width:100%}.historyContainer .historyMobileWrapper.historyWrapper .historyTable{overflow:auto}.historyContainer .historyMobileWrapper.historyWrapper .historyTable .tableHead{min-width:fit-content}.historyContainer .historyMobileWrapper.historyWrapper .historyTable .tableContent{min-width:fit-content;max-height:430px}.historyContainer .historyMobileWrapper.historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown{top:-150px}@container (max-width: 425px){.historyContainer .historyWrapper{display:flex;flex-direction:column}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer{width:100%;flex-direction:column}.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarStartDate .label,.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarEndDate .label{width:100px}.historyContainer .historyWrapper .historyTable{overflow:auto}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span{padding:5px 0;font-size:13px}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown{top:-150px}}@container (max-width: 520px){.historyContainer .historyWrapper .historyFilter{flex-direction:column;align-items:flex-start}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer{flex-direction:column;width:100%}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate{min-width:190px;width:100%}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate vaadin-date-picker,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate vaadin-date-picker{width:100%}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter{min-width:190px;width:100%}}@container (max-width: 784px){.historyContainer .historyWrapper .historyTable{min-width:190px}.historyContainer .historyWrapper .historyTable .tableWrapper{display:flex}.historyContainer .historyWrapper .historyTable .tableHead{display:none}.historyContainer .historyWrapper .historyTable .tableRow{display:flex;flex-direction:column;border:1px solid #ddd;margin-bottom:16px;border-radius:8px;overflow:hidden;background:#fff;text-align:center}.historyContainer .historyWrapper .historyTable .tableData{display:flex;flex-direction:column;padding:16px}.historyContainer .historyWrapper .historyTable .tableData span{width:100%}.historyContainer .historyWrapper .historyTable .tableData span[data-label],.historyContainer .historyWrapper .historyTable .tableData button[data-label]{display:flex;justify-content:space-between;align-items:center;padding:4px 0;border-bottom:1px solid #eee}.historyContainer .historyWrapper .historyTable .tableData span[data-label]::before,.historyContainer .historyWrapper .historyTable .tableData button[data-label]::before{content:attr(data-label);font-weight:600;color:#555;margin-right:16px;flex:1;text-align:left}.historyContainer .historyWrapper .historyTable .tableData button[data-label]{padding:2px 0}.historyContainer .historyWrapper .historyTable .tableData span[data-label]:last-child{border-bottom:none}.historyContainer .historyWrapper .historyTable .tableData span[data-label],.historyContainer .historyWrapper .historyTable .tableData button[data-label] span{flex:2;text-align:right;font-weight:normal;color:#222}.historyContainer .historyWrapper .historyTable .tableContent{overflow-y:visible;padding:10px 5px}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span{text-align:right}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu{width:100%}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu{display:none;margin-top:15px}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu.active{display:block;padding:0 18px}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu .tableData{display:flex;flex-direction:column;padding:1px}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu .label{display:flex;justify-content:space-between;padding:3px 0;font-size:14px;border-bottom:1px solid #eee;flex:2;text-align:right;font-weight:normal;color:rgba(0, 0, 0, 0.7);padding:2px 0}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu .label::before{content:attr(data-label);font-weight:600;display:inline-block;width:100px;flex:1;text-align:left;margin-right:8px}.historyContainer .historyWrapper .historyTable .tableContent .submenuRow{margin-top:10px}.historyContainer .historyWrapper .historyTable .tableContent .remainingRows .submenuRow{margin:0}.historyContainer .historyWrapper .historyTable .tableContent .remainingRows .submenuRow:last-of-type .tableData span{border-bottom:none}.historyContainer .historyWrapper .historyTable .tableContent .submenuRowTitle{font-size:14px}.historyContainer .remainingRows{margin-top:15px}.historyContainer .desktopSubmenu{display:none}.historyContainer .allSubmenuRows{display:flex;flex-direction:column}}@container (min-width: 785px){.historyContainer .historyWrapper .historyTable .tableWrapper.sports{display:block}}')}function za(r,e,t){const i=r.slice();return i[99]=e[t],i}function Ba(r,e,t){const i=r.slice();return i[102]=e[t],i[103]=e,i[104]=t,i}function La(r,e,t){const i=r.slice();return i[105]=e[t],i}function Ha(r,e,t){const i=r.slice();return i[90]=e[t],i[109]=t,i}function Ra(r,e,t){const i=r.slice();return i[105]=e[t],i}function Fa(r,e,t){const i=r.slice();return i[112]=e[t],i}function $a(r,e,t){const i=r.slice();return i[115]=e[t],i}function Va(r,e,t){const i=r.slice();return i[112]=e[t],i}function Wa(r,e,t){const i=r.slice();return i[112]=e[t],i}function ja(r,e,t){const i=r.slice();return i[122]=e[t],i[104]=t,i}function Yg(r,e,t){const i=r.slice();return i[90]=e[t],i}function Xg(r,e,t){const i=r.slice();return i[90]=e[t],i}function Kg(r,e,t){const i=r.slice();return i[90]=e[t],i}function Zg(r,e,t){const i=r.slice();return i[90]=e[t],i}function Jg(r){let e,t,i,o,n,s,a=r[19]("headerTitle")+"",l,h,d,c,u,m,g,_,y=r[19]("dateFrom")+"",D,A,M,R,W,Q,S=r[19]("dateTo")+"",P,b,O,$,he,de=r[19]("dateFilter")+"",B,w,C,T,x,N,z,V,q,oe,ne,se,we,ce,Oe,be,ue,fe,ke,ze,Ke,dt,tt,ct,We,ee,ei,Et,je,rt,pr,mr,fr,Be,Ft,_r,ut,St,At,ti,it=r[20]&&eb(r),pt=me(r[15]),Ce=[];for(let I=0;I<pt.length;I+=1)Ce[I]=Ua(ja(r,pt,I));let mt=me(r[21][r[7]]),Ee=[];for(let I=0;I<mt.length;I+=1)Ee[I]=qa(Wa(r,mt,I));function ri(I,ae){return I[12]?tb:rb}let Pt=ri(r),Ue=Pt(r),ft=me(r[29]),Ae=[];for(let I=0;I<ft.length;I+=1)Ae[I]=tl(za(r,ft,I));return{c(){e=E("div"),t=E("div"),i=E("div"),it&&it.c(),o=U(),n=E("div"),s=E("p"),l=ge(a),h=U(),d=E("div");for(let I=0;I<Ce.length;I+=1)Ce[I].c();c=U(),u=E("div"),m=E("div"),g=E("div"),_=E("label"),D=ge(y),A=U(),M=E("vaadin-date-picker"),R=U(),W=E("div"),Q=E("label"),P=ge(S),b=U(),O=E("vaadin-date-picker"),$=U(),he=E("button"),B=ge(de),C=U(),T=E("table"),x=E("div"),N=E("thead");for(let I=0;I<Ee.length;I+=1)Ee[I].c();z=U(),V=E("tbody"),Ue.c(),oe=U(),ne=E("div"),se=E("div"),we=E("button"),ce=xe("svg"),Oe=xe("path"),ue=U(),fe=E("div"),ke=E("p"),ze=ge(r[9]),dt=U(),tt=E("button"),ct=xe("svg"),We=xe("path"),ei=U(),Et=E("div"),je=E("button"),rt=E("div"),pr=E("p"),mr=ge(r[8]),fr=U(),Be=xe("svg"),Ft=xe("path"),_r=U(),ut=E("div");for(let I=0;I<Ae.length;I+=1)Ae[I].c();p(n,"class","headerText "+(r[20]?"headerTextNone":"")),p(d,"class","headerController"),p(i,"class","historyHeader"),p(_,"for","historyCalendarStartDate"),Ye(M,"max",r[4]),Ye(M,"value",r[5]),Ye(M,"placeholder","From"),Ye(M,"class","VaadinDatePicker"),p(g,"class","historyCalendarStartDate"),p(Q,"for","historyCalendarEndDate"),Ye(O,"max",r[4]),Ye(O,"value",r[6]),Ye(O,"placeholder","To"),Ye(O,"class","VaadinDatePicker"),p(W,"class","historyCalendarEndDate"),p(m,"class","historyCalendarContainer"),p(he,"class",w="historyCalendarFilter "+(r[18].filterButton?"":"disable")),p(u,"class","historyFilter"),p(N,"class","tableHead"),p(V,"class","tableContent"),p(x,"class",q=`tableWrapper ${r[7].replace("$","")} ${r[20]?"tableWrapperMobile":""}`),p(T,"class","historyTable"),p(Oe,"d","M1.293,12.707a1,1,0,0,1,0-1.414l5-5A1,1,0,0,1,7.707,7.707L4.414,11H22a1,1,0,0,1,0,2H4.414l3.293,3.293a1,1,0,1,1-1.414,1.414Z"),p(ce,"viewBox","1 4 17 17"),p(ce,"xmlns","http://www.w3.org/2000/svg"),p(we,"class",be="arrowLeft "+(r[18].previousPage?"":"disable")),p(fe,"class",Ke="indexDisplay "+(!r[18].previousPage&&!r[18].nextPage?"disable":"")),p(We,"d","M17.707,17.707a1,1,0,0,1-1.414-1.414L19.586,13H2a1,1,0,0,1,0-2H19.586L16.293,7.707a1,1,0,0,1,1.414-1.414l5,5a1,1,0,0,1,0,1.414Z"),p(ct,"viewBox","6 4 17 17"),p(ct,"xmlns","http://www.w3.org/2000/svg"),p(tt,"class",ee="arrowRight "+(r[18].nextPage?"":"disable")),p(se,"class","historyPageIndex"),p(Ft,"d","M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z"),p(Be,"xmlns","http://www.w3.org/2000/svg"),p(Be,"viewBox","6 5 20 20"),p(Be,"class","icon"),p(rt,"class","currentPageSize"),p(ut,"class","pageSizeDropDown"),p(je,"class",St="pageSizeSelector "+(r[11]?"active":"")+" "+(r[18].pageSize?"":"disable")),p(Et,"class","historyPageSize"),p(ne,"class","historyPaginationContainer"),p(t,"class","historyWrapper "+(r[20]?"historyMobileWrapper":"")),p(e,"class","historyContainer")},m(I,ae){ie(I,e,ae),f(e,t),f(t,i),it&&it.m(i,null),f(i,o),f(i,n),f(n,s),f(s,l),f(i,h),f(i,d);for(let H=0;H<Ce.length;H+=1)Ce[H]&&Ce[H].m(d,null);f(t,c),f(t,u),f(u,m),f(m,g),f(g,_),f(_,D),f(g,A),f(g,M),r[57](M),f(m,R),f(m,W),f(W,Q),f(Q,P),f(W,b),f(W,O),r[58](O),f(u,$),f(u,he),f(he,B),f(t,C),f(t,T),f(T,x),f(x,N);for(let H=0;H<Ee.length;H+=1)Ee[H]&&Ee[H].m(N,null);f(x,z),f(x,V),Ue.m(V,null),r[62](T),f(t,oe),f(t,ne),f(ne,se),f(se,we),f(we,ce),f(ce,Oe),f(se,ue),f(se,fe),f(fe,ke),f(ke,ze),f(se,dt),f(se,tt),f(tt,ct),f(ct,We),f(ne,ei),f(ne,Et),f(Et,je),f(je,rt),f(rt,pr),f(pr,mr),f(rt,fr),f(rt,Be),f(Be,Ft),f(je,_r),f(je,ut);for(let H=0;H<Ae.length;H+=1)Ae[H]&&Ae[H].m(ut,null);At||(ti=[gt(he,"click",r[59]),gt(we,"click",r[63]),gt(tt,"click",r[64]),gt(je,"click",r[66])],At=!0)},p(I,ae){if(I[20]&&it.p(I,ae),ae[0]&524288&&a!==(a=I[19]("headerTitle")+"")&&Ie(l,a),ae[0]&1074298880){pt=me(I[15]);let H;for(H=0;H<pt.length;H+=1){const Ze=ja(I,pt,H);Ce[H]?Ce[H].p(Ze,ae):(Ce[H]=Ua(Ze),Ce[H].c(),Ce[H].m(d,null))}for(;H<Ce.length;H+=1)Ce[H].d(1);Ce.length=pt.length}if(ae[0]&524288&&y!==(y=I[19]("dateFrom")+"")&&Ie(D,y),ae[0]&16&&Ye(M,"max",I[4]),ae[0]&32&&Ye(M,"value",I[5]),ae[0]&524288&&S!==(S=I[19]("dateTo")+"")&&Ie(P,S),ae[0]&16&&Ye(O,"max",I[4]),ae[0]&64&&Ye(O,"value",I[6]),ae[0]&524288&&de!==(de=I[19]("dateFilter")+"")&&Ie(B,de),ae[0]&262144&&w!==(w="historyCalendarFilter "+(I[18].filterButton?"":"disable"))&&p(he,"class",w),ae[0]&136839296){mt=me(I[21][I[7]]);let H;for(H=0;H<mt.length;H+=1){const Ze=Wa(I,mt,H);Ee[H]?Ee[H].p(Ze,ae):(Ee[H]=qa(Ze),Ee[H].c(),Ee[H].m(N,null))}for(;H<Ee.length;H+=1)Ee[H].d(1);Ee.length=mt.length}if(Pt===(Pt=ri(I))&&Ue?Ue.p(I,ae):(Ue.d(1),Ue=Pt(I),Ue&&(Ue.c(),Ue.m(V,null))),ae[0]&128&&q!==(q=`tableWrapper ${I[7].replace("$","")} ${I[20]?"tableWrapperMobile":""}`)&&p(x,"class",q),ae[0]&262144&&be!==(be="arrowLeft "+(I[18].previousPage?"":"disable"))&&p(we,"class",be),ae[0]&512&&Ie(ze,I[9]),ae[0]&262144&&Ke!==(Ke="indexDisplay "+(!I[18].previousPage&&!I[18].nextPage?"disable":""))&&p(fe,"class",Ke),ae[0]&262144&&ee!==(ee="arrowRight "+(I[18].nextPage?"":"disable"))&&p(tt,"class",ee),ae[0]&256&&Ie(mr,I[8]),ae[0]&536870912|ae[1]&4){ft=me(I[29]);let H;for(H=0;H<ft.length;H+=1){const Ze=za(I,ft,H);Ae[H]?Ae[H].p(Ze,ae):(Ae[H]=tl(Ze),Ae[H].c(),Ae[H].m(ut,null))}for(;H<Ae.length;H+=1)Ae[H].d(1);Ae.length=ft.length}ae[0]&264192&&St!==(St="pageSizeSelector "+(I[11]?"active":"")+" "+(I[18].pageSize?"":"disable"))&&p(je,"class",St)},d(I){I&&re(e),it&&it.d(),He(Ce,I),r[57](null),r[58](null),He(Ee,I),Ue.d(),r[62](null),He(Ae,I),At=!1,sr(ti)}}}function Qg(r){let e,t,i,o,n,s,a,l,h,d,c,u,m,g;function _(P,b){return P[20]?cb:db}let D=_(r)(r),A=me({length:3}),M=[];for(let P=0;P<A.length;P+=1)M[P]=ub(Zg(r,A,P));let R=me({length:6}),W=[];for(let P=0;P<R.length;P+=1)W[P]=pb(Kg(r,R,P));let Q=me({length:5}),S=[];for(let P=0;P<Q.length;P+=1)S[P]=fb(Yg(r,Q,P));return{c(){e=E("div"),t=E("div"),i=E("div"),D.c(),o=U(),n=E("div");for(let P=0;P<M.length;P+=1)M[P].c();s=U(),a=E("div"),a.innerHTML='<div class="historyCalendarContainer"><div class="historyCalendarStartDate"><div class="label"><ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton></div> <ui-skeleton structure="rectangle" width="auto" height="10px"></ui-skeleton></div> <div class="historyCalendarEndDate"><div class="label"><ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton></div> <ui-skeleton structure="rectangle" width="auto" height="10px"></ui-skeleton></div></div> <div class="historyCalendarFilter"><ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton></div>',l=U(),h=E("table"),d=E("thead");for(let P=0;P<W.length;P+=1)W[P].c();c=U(),u=E("tbody");for(let P=0;P<S.length;P+=1)S[P].c();m=U(),g=E("div"),g.innerHTML='<div class="historyPageIndex"><ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton></div> <div class="historyPageSize"><ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton></div>',p(n,"class","headerController skeleton"),p(i,"class","historyHeader"),p(a,"class","historyFilter skeleton"),p(d,"class","tableHead"),p(u,"class","tableContent"),p(h,"class","historyTable skeleton"),p(g,"class","historyPaginationContainer skeleton"),p(t,"class","historyWrapper "+(r[20]?"historyMobileWrapper":"")),p(e,"class","historyContainer")},m(P,b){ie(P,e,b),f(e,t),f(t,i),D.m(i,null),f(i,o),f(i,n);for(let O=0;O<M.length;O+=1)M[O]&&M[O].m(n,null);f(t,s),f(t,a),f(t,l),f(t,h),f(h,d);for(let O=0;O<W.length;O+=1)W[O]&&W[O].m(d,null);f(h,c),f(h,u);for(let O=0;O<S.length;O+=1)S[O]&&S[O].m(u,null);f(t,m),f(t,g)},p:De,d(P){P&&re(e),D.d(),He(M,P),He(W,P),He(S,P)}}}function eb(r){let e,t,i,o,n,s,a,l,h,d,c=r[19]("headerTitle")+"",u,m,g;return{c(){e=E("button"),t=xe("svg"),i=xe("defs"),o=xe("style"),n=ge(`.pathstyle {
6677
6677
  fill: var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));
6678
6678
  }
6679
- `),s=xe("g"),a=xe("g"),l=xe("path"),h=U(),d=E("h2"),u=ge(c),p(l,"class","pathstyle"),p(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),p(l,"transform","translate(15 15) rotate(180)"),p(a,"transform","translate(20 158)"),p(s,"transform","translate(-20 -158)"),p(t,"xmlns","http://www.w3.org/2000/svg"),p(t,"width","15"),p(t,"height","15"),p(t,"viewBox","0 0 15 15"),p(d,"class","historyReturnText"),p(e,"class","historyReturnButton")},m(_,y){ie(_,e,y),f(e,t),f(t,i),f(i,o),f(o,n),f(t,s),f(s,a),f(a,l),f(e,h),f(e,d),f(d,u),m||(g=gt(e,"click",r[55]),m=!0)},p(_,y){y[0]&524288&&c!==(c=_[19]("headerTitle")+"")&&Ie(u,c)},d(_){_&&re(e),m=!1,g()}}}function ja(r){let e,t,i,o,n=r[19](r[122].type)+"",s,a,l,h,d;function c(){return r[56](r[104])}return{c(){e=E("button"),t=E("div"),t.innerHTML='<input type="checkbox"/> <span class="circle"></span>',i=U(),o=E("p"),s=ge(n),a=U(),p(t,"class","toggleCheckbox"),p(o,"class","label"),p(e,"class",l="toggleContent "+(r[122].checked?"checked":""))},m(u,m){ie(u,e,m),f(e,t),f(e,i),f(e,o),f(o,s),f(e,a),h||(d=gt(e,"click",c),h=!0)},p(u,m){r=u,m[0]&557056&&n!==(n=r[19](r[122].type)+"")&&Ie(s,n),m[0]&32768&&l!==(l="toggleContent "+(r[122].checked?"checked":""))&&p(e,"class",l)},d(u){u&&re(e),h=!1,d()}}}function Ua(r){let e,t=(r[19](r[112])||r[112])+"",i,o;return{c(){e=E("span"),i=ge(t),o=U()},m(n,s){ie(n,e,s),f(e,i),f(e,o)},p(n,s){s[0]&524416&&t!==(t=(n[19](n[112])||n[112])+"")&&Ie(i,t)},d(n){n&&re(e)}}}function Ga(r){let e=!r[27].includes(r[112].replace(/\s/g,"").toLowerCase()),t,i=e&&Ua(r);return{c(){i&&i.c(),t=$i()},m(o,n){i&&i.m(o,n),ie(o,t,n)},p(o,n){n[0]&128&&(e=!o[27].includes(o[112].replace(/\s/g,"").toLowerCase())),e?i?i.p(o,n):(i=Ua(o),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null)},d(o){o&&re(t),i&&i.d(o)}}}function eb(r){let e,t;return{c(){e=E("div"),t=ge(r[3]),p(e,"class","tableRow")},m(i,o){ie(i,e,o),f(e,t)},p(i,o){o[0]&8&&Ie(t,i[3])},d(i){i&&re(e)}}}function tb(r){let e,t=me(r[16][r[7]]),i=[];for(let o=0;o<t.length;o+=1)i[o]=Qa(za(r,t,o));return{c(){for(let o=0;o<i.length;o+=1)i[o].c();e=$i()},m(o,n){for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(o,n);ie(o,e,n)},p(o,n){if(n[0]&398672e3|n[1]&48){t=me(o[16][o[7]]);let s;for(s=0;s<t.length;s+=1){const a=za(o,t,s);i[s]?i[s].p(a,n):(i[s]=Qa(a),i[s].c(),i[s].m(e.parentNode,e))}for(;s<i.length;s+=1)i[s].d(1);i.length=t.length}},d(o){o&&re(e),He(i,o)}}}function rb(r){let e,t=(r[102][r[112]]||"-")+"",i,o,n;return{c(){var s;e=E("span"),i=ge(t),o=U(),p(e,"data-label",n=((s=r[23][r[7]])==null?void 0:s[r[112].replace(/\s/g,"")])||r[112])},m(s,a){ie(s,e,a),f(e,i),f(e,o)},p(s,a){var l;a[0]&65664&&t!==(t=(s[102][s[112]]||"-")+"")&&Ie(i,t),a[0]&128&&n!==(n=((l=s[23][s[7]])==null?void 0:l[s[112].replace(/\s/g,"")])||s[112])&&p(e,"data-label",n)},d(s){s&&re(e)}}}function ib(r){let e,t=(r[102][r[112]].submenu[0]||"-")+"",i,o,n;return{c(){var s;e=E("span"),i=ge(t),o=U(),p(e,"data-label",n=((s=r[23][r[7]])==null?void 0:s[r[112].replace(/\s/g,"")])||r[112])},m(s,a){ie(s,e,a),f(e,i),f(e,o)},p(s,a){var l;a[0]&65664&&t!==(t=(s[102][s[112]].submenu[0]||"-")+"")&&Ie(i,t),a[0]&128&&n!==(n=((l=s[23][s[7]])==null?void 0:l[s[112].replace(/\s/g,"")])||s[112])&&p(e,"data-label",n)},d(s){s&&re(e)}}}function ob(r){let e,t,i,o,n,s,a=r[102][r[112]].label+"",l,h,d,c,u;function m(){return r[60](r[104])}return{c(){var g;e=E("button"),t=xe("svg"),i=xe("path"),n=U(),s=E("span"),l=ge(a),h=U(),p(i,"d","M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z"),p(t,"xmlns","http://www.w3.org/2000/svg"),p(t,"viewBox","6 5 20 20"),p(t,"class",o="iconToggleSubMenu "+(r[17][r[104]]?"active":"")),p(e,"class","toggleSubMenu"),p(e,"data-label",d=((g=r[23][r[7]])==null?void 0:g[r[112].replace(/\s/g,"")])||r[112])},m(g,_){ie(g,e,_),f(e,t),f(t,i),f(e,n),f(e,s),f(s,l),f(e,h),c||(u=gt(e,"click",m),c=!0)},p(g,_){var y;r=g,_[0]&131072&&o!==(o="iconToggleSubMenu "+(r[17][r[104]]?"active":""))&&p(t,"class",o),_[0]&65664&&a!==(a=r[102][r[112]].label+"")&&Ie(l,a),_[0]&128&&d!==(d=((y=r[23][r[7]])==null?void 0:y[r[112].replace(/\s/g,"")])||r[112])&&p(e,"data-label",d)},d(g){g&&re(e),c=!1,u()}}}function nb(r){let e,t,i,o,n;return{c(){var s;e=E("span"),t=xe("svg"),i=xe("path"),o=U(),p(i,"d","M9 9L15 15M15 9L9 15M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z"),p(i,"stroke","#000000"),p(i,"stroke-width","2"),p(i,"stroke-linecap","round"),p(i,"stroke-linejoin","round"),p(t,"viewBox","-3 -4 30 30"),p(t,"xmlns","http://www.w3.org/2000/svg"),p(e,"class","decline"),p(e,"data-label",n=((s=r[23][r[7]])==null?void 0:s[r[112].replace(/\s/g,"")])||r[112])},m(s,a){ie(s,e,a),f(e,t),f(t,i),f(e,o)},p(s,a){var l;a[0]&128&&n!==(n=((l=s[23][s[7]])==null?void 0:l[s[112].replace(/\s/g,"")])||s[112])&&p(e,"data-label",n)},d(s){s&&re(e)}}}function sb(r){let e,t,i,o,n,s;return{c(){var a;e=E("span"),t=xe("svg"),i=xe("path"),o=xe("path"),n=U(),p(i,"fill-rule","evenodd"),p(i,"clip-rule","evenodd"),p(i,"d","M5.5 12.0002C5.50024 8.66068 7.85944 5.78639 11.1348 5.1351C14.4102 4.48382 17.6895 6.23693 18.9673 9.32231C20.2451 12.4077 19.1655 15.966 16.3887 17.8212C13.6119 19.6764 9.91127 19.3117 7.55 16.9502C6.23728 15.6373 5.49987 13.8568 5.5 12.0002Z"),p(i,"stroke","#000000"),p(i,"stroke-width","1.5"),p(i,"stroke-linecap","round"),p(i,"stroke-linejoin","round"),p(o,"d","M9 12.0002L11.333 14.3332L16 9.66724"),p(o,"stroke-width","1.5"),p(o,"stroke-linecap","round"),p(o,"stroke-linejoin","round"),p(t,"viewBox","0 0 24 24"),p(t,"xmlns","http://www.w3.org/2000/svg"),p(e,"class","approved"),p(e,"data-label",s=((a=r[23][r[7]])==null?void 0:a[r[112].replace(/\s/g,"").toLowerCase()])||r[112])},m(a,l){ie(a,e,l),f(e,t),f(t,i),f(t,o),f(e,n)},p(a,l){var h;l[0]&128&&s!==(s=((h=a[23][a[7]])==null?void 0:h[a[112].replace(/\s/g,"").toLowerCase()])||a[112])&&p(e,"data-label",s)},d(a){a&&re(e)}}}function qa(r){let e,t;function i(s,a){var l,h,d;if(a[0]&128&&(e=null),s[102][s[112]]===!0)return sb;if(s[102][s[112]]===!1)return nb;if((l=s[102][s[112]])!=null&&l.label&&((h=s[102][s[112]])==null?void 0:h.submenu.length)>1)return ob;if((d=s[102][s[112]])!=null&&d.submenu)return ib;if(e==null&&(e=!s[28].includes(s[112].toLowerCase())),e)return rb}let o=i(r,[-1,-1,-1,-1]),n=o&&o(r);return{c(){n&&n.c(),t=$i()},m(s,a){n&&n.m(s,a),ie(s,t,a)},p(s,a){o===(o=i(s,a))&&n?n.p(s,a):(n&&n.d(1),n=o&&o(s),n&&(n.c(),n.m(t.parentNode,t)))},d(s){s&&re(t),n&&n.d(s)}}}function ab(r){let e,t,i,o,n;return{c(){var s;e=E("div"),t=E("span"),i=ge("-"),n=U(),p(t,"data-label",o=((s=r[23][r[7]])==null?void 0:s[r[112].replace(/\s/g,"").toLowerCase()])||r[112]),p(t,"class","label"),p(e,"class","tableData")},m(s,a){ie(s,e,a),f(e,t),f(t,i),f(e,n)},p(s,a){var l;a[0]&128&&o!==(o=((l=s[23][s[7]])==null?void 0:l[s[112].replace(/\s/g,"").toLowerCase()])||s[112])&&p(t,"data-label",o)},d(s){s&&re(e)}}}function lb(r){let e,t,i=me(r[102][r[112]].submenu),o=[];for(let n=0;n<i.length;n+=1)o[n]=Ya(Fa(r,i,n));return{c(){e=E("div");for(let n=0;n<o.length;n+=1)o[n].c();t=U(),p(e,"class","tableData")},m(n,s){ie(n,e,s);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(e,null);f(e,t)},p(n,s){if(s[0]&12648576){i=me(n[102][n[112]].submenu);let a;for(a=0;a<i.length;a+=1){const l=Fa(n,i,a);o[a]?o[a].p(l,s):(o[a]=Ya(l),o[a].c(),o[a].m(e,t))}for(;a<o.length;a+=1)o[a].d(1);o.length=i.length}},d(n){n&&re(e),He(o,n)}}}function Ya(r){let e,t=(r[115]||"-")+"",i,o;return{c(){var n;e=E("span"),i=ge(t),p(e,"data-label",o=((n=r[23][r[7]])==null?void 0:n[r[112].replace(/\s/g,"").toLowerCase()])||r[112]),p(e,"class","label")},m(n,s){ie(n,e,s),f(e,i)},p(n,s){var a;s[0]&65664&&t!==(t=(n[115]||"-")+"")&&Ie(i,t),s[0]&128&&o!==(o=((a=n[23][n[7]])==null?void 0:a[n[112].replace(/\s/g,"").toLowerCase()])||n[112])&&p(e,"data-label",o)},d(n){n&&re(e)}}}function Xa(r){let e;function t(n,s){var a;return(a=n[102][n[112]])!=null&&a.submenu?lb:ab}let i=t(r),o=i(r);return{c(){o.c(),e=$i()},m(n,s){o.m(n,s),ie(n,e,s)},p(n,s){i===(i=t(n))&&o?o.p(n,s):(o.d(1),o=i(n),o&&(o.c(),o.m(e.parentNode,e)))},d(n){n&&re(e),o.d(n)}}}function Ka(r){var n,s;let e,t,i=(((s=(n=r[102][r[105]])==null?void 0:n.submenu)==null?void 0:s[r[109]])||"-")+"",o;return{c(){var a;e=E("div"),t=E("span"),o=ge(i),p(t,"data-label",(a=r[23].sports)==null?void 0:a[r[105]]),p(t,"class","label"),p(e,"class","tableData")},m(a,l){ie(a,e,l),f(e,t),f(t,o)},p(a,l){var h,d;l[0]&65664&&i!==(i=(((d=(h=a[102][a[105]])==null?void 0:h.submenu)==null?void 0:d[a[109]])||"-")+"")&&Ie(o,i)},d(a){a&&re(e)}}}function Za(r){let e,t=me(r[24]),i=[];for(let o=0;o<t.length;o+=1)i[o]=Ka(Ha(r,t,o));return{c(){e=E("div");for(let o=0;o<i.length;o+=1)i[o].c();p(e,"class","submenuRow")},m(o,n){ie(o,e,n);for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(e,null)},p(o,n){if(n[0]&25231488){t=me(o[24]);let s;for(s=0;s<t.length;s+=1){const a=Ha(o,t,s);i[s]?i[s].p(a,n):(i[s]=Ka(a),i[s].c(),i[s].m(e,null))}for(;s<i.length;s+=1)i[s].d(1);i.length=t.length}},d(o){o&&re(e),He(i,o)}}}function Ja(r){var a,l;let e,t,i,o=(((l=(a=r[102][r[105]])==null?void 0:a.submenu)==null?void 0:l[0])||"-")+"",n,s;return{c(){var h;e=E("div"),t=E("div"),i=E("span"),n=ge(o),s=U(),p(i,"data-label",(h=r[23].sports)==null?void 0:h[r[105]]),p(i,"class","label"),p(t,"class","tableData"),p(e,"class","submenuRow")},m(h,d){ie(h,e,d),f(e,t),f(t,i),f(i,n),f(e,s)},p(h,d){var c,u;d[0]&65664&&o!==(o=(((u=(c=h[102][h[105]])==null?void 0:c.submenu)==null?void 0:u[0])||"-")+"")&&Ie(n,o)},d(h){h&&re(e)}}}function Qa(r){let e,t,i,o,n,s,a,l,h,d,c=r[104],u,m=me(r[22][r[7]]),g=[];for(let S=0;S<m.length;S+=1)g[S]=qa($a(r,m,S));let _=me(r[22][r[7]]),y=[];for(let S=0;S<_.length;S+=1)y[S]=Xa(Ra(r,_,S));let D=me(r[36](r[102],r[25])),A=[];for(let S=0;S<D.length;S+=1)A[S]=Za(La(r,D,S));let M=me(r[26]),R=[];for(let S=0;S<M.length;S+=1)R[S]=Ja(Ba(r,M,S));const W=()=>r[61](o,c),Q=()=>r[61](null,c);return{c(){e=E("div"),t=E("div");for(let S=0;S<g.length;S+=1)g[S].c();i=U(),o=E("div"),n=E("div");for(let S=0;S<y.length;S+=1)y[S].c();s=U(),a=E("div");for(let S=0;S<A.length;S+=1)A[S].c();l=U(),h=E("div");for(let S=0;S<R.length;S+=1)R[S].c();u=U(),p(t,"class","tableData"),p(n,"class","desktopSubmenu"),p(h,"class","remainingRows"),p(a,"class","allSubmenuRows"),p(o,"class",d="tableSubMenu "+(r[17][r[104]]?"active":"")),p(e,"class","tableRow")},m(S,P){ie(S,e,P),f(e,t);for(let b=0;b<g.length;b+=1)g[b]&&g[b].m(t,null);f(e,i),f(e,o),f(o,n);for(let b=0;b<y.length;b+=1)y[b]&&y[b].m(n,null);f(o,s),f(o,a);for(let b=0;b<A.length;b+=1)A[b]&&A[b].m(a,null);f(a,l),f(a,h);for(let b=0;b<R.length;b+=1)R[b]&&R[b].m(h,null);W(),f(e,u)},p(S,P){if(r=S,P[0]&281215104|P[1]&16){m=me(r[22][r[7]]);let b;for(b=0;b<m.length;b+=1){const O=$a(r,m,b);g[b]?g[b].p(O,P):(g[b]=qa(O),g[b].c(),g[b].m(t,null))}for(;b<g.length;b+=1)g[b].d(1);g.length=m.length}if(P[0]&12648576){_=me(r[22][r[7]]);let b;for(b=0;b<_.length;b+=1){const O=Ra(r,_,b);y[b]?y[b].p(O,P):(y[b]=Xa(O),y[b].c(),y[b].m(n,null))}for(;b<y.length;b+=1)y[b].d(1);y.length=_.length}if(P[0]&25231488){D=me(r[36](r[102],r[25]));let b;for(b=0;b<D.length;b+=1){const O=La(r,D,b);A[b]?A[b].p(O,P):(A[b]=Za(O),A[b].c(),A[b].m(a,l))}for(;b<A.length;b+=1)A[b].d(1);A.length=D.length}if(P[0]&75563136){M=me(r[26]);let b;for(b=0;b<M.length;b+=1){const O=Ba(r,M,b);R[b]?R[b].p(O,P):(R[b]=Ja(O),R[b].c(),R[b].m(h,null))}for(;b<R.length;b+=1)R[b].d(1);R.length=M.length}P[0]&131072&&d!==(d="tableSubMenu "+(r[17][r[104]]?"active":""))&&p(o,"class",d),c!==r[104]&&(Q(),c=r[104],W())},d(S){S&&re(e),He(g,S),He(y,S),He(A,S),He(R,S),Q()}}}function el(r){let e,t,i,o,n;function s(){return r[65](r[99])}return{c(){e=E("button"),t=E("p"),t.textContent=`${r[99]}`,i=U(),p(e,"class","dropDownRow")},m(a,l){ie(a,e,l),f(e,t),f(e,i),o||(n=gt(e,"click",s),o=!0)},p(a,l){r=a},d(a){a&&re(e),o=!1,n()}}}function hb(r){let e;return{c(){e=E("div"),e.innerHTML='<ui-skeleton structure="title" width="auto" height="30px"></ui-skeleton>',p(e,"class","headerText skeleton")},m(t,i){ie(t,e,i)},d(t){t&&re(e)}}}function db(r){let e;return{c(){e=E("button"),e.innerHTML='<ui-skeleton structure="title" width="auto" height="10px"></ui-skeleton>',p(e,"class","historyReturnButton skeleton")},m(t,i){ie(t,e,i)},d(t){t&&re(e)}}}function cb(r){let e;return{c(){e=E("div"),e.innerHTML='<ui-skeleton structure="circle" size="20px"></ui-skeleton> <div class="label"><ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton></div> ',p(e,"class","toggleContent")},m(t,i){ie(t,e,i)},p:De,d(t){t&&re(e)}}}function ub(r){let e;return{c(){e=E("div"),e.innerHTML='<ui-skeleton structure="text" width="auto" height="40px"></ui-skeleton> '},m(t,i){ie(t,e,i)},p:De,d(t){t&&re(e)}}}function pb(r){let e;return{c(){e=E("div"),e.innerHTML='<ui-skeleton structure="text" width="auto" height="40px"></ui-skeleton> '},m(t,i){ie(t,e,i)},p:De,d(t){t&&re(e)}}}function mb(r){let e,t,i,o=me({length:6}),n=[];for(let s=0;s<o.length;s+=1)n[s]=pb(Yg(r,o,s));return{c(){e=E("div"),t=E("div");for(let s=0;s<n.length;s+=1)n[s].c();i=U(),p(t,"class","tableData"),p(e,"class","tableRow")},m(s,a){ie(s,e,a),f(e,t);for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(t,null);f(e,i)},p:De,d(s){s&&re(e),He(n,s)}}}function fb(r){let e;function t(n,s){return n[10]?Jg:Zg}let i=t(r),o=i(r);return{c(){e=E("div"),o.c()},m(n,s){ie(n,e,s),o.m(e,null),r[67](e)},p(n,s){i===(i=t(n))&&o?o.p(n,s):(o.d(1),o=i(n),o&&(o.c(),o.m(e,null)))},i:De,o:De,d(n){n&&re(e),o.d(),r[67](null)}}}function _b(r,e,t){let i;Gd(r,fp,v=>t(19,i=v)),hi.extend(yp);let{endpoint:o=""}=e,{playerid:n=""}=e,{session:s=""}=e,{lang:a="en"}=e,{clientstyling:l=""}=e,{clientstylingurl:h=""}=e,{translationurl:d=""}=e,{mbsource:c}=e,{historytypes:u="Casino, Sports, Payments"}=e,{hidecolumns:m=""}=e,{hidevalues:g=""}=e,{pagesizeoptions:_="10, 20, 30, 50, 100"}=e,{playercurrency:y=""}=e,{defaultpagesize:D="5"}=e,{formatamount:A="{currency}{amount}.{2decimals}"}=e,{customcurrencysymbols:M}=e,{dateformat:R="DD/MM/YYYY"}=e,W=R.toUpperCase(),Q=window.navigator.userAgent,S="",P="",b="",O="",$="",he="",de="",B=Number(D),w=1,C=_p(Q)!=="PC",T=!0,x=!1,N=!1,z,V,q,oe,ne=[];const se=[],we={EUR:"€",RON:" lei",USD:"$"},ce={payments:[],casino:[],sports:[]},Oe={payments:["Type","Status","Amount","Date","Transaction ID"],casino:["Game Name","Date","Bet Amount","Win Amount","Transaction ID","Play Type","Method"],sports:["Stake","Price","Selection","Market","Sport","Date","Description","Bet Type","Free Bet","Win Type","Winnings","Bet Adjustment","Bet ID"]},be={payments:["paymentType","paymentState","paymentAmount","paymentCreatedOn","withdrawalId"],casino:["game_type_name","game_finished_on","stake","won","game_id","play_type"],sports:["stake","bet_Part.price","bet_Part.selection_name","bet_Part.market_name","bet_Part.category","bet_settled_on","bet_description","bet_Type","is_Freebet","win_Type","winnings","-","bet_id"]},ue={payments:{paymentType:i("Type"),paymentState:i("Status"),paymentAmount:i("Amount"),paymentCreatedOn:i("Date"),withdrawalId:i("Transaction ID")},casino:{game_type_name:i("Game Name"),game_finished_on:i("Date"),stake:i("Bet Amount"),won:i("Win Amount"),game_id:i("Transaction ID"),play_type:i("Play Type")},sports:{stake:i("Stake"),"bet_Part.price":i("Price"),"bet_Part.selection_name":i("Selection"),"bet_Part.market_name":i("Market"),"bet_Part.category":i("Sport"),bet_settled_on:i("Date"),bet_description:i("Description"),bet_Type:i("Bet Type"),is_Freebet:i("Free Bet"),win_Type:i("Win Type"),winnings:i("Winnings"),"-":i("Bet Adjustment"),bet_id:i("Bet ID")}},fe=["stake","bet_Part.price","bet_Part.selection_name","bet_Part.market_name","bet_Part.category"],ke=Object.keys(ue.sports),ze=ke.filter(v=>!fe.includes(v)),Ke=["stake","won","winnings","bet_Part.price","paymentAmount"],dt=["bet_Part.price"],tt=m.replace(/\s/g,"").split(","),ct=g.replace(/\s/g,"").split(","),We={},ee={filterButton:!0,nextPage:!0,previousPage:!0,pageSize:!0},ei=_.split(", ");let Et={},je=new Date,rt=new Date(je);rt.setMonth(je.getMonth()-1),b=je.toISOString().split("T")[0],he=b,O=rt.toISOString().split("T")[0],$=O;const pr=()=>{fetch(d).then(F=>F.json()).then(F=>{Object.keys(F).forEach(j=>{Ns(j,F[j])})}).catch(F=>{console.log(F)})};Object.keys(zs).forEach(v=>{Ns(v,zs[v])});const mr=()=>{u.split(", ").forEach((v,F)=>{const j={type:v,checked:F===0};j.checked&&t(7,de=j.type.toLocaleLowerCase()),se.push(j)})},fr=v=>{se.forEach((F,j)=>{t(15,se[j].checked=v===j,se),se[j].checked&&t(7,de=F.type.toLocaleLowerCase())}),Be()},Be=()=>{if(!ee.filterButton)return;t(10,T=!0),t(12,N=!1),t(18,ee.filterButton=!1,ee),t(18,ee.nextPage=!1,ee),t(18,ee.previousPage=!1,ee),t(18,ee.pageSize=!1,ee);let v=new URL(`${o}/v1/player/${n}/fsb/transactions/${de}`);v.searchParams.append("offset",(w-1).toString()||"0"),v.searchParams.append("limit",B.toString()||"5"),v.searchParams.append("startDate",$),v.searchParams.append("endDate",he);let F={method:"GET",headers:{"X-SessionId":s,"Content-Type":"application/json",Accept:"application/json"}};fetch(v.href,F).then(j=>Ue(j)).then(j=>{if(j.transactions.length===0)return t(3,P=i("checkPeriod")),Promise.reject(P);j.pagination.next&&t(18,ee.nextPage=!0,ee),j.pagination.previous&&t(18,ee.previousPage=!0,ee),t(18,ee.pageSize=!0,ee),t(16,ce[de]=[],ce),t(11,x=!1),mt(),ti(j)}).catch(j=>{t(12,N=!0),t(18,ee.nextPage=!1,ee),t(18,ee.previousPage=!1,ee),t(18,ee.pageSize=!1,ee),window.postMessage({type:"WidgetNotification",data:{type:"error",message:j}},window.location.href)}).finally(()=>{t(10,T=!1),t(18,ee.filterButton=!0,ee)})},Ft=v=>{t(5,$=v.target.value)},_r=v=>{t(6,he=v.target.value)},ut=()=>{ee.pageSize&&t(11,x=!x)},St=v=>{t(8,B=v),t(9,w=1),Be()},At=(v,F)=>{if(F==="next"){if(!ee.nextPage)return;t(9,w=v+1),Be()}else{if(!ee.previousPage)return;t(9,w=v-1),Be()}},ti=v=>{v.transactions.forEach((F,j)=>{t(16,ce[de][j]={},ce),be[de].forEach(Y=>{if(!ct.includes(Y.toLocaleLowerCase())){if(A&&y&&Ke.includes(Y))if(Y.includes(".")){let Ge=Y.split(".");F[Ge[0]].forEach(_t=>{_t[Ge[1]]=Ce(_t,Ge[1])})}else F[Y]=Ce(F,Y);if(new Date(F[Y]).getTime()&&typeof F[Y]!="number"&&pt(F,Y),Y.includes(".")){let Ge=Y.split(".")[0],_t=Y.split(".")[1];F[Y]={label:"Multiple",submenu:[]},F[Ge].forEach(kt=>{kt[_t]&&F[Y].submenu.push(kt[_t])})}if(Y in F)return t(16,ce[de][j][Y]=F[Y],ce)}})})},it=()=>{if(!M)return;let v={};M.split(",").forEach(F=>{let j=F.split(":");v[j[0].trim()]=j[1].trim()}),Object.entries(v).forEach(([F,j])=>we[F]=j)},pt=(v,F)=>{v[F]=hi(v[F]).format(W)},Ce=(v,F)=>{let j=dt.some(ii=>ii.includes(F)),Y=typeof v[F]=="string"?parseInt(v[F]):v[F],Ge=Object.keys(v).find(ii=>ii.includes("currency")||ii.includes("Currency")),_t=v[Ge]||y,kt=A;const ao=kt.match(/\{(\d+)decimals\}/),Bd=ao?parseInt(ao[1],10):2,Ld=ao?new RegExp("\\{\\d+decimals\\}","g"):"{decimals}";Y=Y.toFixed(Bd);const[Hd,lo]=A.includes(".")?[",","."]:[".",","];let[ho,Rd]=Y.split(".");return ho=ho.replace(/\B(?=(\d{3})+(?!\d))/g,Hd),Y=`${ho}${lo}${Rd}`,kt=kt.replace("{currency}",j?"":we[_t]||_t).replace("{amount}",Y.split(lo)[0]).replace(Ld,Y.split(lo)[1]),kt},mt=()=>{Object.keys(We).forEach(v=>t(17,We[v]=!1,We))},Ee=v=>si(this,null,function*(){t(17,We[v]=!We[v],We),yield ec();const F=ne[v];if(oe&&F&&We[v]){const Y=F.offsetTop+F.offsetHeight-oe.clientHeight;oe.scrollTo({top:Y,behavior:"smooth"})}}),ri=(v,F)=>{let j=0;return F.forEach(Y=>{var Ge;(Ge=v[Y])!=null&&Ge.submenu&&Array.isArray(v[Y].submenu)&&(j=Math.max(j,v[Y].submenu.length))}),Array.from({length:j},(Y,Ge)=>Ge)},Pt=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:C},window.location.href)},Ue=v=>si(this,null,function*(){var F;return v.status===404?(t(3,P=i("checkPeriod")),Promise.reject(P)):v.status>=300?(Et=yield v.json(),S=(F=Et.thirdPartyResponse)==null?void 0:F.errorCode,t(3,P=i(S||"generalError")),Promise.reject(P)):v.json()}),ft=()=>{z.addEventListener("change",Ft,!1),V.addEventListener("change",_r,!1);const v=j=>hi(new Date(j.year,j.month,j.day)).format(W),F=j=>{const Y=hi(j,W);return{year:Y.year(),month:Y.month(),day:Y.date()}};t(0,z.i18n=ni(oi({},z.i18n),{formatDate:v,parseDate:F}),z),t(1,V.i18n=ni(oi({},z.i18n),{formatDate:v,parseDate:F}),V)};Qd(()=>()=>{z&&z.removeEventListener("change",Ft),V&&V.removeEventListener("change",_r)});const Ae=()=>Pt(),I=v=>fr(v);function ae(v){It[v?"unshift":"push"](()=>{z=v,t(0,z)})}function H(v){It[v?"unshift":"push"](()=>{V=v,t(1,V)})}const Ze=()=>Be(),kd=v=>Ee(v);function Td(v,F){It[v?"unshift":"push"](()=>{ne[F]=v,t(14,ne)})}function Id(v){It[v?"unshift":"push"](()=>{oe=v,t(13,oe)})}const Dd=()=>At(w,"previous"),Od=()=>At(w,"next"),Md=v=>St(v),Nd=()=>ut();function zd(v){It[v?"unshift":"push"](()=>{q=v,t(2,q)})}return r.$$set=v=>{"endpoint"in v&&t(38,o=v.endpoint),"playerid"in v&&t(39,n=v.playerid),"session"in v&&t(40,s=v.session),"lang"in v&&t(41,a=v.lang),"clientstyling"in v&&t(42,l=v.clientstyling),"clientstylingurl"in v&&t(43,h=v.clientstylingurl),"translationurl"in v&&t(44,d=v.translationurl),"mbsource"in v&&t(45,c=v.mbsource),"historytypes"in v&&t(46,u=v.historytypes),"hidecolumns"in v&&t(47,m=v.hidecolumns),"hidevalues"in v&&t(48,g=v.hidevalues),"pagesizeoptions"in v&&t(49,_=v.pagesizeoptions),"playercurrency"in v&&t(50,y=v.playercurrency),"defaultpagesize"in v&&t(51,D=v.defaultpagesize),"formatamount"in v&&t(52,A=v.formatamount),"customcurrencysymbols"in v&&t(53,M=v.customcurrencysymbols),"dateformat"in v&&t(54,R=v.dateformat)},r.$$.update=()=>{r.$$.dirty[1]&1024&&a&&vp(a),r.$$.dirty[1]&32768&&u&&mr(),r.$$.dirty[1]&896&&o&&n&&s&&Be(),r.$$.dirty[1]&4194304&&M&&it(),r.$$.dirty[0]&3&&z&&V&&ft(),r.$$.dirty[0]&4|r.$$.dirty[1]&2048&&l&&q&&uc(q,l),r.$$.dirty[0]&4|r.$$.dirty[1]&4096&&h&&q&&pc(q,h),r.$$.dirty[0]&4|r.$$.dirty[1]&16384&&c&&q&&mc(q,`${c}.Style`),r.$$.dirty[1]&8192&&d&&pr()},[z,V,q,P,b,$,he,de,B,w,T,x,N,oe,ne,se,ce,We,ee,i,C,Oe,be,ue,fe,ke,ze,tt,ct,ei,fr,Be,ut,St,At,Ee,ri,Pt,o,n,s,a,l,h,d,c,u,m,g,_,y,D,A,M,R,Ae,I,ae,H,Ze,kd,Td,Id,Dd,Od,Md,Nd,zd]}class Pd extends dc{constructor(e){super(),lc(this,e,_b,fb,rl,{endpoint:38,playerid:39,session:40,lang:41,clientstyling:42,clientstylingurl:43,translationurl:44,mbsource:45,historytypes:46,hidecolumns:47,hidevalues:48,pagesizeoptions:49,playercurrency:50,defaultpagesize:51,formatamount:52,customcurrencysymbols:53,dateformat:54},Gg,[-1,-1,-1,-1])}get endpoint(){return this.$$.ctx[38]}set endpoint(e){this.$$set({endpoint:e}),ye()}get playerid(){return this.$$.ctx[39]}set playerid(e){this.$$set({playerid:e}),ye()}get session(){return this.$$.ctx[40]}set session(e){this.$$set({session:e}),ye()}get lang(){return this.$$.ctx[41]}set lang(e){this.$$set({lang:e}),ye()}get clientstyling(){return this.$$.ctx[42]}set clientstyling(e){this.$$set({clientstyling:e}),ye()}get clientstylingurl(){return this.$$.ctx[43]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),ye()}get translationurl(){return this.$$.ctx[44]}set translationurl(e){this.$$set({translationurl:e}),ye()}get mbsource(){return this.$$.ctx[45]}set mbsource(e){this.$$set({mbsource:e}),ye()}get historytypes(){return this.$$.ctx[46]}set historytypes(e){this.$$set({historytypes:e}),ye()}get hidecolumns(){return this.$$.ctx[47]}set hidecolumns(e){this.$$set({hidecolumns:e}),ye()}get hidevalues(){return this.$$.ctx[48]}set hidevalues(e){this.$$set({hidevalues:e}),ye()}get pagesizeoptions(){return this.$$.ctx[49]}set pagesizeoptions(e){this.$$set({pagesizeoptions:e}),ye()}get playercurrency(){return this.$$.ctx[50]}set playercurrency(e){this.$$set({playercurrency:e}),ye()}get defaultpagesize(){return this.$$.ctx[51]}set defaultpagesize(e){this.$$set({defaultpagesize:e}),ye()}get formatamount(){return this.$$.ctx[52]}set formatamount(e){this.$$set({formatamount:e}),ye()}get customcurrencysymbols(){return this.$$.ctx[53]}set customcurrencysymbols(e){this.$$set({customcurrencysymbols:e}),ye()}get dateformat(){return this.$$.ctx[54]}set dateformat(e){this.$$set({dateformat:e}),ye()}}hc(Pd,{endpoint:{},playerid:{},session:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},historytypes:{},hidecolumns:{},hidevalues:{},pagesizeoptions:{},playercurrency:{},defaultpagesize:{},formatamount:{},customcurrencysymbols:{},dateformat:{}},[],[],!0);exports.default=Pd;
6679
+ `),s=xe("g"),a=xe("g"),l=xe("path"),h=U(),d=E("h2"),u=ge(c),p(l,"class","pathstyle"),p(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),p(l,"transform","translate(15 15) rotate(180)"),p(a,"transform","translate(20 158)"),p(s,"transform","translate(-20 -158)"),p(t,"xmlns","http://www.w3.org/2000/svg"),p(t,"width","15"),p(t,"height","15"),p(t,"viewBox","0 0 15 15"),p(d,"class","historyReturnText"),p(e,"class","historyReturnButton")},m(_,y){ie(_,e,y),f(e,t),f(t,i),f(i,o),f(o,n),f(t,s),f(s,a),f(a,l),f(e,h),f(e,d),f(d,u),m||(g=gt(e,"click",r[55]),m=!0)},p(_,y){y[0]&524288&&c!==(c=_[19]("headerTitle")+"")&&Ie(u,c)},d(_){_&&re(e),m=!1,g()}}}function Ua(r){let e,t,i,o,n=r[19](r[122].type)+"",s,a,l,h,d;function c(){return r[56](r[104])}return{c(){e=E("button"),t=E("div"),t.innerHTML='<input type="checkbox"/> <span class="circle"></span>',i=U(),o=E("p"),s=ge(n),a=U(),p(t,"class","toggleCheckbox"),p(o,"class","label"),p(e,"class",l="toggleContent "+(r[122].checked?"checked":""))},m(u,m){ie(u,e,m),f(e,t),f(e,i),f(e,o),f(o,s),f(e,a),h||(d=gt(e,"click",c),h=!0)},p(u,m){r=u,m[0]&557056&&n!==(n=r[19](r[122].type)+"")&&Ie(s,n),m[0]&32768&&l!==(l="toggleContent "+(r[122].checked?"checked":""))&&p(e,"class",l)},d(u){u&&re(e),h=!1,d()}}}function Ga(r){let e,t=(r[19](r[112])||r[112])+"",i,o;return{c(){e=E("span"),i=ge(t),o=U()},m(n,s){ie(n,e,s),f(e,i),f(e,o)},p(n,s){s[0]&524416&&t!==(t=(n[19](n[112])||n[112])+"")&&Ie(i,t)},d(n){n&&re(e)}}}function qa(r){let e=!r[27].includes(r[112].replace(/\s/g,"").toLowerCase()),t,i=e&&Ga(r);return{c(){i&&i.c(),t=$i()},m(o,n){i&&i.m(o,n),ie(o,t,n)},p(o,n){n[0]&128&&(e=!o[27].includes(o[112].replace(/\s/g,"").toLowerCase())),e?i?i.p(o,n):(i=Ga(o),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null)},d(o){o&&re(t),i&&i.d(o)}}}function tb(r){let e,t;return{c(){e=E("div"),t=ge(r[3]),p(e,"class","tableRow")},m(i,o){ie(i,e,o),f(e,t)},p(i,o){o[0]&8&&Ie(t,i[3])},d(i){i&&re(e)}}}function rb(r){let e,t=me(r[16][r[7]]),i=[];for(let o=0;o<t.length;o+=1)i[o]=el(Ba(r,t,o));return{c(){for(let o=0;o<i.length;o+=1)i[o].c();e=$i()},m(o,n){for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(o,n);ie(o,e,n)},p(o,n){if(n[0]&398672e3|n[1]&48){t=me(o[16][o[7]]);let s;for(s=0;s<t.length;s+=1){const a=Ba(o,t,s);i[s]?i[s].p(a,n):(i[s]=el(a),i[s].c(),i[s].m(e.parentNode,e))}for(;s<i.length;s+=1)i[s].d(1);i.length=t.length}},d(o){o&&re(e),He(i,o)}}}function ib(r){let e,t=(r[102][r[112]]||"-")+"",i,o,n;return{c(){var s;e=E("span"),i=ge(t),o=U(),p(e,"data-label",n=((s=r[23][r[7]])==null?void 0:s[r[112].replace(/\s/g,"")])||r[112])},m(s,a){ie(s,e,a),f(e,i),f(e,o)},p(s,a){var l;a[0]&65664&&t!==(t=(s[102][s[112]]||"-")+"")&&Ie(i,t),a[0]&128&&n!==(n=((l=s[23][s[7]])==null?void 0:l[s[112].replace(/\s/g,"")])||s[112])&&p(e,"data-label",n)},d(s){s&&re(e)}}}function ob(r){let e,t=(r[102][r[112]].submenu[0]||"-")+"",i,o,n;return{c(){var s;e=E("span"),i=ge(t),o=U(),p(e,"data-label",n=((s=r[23][r[7]])==null?void 0:s[r[112].replace(/\s/g,"")])||r[112])},m(s,a){ie(s,e,a),f(e,i),f(e,o)},p(s,a){var l;a[0]&65664&&t!==(t=(s[102][s[112]].submenu[0]||"-")+"")&&Ie(i,t),a[0]&128&&n!==(n=((l=s[23][s[7]])==null?void 0:l[s[112].replace(/\s/g,"")])||s[112])&&p(e,"data-label",n)},d(s){s&&re(e)}}}function nb(r){let e,t,i,o,n,s,a=r[102][r[112]].label+"",l,h,d,c,u;function m(){return r[60](r[104])}return{c(){var g;e=E("button"),t=xe("svg"),i=xe("path"),n=U(),s=E("span"),l=ge(a),h=U(),p(i,"d","M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z"),p(t,"xmlns","http://www.w3.org/2000/svg"),p(t,"viewBox","6 5 20 20"),p(t,"class",o="iconToggleSubMenu "+(r[17][r[104]]?"active":"")),p(e,"class","toggleSubMenu"),p(e,"data-label",d=((g=r[23][r[7]])==null?void 0:g[r[112].replace(/\s/g,"")])||r[112])},m(g,_){ie(g,e,_),f(e,t),f(t,i),f(e,n),f(e,s),f(s,l),f(e,h),c||(u=gt(e,"click",m),c=!0)},p(g,_){var y;r=g,_[0]&131072&&o!==(o="iconToggleSubMenu "+(r[17][r[104]]?"active":""))&&p(t,"class",o),_[0]&65664&&a!==(a=r[102][r[112]].label+"")&&Ie(l,a),_[0]&128&&d!==(d=((y=r[23][r[7]])==null?void 0:y[r[112].replace(/\s/g,"")])||r[112])&&p(e,"data-label",d)},d(g){g&&re(e),c=!1,u()}}}function sb(r){let e,t,i,o,n;return{c(){var s;e=E("span"),t=xe("svg"),i=xe("path"),o=U(),p(i,"d","M9 9L15 15M15 9L9 15M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z"),p(i,"stroke","#000000"),p(i,"stroke-width","2"),p(i,"stroke-linecap","round"),p(i,"stroke-linejoin","round"),p(t,"viewBox","-3 -4 30 30"),p(t,"xmlns","http://www.w3.org/2000/svg"),p(e,"class","decline"),p(e,"data-label",n=((s=r[23][r[7]])==null?void 0:s[r[112].replace(/\s/g,"")])||r[112])},m(s,a){ie(s,e,a),f(e,t),f(t,i),f(e,o)},p(s,a){var l;a[0]&128&&n!==(n=((l=s[23][s[7]])==null?void 0:l[s[112].replace(/\s/g,"")])||s[112])&&p(e,"data-label",n)},d(s){s&&re(e)}}}function ab(r){let e,t,i,o,n,s;return{c(){var a;e=E("span"),t=xe("svg"),i=xe("path"),o=xe("path"),n=U(),p(i,"fill-rule","evenodd"),p(i,"clip-rule","evenodd"),p(i,"d","M5.5 12.0002C5.50024 8.66068 7.85944 5.78639 11.1348 5.1351C14.4102 4.48382 17.6895 6.23693 18.9673 9.32231C20.2451 12.4077 19.1655 15.966 16.3887 17.8212C13.6119 19.6764 9.91127 19.3117 7.55 16.9502C6.23728 15.6373 5.49987 13.8568 5.5 12.0002Z"),p(i,"stroke","#000000"),p(i,"stroke-width","1.5"),p(i,"stroke-linecap","round"),p(i,"stroke-linejoin","round"),p(o,"d","M9 12.0002L11.333 14.3332L16 9.66724"),p(o,"stroke-width","1.5"),p(o,"stroke-linecap","round"),p(o,"stroke-linejoin","round"),p(t,"viewBox","0 0 24 24"),p(t,"xmlns","http://www.w3.org/2000/svg"),p(e,"class","approved"),p(e,"data-label",s=((a=r[23][r[7]])==null?void 0:a[r[112].replace(/\s/g,"").toLowerCase()])||r[112])},m(a,l){ie(a,e,l),f(e,t),f(t,i),f(t,o),f(e,n)},p(a,l){var h;l[0]&128&&s!==(s=((h=a[23][a[7]])==null?void 0:h[a[112].replace(/\s/g,"").toLowerCase()])||a[112])&&p(e,"data-label",s)},d(a){a&&re(e)}}}function Ya(r){let e,t;function i(s,a){var l,h,d;if(a[0]&128&&(e=null),s[102][s[112]]===!0)return ab;if(s[102][s[112]]===!1)return sb;if((l=s[102][s[112]])!=null&&l.label&&((h=s[102][s[112]])==null?void 0:h.submenu.length)>1)return nb;if((d=s[102][s[112]])!=null&&d.submenu)return ob;if(e==null&&(e=!s[28].includes(s[112].toLowerCase())),e)return ib}let o=i(r,[-1,-1,-1,-1]),n=o&&o(r);return{c(){n&&n.c(),t=$i()},m(s,a){n&&n.m(s,a),ie(s,t,a)},p(s,a){o===(o=i(s,a))&&n?n.p(s,a):(n&&n.d(1),n=o&&o(s),n&&(n.c(),n.m(t.parentNode,t)))},d(s){s&&re(t),n&&n.d(s)}}}function lb(r){let e,t,i,o,n;return{c(){var s;e=E("div"),t=E("span"),i=ge("-"),n=U(),p(t,"data-label",o=((s=r[23][r[7]])==null?void 0:s[r[112].replace(/\s/g,"").toLowerCase()])||r[112]),p(t,"class","label"),p(e,"class","tableData")},m(s,a){ie(s,e,a),f(e,t),f(t,i),f(e,n)},p(s,a){var l;a[0]&128&&o!==(o=((l=s[23][s[7]])==null?void 0:l[s[112].replace(/\s/g,"").toLowerCase()])||s[112])&&p(t,"data-label",o)},d(s){s&&re(e)}}}function hb(r){let e,t,i=me(r[102][r[112]].submenu),o=[];for(let n=0;n<i.length;n+=1)o[n]=Xa($a(r,i,n));return{c(){e=E("div");for(let n=0;n<o.length;n+=1)o[n].c();t=U(),p(e,"class","tableData")},m(n,s){ie(n,e,s);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(e,null);f(e,t)},p(n,s){if(s[0]&12648576){i=me(n[102][n[112]].submenu);let a;for(a=0;a<i.length;a+=1){const l=$a(n,i,a);o[a]?o[a].p(l,s):(o[a]=Xa(l),o[a].c(),o[a].m(e,t))}for(;a<o.length;a+=1)o[a].d(1);o.length=i.length}},d(n){n&&re(e),He(o,n)}}}function Xa(r){let e,t=(r[115]||"-")+"",i,o;return{c(){var n;e=E("span"),i=ge(t),p(e,"data-label",o=((n=r[23][r[7]])==null?void 0:n[r[112].replace(/\s/g,"").toLowerCase()])||r[112]),p(e,"class","label")},m(n,s){ie(n,e,s),f(e,i)},p(n,s){var a;s[0]&65664&&t!==(t=(n[115]||"-")+"")&&Ie(i,t),s[0]&128&&o!==(o=((a=n[23][n[7]])==null?void 0:a[n[112].replace(/\s/g,"").toLowerCase()])||n[112])&&p(e,"data-label",o)},d(n){n&&re(e)}}}function Ka(r){let e;function t(n,s){var a;return(a=n[102][n[112]])!=null&&a.submenu?hb:lb}let i=t(r),o=i(r);return{c(){o.c(),e=$i()},m(n,s){o.m(n,s),ie(n,e,s)},p(n,s){i===(i=t(n))&&o?o.p(n,s):(o.d(1),o=i(n),o&&(o.c(),o.m(e.parentNode,e)))},d(n){n&&re(e),o.d(n)}}}function Za(r){var n,s;let e,t,i=(((s=(n=r[102][r[105]])==null?void 0:n.submenu)==null?void 0:s[r[109]])||"-")+"",o;return{c(){var a;e=E("div"),t=E("span"),o=ge(i),p(t,"data-label",(a=r[23].sports)==null?void 0:a[r[105]]),p(t,"class","label"),p(e,"class","tableData")},m(a,l){ie(a,e,l),f(e,t),f(t,o)},p(a,l){var h,d;l[0]&65664&&i!==(i=(((d=(h=a[102][a[105]])==null?void 0:h.submenu)==null?void 0:d[a[109]])||"-")+"")&&Ie(o,i)},d(a){a&&re(e)}}}function Ja(r){let e,t=me(r[24]),i=[];for(let o=0;o<t.length;o+=1)i[o]=Za(Ra(r,t,o));return{c(){e=E("div");for(let o=0;o<i.length;o+=1)i[o].c();p(e,"class","submenuRow")},m(o,n){ie(o,e,n);for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(e,null)},p(o,n){if(n[0]&25231488){t=me(o[24]);let s;for(s=0;s<t.length;s+=1){const a=Ra(o,t,s);i[s]?i[s].p(a,n):(i[s]=Za(a),i[s].c(),i[s].m(e,null))}for(;s<i.length;s+=1)i[s].d(1);i.length=t.length}},d(o){o&&re(e),He(i,o)}}}function Qa(r){var a,l;let e,t,i,o=(((l=(a=r[102][r[105]])==null?void 0:a.submenu)==null?void 0:l[0])||"-")+"",n,s;return{c(){var h;e=E("div"),t=E("div"),i=E("span"),n=ge(o),s=U(),p(i,"data-label",(h=r[23].sports)==null?void 0:h[r[105]]),p(i,"class","label"),p(t,"class","tableData"),p(e,"class","submenuRow")},m(h,d){ie(h,e,d),f(e,t),f(t,i),f(i,n),f(e,s)},p(h,d){var c,u;d[0]&65664&&o!==(o=(((u=(c=h[102][h[105]])==null?void 0:c.submenu)==null?void 0:u[0])||"-")+"")&&Ie(n,o)},d(h){h&&re(e)}}}function el(r){let e,t,i,o,n,s,a,l,h,d,c=r[104],u,m=me(r[22][r[7]]),g=[];for(let S=0;S<m.length;S+=1)g[S]=Ya(Va(r,m,S));let _=me(r[22][r[7]]),y=[];for(let S=0;S<_.length;S+=1)y[S]=Ka(Fa(r,_,S));let D=me(r[36](r[102],r[25])),A=[];for(let S=0;S<D.length;S+=1)A[S]=Ja(Ha(r,D,S));let M=me(r[26]),R=[];for(let S=0;S<M.length;S+=1)R[S]=Qa(La(r,M,S));const W=()=>r[61](o,c),Q=()=>r[61](null,c);return{c(){e=E("div"),t=E("div");for(let S=0;S<g.length;S+=1)g[S].c();i=U(),o=E("div"),n=E("div");for(let S=0;S<y.length;S+=1)y[S].c();s=U(),a=E("div");for(let S=0;S<A.length;S+=1)A[S].c();l=U(),h=E("div");for(let S=0;S<R.length;S+=1)R[S].c();u=U(),p(t,"class","tableData"),p(n,"class","desktopSubmenu"),p(h,"class","remainingRows"),p(a,"class","allSubmenuRows"),p(o,"class",d="tableSubMenu "+(r[17][r[104]]?"active":"")),p(e,"class","tableRow")},m(S,P){ie(S,e,P),f(e,t);for(let b=0;b<g.length;b+=1)g[b]&&g[b].m(t,null);f(e,i),f(e,o),f(o,n);for(let b=0;b<y.length;b+=1)y[b]&&y[b].m(n,null);f(o,s),f(o,a);for(let b=0;b<A.length;b+=1)A[b]&&A[b].m(a,null);f(a,l),f(a,h);for(let b=0;b<R.length;b+=1)R[b]&&R[b].m(h,null);W(),f(e,u)},p(S,P){if(r=S,P[0]&281215104|P[1]&16){m=me(r[22][r[7]]);let b;for(b=0;b<m.length;b+=1){const O=Va(r,m,b);g[b]?g[b].p(O,P):(g[b]=Ya(O),g[b].c(),g[b].m(t,null))}for(;b<g.length;b+=1)g[b].d(1);g.length=m.length}if(P[0]&12648576){_=me(r[22][r[7]]);let b;for(b=0;b<_.length;b+=1){const O=Fa(r,_,b);y[b]?y[b].p(O,P):(y[b]=Ka(O),y[b].c(),y[b].m(n,null))}for(;b<y.length;b+=1)y[b].d(1);y.length=_.length}if(P[0]&25231488){D=me(r[36](r[102],r[25]));let b;for(b=0;b<D.length;b+=1){const O=Ha(r,D,b);A[b]?A[b].p(O,P):(A[b]=Ja(O),A[b].c(),A[b].m(a,l))}for(;b<A.length;b+=1)A[b].d(1);A.length=D.length}if(P[0]&75563136){M=me(r[26]);let b;for(b=0;b<M.length;b+=1){const O=La(r,M,b);R[b]?R[b].p(O,P):(R[b]=Qa(O),R[b].c(),R[b].m(h,null))}for(;b<R.length;b+=1)R[b].d(1);R.length=M.length}P[0]&131072&&d!==(d="tableSubMenu "+(r[17][r[104]]?"active":""))&&p(o,"class",d),c!==r[104]&&(Q(),c=r[104],W())},d(S){S&&re(e),He(g,S),He(y,S),He(A,S),He(R,S),Q()}}}function tl(r){let e,t,i,o,n;function s(){return r[65](r[99])}return{c(){e=E("button"),t=E("p"),t.textContent=`${r[99]}`,i=U(),p(e,"class","dropDownRow")},m(a,l){ie(a,e,l),f(e,t),f(e,i),o||(n=gt(e,"click",s),o=!0)},p(a,l){r=a},d(a){a&&re(e),o=!1,n()}}}function db(r){let e;return{c(){e=E("div"),e.innerHTML='<ui-skeleton structure="title" width="auto" height="30px"></ui-skeleton>',p(e,"class","headerText skeleton")},m(t,i){ie(t,e,i)},d(t){t&&re(e)}}}function cb(r){let e;return{c(){e=E("button"),e.innerHTML='<ui-skeleton structure="title" width="auto" height="10px"></ui-skeleton>',p(e,"class","historyReturnButton skeleton")},m(t,i){ie(t,e,i)},d(t){t&&re(e)}}}function ub(r){let e;return{c(){e=E("div"),e.innerHTML='<ui-skeleton structure="circle" size="20px"></ui-skeleton> <div class="label"><ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton></div> ',p(e,"class","toggleContent")},m(t,i){ie(t,e,i)},p:De,d(t){t&&re(e)}}}function pb(r){let e;return{c(){e=E("div"),e.innerHTML='<ui-skeleton structure="text" width="auto" height="40px"></ui-skeleton> '},m(t,i){ie(t,e,i)},p:De,d(t){t&&re(e)}}}function mb(r){let e;return{c(){e=E("div"),e.innerHTML='<ui-skeleton structure="text" width="auto" height="40px"></ui-skeleton> '},m(t,i){ie(t,e,i)},p:De,d(t){t&&re(e)}}}function fb(r){let e,t,i,o=me({length:6}),n=[];for(let s=0;s<o.length;s+=1)n[s]=mb(Xg(r,o,s));return{c(){e=E("div"),t=E("div");for(let s=0;s<n.length;s+=1)n[s].c();i=U(),p(t,"class","tableData"),p(e,"class","tableRow")},m(s,a){ie(s,e,a),f(e,t);for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(t,null);f(e,i)},p:De,d(s){s&&re(e),He(n,s)}}}function _b(r){let e;function t(n,s){return n[10]?Qg:Jg}let i=t(r),o=i(r);return{c(){e=E("div"),o.c()},m(n,s){ie(n,e,s),o.m(e,null),r[67](e)},p(n,s){i===(i=t(n))&&o?o.p(n,s):(o.d(1),o=i(n),o&&(o.c(),o.m(e,null)))},i:De,o:De,d(n){n&&re(e),o.d(),r[67](null)}}}function vb(r,e,t){let i;qd(r,_p,v=>t(19,i=v)),hi.extend(xp);let{endpoint:o=""}=e,{playerid:n=""}=e,{session:s=""}=e,{lang:a="en"}=e,{clientstyling:l=""}=e,{clientstylingurl:h=""}=e,{translationurl:d=""}=e,{mbsource:c}=e,{historytypes:u="Casino, Sports, Payments"}=e,{hidecolumns:m=""}=e,{hidevalues:g=""}=e,{pagesizeoptions:_="10, 20, 30, 50, 100"}=e,{playercurrency:y=""}=e,{defaultpagesize:D="5"}=e,{formatamount:A="{currency}{amount}.{2decimals}"}=e,{customcurrencysymbols:M}=e,{dateformat:R="DD/MM/YYYY"}=e,W=R.toUpperCase(),Q=window.navigator.userAgent,S="",P="",b="",O="",$="",he="",de="",B=Number(D),w=1,C=vp(Q)!=="PC",T=!0,x=!1,N=!1,z,V,q,oe,ne=[];const se=[],we={EUR:"€",RON:" lei",USD:"$"},ce={payments:[],casino:[],sports:[]},Oe={payments:["Type","Status","Amount","Date","Transaction ID"],casino:["Game Name","Date","Bet Amount","Win Amount","Transaction ID","Play Type","Method"],sports:["Stake","Price","Selection","Market","Sport","Date","Description","Bet Type","Free Bet","Win Type","Winnings","Bet Adjustment","Bet ID"]},be={payments:["paymentType","paymentState","paymentAmount","paymentCreatedOn","withdrawalId"],casino:["game_type_name","game_finished_on","stake","won","game_id","play_type"],sports:["stake","bet_Part.price","bet_Part.selection_name","bet_Part.market_name","bet_Part.category","bet_settled_on","bet_description","bet_Type","is_Freebet","win_Type","winnings","-","bet_id"]},ue={payments:{paymentType:i("Type"),paymentState:i("Status"),paymentAmount:i("Amount"),paymentCreatedOn:i("Date"),withdrawalId:i("Transaction ID")},casino:{game_type_name:i("Game Name"),game_finished_on:i("Date"),stake:i("Bet Amount"),won:i("Win Amount"),game_id:i("Transaction ID"),play_type:i("Play Type")},sports:{stake:i("Stake"),"bet_Part.price":i("Price"),"bet_Part.selection_name":i("Selection"),"bet_Part.market_name":i("Market"),"bet_Part.category":i("Sport"),bet_settled_on:i("Date"),bet_description:i("Description"),bet_Type:i("Bet Type"),is_Freebet:i("Free Bet"),win_Type:i("Win Type"),winnings:i("Winnings"),"-":i("Bet Adjustment"),bet_id:i("Bet ID")}},fe=["stake","bet_Part.price","bet_Part.selection_name","bet_Part.market_name","bet_Part.category"],ke=Object.keys(ue.sports),ze=ke.filter(v=>!fe.includes(v)),Ke=["stake","won","winnings","bet_Part.price","paymentAmount"],dt=["bet_Part.price"],tt=m.replace(/\s/g,"").split(","),ct=g.replace(/\s/g,"").split(","),We={},ee={filterButton:!0,nextPage:!0,previousPage:!0,pageSize:!0},ei=_.split(", ");let Et={},je=new Date,rt=new Date(je);rt.setMonth(je.getMonth()-1),b=je.toISOString().split("T")[0],he=b,O=rt.toISOString().split("T")[0],$=O;const pr=()=>{fetch(d).then(F=>F.json()).then(F=>{Object.keys(F).forEach(j=>{Ns(j,F[j])})}).catch(F=>{console.log(F)})};Object.keys(zs).forEach(v=>{Ns(v,zs[v])});const mr=()=>{u.split(", ").forEach((v,F)=>{const j={type:v,checked:F===0};j.checked&&t(7,de=j.type.toLocaleLowerCase()),se.push(j)})},fr=v=>{se.forEach((F,j)=>{t(15,se[j].checked=v===j,se),se[j].checked&&t(7,de=F.type.toLocaleLowerCase())}),Be()},Be=()=>{if(!ee.filterButton)return;t(10,T=!0),t(12,N=!1),t(18,ee.filterButton=!1,ee),t(18,ee.nextPage=!1,ee),t(18,ee.previousPage=!1,ee),t(18,ee.pageSize=!1,ee);let v=new URL(`${o}/v1/player/${n}/fsb/transactions/${de}`);v.searchParams.append("offset",(w-1).toString()||"0"),v.searchParams.append("limit",B.toString()||"5"),v.searchParams.append("startDate",$),v.searchParams.append("endDate",he);let F={method:"GET",headers:{"X-SessionId":s,"Content-Type":"application/json",Accept:"application/json"}};fetch(v.href,F).then(j=>Ue(j)).then(j=>{if(j.transactions.length===0)return t(3,P=i("checkPeriod")),Promise.reject(P);j.pagination.next&&t(18,ee.nextPage=!0,ee),j.pagination.previous&&t(18,ee.previousPage=!0,ee),t(18,ee.pageSize=!0,ee),t(16,ce[de]=[],ce),t(11,x=!1),mt(),ti(j)}).catch(j=>{t(12,N=!0),t(18,ee.nextPage=!1,ee),t(18,ee.previousPage=!1,ee),t(18,ee.pageSize=!1,ee),window.postMessage({type:"WidgetNotification",data:{type:"error",message:j}},window.location.href)}).finally(()=>{t(10,T=!1),t(18,ee.filterButton=!0,ee)})},Ft=v=>{t(5,$=v.target.value)},_r=v=>{t(6,he=v.target.value)},ut=()=>{ee.pageSize&&t(11,x=!x)},St=v=>{t(8,B=v),t(9,w=1),Be()},At=(v,F)=>{if(F==="next"){if(!ee.nextPage)return;t(9,w=v+1),Be()}else{if(!ee.previousPage)return;t(9,w=v-1),Be()}},ti=v=>{v.transactions.forEach((F,j)=>{t(16,ce[de][j]={},ce),be[de].forEach(Y=>{if(!ct.includes(Y.toLocaleLowerCase())){if(A&&y&&Ke.includes(Y))if(Y.includes(".")){let Ge=Y.split(".");F[Ge[0]].forEach(_t=>{_t[Ge[1]]=Ce(_t,Ge[1])})}else F[Y]=Ce(F,Y);if(new Date(F[Y]).getTime()&&typeof F[Y]!="number"&&pt(F,Y),Y.includes(".")){let Ge=Y.split(".")[0],_t=Y.split(".")[1];F[Y]={label:"Multiple",submenu:[]},F[Ge].forEach(kt=>{kt[_t]&&F[Y].submenu.push(kt[_t])})}if(Y in F)return t(16,ce[de][j][Y]=F[Y],ce)}})})},it=()=>{if(!M)return;let v={};M.split(",").forEach(F=>{let j=F.split(":");v[j[0].trim()]=j[1].trim()}),Object.entries(v).forEach(([F,j])=>we[F]=j)},pt=(v,F)=>{v[F]=hi(v[F]).format(W)},Ce=(v,F)=>{let j=dt.some(ii=>ii.includes(F)),Y=typeof v[F]=="string"?parseInt(v[F]):v[F],Ge=Object.keys(v).find(ii=>ii.includes("currency")||ii.includes("Currency")),_t=v[Ge]||y,kt=A;const ao=kt.match(/\{(\d+)decimals\}/),Ld=ao?parseInt(ao[1],10):2,Hd=ao?new RegExp("\\{\\d+decimals\\}","g"):"{decimals}";Y=Y.toFixed(Ld);const[Rd,lo]=A.includes(".")?[",","."]:[".",","];let[ho,Fd]=Y.split(".");return ho=ho.replace(/\B(?=(\d{3})+(?!\d))/g,Rd),Y=`${ho}${lo}${Fd}`,kt=kt.replace("{currency}",j?"":we[_t]||_t).replace("{amount}",Y.split(lo)[0]).replace(Hd,Y.split(lo)[1]),kt},mt=()=>{Object.keys(We).forEach(v=>t(17,We[v]=!1,We))},Ee=v=>si(this,null,function*(){t(17,We[v]=!We[v],We),yield tc();const F=ne[v];if(oe&&F&&We[v]){const Y=F.offsetTop+F.offsetHeight-oe.clientHeight;oe.scrollTo({top:Y,behavior:"smooth"})}}),ri=(v,F)=>{let j=0;return F.forEach(Y=>{var Ge;(Ge=v[Y])!=null&&Ge.submenu&&Array.isArray(v[Y].submenu)&&(j=Math.max(j,v[Y].submenu.length))}),Array.from({length:j},(Y,Ge)=>Ge)},Pt=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:C},window.location.href)},Ue=v=>si(this,null,function*(){var F;return v.status===404?(t(3,P=i("checkPeriod")),Promise.reject(P)):v.status>=300?(Et=yield v.json(),S=(F=Et.thirdPartyResponse)==null?void 0:F.errorCode,t(3,P=i(S||"generalError")),Promise.reject(P)):v.json()}),ft=()=>{z.addEventListener("change",Ft,!1),V.addEventListener("change",_r,!1);const v=j=>hi(new Date(j.year,j.month,j.day)).format(W),F=j=>{const Y=hi(j,W);return{year:Y.year(),month:Y.month(),day:Y.date()}};t(0,z.i18n=ni(oi({},z.i18n),{formatDate:v,parseDate:F}),z),t(1,V.i18n=ni(oi({},z.i18n),{formatDate:v,parseDate:F}),V)};ec(()=>()=>{z&&z.removeEventListener("change",Ft),V&&V.removeEventListener("change",_r)});const Ae=()=>Pt(),I=v=>fr(v);function ae(v){It[v?"unshift":"push"](()=>{z=v,t(0,z)})}function H(v){It[v?"unshift":"push"](()=>{V=v,t(1,V)})}const Ze=()=>Be(),Td=v=>Ee(v);function Id(v,F){It[v?"unshift":"push"](()=>{ne[F]=v,t(14,ne)})}function Dd(v){It[v?"unshift":"push"](()=>{oe=v,t(13,oe)})}const Od=()=>At(w,"previous"),Md=()=>At(w,"next"),Nd=v=>St(v),zd=()=>ut();function Bd(v){It[v?"unshift":"push"](()=>{q=v,t(2,q)})}return r.$$set=v=>{"endpoint"in v&&t(38,o=v.endpoint),"playerid"in v&&t(39,n=v.playerid),"session"in v&&t(40,s=v.session),"lang"in v&&t(41,a=v.lang),"clientstyling"in v&&t(42,l=v.clientstyling),"clientstylingurl"in v&&t(43,h=v.clientstylingurl),"translationurl"in v&&t(44,d=v.translationurl),"mbsource"in v&&t(45,c=v.mbsource),"historytypes"in v&&t(46,u=v.historytypes),"hidecolumns"in v&&t(47,m=v.hidecolumns),"hidevalues"in v&&t(48,g=v.hidevalues),"pagesizeoptions"in v&&t(49,_=v.pagesizeoptions),"playercurrency"in v&&t(50,y=v.playercurrency),"defaultpagesize"in v&&t(51,D=v.defaultpagesize),"formatamount"in v&&t(52,A=v.formatamount),"customcurrencysymbols"in v&&t(53,M=v.customcurrencysymbols),"dateformat"in v&&t(54,R=v.dateformat)},r.$$.update=()=>{r.$$.dirty[1]&1024&&a&&gp(a),r.$$.dirty[1]&32768&&u&&mr(),r.$$.dirty[1]&896&&o&&n&&s&&Be(),r.$$.dirty[1]&4194304&&M&&it(),r.$$.dirty[0]&3&&z&&V&&ft(),r.$$.dirty[0]&4|r.$$.dirty[1]&2048&&l&&q&&pc(q,l),r.$$.dirty[0]&4|r.$$.dirty[1]&4096&&h&&q&&mc(q,h),r.$$.dirty[0]&4|r.$$.dirty[1]&16384&&c&&q&&fc(q,`${c}.Style`),r.$$.dirty[1]&8192&&d&&pr()},[z,V,q,P,b,$,he,de,B,w,T,x,N,oe,ne,se,ce,We,ee,i,C,Oe,be,ue,fe,ke,ze,tt,ct,ei,fr,Be,ut,St,At,Ee,ri,Pt,o,n,s,a,l,h,d,c,u,m,g,_,y,D,A,M,R,Ae,I,ae,H,Ze,Td,Id,Dd,Od,Md,Nd,zd,Bd]}class kd extends cc{constructor(e){super(),hc(this,e,vb,_b,il,{endpoint:38,playerid:39,session:40,lang:41,clientstyling:42,clientstylingurl:43,translationurl:44,mbsource:45,historytypes:46,hidecolumns:47,hidevalues:48,pagesizeoptions:49,playercurrency:50,defaultpagesize:51,formatamount:52,customcurrencysymbols:53,dateformat:54},qg,[-1,-1,-1,-1])}get endpoint(){return this.$$.ctx[38]}set endpoint(e){this.$$set({endpoint:e}),ye()}get playerid(){return this.$$.ctx[39]}set playerid(e){this.$$set({playerid:e}),ye()}get session(){return this.$$.ctx[40]}set session(e){this.$$set({session:e}),ye()}get lang(){return this.$$.ctx[41]}set lang(e){this.$$set({lang:e}),ye()}get clientstyling(){return this.$$.ctx[42]}set clientstyling(e){this.$$set({clientstyling:e}),ye()}get clientstylingurl(){return this.$$.ctx[43]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),ye()}get translationurl(){return this.$$.ctx[44]}set translationurl(e){this.$$set({translationurl:e}),ye()}get mbsource(){return this.$$.ctx[45]}set mbsource(e){this.$$set({mbsource:e}),ye()}get historytypes(){return this.$$.ctx[46]}set historytypes(e){this.$$set({historytypes:e}),ye()}get hidecolumns(){return this.$$.ctx[47]}set hidecolumns(e){this.$$set({hidecolumns:e}),ye()}get hidevalues(){return this.$$.ctx[48]}set hidevalues(e){this.$$set({hidevalues:e}),ye()}get pagesizeoptions(){return this.$$.ctx[49]}set pagesizeoptions(e){this.$$set({pagesizeoptions:e}),ye()}get playercurrency(){return this.$$.ctx[50]}set playercurrency(e){this.$$set({playercurrency:e}),ye()}get defaultpagesize(){return this.$$.ctx[51]}set defaultpagesize(e){this.$$set({defaultpagesize:e}),ye()}get formatamount(){return this.$$.ctx[52]}set formatamount(e){this.$$set({formatamount:e}),ye()}get customcurrencysymbols(){return this.$$.ctx[53]}set customcurrencysymbols(e){this.$$set({customcurrencysymbols:e}),ye()}get dateformat(){return this.$$.ctx[54]}set dateformat(e){this.$$set({dateformat:e}),ye()}}dc(kd,{endpoint:{},playerid:{},session:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},historytypes:{},hidecolumns:{},hidevalues:{},pagesizeoptions:{},playercurrency:{},defaultpagesize:{},formatamount:{},customcurrencysymbols:{},dateformat:{}},[],[],!0);exports.default=kd;