@everymatrix/player-account-transactions-history 0.2.3 → 0.3.0

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 rd=Object.defineProperty,od=Object.defineProperties;var nd=Object.getOwnPropertyDescriptors;var Qn=Object.getOwnPropertySymbols;var sd=Object.prototype.hasOwnProperty,ad=Object.prototype.propertyIsEnumerable;var eo=(i,e,t)=>e in i?rd(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,es=(i,e)=>{for(var t in e||(e={}))sd.call(e,t)&&eo(i,t,e[t]);if(Qn)for(var t of Qn(e))ad.call(e,t)&&eo(i,t,e[t]);return i},ts=(i,e)=>od(i,nd(e));var Ce=(i,e,t)=>(eo(i,typeof e!="symbol"?e+"":e,t),t);var to=(i,e,t)=>new Promise((r,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?r(l.value):Promise.resolve(l.value).then(n,s);a((t=t.apply(i,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../stencil/ui-skeleton-CaX4F6ue.cjs");function Q(){}function Fa(i){return i()}function is(){return Object.create(null)}function ei(i){i.forEach(Fa)}function un(i){return typeof i=="function"}function Ha(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}function ld(i){return Object.keys(i).length===0}function Ra(i,...e){if(i==null){for(const r of e)r(void 0);return Q}const t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function hd(i,e,t){i.$$.on_destroy.push(Ra(e,t))}function m(i,e){i.appendChild(e)}function dd(i,e,t){const r=cd(i);if(!r.getElementById(e)){const o=v("style");o.id=e,o.textContent=t,ud(r,o)}}function cd(i){if(!i)return document;const e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function ud(i,e){return m(i.head||i,e),e.sheet}function X(i,e,t){i.insertBefore(e,t||null)}function G(i){i.parentNode&&i.parentNode.removeChild(i)}function De(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function v(i){return document.createElement(i)}function fe(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function oe(i){return document.createTextNode(i)}function z(){return oe(" ")}function pn(){return oe("")}function et(i,e,t,r){return i.addEventListener(e,t,r),()=>i.removeEventListener(e,t,r)}function _(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function Ee(i,e,t){const r=e.toLowerCase();r in i?i[r]=typeof i[r]=="boolean"&&t===""?!0:t:e in i?i[e]=typeof i[e]=="boolean"&&t===""?!0:t:_(i,e,t)}function pd(i){return Array.from(i.childNodes)}function ge(i,e){e=""+e,i.data!==e&&(i.data=e)}function md(i){const e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}let Pi;function Ci(i){Pi=i}function fd(){if(!Pi)throw new Error("Function called outside component initialization");return Pi}function _d(i){fd().$$.on_mount.push(i)}const Ft=[],Ei=[];let Rt=[];const rs=[],gd=Promise.resolve();let So=!1;function vd(){So||(So=!0,gd.then(ae))}function Ao(i){Rt.push(i)}const io=new Set;let Mt=0;function ae(){if(Mt!==0)return;const i=Pi;do{try{for(;Mt<Ft.length;){const e=Ft[Mt];Mt++,Ci(e),bd(e.$$)}}catch(e){throw Ft.length=0,Mt=0,e}for(Ci(null),Ft.length=0,Mt=0;Ei.length;)Ei.pop()();for(let e=0;e<Rt.length;e+=1){const t=Rt[e];io.has(t)||(io.add(t),t())}Rt.length=0}while(Ft.length);for(;rs.length;)rs.pop()();So=!1,io.clear(),Ci(i)}function bd(i){if(i.fragment!==null){i.update(),ei(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Ao)}}function yd(i){const e=[],t=[];Rt.forEach(r=>i.indexOf(r)===-1?e.push(r):t.push(r)),t.forEach(r=>r()),Rt=e}const xd=new Set;function wd(i,e){i&&i.i&&(xd.delete(i),i.i(e))}function te(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Cd(i,e,t){const{fragment:r,after_update:o}=i.$$;r&&r.m(e,t),Ao(()=>{const n=i.$$.on_mount.map(Fa).filter(un);i.$$.on_destroy?i.$$.on_destroy.push(...n):ei(n),i.$$.on_mount=[]}),o.forEach(Ao)}function Ed(i,e){const t=i.$$;t.fragment!==null&&(yd(t.after_update),ei(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function Sd(i,e){i.$$.dirty[0]===-1&&(Ft.push(i),vd(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function Ad(i,e,t,r,o,n,s=null,a=[-1]){const l=Pi;Ci(i);const h=i.$$={fragment:null,ctx:[],props:n,update:Q,not_equal:o,bound:is(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:is(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(h.root);let d=!1;if(h.ctx=t(i,e.props||{},(c,p,...u)=>{const g=u.length?u[0]:p;return h.ctx&&o(h.ctx[c],h.ctx[c]=g)&&(!h.skip_bound&&h.bound[c]&&h.bound[c](g),d&&Sd(i,c)),p}),h.update(),d=!0,ei(h.before_update),h.fragment=r(h.ctx),e.target){if(e.hydrate){const c=pd(e.target);h.fragment&&h.fragment.l(c),c.forEach(G)}else h.fragment&&h.fragment.c();e.intro&&wd(i.$$.fragment),Cd(i,e.target,e.anchor),ae()}Ci(l)}let Va;typeof HTMLElement=="function"&&(Va=class extends HTMLElement{constructor(e,t,r){super();Ce(this,"$$ctor");Ce(this,"$$s");Ce(this,"$$c");Ce(this,"$$cn",!1);Ce(this,"$$d",{});Ce(this,"$$r",!1);Ce(this,"$$p_d",{});Ce(this,"$$l",{});Ce(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){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,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}connectedCallback(){return to(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(n){return()=>{let s;return{c:function(){s=v("slot"),n!=="default"&&_(s,"name",n)},m:function(h,d){X(h,s,d)},d:function(h){h&&G(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=md(this);for(const n of this.$$s)n in r&&(t[n]=[e(n)]);for(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=hr(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:ts(es({},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=hr(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,r){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=hr(e,r,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 hr(i,e,t,r){var n;const o=(n=t[i])==null?void 0:n.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!t[i])return e;if(r==="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 Pd(i,e,t,r,o,n){let s=class extends Va{constructor(){super(i,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=hr(a,l,e),this.$$d[a]=l,(h=this.$$c)==null||h.$set({[a]:l})}})}),r.forEach(a=>{Object.defineProperty(s.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),i.element=s,s}class Id{constructor(){Ce(this,"$$");Ce(this,"$$set")}$destroy(){Ed(this,1),this.$destroy=Q}$on(e,t){if(!un(t))return Q;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{const o=r.indexOf(t);o!==-1&&r.splice(o,1)}}$set(e){this.$$set&&!ld(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const kd="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(kd);function Td(i,e){if(i){const t=document.createElement("style");t.innerHTML=e,i.appendChild(t)}}function Dd(i,e){const t=new URL(e);fetch(t.href).then(r=>r.text()).then(r=>{const o=document.createElement("style");o.innerHTML=r,i&&i.appendChild(o)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function Od(i,e,t){if(window.emMessageBus){const r=document.createElement("style");window.emMessageBus.subscribe(e,o=>{r.innerHTML=o,i&&i.appendChild(r)})}}/*! *****************************************************************************
1
+ "use strict";var ld=Object.defineProperty,hd=Object.defineProperties;var dd=Object.getOwnPropertyDescriptors;var on=Object.getOwnPropertySymbols;var cd=Object.prototype.hasOwnProperty,ud=Object.prototype.propertyIsEnumerable;var ro=(i,e,t)=>e in i?ld(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,sn=(i,e)=>{for(var t in e||(e={}))cd.call(e,t)&&ro(i,t,e[t]);if(on)for(var t of on(e))ud.call(e,t)&&ro(i,t,e[t]);return i},nn=(i,e)=>hd(i,dd(e));var Ce=(i,e,t)=>(ro(i,typeof e!="symbol"?e+"":e,t),t);var oo=(i,e,t)=>new Promise((r,o)=>{var s=l=>{try{a(t.next(l))}catch(h){o(h)}},n=l=>{try{a(t.throw(l))}catch(h){o(h)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(s,n);a((t=t.apply(i,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../stencil/ui-skeleton-CCXvjIzA.cjs");function Q(){}function Wa(i){return i()}function an(){return Object.create(null)}function Qt(i){i.forEach(Wa)}function vs(i){return typeof i=="function"}function Ua(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}function pd(i){return Object.keys(i).length===0}function ja(i,...e){if(i==null){for(const r of e)r(void 0);return Q}const t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function md(i,e,t){i.$$.on_destroy.push(ja(e,t))}function m(i,e){i.appendChild(e)}function _d(i,e,t){const r=fd(i);if(!r.getElementById(e)){const o=g("style");o.id=e,o.textContent=t,vd(r,o)}}function fd(i){if(!i)return document;const e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function vd(i,e){return m(i.head||i,e),e.sheet}function Y(i,e,t){i.insertBefore(e,t||null)}function j(i){i.parentNode&&i.parentNode.removeChild(i)}function De(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function g(i){return document.createElement(i)}function _e(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function oe(i){return document.createTextNode(i)}function M(){return oe(" ")}function gs(){return oe("")}function et(i,e,t,r){return i.addEventListener(e,t,r),()=>i.removeEventListener(e,t,r)}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function Ee(i,e,t){const r=e.toLowerCase();r in i?i[r]=typeof i[r]=="boolean"&&t===""?!0:t:e in i?i[e]=typeof i[e]=="boolean"&&t===""?!0:t:f(i,e,t)}function gd(i){return Array.from(i.childNodes)}function ve(i,e){e=""+e,i.data!==e&&(i.data=e)}function bd(i){const e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}let Ai;function wi(i){Ai=i}function yd(){if(!Ai)throw new Error("Function called outside component initialization");return Ai}function xd(i){yd().$$.on_mount.push(i)}const Ft=[],Ci=[];let Rt=[];const ln=[],wd=Promise.resolve();let ko=!1;function Cd(){ko||(ko=!0,wd.then(ae))}function To(i){Rt.push(i)}const so=new Set;let Mt=0;function ae(){if(Mt!==0)return;const i=Ai;do{try{for(;Mt<Ft.length;){const e=Ft[Mt];Mt++,wi(e),Ed(e.$$)}}catch(e){throw Ft.length=0,Mt=0,e}for(wi(null),Ft.length=0,Mt=0;Ci.length;)Ci.pop()();for(let e=0;e<Rt.length;e+=1){const t=Rt[e];so.has(t)||(so.add(t),t())}Rt.length=0}while(Ft.length);for(;ln.length;)ln.pop()();ko=!1,so.clear(),wi(i)}function Ed(i){if(i.fragment!==null){i.update(),Qt(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(To)}}function Sd(i){const e=[],t=[];Rt.forEach(r=>i.indexOf(r)===-1?e.push(r):t.push(r)),t.forEach(r=>r()),Rt=e}const Ad=new Set;function Pd(i,e){i&&i.i&&(Ad.delete(i),i.i(e))}function te(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Id(i,e,t){const{fragment:r,after_update:o}=i.$$;r&&r.m(e,t),To(()=>{const s=i.$$.on_mount.map(Wa).filter(vs);i.$$.on_destroy?i.$$.on_destroy.push(...s):Qt(s),i.$$.on_mount=[]}),o.forEach(To)}function kd(i,e){const t=i.$$;t.fragment!==null&&(Sd(t.after_update),Qt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function Td(i,e){i.$$.dirty[0]===-1&&(Ft.push(i),Cd(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function Dd(i,e,t,r,o,s,n=null,a=[-1]){const l=Ai;wi(i);const h=i.$$={fragment:null,ctx:[],props:s,update:Q,not_equal:o,bound:an(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:an(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};n&&n(h.root);let d=!1;if(h.ctx=t?t(i,e.props||{},(c,p,...u)=>{const v=u.length?u[0]:p;return h.ctx&&o(h.ctx[c],h.ctx[c]=v)&&(!h.skip_bound&&h.bound[c]&&h.bound[c](v),d&&Td(i,c)),p}):[],h.update(),d=!0,Qt(h.before_update),h.fragment=r?r(h.ctx):!1,e.target){if(e.hydrate){const c=gd(e.target);h.fragment&&h.fragment.l(c),c.forEach(j)}else h.fragment&&h.fragment.c();e.intro&&Pd(i.$$.fragment),Id(i,e.target,e.anchor),ae()}wi(l)}let Ga;typeof HTMLElement=="function"&&(Ga=class extends HTMLElement{constructor(e,t,r){super();Ce(this,"$$ctor");Ce(this,"$$s");Ce(this,"$$c");Ce(this,"$$cn",!1);Ce(this,"$$d",{});Ce(this,"$$r",!1);Ce(this,"$$p_d",{});Ce(this,"$$l",{});Ce(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){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,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}connectedCallback(){return oo(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(s){return()=>{let n;return{c:function(){n=g("slot"),s!=="default"&&f(n,"name",s)},m:function(h,d){Y(h,n,d)},d:function(h){h&&j(n)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=bd(this);for(const s of this.$$s)s in r&&(t[s]=[e(s)]);for(const s of this.attributes){const n=this.$$g_p(s.name);n in this.$$d||(this.$$d[n]=dr(n,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:nn(sn({},this.$$d),{$$slots:t,$$scope:{ctx:[]}})});const o=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const n=dr(s,this.$$d[s],this.$$p_d,"toAttribute");n==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,n)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(const s in this.$$l)for(const n of this.$$l[s]){const a=this.$$c.$on(s,n);this.$$l_u.set(n,a)}this.$$l={}}})}attributeChangedCallback(e,t,r){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=dr(e,r,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 dr(i,e,t,r){var s;const o=(s=t[i])==null?void 0:s.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!t[i])return e;if(r==="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 Od(i,e,t,r,o,s){let n=class extends Ga{constructor(){super(i,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(n.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var h;l=dr(a,l,e),this.$$d[a]=l,(h=this.$$c)==null||h.$set({[a]:l})}})}),r.forEach(a=>{Object.defineProperty(n.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),i.element=n,n}class Nd{constructor(){Ce(this,"$$");Ce(this,"$$set")}$destroy(){kd(this,1),this.$destroy=Q}$on(e,t){if(!vs(t))return Q;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{const o=r.indexOf(t);o!==-1&&r.splice(o,1)}}$set(e){this.$$set&&!pd(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Bd="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Bd);function Md(i,e){if(i){const t=document.createElement("style");t.innerHTML=e,i.appendChild(t)}}function zd(i,e){const t=new URL(e);fetch(t.href).then(r=>r.text()).then(r=>{const o=document.createElement("style");o.innerHTML=r,i&&i.appendChild(o)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function Ld(i,e,t){if(window.emMessageBus){const r=document.createElement("style");window.emMessageBus.subscribe(e,o=>{r.innerHTML=o,i&&i.appendChild(r)})}}/*! *****************************************************************************
2
2
  Copyright (c) Microsoft Corporation.
3
3
 
4
4
  Permission to use, copy, modify, and/or distribute this software for any
@@ -11,55 +11,55 @@ 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 Po=function(i,e){return Po=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},Po(i,e)};function qe(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Po(i,e);function t(){this.constructor=i}i.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var M=function(){return M=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},M.apply(this,arguments)};function Nd(i,e){var t={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(t[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(i);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(i,r[o])&&(t[r[o]]=i[r[o]]);return t}function Io(i){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&i[e],r=0;if(t)return t.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&r>=i.length&&(i=void 0),{value:i&&i[r++],done:!i}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ko(i,e){var t=typeof Symbol=="function"&&i[Symbol.iterator];if(!t)return i;var r=t.call(i),o,n=[],s;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)n.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(s)throw s.error}}return n}function Vt(i,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,n;r<o;r++)(n||!(r in e))&&(n||(n=Array.prototype.slice.call(e,0,r)),n[r]=e[r]);return i.concat(n||e)}function je(i){return typeof i=="function"}function $a(i){var e=function(r){Error.call(r),r.stack=new Error().stack},t=i(e);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var ro=$a(function(i){return function(t){i(this),this.message=t?t.length+` errors occurred during unsubscription:
14
+ ***************************************************************************** */var Do=function(i,e){return Do=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},Do(i,e)};function Vi(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Do(i,e);function t(){this.constructor=i}i.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function Oo(i){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&i[e],r=0;if(t)return t.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&r>=i.length&&(i=void 0),{value:i&&i[r++],done:!i}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function No(i,e){var t=typeof Symbol=="function"&&i[Symbol.iterator];if(!t)return i;var r=t.call(i),o,s=[],n;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(a){n={error:a}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(n)throw n.error}}return s}function Bo(i,e,t){if(arguments.length===2)for(var r=0,o=e.length,s;r<o;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return i.concat(s||e)}function Ge(i){return typeof i=="function"}function qa(i){var e=function(r){Error.call(r),r.stack=new Error().stack},t=i(e);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var no=qa(function(i){return function(t){i(this),this.message=t?t.length+` errors occurred during unsubscription:
15
15
  `+t.map(function(r,o){return o+1+") "+r.toString()}).join(`
16
- `):"",this.name="UnsubscriptionError",this.errors=t}});function To(i,e){if(i){var t=i.indexOf(e);0<=t&&i.splice(t,1)}}var Or=function(){function i(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return i.prototype.unsubscribe=function(){var e,t,r,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=Io(s),l=a.next();!l.done;l=a.next()){var h=l.value;h.remove(this)}}catch(x){e={error:x}}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(je(d))try{d()}catch(x){n=x instanceof ro?x.errors:[x]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var p=Io(c),u=p.next();!u.done;u=p.next()){var g=u.value;try{os(g)}catch(x){n=n!=null?n:[],x instanceof ro?n=Vt(Vt([],ko(n)),ko(x.errors)):n.push(x)}}}catch(x){r={error:x}}finally{try{u&&!u.done&&(o=p.return)&&o.call(p)}finally{if(r)throw r.error}}}if(n)throw new ro(n)}},i.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)os(e);else{if(e instanceof i){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}},i.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},i.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},i.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&To(t,e)},i.prototype.remove=function(e){var t=this._finalizers;t&&To(t,e),e instanceof i&&e._removeParent(this)},i.EMPTY=function(){var e=new i;return e.closed=!0,e}(),i}(),Ua=Or.EMPTY;function Wa(i){return i instanceof Or||i&&"closed"in i&&je(i.remove)&&je(i.add)&&je(i.unsubscribe)}function os(i){je(i)?i():i.unsubscribe()}var Bd={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Md={setTimeout:function(i,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];return setTimeout.apply(void 0,Vt([i,e],ko(t)))},clearTimeout:function(i){return clearTimeout(i)},delegate:void 0};function zd(i){Md.setTimeout(function(){throw i})}function ns(){}function dr(i){i()}var ja=function(i){qe(e,i);function e(t){var r=i.call(this)||this;return r.isStopped=!1,t?(r.destination=t,Wa(t)&&t.add(r)):r.destination=Hd,r}return e.create=function(t,r,o){return new Do(t,r,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,i.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}(Or),Ld=function(){function i(e){this.partialObserver=e}return i.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(r){Qi(r)}},i.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(r){Qi(r)}else Qi(e)},i.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){Qi(t)}},i}(),Do=function(i){qe(e,i);function e(t,r,o){var n=i.call(this)||this,s;return je(t)||!t?s={next:t!=null?t:void 0,error:r!=null?r:void 0,complete:o!=null?o:void 0}:s=t,n.destination=new Ld(s),n}return e}(ja);function Qi(i){zd(i)}function Fd(i){throw i}var Hd={closed:!0,next:ns,error:Fd,complete:ns},Rd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Vd(i){return i}function $d(i){return i.length===0?Vd:i.length===1?i[0]:function(t){return i.reduce(function(r,o){return o(r)},t)}}var ss=function(){function i(e){e&&(this._subscribe=e)}return i.prototype.lift=function(e){var t=new i;return t.source=this,t.operator=e,t},i.prototype.subscribe=function(e,t,r){var o=this,n=Wd(e)?e:new Do(e,t,r);return dr(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},i.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},i.prototype.forEach=function(e,t){var r=this;return t=as(t),new t(function(o,n){var s=new Do({next:function(a){try{e(a)}catch(l){n(l),s.unsubscribe()}},error:n,complete:o});r.subscribe(s)})},i.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},i.prototype[Rd]=function(){return this},i.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return $d(e)(this)},i.prototype.toPromise=function(e){var t=this;return e=as(e),new e(function(r,o){var n;t.subscribe(function(s){return n=s},function(s){return o(s)},function(){return r(n)})})},i.create=function(e){return new i(e)},i}();function as(i){var e;return(e=i!=null?i:Bd.Promise)!==null&&e!==void 0?e:Promise}function Ud(i){return i&&je(i.next)&&je(i.error)&&je(i.complete)}function Wd(i){return i&&i instanceof ja||Ud(i)&&Wa(i)}var jd=$a(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ga=function(i){qe(e,i);function e(){var t=i.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 r=new ls(this,this);return r.operator=t,r},e.prototype._throwIfClosed=function(){if(this.closed)throw new jd},e.prototype.next=function(t){var r=this;dr(function(){var o,n;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=Io(r.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 r=this;dr(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var o=r.observers;o.length;)o.shift().error(t)}})},e.prototype.complete=function(){var t=this;dr(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var r=t.observers;r.length;)r.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(),i.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 r=this,o=this,n=o.hasError,s=o.isStopped,a=o.observers;return n||s?Ua:(this.currentObservers=null,a.push(t),new Or(function(){r.currentObservers=null,To(a,t)}))},e.prototype._checkFinalizedStatuses=function(t){var r=this,o=r.hasError,n=r.thrownError,s=r.isStopped;o?t.error(n):s&&t.complete()},e.prototype.asObservable=function(){var t=new ss;return t.source=this,t},e.create=function(t,r){return new ls(t,r)},e}(ss),ls=function(i){qe(e,i);function e(t,r){var o=i.call(this)||this;return o.destination=t,o.source=r,o}return e.prototype.next=function(t){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.next)===null||o===void 0||o.call(r,t)},e.prototype.error=function(t){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.error)===null||o===void 0||o.call(r,t)},e.prototype.complete=function(){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||r===void 0||r.call(t)},e.prototype._subscribe=function(t){var r,o;return(o=(r=this.source)===null||r===void 0?void 0:r.subscribe(t))!==null&&o!==void 0?o:Ua},e}(Ga),qa={now:function(){return(qa.delegate||Date).now()},delegate:void 0},Gd=function(i){qe(e,i);function e(t,r,o){t===void 0&&(t=1/0),r===void 0&&(r=1/0),o===void 0&&(o=qa);var n=i.call(this)||this;return n._bufferSize=t,n._windowTime=r,n._timestampProvider=o,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=r===1/0,n._bufferSize=Math.max(1,t),n._windowTime=Math.max(1,r),n}return e.prototype.next=function(t){var r=this,o=r.isStopped,n=r._buffer,s=r._infiniteTimeWindow,a=r._timestampProvider,l=r._windowTime;o||(n.push(t),!s&&n.push(a.now()+l)),this._trimBuffer(),i.prototype.next.call(this,t)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var r=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),r},e.prototype._trimBuffer=function(){var t=this,r=t._bufferSize,o=t._timestampProvider,n=t._buffer,s=t._infiniteTimeWindow,a=(s?1:2)*r;if(r<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}(Ga);const hs=[],ds={},qd=(i,e=0)=>{if(hs.indexOf(i)==-1){const t=new Gd(e);ds[i]=t,hs.push(i)}return ds[i]},zt=[];function Yd(i,e){return{subscribe:Nr(i,e).subscribe}}function Nr(i,e=Q){let t;const r=new Set;function o(a){if(Ha(i,a)&&(i=a,t)){const l=!zt.length;for(const h of r)h[1](),zt.push(h,i);if(l){for(let h=0;h<zt.length;h+=2)zt[h][0](zt[h+1]);zt.length=0}}}function n(a){o(a(i))}function s(a,l=Q){const h=[a,l];return r.add(h),r.size===1&&(t=e(o,n)||Q),a(i),()=>{r.delete(h),r.size===0&&t&&(t(),t=null)}}return{set:o,update:n,subscribe:s}}function ti(i,e,t){const r=!Array.isArray(i),o=r?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const n=e.length<2;return Yd(t,(s,a)=>{let l=!1;const h=[];let d=0,c=Q;const p=()=>{if(d)return;c();const g=e(r?h[0]:h,s,a);n?s(g):c=un(g)?g:Q},u=o.map((g,x)=>Ra(g,P=>{h[x]=P,d&=~(1<<x),l&&p()},()=>{d|=1<<x}));return l=!0,p(),function(){ei(u),c(),l=!1}})}function Xd(i){return i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Kd=function(e){return Jd(e)&&!Zd(e)};function Jd(i){return!!i&&typeof i=="object"}function Zd(i){var e=Object.prototype.toString.call(i);return e==="[object RegExp]"||e==="[object Date]"||tc(i)}var Qd=typeof Symbol=="function"&&Symbol.for,ec=Qd?Symbol.for("react.element"):60103;function tc(i){return i.$$typeof===ec}function ic(i){return Array.isArray(i)?[]:{}}function Ii(i,e){return e.clone!==!1&&e.isMergeableObject(i)?Gt(ic(i),i,e):i}function rc(i,e,t){return i.concat(e).map(function(r){return Ii(r,t)})}function oc(i,e){if(!e.customMerge)return Gt;var t=e.customMerge(i);return typeof t=="function"?t:Gt}function nc(i){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(i).filter(function(e){return Object.propertyIsEnumerable.call(i,e)}):[]}function cs(i){return Object.keys(i).concat(nc(i))}function Ya(i,e){try{return e in i}catch(t){return!1}}function sc(i,e){return Ya(i,e)&&!(Object.hasOwnProperty.call(i,e)&&Object.propertyIsEnumerable.call(i,e))}function ac(i,e,t){var r={};return t.isMergeableObject(i)&&cs(i).forEach(function(o){r[o]=Ii(i[o],t)}),cs(e).forEach(function(o){sc(i,o)||(Ya(i,o)&&t.isMergeableObject(e[o])?r[o]=oc(o,t)(i[o],e[o],t):r[o]=Ii(e[o],t))}),r}function Gt(i,e,t){t=t||{},t.arrayMerge=t.arrayMerge||rc,t.isMergeableObject=t.isMergeableObject||Kd,t.cloneUnlessOtherwiseSpecified=Ii;var r=Array.isArray(e),o=Array.isArray(i),n=r===o;return n?r?t.arrayMerge(i,e,t):ac(i,e,t):Ii(e,t)}Gt.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,o){return Gt(r,o,t)},{})};var lc=Gt,hc=lc;const dc=Xd(hc);function oo(i,e){var t=e&&e.cache?e.cache:gc,r=e&&e.serializer?e.serializer:fc,o=e&&e.strategy?e.strategy:uc;return o(i,{cache:t,serializer:r})}function cc(i){return i==null||typeof i=="number"||typeof i=="boolean"}function Xa(i,e,t,r){var o=cc(r)?r:t(r),n=e.get(o);return typeof n=="undefined"&&(n=i.call(this,r),e.set(o,n)),n}function Ka(i,e,t){var r=Array.prototype.slice.call(arguments,3),o=t(r),n=e.get(o);return typeof n=="undefined"&&(n=i.apply(this,r),e.set(o,n)),n}function mn(i,e,t,r,o){return t.bind(e,i,r,o)}function uc(i,e){var t=i.length===1?Xa:Ka;return mn(i,this,t,e.cache.create(),e.serializer)}function pc(i,e){return mn(i,this,Ka,e.cache.create(),e.serializer)}function mc(i,e){return mn(i,this,Xa,e.cache.create(),e.serializer)}var fc=function(){return JSON.stringify(arguments)},_c=function(){function i(){this.cache=Object.create(null)}return i.prototype.get=function(e){return this.cache[e]},i.prototype.set=function(e,t){this.cache[e]=t},i}(),gc={create:function(){return new _c}},no={variadic:pc,monadic:mc},T;(function(i){i[i.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",i[i.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",i[i.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",i[i.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",i[i.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",i[i.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",i[i.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",i[i.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",i[i.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",i[i.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",i[i.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",i[i.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",i[i.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",i[i.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",i[i.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",i[i.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",i[i.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",i[i.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",i[i.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",i[i.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",i[i.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",i[i.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",i[i.INVALID_TAG=23]="INVALID_TAG",i[i.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",i[i.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",i[i.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(T||(T={}));var Y;(function(i){i[i.literal=0]="literal",i[i.argument=1]="argument",i[i.number=2]="number",i[i.date=3]="date",i[i.time=4]="time",i[i.select=5]="select",i[i.plural=6]="plural",i[i.pound=7]="pound",i[i.tag=8]="tag"})(Y||(Y={}));var qt;(function(i){i[i.number=0]="number",i[i.dateTime=1]="dateTime"})(qt||(qt={}));function us(i){return i.type===Y.literal}function vc(i){return i.type===Y.argument}function Ja(i){return i.type===Y.number}function Za(i){return i.type===Y.date}function Qa(i){return i.type===Y.time}function el(i){return i.type===Y.select}function tl(i){return i.type===Y.plural}function bc(i){return i.type===Y.pound}function il(i){return i.type===Y.tag}function rl(i){return!!(i&&typeof i=="object"&&i.type===qt.number)}function Oo(i){return!!(i&&typeof i=="object"&&i.type===qt.dateTime)}var ol=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,yc=/(?:[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 xc(i){var e={};return i.replace(yc,function(t){var r=t.length;switch(t[0]){case"G":e.era=r===4?"long":r===5?"narrow":"short";break;case"y":e.year=r===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"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][r-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=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-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"][r-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][r-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][r-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][r-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"][r-1];break;case"s":e.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=r<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 wc=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Cc(i){if(i.length===0)throw new Error("Number skeleton cannot be empty");for(var e=i.split(wc).filter(function(p){return p.length>0}),t=[],r=0,o=e;r<o.length;r++){var n=o[r],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 Ec(i){return i.replace(/^(.*?)-/,"")}var ps=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,nl=/^(@+)?(\+|#+)?[rs]?$/g,Sc=/(\*)(0+)|(#+)(0+)|(0+)/g,sl=/^(0+)$/;function ms(i){var e={};return i[i.length-1]==="r"?e.roundingPriority="morePrecision":i[i.length-1]==="s"&&(e.roundingPriority="lessPrecision"),i.replace(nl,function(t,r,o){return typeof o!="string"?(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length):o==="+"?e.minimumSignificantDigits=r.length:r[0]==="#"?e.maximumSignificantDigits=r.length:(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length+(typeof o=="string"?o.length:0)),""}),e}function al(i){switch(i){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 Ac(i){var e;if(i[0]==="E"&&i[1]==="E"?(e={notation:"engineering"},i=i.slice(2)):i[0]==="E"&&(e={notation:"scientific"},i=i.slice(1)),e){var t=i.slice(0,2);if(t==="+!"?(e.signDisplay="always",i=i.slice(2)):t==="+?"&&(e.signDisplay="exceptZero",i=i.slice(2)),!sl.test(i))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=i.length}return e}function fs(i){var e={},t=al(i);return t||e}function Pc(i){for(var e={},t=0,r=i;t<r.length;t++){var o=r[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=Ec(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=M(M(M({},e),{notation:"scientific"}),o.options.reduce(function(l,h){return M(M({},l),fs(h))},{}));continue;case"engineering":e=M(M(M({},e),{notation:"engineering"}),o.options.reduce(function(l,h){return M(M({},l),fs(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(Sc,function(l,h,d,c,p,u){if(h)e.minimumIntegerDigits=d.length;else{if(c&&p)throw new Error("We currently do not support maximum integer digits");if(u)throw new Error("We currently do not support exact integer digits")}return""});continue}if(sl.test(o.stem)){e.minimumIntegerDigits=o.stem.length;continue}if(ps.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(ps,function(l,h,d,c,p,u){return d==="*"?e.minimumFractionDigits=h.length:c&&c[0]==="#"?e.maximumFractionDigits=c.length:p&&u?(e.minimumFractionDigits=p.length,e.maximumFractionDigits=p.length+u.length):(e.minimumFractionDigits=h.length,e.maximumFractionDigits=h.length),""});var n=o.options[0];n==="w"?e=M(M({},e),{trailingZeroDisplay:"stripIfInteger"}):n&&(e=M(M({},e),ms(n)));continue}if(nl.test(o.stem)){e=M(M({},e),ms(o.stem));continue}var s=al(o.stem);s&&(e=M(M({},e),s));var a=Ac(o.stem);a&&(e=M(M({},e),a))}return e}var er={"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 Ic(i,e){for(var t="",r=0;r<i.length;r++){var o=i.charAt(r);if(o==="j"){for(var n=0;r+1<i.length&&i.charAt(r+1)===o;)n++,r++;var s=1+(n&1),a=n<2?1:3+(n>>1),l="a",h=kc(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 kc(i){var e=i.hourCycle;if(e===void 0&&i.hourCycles&&i.hourCycles.length&&(e=i.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=i.language,r;t!=="root"&&(r=i.maximize().region);var o=er[r||""]||er[t||""]||er["".concat(t,"-001")]||er["001"];return o[0]}var so,Tc=new RegExp("^".concat(ol.source,"*")),Dc=new RegExp("".concat(ol.source,"*$"));function D(i,e){return{start:i,end:e}}var Oc=!!String.prototype.startsWith&&"_a".startsWith("a",1),Nc=!!String.fromCodePoint,Bc=!!Object.fromEntries,Mc=!!String.prototype.codePointAt,zc=!!String.prototype.trimStart,Lc=!!String.prototype.trimEnd,Fc=!!Number.isSafeInteger,Hc=Fc?Number.isSafeInteger:function(i){return typeof i=="number"&&isFinite(i)&&Math.floor(i)===i&&Math.abs(i)<=9007199254740991},No=!0;try{var Rc=hl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");No=((so=Rc.exec("a"))===null||so===void 0?void 0:so[0])==="a"}catch(i){No=!1}var _s=Oc?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Bo=Nc?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r="",o=e.length,n=0,s;o>n;){if(s=e[n++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},gs=Bc?Object.fromEntries:function(e){for(var t={},r=0,o=e;r<o.length;r++){var n=o[r],s=n[0],a=n[1];t[s]=a}return t},ll=Mc?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var o=e.charCodeAt(t),n;return o<55296||o>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?o:(o-55296<<10)+(n-56320)+65536}},Vc=zc?function(e){return e.trimStart()}:function(e){return e.replace(Tc,"")},$c=Lc?function(e){return e.trimEnd()}:function(e){return e.replace(Dc,"")};function hl(i,e){return new RegExp(i,e)}var Mo;if(No){var vs=hl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Mo=function(e,t){var r;vs.lastIndex=t;var o=vs.exec(e);return(r=o[1])!==null&&r!==void 0?r:""}}else Mo=function(e,t){for(var r=[];;){var o=ll(e,t);if(o===void 0||dl(o)||Gc(o))break;r.push(o),t+=o>=65536?2:1}return Bo.apply(void 0,r)};var Uc=function(){function i(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 i.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},i.prototype.parseMessage=function(e,t,r){for(var o=[];!this.isEOF();){var n=this.char();if(n===123){var s=this.parseArgument(e,r);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:Y.pound,location:D(a,this.clonePosition())})}else if(n===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(T.UNMATCHED_CLOSING_TAG,D(this.clonePosition(),this.clonePosition()))}else if(n===60&&!this.ignoreTag&&zo(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}},i.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Y.literal,value:"<".concat(o,"/>"),location:D(r,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()||!zo(this.char()))return this.error(T.INVALID_TAG,D(a,this.clonePosition()));var l=this.clonePosition(),h=this.parseTagName();return o!==h?this.error(T.UNMATCHED_CLOSING_TAG,D(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Y.tag,value:o,children:s,location:D(r,this.clonePosition())},err:null}:this.error(T.INVALID_TAG,D(a,this.clonePosition())))}else return this.error(T.UNCLOSED_TAG,D(r,this.clonePosition()))}else return this.error(T.INVALID_TAG,D(r,this.clonePosition()))},i.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&jc(this.char());)this.bump();return this.message.slice(e,this.offset())},i.prototype.parseLiteral=function(e,t){for(var r=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=D(r,this.clonePosition());return{val:{type:Y.literal,value:o,location:l},err:null}},i.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Wc(this.peek()||0))?(this.bump(),"<"):null},i.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 r=this.char();if(r===39)if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}else t.push(r);this.bump()}return Bo.apply(void 0,t)},i.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(t==="plural"||t==="selectordinal")||r===125&&e>0?null:(this.bump(),Bo(r))},i.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,D(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(T.EMPTY_ARGUMENT,D(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(T.MALFORMED_ARGUMENT,D(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,D(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Y.argument,value:o,location:D(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,D(r,this.clonePosition())):this.parseArgumentOptions(e,t,o,r);default:return this.error(T.MALFORMED_ARGUMENT,D(r,this.clonePosition()))}},i.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Mo(this.message,t),o=t+r.length;this.bumpTo(o);var n=this.clonePosition(),s=D(e,n);return{value:r,location:s}},i.prototype.parseArgumentOptions=function(e,t,r,o){var n,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(T.EXPECT_ARGUMENT_TYPE,D(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 p=$c(c.val);if(p.length===0)return this.error(T.EXPECT_ARGUMENT_STYLE,D(this.clonePosition(),this.clonePosition()));var u=D(d,this.clonePosition());h={style:p,styleLocation:u}}var g=this.tryParseArgumentClose(o);if(g.err)return g;var x=D(o,this.clonePosition());if(h&&_s(h==null?void 0:h.style,"::",0)){var P=Vc(h.style.slice(2));if(a==="number"){var c=this.parseNumberSkeletonFromString(P,h.styleLocation);return c.err?c:{val:{type:Y.number,value:r,location:x,style:c.val},err:null}}else{if(P.length===0)return this.error(T.EXPECT_DATE_TIME_SKELETON,x);var A=P;this.locale&&(A=Ic(P,this.locale));var p={type:qt.dateTime,pattern:A,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?xc(A):{}},L=a==="date"?Y.date:Y.time;return{val:{type:L,value:r,location:x,style:p},err:null}}}return{val:{type:a==="number"?Y.number:a==="date"?Y.date:Y.time,value:r,location:x,style:(n=h==null?void 0:h.style)!==null&&n!==void 0?n:null},err:null}}case"plural":case"selectordinal":case"select":{var k=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(T.EXPECT_SELECT_ARGUMENT_OPTIONS,D(k,M({},k)));this.bumpSpace();var $=this.parseIdentifierIfPossible(),W=0;if(a!=="select"&&$.value==="offset"){if(!this.bumpIf(":"))return this.error(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,D(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,T.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),$=this.parseIdentifierIfPossible(),W=c.val}var se=this.tryParsePluralOrSelectOptions(e,a,t,$);if(se.err)return se;var g=this.tryParseArgumentClose(o);if(g.err)return g;var ee=D(o,this.clonePosition());return a==="select"?{val:{type:Y.select,value:r,options:gs(se.val),location:ee},err:null}:{val:{type:Y.plural,value:r,options:gs(se.val),offset:W,pluralType:a==="plural"?"cardinal":"ordinal",location:ee},err:null}}default:return this.error(T.INVALID_ARGUMENT_TYPE,D(s,l))}},i.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,D(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},i.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(T.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,D(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}},i.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=Cc(e)}catch(o){return this.error(T.INVALID_NUMBER_SKELETON,t)}return{val:{type:qt.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Pc(r):{}},err:null}},i.prototype.tryParsePluralOrSelectOptions=function(e,t,r,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 p=this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_SELECTOR,T.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;d=D(c,this.clonePosition()),h=this.message.slice(c.offset,this.offset())}else break}if(l.has(h))return this.error(t==="select"?T.DUPLICATE_SELECT_ARGUMENT_SELECTOR:T.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);h==="other"&&(s=!0),this.bumpSpace();var u=this.clonePosition();if(!this.bumpIf("{"))return this.error(t==="select"?T.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:T.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,D(this.clonePosition(),this.clonePosition()));var g=this.parseMessage(e+1,t,r);if(g.err)return g;var x=this.tryParseArgumentClose(u);if(x.err)return x;a.push([h,{value:g.val,location:D(u,this.clonePosition())}]),l.add(h),this.bumpSpace(),n=this.parseIdentifierIfPossible(),h=n.value,d=n.location}return a.length===0?this.error(t==="select"?T.EXPECT_SELECT_ARGUMENT_SELECTOR:T.EXPECT_PLURAL_ARGUMENT_SELECTOR,D(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(T.MISSING_OTHER_CLAUSE,D(this.clonePosition(),this.clonePosition())):{val:a,err:null}},i.prototype.tryParseDecimalInteger=function(e,t){var r=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-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=D(o,this.clonePosition());return n?(s*=r,Hc(s)?{val:s,err:null}:this.error(t,l)):this.error(e,l)},i.prototype.offset=function(){return this.position.offset},i.prototype.isEOF=function(){return this.offset()===this.message.length},i.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},i.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=ll(this.message,e);if(t===void 0)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},i.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},i.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)}},i.prototype.bumpIf=function(e){if(_s(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},i.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},i.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}},i.prototype.bumpSpace=function(){for(;!this.isEOF()&&dl(this.char());)this.bump()},i.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return r!=null?r:null},i}();function zo(i){return i>=97&&i<=122||i>=65&&i<=90}function Wc(i){return zo(i)||i===47}function jc(i){return i===45||i===46||i>=48&&i<=57||i===95||i>=97&&i<=122||i>=65&&i<=90||i==183||i>=192&&i<=214||i>=216&&i<=246||i>=248&&i<=893||i>=895&&i<=8191||i>=8204&&i<=8205||i>=8255&&i<=8256||i>=8304&&i<=8591||i>=11264&&i<=12271||i>=12289&&i<=55295||i>=63744&&i<=64975||i>=65008&&i<=65533||i>=65536&&i<=983039}function dl(i){return i>=9&&i<=13||i===32||i===133||i>=8206&&i<=8207||i===8232||i===8233}function Gc(i){return i>=33&&i<=35||i===36||i>=37&&i<=39||i===40||i===41||i===42||i===43||i===44||i===45||i>=46&&i<=47||i>=58&&i<=59||i>=60&&i<=62||i>=63&&i<=64||i===91||i===92||i===93||i===94||i===96||i===123||i===124||i===125||i===126||i===161||i>=162&&i<=165||i===166||i===167||i===169||i===171||i===172||i===174||i===176||i===177||i===182||i===187||i===191||i===215||i===247||i>=8208&&i<=8213||i>=8214&&i<=8215||i===8216||i===8217||i===8218||i>=8219&&i<=8220||i===8221||i===8222||i===8223||i>=8224&&i<=8231||i>=8240&&i<=8248||i===8249||i===8250||i>=8251&&i<=8254||i>=8257&&i<=8259||i===8260||i===8261||i===8262||i>=8263&&i<=8273||i===8274||i===8275||i>=8277&&i<=8286||i>=8592&&i<=8596||i>=8597&&i<=8601||i>=8602&&i<=8603||i>=8604&&i<=8607||i===8608||i>=8609&&i<=8610||i===8611||i>=8612&&i<=8613||i===8614||i>=8615&&i<=8621||i===8622||i>=8623&&i<=8653||i>=8654&&i<=8655||i>=8656&&i<=8657||i===8658||i===8659||i===8660||i>=8661&&i<=8691||i>=8692&&i<=8959||i>=8960&&i<=8967||i===8968||i===8969||i===8970||i===8971||i>=8972&&i<=8991||i>=8992&&i<=8993||i>=8994&&i<=9e3||i===9001||i===9002||i>=9003&&i<=9083||i===9084||i>=9085&&i<=9114||i>=9115&&i<=9139||i>=9140&&i<=9179||i>=9180&&i<=9185||i>=9186&&i<=9254||i>=9255&&i<=9279||i>=9280&&i<=9290||i>=9291&&i<=9311||i>=9472&&i<=9654||i===9655||i>=9656&&i<=9664||i===9665||i>=9666&&i<=9719||i>=9720&&i<=9727||i>=9728&&i<=9838||i===9839||i>=9840&&i<=10087||i===10088||i===10089||i===10090||i===10091||i===10092||i===10093||i===10094||i===10095||i===10096||i===10097||i===10098||i===10099||i===10100||i===10101||i>=10132&&i<=10175||i>=10176&&i<=10180||i===10181||i===10182||i>=10183&&i<=10213||i===10214||i===10215||i===10216||i===10217||i===10218||i===10219||i===10220||i===10221||i===10222||i===10223||i>=10224&&i<=10239||i>=10240&&i<=10495||i>=10496&&i<=10626||i===10627||i===10628||i===10629||i===10630||i===10631||i===10632||i===10633||i===10634||i===10635||i===10636||i===10637||i===10638||i===10639||i===10640||i===10641||i===10642||i===10643||i===10644||i===10645||i===10646||i===10647||i===10648||i>=10649&&i<=10711||i===10712||i===10713||i===10714||i===10715||i>=10716&&i<=10747||i===10748||i===10749||i>=10750&&i<=11007||i>=11008&&i<=11055||i>=11056&&i<=11076||i>=11077&&i<=11078||i>=11079&&i<=11084||i>=11085&&i<=11123||i>=11124&&i<=11125||i>=11126&&i<=11157||i===11158||i>=11159&&i<=11263||i>=11776&&i<=11777||i===11778||i===11779||i===11780||i===11781||i>=11782&&i<=11784||i===11785||i===11786||i===11787||i===11788||i===11789||i>=11790&&i<=11798||i===11799||i>=11800&&i<=11801||i===11802||i===11803||i===11804||i===11805||i>=11806&&i<=11807||i===11808||i===11809||i===11810||i===11811||i===11812||i===11813||i===11814||i===11815||i===11816||i===11817||i>=11818&&i<=11822||i===11823||i>=11824&&i<=11833||i>=11834&&i<=11835||i>=11836&&i<=11839||i===11840||i===11841||i===11842||i>=11843&&i<=11855||i>=11856&&i<=11857||i===11858||i>=11859&&i<=11903||i>=12289&&i<=12291||i===12296||i===12297||i===12298||i===12299||i===12300||i===12301||i===12302||i===12303||i===12304||i===12305||i>=12306&&i<=12307||i===12308||i===12309||i===12310||i===12311||i===12312||i===12313||i===12314||i===12315||i===12316||i===12317||i>=12318&&i<=12319||i===12320||i===12336||i===64830||i===64831||i>=65093&&i<=65094}function Lo(i){i.forEach(function(e){if(delete e.location,el(e)||tl(e))for(var t in e.options)delete e.options[t].location,Lo(e.options[t].value);else Ja(e)&&rl(e.style)||(Za(e)||Qa(e))&&Oo(e.style)?delete e.style.location:il(e)&&Lo(e.children)})}function qc(i,e){e===void 0&&(e={}),e=M({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var t=new Uc(i,e).parse();if(t.err){var r=SyntaxError(T[t.err.kind]);throw r.location=t.err.location,r.originalMessage=t.err.message,r}return e!=null&&e.captureLocation||Lo(t.val),t.val}var Yt;(function(i){i.MISSING_VALUE="MISSING_VALUE",i.INVALID_VALUE="INVALID_VALUE",i.MISSING_INTL_API="MISSING_INTL_API"})(Yt||(Yt={}));var Br=function(i){qe(e,i);function e(t,r,o){var n=i.call(this,t)||this;return n.code=r,n.originalMessage=o,n}return e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),bs=function(i){qe(e,i);function e(t,r,o,n){return i.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(o).join('", "'),'"'),Yt.INVALID_VALUE,n)||this}return e}(Br),Yc=function(i){qe(e,i);function e(t,r,o){return i.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),Yt.INVALID_VALUE,o)||this}return e}(Br),Xc=function(i){qe(e,i);function e(t,r){return i.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),Yt.MISSING_VALUE,r)||this}return e}(Br),he;(function(i){i[i.literal=0]="literal",i[i.object=1]="object"})(he||(he={}));function Kc(i){return i.length<2?i:i.reduce(function(e,t){var r=e[e.length-1];return!r||r.type!==he.literal||t.type!==he.literal?e.push(t):r.value+=t.value,e},[])}function Jc(i){return typeof i=="function"}function cr(i,e,t,r,o,n,s){if(i.length===1&&us(i[0]))return[{type:he.literal,value:i[0].value}];for(var a=[],l=0,h=i;l<h.length;l++){var d=h[l];if(us(d)){a.push({type:he.literal,value:d.value});continue}if(bc(d)){typeof n=="number"&&a.push({type:he.literal,value:t.getNumberFormat(e).format(n)});continue}var c=d.value;if(!(o&&c in o))throw new Xc(c,s);var p=o[c];if(vc(d)){(!p||typeof p=="string"||typeof p=="number")&&(p=typeof p=="string"||typeof p=="number"?String(p):""),a.push({type:typeof p=="string"?he.literal:he.object,value:p});continue}if(Za(d)){var u=typeof d.style=="string"?r.date[d.style]:Oo(d.style)?d.style.parsedOptions:void 0;a.push({type:he.literal,value:t.getDateTimeFormat(e,u).format(p)});continue}if(Qa(d)){var u=typeof d.style=="string"?r.time[d.style]:Oo(d.style)?d.style.parsedOptions:r.time.medium;a.push({type:he.literal,value:t.getDateTimeFormat(e,u).format(p)});continue}if(Ja(d)){var u=typeof d.style=="string"?r.number[d.style]:rl(d.style)?d.style.parsedOptions:void 0;u&&u.scale&&(p=p*(u.scale||1)),a.push({type:he.literal,value:t.getNumberFormat(e,u).format(p)});continue}if(il(d)){var g=d.children,x=d.value,P=o[x];if(!Jc(P))throw new Yc(x,"function",s);var A=cr(g,e,t,r,o,n),L=P(A.map(function(W){return W.value}));Array.isArray(L)||(L=[L]),a.push.apply(a,L.map(function(W){return{type:typeof W=="string"?he.literal:he.object,value:W}}))}if(el(d)){var k=d.options[p]||d.options.other;if(!k)throw new bs(d.value,p,Object.keys(d.options),s);a.push.apply(a,cr(k.value,e,t,r,o));continue}if(tl(d)){var k=d.options["=".concat(p)];if(!k){if(!Intl.PluralRules)throw new Br(`Intl.PluralRules is not available in this environment.
16
+ `):"",this.name="UnsubscriptionError",this.errors=t}});function Mo(i,e){if(i){var t=i.indexOf(e);0<=t&&i.splice(t,1)}}var Br=function(){function i(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return i.prototype.unsubscribe=function(){var e,t,r,o,s;if(!this.closed){this.closed=!0;var n=this._parentage;if(n)if(this._parentage=null,Array.isArray(n))try{for(var a=Oo(n),l=a.next();!l.done;l=a.next()){var h=l.value;h.remove(this)}}catch(x){e={error:x}}finally{try{l&&!l.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else n.remove(this);var d=this.initialTeardown;if(Ge(d))try{d()}catch(x){s=x instanceof no?x.errors:[x]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var p=Oo(c),u=p.next();!u.done;u=p.next()){var v=u.value;try{hn(v)}catch(x){s=s!=null?s:[],x instanceof no?s=Bo(Bo([],No(s)),No(x.errors)):s.push(x)}}}catch(x){r={error:x}}finally{try{u&&!u.done&&(o=p.return)&&o.call(p)}finally{if(r)throw r.error}}}if(s)throw new no(s)}},i.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)hn(e);else{if(e instanceof i){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}},i.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},i.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},i.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Mo(t,e)},i.prototype.remove=function(e){var t=this._finalizers;t&&Mo(t,e),e instanceof i&&e._removeParent(this)},i.EMPTY=function(){var e=new i;return e.closed=!0,e}(),i}(),Ya=Br.EMPTY;function Xa(i){return i instanceof Br||i&&"closed"in i&&Ge(i.remove)&&Ge(i.add)&&Ge(i.unsubscribe)}function hn(i){Ge(i)?i():i.unsubscribe()}var Fd={Promise:void 0},Hd={setTimeout:function(i,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];return setTimeout.apply(void 0,Bo([i,e],No(t)))},clearTimeout:function(i){return clearTimeout(i)},delegate:void 0};function Rd(i){Hd.setTimeout(function(){throw i})}function dn(){}function cr(i){i()}var Ka=function(i){Vi(e,i);function e(t){var r=i.call(this)||this;return r.isStopped=!1,t?(r.destination=t,Xa(t)&&t.add(r)):r.destination=Wd,r}return e.create=function(t,r,o){return new zo(t,r,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,i.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}(Br),Vd=function(){function i(e){this.partialObserver=e}return i.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(r){er(r)}},i.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(r){er(r)}else er(e)},i.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){er(t)}},i}(),zo=function(i){Vi(e,i);function e(t,r,o){var s=i.call(this)||this,n;return Ge(t)||!t?n={next:t!=null?t:void 0,error:r!=null?r:void 0,complete:o!=null?o:void 0}:n=t,s.destination=new Vd(n),s}return e}(Ka);function er(i){Rd(i)}function $d(i){throw i}var Wd={closed:!0,next:dn,error:$d,complete:dn},Ud=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function jd(i){return i}function Gd(i){return i.length===0?jd:i.length===1?i[0]:function(t){return i.reduce(function(r,o){return o(r)},t)}}var cn=function(){function i(e){e&&(this._subscribe=e)}return i.prototype.lift=function(e){var t=new i;return t.source=this,t.operator=e,t},i.prototype.subscribe=function(e,t,r){var o=this,s=Yd(e)?e:new zo(e,t,r);return cr(function(){var n=o,a=n.operator,l=n.source;s.add(a?a.call(s,l):l?o._subscribe(s):o._trySubscribe(s))}),s},i.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},i.prototype.forEach=function(e,t){var r=this;return t=un(t),new t(function(o,s){var n=new zo({next:function(a){try{e(a)}catch(l){s(l),n.unsubscribe()}},error:s,complete:o});r.subscribe(n)})},i.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},i.prototype[Ud]=function(){return this},i.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Gd(e)(this)},i.prototype.toPromise=function(e){var t=this;return e=un(e),new e(function(r,o){var s;t.subscribe(function(n){return s=n},function(n){return o(n)},function(){return r(s)})})},i.create=function(e){return new i(e)},i}();function un(i){var e;return(e=i!=null?i:Fd.Promise)!==null&&e!==void 0?e:Promise}function qd(i){return i&&Ge(i.next)&&Ge(i.error)&&Ge(i.complete)}function Yd(i){return i&&i instanceof Ka||qd(i)&&Xa(i)}var Xd=qa(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ja=function(i){Vi(e,i);function e(){var t=i.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 r=new pn(this,this);return r.operator=t,r},e.prototype._throwIfClosed=function(){if(this.closed)throw new Xd},e.prototype.next=function(t){var r=this;cr(function(){var o,s;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var n=Oo(r.currentObservers),a=n.next();!a.done;a=n.next()){var l=a.value;l.next(t)}}catch(h){o={error:h}}finally{try{a&&!a.done&&(s=n.return)&&s.call(n)}finally{if(o)throw o.error}}}})},e.prototype.error=function(t){var r=this;cr(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var o=r.observers;o.length;)o.shift().error(t)}})},e.prototype.complete=function(){var t=this;cr(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var r=t.observers;r.length;)r.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(),i.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 r=this,o=this,s=o.hasError,n=o.isStopped,a=o.observers;return s||n?Ya:(this.currentObservers=null,a.push(t),new Br(function(){r.currentObservers=null,Mo(a,t)}))},e.prototype._checkFinalizedStatuses=function(t){var r=this,o=r.hasError,s=r.thrownError,n=r.isStopped;o?t.error(s):n&&t.complete()},e.prototype.asObservable=function(){var t=new cn;return t.source=this,t},e.create=function(t,r){return new pn(t,r)},e}(cn),pn=function(i){Vi(e,i);function e(t,r){var o=i.call(this)||this;return o.destination=t,o.source=r,o}return e.prototype.next=function(t){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.next)===null||o===void 0||o.call(r,t)},e.prototype.error=function(t){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.error)===null||o===void 0||o.call(r,t)},e.prototype.complete=function(){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||r===void 0||r.call(t)},e.prototype._subscribe=function(t){var r,o;return(o=(r=this.source)===null||r===void 0?void 0:r.subscribe(t))!==null&&o!==void 0?o:Ya},e}(Ja),Za={now:function(){return(Za.delegate||Date).now()},delegate:void 0},Kd=function(i){Vi(e,i);function e(t,r,o){t===void 0&&(t=1/0),r===void 0&&(r=1/0),o===void 0&&(o=Za);var s=i.call(this)||this;return s._bufferSize=t,s._windowTime=r,s._timestampProvider=o,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=r===1/0,s._bufferSize=Math.max(1,t),s._windowTime=Math.max(1,r),s}return e.prototype.next=function(t){var r=this,o=r.isStopped,s=r._buffer,n=r._infiniteTimeWindow,a=r._timestampProvider,l=r._windowTime;o||(s.push(t),!n&&s.push(a.now()+l)),this._trimBuffer(),i.prototype.next.call(this,t)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(t),o=this,s=o._infiniteTimeWindow,n=o._buffer,a=n.slice(),l=0;l<a.length&&!t.closed;l+=s?1:2)t.next(a[l]);return this._checkFinalizedStatuses(t),r},e.prototype._trimBuffer=function(){var t=this,r=t._bufferSize,o=t._timestampProvider,s=t._buffer,n=t._infiniteTimeWindow,a=(n?1:2)*r;if(r<1/0&&a<s.length&&s.splice(0,s.length-a),!n){for(var l=o.now(),h=0,d=1;d<s.length&&s[d]<=l;d+=2)h=d;h&&s.splice(0,h+1)}},e}(Ja);const mn=[],_n={},Jd=(i,e=0)=>{if(mn.indexOf(i)==-1){const t=new Kd(e);_n[i]=t,mn.push(i)}return _n[i]},zt=[];function Zd(i,e){return{subscribe:Mr(i,e).subscribe}}function Mr(i,e=Q){let t;const r=new Set;function o(a){if(Ua(i,a)&&(i=a,t)){const l=!zt.length;for(const h of r)h[1](),zt.push(h,i);if(l){for(let h=0;h<zt.length;h+=2)zt[h][0](zt[h+1]);zt.length=0}}}function s(a){o(a(i))}function n(a,l=Q){const h=[a,l];return r.add(h),r.size===1&&(t=e(o,s)||Q),a(i),()=>{r.delete(h),r.size===0&&t&&(t(),t=null)}}return{set:o,update:s,subscribe:n}}function ei(i,e,t){const r=!Array.isArray(i),o=r?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=e.length<2;return Zd(t,(n,a)=>{let l=!1;const h=[];let d=0,c=Q;const p=()=>{if(d)return;c();const v=e(r?h[0]:h,n,a);s?n(v):c=vs(v)?v:Q},u=o.map((v,x)=>ja(v,P=>{h[x]=P,d&=~(1<<x),l&&p()},()=>{d|=1<<x}));return l=!0,p(),function(){Qt(u),c(),l=!1}})}function Qd(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var ec=function(e){return tc(e)&&!ic(e)};function tc(i){return!!i&&typeof i=="object"}function ic(i){var e=Object.prototype.toString.call(i);return e==="[object RegExp]"||e==="[object Date]"||sc(i)}var rc=typeof Symbol=="function"&&Symbol.for,oc=rc?Symbol.for("react.element"):60103;function sc(i){return i.$$typeof===oc}function nc(i){return Array.isArray(i)?[]:{}}function Pi(i,e){return e.clone!==!1&&e.isMergeableObject(i)?jt(nc(i),i,e):i}function ac(i,e,t){return i.concat(e).map(function(r){return Pi(r,t)})}function lc(i,e){if(!e.customMerge)return jt;var t=e.customMerge(i);return typeof t=="function"?t:jt}function hc(i){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(i).filter(function(e){return Object.propertyIsEnumerable.call(i,e)}):[]}function fn(i){return Object.keys(i).concat(hc(i))}function Qa(i,e){try{return e in i}catch(t){return!1}}function dc(i,e){return Qa(i,e)&&!(Object.hasOwnProperty.call(i,e)&&Object.propertyIsEnumerable.call(i,e))}function cc(i,e,t){var r={};return t.isMergeableObject(i)&&fn(i).forEach(function(o){r[o]=Pi(i[o],t)}),fn(e).forEach(function(o){dc(i,o)||(Qa(i,o)&&t.isMergeableObject(e[o])?r[o]=lc(o,t)(i[o],e[o],t):r[o]=Pi(e[o],t))}),r}function jt(i,e,t){t=t||{},t.arrayMerge=t.arrayMerge||ac,t.isMergeableObject=t.isMergeableObject||ec,t.cloneUnlessOtherwiseSpecified=Pi;var r=Array.isArray(e),o=Array.isArray(i),s=r===o;return s?r?t.arrayMerge(i,e,t):cc(i,e,t):Pi(e,t)}jt.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,o){return jt(r,o,t)},{})};var uc=jt,pc=uc;const mc=Qd(pc);var Lo=function(i,e){return Lo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},Lo(i,e)};function zr(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Lo(i,e);function t(){this.constructor=i}i.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Fe=function(){return Fe=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},Fe.apply(this,arguments)};function _c(i,e){var t={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(t[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(i);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(i,r[o])&&(t[r[o]]=i[r[o]]);return t}function ao(i,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,s;r<o;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return i.concat(s||Array.prototype.slice.call(e))}function lo(i,e){var t=e&&e.cache?e.cache:wc,r=e&&e.serializer?e.serializer:yc,o=e&&e.strategy?e.strategy:gc;return o(i,{cache:t,serializer:r})}function fc(i){return i==null||typeof i=="number"||typeof i=="boolean"}function vc(i,e,t,r){var o=fc(r)?r:t(r),s=e.get(o);return typeof s=="undefined"&&(s=i.call(this,r),e.set(o,s)),s}function el(i,e,t){var r=Array.prototype.slice.call(arguments,3),o=t(r),s=e.get(o);return typeof s=="undefined"&&(s=i.apply(this,r),e.set(o,s)),s}function tl(i,e,t,r,o){return t.bind(e,i,r,o)}function gc(i,e){var t=i.length===1?vc:el;return tl(i,this,t,e.cache.create(),e.serializer)}function bc(i,e){return tl(i,this,el,e.cache.create(),e.serializer)}var yc=function(){return JSON.stringify(arguments)},xc=function(){function i(){this.cache=Object.create(null)}return i.prototype.get=function(e){return this.cache[e]},i.prototype.set=function(e,t){this.cache[e]=t},i}(),wc={create:function(){return new xc}},ho={variadic:bc},gr=function(){return gr=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},gr.apply(this,arguments)};var T;(function(i){i[i.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",i[i.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",i[i.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",i[i.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",i[i.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",i[i.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",i[i.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",i[i.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",i[i.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",i[i.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",i[i.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",i[i.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",i[i.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",i[i.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",i[i.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",i[i.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",i[i.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",i[i.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",i[i.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",i[i.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",i[i.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",i[i.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",i[i.INVALID_TAG=23]="INVALID_TAG",i[i.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",i[i.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",i[i.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(T||(T={}));var q;(function(i){i[i.literal=0]="literal",i[i.argument=1]="argument",i[i.number=2]="number",i[i.date=3]="date",i[i.time=4]="time",i[i.select=5]="select",i[i.plural=6]="plural",i[i.pound=7]="pound",i[i.tag=8]="tag"})(q||(q={}));var Gt;(function(i){i[i.number=0]="number",i[i.dateTime=1]="dateTime"})(Gt||(Gt={}));function vn(i){return i.type===q.literal}function Cc(i){return i.type===q.argument}function il(i){return i.type===q.number}function rl(i){return i.type===q.date}function ol(i){return i.type===q.time}function sl(i){return i.type===q.select}function nl(i){return i.type===q.plural}function Ec(i){return i.type===q.pound}function al(i){return i.type===q.tag}function ll(i){return!!(i&&typeof i=="object"&&i.type===Gt.number)}function Fo(i){return!!(i&&typeof i=="object"&&i.type===Gt.dateTime)}var hl=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Sc=/(?:[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 Ac(i){var e={};return i.replace(Sc,function(t){var r=t.length;switch(t[0]){case"G":e.era=r===4?"long":r===5?"narrow":"short";break;case"y":e.year=r===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"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][r-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=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-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"][r-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][r-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][r-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][r-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"][r-1];break;case"s":e.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=r<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 X=function(){return X=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},X.apply(this,arguments)};var Pc=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Ic(i){if(i.length===0)throw new Error("Number skeleton cannot be empty");for(var e=i.split(Pc).filter(function(p){return p.length>0}),t=[],r=0,o=e;r<o.length;r++){var s=o[r],n=s.split("/");if(n.length===0)throw new Error("Invalid number skeleton");for(var a=n[0],l=n.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 kc(i){return i.replace(/^(.*?)-/,"")}var gn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,dl=/^(@+)?(\+|#+)?[rs]?$/g,Tc=/(\*)(0+)|(#+)(0+)|(0+)/g,cl=/^(0+)$/;function bn(i){var e={};return i[i.length-1]==="r"?e.roundingPriority="morePrecision":i[i.length-1]==="s"&&(e.roundingPriority="lessPrecision"),i.replace(dl,function(t,r,o){return typeof o!="string"?(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length):o==="+"?e.minimumSignificantDigits=r.length:r[0]==="#"?e.maximumSignificantDigits=r.length:(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length+(typeof o=="string"?o.length:0)),""}),e}function ul(i){switch(i){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 Dc(i){var e;if(i[0]==="E"&&i[1]==="E"?(e={notation:"engineering"},i=i.slice(2)):i[0]==="E"&&(e={notation:"scientific"},i=i.slice(1)),e){var t=i.slice(0,2);if(t==="+!"?(e.signDisplay="always",i=i.slice(2)):t==="+?"&&(e.signDisplay="exceptZero",i=i.slice(2)),!cl.test(i))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=i.length}return e}function yn(i){var e={},t=ul(i);return t||e}function Oc(i){for(var e={},t=0,r=i;t<r.length;t++){var o=r[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=kc(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=X(X(X({},e),{notation:"scientific"}),o.options.reduce(function(l,h){return X(X({},l),yn(h))},{}));continue;case"engineering":e=X(X(X({},e),{notation:"engineering"}),o.options.reduce(function(l,h){return X(X({},l),yn(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(Tc,function(l,h,d,c,p,u){if(h)e.minimumIntegerDigits=d.length;else{if(c&&p)throw new Error("We currently do not support maximum integer digits");if(u)throw new Error("We currently do not support exact integer digits")}return""});continue}if(cl.test(o.stem)){e.minimumIntegerDigits=o.stem.length;continue}if(gn.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(gn,function(l,h,d,c,p,u){return d==="*"?e.minimumFractionDigits=h.length:c&&c[0]==="#"?e.maximumFractionDigits=c.length:p&&u?(e.minimumFractionDigits=p.length,e.maximumFractionDigits=p.length+u.length):(e.minimumFractionDigits=h.length,e.maximumFractionDigits=h.length),""});var s=o.options[0];s==="w"?e=X(X({},e),{trailingZeroDisplay:"stripIfInteger"}):s&&(e=X(X({},e),bn(s)));continue}if(dl.test(o.stem)){e=X(X({},e),bn(o.stem));continue}var n=ul(o.stem);n&&(e=X(X({},e),n));var a=Dc(o.stem);a&&(e=X(X({},e),a))}return e}var tr={"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 Nc(i,e){for(var t="",r=0;r<i.length;r++){var o=i.charAt(r);if(o==="j"){for(var s=0;r+1<i.length&&i.charAt(r+1)===o;)s++,r++;var n=1+(s&1),a=s<2?1:3+(s>>1),l="a",h=Bc(e);for((h=="H"||h=="k")&&(a=0);a-- >0;)t+=l;for(;n-- >0;)t=h+t}else o==="J"?t+="H":t+=o}return t}function Bc(i){var e=i.hourCycle;if(e===void 0&&i.hourCycles&&i.hourCycles.length&&(e=i.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=i.language,r;t!=="root"&&(r=i.maximize().region);var o=tr[r||""]||tr[t||""]||tr["".concat(t,"-001")]||tr["001"];return o[0]}var co,Mc=new RegExp("^".concat(hl.source,"*")),zc=new RegExp("".concat(hl.source,"*$"));function D(i,e){return{start:i,end:e}}var Lc=!!String.prototype.startsWith&&"_a".startsWith("a",1),Fc=!!String.fromCodePoint,Hc=!!Object.fromEntries,Rc=!!String.prototype.codePointAt,Vc=!!String.prototype.trimStart,$c=!!String.prototype.trimEnd,Wc=!!Number.isSafeInteger,Uc=Wc?Number.isSafeInteger:function(i){return typeof i=="number"&&isFinite(i)&&Math.floor(i)===i&&Math.abs(i)<=9007199254740991},Ho=!0;try{var jc=ml("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ho=((co=jc.exec("a"))===null||co===void 0?void 0:co[0])==="a"}catch(i){Ho=!1}var xn=Lc?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Ro=Fc?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r="",o=e.length,s=0,n;o>s;){if(n=e[s++],n>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(((n-=65536)>>10)+55296,n%1024+56320)}return r},wn=Hc?Object.fromEntries:function(e){for(var t={},r=0,o=e;r<o.length;r++){var s=o[r],n=s[0],a=s[1];t[n]=a}return t},pl=Rc?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var o=e.charCodeAt(t),s;return o<55296||o>56319||t+1===r||(s=e.charCodeAt(t+1))<56320||s>57343?o:(o-55296<<10)+(s-56320)+65536}},Gc=Vc?function(e){return e.trimStart()}:function(e){return e.replace(Mc,"")},qc=$c?function(e){return e.trimEnd()}:function(e){return e.replace(zc,"")};function ml(i,e){return new RegExp(i,e)}var Vo;if(Ho){var Cn=ml("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Vo=function(e,t){var r;Cn.lastIndex=t;var o=Cn.exec(e);return(r=o[1])!==null&&r!==void 0?r:""}}else Vo=function(e,t){for(var r=[];;){var o=pl(e,t);if(o===void 0||_l(o)||Jc(o))break;r.push(o),t+=o>=65536?2:1}return Ro.apply(void 0,r)};var Yc=function(){function i(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 i.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},i.prototype.parseMessage=function(e,t,r){for(var o=[];!this.isEOF();){var s=this.char();if(s===123){var n=this.parseArgument(e,r);if(n.err)return n;o.push(n.val)}else{if(s===125&&e>0)break;if(s===35&&(t==="plural"||t==="selectordinal")){var a=this.clonePosition();this.bump(),o.push({type:q.pound,location:D(a,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(T.UNMATCHED_CLOSING_TAG,D(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&$o(this.peek()||0)){var n=this.parseTag(e,t);if(n.err)return n;o.push(n.val)}else{var n=this.parseLiteral(e,t);if(n.err)return n;o.push(n.val)}}}return{val:o,err:null}},i.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:q.literal,value:"<".concat(o,"/>"),location:D(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(e+1,t,!0);if(s.err)return s;var n=s.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!$o(this.char()))return this.error(T.INVALID_TAG,D(a,this.clonePosition()));var l=this.clonePosition(),h=this.parseTagName();return o!==h?this.error(T.UNMATCHED_CLOSING_TAG,D(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:q.tag,value:o,children:n,location:D(r,this.clonePosition())},err:null}:this.error(T.INVALID_TAG,D(a,this.clonePosition())))}else return this.error(T.UNCLOSED_TAG,D(r,this.clonePosition()))}else return this.error(T.INVALID_TAG,D(r,this.clonePosition()))},i.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&Kc(this.char());)this.bump();return this.message.slice(e,this.offset())},i.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),o="";;){var s=this.tryParseQuote(t);if(s){o+=s;continue}var n=this.tryParseUnquoted(e,t);if(n){o+=n;continue}var a=this.tryParseLeftAngleBracket();if(a){o+=a;continue}break}var l=D(r,this.clonePosition());return{val:{type:q.literal,value:o,location:l},err:null}},i.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Xc(this.peek()||0))?(this.bump(),"<"):null},i.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 r=this.char();if(r===39)if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}else t.push(r);this.bump()}return Ro.apply(void 0,t)},i.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(t==="plural"||t==="selectordinal")||r===125&&e>0?null:(this.bump(),Ro(r))},i.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,D(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(T.EMPTY_ARGUMENT,D(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(T.MALFORMED_ARGUMENT,D(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,D(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:q.argument,value:o,location:D(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,D(r,this.clonePosition())):this.parseArgumentOptions(e,t,o,r);default:return this.error(T.MALFORMED_ARGUMENT,D(r,this.clonePosition()))}},i.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Vo(this.message,t),o=t+r.length;this.bumpTo(o);var s=this.clonePosition(),n=D(e,s);return{value:r,location:n}},i.prototype.parseArgumentOptions=function(e,t,r,o){var s,n=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(T.EXPECT_ARGUMENT_TYPE,D(n,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 p=qc(c.val);if(p.length===0)return this.error(T.EXPECT_ARGUMENT_STYLE,D(this.clonePosition(),this.clonePosition()));var u=D(d,this.clonePosition());h={style:p,styleLocation:u}}var v=this.tryParseArgumentClose(o);if(v.err)return v;var x=D(o,this.clonePosition());if(h&&xn(h==null?void 0:h.style,"::",0)){var P=Gc(h.style.slice(2));if(a==="number"){var c=this.parseNumberSkeletonFromString(P,h.styleLocation);return c.err?c:{val:{type:q.number,value:r,location:x,style:c.val},err:null}}else{if(P.length===0)return this.error(T.EXPECT_DATE_TIME_SKELETON,x);var A=P;this.locale&&(A=Nc(P,this.locale));var p={type:Gt.dateTime,pattern:A,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?Ac(A):{}},z=a==="date"?q.date:q.time;return{val:{type:z,value:r,location:x,style:p},err:null}}}return{val:{type:a==="number"?q.number:a==="date"?q.date:q.time,value:r,location:x,style:(s=h==null?void 0:h.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var k=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(T.EXPECT_SELECT_ARGUMENT_OPTIONS,D(k,gr({},k)));this.bumpSpace();var V=this.parseIdentifierIfPossible(),W=0;if(a!=="select"&&V.value==="offset"){if(!this.bumpIf(":"))return this.error(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,D(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,T.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),V=this.parseIdentifierIfPossible(),W=c.val}var ne=this.tryParsePluralOrSelectOptions(e,a,t,V);if(ne.err)return ne;var v=this.tryParseArgumentClose(o);if(v.err)return v;var ee=D(o,this.clonePosition());return a==="select"?{val:{type:q.select,value:r,options:wn(ne.val),location:ee},err:null}:{val:{type:q.plural,value:r,options:wn(ne.val),offset:W,pluralType:a==="plural"?"cardinal":"ordinal",location:ee},err:null}}default:return this.error(T.INVALID_ARGUMENT_TYPE,D(n,l))}},i.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,D(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},i.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(T.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,D(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}},i.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=Ic(e)}catch(o){return this.error(T.INVALID_NUMBER_SKELETON,t)}return{val:{type:Gt.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Oc(r):{}},err:null}},i.prototype.tryParsePluralOrSelectOptions=function(e,t,r,o){for(var s,n=!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 p=this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_SELECTOR,T.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;d=D(c,this.clonePosition()),h=this.message.slice(c.offset,this.offset())}else break}if(l.has(h))return this.error(t==="select"?T.DUPLICATE_SELECT_ARGUMENT_SELECTOR:T.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);h==="other"&&(n=!0),this.bumpSpace();var u=this.clonePosition();if(!this.bumpIf("{"))return this.error(t==="select"?T.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:T.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,D(this.clonePosition(),this.clonePosition()));var v=this.parseMessage(e+1,t,r);if(v.err)return v;var x=this.tryParseArgumentClose(u);if(x.err)return x;a.push([h,{value:v.val,location:D(u,this.clonePosition())}]),l.add(h),this.bumpSpace(),s=this.parseIdentifierIfPossible(),h=s.value,d=s.location}return a.length===0?this.error(t==="select"?T.EXPECT_SELECT_ARGUMENT_SELECTOR:T.EXPECT_PLURAL_ARGUMENT_SELECTOR,D(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(T.MISSING_OTHER_CLAUSE,D(this.clonePosition(),this.clonePosition())):{val:a,err:null}},i.prototype.tryParseDecimalInteger=function(e,t){var r=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var s=!1,n=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)s=!0,n=n*10+(a-48),this.bump();else break}var l=D(o,this.clonePosition());return s?(n*=r,Uc(n)?{val:n,err:null}:this.error(t,l)):this.error(e,l)},i.prototype.offset=function(){return this.position.offset},i.prototype.isEOF=function(){return this.offset()===this.message.length},i.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},i.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=pl(this.message,e);if(t===void 0)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},i.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},i.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)}},i.prototype.bumpIf=function(e){if(xn(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},i.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},i.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}},i.prototype.bumpSpace=function(){for(;!this.isEOF()&&_l(this.char());)this.bump()},i.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return r!=null?r:null},i}();function $o(i){return i>=97&&i<=122||i>=65&&i<=90}function Xc(i){return $o(i)||i===47}function Kc(i){return i===45||i===46||i>=48&&i<=57||i===95||i>=97&&i<=122||i>=65&&i<=90||i==183||i>=192&&i<=214||i>=216&&i<=246||i>=248&&i<=893||i>=895&&i<=8191||i>=8204&&i<=8205||i>=8255&&i<=8256||i>=8304&&i<=8591||i>=11264&&i<=12271||i>=12289&&i<=55295||i>=63744&&i<=64975||i>=65008&&i<=65533||i>=65536&&i<=983039}function _l(i){return i>=9&&i<=13||i===32||i===133||i>=8206&&i<=8207||i===8232||i===8233}function Jc(i){return i>=33&&i<=35||i===36||i>=37&&i<=39||i===40||i===41||i===42||i===43||i===44||i===45||i>=46&&i<=47||i>=58&&i<=59||i>=60&&i<=62||i>=63&&i<=64||i===91||i===92||i===93||i===94||i===96||i===123||i===124||i===125||i===126||i===161||i>=162&&i<=165||i===166||i===167||i===169||i===171||i===172||i===174||i===176||i===177||i===182||i===187||i===191||i===215||i===247||i>=8208&&i<=8213||i>=8214&&i<=8215||i===8216||i===8217||i===8218||i>=8219&&i<=8220||i===8221||i===8222||i===8223||i>=8224&&i<=8231||i>=8240&&i<=8248||i===8249||i===8250||i>=8251&&i<=8254||i>=8257&&i<=8259||i===8260||i===8261||i===8262||i>=8263&&i<=8273||i===8274||i===8275||i>=8277&&i<=8286||i>=8592&&i<=8596||i>=8597&&i<=8601||i>=8602&&i<=8603||i>=8604&&i<=8607||i===8608||i>=8609&&i<=8610||i===8611||i>=8612&&i<=8613||i===8614||i>=8615&&i<=8621||i===8622||i>=8623&&i<=8653||i>=8654&&i<=8655||i>=8656&&i<=8657||i===8658||i===8659||i===8660||i>=8661&&i<=8691||i>=8692&&i<=8959||i>=8960&&i<=8967||i===8968||i===8969||i===8970||i===8971||i>=8972&&i<=8991||i>=8992&&i<=8993||i>=8994&&i<=9e3||i===9001||i===9002||i>=9003&&i<=9083||i===9084||i>=9085&&i<=9114||i>=9115&&i<=9139||i>=9140&&i<=9179||i>=9180&&i<=9185||i>=9186&&i<=9254||i>=9255&&i<=9279||i>=9280&&i<=9290||i>=9291&&i<=9311||i>=9472&&i<=9654||i===9655||i>=9656&&i<=9664||i===9665||i>=9666&&i<=9719||i>=9720&&i<=9727||i>=9728&&i<=9838||i===9839||i>=9840&&i<=10087||i===10088||i===10089||i===10090||i===10091||i===10092||i===10093||i===10094||i===10095||i===10096||i===10097||i===10098||i===10099||i===10100||i===10101||i>=10132&&i<=10175||i>=10176&&i<=10180||i===10181||i===10182||i>=10183&&i<=10213||i===10214||i===10215||i===10216||i===10217||i===10218||i===10219||i===10220||i===10221||i===10222||i===10223||i>=10224&&i<=10239||i>=10240&&i<=10495||i>=10496&&i<=10626||i===10627||i===10628||i===10629||i===10630||i===10631||i===10632||i===10633||i===10634||i===10635||i===10636||i===10637||i===10638||i===10639||i===10640||i===10641||i===10642||i===10643||i===10644||i===10645||i===10646||i===10647||i===10648||i>=10649&&i<=10711||i===10712||i===10713||i===10714||i===10715||i>=10716&&i<=10747||i===10748||i===10749||i>=10750&&i<=11007||i>=11008&&i<=11055||i>=11056&&i<=11076||i>=11077&&i<=11078||i>=11079&&i<=11084||i>=11085&&i<=11123||i>=11124&&i<=11125||i>=11126&&i<=11157||i===11158||i>=11159&&i<=11263||i>=11776&&i<=11777||i===11778||i===11779||i===11780||i===11781||i>=11782&&i<=11784||i===11785||i===11786||i===11787||i===11788||i===11789||i>=11790&&i<=11798||i===11799||i>=11800&&i<=11801||i===11802||i===11803||i===11804||i===11805||i>=11806&&i<=11807||i===11808||i===11809||i===11810||i===11811||i===11812||i===11813||i===11814||i===11815||i===11816||i===11817||i>=11818&&i<=11822||i===11823||i>=11824&&i<=11833||i>=11834&&i<=11835||i>=11836&&i<=11839||i===11840||i===11841||i===11842||i>=11843&&i<=11855||i>=11856&&i<=11857||i===11858||i>=11859&&i<=11903||i>=12289&&i<=12291||i===12296||i===12297||i===12298||i===12299||i===12300||i===12301||i===12302||i===12303||i===12304||i===12305||i>=12306&&i<=12307||i===12308||i===12309||i===12310||i===12311||i===12312||i===12313||i===12314||i===12315||i===12316||i===12317||i>=12318&&i<=12319||i===12320||i===12336||i===64830||i===64831||i>=65093&&i<=65094}function Wo(i){i.forEach(function(e){if(delete e.location,sl(e)||nl(e))for(var t in e.options)delete e.options[t].location,Wo(e.options[t].value);else il(e)&&ll(e.style)||(rl(e)||ol(e))&&Fo(e.style)?delete e.style.location:al(e)&&Wo(e.children)})}function Zc(i,e){e===void 0&&(e={}),e=gr({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var t=new Yc(i,e).parse();if(t.err){var r=SyntaxError(T[t.err.kind]);throw r.location=t.err.location,r.originalMessage=t.err.message,r}return e!=null&&e.captureLocation||Wo(t.val),t.val}var qt;(function(i){i.MISSING_VALUE="MISSING_VALUE",i.INVALID_VALUE="INVALID_VALUE",i.MISSING_INTL_API="MISSING_INTL_API"})(qt||(qt={}));var Lr=function(i){zr(e,i);function e(t,r,o){var s=i.call(this,t)||this;return s.code=r,s.originalMessage=o,s}return e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),En=function(i){zr(e,i);function e(t,r,o,s){return i.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(o).join('", "'),'"'),qt.INVALID_VALUE,s)||this}return e}(Lr),Qc=function(i){zr(e,i);function e(t,r,o){return i.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),qt.INVALID_VALUE,o)||this}return e}(Lr),eu=function(i){zr(e,i);function e(t,r){return i.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),qt.MISSING_VALUE,r)||this}return e}(Lr),he;(function(i){i[i.literal=0]="literal",i[i.object=1]="object"})(he||(he={}));function tu(i){return i.length<2?i:i.reduce(function(e,t){var r=e[e.length-1];return!r||r.type!==he.literal||t.type!==he.literal?e.push(t):r.value+=t.value,e},[])}function iu(i){return typeof i=="function"}function ur(i,e,t,r,o,s,n){if(i.length===1&&vn(i[0]))return[{type:he.literal,value:i[0].value}];for(var a=[],l=0,h=i;l<h.length;l++){var d=h[l];if(vn(d)){a.push({type:he.literal,value:d.value});continue}if(Ec(d)){typeof s=="number"&&a.push({type:he.literal,value:t.getNumberFormat(e).format(s)});continue}var c=d.value;if(!(o&&c in o))throw new eu(c,n);var p=o[c];if(Cc(d)){(!p||typeof p=="string"||typeof p=="number")&&(p=typeof p=="string"||typeof p=="number"?String(p):""),a.push({type:typeof p=="string"?he.literal:he.object,value:p});continue}if(rl(d)){var u=typeof d.style=="string"?r.date[d.style]:Fo(d.style)?d.style.parsedOptions:void 0;a.push({type:he.literal,value:t.getDateTimeFormat(e,u).format(p)});continue}if(ol(d)){var u=typeof d.style=="string"?r.time[d.style]:Fo(d.style)?d.style.parsedOptions:r.time.medium;a.push({type:he.literal,value:t.getDateTimeFormat(e,u).format(p)});continue}if(il(d)){var u=typeof d.style=="string"?r.number[d.style]:ll(d.style)?d.style.parsedOptions:void 0;u&&u.scale&&(p=p*(u.scale||1)),a.push({type:he.literal,value:t.getNumberFormat(e,u).format(p)});continue}if(al(d)){var v=d.children,x=d.value,P=o[x];if(!iu(P))throw new Qc(x,"function",n);var A=ur(v,e,t,r,o,s),z=P(A.map(function(W){return W.value}));Array.isArray(z)||(z=[z]),a.push.apply(a,z.map(function(W){return{type:typeof W=="string"?he.literal:he.object,value:W}}))}if(sl(d)){var k=d.options[p]||d.options.other;if(!k)throw new En(d.value,p,Object.keys(d.options),n);a.push.apply(a,ur(k.value,e,t,r,o));continue}if(nl(d)){var k=d.options["=".concat(p)];if(!k){if(!Intl.PluralRules)throw new Lr(`Intl.PluralRules is not available in this environment.
17
17
  Try polyfilling it using "@formatjs/intl-pluralrules"
18
- `,Yt.MISSING_INTL_API,s);var $=t.getPluralRules(e,{type:d.pluralType}).select(p-(d.offset||0));k=d.options[$]||d.options.other}if(!k)throw new bs(d.value,p,Object.keys(d.options),s);a.push.apply(a,cr(k.value,e,t,r,o,p-(d.offset||0)));continue}}return Kc(a)}function Zc(i,e){return e?M(M(M({},i||{}),e||{}),Object.keys(i).reduce(function(t,r){return t[r]=M(M({},i[r]),e[r]||{}),t},{})):i}function Qc(i,e){return e?Object.keys(i).reduce(function(t,r){return t[r]=Zc(i[r],e[r]),t},M({},i)):i}function ao(i){return{create:function(){return{get:function(e){return i[e]},set:function(e,t){i[e]=t}}}}}function eu(i){return i===void 0&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:oo(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,Vt([void 0],t,!1)))},{cache:ao(i.number),strategy:no.variadic}),getDateTimeFormat:oo(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,Vt([void 0],t,!1)))},{cache:ao(i.dateTime),strategy:no.variadic}),getPluralRules:oo(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,Vt([void 0],t,!1)))},{cache:ao(i.pluralRules),strategy:no.variadic})}}var tu=function(){function i(e,t,r,o){t===void 0&&(t=i.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,p){return!c.length||p.type!==he.literal||typeof c[c.length-1]!="string"?c.push(p.value):c[c.length-1]+=p.value,c},[]);return d.length<=1?d[0]||"":d},this.formatToParts=function(l){return cr(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=i.resolveLocale(t),typeof e=="string"){if(this.message=e,!i.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=o||{};s.formatters;var a=Nd(s,["formatters"]);this.ast=i.__parse(e,M(M({},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=Qc(i.formats,r),this.formatters=o&&o.formatters||eu(this.formatterCache)}return Object.defineProperty(i,"defaultLocale",{get:function(){return i.memoizedDefaultLocale||(i.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),i.memoizedDefaultLocale},enumerable:!1,configurable:!0}),i.memoizedDefaultLocale=null,i.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])}},i.__parse=qc,i.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"}}},i}();function iu(i,e){if(e==null)return;if(e in i)return i[e];const t=e.split(".");let r=i;for(let o=0;o<t.length;o++)if(typeof r=="object"){if(o>0){const n=t.slice(o,t.length).join(".");if(n in r){r=r[n];break}}r=r[t[o]]}else r=void 0;return r}const it={},ru=(i,e,t)=>t&&(e in it||(it[e]={}),i in it[e]||(it[e][i]=t),t),cl=(i,e)=>{if(e==null)return;if(e in it&&i in it[e])return it[e][i];const t=Mr(e);for(let r=0;r<t.length;r++){const o=t[r],n=nu(o,i);if(n)return ru(i,e,n)}};let fn;const Vi=Nr({});function ou(i){return fn[i]||null}function ul(i){return i in fn}function nu(i,e){if(!ul(i))return null;const t=ou(i);return iu(t,e)}function su(i){if(i==null)return;const e=Mr(i);for(let t=0;t<e.length;t++){const r=e[t];if(ul(r))return r}}function pl(i,...e){delete it[i],Vi.update(t=>(t[i]=dc.all([t[i]||{},...e]),t))}ti([Vi],([i])=>Object.keys(i));Vi.subscribe(i=>fn=i);const ur={};function au(i,e){ur[i].delete(e),ur[i].size===0&&delete ur[i]}function ml(i){return ur[i]}function lu(i){return Mr(i).map(e=>{const t=ml(e);return[e,t?[...t]:[]]}).filter(([,e])=>e.length>0)}function Fo(i){return i==null?!1:Mr(i).some(e=>{var t;return(t=ml(e))==null?void 0:t.size})}function hu(i,e){return Promise.all(e.map(r=>(au(i,r),r().then(o=>o.default||o)))).then(r=>pl(i,...r))}const mi={};function fl(i){if(!Fo(i))return i in mi?mi[i]:Promise.resolve();const e=lu(i);return mi[i]=Promise.all(e.map(([t,r])=>hu(t,r))).then(()=>{if(Fo(i))return fl(i);delete mi[i]}),mi[i]}const du={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"}}},cu={fallbackLocale:null,loadingDelay:200,formats:du,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},uu=cu;function Xt(){return uu}const lo=Nr(!1);var pu=Object.defineProperty,mu=Object.defineProperties,fu=Object.getOwnPropertyDescriptors,ys=Object.getOwnPropertySymbols,_u=Object.prototype.hasOwnProperty,gu=Object.prototype.propertyIsEnumerable,xs=(i,e,t)=>e in i?pu(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,vu=(i,e)=>{for(var t in e)_u.call(e,t)&&xs(i,t,e[t]);if(ys)for(var t of ys(e))gu.call(e,t)&&xs(i,t,e[t]);return i},bu=(i,e)=>mu(i,fu(e));let Ho;const gr=Nr(null);function ws(i){return i.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Mr(i,e=Xt().fallbackLocale){const t=ws(i);return e?[...new Set([...t,...ws(e)])]:t}function wt(){return Ho!=null?Ho:void 0}gr.subscribe(i=>{Ho=i!=null?i:void 0,typeof window!="undefined"&&i!=null&&document.documentElement.setAttribute("lang",i)});const yu=i=>{if(i&&su(i)&&Fo(i)){const{loadingDelay:e}=Xt();let t;return typeof window!="undefined"&&wt()!=null&&e?t=window.setTimeout(()=>lo.set(!0),e):lo.set(!0),fl(i).then(()=>{gr.set(i)}).finally(()=>{clearTimeout(t),lo.set(!1)})}return gr.set(i)},ii=bu(vu({},gr),{set:yu}),zr=i=>{const e=Object.create(null);return r=>{const o=JSON.stringify(r);return o in e?e[o]:e[o]=i(r)}};var xu=Object.defineProperty,vr=Object.getOwnPropertySymbols,_l=Object.prototype.hasOwnProperty,gl=Object.prototype.propertyIsEnumerable,Cs=(i,e,t)=>e in i?xu(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,_n=(i,e)=>{for(var t in e||(e={}))_l.call(e,t)&&Cs(i,t,e[t]);if(vr)for(var t of vr(e))gl.call(e,t)&&Cs(i,t,e[t]);return i},ri=(i,e)=>{var t={};for(var r in i)_l.call(i,r)&&e.indexOf(r)<0&&(t[r]=i[r]);if(i!=null&&vr)for(var r of vr(i))e.indexOf(r)<0&&gl.call(i,r)&&(t[r]=i[r]);return t};const ki=(i,e)=>{const{formats:t}=Xt();if(i in t&&e in t[i])return t[i][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${i} format.`)},wu=zr(i=>{var e=i,{locale:t,format:r}=e,o=ri(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(o=ki("number",r)),new Intl.NumberFormat(t,o)}),Cu=zr(i=>{var e=i,{locale:t,format:r}=e,o=ri(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?o=ki("date",r):Object.keys(o).length===0&&(o=ki("date","short")),new Intl.DateTimeFormat(t,o)}),Eu=zr(i=>{var e=i,{locale:t,format:r}=e,o=ri(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?o=ki("time",r):Object.keys(o).length===0&&(o=ki("time","short")),new Intl.DateTimeFormat(t,o)}),Su=(i={})=>{var e=i,{locale:t=wt()}=e,r=ri(e,["locale"]);return wu(_n({locale:t},r))},Au=(i={})=>{var e=i,{locale:t=wt()}=e,r=ri(e,["locale"]);return Cu(_n({locale:t},r))},Pu=(i={})=>{var e=i,{locale:t=wt()}=e,r=ri(e,["locale"]);return Eu(_n({locale:t},r))},Iu=zr((i,e=wt())=>new tu(i,e,Xt().formats,{ignoreTag:Xt().ignoreTag})),ku=(i,e={})=>{var t,r,o,n;let s=e;typeof i=="object"&&(s=i,i=s.id);const{values:a,locale:l=wt(),default:h}=s;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let d=cl(i,l);if(!d)d=(n=(o=(r=(t=Xt()).handleMissingMessage)==null?void 0:r.call(t,{locale:l,id:i,defaultValue:h}))!=null?o:h)!=null?n:i;else if(typeof d!="string")return console.warn(`[svelte-i18n] Message with id "${i}" 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=Iu(d,l).format(a)}catch(p){p instanceof Error&&console.warn(`[svelte-i18n] Message "${i}" has syntax error:`,p.message)}return c},Tu=(i,e)=>Pu(e).format(i),Du=(i,e)=>Au(e).format(i),Ou=(i,e)=>Su(e).format(i),Nu=(i,e=wt())=>cl(i,e),Bu=ti([ii,Vi],()=>ku);ti([ii],()=>Tu);ti([ii],()=>Du);ti([ii],()=>Ou);ti([ii,Vi],()=>Nu);window.emWidgets={topic:qd};const Mu=i=>i.toLowerCase().match(/android/i)?"Android":i.toLowerCase().match(/iphone/i)?"iPhone":i.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function Es(i,e){pl(i,e)}function zu(i){ii.set(i)}const Ss={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","Bet Adjustment":"Bet Adjustment","Bet ID":"Bet ID",Price:"Price",Selection:"Selection",Market:"Market",Sport:"Sport",Date:"Date",Sport:"Sport",Sport:"Sport",Multiple:"Multiple"},"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":"赢取类型","Bet Adjustment":"投注调整","Bet ID":"投注ID",Price:"价格",Selection:"选择",Market:"市场",Sport:"体育",Multiple:"多重"},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","Bet Adjustment":"Ajustement du Pari","Bet ID":"ID du Pari",Price:"Prix",Selection:"Sélection",Market:"Marché",Sport:"Sport",Multiple:"Multiple"},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","Bet Adjustment":"Ajustarea Pariei","Bet ID":"ID-ul Pariei",Price:"Preț",Selection:"Selecție",Market:"Piață",Sport:"Sport",Multiple:"Multiplu"},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","Bet Adjustment":"Ajuste de Apuesta","Bet ID":"ID de Apuesta",Price:"Precio",Selection:"Selección",Market:"Mercado",Sport:"Deporte",Multiple:"Múltiple"},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","Bet Adjustment":"Ajuste de Aposta","Bet ID":"ID da Aposta",Price:"Preço",Selection:"Seleção",Market:"Mercado",Sport:"Esporte",Multiple:"Múltiplo"},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","Bet Adjustment":"Prilagodba Oklade","Bet ID":"ID Oklade",Price:"Cijena",Selection:"Izbor",Market:"Tržište",Sport:"Sport",Multiple:"Višestruko"},"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","Bet Adjustment":"Ajuste de Aposta","Bet ID":"ID da Aposta",Price:"Preço",Selection:"Seleção",Market:"Mercado",Sport:"Esporte",Multiple:"Múltiplo"},"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","Bet Adjustment":"Ajuste de Apuesta","Bet ID":"ID de Apuesta",Price:"Precio",Selection:"Selección",Market:"Mercado",Sport:"Deporte",Multiple:"Múltiple"},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ü","Bet Adjustment":"Bahis Ayarı","Bet ID":"Bahis ID",Price:"Fiyat",Selection:"Seçim",Market:"Pazar",Sport:"Spor",Multiple:"Çoklu"},"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","Bet Adjustment":"Bet Adjustment","Bet ID":"Bet ID",Price:"Price",Selection:"Selection",Market:"Market",Sport:"Sport",Date:"Date",Sport:"Sport",Sport:"Sport",Multiple:"Multiple"}};var Lu=Object.defineProperty,Fu=Object.defineProperties,Hu=Object.getOwnPropertyDescriptors,As=Object.getOwnPropertySymbols,Ru=Object.prototype.hasOwnProperty,Vu=Object.prototype.propertyIsEnumerable,Ro=(i,e,t)=>e in i?Lu(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,br=(i,e)=>{for(var t in e||(e={}))Ru.call(e,t)&&Ro(i,t,e[t]);if(As)for(var t of As(e))Vu.call(e,t)&&Ro(i,t,e[t]);return i},vl=(i,e)=>Fu(i,Hu(e)),le=(i,e,t)=>(Ro(i,typeof e!="symbol"?e+"":e,t),t),yr=(i,e,t)=>new Promise((r,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?r(l.value):Promise.resolve(l.value).then(n,s);a((t=t.apply(i,e)).next())});/**
18
+ `,qt.MISSING_INTL_API,n);var V=t.getPluralRules(e,{type:d.pluralType}).select(p-(d.offset||0));k=d.options[V]||d.options.other}if(!k)throw new En(d.value,p,Object.keys(d.options),n);a.push.apply(a,ur(k.value,e,t,r,o,p-(d.offset||0)));continue}}return tu(a)}function ru(i,e){return e?Fe(Fe(Fe({},i||{}),e||{}),Object.keys(i).reduce(function(t,r){return t[r]=Fe(Fe({},i[r]),e[r]||{}),t},{})):i}function ou(i,e){return e?Object.keys(i).reduce(function(t,r){return t[r]=ru(i[r],e[r]),t},Fe({},i)):i}function uo(i){return{create:function(){return{get:function(e){return i[e]},set:function(e,t){i[e]=t}}}}}function su(i){return i===void 0&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:lo(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,ao([void 0],t,!1)))},{cache:uo(i.number),strategy:ho.variadic}),getDateTimeFormat:lo(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,ao([void 0],t,!1)))},{cache:uo(i.dateTime),strategy:ho.variadic}),getPluralRules:lo(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,ao([void 0],t,!1)))},{cache:uo(i.pluralRules),strategy:ho.variadic})}}var nu=function(){function i(e,t,r,o){t===void 0&&(t=i.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var h=s.formatToParts(l);if(h.length===1)return h[0].value;var d=h.reduce(function(c,p){return!c.length||p.type!==he.literal||typeof c[c.length-1]!="string"?c.push(p.value):c[c.length-1]+=p.value,c},[]);return d.length<=1?d[0]||"":d},this.formatToParts=function(l){return ur(s.ast,s.locales,s.formatters,s.formats,l,void 0,s.message)},this.resolvedOptions=function(){var l;return{locale:((l=s.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=t,this.resolvedLocale=i.resolveLocale(t),typeof e=="string"){if(this.message=e,!i.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var n=o||{};n.formatters;var a=_c(n,["formatters"]);this.ast=i.__parse(e,Fe(Fe({},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=ou(i.formats,r),this.formatters=o&&o.formatters||su(this.formatterCache)}return Object.defineProperty(i,"defaultLocale",{get:function(){return i.memoizedDefaultLocale||(i.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),i.memoizedDefaultLocale},enumerable:!1,configurable:!0}),i.memoizedDefaultLocale=null,i.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])}},i.__parse=Zc,i.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"}}},i}();function au(i,e){if(e==null)return;if(e in i)return i[e];const t=e.split(".");let r=i;for(let o=0;o<t.length;o++)if(typeof r=="object"){if(o>0){const s=t.slice(o,t.length).join(".");if(s in r){r=r[s];break}}r=r[t[o]]}else r=void 0;return r}const it={},lu=(i,e,t)=>t&&(e in it||(it[e]={}),i in it[e]||(it[e][i]=t),t),fl=(i,e)=>{if(e==null)return;if(e in it&&i in it[e])return it[e][i];const t=Fr(e);for(let r=0;r<t.length;r++){const o=t[r],s=du(o,i);if(s)return lu(i,e,s)}};let bs;const $i=Mr({});function hu(i){return bs[i]||null}function vl(i){return i in bs}function du(i,e){if(!vl(i))return null;const t=hu(i);return au(t,e)}function cu(i){if(i==null)return;const e=Fr(i);for(let t=0;t<e.length;t++){const r=e[t];if(vl(r))return r}}function gl(i,...e){delete it[i],$i.update(t=>(t[i]=mc.all([t[i]||{},...e]),t))}ei([$i],([i])=>Object.keys(i));$i.subscribe(i=>bs=i);const pr={};function uu(i,e){pr[i].delete(e),pr[i].size===0&&delete pr[i]}function bl(i){return pr[i]}function pu(i){return Fr(i).map(e=>{const t=bl(e);return[e,t?[...t]:[]]}).filter(([,e])=>e.length>0)}function Uo(i){return i==null?!1:Fr(i).some(e=>{var t;return(t=bl(e))==null?void 0:t.size})}function mu(i,e){return Promise.all(e.map(r=>(uu(i,r),r().then(o=>o.default||o)))).then(r=>gl(i,...r))}const pi={};function yl(i){if(!Uo(i))return i in pi?pi[i]:Promise.resolve();const e=pu(i);return pi[i]=Promise.all(e.map(([t,r])=>mu(t,r))).then(()=>{if(Uo(i))return yl(i);delete pi[i]}),pi[i]}const _u={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"}}},fu={fallbackLocale:null,loadingDelay:200,formats:_u,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},vu=fu;function Yt(){return vu}const po=Mr(!1);var gu=Object.defineProperty,bu=Object.defineProperties,yu=Object.getOwnPropertyDescriptors,Sn=Object.getOwnPropertySymbols,xu=Object.prototype.hasOwnProperty,wu=Object.prototype.propertyIsEnumerable,An=(i,e,t)=>e in i?gu(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Cu=(i,e)=>{for(var t in e||(e={}))xu.call(e,t)&&An(i,t,e[t]);if(Sn)for(var t of Sn(e))wu.call(e,t)&&An(i,t,e[t]);return i},Eu=(i,e)=>bu(i,yu(e));let jo;const br=Mr(null);function Pn(i){return i.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Fr(i,e=Yt().fallbackLocale){const t=Pn(i);return e?[...new Set([...t,...Pn(e)])]:t}function wt(){return jo!=null?jo:void 0}br.subscribe(i=>{jo=i!=null?i:void 0,typeof window!="undefined"&&i!=null&&document.documentElement.setAttribute("lang",i)});const Su=i=>{if(i&&cu(i)&&Uo(i)){const{loadingDelay:e}=Yt();let t;return typeof window!="undefined"&&wt()!=null&&e?t=window.setTimeout(()=>po.set(!0),e):po.set(!0),yl(i).then(()=>{br.set(i)}).finally(()=>{clearTimeout(t),po.set(!1)})}return br.set(i)},ti=Eu(Cu({},br),{set:Su}),Hr=i=>{const e=Object.create(null);return r=>{const o=JSON.stringify(r);return o in e?e[o]:e[o]=i(r)}};var Au=Object.defineProperty,yr=Object.getOwnPropertySymbols,xl=Object.prototype.hasOwnProperty,wl=Object.prototype.propertyIsEnumerable,In=(i,e,t)=>e in i?Au(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ys=(i,e)=>{for(var t in e||(e={}))xl.call(e,t)&&In(i,t,e[t]);if(yr)for(var t of yr(e))wl.call(e,t)&&In(i,t,e[t]);return i},ii=(i,e)=>{var t={};for(var r in i)xl.call(i,r)&&e.indexOf(r)<0&&(t[r]=i[r]);if(i!=null&&yr)for(var r of yr(i))e.indexOf(r)<0&&wl.call(i,r)&&(t[r]=i[r]);return t};const Ii=(i,e)=>{const{formats:t}=Yt();if(i in t&&e in t[i])return t[i][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${i} format.`)},Pu=Hr(i=>{var e=i,{locale:t,format:r}=e,o=ii(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(o=Ii("number",r)),new Intl.NumberFormat(t,o)}),Iu=Hr(i=>{var e=i,{locale:t,format:r}=e,o=ii(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?o=Ii("date",r):Object.keys(o).length===0&&(o=Ii("date","short")),new Intl.DateTimeFormat(t,o)}),ku=Hr(i=>{var e=i,{locale:t,format:r}=e,o=ii(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?o=Ii("time",r):Object.keys(o).length===0&&(o=Ii("time","short")),new Intl.DateTimeFormat(t,o)}),Tu=(i={})=>{var e=i,{locale:t=wt()}=e,r=ii(e,["locale"]);return Pu(ys({locale:t},r))},Du=(i={})=>{var e=i,{locale:t=wt()}=e,r=ii(e,["locale"]);return Iu(ys({locale:t},r))},Ou=(i={})=>{var e=i,{locale:t=wt()}=e,r=ii(e,["locale"]);return ku(ys({locale:t},r))},Nu=Hr((i,e=wt())=>new nu(i,e,Yt().formats,{ignoreTag:Yt().ignoreTag})),Bu=(i,e={})=>{var t,r,o,s;let n=e;typeof i=="object"&&(n=i,i=n.id);const{values:a,locale:l=wt(),default:h}=n;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let d=fl(i,l);if(!d)d=(s=(o=(r=(t=Yt()).handleMissingMessage)==null?void 0:r.call(t,{locale:l,id:i,defaultValue:h}))!=null?o:h)!=null?s:i;else if(typeof d!="string")return console.warn(`[svelte-i18n] Message with id "${i}" 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=Nu(d,l).format(a)}catch(p){p instanceof Error&&console.warn(`[svelte-i18n] Message "${i}" has syntax error:`,p.message)}return c},Mu=(i,e)=>Ou(e).format(i),zu=(i,e)=>Du(e).format(i),Lu=(i,e)=>Tu(e).format(i),Fu=(i,e=wt())=>fl(i,e),Hu=ei([ti,$i],()=>Bu);ei([ti],()=>Mu);ei([ti],()=>zu);ei([ti],()=>Lu);ei([ti,$i],()=>Fu);window.emWidgets={topic:Jd};const Ru=i=>i.toLowerCase().match(/android/i)?"Android":i.toLowerCase().match(/iphone/i)?"iPhone":i.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function kn(i,e){gl(i,e)}function Vu(i){ti.set(i)}const Tn={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","Bet Adjustment":"Bet Adjustment","Bet ID":"Bet ID",Price:"Price",Selection:"Selection",Market:"Market",Sport:"Sport",Date:"Date",Sport:"Sport",Sport:"Sport",Multiple:"Multiple"},"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":"赢取类型","Bet Adjustment":"投注调整","Bet ID":"投注ID",Price:"价格",Selection:"选择",Market:"市场",Sport:"体育",Multiple:"多重"},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","Bet Adjustment":"Ajustement du Pari","Bet ID":"ID du Pari",Price:"Prix",Selection:"Sélection",Market:"Marché",Sport:"Sport",Multiple:"Multiple"},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","Bet Adjustment":"Ajustarea Pariei","Bet ID":"ID-ul Pariei",Price:"Preț",Selection:"Selecție",Market:"Piață",Sport:"Sport",Multiple:"Multiplu"},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","Bet Adjustment":"Ajuste de Apuesta","Bet ID":"ID de Apuesta",Price:"Precio",Selection:"Selección",Market:"Mercado",Sport:"Deporte",Multiple:"Múltiple"},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","Bet Adjustment":"Ajuste de Aposta","Bet ID":"ID da Aposta",Price:"Preço",Selection:"Seleção",Market:"Mercado",Sport:"Esporte",Multiple:"Múltiplo"},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","Bet Adjustment":"Prilagodba Oklade","Bet ID":"ID Oklade",Price:"Cijena",Selection:"Izbor",Market:"Tržište",Sport:"Sport",Multiple:"Višestruko"},"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","Bet Adjustment":"Ajuste de Aposta","Bet ID":"ID da Aposta",Price:"Preço",Selection:"Seleção",Market:"Mercado",Sport:"Esporte",Multiple:"Múltiplo"},"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","Bet Adjustment":"Ajuste de Apuesta","Bet ID":"ID de Apuesta",Price:"Precio",Selection:"Selección",Market:"Mercado",Sport:"Deporte",Multiple:"Múltiple"},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ü","Bet Adjustment":"Bahis Ayarı","Bet ID":"Bahis ID",Price:"Fiyat",Selection:"Seçim",Market:"Pazar",Sport:"Spor",Multiple:"Çoklu"},"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","Bet Adjustment":"Bet Adjustment","Bet ID":"Bet ID",Price:"Price",Selection:"Selection",Market:"Market",Sport:"Sport",Date:"Date",Sport:"Sport",Sport:"Sport",Multiple:"Multiple"}};var $u=Object.defineProperty,Wu=Object.defineProperties,Uu=Object.getOwnPropertyDescriptors,Dn=Object.getOwnPropertySymbols,ju=Object.prototype.hasOwnProperty,Gu=Object.prototype.propertyIsEnumerable,Go=(i,e,t)=>e in i?$u(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,xr=(i,e)=>{for(var t in e||(e={}))ju.call(e,t)&&Go(i,t,e[t]);if(Dn)for(var t of Dn(e))Gu.call(e,t)&&Go(i,t,e[t]);return i},Cl=(i,e)=>Wu(i,Uu(e)),le=(i,e,t)=>(Go(i,typeof e!="symbol"?e+"":e,t),t),wr=(i,e,t)=>new Promise((r,o)=>{var s=l=>{try{a(t.next(l))}catch(h){o(h)}},n=l=>{try{a(t.throw(l))}catch(h){o(h)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(s,n);a((t=t.apply(i,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/
22
- */function O(i,e="24.5.11"){Object.defineProperty(i,"version",{get(){return e}});const t=customElements.get(i.is);if(!t)customElements.define(i.is,i);else{const r=t.version;r&&i.version&&r===i.version?console.warn(`The component ${i.is} has been loaded twice`):console.error(`Tried to define ${i.is} version ${i.version} when version ${t.version} is already in use. Something will probably break.`)}}/**
22
+ */function O(i,e="24.5.12"){Object.defineProperty(i,"version",{get(){return e}});const t=customElements.get(i.is);if(!t)customElements.define(i.is,i);else{const r=t.version;r&&i.version&&r===i.version?console.warn(`The component ${i.is} has been loaded twice`):console.error(`Tried to define ${i.is} version ${i.version} when version ${t.version} is already in use. Something will probably break.`)}}/**
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 $u extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}O($u);/**
26
+ */class qu extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}O(qu);/**
27
27
  * @license
28
28
  * Copyright 2019 Google LLC
29
29
  * SPDX-License-Identifier: BSD-3-Clause
30
- */const pr=globalThis,gn=pr.ShadowRoot&&(pr.ShadyCSS===void 0||pr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,vn=Symbol(),Ps=new WeakMap;let bn=class{constructor(i,e,t){if(this._$cssResult$=!0,t!==vn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=e}get styleSheet(){let i=this.o;const e=this.t;if(gn&&i===void 0){const t=e!==void 0&&e.length===1;t&&(i=Ps.get(e)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),t&&Ps.set(e,i))}return i}toString(){return this.cssText}};const Uu=i=>new bn(typeof i=="string"?i:i+"",void 0,vn),y=(i,...e)=>{const t=i.length===1?i[0]:e.reduce((r,o,n)=>r+(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)+i[n+1],i[0]);return new bn(t,i,vn)},bl=(i,e)=>{if(gn)i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const r=document.createElement("style"),o=pr.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=t.cssText,i.appendChild(r)}},Is=gn?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return Uu(t)})(i):i;/**
30
+ */const mr=globalThis,xs=mr.ShadowRoot&&(mr.ShadyCSS===void 0||mr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ws=Symbol(),On=new WeakMap;let Cs=class{constructor(i,e,t){if(this._$cssResult$=!0,t!==ws)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=e}get styleSheet(){let i=this.o;const e=this.t;if(xs&&i===void 0){const t=e!==void 0&&e.length===1;t&&(i=On.get(e)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),t&&On.set(e,i))}return i}toString(){return this.cssText}};const Yu=i=>new Cs(typeof i=="string"?i:i+"",void 0,ws),y=(i,...e)=>{const t=i.length===1?i[0]:e.reduce((r,o,s)=>r+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+i[s+1],i[0]);return new Cs(t,i,ws)},El=(i,e)=>{if(xs)i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const r=document.createElement("style"),o=mr.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=t.cssText,i.appendChild(r)}},Nn=xs?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return Yu(t)})(i):i;/**
31
31
  * @license
32
32
  * Copyright 2017 Google LLC
33
33
  * SPDX-License-Identifier: BSD-3-Clause
34
- */const{is:Wu,defineProperty:ju,getOwnPropertyDescriptor:Gu,getOwnPropertyNames:qu,getOwnPropertySymbols:Yu,getPrototypeOf:Xu}=Object,Kt=globalThis,ks=Kt.trustedTypes,Ku=ks?ks.emptyScript:"",Ts=Kt.reactiveElementPolyfillSupport,Si=(i,e)=>i,Vo={toAttribute(i,e){switch(e){case Boolean:i=i?Ku:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let t=i;switch(e){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch(r){t=null}}return t}},yl=(i,e)=>!Wu(i,e),Ds={attribute:!0,type:String,converter:Vo,reflect:!1,hasChanged:yl};Symbol.metadata!=null||(Symbol.metadata=Symbol("metadata")),Kt.litPropertyMetadata!=null||(Kt.litPropertyMetadata=new WeakMap);class Ht 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=Ds){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const r=Symbol(),o=this.getPropertyDescriptor(e,r,t);o!==void 0&&ju(this.prototype,e,o)}}static getPropertyDescriptor(e,t,r){var o;const{get:n,set:s}=(o=Gu(this.prototype,e))!=null?o:{get(){return this[t]},set(a){this[t]=a}};return{get(){return n==null?void 0:n.call(this)},set(a){const l=n==null?void 0:n.call(this);s.call(this,a),this.requestUpdate(e,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return(t=this.elementProperties.get(e))!=null?t:Ds}static _$Ei(){if(this.hasOwnProperty(Si("elementProperties")))return;const e=Xu(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Si("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Si("properties"))){const t=this.properties,r=[...qu(t),...Yu(t)];for(const o of r)this.createProperty(o,t[o])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[r,o]of t)this.elementProperties.set(r,o)}this._$Eh=new Map;for(const[t,r]of this.elementProperties){const o=this._$Eu(t,r);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const o of r)t.unshift(Is(o))}else e!==void 0&&t.push(Is(e));return t}static _$Eu(e,t){const r=t.attribute;return r===!1?void 0:typeof r=="string"?r: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,r;((t=this._$EO)!=null?t:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)==null||r.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var e;const t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return bl(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 r;return(r=t.hostConnected)==null?void 0:r.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var r;return(r=t.hostDisconnected)==null?void 0:r.call(t)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EC(e,t){var r;const o=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,o);if(n!==void 0&&o.reflect===!0){const s=(((r=o.converter)==null?void 0:r.toAttribute)!==void 0?o.converter:Vo).toAttribute(t,o.type);this._$Em=e,s==null?this.removeAttribute(n):this.setAttribute(n,s),this._$Em=null}}_$AK(e,t){var r;const o=this.constructor,n=o._$Eh.get(e);if(n!==void 0&&this._$Em!==n){const s=o.getPropertyOptions(n),a=typeof s.converter=="function"?{fromAttribute:s.converter}:((r=s.converter)==null?void 0:r.fromAttribute)!==void 0?s.converter:Vo;this._$Em=n,this[n]=a.fromAttribute(t,s.type),this._$Em=null}}requestUpdate(e,t,r){var o;if(e!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(e)),!((o=r.hasChanged)!=null?o:yl)(this[e],t))return;this.P(e,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,t,r){var o;this._$AL.has(e)||this._$AL.set(e,t),r.reflect===!0&&this._$Em!==e&&((o=this._$Ej)!=null?o:this._$Ej=new Set).add(e)}_$ET(){return yr(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)s.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],s)}let t=!1;const r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),(e=this._$EO)==null||e.forEach(o=>{var n;return(n=o.hostUpdate)==null?void 0:n.call(o)}),this.update(r)):this._$EU()}catch(o){throw t=!1,this._$EU(),o}t&&this._$AE(r)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(r=>{var o;return(o=r.hostUpdated)==null?void 0:o.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(e){}firstUpdated(e){}}var Os;Ht.elementStyles=[],Ht.shadowRootOptions={mode:"open"},Ht[Si("elementProperties")]=new Map,Ht[Si("finalized")]=new Map,Ts==null||Ts({ReactiveElement:Ht}),((Os=Kt.reactiveElementVersions)!=null?Os:Kt.reactiveElementVersions=[]).push("2.0.4");/**
34
+ */const{is:Xu,defineProperty:Ku,getOwnPropertyDescriptor:Ju,getOwnPropertyNames:Zu,getOwnPropertySymbols:Qu,getPrototypeOf:ep}=Object,Xt=globalThis,Bn=Xt.trustedTypes,tp=Bn?Bn.emptyScript:"",Mn=Xt.reactiveElementPolyfillSupport,Ei=(i,e)=>i,qo={toAttribute(i,e){switch(e){case Boolean:i=i?tp:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let t=i;switch(e){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch(r){t=null}}return t}},Sl=(i,e)=>!Xu(i,e),zn={attribute:!0,type:String,converter:qo,reflect:!1,useDefault:!1,hasChanged:Sl};Symbol.metadata!=null||(Symbol.metadata=Symbol("metadata")),Xt.litPropertyMetadata!=null||(Xt.litPropertyMetadata=new WeakMap);class Ht 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=zn){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 r=Symbol(),o=this.getPropertyDescriptor(e,r,t);o!==void 0&&Ku(this.prototype,e,o)}}static getPropertyDescriptor(e,t,r){var o;const{get:s,set:n}=(o=Ju(this.prototype,e))!=null?o:{get(){return this[t]},set(a){this[t]=a}};return{get:s,set(a){const l=s==null?void 0:s.call(this);n==null||n.call(this,a),this.requestUpdate(e,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return(t=this.elementProperties.get(e))!=null?t:zn}static _$Ei(){if(this.hasOwnProperty(Ei("elementProperties")))return;const e=ep(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Ei("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ei("properties"))){const t=this.properties,r=[...Zu(t),...Qu(t)];for(const o of r)this.createProperty(o,t[o])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[r,o]of t)this.elementProperties.set(r,o)}this._$Eh=new Map;for(const[t,r]of this.elementProperties){const o=this._$Eu(t,r);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const o of r)t.unshift(Nn(o))}else e!==void 0&&t.push(Nn(e));return t}static _$Eu(e,t){const r=t.attribute;return r===!1?void 0:typeof r=="string"?r: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,r;((t=this._$EO)!=null?t:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)==null||r.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var e;const t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return El(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 r;return(r=t.hostConnected)==null?void 0:r.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var r;return(r=t.hostDisconnected)==null?void 0:r.call(t)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$ET(e,t){var r;const o=this.constructor.elementProperties.get(e),s=this.constructor._$Eu(e,o);if(s!==void 0&&o.reflect===!0){const n=(((r=o.converter)==null?void 0:r.toAttribute)!==void 0?o.converter:qo).toAttribute(t,o.type);this._$Em=e,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null}}_$AK(e,t){var r,o,s,n;const a=this.constructor,l=a._$Eh.get(e);if(l!==void 0&&this._$Em!==l){const h=a.getPropertyOptions(l),d=typeof h.converter=="function"?{fromAttribute:h.converter}:((r=h.converter)==null?void 0:r.fromAttribute)!==void 0?h.converter:qo;this._$Em=l,this[l]=(n=(s=d.fromAttribute(t,h.type))!=null?s:(o=this._$Ej)==null?void 0:o.get(l))!=null?n:null,this._$Em=null}}requestUpdate(e,t,r){var o,s;if(e!==void 0){const n=this.constructor,a=this[e];if(r!=null||(r=n.getPropertyOptions(e)),!(((o=r.hasChanged)!=null?o:Sl)(a,t)||r.useDefault&&r.reflect&&a===((s=this._$Ej)==null?void 0:s.get(e))&&!this.hasAttribute(n._$Eu(e,r))))return;this.C(e,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:r,reflect:o,wrapped:s},n){var a,l,h;r&&!((a=this._$Ej)!=null?a:this._$Ej=new Map).has(e)&&(this._$Ej.set(e,(l=n!=null?n:t)!=null?l:this[e]),s!==!0||n!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(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 wr(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[s,n]of this._$Ep)this[s]=n;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[s,n]of o){const{wrapped:a}=n,l=this[s];a!==!0||this._$AL.has(s)||l===void 0||this.C(s,void 0,n,l)}}let t=!1;const r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),(e=this._$EO)==null||e.forEach(o=>{var s;return(s=o.hostUpdate)==null?void 0:s.call(o)}),this.update(r)):this._$EM()}catch(o){throw t=!1,this._$EM(),o}t&&this._$AE(r)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(r=>{var o;return(o=r.hostUpdated)==null?void 0:o.call(r)}),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 Ln;Ht.elementStyles=[],Ht.shadowRootOptions={mode:"open"},Ht[Ei("elementProperties")]=new Map,Ht[Ei("finalized")]=new Map,Mn==null||Mn({ReactiveElement:Ht}),((Ln=Xt.reactiveElementVersions)!=null?Ln:Xt.reactiveElementVersions=[]).push("2.1.0");/**
35
35
  * @license
36
36
  * Copyright 2017 Google LLC
37
37
  * SPDX-License-Identifier: BSD-3-Clause
38
- */const xr=globalThis,wr=xr.trustedTypes,Ns=wr?wr.createPolicy("lit-html",{createHTML:i=>i}):void 0,xl="$lit$",tt=`lit$${Math.random().toFixed(9).slice(2)}$`,wl="?"+tt,Ju=`<${wl}>`,xt=document,Ti=()=>xt.createComment(""),Di=i=>i===null||typeof i!="object"&&typeof i!="function",yn=Array.isArray,Zu=i=>yn(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",ho=`[
39
- \f\r]`,fi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Bs=/-->/g,Ms=/>/g,gt=RegExp(`>|${ho}(?:([^\\s"'>=/]+)(${ho}*=${ho}*(?:[^
40
- \f\r"'\`<>=]|("|')|))|$)`,"g"),zs=/'/g,Ls=/"/g,Cl=/^(?:script|style|textarea|title)$/i,Jt=Symbol.for("lit-noChange"),ie=Symbol.for("lit-nothing"),Fs=new WeakMap,vt=xt.createTreeWalker(xt,129);function El(i,e){if(!yn(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ns!==void 0?Ns.createHTML(e):e}const Qu=(i,e)=>{const t=i.length-1,r=[];let o,n=e===2?"<svg>":e===3?"<math>":"",s=fi;for(let a=0;a<t;a++){const l=i[a];let h,d,c=-1,p=0;for(;p<l.length&&(s.lastIndex=p,d=s.exec(l),d!==null);)p=s.lastIndex,s===fi?d[1]==="!--"?s=Bs:d[1]!==void 0?s=Ms:d[2]!==void 0?(Cl.test(d[2])&&(o=RegExp("</"+d[2],"g")),s=gt):d[3]!==void 0&&(s=gt):s===gt?d[0]===">"?(s=o!=null?o:fi,c=-1):d[1]===void 0?c=-2:(c=s.lastIndex-d[2].length,h=d[1],s=d[3]===void 0?gt:d[3]==='"'?Ls:zs):s===Ls||s===zs?s=gt:s===Bs||s===Ms?s=fi:(s=gt,o=void 0);const u=s===gt&&i[a+1].startsWith("/>")?" ":"";n+=s===fi?l+Ju:c>=0?(r.push(h),l.slice(0,c)+xl+l.slice(c)+tt+u):l+tt+(c===-2?a:u)}return[El(i,n+(i[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};class Oi{constructor({strings:e,_$litType$:t},r){let o;this.parts=[];let n=0,s=0;const a=e.length-1,l=this.parts,[h,d]=Qu(e,t);if(this.el=Oi.createElement(h,r),vt.currentNode=this.el.content,t===2||t===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(o=vt.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(const c of o.getAttributeNames())if(c.endsWith(xl)){const p=d[s++],u=o.getAttribute(c).split(tt),g=/([.?@])?(.*)/.exec(p);l.push({type:1,index:n,name:g[2],strings:u,ctor:g[1]==="."?tp:g[1]==="?"?ip:g[1]==="@"?rp:Lr}),o.removeAttribute(c)}else c.startsWith(tt)&&(l.push({type:6,index:n}),o.removeAttribute(c));if(Cl.test(o.tagName)){const c=o.textContent.split(tt),p=c.length-1;if(p>0){o.textContent=wr?wr.emptyScript:"";for(let u=0;u<p;u++)o.append(c[u],Ti()),vt.nextNode(),l.push({type:2,index:++n});o.append(c[p],Ti())}}}else if(o.nodeType===8)if(o.data===wl)l.push({type:2,index:n});else{let c=-1;for(;(c=o.data.indexOf(tt,c+1))!==-1;)l.push({type:7,index:n}),c+=tt.length-1}n++}}static createElement(e,t){const r=xt.createElement("template");return r.innerHTML=e,r}}function Zt(i,e,t=i,r){var o,n,s;if(e===Jt)return e;let a=r!==void 0?(o=t._$Co)==null?void 0:o[r]:t._$Cl;const l=Di(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(i),a._$AT(i,t,r)),r!==void 0?((s=t._$Co)!=null?s:t._$Co=[])[r]=a:t._$Cl=a),a!==void 0&&(e=Zt(i,a._$AS(i,e.values),a,r)),e}class ep{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:r},parts:o}=this._$AD,n=((t=e==null?void 0:e.creationScope)!=null?t:xt).importNode(r,!0);vt.currentNode=n;let s=vt.nextNode(),a=0,l=0,h=o[0];for(;h!==void 0;){if(a===h.index){let d;h.type===2?d=new $i(s,s.nextSibling,this,e):h.type===1?d=new h.ctor(s,h.name,h.strings,this,e):h.type===6&&(d=new op(s,this,e)),this._$AV.push(d),h=o[++l]}a!==(h==null?void 0:h.index)&&(s=vt.nextNode(),a++)}return vt.currentNode=xt,n}p(e){let t=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class $i{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this._$Cv}constructor(e,t,r,o){var n;this.type=2,this._$AH=ie,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,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=Zt(this,e,t),Di(e)?e===ie||e==null||e===""?(this._$AH!==ie&&this._$AR(),this._$AH=ie):e!==this._$AH&&e!==Jt&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Zu(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!==ie&&Di(this._$AH)?this._$AA.nextSibling.data=e:this.T(xt.createTextNode(e)),this._$AH=e}$(e){var t;const{values:r,_$litType$:o}=e,n=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Oi.createElement(El(o.h,o.h[0]),this.options)),o);if(((t=this._$AH)==null?void 0:t._$AD)===n)this._$AH.p(r);else{const s=new ep(n,this),a=s.u(this.options);s.p(r),this.T(a),this._$AH=s}}_$AC(e){let t=Fs.get(e.strings);return t===void 0&&Fs.set(e.strings,t=new Oi(e)),t}k(e){yn(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,o=0;for(const n of e)o===t.length?t.push(r=new $i(this.O(Ti()),this.O(Ti()),this,this.options)):r=t[o],r._$AI(n),o++;o<t.length&&(this._$AR(r&&r._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,t);e&&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 Lr{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,o,n){this.type=1,this._$AH=ie,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=n,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=ie}_$AI(e,t=this,r,o){const n=this.strings;let s=!1;if(n===void 0)e=Zt(this,e,t,0),s=!Di(e)||e!==this._$AH&&e!==Jt,s&&(this._$AH=e);else{const a=e;let l,h;for(e=n[0],l=0;l<n.length-1;l++)h=Zt(this,a[r+l],t,l),h===Jt&&(h=this._$AH[l]),s||(s=!Di(h)||h!==this._$AH[l]),h===ie?e=ie:e!==ie&&(e+=(h!=null?h:"")+n[l+1]),this._$AH[l]=h}s&&!o&&this.j(e)}j(e){e===ie?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class tp extends Lr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ie?void 0:e}}class ip extends Lr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ie)}}class rp extends Lr{constructor(e,t,r,o,n){super(e,t,r,o,n),this.type=5}_$AI(e,t=this){var r;if((e=(r=Zt(this,e,t,0))!=null?r:ie)===Jt)return;const o=this._$AH,n=e===ie&&o!==ie||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,s=e!==ie&&(o===ie||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)==null?void 0:t.host)!=null?r:this.element,e):this._$AH.handleEvent(e)}}class op{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Zt(this,e)}}const Hs=xr.litHtmlPolyfillSupport;var Rs;Hs==null||Hs(Oi,$i),((Rs=xr.litHtmlVersions)!=null?Rs:xr.litHtmlVersions=[]).push("3.2.1");const Sl=(i,e,t)=>{var r,o;const n=(r=t==null?void 0:t.renderBefore)!=null?r: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 $i(e.insertBefore(Ti(),a),a,void 0,t!=null?t:{})}return s._$AI(i),s};/**
38
+ */const Cr=globalThis,Er=Cr.trustedTypes,Fn=Er?Er.createPolicy("lit-html",{createHTML:i=>i}):void 0,Al="$lit$",tt=`lit$${Math.random().toFixed(9).slice(2)}$`,Pl="?"+tt,ip=`<${Pl}>`,xt=document,ki=()=>xt.createComment(""),Ti=i=>i===null||typeof i!="object"&&typeof i!="function",Es=Array.isArray,rp=i=>Es(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",mo=`[
39
+ \f\r]`,mi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Hn=/-->/g,Rn=/>/g,vt=RegExp(`>|${mo}(?:([^\\s"'>=/]+)(${mo}*=${mo}*(?:[^
40
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Vn=/'/g,$n=/"/g,Il=/^(?:script|style|textarea|title)$/i,Kt=Symbol.for("lit-noChange"),ie=Symbol.for("lit-nothing"),Wn=new WeakMap,gt=xt.createTreeWalker(xt,129);function kl(i,e){if(!Es(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Fn!==void 0?Fn.createHTML(e):e}const op=(i,e)=>{const t=i.length-1,r=[];let o,s=e===2?"<svg>":e===3?"<math>":"",n=mi;for(let a=0;a<t;a++){const l=i[a];let h,d,c=-1,p=0;for(;p<l.length&&(n.lastIndex=p,d=n.exec(l),d!==null);)p=n.lastIndex,n===mi?d[1]==="!--"?n=Hn:d[1]!==void 0?n=Rn:d[2]!==void 0?(Il.test(d[2])&&(o=RegExp("</"+d[2],"g")),n=vt):d[3]!==void 0&&(n=vt):n===vt?d[0]===">"?(n=o!=null?o:mi,c=-1):d[1]===void 0?c=-2:(c=n.lastIndex-d[2].length,h=d[1],n=d[3]===void 0?vt:d[3]==='"'?$n:Vn):n===$n||n===Vn?n=vt:n===Hn||n===Rn?n=mi:(n=vt,o=void 0);const u=n===vt&&i[a+1].startsWith("/>")?" ":"";s+=n===mi?l+ip:c>=0?(r.push(h),l.slice(0,c)+Al+l.slice(c)+tt+u):l+tt+(c===-2?a:u)}return[kl(i,s+(i[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};class Di{constructor({strings:e,_$litType$:t},r){let o;this.parts=[];let s=0,n=0;const a=e.length-1,l=this.parts,[h,d]=op(e,t);if(this.el=Di.createElement(h,r),gt.currentNode=this.el.content,t===2||t===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(o=gt.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(const c of o.getAttributeNames())if(c.endsWith(Al)){const p=d[n++],u=o.getAttribute(c).split(tt),v=/([.?@])?(.*)/.exec(p);l.push({type:1,index:s,name:v[2],strings:u,ctor:v[1]==="."?np:v[1]==="?"?ap:v[1]==="@"?lp:Rr}),o.removeAttribute(c)}else c.startsWith(tt)&&(l.push({type:6,index:s}),o.removeAttribute(c));if(Il.test(o.tagName)){const c=o.textContent.split(tt),p=c.length-1;if(p>0){o.textContent=Er?Er.emptyScript:"";for(let u=0;u<p;u++)o.append(c[u],ki()),gt.nextNode(),l.push({type:2,index:++s});o.append(c[p],ki())}}}else if(o.nodeType===8)if(o.data===Pl)l.push({type:2,index:s});else{let c=-1;for(;(c=o.data.indexOf(tt,c+1))!==-1;)l.push({type:7,index:s}),c+=tt.length-1}s++}}static createElement(e,t){const r=xt.createElement("template");return r.innerHTML=e,r}}function Jt(i,e,t=i,r){var o,s,n;if(e===Kt)return e;let a=r!==void 0?(o=t._$Co)==null?void 0:o[r]:t._$Cl;const l=Ti(e)?void 0:e._$litDirective$;return(a==null?void 0:a.constructor)!==l&&((s=a==null?void 0:a._$AO)==null||s.call(a,!1),l===void 0?a=void 0:(a=new l(i),a._$AT(i,t,r)),r!==void 0?((n=t._$Co)!=null?n:t._$Co=[])[r]=a:t._$Cl=a),a!==void 0&&(e=Jt(i,a._$AS(i,e.values),a,r)),e}class sp{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:r},parts:o}=this._$AD,s=((t=e==null?void 0:e.creationScope)!=null?t:xt).importNode(r,!0);gt.currentNode=s;let n=gt.nextNode(),a=0,l=0,h=o[0];for(;h!==void 0;){if(a===h.index){let d;h.type===2?d=new Wi(n,n.nextSibling,this,e):h.type===1?d=new h.ctor(n,h.name,h.strings,this,e):h.type===6&&(d=new hp(n,this,e)),this._$AV.push(d),h=o[++l]}a!==(h==null?void 0:h.index)&&(n=gt.nextNode(),a++)}return gt.currentNode=xt,s}p(e){let t=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class Wi{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this._$Cv}constructor(e,t,r,o){var s;this.type=2,this._$AH=ie,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=o,this._$Cv=(s=o==null?void 0:o.isConnected)!=null?s:!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=Jt(this,e,t),Ti(e)?e===ie||e==null||e===""?(this._$AH!==ie&&this._$AR(),this._$AH=ie):e!==this._$AH&&e!==Kt&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):rp(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!==ie&&Ti(this._$AH)?this._$AA.nextSibling.data=e:this.T(xt.createTextNode(e)),this._$AH=e}$(e){var t;const{values:r,_$litType$:o}=e,s=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Di.createElement(kl(o.h,o.h[0]),this.options)),o);if(((t=this._$AH)==null?void 0:t._$AD)===s)this._$AH.p(r);else{const n=new sp(s,this),a=n.u(this.options);n.p(r),this.T(a),this._$AH=n}}_$AC(e){let t=Wn.get(e.strings);return t===void 0&&Wn.set(e.strings,t=new Di(e)),t}k(e){Es(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,o=0;for(const s of e)o===t.length?t.push(r=new Wi(this.O(ki()),this.O(ki()),this,this.options)):r=t[o],r._$AI(s),o++;o<t.length&&(this._$AR(r&&r._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,t);e&&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 Rr{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,o,s){this.type=1,this._$AH=ie,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=ie}_$AI(e,t=this,r,o){const s=this.strings;let n=!1;if(s===void 0)e=Jt(this,e,t,0),n=!Ti(e)||e!==this._$AH&&e!==Kt,n&&(this._$AH=e);else{const a=e;let l,h;for(e=s[0],l=0;l<s.length-1;l++)h=Jt(this,a[r+l],t,l),h===Kt&&(h=this._$AH[l]),n||(n=!Ti(h)||h!==this._$AH[l]),h===ie?e=ie:e!==ie&&(e+=(h!=null?h:"")+s[l+1]),this._$AH[l]=h}n&&!o&&this.j(e)}j(e){e===ie?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class np extends Rr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ie?void 0:e}}class ap extends Rr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ie)}}class lp extends Rr{constructor(e,t,r,o,s){super(e,t,r,o,s),this.type=5}_$AI(e,t=this){var r;if((e=(r=Jt(this,e,t,0))!=null?r:ie)===Kt)return;const o=this._$AH,s=e===ie&&o!==ie||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,n=e!==ie&&(o===ie||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)==null?void 0:t.host)!=null?r:this.element,e):this._$AH.handleEvent(e)}}class hp{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Jt(this,e)}}const Un=Cr.litHtmlPolyfillSupport;var jn;Un==null||Un(Di,Wi),((jn=Cr.litHtmlVersions)!=null?jn:Cr.litHtmlVersions=[]).push("3.3.0");const Tl=(i,e,t)=>{var r,o;const s=(r=t==null?void 0:t.renderBefore)!=null?r:e;let n=s._$litPart$;if(n===void 0){const a=(o=t==null?void 0:t.renderBefore)!=null?o:null;s._$litPart$=n=new Wi(e.insertBefore(ki(),a),a,void 0,t!=null?t:{})}return n._$AI(i),n};/**
41
41
  * @license
42
42
  * Copyright 2017 Google LLC
43
43
  * SPDX-License-Identifier: BSD-3-Clause
44
- */class $t extends Ht{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=Sl(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 Jt}}var Vs;$t._$litElement$=!0,$t.finalized=!0,(Vs=globalThis.litElementHydrateSupport)==null||Vs.call(globalThis,{LitElement:$t});const $s=globalThis.litElementPolyfillSupport;$s==null||$s({LitElement:$t});var Us;((Us=globalThis.litElementVersions)!=null?Us:globalThis.litElementVersions=[]).push("4.1.1");/**
44
+ */const Oi=globalThis;class Vt extends Ht{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=Tl(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 Kt}}var Gn;Vt._$litElement$=!0,Vt.finalized=!0,(Gn=Oi.litElementHydrateSupport)==null||Gn.call(Oi,{LitElement:Vt});const qn=Oi.litElementPolyfillSupport;qn==null||qn({LitElement:Vt});var Yn;((Yn=Oi.litElementVersions)!=null?Yn:Oi.litElementVersions=[]).push("4.2.0");/**
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/
48
- */const Al=i=>class extends i{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,t,r){super.attributeChangedCallback(e,t,r),e==="theme"&&this._set_theme(r)}};/**
48
+ */const Dl=i=>class extends i{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,t,r){super.attributeChangedCallback(e,t,r),e==="theme"&&this._set_theme(r)}};/**
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 Pl=[],$o=new Set,xn=new Set;function Il(i){return i&&Object.prototype.hasOwnProperty.call(i,"__themes")}function np(i){return Il(customElements.get(i))}function sp(i=[]){return[i].flat(1/0).filter(e=>e instanceof bn?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function kl(i,e){return(i||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function Tl(i){return i.map(e=>e.cssText).join(`
53
- `)}const Cr="vaadin-themable-mixin-style";function ap(i,e){const t=document.createElement("style");t.id=Cr,t.textContent=Tl(i),e.content.appendChild(t)}function lp(i){if(!i.shadowRoot)return;const e=i.constructor;if(i instanceof $t)[...i.shadowRoot.querySelectorAll("style")].forEach(t=>t.remove()),bl(i.shadowRoot,e.elementStyles);else{const t=i.shadowRoot.getElementById(Cr),r=e.prototype._template;t.textContent=r.content.getElementById(Cr).textContent}}function hp(i){$o.forEach(e=>{const t=e.deref();t instanceof i?lp(t):t||$o.delete(e)})}function Dl(i){if(i.prototype instanceof $t)i.elementStyles=i.finalizeStyles(i.styles);else{const e=i.prototype._template;e.content.getElementById(Cr).textContent=Tl(i.getStylesForThis())}xn.forEach(e=>{const t=customElements.get(e);t!==i&&t.prototype instanceof i&&Dl(t)})}function dp(i,e){const t=i.__themes;return!t||!e?!1:t.some(r=>r.styles.some(o=>e.some(n=>n.cssText===o.cssText)))}function w(i,e,t={}){e=sp(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(i,e,t):Pl.push({themeFor:i,styles:e,include:t.include,moduleId:t.moduleId}),i&&xn.forEach(r=>{if(kl(i,r)&&np(r)){const o=customElements.get(r);dp(o,e)?console.warn(`Registering styles that already exist for ${r}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${r}" 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".`),Dl(o),hp(o)}})}function Uo(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Pl}function cp(i=""){let e=0;return i.startsWith("lumo-")||i.startsWith("material-")?e=1:i.startsWith("vaadin-")&&(e=2),e}function Ol(i){const e=[];return i.include&&[].concat(i.include).forEach(t=>{const r=Uo().find(o=>o.moduleId===t);r?e.push(...Ol(r),...r.styles):console.warn(`Included moduleId ${t} not found in style registry`)},i.styles),e}function up(i){const e=`${i}-default-theme`,t=Uo().filter(r=>r.moduleId!==e&&kl(r.themeFor,i)).map(r=>vl(br({},r),{styles:[...Ol(r),...r.styles],includePriority:cp(r.moduleId)})).sort((r,o)=>o.includePriority-r.includePriority);return t.length>0?t:Uo().filter(r=>r.moduleId===e)}const U=i=>class extends Al(i){constructor(){super(),$o.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&xn.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||Il(this)||ap(this.getStylesForThis(),e)}static finalizeStyles(e){const t=this.getStylesForThis();return e?[...[e].flat(1/0),...t]:t}static getStylesForThis(){const e=i.__themes||[],t=Object.getPrototypeOf(this.prototype),r=(t?t.constructor.__themes:[])||[];this.__themes=[...e,...r,...up(this.is)];const o=this.__themes.flatMap(n=>n.styles);return o.filter((n,s)=>s===o.lastIndexOf(n))}};/**
52
+ */const Ol=[],Yo=new Set,Ss=new Set;function Nl(i){return i&&Object.prototype.hasOwnProperty.call(i,"__themes")}function dp(i){return Nl(customElements.get(i))}function cp(i=[]){return[i].flat(1/0).filter(e=>e instanceof Cs?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function Bl(i,e){return(i||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function Ml(i){return i.map(e=>e.cssText).join(`
53
+ `)}const Sr="vaadin-themable-mixin-style";function up(i,e){const t=document.createElement("style");t.id=Sr,t.textContent=Ml(i),e.content.appendChild(t)}function pp(i){if(!i.shadowRoot)return;const e=i.constructor;if(i instanceof Vt)[...i.shadowRoot.querySelectorAll("style")].forEach(t=>t.remove()),El(i.shadowRoot,e.elementStyles);else{const t=i.shadowRoot.getElementById(Sr),r=e.prototype._template;t.textContent=r.content.getElementById(Sr).textContent}}function mp(i){Yo.forEach(e=>{const t=e.deref();t instanceof i?pp(t):t||Yo.delete(e)})}function zl(i){if(i.prototype instanceof Vt)i.elementStyles=i.finalizeStyles(i.styles);else{const e=i.prototype._template;e.content.getElementById(Sr).textContent=Ml(i.getStylesForThis())}Ss.forEach(e=>{const t=customElements.get(e);t!==i&&t.prototype instanceof i&&zl(t)})}function _p(i,e){const t=i.__themes;return!t||!e?!1:t.some(r=>r.styles.some(o=>e.some(s=>s.cssText===o.cssText)))}function w(i,e,t={}){e=cp(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(i,e,t):Ol.push({themeFor:i,styles:e,include:t.include,moduleId:t.moduleId}),i&&Ss.forEach(r=>{if(Bl(i,r)&&dp(r)){const o=customElements.get(r);_p(o,e)?console.warn(`Registering styles that already exist for ${r}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${r}" 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".`),zl(o),mp(o)}})}function Xo(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Ol}function fp(i=""){let e=0;return i.startsWith("lumo-")||i.startsWith("material-")?e=1:i.startsWith("vaadin-")&&(e=2),e}function Ll(i){const e=[];return i.include&&[].concat(i.include).forEach(t=>{const r=Xo().find(o=>o.moduleId===t);r?e.push(...Ll(r),...r.styles):console.warn(`Included moduleId ${t} not found in style registry`)},i.styles),e}function vp(i){const e=`${i}-default-theme`,t=Xo().filter(r=>r.moduleId!==e&&Bl(r.themeFor,i)).map(r=>Cl(xr({},r),{styles:[...Ll(r),...r.styles],includePriority:fp(r.moduleId)})).sort((r,o)=>o.includePriority-r.includePriority);return t.length>0?t:Xo().filter(r=>r.moduleId===e)}const $=i=>class extends Dl(i){constructor(){super(),Yo.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&Ss.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||Nl(this)||up(this.getStylesForThis(),e)}static finalizeStyles(e){const t=this.getStylesForThis();return e?[...[e].flat(1/0),...t]:t}static getStylesForThis(){const e=i.__themes||[],t=Object.getPrototypeOf(this.prototype),r=(t?t.constructor.__themes:[])||[];this.__themes=[...e,...r,...vp(this.is)];const o=this.__themes.flatMap(s=>s.styles);return o.filter((s,n)=>n===o.lastIndexOf(s))}};/**
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 pp=(i,...e)=>{const t=document.createElement("style");t.id=i,t.textContent=e.map(r=>r.toString()).join(`
58
- `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",t)},oi=(i,...e)=>{pp(`lumo-${i}`,e)};/**
57
+ */const gp=(i,...e)=>{const t=document.createElement("style");t.id=i,t.textContent=e.map(r=>r.toString()).join(`
58
+ `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",t)},ri=(i,...e)=>{gp(`lumo-${i}`,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 mp=y`
62
+ */const bp=y`
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
- `;oi("color-props",mp);const fp=y`
147
+ `;ri("color-props",bp);const yp=y`
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
- `;w("",fp,{moduleId:"lumo-color"});/**
265
+ `;w("",yp,{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 _p=y`
269
+ */const xp=y`
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
- `;oi("font-icons",_p);/**
322
+ `;ri("font-icons",xp);/**
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 gp=y`
326
+ */const wp=y`
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
- `;oi("sizing-props",gp);/**
341
+ `;ri("sizing-props",wp);/**
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 vp=y`
345
+ */const Cp=y`
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
- `;oi("spacing-props",vp);/**
368
+ `;ri("spacing-props",Cp);/**
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 bp=y`
372
+ */const Ep=y`
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
- `;oi("style-props",bp);/**
472
+ `;ri("style-props",Ep);/**
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 yp=y`
476
+ */const Sp=y`
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
- `,xp=y`
496
+ `,Ap=y`
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
- `;w("",xp,{moduleId:"lumo-typography"});oi("typography-props",yp);w("vaadin-checkbox",y`
588
+ `;w("",Ap,{moduleId:"lumo-typography"});ri("typography-props",Sp);w("vaadin-checkbox",y`
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 wp=/(url\()([^)]*)(\))/g,Cp=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,tr,be;function Ai(i,e){if(i&&Cp.test(i)||i==="//")return i;if(tr===void 0){tr=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",tr=t.href==="http://a/c%20d"}catch(t){}}if(e||(e=document.baseURI||window.location.href),tr)try{return new URL(i,e).href}catch(t){return i}return be||(be=document.implementation.createHTMLDocument("temp"),be.base=be.createElement("base"),be.head.appendChild(be.base),be.anchor=be.createElement("a"),be.body.appendChild(be.anchor)),be.base.href=e,be.anchor.href=i,be.anchor.href||i}function wn(i,e){return i.replace(wp,function(t,r,o,n){return r+"'"+Ai(o.replace(/["']/g,""),e)+"'"+n})}function Cn(i){return i.substring(0,i.lastIndexOf("/")+1)}/**
908
+ */let Pp=/(url\()([^)]*)(\))/g,Ip=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,ir,be;function Si(i,e){if(i&&Ip.test(i)||i==="//")return i;if(ir===void 0){ir=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",ir=t.href==="http://a/c%20d"}catch(t){}}if(e||(e=document.baseURI||window.location.href),ir)try{return new URL(i,e).href}catch(t){return i}return be||(be=document.implementation.createHTMLDocument("temp"),be.base=be.createElement("base"),be.head.appendChild(be.base),be.anchor=be.createElement("a"),be.body.appendChild(be.anchor)),be.base.href=e,be.anchor.href=i,be.anchor.href||i}function As(i,e){return i.replace(Pp,function(t,r,o,s){return r+"'"+Si(o.replace(/["']/g,""),e)+"'"+s})}function Ps(i){return i.substring(0,i.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 Nl=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const Ep=Nl&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const i=new CSSStyleSheet;i.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[i],e.shadowRoot.adoptedStyleSheets[0]===i}catch(i){return!1}})();let Sp=window.Polymer&&window.Polymer.rootPath||Cn(document.baseURI||window.location.href),Er=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let Sr=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Ap=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Bl=window.Polymer&&window.Polymer.legacyOptimizations||!1,Ml=window.Polymer&&window.Polymer.legacyWarnings||!1,Pp=window.Polymer&&window.Polymer.syncInitialRender||!1,Wo=window.Polymer&&window.Polymer.legacyUndefined||!1,Ip=window.Polymer&&window.Polymer.orderedComputed||!1,Ws=window.Polymer&&window.Polymer.removeNestedTemplates||!1,kp=window.Polymer&&window.Polymer.fastDomIf||!1,js=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let Tp=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
916
+ */const Fl=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const kp=Fl&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const i=new CSSStyleSheet;i.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[i],e.shadowRoot.adoptedStyleSheets[0]===i}catch(i){return!1}})();let Tp=window.Polymer&&window.Polymer.rootPath||Ps(document.baseURI||window.location.href),Ar=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let Pr=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Dp=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Hl=window.Polymer&&window.Polymer.legacyOptimizations||!1,Rl=window.Polymer&&window.Polymer.legacyWarnings||!1,Op=window.Polymer&&window.Polymer.syncInitialRender||!1,Ko=window.Polymer&&window.Polymer.legacyUndefined||!1,Np=window.Polymer&&window.Polymer.orderedComputed||!1,Xn=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Bp=window.Polymer&&window.Polymer.fastDomIf||!1,Kn=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let Mp=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 Dp=0;const K=function(i){let e=i.__mixinApplications;e||(e=new WeakMap,i.__mixinApplications=e);let t=Dp++;function r(o){let n=o.__mixinSet;if(n&&n[t])return o;let s=e,a=s.get(o);if(!a){a=i(o),s.set(o,a);let l=Object.create(a.__mixinSet||n||null);l[t]=!0,a.__mixinSet=l}return a}return r};/**
924
+ */let zp=0;const K=function(i){let e=i.__mixinApplications;e||(e=new WeakMap,i.__mixinApplications=e);let t=zp++;function r(o){let s=o.__mixinSet;if(s&&s[t])return o;let n=e,a=n.get(o);if(!a){a=i(o),n.set(o,a);let l=Object.create(a.__mixinSet||s||null);l[t]=!0,a.__mixinSet=l}return a}return r};/**
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 En={},zl={};function Gs(i,e){En[i]=zl[i.toLowerCase()]=e}function qs(i){return En[i]||zl[i.toLowerCase()]}function Op(i){i.querySelector("style")&&console.warn("dom-module %s has style outside template",i.id)}class Ni extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let r=qs(e);return r&&t?r.querySelector(t):r}return null}attributeChangedCallback(e,t,r,o){t!==r&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=Ai(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=Cn(t)}return this.__assetpath}register(e){if(e=e||this.id,e){if(Sr&&qs(e)!==void 0)throw Gs(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,Gs(e,this),Op(this)}}}Ni.prototype.modules=En;customElements.define("dom-module",Ni);/**
932
+ */let Is={},Vl={};function Jn(i,e){Is[i]=Vl[i.toLowerCase()]=e}function Zn(i){return Is[i]||Vl[i.toLowerCase()]}function Lp(i){i.querySelector("style")&&console.warn("dom-module %s has style outside template",i.id)}class Ni extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let r=Zn(e);return r&&t?r.querySelector(t):r}return null}attributeChangedCallback(e,t,r,o){t!==r&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=Si(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=Ps(t)}return this.__assetpath}register(e){if(e=e||this.id,e){if(Pr&&Zn(e)!==void 0)throw Jn(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,Jn(e,this),Lp(this)}}}Ni.prototype.modules=Is;customElements.define("dom-module",Ni);/**
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 Np="link[rel=import][type~=css]",Bp="include",Ys="shady-unscoped";function Ll(i){return Ni.import(i)}function Xs(i){let e=i.body?i.body:i;const t=wn(e.textContent,i.baseURI),r=document.createElement("style");return r.textContent=t,r}function Mp(i){const e=i.trim().split(/\s+/),t=[];for(let r=0;r<e.length;r++)t.push(...zp(e[r]));return t}function zp(i){const e=Ll(i);if(!e)return console.warn("Could not find style data in module named",i),[];if(e._styles===void 0){const t=[];t.push(...Hl(e));const r=e.querySelector("template");r&&t.push(...Fl(r,e.assetpath)),e._styles=t}return e._styles}function Fl(i,e){if(!i._styles){const t=[],r=i.content.querySelectorAll("style");for(let o=0;o<r.length;o++){let n=r[o],s=n.getAttribute(Bp);s&&t.push(...Mp(s).filter(function(a,l,h){return h.indexOf(a)===l})),e&&(n.textContent=wn(n.textContent,e)),t.push(n)}i._styles=t}return i._styles}function Lp(i){let e=Ll(i);return e?Hl(e):[]}function Hl(i){const e=[],t=i.querySelectorAll(Np);for(let r=0;r<t.length;r++){let o=t[r];if(o.import){const n=o.import,s=o.hasAttribute(Ys);if(s&&!n._unscopedStyle){const a=Xs(n);a.setAttribute(Ys,""),n._unscopedStyle=a}else n._style||(n._style=Xs(n));e.push(s?n._unscopedStyle:n._style)}}return e}/**
940
+ */const Fp="link[rel=import][type~=css]",Hp="include",Qn="shady-unscoped";function $l(i){return Ni.import(i)}function ea(i){let e=i.body?i.body:i;const t=As(e.textContent,i.baseURI),r=document.createElement("style");return r.textContent=t,r}function Rp(i){const e=i.trim().split(/\s+/),t=[];for(let r=0;r<e.length;r++)t.push(...Vp(e[r]));return t}function Vp(i){const e=$l(i);if(!e)return console.warn("Could not find style data in module named",i),[];if(e._styles===void 0){const t=[];t.push(...Ul(e));const r=e.querySelector("template");r&&t.push(...Wl(r,e.assetpath)),e._styles=t}return e._styles}function Wl(i,e){if(!i._styles){const t=[],r=i.content.querySelectorAll("style");for(let o=0;o<r.length;o++){let s=r[o],n=s.getAttribute(Hp);n&&t.push(...Rp(n).filter(function(a,l,h){return h.indexOf(a)===l})),e&&(s.textContent=As(s.textContent,e)),t.push(s)}i._styles=t}return i._styles}function $p(i){let e=$l(i);return e?Ul(e):[]}function Ul(i){const e=[],t=i.querySelectorAll(Fp);for(let r=0;r<t.length;r++){let o=t[r];if(o.import){const s=o.import,n=o.hasAttribute(Qn);if(n&&!s._unscopedStyle){const a=ea(s);a.setAttribute(Qn,""),s._unscopedStyle=a}else s._style||(s._style=ea(s));e.push(n?s._unscopedStyle:s._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
@@ -945,7 +945,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
945
945
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
946
946
  Code distributed by Google as part of the polymer project is also
947
947
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
948
- */const ne=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?i=>ShadyDOM.patch(i):i=>i;/**
948
+ */const se=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?i=>ShadyDOM.patch(i):i=>i;/**
949
949
  @license
950
950
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
951
951
  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 jo(i){return i.indexOf(".")>=0}function Ct(i){let e=i.indexOf(".");return e===-1?i:i.slice(0,e)}function Rl(i,e){return i.indexOf(e+".")===0}function Bi(i,e){return e.indexOf(i+".")===0}function Mi(i,e,t){return e+t.slice(i.length)}function Fp(i,e){return i===e||Rl(i,e)||Bi(i,e)}function yi(i){if(Array.isArray(i)){let e=[];for(let t=0;t<i.length;t++){let r=i[t].toString().split(".");for(let o=0;o<r.length;o++)e.push(r[o])}return e.join(".")}else return i}function Vl(i){return Array.isArray(i)?yi(i).split("."):i.toString().split(".")}function _e(i,e,t){let r=i,o=Vl(e);for(let n=0;n<o.length;n++){if(!r)return;let s=o[n];r=r[s]}return t&&(t.path=o.join(".")),r}function Ks(i,e,t){let r=i,o=Vl(e),n=o[o.length-1];if(o.length>1){for(let s=0;s<o.length-1;s++){let a=o[s];if(r=r[a],!r)return}r[n]=t}else r[e]=t;return o.join(".")}/**
956
+ */function Jo(i){return i.indexOf(".")>=0}function Ct(i){let e=i.indexOf(".");return e===-1?i:i.slice(0,e)}function jl(i,e){return i.indexOf(e+".")===0}function Bi(i,e){return e.indexOf(i+".")===0}function Mi(i,e,t){return e+t.slice(i.length)}function Wp(i,e){return i===e||jl(i,e)||Bi(i,e)}function bi(i){if(Array.isArray(i)){let e=[];for(let t=0;t<i.length;t++){let r=i[t].toString().split(".");for(let o=0;o<r.length;o++)e.push(r[o])}return e.join(".")}else return i}function Gl(i){return Array.isArray(i)?bi(i).split("."):i.toString().split(".")}function fe(i,e,t){let r=i,o=Gl(e);for(let s=0;s<o.length;s++){if(!r)return;let n=o[s];r=r[n]}return t&&(t.path=o.join(".")),r}function ta(i,e,t){let r=i,o=Gl(e),s=o[o.length-1];if(o.length>1){for(let n=0;n<o.length-1;n++){let a=o[n];if(r=r[a],!r)return}r[s]=t}else r[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 Ar={},Hp=/-[a-z]/g,Rp=/([A-Z])/g;function $l(i){return Ar[i]||(Ar[i]=i.indexOf("-")<0?i:i.replace(Hp,e=>e[1].toUpperCase()))}function Fr(i){return Ar[i]||(Ar[i]=i.replace(Rp,"-$1").toLowerCase())}/**
964
+ */const Ir={},Up=/-[a-z]/g,jp=/([A-Z])/g;function ql(i){return Ir[i]||(Ir[i]=i.indexOf("-")<0?i:i.replace(Up,e=>e[1].toUpperCase()))}function Vr(i){return Ir[i]||(Ir[i]=i.replace(jp,"-$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 Vp=0,Ul=0,Ut=[],$p=0,Go=!1,Wl=document.createTextNode("");new window.MutationObserver(Up).observe(Wl,{characterData:!0});function Up(){Go=!1;const i=Ut.length;for(let e=0;e<i;e++){let t=Ut[e];if(t)try{t()}catch(r){setTimeout(()=>{throw r})}}Ut.splice(0,i),Ul+=i}const Wp={after(i){return{run(e){return window.setTimeout(e,i)},cancel(e){window.clearTimeout(e)}}},run(i,e){return window.setTimeout(i,e)},cancel(i){window.clearTimeout(i)}},jl={run(i){return Go||(Go=!0,Wl.textContent=$p++),Ut.push(i),Vp++},cancel(i){const e=i-Ul;if(e>=0){if(!Ut[e])throw new Error("invalid async handle: "+i);Ut[e]=null}}};/**
972
+ */let Gp=0,Yl=0,$t=[],qp=0,Zo=!1,Xl=document.createTextNode("");new window.MutationObserver(Yp).observe(Xl,{characterData:!0});function Yp(){Zo=!1;const i=$t.length;for(let e=0;e<i;e++){let t=$t[e];if(t)try{t()}catch(r){setTimeout(()=>{throw r})}}$t.splice(0,i),Yl+=i}const Xp={after(i){return{run(e){return window.setTimeout(e,i)},cancel(e){window.clearTimeout(e)}}},run(i,e){return window.setTimeout(i,e)},cancel(i){window.clearTimeout(i)}},Kl={run(i){return Zo||(Zo=!0,Xl.textContent=qp++),$t.push(i),Gp++},cancel(i){const e=i-Yl;if(e>=0){if(!$t[e])throw new Error("invalid async handle: "+i);$t[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 jp=jl,Gl=K(i=>{class e extends i{static createProperties(r){const o=this.prototype;for(let n in r)n in o||o._createPropertyAccessor(n)}static attributeNameForProperty(r){return r.toLowerCase()}static typeForProperty(r){}_createPropertyAccessor(r,o){this._addPropertyToAttributeMap(r),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[r]||(this.__dataHasAccessor[r]=!0,this._definePropertyAccessor(r,o))}_addPropertyToAttributeMap(r){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let o=this.__dataAttributes[r];return o||(o=this.constructor.attributeNameForProperty(r),this.__dataAttributes[o]=r),o}_definePropertyAccessor(r,o){Object.defineProperty(this,r,{get(){return this.__data[r]},set:o?function(){}:function(n){this._setPendingProperty(r,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 r in this.__dataHasAccessor)this.hasOwnProperty(r)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[r]=this[r],delete this[r])}_initializeInstanceProperties(r){Object.assign(this,r)}_setProperty(r,o){this._setPendingProperty(r,o)&&this._invalidateProperties()}_getProperty(r){return this.__data[r]}_setPendingProperty(r,o,n){let s=this.__data[r],a=this._shouldPropertyChange(r,o,s);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(r in this.__dataOld)&&(this.__dataOld[r]=s),this.__data[r]=o,this.__dataPending[r]=o),a}_isPropertyPending(r){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(r))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,jp.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 r=this.__data,o=this.__dataPending,n=this.__dataOld;this._shouldPropertiesChange(r,o,n)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(r,o,n)),this.__dataCounter--}_shouldPropertiesChange(r,o,n){return!!o}_propertiesChanged(r,o,n){}_shouldPropertyChange(r,o,n){return n!==o&&(n===n||o===o)}attributeChangedCallback(r,o,n,s){o!==n&&this._attributeToProperty(r,n),super.attributeChangedCallback&&super.attributeChangedCallback(r,o,n,s)}_attributeToProperty(r,o,n){if(!this.__serializing){const s=this.__dataAttributes,a=s&&s[r]||r;this[a]=this._deserializeValue(o,n||this.constructor.typeForProperty(a))}}_propertyToAttribute(r,o,n){this.__serializing=!0,n=arguments.length<3?this[r]:n,this._valueToNodeAttribute(this,n,o||this.constructor.attributeNameForProperty(r)),this.__serializing=!1}_valueToNodeAttribute(r,o,n){const s=this._serializeValue(o);(n==="class"||n==="name"||n==="slot")&&(r=ne(r)),s===void 0?r.removeAttribute(n):r.setAttribute(n,s===""&&window.trustedTypes?window.trustedTypes.emptyScript:s)}_serializeValue(r){switch(typeof r){case"boolean":return r?"":void 0;default:return r!=null?r.toString():void 0}}_deserializeValue(r,o){switch(o){case Boolean:return r!==null;case Number:return Number(r);default:return r}}}return e});/**
980
+ */const Kp=Kl,Jl=K(i=>{class e extends i{static createProperties(r){const o=this.prototype;for(let s in r)s in o||o._createPropertyAccessor(s)}static attributeNameForProperty(r){return r.toLowerCase()}static typeForProperty(r){}_createPropertyAccessor(r,o){this._addPropertyToAttributeMap(r),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[r]||(this.__dataHasAccessor[r]=!0,this._definePropertyAccessor(r,o))}_addPropertyToAttributeMap(r){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let o=this.__dataAttributes[r];return o||(o=this.constructor.attributeNameForProperty(r),this.__dataAttributes[o]=r),o}_definePropertyAccessor(r,o){Object.defineProperty(this,r,{get(){return this.__data[r]},set:o?function(){}:function(s){this._setPendingProperty(r,s,!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 r in this.__dataHasAccessor)this.hasOwnProperty(r)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[r]=this[r],delete this[r])}_initializeInstanceProperties(r){Object.assign(this,r)}_setProperty(r,o){this._setPendingProperty(r,o)&&this._invalidateProperties()}_getProperty(r){return this.__data[r]}_setPendingProperty(r,o,s){let n=this.__data[r],a=this._shouldPropertyChange(r,o,n);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(r in this.__dataOld)&&(this.__dataOld[r]=n),this.__data[r]=o,this.__dataPending[r]=o),a}_isPropertyPending(r){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(r))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Kp.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 r=this.__data,o=this.__dataPending,s=this.__dataOld;this._shouldPropertiesChange(r,o,s)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(r,o,s)),this.__dataCounter--}_shouldPropertiesChange(r,o,s){return!!o}_propertiesChanged(r,o,s){}_shouldPropertyChange(r,o,s){return s!==o&&(s===s||o===o)}attributeChangedCallback(r,o,s,n){o!==s&&this._attributeToProperty(r,s),super.attributeChangedCallback&&super.attributeChangedCallback(r,o,s,n)}_attributeToProperty(r,o,s){if(!this.__serializing){const n=this.__dataAttributes,a=n&&n[r]||r;this[a]=this._deserializeValue(o,s||this.constructor.typeForProperty(a))}}_propertyToAttribute(r,o,s){this.__serializing=!0,s=arguments.length<3?this[r]:s,this._valueToNodeAttribute(this,s,o||this.constructor.attributeNameForProperty(r)),this.__serializing=!1}_valueToNodeAttribute(r,o,s){const n=this._serializeValue(o);(s==="class"||s==="name"||s==="slot")&&(r=se(r)),n===void 0?r.removeAttribute(s):r.setAttribute(s,n===""&&window.trustedTypes?window.trustedTypes.emptyScript:n)}_serializeValue(r){switch(typeof r){case"boolean":return r?"":void 0;default:return r!=null?r.toString():void 0}}_deserializeValue(r,o){switch(o){case Boolean:return r!==null;case Number:return Number(r);default:return r}}}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 ql={};let ir=HTMLElement.prototype;for(;ir;){let i=Object.getOwnPropertyNames(ir);for(let e=0;e<i.length;e++)ql[i[e]]=!0;ir=Object.getPrototypeOf(ir)}const Gp=window.trustedTypes?i=>trustedTypes.isHTML(i)||trustedTypes.isScript(i)||trustedTypes.isScriptURL(i):()=>!1;function qp(i,e){if(!ql[e]){let t=i[e];t!==void 0&&(i.__data?i._setPendingProperty(e,t):(i.__dataProto?i.hasOwnProperty(JSCompiler_renameProperty("__dataProto",i))||(i.__dataProto=Object.create(i.__dataProto)):i.__dataProto={},i.__dataProto[e]=t))}}const Yp=K(i=>{const e=Gl(i);class t extends e{static createPropertiesForAttributes(){let o=this.observedAttributes;for(let n=0;n<o.length;n++)this.prototype._createPropertyAccessor($l(o[n]))}static attributeNameForProperty(o){return Fr(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(Gp(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){qp(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 Zl={};let rr=HTMLElement.prototype;for(;rr;){let i=Object.getOwnPropertyNames(rr);for(let e=0;e<i.length;e++)Zl[i[e]]=!0;rr=Object.getPrototypeOf(rr)}const Jp=window.trustedTypes?i=>trustedTypes.isHTML(i)||trustedTypes.isScript(i)||trustedTypes.isScriptURL(i):()=>!1;function Zp(i,e){if(!Zl[e]){let t=i[e];t!==void 0&&(i.__data?i._setPendingProperty(e,t):(i.__dataProto?i.hasOwnProperty(JSCompiler_renameProperty("__dataProto",i))||(i.__dataProto=Object.create(i.__dataProto)):i.__dataProto={},i.__dataProto[e]=t))}}const Qp=K(i=>{const e=Jl(i);class t extends e{static createPropertiesForAttributes(){let o=this.observedAttributes;for(let s=0;s<o.length;s++)this.prototype._createPropertyAccessor(ql(o[s]))}static attributeNameForProperty(o){return Vr(o)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(o){for(let s in o)this._setProperty(s,o[s])}_ensureAttribute(o,s){const n=this;n.hasAttribute(o)||this._valueToNodeAttribute(n,s,o)}_serializeValue(o){switch(typeof o){case"object":if(o instanceof Date)return o.toString();if(o){if(Jp(o))return o;try{return JSON.stringify(o)}catch(s){return""}}default:return super._serializeValue(o)}}_deserializeValue(o,s){let n;switch(s){case Object:try{n=JSON.parse(o)}catch(a){n=o}break;case Array:try{n=JSON.parse(o)}catch(a){n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${o}`)}break;case Date:n=isNaN(o)?String(o):Number(o),n=new Date(n);break;default:n=super._deserializeValue(o,s);break}return n}_definePropertyAccessor(o,s){Zp(this,o),super._definePropertyAccessor(o,s)}_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 Xp={"dom-if":!0,"dom-repeat":!0};let Js=!1,Zs=!1;function Kp(){if(!Js){Js=!0;const i=document.createElement("textarea");i.placeholder="a",Zs=i.placeholder===i.textContent}return Zs}function Jp(i){Kp()&&i.localName==="textarea"&&i.placeholder&&i.placeholder===i.textContent&&(i.textContent=null)}const Zp=(()=>{const i=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,r)=>{const o=t.getAttribute(r);if(i&&r.startsWith("on-")){e.setAttribute(r,i.createScript(o,r));return}e.setAttribute(r,o)}})();function Qp(i){let e=i.getAttribute("is");if(e&&Xp[e]){let t=i;for(t.removeAttribute("is"),i=t.ownerDocument.createElement(e),t.parentNode.replaceChild(i,t),i.appendChild(t);t.attributes.length;){const{name:r}=t.attributes[0];Zp(i,t,r),t.removeAttribute(r)}}return i}function Yl(i,e){let t=e.parentInfo&&Yl(i,e.parentInfo);if(t){for(let r=t.firstChild,o=0;r;r=r.nextSibling)if(e.parentIndex===o++)return r}else return i}function em(i,e,t,r){r.id&&(e[r.id]=t)}function tm(i,e,t){if(t.events&&t.events.length)for(let r=0,o=t.events,n;r<o.length&&(n=o[r]);r++)i._addMethodEventListenerToNode(e,n.name,n.value,i)}function im(i,e,t,r){t.templateInfo&&(e._templateInfo=t.templateInfo,e._parentTemplateInfo=r)}function rm(i,e,t){return i=i._methodHost||i,function(r){i[t]?i[t](r,r.detail):console.warn("listener method `"+t+"` not defined")}}const om=K(i=>{class e extends i{static _parseTemplate(r,o){if(!r._templateInfo){let n=r._templateInfo={};n.nodeInfoList=[],n.nestedTemplate=!!o,n.stripWhiteSpace=o&&o.stripWhiteSpace||r.hasAttribute&&r.hasAttribute("strip-whitespace"),this._parseTemplateContent(r,n,{parent:null})}return r._templateInfo}static _parseTemplateContent(r,o,n){return this._parseTemplateNode(r.content,o,n)}static _parseTemplateNode(r,o,n){let s=!1,a=r;return a.localName=="template"&&!a.hasAttribute("preserve-content")?s=this._parseTemplateNestedTemplate(a,o,n)||s:a.localName==="slot"&&(o.hasInsertionPoint=!0),Jp(a),a.firstChild&&this._parseTemplateChildNodes(a,o,n),a.hasAttributes&&a.hasAttributes()&&(s=this._parseTemplateNodeAttributes(a,o,n)||s),s||n.noted}static _parseTemplateChildNodes(r,o,n){if(!(r.localName==="script"||r.localName==="style"))for(let s=r.firstChild,a=0,l;s;s=l){if(s.localName=="template"&&(s=Qp(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,r.removeChild(d),d=l;if(o.stripWhiteSpace&&!s.textContent.trim()){r.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(r,o,n){let s=r,a=this._parseTemplate(s,o);return(a.content=s.content.ownerDocument.createDocumentFragment()).appendChild(s.content),n.templateInfo=a,!0}static _parseTemplateNodeAttributes(r,o,n){let s=!1,a=Array.from(r.attributes);for(let l=a.length-1,h;h=a[l];l--)s=this._parseTemplateNodeAttribute(r,o,n,h.name,h.value)||s;return s}static _parseTemplateNodeAttribute(r,o,n,s,a){return s.slice(0,3)==="on-"?(r.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(r){let o=r._templateInfo;return o&&o.content||r.content}_stampTemplate(r,o){r&&!r.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(r),o=o||this.constructor._parseTemplate(r);let n=o.nodeInfoList,s=o.content||r.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 p=l[h]=Yl(a,c);em(this,a.$,p,c),im(this,p,c,o),tm(this,p,c)}return a=a,a}_addMethodEventListenerToNode(r,o,n,s){s=s||r;let a=rm(s,o,n);return this._addEventListenerToNode(r,o,a),a}_addEventListenerToNode(r,o,n){r.addEventListener(o,n)}_removeEventListenerFromNode(r,o,n){r.removeEventListener(o,n)}}return e});/**
996
+ */const em={"dom-if":!0,"dom-repeat":!0};let ia=!1,ra=!1;function tm(){if(!ia){ia=!0;const i=document.createElement("textarea");i.placeholder="a",ra=i.placeholder===i.textContent}return ra}function im(i){tm()&&i.localName==="textarea"&&i.placeholder&&i.placeholder===i.textContent&&(i.textContent=null)}const rm=(()=>{const i=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,r)=>{const o=t.getAttribute(r);if(i&&r.startsWith("on-")){e.setAttribute(r,i.createScript(o,r));return}e.setAttribute(r,o)}})();function om(i){let e=i.getAttribute("is");if(e&&em[e]){let t=i;for(t.removeAttribute("is"),i=t.ownerDocument.createElement(e),t.parentNode.replaceChild(i,t),i.appendChild(t);t.attributes.length;){const{name:r}=t.attributes[0];rm(i,t,r),t.removeAttribute(r)}}return i}function Ql(i,e){let t=e.parentInfo&&Ql(i,e.parentInfo);if(t){for(let r=t.firstChild,o=0;r;r=r.nextSibling)if(e.parentIndex===o++)return r}else return i}function sm(i,e,t,r){r.id&&(e[r.id]=t)}function nm(i,e,t){if(t.events&&t.events.length)for(let r=0,o=t.events,s;r<o.length&&(s=o[r]);r++)i._addMethodEventListenerToNode(e,s.name,s.value,i)}function am(i,e,t,r){t.templateInfo&&(e._templateInfo=t.templateInfo,e._parentTemplateInfo=r)}function lm(i,e,t){return i=i._methodHost||i,function(r){i[t]?i[t](r,r.detail):console.warn("listener method `"+t+"` not defined")}}const hm=K(i=>{class e extends i{static _parseTemplate(r,o){if(!r._templateInfo){let s=r._templateInfo={};s.nodeInfoList=[],s.nestedTemplate=!!o,s.stripWhiteSpace=o&&o.stripWhiteSpace||r.hasAttribute&&r.hasAttribute("strip-whitespace"),this._parseTemplateContent(r,s,{parent:null})}return r._templateInfo}static _parseTemplateContent(r,o,s){return this._parseTemplateNode(r.content,o,s)}static _parseTemplateNode(r,o,s){let n=!1,a=r;return a.localName=="template"&&!a.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(a,o,s)||n:a.localName==="slot"&&(o.hasInsertionPoint=!0),im(a),a.firstChild&&this._parseTemplateChildNodes(a,o,s),a.hasAttributes&&a.hasAttributes()&&(n=this._parseTemplateNodeAttributes(a,o,s)||n),n||s.noted}static _parseTemplateChildNodes(r,o,s){if(!(r.localName==="script"||r.localName==="style"))for(let n=r.firstChild,a=0,l;n;n=l){if(n.localName=="template"&&(n=om(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let d=l;for(;d&&d.nodeType===Node.TEXT_NODE;)n.textContent+=d.textContent,l=d.nextSibling,r.removeChild(d),d=l;if(o.stripWhiteSpace&&!n.textContent.trim()){r.removeChild(n);continue}}let h={parentIndex:a,parentInfo:s};this._parseTemplateNode(n,o,h)&&(h.infoIndex=o.nodeInfoList.push(h)-1),n.parentNode&&a++}}static _parseTemplateNestedTemplate(r,o,s){let n=r,a=this._parseTemplate(n,o);return(a.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),s.templateInfo=a,!0}static _parseTemplateNodeAttributes(r,o,s){let n=!1,a=Array.from(r.attributes);for(let l=a.length-1,h;h=a[l];l--)n=this._parseTemplateNodeAttribute(r,o,s,h.name,h.value)||n;return n}static _parseTemplateNodeAttribute(r,o,s,n,a){return n.slice(0,3)==="on-"?(r.removeAttribute(n),s.events=s.events||[],s.events.push({name:n.slice(3),value:a}),!0):n==="id"?(s.id=a,!0):!1}static _contentForTemplate(r){let o=r._templateInfo;return o&&o.content||r.content}_stampTemplate(r,o){r&&!r.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(r),o=o||this.constructor._parseTemplate(r);let s=o.nodeInfoList,n=o.content||r.content,a=document.importNode(n,!0);a.__noInsertionPoint=!o.hasInsertionPoint;let l=a.nodeList=new Array(s.length);a.$={};for(let h=0,d=s.length,c;h<d&&(c=s[h]);h++){let p=l[h]=Ql(a,c);sm(this,a.$,p,c),am(this,p,c,o),nm(this,p,c)}return a=a,a}_addMethodEventListenerToNode(r,o,s,n){n=n||r;let a=lm(n,o,s);return this._addEventListenerToNode(r,o,a),a}_addEventListenerToNode(r,o,s){r.addEventListener(o,s)}_removeEventListenerFromNode(r,o,s){r.removeEventListener(o,s)}}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 zi=0;const Li=[],B={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Xl="__computeInfo",nm=/[A-Z]/;function co(i,e,t){let r=i[e];if(!r)r=i[e]={};else if(!i.hasOwnProperty(e)&&(r=i[e]=Object.create(i[e]),t))for(let o in r){let n=r[o],s=r[o]=Array(n.length);for(let a=0;a<n.length;a++)s[a]=n[a]}return r}function xi(i,e,t,r,o,n){if(e){let s=!1;const a=zi++;for(let l in t){let h=o?Ct(l):l,d=e[h];if(d)for(let c=0,p=d.length,u;c<p&&(u=d[c]);c++)(!u.info||u.info.lastRun!==a)&&(!o||Sn(l,u.trigger))&&(u.info&&(u.info.lastRun=a),u.fn(i,l,t,r,u.info,o,n),s=!0)}return s}return!1}function sm(i,e,t,r,o,n,s,a){let l=!1,h=s?Ct(r):r,d=e[h];if(d)for(let c=0,p=d.length,u;c<p&&(u=d[c]);c++)(!u.info||u.info.lastRun!==t)&&(!s||Sn(r,u.trigger))&&(u.info&&(u.info.lastRun=t),u.fn(i,r,o,n,u.info,s,a),l=!0);return l}function Sn(i,e){if(e){let t=e.name;return t==i||!!(e.structured&&Rl(t,i))||!!(e.wildcard&&Bi(t,i))}else return!0}function Qs(i,e,t,r,o){let n=typeof o.method=="string"?i[o.method]:o.method,s=o.property;n?n.call(i,i.__data[s],r[s]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined")}function am(i,e,t,r,o){let n=i[B.NOTIFY],s,a=zi++;for(let h in e)e[h]&&(n&&sm(i,n,a,h,t,r,o)||o&&lm(i,h,t))&&(s=!0);let l;s&&(l=i.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function lm(i,e,t){let r=Ct(e);if(r!==e){let o=Fr(r)+"-changed";return Kl(i,o,t[e],e),!0}return!1}function Kl(i,e,t,r){let o={value:t,queueProperty:!0};r&&(o.path=r),ne(i).dispatchEvent(new CustomEvent(e,{detail:o}))}function hm(i,e,t,r,o,n){let s=(n?Ct(e):e)!=e?e:null,a=s?_e(i,s):i.__data[e];s&&a===void 0&&(a=t[e]),Kl(i,o.eventName,a,s)}function dm(i,e,t,r,o){let n,s=i.detail,a=s&&s.path;a?(r=Mi(t,r,a),n=s&&s.value):n=i.currentTarget[t],n=o?!n:n,(!e[B.READ_ONLY]||!e[B.READ_ONLY][r])&&e._setPendingPropertyOrPath(r,n,!0,!!a)&&(!s||!s.queueProperty)&&e._invalidateProperties()}function cm(i,e,t,r,o){let n=i.__data[e];Er&&(n=Er(n,o.attrName,"attribute",i)),i._propertyToAttribute(e,o.attrName,n)}function um(i,e,t,r){let o=i[B.COMPUTE];if(o)if(Ip){zi++;const n=mm(i),s=[];for(let l in e)ea(l,o,s,n,r);let a;for(;a=s.shift();)Jl(i,"",e,t,a)&&ea(a.methodInfo,o,s,n,r);Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),i.__dataPending=null}else{let n=e;for(;xi(i,o,n,t,r);)Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),n=i.__dataPending,i.__dataPending=null}}const pm=(i,e,t)=>{let r=0,o=e.length-1,n=-1;for(;r<=o;){const s=r+o>>1,a=t.get(e[s].methodInfo)-t.get(i.methodInfo);if(a<0)r=s+1;else if(a>0)o=s-1;else{n=s;break}}n<0&&(n=o+1),e.splice(n,0,i)},ea=(i,e,t,r,o)=>{const n=o?Ct(i):i,s=e[n];if(s)for(let a=0;a<s.length;a++){const l=s[a];l.info.lastRun!==zi&&(!o||Sn(i,l.trigger))&&(l.info.lastRun=zi,pm(l.info,t,r))}};function mm(i){let e=i.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=i[B.COMPUTE];let{counts:r,ready:o,total:n}=fm(i),s;for(;s=o.shift();){e.set(s,e.size);const a=t[s];a&&a.forEach(l=>{const h=l.info.methodInfo;--n,--r[h]===0&&o.push(h)})}n!==0&&console.warn(`Computed graph for ${i.localName} incomplete; circular?`),i.constructor.__orderedComputedDeps=e}return e}function fm(i){const e=i[Xl],t={},r=i[B.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 r)e[s]||o.push(s);return{counts:t,ready:o,total:n}}function Jl(i,e,t,r,o){let n=qo(i,e,t,r,o);if(n===Li)return!1;let s=o.methodInfo;return i.__dataHasAccessor&&i.__dataHasAccessor[s]?i._setPendingProperty(s,n,!0):(i[s]=n,!1)}function _m(i,e,t){let r=i.__dataLinkedPaths;if(r){let o;for(let n in r){let s=r[n];Bi(n,e)?(o=Mi(n,s,e),i._setPendingPropertyOrPath(o,t,!0,!0)):Bi(s,e)&&(o=Mi(s,n,e),i._setPendingPropertyOrPath(o,t,!0,!0))}}}function uo(i,e,t,r,o,n,s){t.bindings=t.bindings||[];let a={kind:r,target:o,parts:n,literal:s,isCompound:n.length!==1};if(t.bindings.push(a),xm(a)){let{event:h,negate:d}=a.parts[0];a.listenerEvent=h||Fr(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,gm(i,e,a,d,l)}}function gm(i,e,t,r,o){if(!r.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=r.dependencies,s={index:o,binding:t,part:r,evaluator:i};for(let a=0;a<n.length;a++){let l=n[a];typeof l=="string"&&(l=Ql(l),l.wildcard=!0),i._addTemplatePropertyEffect(e,l.rootProperty,{fn:vm,info:s,trigger:l})}}}function vm(i,e,t,r,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=Mi(h.source,l.target,e),a._setPendingPropertyOrPath(e,d,!1,!0)&&i._enqueueClient(a)}else{let d=o.evaluator._evaluateBinding(i,h,e,t,r,n);d!==Li&&bm(i,a,l,h,d)}}function bm(i,e,t,r,o){if(o=ym(e,o,t,r),Er&&(o=Er(o,t.target,t.kind,e)),t.kind=="attribute")i._valueToNodeAttribute(e,o,t.target);else{let n=t.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[n]?(!e[B.READ_ONLY]||!e[B.READ_ONLY][n])&&e._setPendingProperty(n,o)&&i._enqueueClient(e):i._setUnmanagedPropertyToNode(e,n,o)}}function ym(i,e,t,r){if(t.isCompound){let o=i.__dataCompoundStorage[t.target];o[r.compoundIndex]=e,e=o.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(i.localName==="input"||i.localName==="textarea"))&&(e=e==null?"":e),e}function xm(i){return!!i.target&&i.kind!="attribute"&&i.kind!="text"&&!i.isCompound&&i.parts[0].mode==="{"}function wm(i,e){let{nodeList:t,nodeInfoList:r}=e;if(r.length)for(let o=0;o<r.length;o++){let n=r[o],s=t[o],a=n.bindings;if(a)for(let l=0;l<a.length;l++){let h=a[l];Cm(s,h),Em(s,i,h)}s.__dataHost=i}}function Cm(i,e){if(e.isCompound){let t=i.__dataCompoundStorage||(i.__dataCompoundStorage={}),r=e.parts,o=new Array(r.length);for(let s=0;s<r.length;s++)o[s]=r[s].literal;let n=e.target;t[n]=o,e.literal&&e.kind=="property"&&(n==="className"&&(i=ne(i)),i[n]=e.literal)}}function Em(i,e,t){if(t.listenerEvent){let r=t.parts[0];i.addEventListener(t.listenerEvent,function(o){dm(o,e,t.target,r.source,r.negate)})}}function ta(i,e,t,r,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||i._addPropertyEffect(l.rootProperty,t,{fn:r,info:s,trigger:l});return n&&i._addPropertyEffect(e.methodName,t,{fn:r,info:s}),s}function qo(i,e,t,r,o){let n=i._methodHost||i,s=n[o.methodName];if(s){let a=i._marshalArgs(o.args,e,t);return a===Li?Li:s.apply(n,a)}else o.dynamicFn||console.warn("method `"+o.methodName+"` not defined")}const Sm=[],Zl="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Am="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Pm="(?:'(?:[^'\\\\]|\\\\.)*')",Im='(?:"(?:[^"\\\\]|\\\\.)*")',km="(?:"+Pm+"|"+Im+")",ia="(?:("+Zl+"|"+Am+"|"+km+")\\s*)",Tm="(?:"+ia+"(?:,\\s*"+ia+")*)",Dm="(?:\\(\\s*(?:"+Tm+"?)\\)\\s*)",Om="("+Zl+"\\s*"+Dm+"?)",Nm="(\\[\\[|{{)\\s*",Bm="(?:]]|}})",Mm="(?:(!)\\s*)?",zm=Nm+Mm+Om+Bm,ra=new RegExp(zm,"g");function oa(i){let e="";for(let t=0;t<i.length;t++){let r=i[t].literal;e+=r||""}return e}function po(i){let e=i.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:Sm};if(e[2].trim()){let r=e[2].replace(/\\,/g,"&comma;").split(",");return Lm(r,t)}else return t}return null}function Lm(i,e){return e.args=i.map(function(t){let r=Ql(t);return r.literal||(e.static=!1),r},this),e}function Ql(i){let e=i.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},r=e[0];switch(r==="-"&&(r=e[1]),r>="0"&&r<="9"&&(r="#"),r){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=Ct(e),t.structured=jo(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function na(i,e,t){let r=_e(i,t);return r===void 0&&(r=e[t]),r}function eh(i,e,t,r){const o={indexSplices:r};Wo&&!i._overrideLegacyUndefined&&(e.splices=o),i.notifyPath(t+".splices",o),i.notifyPath(t+".length",e.length),Wo&&!i._overrideLegacyUndefined&&(o.indexSplices=[])}function _i(i,e,t,r,o,n){eh(i,e,t,[{index:r,addedCount:o,removed:n,object:e,type:"splice"}])}function Fm(i){return i[0].toUpperCase()+i.substring(1)}const An=K(i=>{const e=om(Yp(i));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 B}_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(gi.length){let o=gi[gi.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[B.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==B.READ_ONLY);let a=co(this,n,!0)[o];a||(a=this[n][o]=[]),a.push(s)}_removePropertyEffect(o,n,s){let a=co(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,B.READ_ONLY)}_hasNotifyEffect(o){return this._hasPropertyEffect(o,B.NOTIFY)}_hasReflectEffect(o){return this._hasPropertyEffect(o,B.REFLECT)}_hasComputedEffect(o){return this._hasPropertyEffect(o,B.COMPUTE)}_setPendingPropertyOrPath(o,n,s,a){if(a||Ct(Array.isArray(o)?o[0]:o)!==o){if(!a){let l=_e(this,o);if(o=Ks(this,o,n),!o||!super._shouldPropertyChange(o,n,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(o,n,s))return _m(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=ne(o)),o[n]=s)}_setPendingProperty(o,n,s){let a=this.__dataHasPaths&&jo(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[B.NOTIFY]&&this[B.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[B.READ_ONLY]||!this[B.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;um(this,n,s,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(n,s,a),this._flushClients(),xi(this,this[B.REFLECT],n,s,a),xi(this,this[B.OBSERVE],n,s,a),l&&am(this,l,n,s,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(o,n,s){this[B.PROPAGATE]&&xi(this,this[B.PROPAGATE],o,n,s),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,o,n,s)}_runEffectsForTemplate(o,n,s,a){const l=(h,d)=>{xi(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=yi(o),n=yi(n),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[o]=n}unlinkPaths(o){o=yi(o),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[o]}notifySplices(o,n){let s={path:""},a=_e(this,o,s);eh(this,a,s.path,n)}get(o,n){return _e(n||this,o)}set(o,n,s){s?Ks(s,o,n):(!this[B.READ_ONLY]||!this[B.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,n,!0)&&this._invalidateProperties()}push(o,...n){let s={path:""},a=_e(this,o,s),l=a.length,h=a.push(...n);return n.length&&_i(this,a,s.path,l,n.length,[]),h}pop(o){let n={path:""},s=_e(this,o,n),a=!!s.length,l=s.pop();return a&&_i(this,s,n.path,s.length,0,[l]),l}splice(o,n,s,...a){let l={path:""},h=_e(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)&&_i(this,h,l.path,n,a.length,d),d}shift(o){let n={path:""},s=_e(this,o,n),a=!!s.length,l=s.shift();return a&&_i(this,s,n.path,0,0,[l]),l}unshift(o,...n){let s={path:""},a=_e(this,o,s),l=a.unshift(...n);return n.length&&_i(this,a,s.path,0,n.length,[]),l}notifyPath(o,n){let s;if(arguments.length==1){let a={path:""};n=_e(this,o,a),s=a.path}else Array.isArray(o)?s=yi(o):s=o;this._setPendingPropertyOrPath(s,n,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(o,n){this._addPropertyEffect(o,B.READ_ONLY),n&&(this["_set"+Fm(o)]=function(s){this._setProperty(o,s)})}_createPropertyObserver(o,n,s){let a={property:o,method:n,dynamicFn:!!s};this._addPropertyEffect(o,B.OBSERVE,{fn:Qs,info:a,trigger:{name:o}}),s&&this._addPropertyEffect(n,B.OBSERVE,{fn:Qs,info:a,trigger:{name:n}})}_createMethodObserver(o,n){let s=po(o);if(!s)throw new Error("Malformed observer expression '"+o+"'");ta(this,s,B.OBSERVE,qo,null,n)}_createNotifyingProperty(o){this._addPropertyEffect(o,B.NOTIFY,{fn:hm,info:{eventName:Fr(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,B.REFLECT,{fn:cm,info:{attrName:n}})}_createComputedProperty(o,n,s){let a=po(n);if(!a)throw new Error("Malformed computed expression '"+n+"'");const l=ta(this,a,B.COMPUTE,Jl,o,s);co(this,Xl)[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:p,wildcard:u,value:g,literal:x}=o[h];if(!x)if(u){const P=Bi(c,n),A=na(a,s,P?n:c);g={path:P?n:c,value:A,base:P?_e(a,c):A}}else g=p?na(a,s,c):a[c];if(Wo&&!this._overrideLegacyUndefined&&g===void 0&&o.length>1)return Li;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),gi.push(this);let s=super._stampTemplate(o,n);if(gi.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,wm(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];ne(ne(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=oa(l)||" ",uo(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";nm.test(a)?c="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),c="attribute");let p=oa(h);return p&&c=="attribute"&&(a=="class"&&o.hasAttribute("class")&&(p+=" "+o.getAttribute(a)),o.setAttribute(a,p)),c=="attribute"&&d=="disable-upgrade$"&&o.setAttribute(a,""),o.localName==="input"&&d==="value"&&o.setAttribute(d,""),o.removeAttribute(d),c==="property"&&(a=$l(a)),uo(this,n,s,c,a,h,p),!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";Ws&&(d||c)&&(l.removeChild(o),s=s.parentInfo,s.templateInfo=h,s.noted=!0,a=!1);let p=h.hostProps;if(kp&&d)p&&(n.hostProps=Object.assign(n.hostProps||{},p),Ws||(s.parentInfo.noted=!0));else{let u="{";for(let g in p){let x=[{mode:u,source:g,dependencies:[g],hostProp:!0}];uo(this,n,s,"property","_host_"+g,x)}}return a}static _parseBindings(o,n){let s=[],a=0,l;for(;(l=ra.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(),p=!1,u="",g=-1;h=="{"&&(g=c.indexOf("::"))>0&&(u=c.substring(g+2),c=c.substring(0,g),p=!0);let x=po(c),P=[];if(x){let{args:A,methodName:L}=x;for(let $=0;$<A.length;$++){let W=A[$];W.literal||P.push(W)}let k=n.dynamicFns;(k&&k[L]||x.static)&&(P.push(L),x.dynamicFn=!0)}else P.push(c);s.push({source:c,mode:h,negate:d,customEvent:p,signature:x,dependencies:P,event:u}),a=ra.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=qo(o,s,a,l,n.signature):s!=n.source?d=_e(o,n.source):h&&jo(s)?d=_e(o,s):d=o.__data[s],n.negate&&(d=!d),d}}return t}),gi=[];/**
1006
+ */let zi=0;const Li=[],B={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},eh="__computeInfo",dm=/[A-Z]/;function _o(i,e,t){let r=i[e];if(!r)r=i[e]={};else if(!i.hasOwnProperty(e)&&(r=i[e]=Object.create(i[e]),t))for(let o in r){let s=r[o],n=r[o]=Array(s.length);for(let a=0;a<s.length;a++)n[a]=s[a]}return r}function yi(i,e,t,r,o,s){if(e){let n=!1;const a=zi++;for(let l in t){let h=o?Ct(l):l,d=e[h];if(d)for(let c=0,p=d.length,u;c<p&&(u=d[c]);c++)(!u.info||u.info.lastRun!==a)&&(!o||ks(l,u.trigger))&&(u.info&&(u.info.lastRun=a),u.fn(i,l,t,r,u.info,o,s),n=!0)}return n}return!1}function cm(i,e,t,r,o,s,n,a){let l=!1,h=n?Ct(r):r,d=e[h];if(d)for(let c=0,p=d.length,u;c<p&&(u=d[c]);c++)(!u.info||u.info.lastRun!==t)&&(!n||ks(r,u.trigger))&&(u.info&&(u.info.lastRun=t),u.fn(i,r,o,s,u.info,n,a),l=!0);return l}function ks(i,e){if(e){let t=e.name;return t==i||!!(e.structured&&jl(t,i))||!!(e.wildcard&&Bi(t,i))}else return!0}function oa(i,e,t,r,o){let s=typeof o.method=="string"?i[o.method]:o.method,n=o.property;s?s.call(i,i.__data[n],r[n]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined")}function um(i,e,t,r,o){let s=i[B.NOTIFY],n,a=zi++;for(let h in e)e[h]&&(s&&cm(i,s,a,h,t,r,o)||o&&pm(i,h,t))&&(n=!0);let l;n&&(l=i.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function pm(i,e,t){let r=Ct(e);if(r!==e){let o=Vr(r)+"-changed";return th(i,o,t[e],e),!0}return!1}function th(i,e,t,r){let o={value:t,queueProperty:!0};r&&(o.path=r),se(i).dispatchEvent(new CustomEvent(e,{detail:o}))}function mm(i,e,t,r,o,s){let n=(s?Ct(e):e)!=e?e:null,a=n?fe(i,n):i.__data[e];n&&a===void 0&&(a=t[e]),th(i,o.eventName,a,n)}function _m(i,e,t,r,o){let s,n=i.detail,a=n&&n.path;a?(r=Mi(t,r,a),s=n&&n.value):s=i.currentTarget[t],s=o?!s:s,(!e[B.READ_ONLY]||!e[B.READ_ONLY][r])&&e._setPendingPropertyOrPath(r,s,!0,!!a)&&(!n||!n.queueProperty)&&e._invalidateProperties()}function fm(i,e,t,r,o){let s=i.__data[e];Ar&&(s=Ar(s,o.attrName,"attribute",i)),i._propertyToAttribute(e,o.attrName,s)}function vm(i,e,t,r){let o=i[B.COMPUTE];if(o)if(Np){zi++;const s=bm(i),n=[];for(let l in e)sa(l,o,n,s,r);let a;for(;a=n.shift();)ih(i,"",e,t,a)&&sa(a.methodInfo,o,n,s,r);Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),i.__dataPending=null}else{let s=e;for(;yi(i,o,s,t,r);)Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),s=i.__dataPending,i.__dataPending=null}}const gm=(i,e,t)=>{let r=0,o=e.length-1,s=-1;for(;r<=o;){const n=r+o>>1,a=t.get(e[n].methodInfo)-t.get(i.methodInfo);if(a<0)r=n+1;else if(a>0)o=n-1;else{s=n;break}}s<0&&(s=o+1),e.splice(s,0,i)},sa=(i,e,t,r,o)=>{const s=o?Ct(i):i,n=e[s];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==zi&&(!o||ks(i,l.trigger))&&(l.info.lastRun=zi,gm(l.info,t,r))}};function bm(i){let e=i.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=i[B.COMPUTE];let{counts:r,ready:o,total:s}=ym(i),n;for(;n=o.shift();){e.set(n,e.size);const a=t[n];a&&a.forEach(l=>{const h=l.info.methodInfo;--s,--r[h]===0&&o.push(h)})}s!==0&&console.warn(`Computed graph for ${i.localName} incomplete; circular?`),i.constructor.__orderedComputedDeps=e}return e}function ym(i){const e=i[eh],t={},r=i[B.COMPUTE],o=[];let s=0;for(let n in e){const a=e[n];s+=t[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let n in r)e[n]||o.push(n);return{counts:t,ready:o,total:s}}function ih(i,e,t,r,o){let s=Qo(i,e,t,r,o);if(s===Li)return!1;let n=o.methodInfo;return i.__dataHasAccessor&&i.__dataHasAccessor[n]?i._setPendingProperty(n,s,!0):(i[n]=s,!1)}function xm(i,e,t){let r=i.__dataLinkedPaths;if(r){let o;for(let s in r){let n=r[s];Bi(s,e)?(o=Mi(s,n,e),i._setPendingPropertyOrPath(o,t,!0,!0)):Bi(n,e)&&(o=Mi(n,s,e),i._setPendingPropertyOrPath(o,t,!0,!0))}}}function fo(i,e,t,r,o,s,n){t.bindings=t.bindings||[];let a={kind:r,target:o,parts:s,literal:n,isCompound:s.length!==1};if(t.bindings.push(a),Am(a)){let{event:h,negate:d}=a.parts[0];a.listenerEvent=h||Vr(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,wm(i,e,a,d,l)}}function wm(i,e,t,r,o){if(!r.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 s=r.dependencies,n={index:o,binding:t,part:r,evaluator:i};for(let a=0;a<s.length;a++){let l=s[a];typeof l=="string"&&(l=oh(l),l.wildcard=!0),i._addTemplatePropertyEffect(e,l.rootProperty,{fn:Cm,info:n,trigger:l})}}}function Cm(i,e,t,r,o,s,n){let a=n[o.index],l=o.binding,h=o.part;if(s&&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=Mi(h.source,l.target,e),a._setPendingPropertyOrPath(e,d,!1,!0)&&i._enqueueClient(a)}else{let d=o.evaluator._evaluateBinding(i,h,e,t,r,s);d!==Li&&Em(i,a,l,h,d)}}function Em(i,e,t,r,o){if(o=Sm(e,o,t,r),Ar&&(o=Ar(o,t.target,t.kind,e)),t.kind=="attribute")i._valueToNodeAttribute(e,o,t.target);else{let s=t.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[s]?(!e[B.READ_ONLY]||!e[B.READ_ONLY][s])&&e._setPendingProperty(s,o)&&i._enqueueClient(e):i._setUnmanagedPropertyToNode(e,s,o)}}function Sm(i,e,t,r){if(t.isCompound){let o=i.__dataCompoundStorage[t.target];o[r.compoundIndex]=e,e=o.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(i.localName==="input"||i.localName==="textarea"))&&(e=e==null?"":e),e}function Am(i){return!!i.target&&i.kind!="attribute"&&i.kind!="text"&&!i.isCompound&&i.parts[0].mode==="{"}function Pm(i,e){let{nodeList:t,nodeInfoList:r}=e;if(r.length)for(let o=0;o<r.length;o++){let s=r[o],n=t[o],a=s.bindings;if(a)for(let l=0;l<a.length;l++){let h=a[l];Im(n,h),km(n,i,h)}n.__dataHost=i}}function Im(i,e){if(e.isCompound){let t=i.__dataCompoundStorage||(i.__dataCompoundStorage={}),r=e.parts,o=new Array(r.length);for(let n=0;n<r.length;n++)o[n]=r[n].literal;let s=e.target;t[s]=o,e.literal&&e.kind=="property"&&(s==="className"&&(i=se(i)),i[s]=e.literal)}}function km(i,e,t){if(t.listenerEvent){let r=t.parts[0];i.addEventListener(t.listenerEvent,function(o){_m(o,e,t.target,r.source,r.negate)})}}function na(i,e,t,r,o,s){s=e.static||s&&(typeof s!="object"||s[e.methodName]);let n={methodName:e.methodName,args:e.args,methodInfo:o,dynamicFn:s};for(let a=0,l;a<e.args.length&&(l=e.args[a]);a++)l.literal||i._addPropertyEffect(l.rootProperty,t,{fn:r,info:n,trigger:l});return s&&i._addPropertyEffect(e.methodName,t,{fn:r,info:n}),n}function Qo(i,e,t,r,o){let s=i._methodHost||i,n=s[o.methodName];if(n){let a=i._marshalArgs(o.args,e,t);return a===Li?Li:n.apply(s,a)}else o.dynamicFn||console.warn("method `"+o.methodName+"` not defined")}const Tm=[],rh="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Dm="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Om="(?:'(?:[^'\\\\]|\\\\.)*')",Nm='(?:"(?:[^"\\\\]|\\\\.)*")',Bm="(?:"+Om+"|"+Nm+")",aa="(?:("+rh+"|"+Dm+"|"+Bm+")\\s*)",Mm="(?:"+aa+"(?:,\\s*"+aa+")*)",zm="(?:\\(\\s*(?:"+Mm+"?)\\)\\s*)",Lm="("+rh+"\\s*"+zm+"?)",Fm="(\\[\\[|{{)\\s*",Hm="(?:]]|}})",Rm="(?:(!)\\s*)?",Vm=Fm+Rm+Lm+Hm,la=new RegExp(Vm,"g");function ha(i){let e="";for(let t=0;t<i.length;t++){let r=i[t].literal;e+=r||""}return e}function vo(i){let e=i.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:Tm};if(e[2].trim()){let r=e[2].replace(/\\,/g,"&comma;").split(",");return $m(r,t)}else return t}return null}function $m(i,e){return e.args=i.map(function(t){let r=oh(t);return r.literal||(e.static=!1),r},this),e}function oh(i){let e=i.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},r=e[0];switch(r==="-"&&(r=e[1]),r>="0"&&r<="9"&&(r="#"),r){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=Ct(e),t.structured=Jo(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function da(i,e,t){let r=fe(i,t);return r===void 0&&(r=e[t]),r}function sh(i,e,t,r){const o={indexSplices:r};Ko&&!i._overrideLegacyUndefined&&(e.splices=o),i.notifyPath(t+".splices",o),i.notifyPath(t+".length",e.length),Ko&&!i._overrideLegacyUndefined&&(o.indexSplices=[])}function _i(i,e,t,r,o,s){sh(i,e,t,[{index:r,addedCount:o,removed:s,object:e,type:"splice"}])}function Wm(i){return i[0].toUpperCase()+i.substring(1)}const Ts=K(i=>{const e=hm(Qp(i));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 B}_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(fi.length){let o=fi[fi.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 s=this[B.READ_ONLY];for(let n in o)(!s||!s[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=o[n])}_addPropertyEffect(o,s,n){this._createPropertyAccessor(o,s==B.READ_ONLY);let a=_o(this,s,!0)[o];a||(a=this[s][o]=[]),a.push(n)}_removePropertyEffect(o,s,n){let a=_o(this,s,!0)[o],l=a.indexOf(n);l>=0&&a.splice(l,1)}_hasPropertyEffect(o,s){let n=this[s];return!!(n&&n[o])}_hasReadOnlyEffect(o){return this._hasPropertyEffect(o,B.READ_ONLY)}_hasNotifyEffect(o){return this._hasPropertyEffect(o,B.NOTIFY)}_hasReflectEffect(o){return this._hasPropertyEffect(o,B.REFLECT)}_hasComputedEffect(o){return this._hasPropertyEffect(o,B.COMPUTE)}_setPendingPropertyOrPath(o,s,n,a){if(a||Ct(Array.isArray(o)?o[0]:o)!==o){if(!a){let l=fe(this,o);if(o=ta(this,o,s),!o||!super._shouldPropertyChange(o,s,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(o,s,n))return xm(this,o,s),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[o])return this._setPendingProperty(o,s,n);this[o]=s}return!1}_setUnmanagedPropertyToNode(o,s,n){(n!==o[s]||typeof n=="object")&&(s==="className"&&(o=se(o)),o[s]=n)}_setPendingProperty(o,s,n){let a=this.__dataHasPaths&&Jo(o),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(o,s,l[o])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),o in this.__dataOld||(this.__dataOld[o]=this.__data[o]),a?this.__dataTemp[o]=s:this.__data[o]=s,this.__dataPending[o]=s,(a||this[B.NOTIFY]&&this[B.NOTIFY][o])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[o]=n),!0):!1}_setProperty(o,s){this._setPendingProperty(o,s,!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 s=0;s<o.length;s++){let n=o[s];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(o,s){for(let n in o)(s||!this[B.READ_ONLY]||!this[B.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,o[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(o,s,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;vm(this,s,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(s,n,a),this._flushClients(),yi(this,this[B.REFLECT],s,n,a),yi(this,this[B.OBSERVE],s,n,a),l&&um(this,l,s,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(o,s,n){this[B.PROPAGATE]&&yi(this,this[B.PROPAGATE],o,s,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,o,s,n)}_runEffectsForTemplate(o,s,n,a){const l=(h,d)=>{yi(this,o.propertyEffects,h,n,d,o.nodeList);for(let c=o.firstChild;c;c=c.nextSibling)this._runEffectsForTemplate(c,h,n,d)};o.runEffects?o.runEffects(l,s,a):l(s,a)}linkPaths(o,s){o=bi(o),s=bi(s),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[o]=s}unlinkPaths(o){o=bi(o),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[o]}notifySplices(o,s){let n={path:""},a=fe(this,o,n);sh(this,a,n.path,s)}get(o,s){return fe(s||this,o)}set(o,s,n){n?ta(n,o,s):(!this[B.READ_ONLY]||!this[B.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,s,!0)&&this._invalidateProperties()}push(o,...s){let n={path:""},a=fe(this,o,n),l=a.length,h=a.push(...s);return s.length&&_i(this,a,n.path,l,s.length,[]),h}pop(o){let s={path:""},n=fe(this,o,s),a=!!n.length,l=n.pop();return a&&_i(this,n,s.path,n.length,0,[l]),l}splice(o,s,n,...a){let l={path:""},h=fe(this,o,l);s<0?s=h.length-Math.floor(-s):s&&(s=Math.floor(s));let d;return arguments.length===2?d=h.splice(s):d=h.splice(s,n,...a),(a.length||d.length)&&_i(this,h,l.path,s,a.length,d),d}shift(o){let s={path:""},n=fe(this,o,s),a=!!n.length,l=n.shift();return a&&_i(this,n,s.path,0,0,[l]),l}unshift(o,...s){let n={path:""},a=fe(this,o,n),l=a.unshift(...s);return s.length&&_i(this,a,n.path,0,s.length,[]),l}notifyPath(o,s){let n;if(arguments.length==1){let a={path:""};s=fe(this,o,a),n=a.path}else Array.isArray(o)?n=bi(o):n=o;this._setPendingPropertyOrPath(n,s,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(o,s){this._addPropertyEffect(o,B.READ_ONLY),s&&(this["_set"+Wm(o)]=function(n){this._setProperty(o,n)})}_createPropertyObserver(o,s,n){let a={property:o,method:s,dynamicFn:!!n};this._addPropertyEffect(o,B.OBSERVE,{fn:oa,info:a,trigger:{name:o}}),n&&this._addPropertyEffect(s,B.OBSERVE,{fn:oa,info:a,trigger:{name:s}})}_createMethodObserver(o,s){let n=vo(o);if(!n)throw new Error("Malformed observer expression '"+o+"'");na(this,n,B.OBSERVE,Qo,null,s)}_createNotifyingProperty(o){this._addPropertyEffect(o,B.NOTIFY,{fn:mm,info:{eventName:Vr(o)+"-changed",property:o}})}_createReflectedProperty(o){let s=this.constructor.attributeNameForProperty(o);s[0]==="-"?console.warn("Property "+o+" cannot be reflected to attribute "+s+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(o,B.REFLECT,{fn:fm,info:{attrName:s}})}_createComputedProperty(o,s,n){let a=vo(s);if(!a)throw new Error("Malformed computed expression '"+s+"'");const l=na(this,a,B.COMPUTE,ih,o,n);_o(this,eh)[o]=l}_marshalArgs(o,s,n){const a=this.__data,l=[];for(let h=0,d=o.length;h<d;h++){let{name:c,structured:p,wildcard:u,value:v,literal:x}=o[h];if(!x)if(u){const P=Bi(c,s),A=da(a,n,P?s:c);v={path:P?s:c,value:A,base:P?fe(a,c):A}}else v=p?da(a,n,c):a[c];if(Ko&&!this._overrideLegacyUndefined&&v===void 0&&o.length>1)return Li;l[h]=v}return l}static addPropertyEffect(o,s,n){this.prototype._addPropertyEffect(o,s,n)}static createPropertyObserver(o,s,n){this.prototype._createPropertyObserver(o,s,n)}static createMethodObserver(o,s){this.prototype._createMethodObserver(o,s)}static createNotifyingProperty(o){this.prototype._createNotifyingProperty(o)}static createReadOnlyProperty(o,s){this.prototype._createReadOnlyProperty(o,s)}static createReflectedProperty(o){this.prototype._createReflectedProperty(o)}static createComputedProperty(o,s,n){this.prototype._createComputedProperty(o,s,n)}static bindTemplate(o){return this.prototype._bindTemplate(o)}_bindTemplate(o,s){let n=this.constructor._parseTemplate(o),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(s)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else{const l=o._parentTemplateInfo||this.__templateInfo,h=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=h,h?h.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(o,s,n){let a=o.hostProps=o.hostProps||{};a[s]=!0;let l=o.propertyEffects=o.propertyEffects||{};(l[s]=l[s]||[]).push(n)}_stampTemplate(o,s){s=s||this._bindTemplate(o,!0),fi.push(this);let n=super._stampTemplate(o,s);if(fi.pop(),s.nodeList=n.nodeList,!s.wasPreBound){let a=s.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l)}return n.templateInfo=s,Pm(this,s),this.__dataClientsReady&&(this._runEffectsForTemplate(s,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(o){const s=o.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=s;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),s.nextSibling=s.previousSibling=null;let h=s.childNodes;for(let d=0;d<h.length;d++){let c=h[d];se(se(c).parentNode).removeChild(c)}}static _parseTemplateNode(o,s,n){let a=e._parseTemplateNode.call(this,o,s,n);if(o.nodeType===Node.TEXT_NODE){let l=this._parseBindings(o.textContent,s);l&&(o.textContent=ha(l)||" ",fo(this,s,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(o,s,n,a,l){let h=this._parseBindings(l,s);if(h){let d=a,c="property";dm.test(a)?c="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),c="attribute");let p=ha(h);return p&&c=="attribute"&&(a=="class"&&o.hasAttribute("class")&&(p+=" "+o.getAttribute(a)),o.setAttribute(a,p)),c=="attribute"&&d=="disable-upgrade$"&&o.setAttribute(a,""),o.localName==="input"&&d==="value"&&o.setAttribute(d,""),o.removeAttribute(d),c==="property"&&(a=ql(a)),fo(this,s,n,c,a,h,p),!0}else return e._parseTemplateNodeAttribute.call(this,o,s,n,a,l)}static _parseTemplateNestedTemplate(o,s,n){let a=e._parseTemplateNestedTemplate.call(this,o,s,n);const l=o.parentNode,h=n.templateInfo,d=l.localName==="dom-if",c=l.localName==="dom-repeat";Xn&&(d||c)&&(l.removeChild(o),n=n.parentInfo,n.templateInfo=h,n.noted=!0,a=!1);let p=h.hostProps;if(Bp&&d)p&&(s.hostProps=Object.assign(s.hostProps||{},p),Xn||(n.parentInfo.noted=!0));else{let u="{";for(let v in p){let x=[{mode:u,source:v,dependencies:[v],hostProp:!0}];fo(this,s,n,"property","_host_"+v,x)}}return a}static _parseBindings(o,s){let n=[],a=0,l;for(;(l=la.exec(o))!==null;){l.index>a&&n.push({literal:o.slice(a,l.index)});let h=l[1][0],d=!!l[2],c=l[3].trim(),p=!1,u="",v=-1;h=="{"&&(v=c.indexOf("::"))>0&&(u=c.substring(v+2),c=c.substring(0,v),p=!0);let x=vo(c),P=[];if(x){let{args:A,methodName:z}=x;for(let V=0;V<A.length;V++){let W=A[V];W.literal||P.push(W)}let k=s.dynamicFns;(k&&k[z]||x.static)&&(P.push(z),x.dynamicFn=!0)}else P.push(c);n.push({source:c,mode:h,negate:d,customEvent:p,signature:x,dependencies:P,event:u}),a=la.lastIndex}if(a&&a<o.length){let h=o.substring(a);h&&n.push({literal:h})}return n.length?n:null}static _evaluateBinding(o,s,n,a,l,h){let d;return s.signature?d=Qo(o,n,a,l,s.signature):n!=s.source?d=fe(o,s.source):h&&Jo(n)?d=fe(o,n):d=o.__data[n],s.negate&&(d=!d),d}}return t}),fi=[];/**
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 Hm(i){const e={};for(let t in i){const r=i[t];e[t]=typeof r=="function"?{type:r}:r}return e}const Rm=K(i=>{const e=Gl(i);function t(n){const s=Object.getPrototypeOf(n);return s.prototype instanceof o?s:null}function r(n){if(!n.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",n))){let s=null;if(n.hasOwnProperty(JSCompiler_renameProperty("properties",n))){const a=n.properties;a&&(s=Hm(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=r(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,r(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 Um(i){const e={};for(let t in i){const r=i[t];e[t]=typeof r=="function"?{type:r}:r}return e}const jm=K(i=>{const e=Jl(i);function t(s){const n=Object.getPrototypeOf(s);return n.prototype instanceof o?n:null}function r(s){if(!s.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",s))){let n=null;if(s.hasOwnProperty(JSCompiler_renameProperty("properties",s))){const a=s.properties;a&&(n=Um(a))}s.__ownProperties=n}return s.__ownProperties}class o extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const n=this._properties;this.__observedAttributes=n?Object.keys(n).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const n=t(this);n&&n.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const n=r(this);n&&this.createProperties(n)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const n=t(this);this.__properties=Object.assign({},n&&n._properties,r(this))}return this.__properties}static typeForProperty(n){const a=this._properties[n];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 Vm="3.5.2",sa=window.ShadyCSS&&window.ShadyCSS.cssBuild,$m=K(i=>{const e=Rm(An(i));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 r(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(!sa){const p=h.content.querySelectorAll("style"),u=Fl(h),g=Lp(d),x=h.content.firstElementChild;for(let A=0;A<g.length;A++){let L=g[A];L.textContent=l._processStyleText(L.textContent,c),h.content.insertBefore(L,x)}let P=0;for(let A=0;A<u.length;A++){let L=u[A],k=p[P];k!==L?(L=L.cloneNode(!0),k.parentNode.insertBefore(L,k)):P++,L.textContent=l._processStyleText(L.textContent,c)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(h,d),Tp&&sa&&Ep){const p=h.content.querySelectorAll("style");if(p){let u="";Array.from(p).forEach(g=>{u+=g.textContent,g.parentNode.removeChild(g)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(u)}}}function s(l){let h=null;if(l&&(!Sr||Ap)&&(h=Ni.import(l,"template"),Sr&&!h))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return h}class a extends e{static get polymerElementVersion(){return Vm}static _finalizeClass(){e._finalizeClass.call(this);const h=r(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):Bl||(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 p=0;p<h.length;p++)c._createMethodObserver(h[p],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=Cn(h.url);else{const d=Ni.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=Sp,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 p=typeof c.value=="function"?c.value.call(this):c.value;this._hasAccessor(d)?this._setPendingProperty(d,p,!0):this[d]=p}}}_canApplyPropertyDefault(h){return!this.hasOwnProperty(h)}static _processStyleText(h,d){return wn(h,d)}static _finalizeTemplate(h){const d=this.prototype._template;if(d&&!d.__polymerFinalized){d.__polymerFinalized=!0;const c=this.importPath,p=c?Ai(c):"";n(this,d,h,p),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=ne(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])),Pp&&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=Ai(this.importPath)),Ai(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 Ml&&!(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 Gm="3.5.2",ca=window.ShadyCSS&&window.ShadyCSS.cssBuild,qm=K(i=>{const e=jm(Ts(i));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 r(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 s(l,h,d,c){if(!ca){const p=h.content.querySelectorAll("style"),u=Wl(h),v=$p(d),x=h.content.firstElementChild;for(let A=0;A<v.length;A++){let z=v[A];z.textContent=l._processStyleText(z.textContent,c),h.content.insertBefore(z,x)}let P=0;for(let A=0;A<u.length;A++){let z=u[A],k=p[P];k!==z?(z=z.cloneNode(!0),k.parentNode.insertBefore(z,k)):P++,z.textContent=l._processStyleText(z.textContent,c)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(h,d),Mp&&ca&&kp){const p=h.content.querySelectorAll("style");if(p){let u="";Array.from(p).forEach(v=>{u+=v.textContent,v.parentNode.removeChild(v)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(u)}}}function n(l){let h=null;if(l&&(!Pr||Dp)&&(h=Ni.import(l,"template"),Pr&&!h))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return h}class a extends e{static get polymerElementVersion(){return Gm}static _finalizeClass(){e._finalizeClass.call(this);const h=r(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):Hl||(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 p=0;p<h.length;p++)c._createMethodObserver(h[p],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))&&n(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=Ps(h.url);else{const d=Ni.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=Tp,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 p=typeof c.value=="function"?c.value.call(this):c.value;this._hasAccessor(d)?this._setPendingProperty(d,p,!0):this[d]=p}}}_canApplyPropertyDefault(h){return!this.hasOwnProperty(h)}static _processStyleText(h,d){return As(h,d)}static _finalizeTemplate(h){const d=this.prototype._template;if(d&&!d.__polymerFinalized){d.__polymerFinalized=!0;const c=this.importPath,p=c?Si(c):"";s(this,d,h,p),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=se(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])),Op&&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=Si(this.importPath)),Si(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 Rl&&!(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 aa=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:i=>i});class th{constructor(e,t){rh(e,t);const r=t.reduce((o,n,s)=>o+ih(n)+e[s+1],e[0]);this.value=r.toString()}toString(){return this.value}}function ih(i){if(i instanceof th)return i.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${i}`)}function Um(i){if(i instanceof HTMLTemplateElement)return i.innerHTML;if(i instanceof th)return ih(i);throw new Error(`non-template value passed to Polymer's html function: ${i}`)}const H=function(i,...e){rh(i,e);const t=document.createElement("template");let r=e.reduce((o,n,s)=>o+Um(n)+i[s+1],i[0]);return aa&&(r=aa.createHTML(r)),t.innerHTML=r,t},rh=(i,e)=>{if(!Array.isArray(i)||!Array.isArray(i.raw)||e.length!==i.length-1)throw new TypeError("Invalid call to the html template tag")};/**
1040
+ */const ua=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:i=>i});class nh{constructor(e,t){lh(e,t);const r=t.reduce((o,s,n)=>o+ah(s)+e[n+1],e[0]);this.value=r.toString()}toString(){return this.value}}function ah(i){if(i instanceof nh)return i.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${i}`)}function Ym(i){if(i instanceof HTMLTemplateElement)return i.innerHTML;if(i instanceof nh)return ah(i);throw new Error(`non-template value passed to Polymer's html function: ${i}`)}const F=function(i,...e){lh(i,e);const t=document.createElement("template");let r=e.reduce((o,s,n)=>o+Ym(s)+i[n+1],i[0]);return ua&&(r=ua.createHTML(r)),t.innerHTML=r,t},lh=(i,e)=>{if(!Array.isArray(i)||!Array.isArray(i.raw)||e.length!==i.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 R=$m(HTMLElement),Wm=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,mr=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function jm(){function i(){return!0}return oh(i)}function Gm(){try{return qm()?!0:Ym()?mr?!Xm():!jm():!1}catch(i){return!1}}function qm(){return localStorage.getItem("vaadin.developmentmode.force")}function Ym(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Xm(){return!!(mr&&Object.keys(mr).map(i=>mr[i]).filter(i=>i.productionMode).length>0)}function oh(i,e){if(typeof i!="function")return;const t=Wm.exec(i.toString());if(t)try{i=new Function(t[1])}catch(r){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",r)}return i(e)}window.Vaadin=window.Vaadin||{};const la=function(i,e){if(window.Vaadin.developmentMode)return oh(i,e)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Gm());function Km(){/*! vaadin-dev-mode:start
1048
+ */const H=qm(HTMLElement),Xm=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,_r=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Km(){function i(){return!0}return hh(i)}function Jm(){try{return Zm()?!0:Qm()?_r?!e_():!Km():!1}catch(i){return!1}}function Zm(){return localStorage.getItem("vaadin.developmentmode.force")}function Qm(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function e_(){return!!(_r&&Object.keys(_r).map(i=>_r[i]).filter(i=>i.productionMode).length>0)}function hh(i,e){if(typeof i!="function")return;const t=Xm.exec(i.toString());if(t)try{i=new Function(t[1])}catch(r){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",r)}return i(e)}window.Vaadin=window.Vaadin||{};const pa=function(i,e){if(window.Vaadin.developmentMode)return hh(i,e)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Jm());function t_(){/*! 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 Jm=function(){if(typeof la=="function")return la(Km)};/**
1526
+ vaadin-dev-mode:end **/}const i_=function(){if(typeof pa=="function")return pa(t_)};/**
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 ha=0,nh=0;const Wt=[];let Yo=!1;function Zm(){Yo=!1;const i=Wt.length;for(let e=0;e<i;e++){const t=Wt[e];if(t)try{t()}catch(r){setTimeout(()=>{throw r})}}Wt.splice(0,i),nh+=i}const rt={after(i){return{run(e){return window.setTimeout(e,i)},cancel(e){window.clearTimeout(e)}}},run(i,e){return window.setTimeout(i,e)},cancel(i){window.clearTimeout(i)}},Fi={run(i){return window.requestAnimationFrame(i)},cancel(i){window.cancelAnimationFrame(i)}},sh={run(i){return window.requestIdleCallback?window.requestIdleCallback(i):window.setTimeout(i,16)},cancel(i){window.cancelIdleCallback?window.cancelIdleCallback(i):window.clearTimeout(i)}},Pr={run(i){Yo||(Yo=!0,queueMicrotask(()=>Zm())),Wt.push(i);const e=ha;return ha+=1,e},cancel(i){const e=i-nh;if(e>=0){if(!Wt[e])throw new Error(`invalid async handle: ${i}`);Wt[e]=null}}};/**
1534
+ */let ma=0,dh=0;const Wt=[];let es=!1;function r_(){es=!1;const i=Wt.length;for(let e=0;e<i;e++){const t=Wt[e];if(t)try{t()}catch(r){setTimeout(()=>{throw r})}}Wt.splice(0,i),dh+=i}const rt={after(i){return{run(e){return window.setTimeout(e,i)},cancel(e){window.clearTimeout(e)}}},run(i,e){return window.setTimeout(i,e)},cancel(i){window.clearTimeout(i)}},Fi={run(i){return window.requestAnimationFrame(i)},cancel(i){window.cancelAnimationFrame(i)}},ch={run(i){return window.requestIdleCallback?window.requestIdleCallback(i):window.setTimeout(i,16)},cancel(i){window.cancelIdleCallback?window.cancelIdleCallback(i):window.clearTimeout(i)}},kr={run(i){es||(es=!0,queueMicrotask(()=>r_())),Wt.push(i);const e=ma;return ma+=1,e},cancel(i){const e=i-dh;if(e>=0){if(!Wt[e])throw new Error(`invalid async handle: ${i}`);Wt[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,35 +1539,35 @@ 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 Hi=new Set;let ye=class Xo{static debounce(e,t,r){return e instanceof Xo?e._cancelAsync():e=new Xo,e.setConfig(t,r),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,Hi.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Hi.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 ah(i){Hi.add(i)}function Qm(){const i=!!Hi.size;return Hi.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),i}const wi=()=>{let i;do i=Qm();while(i)};/**
1542
+ */const Hi=new Set;let ye=class ts{static debounce(e,t,r){return e instanceof ts?e._cancelAsync():e=new ts,e.setConfig(t,r),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,Hi.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Hi.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 uh(i){Hi.add(i)}function o_(){const i=!!Hi.size;return Hi.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),i}const xi=()=>{let i;do i=o_();while(i)};/**
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 $e=[];function Ko(i,e,t=i.getAttribute("dir")){e?i.setAttribute("dir",e):t!=null&&i.removeAttribute("dir")}function Jo(){return document.documentElement.getAttribute("dir")}function ef(){const i=Jo();$e.forEach(e=>{Ko(e,i)})}const tf=new MutationObserver(ef);tf.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Se=i=>class extends i{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(),Ko(this,Jo(),null))}attributeChangedCallback(e,t,r){if(super.attributeChangedCallback(e,t,r),e!=="dir")return;const o=Jo(),n=r===o&&$e.indexOf(this)===-1,s=!r&&t&&$e.indexOf(this)===-1;n||s?(this.__subscribe(),Ko(this,o,r)):r!==o&&t===o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=$e.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,r){r==="dir"&&t===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,t,r)}_attributeToProperty(e,t,r){e==="dir"&&!t?this.dir="":super._attributeToProperty(e,t,r)}__subscribe(){$e.includes(this)||$e.push(this)}__unsubscribe(){$e.includes(this)&&$e.splice($e.indexOf(this),1)}};/**
1546
+ */const We=[];function is(i,e,t=i.getAttribute("dir")){e?i.setAttribute("dir",e):t!=null&&i.removeAttribute("dir")}function rs(){return document.documentElement.getAttribute("dir")}function s_(){const i=rs();We.forEach(e=>{is(e,i)})}const n_=new MutationObserver(s_);n_.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Se=i=>class extends i{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(),is(this,rs(),null))}attributeChangedCallback(e,t,r){if(super.attributeChangedCallback(e,t,r),e!=="dir")return;const o=rs(),s=r===o&&We.indexOf(this)===-1,n=!r&&t&&We.indexOf(this)===-1;s||n?(this.__subscribe(),is(this,o,r)):r!==o&&t===o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=We.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,r){r==="dir"&&t===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,t,r)}_attributeToProperty(e,t,r){e==="dir"&&!t?this.dir="":super._attributeToProperty(e,t,r)}__subscribe(){We.includes(this)||We.push(this)}__unsubscribe(){We.includes(this)&&We.splice(We.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(){Jm()};let mo;const da=new Set,He=i=>class extends Se(i){static finalize(){super.finalize();const{is:e}=this;e&&!da.has(e)&&(window.Vaadin.registrations.push(this),da.add(e),window.Vaadin.developmentModeCallback&&(mo=ye.debounce(mo,sh,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),ah(mo)))}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(){i_()};let go;const _a=new Set,Re=i=>class extends Se(i){static finalize(){super.finalize();const{is:e}=this;e&&!_a.has(e)&&(window.Vaadin.registrations.push(this),_a.add(e),window.Vaadin.developmentModeCallback&&(go=ye.debounce(go,ch,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),uh(go)))}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 rf(i){const e=[];for(;i;){if(i.nodeType===Node.DOCUMENT_NODE){e.push(i);break}if(i.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(i),i=i.host;continue}if(i.assignedSlot){i=i.assignedSlot;continue}i=i.parentNode}return e}function lh(i){const e=[];let t;return i.localName==="slot"?t=i.assignedElements():(e.push(i),t=[...i.children]),t.forEach(r=>e.push(...lh(r))),e}function Pn(i){return i?new Set(i.split(" ")):new Set}function Hr(i){return i?[...i].join(" "):""}function hh(i,e,t){const r=Pn(i.getAttribute(e));r.add(t),i.setAttribute(e,Hr(r))}function of(i,e,t){const r=Pn(i.getAttribute(e));if(r.delete(t),r.size===0){i.removeAttribute(e);return}i.setAttribute(e,Hr(r))}function nf(i){return i.nodeType===Node.TEXT_NODE&&i.textContent.trim()===""}/**
1554
+ */function a_(i){const e=[];for(;i;){if(i.nodeType===Node.DOCUMENT_NODE){e.push(i);break}if(i.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(i),i=i.host;continue}if(i.assignedSlot){i=i.assignedSlot;continue}i=i.parentNode}return e}function ph(i){const e=[];let t;return i.localName==="slot"?t=i.assignedElements():(e.push(i),t=[...i.children]),t.forEach(r=>e.push(...ph(r))),e}function Ds(i){return i?new Set(i.split(" ")):new Set}function $r(i){return i?[...i].join(" "):""}function mh(i,e,t){const r=Ds(i.getAttribute(e));r.add(t),i.setAttribute(e,$r(r))}function l_(i,e,t){const r=Ds(i.getAttribute(e));if(r.delete(t),r.size===0){i.removeAttribute(e);return}i.setAttribute(e,$r(r))}function h_(i){return i.nodeType===Node.TEXT_NODE&&i.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/
1558
- */class In{constructor(e,t){this.slot=e,this.callback=t,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_processNodes(){const e=this.slot.assignedNodes({flatten:!0});let t=[];const r=[],o=[];e.length&&(t=e.filter(n=>!this._storedNodes.includes(n))),this._storedNodes.length&&this._storedNodes.forEach((n,s)=>{const a=e.indexOf(n);a===-1?r.push(n):a!==s&&o.push(n)}),(t.length||r.length||o.length)&&this.callback({addedNodes:t,currentNodes:e,movedNodes:o,removedNodes:r}),this._storedNodes=e}}/**
1558
+ */class Os{constructor(e,t){this.slot=e,this.callback=t,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_processNodes(){const e=this.slot.assignedNodes({flatten:!0});let t=[];const r=[],o=[];e.length&&(t=e.filter(s=>!this._storedNodes.includes(s))),this._storedNodes.length&&this._storedNodes.forEach((s,n)=>{const a=e.indexOf(s);a===-1?r.push(s):a!==n&&o.push(s)}),(t.length||r.length||o.length)&&this.callback({addedNodes:t,currentNodes:e,movedNodes:o,removedNodes:r}),this._storedNodes=e}}/**
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 sf=0;function Rr(){return sf++}/**
1562
+ */let d_=0;function Wr(){return d_++}/**
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 Fe extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${Rr()}`}constructor(e,t,r,o={}){super();const{initializer:n,multiple:s,observe:a,useUniqueId:l,uniqueIdPrefix:h}=o;this.host=e,this.slotName=t,this.tagName=r,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:r}=this;let o=this.defaultNode;return!o&&r&&(o=document.createElement(r),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}]`,r=this.host.shadowRoot.querySelector(t);this.__slotObserver=new In(r,({addedNodes:o,removedNodes:n})=>{const s=this.multiple?this.nodes:[this.node],a=o.filter(l=>!nf(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 He extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${Wr()}`}constructor(e,t,r,o={}){super();const{initializer:s,multiple:n,observe:a,useUniqueId:l,uniqueIdPrefix:h}=o;this.host=e,this.slotName=t,this.tagName=r,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=s,n&&(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:r}=this;let o=this.defaultNode;return!o&&r&&(o=document.createElement(r),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}]`,r=this.host.shadowRoot.querySelector(t);this.__slotObserver=new Os(r,({addedNodes:o,removedNodes:s})=>{const n=this.multiple?this.nodes:[this.node],a=o.filter(l=>!h_(l)&&!n.includes(l));s.length&&(this.nodes=n.filter(l=>!s.includes(l)),s.forEach(l=>{this.teardownNode(l)})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...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/
1570
- */class st extends Fe{constructor(e){super(e,"tooltip"),this.setTarget(e)}initCustomNode(e){e.target=this.target,this.ariaTarget!==void 0&&(e.ariaTarget=this.ariaTarget),this.context!==void 0&&(e.context=this.context),this.manual!==void 0&&(e.manual=this.manual),this.opened!==void 0&&(e.opened=this.opened),this.position!==void 0&&(e._position=this.position),this.shouldShow!==void 0&&(e.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(e){this.ariaTarget=e;const t=this.node;t&&(t.ariaTarget=e)}setContext(e){this.context=e;const t=this.node;t&&(t.context=e)}setManual(e){this.manual=e;const t=this.node;t&&(t.manual=e)}setOpened(e){this.opened=e;const t=this.node;t&&(t.opened=e)}setPosition(e){this.position=e;const t=this.node;t&&(t._position=e)}setShouldShow(e){this.shouldShow=e;const t=this.node;t&&(t.shouldShow=e)}setTarget(e){this.target=e;const t=this.node;t&&(t.target=e)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
1570
+ */class nt extends He{constructor(e){super(e,"tooltip"),this.setTarget(e)}initCustomNode(e){e.target=this.target,this.ariaTarget!==void 0&&(e.ariaTarget=this.ariaTarget),this.context!==void 0&&(e.context=this.context),this.manual!==void 0&&(e.manual=this.manual),this.opened!==void 0&&(e.opened=this.opened),this.position!==void 0&&(e._position=this.position),this.shouldShow!==void 0&&(e.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(e){this.ariaTarget=e;const t=this.node;t&&(t.ariaTarget=e)}setContext(e){this.context=e;const t=this.node;t&&(t.context=e)}setManual(e){this.manual=e;const t=this.node;t&&(t.manual=e)}setOpened(e){this.opened=e;const t=this.node;t&&(t.opened=e)}setPosition(e){this.position=e;const t=this.node;t&&(t._position=e)}setShouldShow(e){this.shouldShow=e;const t=this.node;t&&(t.shouldShow=e)}setTarget(e){this.target=e;const t=this.node;t&&(t.target=e)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
1571
1571
  @license
1572
1572
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1573
1573
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1575,11 +1575,11 @@ 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 af=i=>i,dh=typeof document.head.style.touchAction=="string",Zo="__polymerGestures",fo="__polymerGesturesHandled",Qo="__polymerGesturesTouchAction",ca=25,ua=5,lf=2,hf=["mousedown","mousemove","mouseup","click"],df=[0,1,4,2],cf=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(i){return!1}}();function ch(i){return hf.indexOf(i)>-1}let uf=!1;(function(){try{const i=Object.defineProperty({},"passive",{get(){uf=!0}});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch(i){}})();const pf=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),mf={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function yt(i){const e=i.type;if(!ch(e))return!1;if(e==="mousemove"){let t=i.buttons===void 0?1:i.buttons;return i instanceof window.MouseEvent&&!cf&&(t=df[i.which]||0),!!(t&1)}return(i.button===void 0?0:i.button)===0}function ff(i){if(i.type==="click"){if(i.detail===0)return!0;const e=ot(i);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const t=e.getBoundingClientRect(),r=i.pageX,o=i.pageY;return!(r>=t.left&&r<=t.right&&o>=t.top&&o<=t.bottom)}return!1}const Ue={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function _f(i){let e="auto";const t=ph(i);for(let r=0,o;r<t.length;r++)if(o=t[r],o[Qo]){e=o[Qo];break}return e}function uh(i,e,t){i.movefn=e,i.upfn=t,document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)}function jt(i){document.removeEventListener("mousemove",i.movefn),document.removeEventListener("mouseup",i.upfn),i.movefn=null,i.upfn=null}const ph=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:i=>i.composedPath&&i.composedPath()||[],kn={},bt=[];function gf(i,e){let t=document.elementFromPoint(i,e),r=t;for(;r&&r.shadowRoot&&!window.ShadyDOM;){const o=r;if(r=r.shadowRoot.elementFromPoint(i,e),o===r)break;r&&(t=r)}return t}function ot(i){const e=ph(i);return e.length>0?e[0]:i.target}function vf(i){const e=i.type,t=i.currentTarget[Zo];if(!t)return;const r=t[e];if(!r)return;if(!i[fo]&&(i[fo]={},e.startsWith("touch"))){const n=i.changedTouches[0];if(e==="touchstart"&&i.touches.length===1&&(Ue.touch.id=n.identifier),Ue.touch.id!==n.identifier)return;dh||(e==="touchstart"||e==="touchmove")&&bf(i)}const o=i[fo];if(!o.skip){for(let n=0,s;n<bt.length;n++)s=bt[n],r[s.name]&&!o[s.name]&&s.flow&&s.flow.start.indexOf(i.type)>-1&&s.reset&&s.reset();for(let n=0,s;n<bt.length;n++)s=bt[n],r[s.name]&&!o[s.name]&&(o[s.name]=!0,s[e](i))}}function bf(i){const e=i.changedTouches[0],t=i.type;if(t==="touchstart")Ue.touch.x=e.clientX,Ue.touch.y=e.clientY,Ue.touch.scrollDecided=!1;else if(t==="touchmove"){if(Ue.touch.scrollDecided)return;Ue.touch.scrollDecided=!0;const r=_f(i);let o=!1;const n=Math.abs(Ue.touch.x-e.clientX),s=Math.abs(Ue.touch.y-e.clientY);i.cancelable&&(r==="none"?o=!0:r==="pan-x"?o=s>n:r==="pan-y"&&(o=n>s)),o?i.preventDefault():Ir("track")}}function Le(i,e,t){return kn[e]?(yf(i,e,t),!0):!1}function yf(i,e,t){const r=kn[e],o=r.deps,n=r.name;let s=i[Zo];s||(i[Zo]=s={});for(let a=0,l,h;a<o.length;a++)l=o[a],!(pf&&ch(l)&&l!=="click")&&(h=s[l],h||(s[l]=h={_count:0}),h._count===0&&i.addEventListener(l,vf,void 0),h[n]=(h[n]||0)+1,h._count=(h._count||0)+1);i.addEventListener(e,t),r.touchAction&&mh(i,r.touchAction)}function Tn(i){bt.push(i),i.emits.forEach(e=>{kn[e]=i})}function xf(i){for(let e=0,t;e<bt.length;e++){t=bt[e];for(let r=0,o;r<t.emits.length;r++)if(o=t.emits[r],o===i)return t}return null}function mh(i,e){dh&&i instanceof HTMLElement&&Pr.run(()=>{i.style.touchAction=e}),i[Qo]=e}function Dn(i,e,t){const r=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=t,af(i).dispatchEvent(r),r.defaultPrevented){const o=t.preventer||t.sourceEvent;o&&o.preventDefault&&o.preventDefault()}}function Ir(i){const e=xf(i);e.info&&(e.info.prevent=!0)}Tn({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){jt(this.info)},mousedown(i){if(!yt(i))return;const e=ot(i),t=this,r=n=>{yt(n)||(vi("up",e,n),jt(t.info))},o=n=>{yt(n)&&vi("up",e,n),jt(t.info)};uh(this.info,r,o),vi("down",e,i)},touchstart(i){vi("down",ot(i),i.changedTouches[0],i)},touchend(i){vi("up",ot(i),i.changedTouches[0],i)}});function vi(i,e,t,r){e&&Dn(e,i,{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:r,prevent(o){return Ir(o)}})}Tn({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(i){this.moves.length>lf&&this.moves.shift(),this.moves.push(i)},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,jt(this.info)},mousedown(i){if(!yt(i))return;const e=ot(i),t=this,r=n=>{const s=n.clientX,a=n.clientY;pa(t.info,s,a)&&(t.info.state=t.info.started?n.type==="mouseup"?"end":"track":"start",t.info.state==="start"&&Ir("tap"),t.info.addMove({x:s,y:a}),yt(n)||(t.info.state="end",jt(t.info)),e&&_o(t.info,e,n),t.info.started=!0)},o=n=>{t.info.started&&r(n),jt(t.info)};uh(this.info,r,o),this.info.x=i.clientX,this.info.y=i.clientY},touchstart(i){const e=i.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(i){const e=ot(i),t=i.changedTouches[0],r=t.clientX,o=t.clientY;pa(this.info,r,o)&&(this.info.state==="start"&&Ir("tap"),this.info.addMove({x:r,y:o}),_o(this.info,e,t),this.info.state="track",this.info.started=!0)},touchend(i){const e=ot(i),t=i.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:t.clientX,y:t.clientY}),_o(this.info,e,t))}});function pa(i,e,t){if(i.prevent)return!1;if(i.started)return!0;const r=Math.abs(i.x-e),o=Math.abs(i.y-t);return r>=ua||o>=ua}function _o(i,e,t){if(!e)return;const r=i.moves[i.moves.length-2],o=i.moves[i.moves.length-1],n=o.x-i.x,s=o.y-i.y;let a,l=0;r&&(a=o.x-r.x,l=o.y-r.y),Dn(e,"track",{state:i.state,x:t.clientX,y:t.clientY,dx:n,dy:s,ddx:a,ddy:l,sourceEvent:t,hover(){return gf(t.clientX,t.clientY)}})}Tn({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(i){yt(i)&&(this.info.x=i.clientX,this.info.y=i.clientY)},click(i){yt(i)&&ma(this.info,i)},touchstart(i){const e=i.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(i){ma(this.info,i.changedTouches[0],i)}});function ma(i,e,t){const r=Math.abs(e.clientX-i.x),o=Math.abs(e.clientY-i.y),n=ot(t||e);!n||mf[n.localName]&&n.hasAttribute("disabled")||(isNaN(r)||isNaN(o)||r<=ca&&o<=ca||ff(e))&&(i.prevent||Dn(n,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:t}))}/**
1578
+ */const c_=i=>i,_h=typeof document.head.style.touchAction=="string",os="__polymerGestures",bo="__polymerGesturesHandled",ss="__polymerGesturesTouchAction",fa=25,va=5,u_=2,p_=["mousedown","mousemove","mouseup","click"],m_=[0,1,4,2],__=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(i){return!1}}();function fh(i){return p_.indexOf(i)>-1}let f_=!1;(function(){try{const i=Object.defineProperty({},"passive",{get(){f_=!0}});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch(i){}})();const v_=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),g_={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function yt(i){const e=i.type;if(!fh(e))return!1;if(e==="mousemove"){let t=i.buttons===void 0?1:i.buttons;return i instanceof window.MouseEvent&&!__&&(t=m_[i.which]||0),!!(t&1)}return(i.button===void 0?0:i.button)===0}function b_(i){if(i.type==="click"){if(i.detail===0)return!0;const e=ot(i);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const t=e.getBoundingClientRect(),r=i.pageX,o=i.pageY;return!(r>=t.left&&r<=t.right&&o>=t.top&&o<=t.bottom)}return!1}const Ue={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function y_(i){let e="auto";const t=gh(i);for(let r=0,o;r<t.length;r++)if(o=t[r],o[ss]){e=o[ss];break}return e}function vh(i,e,t){i.movefn=e,i.upfn=t,document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)}function Ut(i){document.removeEventListener("mousemove",i.movefn),document.removeEventListener("mouseup",i.upfn),i.movefn=null,i.upfn=null}const gh=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:i=>i.composedPath&&i.composedPath()||[],Ns={},bt=[];function x_(i,e){let t=document.elementFromPoint(i,e),r=t;for(;r&&r.shadowRoot&&!window.ShadyDOM;){const o=r;if(r=r.shadowRoot.elementFromPoint(i,e),o===r)break;r&&(t=r)}return t}function ot(i){const e=gh(i);return e.length>0?e[0]:i.target}function w_(i){const e=i.type,t=i.currentTarget[os];if(!t)return;const r=t[e];if(!r)return;if(!i[bo]&&(i[bo]={},e.startsWith("touch"))){const s=i.changedTouches[0];if(e==="touchstart"&&i.touches.length===1&&(Ue.touch.id=s.identifier),Ue.touch.id!==s.identifier)return;_h||(e==="touchstart"||e==="touchmove")&&C_(i)}const o=i[bo];if(!o.skip){for(let s=0,n;s<bt.length;s++)n=bt[s],r[n.name]&&!o[n.name]&&n.flow&&n.flow.start.indexOf(i.type)>-1&&n.reset&&n.reset();for(let s=0,n;s<bt.length;s++)n=bt[s],r[n.name]&&!o[n.name]&&(o[n.name]=!0,n[e](i))}}function C_(i){const e=i.changedTouches[0],t=i.type;if(t==="touchstart")Ue.touch.x=e.clientX,Ue.touch.y=e.clientY,Ue.touch.scrollDecided=!1;else if(t==="touchmove"){if(Ue.touch.scrollDecided)return;Ue.touch.scrollDecided=!0;const r=y_(i);let o=!1;const s=Math.abs(Ue.touch.x-e.clientX),n=Math.abs(Ue.touch.y-e.clientY);i.cancelable&&(r==="none"?o=!0:r==="pan-x"?o=n>s:r==="pan-y"&&(o=s>n)),o?i.preventDefault():Tr("track")}}function Le(i,e,t){return Ns[e]?(E_(i,e,t),!0):!1}function E_(i,e,t){const r=Ns[e],o=r.deps,s=r.name;let n=i[os];n||(i[os]=n={});for(let a=0,l,h;a<o.length;a++)l=o[a],!(v_&&fh(l)&&l!=="click")&&(h=n[l],h||(n[l]=h={_count:0}),h._count===0&&i.addEventListener(l,w_,void 0),h[s]=(h[s]||0)+1,h._count=(h._count||0)+1);i.addEventListener(e,t),r.touchAction&&bh(i,r.touchAction)}function Bs(i){bt.push(i),i.emits.forEach(e=>{Ns[e]=i})}function S_(i){for(let e=0,t;e<bt.length;e++){t=bt[e];for(let r=0,o;r<t.emits.length;r++)if(o=t.emits[r],o===i)return t}return null}function bh(i,e){_h&&i instanceof HTMLElement&&kr.run(()=>{i.style.touchAction=e}),i[ss]=e}function Ms(i,e,t){const r=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=t,c_(i).dispatchEvent(r),r.defaultPrevented){const o=t.preventer||t.sourceEvent;o&&o.preventDefault&&o.preventDefault()}}function Tr(i){const e=S_(i);e.info&&(e.info.prevent=!0)}Bs({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Ut(this.info)},mousedown(i){if(!yt(i))return;const e=ot(i),t=this,r=s=>{yt(s)||(vi("up",e,s),Ut(t.info))},o=s=>{yt(s)&&vi("up",e,s),Ut(t.info)};vh(this.info,r,o),vi("down",e,i)},touchstart(i){vi("down",ot(i),i.changedTouches[0],i)},touchend(i){vi("up",ot(i),i.changedTouches[0],i)}});function vi(i,e,t,r){e&&Ms(e,i,{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:r,prevent(o){return Tr(o)}})}Bs({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(i){this.moves.length>u_&&this.moves.shift(),this.moves.push(i)},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,Ut(this.info)},mousedown(i){if(!yt(i))return;const e=ot(i),t=this,r=s=>{const n=s.clientX,a=s.clientY;ga(t.info,n,a)&&(t.info.state=t.info.started?s.type==="mouseup"?"end":"track":"start",t.info.state==="start"&&Tr("tap"),t.info.addMove({x:n,y:a}),yt(s)||(t.info.state="end",Ut(t.info)),e&&yo(t.info,e,s),t.info.started=!0)},o=s=>{t.info.started&&r(s),Ut(t.info)};vh(this.info,r,o),this.info.x=i.clientX,this.info.y=i.clientY},touchstart(i){const e=i.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(i){const e=ot(i),t=i.changedTouches[0],r=t.clientX,o=t.clientY;ga(this.info,r,o)&&(this.info.state==="start"&&Tr("tap"),this.info.addMove({x:r,y:o}),yo(this.info,e,t),this.info.state="track",this.info.started=!0)},touchend(i){const e=ot(i),t=i.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:t.clientX,y:t.clientY}),yo(this.info,e,t))}});function ga(i,e,t){if(i.prevent)return!1;if(i.started)return!0;const r=Math.abs(i.x-e),o=Math.abs(i.y-t);return r>=va||o>=va}function yo(i,e,t){if(!e)return;const r=i.moves[i.moves.length-2],o=i.moves[i.moves.length-1],s=o.x-i.x,n=o.y-i.y;let a,l=0;r&&(a=o.x-r.x,l=o.y-r.y),Ms(e,"track",{state:i.state,x:t.clientX,y:t.clientY,dx:s,dy:n,ddx:a,ddy:l,sourceEvent:t,hover(){return x_(t.clientX,t.clientY)}})}Bs({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(i){yt(i)&&(this.info.x=i.clientX,this.info.y=i.clientY)},click(i){yt(i)&&ba(this.info,i)},touchstart(i){const e=i.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(i){ba(this.info,i.changedTouches[0],i)}});function ba(i,e,t){const r=Math.abs(e.clientX-i.x),o=Math.abs(e.clientY-i.y),s=ot(t||e);!s||g_[s.localName]&&s.hasAttribute("disabled")||(isNaN(r)||isNaN(o)||r<=fa&&o<=fa||b_(e))&&(i.prevent||Ms(s,"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/
1582
- */const ni=K(i=>class extends i{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
1582
+ */const oi=K(i=>class extends i{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
1583
1583
  * @license
1584
1584
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1585
1585
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1587,27 +1587,27 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1587
1587
  * @license
1588
1588
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1589
1589
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1590
- */const On=i=>class extends ni(Et(i)){get _activeKeys(){return[" "]}ready(){super.ready(),Le(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),Le(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",t=>{this._activeKeys.includes(t.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
1590
+ */const zs=i=>class extends oi(Et(i)){get _activeKeys(){return[" "]}ready(){super.ready(),Le(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),Le(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",t=>{this._activeKeys.includes(t.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
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 Nn=!1;window.addEventListener("keydown",()=>{Nn=!0},{capture:!0});window.addEventListener("mousedown",()=>{Nn=!1},{capture:!0});function en(){let i=document.activeElement||document.body;for(;i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function Vr(){return Nn}function fh(i){const e=i.style;if(e.visibility==="hidden"||e.display==="none")return!0;const t=window.getComputedStyle(i);return t.visibility==="hidden"||t.display==="none"}function wf(i,e){const t=Math.max(i.tabIndex,0),r=Math.max(e.tabIndex,0);return t===0||r===0?r>t:t>r}function Cf(i,e){const t=[];for(;i.length>0&&e.length>0;)wf(i[0],e[0])?t.push(e.shift()):t.push(i.shift());return t.concat(i,e)}function tn(i){const e=i.length;if(e<2)return i;const t=Math.ceil(e/2),r=tn(i.slice(0,t)),o=tn(i.slice(t));return Cf(r,o)}function rn(i){return i.offsetParent===null&&i.clientWidth===0&&i.clientHeight===0?!0:fh(i)}function Bn(i){return i.matches('[tabindex="-1"]')?!1:i.matches("input, select, textarea, button, object")?i.matches(":not([disabled])"):i.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Mn(i){return i.getRootNode().activeElement===i}function Ef(i){if(!Bn(i))return-1;const e=i.getAttribute("tabindex")||0;return Number(e)}function _h(i,e){if(i.nodeType!==Node.ELEMENT_NODE||fh(i))return!1;const t=i,r=Ef(t);let o=r>0;r>=0&&e.push(t);let n=[];return t.localName==="slot"?n=t.assignedNodes({flatten:!0}):n=(t.shadowRoot||t).children,[...n].forEach(s=>{o=_h(s,e)||o}),o}function Sf(i){const e=[];return _h(i,e)?tn(e):e}/**
1594
+ */let Ls=!1;window.addEventListener("keydown",()=>{Ls=!0},{capture:!0});window.addEventListener("mousedown",()=>{Ls=!1},{capture:!0});function ns(){let i=document.activeElement||document.body;for(;i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function Ur(){return Ls}function yh(i){const e=i.style;if(e.visibility==="hidden"||e.display==="none")return!0;const t=window.getComputedStyle(i);return t.visibility==="hidden"||t.display==="none"}function A_(i,e){const t=Math.max(i.tabIndex,0),r=Math.max(e.tabIndex,0);return t===0||r===0?r>t:t>r}function P_(i,e){const t=[];for(;i.length>0&&e.length>0;)A_(i[0],e[0])?t.push(e.shift()):t.push(i.shift());return t.concat(i,e)}function as(i){const e=i.length;if(e<2)return i;const t=Math.ceil(e/2),r=as(i.slice(0,t)),o=as(i.slice(t));return P_(r,o)}function ls(i){return i.offsetParent===null&&i.clientWidth===0&&i.clientHeight===0?!0:yh(i)}function Fs(i){return i.matches('[tabindex="-1"]')?!1:i.matches("input, select, textarea, button, object")?i.matches(":not([disabled])"):i.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Hs(i){return i.getRootNode().activeElement===i}function I_(i){if(!Fs(i))return-1;const e=i.getAttribute("tabindex")||0;return Number(e)}function xh(i,e){if(i.nodeType!==Node.ELEMENT_NODE||yh(i))return!1;const t=i,r=I_(t);let o=r>0;r>=0&&e.push(t);let s=[];return t.localName==="slot"?s=t.assignedNodes({flatten:!0}):s=(t.shadowRoot||t).children,[...s].forEach(n=>{o=xh(n,e)||o}),o}function k_(i){const e=[];return xh(i,e)?as(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/
1598
- */const St=K(i=>class extends i{get _keyboardActive(){return Vr()}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}});/**
1598
+ */const St=K(i=>class extends i{get _keyboardActive(){return Ur()}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}});/**
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 gh=i=>class extends ni(i){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 wh=i=>class extends oi(i){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 $r=K(i=>class extends St(gh(i)){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 jr=K(i=>class extends St(wh(i)){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/
1610
- */const zn=K(i=>class extends i{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e])})}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach((t,r)=>{this._delegateAttribute(t,e[r])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((t,r)=>{this._delegateProperty(t,e[r])})}_delegateAttribute(e,t){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",t?"true":!1),typeof t=="boolean"?this.stateTarget.toggleAttribute(e,t):t?this.stateTarget.setAttribute(e,t):this.stateTarget.removeAttribute(e))}_delegateProperty(e,t){this.stateTarget&&(this.stateTarget[e]=t)}});/**
1610
+ */const Rs=K(i=>class extends i{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e])})}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach((t,r)=>{this._delegateAttribute(t,e[r])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((t,r)=>{this._delegateProperty(t,e[r])})}_delegateAttribute(e,t){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",t?"true":!1),typeof t=="boolean"?this.stateTarget.toggleAttribute(e,t):t?this.stateTarget.setAttribute(e,t):this.stateTarget.removeAttribute(e))}_delegateProperty(e,t){this.stateTarget&&(this.stateTarget[e]=t)}});/**
1611
1611
  * @license
1612
1612
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1613
1613
  * 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 Af=K(i=>class extends zn(ni(Ui(i))){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 T_=K(i=>class extends Rs(oi(Ui(i))){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 go=new Map;function Ln(i){return go.has(i)||go.set(i,new WeakMap),go.get(i)}function vh(i,e){i&&i.removeAttribute(e)}function bh(i,e){if(!i||!e)return;const t=Ln(e);if(t.has(i))return;const r=Pn(i.getAttribute(e));t.set(i,new Set(r))}function Pf(i,e){if(!i)return;const t=Ln(e),r=t.get(i);!r||r.size===0?i.removeAttribute(e):hh(i,e,Hr(r)),t.delete(i)}function fr(i,e,t={newId:null,oldId:null,fromUser:!1}){if(!i||!e)return;const{newId:r,oldId:o,fromUser:n}=t,s=Ln(e),a=s.get(i);if(!n&&a){o&&a.delete(o),r&&a.add(r);return}n&&(a?r||s.delete(i):bh(i,e),vh(i,e)),of(i,e,o);const l=r||Hr(a);l&&hh(i,e,l)}function If(i,e){bh(i,e),vh(i,e)}/**
1622
+ */const xo=new Map;function Vs(i){return xo.has(i)||xo.set(i,new WeakMap),xo.get(i)}function Ch(i,e){i&&i.removeAttribute(e)}function Eh(i,e){if(!i||!e)return;const t=Vs(e);if(t.has(i))return;const r=Ds(i.getAttribute(e));t.set(i,new Set(r))}function D_(i,e){if(!i)return;const t=Vs(e),r=t.get(i);!r||r.size===0?i.removeAttribute(e):mh(i,e,$r(r)),t.delete(i)}function fr(i,e,t={newId:null,oldId:null,fromUser:!1}){if(!i||!e)return;const{newId:r,oldId:o,fromUser:s}=t,n=Vs(e),a=n.get(i);if(!s&&a){o&&a.delete(o),r&&a.add(r);return}s&&(a?r||n.delete(i):Eh(i,e),Ch(i,e)),l_(i,e,o);const l=r||$r(a);l&&mh(i,e,l)}function O_(i,e){Eh(i,e),Ch(i,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 kf{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 r=t?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(e,r,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?(If(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&(Pf(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,r){fr(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:r})}__setErrorIdToAriaAttribute(e,t){fr(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){fr(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 N_{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 r=t?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(e,r,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?(O_(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&(D_(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,r){fr(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:r})}__setErrorIdToAriaAttribute(e,t){fr(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){fr(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/
@@ -1631,51 +1631,51 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1631
1631
  * @license
1632
1632
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
1633
1633
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1634
- */const Te=document.createElement("div");Te.style.position="fixed";Te.style.clip="rect(0px, 0px, 0px, 0px)";Te.setAttribute("aria-live","polite");document.body.appendChild(Te);let rr;function _r(i,e={}){const t=e.mode||"polite",r=e.timeout===void 0?150:e.timeout;t==="alert"?(Te.removeAttribute("aria-live"),Te.removeAttribute("role"),rr=ye.debounce(rr,Fi,()=>{Te.setAttribute("role","alert")})):(rr&&rr.cancel(),Te.removeAttribute("role"),Te.setAttribute("aria-live",t)),Te.textContent="",setTimeout(()=>{Te.textContent=i},r)}/**
1634
+ */const Te=document.createElement("div");Te.style.position="fixed";Te.style.clip="rect(0px, 0px, 0px, 0px)";Te.setAttribute("aria-live","polite");document.body.appendChild(Te);let or;function vr(i,e={}){const t=e.mode||"polite",r=e.timeout===void 0?150:e.timeout;t==="alert"?(Te.removeAttribute("aria-live"),Te.removeAttribute("role"),or=ye.debounce(or,Fi,()=>{Te.setAttribute("role","alert")})):(or&&or.cancel(),Te.removeAttribute("role"),Te.setAttribute("aria-live",t)),Te.textContent="",setTimeout(()=>{Te.textContent=i},r)}/**
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 Fn extends Fe{constructor(e,t,r,o={}){super(e,t,r,vl(br({},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(r=>{const o=r.target,n=o===this.node;r.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 $s extends He{constructor(e,t,r,o={}){super(e,t,r,Cl(xr({},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(r=>{const o=r.target,s=o===this.node;r.type==="attributes"?s&&this.__updateNodeId(o):(s||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 Tf extends Fn{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:r}=this,o=!!(r&&t&&t.trim()!=="");e&&(e.textContent=o?t:"",e.hidden=!o,o&&_r(t,{mode:"assertive"})),super.updateDefaultNode(e)}}/**
1642
+ */class B_ extends $s{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:r}=this,o=!!(r&&t&&t.trim()!=="");e&&(e.textContent=o?t:"",e.hidden=!o,o&&vr(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 Df extends Fn{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 M_ extends $s{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 yh extends Fn{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 Sh extends $s{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 Of=K(i=>class extends at(i){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new yh(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 z_=K(i=>class extends at(i){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Sh(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/
1658
- */const Hn=K(i=>class extends i{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}});/**
1658
+ */const Ws=K(i=>class extends i{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}});/**
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 Ur=i=>class extends Hn(Of(at(i))){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 kf(this),this._helperController=new Df(this),this._errorController=new Tf(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:r}=e.detail;this.__labelChanged(t,r)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:t,node:r}=e.detail;this.toggleAttribute("has-helper",t),this.__helperChanged(t,r)})}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 Gr=i=>class extends Ws(z_(at(i))){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 N_(this),this._helperController=new M_(this),this._errorController=new B_(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:r}=e.detail;this.__labelChanged(t,r)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:t,node:r}=e.detail;this.toggleAttribute("has-helper",t),this.__helperChanged(t,r)})}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/
1666
- */class Wi extends Fe{constructor(e,t,r={}){const{uniqueIdPrefix:o}=r;super(e,"input","input",{initializer:(n,s)=>{s.value&&(n.value=s.value),s.type&&n.setAttribute("type",s.type),n.id=this.defaultId,typeof t=="function"&&t(n)},useUniqueId:!0,uniqueIdPrefix:o})}}/**
1666
+ */class ji extends He{constructor(e,t,r={}){const{uniqueIdPrefix:o}=r;super(e,"input","input",{initializer:(s,n)=>{n.value&&(s.value=n.value),n.type&&s.setAttribute("type",n.type),s.id=this.defaultId,typeof t=="function"&&t(s)},useUniqueId:!0,uniqueIdPrefix:o})}}/**
1667
1667
  * @license
1668
1668
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1669
1669
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1670
- */class ji{constructor(e,t){this.input=e,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),t.addEventListener("slot-content-changed",r=>{this.__initLabel(r.detail.node)}),this.__initLabel(t.node)}__initLabel(e){e&&(e.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&e.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const e=t=>{t.stopImmediatePropagation(),this.input.removeEventListener("click",e)};this.input.addEventListener("click",e)}}/**
1670
+ */class Gi{constructor(e,t){this.input=e,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),t.addEventListener("slot-content-changed",r=>{this.__initLabel(r.detail.node)}),this.__initLabel(t.node)}__initLabel(e){e&&(e.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&e.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const e=t=>{t.stopImmediatePropagation(),this.input.removeEventListener("click",e)};this.input.addEventListener("click",e)}}/**
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 Nf=i=>class extends Ur(Af($r(On(i)))){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 Wi(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new ji(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 L_=i=>class extends Gr(T_(jr(zs(i)))){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 ji(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Gi(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 Bf=y`
1678
+ */const F_=y`
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
- */w("vaadin-checkbox",Bf,{moduleId:"vaadin-checkbox-styles"});class Mf extends Nf(He(U(R))){static get is(){return"vaadin-checkbox"}static get template(){return H`
1770
+ */w("vaadin-checkbox",F_,{moduleId:"vaadin-checkbox-styles"});class H_ extends L_(Re($(H))){static get is(){return"vaadin-checkbox"}static get template(){return F`
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 st(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}O(Mf);/**
1786
+ `}ready(){super.ready(),this._tooltipController=new nt(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}O(H_);/**
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 xh=y`
1790
+ */const Ah=y`
1791
1791
  :host {
1792
1792
  --_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
1793
1793
  }
@@ -1847,7 +1847,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1847
1847
  * @license
1848
1848
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1849
1849
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1850
- */const Rn=y`
1850
+ */const Us=y`
1851
1851
  [part='label'] {
1852
1852
  align-self: flex-start;
1853
1853
  color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
@@ -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
- `;w("",Rn,{moduleId:"lumo-required-field"});const zf=y`
1962
+ `;w("",Us,{moduleId:"lumo-required-field"});const R_=y`
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
- `;w("vaadin-checkbox-group",[Rn,xh,zf],{moduleId:"lumo-checkbox-group"});/**
2005
+ `;w("vaadin-checkbox-group",[Us,Ah,R_],{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 Lf=i=>class extends Ur(St(ni(i))){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 st(this),this._tooltipController.addEventListener("tooltip-changed",e=>{const t=e.detail.node;if(t&&t.isConnected){const r=this.__checkboxes.map(o=>o.inputElement);this._tooltipController.setAriaTarget(r)}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 In(e,({addedNodes:t,removedNodes:r})=>{const o=this.__filterCheckboxes(t),n=this.__filterCheckboxes(r);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:r}=t;return!t.hasAttribute("value")&&(!r||r==="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(r=>{r.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(r=>{r.checked=e&&e.includes(r.value)}),t!==void 0&&this.validate())}__readonlyChanged(e,t){(e||t)&&this.__checkboxes.forEach(r=>{r.readonly=e})}_shouldRemoveFocus(e){return!this.contains(e.relatedTarget)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}};/**
2009
+ */const V_=i=>class extends Gr(St(oi(i))){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 nt(this),this._tooltipController.addEventListener("tooltip-changed",e=>{const t=e.detail.node;if(t&&t.isConnected){const r=this.__checkboxes.map(o=>o.inputElement);this._tooltipController.setAriaTarget(r)}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 Os(e,({addedNodes:t,removedNodes:r})=>{const o=this.__filterCheckboxes(t),s=this.__filterCheckboxes(r);o.forEach(this.__registerCheckbox),s.forEach(this.__unregisterCheckbox);const n=this.__checkboxes.map(a=>a.inputElement);this._tooltipController.setAriaTarget(n),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:r}=t;return!t.hasAttribute("value")&&(!r||r==="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(r=>{r.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(r=>{r.checked=e&&e.includes(r.value)}),t!==void 0&&this.validate())}__readonlyChanged(e,t){(e||t)&&this.__checkboxes.forEach(r=>{r.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 Ff=y`
2013
+ */const $_=y`
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
- */w("vaadin-checkbox-group",Ff,{moduleId:"vaadin-checkbox-group-styles"});class Hf extends Lf(He(U(R))){static get is(){return"vaadin-checkbox-group"}static get template(){return H`
2046
+ */w("vaadin-checkbox-group",$_,{moduleId:"vaadin-checkbox-group-styles"});class W_ extends V_(Re($(H))){static get is(){return"vaadin-checkbox-group"}static get template(){return F`
2047
2047
  <div class="vaadin-group-field-container">
2048
2048
  <div part="label">
2049
2049
  <slot name="label"></slot>
@@ -2064,11 +2064,11 @@ 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
- `}}O(Hf);/**
2067
+ `}}O(W_);/**
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/
2071
- */const Wr=y`
2071
+ */const qr=y`
2072
2072
  :host {
2073
2073
  top: var(--lumo-space-m);
2074
2074
  right: var(--lumo-space-m);
@@ -2133,11 +2133,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2133
2133
  opacity: 1;
2134
2134
  }
2135
2135
  }
2136
- `;w("",Wr,{moduleId:"lumo-overlay"});/**
2136
+ `;w("",qr,{moduleId:"lumo-overlay"});/**
2137
2137
  * @license
2138
2138
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2139
2139
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2140
- */const jr=y`
2140
+ */const Yr=y`
2141
2141
  :host([opening]),
2142
2142
  :host([closing]) {
2143
2143
  animation: 0.14s lumo-overlay-dummy-animation;
@@ -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
- `;w("",jr,{moduleId:"lumo-menu-overlay-core"});const Rf=y`
2170
+ `;w("",Yr,{moduleId:"lumo-menu-overlay-core"});const U_=y`
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
- `,Vn=[Wr,jr,Rf];w("",Vn,{moduleId:"lumo-menu-overlay"});const Vf=y`
2232
+ `,js=[qr,Yr,U_];w("",js,{moduleId:"lumo-menu-overlay"});const j_=y`
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
- `;w("vaadin-date-picker-overlay",[Vn,Vf],{moduleId:"lumo-date-picker-overlay"});const wh=y`
2277
+ `;w("vaadin-date-picker-overlay",[js,j_],{moduleId:"lumo-date-picker-overlay"});const Ph=y`
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
- `;w("vaadin-button",wh,{moduleId:"lumo-button"});w("vaadin-date-picker-year",y`
2553
+ `;w("vaadin-button",Ph,{moduleId:"lumo-button"});w("vaadin-date-picker-year",y`
2554
2554
  :host([current]) [part='year-number'] {
2555
2555
  color: var(--lumo-primary-text-color);
2556
2556
  }
@@ -3053,7 +3053,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3053
3053
  * @license
3054
3054
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3055
3055
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3056
- */const $n=y`
3056
+ */const Gs=y`
3057
3057
  [part$='button'] {
3058
3058
  flex: none;
3059
3059
  width: 1em;
@@ -3080,11 +3080,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3080
3080
  font-family: 'lumo-icons';
3081
3081
  display: block;
3082
3082
  }
3083
- `;w("",$n,{moduleId:"lumo-field-button"});/**
3083
+ `;w("",Gs,{moduleId:"lumo-field-button"});/**
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 $f=y`
3087
+ */const G_=y`
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
- `,At=[Rn,$n,xh,$f];w("",At,{moduleId:"lumo-input-field-shared-styles"});const Uf=y`
3218
+ `,At=[Us,Gs,Ah,G_];w("",At,{moduleId:"lumo-input-field-shared-styles"});const q_=y`
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
- `;w("vaadin-date-picker",[At,Uf],{moduleId:"lumo-date-picker"});/**
3240
+ `;w("vaadin-date-picker",[At,q_],{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 Wf=i=>class extends i{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 Y_=i=>class extends i{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 jf=y`
3248
+ */const X_=y`
3249
3249
  :host {
3250
3250
  display: flex;
3251
3251
  align-items: center;
@@ -3314,15 +3314,15 @@ 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
- */w("vaadin-input-container",jf,{moduleId:"vaadin-input-container-styles"});class Ch extends Wf(U(Se(R))){static get is(){return"vaadin-input-container"}static get template(){return H`
3317
+ */w("vaadin-input-container",X_,{moduleId:"vaadin-input-container-styles"});class Ih extends Y_($(Se(H))){static get is(){return"vaadin-input-container"}static get template(){return F`
3318
3318
  <slot name="prefix"></slot>
3319
3319
  <slot></slot>
3320
3320
  <slot name="suffix"></slot>
3321
- `}}O(Ch);/**
3321
+ `}}O(Ih);/**
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/
3325
- */const Gr=y`
3325
+ */const Xr=y`
3326
3326
  :host {
3327
3327
  z-index: 200;
3328
3328
  position: fixed;
@@ -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 on=!1,Gf=[],Eh=[];function qf(){on=!0,requestAnimationFrame(function(){on=!1,Yf(Gf),setTimeout(function(){Xf(Eh)})})}function Yf(i){for(;i.length;)Sh(i.shift())}function Xf(i){for(let e=0,t=i.length;e<t;e++)Sh(i.shift())}function Sh(i){const e=i[0],t=i[1],r=i[2];try{t.apply(e,r)}catch(o){setTimeout(()=>{throw o})}}function Ah(i,e,t){on||qf(),Eh.push([i,e,t])}/**
3392
+ */let hs=!1,K_=[],kh=[];function J_(){hs=!0,requestAnimationFrame(function(){hs=!1,Z_(K_),setTimeout(function(){Q_(kh)})})}function Z_(i){for(;i.length;)Th(i.shift())}function Q_(i){for(let e=0,t=i.length;e<t;e++)Th(i.shift())}function Th(i){const e=i[0],t=i[1],r=i[2];try{t.apply(e,r)}catch(o){setTimeout(()=>{throw o})}}function Dh(i,e,t){hs||J_(),kh.push([i,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 qr=i=>i.test(navigator.userAgent),nn=i=>i.test(navigator.platform),Kf=i=>i.test(navigator.vendor);qr(/Android/u);qr(/Chrome/u)&&Kf(/Google Inc/u);qr(/Firefox/u);const Jf=nn(/^iPad/u)||nn(/^Mac/u)&&navigator.maxTouchPoints>1,Zf=nn(/^iPhone/u),Un=Zf||Jf,Qf=qr(/^((?!chrome|android).)*safari/iu),sn=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(i){return!1}})();/**
3396
+ */const Kr=i=>i.test(navigator.userAgent),ds=i=>i.test(navigator.platform),ef=i=>i.test(navigator.vendor);Kr(/Android/u);Kr(/Chrome/u)&&ef(/Google Inc/u);Kr(/Firefox/u);const tf=ds(/^iPad/u)||ds(/^Mac/u)&&navigator.maxTouchPoints>1,rf=ds(/^iPhone/u),qs=rf||tf,of=Kr(/^((?!chrome|android).)*safari/iu),cs=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(i){return!1}})();/**
3397
3397
  * @license
3398
3398
  * Copyright (c) 2017 Anton Korzunov
3399
3399
  * SPDX-License-Identifier: MIT
3400
- */let Lt=new WeakMap,or=new WeakMap,nr={},vo=0;const fa=i=>i&&i.nodeType===Node.ELEMENT_NODE,bo=(...i)=>{console.error(`Error: ${i.join(" ")}. Skip setting aria-hidden.`)},e_=(i,e)=>fa(i)?e.map(t=>{if(!fa(t))return bo(t,"is not a valid element"),null;let r=t;for(;r&&r!==i;){if(i.contains(r))return t;r=r.getRootNode().host}return bo(t,"is not contained inside",i),null}).filter(t=>!!t):(bo(i,"is not a valid element"),[]),t_=(i,e,t,r)=>{const o=e_(e,Array.isArray(i)?i:[i]);nr[t]||(nr[t]=new WeakMap);const n=nr[t],s=[],a=new Set,l=new Set(o),h=c=>{if(!c||a.has(c))return;a.add(c);const p=c.assignedSlot;p&&h(p),h(c.parentNode||c.host)};o.forEach(h);const d=c=>{if(!c||l.has(c))return;const p=c.shadowRoot;(p?[...c.children,...p.children]:[...c.children]).forEach(u=>{if(!["template","script","style"].includes(u.localName))if(a.has(u))d(u);else{const g=u.getAttribute(r),x=g!==null&&g!=="false",P=(Lt.get(u)||0)+1,A=(n.get(u)||0)+1;Lt.set(u,P),n.set(u,A),s.push(u),P===1&&x&&or.set(u,!0),A===1&&u.setAttribute(t,"true"),x||u.setAttribute(r,"true")}})};return d(e),a.clear(),vo+=1,()=>{s.forEach(c=>{const p=Lt.get(c)-1,u=n.get(c)-1;Lt.set(c,p),n.set(c,u),p||(or.has(c)?or.delete(c):c.removeAttribute(r)),u||c.removeAttribute(t)}),vo-=1,vo||(Lt=new WeakMap,Lt=new WeakMap,or=new WeakMap,nr={})}},Ph=(i,e=document.body,t="data-aria-hidden")=>{const r=Array.from(Array.isArray(i)?i:[i]);return e&&r.push(...Array.from(e.querySelectorAll("[aria-live]"))),t_(r,e,t,"aria-hidden")};/**
3400
+ */let Lt=new WeakMap,sr=new WeakMap,nr={},wo=0;const ya=i=>i&&i.nodeType===Node.ELEMENT_NODE,Co=(...i)=>{console.error(`Error: ${i.join(" ")}. Skip setting aria-hidden.`)},sf=(i,e)=>ya(i)?e.map(t=>{if(!ya(t))return Co(t,"is not a valid element"),null;let r=t;for(;r&&r!==i;){if(i.contains(r))return t;r=r.getRootNode().host}return Co(t,"is not contained inside",i),null}).filter(t=>!!t):(Co(i,"is not a valid element"),[]),nf=(i,e,t,r)=>{const o=sf(e,Array.isArray(i)?i:[i]);nr[t]||(nr[t]=new WeakMap);const s=nr[t],n=[],a=new Set,l=new Set(o),h=c=>{if(!c||a.has(c))return;a.add(c);const p=c.assignedSlot;p&&h(p),h(c.parentNode||c.host)};o.forEach(h);const d=c=>{if(!c||l.has(c))return;const p=c.shadowRoot;(p?[...c.children,...p.children]:[...c.children]).forEach(u=>{if(!["template","script","style"].includes(u.localName))if(a.has(u))d(u);else{const v=u.getAttribute(r),x=v!==null&&v!=="false",P=(Lt.get(u)||0)+1,A=(s.get(u)||0)+1;Lt.set(u,P),s.set(u,A),n.push(u),P===1&&x&&sr.set(u,!0),A===1&&u.setAttribute(t,"true"),x||u.setAttribute(r,"true")}})};return d(e),a.clear(),wo+=1,()=>{n.forEach(c=>{const p=Lt.get(c)-1,u=s.get(c)-1;Lt.set(c,p),s.set(c,u),p||(sr.has(c)?sr.delete(c):c.removeAttribute(r)),u||c.removeAttribute(t)}),wo-=1,wo||(Lt=new WeakMap,Lt=new WeakMap,sr=new WeakMap,nr={})}},Oh=(i,e=document.body,t="data-aria-hidden")=>{const r=Array.from(Array.isArray(i)?i:[i]);return e&&r.push(...Array.from(e.querySelectorAll("[aria-live]"))),nf(r,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 i_{constructor(e,t){this.host=e,this.callback=typeof t=="function"?t:()=>e}showModal(){const e=this.callback();this.__showOthers=Ph(e)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
3404
+ */class af{constructor(e,t){this.host=e,this.callback=typeof t=="function"?t:()=>e}showModal(){const e=this.callback();this.__showOthers=Oh(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 r_{saveFocus(e){this.focusNode=e||en()}restoreFocus(e){const t=this.focusNode;if(!t)return;const r=e?e.preventScroll:!1;en()===document.body?setTimeout(()=>t.focus({preventScroll:r})):t.focus({preventScroll:r}),this.focusNode=null}}/**
3408
+ */class lf{saveFocus(e){this.focusNode=e||ns()}restoreFocus(e){const t=this.focusNode;if(!t)return;const r=e?e.preventScroll:!1;ns()===document.body?setTimeout(()=>t.focus({preventScroll:r})):t.focus({preventScroll:r}),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 yo=[];class o_{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return Sf(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(Mn).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.");yo.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,yo.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from(yo).pop()&&e.key==="Tab"){e.preventDefault();const t=e.shiftKey;this.__focusNextElement(t)}}__focusNextElement(e=!1){const t=this.__focusableElements,r=e?-1:1,o=this.__focusedElementIndex,n=(t.length+o+r)%t.length,s=t[n];s.focus(),s.localName==="input"&&s.select()}}/**
3412
+ */const Eo=[];class hf{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return k_(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(Hs).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.");Eo.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Eo.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from(Eo).pop()&&e.key==="Tab"){e.preventDefault();const t=e.shiftKey;this.__focusNextElement(t)}}__focusNextElement(e=!1){const t=this.__focusableElements,r=e?-1:1,o=this.__focusedElementIndex,s=(t.length+o+r)%t.length,n=t[s];n.focus(),n.localName==="input"&&n.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 n_=i=>class extends at(i){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new i_(this),this.__focusTrapController=new o_(this),this.__focusRestorationController=new r_}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=!Vr();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=en();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let t=e;const r=e.ownerDocument;for(;t&&t!==r&&t!==this;)t=t.parentNode||t.host;return t===this}};/**
3416
+ */const df=i=>class extends at(i){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new af(this),this.__focusTrapController=new hf(this),this.__focusRestorationController=new lf}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=!Ur();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=ns();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let t=e;const r=e.ownerDocument;for(;t&&t!==r&&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 Ih=()=>Array.from(document.body.children).filter(i=>i instanceof HTMLElement&&i._hasOverlayStackMixin&&!i.hasAttribute("closing")).sort((i,e)=>i.__zIndex-e.__zIndex||0),an=()=>Ih().filter(i=>i.$.overlay),s_=i=>i===an().pop(),kh=i=>class extends i{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return s_(this)}bringToFront(){let e="";const t=Ih().filter(r=>r!==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"),an().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=an();let t;for(;(t=e.pop())&&!(t!==this&&(t.$.overlay.style.removeProperty("pointer-events"),!t.modeless)););}};/**
3420
+ */const Nh=()=>Array.from(document.body.children).filter(i=>i instanceof HTMLElement&&i._hasOverlayStackMixin&&!i.hasAttribute("closing")).sort((i,e)=>i.__zIndex-e.__zIndex||0),us=()=>Nh().filter(i=>i.$.overlay),cf=i=>i===us().pop(),Bh=i=>class extends i{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return cf(this)}bringToFront(){let e="";const t=Nh().filter(r=>r!==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"),us().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=us();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 Yr=i=>class extends n_(kh(i)){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),Un&&(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,r=document.documentElement.clientHeight;t&&r>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${r-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,r,o){const n=this._oldOwner!==t||this._oldModel!==r;this._oldModel=r,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(),Ah(this,()=>{this._trapFocus();const r=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(r)}),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 r=`__${e}Handler`,o=n=>{n&&n.target!==this||(t(),this.removeEventListener("animationend",o),delete this[r])};this[r]=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=i=>class extends df(Bh(i)){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),qs&&(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,r=document.documentElement.clientHeight;t&&r>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${r-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,r,o){const s=this._oldOwner!==t||this._oldModel!==r;this._oldModel=r,this._oldOwner=t;const n=this._oldRenderer!==e,a=this._oldRenderer!==void 0;this._oldRenderer=e;const l=this._oldOpened!==o;this._oldOpened=o,n&&a&&(this.innerHTML="",delete this._$litPart$),o&&e&&(n||l||s)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,t){e?(this._saveFocus(),this._animatedOpening(),Dh(this,()=>{this._trapFocus();const r=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(r)}),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 r=`__${e}Handler`,o=s=>{s&&s.target!==this||(t(),this.removeEventListener("animationend",o),delete this[r])};this[r]=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 a_(i,e){let t=null;const r=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}=i.getBoundingClientRect();if(s||e(),!d||!c)return;const p=Math.floor(h),u=Math.floor(r.clientWidth-(l+d)),g=Math.floor(r.clientHeight-(h+c)),x=Math.floor(l),P={rootMargin:`${-p}px ${-u}px ${-g}px ${-x}px`,threshold:Math.max(0,Math.min(1,a))||1};let A=!0;function L(k){let $=k[0].intersectionRatio;if($!==a){if(!A)return n();$===0&&($=1e-7),n(!1,$)}A=!1}t=new IntersectionObserver(L,P),t.observe(i)}return n(!0),o}/**
3428
+ */function uf(i,e){let t=null;const r=document.documentElement;function o(){t&&t.disconnect(),t=null}function s(n=!1,a=1){o();const{left:l,top:h,width:d,height:c}=i.getBoundingClientRect();if(n||e(),!d||!c)return;const p=Math.floor(h),u=Math.floor(r.clientWidth-(l+d)),v=Math.floor(r.clientHeight-(h+c)),x=Math.floor(l),P={rootMargin:`${-p}px ${-u}px ${-v}px ${-x}px`,threshold:Math.max(0,Math.min(1,a))||1};let A=!0;function z(k){let V=k[0].intersectionRatio;if(V!==a){if(!A)return s();V===0&&(V=1e-7),s(!1,V)}A=!1}t=new IntersectionObserver(z,P),t.observe(i)}return s(!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 xo={start:"top",end:"bottom"},wo={start:"left",end:"right"},_a=new ResizeObserver(i=>{setTimeout(()=>{i.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),Wn=i=>class extends i{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=rf(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=a_(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,_a.unobserve(t),e&&(this.__addUpdatePositionEventListeners(),t.__overlay=this,_a.observe(t))),e){const r=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(o=>{this.__margins[o]=parseInt(r[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 r=this.__isRTL,o=this.__shouldAlignStartHorizontally(e,r),n=!r&&o||r&&!o;this.style.alignItems=n?"flex-start":"flex-end";const s=this.getBoundingClientRect(),a=this.__calculatePositionInOneDimension(e,s,this.noVerticalOverlap,xo,this,t),l=this.__calculatePositionInOneDimension(e,s,this.noHorizontalOverlap,wo,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 r=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,r,o,this.__margins,n,this.noHorizontalOverlap,wo)}__shouldAlignStartVertically(e){const t=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const r=Math.min(window.innerHeight,document.documentElement.clientHeight),o=this.verticalAlign==="top";return this.__shouldAlignStart(e,t,r,this.__margins,o,this.noVerticalOverlap,xo)}__shouldAlignStart(e,t,r,o,n,s,a){const l=r-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,r){let o;if(e===t.end){if(t.end===xo.end){const n=Math.min(window.innerHeight,document.documentElement.clientHeight);if(r>n&&this.__oldViewportHeight){const s=this.__oldViewportHeight-n;o=r-s}this.__oldViewportHeight=n}if(t.end===wo.end){const n=Math.min(window.innerWidth,document.documentElement.clientWidth);if(r>n&&this.__oldViewportWidth){const s=this.__oldViewportWidth-n;o=r-s}this.__oldViewportWidth=n}}return o}__calculatePositionInOneDimension(e,t,r,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[r===s?o.end:o.start],p=d?`${d}px`:`${h+c*(s?-1:1)}px`;return{[a]:p,[l]:""}}};/**
3432
+ */const So={start:"top",end:"bottom"},Ao={start:"left",end:"right"},xa=new ResizeObserver(i=>{setTimeout(()=>{i.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),Ys=i=>class extends i{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=a_(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=uf(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,xa.unobserve(t),e&&(this.__addUpdatePositionEventListeners(),t.__overlay=this,xa.observe(t))),e){const r=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(o=>{this.__margins[o]=parseInt(r[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 r=this.__isRTL,o=this.__shouldAlignStartHorizontally(e,r),s=!r&&o||r&&!o;this.style.alignItems=s?"flex-start":"flex-end";const n=this.getBoundingClientRect(),a=this.__calculatePositionInOneDimension(e,n,this.noVerticalOverlap,So,this,t),l=this.__calculatePositionInOneDimension(e,n,this.noHorizontalOverlap,Ao,this,o);Object.assign(this.style,a,l),this.toggleAttribute("bottom-aligned",!t),this.toggleAttribute("top-aligned",t),this.toggleAttribute("end-aligned",!s),this.toggleAttribute("start-aligned",s)}__shouldAlignStartHorizontally(e,t){const r=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const o=Math.min(window.innerWidth,document.documentElement.clientWidth),s=!t&&this.horizontalAlign==="start"||t&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,r,o,this.__margins,s,this.noHorizontalOverlap,Ao)}__shouldAlignStartVertically(e){const t=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const r=Math.min(window.innerHeight,document.documentElement.clientHeight),o=this.verticalAlign==="top";return this.__shouldAlignStart(e,t,r,this.__margins,o,this.noVerticalOverlap,So)}__shouldAlignStart(e,t,r,o,s,n,a){const l=r-e[n?a.end:a.start]-o[a.end],h=e[n?a.start:a.end]-o[a.start],d=s?l:h,c=d>(s?h:l)||d>t;return s===c}__adjustBottomProperty(e,t,r){let o;if(e===t.end){if(t.end===So.end){const s=Math.min(window.innerHeight,document.documentElement.clientHeight);if(r>s&&this.__oldViewportHeight){const n=this.__oldViewportHeight-s;o=r-n}this.__oldViewportHeight=s}if(t.end===Ao.end){const s=Math.min(window.innerWidth,document.documentElement.clientWidth);if(r>s&&this.__oldViewportWidth){const n=this.__oldViewportWidth-s;o=r-n}this.__oldViewportWidth=s}}return o}__calculatePositionInOneDimension(e,t,r,o,s,n){const a=n?o.start:o.end,l=n?o.end:o.start,h=parseFloat(s.style[a]||getComputedStyle(s)[a]),d=this.__adjustBottomProperty(a,o,h),c=t[n?o.start:o.end]-e[r===n?o.end:o.start],p=d?`${d}px`:`${h+c*(n?-1:1)}px`;return{[a]:p,[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 l_=i=>class extends Wn(Yr(i)){_shouldCloseOnOutsideClick(e){return!e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!Bn(e.composedPath()[0])&&e.preventDefault()}};/**
3436
+ */const pf=i=>class extends Ys(Jr(i)){_shouldCloseOnOutsideClick(e){return!e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!Fs(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 h_=y`
3440
+ */const mf=y`
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
- */w("vaadin-date-picker-overlay",[Gr,h_],{moduleId:"vaadin-date-picker-overlay-styles"});class d_ extends l_(Se(U(R))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return H`
3459
+ */w("vaadin-date-picker-overlay",[Xr,mf],{moduleId:"vaadin-date-picker-overlay-styles"});class _f extends pf(Se($(H))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return F`
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
- `}}O(d_);/**
3466
+ `}}O(_f);/**
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 Th=y`
3470
+ */const Mh=y`
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
- `,c_=i=>i`
3530
+ `,ff=i=>i`
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 jn=i=>class extends On(gh(St(i))){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 Xs=i=>class extends zs(wh(St(i))){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
- */w("vaadin-button",Th,{moduleId:"vaadin-button-styles"});class u_ extends jn(He(U(at(R)))){static get is(){return"vaadin-button"}static get template(){return c_(H)}ready(){super.ready(),this._tooltipController=new st(this),this.addController(this._tooltipController)}}O(u_);/**
3551
+ */w("vaadin-button",Mh,{moduleId:"vaadin-button-styles"});class vf extends Xs(Re($(at(H)))){static get is(){return"vaadin-button"}static get template(){return ff(F)}ready(){super.ready(),this._tooltipController=new nt(this),this.addController(this._tooltipController)}}O(vf);/**
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 p_(i){let e=i.getDay();e===0&&(e=7);const t=4-e,r=new Date(i.getTime()+t*24*3600*1e3),o=new Date(0,0);o.setFullYear(r.getFullYear());const n=r.getTime()-o.getTime(),s=Math.round(n/(24*3600*1e3));return Math.floor(s/7+1)}function ln(i){const e=new Date(i);return e.setHours(0,0,0,0),e}function Ge(i,e,t=ln){return i instanceof Date&&e instanceof Date&&t(i).getTime()===t(e).getTime()}function Gn(i){return{day:i.getDate(),month:i.getMonth(),year:i.getFullYear()}}function Qt(i,e,t,r){let o=!1;if(typeof r=="function"&&i){const n=Gn(i);o=r(n)}return(!e||i>=e)&&(!t||i<=t)&&!o}function Dh(i,e){return e.filter(t=>t!==void 0).reduce((t,r)=>{if(!r)return t;if(!t)return r;const o=Math.abs(i.getTime()-r.getTime()),n=Math.abs(t.getTime()-i.getTime());return o<n?r:t})}function Oh(i){const e=new Date,t=new Date(e);return t.setDate(1),t.setMonth(parseInt(i)+e.getMonth()),t}function m_(i,e,t=0,r=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(i.getFullYear()/100)*100;return i<new Date(o-50,t,r)?o-=100:i>new Date(o+50,t,r)&&(o+=100),o}function bi(i){const e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(i);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 f_(i){const e=(l,h="00")=>(h+l).substr((h+l).length-h.length);let t="",r="0000",o=i.year;o<0?(o=-o,t="-",r="000000"):i.year>=1e4&&(t="+",r="000000");const n=t+e(o,r),s=e(i.month+1),a=e(i.day);return[n,s,a].join("-")}function __(i){return i instanceof Date?f_({year:i.getFullYear(),month:i.getMonth(),day:i.getDate()}):""}/**
3555
+ */function gf(i){let e=i.getDay();e===0&&(e=7);const t=4-e,r=new Date(i.getTime()+t*24*3600*1e3),o=new Date(0,0);o.setFullYear(r.getFullYear());const s=r.getTime()-o.getTime(),n=Math.round(s/(24*3600*1e3));return Math.floor(n/7+1)}function ps(i){const e=new Date(i);return e.setHours(0,0,0,0),e}function qe(i,e,t=ps){return i instanceof Date&&e instanceof Date&&t(i).getTime()===t(e).getTime()}function Ks(i){return{day:i.getDate(),month:i.getMonth(),year:i.getFullYear()}}function Zt(i,e,t,r){let o=!1;if(typeof r=="function"&&i){const s=Ks(i);o=r(s)}return(!e||i>=e)&&(!t||i<=t)&&!o}function zh(i,e){return e.filter(t=>t!==void 0).reduce((t,r)=>{if(!r)return t;if(!t)return r;const o=Math.abs(i.getTime()-r.getTime()),s=Math.abs(t.getTime()-i.getTime());return o<s?r:t})}function Lh(i){const e=new Date,t=new Date(e);return t.setDate(1),t.setMonth(parseInt(i)+e.getMonth()),t}function bf(i,e,t=0,r=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(i.getFullYear()/100)*100;return i<new Date(o-50,t,r)?o-=100:i>new Date(o+50,t,r)&&(o+=100),o}function gi(i){const e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(i);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 yf(i){const e=(l,h="00")=>(h+l).substr((h+l).length-h.length);let t="",r="0000",o=i.year;o<0?(o=-o,t="-",r="000000"):i.year>=1e4&&(t="+",r="000000");const s=t+e(o,r),n=e(i.month+1),a=e(i.day);return[s,n,a].join("-")}function xf(i){return i instanceof Date?yf({year:i.getFullYear(),month:i.getMonth(),day:i.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 kr{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,Ri.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Ri.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,r){return e instanceof kr?e._cancelAsync():e=new kr,e.setConfig(t,r),e}}let Ri=new Set;const g_=function(i){Ri.add(i)},v_=function(){const i=!!Ri.size;return Ri.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),i};/**
3563
+ */class Dr{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,Ri.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Ri.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,r){return e instanceof Dr?e._cancelAsync():e=new Dr,e.setConfig(t,r),e}}let Ri=new Set;const wf=function(i){Ri.add(i)},Cf=function(){const i=!!Ri.size;return Ri.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),i};/**
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 qn=function(){let i,e;do i=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),e=v_();while(i||e)};/**
3571
+ */const Js=function(){let i,e;do i=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),e=Cf();while(i||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 Nh=document.createElement("template");Nh.innerHTML=`
3575
+ */const Fh=document.createElement("template");Fh.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 Bh extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Nh.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 r=getComputedStyle(this.$.fullHeight).getPropertyValue(t);this.$.fullHeight.style.removeProperty(t),this._itemHeightVal=parseFloat(r)}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()),qn()}_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,r=e>this._buffers[1].translateY+t,o=e<this._buffers[0].translateY+t;(r||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=ye.debounce(this._debouncerScrollFinish,rt.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=ye.debounce(this._debouncerUpdateClones,rt.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 r=0;r<this.bufferSize;r++){const o=document.createElement("div");o.style.height=`${this.itemHeight}px`,o.instance={};const n=`vaadin-infinite-scroller-item-content-${Rr()}`,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(r=>{e.instance[r]=t[r]})}_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((r,o)=>{if(!r.updated){const n=this._firstIndex+this.bufferSize*o;[...r.children].forEach((s,a)=>{const l=s._itemWrapper;(!e||this._isVisible(l,t))&&this._updateElement(l.instance,n+a)}),r.updated=!0}})}_isVisible(e,t){const r=e.getBoundingClientRect();return r.bottom>t.top&&r.top<t.bottom}}/**
3625
+ `;class Hh extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Fh.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 r=getComputedStyle(this.$.fullHeight).getPropertyValue(t);this.$.fullHeight.style.removeProperty(t),this._itemHeightVal=parseFloat(r)}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()),Js()}_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,r=e>this._buffers[1].translateY+t,o=e<this._buffers[0].translateY+t;(r||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=ye.debounce(this._debouncerScrollFinish,rt.after(200),()=>{const s=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],s)&&!this._isVisible(this._buffers[1],s)&&(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=ye.debounce(this._debouncerUpdateClones,rt.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 r=0;r<this.bufferSize;r++){const o=document.createElement("div");o.style.height=`${this.itemHeight}px`,o.instance={};const s=`vaadin-infinite-scroller-item-content-${Wr()}`,n=document.createElement("slot");n.setAttribute("name",s),n._itemWrapper=o,t.appendChild(n),o.setAttribute("slot",s),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(r=>{e.instance[r]=t[r]})}_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((r,o)=>{if(!r.updated){const s=this._firstIndex+this.bufferSize*o;[...r.children].forEach((n,a)=>{const l=n._itemWrapper;(!e||this._isVisible(l,t))&&this._updateElement(l.instance,s+a)}),r.updated=!0}})}_isVisible(e,t){const r=e.getBoundingClientRect();return r.bottom>t.top&&r.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 Mh=document.createElement("template");Mh.innerHTML=`
3629
+ */const Rh=document.createElement("template");Rh.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 b_ extends Bh{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(Mh.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(e,t){e.month=Oh(t)}}O(b_);/**
3641
+ `;class Ef extends Hh{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(Rh.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(e,t){e.month=Lh(t)}}O(Ef);/**
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 zh=document.createElement("template");zh.innerHTML=`
3645
+ */const Vh=document.createElement("template");Vh.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 y_ extends Bh{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(zh.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,r=new Date(t);return r.setFullYear(parseInt(e)+t.getFullYear()),r.getFullYear()}}O(y_);/**
3679
+ `;class Sf extends Hh{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(Vh.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,r=new Date(t);return r.setFullYear(parseInt(e)+t.getFullYear()),r.getFullYear()}}O(Sf);/**
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 x_=i=>class extends i{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 Af=i=>class extends i{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 w_ extends U(x_(R)){static get is(){return"vaadin-date-picker-year"}static get template(){return H`
3687
+ */class Pf extends $(Af(H)){static get is(){return"vaadin-date-picker-year"}static get template(){return F`
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
- `}}O(w_);/**
3696
+ `}}O(Pf);/**
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 Yn(i,e,t,r,o){let n;o&&(n=typeof t=="object"&&t!==null,n&&(r=i.__dataTemp[e]));let s=r!==t&&(r===r||t===t);return n&&s&&(i.__dataTemp[e]=t),s}const Xn=K(i=>{class e extends i{_shouldPropertyChange(r,o,n){return Yn(this,r,o,n,!0)}}return e}),C_=K(i=>{class e extends i{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(r,o,n){return Yn(this,r,o,n,this.mutableData)}}return e});Xn._mutablePropertyChange=Yn;/**
3704
+ */function Zs(i,e,t,r,o){let s;o&&(s=typeof t=="object"&&t!==null,s&&(r=i.__dataTemp[e]));let n=r!==t&&(r===r||t===t);return s&&n&&(i.__dataTemp[e]=t),n}const Qs=K(i=>{class e extends i{_shouldPropertyChange(r,o,s){return Zs(this,r,o,s,!0)}}return e}),If=K(i=>{class e extends i{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(r,o,s){return Zs(this,r,o,s,this.mutableData)}}return e});Qs._mutablePropertyChange=Zs;/**
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 hn=null;function dn(){return hn}dn.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:dn,writable:!0}});const Lh=An(dn),E_=Xn(Lh);function S_(i,e){hn=i,Object.setPrototypeOf(i,e.prototype),new e,hn=null}const A_=An(class{});function P_(i,e){for(let t=0;t<e.length;t++){let r=e[t];if(!!i!=!!r.__hideTemplateChildren__)if(r.nodeType===Node.TEXT_NODE)i?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textContent=r.__polymerTextContent__;else if(r.localName==="slot")if(i)r.__polymerReplaced__=document.createComment("hidden-slot"),ne(ne(r).parentNode).replaceChild(r.__polymerReplaced__,r);else{const o=r.__polymerReplaced__;o&&ne(ne(o).parentNode).replaceChild(r,o)}else r.style&&(i?(r.__polymerDisplay__=r.style.display,r.style.display="none"):r.style.display=r.__polymerDisplay__);r.__hideTemplateChildren__=i,r._showHideChildren&&r._showHideChildren(i)}}class lt extends A_{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 r=this.__templatizeOptions;(e&&r.instanceProps||!r.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,r){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,t,o=>{o.model=this,r(o)});else{let o=this.__dataHost.__dataHost;o&&o._addEventListenerToNode(e,t,r)}}_showHideChildren(e){P_(e,this.children)}_setUnmanagedPropertyToNode(e,t,r){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&t=="textContent"?e.__polymerTextContent__=r:super._setUnmanagedPropertyToNode(e,t,r)}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}}lt.prototype.__dataHost;lt.prototype.__templatizeOptions;lt.prototype._methodHost;lt.prototype.__templatizeOwner;lt.prototype.__hostProps;const I_=Xn(lt);function ga(i){let e=i.__dataHost;return e&&e._methodHost||e}function k_(i,e,t){let r=t.mutableData?I_:lt;cn.mixin&&(r=cn.mixin(r));let o=class extends r{};return o.prototype.__templatizeOptions=t,o.prototype._bindTemplate(i),O_(o,i,e,t),o}function T_(i,e,t,r){let o=t.forwardHostProp;if(o&&e.hasHostProps){const n=i.localName=="template";let s=e.templatizeTemplateClass;if(!s){if(n){let l=t.mutableData?E_:Lh;class h extends l{}s=e.templatizeTemplateClass=h}else{const l=i.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:D_(l,o)}),s.prototype._createNotifyingProperty("_host_"+l);Ml&&r&&M_(e,t,r)}if(i.__dataProto&&Object.assign(i.__data,i.__dataProto),n)S_(i,s),i.__dataTemp={},i.__dataPending=null,i.__dataOld=null,i._enableProperties();else{Object.setPrototypeOf(i,s.prototype);const a=e.hostProps;for(let l in a)if(l="_host_"+l,l in i){const h=i[l];delete i[l],i.__data[l]=h}}}}function D_(i,e){return function(t,r,o){e.call(t.__templatizeOwner,r.substring(6),o[r])}}function O_(i,e,t,r){let o=t.hostProps||{};for(let n in r.instanceProps){delete o[n];let s=r.notifyInstanceProp;s&&i.prototype._addPropertyEffect(n,i.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:N_(n,s)})}if(r.forwardHostProp&&e.__dataHost)for(let n in o)t.hasHostProps||(t.hasHostProps=!0),i.prototype._addPropertyEffect(n,i.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:B_()})}function N_(i,e){return function(t,r,o){e.call(t.__templatizeOwner,t,r,o[r])}}function B_(){return function(i,e,t){i.__dataHost._setPendingPropertyOrPath("_host_"+e,t[e],!0,!0)}}function cn(i,e,t){if(Sr&&!ga(i))throw new Error("strictTemplatePolicy: template owner not trusted");if(t=t||{},i.__templatizeOwner)throw new Error("A <template> can only be templatized once");i.__templatizeOwner=e;let r=(e?e.constructor:lt)._parseTemplate(i),o=r.templatizeInstanceClass;o||(o=k_(i,r,t),r.templatizeInstanceClass=o);const n=ga(i);T_(i,r,t,n);let s=class extends o{};return s.prototype._methodHost=n,s.prototype.__dataHost=i,s.prototype.__templatizeOwner=e,s.prototype.__hostProps=r.hostProps,s=s,s}function M_(i,e,t){const r=t.constructor._properties,{propertyEffects:o}=i,{instanceProps:n}=e;for(let s in o)if(!r[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 z_(i,e){let t;for(;e;)if(t=e.__dataHost?e:e.__templatizeInstance)if(t.__dataHost!=i)e=t.__dataHost;else return t;else e=ne(e).parentNode;return null}/**
3712
+ */let ms=null;function _s(){return ms}_s.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:_s,writable:!0}});const $h=Ts(_s),kf=Qs($h);function Tf(i,e){ms=i,Object.setPrototypeOf(i,e.prototype),new e,ms=null}const Df=Ts(class{});function Of(i,e){for(let t=0;t<e.length;t++){let r=e[t];if(!!i!=!!r.__hideTemplateChildren__)if(r.nodeType===Node.TEXT_NODE)i?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textContent=r.__polymerTextContent__;else if(r.localName==="slot")if(i)r.__polymerReplaced__=document.createComment("hidden-slot"),se(se(r).parentNode).replaceChild(r.__polymerReplaced__,r);else{const o=r.__polymerReplaced__;o&&se(se(o).parentNode).replaceChild(r,o)}else r.style&&(i?(r.__polymerDisplay__=r.style.display,r.style.display="none"):r.style.display=r.__polymerDisplay__);r.__hideTemplateChildren__=i,r._showHideChildren&&r._showHideChildren(i)}}class lt extends Df{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 r=this.__templatizeOptions;(e&&r.instanceProps||!r.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,r){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,t,o=>{o.model=this,r(o)});else{let o=this.__dataHost.__dataHost;o&&o._addEventListenerToNode(e,t,r)}}_showHideChildren(e){Of(e,this.children)}_setUnmanagedPropertyToNode(e,t,r){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&t=="textContent"?e.__polymerTextContent__=r:super._setUnmanagedPropertyToNode(e,t,r)}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}}lt.prototype.__dataHost;lt.prototype.__templatizeOptions;lt.prototype._methodHost;lt.prototype.__templatizeOwner;lt.prototype.__hostProps;const Nf=Qs(lt);function wa(i){let e=i.__dataHost;return e&&e._methodHost||e}function Bf(i,e,t){let r=t.mutableData?Nf:lt;fs.mixin&&(r=fs.mixin(r));let o=class extends r{};return o.prototype.__templatizeOptions=t,o.prototype._bindTemplate(i),Lf(o,i,e,t),o}function Mf(i,e,t,r){let o=t.forwardHostProp;if(o&&e.hasHostProps){const s=i.localName=="template";let n=e.templatizeTemplateClass;if(!n){if(s){let l=t.mutableData?kf:$h;class h extends l{}n=e.templatizeTemplateClass=h}else{const l=i.constructor;class h extends l{}n=e.templatizeTemplateClass=h}let a=e.hostProps;for(let l in a)n.prototype._addPropertyEffect("_host_"+l,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:zf(l,o)}),n.prototype._createNotifyingProperty("_host_"+l);Rl&&r&&Rf(e,t,r)}if(i.__dataProto&&Object.assign(i.__data,i.__dataProto),s)Tf(i,n),i.__dataTemp={},i.__dataPending=null,i.__dataOld=null,i._enableProperties();else{Object.setPrototypeOf(i,n.prototype);const a=e.hostProps;for(let l in a)if(l="_host_"+l,l in i){const h=i[l];delete i[l],i.__data[l]=h}}}}function zf(i,e){return function(t,r,o){e.call(t.__templatizeOwner,r.substring(6),o[r])}}function Lf(i,e,t,r){let o=t.hostProps||{};for(let s in r.instanceProps){delete o[s];let n=r.notifyInstanceProp;n&&i.prototype._addPropertyEffect(s,i.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Ff(s,n)})}if(r.forwardHostProp&&e.__dataHost)for(let s in o)t.hasHostProps||(t.hasHostProps=!0),i.prototype._addPropertyEffect(s,i.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Hf()})}function Ff(i,e){return function(t,r,o){e.call(t.__templatizeOwner,t,r,o[r])}}function Hf(){return function(i,e,t){i.__dataHost._setPendingPropertyOrPath("_host_"+e,t[e],!0,!0)}}function fs(i,e,t){if(Pr&&!wa(i))throw new Error("strictTemplatePolicy: template owner not trusted");if(t=t||{},i.__templatizeOwner)throw new Error("A <template> can only be templatized once");i.__templatizeOwner=e;let r=(e?e.constructor:lt)._parseTemplate(i),o=r.templatizeInstanceClass;o||(o=Bf(i,r,t),r.templatizeInstanceClass=o);const s=wa(i);Mf(i,r,t,s);let n=class extends o{};return n.prototype._methodHost=s,n.prototype.__dataHost=i,n.prototype.__templatizeOwner=e,n.prototype.__hostProps=r.hostProps,n=n,n}function Rf(i,e,t){const r=t.constructor._properties,{propertyEffects:o}=i,{instanceProps:s}=e;for(let n in o)if(!r[n]&&!(s&&s[n])){const a=o[n];for(let l=0;l<a.length;l++){const{part:h}=a[l].info;if(!(h.signature&&h.signature.static)){console.warn(`Property '${n}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function Vf(i,e){let t;for(;e;)if(t=e.__dataHost?e:e.__templatizeInstance)if(t.__dataHost!=i)e=t.__dataHost;else return t;else e=se(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 va=!1;function L_(){if(Bl&&!Nl){if(!va){va=!0;const i=document.createElement("style");i.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(i)}return!0}return!1}/**
3720
+ */let Ca=!1;function $f(){if(Hl&&!Fl){if(!Ca){Ca=!0;const i=document.createElement("style");i.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(i)}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 F_=C_(R);class ba extends F_{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:!js,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(),L_()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let e=ne(ne(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 r={};r[this.as]=!0,r[this.indexAs]=!0,r[this.itemsIndexAs]=!0,this.__ctor=cn(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:r,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(Fp(this.as,n)){let a=o[this.itemsIndexAs];n==this.as&&(this.items[a]=s);let l=Mi(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,r=this.__getMethodHost();return function(){return r[t].apply(r,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 r=0;r<t.length;r++)e.indexOf(t[r])===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=kr.debounce(this.__renderDebouncer,t>0?Wp.after(t):jl,e.bind(this)),g_(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),qn()}__render(){if(!this.__ensureTemplatized())return;let e=this.items||[];const t=this.__sortAndFilterItems(e),r=this.__calculateLimit(t.length);this.__updateInstances(e,r,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!js||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(e){let t=new Array(e.length);for(let r=0;r<e.length;r++)t[r]=r;return this.__filterFn&&(t=t.filter((r,o,n)=>this.__filterFn(e[r],o,n))),this.__sortFn&&t.sort((r,o)=>this.__sortFn(e[r],e[o])),t}__calculateLimit(e){let t=e;const r=this.__instances.length;if(this.initialCount){let o;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(e,this.initialCount),o=Math.max(t-r,0),this.__chunkCount=o||1):(o=Math.min(Math.max(e-r,0),this.__chunkCount),t=Math.min(r+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,r){const o=this.__itemsIdxToInstIdx={};let n;for(n=0;n<t;n++){let s=this.__instances[n],a=r[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 r=ne(t.root);for(let o=0;o<t.children.length;o++){let n=t.children[o];r.appendChild(n)}return t}__attachInstance(e,t){let r=this.__instances[e];t.insertBefore(r.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,r){let o={};return o[this.as]=e,o[this.indexAs]=t,o[this.itemsIndexAs]=r,new this.__ctor(o)}__insertInstance(e,t,r){const o=this.__stampInstance(e,t,r);let n=this.__instances[t+1],s=n?n.children[0]:this;return ne(ne(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 r=e.slice(6),o=r.indexOf("."),n=o<0?r:r.substring(0,o);if(n==parseInt(n,10)){let s=o<0?"":r.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 z_(this.template,e)}}customElements.define(ba.is,ba);/**
3728
+ */const Wf=If(H);class Ea extends Wf{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:!Kn,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(),$f()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let e=se(se(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 r={};r[this.as]=!0,r[this.indexAs]=!0,r[this.itemsIndexAs]=!0,this.__ctor=fs(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:r,forwardHostProp:function(o,s){let n=this.__instances;for(let a=0,l;a<n.length&&(l=n[a]);a++)l.forwardHostProp(o,s)},notifyInstanceProp:function(o,s,n){if(Wp(this.as,s)){let a=o[this.itemsIndexAs];s==this.as&&(this.items[a]=n);let l=Mi(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,s);this.notifyPath(l,n)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(e){if(typeof e=="string"){let t=e,r=this.__getMethodHost();return function(){return r[t].apply(r,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 r=0;r<t.length;r++)e.indexOf(t[r])===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=Dr.debounce(this.__renderDebouncer,t>0?Xp.after(t):Kl,e.bind(this)),wf(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Js()}__render(){if(!this.__ensureTemplatized())return;let e=this.items||[];const t=this.__sortAndFilterItems(e),r=this.__calculateLimit(t.length);this.__updateInstances(e,r,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!Kn||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(e){let t=new Array(e.length);for(let r=0;r<e.length;r++)t[r]=r;return this.__filterFn&&(t=t.filter((r,o,s)=>this.__filterFn(e[r],o,s))),this.__sortFn&&t.sort((r,o)=>this.__sortFn(e[r],e[o])),t}__calculateLimit(e){let t=e;const r=this.__instances.length;if(this.initialCount){let o;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(e,this.initialCount),o=Math.max(t-r,0),this.__chunkCount=o||1):(o=Math.min(Math.max(e-r,0),this.__chunkCount),t=Math.min(r+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,r){const o=this.__itemsIdxToInstIdx={};let s;for(s=0;s<t;s++){let n=this.__instances[s],a=r[s],l=e[a];o[a]=s,n?(n._setPendingProperty(this.as,l),n._setPendingProperty(this.indexAs,s),n._setPendingProperty(this.itemsIndexAs,a),n._flushProperties()):this.__insertInstance(l,s,a)}for(let n=this.__instances.length-1;n>=s;n--)this.__detachAndRemoveInstance(n)}__detachInstance(e){let t=this.__instances[e];const r=se(t.root);for(let o=0;o<t.children.length;o++){let s=t.children[o];r.appendChild(s)}return t}__attachInstance(e,t){let r=this.__instances[e];t.insertBefore(r.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,r){let o={};return o[this.as]=e,o[this.indexAs]=t,o[this.itemsIndexAs]=r,new this.__ctor(o)}__insertInstance(e,t,r){const o=this.__stampInstance(e,t,r);let s=this.__instances[t+1],n=s?s.children[0]:this;return se(se(this).parentNode).insertBefore(o.root,n),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 r=e.slice(6),o=r.indexOf("."),s=o<0?r:r.substring(0,o);if(s==parseInt(s,10)){let n=o<0?"":r.substring(o+1);this.__handleObservedPaths(n);let a=this.__itemsIdxToInstIdx[s],l=this.__instances[a];if(l){let h=this.as+(n?"."+n:"");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 Vf(this.template,e)}}customElements.define(Ea.is,Ea);/**
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 H_=i=>class extends St(i){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=>Ge(e.date,this.focusedDate))}ready(){super.ready(),Le(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,t,r){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&&r&&t.getMonth()===r.getMonth()&&t.getMonth()===e.getMonth()&&r.getDate()-t.getDate()>=0?!1:!Qt(o,t,r)&&!Qt(n,t,r)}_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:r,weekdaysShort:o,firstDayOfWeek:n}=e,s=this._applyFirstDayOfWeek(o,n);return this._applyFirstDayOfWeek(r,n).map((a,l)=>({weekDay:a,weekDayShort:s[l]})).slice(0,7)}__focusedDateChanged(e,t){Array.isArray(t)&&t.some(r=>Ge(r,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 Ge(new Date,e)}_getDays(e,t){if(e===void 0||t===void 0)return[];const r=new Date(0,0);for(r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);r.getDay()!==t.firstDayOfWeek;)this._dateAdd(r,-1);const o=[],n=r.getMonth(),s=e.getMonth();for(;r.getMonth()===s||r.getMonth()===n;)o.push(r.getMonth()===s?new Date(r.getTime()):null),this._dateAdd(r,1);return o}_getWeeks(e){return e.reduce((t,r,o)=>(o%7===0&&t.push([]),t[t.length-1].push(r),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((r,o)=>!r&&o?o:r);return p_(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 Uf=i=>class extends St(i){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=>qe(e.date,this.focusedDate))}ready(){super.ready(),Le(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,t,r){const o=new Date(0,0);o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(1);const s=new Date(0,0);return s.setFullYear(e.getFullYear()),s.setMonth(e.getMonth()+1),s.setDate(0),t&&r&&t.getMonth()===r.getMonth()&&t.getMonth()===e.getMonth()&&r.getDate()-t.getDate()>=0?!1:!Zt(o,t,r)&&!Zt(s,t,r)}_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:r,weekdaysShort:o,firstDayOfWeek:s}=e,n=this._applyFirstDayOfWeek(o,s);return this._applyFirstDayOfWeek(r,s).map((a,l)=>({weekDay:a,weekDayShort:n[l]})).slice(0,7)}__focusedDateChanged(e,t){Array.isArray(t)&&t.some(r=>qe(r,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 qe(new Date,e)}_getDays(e,t){if(e===void 0||t===void 0)return[];const r=new Date(0,0);for(r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);r.getDay()!==t.firstDayOfWeek;)this._dateAdd(r,-1);const o=[],s=r.getMonth(),n=e.getMonth();for(;r.getMonth()===n||r.getMonth()===s;)o.push(r.getMonth()===n?new Date(r.getTime()):null),this._dateAdd(r,1);return o}_getWeeks(e){return e.reduce((t,r,o)=>(o%7===0&&t.push([]),t[t.length-1].push(r),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((r,o)=>!r&&o?o:r);return gf(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 R_=y`
3736
+ */const jf=y`
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
- */w("vaadin-month-calendar",R_,{moduleId:"vaadin-month-calendar-styles"});class V_ extends H_(U(R)){static get template(){return H`
3796
+ */w("vaadin-month-calendar",jf,{moduleId:"vaadin-month-calendar-styles"});class Gf extends Uf($(H)){static get template(){return F`
3797
3797
  <div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
3798
3798
  <table
3799
3799
  id="monthGrid"
@@ -3835,19 +3835,19 @@ 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,r,o,n,s){const a=["date"],l=e>ln(new Date),h=e<ln(new Date);return this.__isDayDisabled(e,o,n,s)&&a.push("disabled"),this.__isDayFocused(e,t)&&a.push("focused"),this.__isDaySelected(e,r)&&a.push("selected"),this._isToday(e)&&a.push("today"),h&&a.push("past"),l&&a.push("future"),a.join(" ")}__isDayFocused(e,t){return Ge(e,t)}__isDaySelected(e,t){return Ge(e,t)}__getDayAriaSelected(e,t){if(this.__isDaySelected(e,t))return"true"}__isDayDisabled(e,t,r,o){return!Qt(e,t,r,o)}__getDayAriaDisabled(e,t,r,o){if(!(e===void 0||t===void 0&&r===void 0&&o===void 0)&&this.__isDayDisabled(e,t,r,o))return"true"}__getDayTabindex(e,t){return this.__isDayFocused(e,t)?"0":"-1"}}O(V_);/**
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,r,o,s,n){const a=["date"],l=e>ps(new Date),h=e<ps(new Date);return this.__isDayDisabled(e,o,s,n)&&a.push("disabled"),this.__isDayFocused(e,t)&&a.push("focused"),this.__isDaySelected(e,r)&&a.push("selected"),this._isToday(e)&&a.push("today"),h&&a.push("past"),l&&a.push("future"),a.join(" ")}__isDayFocused(e,t){return qe(e,t)}__isDaySelected(e,t){return qe(e,t)}__getDayAriaSelected(e,t){if(this.__isDaySelected(e,t))return"true"}__isDayDisabled(e,t,r,o){return!Zt(e,t,r,o)}__getDayAriaDisabled(e,t,r,o){if(!(e===void 0||t===void 0&&r===void 0&&o===void 0)&&this.__isDayDisabled(e,t,r,o))return"true"}__getDayTabindex(e,t){return this.__isDayFocused(e,t)?"0":"-1"}}O(Gf);/**
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/
3842
- */class Kn{constructor(e,t){this.query=e,this.callback=t,this._boundQueryHandler=this._queryHandler.bind(this)}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery)}hostDisconnected(){this._removeListener()}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler)}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null}_queryHandler(e){typeof this.callback=="function"&&this.callback(e.matches)}}/**
3842
+ */class en{constructor(e,t){this.query=e,this.callback=t,this._boundQueryHandler=this._queryHandler.bind(this)}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery)}hostDisconnected(){this._removeListener()}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler)}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null}_queryHandler(e){typeof this.callback=="function"&&this.callback(e.matches)}}/**
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 $_=i=>class extends i{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(){mh(this.$.scrollers,"pan-y"),Le(this.$.scrollers,"track",this._track.bind(this)),Le(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Le(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Le(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Kn(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new Fe(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onTodayButtonKeyDown(t)),Le(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new Fe(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onCancelButtonKeyDown(t)),Le(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 r=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+r,t),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new Fe(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(r=>{r.addEventListener("selected-date-changed",o=>{this.selectedDate=o.detail.value})}),this.calendars=t}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new Fe(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),Le(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,r,o,n){e&&(e.textContent=t&&t.today,e.disabled=!this._isTodayAllowed(r,o,n))}__updateCalendars(e,t,r,o,n,s,a,l,h,d){e&&e.length&&e.forEach(c=>{c.i18n=t,c.minDate=r,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,r){e&&e.length&&e.forEach(o=>{o.selectedDate=t,r?o.setAttribute("theme",r):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 r=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const a=this._calculateWeekScrollOffset(e);this._scrollToPosition(r+a,t);return}const o=this._monthScroller.position>r,n=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,s=this._monthScroller.position+n-1<r;o?this._scrollToPosition(r,t):s&&this._scrollToPosition(r-n+1,t)}_calculateWeekScrollOffset(e){const t=new Date(0,0);t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(1);let r=0;for(;t.getDate()<e.getDate();)t.setDate(t.getDate()+1),t.getDay()===this.i18n.firstDayOfWeek&&(r+=1);return r/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=ye.debounce(this._debouncer,rt.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,t,r){return e&&t&&typeof t.formatDate=="function"?t.formatDate(Gn(e)):r}_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 r;this._revealPromise=new Promise(l=>{r=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,r(),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 Oh(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){Ge(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&&Ge(e.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,e.focus())}}focusDate(e,t){return yr(this,null,function*(){const r=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=r,t||(this._focusedMonthDate=r.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return yr(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(t=>{Ah(this,()=>{qn(),t()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(Dh(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,t,r){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,r):this._dateAllowed(this.focusedDate)?t>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,t){const r=new Date(0,0);return r.setFullYear(this.focusedDate.getFullYear()),r.setMonth(this.focusedDate.getMonth()+e),t&&r.setDate(this.focusedDate.getDate()+t),r}_moveFocusByDays(e){const t=this._getDateDiff(0,e);this._focusAllowedDate(t,e,!1)}_moveFocusByMonths(e){const t=this._getDateDiff(e),r=t.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),t.setDate(this._focusedMonthDate),t.getMonth()!==r&&t.setDate(0),this._focusAllowedDate(t,e,!0)}_moveFocusInsideMonth(e,t){const r=new Date(0,0);r.setFullYear(e.getFullYear()),t==="minDate"?(r.setMonth(e.getMonth()),r.setDate(1)):(r.setMonth(e.getMonth()+1),r.setDate(0)),this._dateAllowed(r)?this.focusDate(r):this._dateAllowed(e)?this.focusDate(this[t]):this._focusClosestDate(e)}_dateAllowed(e,t=this.minDate,r=this.maxDate,o=this.isDateDisabled){return Qt(e,t,r,o)}_isTodayAllowed(e,t,r){return this._dateAllowed(this._getTodayMidnight(),e,t,r)}_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 qf=i=>class extends i{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"),Le(this.$.scrollers,"track",this._track.bind(this)),Le(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Le(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Le(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new en(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new He(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onTodayButtonKeyDown(t)),Le(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new He(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onCancelButtonKeyDown(t)),Le(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 r=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+r,t),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new He(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(r=>{r.addEventListener("selected-date-changed",o=>{this.selectedDate=o.detail.value})}),this.calendars=t}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new He(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),Le(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,r,o,s){e&&(e.textContent=t&&t.today,e.disabled=!this._isTodayAllowed(r,o,s))}__updateCalendars(e,t,r,o,s,n,a,l,h,d){e&&e.length&&e.forEach(c=>{c.i18n=t,c.minDate=r,c.maxDate=o,c.isDateDisabled=d,c.focusedDate=n,c.selectedDate=s,c.showWeekNumbers=a,c.ignoreTaps=l,h?c.setAttribute("theme",h):c.removeAttribute("theme")})}__updateYears(e,t,r){e&&e.length&&e.forEach(o=>{o.selectedDate=t,r?o.setAttribute("theme",r):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 r=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const a=this._calculateWeekScrollOffset(e);this._scrollToPosition(r+a,t);return}const o=this._monthScroller.position>r,s=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,n=this._monthScroller.position+s-1<r;o?this._scrollToPosition(r,t):n&&this._scrollToPosition(r-s+1,t)}_calculateWeekScrollOffset(e){const t=new Date(0,0);t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(1);let r=0;for(;t.getDate()<e.getDate();)t.setDate(t.getDate()+1),t.getDay()===this.i18n.firstDayOfWeek&&(r+=1);return r/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=ye.debounce(this._debouncer,rt.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,t,r){return e&&t&&typeof t.formatDate=="function"?t.formatDate(Ks(e)):r}_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 r;this._revealPromise=new Promise(l=>{r=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 s=0;const n=this._monthScroller.position,a=l=>{s||(s=l);const h=l-s;if(h<this.scrollDuration){const d=o(h,n,this._targetPosition-n,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:n}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,r(),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 Lh(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){qe(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&&qe(e.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,e.focus())}}focusDate(e,t){return wr(this,null,function*(){const r=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=r,t||(this._focusedMonthDate=r.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return wr(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(t=>{Dh(this,()=>{Js(),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,r){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,r):this._dateAllowed(this.focusedDate)?t>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,t){const r=new Date(0,0);return r.setFullYear(this.focusedDate.getFullYear()),r.setMonth(this.focusedDate.getMonth()+e),t&&r.setDate(this.focusedDate.getDate()+t),r}_moveFocusByDays(e){const t=this._getDateDiff(0,e);this._focusAllowedDate(t,e,!1)}_moveFocusByMonths(e){const t=this._getDateDiff(e),r=t.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),t.setDate(this._focusedMonthDate),t.getMonth()!==r&&t.setDate(0),this._focusAllowedDate(t,e,!0)}_moveFocusInsideMonth(e,t){const r=new Date(0,0);r.setFullYear(e.getFullYear()),t==="minDate"?(r.setMonth(e.getMonth()),r.setDate(1)):(r.setMonth(e.getMonth()+1),r.setDate(0)),this._dateAllowed(r)?this.focusDate(r):this._dateAllowed(e)?this.focusDate(this[t]):this._focusClosestDate(e)}_dateAllowed(e,t=this.minDate,r=this.maxDate,o=this.isDateDisabled){return Zt(e,t,r,o)}_isTodayAllowed(e,t,r){return this._dateAllowed(this._getTodayMidnight(),e,t,r)}_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 U_=y`
3850
+ */const Yf=y`
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
- */w("vaadin-date-picker-overlay-content",U_,{moduleId:"vaadin-date-picker-overlay-content-styles"});class W_ extends $_(at(U(Se(R)))){static get template(){return H`
3914
+ */w("vaadin-date-picker-overlay-content",Yf,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Xf extends qf(at($(Se(H)))){static get template(){return F`
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,23 +3931,23 @@ 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()}}O(W_);/**
3934
+ `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}O(Xf);/**
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 Co=new WeakMap;function j_(i){return Co.has(i)||Co.set(i,new Set),Co.get(i)}function G_(i,e){const t=document.createElement("style");t.textContent=i,e===document?document.head.appendChild(t):e.insertBefore(t,e.firstChild)}const Fh=K(i=>class extends i{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),t=j_(e);this.slotStyles.forEach(r=>{t.has(r)||(G_(r,e),t.add(r))})}});/**
3938
+ */const Po=new WeakMap;function Kf(i){return Po.has(i)||Po.set(i,new Set),Po.get(i)}function Jf(i,e){const t=document.createElement("style");t.textContent=i,e===document?document.head.appendChild(t):e.insertBefore(t,e.firstChild)}const Wh=K(i=>class extends i{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),t=Kf(e);this.slotStyles.forEach(r=>{t.has(r)||(Jf(r,e),t.add(r))})}});/**
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 q_=i=>class extends Ui(Et(i)){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(),sn||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 Zf=i=>class extends Ui(Et(i)){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(),cs||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/
3946
- */const Jn=K(i=>class extends zn(Hn(Ui(i))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(t=>this.__isValidConstraint(t))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...t){if(!e)return;const r=this._hasValidConstraints(t),o=this.__previousHasConstraints&&!r;(this._hasValue||this.invalid)&&r?this.validate():o&&this._setInvalid(!1),this.__previousHasConstraints=r}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return!!e||e===0}});/**
3946
+ */const tn=K(i=>class extends Rs(Ws(Ui(i))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(t=>this.__isValidConstraint(t))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...t){if(!e)return;const r=this._hasValidConstraints(t),o=this.__previousHasConstraints&&!r;(this._hasValue||this.invalid)&&r?this.validate():o&&this._setInvalid(!1),this.__previousHasConstraints=r}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return!!e||e===0}});/**
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 Xr=i=>class extends Fh($r(Jn(Ur(q_(Et(i)))))){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 Zr=i=>class extends Wh(jr(tn(Gr(Zf(Et(i)))))){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 Y_=y`
3959
+ */const Qf=y`
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 Hh=y`
3976
+ */const Uh=y`
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 Rh=y`
4014
+ */const jh=y`
4015
4015
  [class$='container'] {
4016
4016
  display: flex;
4017
4017
  flex-direction: column;
@@ -4023,23 +4023,23 @@ 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 Kr=[Hh,Rh,Y_];/**
4026
+ */const Qr=[Uh,jh,Qf];/**
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/
4030
- */const Jr=i=>class extends i{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,t){if(!t||e===void 0)return;const{classList:r}=t;if(this.__initialClasses||(this.__initialClasses=new Set(r)),Array.isArray(this.__previousClasses)){const n=this.__previousClasses.filter(s=>!this.__initialClasses.has(s));n.length>0&&r.remove(...n)}const o=typeof e=="string"?e.split(" ").filter(Boolean):[];o.length>0&&r.add(...o),this.__previousClasses=o}};/**
4030
+ */const eo=i=>class extends i{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,t){if(!t||e===void 0)return;const{classList:r}=t;if(this.__initialClasses||(this.__initialClasses=new Set(r)),Array.isArray(this.__previousClasses)){const s=this.__previousClasses.filter(n=>!this.__initialClasses.has(n));s.length>0&&r.remove(...s)}const o=typeof e=="string"?e.split(" ").filter(Boolean):[];o.length>0&&r.add(...o),this.__previousClasses=o}};/**
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 Vh{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 Gh{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 X_=i=>class extends Jr(at($r(Jn(Et(i))))){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,r=>"0000".substr(r.length)+r);return[e.month+1,e.day,t].join("/")},parseDate(e){const t=e.split("/"),r=new Date;let o,n=r.getMonth(),s=r.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?bi(this.referenceDate):new Date;s=m_(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:Un},_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&&!Vr()&&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 Kn(this._fullscreenMediaQuery,t=>{this._fullscreen=t})),this.addController(new Vh(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",r=>{this.__commitDate(r.detail.date),this._close()}),t.addEventListener("date-selected",r=>{this.__commitDate(r.detail.date)}),t.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),t.addEventListener("focusout",r=>{this._shouldRemoveFocus(r)&&this._setFocused(!1)}),t.addEventListener("focused-date-changed",r=>{this._focusedDate=r.detail.value}),t.addEventListener("click",r=>r.stopPropagation())}__parseDate(e){if(!this.i18n.parseDate)return;let t=this.i18n.parseDate(e);if(t&&(t=bi(`${t.year}-${t.month+1}-${t.day}`)),t&&!isNaN(t.getTime()))return t}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Gn(e))}checkValidity(){const e=this._inputElementValue,t=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),r=!this._selectedDate||Qt(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&&r&&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,r,o,n,s){return!e||t&&(!s||n)||r&&n||!o.parseDate}_formatISO(e){return __(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 r=bi(e);if(e&&!r){this.value=t;return}e?Ge(this._selectedDate,r)||(this._selectedDate=r,t!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,t,r,o,n,s,a,l,h){e&&(e.i18n=t,e.label=r,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 r=e.focusedDate||t;e.scrollToDate(r),this._ignoreFocusedDateChange=!0,e.focusedDate=r,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=Ph(n)}_getInitialPosition(){const e=bi(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||Qt(t,this._minDate,this._maxDate,this.isDateDisabled)?t:this._minDate||this._maxDate?Dh(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,Ge(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return bi(e)}};/**
4038
+ */const ev=i=>class extends eo(at(jr(tn(Et(i))))){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,r=>"0000".substr(r.length)+r);return[e.month+1,e.day,t].join("/")},parseDate(e){const t=e.split("/"),r=new Date;let o,s=r.getMonth(),n=r.getFullYear();if(t.length===3){if(s=parseInt(t[0])-1,o=parseInt(t[1]),n=parseInt(t[2]),t[2].length<3&&n>=0){const a=this.referenceDate?gi(this.referenceDate):new Date;n=bf(a,n,s,o)}}else t.length===2?(s=parseInt(t[0])-1,o=parseInt(t[1])):t.length===1&&(o=parseInt(t[0]));if(o!==void 0)return{day:o,month:s,year:n}},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:qs},_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&&!Ur()&&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 en(this._fullscreenMediaQuery,t=>{this._fullscreen=t})),this.addController(new Gh(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",r=>{this.__commitDate(r.detail.date),this._close()}),t.addEventListener("date-selected",r=>{this.__commitDate(r.detail.date)}),t.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),t.addEventListener("focusout",r=>{this._shouldRemoveFocus(r)&&this._setFocused(!1)}),t.addEventListener("focused-date-changed",r=>{this._focusedDate=r.detail.value}),t.addEventListener("click",r=>r.stopPropagation())}__parseDate(e){if(!this.i18n.parseDate)return;let t=this.i18n.parseDate(e);if(t&&(t=gi(`${t.year}-${t.month+1}-${t.day}`)),t&&!isNaN(t.getTime()))return t}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Ks(e))}checkValidity(){const e=this._inputElementValue,t=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),r=!this._selectedDate||Zt(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&&r&&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,r,o,s,n){return!e||t&&(!n||s)||r&&s||!o.parseDate}_formatISO(e){return xf(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 r=gi(e);if(e&&!r){this.value=t;return}e?qe(this._selectedDate,r)||(this._selectedDate=r,t!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,t,r,o,s,n,a,l,h){e&&(e.i18n=t,e.label=r,e.minDate=o,e.maxDate=s,e.focusedDate=n,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 r=e.focusedDate||t;e.scrollToDate(r),this._ignoreFocusedDateChange=!0,e.focusedDate=r,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 s=this._noInput?e:[o,e];this.__showOthers=Oh(s)}_getInitialPosition(){const e=gi(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||Zt(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,qe(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return gi(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 K_=y`
4042
+ */const tv=y`
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
- */w("vaadin-date-picker",[Kr,K_],{moduleId:"vaadin-date-picker-styles"});class J_ extends X_(Xr(U(He(R)))){static get is(){return"vaadin-date-picker"}static get template(){return H`
4059
+ */w("vaadin-date-picker",[Qr,tv],{moduleId:"vaadin-date-picker-styles"});class iv extends ev(Zr($(Re(H)))){static get is(){return"vaadin-date-picker"}static get template(){return F`
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 Wi(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new ji(this.inputElement,this._labelController)),this._tooltipController=new st(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}}O(J_);/**
4101
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new ji(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new Gi(this.inputElement,this._labelController)),this._tooltipController=new nt(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}}O(iv);/**
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 Z_=i=>class extends Xr(i){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 rv=i=>class extends Zr(i){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 Q_=i=>class extends Z_(i){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 Wi(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new ji(this.inputElement,this._labelController))}};/**
4113
+ */const ov=i=>class extends rv(i){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 ji(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Gi(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
- */w("vaadin-text-field",Kr,{moduleId:"vaadin-text-field-styles"});class $h extends Q_(U(He(R))){static get is(){return"vaadin-text-field"}static get template(){return H`
4117
+ */w("vaadin-text-field",Qr,{moduleId:"vaadin-text-field-styles"});class qh extends ov($(Re(H))){static get is(){return"vaadin-text-field"}static get template(){return F`
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 st(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}O($h);/**
4146
+ `}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new nt(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}O(qh);/**
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 eg=y`
4150
+ */const sv=y`
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
- `;w("vaadin-password-field-button",[wh,eg],{moduleId:"lumo-password-field-button"});/**
4163
+ `;w("vaadin-password-field-button",[Ph,sv],{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 tg=y`
4167
+ */const nv=y`
4168
4168
  [part='reveal-button']::before {
4169
4169
  content: var(--lumo-icons-eye);
4170
4170
  }
@@ -4182,27 +4182,27 @@ 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
- `;w("vaadin-password-field",[At,tg],{moduleId:"lumo-password-field"});/**
4185
+ `;w("vaadin-password-field",[At,nv],{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
- */w("vaadin-password-field-button",Th,{moduleId:"vaadin-password-field-button-styles"});class ig extends jn(Se(U(R))){static get is(){return"vaadin-password-field-button"}static get template(){return H``}}O(ig);/**
4189
+ */w("vaadin-password-field-button",Mh,{moduleId:"vaadin-password-field-button-styles"});class av extends Xs(Se($(H))){static get is(){return"vaadin-password-field-button"}static get template(){return F``}}O(av);/**
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 rg=i=>class extends Fh(ni(St(Ui(i)))){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 lv=i=>class extends Wh(oi(St(Ui(i)))){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
  }
4197
- `]}get _revealNode(){return this._revealButtonController&&this._revealButtonController.node}ready(){super.ready(),this._revealPart=this.shadowRoot.querySelector('[part="reveal-button"]'),this._revealButtonController=new Fe(this,"reveal","vaadin-password-field-button",{initializer:e=>{e.disabled=this.disabled,e.addEventListener("click",this.__boundRevealButtonClick),e.addEventListener("mousedown",this.__boundRevealButtonMouseDown)}}),this.addController(this._revealButtonController),this.__updateAriaLabel(this.i18n),this._updateToggleState(!1),this._toggleRevealHidden(this.revealButtonHidden),this.inputElement&&(this.inputElement.autocapitalize="off")}_onChange(e){super._onChange(e),this.__lastChange=this.inputElement.value}_shouldSetFocus(e){return e.target===this.inputElement||e.target===this._revealNode}_shouldRemoveFocus(e){return!(e.relatedTarget===this._revealNode||e.relatedTarget===this.inputElement&&e.target===this._revealNode)}_setFocused(e){if(super._setFocused(e),!e)this._setPasswordVisible(!1),this.__lastChange!==this.inputElement.value&&(this.__lastChange=this.inputElement.value,this.dispatchEvent(new CustomEvent("change",{bubbles:!0})));else{const t=this.getRootNode().activeElement===this._revealNode;this.toggleAttribute("focus-ring",this._keyboardActive&&!t)}}__updateAriaLabel(e){e&&e.reveal&&this._revealNode&&this._revealNode.setAttribute("aria-label",e.reveal)}__i18nChanged(e){this.__updateAriaLabel(e)}_revealButtonHiddenChanged(e){this._toggleRevealHidden(e)}_togglePasswordVisibility(){this._setPasswordVisible(!this.passwordVisible)}_onRevealButtonClick(){this._togglePasswordVisibility()}_onRevealButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_toggleRevealHidden(e){this._revealNode&&(e?(this._revealPart.setAttribute("hidden",""),this._revealNode.setAttribute("tabindex","-1"),this._revealNode.setAttribute("aria-hidden","true")):(this._revealPart.removeAttribute("hidden"),this._revealNode.setAttribute("tabindex","0"),this._revealNode.removeAttribute("aria-hidden")))}_updateToggleState(e){this._revealNode&&this._revealNode.setAttribute("aria-pressed",e?"true":"false")}_passwordVisibleChanged(e){this._setType(e?"text":"password"),this._updateToggleState(e)}_disabledChanged(e,t){super._disabledChanged(e,t),this._revealNode&&(this._revealNode.disabled=e)}};/**
4197
+ `]}get _revealNode(){return this._revealButtonController&&this._revealButtonController.node}ready(){super.ready(),this._revealPart=this.shadowRoot.querySelector('[part="reveal-button"]'),this._revealButtonController=new He(this,"reveal","vaadin-password-field-button",{initializer:e=>{e.disabled=this.disabled,e.addEventListener("click",this.__boundRevealButtonClick),e.addEventListener("mousedown",this.__boundRevealButtonMouseDown)}}),this.addController(this._revealButtonController),this.__updateAriaLabel(this.i18n),this._updateToggleState(!1),this._toggleRevealHidden(this.revealButtonHidden),this.inputElement&&(this.inputElement.autocapitalize="off")}_onChange(e){super._onChange(e),this.__lastChange=this.inputElement.value}_shouldSetFocus(e){return e.target===this.inputElement||e.target===this._revealNode}_shouldRemoveFocus(e){return!(e.relatedTarget===this._revealNode||e.relatedTarget===this.inputElement&&e.target===this._revealNode)}_setFocused(e){if(super._setFocused(e),!e)this._setPasswordVisible(!1),this.__lastChange!==this.inputElement.value&&(this.__lastChange=this.inputElement.value,this.dispatchEvent(new CustomEvent("change",{bubbles:!0})));else{const t=this.getRootNode().activeElement===this._revealNode;this.toggleAttribute("focus-ring",this._keyboardActive&&!t)}}__updateAriaLabel(e){e&&e.reveal&&this._revealNode&&this._revealNode.setAttribute("aria-label",e.reveal)}__i18nChanged(e){this.__updateAriaLabel(e)}_revealButtonHiddenChanged(e){this._toggleRevealHidden(e)}_togglePasswordVisibility(){this._setPasswordVisible(!this.passwordVisible)}_onRevealButtonClick(){this._togglePasswordVisibility()}_onRevealButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_toggleRevealHidden(e){this._revealNode&&(e?(this._revealPart.setAttribute("hidden",""),this._revealNode.setAttribute("tabindex","-1"),this._revealNode.setAttribute("aria-hidden","true")):(this._revealPart.removeAttribute("hidden"),this._revealNode.setAttribute("tabindex","0"),this._revealNode.removeAttribute("aria-hidden")))}_updateToggleState(e){this._revealNode&&this._revealNode.setAttribute("aria-pressed",e?"true":"false")}_passwordVisibleChanged(e){this._setType(e?"text":"password"),this._updateToggleState(e)}_disabledChanged(e,t){super._disabledChanged(e,t),this._revealNode&&(this._revealNode.disabled=e)}};/**
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 og=H`
4201
+ */const hv=F`
4202
4202
  <div part="reveal-button" slot="suffix">
4203
4203
  <slot name="reveal"></slot>
4204
4204
  </div>
4205
- `;let sr;class ng extends rg($h){static get is(){return"vaadin-password-field"}static get template(){if(!sr){sr=super.template.cloneNode(!0);const e=og.content.querySelector('[part="reveal-button"]');sr.content.querySelector('[part="input-field"]').appendChild(e)}return sr}}O(ng);const Zr=y`
4205
+ `;let ar;class dv extends lv(qh){static get is(){return"vaadin-password-field"}static get template(){if(!ar){ar=super.template.cloneNode(!0);const e=hv.content.querySelector('[part="reveal-button"]');ar.content.querySelector('[part="input-field"]').appendChild(e)}return ar}}O(dv);const to=y`
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
- `;w("vaadin-item",Zr,{moduleId:"lumo-item"});const Uh=y`
4289
+ `;w("vaadin-item",to,{moduleId:"lumo-item"});const Yh=y`
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
- `;w("vaadin-combo-box-item",[Zr,Uh],{moduleId:"lumo-combo-box-item"});/**
4301
+ `;w("vaadin-combo-box-item",[to,Yh],{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 Wh=y`
4305
+ */const Xh=y`
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
- `,jh=y`
4347
+ `,Kh=y`
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
- `,Gh=y`
4368
+ `,Jh=y`
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
- `;w("vaadin-combo-box-overlay",[Wr,jr,jh,Wh,Gh,y`
4376
+ `;w("vaadin-combo-box-overlay",[qr,Yr,Kh,Xh,Jh,y`
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 sg=y`
4381
+ `],{moduleId:"lumo-combo-box-overlay"});const cv=y`
4382
4382
  [part='toggle-button']::before {
4383
4383
  content: var(--lumo-icons-dropdown);
4384
4384
  }
4385
- `;w("vaadin-combo-box",[At,sg],{moduleId:"lumo-combo-box"});/**
4385
+ `;w("vaadin-combo-box",[At,cv],{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 qh=i=>class extends i{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,r){e==="hidden"&&r!==null?this.index=void 0:super.attributeChangedCallback(e,t,r)}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,r){r===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 Zh=i=>class extends i{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,r){e==="hidden"&&r!==null?this.index=void 0:super.attributeChangedCallback(e,t,r)}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,r){r===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 ag extends qh(U(Se(R))){static get template(){return H`
4393
+ */class uv extends Zh($(Se(H))){static get template(){return F`
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"}}O(ag);/**
4407
+ `}static get is(){return"vaadin-combo-box-item"}}O(uv);/**
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 Yh=i=>class extends Wn(i){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)&&!Bn(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 Qh=i=>class extends Ys(i){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)&&!Fs(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 lg=y`
4415
+ */const pv=y`
4416
4416
  #overlay {
4417
4417
  width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
4418
4418
  }
@@ -4422,17 +4422,17 @@ 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
- `;w("vaadin-combo-box-overlay",[Gr,lg],{moduleId:"vaadin-combo-box-overlay-styles"});class hg extends Yh(Yr(Se(U(R)))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return H`
4425
+ `;w("vaadin-combo-box-overlay",[Xr,pv],{moduleId:"vaadin-combo-box-overlay-styles"});class mv extends Qh(Jr(Se($(H)))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return F`
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
- `}}O(hg);/**
4431
+ `}}O(mv);/**
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/
4435
- */function Tr(i,e){return i.split(".").reduce((t,r)=>t?t[r]:void 0,e)}/**
4435
+ */function Or(i,e){return i.split(".").reduce((t,r)=>t?t[r]:void 0,e)}/**
4436
4436
  * @license
4437
4437
  * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
4438
4438
  * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -4440,23 +4440,23 @@ 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 ya=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),dg=ya&&ya[1]>=8,xa=3,cg={_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 i=this._virtualCount;return Math.max(0,i-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(i){i=this._clamp(i,0,this._maxVirtualStart),this._virtualStartVal=i},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(i){i%=this._physicalCount,i<0&&(i=this._physicalCount+i),this._physicalStartVal=i},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(i){this._physicalCountVal=i},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let i=this._firstVisibleIndexVal;if(i==null){let e=this._physicalTop+this._scrollOffset;i=this._iterateItems((t,r)=>{if(e+=this._getPhysicalSizeIncrement(t),e>this._scrollPosition)return r})||0,this._firstVisibleIndexVal=i}return i},get lastVisibleIndex(){let i=this._lastVisibleIndexVal;if(i==null){let e=this._physicalTop+this._scrollOffset;this._iterateItems((t,r)=>{e<this._scrollBottom&&(i=r),e+=this._getPhysicalSizeIncrement(t)}),this._lastVisibleIndexVal=i}return i},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const i=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let e=i-this._scrollPosition;const t=e>=0;if(this._scrollPosition=i,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(e)>this._physicalSize&&this._physicalSize>0){e-=this._scrollOffset;const r=Math.round(e/this._physicalAverage);this._virtualStart+=r,this._physicalStart+=r,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const r=this._getReusables(t);t?(this._physicalTop=r.physicalTop,this._virtualStart+=r.indexes.length,this._physicalStart+=r.indexes.length):(this._virtualStart-=r.indexes.length,this._physicalStart-=r.indexes.length),this._update(r.indexes,t?null:r.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),Pr)}},_getReusables(i){let e,t,r;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,p=this._scrollBottom;for(i?(e=this._physicalStart,t=c-h):(e=this._physicalEnd,t=d-p);r=this._getPhysicalSizeIncrement(e),t-=r,!(o.length>=l||t<=n);)if(i){if(a+o.length+1>=this._virtualCount||h+r>=c-this._scrollOffset)break;o.push(e),h+=r,e=(e+1)%l}else{if(s-o.length<=0||h+this._physicalSize-r<=p)break;o.push(e),h-=r,e=e===0?l-1:e-1}return{indexes:o,physicalTop:h-this._scrollOffset}},_update(i,e){if(!(i&&i.length===0||this._physicalCount===0)){if(this._assignModels(i),this._updateMetrics(i),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(i){const e=this._clamp(this._physicalCount+i,xa,this._virtualCount-this._virtualStart)-this._physicalCount;let t=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){const r=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()-r)/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)),sh):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,t),Pr))}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const i=this._getReusables(!0);this._physicalTop=i.physicalTop,this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length,this._update(i.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(xa))},_itemsChanged(i){i.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,Fi))},_iterateItems(i,e){let t,r,o,n;if(arguments.length===2&&e){for(n=0;n<e.length;n++)if(t=e[n],r=this._computeVidx(t),(o=i.call(this,t,r))!=null)return o}else{for(t=this._physicalStart,r=this._virtualStart;t<this._physicalCount;t++,r++)if((o=i.call(this,t,r))!=null)return o;for(t=0;t<this._physicalStart;t++,r++)if((o=i.call(this,t,r))!=null)return o}},_computeVidx(i){return i>=this._physicalStart?this._virtualStart+(i-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+i},_positionItems(){this._adjustScrollPosition();let i=this._physicalTop;this._iterateItems(e=>{this.translate3d(0,`${i}px`,0,this._physicalItems[e]),i+=this._physicalSizes[e]})},_getPhysicalSizeIncrement(i){return this._physicalSizes[i]},_adjustScrollPosition(){const i=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(i!==0){this._physicalTop-=i;const e=this._scrollPosition;!dg&&e>0&&this._resetScrollPosition(e-i)}},_resetScrollPosition(i){this.scrollTarget&&i>=0&&(this._scrollTop=i,this._scrollPosition=this._scrollTop)},_updateScrollerSize(i){const e=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=e,(i||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(i){if(typeof i!="number"||i<0||i>this.items.length-1||(wi(),this._physicalCount===0))return;i=this._clamp(i,0,this._virtualCount-1),(!this._isIndexRendered(i)||i>=this._maxVirtualStart)&&(this._virtualStart=i-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let e=this._physicalStart,t=this._virtualStart,r=0;const o=this._hiddenContentSize;for(;t<i&&r<=o;)r+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,t+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+r),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)},Fi)},_isIndexRendered(i){return i>=this._virtualStart&&i<=this._virtualEnd},_getPhysicalIndex(i){return(this._physicalStart+(i-this._virtualStart))%this._physicalCount},_clamp(i,e,t){return Math.min(t,Math.max(e,i))},_debounce(i,e,t){this._debouncers||(this._debouncers={}),this._debouncers[i]=ye.debounce(this._debouncers[i],t,e.bind(this)),ah(this._debouncers[i])}};/**
4443
+ */const Sa=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),_v=Sa&&Sa[1]>=8,Aa=3,fv={_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 i=this._virtualCount;return Math.max(0,i-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(i){i=this._clamp(i,0,this._maxVirtualStart),this._virtualStartVal=i},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(i){i%=this._physicalCount,i<0&&(i=this._physicalCount+i),this._physicalStartVal=i},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(i){this._physicalCountVal=i},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let i=this._firstVisibleIndexVal;if(i==null){let e=this._physicalTop+this._scrollOffset;i=this._iterateItems((t,r)=>{if(e+=this._getPhysicalSizeIncrement(t),e>this._scrollPosition)return r})||0,this._firstVisibleIndexVal=i}return i},get lastVisibleIndex(){let i=this._lastVisibleIndexVal;if(i==null){let e=this._physicalTop+this._scrollOffset;this._iterateItems((t,r)=>{e<this._scrollBottom&&(i=r),e+=this._getPhysicalSizeIncrement(t)}),this._lastVisibleIndexVal=i}return i},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const i=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let e=i-this._scrollPosition;const t=e>=0;if(this._scrollPosition=i,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(e)>this._physicalSize&&this._physicalSize>0){e-=this._scrollOffset;const r=Math.round(e/this._physicalAverage);this._virtualStart+=r,this._physicalStart+=r,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const r=this._getReusables(t);t?(this._physicalTop=r.physicalTop,this._virtualStart+=r.indexes.length,this._physicalStart+=r.indexes.length):(this._virtualStart-=r.indexes.length,this._physicalStart-=r.indexes.length),this._update(r.indexes,t?null:r.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),kr)}},_getReusables(i){let e,t,r;const o=[],s=this._hiddenContentSize*this._ratio,n=this._virtualStart,a=this._virtualEnd,l=this._physicalCount;let h=this._physicalTop+this._scrollOffset;const d=this._physicalBottom+this._scrollOffset,c=this._scrollPosition,p=this._scrollBottom;for(i?(e=this._physicalStart,t=c-h):(e=this._physicalEnd,t=d-p);r=this._getPhysicalSizeIncrement(e),t-=r,!(o.length>=l||t<=s);)if(i){if(a+o.length+1>=this._virtualCount||h+r>=c-this._scrollOffset)break;o.push(e),h+=r,e=(e+1)%l}else{if(n-o.length<=0||h+this._physicalSize-r<=p)break;o.push(e),h-=r,e=e===0?l-1:e-1}return{indexes:o,physicalTop:h-this._scrollOffset}},_update(i,e){if(!(i&&i.length===0||this._physicalCount===0)){if(this._assignModels(i),this._updateMetrics(i),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(i){const e=this._clamp(this._physicalCount+i,Aa,this._virtualCount-this._virtualStart)-this._physicalCount;let t=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){const r=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()-r)/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)),ch):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,t),kr))}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const i=this._getReusables(!0);this._physicalTop=i.physicalTop,this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length,this._update(i.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(Aa))},_itemsChanged(i){i.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,Fi))},_iterateItems(i,e){let t,r,o,s;if(arguments.length===2&&e){for(s=0;s<e.length;s++)if(t=e[s],r=this._computeVidx(t),(o=i.call(this,t,r))!=null)return o}else{for(t=this._physicalStart,r=this._virtualStart;t<this._physicalCount;t++,r++)if((o=i.call(this,t,r))!=null)return o;for(t=0;t<this._physicalStart;t++,r++)if((o=i.call(this,t,r))!=null)return o}},_computeVidx(i){return i>=this._physicalStart?this._virtualStart+(i-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+i},_positionItems(){this._adjustScrollPosition();let i=this._physicalTop;this._iterateItems(e=>{this.translate3d(0,`${i}px`,0,this._physicalItems[e]),i+=this._physicalSizes[e]})},_getPhysicalSizeIncrement(i){return this._physicalSizes[i]},_adjustScrollPosition(){const i=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(i!==0){this._physicalTop-=i;const e=this._scrollPosition;!_v&&e>0&&this._resetScrollPosition(e-i)}},_resetScrollPosition(i){this.scrollTarget&&i>=0&&(this._scrollTop=i,this._scrollPosition=this._scrollTop)},_updateScrollerSize(i){const e=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=e,(i||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(i){if(typeof i!="number"||i<0||i>this.items.length-1||(xi(),this._physicalCount===0))return;i=this._clamp(i,0,this._virtualCount-1),(!this._isIndexRendered(i)||i>=this._maxVirtualStart)&&(this._virtualStart=i-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let e=this._physicalStart,t=this._virtualStart,r=0;const o=this._hiddenContentSize;for(;t<i&&r<=o;)r+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,t+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+r),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)},Fi)},_isIndexRendered(i){return i>=this._virtualStart&&i<=this._virtualEnd},_getPhysicalIndex(i){return(this._physicalStart+(i-this._virtualStart))%this._physicalCount},_clamp(i,e,t){return Math.min(t,Math.max(e,i))},_debounce(i,e,t){this._debouncers||(this._debouncers={}),this._debouncers[i]=ye.debounce(this._debouncers[i],t,e.bind(this)),uh(this._debouncers[i])}};/**
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 ug=1e5,Eo=1e3;class Xh{constructor({createElements:e,updateElement:t,scrollTarget:r,scrollContainer:o,elementsContainer:n,reorderElements:s}){this.isAttached=!0,this._vidxOffset=0,this.createElements=e,this.updateElement=t,this.scrollTarget=r,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 r=Math.floor(e/this.size*this._virtualCount);this._virtualCount-r<t?(r=this._virtualCount-(this.size-e),this._vidxOffset=this._maxVirtualIndexOffset):r<t?e<Eo?(r=e,this._vidxOffset=0):(r=Eo,this._vidxOffset=e-r):this._vidxOffset=e-r,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(r),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(),wi(),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 r=[];this.__getVisibleElements().forEach(o=>{o.__virtualIndex>=e&&o.__virtualIndex<=t&&(this.__updateElement(o,o.__virtualIndex,!0),r.push(o))}),this.__afterElementsUpdated(r)}_updateMetrics(e){wi();let t=0,r=0;const o=this._physicalAverageCount,n=this._physicalAverage;this._iterateItems((s,a)=>{r+=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-r,this._physicalAverageCount!==o&&(this._physicalAverage=Math.round((n*o+t)/this._physicalAverageCount))}__getBorderBoxHeight(e){const t=getComputedStyle(e),r=parseFloat(t.height)||0;if(t.boxSizing==="border-box")return r;const o=parseFloat(t.paddingBottom)||0,n=parseFloat(t.paddingTop)||0,s=parseFloat(t.borderBottomWidth)||0,a=parseFloat(t.borderTopWidth)||0;return r+o+n+s+a}__updateElement(e,t,r){e.__virtualizerPlaceholder&&(e.style.paddingTop="",e.style.opacity="",e.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(e.__lastUpdatedIndex!==t||r)&&(this.updateElement(e,t),e.__lastUpdatedIndex=t)}__afterElementsUpdated(e){e.forEach(t=>{const r=t.offsetHeight;if(r===0)t.style.paddingTop=`${this.__placeholderHeight}px`,t.style.opacity="0",t.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=ye.debounce(this.__placeholderClearDebouncer,Fi,()=>this._resizeHandler());else{this.__elementHeightQueue.push(r),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(r=>r.__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,r;if(e>0&&(t=this.adjustedFirstVisibleIndex,r=this.__getIndexScrollOffset(t)),this.__size=e,this._itemsChanged({path:"items"}),wi(),e>0){t=Math.min(t,e-1),this.scrollToIndex(t);const o=this.__getIndexScrollOffset(t);r!==void 0&&o!==void 0&&(this._scrollTop+=r-o)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),wi(),this._debounce("_update",this._update,Pr)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,ug)}}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),r=document.createDocumentFragment();return t.forEach(o=>{o.style.position="absolute",r.appendChild(o),this.__resizeObserver.observe(o)}),this.elementsContainer.appendChild(r),t}_assignModels(e){const t=[];this._iterateItems((r,o)=>{const n=this._physicalItems[r];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,r,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 r=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(t,r)||this.__nextFocusableSiblingMissing(t,r))&&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,r=this._getReusables(!t);r.indexes.length&&(this._physicalTop=r.physicalTop,t?(this._virtualStart-=r.indexes.length,this._physicalStart-=r.indexes.length):(this._virtualStart+=r.indexes.length,this._physicalStart+=r.indexes.length),this._resizeHandler())}e&&(this.__fixInvalidItemPositioningDebouncer=ye.debounce(this.__fixInvalidItemPositioningDebouncer,rt.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=ye.debounce(this.__scrollReorderDebouncer,rt.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,r=this.adjustedFirstVisibleIndex===0,o=this.adjustedLastVisibleIndex===this.size-1;if(e&&!r||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=ye.debounce(this.__debouncerWheelAnimationFrame,Fi,()=>{this._wheelAnimationFrame=!1});const r=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=ye.debounce(this._debouncerIgnoreNewWheel,rt.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&r<=this._previousMomentum||this._ignoreNewWheel?e.preventDefault():r>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=r}_hasScrolledAncestor(e,t,r){if(e===this.scrollTarget||e===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(e,t,r)&&["auto","scroll"].indexOf(getComputedStyle(e).overflow)!==-1)return!0;if(e!==this&&e.parentElement)return this._hasScrolledAncestor(e.parentElement,t,r)}_canScroll(e,t,r){return r>0&&e.scrollTop<e.scrollHeight-e.offsetHeight||r<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(),r=this.__getFocusedElement(t)||t[0];if(!r)return;const o=r.__virtualIndex-e,n=t.indexOf(r)-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(Qf){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 r=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(r*t)}else{const r=this._vidxOffset,o=Eo,n=100;this._scrollTop===0?(this._vidxOffset=0,r!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<o&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,n),super.scrollToIndex(this.firstVisibleIndex+(r-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=t,r!==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-r)))}}}Object.setPrototypeOf(Xh.prototype,cg);class pg{constructor(e){this.__adapter=new Xh(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 vv=1e5,Io=1e3;class ed{constructor({createElements:e,updateElement:t,scrollTarget:r,scrollContainer:o,elementsContainer:s,reorderElements:n}){this.isAttached=!0,this._vidxOffset=0,this.createElements=e,this.updateElement=t,this.scrollTarget=r,this.scrollContainer=o,this.elementsContainer=s||o,this.reorderElements=n,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 r=Math.floor(e/this.size*this._virtualCount);this._virtualCount-r<t?(r=this._virtualCount-(this.size-e),this._vidxOffset=this._maxVirtualIndexOffset):r<t?e<Io?(r=e,this._vidxOffset=0):(r=Io,this._vidxOffset=e-r):this._vidxOffset=e-r,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(r),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(),xi(),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 r=[];this.__getVisibleElements().forEach(o=>{o.__virtualIndex>=e&&o.__virtualIndex<=t&&(this.__updateElement(o,o.__virtualIndex,!0),r.push(o))}),this.__afterElementsUpdated(r)}_updateMetrics(e){xi();let t=0,r=0;const o=this._physicalAverageCount,s=this._physicalAverage;this._iterateItems((n,a)=>{r+=this._physicalSizes[n],this._physicalSizes[n]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[n])),t+=this._physicalSizes[n],this._physicalAverageCount+=this._physicalSizes[n]?1:0},e),this._physicalSize=this._physicalSize+t-r,this._physicalAverageCount!==o&&(this._physicalAverage=Math.round((s*o+t)/this._physicalAverageCount))}__getBorderBoxHeight(e){const t=getComputedStyle(e),r=parseFloat(t.height)||0;if(t.boxSizing==="border-box")return r;const o=parseFloat(t.paddingBottom)||0,s=parseFloat(t.paddingTop)||0,n=parseFloat(t.borderBottomWidth)||0,a=parseFloat(t.borderTopWidth)||0;return r+o+s+n+a}__updateElement(e,t,r){e.__virtualizerPlaceholder&&(e.style.paddingTop="",e.style.opacity="",e.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(e.__lastUpdatedIndex!==t||r)&&(this.updateElement(e,t),e.__lastUpdatedIndex=t)}__afterElementsUpdated(e){e.forEach(t=>{const r=t.offsetHeight;if(r===0)t.style.paddingTop=`${this.__placeholderHeight}px`,t.style.opacity="0",t.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=ye.debounce(this.__placeholderClearDebouncer,Fi,()=>this._resizeHandler());else{this.__elementHeightQueue.push(r),this.__elementHeightQueue.shift();const o=this.__elementHeightQueue.filter(s=>s!==void 0);this.__placeholderHeight=Math.round(o.reduce((s,n)=>s+n,0)/o.length)}}),this.__pendingScrollToIndex!==void 0&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(e){const t=this.__getVisibleElements().find(r=>r.__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,r;if(e>0&&(t=this.adjustedFirstVisibleIndex,r=this.__getIndexScrollOffset(t)),this.__size=e,this._itemsChanged({path:"items"}),xi(),e>0){t=Math.min(t,e-1),this.scrollToIndex(t);const o=this.__getIndexScrollOffset(t);r!==void 0&&o!==void 0&&(this._scrollTop+=r-o)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),xi(),this._debounce("_update",this._update,kr)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,vv)}}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),r=document.createDocumentFragment();return t.forEach(o=>{o.style.position="absolute",r.appendChild(o),this.__resizeObserver.observe(o)}),this.elementsContainer.appendChild(r),t}_assignModels(e){const t=[];this._iterateItems((r,o)=>{const s=this._physicalItems[r];s.hidden=o>=this.size,s.hidden?delete s.__lastUpdatedIndex:(s.__virtualIndex=o+(this._vidxOffset||0),this.__updateElement(s,s.__virtualIndex),t.push(s))},e),this.__afterElementsUpdated(t)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(e,t,r,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 r=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(t,r)||this.__nextFocusableSiblingMissing(t,r))&&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,r=this._getReusables(!t);r.indexes.length&&(this._physicalTop=r.physicalTop,t?(this._virtualStart-=r.indexes.length,this._physicalStart-=r.indexes.length):(this._virtualStart+=r.indexes.length,this._physicalStart+=r.indexes.length),this._resizeHandler())}e&&(this.__fixInvalidItemPositioningDebouncer=ye.debounce(this.__fixInvalidItemPositioningDebouncer,rt.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=ye.debounce(this.__scrollReorderDebouncer,rt.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,r=this.adjustedFirstVisibleIndex===0,o=this.adjustedLastVisibleIndex===this.size-1;if(e&&!r||t&&!o){const s=t,n=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(s?-1:1),this._scrollHandler(),this._ratio=n}}__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=ye.debounce(this.__debouncerWheelAnimationFrame,Fi,()=>{this._wheelAnimationFrame=!1});const r=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=ye.debounce(this._debouncerIgnoreNewWheel,rt.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&r<=this._previousMomentum||this._ignoreNewWheel?e.preventDefault():r>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=r}_hasScrolledAncestor(e,t,r){if(e===this.scrollTarget||e===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(e,t,r)&&["auto","scroll"].indexOf(getComputedStyle(e).overflow)!==-1)return!0;if(e!==this&&e.parentElement)return this._hasScrolledAncestor(e.parentElement,t,r)}_canScroll(e,t,r){return r>0&&e.scrollTop<e.scrollHeight-e.offsetHeight||r<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(),r=this.__getFocusedElement(t)||t[0];if(!r)return;const o=r.__virtualIndex-e,s=t.indexOf(r)-o;if(s>0)for(let n=0;n<s;n++)this.elementsContainer.appendChild(t[n]);else if(s<0)for(let n=t.length+s;n<t.length;n++)this.elementsContainer.insertBefore(t[n],t[0]);if(of){const{transform:n}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=n})}}_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 r=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(r*t)}else{const r=this._vidxOffset,o=Io,s=100;this._scrollTop===0?(this._vidxOffset=0,r!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<o&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,s),super.scrollToIndex(this.firstVisibleIndex+(r-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=t,r!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-o&&this._vidxOffset<t&&(this._vidxOffset+=Math.min(t-this._vidxOffset,s),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-r)))}}}Object.setPrototypeOf(ed.prototype,fv);class gv{constructor(e){this.__adapter=new ed(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/
4451
- */const nt=class{toString(){return""}};/**
4451
+ */const st=class{toString(){return""}};/**
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 Kh=i=>class extends i{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,r)=>t+r)}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${Rr()}`,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 r=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),r=e-t+1):e>this.__virtualizer.firstVisibleIndex&&(r=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,r));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,r){return e instanceof nt?!1:r&&e!==void 0&&t!==void 0?Tr(r,e)===Tr(r,t):e===t}__initVirtualizer(){this.__virtualizer=new pg({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 r=this.items[t],o=this.focusedIndex,n=this._isItemSelected(r,this.selectedItem,this.itemIdPath);e.setProperties({item:r,index:t,label:this.getItemLabel(r),selected:n,renderer:this.renderer,focused:!this.loading&&o===t}),typeof this.itemClassNameGenerator=="function"?e.className=this.itemClassNameGenerator(r):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"),r instanceof nt&&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,r=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(t&&e.deltaY<0||r&&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 td=i=>class extends i{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,r)=>t+r)}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${Wr()}`,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 r=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),r=e-t+1):e>this.__virtualizer.firstVisibleIndex&&(r=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,r));const o=[...this.children].find(l=>!l.hidden&&l.index===this.__virtualizer.lastVisibleIndex);if(!o||e!==o.index)return;const s=o.getBoundingClientRect(),n=this.getBoundingClientRect(),a=s.bottom-n.bottom+this._viewportTotalPaddingBottom;a>0&&(this.scrollTop+=a)}_isItemSelected(e,t,r){return e instanceof st?!1:r&&e!==void 0&&t!==void 0?Or(r,e)===Or(r,t):e===t}__initVirtualizer(){this.__virtualizer=new gv({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 r=this.items[t],o=this.focusedIndex,s=this._isItemSelected(r,this.selectedItem,this.itemIdPath);e.setProperties({item:r,index:t,label:this.getItemLabel(r),selected:s,renderer:this.renderer,focused:!this.loading&&o===t}),typeof this.itemClassNameGenerator=="function"?e.className=this.itemClassNameGenerator(r):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",s.toString()),e.setAttribute("aria-posinset",t+1),e.setAttribute("aria-setsize",this.items.length),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme"),r instanceof st&&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,r=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(t&&e.deltaY<0||r&&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 mg extends Kh(R){static get is(){return"vaadin-combo-box-scroller"}static get template(){return H`
4459
+ */class bv extends td(H){static get is(){return"vaadin-combo-box-scroller"}static get template(){return F`
4460
4460
  <style>
4461
4461
  :host {
4462
4462
  display: block;
@@ -4483,39 +4483,39 @@ 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
- `}}O(mg);/**
4486
+ `}}O(bv);/**
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 fg=i=>class extends Jn(i){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}};/**
4490
+ */const yv=i=>class extends tn(i){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 Dr(i,e,t=0){let r=e;for(const o of i.subCaches){const n=o.parentCacheIndex;if(r<=n)break;if(r<=n+o.flatSize)return Dr(o,r-n-1,t+1);r-=o.flatSize}return{cache:i,item:i.items[r],index:r,page:Math.floor(r/i.pageSize),level:t}}function Jh({getItemId:i},e,t,r=0,o=0){for(let n=0;n<e.items.length;n++){const s=e.items[n];if(s&&i(s)===i(t))return{cache:e,level:r,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=Jh({getItemId:i},n,t,r+1,s+1);if(a)return a}}function Zh(i,[e,...t],r=0){e===1/0&&(e=i.size-1);const o=i.getFlatIndex(e),n=i.getSubCache(e);return n&&n.flatSize>0&&t.length?Zh(n,t,r+o+1):r+o}/**
4494
+ */function Nr(i,e,t=0){let r=e;for(const o of i.subCaches){const s=o.parentCacheIndex;if(r<=s)break;if(r<=s+o.flatSize)return Nr(o,r-s-1,t+1);r-=o.flatSize}return{cache:i,item:i.items[r],index:r,page:Math.floor(r/i.pageSize),level:t}}function id({getItemId:i},e,t,r=0,o=0){for(let s=0;s<e.items.length;s++){const n=e.items[s];if(n&&i(n)===i(t))return{cache:e,level:r,item:n,index:s,page:Math.floor(s/e.pageSize),subCache:e.getSubCache(s),flatIndex:o+e.getFlatIndex(s)}}for(const s of e.subCaches){const n=o+e.getFlatIndex(s.parentCacheIndex),a=id({getItemId:i},s,t,r+1,n+1);if(a)return a}}function rd(i,[e,...t],r=0){e===1/0&&(e=i.size-1);const o=i.getFlatIndex(e),s=i.getSubCache(e);return s&&s.flatSize>0&&t.length?rd(s,t,r+o+1):r+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/
4498
- */class Zn{constructor(e,t,r,o,n){le(this,"context"),le(this,"pageSize"),le(this,"items",[]),le(this,"pendingRequests",{}),le(this,"__subCacheByIndex",{}),le(this,"__size",0),le(this,"__flatSize",0),this.context=e,this.pageSize=t,this.size=r,this.parentCache=o,this.parentCacheIndex=n,this.__flatSize=r||0}get parentItem(){return this.parentCache&&this.parentCache.items[this.parentCacheIndex]}get subCaches(){return Object.values(this.__subCacheByIndex)}get isLoading(){return Object.keys(this.pendingRequests).length>0?!0:this.subCaches.some(e=>e.isLoading)}get flatSize(){return this.__flatSize}get effectiveSize(){return console.warn("<vaadin-grid> The `effectiveSize` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.flatSize}get size(){return this.__size}set size(e){var t;if(this.__size!==e){if(this.__size=e,this.context.placeholder!==void 0){this.items.length=e||0;for(let r=0;r<e;r++)(t=this.items)[r]||(t[r]=this.context.placeholder)}Object.keys(this.pendingRequests).forEach(r=>{parseInt(r)*this.pageSize>=this.size&&delete this.pendingRequests[r]})}}recalculateFlatSize(){this.__flatSize=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce((e,t)=>(t.recalculateFlatSize(),e+t.flatSize),0):0}setPage(e,t){const r=e*this.pageSize;t.forEach((o,n)=>{const s=r+n;(this.size===void 0||s<this.size)&&(this.items[s]=o)})}getSubCache(e){return this.__subCacheByIndex[e]}removeSubCache(e){delete this.__subCacheByIndex[e]}removeSubCaches(){this.__subCacheByIndex={}}createSubCache(e){const t=new Zn(this.context,this.pageSize,0,this,e);return this.__subCacheByIndex[e]=t,t}getFlatIndex(e){const t=Math.max(0,Math.min(this.size-1,e));return this.subCaches.reduce((r,o)=>{const n=o.parentCacheIndex;return t>n?r+o.flatSize:r},t)}getItemForIndex(e){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:t}=Dr(this,e);return t}getCacheAndIndex(e){console.warn("<vaadin-grid> The `getCacheAndIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{cache:t,index:r}=Dr(this,e);return{cache:t,scaledIndex:r}}updateSize(){console.warn("<vaadin-grid> The `updateSize` method of ItemCache is deprecated and will be removed in Vaadin 25."),this.recalculateFlatSize()}ensureSubCacheForScaledIndex(e){if(console.warn("<vaadin-grid> The `ensureSubCacheForScaledIndex` method of ItemCache is deprecated and will be removed in Vaadin 25."),!this.getSubCache(e)){const t=this.createSubCache(e);this.context.__controller.__loadCachePage(t,0)}}get grid(){return console.warn("<vaadin-grid> The `grid` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.context.__controller.host}get itemCaches(){return console.warn("<vaadin-grid> The `itemCaches` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.__subCacheByIndex}}/**
4498
+ */class rn{constructor(e,t,r,o,s){le(this,"context"),le(this,"pageSize"),le(this,"items",[]),le(this,"pendingRequests",{}),le(this,"__subCacheByIndex",{}),le(this,"__size",0),le(this,"__flatSize",0),this.context=e,this.pageSize=t,this.size=r,this.parentCache=o,this.parentCacheIndex=s,this.__flatSize=r||0}get parentItem(){return this.parentCache&&this.parentCache.items[this.parentCacheIndex]}get subCaches(){return Object.values(this.__subCacheByIndex)}get isLoading(){return Object.keys(this.pendingRequests).length>0?!0:this.subCaches.some(e=>e.isLoading)}get flatSize(){return this.__flatSize}get effectiveSize(){return console.warn("<vaadin-grid> The `effectiveSize` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.flatSize}get size(){return this.__size}set size(e){var t;if(this.__size!==e){if(this.__size=e,this.context.placeholder!==void 0){this.items.length=e||0;for(let r=0;r<e;r++)(t=this.items)[r]||(t[r]=this.context.placeholder)}Object.keys(this.pendingRequests).forEach(r=>{parseInt(r)*this.pageSize>=this.size&&delete this.pendingRequests[r]})}}recalculateFlatSize(){this.__flatSize=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce((e,t)=>(t.recalculateFlatSize(),e+t.flatSize),0):0}setPage(e,t){const r=e*this.pageSize;t.forEach((o,s)=>{const n=r+s;(this.size===void 0||n<this.size)&&(this.items[n]=o)})}getSubCache(e){return this.__subCacheByIndex[e]}removeSubCache(e){delete this.__subCacheByIndex[e]}removeSubCaches(){this.__subCacheByIndex={}}createSubCache(e){const t=new rn(this.context,this.pageSize,0,this,e);return this.__subCacheByIndex[e]=t,t}getFlatIndex(e){const t=Math.max(0,Math.min(this.size-1,e));return this.subCaches.reduce((r,o)=>{const s=o.parentCacheIndex;return t>s?r+o.flatSize:r},t)}getItemForIndex(e){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:t}=Nr(this,e);return t}getCacheAndIndex(e){console.warn("<vaadin-grid> The `getCacheAndIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{cache:t,index:r}=Nr(this,e);return{cache:t,scaledIndex:r}}updateSize(){console.warn("<vaadin-grid> The `updateSize` method of ItemCache is deprecated and will be removed in Vaadin 25."),this.recalculateFlatSize()}ensureSubCacheForScaledIndex(e){if(console.warn("<vaadin-grid> The `ensureSubCacheForScaledIndex` method of ItemCache is deprecated and will be removed in Vaadin 25."),!this.getSubCache(e)){const t=this.createSubCache(e);this.context.__controller.__loadCachePage(t,0)}}get grid(){return console.warn("<vaadin-grid> The `grid` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.context.__controller.host}get itemCaches(){return console.warn("<vaadin-grid> The `itemCaches` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.__subCacheByIndex}}/**
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 _g extends EventTarget{constructor(e,{size:t,pageSize:r,isExpanded:o,getItemId:n,isPlaceholder:s,placeholder:a,dataProvider:l,dataProviderParams:h}){super(),le(this,"host"),le(this,"dataProvider"),le(this,"dataProviderParams"),le(this,"pageSize"),le(this,"isExpanded"),le(this,"getItemId"),le(this,"rootCache"),le(this,"placeholder"),le(this,"isPlaceholder"),this.host=e,this.pageSize=r,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 Dr(this.rootCache,e)}getItemContext(e){return Jh({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return Zh(this.rootCache,e)}ensureFlatIndexLoaded(e){const{cache:t,page:r,item:o}=this.getFlatIndexContext(e);this.__isItemLoaded(o)||this.__loadCachePage(t,r)}ensureFlatIndexHierarchy(e){const{cache:t,item:r,index:o}=this.getFlatIndexContext(e);if(this.__isItemLoaded(r)&&this.isExpanded(r)&&!t.getSubCache(o)){const n=t.createSubCache(o);this.__loadCachePage(n,0)}}loadFirstPage(){this.__loadCachePage(this.rootCache,0)}__createRootCache(e){return new Zn(this.__cacheContext,this.pageSize,e)}__loadCachePage(e,t){if(!this.dataProvider||e.pendingRequests[t])return;let r={page:t,pageSize:this.pageSize,parentItem:e.parentItem};this.dataProviderParams&&(r=br(br({},r),this.dataProviderParams()));const o=(n,s)=>{e.pendingRequests[t]===o&&(s!==void 0?e.size=s:r.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(r,o)}__isItemLoaded(e){return this.isPlaceholder?!this.isPlaceholder(e):this.placeholder?e!==this.placeholder:!!e}}/**
4502
+ */class xv extends EventTarget{constructor(e,{size:t,pageSize:r,isExpanded:o,getItemId:s,isPlaceholder:n,placeholder:a,dataProvider:l,dataProviderParams:h}){super(),le(this,"host"),le(this,"dataProvider"),le(this,"dataProviderParams"),le(this,"pageSize"),le(this,"isExpanded"),le(this,"getItemId"),le(this,"rootCache"),le(this,"placeholder"),le(this,"isPlaceholder"),this.host=e,this.pageSize=r,this.getItemId=s,this.isExpanded=o,this.placeholder=a,this.isPlaceholder=n,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 Nr(this.rootCache,e)}getItemContext(e){return id({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return rd(this.rootCache,e)}ensureFlatIndexLoaded(e){const{cache:t,page:r,item:o}=this.getFlatIndexContext(e);this.__isItemLoaded(o)||this.__loadCachePage(t,r)}ensureFlatIndexHierarchy(e){const{cache:t,item:r,index:o}=this.getFlatIndexContext(e);if(this.__isItemLoaded(r)&&this.isExpanded(r)&&!t.getSubCache(o)){const s=t.createSubCache(o);this.__loadCachePage(s,0)}}loadFirstPage(){this.__loadCachePage(this.rootCache,0)}__createRootCache(e){return new rn(this.__cacheContext,this.pageSize,e)}__loadCachePage(e,t){if(!this.dataProvider||e.pendingRequests[t])return;let r={page:t,pageSize:this.pageSize,parentItem:e.parentItem};this.dataProviderParams&&(r=xr(xr({},r),this.dataProviderParams()));const o=(s,n)=>{e.pendingRequests[t]===o&&(n!==void 0?e.size=n:r.parentItem&&(e.size=s.length),e.setPage(t,s),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(r,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 Qh=i=>class extends i{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 _g(this,{placeholder:new nt,isPlaceholder:e=>e instanceof nt,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 r=this.__getItemIndexByValue(this.filteredItems,t);(r<0||!this._getItemLabel(this.filteredItems[r]))&&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 od=i=>class extends i{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 xv(this,{placeholder:new st,isPlaceholder:e=>e instanceof st,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 r=this.__getItemIndexByValue(this.filteredItems,t);(r<0||!this._getItemLabel(this.filteredItems[r]))&&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/
4510
- */function Qr(i){if(window.Vaadin&&window.Vaadin.templateRendererCallback){window.Vaadin.templateRendererCallback(i);return}i.querySelector("template")&&console.warn(`WARNING: <template> inside <${i.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`)}/**
4510
+ */function io(i){if(window.Vaadin&&window.Vaadin.templateRendererCallback){window.Vaadin.templateRendererCallback(i);return}i.querySelector("template")&&console.warn(`WARNING: <template> inside <${i.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`)}/**
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 wa(i){return i!=null}function Ca(i,e){return i.findIndex(t=>t instanceof nt?!1:e(t))}const ed=i=>class extends Jr(at(Hn(St(Et(Ui(ni(i))))))){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),Qr(this),this.addController(new Vh(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,r){super._propertiesChanged(e,t,r),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 r=this._overlayElement;r.renderer=o=>{o.innerHTML||o.appendChild(t)},r.requestContentUpdate(),this._scroller=t}_updateScroller(e,t,r,o,n,s,a,l,h,d){if(e&&(r&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:r?t:[],opened:r,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,r,o){this._overlayOpened=e&&(o||r||!!(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&&Mn(this.inputElement)}_updateActiveDescendant(e){const t=this._nativeInput;if(!t)return;const r=this._getItemElements().find(o=>o.index===e);r?t.setAttribute("aria-activedescendant",r.id):t.removeAttribute("aria-activedescendant")}_openedChanged(e,t){if(t===void 0)return;e?!this._isInputFocused()&&!sn&&this.inputElement&&this.inputElement.focus():this._onClosed();const r=this._nativeInput;r&&(r.setAttribute("aria-expanded",!!e),e?r.setAttribute("aria-controls",this._scroller.id):r.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?Tr(this.itemLabelPath,e):void 0;return t==null&&(t=e?e.toString():""),t}_getItemValue(e){let t=e&&this.itemValuePath?Tr(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",()=>{sn&&!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 r=this._inputElementValue;this._lastCustomValue=r;const o=new CustomEvent("custom-value-set",{detail:r,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(o),o.defaultPrevented||(this.value=r)}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,r={};this.filter===t?this._filterChanged(this.filter):r.filter=t,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(r.opened=!0),this.setProperties(r)}_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||(wa(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(r=>(t=t?t.toString().toLowerCase():"",this._getItemLabel(r).toString().toLowerCase().indexOf(t)>-1))}_selectItemForValue(e){const t=this.__getItemIndexByValue(this.filteredItems,e),r=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&&r===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){const t=this._dropdownItems;this._dropdownItems=e;const r=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(r));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||!wa(t)?-1:Ca(e,r=>this._getItemValue(r)===t)}__getItemIndexByLabel(e,t){return!e||!t?-1:Ca(e,r=>this._getItemLabel(r).toString().toLowerCase()===t.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof nt)&&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(Vr()){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 Pa(i){return i!=null}function Ia(i,e){return i.findIndex(t=>t instanceof st?!1:e(t))}const sd=i=>class extends eo(at(Ws(St(Et(Ui(oi(i))))))){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),io(this),this.addController(new Gh(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,r){super._propertiesChanged(e,t,r),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 r=this._overlayElement;r.renderer=o=>{o.innerHTML||o.appendChild(t)},r.requestContentUpdate(),this._scroller=t}_updateScroller(e,t,r,o,s,n,a,l,h,d){if(e&&(r&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:r?t:[],opened:r,loading:o,selectedItem:s,itemIdPath:n,focusedIndex:a,renderer:l,theme:h,itemClassNameGenerator:d}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate()}catch(c){}}_openedOrItemsChanged(e,t,r,o){this._overlayOpened=e&&(o||r||!!(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&&Hs(this.inputElement)}_updateActiveDescendant(e){const t=this._nativeInput;if(!t)return;const r=this._getItemElements().find(o=>o.index===e);r?t.setAttribute("aria-activedescendant",r.id):t.removeAttribute("aria-activedescendant")}_openedChanged(e,t){if(t===void 0)return;e?!this._isInputFocused()&&!cs&&this.inputElement&&this.inputElement.focus():this._onClosed();const r=this._nativeInput;r&&(r.setAttribute("aria-expanded",!!e),e?r.setAttribute("aria-controls",this._scroller.id):r.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?Or(this.itemLabelPath,e):void 0;return t==null&&(t=e?e.toString():""),t}_getItemValue(e){let t=e&&this.itemValuePath?Or(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",()=>{cs&&!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 r=this._inputElementValue;this._lastCustomValue=r;const o=new CustomEvent("custom-value-set",{detail:r,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(o),o.defaultPrevented||(this.value=r)}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,r={};this.filter===t?this._filterChanged(this.filter):r.filter=t,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(r.opened=!0),this.setProperties(r)}_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||(Pa(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(r=>(t=t?t.toString().toLowerCase():"",this._getItemLabel(r).toString().toLowerCase().indexOf(t)>-1))}_selectItemForValue(e){const t=this.__getItemIndexByValue(this.filteredItems,e),r=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&&r===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){const t=this._dropdownItems;this._dropdownItems=e;const r=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 s=this.__getItemIndexByValue(e,this._getItemValue(r));s>-1?this._focusedIndex=s: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||!Pa(t)?-1:Ia(e,r=>this._getItemValue(r)===t)}__getItemIndexByLabel(e,t){return!e||!t?-1:Ia(e,r=>this._getItemLabel(r).toString().toLowerCase()===t.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof st)&&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(Ur()){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
- */w("vaadin-combo-box",Kr,{moduleId:"vaadin-combo-box-styles"});class gg extends Qh(ed(fg(Xr(U(He(R)))))){static get is(){return"vaadin-combo-box"}static get template(){return H`
4518
+ */w("vaadin-combo-box",Qr,{moduleId:"vaadin-combo-box-styles"});class wv extends od(sd(yv(Zr($(Re(H)))))){static get is(){return"vaadin-combo-box"}static get template(){return F`
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 Wi(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new ji(this.inputElement,this._labelController)),this._tooltipController=new st(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)}}O(gg);/**
4563
+ `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new ji(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Gi(this.inputElement,this._labelController)),this._tooltipController=new nt(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)}}O(wv);/**
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 vg=y`
4567
+ */const Cv=y`
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
- `;w("vaadin-multi-select-combo-box-chip",[$n,vg],{moduleId:"lumo-multi-select-combo-box-chip"});/**
4656
+ `;w("vaadin-multi-select-combo-box-chip",[Gs,Cv],{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 bg=y`
4660
+ */const Ev=y`
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
- `;w("vaadin-multi-select-combo-box-item",[Zr,Uh,bg],{moduleId:"lumo-multi-select-combo-box-item"});w("vaadin-multi-select-combo-box-overlay",[Wr,jr,jh,Wh,Gh,y`
4667
+ `;w("vaadin-multi-select-combo-box-item",[to,Yh,Ev],{moduleId:"lumo-multi-select-combo-box-item"});w("vaadin-multi-select-combo-box-overlay",[qr,Yr,Kh,Xh,Jh,y`
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 yg=y`
4676
+ `,{moduleId:"lumo-multi-select-combo-box-container"});const Sv=y`
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
- `;w("vaadin-multi-select-combo-box",[At,yg],{moduleId:"lumo-multi-select-combo-box"});/**
4729
+ `;w("vaadin-multi-select-combo-box",[At,Sv],{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 xg extends U(R){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 H`
4733
+ */class Av extends $(H){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 F`
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}))}}O(xg);/**
4762
+ `}_onRemoveClick(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("item-removed",{detail:{item:this.item},bubbles:!0,composed:!0}))}}O(Av);/**
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 ar;class wg extends Ch{static get is(){return"vaadin-multi-select-combo-box-container"}static get template(){if(!ar){ar=super.template.cloneNode(!0);const e=ar.content,t=e.querySelectorAll("slot"),r=document.createElement("div");r.setAttribute("id","wrapper"),e.insertBefore(r,t[2]),r.appendChild(t[0]),r.appendChild(t[1])}return ar}static get properties(){return{autoExpandVertically:{type:Boolean,reflectToAttribute:!0}}}}O(wg);/**
4776
+ `,{moduleId:"vaadin-multi-select-combo-box-container-styles"});let lr;class Pv extends Ih{static get is(){return"vaadin-multi-select-combo-box-container"}static get template(){if(!lr){lr=super.template.cloneNode(!0);const e=lr.content,t=e.querySelectorAll("slot"),r=document.createElement("div");r.setAttribute("id","wrapper"),e.insertBefore(r,t[2]),r.appendChild(t[0]),r.appendChild(t[1])}return lr}static get properties(){return{autoExpandVertically:{type:Boolean,reflectToAttribute:!0}}}}O(Pv);/**
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 Cg extends qh(U(Se(R))){static get is(){return"vaadin-multi-select-combo-box-item"}static get template(){return H`
4780
+ */class Iv extends Zh($(Se(H))){static get is(){return"vaadin-multi-select-combo-box-item"}static get template(){return F`
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
- `}}O(Cg);/**
4794
+ `}}O(Iv);/**
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 Eg=y`
4798
+ */const kv=y`
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
- `;w("vaadin-multi-select-combo-box-overlay",[Gr,Eg],{moduleId:"vaadin-multi-select-combo-box-overlay-styles"});class Sg extends Yh(Yr(Se(U(R)))){static get is(){return"vaadin-multi-select-combo-box-overlay"}static get template(){return H`
4811
+ `;w("vaadin-multi-select-combo-box-overlay",[Xr,kv],{moduleId:"vaadin-multi-select-combo-box-overlay-styles"});class Tv extends Qh(Jr(Se($(H)))){static get is(){return"vaadin-multi-select-combo-box-overlay"}static get template(){return F`
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
- `}}O(Sg);/**
4817
+ `}}O(Tv);/**
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 Ag extends Kh(R){static get is(){return"vaadin-multi-select-combo-box-scroller"}static get template(){return H`
4821
+ */class Dv extends td(H){static get is(){return"vaadin-multi-select-combo-box-scroller"}static get template(){return F`
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,r){return e instanceof nt||this.owner.readonly?!1:this.owner._findIndex(e,this.owner.selectedItems,r)>-1}_updateElement(e,t){super._updateElement(e,t),e.toggleAttribute("readonly",this.owner.readonly)}}O(Ag);/**
4848
+ `}ready(){super.ready(),this.setAttribute("aria-multiselectable","true")}_isItemSelected(e,t,r){return e instanceof st||this.owner.readonly?!1:this.owner._findIndex(e,this.owner.selectedItems,r)>-1}_updateElement(e,t){super._updateElement(e,t),e.toggleAttribute("readonly",this.owner.readonly)}}O(Dv);/**
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 Pg extends Qh(ed(U(R))){static get is(){return"vaadin-multi-select-combo-box-internal"}static get template(){return H`
4852
+ */class Ov extends od(sd($(H))){static get is(){return"vaadin-multi-select-combo-box-internal"}static get template(){return F`
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(r=>this._comboBox._findIndex(r,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 nt||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()}}O(Pg);/**
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(r=>this._comboBox._findIndex(r,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 st||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()}}O(Ov);/**
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 lr=new ResizeObserver(i=>{setTimeout(()=>{i.forEach(e=>{e.target.resizables?e.target.resizables.forEach(t=>{t._onResize(e.contentRect)}):e.target._onResize(e.contentRect)})})}),Ig=K(i=>class extends i{get _observeParent(){return!1}connectedCallback(){if(super.connectedCallback(),lr.observe(this),this._observeParent){const e=this.parentNode instanceof ShadowRoot?this.parentNode.host:this.parentNode;e.resizables||(e.resizables=new Set,lr.observe(e)),e.resizables.add(this),this.__parent=e}}disconnectedCallback(){super.disconnectedCallback(),lr.unobserve(this);const e=this.__parent;if(this._observeParent&&e){const t=e.resizables;t&&(t.delete(this),t.size===0&&lr.unobserve(e)),this.__parent=null}}_onResize(e){}});/**
4874
+ */const hr=new ResizeObserver(i=>{setTimeout(()=>{i.forEach(e=>{e.target.resizables?e.target.resizables.forEach(t=>{t._onResize(e.contentRect)}):e.target._onResize(e.contentRect)})})}),Nv=K(i=>class extends i{get _observeParent(){return!1}connectedCallback(){if(super.connectedCallback(),hr.observe(this),this._observeParent){const e=this.parentNode instanceof ShadowRoot?this.parentNode.host:this.parentNode;e.resizables||(e.resizables=new Set,hr.observe(e)),e.resizables.add(this),this.__parent=e}}disconnectedCallback(){super.disconnectedCallback(),hr.unobserve(this);const e=this.__parent;if(this._observeParent&&e){const t=e.resizables;t&&(t.delete(this),t.size===0&&hr.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 kg=y`
4878
+ */const Bv=y`
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
- `;w("vaadin-multi-select-combo-box",[Kr,kg],{moduleId:"vaadin-multi-select-combo-box-styles"});class Tg extends Ig(Xr(U(He(R)))){static get is(){return"vaadin-multi-select-combo-box"}static get template(){return H`
4916
+ `;w("vaadin-multi-select-combo-box",[Qr,Bv],{moduleId:"vaadin-multi-select-combo-box-styles"});class Mv extends Nv(Zr($(Re(H)))){static get is(){return"vaadin-multi-select-combo-box"}static get template(){return F`
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 Wi(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new ji(this.inputElement,this._labelController)),this._tooltipController=new st(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 Fe(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(),Qr(this)}checkValidity(){return this.required&&!this.readonly?this._hasValue:!0}clear(){this.__updateSelection([]),_r(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,r){if(r&&e){for(let o=0;o<t.length;o++)if(t[o]&&t[o][r]===e[r])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,r){const o=t?"selected":"deselected",n=this.i18n.total.replace("{count}",r||0);_r(`${e} ${this.i18n[o]} ${n}`)}__removeItem(e){const t=[...this.selectedItems];t.splice(t.indexOf(e),1),this.__updateSelection(t);const r=this._getItemLabel(e);this.__announceItem(r,!1,t.length)}__selectItem(e){const t=[...this.selectedItems],r=this._findIndex(e,t,this.itemIdPath),o=this._getItemLabel(e);let n=!1;if(r!==-1){const s=this._lastFilter;if(s&&s.toLowerCase()===o.toLowerCase()){this.__clearInternalValue();return}t.splice(r,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,r){e?r||(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 r=this._getItemLabel(e);return t.label=r,t.setAttribute("title",r),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 r=getComputedStyle(e),o=e.clientWidth+parseInt(r.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,r=parseInt(getComputedStyle(this.inputElement).flexBasis);let o=t-r;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<r){for(;s.length>1;){s.pop().remove(),a.unshift(e.pop());const h=a.length>0?r+this.__getOverflowWidth():r;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,r,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=r,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 r=this._focusedChipIndex;r!==-1&&t.preventDefault();let o;this.__isRTL?r===e.length-1?o=-1:r>-1&&(o=r+1):r===-1?o=e.length-1:r>0&&(o=r-1),o!==void 0&&(this._focusedChipIndex=o)}_onArrowRight(e,t){if(this.inputElement.selectionStart!==0)return;const r=this._focusedChipIndex;r!==-1&&t.preventDefault();let o;this.__isRTL?r===-1?o=e.length-1:r>0&&(o=r-1):r===e.length-1?o=-1:r>-1&&(o=r+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 r=this._chips;if(r.forEach((o,n)=>{o.toggleAttribute("focused",n===e)}),e>-1){const o=r[e].item,n=this._getItemLabel(o);_r(`${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()}}O(Tg);w("vaadin-notification-card",y`
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 ji(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Gi(this.inputElement,this._labelController)),this._tooltipController=new nt(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 He(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(),io(this)}checkValidity(){return this.required&&!this.readonly?this._hasValue:!0}clear(){this.__updateSelection([]),vr(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,r){if(r&&e){for(let o=0;o<t.length;o++)if(t[o]&&t[o][r]===e[r])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,r){const o=t?"selected":"deselected",s=this.i18n.total.replace("{count}",r||0);vr(`${e} ${this.i18n[o]} ${s}`)}__removeItem(e){const t=[...this.selectedItems];t.splice(t.indexOf(e),1),this.__updateSelection(t);const r=this._getItemLabel(e);this.__announceItem(r,!1,t.length)}__selectItem(e){const t=[...this.selectedItems],r=this._findIndex(e,t,this.itemIdPath),o=this._getItemLabel(e);let s=!1;if(r!==-1){const n=this._lastFilter;if(n&&n.toLowerCase()===o.toLowerCase()){this.__clearInternalValue();return}t.splice(r,1)}else t.push(e),s=!0;this.__updateSelection(t),this.__clearInternalValue(),this.__announceItem(o,s,t.length)}__updateSelection(e){this.selectedItems=e,this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}__updateTopGroup(e,t,r){e?r||(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 r=this._getItemLabel(e);return t.label=r,t.setAttribute("title",r),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 r=getComputedStyle(e),o=e.clientWidth+parseInt(r.marginInlineStart);return e.setAttribute("count",t),e.setAttribute("hidden",""),e.style.visibility="",o}__updateChips(){if(!this._inputField||!this.inputElement)return;this._chips.forEach(n=>{n.remove()});const e=[...this.selectedItems],t=this._inputField.$.wrapper.clientWidth,r=parseInt(getComputedStyle(this.inputElement).flexBasis);let o=t-r;e.length>1&&(o-=this.__getOverflowWidth());const s=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width"));if(this.autoExpandHorizontally){const n=[];for(let h=e.length-1,d=null;h>=0;h--){const c=this.__createChip(e[h]);this.insertBefore(c,d),d=c,n.unshift(c)}const a=[],l=this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth;if(!this.autoExpandVertically&&l<r){for(;n.length>1;){n.pop().remove(),a.unshift(e.pop());const h=a.length>0?r+this.__getOverflowWidth():r;if(this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth>=h)break}n.length===1&&(n[0].style.maxWidth=`${Math.max(s,o)}px`)}this._overflowItems=a;return}for(let n=e.length-1,a=null;n>=0;n--){const l=this.__createChip(e[n]);if(this.insertBefore(l,a),!this.autoExpandVertically&&this.$.chips.clientWidth>o)if(a===null)l.style.maxWidth=`${Math.max(s,o)}px`;else{l.remove();break}e.pop(),a=l}this._overflowItems=e}__updateOverflowChip(e,t,r,o){if(e){const s=t.length;e.label=`${s}`,e.setAttribute("count",`${s}`),e.setAttribute("title",this._mergeItemLabels(t)),e.toggleAttribute("hidden",s===0),e.disabled=r,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 r=this._focusedChipIndex;r!==-1&&t.preventDefault();let o;this.__isRTL?r===e.length-1?o=-1:r>-1&&(o=r+1):r===-1?o=e.length-1:r>0&&(o=r-1),o!==void 0&&(this._focusedChipIndex=o)}_onArrowRight(e,t){if(this.inputElement.selectionStart!==0)return;const r=this._focusedChipIndex;r!==-1&&t.preventDefault();let o;this.__isRTL?r===-1?o=e.length-1:r>0&&(o=r-1):r===e.length-1?o=-1:r>-1&&(o=r+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 r=this._chips;if(r.forEach((o,s)=>{o.toggleAttribute("focused",s===e)}),e>-1){const o=r[e].item,s=this._getItemLabel(o);vr(`${s} ${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()}}O(Mv);w("vaadin-notification-card",y`
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 Dg=(i,e)=>(i==null?void 0:i._$litType$)!==void 0;/**
5210
+ */const zv=(i,e)=>(i==null?void 0:i._$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 Og extends kh(U(He(R))){static get template(){return H`
5214
+ */class Lv extends Bh($(Re(H))){static get template(){return F`
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),Un&&(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,r=document.documentElement.clientHeight;t&&r>e?this.style.bottom=`${r-e}px`:this.style.bottom="0"}_onVaadinOverlayClose(e){const t=e.detail.sourceEvent;t&&t.composedPath().indexOf(this)>=0&&e.preventDefault()}}class Ng extends U(R){static get template(){return H`
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),qs&&(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,r=document.documentElement.clientHeight;t&&r>e?this.style.bottom=`${r-e}px`:this.style.bottom="0"}_onVaadinOverlayClose(e){const t=e.detail.sourceEvent;t&&t.composedPath().indexOf(this)>=0&&e.preventDefault()}}class Fv extends $(H){static get template(){return F`
5282
5282
  <style>
5283
5283
  :host {
5284
5284
  display: block;
@@ -5300,14 +5300,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5300
5300
  <slot></slot>
5301
5301
  </div>
5302
5302
  </div>
5303
- `}static get is(){return"vaadin-notification-card"}ready(){super.ready(),this.setAttribute("role","alert"),this.setAttribute("aria-live","polite")}}class We extends Jr(Al(He(R))){static get template(){return H`
5303
+ `}static get is(){return"vaadin-notification-card"}ready(){super.ready(),this.setAttribute("role","alert"),this.setAttribute("aria-live","polite")}}class je extends eo(Dl(Re(H))){static get template(){return F`
5304
5304
  <style>
5305
5305
  :host {
5306
5306
  display: none !important;
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 Dg(e)?We._createAndShowNotification(r=>{Sl(e,r)},t):We._createAndShowNotification(r=>{r.innerText=e},t)}static _createAndShowNotification(e,t){const r=document.createElement(We.is);return t&&Number.isFinite(t.duration)&&(r.duration=t.duration),t&&t.position&&(r.position=t.position),t&&t.theme&&r.setAttribute("theme",t.theme),r.renderer=e,document.body.appendChild(r),r.opened=!0,r.addEventListener("opened-changed",o=>{o.detail.value||r.remove()}),r}get _container(){return We._container||(We._container=document.createElement("vaadin-notification-container"),document.body.appendChild(We._container)),We._container}get _card(){return this._overlayElement}ready(){super.ready(),this._overlayElement=this.shadowRoot.querySelector("vaadin-notification-card"),Qr(this)}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask(()=>{this.isConnected||(this.opened=!1)})}requestContentUpdate(){this.renderer&&this.renderer(this._card,this)}_rendererChanged(e,t,r){if(!r)return;const o=this._oldRenderer!==e;this._oldRenderer=e,o&&(r.innerHTML="",delete r._$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)))}}O(Og);O(Ng);O(We);const td=y`
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 zv(e)?je._createAndShowNotification(r=>{Tl(e,r)},t):je._createAndShowNotification(r=>{r.innerText=e},t)}static _createAndShowNotification(e,t){const r=document.createElement(je.is);return t&&Number.isFinite(t.duration)&&(r.duration=t.duration),t&&t.position&&(r.position=t.position),t&&t.theme&&r.setAttribute("theme",t.theme),r.renderer=e,document.body.appendChild(r),r.opened=!0,r.addEventListener("opened-changed",o=>{o.detail.value||r.remove()}),r}get _container(){return je._container||(je._container=document.createElement("vaadin-notification-container"),document.body.appendChild(je._container)),je._container}get _card(){return this._overlayElement}ready(){super.ready(),this._overlayElement=this.shadowRoot.querySelector("vaadin-notification-card"),io(this)}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask(()=>{this.isConnected||(this.opened=!1)})}requestContentUpdate(){this.renderer&&this.renderer(this._card,this)}_rendererChanged(e,t,r){if(!r)return;const o=this._oldRenderer!==e;this._oldRenderer=e,o&&(r.innerHTML="",delete r._$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)))}}O(Lv);O(Fv);O(je);const nd=y`
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
- `;w("vaadin-list-box",td,{moduleId:"lumo-list-box"});/**
5324
+ `;w("vaadin-list-box",nd,{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
- */w("vaadin-select-item",Zr,{moduleId:"lumo-select-item"});w("vaadin-select-list-box",td,{moduleId:"lumo-select-list-box"});const Bg=y`
5328
+ */w("vaadin-select-item",to,{moduleId:"lumo-select-item"});w("vaadin-select-list-box",nd,{moduleId:"lumo-select-list-box"});const Hv=y`
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
- `;w("vaadin-select",[At,Bg],{moduleId:"lumo-select"});w("vaadin-select-value-button",y`
5371
+ `;w("vaadin-select",[At,Hv],{moduleId:"lumo-select"});w("vaadin-select-value-button",y`
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 Mg=y`
5390
+ `,{moduleId:"lumo-select-value-button"});const Rv=y`
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
- `;w("vaadin-select-overlay",[Vn,Mg],{moduleId:"lumo-select-overlay"});/**
5426
+ `;w("vaadin-select-overlay",[js,Rv],{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 zg=i=>class extends On(St(i)){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 Vv=i=>class extends zs(St(i)){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 Lg extends zg(U(Se(R))){static get is(){return"vaadin-select-item"}static get template(){return H`
5434
+ */class $v extends Vv($(Se(H))){static get is(){return"vaadin-select-item"}static get template(){return F`
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")}}O(Lg);/**
5448
+ `}ready(){super.ready(),this.setAttribute("role","option")}}O($v);/**
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 Fg(i,e){const{scrollLeft:t}=i;return e!=="rtl"?t:i.scrollWidth-i.clientWidth+t}function Hg(i,e,t){e!=="rtl"?i.scrollLeft=t:i.scrollLeft=i.clientWidth-i.scrollWidth+t}/**
5452
+ */function Wv(i,e){const{scrollLeft:t}=i;return e!=="rtl"?t:i.scrollWidth-i.clientWidth+t}function Uv(i,e,t){e!=="rtl"?i.scrollLeft=t:i.scrollLeft=i.clientWidth-i.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 Rg=i=>class extends Et(i){get focused(){return(this._getItems()||[]).find(Mn)}get _vertical(){return!0}focus(){const e=this._getItems();if(Array.isArray(e)){const t=this._getAvailableIndex(e,0,null,r=>!rn(r));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,r=this._getItems()||[],o=r.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=r.length-1),n=this._getAvailableIndex(r,n,s,l=>!rn(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 r=this._getItems();this._focusItem(r[e],t)}_focusItem(e){e&&(e.focus(),e.setAttribute("focus-ring",""))}_getAvailableIndex(e,t,r,o){const n=e.length;let s=t;for(let a=0;typeof s=="number"&&a<n;a+=1,s+=r||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 jv=i=>class extends Et(i){get focused(){return(this._getItems()||[]).find(Hs)}get _vertical(){return!0}focus(){const e=this._getItems();if(Array.isArray(e)){const t=this._getAvailableIndex(e,0,null,r=>!ls(r));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,r=this._getItems()||[],o=r.indexOf(this.focused);let s,n;const a=!this._vertical&&this.getAttribute("dir")==="rtl"?-1:1;this.__isPrevKey(t)?(n=-a,s=o-a):this.__isNextKey(t)?(n=a,s=o+a):t==="Home"?(n=1,s=0):t==="End"&&(n=-1,s=r.length-1),s=this._getAvailableIndex(r,s,n,l=>!ls(l)),s>=0&&(e.preventDefault(),this._focus(s,!0))}__isPrevKey(e){return this._vertical?e==="ArrowUp":e==="ArrowLeft"}__isNextKey(e){return this._vertical?e==="ArrowDown":e==="ArrowRight"}_focus(e,t=!1){const r=this._getItems();this._focusItem(r[e],t)}_focusItem(e){e&&(e.focus(),e.setAttribute("focus-ring",""))}_getAvailableIndex(e,t,r,o){const s=e.length;let n=t;for(let a=0;typeof n=="number"&&a<s;a+=1,n+=r||1){n<0?n=s-1:n>=s&&(n=0);const l=e[n];if(!l.hasAttribute("disabled")&&this.__isMatchingItem(l,o))return n}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 Vg=i=>class extends Rg(i){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,r=>r.tabIndex===0&&!rn(r));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 In(e,()=>{this._setItems(this._filterItems(lh(this)))})}_getItems(){return this.items}_enhanceItems(e,t,r,o){if(!o&&e){this.setAttribute("aria-orientation",t||"vertical"),e.forEach(s=>{t?s.setAttribute("orientation",t):s.removeAttribute("orientation")}),this._setFocusable(r<0||!r?0:r);const n=e[r];e.forEach(s=>{s.selected=s===n}),n&&!n.disabled&&this._scrollToItem(r)}}_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 r;t&&!t.disabled&&(r=this.items.indexOf(t))>=0&&(this.selected=r)}_searchKey(e,t){this._searchReset=ye.debounce(this._searchReset,rt.after(500),()=>{this._searchBuf=""}),this._searchBuf+=t.toLowerCase(),this.items.some(o=>this.__isMatchingKey(o))||(this._searchBuf=t.toLowerCase());const r=this._searchBuf.length===1?e+1:e;return this._getAvailableIndex(this.items,r,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,r=this.items.indexOf(this.focused);if(/[\p{L}\p{Nd}]/u.test(t)&&t.length===1){const o=this._searchKey(r,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(r=>{r.tabIndex=r===t?0:-1})}_focus(e){this.items.forEach((t,r)=>{t.focused=r===e}),this._setFocusable(e),this._scrollToItem(e),super._focus(e)}_scrollToItem(e){const t=this.items[e];if(!t)return;const r=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[r[1]]>=o[r[1]]||this._isRTL&&n[r[1]]<=o[r[1]]?a=n[r[1]]-o[r[1]]:(!this._isRTL&&s[r[0]]<=o[r[0]]||this._isRTL&&s[r[0]]>=o[r[0]])&&(a=s[r[0]]-o[r[0]]),this._scroll(a)}_scroll(e){if(this._vertical)this._scrollerElement.scrollTop+=e;else{const t=this.getAttribute("dir")||"ltr",r=Fg(this._scrollerElement,t)+e;Hg(this._scrollerElement,t,r)}}};/**
5460
+ */const Gv=i=>class extends jv(i){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,r=>r.tabIndex===0&&!ls(r));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 Os(e,()=>{this._setItems(this._filterItems(ph(this)))})}_getItems(){return this.items}_enhanceItems(e,t,r,o){if(!o&&e){this.setAttribute("aria-orientation",t||"vertical"),e.forEach(n=>{t?n.setAttribute("orientation",t):n.removeAttribute("orientation")}),this._setFocusable(r<0||!r?0:r);const s=e[r];e.forEach(n=>{n.selected=n===s}),s&&!s.disabled&&this._scrollToItem(r)}}_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 r;t&&!t.disabled&&(r=this.items.indexOf(t))>=0&&(this.selected=r)}_searchKey(e,t){this._searchReset=ye.debounce(this._searchReset,rt.after(500),()=>{this._searchBuf=""}),this._searchBuf+=t.toLowerCase(),this.items.some(o=>this.__isMatchingKey(o))||(this._searchBuf=t.toLowerCase());const r=this._searchBuf.length===1?e+1:e;return this._getAvailableIndex(this.items,r,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,r=this.items.indexOf(this.focused);if(/[\p{L}\p{Nd}]/u.test(t)&&t.length===1){const o=this._searchKey(r,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(r=>{r.tabIndex=r===t?0:-1})}_focus(e){this.items.forEach((t,r)=>{t.focused=r===e}),this._setFocusable(e),this._scrollToItem(e),super._focus(e)}_scrollToItem(e){const t=this.items[e];if(!t)return;const r=this._vertical?["top","bottom"]:this._isRTL?["right","left"]:["left","right"],o=this._scrollerElement.getBoundingClientRect(),s=(this.items[e+1]||t).getBoundingClientRect(),n=(this.items[e-1]||t).getBoundingClientRect();let a=0;!this._isRTL&&s[r[1]]>=o[r[1]]||this._isRTL&&s[r[1]]<=o[r[1]]?a=s[r[1]]-o[r[1]]:(!this._isRTL&&n[r[0]]<=o[r[0]]||this._isRTL&&n[r[0]]>=o[r[0]])&&(a=n[r[0]]-o[r[0]]),this._scroll(a)}_scroll(e){if(this._vertical)this._scrollerElement.scrollTop+=e;else{const t=this.getAttribute("dir")||"ltr",r=Wv(this._scrollerElement,t)+e;Uv(this._scrollerElement,t,r)}}};/**
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 $g extends Vg(U(Se(at(R)))){static get is(){return"vaadin-select-list-box"}static get template(){return H`
5464
+ */class qv extends Gv($(Se(at(H)))){static get is(){return"vaadin-select-list-box"}static get template(){return F`
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")}}O($g);/**
5484
+ `}static get properties(){return{orientation:{readOnly:!0}}}get _scrollerElement(){return this.shadowRoot.querySelector('[part="items"]')}ready(){super.ready(),this.setAttribute("role","listbox")}}O(qv);/**
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 Ug=i=>class extends Wn(Yr(Se(i))){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 r="--vaadin-select-overlay-width",o=getComputedStyle(t).getPropertyValue(r);o===""?this.style.removeProperty(r):this.style.setProperty(r,o)}}};/**
5488
+ */const Yv=i=>class extends Ys(Jr(Se(i))){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 r="--vaadin-select-overlay-width",o=getComputedStyle(t).getPropertyValue(r);o===""?this.style.removeProperty(r):this.style.setProperty(r,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 Wg=y`
5492
+ */const Xv=y`
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
- `;w("vaadin-select-overlay",[Gr,Wg],{moduleId:"vaadin-select-overlay-styles"});class jg extends Ug(U(R)){static get is(){return"vaadin-select-overlay"}static get template(){return H`
5507
+ `;w("vaadin-select-overlay",[Xr,Xv],{moduleId:"vaadin-select-overlay-styles"});class Kv extends Yv($(H)){static get is(){return"vaadin-select-overlay"}static get template(){return F`
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)}}}O(jg);/**
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)}}}O(Kv);/**
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 Gg=y`
5518
+ */const Jv=y`
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
- */w("vaadin-select-value-button",Gg,{moduleId:"vaadin-select-value-button-styles"});class qg extends jn(U(R)){static get is(){return"vaadin-select-value-button"}static get template(){return H`
5564
+ */w("vaadin-select-value-button",Jv,{moduleId:"vaadin-select-value-button-styles"});class Zv extends Xs($(H)){static get is(){return"vaadin-select-value-button"}static get template(){return F`
5565
5565
  <div class="vaadin-button-container">
5566
5566
  <span part="label">
5567
5567
  <slot></slot>
5568
5568
  </span>
5569
5569
  </div>
5570
- `}}O(qg);/**
5570
+ `}}O(Zv);/**
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 Yg=y`
5574
+ */const Qv=y`
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 Xg extends Fe{constructor(e){super(e,"value","vaadin-select-value-button",{initializer:(t,r)=>{r._setFocusElement(t),r.ariaTarget=t,r.stateTarget=t,t.setAttribute("aria-haspopup","listbox")}})}}/**
5592
+ */class eg extends He{constructor(e){super(e,"value","vaadin-select-value-button",{initializer:(t,r)=>{r._setFocusElement(t),r.ariaTarget=t,r.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 Kg=i=>class extends Jr($r(zn(Et(Ur(i))))){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}-${Rr()}`,this._srLabelController=new yh(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 Xg(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new Kn(this._phoneMediaQuery,e=>{this._phone=e})),this._tooltipController=new st(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 r=t.composedPath().find(o=>o._hasVaadinItemMixin);this.__dispatchChangePending=!!(r&&r.value!==void 0&&r.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,r=t!==void 0?t:-1,o=this._menuElement._searchKey(r,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,r){if(!(!t||!r)){if(e){if(this.disabled||this.readonly){this.opened=!1;return}this._updateAriaLive(!1),t.style.setProperty("--vaadin-select-text-field-width",`${r.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 r=e.getAttribute("label");r?t=this.__createItemElement({label:r}):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 r=t||this.placeholder?{newId:this._itemId}:{oldId:this._itemId};fr(e,"aria-labelledby",r),(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()),r=e.childElementCount>0;return t||r}_updateSelectedItem(e,t){if(t){const r=e==null?e:e.toString();this._menuElement.selected=t.reduce((o,n,s)=>o===void 0&&n.value===r?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 r=e.firstElementChild;r||(r=document.createElement("vaadin-select-list-box"),e.appendChild(r)),r.textContent="",this.items.forEach(o=>{r.appendChild(this.__createItemElement(o))})}__dispatchChange(){return yr(this,null,function*(){this.updateComplete&&(yield this.updateComplete),this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChangePending=!1})}};/**
5596
+ */const tg=i=>class extends eo(jr(Rs(Et(Gr(i))))){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}-${Wr()}`,this._srLabelController=new Sh(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 eg(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new en(this._phoneMediaQuery,e=>{this._phone=e})),this._tooltipController=new nt(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 r=t.composedPath().find(o=>o._hasVaadinItemMixin);this.__dispatchChangePending=!!(r&&r.value!==void 0&&r.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,r=t!==void 0?t:-1,o=this._menuElement._searchKey(r,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,r){if(!(!t||!r)){if(e){if(this.disabled||this.readonly){this.opened=!1;return}this._updateAriaLive(!1),t.style.setProperty("--vaadin-select-text-field-width",`${r.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 r=e.getAttribute("label");r?t=this.__createItemElement({label:r}):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 r=t||this.placeholder?{newId:this._itemId}:{oldId:this._itemId};fr(e,"aria-labelledby",r),(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()),r=e.childElementCount>0;return t||r}_updateSelectedItem(e,t){if(t){const r=e==null?e:e.toString();this._menuElement.selected=t.reduce((o,s,n)=>o===void 0&&s.value===r?n: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 r=e.firstElementChild;r||(r=document.createElement("vaadin-select-list-box"),e.appendChild(r)),r.textContent="",this.items.forEach(o=>{r.appendChild(this.__createItemElement(o))})}__dispatchChange(){return wr(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
- */w("vaadin-select",[Hh,Rh,Yg],{moduleId:"vaadin-select-styles"});class Jg extends Kg(He(U(R))){static get is(){return"vaadin-select"}static get template(){return H`
5600
+ */w("vaadin-select",[Uh,jh,Qv],{moduleId:"vaadin-select-styles"});class ig extends tg(Re($(H))){static get is(){return"vaadin-select"}static get template(){return F`
5601
5601
  <style>
5602
5602
  :host {
5603
5603
  position: relative;
@@ -5650,4 +5650,4 @@ 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(),Qr(this)}_rendererChanged(e,t){t&&(t.renderer=e||this.__defaultRenderer,this.requestContentUpdate())}_onOverlayOpen(){this._menuElement&&this._menuElement.focus()}}O(Jg);function Zg(i){dd(i,"svelte-kqqea6",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.historyContainer{container-type:inline-size}.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 .historyReturnButton{display:none;border:none;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));align-items:center;column-gap:10px;margin-bottom:10px}.historyContainer .historyWrapper .historyHeader .historyReturnButton .historyReturnText{font-size:var(--emw--size-standard, 16px)}.historyContainer .historyWrapper .historyHeader .historyReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.historyContainer .historyWrapper .historyHeader .historyReturnButton.skeleton{width:200px;height: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;justify-content:center;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:15px;padding-bottom:30px;padding:20px 0px}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer{display:flex;gap:20px}.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)}.historyContainer .historyWrapper .historyTable .tableWrapper{width:100%;display:flex;flex-direction:column}.historyContainer .historyWrapper .historyTable .tableHead{display:flex;padding:18px 0;color:var(--emw--button-text-color, #FFFFFF);background:var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyTable .tableHead span{width:100px;flex:1 1 20%;text-align:center}.historyContainer .historyWrapper .historyTable .tableContent{width:100%;max-height:546px;overflow-y:auto}.historyContainer .historyWrapper .historyTable .tableContent .tableRow{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:18px 0;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;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:0px 18px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;text-wrap:nowrap}.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}@container (max-width: 768px){.historyContainer .historyWrapper{padding:20px 15px}.historyContainer .historyWrapper .historyHeader .headerText{display:none}.historyContainer .historyWrapper .historyHeader .historyReturnButton{display:inline-flex}.historyContainer .historyWrapper .historyHeader .headerController{width:100%;align-items:center;justify-content:center}.historyContainer .historyWrapper .historyFilter{flex-direction:column;align-items:center}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer{width:100%}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate{width:inherit}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate .VaadinDatePicker,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate .VaadinDatePicker{width:inherit}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter{width:100%}.historyContainer .historyWrapper .historyTable{overflow:auto}.historyContainer .historyWrapper .historyTable .tableHead{min-width:fit-content}.historyContainer .historyWrapper .historyTable .tableContent{min-width:fit-content;max-height:430px}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown{top:-150px}}@container (max-width: 425px){.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 .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown{top:-150px}}')}function Ea(i,e,t){const r=i.slice();return r[84]=e[t],r}function Sa(i,e,t){const r=i.slice();return r[87]=e[t],r[89]=t,r}function Aa(i,e,t){const r=i.slice();return r[90]=e[t],r}function Pa(i,e,t){const r=i.slice();return r[93]=e[t],r}function Ia(i,e,t){const r=i.slice();return r[90]=e[t],r}function ka(i,e,t){const r=i.slice();return r[90]=e[t],r}function Ta(i,e,t){const r=i.slice();return r[100]=e[t],r[89]=t,r}function Qg(i,e,t){const r=i.slice();return r[75]=e[t],r}function ev(i,e,t){const r=i.slice();return r[75]=e[t],r}function tv(i,e,t){const r=i.slice();return r[75]=e[t],r}function iv(i,e,t){const r=i.slice();return r[75]=e[t],r}function rv(i){let e,t,r,o,n,s,a,l,h,d,c,p,u,g=i[17]("headerTitle")+"",x,P,A,L,k=i[17]("headerTitle")+"",$,W,se,ee,E,re,j,xe,Pt=i[17]("dateFrom")+"",ht,dt,ve,Oe,de,ce,Ae=i[17]("dateTo")+"",It,Ne,Pe,si,Ye,kt=i[17]("dateFilter")+"",Ie,N,Gi,ct,Be,Xe,qi,ut,ai,ue,ke,Re,pt,Tt,mt,Dt,ft,li,hi,_t,Yi,Ve,Ke,di,Ot,Xi,Nt,Me,Je,ci,ui,Ki,Ze,pi,Ji,f,S,I,V,pe=te(i[13]),q=[];for(let b=0;b<pe.length;b+=1)q[b]=Da(Ta(i,pe,b));let me=te(i[18][i[7]]),J=[];for(let b=0;b<me.length;b+=1)J[b]=Oa(ka(i,me,b));function Zi(b,F){return b[12]?nv:sv}let Bt=Zi(i),we=Bt(i),ze=te(i[20]),Z=[];for(let b=0;b<ze.length;b+=1)Z[b]=La(Ea(i,ze,b));return{c(){e=v("div"),t=v("div"),r=v("div"),o=v("button"),n=fe("svg"),s=fe("defs"),a=fe("style"),l=oe(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),h=fe("g"),d=fe("g"),c=fe("path"),p=z(),u=v("h2"),x=oe(g),P=z(),A=v("div"),L=v("p"),$=oe(k),W=z(),se=v("div");for(let b=0;b<q.length;b+=1)q[b].c();ee=z(),E=v("div"),re=v("div"),j=v("div"),xe=v("label"),ht=oe(Pt),dt=z(),ve=v("vaadin-date-picker"),Oe=z(),de=v("div"),ce=v("label"),It=oe(Ae),Ne=z(),Pe=v("vaadin-date-picker"),si=z(),Ye=v("button"),Ie=oe(kt),Gi=z(),ct=v("table"),Be=v("div"),Xe=v("thead");for(let b=0;b<J.length;b+=1)J[b].c();qi=z(),ut=v("tbody"),we.c(),ai=z(),ue=v("div"),ke=v("div"),Re=v("button"),pt=fe("svg"),Tt=fe("path"),Dt=z(),ft=v("div"),li=v("p"),hi=oe(i[9]),Yi=z(),Ve=v("button"),Ke=fe("svg"),di=fe("path"),Xi=z(),Nt=v("div"),Me=v("button"),Je=v("div"),ci=v("p"),ui=oe(i[8]),Ki=z(),Ze=fe("svg"),pi=fe("path"),Ji=z(),f=v("div");for(let b=0;b<Z.length;b+=1)Z[b].c();_(c,"class","aaa"),_(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),_(c,"transform","translate(15 15) rotate(180)"),_(d,"transform","translate(20 158)"),_(h,"transform","translate(-20 -158)"),_(n,"xmlns","http://www.w3.org/2000/svg"),_(n,"width","15"),_(n,"height","15"),_(n,"viewBox","0 0 15 15"),_(u,"class","historyReturnText"),_(o,"class","historyReturnButton"),_(A,"class","headerText"),_(se,"class","headerController"),_(r,"class","historyHeader"),_(xe,"for","historyCalendarStartDate"),Ee(ve,"max",i[4]),Ee(ve,"value",i[5]),Ee(ve,"placeholder","From"),Ee(ve,"class","VaadinDatePicker"),_(j,"class","historyCalendarStartDate"),_(ce,"for","historyCalendarEndDate"),Ee(Pe,"max",i[4]),Ee(Pe,"value",i[6]),Ee(Pe,"placeholder","To"),Ee(Pe,"class","VaadinDatePicker"),_(de,"class","historyCalendarEndDate"),_(re,"class","historyCalendarContainer"),_(Ye,"class",N="historyCalendarFilter "+(i[16].filterButton?"":"disable")),_(E,"class","historyFilter"),_(Xe,"class","tableHead"),_(ut,"class","tableContent"),_(Be,"class","tableWrapper"),_(ct,"class","historyTable"),_(Tt,"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"),_(pt,"viewBox","1 4 17 17"),_(pt,"xmlns","http://www.w3.org/2000/svg"),_(Re,"class",mt="arrowLeft "+(i[16].previousPage?"":"disable")),_(ft,"class",_t="indexDisplay "+(!i[16].previousPage&&!i[16].nextPage?"disable":"")),_(di,"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"),_(Ke,"viewBox","6 4 17 17"),_(Ke,"xmlns","http://www.w3.org/2000/svg"),_(Ve,"class",Ot="arrowRight "+(i[16].nextPage?"":"disable")),_(ke,"class","historyPageIndex"),_(pi,"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"),_(Ze,"xmlns","http://www.w3.org/2000/svg"),_(Ze,"viewBox","6 5 20 20"),_(Ze,"class","icon"),_(Je,"class","currentPageSize"),_(f,"class","pageSizeDropDown"),_(Me,"class",S="pageSizeSelector "+(i[11]?"active":"")+" "+(i[16].pageSize?"":"disable")),_(Nt,"class","historyPageSize"),_(ue,"class","historyPaginationContainer"),_(t,"class","historyWrapper"),_(e,"class","historyContainer")},m(b,F){X(b,e,F),m(e,t),m(t,r),m(r,o),m(o,n),m(n,s),m(s,a),m(a,l),m(n,h),m(h,d),m(d,c),m(o,p),m(o,u),m(u,x),m(r,P),m(r,A),m(A,L),m(L,$),m(r,W),m(r,se);for(let C=0;C<q.length;C+=1)q[C]&&q[C].m(se,null);m(t,ee),m(t,E),m(E,re),m(re,j),m(j,xe),m(xe,ht),m(j,dt),m(j,ve),i[44](ve),m(re,Oe),m(re,de),m(de,ce),m(ce,It),m(de,Ne),m(de,Pe),i[45](Pe),m(E,si),m(E,Ye),m(Ye,Ie),m(t,Gi),m(t,ct),m(ct,Be),m(Be,Xe);for(let C=0;C<J.length;C+=1)J[C]&&J[C].m(Xe,null);m(Be,qi),m(Be,ut),we.m(ut,null),m(t,ai),m(t,ue),m(ue,ke),m(ke,Re),m(Re,pt),m(pt,Tt),m(ke,Dt),m(ke,ft),m(ft,li),m(li,hi),m(ke,Yi),m(ke,Ve),m(Ve,Ke),m(Ke,di),m(ue,Xi),m(ue,Nt),m(Nt,Me),m(Me,Je),m(Je,ci),m(ci,ui),m(Je,Ki),m(Je,Ze),m(Ze,pi),m(Me,Ji),m(Me,f);for(let C=0;C<Z.length;C+=1)Z[C]&&Z[C].m(f,null);I||(V=[et(o,"click",i[42]),et(Ye,"click",i[46]),et(Re,"click",i[48]),et(Ve,"click",i[49]),et(Me,"click",i[51])],I=!0)},p(b,F){if(F[0]&131072&&g!==(g=b[17]("headerTitle")+"")&&ge(x,g),F[0]&131072&&k!==(k=b[17]("headerTitle")+"")&&ge($,k),F[0]&2236416){pe=te(b[13]);let C;for(C=0;C<pe.length;C+=1){const Qe=Ta(b,pe,C);q[C]?q[C].p(Qe,F):(q[C]=Da(Qe),q[C].c(),q[C].m(se,null))}for(;C<q.length;C+=1)q[C].d(1);q.length=pe.length}if(F[0]&131072&&Pt!==(Pt=b[17]("dateFrom")+"")&&ge(ht,Pt),F[0]&16&&Ee(ve,"max",b[4]),F[0]&32&&Ee(ve,"value",b[5]),F[0]&131072&&Ae!==(Ae=b[17]("dateTo")+"")&&ge(It,Ae),F[0]&16&&Ee(Pe,"max",b[4]),F[0]&64&&Ee(Pe,"value",b[6]),F[0]&131072&&kt!==(kt=b[17]("dateFilter")+"")&&ge(Ie,kt),F[0]&65536&&N!==(N="historyCalendarFilter "+(b[16].filterButton?"":"disable"))&&_(Ye,"class",N),F[0]&393344){me=te(b[18][b[7]]);let C;for(C=0;C<me.length;C+=1){const Qe=ka(b,me,C);J[C]?J[C].p(Qe,F):(J[C]=Oa(Qe),J[C].c(),J[C].m(Xe,null))}for(;C<J.length;C+=1)J[C].d(1);J.length=me.length}if(Bt===(Bt=Zi(b))&&we?we.p(b,F):(we.d(1),we=Bt(b),we&&(we.c(),we.m(ut,null))),F[0]&65536&&mt!==(mt="arrowLeft "+(b[16].previousPage?"":"disable"))&&_(Re,"class",mt),F[0]&512&&ge(hi,b[9]),F[0]&65536&&_t!==(_t="indexDisplay "+(!b[16].previousPage&&!b[16].nextPage?"disable":""))&&_(ft,"class",_t),F[0]&65536&&Ot!==(Ot="arrowRight "+(b[16].nextPage?"":"disable"))&&_(Ve,"class",Ot),F[0]&256&&ge(ui,b[8]),F[0]&17825792){ze=te(b[20]);let C;for(C=0;C<ze.length;C+=1){const Qe=Ea(b,ze,C);Z[C]?Z[C].p(Qe,F):(Z[C]=La(Qe),Z[C].c(),Z[C].m(f,null))}for(;C<Z.length;C+=1)Z[C].d(1);Z.length=ze.length}F[0]&67584&&S!==(S="pageSizeSelector "+(b[11]?"active":"")+" "+(b[16].pageSize?"":"disable"))&&_(Me,"class",S)},d(b){b&&G(e),De(q,b),i[44](null),i[45](null),De(J,b),we.d(),De(Z,b),I=!1,ei(V)}}}function ov(i){let e,t,r,o,n,s,a,l,h,d,c,p,u,g,x,P,A,L=te({length:3}),k=[];for(let E=0;E<L.length;E+=1)k[E]=mv(iv(i,L,E));let $=te({length:6}),W=[];for(let E=0;E<$.length;E+=1)W[E]=fv(tv(i,$,E));let se=te({length:5}),ee=[];for(let E=0;E<se.length;E+=1)ee[E]=gv(Qg(i,se,E));return{c(){e=v("div"),t=v("div"),r=v("div"),o=v("button"),o.innerHTML='<ui-skeleton structure="title" width="auto" height="10px"></ui-skeleton>',n=z(),s=v("div"),s.innerHTML='<ui-skeleton structure="title" width="auto" height="30px"></ui-skeleton>',a=z(),l=v("div");for(let E=0;E<k.length;E+=1)k[E].c();h=z(),d=v("div"),d.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>',c=z(),p=v("table"),u=v("thead");for(let E=0;E<W.length;E+=1)W[E].c();g=z(),x=v("tbody");for(let E=0;E<ee.length;E+=1)ee[E].c();P=z(),A=v("div"),A.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>',_(o,"class","historyReturnButton skeleton"),_(s,"class","headerText skeleton"),_(l,"class","headerController skeleton"),_(r,"class","historyHeader"),_(d,"class","historyFilter skeleton"),_(u,"class","tableHead"),_(x,"class","tableContent"),_(p,"class","historyTable skeleton"),_(A,"class","historyPaginationContainer skeleton"),_(t,"class","historyWrapper"),_(e,"class","historyContainer")},m(E,re){X(E,e,re),m(e,t),m(t,r),m(r,o),m(r,n),m(r,s),m(r,a),m(r,l);for(let j=0;j<k.length;j+=1)k[j]&&k[j].m(l,null);m(t,h),m(t,d),m(t,c),m(t,p),m(p,u);for(let j=0;j<W.length;j+=1)W[j]&&W[j].m(u,null);m(p,g),m(p,x);for(let j=0;j<ee.length;j+=1)ee[j]&&ee[j].m(x,null);m(t,P),m(t,A)},p:Q,d(E){E&&G(e),De(k,E),De(W,E),De(ee,E)}}}function Da(i){let e,t,r,o,n=i[17](i[100].type)+"",s,a,l,h,d;function c(){return i[43](i[89])}return{c(){e=v("button"),t=v("div"),t.innerHTML='<input type="checkbox"/> <span class="circle"></span>',r=z(),o=v("p"),s=oe(n),a=z(),_(t,"class","toggleCheckbox"),_(o,"class","label"),_(e,"class",l="toggleContent "+(i[100].checked?"checked":""))},m(p,u){X(p,e,u),m(e,t),m(e,r),m(e,o),m(o,s),m(e,a),h||(d=et(e,"click",c),h=!0)},p(p,u){i=p,u[0]&139264&&n!==(n=i[17](i[100].type)+"")&&ge(s,n),u[0]&8192&&l!==(l="toggleContent "+(i[100].checked?"checked":""))&&_(e,"class",l)},d(p){p&&G(e),h=!1,d()}}}function Oa(i){let e,t=(i[17](i[90])||i[90])+"",r,o;return{c(){e=v("span"),r=oe(t),o=z()},m(n,s){X(n,e,s),m(e,r),m(e,o)},p(n,s){s[0]&131200&&t!==(t=(n[17](n[90])||n[90])+"")&&ge(r,t)},d(n){n&&G(e)}}}function nv(i){let e,t;return{c(){e=v("div"),t=oe(i[3]),_(e,"class","tableRow")},m(r,o){X(r,e,o),m(e,t)},p(r,o){o[0]&8&&ge(t,r[3])},d(r){r&&G(e)}}}function sv(i){let e,t=te(i[14][i[7]]),r=[];for(let o=0;o<t.length;o+=1)r[o]=za(Sa(i,t,o));return{c(){for(let o=0;o<r.length;o+=1)r[o].c();e=pn()},m(o,n){for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(o,n);X(o,e,n)},p(o,n){if(n[0]&67682432){t=te(o[14][o[7]]);let s;for(s=0;s<t.length;s+=1){const a=Sa(o,t,s);r[s]?r[s].p(a,n):(r[s]=za(a),r[s].c(),r[s].m(e.parentNode,e))}for(;s<r.length;s+=1)r[s].d(1);r.length=t.length}},d(o){o&&G(e),De(r,o)}}}function av(i){let e,t=(i[87][i[90]]||"-")+"",r;return{c(){e=v("span"),r=oe(t)},m(o,n){X(o,e,n),m(e,r)},p(o,n){n[0]&16512&&t!==(t=(o[87][o[90]]||"-")+"")&&ge(r,t)},d(o){o&&G(e)}}}function lv(i){let e,t=(i[87][i[90]].submenu[0]||"-")+"",r;return{c(){e=v("span"),r=oe(t)},m(o,n){X(o,e,n),m(e,r)},p(o,n){n[0]&16512&&t!==(t=(o[87][o[90]].submenu[0]||"-")+"")&&ge(r,t)},d(o){o&&G(e)}}}function hv(i){let e,t,r,o,n,s,a=i[87][i[90]].label+"",l,h,d,c;function p(){return i[47](i[89])}return{c(){e=v("button"),t=fe("svg"),r=fe("path"),n=z(),s=v("span"),l=oe(a),h=z(),_(r,"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"),_(t,"xmlns","http://www.w3.org/2000/svg"),_(t,"viewBox","6 5 20 20"),_(t,"class",o="iconToggleSubMenu "+(i[15][i[89]]?"active":"")),_(e,"class","toggleSubMenu")},m(u,g){X(u,e,g),m(e,t),m(t,r),m(e,n),m(e,s),m(s,l),m(e,h),d||(c=et(e,"click",p),d=!0)},p(u,g){i=u,g[0]&32768&&o!==(o="iconToggleSubMenu "+(i[15][i[89]]?"active":""))&&_(t,"class",o),g[0]&16512&&a!==(a=i[87][i[90]].label+"")&&ge(l,a)},d(u){u&&G(e),d=!1,c()}}}function dv(i){let e;return{c(){e=v("span"),e.innerHTML='<svg viewBox="-3 -4 30 30" xmlns="http://www.w3.org/2000/svg"><path 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" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg> ',_(e,"class","decline")},m(t,r){X(t,e,r)},p:Q,d(t){t&&G(e)}}}function cv(i){let e;return{c(){e=v("span"),e.innerHTML='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" 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" stroke="#000000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9 12.0002L11.333 14.3332L16 9.66724" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg> ',_(e,"class","approved")},m(t,r){X(t,e,r)},p:Q,d(t){t&&G(e)}}}function Na(i){let e;function t(n,s){var a,l,h;return n[87][n[90]]===!0?cv:n[87][n[90]]===!1?dv:(a=n[87][n[90]])!=null&&a.label&&((l=n[87][n[90]])==null?void 0:l.submenu.length)>1?hv:(h=n[87][n[90]])!=null&&h.submenu?lv:av}let r=t(i),o=r(i);return{c(){o.c(),e=pn()},m(n,s){o.m(n,s),X(n,e,s)},p(n,s){r===(r=t(n))&&o?o.p(n,s):(o.d(1),o=r(n),o&&(o.c(),o.m(e.parentNode,e)))},d(n){n&&G(e),o.d(n)}}}function uv(i){let e;return{c(){e=v("div"),e.innerHTML='<span class="label">-</span> ',_(e,"class","tableData")},m(t,r){X(t,e,r)},p:Q,d(t){t&&G(e)}}}function pv(i){let e,t,r=te(i[87][i[90]].submenu),o=[];for(let n=0;n<r.length;n+=1)o[n]=Ba(Pa(i,r,n));return{c(){e=v("div");for(let n=0;n<o.length;n+=1)o[n].c();t=z(),_(e,"class","tableData")},m(n,s){X(n,e,s);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(e,null);m(e,t)},p(n,s){if(s[0]&540800){r=te(n[87][n[90]].submenu);let a;for(a=0;a<r.length;a+=1){const l=Pa(n,r,a);o[a]?o[a].p(l,s):(o[a]=Ba(l),o[a].c(),o[a].m(e,t))}for(;a<o.length;a+=1)o[a].d(1);o.length=r.length}},d(n){n&&G(e),De(o,n)}}}function Ba(i){let e,t=(i[93]||"-")+"",r;return{c(){e=v("span"),r=oe(t),_(e,"class","label")},m(o,n){X(o,e,n),m(e,r)},p(o,n){n[0]&16512&&t!==(t=(o[93]||"-")+"")&&ge(r,t)},d(o){o&&G(e)}}}function Ma(i){let e;function t(n,s){var a;return(a=n[87][n[90]])!=null&&a.submenu?pv:uv}let r=t(i),o=r(i);return{c(){o.c(),e=pn()},m(n,s){o.m(n,s),X(n,e,s)},p(n,s){r===(r=t(n))&&o?o.p(n,s):(o.d(1),o=r(n),o&&(o.c(),o.m(e.parentNode,e)))},d(n){n&&G(e),o.d(n)}}}function za(i){let e,t,r,o,n,s,a=te(i[19][i[7]]),l=[];for(let c=0;c<a.length;c+=1)l[c]=Na(Ia(i,a,c));let h=te(i[19][i[7]]),d=[];for(let c=0;c<h.length;c+=1)d[c]=Ma(Aa(i,h,c));return{c(){e=v("div"),t=v("div");for(let c=0;c<l.length;c+=1)l[c].c();r=z(),o=v("div");for(let c=0;c<d.length;c+=1)d[c].c();s=z(),_(t,"class","tableData"),_(o,"class",n="tableSubMenu "+(i[15][i[89]]?"active":"")),_(e,"class","tableRow")},m(c,p){X(c,e,p),m(e,t);for(let u=0;u<l.length;u+=1)l[u]&&l[u].m(t,null);m(e,r),m(e,o);for(let u=0;u<d.length;u+=1)d[u]&&d[u].m(o,null);m(e,s)},p(c,p){if(p[0]&67682432){a=te(c[19][c[7]]);let u;for(u=0;u<a.length;u+=1){const g=Ia(c,a,u);l[u]?l[u].p(g,p):(l[u]=Na(g),l[u].c(),l[u].m(t,null))}for(;u<l.length;u+=1)l[u].d(1);l.length=a.length}if(p[0]&540800){h=te(c[19][c[7]]);let u;for(u=0;u<h.length;u+=1){const g=Aa(c,h,u);d[u]?d[u].p(g,p):(d[u]=Ma(g),d[u].c(),d[u].m(o,null))}for(;u<d.length;u+=1)d[u].d(1);d.length=h.length}p[0]&32768&&n!==(n="tableSubMenu "+(c[15][c[89]]?"active":""))&&_(o,"class",n)},d(c){c&&G(e),De(l,c),De(d,c)}}}function La(i){let e,t,r,o,n;function s(){return i[50](i[84])}return{c(){e=v("button"),t=v("p"),t.textContent=`${i[84]}`,r=z(),_(e,"class","dropDownRow")},m(a,l){X(a,e,l),m(e,t),m(e,r),o||(n=et(e,"click",s),o=!0)},p(a,l){i=a},d(a){a&&G(e),o=!1,n()}}}function mv(i){let e;return{c(){e=v("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> ',_(e,"class","toggleContent")},m(t,r){X(t,e,r)},p:Q,d(t){t&&G(e)}}}function fv(i){let e;return{c(){e=v("div"),e.innerHTML='<ui-skeleton structure="text" width="auto" height="40px"></ui-skeleton> '},m(t,r){X(t,e,r)},p:Q,d(t){t&&G(e)}}}function _v(i){let e;return{c(){e=v("div"),e.innerHTML='<ui-skeleton structure="text" width="auto" height="40px"></ui-skeleton> '},m(t,r){X(t,e,r)},p:Q,d(t){t&&G(e)}}}function gv(i){let e,t,r,o=te({length:6}),n=[];for(let s=0;s<o.length;s+=1)n[s]=_v(ev(i,o,s));return{c(){e=v("div"),t=v("div");for(let s=0;s<n.length;s+=1)n[s].c();r=z(),_(t,"class","tableData"),_(e,"class","tableRow")},m(s,a){X(s,e,a),m(e,t);for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(t,null);m(e,r)},p:Q,d(s){s&&G(e),De(n,s)}}}function vv(i){let e;function t(n,s){return n[10]?ov:rv}let r=t(i),o=r(i);return{c(){e=v("div"),o.c()},m(n,s){X(n,e,s),o.m(e,null),i[52](e)},p(n,s){r===(r=t(n))&&o?o.p(n,s):(o.d(1),o=r(n),o&&(o.c(),o.m(e,null)))},i:Q,o:Q,d(n){n&&G(e),o.d(),i[52](null)}}}function bv(i,e,t){let r;hd(i,Bu,f=>t(17,r=f));let{endpoint:o=""}=e,{playerid:n=""}=e,{session:s=""}=e,{lang:a=""}=e,{clientstyling:l=""}=e,{clientstylingurl:h=""}=e,{translationurl:d=""}=e,{mbsource:c}=e,{historytypes:p="Casino, Sports, Payments"}=e,{pagesizeoptions:u="10, 20, 30, 50, 100"}=e,{playercurrency:g=""}=e,{defaultpagesize:x="5"}=e,{formatamount:P="{currency}{amount}.{2decimals}"}=e,{customcurrencysymbols:A}=e,L=window.navigator.userAgent,k="",$="",W,se,ee="",E="",re="",j=Number(x),xe=1,Pt=Mu(L)!=="PC",ht=!0,dt=!1,ve=!1,Oe,de,ce,Ae=[],It={EUR:"€",RON:" lei",USD:"$"},Ne={payments:[],casino:[],sports:[]},Pe={payments:["Type","Status","Amount","Date","Transaction ID"],casino:["Game Name","Date","Bet Amount","Win Amount","Transaction ID"],sports:["Stake","Price","Selection","Market","Sport","Date","Description","Bet Type","Free Bet","Win Type","Winnings","Bet Adjustment","Bet ID"]},si={payments:["paymentType","paymentState","paymentAmount","paymentCreatedOn","withdrawalId"],casino:["game_type_name","game_finished_on","stake","won","game_id"],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"]},Ye=["stake","won","winnings","bet_Part.price","paymentAmount"],kt=["bet_Part.price"],Ie={},N={filterButton:!0,nextPage:!0,previousPage:!0,pageSize:!0},Gi=u.split(", "),ct={},Be=new Date,Xe=new Date(Be);Xe.setMonth(Be.getMonth()-1),W=Be.toISOString().split("T")[0],E=W,se=Xe.toISOString().split("T")[0],ee=se;const qi=()=>{fetch(d).then(S=>S.json()).then(S=>{Object.keys(S).forEach(I=>{Es(I,S[I])})}).catch(S=>{console.log(S)})};Object.keys(Ss).forEach(f=>{Es(f,Ss[f])});const ut=()=>{t(13,Ae=p.split(", ").map((f,S)=>{const I={type:f,checked:S===0};return I.checked&&t(7,re=I.type.toLocaleLowerCase()),I}))},ai=f=>{Ae.forEach((S,I)=>{t(13,Ae[I].checked=f===I,Ae),Ae[I].checked&&t(7,re=S.type.toLocaleLowerCase())}),ue()},ue=()=>{if(!N.filterButton)return;t(10,ht=!0),t(12,ve=!1),t(16,N.filterButton=!1,N),t(16,N.nextPage=!1,N),t(16,N.previousPage=!1,N),t(16,N.pageSize=!1,N);let f=new URL(`${o}/v1/player/${n}/fsb/transactions/${re}`);f.searchParams.append("offset",(xe-1).toString()||"0"),f.searchParams.append("limit",j.toString()||"5"),f.searchParams.append("startDate",ee),f.searchParams.append("endDate",E);let S={method:"GET",headers:{"X-SessionId":s,"Content-Type":"application/json",Accept:"application/json"}};fetch(f.href,S).then(I=>di(I)).then(I=>{if(I.transactions.length===0)return t(3,$=r("checkPeriod")),Promise.reject($);I.pagination.next&&t(16,N.nextPage=!0,N),I.pagination.previous&&t(16,N.previousPage=!0,N),t(16,N.pageSize=!0,N),t(14,Ne[re]=[],Ne),t(11,dt=!1),Yi(),ft(I)}).catch(I=>{t(12,ve=!0),t(16,N.nextPage=!1,N),t(16,N.previousPage=!1,N),t(16,N.pageSize=!1,N),window.postMessage({type:"WidgetNotification",data:{type:"error",message:I}},window.location.href)}).finally(()=>{t(10,ht=!1),t(16,N.filterButton=!0,N)})},ke=f=>{t(5,ee=f.target.value)},Re=f=>{t(6,E=f.target.value)},pt=()=>{Oe.addEventListener("change",ke,!1),de.addEventListener("change",Re,!1)},Tt=()=>{N.pageSize&&t(11,dt=!dt)},mt=f=>{t(8,j=f),t(9,xe=1),ue()},Dt=(f,S)=>{if(S==="next"){if(!N.nextPage)return;t(9,xe=f+1),ue()}else{if(!N.previousPage)return;t(9,xe=f-1),ue()}},ft=f=>{f.transactions.forEach((S,I)=>{t(14,Ne[re][I]={},Ne),si[re].forEach(V=>{if(P&&g&&Ye.includes(V))if(V.includes(".")){let pe=V.split(".");S[pe[0]].forEach(q=>{q[pe[1]]=_t(q,pe[1])})}else S[V]=_t(S,V);if(new Date(S[V]).getTime()&&typeof S[V]!="number"&&hi(S,V),V.includes(".")){let pe=V.split(".")[0],q=V.split(".")[1];S[V]={label:"Multiple",submenu:[]},S[pe].forEach((me,J)=>{me[q]&&S[V].submenu.push(me[q])})}if(V in S)return t(14,Ne[re][I][V]=S[V],Ne)})})},li=()=>{if(!A)return;let f={};A.split(",").forEach(S=>{let I=S.split(":");f[I[0].trim()]=I[1].trim()}),Object.entries(f).forEach(([S,I])=>It[S]=I)},hi=(f,S)=>{let I=new Date(f[S]).toISOString().split("T"),V=`${I[0]} ${I[1].split(".")[0]}`;f[S]=V},_t=(f,S)=>{let I=kt.some(F=>F.includes(S)),V=typeof f[S]=="string"?parseInt(f[S]):f[S],pe=Object.keys(f).find(F=>F.includes("currency")),q=f[pe]||g,me=P;const J=me.match(/\{(\d+)decimals\}/),Zi=J?parseInt(J[1],10):2,Bt=J?new RegExp("\\{\\d+decimals\\}","g"):"{decimals}";V=V.toFixed(Zi);const[we,ze]=P.includes(".")?[",","."]:[".",","];let[Z,b]=V.split(".");return Z=Z.replace(/\B(?=(\d{3})+(?!\d))/g,we),V=`${Z}${ze}${b}`,me=me.replace("{currency}",I?"":It[q]||q).replace("{amount}",V.split(ze)[0]).replace(Bt,V.split(ze)[1]),me},Yi=()=>{Object.keys(Ie).forEach(f=>t(15,Ie[f]=!1,Ie))},Ve=f=>t(15,Ie[f]=!Ie[f],Ie),Ke=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:Pt},window.location.href)},di=f=>to(this,null,function*(){return f.status>=300?(ct=yield f.json(),k=ct.thirdPartyResponse.errorCode,t(3,$=r(k)||r("generalError")),Promise.reject($)):f.json()});_d(()=>()=>{Oe&&Oe.removeEventListener("change",ke),de&&de.removeEventListener("change",Re)});const Ot=()=>Ke(),Xi=f=>ai(f);function Nt(f){Ei[f?"unshift":"push"](()=>{Oe=f,t(0,Oe)})}function Me(f){Ei[f?"unshift":"push"](()=>{de=f,t(1,de)})}const Je=()=>ue(),ci=f=>Ve(f),ui=()=>Dt(xe,"previous"),Ki=()=>Dt(xe,"next"),Ze=f=>mt(f),pi=()=>Tt();function Ji(f){Ei[f?"unshift":"push"](()=>{ce=f,t(2,ce)})}return i.$$set=f=>{"endpoint"in f&&t(28,o=f.endpoint),"playerid"in f&&t(29,n=f.playerid),"session"in f&&t(30,s=f.session),"lang"in f&&t(31,a=f.lang),"clientstyling"in f&&t(32,l=f.clientstyling),"clientstylingurl"in f&&t(33,h=f.clientstylingurl),"translationurl"in f&&t(34,d=f.translationurl),"mbsource"in f&&t(35,c=f.mbsource),"historytypes"in f&&t(36,p=f.historytypes),"pagesizeoptions"in f&&t(37,u=f.pagesizeoptions),"playercurrency"in f&&t(38,g=f.playercurrency),"defaultpagesize"in f&&t(39,x=f.defaultpagesize),"formatamount"in f&&t(40,P=f.formatamount),"customcurrencysymbols"in f&&t(41,A=f.customcurrencysymbols)},i.$$.update=()=>{i.$$.dirty[1]&1&&a&&zu(a),i.$$.dirty[1]&32&&p&&ut(),i.$$.dirty[0]&1879048192&&o&&n&&s&&ue(),i.$$.dirty[1]&1024&&A&&li(),i.$$.dirty[0]&3&&Oe&&de&&pt(),i.$$.dirty[0]&4|i.$$.dirty[1]&2&&l&&ce&&Td(ce,l),i.$$.dirty[0]&4|i.$$.dirty[1]&4&&h&&ce&&Dd(ce,h),i.$$.dirty[0]&4|i.$$.dirty[1]&16&&c&&ce&&Od(ce,`${c}.Style`),i.$$.dirty[1]&8&&d&&qi()},[Oe,de,ce,$,W,ee,E,re,j,xe,ht,dt,ve,Ae,Ne,Ie,N,r,Pe,si,Gi,ai,ue,Tt,mt,Dt,Ve,Ke,o,n,s,a,l,h,d,c,p,u,g,x,P,A,Ot,Xi,Nt,Me,Je,ci,ui,Ki,Ze,pi,Ji]}class id extends Id{constructor(e){super(),Ad(this,e,bv,vv,Ha,{endpoint:28,playerid:29,session:30,lang:31,clientstyling:32,clientstylingurl:33,translationurl:34,mbsource:35,historytypes:36,pagesizeoptions:37,playercurrency:38,defaultpagesize:39,formatamount:40,customcurrencysymbols:41},Zg,[-1,-1,-1,-1])}get endpoint(){return this.$$.ctx[28]}set endpoint(e){this.$$set({endpoint:e}),ae()}get playerid(){return this.$$.ctx[29]}set playerid(e){this.$$set({playerid:e}),ae()}get session(){return this.$$.ctx[30]}set session(e){this.$$set({session:e}),ae()}get lang(){return this.$$.ctx[31]}set lang(e){this.$$set({lang:e}),ae()}get clientstyling(){return this.$$.ctx[32]}set clientstyling(e){this.$$set({clientstyling:e}),ae()}get clientstylingurl(){return this.$$.ctx[33]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),ae()}get translationurl(){return this.$$.ctx[34]}set translationurl(e){this.$$set({translationurl:e}),ae()}get mbsource(){return this.$$.ctx[35]}set mbsource(e){this.$$set({mbsource:e}),ae()}get historytypes(){return this.$$.ctx[36]}set historytypes(e){this.$$set({historytypes:e}),ae()}get pagesizeoptions(){return this.$$.ctx[37]}set pagesizeoptions(e){this.$$set({pagesizeoptions:e}),ae()}get playercurrency(){return this.$$.ctx[38]}set playercurrency(e){this.$$set({playercurrency:e}),ae()}get defaultpagesize(){return this.$$.ctx[39]}set defaultpagesize(e){this.$$set({defaultpagesize:e}),ae()}get formatamount(){return this.$$.ctx[40]}set formatamount(e){this.$$set({formatamount:e}),ae()}get customcurrencysymbols(){return this.$$.ctx[41]}set customcurrencysymbols(e){this.$$set({customcurrencysymbols:e}),ae()}}Pd(id,{endpoint:{},playerid:{},session:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},historytypes:{},pagesizeoptions:{},playercurrency:{},defaultpagesize:{},formatamount:{},customcurrencysymbols:{}},[],[],!0);exports.default=id;
5653
+ `}static get observers(){return["_rendererChanged(renderer, _overlayElement)"]}ready(){super.ready(),io(this)}_rendererChanged(e,t){t&&(t.renderer=e||this.__defaultRenderer,this.requestContentUpdate())}_onOverlayOpen(){this._menuElement&&this._menuElement.focus()}}O(ig);function rg(i){_d(i,"svelte-kqqea6",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.historyContainer{container-type:inline-size}.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 .historyReturnButton{display:none;border:none;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));align-items:center;column-gap:10px;margin-bottom:10px}.historyContainer .historyWrapper .historyHeader .historyReturnButton .historyReturnText{font-size:var(--emw--size-standard, 16px)}.historyContainer .historyWrapper .historyHeader .historyReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.historyContainer .historyWrapper .historyHeader .historyReturnButton.skeleton{width:200px;height: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;justify-content:center;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:15px;padding-bottom:30px;padding:20px 0px}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer{display:flex;gap:20px}.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)}.historyContainer .historyWrapper .historyTable .tableWrapper{width:100%;display:flex;flex-direction:column}.historyContainer .historyWrapper .historyTable .tableHead{display:flex;padding:18px 0;color:var(--emw--button-text-color, #FFFFFF);background:var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyTable .tableHead span{width:100px;flex:1 1 20%;text-align:center}.historyContainer .historyWrapper .historyTable .tableContent{width:100%;max-height:546px;overflow-y:auto}.historyContainer .historyWrapper .historyTable .tableContent .tableRow{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:18px 0;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;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:0px 18px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;text-wrap:nowrap}.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}@container (max-width: 768px){.historyContainer .historyWrapper{padding:20px 15px}.historyContainer .historyWrapper .historyHeader .headerText{display:none}.historyContainer .historyWrapper .historyHeader .historyReturnButton{display:inline-flex}.historyContainer .historyWrapper .historyHeader .headerController{width:100%;align-items:center;justify-content:center}.historyContainer .historyWrapper .historyFilter{flex-direction:column;align-items:center}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer{width:100%}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate{width:inherit}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate .VaadinDatePicker,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate .VaadinDatePicker{width:inherit}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter{width:100%}.historyContainer .historyWrapper .historyTable{overflow:auto}.historyContainer .historyWrapper .historyTable .tableHead{min-width:fit-content}.historyContainer .historyWrapper .historyTable .tableContent{min-width:fit-content;max-height:430px}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown{top:-150px}}@container (max-width: 425px){.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 .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown{top:-150px}}')}function ka(i,e,t){const r=i.slice();return r[84]=e[t],r}function Ta(i,e,t){const r=i.slice();return r[87]=e[t],r[89]=t,r}function Da(i,e,t){const r=i.slice();return r[90]=e[t],r}function Oa(i,e,t){const r=i.slice();return r[93]=e[t],r}function Na(i,e,t){const r=i.slice();return r[90]=e[t],r}function Ba(i,e,t){const r=i.slice();return r[90]=e[t],r}function Ma(i,e,t){const r=i.slice();return r[100]=e[t],r[89]=t,r}function og(i,e,t){const r=i.slice();return r[75]=e[t],r}function sg(i,e,t){const r=i.slice();return r[75]=e[t],r}function ng(i,e,t){const r=i.slice();return r[75]=e[t],r}function ag(i,e,t){const r=i.slice();return r[75]=e[t],r}function lg(i){let e,t,r,o,s,n,a,l,h,d,c,p,u,v=i[17]("headerTitle")+"",x,P,A,z,k=i[17]("headerTitle")+"",V,W,ne,ee,E,re,U,xe,Pt=i[17]("dateFrom")+"",ht,dt,ge,Oe,de,ce,Ae=i[17]("dateTo")+"",It,Ne,Pe,si,Ye,kt=i[17]("dateFilter")+"",Ie,N,qi,ct,Be,Xe,Yi,ut,ni,ue,ke,Ve,pt,Tt,mt,Dt,_t,ai,li,ft,Xi,$e,Ke,hi,Ot,Ki,Nt,Me,Je,di,ci,Ji,Ze,ui,Zi,_,S,I,R,pe=te(i[13]),G=[];for(let b=0;b<pe.length;b+=1)G[b]=za(Ma(i,pe,b));let me=te(i[18][i[7]]),J=[];for(let b=0;b<me.length;b+=1)J[b]=La(Ba(i,me,b));function Qi(b,L){return b[12]?dg:cg}let Bt=Qi(i),we=Bt(i),ze=te(i[20]),Z=[];for(let b=0;b<ze.length;b+=1)Z[b]=$a(ka(i,ze,b));return{c(){e=g("div"),t=g("div"),r=g("div"),o=g("button"),s=_e("svg"),n=_e("defs"),a=_e("style"),l=oe(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),h=_e("g"),d=_e("g"),c=_e("path"),p=M(),u=g("h2"),x=oe(v),P=M(),A=g("div"),z=g("p"),V=oe(k),W=M(),ne=g("div");for(let b=0;b<G.length;b+=1)G[b].c();ee=M(),E=g("div"),re=g("div"),U=g("div"),xe=g("label"),ht=oe(Pt),dt=M(),ge=g("vaadin-date-picker"),Oe=M(),de=g("div"),ce=g("label"),It=oe(Ae),Ne=M(),Pe=g("vaadin-date-picker"),si=M(),Ye=g("button"),Ie=oe(kt),qi=M(),ct=g("table"),Be=g("div"),Xe=g("thead");for(let b=0;b<J.length;b+=1)J[b].c();Yi=M(),ut=g("tbody"),we.c(),ni=M(),ue=g("div"),ke=g("div"),Ve=g("button"),pt=_e("svg"),Tt=_e("path"),Dt=M(),_t=g("div"),ai=g("p"),li=oe(i[9]),Xi=M(),$e=g("button"),Ke=_e("svg"),hi=_e("path"),Ki=M(),Nt=g("div"),Me=g("button"),Je=g("div"),di=g("p"),ci=oe(i[8]),Ji=M(),Ze=_e("svg"),ui=_e("path"),Zi=M(),_=g("div");for(let b=0;b<Z.length;b+=1)Z[b].c();f(c,"class","aaa"),f(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),f(c,"transform","translate(15 15) rotate(180)"),f(d,"transform","translate(20 158)"),f(h,"transform","translate(-20 -158)"),f(s,"xmlns","http://www.w3.org/2000/svg"),f(s,"width","15"),f(s,"height","15"),f(s,"viewBox","0 0 15 15"),f(u,"class","historyReturnText"),f(o,"class","historyReturnButton"),f(A,"class","headerText"),f(ne,"class","headerController"),f(r,"class","historyHeader"),f(xe,"for","historyCalendarStartDate"),Ee(ge,"max",i[4]),Ee(ge,"value",i[5]),Ee(ge,"placeholder","From"),Ee(ge,"class","VaadinDatePicker"),f(U,"class","historyCalendarStartDate"),f(ce,"for","historyCalendarEndDate"),Ee(Pe,"max",i[4]),Ee(Pe,"value",i[6]),Ee(Pe,"placeholder","To"),Ee(Pe,"class","VaadinDatePicker"),f(de,"class","historyCalendarEndDate"),f(re,"class","historyCalendarContainer"),f(Ye,"class",N="historyCalendarFilter "+(i[16].filterButton?"":"disable")),f(E,"class","historyFilter"),f(Xe,"class","tableHead"),f(ut,"class","tableContent"),f(Be,"class","tableWrapper"),f(ct,"class","historyTable"),f(Tt,"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"),f(pt,"viewBox","1 4 17 17"),f(pt,"xmlns","http://www.w3.org/2000/svg"),f(Ve,"class",mt="arrowLeft "+(i[16].previousPage?"":"disable")),f(_t,"class",ft="indexDisplay "+(!i[16].previousPage&&!i[16].nextPage?"disable":"")),f(hi,"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"),f(Ke,"viewBox","6 4 17 17"),f(Ke,"xmlns","http://www.w3.org/2000/svg"),f($e,"class",Ot="arrowRight "+(i[16].nextPage?"":"disable")),f(ke,"class","historyPageIndex"),f(ui,"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"),f(Ze,"xmlns","http://www.w3.org/2000/svg"),f(Ze,"viewBox","6 5 20 20"),f(Ze,"class","icon"),f(Je,"class","currentPageSize"),f(_,"class","pageSizeDropDown"),f(Me,"class",S="pageSizeSelector "+(i[11]?"active":"")+" "+(i[16].pageSize?"":"disable")),f(Nt,"class","historyPageSize"),f(ue,"class","historyPaginationContainer"),f(t,"class","historyWrapper"),f(e,"class","historyContainer")},m(b,L){Y(b,e,L),m(e,t),m(t,r),m(r,o),m(o,s),m(s,n),m(n,a),m(a,l),m(s,h),m(h,d),m(d,c),m(o,p),m(o,u),m(u,x),m(r,P),m(r,A),m(A,z),m(z,V),m(r,W),m(r,ne);for(let C=0;C<G.length;C+=1)G[C]&&G[C].m(ne,null);m(t,ee),m(t,E),m(E,re),m(re,U),m(U,xe),m(xe,ht),m(U,dt),m(U,ge),i[44](ge),m(re,Oe),m(re,de),m(de,ce),m(ce,It),m(de,Ne),m(de,Pe),i[45](Pe),m(E,si),m(E,Ye),m(Ye,Ie),m(t,qi),m(t,ct),m(ct,Be),m(Be,Xe);for(let C=0;C<J.length;C+=1)J[C]&&J[C].m(Xe,null);m(Be,Yi),m(Be,ut),we.m(ut,null),m(t,ni),m(t,ue),m(ue,ke),m(ke,Ve),m(Ve,pt),m(pt,Tt),m(ke,Dt),m(ke,_t),m(_t,ai),m(ai,li),m(ke,Xi),m(ke,$e),m($e,Ke),m(Ke,hi),m(ue,Ki),m(ue,Nt),m(Nt,Me),m(Me,Je),m(Je,di),m(di,ci),m(Je,Ji),m(Je,Ze),m(Ze,ui),m(Me,Zi),m(Me,_);for(let C=0;C<Z.length;C+=1)Z[C]&&Z[C].m(_,null);I||(R=[et(o,"click",i[42]),et(Ye,"click",i[46]),et(Ve,"click",i[48]),et($e,"click",i[49]),et(Me,"click",i[51])],I=!0)},p(b,L){if(L[0]&131072&&v!==(v=b[17]("headerTitle")+"")&&ve(x,v),L[0]&131072&&k!==(k=b[17]("headerTitle")+"")&&ve(V,k),L[0]&2236416){pe=te(b[13]);let C;for(C=0;C<pe.length;C+=1){const Qe=Ma(b,pe,C);G[C]?G[C].p(Qe,L):(G[C]=za(Qe),G[C].c(),G[C].m(ne,null))}for(;C<G.length;C+=1)G[C].d(1);G.length=pe.length}if(L[0]&131072&&Pt!==(Pt=b[17]("dateFrom")+"")&&ve(ht,Pt),L[0]&16&&Ee(ge,"max",b[4]),L[0]&32&&Ee(ge,"value",b[5]),L[0]&131072&&Ae!==(Ae=b[17]("dateTo")+"")&&ve(It,Ae),L[0]&16&&Ee(Pe,"max",b[4]),L[0]&64&&Ee(Pe,"value",b[6]),L[0]&131072&&kt!==(kt=b[17]("dateFilter")+"")&&ve(Ie,kt),L[0]&65536&&N!==(N="historyCalendarFilter "+(b[16].filterButton?"":"disable"))&&f(Ye,"class",N),L[0]&393344){me=te(b[18][b[7]]);let C;for(C=0;C<me.length;C+=1){const Qe=Ba(b,me,C);J[C]?J[C].p(Qe,L):(J[C]=La(Qe),J[C].c(),J[C].m(Xe,null))}for(;C<J.length;C+=1)J[C].d(1);J.length=me.length}if(Bt===(Bt=Qi(b))&&we?we.p(b,L):(we.d(1),we=Bt(b),we&&(we.c(),we.m(ut,null))),L[0]&65536&&mt!==(mt="arrowLeft "+(b[16].previousPage?"":"disable"))&&f(Ve,"class",mt),L[0]&512&&ve(li,b[9]),L[0]&65536&&ft!==(ft="indexDisplay "+(!b[16].previousPage&&!b[16].nextPage?"disable":""))&&f(_t,"class",ft),L[0]&65536&&Ot!==(Ot="arrowRight "+(b[16].nextPage?"":"disable"))&&f($e,"class",Ot),L[0]&256&&ve(ci,b[8]),L[0]&17825792){ze=te(b[20]);let C;for(C=0;C<ze.length;C+=1){const Qe=ka(b,ze,C);Z[C]?Z[C].p(Qe,L):(Z[C]=$a(Qe),Z[C].c(),Z[C].m(_,null))}for(;C<Z.length;C+=1)Z[C].d(1);Z.length=ze.length}L[0]&67584&&S!==(S="pageSizeSelector "+(b[11]?"active":"")+" "+(b[16].pageSize?"":"disable"))&&f(Me,"class",S)},d(b){b&&j(e),De(G,b),i[44](null),i[45](null),De(J,b),we.d(),De(Z,b),I=!1,Qt(R)}}}function hg(i){let e,t,r,o,s,n,a,l,h,d,c,p,u,v,x,P,A,z=te({length:3}),k=[];for(let E=0;E<z.length;E+=1)k[E]=bg(ag(i,z,E));let V=te({length:6}),W=[];for(let E=0;E<V.length;E+=1)W[E]=yg(ng(i,V,E));let ne=te({length:5}),ee=[];for(let E=0;E<ne.length;E+=1)ee[E]=wg(og(i,ne,E));return{c(){e=g("div"),t=g("div"),r=g("div"),o=g("button"),o.innerHTML='<ui-skeleton structure="title" width="auto" height="10px"></ui-skeleton>',s=M(),n=g("div"),n.innerHTML='<ui-skeleton structure="title" width="auto" height="30px"></ui-skeleton>',a=M(),l=g("div");for(let E=0;E<k.length;E+=1)k[E].c();h=M(),d=g("div"),d.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>',c=M(),p=g("table"),u=g("thead");for(let E=0;E<W.length;E+=1)W[E].c();v=M(),x=g("tbody");for(let E=0;E<ee.length;E+=1)ee[E].c();P=M(),A=g("div"),A.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>',f(o,"class","historyReturnButton skeleton"),f(n,"class","headerText skeleton"),f(l,"class","headerController skeleton"),f(r,"class","historyHeader"),f(d,"class","historyFilter skeleton"),f(u,"class","tableHead"),f(x,"class","tableContent"),f(p,"class","historyTable skeleton"),f(A,"class","historyPaginationContainer skeleton"),f(t,"class","historyWrapper"),f(e,"class","historyContainer")},m(E,re){Y(E,e,re),m(e,t),m(t,r),m(r,o),m(r,s),m(r,n),m(r,a),m(r,l);for(let U=0;U<k.length;U+=1)k[U]&&k[U].m(l,null);m(t,h),m(t,d),m(t,c),m(t,p),m(p,u);for(let U=0;U<W.length;U+=1)W[U]&&W[U].m(u,null);m(p,v),m(p,x);for(let U=0;U<ee.length;U+=1)ee[U]&&ee[U].m(x,null);m(t,P),m(t,A)},p:Q,d(E){E&&j(e),De(k,E),De(W,E),De(ee,E)}}}function za(i){let e,t,r,o,s=i[17](i[100].type)+"",n,a,l,h,d;function c(){return i[43](i[89])}return{c(){e=g("button"),t=g("div"),t.innerHTML='<input type="checkbox"/> <span class="circle"></span>',r=M(),o=g("p"),n=oe(s),a=M(),f(t,"class","toggleCheckbox"),f(o,"class","label"),f(e,"class",l="toggleContent "+(i[100].checked?"checked":""))},m(p,u){Y(p,e,u),m(e,t),m(e,r),m(e,o),m(o,n),m(e,a),h||(d=et(e,"click",c),h=!0)},p(p,u){i=p,u[0]&139264&&s!==(s=i[17](i[100].type)+"")&&ve(n,s),u[0]&8192&&l!==(l="toggleContent "+(i[100].checked?"checked":""))&&f(e,"class",l)},d(p){p&&j(e),h=!1,d()}}}function La(i){let e,t=(i[17](i[90])||i[90])+"",r,o;return{c(){e=g("span"),r=oe(t),o=M()},m(s,n){Y(s,e,n),m(e,r),m(e,o)},p(s,n){n[0]&131200&&t!==(t=(s[17](s[90])||s[90])+"")&&ve(r,t)},d(s){s&&j(e)}}}function dg(i){let e,t;return{c(){e=g("div"),t=oe(i[3]),f(e,"class","tableRow")},m(r,o){Y(r,e,o),m(e,t)},p(r,o){o[0]&8&&ve(t,r[3])},d(r){r&&j(e)}}}function cg(i){let e,t=te(i[14][i[7]]),r=[];for(let o=0;o<t.length;o+=1)r[o]=Va(Ta(i,t,o));return{c(){for(let o=0;o<r.length;o+=1)r[o].c();e=gs()},m(o,s){for(let n=0;n<r.length;n+=1)r[n]&&r[n].m(o,s);Y(o,e,s)},p(o,s){if(s[0]&67682432){t=te(o[14][o[7]]);let n;for(n=0;n<t.length;n+=1){const a=Ta(o,t,n);r[n]?r[n].p(a,s):(r[n]=Va(a),r[n].c(),r[n].m(e.parentNode,e))}for(;n<r.length;n+=1)r[n].d(1);r.length=t.length}},d(o){o&&j(e),De(r,o)}}}function ug(i){let e,t=(i[87][i[90]]||"-")+"",r;return{c(){e=g("span"),r=oe(t)},m(o,s){Y(o,e,s),m(e,r)},p(o,s){s[0]&16512&&t!==(t=(o[87][o[90]]||"-")+"")&&ve(r,t)},d(o){o&&j(e)}}}function pg(i){let e,t=(i[87][i[90]].submenu[0]||"-")+"",r;return{c(){e=g("span"),r=oe(t)},m(o,s){Y(o,e,s),m(e,r)},p(o,s){s[0]&16512&&t!==(t=(o[87][o[90]].submenu[0]||"-")+"")&&ve(r,t)},d(o){o&&j(e)}}}function mg(i){let e,t,r,o,s,n,a=i[87][i[90]].label+"",l,h,d,c;function p(){return i[47](i[89])}return{c(){e=g("button"),t=_e("svg"),r=_e("path"),s=M(),n=g("span"),l=oe(a),h=M(),f(r,"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"),f(t,"xmlns","http://www.w3.org/2000/svg"),f(t,"viewBox","6 5 20 20"),f(t,"class",o="iconToggleSubMenu "+(i[15][i[89]]?"active":"")),f(e,"class","toggleSubMenu")},m(u,v){Y(u,e,v),m(e,t),m(t,r),m(e,s),m(e,n),m(n,l),m(e,h),d||(c=et(e,"click",p),d=!0)},p(u,v){i=u,v[0]&32768&&o!==(o="iconToggleSubMenu "+(i[15][i[89]]?"active":""))&&f(t,"class",o),v[0]&16512&&a!==(a=i[87][i[90]].label+"")&&ve(l,a)},d(u){u&&j(e),d=!1,c()}}}function _g(i){let e;return{c(){e=g("span"),e.innerHTML='<svg viewBox="-3 -4 30 30" xmlns="http://www.w3.org/2000/svg"><path 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" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg> ',f(e,"class","decline")},m(t,r){Y(t,e,r)},p:Q,d(t){t&&j(e)}}}function fg(i){let e;return{c(){e=g("span"),e.innerHTML='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" 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" stroke="#000000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9 12.0002L11.333 14.3332L16 9.66724" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg> ',f(e,"class","approved")},m(t,r){Y(t,e,r)},p:Q,d(t){t&&j(e)}}}function Fa(i){let e;function t(s,n){var a,l,h;return s[87][s[90]]===!0?fg:s[87][s[90]]===!1?_g:(a=s[87][s[90]])!=null&&a.label&&((l=s[87][s[90]])==null?void 0:l.submenu.length)>1?mg:(h=s[87][s[90]])!=null&&h.submenu?pg:ug}let r=t(i),o=r(i);return{c(){o.c(),e=gs()},m(s,n){o.m(s,n),Y(s,e,n)},p(s,n){r===(r=t(s))&&o?o.p(s,n):(o.d(1),o=r(s),o&&(o.c(),o.m(e.parentNode,e)))},d(s){s&&j(e),o.d(s)}}}function vg(i){let e;return{c(){e=g("div"),e.innerHTML='<span class="label">-</span> ',f(e,"class","tableData")},m(t,r){Y(t,e,r)},p:Q,d(t){t&&j(e)}}}function gg(i){let e,t,r=te(i[87][i[90]].submenu),o=[];for(let s=0;s<r.length;s+=1)o[s]=Ha(Oa(i,r,s));return{c(){e=g("div");for(let s=0;s<o.length;s+=1)o[s].c();t=M(),f(e,"class","tableData")},m(s,n){Y(s,e,n);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(e,null);m(e,t)},p(s,n){if(n[0]&540800){r=te(s[87][s[90]].submenu);let a;for(a=0;a<r.length;a+=1){const l=Oa(s,r,a);o[a]?o[a].p(l,n):(o[a]=Ha(l),o[a].c(),o[a].m(e,t))}for(;a<o.length;a+=1)o[a].d(1);o.length=r.length}},d(s){s&&j(e),De(o,s)}}}function Ha(i){let e,t=(i[93]||"-")+"",r;return{c(){e=g("span"),r=oe(t),f(e,"class","label")},m(o,s){Y(o,e,s),m(e,r)},p(o,s){s[0]&16512&&t!==(t=(o[93]||"-")+"")&&ve(r,t)},d(o){o&&j(e)}}}function Ra(i){let e;function t(s,n){var a;return(a=s[87][s[90]])!=null&&a.submenu?gg:vg}let r=t(i),o=r(i);return{c(){o.c(),e=gs()},m(s,n){o.m(s,n),Y(s,e,n)},p(s,n){r===(r=t(s))&&o?o.p(s,n):(o.d(1),o=r(s),o&&(o.c(),o.m(e.parentNode,e)))},d(s){s&&j(e),o.d(s)}}}function Va(i){let e,t,r,o,s,n,a=te(i[19][i[7]]),l=[];for(let c=0;c<a.length;c+=1)l[c]=Fa(Na(i,a,c));let h=te(i[19][i[7]]),d=[];for(let c=0;c<h.length;c+=1)d[c]=Ra(Da(i,h,c));return{c(){e=g("div"),t=g("div");for(let c=0;c<l.length;c+=1)l[c].c();r=M(),o=g("div");for(let c=0;c<d.length;c+=1)d[c].c();n=M(),f(t,"class","tableData"),f(o,"class",s="tableSubMenu "+(i[15][i[89]]?"active":"")),f(e,"class","tableRow")},m(c,p){Y(c,e,p),m(e,t);for(let u=0;u<l.length;u+=1)l[u]&&l[u].m(t,null);m(e,r),m(e,o);for(let u=0;u<d.length;u+=1)d[u]&&d[u].m(o,null);m(e,n)},p(c,p){if(p[0]&67682432){a=te(c[19][c[7]]);let u;for(u=0;u<a.length;u+=1){const v=Na(c,a,u);l[u]?l[u].p(v,p):(l[u]=Fa(v),l[u].c(),l[u].m(t,null))}for(;u<l.length;u+=1)l[u].d(1);l.length=a.length}if(p[0]&540800){h=te(c[19][c[7]]);let u;for(u=0;u<h.length;u+=1){const v=Da(c,h,u);d[u]?d[u].p(v,p):(d[u]=Ra(v),d[u].c(),d[u].m(o,null))}for(;u<d.length;u+=1)d[u].d(1);d.length=h.length}p[0]&32768&&s!==(s="tableSubMenu "+(c[15][c[89]]?"active":""))&&f(o,"class",s)},d(c){c&&j(e),De(l,c),De(d,c)}}}function $a(i){let e,t,r,o,s;function n(){return i[50](i[84])}return{c(){e=g("button"),t=g("p"),t.textContent=`${i[84]}`,r=M(),f(e,"class","dropDownRow")},m(a,l){Y(a,e,l),m(e,t),m(e,r),o||(s=et(e,"click",n),o=!0)},p(a,l){i=a},d(a){a&&j(e),o=!1,s()}}}function bg(i){let e;return{c(){e=g("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> ',f(e,"class","toggleContent")},m(t,r){Y(t,e,r)},p:Q,d(t){t&&j(e)}}}function yg(i){let e;return{c(){e=g("div"),e.innerHTML='<ui-skeleton structure="text" width="auto" height="40px"></ui-skeleton> '},m(t,r){Y(t,e,r)},p:Q,d(t){t&&j(e)}}}function xg(i){let e;return{c(){e=g("div"),e.innerHTML='<ui-skeleton structure="text" width="auto" height="40px"></ui-skeleton> '},m(t,r){Y(t,e,r)},p:Q,d(t){t&&j(e)}}}function wg(i){let e,t,r,o=te({length:6}),s=[];for(let n=0;n<o.length;n+=1)s[n]=xg(sg(i,o,n));return{c(){e=g("div"),t=g("div");for(let n=0;n<s.length;n+=1)s[n].c();r=M(),f(t,"class","tableData"),f(e,"class","tableRow")},m(n,a){Y(n,e,a),m(e,t);for(let l=0;l<s.length;l+=1)s[l]&&s[l].m(t,null);m(e,r)},p:Q,d(n){n&&j(e),De(s,n)}}}function Cg(i){let e;function t(s,n){return s[10]?hg:lg}let r=t(i),o=r(i);return{c(){e=g("div"),o.c()},m(s,n){Y(s,e,n),o.m(e,null),i[52](e)},p(s,n){r===(r=t(s))&&o?o.p(s,n):(o.d(1),o=r(s),o&&(o.c(),o.m(e,null)))},i:Q,o:Q,d(s){s&&j(e),o.d(),i[52](null)}}}function Eg(i,e,t){let r;md(i,Hu,_=>t(17,r=_));let{endpoint:o=""}=e,{playerid:s=""}=e,{session:n=""}=e,{lang:a=""}=e,{clientstyling:l=""}=e,{clientstylingurl:h=""}=e,{translationurl:d=""}=e,{mbsource:c}=e,{historytypes:p="Casino, Sports, Payments"}=e,{pagesizeoptions:u="10, 20, 30, 50, 100"}=e,{playercurrency:v=""}=e,{defaultpagesize:x="5"}=e,{formatamount:P="{currency}{amount}.{2decimals}"}=e,{customcurrencysymbols:A}=e,z=window.navigator.userAgent,k="",V="",W,ne,ee="",E="",re="",U=Number(x),xe=1,Pt=Ru(z)!=="PC",ht=!0,dt=!1,ge=!1,Oe,de,ce,Ae=[],It={EUR:"€",RON:" lei",USD:"$"},Ne={payments:[],casino:[],sports:[]},Pe={payments:["Type","Status","Amount","Date","Transaction ID"],casino:["Game Name","Date","Bet Amount","Win Amount","Transaction ID"],sports:["Stake","Price","Selection","Market","Sport","Date","Description","Bet Type","Free Bet","Win Type","Winnings","Bet Adjustment","Bet ID"]},si={payments:["paymentType","paymentState","paymentAmount","paymentCreatedOn","withdrawalId"],casino:["game_type_name","game_finished_on","stake","won","game_id"],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"]},Ye=["stake","won","winnings","bet_Part.price","paymentAmount"],kt=["bet_Part.price"],Ie={},N={filterButton:!0,nextPage:!0,previousPage:!0,pageSize:!0},qi=u.split(", "),ct={},Be=new Date,Xe=new Date(Be);Xe.setMonth(Be.getMonth()-1),W=Be.toISOString().split("T")[0],E=W,ne=Xe.toISOString().split("T")[0],ee=ne;const Yi=()=>{fetch(d).then(S=>S.json()).then(S=>{Object.keys(S).forEach(I=>{kn(I,S[I])})}).catch(S=>{console.log(S)})};Object.keys(Tn).forEach(_=>{kn(_,Tn[_])});const ut=()=>{t(13,Ae=p.split(", ").map((_,S)=>{const I={type:_,checked:S===0};return I.checked&&t(7,re=I.type.toLocaleLowerCase()),I}))},ni=_=>{Ae.forEach((S,I)=>{t(13,Ae[I].checked=_===I,Ae),Ae[I].checked&&t(7,re=S.type.toLocaleLowerCase())}),ue()},ue=()=>{if(!N.filterButton)return;t(10,ht=!0),t(12,ge=!1),t(16,N.filterButton=!1,N),t(16,N.nextPage=!1,N),t(16,N.previousPage=!1,N),t(16,N.pageSize=!1,N);let _=new URL(`${o}/v1/player/${s}/fsb/transactions/${re}`);_.searchParams.append("offset",(xe-1).toString()||"0"),_.searchParams.append("limit",U.toString()||"5"),_.searchParams.append("startDate",ee),_.searchParams.append("endDate",E);let S={method:"GET",headers:{"X-SessionId":n,"Content-Type":"application/json",Accept:"application/json"}};fetch(_.href,S).then(I=>hi(I)).then(I=>{if(I.transactions.length===0)return t(3,V=r("checkPeriod")),Promise.reject(V);I.pagination.next&&t(16,N.nextPage=!0,N),I.pagination.previous&&t(16,N.previousPage=!0,N),t(16,N.pageSize=!0,N),t(14,Ne[re]=[],Ne),t(11,dt=!1),Xi(),_t(I)}).catch(I=>{t(12,ge=!0),t(16,N.nextPage=!1,N),t(16,N.previousPage=!1,N),t(16,N.pageSize=!1,N),window.postMessage({type:"WidgetNotification",data:{type:"error",message:I}},window.location.href)}).finally(()=>{t(10,ht=!1),t(16,N.filterButton=!0,N)})},ke=_=>{t(5,ee=_.target.value)},Ve=_=>{t(6,E=_.target.value)},pt=()=>{Oe.addEventListener("change",ke,!1),de.addEventListener("change",Ve,!1)},Tt=()=>{N.pageSize&&t(11,dt=!dt)},mt=_=>{t(8,U=_),t(9,xe=1),ue()},Dt=(_,S)=>{if(S==="next"){if(!N.nextPage)return;t(9,xe=_+1),ue()}else{if(!N.previousPage)return;t(9,xe=_-1),ue()}},_t=_=>{_.transactions.forEach((S,I)=>{t(14,Ne[re][I]={},Ne),si[re].forEach(R=>{if(P&&v&&Ye.includes(R))if(R.includes(".")){let pe=R.split(".");S[pe[0]].forEach(G=>{G[pe[1]]=ft(G,pe[1])})}else S[R]=ft(S,R);if(new Date(S[R]).getTime()&&typeof S[R]!="number"&&li(S,R),R.includes(".")){let pe=R.split(".")[0],G=R.split(".")[1];S[R]={label:"Multiple",submenu:[]},S[pe].forEach((me,J)=>{me[G]&&S[R].submenu.push(me[G])})}if(R in S)return t(14,Ne[re][I][R]=S[R],Ne)})})},ai=()=>{if(!A)return;let _={};A.split(",").forEach(S=>{let I=S.split(":");_[I[0].trim()]=I[1].trim()}),Object.entries(_).forEach(([S,I])=>It[S]=I)},li=(_,S)=>{let I=new Date(_[S]).toISOString().split("T"),R=`${I[0]} ${I[1].split(".")[0]}`;_[S]=R},ft=(_,S)=>{let I=kt.some(L=>L.includes(S)),R=typeof _[S]=="string"?parseInt(_[S]):_[S],pe=Object.keys(_).find(L=>L.includes("currency")),G=_[pe]||v,me=P;const J=me.match(/\{(\d+)decimals\}/),Qi=J?parseInt(J[1],10):2,Bt=J?new RegExp("\\{\\d+decimals\\}","g"):"{decimals}";R=R.toFixed(Qi);const[we,ze]=P.includes(".")?[",","."]:[".",","];let[Z,b]=R.split(".");return Z=Z.replace(/\B(?=(\d{3})+(?!\d))/g,we),R=`${Z}${ze}${b}`,me=me.replace("{currency}",I?"":It[G]||G).replace("{amount}",R.split(ze)[0]).replace(Bt,R.split(ze)[1]),me},Xi=()=>{Object.keys(Ie).forEach(_=>t(15,Ie[_]=!1,Ie))},$e=_=>t(15,Ie[_]=!Ie[_],Ie),Ke=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:Pt},window.location.href)},hi=_=>oo(this,null,function*(){return _.status>=300?(ct=yield _.json(),k=ct.thirdPartyResponse.errorCode,t(3,V=r(k)||r("generalError")),Promise.reject(V)):_.json()});xd(()=>()=>{Oe&&Oe.removeEventListener("change",ke),de&&de.removeEventListener("change",Ve)});const Ot=()=>Ke(),Ki=_=>ni(_);function Nt(_){Ci[_?"unshift":"push"](()=>{Oe=_,t(0,Oe)})}function Me(_){Ci[_?"unshift":"push"](()=>{de=_,t(1,de)})}const Je=()=>ue(),di=_=>$e(_),ci=()=>Dt(xe,"previous"),Ji=()=>Dt(xe,"next"),Ze=_=>mt(_),ui=()=>Tt();function Zi(_){Ci[_?"unshift":"push"](()=>{ce=_,t(2,ce)})}return i.$$set=_=>{"endpoint"in _&&t(28,o=_.endpoint),"playerid"in _&&t(29,s=_.playerid),"session"in _&&t(30,n=_.session),"lang"in _&&t(31,a=_.lang),"clientstyling"in _&&t(32,l=_.clientstyling),"clientstylingurl"in _&&t(33,h=_.clientstylingurl),"translationurl"in _&&t(34,d=_.translationurl),"mbsource"in _&&t(35,c=_.mbsource),"historytypes"in _&&t(36,p=_.historytypes),"pagesizeoptions"in _&&t(37,u=_.pagesizeoptions),"playercurrency"in _&&t(38,v=_.playercurrency),"defaultpagesize"in _&&t(39,x=_.defaultpagesize),"formatamount"in _&&t(40,P=_.formatamount),"customcurrencysymbols"in _&&t(41,A=_.customcurrencysymbols)},i.$$.update=()=>{i.$$.dirty[1]&1&&a&&Vu(a),i.$$.dirty[1]&32&&p&&ut(),i.$$.dirty[0]&1879048192&&o&&s&&n&&ue(),i.$$.dirty[1]&1024&&A&&ai(),i.$$.dirty[0]&3&&Oe&&de&&pt(),i.$$.dirty[0]&4|i.$$.dirty[1]&2&&l&&ce&&Md(ce,l),i.$$.dirty[0]&4|i.$$.dirty[1]&4&&h&&ce&&zd(ce,h),i.$$.dirty[0]&4|i.$$.dirty[1]&16&&c&&ce&&Ld(ce,`${c}.Style`),i.$$.dirty[1]&8&&d&&Yi()},[Oe,de,ce,V,W,ee,E,re,U,xe,ht,dt,ge,Ae,Ne,Ie,N,r,Pe,si,qi,ni,ue,Tt,mt,Dt,$e,Ke,o,s,n,a,l,h,d,c,p,u,v,x,P,A,Ot,Ki,Nt,Me,Je,di,ci,Ji,Ze,ui,Zi]}class ad extends Nd{constructor(e){super(),Dd(this,e,Eg,Cg,Ua,{endpoint:28,playerid:29,session:30,lang:31,clientstyling:32,clientstylingurl:33,translationurl:34,mbsource:35,historytypes:36,pagesizeoptions:37,playercurrency:38,defaultpagesize:39,formatamount:40,customcurrencysymbols:41},rg,[-1,-1,-1,-1])}get endpoint(){return this.$$.ctx[28]}set endpoint(e){this.$$set({endpoint:e}),ae()}get playerid(){return this.$$.ctx[29]}set playerid(e){this.$$set({playerid:e}),ae()}get session(){return this.$$.ctx[30]}set session(e){this.$$set({session:e}),ae()}get lang(){return this.$$.ctx[31]}set lang(e){this.$$set({lang:e}),ae()}get clientstyling(){return this.$$.ctx[32]}set clientstyling(e){this.$$set({clientstyling:e}),ae()}get clientstylingurl(){return this.$$.ctx[33]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),ae()}get translationurl(){return this.$$.ctx[34]}set translationurl(e){this.$$set({translationurl:e}),ae()}get mbsource(){return this.$$.ctx[35]}set mbsource(e){this.$$set({mbsource:e}),ae()}get historytypes(){return this.$$.ctx[36]}set historytypes(e){this.$$set({historytypes:e}),ae()}get pagesizeoptions(){return this.$$.ctx[37]}set pagesizeoptions(e){this.$$set({pagesizeoptions:e}),ae()}get playercurrency(){return this.$$.ctx[38]}set playercurrency(e){this.$$set({playercurrency:e}),ae()}get defaultpagesize(){return this.$$.ctx[39]}set defaultpagesize(e){this.$$set({defaultpagesize:e}),ae()}get formatamount(){return this.$$.ctx[40]}set formatamount(e){this.$$set({formatamount:e}),ae()}get customcurrencysymbols(){return this.$$.ctx[41]}set customcurrencysymbols(e){this.$$set({customcurrencysymbols:e}),ae()}}Od(ad,{endpoint:{},playerid:{},session:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},historytypes:{},pagesizeoptions:{},playercurrency:{},defaultpagesize:{},formatamount:{},customcurrencysymbols:{}},[],[],!0);exports.default=ad;