@everymatrix/player-account-transactions-history 1.86.1 → 1.86.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";var Fd=Object.defineProperty,$d=Object.defineProperties;var Vd=Object.getOwnPropertyDescriptors;var cs=Object.getOwnPropertySymbols;var Wd=Object.prototype.hasOwnProperty,jd=Object.prototype.propertyIsEnumerable;var co=(r,e,t)=>e in r?Fd(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,oi=(r,e)=>{for(var t in e||(e={}))Wd.call(e,t)&&co(r,t,e[t]);if(cs)for(var t of cs(e))jd.call(e,t)&&co(r,t,e[t]);return r},ni=(r,e)=>$d(r,Vd(e));var qe=(r,e,t)=>(co(r,typeof e!="symbol"?e+"":e,t),t);var si=(r,e,t)=>new Promise((i,o)=>{var n=l=>{try{a(t.next(l))}catch(h){o(h)}},s=l=>{try{a(t.throw(l))}catch(h){o(h)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(n,s);a((t=t.apply(r,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../stencil/ui-skeleton-BreIU6e5.cjs");function De(){}function tl(r){return r()}function us(){return Object.create(null)}function sr(r){r.forEach(tl)}function En(r){return typeof r=="function"}function rl(r,e){return r!=r?e==e:r!==e||r&&typeof r=="object"||typeof r=="function"}function Ud(r){return Object.keys(r).length===0}function il(r,...e){if(r==null){for(const i of e)i(void 0);return De}const t=r.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Gd(r,e,t){r.$$.on_destroy.push(il(e,t))}function f(r,e){r.appendChild(e)}function qd(r,e,t){const i=Yd(r);if(!i.getElementById(e)){const o=E("style");o.id=e,o.textContent=t,Xd(i,o)}}function Yd(r){if(!r)return document;const e=r.getRootNode?r.getRootNode():r.ownerDocument;return e&&e.host?e:r.ownerDocument}function Xd(r,e){return f(r.head||r,e),e.sheet}function ie(r,e,t){r.insertBefore(e,t||null)}function re(r){r.parentNode&&r.parentNode.removeChild(r)}function He(r,e){for(let t=0;t<r.length;t+=1)r[t]&&r[t].d(e)}function E(r){return document.createElement(r)}function xe(r){return document.createElementNS("http://www.w3.org/2000/svg",r)}function ge(r){return document.createTextNode(r)}function U(){return ge(" ")}function $i(){return ge("")}function gt(r,e,t,i){return r.addEventListener(e,t,i),()=>r.removeEventListener(e,t,i)}function p(r,e,t){t==null?r.removeAttribute(e):r.getAttribute(e)!==t&&r.setAttribute(e,t)}function Ye(r,e,t){const i=e.toLowerCase();i in r?r[i]=typeof r[i]=="boolean"&&t===""?!0:t:e in r?r[e]=typeof r[e]=="boolean"&&t===""?!0:t:p(r,e,t)}function Kd(r){return Array.from(r.childNodes)}function Ie(r,e){e=""+e,r.data!==e&&(r.data=e)}function Zd(r){const e={};return r.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}let Tr;function Ar(r){Tr=r}function Jd(){if(!Tr)throw new Error("Function called outside component initialization");return Tr}function Qd(r){Jd().$$.on_mount.push(r)}const jt=[],It=[];let Gt=[];const ps=[],ol=Promise.resolve();let zo=!1;function nl(){zo||(zo=!0,ol.then(ye))}function ec(){return nl(),ol}function Bo(r){Gt.push(r)}const uo=new Set;let $t=0;function ye(){if($t!==0)return;const r=Tr;do{try{for(;$t<jt.length;){const e=jt[$t];$t++,Ar(e),tc(e.$$)}}catch(e){throw jt.length=0,$t=0,e}for(Ar(null),jt.length=0,$t=0;It.length;)It.pop()();for(let e=0;e<Gt.length;e+=1){const t=Gt[e];uo.has(t)||(uo.add(t),t())}Gt.length=0}while(jt.length);for(;ps.length;)ps.pop()();zo=!1,uo.clear(),Ar(r)}function tc(r){if(r.fragment!==null){r.update(),sr(r.before_update);const e=r.dirty;r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,e),r.after_update.forEach(Bo)}}function rc(r){const e=[],t=[];Gt.forEach(i=>r.indexOf(i)===-1?e.push(i):t.push(i)),t.forEach(i=>i()),Gt=e}const ic=new Set;function oc(r,e){r&&r.i&&(ic.delete(r),r.i(e))}function me(r){return(r==null?void 0:r.length)!==void 0?r:Array.from(r)}function nc(r,e,t){const{fragment:i,after_update:o}=r.$$;i&&i.m(e,t),Bo(()=>{const n=r.$$.on_mount.map(tl).filter(En);r.$$.on_destroy?r.$$.on_destroy.push(...n):sr(n),r.$$.on_mount=[]}),o.forEach(Bo)}function sc(r,e){const t=r.$$;t.fragment!==null&&(rc(t.after_update),sr(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function ac(r,e){r.$$.dirty[0]===-1&&(jt.push(r),nl(),r.$$.dirty.fill(0)),r.$$.dirty[e/31|0]|=1<<e%31}function lc(r,e,t,i,o,n,s=null,a=[-1]){const l=Tr;Ar(r);const h=r.$$={fragment:null,ctx:[],props:n,update:De,not_equal:o,bound:us(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:us(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(h.root);let d=!1;if(h.ctx=t?t(r,e.props||{},(c,u,...m)=>{const g=m.length?m[0]:u;return h.ctx&&o(h.ctx[c],h.ctx[c]=g)&&(!h.skip_bound&&h.bound[c]&&h.bound[c](g),d&&ac(r,c)),u}):[],h.update(),d=!0,sr(h.before_update),h.fragment=i?i(h.ctx):!1,e.target){if(e.hydrate){const c=Kd(e.target);h.fragment&&h.fragment.l(c),c.forEach(re)}else h.fragment&&h.fragment.c();e.intro&&oc(r.$$.fragment),nc(r,e.target,e.anchor),ye()}Ar(l)}let sl;typeof HTMLElement=="function"&&(sl=class extends HTMLElement{constructor(e,t,i){super();qe(this,"$$ctor");qe(this,"$$s");qe(this,"$$c");qe(this,"$$cn",!1);qe(this,"$$d",{});qe(this,"$$r",!1);qe(this,"$$p_d",{});qe(this,"$$l",{});qe(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,i&&this.attachShadow({mode:"open"})}addEventListener(e,t,i){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,i)}removeEventListener(e,t,i){if(super.removeEventListener(e,t,i),this.$$c){const o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}connectedCallback(){return si(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(n){return()=>{let s;return{c:function(){s=E("slot"),n!=="default"&&p(s,"name",n)},m:function(h,d){ie(h,s,d)},d:function(h){h&&re(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const t={},i=Zd(this);for(const n of this.$$s)n in i&&(t[n]=[e(n)]);for(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=gi(s,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:ni(oi({},this.$$d),{$$slots:t,$$scope:{ctx:[]}})});const o=()=>{this.$$r=!0;for(const n in this.$$p_d)if(this.$$d[n]=this.$$c.$$.ctx[this.$$c.$$.props[n]],this.$$p_d[n].reflect){const s=gi(n,this.$$d[n],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,s)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(const n in this.$$l)for(const s of this.$$l[n]){const a=this.$$c.$on(n,s);this.$$l_u.set(s,a)}this.$$l={}}})}attributeChangedCallback(e,t,i){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=gi(e,i,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function gi(r,e,t,i){var n;const o=(n=t[r])==null?void 0:n.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!i||!t[r])return e;if(i==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function hc(r,e,t,i,o,n){let s=class extends sl{constructor(){super(r,t,o),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(a=>(e[a].attribute||a).toLowerCase())}};return Object.keys(e).forEach(a=>{Object.defineProperty(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var h;l=gi(a,l,e),this.$$d[a]=l,(h=this.$$c)==null||h.$set({[a]:l})}})}),i.forEach(a=>{Object.defineProperty(s.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),r.element=s,s}class dc{constructor(){qe(this,"$$");qe(this,"$$set")}$destroy(){sc(this,1),this.$destroy=De}$on(e,t){if(!En(t))return De;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(t),()=>{const o=i.indexOf(t);o!==-1&&i.splice(o,1)}}$set(e){this.$$set&&!Ud(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const cc="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(cc);function uc(r,e){if(r){const t=document.createElement("style");t.innerHTML=e,r.appendChild(t)}}function pc(r,e){if(!r||!e)return;const t=new URL(e);fetch(t.href).then(i=>i.text()).then(i=>{const o=document.createElement("style");o.innerHTML=i,r&&r.appendChild(o)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function mc(r,e,t){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(e,o=>{i.innerHTML=o,r&&r.appendChild(i)})}}/*! *****************************************************************************
1
+ "use strict";var Rd=Object.defineProperty,Fd=Object.defineProperties;var Vd=Object.getOwnPropertyDescriptors;var ds=Object.getOwnPropertySymbols;var $d=Object.prototype.hasOwnProperty,Wd=Object.prototype.propertyIsEnumerable;var ao=(i,e,t)=>e in i?Rd(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,rr=(i,e)=>{for(var t in e||(e={}))$d.call(e,t)&&ao(i,t,e[t]);if(ds)for(var t of ds(e))Wd.call(e,t)&&ao(i,t,e[t]);return i},or=(i,e)=>Fd(i,Vd(e));var qe=(i,e,t)=>(ao(i,typeof e!="symbol"?e+"":e,t),t);var nr=(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-C7KTfaPd.cjs");function De(){}function el(i){return i()}function cs(){return Object.create(null)}function ai(i){i.forEach(el)}function bn(i){return typeof i=="function"}function tl(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}function jd(i){return Object.keys(i).length===0}function il(i,...e){if(i==null){for(const r of e)r(void 0);return De}const t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Ud(i,e,t){i.$$.on_destroy.push(il(e,t))}function _(i,e){i.appendChild(e)}function Gd(i,e,t){const r=qd(i);if(!r.getElementById(e)){const o=E("style");o.id=e,o.textContent=t,Yd(r,o)}}function qd(i){if(!i)return document;const e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function Yd(i,e){return _(i.head||i,e),e.sheet}function oe(i,e,t){i.insertBefore(e,t||null)}function re(i){i.parentNode&&i.parentNode.removeChild(i)}function He(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function E(i){return document.createElement(i)}function xe(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function ge(i){return document.createTextNode(i)}function U(){return ge(" ")}function Rr(){return ge("")}function gt(i,e,t,r){return i.addEventListener(e,t,r),()=>i.removeEventListener(e,t,r)}function p(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function Ye(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:p(i,e,t)}function Xd(i){return Array.from(i.childNodes)}function Ie(i,e){e=""+e,i.data!==e&&(i.data=e)}function Kd(i){const e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}let Ii;function Pi(i){Ii=i}function Zd(){if(!Ii)throw new Error("Function called outside component initialization");return Ii}function Jd(i){Zd().$$.on_mount.push(i)}const jt=[],It=[];let Gt=[];const us=[],rl=Promise.resolve();let Oo=!1;function ol(){Oo||(Oo=!0,rl.then(ye))}function Qd(){return ol(),rl}function Mo(i){Gt.push(i)}const lo=new Set;let Vt=0;function ye(){if(Vt!==0)return;const i=Ii;do{try{for(;Vt<jt.length;){const e=jt[Vt];Vt++,Pi(e),ec(e.$$)}}catch(e){throw jt.length=0,Vt=0,e}for(Pi(null),jt.length=0,Vt=0;It.length;)It.pop()();for(let e=0;e<Gt.length;e+=1){const t=Gt[e];lo.has(t)||(lo.add(t),t())}Gt.length=0}while(jt.length);for(;us.length;)us.pop()();Oo=!1,lo.clear(),Pi(i)}function ec(i){if(i.fragment!==null){i.update(),ai(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Mo)}}function tc(i){const e=[],t=[];Gt.forEach(r=>i.indexOf(r)===-1?e.push(r):t.push(r)),t.forEach(r=>r()),Gt=e}const ic=new Set;function rc(i,e){i&&i.i&&(ic.delete(i),i.i(e))}function _e(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function oc(i,e,t){const{fragment:r,after_update:o}=i.$$;r&&r.m(e,t),Mo(()=>{const n=i.$$.on_mount.map(el).filter(bn);i.$$.on_destroy?i.$$.on_destroy.push(...n):ai(n),i.$$.on_mount=[]}),o.forEach(Mo)}function nc(i,e){const t=i.$$;t.fragment!==null&&(tc(t.after_update),ai(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function sc(i,e){i.$$.dirty[0]===-1&&(jt.push(i),ol(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function ac(i,e,t,r,o,n,s=null,a=[-1]){const l=Ii;Pi(i);const h=i.$$={fragment:null,ctx:[],props:n,update:De,not_equal:o,bound:cs(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:cs(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(h.root);let d=!1;if(h.ctx=t?t(i,e.props||{},(c,u,...m)=>{const g=m.length?m[0]:u;return h.ctx&&o(h.ctx[c],h.ctx[c]=g)&&(!h.skip_bound&&h.bound[c]&&h.bound[c](g),d&&sc(i,c)),u}):[],h.update(),d=!0,ai(h.before_update),h.fragment=r?r(h.ctx):!1,e.target){if(e.hydrate){const c=Xd(e.target);h.fragment&&h.fragment.l(c),c.forEach(re)}else h.fragment&&h.fragment.c();e.intro&&rc(i.$$.fragment),oc(i,e.target,e.anchor),ye()}Pi(l)}let nl;typeof HTMLElement=="function"&&(nl=class extends HTMLElement{constructor(e,t,r){super();qe(this,"$$ctor");qe(this,"$$s");qe(this,"$$c");qe(this,"$$cn",!1);qe(this,"$$d",{});qe(this,"$$r",!1);qe(this,"$$p_d",{});qe(this,"$$l",{});qe(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,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 nr(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(n){return()=>{let s;return{c:function(){s=E("slot"),n!=="default"&&p(s,"name",n)},m:function(h,d){oe(h,s,d)},d:function(h){h&&re(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Kd(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]=vr(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:or(rr({},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=vr(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]=vr(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 vr(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 lc(i,e,t,r,o,n){let s=class extends nl{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=vr(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 hc{constructor(){qe(this,"$$");qe(this,"$$set")}$destroy(){nc(this,1),this.$destroy=De}$on(e,t){if(!bn(t))return De;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&&!jd(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const dc="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(dc);function cc(i,e){if(i){const t=document.createElement("style");t.innerHTML=e,i.appendChild(t)}}function uc(i,e){if(!i||!e)return;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 pc(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 Lo=function(r,e){return Lo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])},Lo(r,e)};function jr(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Lo(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function Ho(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],i=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ro(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var i=t.call(r),o,n=[],s;try{for(;(e===void 0||e-- >0)&&!(o=i.next()).done;)n.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(s)throw s.error}}return n}function Fo(r,e,t){if(arguments.length===2)for(var i=0,o=e.length,n;i<o;i++)(n||!(i in e))&&(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return r.concat(n||e)}function at(r){return typeof r=="function"}function al(r){var e=function(i){Error.call(i),i.stack=new Error().stack},t=r(e);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var po=al(function(r){return function(t){r(this),this.message=t?t.length+` errors occurred during unsubscription:
15
- `+t.map(function(i,o){return o+1+") "+i.toString()}).join(`
16
- `):"",this.name="UnsubscriptionError",this.errors=t}});function $o(r,e){if(r){var t=r.indexOf(e);0<=t&&r.splice(t,1)}}var Vi=function(){function r(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return r.prototype.unsubscribe=function(){var e,t,i,o,n;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=Ho(s),l=a.next();!l.done;l=a.next()){var h=l.value;h.remove(this)}}catch(_){e={error:_}}finally{try{l&&!l.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else s.remove(this);var d=this.initialTeardown;if(at(d))try{d()}catch(_){n=_ instanceof po?_.errors:[_]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var u=Ho(c),m=u.next();!m.done;m=u.next()){var g=m.value;try{ms(g)}catch(_){n=n!=null?n:[],_ instanceof po?n=Fo(Fo([],Ro(n)),Ro(_.errors)):n.push(_)}}}catch(_){i={error:_}}finally{try{m&&!m.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}}if(n)throw new po(n)}},r.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)ms(e);else{if(e instanceof r){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}},r.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},r.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},r.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&$o(t,e)},r.prototype.remove=function(e){var t=this._finalizers;t&&$o(t,e),e instanceof r&&e._removeParent(this)},r.EMPTY=function(){var e=new r;return e.closed=!0,e}(),r}(),ll=Vi.EMPTY;function hl(r){return r instanceof Vi||r&&"closed"in r&&at(r.remove)&&at(r.add)&&at(r.unsubscribe)}function ms(r){at(r)?r():r.unsubscribe()}var fc={Promise:void 0},_c={setTimeout:function(r,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return setTimeout.apply(void 0,Fo([r,e],Ro(t)))},clearTimeout:function(r){return clearTimeout(r)},delegate:void 0};function vc(r){_c.setTimeout(function(){throw r})}function fs(){}function bi(r){r()}var dl=function(r){jr(e,r);function e(t){var i=r.call(this)||this;return i.isStopped=!1,t?(i.destination=t,hl(t)&&t.add(i)):i.destination=yc,i}return e.create=function(t,i,o){return new Vo(t,i,o)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(Vi),gc=function(){function r(e){this.partialObserver=e}return r.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(i){ai(i)}},r.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(i){ai(i)}else ai(e)},r.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){ai(t)}},r}(),Vo=function(r){jr(e,r);function e(t,i,o){var n=r.call(this)||this,s;return at(t)||!t?s={next:t!=null?t:void 0,error:i!=null?i:void 0,complete:o!=null?o:void 0}:s=t,n.destination=new gc(s),n}return e}(dl);function ai(r){vc(r)}function bc(r){throw r}var yc={closed:!0,next:fs,error:bc,complete:fs},xc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function wc(r){return r}function Cc(r){return r.length===0?wc:r.length===1?r[0]:function(t){return r.reduce(function(i,o){return o(i)},t)}}var _s=function(){function r(e){e&&(this._subscribe=e)}return r.prototype.lift=function(e){var t=new r;return t.source=this,t.operator=e,t},r.prototype.subscribe=function(e,t,i){var o=this,n=Sc(e)?e:new Vo(e,t,i);return bi(function(){var s=o,a=s.operator,l=s.source;n.add(a?a.call(n,l):l?o._subscribe(n):o._trySubscribe(n))}),n},r.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},r.prototype.forEach=function(e,t){var i=this;return t=vs(t),new t(function(o,n){var s=new Vo({next:function(a){try{e(a)}catch(l){n(l),s.unsubscribe()}},error:n,complete:o});i.subscribe(s)})},r.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},r.prototype[xc]=function(){return this},r.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Cc(e)(this)},r.prototype.toPromise=function(e){var t=this;return e=vs(e),new e(function(i,o){var n;t.subscribe(function(s){return n=s},function(s){return o(s)},function(){return i(n)})})},r.create=function(e){return new r(e)},r}();function vs(r){var e;return(e=r!=null?r:fc.Promise)!==null&&e!==void 0?e:Promise}function Ec(r){return r&&at(r.next)&&at(r.error)&&at(r.complete)}function Sc(r){return r&&r instanceof dl||Ec(r)&&hl(r)}var Ac=al(function(r){return function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),cl=function(r){jr(e,r);function e(){var t=r.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return e.prototype.lift=function(t){var i=new gs(this,this);return i.operator=t,i},e.prototype._throwIfClosed=function(){if(this.closed)throw new Ac},e.prototype.next=function(t){var i=this;bi(function(){var o,n;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var s=Ho(i.currentObservers),a=s.next();!a.done;a=s.next()){var l=a.value;l.next(t)}}catch(h){o={error:h}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}}})},e.prototype.error=function(t){var i=this;bi(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=t;for(var o=i.observers;o.length;)o.shift().error(t)}})},e.prototype.complete=function(){var t=this;bi(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var i=t.observers;i.length;)i.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(t){return this._throwIfClosed(),r.prototype._trySubscribe.call(this,t)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var i=this,o=this,n=o.hasError,s=o.isStopped,a=o.observers;return n||s?ll:(this.currentObservers=null,a.push(t),new Vi(function(){i.currentObservers=null,$o(a,t)}))},e.prototype._checkFinalizedStatuses=function(t){var i=this,o=i.hasError,n=i.thrownError,s=i.isStopped;o?t.error(n):s&&t.complete()},e.prototype.asObservable=function(){var t=new _s;return t.source=this,t},e.create=function(t,i){return new gs(t,i)},e}(_s),gs=function(r){jr(e,r);function e(t,i){var o=r.call(this)||this;return o.destination=t,o.source=i,o}return e.prototype.next=function(t){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.next)===null||o===void 0||o.call(i,t)},e.prototype.error=function(t){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.error)===null||o===void 0||o.call(i,t)},e.prototype.complete=function(){var t,i;(i=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||i===void 0||i.call(t)},e.prototype._subscribe=function(t){var i,o;return(o=(i=this.source)===null||i===void 0?void 0:i.subscribe(t))!==null&&o!==void 0?o:ll},e}(cl),ul={now:function(){return(ul.delegate||Date).now()},delegate:void 0},Pc=function(r){jr(e,r);function e(t,i,o){t===void 0&&(t=1/0),i===void 0&&(i=1/0),o===void 0&&(o=ul);var n=r.call(this)||this;return n._bufferSize=t,n._windowTime=i,n._timestampProvider=o,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=i===1/0,n._bufferSize=Math.max(1,t),n._windowTime=Math.max(1,i),n}return e.prototype.next=function(t){var i=this,o=i.isStopped,n=i._buffer,s=i._infiniteTimeWindow,a=i._timestampProvider,l=i._windowTime;o||(n.push(t),!s&&n.push(a.now()+l)),this._trimBuffer(),r.prototype.next.call(this,t)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(t),o=this,n=o._infiniteTimeWindow,s=o._buffer,a=s.slice(),l=0;l<a.length&&!t.closed;l+=n?1:2)t.next(a[l]);return this._checkFinalizedStatuses(t),i},e.prototype._trimBuffer=function(){var t=this,i=t._bufferSize,o=t._timestampProvider,n=t._buffer,s=t._infiniteTimeWindow,a=(s?1:2)*i;if(i<1/0&&a<n.length&&n.splice(0,n.length-a),!s){for(var l=o.now(),h=0,d=1;d<n.length&&n[d]<=l;d+=2)h=d;h&&n.splice(0,h+1)}},e}(cl);const bs=[],ys={},kc=(r,e=0)=>{if(bs.indexOf(r)==-1){const t=new Pc(e);ys[r]=t,bs.push(r)}return ys[r]},Vt=[];function Tc(r,e){return{subscribe:Wi(r,e).subscribe}}function Wi(r,e=De){let t;const i=new Set;function o(a){if(rl(r,a)&&(r=a,t)){const l=!Vt.length;for(const h of i)h[1](),Vt.push(h,r);if(l){for(let h=0;h<Vt.length;h+=2)Vt[h][0](Vt[h+1]);Vt.length=0}}}function n(a){o(a(r))}function s(a,l=De){const h=[a,l];return i.add(h),i.size===1&&(t=e(o,n)||De),a(r),()=>{i.delete(h),i.size===0&&t&&(t(),t=null)}}return{set:o,update:n,subscribe:s}}function ar(r,e,t){const i=!Array.isArray(r),o=i?[r]:r;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const n=e.length<2;return Tc(t,(s,a)=>{let l=!1;const h=[];let d=0,c=De;const u=()=>{if(d)return;c();const g=e(i?h[0]:h,s,a);n?s(g):c=En(g)?g:De},m=o.map((g,_)=>il(g,y=>{h[_]=y,d&=~(1<<_),l&&u()},()=>{d|=1<<_}));return l=!0,u(),function(){sr(m),c(),l=!1}})}var pl=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Sn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Ic=function(e){return Dc(e)&&!Oc(e)};function Dc(r){return!!r&&typeof r=="object"}function Oc(r){var e=Object.prototype.toString.call(r);return e==="[object RegExp]"||e==="[object Date]"||zc(r)}var Mc=typeof Symbol=="function"&&Symbol.for,Nc=Mc?Symbol.for("react.element"):60103;function zc(r){return r.$$typeof===Nc}function Bc(r){return Array.isArray(r)?[]:{}}function Ir(r,e){return e.clone!==!1&&e.isMergeableObject(r)?Jt(Bc(r),r,e):r}function Lc(r,e,t){return r.concat(e).map(function(i){return Ir(i,t)})}function Hc(r,e){if(!e.customMerge)return Jt;var t=e.customMerge(r);return typeof t=="function"?t:Jt}function Rc(r){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(r).filter(function(e){return Object.propertyIsEnumerable.call(r,e)}):[]}function xs(r){return Object.keys(r).concat(Rc(r))}function ml(r,e){try{return e in r}catch(t){return!1}}function Fc(r,e){return ml(r,e)&&!(Object.hasOwnProperty.call(r,e)&&Object.propertyIsEnumerable.call(r,e))}function $c(r,e,t){var i={};return t.isMergeableObject(r)&&xs(r).forEach(function(o){i[o]=Ir(r[o],t)}),xs(e).forEach(function(o){Fc(r,o)||(ml(r,o)&&t.isMergeableObject(e[o])?i[o]=Hc(o,t)(r[o],e[o],t):i[o]=Ir(e[o],t))}),i}function Jt(r,e,t){t=t||{},t.arrayMerge=t.arrayMerge||Lc,t.isMergeableObject=t.isMergeableObject||Ic,t.cloneUnlessOtherwiseSpecified=Ir;var i=Array.isArray(e),o=Array.isArray(r),n=i===o;return n?i?t.arrayMerge(r,e,t):$c(r,e,t):Ir(e,t)}Jt.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(i,o){return Jt(i,o,t)},{})};var Vc=Jt,Wc=Vc;const jc=Sn(Wc);var Wo=function(r,e){return Wo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])},Wo(r,e)};function ji(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Wo(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Qe=function(){return Qe=Object.assign||function(e){for(var t,i=1,o=arguments.length;i<o;i++){t=arguments[i];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Qe.apply(this,arguments)};function Uc(r,e){var t={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&e.indexOf(i)<0&&(t[i]=r[i]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(r);o<i.length;o++)e.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(r,i[o])&&(t[i[o]]=r[i[o]]);return t}function mo(r,e,t){if(t||arguments.length===2)for(var i=0,o=e.length,n;i<o;i++)(n||!(i in e))&&(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return r.concat(n||Array.prototype.slice.call(e))}function fo(r,e){var t=e&&e.cache?e.cache:Jc,i=e&&e.serializer?e.serializer:Kc,o=e&&e.strategy?e.strategy:Yc;return o(r,{cache:t,serializer:i})}function Gc(r){return r==null||typeof r=="number"||typeof r=="boolean"}function qc(r,e,t,i){var o=Gc(i)?i:t(i),n=e.get(o);return typeof n=="undefined"&&(n=r.call(this,i),e.set(o,n)),n}function fl(r,e,t){var i=Array.prototype.slice.call(arguments,3),o=t(i),n=e.get(o);return typeof n=="undefined"&&(n=r.apply(this,i),e.set(o,n)),n}function _l(r,e,t,i,o){return t.bind(e,r,i,o)}function Yc(r,e){var t=r.length===1?qc:fl;return _l(r,this,t,e.cache.create(),e.serializer)}function Xc(r,e){return _l(r,this,fl,e.cache.create(),e.serializer)}var Kc=function(){return JSON.stringify(arguments)},Zc=function(){function r(){this.cache=Object.create(null)}return r.prototype.get=function(e){return this.cache[e]},r.prototype.set=function(e,t){this.cache[e]=t},r}(),Jc={create:function(){return new Zc}},_o={variadic:Xc},Si=function(){return Si=Object.assign||function(e){for(var t,i=1,o=arguments.length;i<o;i++){t=arguments[i];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Si.apply(this,arguments)};var X;(function(r){r[r.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",r[r.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",r[r.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",r[r.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",r[r.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",r[r.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",r[r.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",r[r.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",r[r.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",r[r.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",r[r.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",r[r.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",r[r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",r[r.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",r[r.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",r[r.INVALID_TAG=23]="INVALID_TAG",r[r.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",r[r.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",r[r.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(X||(X={}));var pe;(function(r){r[r.literal=0]="literal",r[r.argument=1]="argument",r[r.number=2]="number",r[r.date=3]="date",r[r.time=4]="time",r[r.select=5]="select",r[r.plural=6]="plural",r[r.pound=7]="pound",r[r.tag=8]="tag"})(pe||(pe={}));var Qt;(function(r){r[r.number=0]="number",r[r.dateTime=1]="dateTime"})(Qt||(Qt={}));function ws(r){return r.type===pe.literal}function Qc(r){return r.type===pe.argument}function vl(r){return r.type===pe.number}function gl(r){return r.type===pe.date}function bl(r){return r.type===pe.time}function yl(r){return r.type===pe.select}function xl(r){return r.type===pe.plural}function eu(r){return r.type===pe.pound}function wl(r){return r.type===pe.tag}function Cl(r){return!!(r&&typeof r=="object"&&r.type===Qt.number)}function jo(r){return!!(r&&typeof r=="object"&&r.type===Qt.dateTime)}var El=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,tu=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function ru(r){var e={};return r.replace(tu,function(t){var i=t.length;switch(t[0]){case"G":e.era=i===4?"long":i===5?"narrow":"short";break;case"y":e.year=i===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=i===4?"long":i===5?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][i-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][i-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][i-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][i-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":e.minute=["numeric","2-digit"][i-1];break;case"s":e.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=i<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),e}var _e=function(){return _e=Object.assign||function(e){for(var t,i=1,o=arguments.length;i<o;i++){t=arguments[i];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},_e.apply(this,arguments)};var iu=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function ou(r){if(r.length===0)throw new Error("Number skeleton cannot be empty");for(var e=r.split(iu).filter(function(u){return u.length>0}),t=[],i=0,o=e;i<o.length;i++){var n=o[i],s=n.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],l=s.slice(1),h=0,d=l;h<d.length;h++){var c=d[h];if(c.length===0)throw new Error("Invalid number skeleton")}t.push({stem:a,options:l})}return t}function nu(r){return r.replace(/^(.*?)-/,"")}var Cs=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Sl=/^(@+)?(\+|#+)?[rs]?$/g,su=/(\*)(0+)|(#+)(0+)|(0+)/g,Al=/^(0+)$/;function Es(r){var e={};return r[r.length-1]==="r"?e.roundingPriority="morePrecision":r[r.length-1]==="s"&&(e.roundingPriority="lessPrecision"),r.replace(Sl,function(t,i,o){return typeof o!="string"?(e.minimumSignificantDigits=i.length,e.maximumSignificantDigits=i.length):o==="+"?e.minimumSignificantDigits=i.length:i[0]==="#"?e.maximumSignificantDigits=i.length:(e.minimumSignificantDigits=i.length,e.maximumSignificantDigits=i.length+(typeof o=="string"?o.length:0)),""}),e}function Pl(r){switch(r){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function au(r){var e;if(r[0]==="E"&&r[1]==="E"?(e={notation:"engineering"},r=r.slice(2)):r[0]==="E"&&(e={notation:"scientific"},r=r.slice(1)),e){var t=r.slice(0,2);if(t==="+!"?(e.signDisplay="always",r=r.slice(2)):t==="+?"&&(e.signDisplay="exceptZero",r=r.slice(2)),!Al.test(r))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=r.length}return e}function Ss(r){var e={},t=Pl(r);return t||e}function lu(r){for(var e={},t=0,i=r;t<i.length;t++){var o=i[t];switch(o.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=o.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=nu(o.options[0]);continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=_e(_e(_e({},e),{notation:"scientific"}),o.options.reduce(function(l,h){return _e(_e({},l),Ss(h))},{}));continue;case"engineering":e=_e(_e(_e({},e),{notation:"engineering"}),o.options.reduce(function(l,h){return _e(_e({},l),Ss(h))},{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":e.roundingMode="floor";continue;case"rounding-mode-ceiling":e.roundingMode="ceil";continue;case"rounding-mode-down":e.roundingMode="trunc";continue;case"rounding-mode-up":e.roundingMode="expand";continue;case"rounding-mode-half-even":e.roundingMode="halfEven";continue;case"rounding-mode-half-down":e.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":e.roundingMode="halfExpand";continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(su,function(l,h,d,c,u,m){if(h)e.minimumIntegerDigits=d.length;else{if(c&&u)throw new Error("We currently do not support maximum integer digits");if(m)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Al.test(o.stem)){e.minimumIntegerDigits=o.stem.length;continue}if(Cs.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Cs,function(l,h,d,c,u,m){return d==="*"?e.minimumFractionDigits=h.length:c&&c[0]==="#"?e.maximumFractionDigits=c.length:u&&m?(e.minimumFractionDigits=u.length,e.maximumFractionDigits=u.length+m.length):(e.minimumFractionDigits=h.length,e.maximumFractionDigits=h.length),""});var n=o.options[0];n==="w"?e=_e(_e({},e),{trailingZeroDisplay:"stripIfInteger"}):n&&(e=_e(_e({},e),Es(n)));continue}if(Sl.test(o.stem)){e=_e(_e({},e),Es(o.stem));continue}var s=Pl(o.stem);s&&(e=_e(_e({},e),s));var a=au(o.stem);a&&(e=_e(_e({},e),a))}return e}var li={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function hu(r,e){for(var t="",i=0;i<r.length;i++){var o=r.charAt(i);if(o==="j"){for(var n=0;i+1<r.length&&r.charAt(i+1)===o;)n++,i++;var s=1+(n&1),a=n<2?1:3+(n>>1),l="a",h=du(e);for((h=="H"||h=="k")&&(a=0);a-- >0;)t+=l;for(;s-- >0;)t=h+t}else o==="J"?t+="H":t+=o}return t}function du(r){var e=r.hourCycle;if(e===void 0&&r.hourCycles&&r.hourCycles.length&&(e=r.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var t=r.language,i;t!=="root"&&(i=r.maximize().region);var o=li[i||""]||li[t||""]||li["".concat(t,"-001")]||li["001"];return o[0]}var vo,cu=new RegExp("^".concat(El.source,"*")),uu=new RegExp("".concat(El.source,"*$"));function J(r,e){return{start:r,end:e}}var pu=!!String.prototype.startsWith&&"_a".startsWith("a",1),mu=!!String.fromCodePoint,fu=!!Object.fromEntries,_u=!!String.prototype.codePointAt,vu=!!String.prototype.trimStart,gu=!!String.prototype.trimEnd,bu=!!Number.isSafeInteger,yu=bu?Number.isSafeInteger:function(r){return typeof r=="number"&&isFinite(r)&&Math.floor(r)===r&&Math.abs(r)<=9007199254740991},Uo=!0;try{var xu=Tl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Uo=((vo=xu.exec("a"))===null||vo===void 0?void 0:vo[0])==="a"}catch(r){Uo=!1}var As=pu?function(e,t,i){return e.startsWith(t,i)}:function(e,t,i){return e.slice(i,i+t.length)===t},Go=mu?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var i="",o=e.length,n=0,s;o>n;){if(s=e[n++],s>1114111)throw RangeError(s+" is not a valid code point");i+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return i},Ps=fu?Object.fromEntries:function(e){for(var t={},i=0,o=e;i<o.length;i++){var n=o[i],s=n[0],a=n[1];t[s]=a}return t},kl=_u?function(e,t){return e.codePointAt(t)}:function(e,t){var i=e.length;if(!(t<0||t>=i)){var o=e.charCodeAt(t),n;return o<55296||o>56319||t+1===i||(n=e.charCodeAt(t+1))<56320||n>57343?o:(o-55296<<10)+(n-56320)+65536}},wu=vu?function(e){return e.trimStart()}:function(e){return e.replace(cu,"")},Cu=gu?function(e){return e.trimEnd()}:function(e){return e.replace(uu,"")};function Tl(r,e){return new RegExp(r,e)}var qo;if(Uo){var ks=Tl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");qo=function(e,t){var i;ks.lastIndex=t;var o=ks.exec(e);return(i=o[1])!==null&&i!==void 0?i:""}}else qo=function(e,t){for(var i=[];;){var o=kl(e,t);if(o===void 0||Il(o)||Pu(o))break;i.push(o),t+=o>=65536?2:1}return Go.apply(void 0,i)};var Eu=function(){function r(e,t){t===void 0&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return r.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},r.prototype.parseMessage=function(e,t,i){for(var o=[];!this.isEOF();){var n=this.char();if(n===123){var s=this.parseArgument(e,i);if(s.err)return s;o.push(s.val)}else{if(n===125&&e>0)break;if(n===35&&(t==="plural"||t==="selectordinal")){var a=this.clonePosition();this.bump(),o.push({type:pe.pound,location:J(a,this.clonePosition())})}else if(n===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(X.UNMATCHED_CLOSING_TAG,J(this.clonePosition(),this.clonePosition()))}else if(n===60&&!this.ignoreTag&&Yo(this.peek()||0)){var s=this.parseTag(e,t);if(s.err)return s;o.push(s.val)}else{var s=this.parseLiteral(e,t);if(s.err)return s;o.push(s.val)}}}return{val:o,err:null}},r.prototype.parseTag=function(e,t){var i=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:pe.literal,value:"<".concat(o,"/>"),location:J(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var n=this.parseMessage(e+1,t,!0);if(n.err)return n;var s=n.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Yo(this.char()))return this.error(X.INVALID_TAG,J(a,this.clonePosition()));var l=this.clonePosition(),h=this.parseTagName();return o!==h?this.error(X.UNMATCHED_CLOSING_TAG,J(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:pe.tag,value:o,children:s,location:J(i,this.clonePosition())},err:null}:this.error(X.INVALID_TAG,J(a,this.clonePosition())))}else return this.error(X.UNCLOSED_TAG,J(i,this.clonePosition()))}else return this.error(X.INVALID_TAG,J(i,this.clonePosition()))},r.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&Au(this.char());)this.bump();return this.message.slice(e,this.offset())},r.prototype.parseLiteral=function(e,t){for(var i=this.clonePosition(),o="";;){var n=this.tryParseQuote(t);if(n){o+=n;continue}var s=this.tryParseUnquoted(e,t);if(s){o+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){o+=a;continue}break}var l=J(i,this.clonePosition());return{val:{type:pe.literal,value:o,location:l},err:null}},r.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Su(this.peek()||0))?(this.bump(),"<"):null},r.prototype.tryParseQuote=function(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(e==="plural"||e==="selectordinal")break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(i===39)if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}else t.push(i);this.bump()}return Go.apply(void 0,t)},r.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(t==="plural"||t==="selectordinal")||i===125&&e>0?null:(this.bump(),Go(i))},r.prototype.parseArgument=function(e,t){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(X.EXPECT_ARGUMENT_CLOSING_BRACE,J(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(X.EMPTY_ARGUMENT,J(i,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(X.MALFORMED_ARGUMENT,J(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(X.EXPECT_ARGUMENT_CLOSING_BRACE,J(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:pe.argument,value:o,location:J(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(X.EXPECT_ARGUMENT_CLOSING_BRACE,J(i,this.clonePosition())):this.parseArgumentOptions(e,t,o,i);default:return this.error(X.MALFORMED_ARGUMENT,J(i,this.clonePosition()))}},r.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),i=qo(this.message,t),o=t+i.length;this.bumpTo(o);var n=this.clonePosition(),s=J(e,n);return{value:i,location:s}},r.prototype.parseArgumentOptions=function(e,t,i,o){var n,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(X.EXPECT_ARGUMENT_TYPE,J(s,l));case"number":case"date":case"time":{this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;var u=Cu(c.val);if(u.length===0)return this.error(X.EXPECT_ARGUMENT_STYLE,J(this.clonePosition(),this.clonePosition()));var m=J(d,this.clonePosition());h={style:u,styleLocation:m}}var g=this.tryParseArgumentClose(o);if(g.err)return g;var _=J(o,this.clonePosition());if(h&&As(h==null?void 0:h.style,"::",0)){var y=wu(h.style.slice(2));if(a==="number"){var c=this.parseNumberSkeletonFromString(y,h.styleLocation);return c.err?c:{val:{type:pe.number,value:i,location:_,style:c.val},err:null}}else{if(y.length===0)return this.error(X.EXPECT_DATE_TIME_SKELETON,_);var D=y;this.locale&&(D=hu(y,this.locale));var u={type:Qt.dateTime,pattern:D,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?ru(D):{}},A=a==="date"?pe.date:pe.time;return{val:{type:A,value:i,location:_,style:u},err:null}}}return{val:{type:a==="number"?pe.number:a==="date"?pe.date:pe.time,value:i,location:_,style:(n=h==null?void 0:h.style)!==null&&n!==void 0?n:null},err:null}}case"plural":case"selectordinal":case"select":{var M=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(X.EXPECT_SELECT_ARGUMENT_OPTIONS,J(M,Si({},M)));this.bumpSpace();var R=this.parseIdentifierIfPossible(),W=0;if(a!=="select"&&R.value==="offset"){if(!this.bumpIf(":"))return this.error(X.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,J(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(X.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,X.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),R=this.parseIdentifierIfPossible(),W=c.val}var Q=this.tryParsePluralOrSelectOptions(e,a,t,R);if(Q.err)return Q;var g=this.tryParseArgumentClose(o);if(g.err)return g;var S=J(o,this.clonePosition());return a==="select"?{val:{type:pe.select,value:i,options:Ps(Q.val),location:S},err:null}:{val:{type:pe.plural,value:i,options:Ps(Q.val),offset:W,pluralType:a==="plural"?"cardinal":"ordinal",location:S},err:null}}default:return this.error(X.INVALID_ARGUMENT_TYPE,J(s,l))}},r.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(X.EXPECT_ARGUMENT_CLOSING_BRACE,J(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},r.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(X.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,J(o,this.clonePosition()));this.bump();break}case 123:{e+=1,this.bump();break}case 125:{if(e>0)e-=1;else return{val:this.message.slice(t.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(t.offset,this.offset()),err:null}},r.prototype.parseNumberSkeletonFromString=function(e,t){var i=[];try{i=ou(e)}catch(o){return this.error(X.INVALID_NUMBER_SKELETON,t)}return{val:{type:Qt.number,tokens:i,location:t,parsedOptions:this.shouldParseSkeletons?lu(i):{}},err:null}},r.prototype.tryParsePluralOrSelectOptions=function(e,t,i,o){for(var n,s=!1,a=[],l=new Set,h=o.value,d=o.location;;){if(h.length===0){var c=this.clonePosition();if(t!=="select"&&this.bumpIf("=")){var u=this.tryParseDecimalInteger(X.EXPECT_PLURAL_ARGUMENT_SELECTOR,X.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;d=J(c,this.clonePosition()),h=this.message.slice(c.offset,this.offset())}else break}if(l.has(h))return this.error(t==="select"?X.DUPLICATE_SELECT_ARGUMENT_SELECTOR:X.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);h==="other"&&(s=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(t==="select"?X.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:X.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,J(this.clonePosition(),this.clonePosition()));var g=this.parseMessage(e+1,t,i);if(g.err)return g;var _=this.tryParseArgumentClose(m);if(_.err)return _;a.push([h,{value:g.val,location:J(m,this.clonePosition())}]),l.add(h),this.bumpSpace(),n=this.parseIdentifierIfPossible(),h=n.value,d=n.location}return a.length===0?this.error(t==="select"?X.EXPECT_SELECT_ARGUMENT_SELECTOR:X.EXPECT_PLURAL_ARGUMENT_SELECTOR,J(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(X.MISSING_OTHER_CLAUSE,J(this.clonePosition(),this.clonePosition())):{val:a,err:null}},r.prototype.tryParseDecimalInteger=function(e,t){var i=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var n=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)n=!0,s=s*10+(a-48),this.bump();else break}var l=J(o,this.clonePosition());return n?(s*=i,yu(s)?{val:s,err:null}:this.error(t,l)):this.error(e,l)},r.prototype.offset=function(){return this.position.offset},r.prototype.isEOF=function(){return this.offset()===this.message.length},r.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},r.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=kl(this.message,e);if(t===void 0)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},r.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},r.prototype.bump=function(){if(!this.isEOF()){var e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},r.prototype.bumpIf=function(e){if(As(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},r.prototype.bumpUntil=function(e){var t=this.offset(),i=this.message.indexOf(e,t);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},r.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},r.prototype.bumpSpace=function(){for(;!this.isEOF()&&Il(this.char());)this.bump()},r.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),i=this.message.charCodeAt(t+(e>=65536?2:1));return i!=null?i:null},r}();function Yo(r){return r>=97&&r<=122||r>=65&&r<=90}function Su(r){return Yo(r)||r===47}function Au(r){return r===45||r===46||r>=48&&r<=57||r===95||r>=97&&r<=122||r>=65&&r<=90||r==183||r>=192&&r<=214||r>=216&&r<=246||r>=248&&r<=893||r>=895&&r<=8191||r>=8204&&r<=8205||r>=8255&&r<=8256||r>=8304&&r<=8591||r>=11264&&r<=12271||r>=12289&&r<=55295||r>=63744&&r<=64975||r>=65008&&r<=65533||r>=65536&&r<=983039}function Il(r){return r>=9&&r<=13||r===32||r===133||r>=8206&&r<=8207||r===8232||r===8233}function Pu(r){return r>=33&&r<=35||r===36||r>=37&&r<=39||r===40||r===41||r===42||r===43||r===44||r===45||r>=46&&r<=47||r>=58&&r<=59||r>=60&&r<=62||r>=63&&r<=64||r===91||r===92||r===93||r===94||r===96||r===123||r===124||r===125||r===126||r===161||r>=162&&r<=165||r===166||r===167||r===169||r===171||r===172||r===174||r===176||r===177||r===182||r===187||r===191||r===215||r===247||r>=8208&&r<=8213||r>=8214&&r<=8215||r===8216||r===8217||r===8218||r>=8219&&r<=8220||r===8221||r===8222||r===8223||r>=8224&&r<=8231||r>=8240&&r<=8248||r===8249||r===8250||r>=8251&&r<=8254||r>=8257&&r<=8259||r===8260||r===8261||r===8262||r>=8263&&r<=8273||r===8274||r===8275||r>=8277&&r<=8286||r>=8592&&r<=8596||r>=8597&&r<=8601||r>=8602&&r<=8603||r>=8604&&r<=8607||r===8608||r>=8609&&r<=8610||r===8611||r>=8612&&r<=8613||r===8614||r>=8615&&r<=8621||r===8622||r>=8623&&r<=8653||r>=8654&&r<=8655||r>=8656&&r<=8657||r===8658||r===8659||r===8660||r>=8661&&r<=8691||r>=8692&&r<=8959||r>=8960&&r<=8967||r===8968||r===8969||r===8970||r===8971||r>=8972&&r<=8991||r>=8992&&r<=8993||r>=8994&&r<=9e3||r===9001||r===9002||r>=9003&&r<=9083||r===9084||r>=9085&&r<=9114||r>=9115&&r<=9139||r>=9140&&r<=9179||r>=9180&&r<=9185||r>=9186&&r<=9254||r>=9255&&r<=9279||r>=9280&&r<=9290||r>=9291&&r<=9311||r>=9472&&r<=9654||r===9655||r>=9656&&r<=9664||r===9665||r>=9666&&r<=9719||r>=9720&&r<=9727||r>=9728&&r<=9838||r===9839||r>=9840&&r<=10087||r===10088||r===10089||r===10090||r===10091||r===10092||r===10093||r===10094||r===10095||r===10096||r===10097||r===10098||r===10099||r===10100||r===10101||r>=10132&&r<=10175||r>=10176&&r<=10180||r===10181||r===10182||r>=10183&&r<=10213||r===10214||r===10215||r===10216||r===10217||r===10218||r===10219||r===10220||r===10221||r===10222||r===10223||r>=10224&&r<=10239||r>=10240&&r<=10495||r>=10496&&r<=10626||r===10627||r===10628||r===10629||r===10630||r===10631||r===10632||r===10633||r===10634||r===10635||r===10636||r===10637||r===10638||r===10639||r===10640||r===10641||r===10642||r===10643||r===10644||r===10645||r===10646||r===10647||r===10648||r>=10649&&r<=10711||r===10712||r===10713||r===10714||r===10715||r>=10716&&r<=10747||r===10748||r===10749||r>=10750&&r<=11007||r>=11008&&r<=11055||r>=11056&&r<=11076||r>=11077&&r<=11078||r>=11079&&r<=11084||r>=11085&&r<=11123||r>=11124&&r<=11125||r>=11126&&r<=11157||r===11158||r>=11159&&r<=11263||r>=11776&&r<=11777||r===11778||r===11779||r===11780||r===11781||r>=11782&&r<=11784||r===11785||r===11786||r===11787||r===11788||r===11789||r>=11790&&r<=11798||r===11799||r>=11800&&r<=11801||r===11802||r===11803||r===11804||r===11805||r>=11806&&r<=11807||r===11808||r===11809||r===11810||r===11811||r===11812||r===11813||r===11814||r===11815||r===11816||r===11817||r>=11818&&r<=11822||r===11823||r>=11824&&r<=11833||r>=11834&&r<=11835||r>=11836&&r<=11839||r===11840||r===11841||r===11842||r>=11843&&r<=11855||r>=11856&&r<=11857||r===11858||r>=11859&&r<=11903||r>=12289&&r<=12291||r===12296||r===12297||r===12298||r===12299||r===12300||r===12301||r===12302||r===12303||r===12304||r===12305||r>=12306&&r<=12307||r===12308||r===12309||r===12310||r===12311||r===12312||r===12313||r===12314||r===12315||r===12316||r===12317||r>=12318&&r<=12319||r===12320||r===12336||r===64830||r===64831||r>=65093&&r<=65094}function Xo(r){r.forEach(function(e){if(delete e.location,yl(e)||xl(e))for(var t in e.options)delete e.options[t].location,Xo(e.options[t].value);else vl(e)&&Cl(e.style)||(gl(e)||bl(e))&&jo(e.style)?delete e.style.location:wl(e)&&Xo(e.children)})}function ku(r,e){e===void 0&&(e={}),e=Si({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var t=new Eu(r,e).parse();if(t.err){var i=SyntaxError(X[t.err.kind]);throw i.location=t.err.location,i.originalMessage=t.err.message,i}return e!=null&&e.captureLocation||Xo(t.val),t.val}var er;(function(r){r.MISSING_VALUE="MISSING_VALUE",r.INVALID_VALUE="INVALID_VALUE",r.MISSING_INTL_API="MISSING_INTL_API"})(er||(er={}));var Ui=function(r){ji(e,r);function e(t,i,o){var n=r.call(this,t)||this;return n.code=i,n.originalMessage=o,n}return e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),Ts=function(r){ji(e,r);function e(t,i,o,n){return r.call(this,'Invalid values for "'.concat(t,'": "').concat(i,'". Options are "').concat(Object.keys(o).join('", "'),'"'),er.INVALID_VALUE,n)||this}return e}(Ui),Tu=function(r){ji(e,r);function e(t,i,o){return r.call(this,'Value for "'.concat(t,'" must be of type ').concat(i),er.INVALID_VALUE,o)||this}return e}(Ui),Iu=function(r){ji(e,r);function e(t,i){return r.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(i,'"'),er.MISSING_VALUE,i)||this}return e}(Ui),Me;(function(r){r[r.literal=0]="literal",r[r.object=1]="object"})(Me||(Me={}));function Du(r){return r.length<2?r:r.reduce(function(e,t){var i=e[e.length-1];return!i||i.type!==Me.literal||t.type!==Me.literal?e.push(t):i.value+=t.value,e},[])}function Ou(r){return typeof r=="function"}function yi(r,e,t,i,o,n,s){if(r.length===1&&ws(r[0]))return[{type:Me.literal,value:r[0].value}];for(var a=[],l=0,h=r;l<h.length;l++){var d=h[l];if(ws(d)){a.push({type:Me.literal,value:d.value});continue}if(eu(d)){typeof n=="number"&&a.push({type:Me.literal,value:t.getNumberFormat(e).format(n)});continue}var c=d.value;if(!(o&&c in o))throw new Iu(c,s);var u=o[c];if(Qc(d)){(!u||typeof u=="string"||typeof u=="number")&&(u=typeof u=="string"||typeof u=="number"?String(u):""),a.push({type:typeof u=="string"?Me.literal:Me.object,value:u});continue}if(gl(d)){var m=typeof d.style=="string"?i.date[d.style]:jo(d.style)?d.style.parsedOptions:void 0;a.push({type:Me.literal,value:t.getDateTimeFormat(e,m).format(u)});continue}if(bl(d)){var m=typeof d.style=="string"?i.time[d.style]:jo(d.style)?d.style.parsedOptions:i.time.medium;a.push({type:Me.literal,value:t.getDateTimeFormat(e,m).format(u)});continue}if(vl(d)){var m=typeof d.style=="string"?i.number[d.style]:Cl(d.style)?d.style.parsedOptions:void 0;m&&m.scale&&(u=u*(m.scale||1)),a.push({type:Me.literal,value:t.getNumberFormat(e,m).format(u)});continue}if(wl(d)){var g=d.children,_=d.value,y=o[_];if(!Ou(y))throw new Tu(_,"function",s);var D=yi(g,e,t,i,o,n),A=y(D.map(function(W){return W.value}));Array.isArray(A)||(A=[A]),a.push.apply(a,A.map(function(W){return{type:typeof W=="string"?Me.literal:Me.object,value:W}}))}if(yl(d)){var M=d.options[u]||d.options.other;if(!M)throw new Ts(d.value,u,Object.keys(d.options),s);a.push.apply(a,yi(M.value,e,t,i,o));continue}if(xl(d)){var M=d.options["=".concat(u)];if(!M){if(!Intl.PluralRules)throw new Ui(`Intl.PluralRules is not available in this environment.
14
+ ***************************************************************************** */var No=function(i,e){return No=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])},No(i,e)};function lt(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");No(i,e);function t(){this.constructor=i}i.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var ie=function(){return ie=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},ie.apply(this,arguments)};function mc(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 zo(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 Bo(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 qt(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 st(i){return typeof i=="function"}function sl(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 ho=sl(function(i){return function(t){i(this),this.message=t?t.length+` errors occurred during unsubscription:
15
+ `+t.map(function(r,o){return o+1+") "+r.toString()}).join(`
16
+ `):"",this.name="UnsubscriptionError",this.errors=t}});function Lo(i,e){if(i){var t=i.indexOf(e);0<=t&&i.splice(t,1)}}var Fr=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=zo(s),l=a.next();!l.done;l=a.next()){var h=l.value;h.remove(this)}}catch(f){e={error:f}}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(st(d))try{d()}catch(f){n=f instanceof ho?f.errors:[f]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var u=zo(c),m=u.next();!m.done;m=u.next()){var g=m.value;try{ps(g)}catch(f){n=n!=null?n:[],f instanceof ho?n=qt(qt([],Bo(n)),Bo(f.errors)):n.push(f)}}}catch(f){r={error:f}}finally{try{m&&!m.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}}if(n)throw new ho(n)}},i.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)ps(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)&&Lo(t,e)},i.prototype.remove=function(e){var t=this._finalizers;t&&Lo(t,e),e instanceof i&&e._removeParent(this)},i.EMPTY=function(){var e=new i;return e.closed=!0,e}(),i}(),al=Fr.EMPTY;function ll(i){return i instanceof Fr||i&&"closed"in i&&st(i.remove)&&st(i.add)&&st(i.unsubscribe)}function ps(i){st(i)?i():i.unsubscribe()}var hl={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},_c={setTimeout:function(i,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];return setTimeout.apply(void 0,qt([i,e],Bo(t)))},clearTimeout:function(i){return clearTimeout(i)},delegate:void 0};function fc(i){_c.setTimeout(function(){throw i})}function ms(){}function gr(i){i()}var dl=function(i){lt(e,i);function e(t){var r=i.call(this)||this;return r.isStopped=!1,t?(r.destination=t,ll(t)&&t.add(r)):r.destination=yc,r}return e.create=function(t,r,o){return new Ho(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}(Fr),vc=Function.prototype.bind;function co(i,e){return vc.call(i,e)}var gc=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){sr(r)}},i.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(r){sr(r)}else sr(e)},i.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){sr(t)}},i}(),Ho=function(i){lt(e,i);function e(t,r,o){var n=i.call(this)||this,s;if(st(t)||!t)s={next:t!=null?t:void 0,error:r!=null?r:void 0,complete:o!=null?o:void 0};else{var a;n&&hl.useDeprecatedNextContext?(a=Object.create(t),a.unsubscribe=function(){return n.unsubscribe()},s={next:t.next&&co(t.next,a),error:t.error&&co(t.error,a),complete:t.complete&&co(t.complete,a)}):s=t}return n.destination=new gc(s),n}return e}(dl);function sr(i){fc(i)}function bc(i){throw i}var yc={closed:!0,next:ms,error:bc,complete:ms},xc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function wc(i){return i}function Cc(i){return i.length===0?wc:i.length===1?i[0]:function(t){return i.reduce(function(r,o){return o(r)},t)}}var _s=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=Sc(e)?e:new Ho(e,t,r);return gr(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=fs(t),new t(function(o,n){var s=new Ho({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[xc]=function(){return this},i.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Cc(e)(this)},i.prototype.toPromise=function(e){var t=this;return e=fs(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 fs(i){var e;return(e=i!=null?i:hl.Promise)!==null&&e!==void 0?e:Promise}function Ec(i){return i&&st(i.next)&&st(i.error)&&st(i.complete)}function Sc(i){return i&&i instanceof dl||Ec(i)&&ll(i)}var Ac=sl(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),cl=function(i){lt(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 vs(this,this);return r.operator=t,r},e.prototype._throwIfClosed=function(){if(this.closed)throw new Ac},e.prototype.next=function(t){var r=this;gr(function(){var o,n;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=zo(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;gr(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;gr(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?al:(this.currentObservers=null,a.push(t),new Fr(function(){r.currentObservers=null,Lo(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 _s;return t.source=this,t},e.create=function(t,r){return new vs(t,r)},e}(_s),vs=function(i){lt(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:al},e}(cl),ul={now:function(){return(ul.delegate||Date).now()},delegate:void 0},Pc=function(i){lt(e,i);function e(t,r,o){t===void 0&&(t=1/0),r===void 0&&(r=1/0),o===void 0&&(o=ul);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}(cl);const gs=[],bs={},kc=(i,e=0)=>{if(gs.indexOf(i)==-1){const t=new Pc(e);bs[i]=t,gs.push(i)}return bs[i]},$t=[];function Tc(i,e){return{subscribe:Vr(i,e).subscribe}}function Vr(i,e=De){let t;const r=new Set;function o(a){if(tl(i,a)&&(i=a,t)){const l=!$t.length;for(const h of r)h[1](),$t.push(h,i);if(l){for(let h=0;h<$t.length;h+=2)$t[h][0]($t[h+1]);$t.length=0}}}function n(a){o(a(i))}function s(a,l=De){const h=[a,l];return r.add(h),r.size===1&&(t=e(o,n)||De),a(i),()=>{r.delete(h),r.size===0&&t&&(t(),t=null)}}return{set:o,update:n,subscribe:s}}function li(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 Tc(t,(s,a)=>{let l=!1;const h=[];let d=0,c=De;const u=()=>{if(d)return;c();const g=e(r?h[0]:h,s,a);n?s(g):c=bn(g)?g:De},m=o.map((g,f)=>il(g,y=>{h[f]=y,d&=~(1<<f),l&&u()},()=>{d|=1<<f}));return l=!0,u(),function(){ai(m),c(),l=!1}})}var pl=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function yn(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Ic=function(e){return Dc(e)&&!Oc(e)};function Dc(i){return!!i&&typeof i=="object"}function Oc(i){var e=Object.prototype.toString.call(i);return e==="[object RegExp]"||e==="[object Date]"||zc(i)}var Mc=typeof Symbol=="function"&&Symbol.for,Nc=Mc?Symbol.for("react.element"):60103;function zc(i){return i.$$typeof===Nc}function Bc(i){return Array.isArray(i)?[]:{}}function Di(i,e){return e.clone!==!1&&e.isMergeableObject(i)?Qt(Bc(i),i,e):i}function Lc(i,e,t){return i.concat(e).map(function(r){return Di(r,t)})}function Hc(i,e){if(!e.customMerge)return Qt;var t=e.customMerge(i);return typeof t=="function"?t:Qt}function Rc(i){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(i).filter(function(e){return Object.propertyIsEnumerable.call(i,e)}):[]}function ys(i){return Object.keys(i).concat(Rc(i))}function ml(i,e){try{return e in i}catch(t){return!1}}function Fc(i,e){return ml(i,e)&&!(Object.hasOwnProperty.call(i,e)&&Object.propertyIsEnumerable.call(i,e))}function Vc(i,e,t){var r={};return t.isMergeableObject(i)&&ys(i).forEach(function(o){r[o]=Di(i[o],t)}),ys(e).forEach(function(o){Fc(i,o)||(ml(i,o)&&t.isMergeableObject(e[o])?r[o]=Hc(o,t)(i[o],e[o],t):r[o]=Di(e[o],t))}),r}function Qt(i,e,t){t=t||{},t.arrayMerge=t.arrayMerge||Lc,t.isMergeableObject=t.isMergeableObject||Ic,t.cloneUnlessOtherwiseSpecified=Di;var r=Array.isArray(e),o=Array.isArray(i),n=r===o;return n?r?t.arrayMerge(i,e,t):Vc(i,e,t):Di(e,t)}Qt.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,o){return Qt(r,o,t)},{})};var $c=Qt,Wc=$c;const jc=yn(Wc);function uo(i,e){var t=e&&e.cache?e.cache:Kc,r=e&&e.serializer?e.serializer:Xc,o=e&&e.strategy?e.strategy:Gc;return o(i,{cache:t,serializer:r})}function Uc(i){return i==null||typeof i=="number"||typeof i=="boolean"}function _l(i,e,t,r){var o=Uc(r)?r:t(r),n=e.get(o);return typeof n=="undefined"&&(n=i.call(this,r),e.set(o,n)),n}function fl(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 xn(i,e,t,r,o){return t.bind(e,i,r,o)}function Gc(i,e){var t=i.length===1?_l:fl;return xn(i,this,t,e.cache.create(),e.serializer)}function qc(i,e){return xn(i,this,fl,e.cache.create(),e.serializer)}function Yc(i,e){return xn(i,this,_l,e.cache.create(),e.serializer)}var Xc=function(){return JSON.stringify(arguments)};function wn(){this.cache=Object.create(null)}wn.prototype.get=function(i){return this.cache[i]};wn.prototype.set=function(i,e){this.cache[i]=e};var Kc={create:function(){return new wn}},po={variadic:qc,monadic:Yc},X;(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"})(X||(X={}));var me;(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"})(me||(me={}));var ei;(function(i){i[i.number=0]="number",i[i.dateTime=1]="dateTime"})(ei||(ei={}));function xs(i){return i.type===me.literal}function Zc(i){return i.type===me.argument}function vl(i){return i.type===me.number}function gl(i){return i.type===me.date}function bl(i){return i.type===me.time}function yl(i){return i.type===me.select}function xl(i){return i.type===me.plural}function Jc(i){return i.type===me.pound}function wl(i){return i.type===me.tag}function Cl(i){return!!(i&&typeof i=="object"&&i.type===ei.number)}function Ro(i){return!!(i&&typeof i=="object"&&i.type===ei.dateTime)}var El=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Qc=/(?:[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 eu(i){var e={};return i.replace(Qc,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 tu=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function iu(i){if(i.length===0)throw new Error("Number skeleton cannot be empty");for(var e=i.split(tu).filter(function(u){return u.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 ru(i){return i.replace(/^(.*?)-/,"")}var ws=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Sl=/^(@+)?(\+|#+)?[rs]?$/g,ou=/(\*)(0+)|(#+)(0+)|(0+)/g,Al=/^(0+)$/;function Cs(i){var e={};return i[i.length-1]==="r"?e.roundingPriority="morePrecision":i[i.length-1]==="s"&&(e.roundingPriority="lessPrecision"),i.replace(Sl,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 Pl(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 nu(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)),!Al.test(i))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=i.length}return e}function Es(i){var e={},t=Pl(i);return t||e}function su(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=ru(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=ie(ie(ie({},e),{notation:"scientific"}),o.options.reduce(function(l,h){return ie(ie({},l),Es(h))},{}));continue;case"engineering":e=ie(ie(ie({},e),{notation:"engineering"}),o.options.reduce(function(l,h){return ie(ie({},l),Es(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(ou,function(l,h,d,c,u,m){if(h)e.minimumIntegerDigits=d.length;else{if(c&&u)throw new Error("We currently do not support maximum integer digits");if(m)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Al.test(o.stem)){e.minimumIntegerDigits=o.stem.length;continue}if(ws.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(ws,function(l,h,d,c,u,m){return d==="*"?e.minimumFractionDigits=h.length:c&&c[0]==="#"?e.maximumFractionDigits=c.length:u&&m?(e.minimumFractionDigits=u.length,e.maximumFractionDigits=u.length+m.length):(e.minimumFractionDigits=h.length,e.maximumFractionDigits=h.length),""});var n=o.options[0];n==="w"?e=ie(ie({},e),{trailingZeroDisplay:"stripIfInteger"}):n&&(e=ie(ie({},e),Cs(n)));continue}if(Sl.test(o.stem)){e=ie(ie({},e),Cs(o.stem));continue}var s=Pl(o.stem);s&&(e=ie(ie({},e),s));var a=nu(o.stem);a&&(e=ie(ie({},e),a))}return e}var ar={"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 au(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=lu(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 lu(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=ar[r||""]||ar[t||""]||ar["".concat(t,"-001")]||ar["001"];return o[0]}var mo,hu=new RegExp("^".concat(El.source,"*")),du=new RegExp("".concat(El.source,"*$"));function J(i,e){return{start:i,end:e}}var cu=!!String.prototype.startsWith&&"_a".startsWith("a",1),uu=!!String.fromCodePoint,pu=!!Object.fromEntries,mu=!!String.prototype.codePointAt,_u=!!String.prototype.trimStart,fu=!!String.prototype.trimEnd,vu=!!Number.isSafeInteger,gu=vu?Number.isSafeInteger:function(i){return typeof i=="number"&&isFinite(i)&&Math.floor(i)===i&&Math.abs(i)<=9007199254740991},Fo=!0;try{var bu=Tl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Fo=((mo=bu.exec("a"))===null||mo===void 0?void 0:mo[0])==="a"}catch(i){Fo=!1}var Ss=cu?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Vo=uu?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},As=pu?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},kl=mu?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}},yu=_u?function(e){return e.trimStart()}:function(e){return e.replace(hu,"")},xu=fu?function(e){return e.trimEnd()}:function(e){return e.replace(du,"")};function Tl(i,e){return new RegExp(i,e)}var $o;if(Fo){var Ps=Tl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");$o=function(e,t){var r;Ps.lastIndex=t;var o=Ps.exec(e);return(r=o[1])!==null&&r!==void 0?r:""}}else $o=function(e,t){for(var r=[];;){var o=kl(e,t);if(o===void 0||Il(o)||Su(o))break;r.push(o),t+=o>=65536?2:1}return Vo.apply(void 0,r)};var wu=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:me.pound,location:J(a,this.clonePosition())})}else if(n===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(X.UNMATCHED_CLOSING_TAG,J(this.clonePosition(),this.clonePosition()))}else if(n===60&&!this.ignoreTag&&Wo(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:me.literal,value:"<".concat(o,"/>"),location:J(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()||!Wo(this.char()))return this.error(X.INVALID_TAG,J(a,this.clonePosition()));var l=this.clonePosition(),h=this.parseTagName();return o!==h?this.error(X.UNMATCHED_CLOSING_TAG,J(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:me.tag,value:o,children:s,location:J(r,this.clonePosition())},err:null}:this.error(X.INVALID_TAG,J(a,this.clonePosition())))}else return this.error(X.UNCLOSED_TAG,J(r,this.clonePosition()))}else return this.error(X.INVALID_TAG,J(r,this.clonePosition()))},i.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&Eu(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=J(r,this.clonePosition());return{val:{type:me.literal,value:o,location:l},err:null}},i.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Cu(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 Vo.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(),Vo(r))},i.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(X.EXPECT_ARGUMENT_CLOSING_BRACE,J(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(X.EMPTY_ARGUMENT,J(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(X.MALFORMED_ARGUMENT,J(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(X.EXPECT_ARGUMENT_CLOSING_BRACE,J(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:me.argument,value:o,location:J(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(X.EXPECT_ARGUMENT_CLOSING_BRACE,J(r,this.clonePosition())):this.parseArgumentOptions(e,t,o,r);default:return this.error(X.MALFORMED_ARGUMENT,J(r,this.clonePosition()))}},i.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=$o(this.message,t),o=t+r.length;this.bumpTo(o);var n=this.clonePosition(),s=J(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(X.EXPECT_ARGUMENT_TYPE,J(s,l));case"number":case"date":case"time":{this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;var u=xu(c.val);if(u.length===0)return this.error(X.EXPECT_ARGUMENT_STYLE,J(this.clonePosition(),this.clonePosition()));var m=J(d,this.clonePosition());h={style:u,styleLocation:m}}var g=this.tryParseArgumentClose(o);if(g.err)return g;var f=J(o,this.clonePosition());if(h&&Ss(h==null?void 0:h.style,"::",0)){var y=yu(h.style.slice(2));if(a==="number"){var c=this.parseNumberSkeletonFromString(y,h.styleLocation);return c.err?c:{val:{type:me.number,value:r,location:f,style:c.val},err:null}}else{if(y.length===0)return this.error(X.EXPECT_DATE_TIME_SKELETON,f);var D=y;this.locale&&(D=au(y,this.locale));var u={type:ei.dateTime,pattern:D,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?eu(D):{}},A=a==="date"?me.date:me.time;return{val:{type:A,value:r,location:f,style:u},err:null}}}return{val:{type:a==="number"?me.number:a==="date"?me.date:me.time,value:r,location:f,style:(n=h==null?void 0:h.style)!==null&&n!==void 0?n:null},err:null}}case"plural":case"selectordinal":case"select":{var M=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(X.EXPECT_SELECT_ARGUMENT_OPTIONS,J(M,ie({},M)));this.bumpSpace();var R=this.parseIdentifierIfPossible(),W=0;if(a!=="select"&&R.value==="offset"){if(!this.bumpIf(":"))return this.error(X.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,J(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(X.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,X.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),R=this.parseIdentifierIfPossible(),W=c.val}var Q=this.tryParsePluralOrSelectOptions(e,a,t,R);if(Q.err)return Q;var g=this.tryParseArgumentClose(o);if(g.err)return g;var S=J(o,this.clonePosition());return a==="select"?{val:{type:me.select,value:r,options:As(Q.val),location:S},err:null}:{val:{type:me.plural,value:r,options:As(Q.val),offset:W,pluralType:a==="plural"?"cardinal":"ordinal",location:S},err:null}}default:return this.error(X.INVALID_ARGUMENT_TYPE,J(s,l))}},i.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(X.EXPECT_ARGUMENT_CLOSING_BRACE,J(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},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(X.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,J(o,this.clonePosition()));this.bump();break}case 123:{e+=1,this.bump();break}case 125:{if(e>0)e-=1;else return{val:this.message.slice(t.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(t.offset,this.offset()),err:null}},i.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=iu(e)}catch(o){return this.error(X.INVALID_NUMBER_SKELETON,t)}return{val:{type:ei.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?su(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 u=this.tryParseDecimalInteger(X.EXPECT_PLURAL_ARGUMENT_SELECTOR,X.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;d=J(c,this.clonePosition()),h=this.message.slice(c.offset,this.offset())}else break}if(l.has(h))return this.error(t==="select"?X.DUPLICATE_SELECT_ARGUMENT_SELECTOR:X.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);h==="other"&&(s=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(t==="select"?X.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:X.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,J(this.clonePosition(),this.clonePosition()));var g=this.parseMessage(e+1,t,r);if(g.err)return g;var f=this.tryParseArgumentClose(m);if(f.err)return f;a.push([h,{value:g.val,location:J(m,this.clonePosition())}]),l.add(h),this.bumpSpace(),n=this.parseIdentifierIfPossible(),h=n.value,d=n.location}return a.length===0?this.error(t==="select"?X.EXPECT_SELECT_ARGUMENT_SELECTOR:X.EXPECT_PLURAL_ARGUMENT_SELECTOR,J(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(X.MISSING_OTHER_CLAUSE,J(this.clonePosition(),this.clonePosition())):{val:a,err:null}},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=J(o,this.clonePosition());return n?(s*=r,gu(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=kl(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(Ss(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()&&Il(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 Wo(i){return i>=97&&i<=122||i>=65&&i<=90}function Cu(i){return Wo(i)||i===47}function Eu(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 Il(i){return i>=9&&i<=13||i===32||i===133||i>=8206&&i<=8207||i===8232||i===8233}function Su(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 jo(i){i.forEach(function(e){if(delete e.location,yl(e)||xl(e))for(var t in e.options)delete e.options[t].location,jo(e.options[t].value);else vl(e)&&Cl(e.style)||(gl(e)||bl(e))&&Ro(e.style)?delete e.style.location:wl(e)&&jo(e.children)})}function Au(i,e){e===void 0&&(e={}),e=ie({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var t=new wu(i,e).parse();if(t.err){var r=SyntaxError(X[t.err.kind]);throw r.location=t.err.location,r.originalMessage=t.err.message,r}return e!=null&&e.captureLocation||jo(t.val),t.val}var ti;(function(i){i.MISSING_VALUE="MISSING_VALUE",i.INVALID_VALUE="INVALID_VALUE",i.MISSING_INTL_API="MISSING_INTL_API"})(ti||(ti={}));var $r=function(i){lt(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),ks=function(i){lt(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('", "'),'"'),ti.INVALID_VALUE,n)||this}return e}($r),Pu=function(i){lt(e,i);function e(t,r,o){return i.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),ti.INVALID_VALUE,o)||this}return e}($r),ku=function(i){lt(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,'"'),ti.MISSING_VALUE,r)||this}return e}($r),Me;(function(i){i[i.literal=0]="literal",i[i.object=1]="object"})(Me||(Me={}));function Tu(i){return i.length<2?i:i.reduce(function(e,t){var r=e[e.length-1];return!r||r.type!==Me.literal||t.type!==Me.literal?e.push(t):r.value+=t.value,e},[])}function Iu(i){return typeof i=="function"}function br(i,e,t,r,o,n,s){if(i.length===1&&xs(i[0]))return[{type:Me.literal,value:i[0].value}];for(var a=[],l=0,h=i;l<h.length;l++){var d=h[l];if(xs(d)){a.push({type:Me.literal,value:d.value});continue}if(Jc(d)){typeof n=="number"&&a.push({type:Me.literal,value:t.getNumberFormat(e).format(n)});continue}var c=d.value;if(!(o&&c in o))throw new ku(c,s);var u=o[c];if(Zc(d)){(!u||typeof u=="string"||typeof u=="number")&&(u=typeof u=="string"||typeof u=="number"?String(u):""),a.push({type:typeof u=="string"?Me.literal:Me.object,value:u});continue}if(gl(d)){var m=typeof d.style=="string"?r.date[d.style]:Ro(d.style)?d.style.parsedOptions:void 0;a.push({type:Me.literal,value:t.getDateTimeFormat(e,m).format(u)});continue}if(bl(d)){var m=typeof d.style=="string"?r.time[d.style]:Ro(d.style)?d.style.parsedOptions:r.time.medium;a.push({type:Me.literal,value:t.getDateTimeFormat(e,m).format(u)});continue}if(vl(d)){var m=typeof d.style=="string"?r.number[d.style]:Cl(d.style)?d.style.parsedOptions:void 0;m&&m.scale&&(u=u*(m.scale||1)),a.push({type:Me.literal,value:t.getNumberFormat(e,m).format(u)});continue}if(wl(d)){var g=d.children,f=d.value,y=o[f];if(!Iu(y))throw new Pu(f,"function",s);var D=br(g,e,t,r,o,n),A=y(D.map(function(W){return W.value}));Array.isArray(A)||(A=[A]),a.push.apply(a,A.map(function(W){return{type:typeof W=="string"?Me.literal:Me.object,value:W}}))}if(yl(d)){var M=d.options[u]||d.options.other;if(!M)throw new ks(d.value,u,Object.keys(d.options),s);a.push.apply(a,br(M.value,e,t,r,o));continue}if(xl(d)){var M=d.options["=".concat(u)];if(!M){if(!Intl.PluralRules)throw new $r(`Intl.PluralRules is not available in this environment.
17
17
  Try polyfilling it using "@formatjs/intl-pluralrules"
18
- `,er.MISSING_INTL_API,s);var R=t.getPluralRules(e,{type:d.pluralType}).select(u-(d.offset||0));M=d.options[R]||d.options.other}if(!M)throw new Ts(d.value,u,Object.keys(d.options),s);a.push.apply(a,yi(M.value,e,t,i,o,u-(d.offset||0)));continue}}return Du(a)}function Mu(r,e){return e?Qe(Qe(Qe({},r||{}),e||{}),Object.keys(r).reduce(function(t,i){return t[i]=Qe(Qe({},r[i]),e[i]||{}),t},{})):r}function Nu(r,e){return e?Object.keys(r).reduce(function(t,i){return t[i]=Mu(r[i],e[i]),t},Qe({},r)):r}function go(r){return{create:function(){return{get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}function zu(r){return r===void 0&&(r={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:fo(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.NumberFormat).bind.apply(e,mo([void 0],t,!1)))},{cache:go(r.number),strategy:_o.variadic}),getDateTimeFormat:fo(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.DateTimeFormat).bind.apply(e,mo([void 0],t,!1)))},{cache:go(r.dateTime),strategy:_o.variadic}),getPluralRules:fo(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.PluralRules).bind.apply(e,mo([void 0],t,!1)))},{cache:go(r.pluralRules),strategy:_o.variadic})}}var Bu=function(){function r(e,t,i,o){t===void 0&&(t=r.defaultLocale);var n=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var h=n.formatToParts(l);if(h.length===1)return h[0].value;var d=h.reduce(function(c,u){return!c.length||u.type!==Me.literal||typeof c[c.length-1]!="string"?c.push(u.value):c[c.length-1]+=u.value,c},[]);return d.length<=1?d[0]||"":d},this.formatToParts=function(l){return yi(n.ast,n.locales,n.formatters,n.formats,l,void 0,n.message)},this.resolvedOptions=function(){var l;return{locale:((l=n.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(n.locales)[0]}},this.getAst=function(){return n.ast},this.locales=t,this.resolvedLocale=r.resolveLocale(t),typeof e=="string"){if(this.message=e,!r.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=o||{};s.formatters;var a=Uc(s,["formatters"]);this.ast=r.__parse(e,Qe(Qe({},a),{locale:this.resolvedLocale}))}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Nu(r.formats,i),this.formatters=o&&o.formatters||zu(this.formatterCache)}return Object.defineProperty(r,"defaultLocale",{get:function(){return r.memoizedDefaultLocale||(r.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),r.memoizedDefaultLocale},enumerable:!1,configurable:!0}),r.memoizedDefaultLocale=null,r.resolveLocale=function(e){if(typeof Intl.Locale!="undefined"){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale(typeof e=="string"?e:e[0])}},r.__parse=ku,r.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},r}();function Lu(r,e){if(e==null)return;if(e in r)return r[e];const t=e.split(".");let i=r;for(let o=0;o<t.length;o++)if(typeof i=="object"){if(o>0){const n=t.slice(o,t.length).join(".");if(n in i){i=i[n];break}}i=i[t[o]]}else i=void 0;return i}const bt={},Hu=(r,e,t)=>t&&(e in bt||(bt[e]={}),r in bt[e]||(bt[e][r]=t),t),Dl=(r,e)=>{if(e==null)return;if(e in bt&&r in bt[e])return bt[e][r];const t=Gi(e);for(let i=0;i<t.length;i++){const o=t[i],n=Fu(o,r);if(n)return Hu(r,e,n)}};let An;const Ur=Wi({});function Ru(r){return An[r]||null}function Ol(r){return r in An}function Fu(r,e){if(!Ol(r))return null;const t=Ru(r);return Lu(t,e)}function $u(r){if(r==null)return;const e=Gi(r);for(let t=0;t<e.length;t++){const i=e[t];if(Ol(i))return i}}function Ml(r,...e){delete bt[r],Ur.update(t=>(t[r]=jc.all([t[r]||{},...e]),t))}ar([Ur],([r])=>Object.keys(r));Ur.subscribe(r=>An=r);const xi={};function Vu(r,e){xi[r].delete(e),xi[r].size===0&&delete xi[r]}function Nl(r){return xi[r]}function Wu(r){return Gi(r).map(e=>{const t=Nl(e);return[e,t?[...t]:[]]}).filter(([,e])=>e.length>0)}function Ko(r){return r==null?!1:Gi(r).some(e=>{var t;return(t=Nl(e))==null?void 0:t.size})}function ju(r,e){return Promise.all(e.map(i=>(Vu(r,i),i().then(o=>o.default||o)))).then(i=>Ml(r,...i))}const vr={};function zl(r){if(!Ko(r))return r in vr?vr[r]:Promise.resolve();const e=Wu(r);return vr[r]=Promise.all(e.map(([t,i])=>ju(t,i))).then(()=>{if(Ko(r))return zl(r);delete vr[r]}),vr[r]}const Uu={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},Gu={fallbackLocale:null,loadingDelay:200,formats:Uu,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},qu=Gu;function tr(){return qu}const bo=Wi(!1);var Yu=Object.defineProperty,Xu=Object.defineProperties,Ku=Object.getOwnPropertyDescriptors,Is=Object.getOwnPropertySymbols,Zu=Object.prototype.hasOwnProperty,Ju=Object.prototype.propertyIsEnumerable,Ds=(r,e,t)=>e in r?Yu(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Qu=(r,e)=>{for(var t in e||(e={}))Zu.call(e,t)&&Ds(r,t,e[t]);if(Is)for(var t of Is(e))Ju.call(e,t)&&Ds(r,t,e[t]);return r},ep=(r,e)=>Xu(r,Ku(e));let Zo;const Ai=Wi(null);function Os(r){return r.split("-").map((e,t,i)=>i.slice(0,t+1).join("-")).reverse()}function Gi(r,e=tr().fallbackLocale){const t=Os(r);return e?[...new Set([...t,...Os(e)])]:t}function zt(){return Zo!=null?Zo:void 0}Ai.subscribe(r=>{Zo=r!=null?r:void 0,typeof window!="undefined"&&r!=null&&document.documentElement.setAttribute("lang",r)});const tp=r=>{if(r&&$u(r)&&Ko(r)){const{loadingDelay:e}=tr();let t;return typeof window!="undefined"&&zt()!=null&&e?t=window.setTimeout(()=>bo.set(!0),e):bo.set(!0),zl(r).then(()=>{Ai.set(r)}).finally(()=>{clearTimeout(t),bo.set(!1)})}return Ai.set(r)},lr=ep(Qu({},Ai),{set:tp}),qi=r=>{const e=Object.create(null);return i=>{const o=JSON.stringify(i);return o in e?e[o]:e[o]=r(i)}};var rp=Object.defineProperty,Pi=Object.getOwnPropertySymbols,Bl=Object.prototype.hasOwnProperty,Ll=Object.prototype.propertyIsEnumerable,Ms=(r,e,t)=>e in r?rp(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Pn=(r,e)=>{for(var t in e||(e={}))Bl.call(e,t)&&Ms(r,t,e[t]);if(Pi)for(var t of Pi(e))Ll.call(e,t)&&Ms(r,t,e[t]);return r},hr=(r,e)=>{var t={};for(var i in r)Bl.call(r,i)&&e.indexOf(i)<0&&(t[i]=r[i]);if(r!=null&&Pi)for(var i of Pi(r))e.indexOf(i)<0&&Ll.call(r,i)&&(t[i]=r[i]);return t};const Dr=(r,e)=>{const{formats:t}=tr();if(r in t&&e in t[r])return t[r][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${r} format.`)},ip=qi(r=>{var e=r,{locale:t,format:i}=e,o=hr(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(o=Dr("number",i)),new Intl.NumberFormat(t,o)}),op=qi(r=>{var e=r,{locale:t,format:i}=e,o=hr(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?o=Dr("date",i):Object.keys(o).length===0&&(o=Dr("date","short")),new Intl.DateTimeFormat(t,o)}),np=qi(r=>{var e=r,{locale:t,format:i}=e,o=hr(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?o=Dr("time",i):Object.keys(o).length===0&&(o=Dr("time","short")),new Intl.DateTimeFormat(t,o)}),sp=(r={})=>{var e=r,{locale:t=zt()}=e,i=hr(e,["locale"]);return ip(Pn({locale:t},i))},ap=(r={})=>{var e=r,{locale:t=zt()}=e,i=hr(e,["locale"]);return op(Pn({locale:t},i))},lp=(r={})=>{var e=r,{locale:t=zt()}=e,i=hr(e,["locale"]);return np(Pn({locale:t},i))},hp=qi((r,e=zt())=>new Bu(r,e,tr().formats,{ignoreTag:tr().ignoreTag})),dp=(r,e={})=>{var t,i,o,n;let s=e;typeof r=="object"&&(s=r,r=s.id);const{values:a,locale:l=zt(),default:h}=s;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let d=Dl(r,l);if(!d)d=(n=(o=(i=(t=tr()).handleMissingMessage)==null?void 0:i.call(t,{locale:l,id:r,defaultValue:h}))!=null?o:h)!=null?n:r;else if(typeof d!="string")return console.warn(`[svelte-i18n] Message with id "${r}" must be of type "string", found: "${typeof d}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),d;if(!a)return d;let c=d;try{c=hp(d,l).format(a)}catch(u){u instanceof Error&&console.warn(`[svelte-i18n] Message "${r}" has syntax error:`,u.message)}return c},cp=(r,e)=>lp(e).format(r),up=(r,e)=>ap(e).format(r),pp=(r,e)=>sp(e).format(r),mp=(r,e=zt())=>Dl(r,e),fp=ar([lr,Ur],()=>dp);ar([lr],()=>cp);ar([lr],()=>up);ar([lr],()=>pp);ar([lr,Ur],()=>mp);window.emWidgets={topic:kc};const _p=r=>r.toLowerCase().match(/android/i)?"Android":r.toLowerCase().match(/iphone/i)?"iPhone":r.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";String(Number.MAX_SAFE_INTEGER).length;function Ns(r,e){Ml(r,e)}function vp(r){lr.set(r)}const zs={en:{headerTitle:"Historical Transactions",Casino:"Casino",Sports:"Sports",Payments:"Payments",dateFrom:"Period From",dateTo:"Period To",dateFilter:"Filter",InvalidSession:"The session you are using is invalid, please check..",checkPeriod:"Please select other period in order to see data.",Type:"Type",Status:"Status",Amount:"Amount",Currency:"Currency",Date:"Date","Game Name":"Game Name",Date:"Transaction ID","Bet Amount":"Bet Amount","Win Amount":"Win Amount","Transaction ID":"Transaction ID",Stake:"Stake",Description:"Description","Bet Part":"Bet Part","Bet Type":"Bet Type","Free Bet":"Free Bet","Win Type":"Win Type","Play Type":"Play Type","Bet Adjustment":"Bet Adjustment","Bet ID":"Bet ID",Price:"Price",Selection:"Selection",Market:"Market",Sport:"Sport",Date:"Date",Sport:"Sport",Sport:"Sport",Multiple:"Multiple",Winnings:"Winnings"},"zh-hk":{headerTitle:"历史交易",Casino:"赌场",Sports:"体育",Payments:"付款",dateFrom:"开始日期",dateTo:"结束日期",dateFilter:"筛选",InvalidSession:"您使用的会话无效,请检查。",checkPeriod:"请选择其他时间段以查看数据。",Type:"类型",Status:"状态",Amount:"金额",Currency:"货币",Date:"日期","Game Name":"游戏名称","Transaction ID":"交易ID","Bet Amount":"投注金额","Win Amount":"赢取金额",Stake:"赌注",Description:"描述","Bet Part":"投注部分","Bet Type":"投注类型","Free Bet":"免费投注","Win Type":"赢取类型","Play Type":"播放類型","Bet Adjustment":"投注调整","Bet ID":"投注ID",Price:"价格",Selection:"选择",Market:"市场",Sport:"体育",Multiple:"多重",Winnings:"獲勝"},fr:{headerTitle:"Transactions Historiques",Casino:"Casino",Sports:"Sports",Payments:"Paiements",dateFrom:"Période De",dateTo:"Période À",dateFilter:"Filtrer",InvalidSession:"La session que vous utilisez est invalide, veuillez vérifier.",checkPeriod:"Veuillez sélectionner une autre période pour voir les données.",Type:"Type",Status:"Statut",Amount:"Montant",Currency:"Devise",Date:"Date","Game Name":"Nom du Jeu","Transaction ID":"ID de Transaction","Bet Amount":"Montant du Pari","Win Amount":"Montant Gagné",Stake:"Mise",Description:"Description","Bet Part":"Partie du Pari","Bet Type":"Type de Pari","Free Bet":"Pari Gratuit","Win Type":"Type de Gain","Play Type":"Type de lecture","Bet Adjustment":"Ajustement du Pari","Bet ID":"ID du Pari",Price:"Prix",Selection:"Sélection",Market:"Marché",Sport:"Sport",Multiple:"Multiple",Winnings:"Gains"},ro:{headerTitle:"Tranzacții Istorice",Casino:"Cazinou",Sports:"Sporturi",Payments:"Plăți",dateFrom:"Perioada De",dateTo:"Perioada Până",dateFilter:"Filtru",InvalidSession:"Sesiunea pe care o utilizați este invalidă, vă rugăm să verificați.",checkPeriod:"Vă rugăm să selectați o altă perioadă pentru a vedea datele.",Type:"Tip",Status:"Stare",Amount:"Sumă",Currency:"Monedă",Date:"Data","Game Name":"Numele Jocului","Transaction ID":"ID-ul Tranzacției","Bet Amount":"Suma Pariei","Win Amount":"Suma Câștigată",Stake:"Miză",Description:"Descriere","Bet Part":"Partea Pariei","Bet Type":"Tipul Pariei","Free Bet":"Pariu Gratuit","Win Type":"Tipul Câștigului","Play Type":"Tip de redare","Bet Adjustment":"Ajustarea Pariei","Bet ID":"ID-ul Pariei",Price:"Preț",Selection:"Selecție",Market:"Piață",Sport:"Sport",Multiple:"Multiplu",Winnings:"Câștiguri"},es:{headerTitle:"Transacciones Históricas",Casino:"Casino",Sports:"Deportes",Payments:"Pagos",dateFrom:"Período Desde",dateTo:"Período Hasta",dateFilter:"Filtrar",InvalidSession:"La sesión que está utilizando es inválida, por favor verifique.",checkPeriod:"Por favor seleccione otro período para ver los datos.",Type:"Tipo",Status:"Estado",Amount:"Cantidad",Currency:"Moneda",Date:"Fecha","Game Name":"Nombre del Juego","Transaction ID":"ID de Transacción","Bet Amount":"Cantidad Apostada","Win Amount":"Cantidad Ganada",Stake:"Apuesta",Description:"Descripción","Bet Part":"Parte de la Apuesta","Bet Type":"Tipo de Apuesta","Free Bet":"Apuesta Gratis","Win Type":"Tipo de Ganancia","Play Type":"Tipo de reproducción","Bet Adjustment":"Ajuste de Apuesta","Bet ID":"ID de Apuesta",Price:"Precio",Selection:"Selección",Market:"Mercado",Sport:"Deporte",Multiple:"Múltiple",Winnings:"Ganancias"},pt:{headerTitle:"Transações Históricas",Casino:"Cassino",Sports:"Esportes",Payments:"Pagamentos",dateFrom:"Período De",dateTo:"Período Até",dateFilter:"Filtrar",InvalidSession:"A sessão que você está usando é inválida, por favor verifique.",checkPeriod:"Por favor selecione outro período para ver os dados.",Type:"Tipo",Status:"Status",Amount:"Quantia",Currency:"Moeda",Date:"Data","Game Name":"Nome do Jogo","Transaction ID":"ID da Transação","Bet Amount":"Quantia Apostada","Win Amount":"Quantia Ganha",Stake:"Aposta",Description:"Descrição","Bet Part":"Parte da Aposta","Bet Type":"Tipo de Aposta","Free Bet":"Aposta Grátis","Win Type":"Tipo de Ganho","Play Type":"Tipo de reprodução","Bet Adjustment":"Ajuste de Aposta","Bet ID":"ID da Aposta",Price:"Preço",Selection:"Seleção",Market:"Mercado",Sport:"Esporte",Multiple:"Múltiplo",Winnings:"Ganhos"},hr:{headerTitle:"Povijesne Transakcije",Casino:"Casino",Sports:"Sportovi",Payments:"Plaćanja",dateFrom:"Razdoblje Od",dateTo:"Razdoblje Do",dateFilter:"Filtriraj",InvalidSession:"Sesija koju koristite je nevažeća, molimo provjerite.",checkPeriod:"Molimo odaberite drugo razdoblje za pregled podataka.",Type:"Vrsta",Status:"Status",Amount:"Iznos",Currency:"Valuta",Date:"Datum","Game Name":"Naziv Igre","Transaction ID":"ID Transakcije","Bet Amount":"Iznos Oklade","Win Amount":"Iznos Dobitka",Stake:"Ulog",Description:"Opis","Bet Part":"Dio Oklade","Bet Type":"Vrsta Oklade","Free Bet":"Besplatna Oklada","Win Type":"Vrsta Dobitka","Play Type":"Vrsta reprodukcije","Bet Adjustment":"Prilagodba Oklade","Bet ID":"ID Oklade",Price:"Cijena",Selection:"Izbor",Market:"Tržište",Sport:"Sport",Multiple:"Višestruko",Winnings:"Dobitci"},"pt-br":{headerTitle:"Transações Históricas",Casino:"Cassino",Sports:"Esportes",Payments:"Pagamentos",dateFrom:"Período De",dateTo:"Período Até",dateFilter:"Filtrar",InvalidSession:"A sessão que você está usando é inválida, por favor verifique.",checkPeriod:"Por favor selecione outro período para ver os dados.",Type:"Tipo",Status:"Status",Amount:"Quantia",Currency:"Moeda",Date:"Data","Game Name":"Nome do Jogo","Transaction ID":"ID da Transação","Bet Amount":"Quantia Apostada","Win Amount":"Quantia Ganha",Stake:"Aposta",Description:"Descrição","Bet Part":"Parte da Aposta","Bet Type":"Tipo de Aposta","Free Bet":"Aposta Grátis","Win Type":"Tipo de Ganho","Play Type":"Tipo de reprodução","Bet Adjustment":"Ajuste de Aposta","Bet ID":"ID da Aposta",Price:"Preço",Selection:"Seleção",Market:"Mercado",Sport:"Esporte",Multiple:"Múltiplo",Winnings:"Ganhos"},"es-mx":{headerTitle:"Transacciones Históricas",Casino:"Casino",Sports:"Deportes",Payments:"Pagos",dateFrom:"Período Desde",dateTo:"Período Hasta",dateFilter:"Filtrar",InvalidSession:"La sesión que está utilizando es inválida, por favor verifique.",checkPeriod:"Por favor seleccione otro período para ver los datos.",Type:"Tipo",Status:"Estado",Amount:"Cantidad",Currency:"Moneda",Date:"Fecha","Game Name":"Nombre del Juego","Transaction ID":"ID de Transacción","Bet Amount":"Cantidad Apostada","Win Amount":"Cantidad Ganada",Stake:"Apuesta",Description:"Descripción","Bet Part":"Parte de la Apuesta","Bet Type":"Tipo de Apuesta","Free Bet":"Apuesta Gratis","Win Type":"Tipo de Ganancia","Play Type":"Tipo de reproducción","Bet Adjustment":"Ajuste de Apuesta","Bet ID":"ID de Apuesta",Price:"Precio",Selection:"Selección",Market:"Mercado",Sport:"Deporte",Multiple:"Múltiple",Winnings:"Ganancias"},tr:{headerTitle:"Geçmiş İşlemler",Casino:"Casino",Sports:"Sporlar",Payments:"Ödemeler",dateFrom:"Dönemden",dateTo:"Döneme",dateFilter:"Filtre",InvalidSession:"Kullandığınız oturum geçersiz, lütfen kontrol edin.",checkPeriod:"Verileri görmek için lütfen başka bir dönem seçin.",Type:"Tür",Status:"Durum",Amount:"Miktar",Currency:"Para Birimi",Date:"Tarih","Game Name":"Oyun Adı","Transaction ID":"İşlem ID","Bet Amount":"Bahis Miktarı","Win Amount":"Kazanç Miktarı",Stake:"Bahis",Description:"Açıklama","Bet Part":"Bahis Bölümü","Bet Type":"Bahis Türü","Free Bet":"Ücretsiz Bahis","Win Type":"Kazanç Türü","Play Type":"Oynatma Türü","Bet Adjustment":"Bahis Ayarı","Bet ID":"Bahis ID",Price:"Fiyat",Selection:"Seçim",Market:"Pazar",Sport:"Spor",Multiple:"Çoklu",Winnings:"Kazanan"},"en-us":{headerTitle:"Historical Transactions",Casino:"Casino",Sports:"Sports",Payments:"Payments",dateFrom:"Period From",dateTo:"Period To",dateFilter:"Filter",InvalidSession:"The session you are using is invalid, please check..",checkPeriod:"Please select other period in order to see data.",Type:"Type",Status:"Status",Amount:"Amount",Currency:"Currency",Date:"Date","Game Name":"Game Name",Date:"Transaction ID","Bet Amount":"Bet Amount","Win Amount":"Win Amount","Transaction ID":"Transaction ID",Stake:"Stake",Description:"Description","Bet Part":"Bet Part","Bet Type":"Bet Type","Free Bet":"Free Bet","Win Type":"Win Type","Play Type":"Play Type","Bet Adjustment":"Bet Adjustment","Bet ID":"Bet ID",Price:"Price",Selection:"Selection",Market:"Market",Sport:"Sport",Date:"Date",Sport:"Sport",Sport:"Sport",Multiple:"Multiple",Winnings:"Winnings"}};var Hl={exports:{}};(function(r,e){(function(t,i){r.exports=i()})(pl,function(){var t=1e3,i=6e4,o=36e5,n="millisecond",s="second",a="minute",l="hour",h="day",d="week",c="month",u="quarter",m="year",g="date",_="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,D=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,A={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(B){var w=["th","st","nd","rd"],C=B%100;return"["+B+(w[(C-20)%10]||w[C]||w[0])+"]"}},M=function(B,w,C){var T=String(B);return!T||T.length>=w?B:""+Array(w+1-T.length).join(C)+B},R={s:M,z:function(B){var w=-B.utcOffset(),C=Math.abs(w),T=Math.floor(C/60),x=C%60;return(w<=0?"+":"-")+M(T,2,"0")+":"+M(x,2,"0")},m:function B(w,C){if(w.date()<C.date())return-B(C,w);var T=12*(C.year()-w.year())+(C.month()-w.month()),x=w.clone().add(T,c),N=C-x<0,z=w.clone().add(T+(N?-1:1),c);return+(-(T+(C-x)/(N?x-z:z-x))||0)},a:function(B){return B<0?Math.ceil(B)||0:Math.floor(B)},p:function(B){return{M:c,y:m,w:d,d:h,D:g,h:l,m:a,s,ms:n,Q:u}[B]||String(B||"").toLowerCase().replace(/s$/,"")},u:function(B){return B===void 0}},W="en",Q={};Q[W]=A;var S="$isDayjsObject",P=function(B){return B instanceof he||!(!B||!B[S])},b=function B(w,C,T){var x;if(!w)return W;if(typeof w=="string"){var N=w.toLowerCase();Q[N]&&(x=N),C&&(Q[N]=C,x=N);var z=w.split("-");if(!x&&z.length>1)return B(z[0])}else{var V=w.name;Q[V]=w,x=V}return!T&&x&&(W=x),x||!T&&W},O=function(B,w){if(P(B))return B.clone();var C=typeof w=="object"?w:{};return C.date=B,C.args=arguments,new he(C)},$=R;$.l=b,$.i=P,$.w=function(B,w){return O(B,{locale:w.$L,utc:w.$u,x:w.$x,$offset:w.$offset})};var he=function(){function B(C){this.$L=b(C.locale,null,!0),this.parse(C),this.$x=this.$x||C.x||{},this[S]=!0}var w=B.prototype;return w.parse=function(C){this.$d=function(T){var x=T.date,N=T.utc;if(x===null)return new Date(NaN);if($.u(x))return new Date;if(x instanceof Date)return new Date(x);if(typeof x=="string"&&!/Z$/i.test(x)){var z=x.match(y);if(z){var V=z[2]-1||0,q=(z[7]||"0").substring(0,3);return N?new Date(Date.UTC(z[1],V,z[3]||1,z[4]||0,z[5]||0,z[6]||0,q)):new Date(z[1],V,z[3]||1,z[4]||0,z[5]||0,z[6]||0,q)}}return new Date(x)}(C),this.init()},w.init=function(){var C=this.$d;this.$y=C.getFullYear(),this.$M=C.getMonth(),this.$D=C.getDate(),this.$W=C.getDay(),this.$H=C.getHours(),this.$m=C.getMinutes(),this.$s=C.getSeconds(),this.$ms=C.getMilliseconds()},w.$utils=function(){return $},w.isValid=function(){return this.$d.toString()!==_},w.isSame=function(C,T){var x=O(C);return this.startOf(T)<=x&&x<=this.endOf(T)},w.isAfter=function(C,T){return O(C)<this.startOf(T)},w.isBefore=function(C,T){return this.endOf(T)<O(C)},w.$g=function(C,T,x){return $.u(C)?this[T]:this.set(x,C)},w.unix=function(){return Math.floor(this.valueOf()/1e3)},w.valueOf=function(){return this.$d.getTime()},w.startOf=function(C,T){var x=this,N=!!$.u(T)||T,z=$.p(C),V=function(be,ue){var fe=$.w(x.$u?Date.UTC(x.$y,ue,be):new Date(x.$y,ue,be),x);return N?fe:fe.endOf(h)},q=function(be,ue){return $.w(x.toDate()[be].apply(x.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(ue)),x)},oe=this.$W,ne=this.$M,se=this.$D,we="set"+(this.$u?"UTC":"");switch(z){case m:return N?V(1,0):V(31,11);case c:return N?V(1,ne):V(0,ne+1);case d:var ce=this.$locale().weekStart||0,Oe=(oe<ce?oe+7:oe)-ce;return V(N?se-Oe:se+(6-Oe),ne);case h:case g:return q(we+"Hours",0);case l:return q(we+"Minutes",1);case a:return q(we+"Seconds",2);case s:return q(we+"Milliseconds",3);default:return this.clone()}},w.endOf=function(C){return this.startOf(C,!1)},w.$set=function(C,T){var x,N=$.p(C),z="set"+(this.$u?"UTC":""),V=(x={},x[h]=z+"Date",x[g]=z+"Date",x[c]=z+"Month",x[m]=z+"FullYear",x[l]=z+"Hours",x[a]=z+"Minutes",x[s]=z+"Seconds",x[n]=z+"Milliseconds",x)[N],q=N===h?this.$D+(T-this.$W):T;if(N===c||N===m){var oe=this.clone().set(g,1);oe.$d[V](q),oe.init(),this.$d=oe.set(g,Math.min(this.$D,oe.daysInMonth())).$d}else V&&this.$d[V](q);return this.init(),this},w.set=function(C,T){return this.clone().$set(C,T)},w.get=function(C){return this[$.p(C)]()},w.add=function(C,T){var x,N=this;C=Number(C);var z=$.p(T),V=function(ne){var se=O(N);return $.w(se.date(se.date()+Math.round(ne*C)),N)};if(z===c)return this.set(c,this.$M+C);if(z===m)return this.set(m,this.$y+C);if(z===h)return V(1);if(z===d)return V(7);var q=(x={},x[a]=i,x[l]=o,x[s]=t,x)[z]||1,oe=this.$d.getTime()+C*q;return $.w(oe,this)},w.subtract=function(C,T){return this.add(-1*C,T)},w.format=function(C){var T=this,x=this.$locale();if(!this.isValid())return x.invalidDate||_;var N=C||"YYYY-MM-DDTHH:mm:ssZ",z=$.z(this),V=this.$H,q=this.$m,oe=this.$M,ne=x.weekdays,se=x.months,we=x.meridiem,ce=function(ue,fe,ke,ze){return ue&&(ue[fe]||ue(T,N))||ke[fe].slice(0,ze)},Oe=function(ue){return $.s(V%12||12,ue,"0")},be=we||function(ue,fe,ke){var ze=ue<12?"AM":"PM";return ke?ze.toLowerCase():ze};return N.replace(D,function(ue,fe){return fe||function(ke){switch(ke){case"YY":return String(T.$y).slice(-2);case"YYYY":return $.s(T.$y,4,"0");case"M":return oe+1;case"MM":return $.s(oe+1,2,"0");case"MMM":return ce(x.monthsShort,oe,se,3);case"MMMM":return ce(se,oe);case"D":return T.$D;case"DD":return $.s(T.$D,2,"0");case"d":return String(T.$W);case"dd":return ce(x.weekdaysMin,T.$W,ne,2);case"ddd":return ce(x.weekdaysShort,T.$W,ne,3);case"dddd":return ne[T.$W];case"H":return String(V);case"HH":return $.s(V,2,"0");case"h":return Oe(1);case"hh":return Oe(2);case"a":return be(V,q,!0);case"A":return be(V,q,!1);case"m":return String(q);case"mm":return $.s(q,2,"0");case"s":return String(T.$s);case"ss":return $.s(T.$s,2,"0");case"SSS":return $.s(T.$ms,3,"0");case"Z":return z}return null}(ue)||z.replace(":","")})},w.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},w.diff=function(C,T,x){var N,z=this,V=$.p(T),q=O(C),oe=(q.utcOffset()-this.utcOffset())*i,ne=this-q,se=function(){return $.m(z,q)};switch(V){case m:N=se()/12;break;case c:N=se();break;case u:N=se()/3;break;case d:N=(ne-oe)/6048e5;break;case h:N=(ne-oe)/864e5;break;case l:N=ne/o;break;case a:N=ne/i;break;case s:N=ne/t;break;default:N=ne}return x?N:$.a(N)},w.daysInMonth=function(){return this.endOf(c).$D},w.$locale=function(){return Q[this.$L]},w.locale=function(C,T){if(!C)return this.$L;var x=this.clone(),N=b(C,T,!0);return N&&(x.$L=N),x},w.clone=function(){return $.w(this.$d,this)},w.toDate=function(){return new Date(this.valueOf())},w.toJSON=function(){return this.isValid()?this.toISOString():null},w.toISOString=function(){return this.$d.toISOString()},w.toString=function(){return this.$d.toUTCString()},B}(),de=he.prototype;return O.prototype=de,[["$ms",n],["$s",s],["$m",a],["$H",l],["$W",h],["$M",c],["$y",m],["$D",g]].forEach(function(B){de[B[1]]=function(w){return this.$g(w,B[0],B[1])}}),O.extend=function(B,w){return B.$i||(B(w,he,O),B.$i=!0),O},O.locale=b,O.isDayjs=P,O.unix=function(B){return O(1e3*B)},O.en=Q[W],O.Ls=Q,O.p={},O})})(Hl);var gp=Hl.exports;const hi=Sn(gp);var Rl={exports:{}};(function(r,e){(function(t,i){r.exports=i()})(pl,function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},i=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,n=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,a={},l=function(_){return(_=+_)+(_>68?1900:2e3)},h=function(_){return function(y){this[_]=+y}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(_){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var D=y.match(/([+-]|\d\d)/g),A=60*D[1]+(+D[2]||0);return A===0?0:D[0]==="+"?-A:A}(_)}],c=function(_){var y=a[_];return y&&(y.indexOf?y:y.s.concat(y.f))},u=function(_,y){var D,A=a.meridiem;if(A){for(var M=1;M<=24;M+=1)if(_.indexOf(A(M,0,y))>-1){D=M>12;break}}else D=_===(y?"pm":"PM");return D},m={A:[s,function(_){this.afternoon=u(_,!1)}],a:[s,function(_){this.afternoon=u(_,!0)}],S:[/\d/,function(_){this.milliseconds=100*+_}],SS:[o,function(_){this.milliseconds=10*+_}],SSS:[/\d{3}/,function(_){this.milliseconds=+_}],s:[n,h("seconds")],ss:[n,h("seconds")],m:[n,h("minutes")],mm:[n,h("minutes")],H:[n,h("hours")],h:[n,h("hours")],HH:[n,h("hours")],hh:[n,h("hours")],D:[n,h("day")],DD:[o,h("day")],Do:[s,function(_){var y=a.ordinal,D=_.match(/\d+/);if(this.day=D[0],y)for(var A=1;A<=31;A+=1)y(A).replace(/\[|\]/g,"")===_&&(this.day=A)}],M:[n,h("month")],MM:[o,h("month")],MMM:[s,function(_){var y=c("months"),D=(c("monthsShort")||y.map(function(A){return A.slice(0,3)})).indexOf(_)+1;if(D<1)throw new Error;this.month=D%12||D}],MMMM:[s,function(_){var y=c("months").indexOf(_)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,h("year")],YY:[o,function(_){this.year=l(_)}],YYYY:[/\d{4}/,h("year")],Z:d,ZZ:d};function g(_){var y,D;y=_,D=a&&a.formats;for(var A=(_=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(b,O,$){var he=$&&$.toUpperCase();return O||D[$]||t[$]||D[he].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(de,B,w){return B||w.slice(1)})})).match(i),M=A.length,R=0;R<M;R+=1){var W=A[R],Q=m[W],S=Q&&Q[0],P=Q&&Q[1];A[R]=P?{regex:S,parser:P}:W.replace(/^\[|\]$/g,"")}return function(b){for(var O={},$=0,he=0;$<M;$+=1){var de=A[$];if(typeof de=="string")he+=de.length;else{var B=de.regex,w=de.parser,C=b.slice(he),T=B.exec(C)[0];w.call(O,T),b=b.replace(T,"")}}return function(x){var N=x.afternoon;if(N!==void 0){var z=x.hours;N?z<12&&(x.hours+=12):z===12&&(x.hours=0),delete x.afternoon}}(O),O}}return function(_,y,D){D.p.customParseFormat=!0,_&&_.parseTwoDigitYear&&(l=_.parseTwoDigitYear);var A=y.prototype,M=A.parse;A.parse=function(R){var W=R.date,Q=R.utc,S=R.args;this.$u=Q;var P=S[1];if(typeof P=="string"){var b=S[2]===!0,O=S[3]===!0,$=b||O,he=S[2];O&&(he=S[2]),a=this.$locale(),!b&&he&&(a=D.Ls[he]),this.$d=function(C,T,x){try{if(["x","X"].indexOf(T)>-1)return new Date((T==="X"?1e3:1)*C);var N=g(T)(C),z=N.year,V=N.month,q=N.day,oe=N.hours,ne=N.minutes,se=N.seconds,we=N.milliseconds,ce=N.zone,Oe=new Date,be=q||(z||V?1:Oe.getDate()),ue=z||Oe.getFullYear(),fe=0;z&&!V||(fe=V>0?V-1:Oe.getMonth());var ke=oe||0,ze=ne||0,Ke=se||0,dt=we||0;return ce?new Date(Date.UTC(ue,fe,be,ke,ze,Ke,dt+60*ce.offset*1e3)):x?new Date(Date.UTC(ue,fe,be,ke,ze,Ke,dt)):new Date(ue,fe,be,ke,ze,Ke,dt)}catch(tt){return new Date("")}}(W,P,Q),this.init(),he&&he!==!0&&(this.$L=this.locale(he).$L),$&&W!=this.format(P)&&(this.$d=new Date("")),a={}}else if(P instanceof Array)for(var de=P.length,B=1;B<=de;B+=1){S[1]=P[B-1];var w=D.apply(this,S);if(w.isValid()){this.$d=w.$d,this.$L=w.$L,this.init();break}B===de&&(this.$d=new Date(""))}else M.call(this,R)}}})})(Rl);var bp=Rl.exports;const yp=Sn(bp);var xp=Object.defineProperty,wp=Object.defineProperties,Cp=Object.getOwnPropertyDescriptors,Bs=Object.getOwnPropertySymbols,Ep=Object.prototype.hasOwnProperty,Sp=Object.prototype.propertyIsEnumerable,Jo=(r,e,t)=>e in r?xp(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,ki=(r,e)=>{for(var t in e||(e={}))Ep.call(e,t)&&Jo(r,t,e[t]);if(Bs)for(var t of Bs(e))Sp.call(e,t)&&Jo(r,t,e[t]);return r},Fl=(r,e)=>wp(r,Cp(e)),Te=(r,e,t)=>(Jo(r,typeof e!="symbol"?e+"":e,t),t),Ti=(r,e,t)=>new Promise((i,o)=>{var n=l=>{try{a(t.next(l))}catch(h){o(h)}},s=l=>{try{a(t.throw(l))}catch(h){o(h)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(n,s);a((t=t.apply(r,e)).next())});/**
18
+ `,ti.MISSING_INTL_API,s);var R=t.getPluralRules(e,{type:d.pluralType}).select(u-(d.offset||0));M=d.options[R]||d.options.other}if(!M)throw new ks(d.value,u,Object.keys(d.options),s);a.push.apply(a,br(M.value,e,t,r,o,u-(d.offset||0)));continue}}return Tu(a)}function Du(i,e){return e?ie(ie(ie({},i||{}),e||{}),Object.keys(i).reduce(function(t,r){return t[r]=ie(ie({},i[r]),e[r]||{}),t},{})):i}function Ou(i,e){return e?Object.keys(i).reduce(function(t,r){return t[r]=Du(i[r],e[r]),t},ie({},i)):i}function _o(i){return{create:function(){return{get:function(e){return i[e]},set:function(e,t){i[e]=t}}}}}function Mu(i){return i===void 0&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:uo(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,qt([void 0],t,!1)))},{cache:_o(i.number),strategy:po.variadic}),getDateTimeFormat:uo(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,qt([void 0],t,!1)))},{cache:_o(i.dateTime),strategy:po.variadic}),getPluralRules:uo(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,qt([void 0],t,!1)))},{cache:_o(i.pluralRules),strategy:po.variadic})}}var Nu=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,u){return!c.length||u.type!==Me.literal||typeof c[c.length-1]!="string"?c.push(u.value):c[c.length-1]+=u.value,c},[]);return d.length<=1?d[0]||"":d},this.formatToParts=function(l){return br(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=mc(s,["formatters"]);this.ast=i.__parse(e,ie(ie({},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||Mu(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=Au,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 zu(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 bt={},Bu=(i,e,t)=>t&&(e in bt||(bt[e]={}),i in bt[e]||(bt[e][i]=t),t),Dl=(i,e)=>{if(e==null)return;if(e in bt&&i in bt[e])return bt[e][i];const t=Wr(e);for(let r=0;r<t.length;r++){const o=t[r],n=Hu(o,i);if(n)return Bu(i,e,n)}};let Cn;const ji=Vr({});function Lu(i){return Cn[i]||null}function Ol(i){return i in Cn}function Hu(i,e){if(!Ol(i))return null;const t=Lu(i);return zu(t,e)}function Ru(i){if(i==null)return;const e=Wr(i);for(let t=0;t<e.length;t++){const r=e[t];if(Ol(r))return r}}function Ml(i,...e){delete bt[i],ji.update(t=>(t[i]=jc.all([t[i]||{},...e]),t))}li([ji],([i])=>Object.keys(i));ji.subscribe(i=>Cn=i);const yr={};function Fu(i,e){yr[i].delete(e),yr[i].size===0&&delete yr[i]}function Nl(i){return yr[i]}function Vu(i){return Wr(i).map(e=>{const t=Nl(e);return[e,t?[...t]:[]]}).filter(([,e])=>e.length>0)}function Uo(i){return i==null?!1:Wr(i).some(e=>{var t;return(t=Nl(e))==null?void 0:t.size})}function $u(i,e){return Promise.all(e.map(r=>(Fu(i,r),r().then(o=>o.default||o)))).then(r=>Ml(i,...r))}const gi={};function zl(i){if(!Uo(i))return i in gi?gi[i]:Promise.resolve();const e=Vu(i);return gi[i]=Promise.all(e.map(([t,r])=>$u(t,r))).then(()=>{if(Uo(i))return zl(i);delete gi[i]}),gi[i]}const Wu={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"}}},ju={fallbackLocale:null,loadingDelay:200,formats:Wu,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Uu=ju;function ii(){return Uu}const fo=Vr(!1);var Gu=Object.defineProperty,qu=Object.defineProperties,Yu=Object.getOwnPropertyDescriptors,Ts=Object.getOwnPropertySymbols,Xu=Object.prototype.hasOwnProperty,Ku=Object.prototype.propertyIsEnumerable,Is=(i,e,t)=>e in i?Gu(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Zu=(i,e)=>{for(var t in e||(e={}))Xu.call(e,t)&&Is(i,t,e[t]);if(Ts)for(var t of Ts(e))Ku.call(e,t)&&Is(i,t,e[t]);return i},Ju=(i,e)=>qu(i,Yu(e));let Go;const Er=Vr(null);function Ds(i){return i.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Wr(i,e=ii().fallbackLocale){const t=Ds(i);return e?[...new Set([...t,...Ds(e)])]:t}function zt(){return Go!=null?Go:void 0}Er.subscribe(i=>{Go=i!=null?i:void 0,typeof window!="undefined"&&i!=null&&document.documentElement.setAttribute("lang",i)});const Qu=i=>{if(i&&Ru(i)&&Uo(i)){const{loadingDelay:e}=ii();let t;return typeof window!="undefined"&&zt()!=null&&e?t=window.setTimeout(()=>fo.set(!0),e):fo.set(!0),zl(i).then(()=>{Er.set(i)}).finally(()=>{clearTimeout(t),fo.set(!1)})}return Er.set(i)},hi=Ju(Zu({},Er),{set:Qu}),jr=i=>{const e=Object.create(null);return r=>{const o=JSON.stringify(r);return o in e?e[o]:e[o]=i(r)}};var ep=Object.defineProperty,Sr=Object.getOwnPropertySymbols,Bl=Object.prototype.hasOwnProperty,Ll=Object.prototype.propertyIsEnumerable,Os=(i,e,t)=>e in i?ep(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,En=(i,e)=>{for(var t in e||(e={}))Bl.call(e,t)&&Os(i,t,e[t]);if(Sr)for(var t of Sr(e))Ll.call(e,t)&&Os(i,t,e[t]);return i},di=(i,e)=>{var t={};for(var r in i)Bl.call(i,r)&&e.indexOf(r)<0&&(t[r]=i[r]);if(i!=null&&Sr)for(var r of Sr(i))e.indexOf(r)<0&&Ll.call(i,r)&&(t[r]=i[r]);return t};const Oi=(i,e)=>{const{formats:t}=ii();if(i in t&&e in t[i])return t[i][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${i} format.`)},tp=jr(i=>{var e=i,{locale:t,format:r}=e,o=di(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(o=Oi("number",r)),new Intl.NumberFormat(t,o)}),ip=jr(i=>{var e=i,{locale:t,format:r}=e,o=di(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?o=Oi("date",r):Object.keys(o).length===0&&(o=Oi("date","short")),new Intl.DateTimeFormat(t,o)}),rp=jr(i=>{var e=i,{locale:t,format:r}=e,o=di(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?o=Oi("time",r):Object.keys(o).length===0&&(o=Oi("time","short")),new Intl.DateTimeFormat(t,o)}),op=(i={})=>{var e=i,{locale:t=zt()}=e,r=di(e,["locale"]);return tp(En({locale:t},r))},np=(i={})=>{var e=i,{locale:t=zt()}=e,r=di(e,["locale"]);return ip(En({locale:t},r))},sp=(i={})=>{var e=i,{locale:t=zt()}=e,r=di(e,["locale"]);return rp(En({locale:t},r))},ap=jr((i,e=zt())=>new Nu(i,e,ii().formats,{ignoreTag:ii().ignoreTag})),lp=(i,e={})=>{var t,r,o,n;let s=e;typeof i=="object"&&(s=i,i=s.id);const{values:a,locale:l=zt(),default:h}=s;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let d=Dl(i,l);if(!d)d=(n=(o=(r=(t=ii()).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=ap(d,l).format(a)}catch(u){u instanceof Error&&console.warn(`[svelte-i18n] Message "${i}" has syntax error:`,u.message)}return c},hp=(i,e)=>sp(e).format(i),dp=(i,e)=>np(e).format(i),cp=(i,e)=>op(e).format(i),up=(i,e=zt())=>Dl(i,e),pp=li([hi,ji],()=>lp);li([hi],()=>hp);li([hi],()=>dp);li([hi],()=>cp);li([hi,ji],()=>up);window.emWidgets={topic:kc};const mp=i=>i.toLowerCase().match(/android/i)?"Android":i.toLowerCase().match(/iphone/i)?"iPhone":i.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";String(Number.MAX_SAFE_INTEGER).length;function Ms(i,e){Ml(i,e)}function _p(i){hi.set(i)}const Ns={en:{headerTitle:"Historical Transactions",Casino:"Casino",Sports:"Sports",Payments:"Payments",dateFrom:"Period From",dateTo:"Period To",dateFilter:"Filter",InvalidSession:"The session you are using is invalid, please check..",checkPeriod:"Please select other period in order to see data.",Type:"Type",Status:"Status",Amount:"Amount",Currency:"Currency",Date:"Date","Game Name":"Game Name",Date:"Transaction ID","Bet Amount":"Bet Amount","Win Amount":"Win Amount","Transaction ID":"Transaction ID",Stake:"Stake",Description:"Description","Bet Part":"Bet Part","Bet Type":"Bet Type","Free Bet":"Free Bet","Win Type":"Win Type","Play Type":"Play Type","Bet Adjustment":"Bet Adjustment","Bet ID":"Bet ID",Price:"Price",Selection:"Selection",Market:"Market",Sport:"Sport",Date:"Date",Sport:"Sport",Sport:"Sport",Multiple:"Multiple",Winnings:"Winnings"},"zh-hk":{headerTitle:"历史交易",Casino:"赌场",Sports:"体育",Payments:"付款",dateFrom:"开始日期",dateTo:"结束日期",dateFilter:"筛选",InvalidSession:"您使用的会话无效,请检查。",checkPeriod:"请选择其他时间段以查看数据。",Type:"类型",Status:"状态",Amount:"金额",Currency:"货币",Date:"日期","Game Name":"游戏名称","Transaction ID":"交易ID","Bet Amount":"投注金额","Win Amount":"赢取金额",Stake:"赌注",Description:"描述","Bet Part":"投注部分","Bet Type":"投注类型","Free Bet":"免费投注","Win Type":"赢取类型","Play Type":"播放類型","Bet Adjustment":"投注调整","Bet ID":"投注ID",Price:"价格",Selection:"选择",Market:"市场",Sport:"体育",Multiple:"多重",Winnings:"獲勝"},fr:{headerTitle:"Transactions Historiques",Casino:"Casino",Sports:"Sports",Payments:"Paiements",dateFrom:"Période De",dateTo:"Période À",dateFilter:"Filtrer",InvalidSession:"La session que vous utilisez est invalide, veuillez vérifier.",checkPeriod:"Veuillez sélectionner une autre période pour voir les données.",Type:"Type",Status:"Statut",Amount:"Montant",Currency:"Devise",Date:"Date","Game Name":"Nom du Jeu","Transaction ID":"ID de Transaction","Bet Amount":"Montant du Pari","Win Amount":"Montant Gagné",Stake:"Mise",Description:"Description","Bet Part":"Partie du Pari","Bet Type":"Type de Pari","Free Bet":"Pari Gratuit","Win Type":"Type de Gain","Play Type":"Type de lecture","Bet Adjustment":"Ajustement du Pari","Bet ID":"ID du Pari",Price:"Prix",Selection:"Sélection",Market:"Marché",Sport:"Sport",Multiple:"Multiple",Winnings:"Gains"},ro:{headerTitle:"Tranzacții Istorice",Casino:"Cazinou",Sports:"Sporturi",Payments:"Plăți",dateFrom:"Perioada De",dateTo:"Perioada Până",dateFilter:"Filtru",InvalidSession:"Sesiunea pe care o utilizați este invalidă, vă rugăm să verificați.",checkPeriod:"Vă rugăm să selectați o altă perioadă pentru a vedea datele.",Type:"Tip",Status:"Stare",Amount:"Sumă",Currency:"Monedă",Date:"Data","Game Name":"Numele Jocului","Transaction ID":"ID-ul Tranzacției","Bet Amount":"Suma Pariei","Win Amount":"Suma Câștigată",Stake:"Miză",Description:"Descriere","Bet Part":"Partea Pariei","Bet Type":"Tipul Pariei","Free Bet":"Pariu Gratuit","Win Type":"Tipul Câștigului","Play Type":"Tip de redare","Bet Adjustment":"Ajustarea Pariei","Bet ID":"ID-ul Pariei",Price:"Preț",Selection:"Selecție",Market:"Piață",Sport:"Sport",Multiple:"Multiplu",Winnings:"Câștiguri"},es:{headerTitle:"Transacciones Históricas",Casino:"Casino",Sports:"Deportes",Payments:"Pagos",dateFrom:"Período Desde",dateTo:"Período Hasta",dateFilter:"Filtrar",InvalidSession:"La sesión que está utilizando es inválida, por favor verifique.",checkPeriod:"Por favor seleccione otro período para ver los datos.",Type:"Tipo",Status:"Estado",Amount:"Cantidad",Currency:"Moneda",Date:"Fecha","Game Name":"Nombre del Juego","Transaction ID":"ID de Transacción","Bet Amount":"Cantidad Apostada","Win Amount":"Cantidad Ganada",Stake:"Apuesta",Description:"Descripción","Bet Part":"Parte de la Apuesta","Bet Type":"Tipo de Apuesta","Free Bet":"Apuesta Gratis","Win Type":"Tipo de Ganancia","Play Type":"Tipo de reproducción","Bet Adjustment":"Ajuste de Apuesta","Bet ID":"ID de Apuesta",Price:"Precio",Selection:"Selección",Market:"Mercado",Sport:"Deporte",Multiple:"Múltiple",Winnings:"Ganancias"},pt:{headerTitle:"Transações Históricas",Casino:"Cassino",Sports:"Esportes",Payments:"Pagamentos",dateFrom:"Período De",dateTo:"Período Até",dateFilter:"Filtrar",InvalidSession:"A sessão que você está usando é inválida, por favor verifique.",checkPeriod:"Por favor selecione outro período para ver os dados.",Type:"Tipo",Status:"Status",Amount:"Quantia",Currency:"Moeda",Date:"Data","Game Name":"Nome do Jogo","Transaction ID":"ID da Transação","Bet Amount":"Quantia Apostada","Win Amount":"Quantia Ganha",Stake:"Aposta",Description:"Descrição","Bet Part":"Parte da Aposta","Bet Type":"Tipo de Aposta","Free Bet":"Aposta Grátis","Win Type":"Tipo de Ganho","Play Type":"Tipo de reprodução","Bet Adjustment":"Ajuste de Aposta","Bet ID":"ID da Aposta",Price:"Preço",Selection:"Seleção",Market:"Mercado",Sport:"Esporte",Multiple:"Múltiplo",Winnings:"Ganhos"},hr:{headerTitle:"Povijesne Transakcije",Casino:"Casino",Sports:"Sportovi",Payments:"Plaćanja",dateFrom:"Razdoblje Od",dateTo:"Razdoblje Do",dateFilter:"Filtriraj",InvalidSession:"Sesija koju koristite je nevažeća, molimo provjerite.",checkPeriod:"Molimo odaberite drugo razdoblje za pregled podataka.",Type:"Vrsta",Status:"Status",Amount:"Iznos",Currency:"Valuta",Date:"Datum","Game Name":"Naziv Igre","Transaction ID":"ID Transakcije","Bet Amount":"Iznos Oklade","Win Amount":"Iznos Dobitka",Stake:"Ulog",Description:"Opis","Bet Part":"Dio Oklade","Bet Type":"Vrsta Oklade","Free Bet":"Besplatna Oklada","Win Type":"Vrsta Dobitka","Play Type":"Vrsta reprodukcije","Bet Adjustment":"Prilagodba Oklade","Bet ID":"ID Oklade",Price:"Cijena",Selection:"Izbor",Market:"Tržište",Sport:"Sport",Multiple:"Višestruko",Winnings:"Dobitci"},"pt-br":{headerTitle:"Transações Históricas",Casino:"Cassino",Sports:"Esportes",Payments:"Pagamentos",dateFrom:"Período De",dateTo:"Período Até",dateFilter:"Filtrar",InvalidSession:"A sessão que você está usando é inválida, por favor verifique.",checkPeriod:"Por favor selecione outro período para ver os dados.",Type:"Tipo",Status:"Status",Amount:"Quantia",Currency:"Moeda",Date:"Data","Game Name":"Nome do Jogo","Transaction ID":"ID da Transação","Bet Amount":"Quantia Apostada","Win Amount":"Quantia Ganha",Stake:"Aposta",Description:"Descrição","Bet Part":"Parte da Aposta","Bet Type":"Tipo de Aposta","Free Bet":"Aposta Grátis","Win Type":"Tipo de Ganho","Play Type":"Tipo de reprodução","Bet Adjustment":"Ajuste de Aposta","Bet ID":"ID da Aposta",Price:"Preço",Selection:"Seleção",Market:"Mercado",Sport:"Esporte",Multiple:"Múltiplo",Winnings:"Ganhos"},"es-mx":{headerTitle:"Transacciones Históricas",Casino:"Casino",Sports:"Deportes",Payments:"Pagos",dateFrom:"Período Desde",dateTo:"Período Hasta",dateFilter:"Filtrar",InvalidSession:"La sesión que está utilizando es inválida, por favor verifique.",checkPeriod:"Por favor seleccione otro período para ver los datos.",Type:"Tipo",Status:"Estado",Amount:"Cantidad",Currency:"Moneda",Date:"Fecha","Game Name":"Nombre del Juego","Transaction ID":"ID de Transacción","Bet Amount":"Cantidad Apostada","Win Amount":"Cantidad Ganada",Stake:"Apuesta",Description:"Descripción","Bet Part":"Parte de la Apuesta","Bet Type":"Tipo de Apuesta","Free Bet":"Apuesta Gratis","Win Type":"Tipo de Ganancia","Play Type":"Tipo de reproducción","Bet Adjustment":"Ajuste de Apuesta","Bet ID":"ID de Apuesta",Price:"Precio",Selection:"Selección",Market:"Mercado",Sport:"Deporte",Multiple:"Múltiple",Winnings:"Ganancias"},tr:{headerTitle:"Geçmiş İşlemler",Casino:"Casino",Sports:"Sporlar",Payments:"Ödemeler",dateFrom:"Dönemden",dateTo:"Döneme",dateFilter:"Filtre",InvalidSession:"Kullandığınız oturum geçersiz, lütfen kontrol edin.",checkPeriod:"Verileri görmek için lütfen başka bir dönem seçin.",Type:"Tür",Status:"Durum",Amount:"Miktar",Currency:"Para Birimi",Date:"Tarih","Game Name":"Oyun Adı","Transaction ID":"İşlem ID","Bet Amount":"Bahis Miktarı","Win Amount":"Kazanç Miktarı",Stake:"Bahis",Description:"Açıklama","Bet Part":"Bahis Bölümü","Bet Type":"Bahis Türü","Free Bet":"Ücretsiz Bahis","Win Type":"Kazanç Türü","Play Type":"Oynatma Türü","Bet Adjustment":"Bahis Ayarı","Bet ID":"Bahis ID",Price:"Fiyat",Selection:"Seçim",Market:"Pazar",Sport:"Spor",Multiple:"Çoklu",Winnings:"Kazanan"},"en-us":{headerTitle:"Historical Transactions",Casino:"Casino",Sports:"Sports",Payments:"Payments",dateFrom:"Period From",dateTo:"Period To",dateFilter:"Filter",InvalidSession:"The session you are using is invalid, please check..",checkPeriod:"Please select other period in order to see data.",Type:"Type",Status:"Status",Amount:"Amount",Currency:"Currency",Date:"Date","Game Name":"Game Name",Date:"Transaction ID","Bet Amount":"Bet Amount","Win Amount":"Win Amount","Transaction ID":"Transaction ID",Stake:"Stake",Description:"Description","Bet Part":"Bet Part","Bet Type":"Bet Type","Free Bet":"Free Bet","Win Type":"Win Type","Play Type":"Play Type","Bet Adjustment":"Bet Adjustment","Bet ID":"Bet ID",Price:"Price",Selection:"Selection",Market:"Market",Sport:"Sport",Date:"Date",Sport:"Sport",Sport:"Sport",Multiple:"Multiple",Winnings:"Winnings"}};var Hl={exports:{}};(function(i,e){(function(t,r){i.exports=r()})(pl,function(){var t=1e3,r=6e4,o=36e5,n="millisecond",s="second",a="minute",l="hour",h="day",d="week",c="month",u="quarter",m="year",g="date",f="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,D=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,A={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(B){var w=["th","st","nd","rd"],C=B%100;return"["+B+(w[(C-20)%10]||w[C]||w[0])+"]"}},M=function(B,w,C){var T=String(B);return!T||T.length>=w?B:""+Array(w+1-T.length).join(C)+B},R={s:M,z:function(B){var w=-B.utcOffset(),C=Math.abs(w),T=Math.floor(C/60),x=C%60;return(w<=0?"+":"-")+M(T,2,"0")+":"+M(x,2,"0")},m:function B(w,C){if(w.date()<C.date())return-B(C,w);var T=12*(C.year()-w.year())+(C.month()-w.month()),x=w.clone().add(T,c),N=C-x<0,z=w.clone().add(T+(N?-1:1),c);return+(-(T+(C-x)/(N?x-z:z-x))||0)},a:function(B){return B<0?Math.ceil(B)||0:Math.floor(B)},p:function(B){return{M:c,y:m,w:d,d:h,D:g,h:l,m:a,s,ms:n,Q:u}[B]||String(B||"").toLowerCase().replace(/s$/,"")},u:function(B){return B===void 0}},W="en",Q={};Q[W]=A;var S="$isDayjsObject",P=function(B){return B instanceof de||!(!B||!B[S])},b=function B(w,C,T){var x;if(!w)return W;if(typeof w=="string"){var N=w.toLowerCase();Q[N]&&(x=N),C&&(Q[N]=C,x=N);var z=w.split("-");if(!x&&z.length>1)return B(z[0])}else{var $=w.name;Q[$]=w,x=$}return!T&&x&&(W=x),x||!T&&W},O=function(B,w){if(P(B))return B.clone();var C=typeof w=="object"?w:{};return C.date=B,C.args=arguments,new de(C)},V=R;V.l=b,V.i=P,V.w=function(B,w){return O(B,{locale:w.$L,utc:w.$u,x:w.$x,$offset:w.$offset})};var de=function(){function B(C){this.$L=b(C.locale,null,!0),this.parse(C),this.$x=this.$x||C.x||{},this[S]=!0}var w=B.prototype;return w.parse=function(C){this.$d=function(T){var x=T.date,N=T.utc;if(x===null)return new Date(NaN);if(V.u(x))return new Date;if(x instanceof Date)return new Date(x);if(typeof x=="string"&&!/Z$/i.test(x)){var z=x.match(y);if(z){var $=z[2]-1||0,q=(z[7]||"0").substring(0,3);return N?new Date(Date.UTC(z[1],$,z[3]||1,z[4]||0,z[5]||0,z[6]||0,q)):new Date(z[1],$,z[3]||1,z[4]||0,z[5]||0,z[6]||0,q)}}return new Date(x)}(C),this.init()},w.init=function(){var C=this.$d;this.$y=C.getFullYear(),this.$M=C.getMonth(),this.$D=C.getDate(),this.$W=C.getDay(),this.$H=C.getHours(),this.$m=C.getMinutes(),this.$s=C.getSeconds(),this.$ms=C.getMilliseconds()},w.$utils=function(){return V},w.isValid=function(){return this.$d.toString()!==f},w.isSame=function(C,T){var x=O(C);return this.startOf(T)<=x&&x<=this.endOf(T)},w.isAfter=function(C,T){return O(C)<this.startOf(T)},w.isBefore=function(C,T){return this.endOf(T)<O(C)},w.$g=function(C,T,x){return V.u(C)?this[T]:this.set(x,C)},w.unix=function(){return Math.floor(this.valueOf()/1e3)},w.valueOf=function(){return this.$d.getTime()},w.startOf=function(C,T){var x=this,N=!!V.u(T)||T,z=V.p(C),$=function(be,pe){var fe=V.w(x.$u?Date.UTC(x.$y,pe,be):new Date(x.$y,pe,be),x);return N?fe:fe.endOf(h)},q=function(be,pe){return V.w(x.toDate()[be].apply(x.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(pe)),x)},ne=this.$W,se=this.$M,ae=this.$D,we="set"+(this.$u?"UTC":"");switch(z){case m:return N?$(1,0):$(31,11);case c:return N?$(1,se):$(0,se+1);case d:var ue=this.$locale().weekStart||0,Oe=(ne<ue?ne+7:ne)-ue;return $(N?ae-Oe:ae+(6-Oe),se);case h:case g:return q(we+"Hours",0);case l:return q(we+"Minutes",1);case a:return q(we+"Seconds",2);case s:return q(we+"Milliseconds",3);default:return this.clone()}},w.endOf=function(C){return this.startOf(C,!1)},w.$set=function(C,T){var x,N=V.p(C),z="set"+(this.$u?"UTC":""),$=(x={},x[h]=z+"Date",x[g]=z+"Date",x[c]=z+"Month",x[m]=z+"FullYear",x[l]=z+"Hours",x[a]=z+"Minutes",x[s]=z+"Seconds",x[n]=z+"Milliseconds",x)[N],q=N===h?this.$D+(T-this.$W):T;if(N===c||N===m){var ne=this.clone().set(g,1);ne.$d[$](q),ne.init(),this.$d=ne.set(g,Math.min(this.$D,ne.daysInMonth())).$d}else $&&this.$d[$](q);return this.init(),this},w.set=function(C,T){return this.clone().$set(C,T)},w.get=function(C){return this[V.p(C)]()},w.add=function(C,T){var x,N=this;C=Number(C);var z=V.p(T),$=function(se){var ae=O(N);return V.w(ae.date(ae.date()+Math.round(se*C)),N)};if(z===c)return this.set(c,this.$M+C);if(z===m)return this.set(m,this.$y+C);if(z===h)return $(1);if(z===d)return $(7);var q=(x={},x[a]=r,x[l]=o,x[s]=t,x)[z]||1,ne=this.$d.getTime()+C*q;return V.w(ne,this)},w.subtract=function(C,T){return this.add(-1*C,T)},w.format=function(C){var T=this,x=this.$locale();if(!this.isValid())return x.invalidDate||f;var N=C||"YYYY-MM-DDTHH:mm:ssZ",z=V.z(this),$=this.$H,q=this.$m,ne=this.$M,se=x.weekdays,ae=x.months,we=x.meridiem,ue=function(pe,fe,ke,ze){return pe&&(pe[fe]||pe(T,N))||ke[fe].slice(0,ze)},Oe=function(pe){return V.s($%12||12,pe,"0")},be=we||function(pe,fe,ke){var ze=pe<12?"AM":"PM";return ke?ze.toLowerCase():ze};return N.replace(D,function(pe,fe){return fe||function(ke){switch(ke){case"YY":return String(T.$y).slice(-2);case"YYYY":return V.s(T.$y,4,"0");case"M":return ne+1;case"MM":return V.s(ne+1,2,"0");case"MMM":return ue(x.monthsShort,ne,ae,3);case"MMMM":return ue(ae,ne);case"D":return T.$D;case"DD":return V.s(T.$D,2,"0");case"d":return String(T.$W);case"dd":return ue(x.weekdaysMin,T.$W,se,2);case"ddd":return ue(x.weekdaysShort,T.$W,se,3);case"dddd":return se[T.$W];case"H":return String($);case"HH":return V.s($,2,"0");case"h":return Oe(1);case"hh":return Oe(2);case"a":return be($,q,!0);case"A":return be($,q,!1);case"m":return String(q);case"mm":return V.s(q,2,"0");case"s":return String(T.$s);case"ss":return V.s(T.$s,2,"0");case"SSS":return V.s(T.$ms,3,"0");case"Z":return z}return null}(pe)||z.replace(":","")})},w.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},w.diff=function(C,T,x){var N,z=this,$=V.p(T),q=O(C),ne=(q.utcOffset()-this.utcOffset())*r,se=this-q,ae=function(){return V.m(z,q)};switch($){case m:N=ae()/12;break;case c:N=ae();break;case u:N=ae()/3;break;case d:N=(se-ne)/6048e5;break;case h:N=(se-ne)/864e5;break;case l:N=se/o;break;case a:N=se/r;break;case s:N=se/t;break;default:N=se}return x?N:V.a(N)},w.daysInMonth=function(){return this.endOf(c).$D},w.$locale=function(){return Q[this.$L]},w.locale=function(C,T){if(!C)return this.$L;var x=this.clone(),N=b(C,T,!0);return N&&(x.$L=N),x},w.clone=function(){return V.w(this.$d,this)},w.toDate=function(){return new Date(this.valueOf())},w.toJSON=function(){return this.isValid()?this.toISOString():null},w.toISOString=function(){return this.$d.toISOString()},w.toString=function(){return this.$d.toUTCString()},B}(),ce=de.prototype;return O.prototype=ce,[["$ms",n],["$s",s],["$m",a],["$H",l],["$W",h],["$M",c],["$y",m],["$D",g]].forEach(function(B){ce[B[1]]=function(w){return this.$g(w,B[0],B[1])}}),O.extend=function(B,w){return B.$i||(B(w,de,O),B.$i=!0),O},O.locale=b,O.isDayjs=P,O.unix=function(B){return O(1e3*B)},O.en=Q[W],O.Ls=Q,O.p={},O})})(Hl);var fp=Hl.exports;const lr=yn(fp);var Rl={exports:{}};(function(i,e){(function(t,r){i.exports=r()})(pl,function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,n=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,a={},l=function(f){return(f=+f)+(f>68?1900:2e3)},h=function(f){return function(y){this[f]=+y}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(f){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var D=y.match(/([+-]|\d\d)/g),A=60*D[1]+(+D[2]||0);return A===0?0:D[0]==="+"?-A:A}(f)}],c=function(f){var y=a[f];return y&&(y.indexOf?y:y.s.concat(y.f))},u=function(f,y){var D,A=a.meridiem;if(A){for(var M=1;M<=24;M+=1)if(f.indexOf(A(M,0,y))>-1){D=M>12;break}}else D=f===(y?"pm":"PM");return D},m={A:[s,function(f){this.afternoon=u(f,!1)}],a:[s,function(f){this.afternoon=u(f,!0)}],S:[/\d/,function(f){this.milliseconds=100*+f}],SS:[o,function(f){this.milliseconds=10*+f}],SSS:[/\d{3}/,function(f){this.milliseconds=+f}],s:[n,h("seconds")],ss:[n,h("seconds")],m:[n,h("minutes")],mm:[n,h("minutes")],H:[n,h("hours")],h:[n,h("hours")],HH:[n,h("hours")],hh:[n,h("hours")],D:[n,h("day")],DD:[o,h("day")],Do:[s,function(f){var y=a.ordinal,D=f.match(/\d+/);if(this.day=D[0],y)for(var A=1;A<=31;A+=1)y(A).replace(/\[|\]/g,"")===f&&(this.day=A)}],M:[n,h("month")],MM:[o,h("month")],MMM:[s,function(f){var y=c("months"),D=(c("monthsShort")||y.map(function(A){return A.slice(0,3)})).indexOf(f)+1;if(D<1)throw new Error;this.month=D%12||D}],MMMM:[s,function(f){var y=c("months").indexOf(f)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,h("year")],YY:[o,function(f){this.year=l(f)}],YYYY:[/\d{4}/,h("year")],Z:d,ZZ:d};function g(f){var y,D;y=f,D=a&&a.formats;for(var A=(f=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(b,O,V){var de=V&&V.toUpperCase();return O||D[V]||t[V]||D[de].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(ce,B,w){return B||w.slice(1)})})).match(r),M=A.length,R=0;R<M;R+=1){var W=A[R],Q=m[W],S=Q&&Q[0],P=Q&&Q[1];A[R]=P?{regex:S,parser:P}:W.replace(/^\[|\]$/g,"")}return function(b){for(var O={},V=0,de=0;V<M;V+=1){var ce=A[V];if(typeof ce=="string")de+=ce.length;else{var B=ce.regex,w=ce.parser,C=b.slice(de),T=B.exec(C)[0];w.call(O,T),b=b.replace(T,"")}}return function(x){var N=x.afternoon;if(N!==void 0){var z=x.hours;N?z<12&&(x.hours+=12):z===12&&(x.hours=0),delete x.afternoon}}(O),O}}return function(f,y,D){D.p.customParseFormat=!0,f&&f.parseTwoDigitYear&&(l=f.parseTwoDigitYear);var A=y.prototype,M=A.parse;A.parse=function(R){var W=R.date,Q=R.utc,S=R.args;this.$u=Q;var P=S[1];if(typeof P=="string"){var b=S[2]===!0,O=S[3]===!0,V=b||O,de=S[2];O&&(de=S[2]),a=this.$locale(),!b&&de&&(a=D.Ls[de]),this.$d=function(C,T,x){try{if(["x","X"].indexOf(T)>-1)return new Date((T==="X"?1e3:1)*C);var N=g(T)(C),z=N.year,$=N.month,q=N.day,ne=N.hours,se=N.minutes,ae=N.seconds,we=N.milliseconds,ue=N.zone,Oe=new Date,be=q||(z||$?1:Oe.getDate()),pe=z||Oe.getFullYear(),fe=0;z&&!$||(fe=$>0?$-1:Oe.getMonth());var ke=ne||0,ze=se||0,Ke=ae||0,dt=we||0;return ue?new Date(Date.UTC(pe,fe,be,ke,ze,Ke,dt+60*ue.offset*1e3)):x?new Date(Date.UTC(pe,fe,be,ke,ze,Ke,dt)):new Date(pe,fe,be,ke,ze,Ke,dt)}catch(et){return new Date("")}}(W,P,Q),this.init(),de&&de!==!0&&(this.$L=this.locale(de).$L),V&&W!=this.format(P)&&(this.$d=new Date("")),a={}}else if(P instanceof Array)for(var ce=P.length,B=1;B<=ce;B+=1){S[1]=P[B-1];var w=D.apply(this,S);if(w.isValid()){this.$d=w.$d,this.$L=w.$L,this.init();break}B===ce&&(this.$d=new Date(""))}else M.call(this,R)}}})})(Rl);var vp=Rl.exports;const gp=yn(vp);var bp=Object.defineProperty,yp=Object.defineProperties,xp=Object.getOwnPropertyDescriptors,zs=Object.getOwnPropertySymbols,wp=Object.prototype.hasOwnProperty,Cp=Object.prototype.propertyIsEnumerable,qo=(i,e,t)=>e in i?bp(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Ar=(i,e)=>{for(var t in e||(e={}))wp.call(e,t)&&qo(i,t,e[t]);if(zs)for(var t of zs(e))Cp.call(e,t)&&qo(i,t,e[t]);return i},Fl=(i,e)=>yp(i,xp(e)),Te=(i,e,t)=>(qo(i,typeof e!="symbol"?e+"":e,t),t),Pr=(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())});/**
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 G(r,e="24.5.10"){Object.defineProperty(r,"version",{get(){return e}});const t=customElements.get(r.is);if(!t)customElements.define(r.is,r);else{const i=t.version;i&&r.version&&i===r.version?console.warn(`The component ${r.is} has been loaded twice`):console.error(`Tried to define ${r.is} version ${r.version} when version ${t.version} is already in use. Something will probably break.`)}}/**
22
+ */function G(i,e="24.5.10"){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 Ap extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}G(Ap);/**
26
+ */class Ep extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}G(Ep);/**
27
27
  * @license
28
28
  * Copyright 2019 Google LLC
29
29
  * SPDX-License-Identifier: BSD-3-Clause
30
- */const wi=globalThis,kn=wi.ShadowRoot&&(wi.ShadyCSS===void 0||wi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Tn=Symbol(),Ls=new WeakMap;let In=class{constructor(r,e,t){if(this._$cssResult$=!0,t!==Tn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=r,this.t=e}get styleSheet(){let r=this.o;const e=this.t;if(kn&&r===void 0){const t=e!==void 0&&e.length===1;t&&(r=Ls.get(e)),r===void 0&&((this.o=r=new CSSStyleSheet).replaceSync(this.cssText),t&&Ls.set(e,r))}return r}toString(){return this.cssText}};const Pp=r=>new In(typeof r=="string"?r:r+"",void 0,Tn),k=(r,...e)=>{const t=r.length===1?r[0]:e.reduce((i,o,n)=>i+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+r[n+1],r[0]);return new In(t,r,Tn)},$l=(r,e)=>{if(kn)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const i=document.createElement("style"),o=wi.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=t.cssText,r.appendChild(i)}},Hs=kn?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return Pp(t)})(r):r;/**
30
+ */const xr=globalThis,Sn=xr.ShadowRoot&&(xr.ShadyCSS===void 0||xr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,An=Symbol(),Bs=new WeakMap;let Pn=class{constructor(i,e,t){if(this._$cssResult$=!0,t!==An)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(Sn&&i===void 0){const t=e!==void 0&&e.length===1;t&&(i=Bs.get(e)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),t&&Bs.set(e,i))}return i}toString(){return this.cssText}};const Sp=i=>new Pn(typeof i=="string"?i:i+"",void 0,An),k=(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 Pn(t,i,An)},Vl=(i,e)=>{if(Sn)i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const r=document.createElement("style"),o=xr.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=t.cssText,i.appendChild(r)}},Ls=Sn?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return Sp(t)})(i):i;/**
31
31
  * @license
32
32
  * Copyright 2017 Google LLC
33
33
  * SPDX-License-Identifier: BSD-3-Clause
34
- */const{is:kp,defineProperty:Tp,getOwnPropertyDescriptor:Ip,getOwnPropertyNames:Dp,getOwnPropertySymbols:Op,getPrototypeOf:Mp}=Object,rr=globalThis,Rs=rr.trustedTypes,Np=Rs?Rs.emptyScript:"",Fs=rr.reactiveElementPolyfillSupport,Pr=(r,e)=>r,Qo={toAttribute(r,e){switch(e){case Boolean:r=r?Np:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch(i){t=null}}return t}},Vl=(r,e)=>!kp(r,e),$s={attribute:!0,type:String,converter:Qo,reflect:!1,useDefault:!1,hasChanged:Vl};Symbol.metadata!=null||(Symbol.metadata=Symbol("metadata")),rr.litPropertyMetadata!=null||(rr.litPropertyMetadata=new WeakMap);class Ut extends HTMLElement{static addInitializer(e){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=$s){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(e,i,t);o!==void 0&&Tp(this.prototype,e,o)}}static getPropertyDescriptor(e,t,i){var o;const{get:n,set:s}=(o=Ip(this.prototype,e))!=null?o:{get(){return this[t]},set(a){this[t]=a}};return{get:n,set(a){const l=n==null?void 0:n.call(this);s==null||s.call(this,a),this.requestUpdate(e,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return(t=this.elementProperties.get(e))!=null?t:$s}static _$Ei(){if(this.hasOwnProperty(Pr("elementProperties")))return;const e=Mp(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Pr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Pr("properties"))){const t=this.properties,i=[...Dp(t),...Op(t)];for(const o of i)this.createProperty(o,t[o])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[i,o]of t)this.elementProperties.set(i,o)}this._$Eh=new Map;for(const[t,i]of this.elementProperties){const o=this._$Eu(t,i);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const o of i)t.unshift(Hs(o))}else e!==void 0&&t.push(Hs(e));return t}static _$Eu(e,t){const i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t,i;((t=this._$EO)!=null?t:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)==null||i.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var e;const t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return $l(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostConnected)==null?void 0:i.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostDisconnected)==null?void 0:i.call(t)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$ET(e,t){var i;const o=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,o);if(n!==void 0&&o.reflect===!0){const s=(((i=o.converter)==null?void 0:i.toAttribute)!==void 0?o.converter:Qo).toAttribute(t,o.type);this._$Em=e,s==null?this.removeAttribute(n):this.setAttribute(n,s),this._$Em=null}}_$AK(e,t){var i,o,n;const s=this.constructor,a=s._$Eh.get(e);if(a!==void 0&&this._$Em!==a){const l=s.getPropertyOptions(a),h=typeof l.converter=="function"?{fromAttribute:l.converter}:((i=l.converter)==null?void 0:i.fromAttribute)!==void 0?l.converter:Qo;this._$Em=a;const d=h.fromAttribute(t,l.type);this[a]=(n=d!=null?d:(o=this._$Ej)==null?void 0:o.get(a))!=null?n:d,this._$Em=null}}requestUpdate(e,t,i){var o,n;if(e!==void 0){const s=this.constructor,a=this[e];if(i!=null||(i=s.getPropertyOptions(e)),!(((o=i.hasChanged)!=null?o:Vl)(a,t)||i.useDefault&&i.reflect&&a===((n=this._$Ej)==null?void 0:n.get(e))&&!this.hasAttribute(s._$Eu(e,i))))return;this.C(e,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:i,reflect:o,wrapped:n},s){var a,l,h;i&&!((a=this._$Ej)!=null?a:this._$Ej=new Map).has(e)&&(this._$Ej.set(e,(l=s!=null?s:t)!=null?l:this[e]),n!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(t=void 0),this._$AL.set(e,t)),o===!0&&this._$Em!==e&&((h=this._$Eq)!=null?h:this._$Eq=new Set).add(e))}_$EP(){return Ti(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&(yield e),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,s]of this._$Ep)this[n]=s;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[n,s]of o){const{wrapped:a}=s,l=this[n];a!==!0||this._$AL.has(n)||l===void 0||this.C(n,void 0,s,l)}}let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),(e=this._$EO)==null||e.forEach(o=>{var n;return(n=o.hostUpdate)==null?void 0:n.call(o)}),this.update(i)):this._$EM()}catch(o){throw t=!1,this._$EM(),o}t&&this._$AE(i)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(i=>{var o;return(o=i.hostUpdated)==null?void 0:o.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}}var Vs;Ut.elementStyles=[],Ut.shadowRootOptions={mode:"open"},Ut[Pr("elementProperties")]=new Map,Ut[Pr("finalized")]=new Map,Fs==null||Fs({ReactiveElement:Ut}),((Vs=rr.reactiveElementVersions)!=null?Vs:rr.reactiveElementVersions=[]).push("2.1.1");/**
34
+ */const{is:Ap,defineProperty:Pp,getOwnPropertyDescriptor:kp,getOwnPropertyNames:Tp,getOwnPropertySymbols:Ip,getPrototypeOf:Dp}=Object,ri=globalThis,Hs=ri.trustedTypes,Op=Hs?Hs.emptyScript:"",Rs=ri.reactiveElementPolyfillSupport,ki=(i,e)=>i,Yo={toAttribute(i,e){switch(e){case Boolean:i=i?Op: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}},$l=(i,e)=>!Ap(i,e),Fs={attribute:!0,type:String,converter:Yo,reflect:!1,hasChanged:$l};Symbol.metadata!=null||(Symbol.metadata=Symbol("metadata")),ri.litPropertyMetadata!=null||(ri.litPropertyMetadata=new WeakMap);class Ut extends HTMLElement{static addInitializer(e){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Fs){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&&Pp(this.prototype,e,o)}}static getPropertyDescriptor(e,t,r){var o;const{get:n,set:s}=(o=kp(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:Fs}static _$Ei(){if(this.hasOwnProperty(ki("elementProperties")))return;const e=Dp(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(ki("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ki("properties"))){const t=this.properties,r=[...Tp(t),...Ip(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(Ls(o))}else e!==void 0&&t.push(Ls(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 Vl(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:Yo).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:Yo;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:$l)(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 Pr(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 Vs;Ut.elementStyles=[],Ut.shadowRootOptions={mode:"open"},Ut[ki("elementProperties")]=new Map,Ut[ki("finalized")]=new Map,Rs==null||Rs({ReactiveElement:Ut}),((Vs=ri.reactiveElementVersions)!=null?Vs:ri.reactiveElementVersions=[]).push("2.0.4");/**
35
35
  * @license
36
36
  * Copyright 2017 Google LLC
37
37
  * SPDX-License-Identifier: BSD-3-Clause
38
- */const Ii=globalThis,Di=Ii.trustedTypes,Ws=Di?Di.createPolicy("lit-html",{createHTML:r=>r}):void 0,Wl="$lit$",vt=`lit$${Math.random().toFixed(9).slice(2)}$`,jl="?"+vt,zp=`<${jl}>`,Nt=document,Or=()=>Nt.createComment(""),Mr=r=>r===null||typeof r!="object"&&typeof r!="function",Dn=Array.isArray,Bp=r=>Dn(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",yo=`[
39
- \f\r]`,gr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,js=/-->/g,Us=/>/g,Tt=RegExp(`>|${yo}(?:([^\\s"'>=/]+)(${yo}*=${yo}*(?:[^
40
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Gs=/'/g,qs=/"/g,Ul=/^(?:script|style|textarea|title)$/i,ir=Symbol.for("lit-noChange"),Se=Symbol.for("lit-nothing"),Ys=new WeakMap,Dt=Nt.createTreeWalker(Nt,129);function Gl(r,e){if(!Dn(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ws!==void 0?Ws.createHTML(e):e}const Lp=(r,e)=>{const t=r.length-1,i=[];let o,n=e===2?"<svg>":e===3?"<math>":"",s=gr;for(let a=0;a<t;a++){const l=r[a];let h,d,c=-1,u=0;for(;u<l.length&&(s.lastIndex=u,d=s.exec(l),d!==null);)u=s.lastIndex,s===gr?d[1]==="!--"?s=js:d[1]!==void 0?s=Us:d[2]!==void 0?(Ul.test(d[2])&&(o=RegExp("</"+d[2],"g")),s=Tt):d[3]!==void 0&&(s=Tt):s===Tt?d[0]===">"?(s=o!=null?o:gr,c=-1):d[1]===void 0?c=-2:(c=s.lastIndex-d[2].length,h=d[1],s=d[3]===void 0?Tt:d[3]==='"'?qs:Gs):s===qs||s===Gs?s=Tt:s===js||s===Us?s=gr:(s=Tt,o=void 0);const m=s===Tt&&r[a+1].startsWith("/>")?" ":"";n+=s===gr?l+zp:c>=0?(i.push(h),l.slice(0,c)+Wl+l.slice(c)+vt+m):l+vt+(c===-2?a:m)}return[Gl(r,n+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]};class Nr{constructor({strings:e,_$litType$:t},i){let o;this.parts=[];let n=0,s=0;const a=e.length-1,l=this.parts,[h,d]=Lp(e,t);if(this.el=Nr.createElement(h,i),Dt.currentNode=this.el.content,t===2||t===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(o=Dt.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(const c of o.getAttributeNames())if(c.endsWith(Wl)){const u=d[s++],m=o.getAttribute(c).split(vt),g=/([.?@])?(.*)/.exec(u);l.push({type:1,index:n,name:g[2],strings:m,ctor:g[1]==="."?Rp:g[1]==="?"?Fp:g[1]==="@"?$p:Yi}),o.removeAttribute(c)}else c.startsWith(vt)&&(l.push({type:6,index:n}),o.removeAttribute(c));if(Ul.test(o.tagName)){const c=o.textContent.split(vt),u=c.length-1;if(u>0){o.textContent=Di?Di.emptyScript:"";for(let m=0;m<u;m++)o.append(c[m],Or()),Dt.nextNode(),l.push({type:2,index:++n});o.append(c[u],Or())}}}else if(o.nodeType===8)if(o.data===jl)l.push({type:2,index:n});else{let c=-1;for(;(c=o.data.indexOf(vt,c+1))!==-1;)l.push({type:7,index:n}),c+=vt.length-1}n++}}static createElement(e,t){const i=Nt.createElement("template");return i.innerHTML=e,i}}function or(r,e,t=r,i){var o,n,s;if(e===ir)return e;let a=i!==void 0?(o=t._$Co)==null?void 0:o[i]:t._$Cl;const l=Mr(e)?void 0:e._$litDirective$;return(a==null?void 0:a.constructor)!==l&&((n=a==null?void 0:a._$AO)==null||n.call(a,!1),l===void 0?a=void 0:(a=new l(r),a._$AT(r,t,i)),i!==void 0?((s=t._$Co)!=null?s:t._$Co=[])[i]=a:t._$Cl=a),a!==void 0&&(e=or(r,a._$AS(r,e.values),a,i)),e}class Hp{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:i},parts:o}=this._$AD,n=((t=e==null?void 0:e.creationScope)!=null?t:Nt).importNode(i,!0);Dt.currentNode=n;let s=Dt.nextNode(),a=0,l=0,h=o[0];for(;h!==void 0;){if(a===h.index){let d;h.type===2?d=new Gr(s,s.nextSibling,this,e):h.type===1?d=new h.ctor(s,h.name,h.strings,this,e):h.type===6&&(d=new Vp(s,this,e)),this._$AV.push(d),h=o[++l]}a!==(h==null?void 0:h.index)&&(s=Dt.nextNode(),a++)}return Dt.currentNode=Nt,n}p(e){let t=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class Gr{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this._$Cv}constructor(e,t,i,o){var n;this.type=2,this._$AH=Se,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=o,this._$Cv=(n=o==null?void 0:o.isConnected)!=null?n:!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=or(this,e,t),Mr(e)?e===Se||e==null||e===""?(this._$AH!==Se&&this._$AR(),this._$AH=Se):e!==this._$AH&&e!==ir&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Bp(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Se&&Mr(this._$AH)?this._$AA.nextSibling.data=e:this.T(Nt.createTextNode(e)),this._$AH=e}$(e){var t;const{values:i,_$litType$:o}=e,n=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Nr.createElement(Gl(o.h,o.h[0]),this.options)),o);if(((t=this._$AH)==null?void 0:t._$AD)===n)this._$AH.p(i);else{const s=new Hp(n,this),a=s.u(this.options);s.p(i),this.T(a),this._$AH=s}}_$AC(e){let t=Ys.get(e.strings);return t===void 0&&Ys.set(e.strings,t=new Nr(e)),t}k(e){Dn(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,o=0;for(const n of e)o===t.length?t.push(i=new Gr(this.O(Or()),this.O(Or()),this,this.options)):i=t[o],i._$AI(n),o++;o<t.length&&(this._$AR(i&&i._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,t);e!==this._$AB;){const o=e.nextSibling;e.remove(),e=o}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class Yi{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,o,n){this.type=1,this._$AH=Se,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Se}_$AI(e,t=this,i,o){const n=this.strings;let s=!1;if(n===void 0)e=or(this,e,t,0),s=!Mr(e)||e!==this._$AH&&e!==ir,s&&(this._$AH=e);else{const a=e;let l,h;for(e=n[0],l=0;l<n.length-1;l++)h=or(this,a[i+l],t,l),h===ir&&(h=this._$AH[l]),s||(s=!Mr(h)||h!==this._$AH[l]),h===Se?e=Se:e!==Se&&(e+=(h!=null?h:"")+n[l+1]),this._$AH[l]=h}s&&!o&&this.j(e)}j(e){e===Se?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class Rp extends Yi{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Se?void 0:e}}class Fp extends Yi{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Se)}}class $p extends Yi{constructor(e,t,i,o,n){super(e,t,i,o,n),this.type=5}_$AI(e,t=this){var i;if((e=(i=or(this,e,t,0))!=null?i:Se)===ir)return;const o=this._$AH,n=e===Se&&o!==Se||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,s=e!==Se&&(o===Se||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;typeof this._$AH=="function"?this._$AH.call((i=(t=this.options)==null?void 0:t.host)!=null?i:this.element,e):this._$AH.handleEvent(e)}}class Vp{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){or(this,e)}}const Xs=Ii.litHtmlPolyfillSupport;var Ks;Xs==null||Xs(Nr,Gr),((Ks=Ii.litHtmlVersions)!=null?Ks:Ii.litHtmlVersions=[]).push("3.3.1");const ql=(r,e,t)=>{var i,o;const n=(i=t==null?void 0:t.renderBefore)!=null?i:e;let s=n._$litPart$;if(s===void 0){const a=(o=t==null?void 0:t.renderBefore)!=null?o:null;n._$litPart$=s=new Gr(e.insertBefore(Or(),a),a,void 0,t!=null?t:{})}return s._$AI(r),s};/**
38
+ */const kr=globalThis,Tr=kr.trustedTypes,$s=Tr?Tr.createPolicy("lit-html",{createHTML:i=>i}):void 0,Wl="$lit$",vt=`lit$${Math.random().toFixed(9).slice(2)}$`,jl="?"+vt,Mp=`<${jl}>`,Nt=document,Mi=()=>Nt.createComment(""),Ni=i=>i===null||typeof i!="object"&&typeof i!="function",kn=Array.isArray,Np=i=>kn(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",vo=`[
39
+ \f\r]`,bi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ws=/-->/g,js=/>/g,Tt=RegExp(`>|${vo}(?:([^\\s"'>=/]+)(${vo}*=${vo}*(?:[^
40
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Us=/'/g,Gs=/"/g,Ul=/^(?:script|style|textarea|title)$/i,oi=Symbol.for("lit-noChange"),Se=Symbol.for("lit-nothing"),qs=new WeakMap,Dt=Nt.createTreeWalker(Nt,129);function Gl(i,e){if(!kn(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return $s!==void 0?$s.createHTML(e):e}const zp=(i,e)=>{const t=i.length-1,r=[];let o,n=e===2?"<svg>":e===3?"<math>":"",s=bi;for(let a=0;a<t;a++){const l=i[a];let h,d,c=-1,u=0;for(;u<l.length&&(s.lastIndex=u,d=s.exec(l),d!==null);)u=s.lastIndex,s===bi?d[1]==="!--"?s=Ws:d[1]!==void 0?s=js:d[2]!==void 0?(Ul.test(d[2])&&(o=RegExp("</"+d[2],"g")),s=Tt):d[3]!==void 0&&(s=Tt):s===Tt?d[0]===">"?(s=o!=null?o:bi,c=-1):d[1]===void 0?c=-2:(c=s.lastIndex-d[2].length,h=d[1],s=d[3]===void 0?Tt:d[3]==='"'?Gs:Us):s===Gs||s===Us?s=Tt:s===Ws||s===js?s=bi:(s=Tt,o=void 0);const m=s===Tt&&i[a+1].startsWith("/>")?" ":"";n+=s===bi?l+Mp:c>=0?(r.push(h),l.slice(0,c)+Wl+l.slice(c)+vt+m):l+vt+(c===-2?a:m)}return[Gl(i,n+(i[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};class zi{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]=zp(e,t);if(this.el=zi.createElement(h,r),Dt.currentNode=this.el.content,t===2||t===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(o=Dt.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(const c of o.getAttributeNames())if(c.endsWith(Wl)){const u=d[s++],m=o.getAttribute(c).split(vt),g=/([.?@])?(.*)/.exec(u);l.push({type:1,index:n,name:g[2],strings:m,ctor:g[1]==="."?Lp:g[1]==="?"?Hp:g[1]==="@"?Rp:Ur}),o.removeAttribute(c)}else c.startsWith(vt)&&(l.push({type:6,index:n}),o.removeAttribute(c));if(Ul.test(o.tagName)){const c=o.textContent.split(vt),u=c.length-1;if(u>0){o.textContent=Tr?Tr.emptyScript:"";for(let m=0;m<u;m++)o.append(c[m],Mi()),Dt.nextNode(),l.push({type:2,index:++n});o.append(c[u],Mi())}}}else if(o.nodeType===8)if(o.data===jl)l.push({type:2,index:n});else{let c=-1;for(;(c=o.data.indexOf(vt,c+1))!==-1;)l.push({type:7,index:n}),c+=vt.length-1}n++}}static createElement(e,t){const r=Nt.createElement("template");return r.innerHTML=e,r}}function ni(i,e,t=i,r){var o,n,s;if(e===oi)return e;let a=r!==void 0?(o=t._$Co)==null?void 0:o[r]:t._$Cl;const l=Ni(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=ni(i,a._$AS(i,e.values),a,r)),e}class Bp{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:Nt).importNode(r,!0);Dt.currentNode=n;let s=Dt.nextNode(),a=0,l=0,h=o[0];for(;h!==void 0;){if(a===h.index){let d;h.type===2?d=new Ui(s,s.nextSibling,this,e):h.type===1?d=new h.ctor(s,h.name,h.strings,this,e):h.type===6&&(d=new Fp(s,this,e)),this._$AV.push(d),h=o[++l]}a!==(h==null?void 0:h.index)&&(s=Dt.nextNode(),a++)}return Dt.currentNode=Nt,n}p(e){let t=0;for(const 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 Ui{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=Se,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=ni(this,e,t),Ni(e)?e===Se||e==null||e===""?(this._$AH!==Se&&this._$AR(),this._$AH=Se):e!==this._$AH&&e!==oi&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Np(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Se&&Ni(this._$AH)?this._$AA.nextSibling.data=e:this.T(Nt.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=zi.createElement(Gl(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 Bp(n,this),a=s.u(this.options);s.p(r),this.T(a),this._$AH=s}}_$AC(e){let t=qs.get(e.strings);return t===void 0&&qs.set(e.strings,t=new zi(e)),t}k(e){kn(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 Ui(this.O(Mi()),this.O(Mi()),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 Ur{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,o,n){this.type=1,this._$AH=Se,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=Se}_$AI(e,t=this,r,o){const n=this.strings;let s=!1;if(n===void 0)e=ni(this,e,t,0),s=!Ni(e)||e!==this._$AH&&e!==oi,s&&(this._$AH=e);else{const a=e;let l,h;for(e=n[0],l=0;l<n.length-1;l++)h=ni(this,a[r+l],t,l),h===oi&&(h=this._$AH[l]),s||(s=!Ni(h)||h!==this._$AH[l]),h===Se?e=Se:e!==Se&&(e+=(h!=null?h:"")+n[l+1]),this._$AH[l]=h}s&&!o&&this.j(e)}j(e){e===Se?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class Lp extends Ur{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Se?void 0:e}}class Hp extends Ur{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Se)}}class Rp extends Ur{constructor(e,t,r,o,n){super(e,t,r,o,n),this.type=5}_$AI(e,t=this){var r;if((e=(r=ni(this,e,t,0))!=null?r:Se)===oi)return;const o=this._$AH,n=e===Se&&o!==Se||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,s=e!==Se&&(o===Se||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,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 Fp{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){ni(this,e)}}const Ys=kr.litHtmlPolyfillSupport;var Xs;Ys==null||Ys(zi,Ui),((Xs=kr.litHtmlVersions)!=null?Xs:kr.litHtmlVersions=[]).push("3.2.1");const ql=(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 Ui(e.insertBefore(Mi(),a),a,void 0,t!=null?t:{})}return s._$AI(i),s};/**
41
41
  * @license
42
42
  * Copyright 2017 Google LLC
43
43
  * SPDX-License-Identifier: BSD-3-Clause
44
- */const zr=globalThis;class qt extends Ut{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore!=null||(e.renderBefore=t.firstChild),t}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ql(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return ir}}var Zs;qt._$litElement$=!0,qt.finalized=!0,(Zs=zr.litElementHydrateSupport)==null||Zs.call(zr,{LitElement:qt});const Js=zr.litElementPolyfillSupport;Js==null||Js({LitElement:qt});var Qs;((Qs=zr.litElementVersions)!=null?Qs:zr.litElementVersions=[]).push("4.2.1");/**
44
+ */class Yt extends Ut{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore!=null||(e.renderBefore=t.firstChild),t}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ql(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return oi}}var Ks;Yt._$litElement$=!0,Yt.finalized=!0,(Ks=globalThis.litElementHydrateSupport)==null||Ks.call(globalThis,{LitElement:Yt});const Zs=globalThis.litElementPolyfillSupport;Zs==null||Zs({LitElement:Yt});var Js;((Js=globalThis.litElementVersions)!=null?Js:globalThis.litElementVersions=[]).push("4.1.1");/**
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 Xi=r=>class extends r{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e==="theme"&&this._set_theme(i)}};/**
48
+ */const Gr=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 Yl=[],en=new Set,On=new Set;function Xl(r){return r&&Object.prototype.hasOwnProperty.call(r,"__themes")}function Wp(r){return Xl(customElements.get(r))}function jp(r=[]){return[r].flat(1/0).filter(e=>e instanceof In?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function Kl(r,e){return(r||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function Zl(r){return r.map(e=>e.cssText).join(`
53
- `)}const Oi="vaadin-themable-mixin-style";function Up(r,e){const t=document.createElement("style");t.id=Oi,t.textContent=Zl(r),e.content.appendChild(t)}function Gp(r){if(!r.shadowRoot)return;const e=r.constructor;if(r instanceof qt)[...r.shadowRoot.querySelectorAll("style")].forEach(t=>t.remove()),$l(r.shadowRoot,e.elementStyles);else{const t=r.shadowRoot.getElementById(Oi),i=e.prototype._template;t.textContent=i.content.getElementById(Oi).textContent}}function qp(r){en.forEach(e=>{const t=e.deref();t instanceof r?Gp(t):t||en.delete(e)})}function Jl(r){if(r.prototype instanceof qt)r.elementStyles=r.finalizeStyles(r.styles);else{const e=r.prototype._template;e.content.getElementById(Oi).textContent=Zl(r.getStylesForThis())}On.forEach(e=>{const t=customElements.get(e);t!==r&&t.prototype instanceof r&&Jl(t)})}function Yp(r,e){const t=r.__themes;return!t||!e?!1:t.some(i=>i.styles.some(o=>e.some(n=>n.cssText===o.cssText)))}function L(r,e,t={}){e=jp(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(r,e,t):Yl.push({themeFor:r,styles:e,include:t.include,moduleId:t.moduleId}),r&&On.forEach(i=>{if(Kl(r,i)&&Wp(i)){const o=customElements.get(i);Yp(o,e)?console.warn(`Registering styles that already exist for ${i}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${i}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`),Jl(o),qp(o)}})}function tn(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Yl}function Xp(r=""){let e=0;return r.startsWith("lumo-")||r.startsWith("material-")?e=1:r.startsWith("vaadin-")&&(e=2),e}function Ql(r){const e=[];return r.include&&[].concat(r.include).forEach(t=>{const i=tn().find(o=>o.moduleId===t);i?e.push(...Ql(i),...i.styles):console.warn(`Included moduleId ${t} not found in style registry`)},r.styles),e}function Kp(r){const e=`${r}-default-theme`,t=tn().filter(i=>i.moduleId!==e&&Kl(i.themeFor,r)).map(i=>Fl(ki({},i),{styles:[...Ql(i),...i.styles],includePriority:Xp(i.moduleId)})).sort((i,o)=>o.includePriority-i.includePriority);return t.length>0?t:tn().filter(i=>i.moduleId===e)}const le=r=>class extends Xi(r){constructor(){super(),en.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&On.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||Xl(this)||Up(this.getStylesForThis(),e)}static finalizeStyles(e){const t=this.getStylesForThis();return e?[...[e].flat(1/0),...t]:t}static getStylesForThis(){const e=r.__themes||[],t=Object.getPrototypeOf(this.prototype),i=(t?t.constructor.__themes:[])||[];this.__themes=[...e,...i,...Kp(this.is)];const o=this.__themes.flatMap(n=>n.styles);return o.filter((n,s)=>s===o.lastIndexOf(n))}};/**
52
+ */const Yl=[],Xo=new Set,Tn=new Set;function Xl(i){return i&&Object.prototype.hasOwnProperty.call(i,"__themes")}function Vp(i){return Xl(customElements.get(i))}function $p(i=[]){return[i].flat(1/0).filter(e=>e instanceof Pn?!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 Zl(i){return i.map(e=>e.cssText).join(`
53
+ `)}const Ir="vaadin-themable-mixin-style";function Wp(i,e){const t=document.createElement("style");t.id=Ir,t.textContent=Zl(i),e.content.appendChild(t)}function jp(i){if(!i.shadowRoot)return;const e=i.constructor;if(i instanceof Yt)[...i.shadowRoot.querySelectorAll("style")].forEach(t=>t.remove()),Vl(i.shadowRoot,e.elementStyles);else{const t=i.shadowRoot.getElementById(Ir),r=e.prototype._template;t.textContent=r.content.getElementById(Ir).textContent}}function Up(i){Xo.forEach(e=>{const t=e.deref();t instanceof i?jp(t):t||Xo.delete(e)})}function Jl(i){if(i.prototype instanceof Yt)i.elementStyles=i.finalizeStyles(i.styles);else{const e=i.prototype._template;e.content.getElementById(Ir).textContent=Zl(i.getStylesForThis())}Tn.forEach(e=>{const t=customElements.get(e);t!==i&&t.prototype instanceof i&&Jl(t)})}function Gp(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 L(i,e,t={}){e=$p(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(i,e,t):Yl.push({themeFor:i,styles:e,include:t.include,moduleId:t.moduleId}),i&&Tn.forEach(r=>{if(Kl(i,r)&&Vp(r)){const o=customElements.get(r);Gp(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".`),Jl(o),Up(o)}})}function Ko(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Yl}function qp(i=""){let e=0;return i.startsWith("lumo-")||i.startsWith("material-")?e=1:i.startsWith("vaadin-")&&(e=2),e}function Ql(i){const e=[];return i.include&&[].concat(i.include).forEach(t=>{const r=Ko().find(o=>o.moduleId===t);r?e.push(...Ql(r),...r.styles):console.warn(`Included moduleId ${t} not found in style registry`)},i.styles),e}function Yp(i){const e=`${i}-default-theme`,t=Ko().filter(r=>r.moduleId!==e&&Kl(r.themeFor,i)).map(r=>Fl(Ar({},r),{styles:[...Ql(r),...r.styles],includePriority:qp(r.moduleId)})).sort((r,o)=>o.includePriority-r.includePriority);return t.length>0?t:Ko().filter(r=>r.moduleId===e)}const he=i=>class extends Gr(i){constructor(){super(),Xo.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&Tn.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||Xl(this)||Wp(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,...Yp(this.is)];const o=this.__themes.flatMap(n=>n.styles);return o.filter((n,s)=>s===o.lastIndexOf(n))}};/**
54
54
  * @license
55
55
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
56
56
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
57
- */const Zp=(r,...e)=>{const t=document.createElement("style");t.id=r,t.textContent=e.map(i=>i.toString()).join(`
58
- `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",t)},dr=(r,...e)=>{Zp(`lumo-${r}`,e)};/**
57
+ */const Xp=(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)},ci=(i,...e)=>{Xp(`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 Jp=k`
62
+ */const Kp=k`
63
63
  :host {
64
64
  /* Base (background) */
65
65
  --lumo-base-color: #fff;
@@ -144,7 +144,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
144
144
  --lumo-disabled-text-color: GrayText;
145
145
  }
146
146
  }
147
- `;dr("color-props",Jp);const Qp=k`
147
+ `;ci("color-props",Kp);const Zp=k`
148
148
  [theme~='dark'] {
149
149
  /* Base (background) */
150
150
  --lumo-base-color: hsl(214, 35%, 21%);
@@ -262,11 +262,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
262
262
  pre code {
263
263
  background: transparent;
264
264
  }
265
- `;L("",Qp,{moduleId:"lumo-color"});/**
265
+ `;L("",Zp,{moduleId:"lumo-color"});/**
266
266
  * @license
267
267
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
268
268
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
269
- */const em=k`
269
+ */const Jp=k`
270
270
  @font-face {
271
271
  font-family: 'lumo-icons';
272
272
  src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEgAAsAAAAAIjQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2cAABeAWri7U2hlYWQAAA3oAAAAMAAAADZa/6SsaGhlYQAADhgAAAAdAAAAJAbpA35obXR4AAAOOAAAABAAAACspBAAAGxvY2EAAA5IAAAAWAAAAFh57oA4bWF4cAAADqAAAAAfAAAAIAFKAXBuYW1lAAAOwAAAATEAAAIuUUJZCHBvc3QAAA/0AAABKwAAAelm8SzVeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+yDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mIO+p/FEMUcxDANKMwIkgMABn8MLQB4nO3SWW6DMABF0UtwCEnIPM/zhLK8LqhfXRybSP14XUYtHV9hGYQwQBNIo3cUIPkhQeM7rib1ekqnXg981XuC1qvy84lzojleh3puxL0hPjGjRU473teloEefAUNGjJkwZcacBUtWrNmwZceeA0dOnLlw5cadB09elPGhGf+j0NTI/65KfXerT6JhqKnpRKtgOpuqaTrtKjPUlqHmhto21I7pL6i6hlqY3q7qGWrfUAeGOjTUkaGODXViqFNDnRnq3FAXhro01JWhrg11Y6hbQ90Z6t5QD4Z6NNSToZ4N9WKoV0O9GerdUB+G+jTUl6GWRvkL24BkEXictVh9bFvVFb/nxvbz+7Rf/N6zHcd2bCfP+Wic1Z9N0jpNHCD9SNqqoVBgbQoMjY+pjA4hNnWa2pV1rHSIif0DGkyT2k10Kmu1Cag6huj4ZpqYBHSqJsTEJgZCG3TaVBFv595nO3ZIv4RIrPPuvefe884599zzO/cRF8G/tgn6CFFImNgkR0ggX8wlspbhSSWSdrC5ozd30s2dw5afzvgtyz9/zG9t1hV4RtF1pXolowvtzc2z6L2aYUQM45jKH9WDTvd1LRDoDASYWhfTzTyvboXz6uZX4ARX5wrF39y+HM2+CJ8d0pkyqBIqoze3D12ez4DrFoYzxI8dWwMrDlZ2DMqQAR9AROsJU+2smlTPaTTco52BVxXa2a2+I8vvqd2dVHm1LoPeTn/AZPRYGthDYOeZjBjKoFsVGulR3lGU95SeCK44oHU7MhWUGUKZDT3oSUcG2GWuh+EDDfUYA/jhIhl0TOsJNYSEu7mQmi3UzfXwZKA4BsVsHLXQYGgJW95qEtpJ1VcW9HiTriZBlFEqxsDjA09yCNUoQxxwd7KWSTt2y3GTKifkqHRCoWZc3m11Wa/dKdFgXD4kSYfkeJBKd8KMz7J8dZn/cGRCcLGDnA2Ge3bKzcvlnTDNthFWLH7Xt80ua5FMjA4WKelWv5Xo16vHuYzpRbJhhdVlftuRK0VlR27D9lu5TF0DPBi60OrHNO0AfP/uRWvhn/U3LXICE+nh+3IHPUJ8JE6GyBjZQLbjGchlrSgYngF8zyrIF4NJD3atUcgWsWunGN/UHX5B5/yg7uF87Nqp4Gf52F3gH73DjEZNRoqCKAr9giQJp5rGJABpiVE2htNhW9R8nw0jqYjCYcY4LIjwYNScf4WN06IZnZCEqsI4cFaQbo4Z1TsZBx40YhXkHOecaYE5oY37IIQ+iJJ+UsDYSun5MuRSBRZRUUhlY2DqOGajOR6zrSU/5My6l2DnusH1GQgnw5BZP7iuYM/ahcfQ7Z8y51ddfutvuwNqWQ0cBYr8fj0U0vsHpwerVaB2sWhXT2NExi2r1KUE2tUuVMnkepVQrxTmpQrZTG4iu8he8iPyM3KcPE/+RP5KPoE2CEAKclCBzXATxkYOtUY/o961PWRqsj0chRrHFBbtrjP9/P0ven5pcbRdpL94vfsy33e5+izuwz3nFLFPVNayPZx/jdG1fOChflFRvYzsW6L18efgLrSWIgvcqnGJYi4skO4xREURjbDuxKke5v0T3Mrzkt2fi31uyZlLLrqIpEuXXsMlgw442Jb0GAxjS1DM20kBoCzHLXm/jEm0IltdcvU0fEW24jgiwwRjVd9u4NJHcIyoHJcwvyVqgqj5hqBJ1ZWSJryh9p56UWhX1XbhRbW2ZopuZWsQd5y8mEQ8M+C6xjRYxZbDKWf5AgY+Qq/l6wSPk16zDFjowYuu+wjx13mfkxbyDDxadYT/LijZyI0THB+6yfLaWsRcO82zo9mWTNtpO18qlorZoIVMwSN40tky5DOQ1MCIAe24mvlsuwIIxPb10+uXDQ4uWz/9m3rj+ql7p6bufZARuPVq5tXtsn6KwfP8Jy0TeWOyNhUJN6mhX5rkUTtUppQWEMNTqEdaCGKFYKJaQrCE4JtDLYOlNEKmO5kBTPGY2A0N2sY3+dVlo1N9ycBsIGtOjQ2p/tlZvzo0ur4v6cOh8NTospB7U/X40KahoU3bGIH97dnwmtHlYffVG3R1YOwKM2vNhrPhCT5zk64sG53oS4b31aYjqe/B7+kQiXBN+b6h21hNUPMq29B8CU4elINdygMPKF1B+WBTG7Z9ZshpN/xwEuuDQZR+nuoo4CDaAiiwXmLpmukMQyPf/JMclqgL1ixZQ/nnP2VbdUODFGt2fgBvL123rlLYu/6A9ckb7F3K0/CyBMEu6aQoPscroCcacVehvyQyCZAsizsWWBkoLC+WAiWnOksLKaeuQDzGuqSk42aiYTiJ4zf9afl17SrqaTO1f+XlZAfIuYcq7/IqYMaMrksOJ6vHkOCPDq943xcCnHqVD9pHFRpMqSPXrIua1WNs+tOz1U+ciTCDpPk+c4QYJIHnYhxP/kVPAq+ahFpVhPcHp8qyarhiF+HsBU9Hrl+UZa876fbKipL0KqB6OdUveErgtOI97fZ63ae9SvWU6k2w1JfwqnUbHsYcFCJFrC/W12zIMMirWYEHxMPs6LGYSdkSZ5TsNP9PCpwnWC3HKZ1lydNjWHC2Mn3l6vL0dHn1ldP3LTSrX+vKrBqv7KmMr8p0SR6P1NqF63or6XRlIyO90f7+kf7+myOhvt4tq7f09oUiTc2/dycGgqFQcCDRLYmi1NL7fk0CknVMxEg/cdfs/TnpJMNkgqwj17B8beVazSrVbU4lG67IZYOCnWrYy3yBR9cyWcChywos3LJBEdhhFoAdYjiw0rLGm0xU5OzoGm5/ZfmHjVZpNNg6SznzGKDdwv2cCtVn6Eaxo12cfxLprpVtTcZ6hVx6dow7Yq7e8LXO8PY9Jgjoze9yCtU5FNbegcKkQMdCbt9au/te4Ebe0jkc0ukUL32eYnTpNs20h0KpUOhZPYwVcfhZnfdqeCvDfXiuCbAoYWcXERPc/mDQD3/hdF+wK4i/xv3kYfprIpAuMkk2kW3kdtS0kBIKpZwp8KxmsCyfM1MFzAss9LBkDxRyThiaqTLwKYKJVTwmWTudMyz+yks09346MDh4m72yOxCKrt1XMlQ1qPVlTEVVQ1ofdK/sCWjtZu9qGwZ8YZ9PPWlo1IV3eW3+U0aXblP39zrt+JPf6UhEQ1rUjNBULN+utyuaDNW34kpAVuSOeMTyWbSNWnooFu+QFNWQ4d/Ox4IPWx41fP/fB/Rjeoz08ezPA9TysMtmnOXfGN7Ui3xIYLDALrlDLOP09qtJuY2OeL0+QZXdRnR1nxRVBF/SOyKKPpcrn9mWzH4rH9IidE+PTNU2182+hOgSItrE1slByS24vaLvJpxOqe4Pduf3HJkZ+jLqUz9rRzB7p8gKcgWZwV1L8JtUS5Z2JxZSOCuBoMTQihMzLbCPA0KqGMAljRQjONklW/wjnXKy8vxT/Elvm3/KiMUMOoV0/vnDYlhec0SMKtt3/kKMyOt33tj2bqxQLsTjSGLl+EAsNhCnTyRGktW55EgCn/A4PlnWn+Mg8bgZrWqHxTbPwMuyy1u5YeZF2SUM7JRhddwRgiRuxpmgJmxn9ZW7XpcF3ViX/ar6ptRpGJ0S9Adg4qhb9sI3vbL7qNJV/y4i07t5TZBiho1imFoMz3gED+CtjYUxvP4SOxov4bFoNPg5aR1e+G4UgDPoedJTpogyCJ7oYvRqoVS0MQAy+CoNEdTDUjok5ZHZL/WtjV7rFj3PKQE3iKp7ou+rIxN3b9LB1dGjeT4cvKo3FrnWpYpuaFd/h3dtV8UeKN1Y9hpR3dt4p0H/zKuPQq0kZQUIIpuDfoiETsnIk+gCWMJZUXHtE8V9LkUc2TE8vOMbO4ax/MACabzyaGXc7u3FBr11ThBdB8SIeMAlCntG2KThHSPsaj2Dc9KNyY2a0KZ7ODaTHoRiFkeYz+shZBpCS4X6471KKKnuHd84edfk5F37d1XO5bbkcltu2ZLNbvnPXiUVAnVvprJrP+NObryjxrllS65md6Tm6wzFHRR4dY3QUUjb7MgxaIixU8hspi98fl/Xc+IB4iU66eCVL9YfAfahiSUt4TONS8x0D8W7u8vd3fGWx6OXlM/U1IoU/s61PGhpyXRFa3eReq2qG56lvmYtXavCC1iN7lbiBpWxXHU+cSlztVLVz0tVN600fVsLxaVDknhYioeoXP3t4lqV1r79MAw0GCI1FTL1YIGzPL1MMlJ9ZsN9P7lvA2yr9ZFUzwzPrVgxN/x/SS+chwB4nGNgZGBgAOLPrYdY4vltvjJwM78AijDUqG5oRND/XzNPZboF5HIwMIFEAU/lC+J4nGNgZGBgDvqfBSRfMAAB81QGRgZUoA0AVvYDbwAAAHicY2BgYGB+MTQwAM8EJo8AAAAAAE4AmgDoAQoBLAFOAXABmgHEAe4CGgKcAugEmgS8BNYE8gUOBSoFegXQBf4GRAZmBrYHGAeQCBgIUghqCP4JRgm+CdoKBAo+CoQKugr0C1QLmgvAeJxjYGRgYNBmTGEQZQABJiDmAkIGhv9gPgMAGJQBvAB4nG2RPU7DMBiG3/QP0UoIBGJh8QILavozdmRo9w7d09RpUzlx5LgVvQMn4BAcgoEzcAgOwVvzSZVQbcnf48fvFysJgGt8IcJxROiG9TgauODuj5ukG+EW+UG4jR4ehTv0Q+EunjER7uEWmk+IWpc0d3gVbuAKb8JN+nfhFvlDuI17fAp36L+Fu1jgR7iHp+jF7Arbz1Nb1nO93pnEncSJFtrVuS3VKB6e5EyX2iVer9TyoOr9eux9pjJnCzW1pdfGWFU5u9WpjzfeV5PBIBMfp7aAwQ4FLPrIkbKWqDHn+67pDRK4s4lzbsEux5qHvcIIMb/nueSMyTKkE3jWFdNLHLjW2PPmMa1Hxn3GjGW/wjT0HtOG09JU4WxLk9LH2ISuiv9twJn9y8fh9uIXI+BknAAAAHicbY7ZboMwEEW5CVBCSLrv+76kfJRjTwHFsdGAG+Xvy5JUfehIHp0rnxmNN/D6ir3/a4YBhvARIMQOIowQY4wEE0yxiz3s4wCHOMIxTnCKM5zjApe4wjVucIs73OMBj3jCM17wije84wMzfHqJ0EVmUkmmJo77oOmrHvfIRZbXsTCZplTZldlgb3TYGVHProwFs11t1A57tcON2rErR3PBqcwF1/6ctI6k0GSU4JHMSS6WghdJQ99sTbfuN7QLJ9vQ37dNrgyktnIxlDYLJNuqitpRbYWKFNuyDT6pog6oOYKHtKakeakqKjHXpPwlGRcsC+OqxLIiJpXqoqqDMreG2l5bv9Ri3TRX+c23DZna9WFFgmXuO6Ps1Jm/w6ErW8N3FbHn/QC444j0AA==)
@@ -319,11 +319,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
319
319
  --lumo-icons-upload: '\\ea29';
320
320
  --lumo-icons-user: '\\ea2a';
321
321
  }
322
- `;dr("font-icons",em);/**
322
+ `;ci("font-icons",Jp);/**
323
323
  * @license
324
324
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
325
325
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
326
- */const tm=k`
326
+ */const Qp=k`
327
327
  :host {
328
328
  --lumo-size-xs: 1.625rem;
329
329
  --lumo-size-s: 1.875rem;
@@ -338,11 +338,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
338
338
  /* For backwards compatibility */
339
339
  --lumo-icon-size: var(--lumo-icon-size-m);
340
340
  }
341
- `;dr("sizing-props",tm);/**
341
+ `;ci("sizing-props",Qp);/**
342
342
  * @license
343
343
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
344
344
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
345
- */const rm=k`
345
+ */const em=k`
346
346
  :host {
347
347
  /* Square */
348
348
  --lumo-space-xs: 0.25rem;
@@ -365,11 +365,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
365
365
  --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
366
366
  --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
367
367
  }
368
- `;dr("spacing-props",rm);/**
368
+ `;ci("spacing-props",em);/**
369
369
  * @license
370
370
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
371
371
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
372
- */const im=k`
372
+ */const tm=k`
373
373
  :host {
374
374
  /* Border radius */
375
375
  --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
@@ -469,11 +469,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
469
469
  --vaadin-input-field-value-font-size: var(--lumo-font-size-m);
470
470
  --vaadin-input-field-value-font-weight: 500;
471
471
  }
472
- `;dr("style-props",im);/**
472
+ `;ci("style-props",tm);/**
473
473
  * @license
474
474
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
475
475
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
476
- */const om=k`
476
+ */const im=k`
477
477
  :host {
478
478
  /* prettier-ignore */
479
479
  --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
@@ -493,7 +493,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
493
493
  --lumo-line-height-s: 1.375;
494
494
  --lumo-line-height-m: 1.625;
495
495
  }
496
- `,nm=k`
496
+ `,rm=k`
497
497
  body,
498
498
  :host {
499
499
  font-family: var(--lumo-font-family);
@@ -585,7 +585,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
585
585
  border-left: none;
586
586
  border-right: 2px solid var(--lumo-contrast-30pct);
587
587
  }
588
- `;L("",nm,{moduleId:"lumo-typography"});dr("typography-props",om);L("vaadin-checkbox",k`
588
+ `;L("",rm,{moduleId:"lumo-typography"});ci("typography-props",im);L("vaadin-checkbox",k`
589
589
  :host {
590
590
  color: var(--vaadin-checkbox-label-color, var(--lumo-body-text-color));
591
591
  font-size: var(--vaadin-checkbox-label-font-size, var(--lumo-font-size-m));
@@ -897,7 +897,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
897
897
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
898
898
  Code distributed by Google as part of the polymer project is also
899
899
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
900
- */window.JSCompiler_renameProperty=function(r,e){return r};/**
900
+ */window.JSCompiler_renameProperty=function(i,e){return i};/**
901
901
  @license
902
902
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
903
903
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -905,7 +905,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
905
905
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
906
906
  Code distributed by Google as part of the polymer project is also
907
907
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
908
- */let sm=/(url\()([^)]*)(\))/g,am=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,di,Re;function kr(r,e){if(r&&am.test(r)||r==="//")return r;if(di===void 0){di=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",di=t.href==="http://a/c%20d"}catch(t){}}if(e||(e=document.baseURI||window.location.href),di)try{return new URL(r,e).href}catch(t){return r}return Re||(Re=document.implementation.createHTMLDocument("temp"),Re.base=Re.createElement("base"),Re.head.appendChild(Re.base),Re.anchor=Re.createElement("a"),Re.body.appendChild(Re.anchor)),Re.base.href=e,Re.anchor.href=r,Re.anchor.href||r}function Mn(r,e){return r.replace(sm,function(t,i,o,n){return i+"'"+kr(o.replace(/["']/g,""),e)+"'"+n})}function Nn(r){return r.substring(0,r.lastIndexOf("/")+1)}/**
908
+ */let om=/(url\()([^)]*)(\))/g,nm=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,hr,Re;function Ti(i,e){if(i&&nm.test(i)||i==="//")return i;if(hr===void 0){hr=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",hr=t.href==="http://a/c%20d"}catch(t){}}if(e||(e=document.baseURI||window.location.href),hr)try{return new URL(i,e).href}catch(t){return i}return Re||(Re=document.implementation.createHTMLDocument("temp"),Re.base=Re.createElement("base"),Re.head.appendChild(Re.base),Re.anchor=Re.createElement("a"),Re.body.appendChild(Re.anchor)),Re.base.href=e,Re.anchor.href=i,Re.anchor.href||i}function In(i,e){return i.replace(om,function(t,r,o,n){return r+"'"+Ti(o.replace(/["']/g,""),e)+"'"+n})}function Dn(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 eh=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const lm=eh&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const r=new CSSStyleSheet;r.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[r],e.shadowRoot.adoptedStyleSheets[0]===r}catch(r){return!1}})();let hm=window.Polymer&&window.Polymer.rootPath||Nn(document.baseURI||window.location.href),Mi=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let Ni=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,dm=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,th=window.Polymer&&window.Polymer.legacyOptimizations||!1,rh=window.Polymer&&window.Polymer.legacyWarnings||!1,cm=window.Polymer&&window.Polymer.syncInitialRender||!1,rn=window.Polymer&&window.Polymer.legacyUndefined||!1,um=window.Polymer&&window.Polymer.orderedComputed||!1,ea=window.Polymer&&window.Polymer.removeNestedTemplates||!1,pm=window.Polymer&&window.Polymer.fastDomIf||!1,ta=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let mm=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
916
+ */const eh=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const sm=eh&&"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 am=window.Polymer&&window.Polymer.rootPath||Dn(document.baseURI||window.location.href),Dr=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let Or=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,lm=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,th=window.Polymer&&window.Polymer.legacyOptimizations||!1,ih=window.Polymer&&window.Polymer.legacyWarnings||!1,hm=window.Polymer&&window.Polymer.syncInitialRender||!1,Zo=window.Polymer&&window.Polymer.legacyUndefined||!1,dm=window.Polymer&&window.Polymer.orderedComputed||!1,Qs=window.Polymer&&window.Polymer.removeNestedTemplates||!1,cm=window.Polymer&&window.Polymer.fastDomIf||!1,ea=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let um=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
917
917
  @license
918
918
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
919
919
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -921,7 +921,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
921
921
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
922
922
  Code distributed by Google as part of the polymer project is also
923
923
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
924
- */let fm=0;const ve=function(r){let e=r.__mixinApplications;e||(e=new WeakMap,r.__mixinApplications=e);let t=fm++;function i(o){let n=o.__mixinSet;if(n&&n[t])return o;let s=e,a=s.get(o);if(!a){a=r(o),s.set(o,a);let l=Object.create(a.__mixinSet||n||null);l[t]=!0,a.__mixinSet=l}return a}return i};/**
924
+ */let pm=0;const ve=function(i){let e=i.__mixinApplications;e||(e=new WeakMap,i.__mixinApplications=e);let t=pm++;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};/**
925
925
  @license
926
926
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
927
927
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -929,7 +929,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
929
929
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
930
930
  Code distributed by Google as part of the polymer project is also
931
931
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
932
- */let zn={},ih={};function ra(r,e){zn[r]=ih[r.toLowerCase()]=e}function ia(r){return zn[r]||ih[r.toLowerCase()]}function _m(r){r.querySelector("style")&&console.warn("dom-module %s has style outside template",r.id)}class Br extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let i=ia(e);return i&&t?i.querySelector(t):i}return null}attributeChangedCallback(e,t,i,o){t!==i&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=kr(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=Nn(t)}return this.__assetpath}register(e){if(e=e||this.id,e){if(Ni&&ia(e)!==void 0)throw ra(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,ra(e,this),_m(this)}}}Br.prototype.modules=zn;customElements.define("dom-module",Br);/**
932
+ */let On={},rh={};function ta(i,e){On[i]=rh[i.toLowerCase()]=e}function ia(i){return On[i]||rh[i.toLowerCase()]}function mm(i){i.querySelector("style")&&console.warn("dom-module %s has style outside template",i.id)}class Bi extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let r=ia(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=Ti(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=Dn(t)}return this.__assetpath}register(e){if(e=e||this.id,e){if(Or&&ia(e)!==void 0)throw ta(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,ta(e,this),mm(this)}}}Bi.prototype.modules=On;customElements.define("dom-module",Bi);/**
933
933
  @license
934
934
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
935
935
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -937,7 +937,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
937
937
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
938
938
  Code distributed by Google as part of the polymer project is also
939
939
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
940
- */const vm="link[rel=import][type~=css]",gm="include",oa="shady-unscoped";function oh(r){return Br.import(r)}function na(r){let e=r.body?r.body:r;const t=Mn(e.textContent,r.baseURI),i=document.createElement("style");return i.textContent=t,i}function bm(r){const e=r.trim().split(/\s+/),t=[];for(let i=0;i<e.length;i++)t.push(...ym(e[i]));return t}function ym(r){const e=oh(r);if(!e)return console.warn("Could not find style data in module named",r),[];if(e._styles===void 0){const t=[];t.push(...sh(e));const i=e.querySelector("template");i&&t.push(...nh(i,e.assetpath)),e._styles=t}return e._styles}function nh(r,e){if(!r._styles){const t=[],i=r.content.querySelectorAll("style");for(let o=0;o<i.length;o++){let n=i[o],s=n.getAttribute(gm);s&&t.push(...bm(s).filter(function(a,l,h){return h.indexOf(a)===l})),e&&(n.textContent=Mn(n.textContent,e)),t.push(n)}r._styles=t}return r._styles}function xm(r){let e=oh(r);return e?sh(e):[]}function sh(r){const e=[],t=r.querySelectorAll(vm);for(let i=0;i<t.length;i++){let o=t[i];if(o.import){const n=o.import,s=o.hasAttribute(oa);if(s&&!n._unscopedStyle){const a=na(n);a.setAttribute(oa,""),n._unscopedStyle=a}else n._style||(n._style=na(n));e.push(s?n._unscopedStyle:n._style)}}return e}/**
940
+ */const _m="link[rel=import][type~=css]",fm="include",ra="shady-unscoped";function oh(i){return Bi.import(i)}function oa(i){let e=i.body?i.body:i;const t=In(e.textContent,i.baseURI),r=document.createElement("style");return r.textContent=t,r}function vm(i){const e=i.trim().split(/\s+/),t=[];for(let r=0;r<e.length;r++)t.push(...gm(e[r]));return t}function gm(i){const e=oh(i);if(!e)return console.warn("Could not find style data in module named",i),[];if(e._styles===void 0){const t=[];t.push(...sh(e));const r=e.querySelector("template");r&&t.push(...nh(r,e.assetpath)),e._styles=t}return e._styles}function nh(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(fm);s&&t.push(...vm(s).filter(function(a,l,h){return h.indexOf(a)===l})),e&&(n.textContent=In(n.textContent,e)),t.push(n)}i._styles=t}return i._styles}function bm(i){let e=oh(i);return e?sh(e):[]}function sh(i){const e=[],t=i.querySelectorAll(_m);for(let r=0;r<t.length;r++){let o=t[r];if(o.import){const n=o.import,s=o.hasAttribute(ra);if(s&&!n._unscopedStyle){const a=oa(n);a.setAttribute(ra,""),n._unscopedStyle=a}else n._style||(n._style=oa(n));e.push(s?n._unscopedStyle:n._style)}}return e}/**
941
941
  @license
942
942
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
943
943
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -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 Pe=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?r=>ShadyDOM.patch(r):r=>r;/**
948
+ */const Pe=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 on(r){return r.indexOf(".")>=0}function Bt(r){let e=r.indexOf(".");return e===-1?r:r.slice(0,e)}function ah(r,e){return r.indexOf(e+".")===0}function Lr(r,e){return e.indexOf(r+".")===0}function Hr(r,e,t){return e+t.slice(r.length)}function wm(r,e){return r===e||ah(r,e)||Lr(r,e)}function Cr(r){if(Array.isArray(r)){let e=[];for(let t=0;t<r.length;t++){let i=r[t].toString().split(".");for(let o=0;o<i.length;o++)e.push(i[o])}return e.join(".")}else return r}function lh(r){return Array.isArray(r)?Cr(r).split("."):r.toString().split(".")}function Le(r,e,t){let i=r,o=lh(e);for(let n=0;n<o.length;n++){if(!i)return;let s=o[n];i=i[s]}return t&&(t.path=o.join(".")),i}function sa(r,e,t){let i=r,o=lh(e),n=o[o.length-1];if(o.length>1){for(let s=0;s<o.length-1;s++){let a=o[s];if(i=i[a],!i)return}i[n]=t}else i[e]=t;return o.join(".")}/**
956
+ */function Jo(i){return i.indexOf(".")>=0}function Bt(i){let e=i.indexOf(".");return e===-1?i:i.slice(0,e)}function ah(i,e){return i.indexOf(e+".")===0}function Li(i,e){return e.indexOf(i+".")===0}function Hi(i,e,t){return e+t.slice(i.length)}function ym(i,e){return i===e||ah(i,e)||Li(i,e)}function Ei(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 lh(i){return Array.isArray(i)?Ei(i).split("."):i.toString().split(".")}function Le(i,e,t){let r=i,o=lh(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 na(i,e,t){let r=i,o=lh(e),n=o[o.length-1];if(o.length>1){for(let s=0;s<o.length-1;s++){let a=o[s];if(r=r[a],!r)return}r[n]=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 zi={},Cm=/-[a-z]/g,Em=/([A-Z])/g;function hh(r){return zi[r]||(zi[r]=r.indexOf("-")<0?r:r.replace(Cm,e=>e[1].toUpperCase()))}function Ki(r){return zi[r]||(zi[r]=r.replace(Em,"-$1").toLowerCase())}/**
964
+ */const Mr={},xm=/-[a-z]/g,wm=/([A-Z])/g;function hh(i){return Mr[i]||(Mr[i]=i.indexOf("-")<0?i:i.replace(xm,e=>e[1].toUpperCase()))}function qr(i){return Mr[i]||(Mr[i]=i.replace(wm,"-$1").toLowerCase())}/**
965
965
  @license
966
966
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
967
967
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -969,7 +969,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
969
969
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
970
970
  Code distributed by Google as part of the polymer project is also
971
971
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
972
- */let Sm=0,dh=0,Yt=[],Am=0,nn=!1,ch=document.createTextNode("");new window.MutationObserver(Pm).observe(ch,{characterData:!0});function Pm(){nn=!1;const r=Yt.length;for(let e=0;e<r;e++){let t=Yt[e];if(t)try{t()}catch(i){setTimeout(()=>{throw i})}}Yt.splice(0,r),dh+=r}const km={after(r){return{run(e){return window.setTimeout(e,r)},cancel(e){window.clearTimeout(e)}}},run(r,e){return window.setTimeout(r,e)},cancel(r){window.clearTimeout(r)}},uh={run(r){return nn||(nn=!0,ch.textContent=Am++),Yt.push(r),Sm++},cancel(r){const e=r-dh;if(e>=0){if(!Yt[e])throw new Error("invalid async handle: "+r);Yt[e]=null}}};/**
972
+ */let Cm=0,dh=0,Xt=[],Em=0,Qo=!1,ch=document.createTextNode("");new window.MutationObserver(Sm).observe(ch,{characterData:!0});function Sm(){Qo=!1;const i=Xt.length;for(let e=0;e<i;e++){let t=Xt[e];if(t)try{t()}catch(r){setTimeout(()=>{throw r})}}Xt.splice(0,i),dh+=i}const Am={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)}},uh={run(i){return Qo||(Qo=!0,ch.textContent=Em++),Xt.push(i),Cm++},cancel(i){const e=i-dh;if(e>=0){if(!Xt[e])throw new Error("invalid async handle: "+i);Xt[e]=null}}};/**
973
973
  @license
974
974
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
975
975
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -977,7 +977,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
977
977
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
978
978
  Code distributed by Google as part of the polymer project is also
979
979
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
980
- */const Tm=uh,ph=ve(r=>{class e extends r{static createProperties(i){const o=this.prototype;for(let n in i)n in o||o._createPropertyAccessor(n)}static attributeNameForProperty(i){return i.toLowerCase()}static typeForProperty(i){}_createPropertyAccessor(i,o){this._addPropertyToAttributeMap(i),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[i]||(this.__dataHasAccessor[i]=!0,this._definePropertyAccessor(i,o))}_addPropertyToAttributeMap(i){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let o=this.__dataAttributes[i];return o||(o=this.constructor.attributeNameForProperty(i),this.__dataAttributes[o]=i),o}_definePropertyAccessor(i,o){Object.defineProperty(this,i,{get(){return this.__data[i]},set:o?function(){}:function(n){this._setPendingProperty(i,n,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let i in this.__dataHasAccessor)this.hasOwnProperty(i)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[i]=this[i],delete this[i])}_initializeInstanceProperties(i){Object.assign(this,i)}_setProperty(i,o){this._setPendingProperty(i,o)&&this._invalidateProperties()}_getProperty(i){return this.__data[i]}_setPendingProperty(i,o,n){let s=this.__data[i],a=this._shouldPropertyChange(i,o,s);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(i in this.__dataOld)&&(this.__dataOld[i]=s),this.__data[i]=o,this.__dataPending[i]=o),a}_isPropertyPending(i){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(i))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Tm.run(()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())}))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const i=this.__data,o=this.__dataPending,n=this.__dataOld;this._shouldPropertiesChange(i,o,n)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(i,o,n)),this.__dataCounter--}_shouldPropertiesChange(i,o,n){return!!o}_propertiesChanged(i,o,n){}_shouldPropertyChange(i,o,n){return n!==o&&(n===n||o===o)}attributeChangedCallback(i,o,n,s){o!==n&&this._attributeToProperty(i,n),super.attributeChangedCallback&&super.attributeChangedCallback(i,o,n,s)}_attributeToProperty(i,o,n){if(!this.__serializing){const s=this.__dataAttributes,a=s&&s[i]||i;this[a]=this._deserializeValue(o,n||this.constructor.typeForProperty(a))}}_propertyToAttribute(i,o,n){this.__serializing=!0,n=arguments.length<3?this[i]:n,this._valueToNodeAttribute(this,n,o||this.constructor.attributeNameForProperty(i)),this.__serializing=!1}_valueToNodeAttribute(i,o,n){const s=this._serializeValue(o);(n==="class"||n==="name"||n==="slot")&&(i=Pe(i)),s===void 0?i.removeAttribute(n):i.setAttribute(n,s===""&&window.trustedTypes?window.trustedTypes.emptyScript:s)}_serializeValue(i){switch(typeof i){case"boolean":return i?"":void 0;default:return i!=null?i.toString():void 0}}_deserializeValue(i,o){switch(o){case Boolean:return i!==null;case Number:return Number(i);default:return i}}}return e});/**
980
+ */const Pm=uh,ph=ve(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,Pm.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=Pe(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});/**
981
981
  @license
982
982
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
983
983
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -985,7 +985,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
985
985
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
986
986
  Code distributed by Google as part of the polymer project is also
987
987
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
988
- */const mh={};let ci=HTMLElement.prototype;for(;ci;){let r=Object.getOwnPropertyNames(ci);for(let e=0;e<r.length;e++)mh[r[e]]=!0;ci=Object.getPrototypeOf(ci)}const Im=window.trustedTypes?r=>trustedTypes.isHTML(r)||trustedTypes.isScript(r)||trustedTypes.isScriptURL(r):()=>!1;function Dm(r,e){if(!mh[e]){let t=r[e];t!==void 0&&(r.__data?r._setPendingProperty(e,t):(r.__dataProto?r.hasOwnProperty(JSCompiler_renameProperty("__dataProto",r))||(r.__dataProto=Object.create(r.__dataProto)):r.__dataProto={},r.__dataProto[e]=t))}}const Om=ve(r=>{const e=ph(r);class t extends e{static createPropertiesForAttributes(){let o=this.observedAttributes;for(let n=0;n<o.length;n++)this.prototype._createPropertyAccessor(hh(o[n]))}static attributeNameForProperty(o){return Ki(o)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(o){for(let n in o)this._setProperty(n,o[n])}_ensureAttribute(o,n){const s=this;s.hasAttribute(o)||this._valueToNodeAttribute(s,n,o)}_serializeValue(o){switch(typeof o){case"object":if(o instanceof Date)return o.toString();if(o){if(Im(o))return o;try{return JSON.stringify(o)}catch(n){return""}}default:return super._serializeValue(o)}}_deserializeValue(o,n){let s;switch(n){case Object:try{s=JSON.parse(o)}catch(a){s=o}break;case Array:try{s=JSON.parse(o)}catch(a){s=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${o}`)}break;case Date:s=isNaN(o)?String(o):Number(o),s=new Date(s);break;default:s=super._deserializeValue(o,n);break}return s}_definePropertyAccessor(o,n){Dm(this,o),super._definePropertyAccessor(o,n)}_hasAccessor(o){return this.__dataHasAccessor&&this.__dataHasAccessor[o]}_isPropertyPending(o){return!!(this.__dataPending&&o in this.__dataPending)}}return t});/**
988
+ */const mh={};let dr=HTMLElement.prototype;for(;dr;){let i=Object.getOwnPropertyNames(dr);for(let e=0;e<i.length;e++)mh[i[e]]=!0;dr=Object.getPrototypeOf(dr)}const km=window.trustedTypes?i=>trustedTypes.isHTML(i)||trustedTypes.isScript(i)||trustedTypes.isScriptURL(i):()=>!1;function Tm(i,e){if(!mh[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 Im=ve(i=>{const e=ph(i);class t extends e{static createPropertiesForAttributes(){let o=this.observedAttributes;for(let n=0;n<o.length;n++)this.prototype._createPropertyAccessor(hh(o[n]))}static attributeNameForProperty(o){return qr(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(km(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){Tm(this,o),super._definePropertyAccessor(o,n)}_hasAccessor(o){return this.__dataHasAccessor&&this.__dataHasAccessor[o]}_isPropertyPending(o){return!!(this.__dataPending&&o in this.__dataPending)}}return t});/**
989
989
  @license
990
990
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
991
991
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -993,7 +993,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
993
993
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
994
994
  Code distributed by Google as part of the polymer project is also
995
995
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
996
- */const Mm={"dom-if":!0,"dom-repeat":!0};let aa=!1,la=!1;function Nm(){if(!aa){aa=!0;const r=document.createElement("textarea");r.placeholder="a",la=r.placeholder===r.textContent}return la}function zm(r){Nm()&&r.localName==="textarea"&&r.placeholder&&r.placeholder===r.textContent&&(r.textContent=null)}const Bm=(()=>{const r=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,i)=>{const o=t.getAttribute(i);if(r&&i.startsWith("on-")){e.setAttribute(i,r.createScript(o,i));return}e.setAttribute(i,o)}})();function Lm(r){let e=r.getAttribute("is");if(e&&Mm[e]){let t=r;for(t.removeAttribute("is"),r=t.ownerDocument.createElement(e),t.parentNode.replaceChild(r,t),r.appendChild(t);t.attributes.length;){const{name:i}=t.attributes[0];Bm(r,t,i),t.removeAttribute(i)}}return r}function fh(r,e){let t=e.parentInfo&&fh(r,e.parentInfo);if(t){for(let i=t.firstChild,o=0;i;i=i.nextSibling)if(e.parentIndex===o++)return i}else return r}function Hm(r,e,t,i){i.id&&(e[i.id]=t)}function Rm(r,e,t){if(t.events&&t.events.length)for(let i=0,o=t.events,n;i<o.length&&(n=o[i]);i++)r._addMethodEventListenerToNode(e,n.name,n.value,r)}function Fm(r,e,t,i){t.templateInfo&&(e._templateInfo=t.templateInfo,e._parentTemplateInfo=i)}function $m(r,e,t){return r=r._methodHost||r,function(i){r[t]?r[t](i,i.detail):console.warn("listener method `"+t+"` not defined")}}const Vm=ve(r=>{class e extends r{static _parseTemplate(i,o){if(!i._templateInfo){let n=i._templateInfo={};n.nodeInfoList=[],n.nestedTemplate=!!o,n.stripWhiteSpace=o&&o.stripWhiteSpace||i.hasAttribute&&i.hasAttribute("strip-whitespace"),this._parseTemplateContent(i,n,{parent:null})}return i._templateInfo}static _parseTemplateContent(i,o,n){return this._parseTemplateNode(i.content,o,n)}static _parseTemplateNode(i,o,n){let s=!1,a=i;return a.localName=="template"&&!a.hasAttribute("preserve-content")?s=this._parseTemplateNestedTemplate(a,o,n)||s:a.localName==="slot"&&(o.hasInsertionPoint=!0),zm(a),a.firstChild&&this._parseTemplateChildNodes(a,o,n),a.hasAttributes&&a.hasAttributes()&&(s=this._parseTemplateNodeAttributes(a,o,n)||s),s||n.noted}static _parseTemplateChildNodes(i,o,n){if(!(i.localName==="script"||i.localName==="style"))for(let s=i.firstChild,a=0,l;s;s=l){if(s.localName=="template"&&(s=Lm(s)),l=s.nextSibling,s.nodeType===Node.TEXT_NODE){let d=l;for(;d&&d.nodeType===Node.TEXT_NODE;)s.textContent+=d.textContent,l=d.nextSibling,i.removeChild(d),d=l;if(o.stripWhiteSpace&&!s.textContent.trim()){i.removeChild(s);continue}}let h={parentIndex:a,parentInfo:n};this._parseTemplateNode(s,o,h)&&(h.infoIndex=o.nodeInfoList.push(h)-1),s.parentNode&&a++}}static _parseTemplateNestedTemplate(i,o,n){let s=i,a=this._parseTemplate(s,o);return(a.content=s.content.ownerDocument.createDocumentFragment()).appendChild(s.content),n.templateInfo=a,!0}static _parseTemplateNodeAttributes(i,o,n){let s=!1,a=Array.from(i.attributes);for(let l=a.length-1,h;h=a[l];l--)s=this._parseTemplateNodeAttribute(i,o,n,h.name,h.value)||s;return s}static _parseTemplateNodeAttribute(i,o,n,s,a){return s.slice(0,3)==="on-"?(i.removeAttribute(s),n.events=n.events||[],n.events.push({name:s.slice(3),value:a}),!0):s==="id"?(n.id=a,!0):!1}static _contentForTemplate(i){let o=i._templateInfo;return o&&o.content||i.content}_stampTemplate(i,o){i&&!i.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(i),o=o||this.constructor._parseTemplate(i);let n=o.nodeInfoList,s=o.content||i.content,a=document.importNode(s,!0);a.__noInsertionPoint=!o.hasInsertionPoint;let l=a.nodeList=new Array(n.length);a.$={};for(let h=0,d=n.length,c;h<d&&(c=n[h]);h++){let u=l[h]=fh(a,c);Hm(this,a.$,u,c),Fm(this,u,c,o),Rm(this,u,c)}return a=a,a}_addMethodEventListenerToNode(i,o,n,s){s=s||i;let a=$m(s,o,n);return this._addEventListenerToNode(i,o,a),a}_addEventListenerToNode(i,o,n){i.addEventListener(o,n)}_removeEventListenerFromNode(i,o,n){i.removeEventListener(o,n)}}return e});/**
996
+ */const Dm={"dom-if":!0,"dom-repeat":!0};let sa=!1,aa=!1;function Om(){if(!sa){sa=!0;const i=document.createElement("textarea");i.placeholder="a",aa=i.placeholder===i.textContent}return aa}function Mm(i){Om()&&i.localName==="textarea"&&i.placeholder&&i.placeholder===i.textContent&&(i.textContent=null)}const Nm=(()=>{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 zm(i){let e=i.getAttribute("is");if(e&&Dm[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];Nm(i,t,r),t.removeAttribute(r)}}return i}function _h(i,e){let t=e.parentInfo&&_h(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 Bm(i,e,t,r){r.id&&(e[r.id]=t)}function Lm(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 Hm(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 Fm=ve(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),Mm(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=zm(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 u=l[h]=_h(a,c);Bm(this,a.$,u,c),Hm(this,u,c,o),Lm(this,u,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});/**
997
997
  * @fileoverview
998
998
  * @suppress {checkPrototypalTypes}
999
999
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1003,7 +1003,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1003
1003
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
1004
1004
  * Google as part of the polymer project is also subject to an additional IP
1005
1005
  * rights grant found at http://polymer.github.io/PATENTS.txt
1006
- */let Rr=0;const Fr=[],te={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},_h="__computeInfo",Wm=/[A-Z]/;function xo(r,e,t){let i=r[e];if(!i)i=r[e]={};else if(!r.hasOwnProperty(e)&&(i=r[e]=Object.create(r[e]),t))for(let o in i){let n=i[o],s=i[o]=Array(n.length);for(let a=0;a<n.length;a++)s[a]=n[a]}return i}function Er(r,e,t,i,o,n){if(e){let s=!1;const a=Rr++;for(let l in t){let h=o?Bt(l):l,d=e[h];if(d)for(let c=0,u=d.length,m;c<u&&(m=d[c]);c++)(!m.info||m.info.lastRun!==a)&&(!o||Bn(l,m.trigger))&&(m.info&&(m.info.lastRun=a),m.fn(r,l,t,i,m.info,o,n),s=!0)}return s}return!1}function jm(r,e,t,i,o,n,s,a){let l=!1,h=s?Bt(i):i,d=e[h];if(d)for(let c=0,u=d.length,m;c<u&&(m=d[c]);c++)(!m.info||m.info.lastRun!==t)&&(!s||Bn(i,m.trigger))&&(m.info&&(m.info.lastRun=t),m.fn(r,i,o,n,m.info,s,a),l=!0);return l}function Bn(r,e){if(e){let t=e.name;return t==r||!!(e.structured&&ah(t,r))||!!(e.wildcard&&Lr(t,r))}else return!0}function ha(r,e,t,i,o){let n=typeof o.method=="string"?r[o.method]:o.method,s=o.property;n?n.call(r,r.__data[s],i[s]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined")}function Um(r,e,t,i,o){let n=r[te.NOTIFY],s,a=Rr++;for(let h in e)e[h]&&(n&&jm(r,n,a,h,t,i,o)||o&&Gm(r,h,t))&&(s=!0);let l;s&&(l=r.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Gm(r,e,t){let i=Bt(e);if(i!==e){let o=Ki(i)+"-changed";return vh(r,o,t[e],e),!0}return!1}function vh(r,e,t,i){let o={value:t,queueProperty:!0};i&&(o.path=i),Pe(r).dispatchEvent(new CustomEvent(e,{detail:o}))}function qm(r,e,t,i,o,n){let s=(n?Bt(e):e)!=e?e:null,a=s?Le(r,s):r.__data[e];s&&a===void 0&&(a=t[e]),vh(r,o.eventName,a,s)}function Ym(r,e,t,i,o){let n,s=r.detail,a=s&&s.path;a?(i=Hr(t,i,a),n=s&&s.value):n=r.currentTarget[t],n=o?!n:n,(!e[te.READ_ONLY]||!e[te.READ_ONLY][i])&&e._setPendingPropertyOrPath(i,n,!0,!!a)&&(!s||!s.queueProperty)&&e._invalidateProperties()}function Xm(r,e,t,i,o){let n=r.__data[e];Mi&&(n=Mi(n,o.attrName,"attribute",r)),r._propertyToAttribute(e,o.attrName,n)}function Km(r,e,t,i){let o=r[te.COMPUTE];if(o)if(um){Rr++;const n=Jm(r),s=[];for(let l in e)da(l,o,s,n,i);let a;for(;a=s.shift();)gh(r,"",e,t,a)&&da(a.methodInfo,o,s,n,i);Object.assign(t,r.__dataOld),Object.assign(e,r.__dataPending),r.__dataPending=null}else{let n=e;for(;Er(r,o,n,t,i);)Object.assign(t,r.__dataOld),Object.assign(e,r.__dataPending),n=r.__dataPending,r.__dataPending=null}}const Zm=(r,e,t)=>{let i=0,o=e.length-1,n=-1;for(;i<=o;){const s=i+o>>1,a=t.get(e[s].methodInfo)-t.get(r.methodInfo);if(a<0)i=s+1;else if(a>0)o=s-1;else{n=s;break}}n<0&&(n=o+1),e.splice(n,0,r)},da=(r,e,t,i,o)=>{const n=o?Bt(r):r,s=e[n];if(s)for(let a=0;a<s.length;a++){const l=s[a];l.info.lastRun!==Rr&&(!o||Bn(r,l.trigger))&&(l.info.lastRun=Rr,Zm(l.info,t,i))}};function Jm(r){let e=r.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=r[te.COMPUTE];let{counts:i,ready:o,total:n}=Qm(r),s;for(;s=o.shift();){e.set(s,e.size);const a=t[s];a&&a.forEach(l=>{const h=l.info.methodInfo;--n,--i[h]===0&&o.push(h)})}n!==0&&console.warn(`Computed graph for ${r.localName} incomplete; circular?`),r.constructor.__orderedComputedDeps=e}return e}function Qm(r){const e=r[_h],t={},i=r[te.COMPUTE],o=[];let n=0;for(let s in e){const a=e[s];n+=t[s]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let s in i)e[s]||o.push(s);return{counts:t,ready:o,total:n}}function gh(r,e,t,i,o){let n=sn(r,e,t,i,o);if(n===Fr)return!1;let s=o.methodInfo;return r.__dataHasAccessor&&r.__dataHasAccessor[s]?r._setPendingProperty(s,n,!0):(r[s]=n,!1)}function ef(r,e,t){let i=r.__dataLinkedPaths;if(i){let o;for(let n in i){let s=i[n];Lr(n,e)?(o=Hr(n,s,e),r._setPendingPropertyOrPath(o,t,!0,!0)):Lr(s,e)&&(o=Hr(s,n,e),r._setPendingPropertyOrPath(o,t,!0,!0))}}}function wo(r,e,t,i,o,n,s){t.bindings=t.bindings||[];let a={kind:i,target:o,parts:n,literal:s,isCompound:n.length!==1};if(t.bindings.push(a),sf(a)){let{event:h,negate:d}=a.parts[0];a.listenerEvent=h||Ki(o)+"-changed",a.listenerNegate=d}let l=e.nodeInfoList.length;for(let h=0;h<a.parts.length;h++){let d=a.parts[h];d.compoundIndex=h,tf(r,e,a,d,l)}}function tf(r,e,t,i,o){if(!i.literal)if(t.kind==="attribute"&&t.target[0]==="-")console.warn("Cannot set attribute "+t.target+' because "-" is not a valid attribute starting character');else{let n=i.dependencies,s={index:o,binding:t,part:i,evaluator:r};for(let a=0;a<n.length;a++){let l=n[a];typeof l=="string"&&(l=yh(l),l.wildcard=!0),r._addTemplatePropertyEffect(e,l.rootProperty,{fn:rf,info:s,trigger:l})}}}function rf(r,e,t,i,o,n,s){let a=s[o.index],l=o.binding,h=o.part;if(n&&h.source&&e.length>h.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let d=t[e];e=Hr(h.source,l.target,e),a._setPendingPropertyOrPath(e,d,!1,!0)&&r._enqueueClient(a)}else{let d=o.evaluator._evaluateBinding(r,h,e,t,i,n);d!==Fr&&of(r,a,l,h,d)}}function of(r,e,t,i,o){if(o=nf(e,o,t,i),Mi&&(o=Mi(o,t.target,t.kind,e)),t.kind=="attribute")r._valueToNodeAttribute(e,o,t.target);else{let n=t.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[n]?(!e[te.READ_ONLY]||!e[te.READ_ONLY][n])&&e._setPendingProperty(n,o)&&r._enqueueClient(e):r._setUnmanagedPropertyToNode(e,n,o)}}function nf(r,e,t,i){if(t.isCompound){let o=r.__dataCompoundStorage[t.target];o[i.compoundIndex]=e,e=o.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(r.localName==="input"||r.localName==="textarea"))&&(e=e==null?"":e),e}function sf(r){return!!r.target&&r.kind!="attribute"&&r.kind!="text"&&!r.isCompound&&r.parts[0].mode==="{"}function af(r,e){let{nodeList:t,nodeInfoList:i}=e;if(i.length)for(let o=0;o<i.length;o++){let n=i[o],s=t[o],a=n.bindings;if(a)for(let l=0;l<a.length;l++){let h=a[l];lf(s,h),hf(s,r,h)}s.__dataHost=r}}function lf(r,e){if(e.isCompound){let t=r.__dataCompoundStorage||(r.__dataCompoundStorage={}),i=e.parts,o=new Array(i.length);for(let s=0;s<i.length;s++)o[s]=i[s].literal;let n=e.target;t[n]=o,e.literal&&e.kind=="property"&&(n==="className"&&(r=Pe(r)),r[n]=e.literal)}}function hf(r,e,t){if(t.listenerEvent){let i=t.parts[0];r.addEventListener(t.listenerEvent,function(o){Ym(o,e,t.target,i.source,i.negate)})}}function ca(r,e,t,i,o,n){n=e.static||n&&(typeof n!="object"||n[e.methodName]);let s={methodName:e.methodName,args:e.args,methodInfo:o,dynamicFn:n};for(let a=0,l;a<e.args.length&&(l=e.args[a]);a++)l.literal||r._addPropertyEffect(l.rootProperty,t,{fn:i,info:s,trigger:l});return n&&r._addPropertyEffect(e.methodName,t,{fn:i,info:s}),s}function sn(r,e,t,i,o){let n=r._methodHost||r,s=n[o.methodName];if(s){let a=r._marshalArgs(o.args,e,t);return a===Fr?Fr:s.apply(n,a)}else o.dynamicFn||console.warn("method `"+o.methodName+"` not defined")}const df=[],bh="(?:[a-zA-Z_$][\\w.:$\\-*]*)",cf="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",uf="(?:'(?:[^'\\\\]|\\\\.)*')",pf='(?:"(?:[^"\\\\]|\\\\.)*")',mf="(?:"+uf+"|"+pf+")",ua="(?:("+bh+"|"+cf+"|"+mf+")\\s*)",ff="(?:"+ua+"(?:,\\s*"+ua+")*)",_f="(?:\\(\\s*(?:"+ff+"?)\\)\\s*)",vf="("+bh+"\\s*"+_f+"?)",gf="(\\[\\[|{{)\\s*",bf="(?:]]|}})",yf="(?:(!)\\s*)?",xf=gf+yf+vf+bf,pa=new RegExp(xf,"g");function ma(r){let e="";for(let t=0;t<r.length;t++){let i=r[t].literal;e+=i||""}return e}function Co(r){let e=r.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:df};if(e[2].trim()){let i=e[2].replace(/\\,/g,"&comma;").split(",");return wf(i,t)}else return t}return null}function wf(r,e){return e.args=r.map(function(t){let i=yh(t);return i.literal||(e.static=!1),i},this),e}function yh(r){let e=r.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},i=e[0];switch(i==="-"&&(i=e[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':t.value=e.slice(1,-1),t.literal=!0;break;case"#":t.value=Number(e),t.literal=!0;break}return t.literal||(t.rootProperty=Bt(e),t.structured=on(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function fa(r,e,t){let i=Le(r,t);return i===void 0&&(i=e[t]),i}function xh(r,e,t,i){const o={indexSplices:i};rn&&!r._overrideLegacyUndefined&&(e.splices=o),r.notifyPath(t+".splices",o),r.notifyPath(t+".length",e.length),rn&&!r._overrideLegacyUndefined&&(o.indexSplices=[])}function br(r,e,t,i,o,n){xh(r,e,t,[{index:i,addedCount:o,removed:n,object:e,type:"splice"}])}function Cf(r){return r[0].toUpperCase()+r.substring(1)}const Ln=ve(r=>{const e=Vm(Om(r));class t extends e{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return te}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(yr.length){let o=yr[yr.length-1];o._enqueueClient(this),this.__dataHost=o}}_initializeProtoProperties(o){this.__data=Object.create(o),this.__dataPending=Object.create(o),this.__dataOld={}}_initializeInstanceProperties(o){let n=this[te.READ_ONLY];for(let s in o)(!n||!n[s])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[s]=this.__dataPending[s]=o[s])}_addPropertyEffect(o,n,s){this._createPropertyAccessor(o,n==te.READ_ONLY);let a=xo(this,n,!0)[o];a||(a=this[n][o]=[]),a.push(s)}_removePropertyEffect(o,n,s){let a=xo(this,n,!0)[o],l=a.indexOf(s);l>=0&&a.splice(l,1)}_hasPropertyEffect(o,n){let s=this[n];return!!(s&&s[o])}_hasReadOnlyEffect(o){return this._hasPropertyEffect(o,te.READ_ONLY)}_hasNotifyEffect(o){return this._hasPropertyEffect(o,te.NOTIFY)}_hasReflectEffect(o){return this._hasPropertyEffect(o,te.REFLECT)}_hasComputedEffect(o){return this._hasPropertyEffect(o,te.COMPUTE)}_setPendingPropertyOrPath(o,n,s,a){if(a||Bt(Array.isArray(o)?o[0]:o)!==o){if(!a){let l=Le(this,o);if(o=sa(this,o,n),!o||!super._shouldPropertyChange(o,n,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(o,n,s))return ef(this,o,n),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[o])return this._setPendingProperty(o,n,s);this[o]=n}return!1}_setUnmanagedPropertyToNode(o,n,s){(s!==o[n]||typeof s=="object")&&(n==="className"&&(o=Pe(o)),o[n]=s)}_setPendingProperty(o,n,s){let a=this.__dataHasPaths&&on(o),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(o,n,l[o])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),o in this.__dataOld||(this.__dataOld[o]=this.__data[o]),a?this.__dataTemp[o]=n:this.__data[o]=n,this.__dataPending[o]=n,(a||this[te.NOTIFY]&&this[te.NOTIFY][o])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[o]=s),!0):!1}_setProperty(o,n){this._setPendingProperty(o,n,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(o){this.__dataPendingClients=this.__dataPendingClients||[],o!==this&&this.__dataPendingClients.push(o)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let o=this.__dataPendingClients;if(o){this.__dataPendingClients=null;for(let n=0;n<o.length;n++){let s=o[n];s.__dataEnabled?s.__dataPending&&s._flushProperties():s._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(o,n){for(let s in o)(n||!this[te.READ_ONLY]||!this[te.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,o[s],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(o,n,s){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Km(this,n,s,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(n,s,a),this._flushClients(),Er(this,this[te.REFLECT],n,s,a),Er(this,this[te.OBSERVE],n,s,a),l&&Um(this,l,n,s,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(o,n,s){this[te.PROPAGATE]&&Er(this,this[te.PROPAGATE],o,n,s),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,o,n,s)}_runEffectsForTemplate(o,n,s,a){const l=(h,d)=>{Er(this,o.propertyEffects,h,s,d,o.nodeList);for(let c=o.firstChild;c;c=c.nextSibling)this._runEffectsForTemplate(c,h,s,d)};o.runEffects?o.runEffects(l,n,a):l(n,a)}linkPaths(o,n){o=Cr(o),n=Cr(n),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[o]=n}unlinkPaths(o){o=Cr(o),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[o]}notifySplices(o,n){let s={path:""},a=Le(this,o,s);xh(this,a,s.path,n)}get(o,n){return Le(n||this,o)}set(o,n,s){s?sa(s,o,n):(!this[te.READ_ONLY]||!this[te.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,n,!0)&&this._invalidateProperties()}push(o,...n){let s={path:""},a=Le(this,o,s),l=a.length,h=a.push(...n);return n.length&&br(this,a,s.path,l,n.length,[]),h}pop(o){let n={path:""},s=Le(this,o,n),a=!!s.length,l=s.pop();return a&&br(this,s,n.path,s.length,0,[l]),l}splice(o,n,s,...a){let l={path:""},h=Le(this,o,l);n<0?n=h.length-Math.floor(-n):n&&(n=Math.floor(n));let d;return arguments.length===2?d=h.splice(n):d=h.splice(n,s,...a),(a.length||d.length)&&br(this,h,l.path,n,a.length,d),d}shift(o){let n={path:""},s=Le(this,o,n),a=!!s.length,l=s.shift();return a&&br(this,s,n.path,0,0,[l]),l}unshift(o,...n){let s={path:""},a=Le(this,o,s),l=a.unshift(...n);return n.length&&br(this,a,s.path,0,n.length,[]),l}notifyPath(o,n){let s;if(arguments.length==1){let a={path:""};n=Le(this,o,a),s=a.path}else Array.isArray(o)?s=Cr(o):s=o;this._setPendingPropertyOrPath(s,n,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(o,n){this._addPropertyEffect(o,te.READ_ONLY),n&&(this["_set"+Cf(o)]=function(s){this._setProperty(o,s)})}_createPropertyObserver(o,n,s){let a={property:o,method:n,dynamicFn:!!s};this._addPropertyEffect(o,te.OBSERVE,{fn:ha,info:a,trigger:{name:o}}),s&&this._addPropertyEffect(n,te.OBSERVE,{fn:ha,info:a,trigger:{name:n}})}_createMethodObserver(o,n){let s=Co(o);if(!s)throw new Error("Malformed observer expression '"+o+"'");ca(this,s,te.OBSERVE,sn,null,n)}_createNotifyingProperty(o){this._addPropertyEffect(o,te.NOTIFY,{fn:qm,info:{eventName:Ki(o)+"-changed",property:o}})}_createReflectedProperty(o){let n=this.constructor.attributeNameForProperty(o);n[0]==="-"?console.warn("Property "+o+" cannot be reflected to attribute "+n+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(o,te.REFLECT,{fn:Xm,info:{attrName:n}})}_createComputedProperty(o,n,s){let a=Co(n);if(!a)throw new Error("Malformed computed expression '"+n+"'");const l=ca(this,a,te.COMPUTE,gh,o,s);xo(this,_h)[o]=l}_marshalArgs(o,n,s){const a=this.__data,l=[];for(let h=0,d=o.length;h<d;h++){let{name:c,structured:u,wildcard:m,value:g,literal:_}=o[h];if(!_)if(m){const y=Lr(c,n),D=fa(a,s,y?n:c);g={path:y?n:c,value:D,base:y?Le(a,c):D}}else g=u?fa(a,s,c):a[c];if(rn&&!this._overrideLegacyUndefined&&g===void 0&&o.length>1)return Fr;l[h]=g}return l}static addPropertyEffect(o,n,s){this.prototype._addPropertyEffect(o,n,s)}static createPropertyObserver(o,n,s){this.prototype._createPropertyObserver(o,n,s)}static createMethodObserver(o,n){this.prototype._createMethodObserver(o,n)}static createNotifyingProperty(o){this.prototype._createNotifyingProperty(o)}static createReadOnlyProperty(o,n){this.prototype._createReadOnlyProperty(o,n)}static createReflectedProperty(o){this.prototype._createReflectedProperty(o)}static createComputedProperty(o,n,s){this.prototype._createComputedProperty(o,n,s)}static bindTemplate(o){return this.prototype._bindTemplate(o)}_bindTemplate(o,n){let s=this.constructor._parseTemplate(o),a=this.__preBoundTemplateInfo==s;if(!a)for(let l in s.propertyEffects)this._createPropertyAccessor(l);if(n)if(s=Object.create(s),s.wasPreBound=a,!this.__templateInfo)this.__templateInfo=s;else{const l=o._parentTemplateInfo||this.__templateInfo,h=l.lastChild;s.parent=l,l.lastChild=s,s.previousSibling=h,h?h.nextSibling=s:l.firstChild=s}else this.__preBoundTemplateInfo=s;return s}static _addTemplatePropertyEffect(o,n,s){let a=o.hostProps=o.hostProps||{};a[n]=!0;let l=o.propertyEffects=o.propertyEffects||{};(l[n]=l[n]||[]).push(s)}_stampTemplate(o,n){n=n||this._bindTemplate(o,!0),yr.push(this);let s=super._stampTemplate(o,n);if(yr.pop(),n.nodeList=s.nodeList,!n.wasPreBound){let a=n.childNodes=[];for(let l=s.firstChild;l;l=l.nextSibling)a.push(l)}return s.templateInfo=n,af(this,n),this.__dataClientsReady&&(this._runEffectsForTemplate(n,this.__data,null,!1),this._flushClients()),s}_removeBoundDom(o){const n=o.templateInfo,{previousSibling:s,nextSibling:a,parent:l}=n;s?s.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=s:l&&(l.lastChild=s),n.nextSibling=n.previousSibling=null;let h=n.childNodes;for(let d=0;d<h.length;d++){let c=h[d];Pe(Pe(c).parentNode).removeChild(c)}}static _parseTemplateNode(o,n,s){let a=e._parseTemplateNode.call(this,o,n,s);if(o.nodeType===Node.TEXT_NODE){let l=this._parseBindings(o.textContent,n);l&&(o.textContent=ma(l)||" ",wo(this,n,s,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(o,n,s,a,l){let h=this._parseBindings(l,n);if(h){let d=a,c="property";Wm.test(a)?c="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),c="attribute");let u=ma(h);return u&&c=="attribute"&&(a=="class"&&o.hasAttribute("class")&&(u+=" "+o.getAttribute(a)),o.setAttribute(a,u)),c=="attribute"&&d=="disable-upgrade$"&&o.setAttribute(a,""),o.localName==="input"&&d==="value"&&o.setAttribute(d,""),o.removeAttribute(d),c==="property"&&(a=hh(a)),wo(this,n,s,c,a,h,u),!0}else return e._parseTemplateNodeAttribute.call(this,o,n,s,a,l)}static _parseTemplateNestedTemplate(o,n,s){let a=e._parseTemplateNestedTemplate.call(this,o,n,s);const l=o.parentNode,h=s.templateInfo,d=l.localName==="dom-if",c=l.localName==="dom-repeat";ea&&(d||c)&&(l.removeChild(o),s=s.parentInfo,s.templateInfo=h,s.noted=!0,a=!1);let u=h.hostProps;if(pm&&d)u&&(n.hostProps=Object.assign(n.hostProps||{},u),ea||(s.parentInfo.noted=!0));else{let m="{";for(let g in u){let _=[{mode:m,source:g,dependencies:[g],hostProp:!0}];wo(this,n,s,"property","_host_"+g,_)}}return a}static _parseBindings(o,n){let s=[],a=0,l;for(;(l=pa.exec(o))!==null;){l.index>a&&s.push({literal:o.slice(a,l.index)});let h=l[1][0],d=!!l[2],c=l[3].trim(),u=!1,m="",g=-1;h=="{"&&(g=c.indexOf("::"))>0&&(m=c.substring(g+2),c=c.substring(0,g),u=!0);let _=Co(c),y=[];if(_){let{args:D,methodName:A}=_;for(let R=0;R<D.length;R++){let W=D[R];W.literal||y.push(W)}let M=n.dynamicFns;(M&&M[A]||_.static)&&(y.push(A),_.dynamicFn=!0)}else y.push(c);s.push({source:c,mode:h,negate:d,customEvent:u,signature:_,dependencies:y,event:m}),a=pa.lastIndex}if(a&&a<o.length){let h=o.substring(a);h&&s.push({literal:h})}return s.length?s:null}static _evaluateBinding(o,n,s,a,l,h){let d;return n.signature?d=sn(o,s,a,l,n.signature):s!=n.source?d=Le(o,n.source):h&&on(s)?d=Le(o,s):d=o.__data[s],n.negate&&(d=!d),d}}return t}),yr=[];/**
1006
+ */let Ri=0;const Fi=[],te={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},fh="__computeInfo",Vm=/[A-Z]/;function go(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 Si(i,e,t,r,o,n){if(e){let s=!1;const a=Ri++;for(let l in t){let h=o?Bt(l):l,d=e[h];if(d)for(let c=0,u=d.length,m;c<u&&(m=d[c]);c++)(!m.info||m.info.lastRun!==a)&&(!o||Mn(l,m.trigger))&&(m.info&&(m.info.lastRun=a),m.fn(i,l,t,r,m.info,o,n),s=!0)}return s}return!1}function $m(i,e,t,r,o,n,s,a){let l=!1,h=s?Bt(r):r,d=e[h];if(d)for(let c=0,u=d.length,m;c<u&&(m=d[c]);c++)(!m.info||m.info.lastRun!==t)&&(!s||Mn(r,m.trigger))&&(m.info&&(m.info.lastRun=t),m.fn(i,r,o,n,m.info,s,a),l=!0);return l}function Mn(i,e){if(e){let t=e.name;return t==i||!!(e.structured&&ah(t,i))||!!(e.wildcard&&Li(t,i))}else return!0}function la(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 Wm(i,e,t,r,o){let n=i[te.NOTIFY],s,a=Ri++;for(let h in e)e[h]&&(n&&$m(i,n,a,h,t,r,o)||o&&jm(i,h,t))&&(s=!0);let l;s&&(l=i.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function jm(i,e,t){let r=Bt(e);if(r!==e){let o=qr(r)+"-changed";return vh(i,o,t[e],e),!0}return!1}function vh(i,e,t,r){let o={value:t,queueProperty:!0};r&&(o.path=r),Pe(i).dispatchEvent(new CustomEvent(e,{detail:o}))}function Um(i,e,t,r,o,n){let s=(n?Bt(e):e)!=e?e:null,a=s?Le(i,s):i.__data[e];s&&a===void 0&&(a=t[e]),vh(i,o.eventName,a,s)}function Gm(i,e,t,r,o){let n,s=i.detail,a=s&&s.path;a?(r=Hi(t,r,a),n=s&&s.value):n=i.currentTarget[t],n=o?!n:n,(!e[te.READ_ONLY]||!e[te.READ_ONLY][r])&&e._setPendingPropertyOrPath(r,n,!0,!!a)&&(!s||!s.queueProperty)&&e._invalidateProperties()}function qm(i,e,t,r,o){let n=i.__data[e];Dr&&(n=Dr(n,o.attrName,"attribute",i)),i._propertyToAttribute(e,o.attrName,n)}function Ym(i,e,t,r){let o=i[te.COMPUTE];if(o)if(dm){Ri++;const n=Km(i),s=[];for(let l in e)ha(l,o,s,n,r);let a;for(;a=s.shift();)gh(i,"",e,t,a)&&ha(a.methodInfo,o,s,n,r);Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),i.__dataPending=null}else{let n=e;for(;Si(i,o,n,t,r);)Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),n=i.__dataPending,i.__dataPending=null}}const Xm=(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)},ha=(i,e,t,r,o)=>{const n=o?Bt(i):i,s=e[n];if(s)for(let a=0;a<s.length;a++){const l=s[a];l.info.lastRun!==Ri&&(!o||Mn(i,l.trigger))&&(l.info.lastRun=Ri,Xm(l.info,t,r))}};function Km(i){let e=i.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=i[te.COMPUTE];let{counts:r,ready:o,total:n}=Zm(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 Zm(i){const e=i[fh],t={},r=i[te.COMPUTE],o=[];let n=0;for(let s in e){const a=e[s];n+=t[s]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let s in r)e[s]||o.push(s);return{counts:t,ready:o,total:n}}function gh(i,e,t,r,o){let n=en(i,e,t,r,o);if(n===Fi)return!1;let s=o.methodInfo;return i.__dataHasAccessor&&i.__dataHasAccessor[s]?i._setPendingProperty(s,n,!0):(i[s]=n,!1)}function Jm(i,e,t){let r=i.__dataLinkedPaths;if(r){let o;for(let n in r){let s=r[n];Li(n,e)?(o=Hi(n,s,e),i._setPendingPropertyOrPath(o,t,!0,!0)):Li(s,e)&&(o=Hi(s,n,e),i._setPendingPropertyOrPath(o,t,!0,!0))}}}function bo(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),r_(a)){let{event:h,negate:d}=a.parts[0];a.listenerEvent=h||qr(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,Qm(i,e,a,d,l)}}function Qm(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=yh(l),l.wildcard=!0),i._addTemplatePropertyEffect(e,l.rootProperty,{fn:e_,info:s,trigger:l})}}}function e_(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=Hi(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!==Fi&&t_(i,a,l,h,d)}}function t_(i,e,t,r,o){if(o=i_(e,o,t,r),Dr&&(o=Dr(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[te.READ_ONLY]||!e[te.READ_ONLY][n])&&e._setPendingProperty(n,o)&&i._enqueueClient(e):i._setUnmanagedPropertyToNode(e,n,o)}}function i_(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 r_(i){return!!i.target&&i.kind!="attribute"&&i.kind!="text"&&!i.isCompound&&i.parts[0].mode==="{"}function o_(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];n_(s,h),s_(s,i,h)}s.__dataHost=i}}function n_(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=Pe(i)),i[n]=e.literal)}}function s_(i,e,t){if(t.listenerEvent){let r=t.parts[0];i.addEventListener(t.listenerEvent,function(o){Gm(o,e,t.target,r.source,r.negate)})}}function da(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 en(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===Fi?Fi:s.apply(n,a)}else o.dynamicFn||console.warn("method `"+o.methodName+"` not defined")}const a_=[],bh="(?:[a-zA-Z_$][\\w.:$\\-*]*)",l_="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",h_="(?:'(?:[^'\\\\]|\\\\.)*')",d_='(?:"(?:[^"\\\\]|\\\\.)*")',c_="(?:"+h_+"|"+d_+")",ca="(?:("+bh+"|"+l_+"|"+c_+")\\s*)",u_="(?:"+ca+"(?:,\\s*"+ca+")*)",p_="(?:\\(\\s*(?:"+u_+"?)\\)\\s*)",m_="("+bh+"\\s*"+p_+"?)",__="(\\[\\[|{{)\\s*",f_="(?:]]|}})",v_="(?:(!)\\s*)?",g_=__+v_+m_+f_,ua=new RegExp(g_,"g");function pa(i){let e="";for(let t=0;t<i.length;t++){let r=i[t].literal;e+=r||""}return e}function yo(i){let e=i.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:a_};if(e[2].trim()){let r=e[2].replace(/\\,/g,"&comma;").split(",");return b_(r,t)}else return t}return null}function b_(i,e){return e.args=i.map(function(t){let r=yh(t);return r.literal||(e.static=!1),r},this),e}function yh(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=Bt(e),t.structured=Jo(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function ma(i,e,t){let r=Le(i,t);return r===void 0&&(r=e[t]),r}function xh(i,e,t,r){const o={indexSplices:r};Zo&&!i._overrideLegacyUndefined&&(e.splices=o),i.notifyPath(t+".splices",o),i.notifyPath(t+".length",e.length),Zo&&!i._overrideLegacyUndefined&&(o.indexSplices=[])}function yi(i,e,t,r,o,n){xh(i,e,t,[{index:r,addedCount:o,removed:n,object:e,type:"splice"}])}function y_(i){return i[0].toUpperCase()+i.substring(1)}const Nn=ve(i=>{const e=Fm(Im(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 te}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(xi.length){let o=xi[xi.length-1];o._enqueueClient(this),this.__dataHost=o}}_initializeProtoProperties(o){this.__data=Object.create(o),this.__dataPending=Object.create(o),this.__dataOld={}}_initializeInstanceProperties(o){let n=this[te.READ_ONLY];for(let s in o)(!n||!n[s])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[s]=this.__dataPending[s]=o[s])}_addPropertyEffect(o,n,s){this._createPropertyAccessor(o,n==te.READ_ONLY);let a=go(this,n,!0)[o];a||(a=this[n][o]=[]),a.push(s)}_removePropertyEffect(o,n,s){let a=go(this,n,!0)[o],l=a.indexOf(s);l>=0&&a.splice(l,1)}_hasPropertyEffect(o,n){let s=this[n];return!!(s&&s[o])}_hasReadOnlyEffect(o){return this._hasPropertyEffect(o,te.READ_ONLY)}_hasNotifyEffect(o){return this._hasPropertyEffect(o,te.NOTIFY)}_hasReflectEffect(o){return this._hasPropertyEffect(o,te.REFLECT)}_hasComputedEffect(o){return this._hasPropertyEffect(o,te.COMPUTE)}_setPendingPropertyOrPath(o,n,s,a){if(a||Bt(Array.isArray(o)?o[0]:o)!==o){if(!a){let l=Le(this,o);if(o=na(this,o,n),!o||!super._shouldPropertyChange(o,n,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(o,n,s))return Jm(this,o,n),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[o])return this._setPendingProperty(o,n,s);this[o]=n}return!1}_setUnmanagedPropertyToNode(o,n,s){(s!==o[n]||typeof s=="object")&&(n==="className"&&(o=Pe(o)),o[n]=s)}_setPendingProperty(o,n,s){let a=this.__dataHasPaths&&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[te.NOTIFY]&&this[te.NOTIFY][o])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[o]=s),!0):!1}_setProperty(o,n){this._setPendingProperty(o,n,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(o){this.__dataPendingClients=this.__dataPendingClients||[],o!==this&&this.__dataPendingClients.push(o)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let o=this.__dataPendingClients;if(o){this.__dataPendingClients=null;for(let n=0;n<o.length;n++){let s=o[n];s.__dataEnabled?s.__dataPending&&s._flushProperties():s._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(o,n){for(let s in o)(n||!this[te.READ_ONLY]||!this[te.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,o[s],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(o,n,s){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Ym(this,n,s,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(n,s,a),this._flushClients(),Si(this,this[te.REFLECT],n,s,a),Si(this,this[te.OBSERVE],n,s,a),l&&Wm(this,l,n,s,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(o,n,s){this[te.PROPAGATE]&&Si(this,this[te.PROPAGATE],o,n,s),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,o,n,s)}_runEffectsForTemplate(o,n,s,a){const l=(h,d)=>{Si(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=Ei(o),n=Ei(n),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[o]=n}unlinkPaths(o){o=Ei(o),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[o]}notifySplices(o,n){let s={path:""},a=Le(this,o,s);xh(this,a,s.path,n)}get(o,n){return Le(n||this,o)}set(o,n,s){s?na(s,o,n):(!this[te.READ_ONLY]||!this[te.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,n,!0)&&this._invalidateProperties()}push(o,...n){let s={path:""},a=Le(this,o,s),l=a.length,h=a.push(...n);return n.length&&yi(this,a,s.path,l,n.length,[]),h}pop(o){let n={path:""},s=Le(this,o,n),a=!!s.length,l=s.pop();return a&&yi(this,s,n.path,s.length,0,[l]),l}splice(o,n,s,...a){let l={path:""},h=Le(this,o,l);n<0?n=h.length-Math.floor(-n):n&&(n=Math.floor(n));let d;return arguments.length===2?d=h.splice(n):d=h.splice(n,s,...a),(a.length||d.length)&&yi(this,h,l.path,n,a.length,d),d}shift(o){let n={path:""},s=Le(this,o,n),a=!!s.length,l=s.shift();return a&&yi(this,s,n.path,0,0,[l]),l}unshift(o,...n){let s={path:""},a=Le(this,o,s),l=a.unshift(...n);return n.length&&yi(this,a,s.path,0,n.length,[]),l}notifyPath(o,n){let s;if(arguments.length==1){let a={path:""};n=Le(this,o,a),s=a.path}else Array.isArray(o)?s=Ei(o):s=o;this._setPendingPropertyOrPath(s,n,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(o,n){this._addPropertyEffect(o,te.READ_ONLY),n&&(this["_set"+y_(o)]=function(s){this._setProperty(o,s)})}_createPropertyObserver(o,n,s){let a={property:o,method:n,dynamicFn:!!s};this._addPropertyEffect(o,te.OBSERVE,{fn:la,info:a,trigger:{name:o}}),s&&this._addPropertyEffect(n,te.OBSERVE,{fn:la,info:a,trigger:{name:n}})}_createMethodObserver(o,n){let s=yo(o);if(!s)throw new Error("Malformed observer expression '"+o+"'");da(this,s,te.OBSERVE,en,null,n)}_createNotifyingProperty(o){this._addPropertyEffect(o,te.NOTIFY,{fn:Um,info:{eventName:qr(o)+"-changed",property:o}})}_createReflectedProperty(o){let n=this.constructor.attributeNameForProperty(o);n[0]==="-"?console.warn("Property "+o+" cannot be reflected to attribute "+n+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(o,te.REFLECT,{fn:qm,info:{attrName:n}})}_createComputedProperty(o,n,s){let a=yo(n);if(!a)throw new Error("Malformed computed expression '"+n+"'");const l=da(this,a,te.COMPUTE,gh,o,s);go(this,fh)[o]=l}_marshalArgs(o,n,s){const a=this.__data,l=[];for(let h=0,d=o.length;h<d;h++){let{name:c,structured:u,wildcard:m,value:g,literal:f}=o[h];if(!f)if(m){const y=Li(c,n),D=ma(a,s,y?n:c);g={path:y?n:c,value:D,base:y?Le(a,c):D}}else g=u?ma(a,s,c):a[c];if(Zo&&!this._overrideLegacyUndefined&&g===void 0&&o.length>1)return Fi;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),xi.push(this);let s=super._stampTemplate(o,n);if(xi.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,o_(this,n),this.__dataClientsReady&&(this._runEffectsForTemplate(n,this.__data,null,!1),this._flushClients()),s}_removeBoundDom(o){const n=o.templateInfo,{previousSibling:s,nextSibling:a,parent:l}=n;s?s.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=s:l&&(l.lastChild=s),n.nextSibling=n.previousSibling=null;let h=n.childNodes;for(let d=0;d<h.length;d++){let c=h[d];Pe(Pe(c).parentNode).removeChild(c)}}static _parseTemplateNode(o,n,s){let a=e._parseTemplateNode.call(this,o,n,s);if(o.nodeType===Node.TEXT_NODE){let l=this._parseBindings(o.textContent,n);l&&(o.textContent=pa(l)||" ",bo(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";Vm.test(a)?c="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),c="attribute");let u=pa(h);return u&&c=="attribute"&&(a=="class"&&o.hasAttribute("class")&&(u+=" "+o.getAttribute(a)),o.setAttribute(a,u)),c=="attribute"&&d=="disable-upgrade$"&&o.setAttribute(a,""),o.localName==="input"&&d==="value"&&o.setAttribute(d,""),o.removeAttribute(d),c==="property"&&(a=hh(a)),bo(this,n,s,c,a,h,u),!0}else return e._parseTemplateNodeAttribute.call(this,o,n,s,a,l)}static _parseTemplateNestedTemplate(o,n,s){let a=e._parseTemplateNestedTemplate.call(this,o,n,s);const l=o.parentNode,h=s.templateInfo,d=l.localName==="dom-if",c=l.localName==="dom-repeat";Qs&&(d||c)&&(l.removeChild(o),s=s.parentInfo,s.templateInfo=h,s.noted=!0,a=!1);let u=h.hostProps;if(cm&&d)u&&(n.hostProps=Object.assign(n.hostProps||{},u),Qs||(s.parentInfo.noted=!0));else{let m="{";for(let g in u){let f=[{mode:m,source:g,dependencies:[g],hostProp:!0}];bo(this,n,s,"property","_host_"+g,f)}}return a}static _parseBindings(o,n){let s=[],a=0,l;for(;(l=ua.exec(o))!==null;){l.index>a&&s.push({literal:o.slice(a,l.index)});let h=l[1][0],d=!!l[2],c=l[3].trim(),u=!1,m="",g=-1;h=="{"&&(g=c.indexOf("::"))>0&&(m=c.substring(g+2),c=c.substring(0,g),u=!0);let f=yo(c),y=[];if(f){let{args:D,methodName:A}=f;for(let R=0;R<D.length;R++){let W=D[R];W.literal||y.push(W)}let M=n.dynamicFns;(M&&M[A]||f.static)&&(y.push(A),f.dynamicFn=!0)}else y.push(c);s.push({source:c,mode:h,negate:d,customEvent:u,signature:f,dependencies:y,event:m}),a=ua.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=en(o,s,a,l,n.signature):s!=n.source?d=Le(o,n.source):h&&Jo(s)?d=Le(o,s):d=o.__data[s],n.negate&&(d=!d),d}}return t}),xi=[];/**
1007
1007
  @license
1008
1008
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1009
1009
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1019,7 +1019,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1019
1019
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1020
1020
  Code distributed by Google as part of the polymer project is also
1021
1021
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1022
- */function Ef(r){const e={};for(let t in r){const i=r[t];e[t]=typeof i=="function"?{type:i}:i}return e}const Sf=ve(r=>{const e=ph(r);function t(n){const s=Object.getPrototypeOf(n);return s.prototype instanceof o?s:null}function i(n){if(!n.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",n))){let s=null;if(n.hasOwnProperty(JSCompiler_renameProperty("properties",n))){const a=n.properties;a&&(s=Ef(a))}n.__ownProperties=s}return n.__ownProperties}class o extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const s=this._properties;this.__observedAttributes=s?Object.keys(s).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const s=t(this);s&&s.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const s=i(this);s&&this.createProperties(s)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const s=t(this);this.__properties=Object.assign({},s&&s._properties,i(this))}return this.__properties}static typeForProperty(s){const a=this._properties[s];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return o});/**
1022
+ */function x_(i){const e={};for(let t in i){const r=i[t];e[t]=typeof r=="function"?{type:r}:r}return e}const w_=ve(i=>{const e=ph(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=x_(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});/**
1023
1023
  * @fileoverview
1024
1024
  * @suppress {checkPrototypalTypes}
1025
1025
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1029,7 +1029,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1029
1029
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
1030
1030
  * Google as part of the polymer project is also subject to an additional IP
1031
1031
  * rights grant found at http://polymer.github.io/PATENTS.txt
1032
- */const Af="3.5.2",_a=window.ShadyCSS&&window.ShadyCSS.cssBuild,Pf=ve(r=>{const e=Sf(Ln(r));function t(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let h=l._properties;for(let d in h){let c=h[d];"value"in c&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[d]=c)}}return l.__propertyDefaults}function i(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function o(l,h,d,c){d.computed&&(d.readOnly=!0),d.computed&&(l._hasReadOnlyEffect(h)?console.warn(`Cannot redefine computed property '${h}'.`):l._createComputedProperty(h,d.computed,c)),d.readOnly&&!l._hasReadOnlyEffect(h)?l._createReadOnlyProperty(h,!d.computed):d.readOnly===!1&&l._hasReadOnlyEffect(h)&&console.warn(`Cannot make readOnly property '${h}' non-readOnly.`),d.reflectToAttribute&&!l._hasReflectEffect(h)?l._createReflectedProperty(h):d.reflectToAttribute===!1&&l._hasReflectEffect(h)&&console.warn(`Cannot make reflected property '${h}' non-reflected.`),d.notify&&!l._hasNotifyEffect(h)?l._createNotifyingProperty(h):d.notify===!1&&l._hasNotifyEffect(h)&&console.warn(`Cannot make notify property '${h}' non-notify.`),d.observer&&l._createPropertyObserver(h,d.observer,c[d.observer]),l._addPropertyToAttributeMap(h)}function n(l,h,d,c){if(!_a){const u=h.content.querySelectorAll("style"),m=nh(h),g=xm(d),_=h.content.firstElementChild;for(let D=0;D<g.length;D++){let A=g[D];A.textContent=l._processStyleText(A.textContent,c),h.content.insertBefore(A,_)}let y=0;for(let D=0;D<m.length;D++){let A=m[D],M=u[y];M!==A?(A=A.cloneNode(!0),M.parentNode.insertBefore(A,M)):y++,A.textContent=l._processStyleText(A.textContent,c)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(h,d),mm&&_a&&lm){const u=h.content.querySelectorAll("style");if(u){let m="";Array.from(u).forEach(g=>{m+=g.textContent,g.parentNode.removeChild(g)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(m)}}}function s(l){let h=null;if(l&&(!Ni||dm)&&(h=Br.import(l,"template"),Ni&&!h))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return h}class a extends e{static get polymerElementVersion(){return Af}static _finalizeClass(){e._finalizeClass.call(this);const h=i(this);h&&this.createObservers(h,this._properties),this._prepareTemplate()}static _prepareTemplate(){let h=this.template;h&&(typeof h=="string"?(console.error("template getter must return HTMLTemplateElement"),h=null):th||(h=h.cloneNode(!0))),this.prototype._template=h}static createProperties(h){for(let d in h)o(this.prototype,d,h[d],h)}static createObservers(h,d){const c=this.prototype;for(let u=0;u<h.length;u++)c._createMethodObserver(h[u],d)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let h=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof h=="function"&&(h=h()),this._template=h!==void 0?h:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&s(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(h){this._template=h}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const h=this.importMeta;if(h)this._importPath=Nn(h.url);else{const d=Br.import(this.is);this._importPath=d&&d.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=hm,this.importPath=this.constructor.importPath;let h=t(this.constructor);if(h)for(let d in h){let c=h[d];if(this._canApplyPropertyDefault(d)){let u=typeof c.value=="function"?c.value.call(this):c.value;this._hasAccessor(d)?this._setPendingProperty(d,u,!0):this[d]=u}}}_canApplyPropertyDefault(h){return!this.hasOwnProperty(h)}static _processStyleText(h,d){return Mn(h,d)}static _finalizeTemplate(h){const d=this.prototype._template;if(d&&!d.__polymerFinalized){d.__polymerFinalized=!0;const c=this.importPath,u=c?kr(c):"";n(this,d,h,u),this.prototype._bindTemplate(d)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(h){const d=Pe(this);if(d.attachShadow)return h?(d.shadowRoot||(d.attachShadow({mode:"open",shadyUpgradeFragment:h}),d.shadowRoot.appendChild(h),this.constructor._styleSheet&&(d.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),cm&&window.ShadyDOM&&window.ShadyDOM.flushInitial(d.shadowRoot),d.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(h){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,h)}resolveUrl(h,d){return!d&&this.importPath&&(d=kr(this.importPath)),kr(h,d)}static _parseTemplateContent(h,d,c){return d.dynamicFns=d.dynamicFns||this._properties,e._parseTemplateContent.call(this,h,d,c)}static _addTemplatePropertyEffect(h,d,c){return rh&&!(d in this._properties)&&!(c.info.part.signature&&c.info.part.signature.static)&&!c.info.part.hostProp&&!h.nestedTemplate&&console.warn(`Property '${d}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,h,d,c)}}return a});/**
1032
+ */const C_="3.5.2",_a=window.ShadyCSS&&window.ShadyCSS.cssBuild,E_=ve(i=>{const e=w_(Nn(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(!_a){const u=h.content.querySelectorAll("style"),m=nh(h),g=bm(d),f=h.content.firstElementChild;for(let D=0;D<g.length;D++){let A=g[D];A.textContent=l._processStyleText(A.textContent,c),h.content.insertBefore(A,f)}let y=0;for(let D=0;D<m.length;D++){let A=m[D],M=u[y];M!==A?(A=A.cloneNode(!0),M.parentNode.insertBefore(A,M)):y++,A.textContent=l._processStyleText(A.textContent,c)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(h,d),um&&_a&&sm){const u=h.content.querySelectorAll("style");if(u){let m="";Array.from(u).forEach(g=>{m+=g.textContent,g.parentNode.removeChild(g)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(m)}}}function s(l){let h=null;if(l&&(!Or||lm)&&(h=Bi.import(l,"template"),Or&&!h))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return h}class a extends e{static get polymerElementVersion(){return C_}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):th||(h=h.cloneNode(!0))),this.prototype._template=h}static createProperties(h){for(let d in h)o(this.prototype,d,h[d],h)}static createObservers(h,d){const c=this.prototype;for(let u=0;u<h.length;u++)c._createMethodObserver(h[u],d)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let h=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof h=="function"&&(h=h()),this._template=h!==void 0?h:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&s(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(h){this._template=h}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const h=this.importMeta;if(h)this._importPath=Dn(h.url);else{const d=Bi.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=am,this.importPath=this.constructor.importPath;let h=t(this.constructor);if(h)for(let d in h){let c=h[d];if(this._canApplyPropertyDefault(d)){let u=typeof c.value=="function"?c.value.call(this):c.value;this._hasAccessor(d)?this._setPendingProperty(d,u,!0):this[d]=u}}}_canApplyPropertyDefault(h){return!this.hasOwnProperty(h)}static _processStyleText(h,d){return In(h,d)}static _finalizeTemplate(h){const d=this.prototype._template;if(d&&!d.__polymerFinalized){d.__polymerFinalized=!0;const c=this.importPath,u=c?Ti(c):"";n(this,d,h,u),this.prototype._bindTemplate(d)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(h){const d=Pe(this);if(d.attachShadow)return h?(d.shadowRoot||(d.attachShadow({mode:"open",shadyUpgradeFragment:h}),d.shadowRoot.appendChild(h),this.constructor._styleSheet&&(d.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),hm&&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=Ti(this.importPath)),Ti(h,d)}static _parseTemplateContent(h,d,c){return d.dynamicFns=d.dynamicFns||this._properties,e._parseTemplateContent.call(this,h,d,c)}static _addTemplatePropertyEffect(h,d,c){return ih&&!(d in this._properties)&&!(c.info.part.signature&&c.info.part.signature.static)&&!c.info.part.hostProp&&!h.nestedTemplate&&console.warn(`Property '${d}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,h,d,c)}}return a});/**
1033
1033
  @license
1034
1034
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1035
1035
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1037,7 +1037,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1037
1037
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1038
1038
  Code distributed by Google as part of the polymer project is also
1039
1039
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1040
- */const va=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:r=>r});class wh{constructor(e,t){Eh(e,t);const i=t.reduce((o,n,s)=>o+Ch(n)+e[s+1],e[0]);this.value=i.toString()}toString(){return this.value}}function Ch(r){if(r instanceof wh)return r.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${r}`)}function kf(r){if(r instanceof HTMLTemplateElement)return r.innerHTML;if(r instanceof wh)return Ch(r);throw new Error(`non-template value passed to Polymer's html function: ${r}`)}const K=function(r,...e){Eh(r,e);const t=document.createElement("template");let i=e.reduce((o,n,s)=>o+kf(n)+r[s+1],r[0]);return va&&(i=va.createHTML(i)),t.innerHTML=i,t},Eh=(r,e)=>{if(!Array.isArray(r)||!Array.isArray(r.raw)||e.length!==r.length-1)throw new TypeError("Invalid call to the html template tag")};/**
1040
+ */const fa=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:i=>i});class wh{constructor(e,t){Eh(e,t);const r=t.reduce((o,n,s)=>o+Ch(n)+e[s+1],e[0]);this.value=r.toString()}toString(){return this.value}}function Ch(i){if(i instanceof wh)return i.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${i}`)}function S_(i){if(i instanceof HTMLTemplateElement)return i.innerHTML;if(i instanceof wh)return Ch(i);throw new Error(`non-template value passed to Polymer's html function: ${i}`)}const K=function(i,...e){Eh(i,e);const t=document.createElement("template");let r=e.reduce((o,n,s)=>o+S_(n)+i[s+1],i[0]);return fa&&(r=fa.createHTML(r)),t.innerHTML=r,t},Eh=(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 Z=Pf(HTMLElement),Tf=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Ci=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function If(){function r(){return!0}return Sh(r)}function Df(){try{return Of()?!0:Mf()?Ci?!Nf():!If():!1}catch(r){return!1}}function Of(){return localStorage.getItem("vaadin.developmentmode.force")}function Mf(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Nf(){return!!(Ci&&Object.keys(Ci).map(r=>Ci[r]).filter(r=>r.productionMode).length>0)}function Sh(r,e){if(typeof r!="function")return;const t=Tf.exec(r.toString());if(t)try{r=new Function(t[1])}catch(i){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",i)}return r(e)}window.Vaadin=window.Vaadin||{};const ga=function(r,e){if(window.Vaadin.developmentMode)return Sh(r,e)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Df());function zf(){/*! vaadin-dev-mode:start
1048
+ */const Z=E_(HTMLElement),A_=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,wr=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function P_(){function i(){return!0}return Sh(i)}function k_(){try{return T_()?!0:I_()?wr?!D_():!P_():!1}catch(i){return!1}}function T_(){return localStorage.getItem("vaadin.developmentmode.force")}function I_(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function D_(){return!!(wr&&Object.keys(wr).map(i=>wr[i]).filter(i=>i.productionMode).length>0)}function Sh(i,e){if(typeof i!="function")return;const t=A_.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 va=function(i,e){if(window.Vaadin.developmentMode)return Sh(i,e)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=k_());function O_(){/*! vaadin-dev-mode:start
1049
1049
  (function () {
1050
1050
  'use strict';
1051
1051
 
@@ -1523,7 +1523,7 @@ try {
1523
1523
 
1524
1524
  }());
1525
1525
 
1526
- vaadin-dev-mode:end **/}const Bf=function(){if(typeof ga=="function")return ga(zf)};/**
1526
+ vaadin-dev-mode:end **/}const M_=function(){if(typeof va=="function")return va(O_)};/**
1527
1527
  * @license
1528
1528
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1529
1529
  * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1531,7 +1531,7 @@ try {
1531
1531
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1532
1532
  * Code distributed by Google as part of the polymer project is also
1533
1533
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1534
- */let ba=0,Ah=0;const Xt=[];let an=!1;function Lf(){an=!1;const r=Xt.length;for(let e=0;e<r;e++){const t=Xt[e];if(t)try{t()}catch(i){setTimeout(()=>{throw i})}}Xt.splice(0,r),Ah+=r}const yt={after(r){return{run(e){return window.setTimeout(e,r)},cancel(e){window.clearTimeout(e)}}},run(r,e){return window.setTimeout(r,e)},cancel(r){window.clearTimeout(r)}},$r={run(r){return window.requestAnimationFrame(r)},cancel(r){window.cancelAnimationFrame(r)}},Ph={run(r){return window.requestIdleCallback?window.requestIdleCallback(r):window.setTimeout(r,16)},cancel(r){window.cancelIdleCallback?window.cancelIdleCallback(r):window.clearTimeout(r)}},Bi={run(r){an||(an=!0,queueMicrotask(()=>Lf())),Xt.push(r);const e=ba;return ba+=1,e},cancel(r){const e=r-Ah;if(e>=0){if(!Xt[e])throw new Error(`invalid async handle: ${r}`);Xt[e]=null}}};/**
1534
+ */let ga=0,Ah=0;const Kt=[];let tn=!1;function N_(){tn=!1;const i=Kt.length;for(let e=0;e<i;e++){const t=Kt[e];if(t)try{t()}catch(r){setTimeout(()=>{throw r})}}Kt.splice(0,i),Ah+=i}const yt={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)}},Vi={run(i){return window.requestAnimationFrame(i)},cancel(i){window.cancelAnimationFrame(i)}},Ph={run(i){return window.requestIdleCallback?window.requestIdleCallback(i):window.setTimeout(i,16)},cancel(i){window.cancelIdleCallback?window.cancelIdleCallback(i):window.clearTimeout(i)}},Nr={run(i){tn||(tn=!0,queueMicrotask(()=>N_())),Kt.push(i);const e=ga;return ga+=1,e},cancel(i){const e=i-Ah;if(e>=0){if(!Kt[e])throw new Error(`invalid async handle: ${i}`);Kt[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,31 +1539,31 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1539
1539
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1540
1540
  Code distributed by Google as part of the polymer project is also
1541
1541
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1542
- */const Vr=new Set;let Fe=class ln{static debounce(e,t,i){return e instanceof ln?e._cancelAsync():e=new ln,e.setConfig(t,i),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,Vr.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Vr.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}};function kh(r){Vr.add(r)}function Hf(){const r=!!Vr.size;return Vr.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),r}const Sr=()=>{let r;do r=Hf();while(r)};/**
1542
+ */const $i=new Set;let Fe=class rn{static debounce(e,t,r){return e instanceof rn?e._cancelAsync():e=new rn,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,$i.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),$i.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}};function kh(i){$i.add(i)}function z_(){const i=!!$i.size;return $i.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),i}const Ai=()=>{let i;do i=z_();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 ot=[];function hn(r,e,t=r.getAttribute("dir")){e?r.setAttribute("dir",e):t!=null&&r.removeAttribute("dir")}function dn(){return document.documentElement.getAttribute("dir")}function Rf(){const r=dn();ot.forEach(e=>{hn(e,r)})}const Ff=new MutationObserver(Rf);Ff.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const $e=r=>class extends r{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>e===""?null:e}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),hn(this,dn(),null))}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),e!=="dir")return;const o=dn(),n=i===o&&ot.indexOf(this)===-1,s=!i&&t&&ot.indexOf(this)===-1;n||s?(this.__subscribe(),hn(this,o,i)):i!==o&&t===o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=ot.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,i){i==="dir"&&t===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,t,i)}_attributeToProperty(e,t,i){e==="dir"&&!t?this.dir="":super._attributeToProperty(e,t,i)}__subscribe(){ot.includes(this)||ot.push(this)}__unsubscribe(){ot.includes(this)&&ot.splice(ot.indexOf(this),1)}};/**
1546
+ */const rt=[];function on(i,e,t=i.getAttribute("dir")){e?i.setAttribute("dir",e):t!=null&&i.removeAttribute("dir")}function nn(){return document.documentElement.getAttribute("dir")}function B_(){const i=nn();rt.forEach(e=>{on(e,i)})}const L_=new MutationObserver(B_);L_.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Ve=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(),on(this,nn(),null))}attributeChangedCallback(e,t,r){if(super.attributeChangedCallback(e,t,r),e!=="dir")return;const o=nn(),n=r===o&&rt.indexOf(this)===-1,s=!r&&t&&rt.indexOf(this)===-1;n||s?(this.__subscribe(),on(this,o,r)):r!==o&&t===o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=rt.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(){rt.includes(this)||rt.push(this)}__unsubscribe(){rt.includes(this)&&rt.splice(rt.indexOf(this),1)}};/**
1547
1547
  * @license
1548
1548
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1549
1549
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1550
- */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Bf()};let Eo;const ya=new Set,Ve=r=>class extends $e(r){static finalize(){super.finalize();const{is:e}=this;e&&!ya.has(e)&&(window.Vaadin.registrations.push(this),ya.add(e),window.Vaadin.developmentModeCallback&&(Eo=Fe.debounce(Eo,Ph,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),kh(Eo)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
1550
+ */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){M_()};let xo;const ba=new Set,$e=i=>class extends Ve(i){static finalize(){super.finalize();const{is:e}=this;e&&!ba.has(e)&&(window.Vaadin.registrations.push(this),ba.add(e),window.Vaadin.developmentModeCallback&&(xo=Fe.debounce(xo,Ph,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),kh(xo)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
1551
1551
  * @license
1552
1552
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1553
1553
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1554
- */function $f(r){const e=[];for(;r;){if(r.nodeType===Node.DOCUMENT_NODE){e.push(r);break}if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(r),r=r.host;continue}if(r.assignedSlot){r=r.assignedSlot;continue}r=r.parentNode}return e}function Th(r){const e=[];let t;return r.localName==="slot"?t=r.assignedElements():(e.push(r),t=[...r.children]),t.forEach(i=>e.push(...Th(i))),e}function Hn(r){return r?new Set(r.split(" ")):new Set}function Zi(r){return r?[...r].join(" "):""}function Ih(r,e,t){const i=Hn(r.getAttribute(e));i.add(t),r.setAttribute(e,Zi(i))}function Vf(r,e,t){const i=Hn(r.getAttribute(e));if(i.delete(t),i.size===0){r.removeAttribute(e);return}r.setAttribute(e,Zi(i))}function Wf(r){return r.nodeType===Node.TEXT_NODE&&r.textContent.trim()===""}/**
1554
+ */function H_(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 Th(i){const e=[];let t;return i.localName==="slot"?t=i.assignedElements():(e.push(i),t=[...i.children]),t.forEach(r=>e.push(...Th(r))),e}function zn(i){return i?new Set(i.split(" ")):new Set}function Yr(i){return i?[...i].join(" "):""}function Ih(i,e,t){const r=zn(i.getAttribute(e));r.add(t),i.setAttribute(e,Yr(r))}function R_(i,e,t){const r=zn(i.getAttribute(e));if(r.delete(t),r.size===0){i.removeAttribute(e);return}i.setAttribute(e,Yr(r))}function F_(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 Rn{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 i=[],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?i.push(n):a!==s&&o.push(n)}),(t.length||i.length||o.length)&&this.callback({addedNodes:t,currentNodes:e,movedNodes:o,removedNodes:i}),this._storedNodes=e}}/**
1558
+ */class Bn{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}}/**
1559
1559
  * @license
1560
1560
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1561
1561
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1562
- */let jf=0;function qr(){return jf++}/**
1562
+ */let V_=0;function Gi(){return V_++}/**
1563
1563
  * @license
1564
1564
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1565
1565
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1566
- */class Ne extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${qr()}`}constructor(e,t,i,o={}){super();const{initializer:n,multiple:s,observe:a,useUniqueId:l,uniqueIdPrefix:h}=o;this.host=e,this.slotName=t,this.tagName=i,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof s=="boolean"?s:!1,this.slotInitializer=n,s&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(e,h||t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){const e=this.getSlotChildren();if(e.length===0){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=e,e.forEach(t=>{this.initAddedNode(t)})}attachDefaultNode(){const{host:e,slotName:t,tagName:i}=this;let o=this.defaultNode;return!o&&i&&(o=document.createElement(i),o instanceof Element&&(t!==""&&o.setAttribute("slot",t),this.defaultNode=o)),o&&(this.node=o,e.appendChild(o)),o}getSlotChildren(){const{slotName:e}=this;return Array.from(this.host.childNodes).filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.slot===e||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&e==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){const{slotInitializer:t}=this;t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){const{slotName:e}=this,t=e===""?"slot:not([name])":`slot[name=${e}]`,i=this.host.shadowRoot.querySelector(t);this.__slotObserver=new Rn(i,({addedNodes:o,removedNodes:n})=>{const s=this.multiple?this.nodes:[this.node],a=o.filter(l=>!Wf(l)&&!s.includes(l));n.length&&(this.nodes=s.filter(l=>!n.includes(l)),n.forEach(l=>{this.teardownNode(l)})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...s,...a].filter(l=>l!==this.defaultNode),a.forEach(l=>{this.initAddedNode(l)})):(this.node&&this.node.remove(),this.node=a[0],this.initAddedNode(this.node)))})}}/**
1566
+ */class Ne extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${Gi()}`}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 Bn(r,({addedNodes:o,removedNodes:n})=>{const s=this.multiple?this.nodes:[this.node],a=o.filter(l=>!F_(l)&&!s.includes(l));n.length&&(this.nodes=s.filter(l=>!n.includes(l)),n.forEach(l=>{this.teardownNode(l)})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...s,...a].filter(l=>l!==this.defaultNode),a.forEach(l=>{this.initAddedNode(l)})):(this.node&&this.node.remove(),this.node=a[0],this.initAddedNode(this.node)))})}}/**
1567
1567
  * @license
1568
1568
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
1569
1569
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1575,107 +1575,107 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1575
1575
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1576
1576
  Code distributed by Google as part of the polymer project is also
1577
1577
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1578
- */const Uf=r=>r,Dh=typeof document.head.style.touchAction=="string",cn="__polymerGestures",So="__polymerGesturesHandled",un="__polymerGesturesTouchAction",xa=25,wa=5,Gf=2,qf=["mousedown","mousemove","mouseup","click"],Yf=[0,1,4,2],Xf=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(r){return!1}}();function Oh(r){return qf.indexOf(r)>-1}let Kf=!1;(function(){try{const r=Object.defineProperty({},"passive",{get(){Kf=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(r){}})();const Zf=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Jf={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Mt(r){const e=r.type;if(!Oh(e))return!1;if(e==="mousemove"){let t=r.buttons===void 0?1:r.buttons;return r instanceof window.MouseEvent&&!Xf&&(t=Yf[r.which]||0),!!(t&1)}return(r.button===void 0?0:r.button)===0}function Qf(r){if(r.type==="click"){if(r.detail===0)return!0;const e=xt(r);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const t=e.getBoundingClientRect(),i=r.pageX,o=r.pageY;return!(i>=t.left&&i<=t.right&&o>=t.top&&o<=t.bottom)}return!1}const nt={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function e_(r){let e="auto";const t=Nh(r);for(let i=0,o;i<t.length;i++)if(o=t[i],o[un]){e=o[un];break}return e}function Mh(r,e,t){r.movefn=e,r.upfn=t,document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)}function Kt(r){document.removeEventListener("mousemove",r.movefn),document.removeEventListener("mouseup",r.upfn),r.movefn=null,r.upfn=null}const Nh=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:r=>r.composedPath&&r.composedPath()||[],Fn={},Ot=[];function t_(r,e){let t=document.elementFromPoint(r,e),i=t;for(;i&&i.shadowRoot&&!window.ShadyDOM;){const o=i;if(i=i.shadowRoot.elementFromPoint(r,e),o===i)break;i&&(t=i)}return t}function xt(r){const e=Nh(r);return e.length>0?e[0]:r.target}function r_(r){const e=r.type,t=r.currentTarget[cn];if(!t)return;const i=t[e];if(!i)return;if(!r[So]&&(r[So]={},e.startsWith("touch"))){const n=r.changedTouches[0];if(e==="touchstart"&&r.touches.length===1&&(nt.touch.id=n.identifier),nt.touch.id!==n.identifier)return;Dh||(e==="touchstart"||e==="touchmove")&&i_(r)}const o=r[So];if(!o.skip){for(let n=0,s;n<Ot.length;n++)s=Ot[n],i[s.name]&&!o[s.name]&&s.flow&&s.flow.start.indexOf(r.type)>-1&&s.reset&&s.reset();for(let n=0,s;n<Ot.length;n++)s=Ot[n],i[s.name]&&!o[s.name]&&(o[s.name]=!0,s[e](r))}}function i_(r){const e=r.changedTouches[0],t=r.type;if(t==="touchstart")nt.touch.x=e.clientX,nt.touch.y=e.clientY,nt.touch.scrollDecided=!1;else if(t==="touchmove"){if(nt.touch.scrollDecided)return;nt.touch.scrollDecided=!0;const i=e_(r);let o=!1;const n=Math.abs(nt.touch.x-e.clientX),s=Math.abs(nt.touch.y-e.clientY);r.cancelable&&(i==="none"?o=!0:i==="pan-x"?o=s>n:i==="pan-y"&&(o=n>s)),o?r.preventDefault():Li("track")}}function Je(r,e,t){return Fn[e]?(o_(r,e,t),!0):!1}function o_(r,e,t){const i=Fn[e],o=i.deps,n=i.name;let s=r[cn];s||(r[cn]=s={});for(let a=0,l,h;a<o.length;a++)l=o[a],!(Zf&&Oh(l)&&l!=="click")&&(h=s[l],h||(s[l]=h={_count:0}),h._count===0&&r.addEventListener(l,r_,void 0),h[n]=(h[n]||0)+1,h._count=(h._count||0)+1);r.addEventListener(e,t),i.touchAction&&zh(r,i.touchAction)}function $n(r){Ot.push(r),r.emits.forEach(e=>{Fn[e]=r})}function n_(r){for(let e=0,t;e<Ot.length;e++){t=Ot[e];for(let i=0,o;i<t.emits.length;i++)if(o=t.emits[i],o===r)return t}return null}function zh(r,e){Dh&&r instanceof HTMLElement&&Bi.run(()=>{r.style.touchAction=e}),r[un]=e}function Vn(r,e,t){const i=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(i.detail=t,Uf(r).dispatchEvent(i),i.defaultPrevented){const o=t.preventer||t.sourceEvent;o&&o.preventDefault&&o.preventDefault()}}function Li(r){const e=n_(r);e.info&&(e.info.prevent=!0)}$n({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Kt(this.info)},mousedown(r){if(!Mt(r))return;const e=xt(r),t=this,i=n=>{Mt(n)||(xr("up",e,n),Kt(t.info))},o=n=>{Mt(n)&&xr("up",e,n),Kt(t.info)};Mh(this.info,i,o),xr("down",e,r)},touchstart(r){xr("down",xt(r),r.changedTouches[0],r)},touchend(r){xr("up",xt(r),r.changedTouches[0],r)}});function xr(r,e,t,i){e&&Vn(e,r,{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:i,prevent(o){return Li(o)}})}$n({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(r){this.moves.length>Gf&&this.moves.shift(),this.moves.push(r)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,Kt(this.info)},mousedown(r){if(!Mt(r))return;const e=xt(r),t=this,i=n=>{const s=n.clientX,a=n.clientY;Ca(t.info,s,a)&&(t.info.state=t.info.started?n.type==="mouseup"?"end":"track":"start",t.info.state==="start"&&Li("tap"),t.info.addMove({x:s,y:a}),Mt(n)||(t.info.state="end",Kt(t.info)),e&&Ao(t.info,e,n),t.info.started=!0)},o=n=>{t.info.started&&i(n),Kt(t.info)};Mh(this.info,i,o),this.info.x=r.clientX,this.info.y=r.clientY},touchstart(r){const e=r.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(r){const e=xt(r),t=r.changedTouches[0],i=t.clientX,o=t.clientY;Ca(this.info,i,o)&&(this.info.state==="start"&&Li("tap"),this.info.addMove({x:i,y:o}),Ao(this.info,e,t),this.info.state="track",this.info.started=!0)},touchend(r){const e=xt(r),t=r.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:t.clientX,y:t.clientY}),Ao(this.info,e,t))}});function Ca(r,e,t){if(r.prevent)return!1;if(r.started)return!0;const i=Math.abs(r.x-e),o=Math.abs(r.y-t);return i>=wa||o>=wa}function Ao(r,e,t){if(!e)return;const i=r.moves[r.moves.length-2],o=r.moves[r.moves.length-1],n=o.x-r.x,s=o.y-r.y;let a,l=0;i&&(a=o.x-i.x,l=o.y-i.y),Vn(e,"track",{state:r.state,x:t.clientX,y:t.clientY,dx:n,dy:s,ddx:a,ddy:l,sourceEvent:t,hover(){return t_(t.clientX,t.clientY)}})}$n({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(r){Mt(r)&&(this.info.x=r.clientX,this.info.y=r.clientY)},click(r){Mt(r)&&Ea(this.info,r)},touchstart(r){const e=r.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(r){Ea(this.info,r.changedTouches[0],r)}});function Ea(r,e,t){const i=Math.abs(e.clientX-r.x),o=Math.abs(e.clientY-r.y),n=xt(t||e);!n||Jf[n.localName]&&n.hasAttribute("disabled")||(isNaN(i)||isNaN(o)||i<=xa&&o<=xa||Qf(e))&&(r.prevent||Vn(n,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:t}))}/**
1578
+ */const $_=!1,W_=i=>i,Ln=typeof document.head.style.touchAction=="string",sn="__polymerGestures",wo="__polymerGesturesHandled",an="__polymerGesturesTouchAction",ya=25,xa=5,j_=2,U_=["mousedown","mousemove","mouseup","click"],G_=[0,1,4,2],q_=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(i){return!1}}();function Hn(i){return U_.indexOf(i)>-1}let Dh=!1;(function(){try{const i=Object.defineProperty({},"passive",{get(){Dh=!0}});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch(i){}})();function Y_(i){if(!(Hn(i)||i==="touchend")&&Ln&&Dh&&$_)return{passive:!0}}const X_=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),K_={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Mt(i){const e=i.type;if(!Hn(e))return!1;if(e==="mousemove"){let t=i.buttons===void 0?1:i.buttons;return i instanceof window.MouseEvent&&!q_&&(t=G_[i.which]||0),!!(t&1)}return(i.button===void 0?0:i.button)===0}function Z_(i){if(i.type==="click"){if(i.detail===0)return!0;const e=xt(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 ot={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function J_(i){let e="auto";const t=Mh(i);for(let r=0,o;r<t.length;r++)if(o=t[r],o[an]){e=o[an];break}return e}function Oh(i,e,t){i.movefn=e,i.upfn=t,document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)}function Zt(i){document.removeEventListener("mousemove",i.movefn),document.removeEventListener("mouseup",i.upfn),i.movefn=null,i.upfn=null}const Mh=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:i=>i.composedPath&&i.composedPath()||[],Rn={},Ot=[];function Q_(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 xt(i){const e=Mh(i);return e.length>0?e[0]:i.target}function ef(i){const e=i.type,t=i.currentTarget[sn];if(!t)return;const r=t[e];if(!r)return;if(!i[wo]&&(i[wo]={},e.startsWith("touch"))){const n=i.changedTouches[0];if(e==="touchstart"&&i.touches.length===1&&(ot.touch.id=n.identifier),ot.touch.id!==n.identifier)return;Ln||(e==="touchstart"||e==="touchmove")&&tf(i)}const o=i[wo];if(!o.skip){for(let n=0,s;n<Ot.length;n++)s=Ot[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<Ot.length;n++)s=Ot[n],r[s.name]&&!o[s.name]&&(o[s.name]=!0,s[e](i))}}function tf(i){const e=i.changedTouches[0],t=i.type;if(t==="touchstart")ot.touch.x=e.clientX,ot.touch.y=e.clientY,ot.touch.scrollDecided=!1;else if(t==="touchmove"){if(ot.touch.scrollDecided)return;ot.touch.scrollDecided=!0;const r=J_(i);let o=!1;const n=Math.abs(ot.touch.x-e.clientX),s=Math.abs(ot.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():zr("track")}}function Je(i,e,t){return Rn[e]?(rf(i,e,t),!0):!1}function rf(i,e,t){const r=Rn[e],o=r.deps,n=r.name;let s=i[sn];s||(i[sn]=s={});for(let a=0,l,h;a<o.length;a++)l=o[a],!(X_&&Hn(l)&&l!=="click")&&(h=s[l],h||(s[l]=h={_count:0}),h._count===0&&i.addEventListener(l,ef,Y_(l)),h[n]=(h[n]||0)+1,h._count=(h._count||0)+1);i.addEventListener(e,t),r.touchAction&&Nh(i,r.touchAction)}function Fn(i){Ot.push(i),i.emits.forEach(e=>{Rn[e]=i})}function of(i){for(let e=0,t;e<Ot.length;e++){t=Ot[e];for(let r=0,o;r<t.emits.length;r++)if(o=t.emits[r],o===i)return t}return null}function Nh(i,e){Ln&&i instanceof HTMLElement&&Nr.run(()=>{i.style.touchAction=e}),i[an]=e}function Vn(i,e,t){const r=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=t,W_(i).dispatchEvent(r),r.defaultPrevented){const o=t.preventer||t.sourceEvent;o&&o.preventDefault&&o.preventDefault()}}function zr(i){const e=of(i);e.info&&(e.info.prevent=!0)}Fn({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Zt(this.info)},mousedown(i){if(!Mt(i))return;const e=xt(i),t=this,r=n=>{Mt(n)||(wi("up",e,n),Zt(t.info))},o=n=>{Mt(n)&&wi("up",e,n),Zt(t.info)};Oh(this.info,r,o),wi("down",e,i)},touchstart(i){wi("down",xt(i),i.changedTouches[0],i)},touchend(i){wi("up",xt(i),i.changedTouches[0],i)}});function wi(i,e,t,r){e&&Vn(e,i,{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:r,prevent(o){return zr(o)}})}Fn({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>j_&&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,Zt(this.info)},mousedown(i){if(!Mt(i))return;const e=xt(i),t=this,r=n=>{const s=n.clientX,a=n.clientY;wa(t.info,s,a)&&(t.info.state=t.info.started?n.type==="mouseup"?"end":"track":"start",t.info.state==="start"&&zr("tap"),t.info.addMove({x:s,y:a}),Mt(n)||(t.info.state="end",Zt(t.info)),e&&Co(t.info,e,n),t.info.started=!0)},o=n=>{t.info.started&&r(n),Zt(t.info)};Oh(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=xt(i),t=i.changedTouches[0],r=t.clientX,o=t.clientY;wa(this.info,r,o)&&(this.info.state==="start"&&zr("tap"),this.info.addMove({x:r,y:o}),Co(this.info,e,t),this.info.state="track",this.info.started=!0)},touchend(i){const e=xt(i),t=i.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:t.clientX,y:t.clientY}),Co(this.info,e,t))}});function wa(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>=xa||o>=xa}function Co(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),Vn(e,"track",{state:i.state,x:t.clientX,y:t.clientY,dx:n,dy:s,ddx:a,ddy:l,sourceEvent:t,hover(){return Q_(t.clientX,t.clientY)}})}Fn({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){Mt(i)&&(this.info.x=i.clientX,this.info.y=i.clientY)},click(i){Mt(i)&&Ca(this.info,i)},touchstart(i){const e=i.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(i){Ca(this.info,i.changedTouches[0],i)}});function Ca(i,e,t){const r=Math.abs(e.clientX-i.x),o=Math.abs(e.clientY-i.y),n=xt(t||e);!n||K_[n.localName]&&n.hasAttribute("disabled")||(isNaN(r)||isNaN(o)||r<=ya&&o<=ya||Z_(e))&&(i.prevent||Vn(n,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:t}))}/**
1579
1579
  * @license
1580
1580
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1581
1581
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1582
- */const cr=ve(r=>class extends r{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 ui=ve(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/
1586
- */const Lt=ve(r=>class extends r{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e);break}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});/**
1586
+ */const Lt=ve(i=>class extends i{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e);break}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});/**
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 Wn=r=>class extends cr(Lt(r)){get _activeKeys(){return[" "]}ready(){super.ready(),Je(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),Je(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 $n=i=>class extends ui(Lt(i)){get _activeKeys(){return[" "]}ready(){super.ready(),Je(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),Je(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 jn=!1;window.addEventListener("keydown",()=>{jn=!0},{capture:!0});window.addEventListener("mousedown",()=>{jn=!1},{capture:!0});function pn(){let r=document.activeElement||document.body;for(;r.shadowRoot&&r.shadowRoot.activeElement;)r=r.shadowRoot.activeElement;return r}function Ji(){return jn}function Bh(r){const e=r.style;if(e.visibility==="hidden"||e.display==="none")return!0;const t=window.getComputedStyle(r);return t.visibility==="hidden"||t.display==="none"}function s_(r,e){const t=Math.max(r.tabIndex,0),i=Math.max(e.tabIndex,0);return t===0||i===0?i>t:t>i}function a_(r,e){const t=[];for(;r.length>0&&e.length>0;)s_(r[0],e[0])?t.push(e.shift()):t.push(r.shift());return t.concat(r,e)}function mn(r){const e=r.length;if(e<2)return r;const t=Math.ceil(e/2),i=mn(r.slice(0,t)),o=mn(r.slice(t));return a_(i,o)}function fn(r){return r.offsetParent===null&&r.clientWidth===0&&r.clientHeight===0?!0:Bh(r)}function Un(r){return r.matches('[tabindex="-1"]')?!1:r.matches("input, select, textarea, button, object")?r.matches(":not([disabled])"):r.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Gn(r){return r.getRootNode().activeElement===r}function l_(r){if(!Un(r))return-1;const e=r.getAttribute("tabindex")||0;return Number(e)}function Lh(r,e){if(r.nodeType!==Node.ELEMENT_NODE||Bh(r))return!1;const t=r,i=l_(t);let o=i>0;i>=0&&e.push(t);let n=[];return t.localName==="slot"?n=t.assignedNodes({flatten:!0}):n=(t.shadowRoot||t).children,[...n].forEach(s=>{o=Lh(s,e)||o}),o}function h_(r){const e=[];return Lh(r,e)?mn(e):e}/**
1594
+ */let Wn=!1;window.addEventListener("keydown",()=>{Wn=!0},{capture:!0});window.addEventListener("mousedown",()=>{Wn=!1},{capture:!0});function ln(){let i=document.activeElement||document.body;for(;i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function Xr(){return Wn}function zh(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 nf(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 sf(i,e){const t=[];for(;i.length>0&&e.length>0;)nf(i[0],e[0])?t.push(e.shift()):t.push(i.shift());return t.concat(i,e)}function hn(i){const e=i.length;if(e<2)return i;const t=Math.ceil(e/2),r=hn(i.slice(0,t)),o=hn(i.slice(t));return sf(r,o)}function dn(i){return i.offsetParent===null&&i.clientWidth===0&&i.clientHeight===0?!0:zh(i)}function jn(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 Un(i){return i.getRootNode().activeElement===i}function af(i){if(!jn(i))return-1;const e=i.getAttribute("tabindex")||0;return Number(e)}function Bh(i,e){if(i.nodeType!==Node.ELEMENT_NODE||zh(i))return!1;const t=i,r=af(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=Bh(s,e)||o}),o}function lf(i){const e=[];return Bh(i,e)?hn(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 Ht=ve(r=>class extends r{get _keyboardActive(){return Ji()}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 Ht=ve(i=>class extends i{get _keyboardActive(){return Xr()}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 Hh=r=>class extends cr(r){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,t){super._disabledChanged(e,t),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):t&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1)}};/**
1602
+ */const Lh=i=>class extends ui(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 Qi=ve(r=>class extends Ht(Hh(r)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,t){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):t&&this._removeFocusListeners(t)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,t){super._disabledChanged(e,t),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){e!==void 0&&this.focusElement&&(this.focusElement.tabIndex=e,e!==-1&&(this.tabindex=void 0)),this.disabled&&e&&(e!==-1&&(this._lastTabIndex=e),this.tabindex=void 0)}});/**
1606
+ */const Kr=ve(i=>class extends Ht(Lh(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 qn=ve(r=>class extends r{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,i)=>{this._delegateAttribute(t,e[i])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((t,i)=>{this._delegateProperty(t,e[i])})}_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 Gn=ve(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/
1614
- */const Yr=ve(r=>class extends r{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=e!=null?e:"")}_inputElementChanged(e,t){e?this._addInputListeners(e):t&&this._removeInputListeners(t)}_hasInputValueChanged(e,t){(e||t)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const t=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=t.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,t){this._toggleHasValue(this._hasValue),!(e===""&&t===void 0)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const t=e.composedPath()[0];this._hasInputValue=t.value.length>0}});/**
1614
+ */const qi=ve(i=>class extends i{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=e!=null?e:"")}_inputElementChanged(e,t){e?this._addInputListeners(e):t&&this._removeInputListeners(t)}_hasInputValueChanged(e,t){(e||t)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const t=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=t.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,t){this._toggleHasValue(this._hasValue),!(e===""&&t===void 0)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const t=e.composedPath()[0];this._hasInputValue=t.value.length>0}});/**
1615
1615
  * @license
1616
1616
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1617
1617
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1618
- */const d_=ve(r=>class extends qn(cr(Yr(r))){static get properties(){return{checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return[...super.delegateProps,"checked"]}_onChange(e){const t=e.target;this._toggleChecked(t.checked)}_toggleChecked(e){this.checked=e}});/**
1618
+ */const hf=ve(i=>class extends Gn(ui(qi(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 Po=new Map;function Yn(r){return Po.has(r)||Po.set(r,new WeakMap),Po.get(r)}function Rh(r,e){r&&r.removeAttribute(e)}function Fh(r,e){if(!r||!e)return;const t=Yn(e);if(t.has(r))return;const i=Hn(r.getAttribute(e));t.set(r,new Set(i))}function c_(r,e){if(!r||!e)return;const t=Yn(e),i=t.get(r);!i||i.size===0?r.removeAttribute(e):Ih(r,e,Zi(i)),t.delete(r)}function Zt(r,e,t={newId:null,oldId:null,fromUser:!1}){if(!r||!e)return;const{newId:i,oldId:o,fromUser:n}=t,s=Yn(e),a=s.get(r);if(!n&&a){o&&a.delete(o),i&&a.add(i);return}n&&(a?i||s.delete(r):Fh(r,e),Rh(r,e)),Vf(r,e,o);const l=i||Zi(a);l&&Ih(r,e,l)}function u_(r,e){Fh(r,e),Rh(r,e)}/**
1622
+ */const Eo=new Map;function qn(i){return Eo.has(i)||Eo.set(i,new WeakMap),Eo.get(i)}function Hh(i,e){i&&i.removeAttribute(e)}function Rh(i,e){if(!i||!e)return;const t=qn(e);if(t.has(i))return;const r=zn(i.getAttribute(e));t.set(i,new Set(r))}function df(i,e){if(!i||!e)return;const t=qn(e),r=t.get(i);!r||r.size===0?i.removeAttribute(e):Ih(i,e,Yr(r)),t.delete(i)}function Jt(i,e,t={newId:null,oldId:null,fromUser:!1}){if(!i||!e)return;const{newId:r,oldId:o,fromUser:n}=t,s=qn(e),a=s.get(i);if(!n&&a){o&&a.delete(o),r&&a.add(r);return}n&&(a?r||s.delete(i):Rh(i,e),Hh(i,e)),R_(i,e,o);const l=r||Yr(a);l&&Ih(i,e,l)}function cf(i,e){Rh(i,e),Hh(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 p_{constructor(e){this.host=e,this.__required=!1}setTarget(e){this.__target=e,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),this.__labelIdFromUser!=null&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(e){this.__setAriaRequiredAttribute(e),this.__required=e}setAriaLabel(e){this.__setAriaLabelToAttribute(e),this.__label=e}setLabelId(e,t=!1){const i=t?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(e,i,t),t?this.__labelIdFromUser=e:this.__labelId=e}setErrorId(e){this.__setErrorIdToAriaAttribute(e,this.__errorId),this.__errorId=e}setHelperId(e){this.__setHelperIdToAriaAttribute(e,this.__helperId),this.__helperId=e}__setAriaLabelToAttribute(e){this.__target&&(e?(u_(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&(c_(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,i){Zt(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:i})}__setErrorIdToAriaAttribute(e,t){Zt(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){Zt(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setAriaRequiredAttribute(e){this.__target&&(["input","textarea"].includes(this.__target.localName)||(e?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
1626
+ */class uf{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?(cf(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&(df(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,r){Jt(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:r})}__setErrorIdToAriaAttribute(e,t){Jt(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){Jt(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/
1630
- */const et=ve(r=>typeof r.prototype.addController=="function"?r:class extends r{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}});/**
1630
+ */const Qe=ve(i=>typeof i.prototype.addController=="function"?i:class extends i{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}});/**
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 Xe=document.createElement("div");Xe.style.position="fixed";Xe.style.clip="rect(0px, 0px, 0px, 0px)";Xe.setAttribute("aria-live","polite");document.body.appendChild(Xe);let ui;function Ei(r,e={}){const t=e.mode||"polite",i=e.timeout===void 0?150:e.timeout;t==="alert"?(Xe.removeAttribute("aria-live"),Xe.removeAttribute("role"),ui=Fe.debounce(ui,$r,()=>{Xe.setAttribute("role","alert")})):(ui&&ui.cancel(),Xe.removeAttribute("role"),Xe.setAttribute("aria-live",t)),Xe.textContent="",setTimeout(()=>{Xe.textContent=r},i)}/**
1634
+ */const Xe=document.createElement("div");Xe.style.position="fixed";Xe.style.clip="rect(0px, 0px, 0px, 0px)";Xe.setAttribute("aria-live","polite");document.body.appendChild(Xe);let cr;function Cr(i,e={}){const t=e.mode||"polite",r=e.timeout===void 0?150:e.timeout;t==="alert"?(Xe.removeAttribute("aria-live"),Xe.removeAttribute("role"),cr=Fe.debounce(cr,Vi,()=>{Xe.setAttribute("role","alert")})):(cr&&cr.cancel(),Xe.removeAttribute("role"),Xe.setAttribute("aria-live",t)),Xe.textContent="",setTimeout(()=>{Xe.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 Xn extends Ne{constructor(e,t,i,o={}){super(e,t,i,Fl(ki({},o),{useUniqueId:!0}))}initCustomNode(e){this.__updateNodeId(e),this.__notifyChange(e)}teardownNode(e){const t=this.getSlotChild();t&&t!==this.defaultNode?this.__notifyChange(t):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const e=super.attachDefaultNode();return e&&this.__updateNodeId(e),e}restoreDefaultNode(){}updateDefaultNode(e){this.__notifyChange(e)}observeNode(e){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(t=>{t.forEach(i=>{const o=i.target,n=o===this.node;i.type==="attributes"?n&&this.__updateNodeId(o):(n||o.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(e){return e?e.nodeType===Node.ELEMENT_NODE&&(customElements.get(e.localName)||e.children.length>0)||e.textContent&&e.textContent.trim()!=="":!1}__notifyChange(e){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(e),node:e}}))}__updateNodeId(e){const t=!this.nodes||e===this.nodes[0];e.nodeType===Node.ELEMENT_NODE&&(!this.multiple||t)&&!e.id&&(e.id=this.defaultId)}}/**
1638
+ */class Yn extends Ne{constructor(e,t,r,o={}){super(e,t,r,Fl(Ar({},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)}}/**
1639
1639
  * @license
1640
1640
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1641
1641
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1642
- */class m_ extends Xn{constructor(e){super(e,"error-message","div")}setErrorMessage(e){this.errorMessage=e,this.updateDefaultNode(this.node)}setInvalid(e){this.invalid=e,this.updateDefaultNode(this.node)}initAddedNode(e){e!==this.defaultNode&&this.initCustomNode(e)}initNode(e){this.updateDefaultNode(e)}initCustomNode(e){e.textContent&&!this.errorMessage&&(this.errorMessage=e.textContent.trim()),super.initCustomNode(e)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(e){const{errorMessage:t,invalid:i}=this,o=!!(i&&t&&t.trim()!=="");e&&(e.textContent=o?t:"",e.hidden=!o,o&&Ei(t,{mode:"assertive"})),super.updateDefaultNode(e)}}/**
1642
+ */class pf extends Yn{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&&Cr(t,{mode:"assertive"})),super.updateDefaultNode(e)}}/**
1643
1643
  * @license
1644
1644
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1645
1645
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1646
- */class f_ extends Xn{constructor(e){super(e,"helper",null)}setHelperText(e){this.helperText=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:e}=this;if(e&&e.trim()!==""){this.tagName="div";const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.helperText),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
1646
+ */class mf extends Yn{constructor(e){super(e,"helper",null)}setHelperText(e){this.helperText=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:e}=this;if(e&&e.trim()!==""){this.tagName="div";const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.helperText),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
1647
1647
  * @license
1648
1648
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1649
1649
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1650
- */class $h extends Xn{constructor(e){super(e,"label","label")}setLabel(e){this.label=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:e}=this;if(e&&e.trim()!==""){const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.label),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
1650
+ */class Fh extends Yn{constructor(e){super(e,"label","label")}setLabel(e){this.label=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:e}=this;if(e&&e.trim()!==""){const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.label),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
1651
1651
  * @license
1652
1652
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1653
1653
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1654
- */const __=ve(r=>class extends et(r){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new $h(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent)})}get _labelId(){const e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}});/**
1654
+ */const _f=ve(i=>class extends Qe(i){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Fh(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 Kn=ve(r=>class extends r{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 Xn=ve(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 eo=r=>class extends Kn(__(et(r))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new p_(this),this._helperController=new f_(this),this._errorController=new m_(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",e=>{const{hasContent:t,node:i}=e.detail;this.__labelChanged(t,i)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:t,node:i}=e.detail;this.toggleAttribute("has-helper",t),this.__helperChanged(t,i)})}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(e,t){e?this._fieldAriaController.setHelperId(t.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,t){e?this._fieldAriaController.setLabelId(t.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{if(e){const t=this._errorNode;this._fieldAriaController.setErrorId(t&&t.id)}else this._fieldAriaController.setErrorId(null)})}};/**
1662
+ */const Zr=i=>class extends Xn(_f(Qe(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 uf(this),this._helperController=new mf(this),this._errorController=new pf(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 Xr extends Ne{constructor(e,t,i={}){const{uniqueIdPrefix:o}=i;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 Yi extends Ne{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})}}/**
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 Kr{constructor(e,t){this.input=e,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),t.addEventListener("slot-content-changed",i=>{this.__initLabel(i.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 Xi{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 v_=r=>class extends eo(d_(Qi(Wn(r)))){static get properties(){return{indeterminate:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},name:{type:String,value:""},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},tabindex:{type:Number,value:0,reflectToAttribute:!0}}}static get observers(){return["__readonlyChanged(readonly, inputElement)"]}static get delegateProps(){return[...super.delegateProps,"indeterminate"]}static get delegateAttrs(){return[...super.delegateAttrs,"name","invalid","required"]}constructor(){super(),this._setType("checkbox"),this._boundOnInputClick=this._onInputClick.bind(this),this.value="on"}ready(){super.ready(),this.addController(new Xr(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Kr(this.inputElement,this._labelController)),this._createMethodObserver("_checkedChanged(checked)")}_shouldSetActive(e){return this.readonly||e.target.localName==="a"||e.target===this._helperNode||e.target===this._errorNode?!1:super._shouldSetActive(e)}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("click",this._boundOnInputClick)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("click",this._boundOnInputClick)}_onInputClick(e){this.readonly&&e.preventDefault()}__readonlyChanged(e,t){t&&(e?t.setAttribute("aria-readonly","true"):t.removeAttribute("aria-readonly"))}_toggleChecked(e){this.indeterminate&&(this.indeterminate=!1),super._toggleChecked(e)}checkValidity(){return!this.required||!!this.checked}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_checkedChanged(e){(e||this.__oldChecked)&&this.validate(),this.__oldChecked=e}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate()}_onRequiredIndicatorClick(){this._labelNode.click()}};/**
1674
+ */const ff=i=>class extends Zr(hf(Kr($n(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 Yi(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Xi(this.inputElement,this._labelController)),this._createMethodObserver("_checkedChanged(checked)")}_shouldSetActive(e){return this.readonly||e.target.localName==="a"||e.target===this._helperNode||e.target===this._errorNode?!1:super._shouldSetActive(e)}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("click",this._boundOnInputClick)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("click",this._boundOnInputClick)}_onInputClick(e){this.readonly&&e.preventDefault()}__readonlyChanged(e,t){t&&(e?t.setAttribute("aria-readonly","true"):t.removeAttribute("aria-readonly"))}_toggleChecked(e){this.indeterminate&&(this.indeterminate=!1),super._toggleChecked(e)}checkValidity(){return!this.required||!!this.checked}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_checkedChanged(e){(e||this.__oldChecked)&&this.validate(),this.__oldChecked=e}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate()}_onRequiredIndicatorClick(){this._labelNode.click()}};/**
1675
1675
  * @license
1676
1676
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1677
1677
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1678
- */const g_=k`
1678
+ */const vf=k`
1679
1679
  :host {
1680
1680
  display: inline-block;
1681
1681
  }
@@ -1767,7 +1767,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1767
1767
  * @license
1768
1768
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1769
1769
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1770
- */L("vaadin-checkbox",g_,{moduleId:"vaadin-checkbox-styles"});class b_ extends v_(Ve(le(Z))){static get is(){return"vaadin-checkbox"}static get template(){return K`
1770
+ */L("vaadin-checkbox",vf,{moduleId:"vaadin-checkbox-styles"});class gf extends ff($e(he(Z))){static get is(){return"vaadin-checkbox"}static get template(){return K`
1771
1771
  <div class="vaadin-checkbox-container">
1772
1772
  <div part="checkbox" aria-hidden="true"></div>
1773
1773
  <slot name="input"></slot>
@@ -1783,7 +1783,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1783
1783
  </div>
1784
1784
  </div>
1785
1785
  <slot name="tooltip"></slot>
1786
- `}ready(){super.ready(),this._tooltipController=new ht(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}G(b_);/**
1786
+ `}ready(){super.ready(),this._tooltipController=new ht(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}G(gf);/**
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/
@@ -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 Zn=k`
1850
+ */const Kn=k`
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
- `;L("",Zn,{moduleId:"lumo-required-field"});const y_=k`
1962
+ `;L("",Kn,{moduleId:"lumo-required-field"});const bf=k`
1963
1963
  :host {
1964
1964
  color: var(--lumo-body-text-color);
1965
1965
  font-size: var(--lumo-font-size-m);
@@ -2002,15 +2002,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2002
2002
  color: var(--lumo-secondary-text-color);
2003
2003
  }
2004
2004
  }
2005
- `;L("vaadin-checkbox-group",[Zn,Vh,y_],{moduleId:"lumo-checkbox-group"});/**
2005
+ `;L("vaadin-checkbox-group",[Kn,Vh,bf],{moduleId:"lumo-checkbox-group"});/**
2006
2006
  * @license
2007
2007
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
2008
2008
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2009
- */const x_=r=>class extends eo(Ht(cr(r))){static get properties(){return{value:{type:Array,value:()=>[],notify:!0,sync:!0,observer:"__valueChanged"},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__readonlyChanged"}}}constructor(){super(),this.__registerCheckbox=this.__registerCheckbox.bind(this),this.__unregisterCheckbox=this.__unregisterCheckbox.bind(this),this.__onCheckboxCheckedChanged=this.__onCheckboxCheckedChanged.bind(this),this._tooltipController=new ht(this),this._tooltipController.addEventListener("tooltip-changed",e=>{const t=e.detail.node;if(t&&t.isConnected){const i=this.__checkboxes.map(o=>o.inputElement);this._tooltipController.setAriaTarget(i)}else this._tooltipController.setAriaTarget([])})}get __checkboxes(){return this.__filterCheckboxes([...this.children])}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","group");const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Rn(e,({addedNodes:t,removedNodes:i})=>{const o=this.__filterCheckboxes(t),n=this.__filterCheckboxes(i);o.forEach(this.__registerCheckbox),n.forEach(this.__unregisterCheckbox);const s=this.__checkboxes.map(a=>a.inputElement);this._tooltipController.setAriaTarget(s),this.__warnOfCheckboxesWithoutValue(o)}),this.addController(this._tooltipController)}checkValidity(){return!this.required||!!(this.value&&this.value.length>0)}__filterCheckboxes(e){return e.filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.localName==="vaadin-checkbox")}__warnOfCheckboxesWithoutValue(e){e.some(t=>{const{value:i}=t;return!t.hasAttribute("value")&&(!i||i==="on")})&&console.warn("Please provide the value attribute to all the checkboxes inside the checkbox group.")}__registerCheckbox(e){e.addEventListener("checked-changed",this.__onCheckboxCheckedChanged),this.disabled&&(e.disabled=!0),this.readonly&&(e.readonly=!0),e.checked?this.__addCheckboxToValue(e.value):this.value&&this.value.includes(e.value)&&(e.checked=!0)}__unregisterCheckbox(e){e.removeEventListener("checked-changed",this.__onCheckboxCheckedChanged),e.checked&&this.__removeCheckboxFromValue(e.value)}_disabledChanged(e,t){super._disabledChanged(e,t),!(!e&&t===void 0)&&t!==e&&this.__checkboxes.forEach(i=>{i.disabled=e})}__addCheckboxToValue(e){this.value?this.value.includes(e)||(this.value=[...this.value,e]):this.value=[e]}__removeCheckboxFromValue(e){this.value&&this.value.includes(e)&&(this.value=this.value.filter(t=>t!==e))}__onCheckboxCheckedChanged(e){const t=e.target;t.checked?this.__addCheckboxToValue(t.value):this.__removeCheckboxFromValue(t.value)}__valueChanged(e,t){e&&e.length===0&&t===void 0||(this.toggleAttribute("has-value",e&&e.length>0),this.__checkboxes.forEach(i=>{i.checked=e&&e.includes(i.value)}),t!==void 0&&this.validate())}__readonlyChanged(e,t){(e||t)&&this.__checkboxes.forEach(i=>{i.readonly=e})}_shouldRemoveFocus(e){return!this.contains(e.relatedTarget)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}};/**
2009
+ */const yf=i=>class extends Zr(Ht(ui(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 ht(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 Bn(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()}};/**
2010
2010
  * @license
2011
2011
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
2012
2012
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2013
- */const w_=k`
2013
+ */const xf=k`
2014
2014
  :host {
2015
2015
  display: inline-flex;
2016
2016
  }
@@ -2043,7 +2043,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2043
2043
  * @license
2044
2044
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
2045
2045
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2046
- */L("vaadin-checkbox-group",w_,{moduleId:"vaadin-checkbox-group-styles"});class C_ extends x_(Ve(le(Z))){static get is(){return"vaadin-checkbox-group"}static get template(){return K`
2046
+ */L("vaadin-checkbox-group",xf,{moduleId:"vaadin-checkbox-group-styles"});class wf extends yf($e(he(Z))){static get is(){return"vaadin-checkbox-group"}static get template(){return K`
2047
2047
  <div class="vaadin-group-field-container">
2048
2048
  <div part="label">
2049
2049
  <slot name="label"></slot>
@@ -2064,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
- `}}G(C_);/**
2067
+ `}}G(wf);/**
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 ur=k`
2071
+ */const pi=k`
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
- `;L("",ur,{moduleId:"lumo-overlay"});/**
2136
+ `;L("",pi,{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 to=k`
2140
+ */const Jr=k`
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
- `;L("",to,{moduleId:"lumo-menu-overlay-core"});const E_=k`
2170
+ `;L("",Jr,{moduleId:"lumo-menu-overlay-core"});const Cf=k`
2171
2171
  /* Small viewport (bottom sheet) styles */
2172
2172
  /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
2173
2173
  @media (max-width: 450px), (max-height: 450px) {
@@ -2229,7 +2229,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2229
2229
  transform: translateY(150%);
2230
2230
  }
2231
2231
  }
2232
- `,Jn=[ur,to,E_];L("",Jn,{moduleId:"lumo-menu-overlay"});const S_=k`
2232
+ `,Zn=[pi,Jr,Cf];L("",Zn,{moduleId:"lumo-menu-overlay"});const Ef=k`
2233
2233
  [part='overlay'] {
2234
2234
  /*
2235
2235
  Width:
@@ -2274,7 +2274,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2274
2274
  max-height: 70vh;
2275
2275
  }
2276
2276
  }
2277
- `;L("vaadin-date-picker-overlay",[Jn,S_],{moduleId:"lumo-date-picker-overlay"});const Wh=k`
2277
+ `;L("vaadin-date-picker-overlay",[Zn,Ef],{moduleId:"lumo-date-picker-overlay"});const $h=k`
2278
2278
  :host {
2279
2279
  /* Sizing */
2280
2280
  --lumo-button-size: var(--lumo-size-m);
@@ -2550,7 +2550,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2550
2550
  margin-left: 0;
2551
2551
  margin-right: 0;
2552
2552
  }
2553
- `;L("vaadin-button",Wh,{moduleId:"lumo-button"});L("vaadin-date-picker-year",k`
2553
+ `;L("vaadin-button",$h,{moduleId:"lumo-button"});L("vaadin-date-picker-year",k`
2554
2554
  :host([current]) [part='year-number'] {
2555
2555
  color: var(--lumo-primary-text-color);
2556
2556
  }
@@ -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 Qn=k`
3056
+ */const Jn=k`
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
- `;L("",Qn,{moduleId:"lumo-field-button"});/**
3083
+ `;L("",Jn,{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 A_=k`
3087
+ */const Sf=k`
3088
3088
  :host {
3089
3089
  --lumo-text-field-size: var(--lumo-size-m);
3090
3090
  color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
@@ -3215,7 +3215,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3215
3215
  [part='clear-button']::before {
3216
3216
  content: var(--lumo-icons-cross);
3217
3217
  }
3218
- `,Rt=[Zn,Qn,Vh,A_];L("",Rt,{moduleId:"lumo-input-field-shared-styles"});const P_=k`
3218
+ `,Rt=[Kn,Jn,Vh,Sf];L("",Rt,{moduleId:"lumo-input-field-shared-styles"});const Af=k`
3219
3219
  [part='toggle-button']::before {
3220
3220
  content: var(--lumo-icons-calendar);
3221
3221
  }
@@ -3237,15 +3237,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3237
3237
  :host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
3238
3238
  --_lumo-text-field-overflow-mask-image: none;
3239
3239
  }
3240
- `;L("vaadin-date-picker",[Rt,P_],{moduleId:"lumo-date-picker"});/**
3240
+ `;L("vaadin-date-picker",[Rt,Af],{moduleId:"lumo-date-picker"});/**
3241
3241
  * @license
3242
3242
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3243
3243
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3244
- */const k_=r=>class extends r{static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",e=>{e.target===this&&e.preventDefault()}),this.addEventListener("click",e=>{e.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(t=>t.focus&&t.focus())})}};/**
3244
+ */const Pf=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 T_=k`
3248
+ */const kf=k`
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
- */L("vaadin-input-container",T_,{moduleId:"vaadin-input-container-styles"});class jh extends k_(le($e(Z))){static get is(){return"vaadin-input-container"}static get template(){return K`
3317
+ */L("vaadin-input-container",kf,{moduleId:"vaadin-input-container-styles"});class Wh extends Pf(he(Ve(Z))){static get is(){return"vaadin-input-container"}static get template(){return K`
3318
3318
  <slot name="prefix"></slot>
3319
3319
  <slot></slot>
3320
3320
  <slot name="suffix"></slot>
3321
- `}}G(jh);/**
3321
+ `}}G(Wh);/**
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 Zr=k`
3325
+ */const Ki=k`
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 _n=!1,I_=[],Uh=[];function D_(){_n=!0,requestAnimationFrame(function(){_n=!1,O_(I_),setTimeout(function(){M_(Uh)})})}function O_(r){for(;r.length;)Gh(r.shift())}function M_(r){for(let e=0,t=r.length;e<t;e++)Gh(r.shift())}function Gh(r){const e=r[0],t=r[1],i=r[2];try{t.apply(e,i)}catch(o){setTimeout(()=>{throw o})}}function es(r,e,t){_n||D_(),Uh.push([r,e,t])}/**
3392
+ */let cn=!1,Tf=[],jh=[];function If(){cn=!0,requestAnimationFrame(function(){cn=!1,Df(Tf),setTimeout(function(){Of(jh)})})}function Df(i){for(;i.length;)Uh(i.shift())}function Of(i){for(let e=0,t=i.length;e<t;e++)Uh(i.shift())}function Uh(i){const e=i[0],t=i[1],r=i[2];try{t.apply(e,r)}catch(o){setTimeout(()=>{throw o})}}function Qn(i,e,t){cn||If(),jh.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 ro=r=>r.test(navigator.userAgent),vn=r=>r.test(navigator.platform),N_=r=>r.test(navigator.vendor);ro(/Android/u);ro(/Chrome/u)&&N_(/Google Inc/u);ro(/Firefox/u);const z_=vn(/^iPad/u)||vn(/^Mac/u)&&navigator.maxTouchPoints>1,B_=vn(/^iPhone/u),ts=B_||z_,L_=ro(/^((?!chrome|android).)*safari/iu),gn=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(r){return!1}})();/**
3396
+ */const Qr=i=>i.test(navigator.userAgent),un=i=>i.test(navigator.platform),Mf=i=>i.test(navigator.vendor);Qr(/Android/u);Qr(/Chrome/u)&&Mf(/Google Inc/u);Qr(/Firefox/u);const Nf=un(/^iPad/u)||un(/^Mac/u)&&navigator.maxTouchPoints>1,zf=un(/^iPhone/u),es=zf||Nf,Bf=Qr(/^((?!chrome|android).)*safari/iu),pn=(()=>{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 Wt=new WeakMap,pi=new WeakMap,mi={},ko=0;const Sa=r=>r&&r.nodeType===Node.ELEMENT_NODE,To=(...r)=>{console.error(`Error: ${r.join(" ")}. Skip setting aria-hidden.`)},H_=(r,e)=>Sa(r)?e.map(t=>{if(!Sa(t))return To(t,"is not a valid element"),null;let i=t;for(;i&&i!==r;){if(r.contains(i))return t;i=i.getRootNode().host}return To(t,"is not contained inside",r),null}).filter(t=>!!t):(To(r,"is not a valid element"),[]),R_=(r,e,t,i)=>{const o=H_(e,Array.isArray(r)?r:[r]);mi[t]||(mi[t]=new WeakMap);const n=mi[t],s=[],a=new Set,l=new Set(o),h=c=>{if(!c||a.has(c))return;a.add(c);const u=c.assignedSlot;u&&h(u),h(c.parentNode||c.host)};o.forEach(h);const d=c=>{if(!c||l.has(c))return;const u=c.shadowRoot;(u?[...c.children,...u.children]:[...c.children]).forEach(m=>{if(!["template","script","style"].includes(m.localName))if(a.has(m))d(m);else{const g=m.getAttribute(i),_=g!==null&&g!=="false",y=(Wt.get(m)||0)+1,D=(n.get(m)||0)+1;Wt.set(m,y),n.set(m,D),s.push(m),y===1&&_&&pi.set(m,!0),D===1&&m.setAttribute(t,"true"),_||m.setAttribute(i,"true")}})};return d(e),a.clear(),ko+=1,()=>{s.forEach(c=>{const u=Wt.get(c)-1,m=n.get(c)-1;Wt.set(c,u),n.set(c,m),u||(pi.has(c)?pi.delete(c):c.removeAttribute(i)),m||c.removeAttribute(t)}),ko-=1,ko||(Wt=new WeakMap,Wt=new WeakMap,pi=new WeakMap,mi={})}},qh=(r,e=document.body,t="data-aria-hidden")=>{const i=Array.from(Array.isArray(r)?r:[r]);return e&&i.push(...Array.from(e.querySelectorAll("[aria-live]"))),R_(i,e,t,"aria-hidden")};/**
3400
+ */let Wt=new WeakMap,ur=new WeakMap,pr={},So=0;const Ea=i=>i&&i.nodeType===Node.ELEMENT_NODE,Ao=(...i)=>{console.error(`Error: ${i.join(" ")}. Skip setting aria-hidden.`)},Lf=(i,e)=>Ea(i)?e.map(t=>{if(!Ea(t))return Ao(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 Ao(t,"is not contained inside",i),null}).filter(t=>!!t):(Ao(i,"is not a valid element"),[]),Hf=(i,e,t,r)=>{const o=Lf(e,Array.isArray(i)?i:[i]);pr[t]||(pr[t]=new WeakMap);const n=pr[t],s=[],a=new Set,l=new Set(o),h=c=>{if(!c||a.has(c))return;a.add(c);const u=c.assignedSlot;u&&h(u),h(c.parentNode||c.host)};o.forEach(h);const d=c=>{if(!c||l.has(c))return;const u=c.shadowRoot;(u?[...c.children,...u.children]:[...c.children]).forEach(m=>{if(!["template","script","style"].includes(m.localName))if(a.has(m))d(m);else{const g=m.getAttribute(r),f=g!==null&&g!=="false",y=(Wt.get(m)||0)+1,D=(n.get(m)||0)+1;Wt.set(m,y),n.set(m,D),s.push(m),y===1&&f&&ur.set(m,!0),D===1&&m.setAttribute(t,"true"),f||m.setAttribute(r,"true")}})};return d(e),a.clear(),So+=1,()=>{s.forEach(c=>{const u=Wt.get(c)-1,m=n.get(c)-1;Wt.set(c,u),n.set(c,m),u||(ur.has(c)?ur.delete(c):c.removeAttribute(r)),m||c.removeAttribute(t)}),So-=1,So||(Wt=new WeakMap,Wt=new WeakMap,ur=new WeakMap,pr={})}},Gh=(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]"))),Hf(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 F_{constructor(e,t){this.host=e,this.callback=typeof t=="function"?t:()=>e}showModal(){const e=this.callback();this.__showOthers=qh(e)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
3404
+ */class Rf{constructor(e,t){this.host=e,this.callback=typeof t=="function"?t:()=>e}showModal(){const e=this.callback();this.__showOthers=Gh(e)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
3405
3405
  * @license
3406
3406
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3407
3407
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3408
- */class $_{saveFocus(e){this.focusNode=e||pn()}restoreFocus(e){const t=this.focusNode;if(!t)return;const i=e?e.preventScroll:!1;pn()===document.body?setTimeout(()=>t.focus({preventScroll:i})):t.focus({preventScroll:i}),this.focusNode=null}}/**
3408
+ */class Ff{saveFocus(e){this.focusNode=e||ln()}restoreFocus(e){const t=this.focusNode;if(!t)return;const r=e?e.preventScroll:!1;ln()===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 Io=[];class V_{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return h_(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(Gn).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(e){if(this.__trapNode=e,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Io.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Io.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from(Io).pop()&&e.key==="Tab"){e.preventDefault();const t=e.shiftKey;this.__focusNextElement(t)}}__focusNextElement(e=!1){const t=this.__focusableElements,i=e?-1:1,o=this.__focusedElementIndex,n=(t.length+o+i)%t.length,s=t[n];s.focus(),s.localName==="input"&&s.select()}}/**
3412
+ */const Po=[];class Vf{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return lf(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(Un).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.");Po.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Po.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from(Po).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()}}/**
3413
3413
  * @license
3414
3414
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3415
3415
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3416
- */const W_=r=>class extends et(r){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new F_(this),this.__focusTrapController=new V_(this),this.__focusRestorationController=new $_}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){if(this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()){const e=!Ji();this.__focusRestorationController.restoreFocus({preventScroll:e})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const e=pn();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let t=e;const i=e.ownerDocument;for(;t&&t!==i&&t!==this;)t=t.parentNode||t.host;return t===this}};/**
3416
+ */const $f=i=>class extends Qe(i){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Rf(this),this.__focusTrapController=new Vf(this),this.__focusRestorationController=new Ff}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=!Xr();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=ln();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 Yh=()=>Array.from(document.body.children).filter(r=>r instanceof HTMLElement&&r._hasOverlayStackMixin&&!r.hasAttribute("closing")).sort((r,e)=>r.__zIndex-e.__zIndex||0),bn=()=>Yh().filter(r=>r.$.overlay),j_=r=>r===bn().pop(),Xh=r=>class extends r{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return j_(this)}bringToFront(){let e="";const t=Yh().filter(i=>i!==this).pop();t&&(e=t.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),bn().forEach(e=>{e!==this&&(e.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const e=bn();let t;for(;(t=e.pop())&&!(t!==this&&(t.$.overlay.style.removeProperty("pointer-events"),!t.modeless)););}};/**
3420
+ */const qh=()=>Array.from(document.body.children).filter(i=>i instanceof HTMLElement&&i._hasOverlayStackMixin&&!i.hasAttribute("closing")).sort((i,e)=>i.__zIndex-e.__zIndex||0),mn=()=>qh().filter(i=>i.$.overlay),Wf=i=>i===mn().pop(),Yh=i=>class extends i{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return Wf(this)}bringToFront(){let e="";const t=qh().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"),mn().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=mn();let t;for(;(t=e.pop())&&!(t!==this&&(t.$.overlay.style.removeProperty("pointer-events"),!t.modeless)););}};/**
3421
3421
  * @license
3422
3422
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3423
3423
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3424
- */const Jr=r=>class extends W_(Xh(r)){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),ts&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&this.$.overlay.focus()})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(e){const t=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),t.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,t=window.innerWidth>e,i=document.documentElement.clientHeight;t&&i>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${i-e}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(e,t,i,o){const n=this._oldOwner!==t||this._oldModel!==i;this._oldModel=i,this._oldOwner=t;const s=this._oldRenderer!==e,a=this._oldRenderer!==void 0;this._oldRenderer=e;const l=this._oldOpened!==o;this._oldOpened=o,s&&a&&(this.innerHTML="",delete this._$litPart$),o&&e&&(s||l||n)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,t){e?(this._saveFocus(),this._animatedOpening(),es(this,()=>{this._trapFocus();const i=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(i)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):t&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const e=getComputedStyle(this),t=e.getPropertyValue("animation-name");return e.getPropertyValue("display")!=="none"&&t&&t!=="none"}_enqueueAnimation(e,t){const i=`__${e}Handler`,o=n=>{n&&n.target!==this||(t(),this.removeEventListener("animationend",o),delete this[i])};this[i]=o,this.addEventListener("animationend",o)}_flushAnimation(e){const t=`__${e}Handler`;typeof this[t]=="function"&&this[t]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(e))return;const t=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const t=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}}};/**
3424
+ */const Zi=i=>class extends $f(Yh(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),es&&(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(),Qn(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)}}};/**
3425
3425
  * @license
3426
3426
  * Copyright (c) 2024 Vaadin Ltd.
3427
3427
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3428
- */function U_(r,e){let t=null;const i=document.documentElement;function o(){t&&t.disconnect(),t=null}function n(s=!1,a=1){o();const{left:l,top:h,width:d,height:c}=r.getBoundingClientRect();if(s||e(),!d||!c)return;const u=Math.floor(h),m=Math.floor(i.clientWidth-(l+d)),g=Math.floor(i.clientHeight-(h+c)),_=Math.floor(l),y={rootMargin:`${-u}px ${-m}px ${-g}px ${-_}px`,threshold:Math.max(0,Math.min(1,a))||1};let D=!0;function A(M){let R=M[0].intersectionRatio;if(R!==a){if(!D)return n();R===0&&(R=1e-7),n(!1,R)}D=!1}t=new IntersectionObserver(A,y),t.observe(r)}return n(!0),o}/**
3428
+ */function jf(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 u=Math.floor(h),m=Math.floor(r.clientWidth-(l+d)),g=Math.floor(r.clientHeight-(h+c)),f=Math.floor(l),y={rootMargin:`${-u}px ${-m}px ${-g}px ${-f}px`,threshold:Math.max(0,Math.min(1,a))||1};let D=!0;function A(M){let R=M[0].intersectionRatio;if(R!==a){if(!D)return n();R===0&&(R=1e-7),n(!1,R)}D=!1}t=new IntersectionObserver(A,y),t.observe(i)}return n(!0),o}/**
3429
3429
  * @license
3430
3430
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3431
3431
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3432
- */const Do={start:"top",end:"bottom"},Oo={start:"left",end:"right"},Aa=new ResizeObserver(r=>{setTimeout(()=>{r.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),rs=r=>class extends r{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=$f(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=U_(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(e,t){if(this.__removeUpdatePositionEventListeners(),t&&(t.__overlay=null,Aa.unobserve(t),e&&(this.__addUpdatePositionEventListeners(),t.__overlay=this,Aa.observe(t))),e){const i=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(o=>{this.__margins[o]=parseInt(i[o],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){e.target instanceof Node&&this.contains(e.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const e=this.positionTarget.getBoundingClientRect();if(e.width===0&&e.height===0&&this.opened){this.opened=!1;return}const t=this.__shouldAlignStartVertically(e);this.style.justifyContent=t?"flex-start":"flex-end";const i=this.__isRTL,o=this.__shouldAlignStartHorizontally(e,i),n=!i&&o||i&&!o;this.style.alignItems=n?"flex-start":"flex-end";const s=this.getBoundingClientRect(),a=this.__calculatePositionInOneDimension(e,s,this.noVerticalOverlap,Do,this,t),l=this.__calculatePositionInOneDimension(e,s,this.noHorizontalOverlap,Oo,this,o);Object.assign(this.style,a,l),this.toggleAttribute("bottom-aligned",!t),this.toggleAttribute("top-aligned",t),this.toggleAttribute("end-aligned",!n),this.toggleAttribute("start-aligned",n)}__shouldAlignStartHorizontally(e,t){const i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const o=Math.min(window.innerWidth,document.documentElement.clientWidth),n=!t&&this.horizontalAlign==="start"||t&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,i,o,this.__margins,n,this.noHorizontalOverlap,Oo)}__shouldAlignStartVertically(e){const t=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const i=Math.min(window.innerHeight,document.documentElement.clientHeight),o=this.verticalAlign==="top";return this.__shouldAlignStart(e,t,i,this.__margins,o,this.noVerticalOverlap,Do)}__shouldAlignStart(e,t,i,o,n,s,a){const l=i-e[s?a.end:a.start]-o[a.end],h=e[s?a.start:a.end]-o[a.start],d=n?l:h,c=d>(n?h:l)||d>t;return n===c}__adjustBottomProperty(e,t,i){let o;if(e===t.end){if(t.end===Do.end){const n=Math.min(window.innerHeight,document.documentElement.clientHeight);if(i>n&&this.__oldViewportHeight){const s=this.__oldViewportHeight-n;o=i-s}this.__oldViewportHeight=n}if(t.end===Oo.end){const n=Math.min(window.innerWidth,document.documentElement.clientWidth);if(i>n&&this.__oldViewportWidth){const s=this.__oldViewportWidth-n;o=i-s}this.__oldViewportWidth=n}}return o}__calculatePositionInOneDimension(e,t,i,o,n,s){const a=s?o.start:o.end,l=s?o.end:o.start,h=parseFloat(n.style[a]||getComputedStyle(n)[a]),d=this.__adjustBottomProperty(a,o,h),c=t[s?o.start:o.end]-e[i===s?o.end:o.start],u=d?`${d}px`:`${h+c*(s?-1:1)}px`;return{[a]:u,[l]:""}}};/**
3432
+ */const ko={start:"top",end:"bottom"},To={start:"left",end:"right"},Sa=new ResizeObserver(i=>{setTimeout(()=>{i.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),ts=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=H_(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=jf(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,Sa.unobserve(t),e&&(this.__addUpdatePositionEventListeners(),t.__overlay=this,Sa.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,ko,this,t),l=this.__calculatePositionInOneDimension(e,s,this.noHorizontalOverlap,To,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,To)}__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,ko)}__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===ko.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===To.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],u=d?`${d}px`:`${h+c*(s?-1:1)}px`;return{[a]:u,[l]:""}}};/**
3433
3433
  * @license
3434
3434
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
3435
3435
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3436
- */const G_=r=>class extends rs(Jr(r)){_shouldCloseOnOutsideClick(e){return!e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!Un(e.composedPath()[0])&&e.preventDefault()}};/**
3436
+ */const Uf=i=>class extends ts(Zi(i)){_shouldCloseOnOutsideClick(e){return!e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!jn(e.composedPath()[0])&&e.preventDefault()}};/**
3437
3437
  * @license
3438
3438
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3439
3439
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3440
- */const q_=k`
3440
+ */const Gf=k`
3441
3441
  [part='overlay'] {
3442
3442
  display: flex;
3443
3443
  flex: auto;
@@ -3456,18 +3456,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3456
3456
  * @license
3457
3457
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3458
3458
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3459
- */L("vaadin-date-picker-overlay",[Zr,q_],{moduleId:"vaadin-date-picker-overlay-styles"});class Y_ extends G_($e(le(Z))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return K`
3459
+ */L("vaadin-date-picker-overlay",[Ki,Gf],{moduleId:"vaadin-date-picker-overlay-styles"});class qf extends Uf(Ve(he(Z))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return K`
3460
3460
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
3461
3461
  <div part="overlay" id="overlay">
3462
3462
  <div part="content" id="content">
3463
3463
  <slot></slot>
3464
3464
  </div>
3465
3465
  </div>
3466
- `}}G(Y_);/**
3466
+ `}}G(qf);/**
3467
3467
  * @license
3468
3468
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3469
3469
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3470
- */const Kh=k`
3470
+ */const Xh=k`
3471
3471
  :host {
3472
3472
  display: inline-block;
3473
3473
  position: relative;
@@ -3527,7 +3527,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3527
3527
  outline-color: GrayText;
3528
3528
  }
3529
3529
  }
3530
- `,X_=r=>r`
3530
+ `,Yf=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 is=r=>class extends Wn(Hh(Ht(r))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(e){super._onKeyDown(e),!(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)&&this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click())}};/**
3547
+ */const is=i=>class extends $n(Lh(Ht(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
- */L("vaadin-button",Kh,{moduleId:"vaadin-button-styles"});class K_ extends is(Ve(le(et(Z)))){static get is(){return"vaadin-button"}static get template(){return X_(K)}ready(){super.ready(),this._tooltipController=new ht(this),this.addController(this._tooltipController)}}G(K_);/**
3551
+ */L("vaadin-button",Xh,{moduleId:"vaadin-button-styles"});class Xf extends is($e(he(Qe(Z)))){static get is(){return"vaadin-button"}static get template(){return Yf(K)}ready(){super.ready(),this._tooltipController=new ht(this),this.addController(this._tooltipController)}}G(Xf);/**
3552
3552
  * @license
3553
3553
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3554
3554
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3555
- */function Z_(r){let e=r.getDay();e===0&&(e=7);const t=4-e,i=new Date(r.getTime()+t*24*3600*1e3),o=new Date(0,0);o.setFullYear(i.getFullYear());const n=i.getTime()-o.getTime(),s=Math.round(n/(24*3600*1e3));return Math.floor(s/7+1)}function yn(r){const e=new Date(r);return e.setHours(0,0,0,0),e}function lt(r,e,t=yn){return r instanceof Date&&e instanceof Date&&t(r).getTime()===t(e).getTime()}function os(r){return{day:r.getDate(),month:r.getMonth(),year:r.getFullYear()}}function nr(r,e,t,i){let o=!1;if(typeof i=="function"&&r){const n=os(r);o=i(n)}return(!e||r>=e)&&(!t||r<=t)&&!o}function Zh(r,e){return e.filter(t=>t!==void 0).reduce((t,i)=>{if(!i)return t;if(!t)return i;const o=Math.abs(r.getTime()-i.getTime()),n=Math.abs(t.getTime()-r.getTime());return o<n?i:t})}function Jh(r){const e=new Date,t=new Date(e);return t.setDate(1),t.setMonth(parseInt(r)+e.getMonth()),t}function J_(r,e,t=0,i=1){if(e>99)throw new Error("The provided year cannot have more than 2 digits.");if(e<0)throw new Error("The provided year cannot be negative.");let o=e+Math.floor(r.getFullYear()/100)*100;return r<new Date(o-50,t,i)?o-=100:r>new Date(o+50,t,i)&&(o+=100),o}function wr(r){const e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(r);if(!e)return;const t=new Date(0,0);return t.setFullYear(parseInt(e[1],10)),t.setMonth(parseInt(e[2],10)-1),t.setDate(parseInt(e[3],10)),t}function Q_(r){const e=(l,h="00")=>(h+l).substr((h+l).length-h.length);let t="",i="0000",o=r.year;o<0?(o=-o,t="-",i="000000"):r.year>=1e4&&(t="+",i="000000");const n=t+e(o,i),s=e(r.month+1),a=e(r.day);return[n,s,a].join("-")}function ev(r){return r instanceof Date?Q_({year:r.getFullYear(),month:r.getMonth(),day:r.getDate()}):""}/**
3555
+ */function Kf(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 _n(i){const e=new Date(i);return e.setHours(0,0,0,0),e}function at(i,e,t=_n){return i instanceof Date&&e instanceof Date&&t(i).getTime()===t(e).getTime()}function rs(i){return{day:i.getDate(),month:i.getMonth(),year:i.getFullYear()}}function si(i,e,t,r){let o=!1;if(typeof r=="function"&&i){const n=rs(i);o=r(n)}return(!e||i>=e)&&(!t||i<=t)&&!o}function Kh(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 Zh(i){const e=new Date,t=new Date(e);return t.setDate(1),t.setMonth(parseInt(i)+e.getMonth()),t}function Zf(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 Ci(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 Jf(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 Qf(i){return i instanceof Date?Jf({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 Hi{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,Wr.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Wr.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}static debounce(e,t,i){return e instanceof Hi?e._cancelAsync():e=new Hi,e.setConfig(t,i),e}}let Wr=new Set;const tv=function(r){Wr.add(r)},rv=function(){const r=!!Wr.size;return Wr.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),r};/**
3563
+ */class Br{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,Wi.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Wi.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 Br?e._cancelAsync():e=new Br,e.setConfig(t,r),e}}let Wi=new Set;const ev=function(i){Wi.add(i)},tv=function(){const i=!!Wi.size;return Wi.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 ns=function(){let r,e;do r=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),e=rv();while(r||e)};/**
3571
+ */const os=function(){let i,e;do i=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),e=tv();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 Qh=document.createElement("template");Qh.innerHTML=`
3575
+ */const Jh=document.createElement("template");Jh.innerHTML=`
3576
3576
  <style>
3577
3577
  :host {
3578
3578
  display: block;
@@ -3622,11 +3622,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3622
3622
  <div class="buffer"></div>
3623
3623
  <div id="fullHeight"></div>
3624
3624
  </div>
3625
- `;class ed extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Qh.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(e){e&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const e=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),t="background-position";this.$.fullHeight.style.setProperty(t,e);const i=getComputedStyle(this.$.fullHeight).getPropertyValue(t);this.$.fullHeight.style.removeProperty(t),this._itemHeightVal=parseFloat(i)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(e){this._preventScrollEvent=!0,e>this._firstIndex&&e<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(e-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~e,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=e%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout(()=>{this.$.scroller.classList.remove("notouchscroll")},10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach(e=>{this.$[e.id]=e}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`)}forceUpdate(){this._debouncerScrollFinish&&this._debouncerScrollFinish.flush(),this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel()),ns()}_createElement(){}_updateElement(e,t){}_finishInit(){this._initDone||(this._buffers.forEach(e=>{[...e.children].forEach(t=>{this._ensureStampedInstance(t._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(e){const t=e?1:0;this._buffers[t].translateY=this._buffers[t?0:1].translateY+this._bufferHeight*(t?-1:1),this._buffers[t].style.transform=`translate3d(0, ${this._buffers[t].translateY}px, 0)`,this._buffers[t].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const e=this.$.scroller.scrollTop;(e<this._bufferHeight||e>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const t=this.itemHeight+this.bufferOffset,i=e>this._buffers[1].translateY+t,o=e<this._buffers[0].translateY+t;(i||o)&&(this._translateBuffer(o),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=Fe.debounce(this._debouncerScrollFinish,yt.after(200),()=>{const n=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],n)&&!this._isVisible(this._buffers[1],n)&&(this.position=this.position)})}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach(e=>{e.style.transform=`translate3d(0, ${e.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=Fe.debounce(this._debouncerUpdateClones,yt.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const e=this.getBoundingClientRect();this._buffers.forEach(t=>{for(let i=0;i<this.bufferSize;i++){const o=document.createElement("div");o.style.height=`${this.itemHeight}px`,o.instance={};const n=`vaadin-infinite-scroller-item-content-${qr()}`,s=document.createElement("slot");s.setAttribute("name",n),s._itemWrapper=o,t.appendChild(s),o.setAttribute("slot",n),this.appendChild(o),this._isVisible(o,e)&&this._ensureStampedInstance(o)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(e){if(e.firstElementChild)return;const t=e.instance;e.instance=this._createElement(),e.appendChild(e.instance),Object.keys(t).forEach(i=>{e.instance[i]=t[i]})}_updateClones(e){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const t=e?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((i,o)=>{if(!i.updated){const n=this._firstIndex+this.bufferSize*o;[...i.children].forEach((s,a)=>{const l=s._itemWrapper;(!e||this._isVisible(l,t))&&this._updateElement(l.instance,n+a)}),i.updated=!0}})}_isVisible(e,t){const i=e.getBoundingClientRect();return i.bottom>t.top&&i.top<t.bottom}}/**
3625
+ `;class Qh extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Jh.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()),os()}_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=Fe.debounce(this._debouncerScrollFinish,yt.after(200),()=>{const n=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],n)&&!this._isVisible(this._buffers[1],n)&&(this.position=this.position)})}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach(e=>{e.style.transform=`translate3d(0, ${e.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=Fe.debounce(this._debouncerUpdateClones,yt.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const e=this.getBoundingClientRect();this._buffers.forEach(t=>{for(let 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-${Gi()}`,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}}/**
3626
3626
  * @license
3627
3627
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3628
3628
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3629
- */const td=document.createElement("template");td.innerHTML=`
3629
+ */const ed=document.createElement("template");ed.innerHTML=`
3630
3630
  <style>
3631
3631
  :host {
3632
3632
  --vaadin-infinite-scroller-item-height: 270px;
@@ -3638,11 +3638,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3638
3638
  height: 100%;
3639
3639
  }
3640
3640
  </style>
3641
- `;class iv extends ed{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(td.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(e,t){e.month=Jh(t)}}G(iv);/**
3641
+ `;class iv extends Qh{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(ed.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(e,t){e.month=Zh(t)}}G(iv);/**
3642
3642
  * @license
3643
3643
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3644
3644
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3645
- */const rd=document.createElement("template");rd.innerHTML=`
3645
+ */const td=document.createElement("template");td.innerHTML=`
3646
3646
  <style>
3647
3647
  :host {
3648
3648
  --vaadin-infinite-scroller-item-height: 80px;
@@ -3676,15 +3676,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3676
3676
  border-left-color: #000;
3677
3677
  }
3678
3678
  </style>
3679
- `;class ov extends ed{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(rd.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(e,t){e.year=this._yearAfterXYears(t)}_yearAfterXYears(e){const t=new Date,i=new Date(t);return i.setFullYear(parseInt(e)+t.getFullYear()),i.getFullYear()}}G(ov);/**
3679
+ `;class rv extends Qh{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(td.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()}}G(rv);/**
3680
3680
  * @license
3681
3681
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3682
3682
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3683
- */const nv=r=>class extends r{static get properties(){return{year:{type:String,sync:!0},selectedDate:{type:Object,sync:!0}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(e,t){this.toggleAttribute("selected",t&&t.getFullYear()===e),this.toggleAttribute("current",e===new Date().getFullYear())}};/**
3683
+ */const ov=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 sv extends le(nv(Z)){static get is(){return"vaadin-date-picker-year"}static get template(){return K`
3687
+ */class nv extends he(ov(Z)){static get is(){return"vaadin-date-picker-year"}static get template(){return K`
3688
3688
  <style>
3689
3689
  :host {
3690
3690
  display: block;
@@ -3693,7 +3693,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3693
3693
  </style>
3694
3694
  <div part="year-number">[[year]]</div>
3695
3695
  <div part="year-separator" aria-hidden="true"></div>
3696
- `}}G(sv);/**
3696
+ `}}G(nv);/**
3697
3697
  @license
3698
3698
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3699
3699
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3701,7 +3701,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3701
3701
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3702
3702
  Code distributed by Google as part of the polymer project is also
3703
3703
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3704
- */function ss(r,e,t,i,o){let n;o&&(n=typeof t=="object"&&t!==null,n&&(i=r.__dataTemp[e]));let s=i!==t&&(i===i||t===t);return n&&s&&(r.__dataTemp[e]=t),s}const as=ve(r=>{class e extends r{_shouldPropertyChange(i,o,n){return ss(this,i,o,n,!0)}}return e}),av=ve(r=>{class e extends r{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(i,o,n){return ss(this,i,o,n,this.mutableData)}}return e});as._mutablePropertyChange=ss;/**
3704
+ */function ns(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 ss=ve(i=>{class e extends i{_shouldPropertyChange(r,o,n){return ns(this,r,o,n,!0)}}return e}),sv=ve(i=>{class e extends i{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(r,o,n){return ns(this,r,o,n,this.mutableData)}}return e});ss._mutablePropertyChange=ns;/**
3705
3705
  @license
3706
3706
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3707
3707
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3709,7 +3709,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3709
3709
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3710
3710
  Code distributed by Google as part of the polymer project is also
3711
3711
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3712
- */let xn=null;function wn(){return xn}wn.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:wn,writable:!0}});const id=Ln(wn),lv=as(id);function hv(r,e){xn=r,Object.setPrototypeOf(r,e.prototype),new e,xn=null}const dv=Ln(class{});function cv(r,e){for(let t=0;t<e.length;t++){let i=e[t];if(!!r!=!!i.__hideTemplateChildren__)if(i.nodeType===Node.TEXT_NODE)r?(i.__polymerTextContent__=i.textContent,i.textContent=""):i.textContent=i.__polymerTextContent__;else if(i.localName==="slot")if(r)i.__polymerReplaced__=document.createComment("hidden-slot"),Pe(Pe(i).parentNode).replaceChild(i.__polymerReplaced__,i);else{const o=i.__polymerReplaced__;o&&Pe(Pe(o).parentNode).replaceChild(i,o)}else i.style&&(r?(i.__polymerDisplay__=i.style.display,i.style.display="none"):i.style.display=i.__polymerDisplay__);i.__hideTemplateChildren__=r,i._showHideChildren&&i._showHideChildren(r)}}class Ct extends dv{constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);let t=[];this.children=t;for(let o=this.root.firstChild;o;o=o.nextSibling)t.push(o),o.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let i=this.__templatizeOptions;(e&&i.instanceProps||!i.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(let t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(let t in e)this._setPendingProperty(t,e[t])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,i){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,t,o=>{o.model=this,i(o)});else{let o=this.__dataHost.__dataHost;o&&o._addEventListenerToNode(e,t,i)}}_showHideChildren(e){cv(e,this.children)}_setUnmanagedPropertyToNode(e,t,i){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&t=="textContent"?e.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(e,t,i)}get parentModel(){let e=this.__parentModel;if(!e){let t;e=this;do e=e.__dataHost.__dataHost;while((t=e.__templatizeOptions)&&!t.parentModel);this.__parentModel=e}return e}dispatchEvent(e){return!0}}Ct.prototype.__dataHost;Ct.prototype.__templatizeOptions;Ct.prototype._methodHost;Ct.prototype.__templatizeOwner;Ct.prototype.__hostProps;const uv=as(Ct);function Pa(r){let e=r.__dataHost;return e&&e._methodHost||e}function pv(r,e,t){let i=t.mutableData?uv:Ct;Cn.mixin&&(i=Cn.mixin(i));let o=class extends i{};return o.prototype.__templatizeOptions=t,o.prototype._bindTemplate(r),_v(o,r,e,t),o}function mv(r,e,t,i){let o=t.forwardHostProp;if(o&&e.hasHostProps){const n=r.localName=="template";let s=e.templatizeTemplateClass;if(!s){if(n){let l=t.mutableData?lv:id;class h extends l{}s=e.templatizeTemplateClass=h}else{const l=r.constructor;class h extends l{}s=e.templatizeTemplateClass=h}let a=e.hostProps;for(let l in a)s.prototype._addPropertyEffect("_host_"+l,s.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:fv(l,o)}),s.prototype._createNotifyingProperty("_host_"+l);rh&&i&&bv(e,t,i)}if(r.__dataProto&&Object.assign(r.__data,r.__dataProto),n)hv(r,s),r.__dataTemp={},r.__dataPending=null,r.__dataOld=null,r._enableProperties();else{Object.setPrototypeOf(r,s.prototype);const a=e.hostProps;for(let l in a)if(l="_host_"+l,l in r){const h=r[l];delete r[l],r.__data[l]=h}}}}function fv(r,e){return function(t,i,o){e.call(t.__templatizeOwner,i.substring(6),o[i])}}function _v(r,e,t,i){let o=t.hostProps||{};for(let n in i.instanceProps){delete o[n];let s=i.notifyInstanceProp;s&&r.prototype._addPropertyEffect(n,r.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:vv(n,s)})}if(i.forwardHostProp&&e.__dataHost)for(let n in o)t.hasHostProps||(t.hasHostProps=!0),r.prototype._addPropertyEffect(n,r.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:gv()})}function vv(r,e){return function(t,i,o){e.call(t.__templatizeOwner,t,i,o[i])}}function gv(){return function(r,e,t){r.__dataHost._setPendingPropertyOrPath("_host_"+e,t[e],!0,!0)}}function Cn(r,e,t){if(Ni&&!Pa(r))throw new Error("strictTemplatePolicy: template owner not trusted");if(t=t||{},r.__templatizeOwner)throw new Error("A <template> can only be templatized once");r.__templatizeOwner=e;let i=(e?e.constructor:Ct)._parseTemplate(r),o=i.templatizeInstanceClass;o||(o=pv(r,i,t),i.templatizeInstanceClass=o);const n=Pa(r);mv(r,i,t,n);let s=class extends o{};return s.prototype._methodHost=n,s.prototype.__dataHost=r,s.prototype.__templatizeOwner=e,s.prototype.__hostProps=i.hostProps,s=s,s}function bv(r,e,t){const i=t.constructor._properties,{propertyEffects:o}=r,{instanceProps:n}=e;for(let s in o)if(!i[s]&&!(n&&n[s])){const a=o[s];for(let l=0;l<a.length;l++){const{part:h}=a[l].info;if(!(h.signature&&h.signature.static)){console.warn(`Property '${s}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function yv(r,e){let t;for(;e;)if(t=e.__dataHost?e:e.__templatizeInstance)if(t.__dataHost!=r)e=t.__dataHost;else return t;else e=Pe(e).parentNode;return null}/**
3712
+ */let fn=null;function vn(){return fn}vn.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:vn,writable:!0}});const id=Nn(vn),av=ss(id);function lv(i,e){fn=i,Object.setPrototypeOf(i,e.prototype),new e,fn=null}const hv=Nn(class{});function dv(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"),Pe(Pe(r).parentNode).replaceChild(r.__polymerReplaced__,r);else{const o=r.__polymerReplaced__;o&&Pe(Pe(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 Ct extends hv{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){dv(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}}Ct.prototype.__dataHost;Ct.prototype.__templatizeOptions;Ct.prototype._methodHost;Ct.prototype.__templatizeOwner;Ct.prototype.__hostProps;const cv=ss(Ct);function Aa(i){let e=i.__dataHost;return e&&e._methodHost||e}function uv(i,e,t){let r=t.mutableData?cv:Ct;gn.mixin&&(r=gn.mixin(r));let o=class extends r{};return o.prototype.__templatizeOptions=t,o.prototype._bindTemplate(i),_v(o,i,e,t),o}function pv(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?av:id;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:mv(l,o)}),s.prototype._createNotifyingProperty("_host_"+l);ih&&r&&gv(e,t,r)}if(i.__dataProto&&Object.assign(i.__data,i.__dataProto),n)lv(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 mv(i,e){return function(t,r,o){e.call(t.__templatizeOwner,r.substring(6),o[r])}}function _v(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:fv(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:vv()})}function fv(i,e){return function(t,r,o){e.call(t.__templatizeOwner,t,r,o[r])}}function vv(){return function(i,e,t){i.__dataHost._setPendingPropertyOrPath("_host_"+e,t[e],!0,!0)}}function gn(i,e,t){if(Or&&!Aa(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:Ct)._parseTemplate(i),o=r.templatizeInstanceClass;o||(o=uv(i,r,t),r.templatizeInstanceClass=o);const n=Aa(i);pv(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 gv(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 bv(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=Pe(e).parentNode;return null}/**
3713
3713
  @license
3714
3714
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3715
3715
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3717,7 +3717,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3717
3717
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3718
3718
  Code distributed by Google as part of the polymer project is also
3719
3719
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3720
- */let ka=!1;function xv(){if(th&&!eh){if(!ka){ka=!0;const r=document.createElement("style");r.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(r)}return!0}return!1}/**
3720
+ */let Pa=!1;function yv(){if(th&&!eh){if(!Pa){Pa=!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 wv=av(Z);class Ta extends wv{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!ta,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let e=0;e<this.__instances.length;e++)this.__detachInstance(e);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),xv()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let e=Pe(Pe(this).parentNode);for(let t=0;t<this.__instances.length;t++)this.__attachInstance(t,e);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const e=this;let t=this.template=e._templateInfo?e:this.querySelector("template");if(!t){let o=new MutationObserver(()=>{if(this.querySelector("template"))o.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return o.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=Cn(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(o,n){let s=this.__instances;for(let a=0,l;a<s.length&&(l=s[a]);a++)l.forwardHostProp(o,n)},notifyInstanceProp:function(o,n,s){if(wm(this.as,n)){let a=o[this.itemsIndexAs];n==this.as&&(this.items[a]=s);let l=Hr(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,n);this.notifyPath(l,s)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(e){if(typeof e=="string"){let t=e,i=this.__getMethodHost();return function(){return i[t].apply(i,arguments)}}return e}__sortChanged(e){this.__sortFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__filterChanged(e){this.__filterFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(e){return Math.ceil(1e3/e)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(e){if(this.__sortFn||this.__filterFn){if(!e)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let t=this.__observePaths;for(let i=0;i<t.length;i++)e.indexOf(t[i])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(e){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(e.path,e.value)||(e.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,t=0){this.__renderDebouncer=Hi.debounce(this.__renderDebouncer,t>0?km.after(t):uh,e.bind(this)),tv(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),ns()}__render(){if(!this.__ensureTemplatized())return;let e=this.items||[];const t=this.__sortAndFilterItems(e),i=this.__calculateLimit(t.length);this.__updateInstances(e,i,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!ta||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(e){let t=new Array(e.length);for(let i=0;i<e.length;i++)t[i]=i;return this.__filterFn&&(t=t.filter((i,o,n)=>this.__filterFn(e[i],o,n))),this.__sortFn&&t.sort((i,o)=>this.__sortFn(e[i],e[o])),t}__calculateLimit(e){let t=e;const i=this.__instances.length;if(this.initialCount){let o;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(e,this.initialCount),o=Math.max(t-i,0),this.__chunkCount=o||1):(o=Math.min(Math.max(e-i,0),this.__chunkCount),t=Math.min(i+o,e)),this.__shouldMeasureChunk=o===this.__chunkCount,this.__shouldContinueChunking=t<e,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,t}__continueChunking(){if(this.__shouldMeasureChunk){const e=performance.now()-this.__renderStartTime,t=this._targetFrameTime/e;this.__chunkCount=Math.round(this.__chunkCount*t)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,t,i){const o=this.__itemsIdxToInstIdx={};let n;for(n=0;n<t;n++){let s=this.__instances[n],a=i[n],l=e[a];o[a]=n,s?(s._setPendingProperty(this.as,l),s._setPendingProperty(this.indexAs,n),s._setPendingProperty(this.itemsIndexAs,a),s._flushProperties()):this.__insertInstance(l,n,a)}for(let s=this.__instances.length-1;s>=n;s--)this.__detachAndRemoveInstance(s)}__detachInstance(e){let t=this.__instances[e];const i=Pe(t.root);for(let o=0;o<t.children.length;o++){let n=t.children[o];i.appendChild(n)}return t}__attachInstance(e,t){let i=this.__instances[e];t.insertBefore(i.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,i){let o={};return o[this.as]=e,o[this.indexAs]=t,o[this.itemsIndexAs]=i,new this.__ctor(o)}__insertInstance(e,t,i){const o=this.__stampInstance(e,t,i);let n=this.__instances[t+1],s=n?n.children[0]:this;return Pe(Pe(this).parentNode).insertBefore(o.root,s),this.__instances[t]=o,o}_showHideChildren(e){for(let t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(e)}__handleItemPath(e,t){let i=e.slice(6),o=i.indexOf("."),n=o<0?i:i.substring(0,o);if(n==parseInt(n,10)){let s=o<0?"":i.substring(o+1);this.__handleObservedPaths(s);let a=this.__itemsIdxToInstIdx[n],l=this.__instances[a];if(l){let h=this.as+(s?"."+s:"");l._setPendingPropertyOrPath(h,t,!1,!0),l._flushProperties()}return!0}}itemForElement(e){let t=this.modelForElement(e);return t&&t[this.as]}indexForElement(e){let t=this.modelForElement(e);return t&&t[this.indexAs]}modelForElement(e){return yv(this.template,e)}}customElements.define(Ta.is,Ta);/**
3728
+ */const xv=sv(Z);class ka extends xv{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:!ea,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(),yv()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let e=Pe(Pe(this).parentNode);for(let t=0;t<this.__instances.length;t++)this.__attachInstance(t,e);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const e=this;let t=this.template=e._templateInfo?e:this.querySelector("template");if(!t){let o=new MutationObserver(()=>{if(this.querySelector("template"))o.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return o.observe(this,{childList:!0}),!1}let r={};r[this.as]=!0,r[this.indexAs]=!0,r[this.itemsIndexAs]=!0,this.__ctor=gn(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(ym(this.as,n)){let a=o[this.itemsIndexAs];n==this.as&&(this.items[a]=s);let l=Hi(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=Br.debounce(this.__renderDebouncer,t>0?Am.after(t):uh,e.bind(this)),ev(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),os()}__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),(!ea||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=Pe(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 Pe(Pe(this).parentNode).insertBefore(o.root,s),this.__instances[t]=o,o}_showHideChildren(e){for(let t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(e)}__handleItemPath(e,t){let 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 bv(this.template,e)}}customElements.define(ka.is,ka);/**
3729
3729
  * @license
3730
3730
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3731
3731
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3732
- */const Cv=r=>class extends Ht(r){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},isDateDisabled:{type:Function,value:()=>!1},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find(e=>lt(e.date,this.focusedDate))}ready(){super.ready(),Je(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,t,i){const o=new Date(0,0);o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(1);const n=new Date(0,0);return n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()+1),n.setDate(0),t&&i&&t.getMonth()===i.getMonth()&&t.getMonth()===e.getMonth()&&i.getDate()-t.getDate()>=0?!1:!nr(o,t,i)&&!nr(n,t,i)}_getTitle(e,t){if(!(e===void 0||t===void 0))return t.formatTitle(t.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,t){e.setDate(e.getDate()+t)}_applyFirstDayOfWeek(e,t){if(!(e===void 0||t===void 0))return e.slice(t).concat(e.slice(0,t))}_getWeekDayNames(e,t){if(e===void 0||t===void 0)return[];const{weekdays:i,weekdaysShort:o,firstDayOfWeek:n}=e,s=this._applyFirstDayOfWeek(o,n);return this._applyFirstDayOfWeek(i,n).map((a,l)=>({weekDay:a,weekDayShort:s[l]})).slice(0,7)}__focusedDateChanged(e,t){Array.isArray(t)&&t.some(i=>lt(i,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,t){return e&&t&&t.firstDayOfWeek===1}_isToday(e){return lt(new Date,e)}_getDays(e,t){if(e===void 0||t===void 0)return[];const i=new Date(0,0);for(i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);i.getDay()!==t.firstDayOfWeek;)this._dateAdd(i,-1);const o=[],n=i.getMonth(),s=e.getMonth();for(;i.getMonth()===s||i.getMonth()===n;)o.push(i.getMonth()===s?new Date(i.getTime()):null),this._dateAdd(i,1);return o}_getWeeks(e){return e.reduce((t,i,o)=>(o%7===0&&t.push([]),t[t.length-1].push(i),t),[])}_handleTap(e){!this.ignoreTaps&&!this._notTapping&&e.target.date&&!e.target.hasAttribute("disabled")&&(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})))}_preventDefault(e){e.preventDefault()}__getWeekNumber(e){const t=e.reduce((i,o)=>!i&&o?o:i);return Z_(t)}__getDayAriaLabel(e){if(!e)return"";let t=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(t+=`, ${this.i18n.today}`),t}};/**
3732
+ */const wv=i=>class extends Ht(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=>at(e.date,this.focusedDate))}ready(){super.ready(),Je(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:!si(o,t,r)&&!si(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=>at(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 at(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 Kf(t)}__getDayAriaLabel(e){if(!e)return"";let t=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(t+=`, ${this.i18n.today}`),t}};/**
3733
3733
  * @license
3734
3734
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3735
3735
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3736
- */const Ev=k`
3736
+ */const Cv=k`
3737
3737
  :host {
3738
3738
  display: block;
3739
3739
  }
@@ -3793,7 +3793,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3793
3793
  * @license
3794
3794
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3795
3795
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3796
- */L("vaadin-month-calendar",Ev,{moduleId:"vaadin-month-calendar-styles"});class Sv extends Cv(le(Z)){static get template(){return K`
3796
+ */L("vaadin-month-calendar",Cv,{moduleId:"vaadin-month-calendar-styles"});class Ev extends wv(he(Z)){static get template(){return K`
3797
3797
  <div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
3798
3798
  <table
3799
3799
  id="monthGrid"
@@ -3835,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,i,o,n,s){const a=["date"],l=e>yn(new Date),h=e<yn(new Date);return this.__isDayDisabled(e,o,n,s)&&a.push("disabled"),this.__isDayFocused(e,t)&&a.push("focused"),this.__isDaySelected(e,i)&&a.push("selected"),this._isToday(e)&&a.push("today"),h&&a.push("past"),l&&a.push("future"),a.join(" ")}__isDayFocused(e,t){return lt(e,t)}__isDaySelected(e,t){return lt(e,t)}__getDayAriaSelected(e,t){if(this.__isDaySelected(e,t))return"true"}__isDayDisabled(e,t,i,o){return!nr(e,t,i,o)}__getDayAriaDisabled(e,t,i,o){if(!(e===void 0||t===void 0&&i===void 0&&o===void 0)&&this.__isDayDisabled(e,t,i,o))return"true"}__getDayTabindex(e,t){return this.__isDayFocused(e,t)?"0":"-1"}}G(Sv);/**
3838
+ `}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate, isDateDisabled)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(e,t){e&&t&&t.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(e,t,r,o,n,s){const a=["date"],l=e>_n(new Date),h=e<_n(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 at(e,t)}__isDaySelected(e,t){return at(e,t)}__getDayAriaSelected(e,t){if(this.__isDaySelected(e,t))return"true"}__isDayDisabled(e,t,r,o){return!si(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"}}G(Ev);/**
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 ls{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 as{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 Av=r=>class extends r{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){zh(this.$.scrollers,"pan-y"),Je(this.$.scrollers,"track",this._track.bind(this)),Je(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Je(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Je(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new ls(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new Ne(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onTodayButtonKeyDown(t)),Je(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new Ne(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onCancelButtonKeyDown(t)),Je(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,t){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+i,t),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new Ne(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",t=>{this.__onMonthCalendarKeyDown(t)}),e.addEventListener("init-done",()=>{const t=[...this.querySelectorAll("vaadin-month-calendar")];t.forEach(i=>{i.addEventListener("selected-date-changed",o=>{this.selectedDate=o.detail.value})}),this.calendars=t}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new Ne(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),Je(e,"tap",t=>{this._onYearTap(t)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,t){e&&(e.textContent=t&&t.cancel)}__updateTodayButton(e,t,i,o,n){e&&(e.textContent=t&&t.today,e.disabled=!this._isTodayAllowed(i,o,n))}__updateCalendars(e,t,i,o,n,s,a,l,h,d){e&&e.length&&e.forEach(c=>{c.i18n=t,c.minDate=i,c.maxDate=o,c.isDateDisabled=d,c.focusedDate=s,c.selectedDate=n,c.showWeekNumbers=a,c.ignoreTaps=l,h?c.setAttribute("theme",h):c.removeAttribute("theme")})}__updateYears(e,t,i){e&&e.length&&e.forEach(o=>{o.selectedDate=t,i?o.setAttribute("theme",i):o.removeAttribute("theme")})}_selectDate(e){return this._dateAllowed(e)?(this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,t=!0){if(!e)return;const i=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const a=this._calculateWeekScrollOffset(e);this._scrollToPosition(i+a,t);return}const o=this._monthScroller.position>i,n=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,s=this._monthScroller.position+n-1<i;o?this._scrollToPosition(i,t):s&&this._scrollToPosition(i-n+1,t)}_calculateWeekScrollOffset(e){const t=new Date(0,0);t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(1);let i=0;for(;t.getDate()<e.getDate();)t.setDate(t.getDate()+1),t.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=Fe.debounce(this._debouncer,yt.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,t,i){return e&&t&&typeof t.formatDate=="function"?t.formatDate(os(e)):i}_onTodayTap(){const e=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const t=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+t*12,!0)}}_scrollToPosition(e,t){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!t){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let i;this._revealPromise=new Promise(l=>{i=l});const o=(l,h,d,c)=>(l/=c/2,l<1?d/2*l*l+h:(l-=1,-d/2*(l*(l-2)-1)+h));let n=0;const s=this._monthScroller.position,a=l=>{n||(n=l);const h=l-n;if(h<this.scrollDuration){const d=o(h,s,this._targetPosition-s,this.scrollDuration);this._monthScroller.position=d,window.requestAnimationFrame(a)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:s}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,i(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(a)}_limit(e,t){return Math.min(t.max,Math.max(t.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const t=this._translateX+e.detail.ddx;this._translateX=this._limit(t,{min:0,max:this._yearScrollerWidth})}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return Jh(e).getFullYear()}_differenceInMonths(e,t){return(e.getFullYear()-t.getFullYear())*12-t.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){lt(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let t=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),t=!0;break;case"ArrowUp":this._moveFocusByDays(-7),t=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),t=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),t=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),t=!0);break;case" ":this.__toggleDate(this.focusedDate),t=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),t=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),t=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),t=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),t=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}t&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,t){switch(e.stopPropagation(),t){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const e=this.focusableDateElement;e&&lt(e.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,e.focus())}}focusDate(e,t){return Ti(this,null,function*(){const i=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,t||(this._focusedMonthDate=i.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return Ti(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(t=>{es(this,()=>{ns(),t()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(Zh(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,t,i){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,i):this._dateAllowed(this.focusedDate)?t>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,t){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+e),t&&i.setDate(this.focusedDate.getDate()+t),i}_moveFocusByDays(e){const t=this._getDateDiff(0,e);this._focusAllowedDate(t,e,!1)}_moveFocusByMonths(e){const t=this._getDateDiff(e),i=t.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),t.setDate(this._focusedMonthDate),t.getMonth()!==i&&t.setDate(0),this._focusAllowedDate(t,e,!0)}_moveFocusInsideMonth(e,t){const i=new Date(0,0);i.setFullYear(e.getFullYear()),t==="minDate"?(i.setMonth(e.getMonth()),i.setDate(1)):(i.setMonth(e.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(e)?this.focusDate(this[t]):this._focusClosestDate(e)}_dateAllowed(e,t=this.minDate,i=this.maxDate,o=this.isDateDisabled){return nr(e,t,i,o)}_isTodayAllowed(e,t,i){return this._dateAllowed(this._getTodayMidnight(),e,t,i)}_getTodayMidnight(){const e=new Date,t=new Date(0,0);return t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(e.getDate()),t}};/**
3846
+ */const Sv=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(){Nh(this.$.scrollers,"pan-y"),Je(this.$.scrollers,"track",this._track.bind(this)),Je(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Je(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Je(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new as(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new Ne(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onTodayButtonKeyDown(t)),Je(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new Ne(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onCancelButtonKeyDown(t)),Je(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,t){const r=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+r,t),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new Ne(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",t=>{this.__onMonthCalendarKeyDown(t)}),e.addEventListener("init-done",()=>{const t=[...this.querySelectorAll("vaadin-month-calendar")];t.forEach(r=>{r.addEventListener("selected-date-changed",o=>{this.selectedDate=o.detail.value})}),this.calendars=t}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new Ne(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),Je(e,"tap",t=>{this._onYearTap(t)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,t){e&&(e.textContent=t&&t.cancel)}__updateTodayButton(e,t,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=Fe.debounce(this._debouncer,yt.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,t,r){return e&&t&&typeof t.formatDate=="function"?t.formatDate(rs(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 Zh(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){at(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&&at(e.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,e.focus())}}focusDate(e,t){return Pr(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 Pr(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(t=>{Qn(this,()=>{os(),t()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(Kh(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 si(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 Pv=k`
3850
+ */const Av=k`
3851
3851
  :host {
3852
3852
  display: flex;
3853
3853
  flex-direction: column;
@@ -3911,7 +3911,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3911
3911
  * @license
3912
3912
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3913
3913
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3914
- */L("vaadin-date-picker-overlay-content",Pv,{moduleId:"vaadin-date-picker-overlay-content-styles"});class kv extends Av(et(le($e(Z)))){static get template(){return K`
3914
+ */L("vaadin-date-picker-overlay-content",Av,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Pv extends Sv(Qe(he(Ve(Z)))){static get template(){return K`
3915
3915
  <div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
3916
3916
  <div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
3917
3917
  <div part="clear-button" hidden$="[[!selectedDate]]"></div>
@@ -3931,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()}}G(kv);/**
3934
+ `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}G(Pv);/**
3935
3935
  * @license
3936
3936
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3937
3937
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3938
- */const Mo=new WeakMap;function Tv(r){return Mo.has(r)||Mo.set(r,new Set),Mo.get(r)}function Iv(r,e){const t=document.createElement("style");t.textContent=r,e===document?document.head.appendChild(t):e.insertBefore(t,e.firstChild)}const od=ve(r=>class extends r{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),t=Tv(e);this.slotStyles.forEach(i=>{t.has(i)||(Iv(i,e),t.add(i))})}});/**
3938
+ */const Io=new WeakMap;function kv(i){return Io.has(i)||Io.set(i,new Set),Io.get(i)}function Tv(i,e){const t=document.createElement("style");t.textContent=i,e===document?document.head.appendChild(t):e.insertBefore(t,e.firstChild)}const rd=ve(i=>class extends i{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),t=kv(e);this.slotStyles.forEach(r=>{t.has(r)||(Tv(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 Dv=r=>class extends Yr(Lt(r)){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)))}_onClearButtonClick(e){e.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(e){e.preventDefault(),gn||this.inputElement.focus()}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
3942
+ */const Iv=i=>class extends qi(Lt(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(),pn||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 hs=ve(r=>class extends qn(Kn(Yr(r))){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 i=this._hasValidConstraints(t),o=this.__previousHasConstraints&&!i;(this._hasValue||this.invalid)&&i?this.validate():o&&this._setInvalid(!1),this.__previousHasConstraints=i}_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 ls=ve(i=>class extends Gn(Xn(qi(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 io=r=>class extends od(Qi(hs(eo(Dv(Lt(r)))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this)}get slotStyles(){return[`
3950
+ */const eo=i=>class extends rd(Kr(ls(Zr(Iv(Lt(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 Ov=k`
3959
+ */const Dv=k`
3960
3960
  [part='clear-button'] {
3961
3961
  display: none;
3962
3962
  cursor: default;
@@ -3973,7 +3973,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3973
3973
  * @license
3974
3974
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3975
3975
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3976
- */const nd=k`
3976
+ */const od=k`
3977
3977
  :host {
3978
3978
  display: inline-flex;
3979
3979
  outline: none;
@@ -4011,7 +4011,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4011
4011
  * @license
4012
4012
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
4013
4013
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4014
- */const sd=k`
4014
+ */const nd=k`
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 oo=[nd,sd,Ov];/**
4026
+ */const to=[od,nd,Dv];/**
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 Qr=r=>class extends r{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:i}=t;if(this.__initialClasses||(this.__initialClasses=new Set(i)),Array.isArray(this.__previousClasses)){const n=this.__previousClasses.filter(s=>!this.__initialClasses.has(s));n.length>0&&i.remove(...n)}const o=typeof e=="string"?e.split(" ").filter(Boolean):[];o.length>0&&i.add(...o),this.__previousClasses=o}};/**
4030
+ */const Ji=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}};/**
4031
4031
  * @license
4032
4032
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4033
4033
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4034
- */class ad{constructor(e){this.host=e,e.addEventListener("opened-changed",()=>{e.opened||this.__setVirtualKeyboardEnabled(!1)}),e.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),e.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(e){this.host.inputElement&&(this.host.inputElement.inputMode=e?"":"none")}}/**
4034
+ */class sd{constructor(e){this.host=e,e.addEventListener("opened-changed",()=>{e.opened||this.__setVirtualKeyboardEnabled(!1)}),e.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),e.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(e){this.host.inputElement&&(this.host.inputElement.inputMode=e?"":"none")}}/**
4035
4035
  * @license
4036
4036
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
4037
4037
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4038
- */const Mv=r=>class extends Qr(et(Qi(hs(Lt(r))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){const t=String(e.year).replace(/\d+/u,i=>"0000".substr(i.length)+i);return[e.month+1,e.day,t].join("/")},parseDate(e){const t=e.split("/"),i=new Date;let o,n=i.getMonth(),s=i.getFullYear();if(t.length===3){if(n=parseInt(t[0])-1,o=parseInt(t[1]),s=parseInt(t[2]),t[2].length<3&&s>=0){const a=this.referenceDate?wr(this.referenceDate):new Date;s=J_(a,s,n,o)}}else t.length===2?(n=parseInt(t[0])-1,o=parseInt(t[1])):t.length===1&&(o=parseInt(t[0]));if(o!==void 0)return{day:o,month:n,year:s}},formatTitle:(e,t)=>`${e} ${t}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:ts},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return!this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(e){super._onFocus(e),this._noInput&&!Ji()&&e.target.blur()}_onBlur(e){super._onBlur(e),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new ls(this._fullscreenMediaQuery,t=>{this._fullscreen=t})),this.addController(new ad(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(e){if(e.firstChild)return;const t=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(t),this._overlayContent=t,t.addEventListener("close",()=>{this._close()}),t.addEventListener("focus-input",this._focusAndSelect.bind(this)),t.addEventListener("date-tap",i=>{this.__commitDate(i.detail.date),this._close()}),t.addEventListener("date-selected",i=>{this.__commitDate(i.detail.date)}),t.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),t.addEventListener("focusout",i=>{this._shouldRemoveFocus(i)&&this._setFocused(!1)}),t.addEventListener("focused-date-changed",i=>{this._focusedDate=i.detail.value}),t.addEventListener("click",i=>i.stopPropagation())}__parseDate(e){if(!this.i18n.parseDate)return;let t=this.i18n.parseDate(e);if(t&&(t=wr(`${t.year}-${t.month+1}-${t.day}`)),t&&!isNaN(t.getTime()))return t}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(os(e))}checkValidity(){const e=this._inputElementValue,t=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),i=!this._selectedDate||nr(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let o=!0;return this.inputElement&&(this.inputElement.checkValidity?o=this.inputElement.checkValidity():this.inputElement.validate&&(o=this.inputElement.validate())),t&&i&&o}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:t}=e;return this.opened&&t!==null&&t!==document.body&&!this.contains(t)&&!this._overlayContent.contains(t)?!0:!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__commitValueChange(){const e=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==e&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=e}__commitDate(e){this.__keepCommittedValue=!0,this._selectedDate=e,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,t,i,o,n,s){return!e||t&&(!s||n)||i&&n||!o.parseDate}_formatISO(e){return ev(e)}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,t){e===void 0||t===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,t){e===void 0||t===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,t){const i=wr(e);if(e&&!i){this.value=t;return}e?lt(this._selectedDate,i)||(this._selectedDate=i,t!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,t,i,o,n,s,a,l,h){e&&(e.i18n=t,e.label=i,e.minDate=o,e.maxDate=n,e.focusedDate=s,e.selectedDate=a,e.showWeekNumbers=l,e.isDateDisabled=h)}__updateOverlayContentTheme(e,t){e&&(t?e.setAttribute("theme",t):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,t){e&&e.toggleAttribute("fullscreen",t)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const e=this._overlayContent;e.reset();const t=this._getInitialPosition();e.initialPosition=t;const i=e.focusedDate||t;e.scrollToDate(i),this._ignoreFocusedDateChange=!0,e.focusedDate=i,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const o=this._nativeInput;this._noInput&&o&&(o.blur(),this._overlayContent.focusDateElement());const n=this._noInput?e:[o,e];this.__showOthers=qh(n)}_getInitialPosition(){const e=wr(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||nr(t,this._minDate,this._maxDate,this.isDateDisabled)?t:this._minDate||this._maxDate?Zh(t,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",t=this.__parseDate(e);t?this.__commitDate(t):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1)}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this._closedByEscape&&this._applyInputValue(this._selectedDate),this.__commitParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,t){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,t)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this.__commitDate(null)}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){this.opened?this.close():this.__commitParsedOrFocusedDate()}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){e.stopPropagation(),this._onClearButtonClick(e);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate)}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,lt(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return wr(e)}};/**
4038
+ */const Ov=i=>class extends Ji(Qe(Kr(ls(Lt(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?Ci(this.referenceDate):new Date;s=Zf(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:es},_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&&!Xr()&&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 as(this._fullscreenMediaQuery,t=>{this._fullscreen=t})),this.addController(new sd(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=Ci(`${t.year}-${t.month+1}-${t.day}`)),t&&!isNaN(t.getTime()))return t}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(rs(e))}checkValidity(){const e=this._inputElementValue,t=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),r=!this._selectedDate||si(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 Qf(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=Ci(e);if(e&&!r){this.value=t;return}e?at(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=Gh(n)}_getInitialPosition(){const e=Ci(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||si(t,this._minDate,this._maxDate,this.isDateDisabled)?t:this._minDate||this._maxDate?Kh(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,at(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return Ci(e)}};/**
4039
4039
  * @license
4040
4040
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
4041
4041
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4042
- */const Nv=k`
4042
+ */const Mv=k`
4043
4043
  :host([opened]) {
4044
4044
  pointer-events: auto;
4045
4045
  }
@@ -4056,7 +4056,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4056
4056
  * @license
4057
4057
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
4058
4058
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4059
- */L("vaadin-date-picker",[oo,Nv],{moduleId:"vaadin-date-picker-styles"});class zv extends Mv(io(le(Ve(Z)))){static get is(){return"vaadin-date-picker"}static get template(){return K`
4059
+ */L("vaadin-date-picker",[to,Mv],{moduleId:"vaadin-date-picker-styles"});class Nv extends Ov(eo(he($e(Z)))){static get is(){return"vaadin-date-picker"}static get template(){return K`
4060
4060
  <div class="vaadin-date-picker-container">
4061
4061
  <div part="label">
4062
4062
  <slot name="label"></slot>
@@ -4098,7 +4098,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4098
4098
  ></vaadin-date-picker-overlay>
4099
4099
 
4100
4100
  <slot name="tooltip"></slot>
4101
- `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Xr(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new Kr(this.inputElement,this._labelController)),this._tooltipController=new ht(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(e){e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}G(zv);/**
4101
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Yi(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new Xi(this.inputElement,this._labelController)),this._tooltipController=new ht(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(e){e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}G(Nv);/**
4102
4102
  * @license
4103
4103
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
4104
4104
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4106,15 +4106,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4106
4106
  * @license
4107
4107
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4108
4108
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4109
- */const Bv=r=>class extends io(r){static get properties(){return{autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"autocapitalize","autocomplete","autocorrect"]}get __data(){return this.__dataValue||{}}set __data(e){this.__dataValue=e}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.value&&e.value!==this.value&&(console.warn(`Please define value on the <${this.localName}> component!`),e.value=""),this.value&&(e.value=this.value))}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_onInput(e){super._onInput(e),this.invalid&&this.validate()}_valueChanged(e,t){super._valueChanged(e,t),t!==void 0&&this.invalid&&this.validate()}};/**
4109
+ */const zv=i=>class extends eo(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 Lv=r=>class extends Bv(r){static get properties(){return{maxlength:{type:Number},minlength:{type:Number},pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"maxlength","minlength","pattern"]}static get constraints(){return[...super.constraints,"maxlength","minlength","pattern"]}constructor(){super(),this._setType("text")}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Xr(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Kr(this.inputElement,this._labelController))}};/**
4113
+ */const Bv=i=>class extends zv(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 Yi(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Xi(this.inputElement,this._labelController))}};/**
4114
4114
  * @license
4115
4115
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
4116
4116
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4117
- */L("vaadin-text-field",oo,{moduleId:"vaadin-text-field-styles"});class ld extends Lv(le(Ve(Z))){static get is(){return"vaadin-text-field"}static get template(){return K`
4117
+ */L("vaadin-text-field",to,{moduleId:"vaadin-text-field-styles"});class ad extends Bv(he($e(Z))){static get is(){return"vaadin-text-field"}static get template(){return K`
4118
4118
  <div class="vaadin-field-container">
4119
4119
  <div part="label">
4120
4120
  <slot name="label"></slot>
@@ -4143,11 +4143,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4143
4143
  </div>
4144
4144
  </div>
4145
4145
  <slot name="tooltip"></slot>
4146
- `}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new ht(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}G(ld);/**
4146
+ `}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new ht(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}G(ad);/**
4147
4147
  * @license
4148
4148
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4149
4149
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4150
- */const Hv=k`
4150
+ */const Lv=k`
4151
4151
  :host {
4152
4152
  position: absolute;
4153
4153
  right: 0;
@@ -4160,11 +4160,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4160
4160
  background: transparent;
4161
4161
  outline: none;
4162
4162
  }
4163
- `;L("vaadin-password-field-button",[Wh,Hv],{moduleId:"lumo-password-field-button"});/**
4163
+ `;L("vaadin-password-field-button",[$h,Lv],{moduleId:"lumo-password-field-button"});/**
4164
4164
  * @license
4165
4165
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4166
4166
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4167
- */const Rv=k`
4167
+ */const Hv=k`
4168
4168
  [part='reveal-button']::before {
4169
4169
  content: var(--lumo-icons-eye);
4170
4170
  }
@@ -4182,15 +4182,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4182
4182
  [part='reveal-button'][hidden] {
4183
4183
  display: none !important;
4184
4184
  }
4185
- `;L("vaadin-password-field",[Rt,Rv],{moduleId:"lumo-password-field"});/**
4185
+ `;L("vaadin-password-field",[Rt,Hv],{moduleId:"lumo-password-field"});/**
4186
4186
  * @license
4187
4187
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4188
4188
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4189
- */L("vaadin-password-field-button",Kh,{moduleId:"vaadin-password-field-button-styles"});class Fv extends is($e(le(Z))){static get is(){return"vaadin-password-field-button"}static get template(){return K``}}G(Fv);/**
4189
+ */L("vaadin-password-field-button",Xh,{moduleId:"vaadin-password-field-button-styles"});class Rv extends is(Ve(he(Z))){static get is(){return"vaadin-password-field-button"}static get template(){return K``}}G(Rv);/**
4190
4190
  * @license
4191
4191
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4192
4192
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4193
- */const $v=r=>class extends od(cr(Ht(Yr(r)))){static get properties(){return{revealButtonHidden:{type:Boolean,observer:"_revealButtonHiddenChanged",value:!1},passwordVisible:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_passwordVisibleChanged",readOnly:!0},i18n:{type:Object,value:()=>({reveal:"Show password"})}}}static get observers(){return["__i18nChanged(i18n)"]}constructor(){super(),this._setType("password"),this.__boundRevealButtonClick=this._onRevealButtonClick.bind(this),this.__boundRevealButtonMouseDown=this._onRevealButtonMouseDown.bind(this),this.__lastChange=""}get slotStyles(){const e=this.localName;return[...super.slotStyles,`
4193
+ */const Fv=i=>class extends rd(ui(Ht(qi(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
  }
@@ -4202,7 +4202,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4202
4202
  <div part="reveal-button" slot="suffix">
4203
4203
  <slot name="reveal"></slot>
4204
4204
  </div>
4205
- `;let fi;class Wv extends $v(ld){static get is(){return"vaadin-password-field"}static get template(){if(!fi){fi=super.template.cloneNode(!0);const e=Vv.content.querySelector('[part="reveal-button"]');fi.content.querySelector('[part="input-field"]').appendChild(e)}return fi}}G(Wv);const no=k`
4205
+ `;let mr;class $v extends Fv(ad){static get is(){return"vaadin-password-field"}static get template(){if(!mr){mr=super.template.cloneNode(!0);const e=Vv.content.querySelector('[part="reveal-button"]');mr.content.querySelector('[part="input-field"]').appendChild(e)}return mr}}G($v);const io=k`
4206
4206
  :host {
4207
4207
  display: flex;
4208
4208
  align-items: center;
@@ -4286,7 +4286,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4286
4286
  width: var(--lumo-icon-size-m);
4287
4287
  height: var(--lumo-icon-size-m);
4288
4288
  }
4289
- `;L("vaadin-item",no,{moduleId:"lumo-item"});const hd=k`
4289
+ `;L("vaadin-item",io,{moduleId:"lumo-item"});const ld=k`
4290
4290
  :host {
4291
4291
  transition: background-color 100ms;
4292
4292
  overflow: hidden;
@@ -4298,11 +4298,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4298
4298
  :host([focused]:not([disabled])) {
4299
4299
  box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
4300
4300
  }
4301
- `;L("vaadin-combo-box-item",[no,hd],{moduleId:"lumo-combo-box-item"});/**
4301
+ `;L("vaadin-combo-box-item",[io,ld],{moduleId:"lumo-combo-box-item"});/**
4302
4302
  * @license
4303
4303
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
4304
4304
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4305
- */const dd=k`
4305
+ */const hd=k`
4306
4306
  [part~='loader'] {
4307
4307
  box-sizing: border-box;
4308
4308
  width: var(--lumo-icon-size-s);
@@ -4344,7 +4344,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4344
4344
  transform: rotate(360deg);
4345
4345
  }
4346
4346
  }
4347
- `,cd=k`
4347
+ `,dd=k`
4348
4348
  [part='content'] {
4349
4349
  padding: 0;
4350
4350
  }
@@ -4365,7 +4365,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4365
4365
  :host([bottom-aligned]) [part~='overlay'] {
4366
4366
  margin-bottom: var(--lumo-space-xs);
4367
4367
  }
4368
- `,ud=k`
4368
+ `,cd=k`
4369
4369
  [part~='loader'] {
4370
4370
  position: absolute;
4371
4371
  z-index: 1;
@@ -4373,24 +4373,24 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4373
4373
  top: var(--lumo-space-s);
4374
4374
  margin-inline: auto 0;
4375
4375
  }
4376
- `;L("vaadin-combo-box-overlay",[ur,to,cd,dd,ud,k`
4376
+ `;L("vaadin-combo-box-overlay",[pi,Jr,dd,hd,cd,k`
4377
4377
  :host {
4378
4378
  --_vaadin-combo-box-items-container-border-width: var(--lumo-space-xs);
4379
4379
  --_vaadin-combo-box-items-container-border-style: solid;
4380
4380
  }
4381
- `],{moduleId:"lumo-combo-box-overlay"});const jv=k`
4381
+ `],{moduleId:"lumo-combo-box-overlay"});const Wv=k`
4382
4382
  [part='toggle-button']::before {
4383
4383
  content: var(--lumo-icons-dropdown);
4384
4384
  }
4385
- `;L("vaadin-combo-box",[Rt,jv],{moduleId:"lumo-combo-box"});/**
4385
+ `;L("vaadin-combo-box",[Rt,Wv],{moduleId:"lumo-combo-box"});/**
4386
4386
  * @license
4387
4387
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4388
4388
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4389
- */const pd=r=>class extends r{static get properties(){return{index:{type:Number},item:{type:Object},label:{type:String},selected:{type:Boolean,value:!1,reflectToAttribute:!0},focused:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Function}}}static get observers(){return["__rendererOrItemChanged(renderer, index, item, selected, focused)","__updateLabel(label, renderer)"]}static get observedAttributes(){return[...super.observedAttributes,"hidden"]}attributeChangedCallback(e,t,i){e==="hidden"&&i!==null?this.index=void 0:super.attributeChangedCallback(e,t,i)}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;const e=this._owner.getAttribute("dir");e&&this.setAttribute("dir",e)}requestContentUpdate(){if(!this.renderer||this.hidden)return;const e={index:this.index,item:this.item,focused:this.focused,selected:this.selected};this.renderer(this,this._owner,e)}__rendererOrItemChanged(e,t,i){i===void 0||t===void 0||(this._oldRenderer!==e&&(this.innerHTML="",delete this._$litPart$),e&&(this._oldRenderer=e,this.requestContentUpdate()))}__updateLabel(e,t){t||(this.textContent=e)}};/**
4389
+ */const ud=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 Uv extends pd(le($e(Z))){static get template(){return K`
4393
+ */class jv extends ud(he(Ve(Z))){static get template(){return K`
4394
4394
  <style>
4395
4395
  :host {
4396
4396
  display: block;
@@ -4404,15 +4404,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4404
4404
  <div part="content">
4405
4405
  <slot></slot>
4406
4406
  </div>
4407
- `}static get is(){return"vaadin-combo-box-item"}}G(Uv);/**
4407
+ `}static get is(){return"vaadin-combo-box-item"}}G(jv);/**
4408
4408
  * @license
4409
4409
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4410
4410
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4411
- */const md=r=>class extends rs(r){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}connectedCallback(){super.connectedCallback();const e=this._comboBox,t=e&&e.getAttribute("dir");t&&this.setAttribute("dir",t)}_shouldCloseOnOutsideClick(e){const t=e.composedPath();return!t.includes(this.positionTarget)&&!t.includes(this)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!Un(e.composedPath()[0])&&e.preventDefault()}_updateOverlayWidth(){const e=this.localName;this.style.setProperty(`--_${e}-default-width`,`${this.positionTarget.clientWidth}px`);const t=getComputedStyle(this._comboBox).getPropertyValue(`--${e}-width`);t===""?this.style.removeProperty(`--${e}-width`):this.style.setProperty(`--${e}-width`,t)}_setOverlayWidth(e,t){e&&t&&(this._updateOverlayWidth(),this._updatePosition())}};/**
4411
+ */const pd=i=>class extends ts(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)&&!jn(e.composedPath()[0])&&e.preventDefault()}_updateOverlayWidth(){const e=this.localName;this.style.setProperty(`--_${e}-default-width`,`${this.positionTarget.clientWidth}px`);const t=getComputedStyle(this._comboBox).getPropertyValue(`--${e}-width`);t===""?this.style.removeProperty(`--${e}-width`):this.style.setProperty(`--${e}-width`,t)}_setOverlayWidth(e,t){e&&t&&(this._updateOverlayWidth(),this._updatePosition())}};/**
4412
4412
  * @license
4413
4413
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4414
4414
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4415
- */const Gv=k`
4415
+ */const Uv=k`
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
- `;L("vaadin-combo-box-overlay",[Zr,Gv],{moduleId:"vaadin-combo-box-overlay-styles"});class qv extends md(Jr($e(le(Z)))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return K`
4425
+ `;L("vaadin-combo-box-overlay",[Ki,Uv],{moduleId:"vaadin-combo-box-overlay-styles"});class Gv extends pd(Zi(Ve(he(Z)))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return K`
4426
4426
  <div id="backdrop" part="backdrop" hidden></div>
4427
4427
  <div part="overlay" id="overlay">
4428
4428
  <div part="loader"></div>
4429
4429
  <div part="content" id="content"><slot></slot></div>
4430
4430
  </div>
4431
- `}}G(qv);/**
4431
+ `}}G(Gv);/**
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 Ri(r,e){return r.split(".").reduce((t,i)=>t?t[i]:void 0,e)}/**
4435
+ */function Lr(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,11 +4440,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4440
4440
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
4441
4441
  * Code distributed by Google as part of the polymer project is also
4442
4442
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
4443
- */const Ia=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),Yv=Ia&&Ia[1]>=8,Da=3,Xv={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){const r=this._virtualCount;return Math.max(0,r-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(r){r=this._clamp(r,0,this._maxVirtualStart),this._virtualStartVal=r},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(r){r%=this._physicalCount,r<0&&(r=this._physicalCount+r),this._physicalStartVal=r},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(r){this._physicalCountVal=r},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let r=this._firstVisibleIndexVal;if(r==null){let e=this._physicalTop+this._scrollOffset;r=this._iterateItems((t,i)=>{if(e+=this._getPhysicalSizeIncrement(t),e>this._scrollPosition)return i})||0,this._firstVisibleIndexVal=r}return r},get lastVisibleIndex(){let r=this._lastVisibleIndexVal;if(r==null){let e=this._physicalTop+this._scrollOffset;this._iterateItems((t,i)=>{e<this._scrollBottom&&(r=i),e+=this._getPhysicalSizeIncrement(t)}),this._lastVisibleIndexVal=r}return r},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const r=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let e=r-this._scrollPosition;const t=e>=0;if(this._scrollPosition=r,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(e)>this._physicalSize&&this._physicalSize>0){e-=this._scrollOffset;const i=Math.round(e/this._physicalAverage);this._virtualStart+=i,this._physicalStart+=i,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const i=this._getReusables(t);t?(this._physicalTop=i.physicalTop,this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length):(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length),this._update(i.indexes,t?null:i.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),Bi)}},_getReusables(r){let e,t,i;const o=[],n=this._hiddenContentSize*this._ratio,s=this._virtualStart,a=this._virtualEnd,l=this._physicalCount;let h=this._physicalTop+this._scrollOffset;const d=this._physicalBottom+this._scrollOffset,c=this._scrollPosition,u=this._scrollBottom;for(r?(e=this._physicalStart,t=c-h):(e=this._physicalEnd,t=d-u);i=this._getPhysicalSizeIncrement(e),t-=i,!(o.length>=l||t<=n);)if(r){if(a+o.length+1>=this._virtualCount||h+i>=c-this._scrollOffset)break;o.push(e),h+=i,e=(e+1)%l}else{if(s-o.length<=0||h+this._physicalSize-i<=u)break;o.push(e),h-=i,e=e===0?l-1:e-1}return{indexes:o,physicalTop:h-this._scrollOffset}},_update(r,e){if(!(r&&r.length===0||this._physicalCount===0)){if(this._assignModels(r),this._updateMetrics(r),e)for(;e.length;){const t=e.pop();this._physicalTop-=this._getPhysicalSizeIncrement(t)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(r){const e=this._clamp(this._physicalCount+r,Da,this._virtualCount-this._virtualStart)-this._physicalCount;let t=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){const i=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let o=0;o<e;o++)this._physicalSizes.push(0);this._physicalCount+=e,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=e),this._update(),this._templateCost=(window.performance.now()-i)/e,t=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||t===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,t)),Ph):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,t),Bi))}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const r=this._getReusables(!0);this._physicalTop=r.physicalTop,this._virtualStart+=r.indexes.length,this._physicalStart+=r.indexes.length,this._update(r.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(Da))},_itemsChanged(r){r.path==="items"&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,$r))},_iterateItems(r,e){let t,i,o,n;if(arguments.length===2&&e){for(n=0;n<e.length;n++)if(t=e[n],i=this._computeVidx(t),(o=r.call(this,t,i))!=null)return o}else{for(t=this._physicalStart,i=this._virtualStart;t<this._physicalCount;t++,i++)if((o=r.call(this,t,i))!=null)return o;for(t=0;t<this._physicalStart;t++,i++)if((o=r.call(this,t,i))!=null)return o}},_computeVidx(r){return r>=this._physicalStart?this._virtualStart+(r-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+r},_positionItems(){this._adjustScrollPosition();let r=this._physicalTop;this._iterateItems(e=>{this.translate3d(0,`${r}px`,0,this._physicalItems[e]),r+=this._physicalSizes[e]})},_getPhysicalSizeIncrement(r){return this._physicalSizes[r]},_adjustScrollPosition(){const r=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(r!==0){this._physicalTop-=r;const e=this._scrollPosition;!Yv&&e>0&&this._resetScrollPosition(e-r)}},_resetScrollPosition(r){this.scrollTarget&&r>=0&&(this._scrollTop=r,this._scrollPosition=this._scrollTop)},_updateScrollerSize(r){const e=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=e,(r||this._scrollHeight===0||this._scrollPosition>=e-this._physicalSize||Math.abs(e-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${e}px`,this._scrollHeight=e)},scrollToIndex(r){if(typeof r!="number"||r<0||r>this.items.length-1||(Sr(),this._physicalCount===0))return;r=this._clamp(r,0,this._virtualCount-1),(!this._isIndexRendered(r)||r>=this._maxVirtualStart)&&(this._virtualStart=r-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let e=this._physicalStart,t=this._virtualStart,i=0;const o=this._hiddenContentSize;for(;t<r&&i<=o;)i+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,t+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+i),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler(){this._debounce("_render",()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)},$r)},_isIndexRendered(r){return r>=this._virtualStart&&r<=this._virtualEnd},_getPhysicalIndex(r){return(this._physicalStart+(r-this._virtualStart))%this._physicalCount},_clamp(r,e,t){return Math.min(t,Math.max(e,r))},_debounce(r,e,t){this._debouncers||(this._debouncers={}),this._debouncers[r]=Fe.debounce(this._debouncers[r],t,e.bind(this)),kh(this._debouncers[r])}};/**
4443
+ */const Ta=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),qv=Ta&&Ta[1]>=8,Ia=3,Yv={_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),Nr)}},_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,u=this._scrollBottom;for(i?(e=this._physicalStart,t=c-h):(e=this._physicalEnd,t=d-u);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<=u)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,Ia,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)),Ph):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,t),Nr))}},_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(Ia))},_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,Vi))},_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;!qv&&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||(Ai(),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)},Vi)},_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]=Fe.debounce(this._debouncers[i],t,e.bind(this)),kh(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 Kv=1e5,No=1e3;class fd{constructor({createElements:e,updateElement:t,scrollTarget:i,scrollContainer:o,elementsContainer:n,reorderElements:s}){this.isAttached=!0,this._vidxOffset=0,this.createElements=e,this.updateElement=t,this.scrollTarget=i,this.scrollContainer=o,this.elementsContainer=n||o,this.reorderElements=s,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver(()=>this._resizeHandler()),getComputedStyle(this.scrollTarget).overflow==="visible"&&(this.scrollTarget.style.overflow="auto"),getComputedStyle(this.scrollContainer).position==="static"&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),new ResizeObserver(([{contentRect:a}])=>{const l=a.width===0&&a.height===0;!l&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=l}).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",a=>this.__onWheel(a)),this.scrollTarget.addEventListener("virtualizer-element-focused",a=>this.__onElementFocused(a)),this.elementsContainer.addEventListener("focusin",()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}))}),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",()=>{this.__mouseDown=!0}),this.scrollTarget.addEventListener("mouseup",()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()}))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some(e=>e.__virtualizerPlaceholder)}scrollToIndex(e){if(typeof e!="number"||isNaN(e)||this.size===0||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),e=this._clamp(e,0,this.size-1);const t=this.__getVisibleElements().length;let i=Math.floor(e/this.size*this._virtualCount);this._virtualCount-i<t?(i=this._virtualCount-(this.size-e),this._vidxOffset=this._maxVirtualIndexOffset):i<t?e<No?(i=e,this._vidxOffset=0):(i=No,this._vidxOffset=e-i):this._vidxOffset=e-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),this.adjustedFirstVisibleIndex!==e&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(e)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=e)}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),Sr(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(e=0,t=this.size-1){const i=[];this.__getVisibleElements().forEach(o=>{o.__virtualIndex>=e&&o.__virtualIndex<=t&&(this.__updateElement(o,o.__virtualIndex,!0),i.push(o))}),this.__afterElementsUpdated(i)}_updateMetrics(e){Sr();let t=0,i=0;const o=this._physicalAverageCount,n=this._physicalAverage;this._iterateItems((s,a)=>{i+=this._physicalSizes[s],this._physicalSizes[s]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[s])),t+=this._physicalSizes[s],this._physicalAverageCount+=this._physicalSizes[s]?1:0},e),this._physicalSize=this._physicalSize+t-i,this._physicalAverageCount!==o&&(this._physicalAverage=Math.round((n*o+t)/this._physicalAverageCount))}__getBorderBoxHeight(e){const t=getComputedStyle(e),i=parseFloat(t.height)||0;if(t.boxSizing==="border-box")return i;const o=parseFloat(t.paddingBottom)||0,n=parseFloat(t.paddingTop)||0,s=parseFloat(t.borderBottomWidth)||0,a=parseFloat(t.borderTopWidth)||0;return i+o+n+s+a}__updateElement(e,t,i){e.__virtualizerPlaceholder&&(e.style.paddingTop="",e.style.opacity="",e.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(e.__lastUpdatedIndex!==t||i)&&(this.updateElement(e,t),e.__lastUpdatedIndex=t)}__afterElementsUpdated(e){e.forEach(t=>{const i=t.offsetHeight;if(i===0)t.style.paddingTop=`${this.__placeholderHeight}px`,t.style.opacity="0",t.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=Fe.debounce(this.__placeholderClearDebouncer,$r,()=>this._resizeHandler());else{this.__elementHeightQueue.push(i),this.__elementHeightQueue.shift();const o=this.__elementHeightQueue.filter(n=>n!==void 0);this.__placeholderHeight=Math.round(o.reduce((n,s)=>n+s,0)/o.length)}}),this.__pendingScrollToIndex!==void 0&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(e){const t=this.__getVisibleElements().find(i=>i.__virtualIndex===e);return t?this.scrollTarget.getBoundingClientRect().top-t.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(e){if(e===this.size)return;this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0;let t,i;if(e>0&&(t=this.adjustedFirstVisibleIndex,i=this.__getIndexScrollOffset(t)),this.__size=e,this._itemsChanged({path:"items"}),Sr(),e>0){t=Math.min(t,e-1),this.scrollToIndex(t);const o=this.__getIndexScrollOffset(t);i!==void 0&&o!==void 0&&(this._scrollTop+=i-o)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),Sr(),this._debounce("_update",this._update,Bi)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,Kv)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const e=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(e["padding-top"],10),this._isRTL=e.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(e){const t=this.createElements(e),i=document.createDocumentFragment();return t.forEach(o=>{o.style.position="absolute",i.appendChild(o),this.__resizeObserver.observe(o)}),this.elementsContainer.appendChild(i),t}_assignModels(e){const t=[];this._iterateItems((i,o)=>{const n=this._physicalItems[i];n.hidden=o>=this.size,n.hidden?delete n.__lastUpdatedIndex:(n.__virtualIndex=o+(this._vidxOffset||0),this.__updateElement(n,n.__virtualIndex),t.push(n))},e),this.__afterElementsUpdated(t)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(e,t,i,o){o.style.transform=`translateY(${t})`}toggleScrollListener(){}__getFocusedElement(e=this.__getVisibleElements()){return e.find(t=>t.contains(this.elementsContainer.getRootNode().activeElement)||t.contains(this.scrollTarget.getRootNode().activeElement))}__nextFocusableSiblingMissing(e,t){return t.indexOf(e)===t.length-1&&this.size>e.__virtualIndex+1}__previousFocusableSiblingMissing(e,t){return t.indexOf(e)===0&&e.__virtualIndex>0}__onElementFocused(e){if(!this.reorderElements)return;const t=e.detail.element;if(!t)return;const i=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(t,i)||this.__nextFocusableSiblingMissing(t,i))&&this.flush();const o=this.__getVisibleElements();this.__nextFocusableSiblingMissing(t,o)?(this._scrollTop+=Math.ceil(t.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(t,o)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(t.getBoundingClientRect().top),this.flush())}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const e=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const t=e>=0,i=this._getReusables(!t);i.indexes.length&&(this._physicalTop=i.physicalTop,t?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler())}e&&(this.__fixInvalidItemPositioningDebouncer=Fe.debounce(this.__fixInvalidItemPositioningDebouncer,yt.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=Fe.debounce(this.__scrollReorderDebouncer,yt.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(e)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const e=this._physicalTop>this._scrollTop,t=this._physicalBottom<this._scrollBottom,i=this.adjustedFirstVisibleIndex===0,o=this.adjustedLastVisibleIndex===this.size-1;if(e&&!i||t&&!o){const n=t,s=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(n?-1:1),this._scrollHandler(),this._ratio=s}}__onWheel(e){if(e.ctrlKey||this._hasScrolledAncestor(e.target,e.deltaX,e.deltaY))return;let t=e.deltaY;if(e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._scrollLineHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=t,e.preventDefault();return}t+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=Fe.debounce(this.__debouncerWheelAnimationFrame,$r,()=>{this._wheelAnimationFrame=!1});const i=Math.abs(e.deltaX)+Math.abs(t);this._canScroll(this.scrollTarget,e.deltaX,t)?(e.preventDefault(),this.scrollTarget.scrollTop+=t,this.scrollTarget.scrollLeft+=e.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=Fe.debounce(this._debouncerIgnoreNewWheel,yt.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&i<=this._previousMomentum||this._ignoreNewWheel?e.preventDefault():i>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=i}_hasScrolledAncestor(e,t,i){if(e===this.scrollTarget||e===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(e,t,i)&&["auto","scroll"].indexOf(getComputedStyle(e).overflow)!==-1)return!0;if(e!==this&&e.parentElement)return this._hasScrolledAncestor(e.parentElement,t,i)}_canScroll(e,t,i){return i>0&&e.scrollTop<e.scrollHeight-e.offsetHeight||i<0&&e.scrollTop>0||t>0&&e.scrollLeft<e.scrollWidth-e.offsetWidth||t<0&&e.scrollLeft>0}_increasePoolIfNeeded(e){if(this._physicalCount>2&&e){const t=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(e,Math.min(100,t)))}else super._increasePoolIfNeeded(e)}get _optPhysicalSize(){const e=super._optPhysicalSize;return e<=0||this.__hasPlaceholders()?e:e+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(this._physicalCount===0)return 0;const e=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),t=Math.max(...this._physicalSizes);return t>Math.min(...this._physicalSizes)?Math.max(0,t-e):0}_getScrollLineHeight(){const e=document.createElement("div");e.style.fontSize="initial",e.style.display="none",document.body.appendChild(e);const t=window.getComputedStyle(e).fontSize;return document.body.removeChild(e),t?window.parseInt(t):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(e=>!e.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const e=this._virtualStart+(this._vidxOffset||0),t=this.__getVisibleElements(),i=this.__getFocusedElement(t)||t[0];if(!i)return;const o=i.__virtualIndex-e,n=t.indexOf(i)-o;if(n>0)for(let s=0;s<n;s++)this.elementsContainer.appendChild(t[s]);else if(n<0)for(let s=t.length+n;s<t.length;s++)this.elementsContainer.insertBefore(t[s],t[0]);if(L_){const{transform:s}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=s})}}_adjustVirtualIndexOffset(e){const t=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(e)>1e4){const i=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(i*t)}else{const i=this._vidxOffset,o=No,n=100;this._scrollTop===0?(this._vidxOffset=0,i!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<o&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,n),super.scrollToIndex(this.firstVisibleIndex+(i-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=t,i!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-o&&this._vidxOffset<t&&(this._vidxOffset+=Math.min(t-this._vidxOffset,n),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-i)))}}}Object.setPrototypeOf(fd.prototype,Xv);class Zv{constructor(e){this.__adapter=new fd(e)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(e){this.__adapter.size=e}scrollToIndex(e){this.__adapter.scrollToIndex(e)}update(e=0,t=this.size-1){this.__adapter.update(e,t)}flush(){this.__adapter.flush()}}/**
4447
+ */const Xv=1e5,Do=1e3;class md{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<Do?(r=e,this._vidxOffset=0):(r=Do,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(),Ai(),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){Ai();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=Fe.debounce(this.__placeholderClearDebouncer,Vi,()=>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"}),Ai(),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(),Ai(),this._debounce("_update",this._update,Nr)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,Xv)}}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=Fe.debounce(this.__fixInvalidItemPositioningDebouncer,yt.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=Fe.debounce(this.__scrollReorderDebouncer,yt.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(e)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const e=this._physicalTop>this._scrollTop,t=this._physicalBottom<this._scrollBottom,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=Fe.debounce(this.__debouncerWheelAnimationFrame,Vi,()=>{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=Fe.debounce(this._debouncerIgnoreNewWheel,yt.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(Bf){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=Do,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(md.prototype,Yv);class Kv{constructor(e){this.__adapter=new md(e)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(e){this.__adapter.size=e}scrollToIndex(e){this.__adapter.scrollToIndex(e)}update(e=0,t=this.size-1){this.__adapter.update(e,t)}flush(){this.__adapter.flush()}}/**
4448
4448
  * @license
4449
4449
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4450
4450
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4452,11 +4452,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4452
4452
  * @license
4453
4453
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4454
4454
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4455
- */const _d=r=>class extends r{static get properties(){return{items:{type:Array,sync:!0,observer:"__itemsChanged"},focusedIndex:{type:Number,sync:!0,observer:"__focusedIndexChanged"},loading:{type:Boolean,sync:!0,observer:"__loadingChanged"},opened:{type:Boolean,sync:!0,observer:"__openedChanged"},selectedItem:{type:Object,sync:!0,observer:"__selectedItemChanged"},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,sync:!0,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this)}get _viewportTotalPaddingBottom(){if(this._cachedViewportTotalPaddingBottom===void 0){const e=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[e.paddingBottom,e.borderBottomWidth].map(t=>parseInt(t,10)).reduce((t,i)=>t+i)}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${qr()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",e=>e.stopPropagation()),this.__patchWheelOverScrolling()}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update())}scrollIntoView(e){if(!this.__virtualizer||!(this.opened&&e>=0))return;const t=this._visibleItemsCount();let i=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),i=e-t+1):e>this.__virtualizer.firstVisibleIndex&&(i=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,i));const o=[...this.children].find(l=>!l.hidden&&l.index===this.__virtualizer.lastVisibleIndex);if(!o||e!==o.index)return;const n=o.getBoundingClientRect(),s=this.getBoundingClientRect(),a=n.bottom-s.bottom+this._viewportTotalPaddingBottom;a>0&&(this.scrollTop+=a)}_isItemSelected(e,t,i){return e instanceof wt?!1:i&&e!==void 0&&t!==void 0?Ri(i,e)===Ri(i,t):e===t}__initVirtualizer(){this.__virtualizer=new Zv({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0})}__itemsChanged(e){e&&this.__virtualizer&&this.requestContentUpdate()}__loadingChanged(){this.requestContentUpdate()}__openedChanged(e){e&&(this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate())}__selectedItemChanged(){this.requestContentUpdate()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.requestContentUpdate()}__focusedIndexChanged(e,t){e!==t&&this.requestContentUpdate(),e>=0&&!this.loading&&this.scrollIntoView(e)}__rendererChanged(e,t){(e||t)&&this.requestContentUpdate()}__createElements(e){return[...Array(e)].map(()=>{const t=document.createElement(`${this.__hostTagName}-item`);return t.addEventListener("click",this.__boundOnItemClick),t.tabIndex="-1",t.style.width="100%",t})}_updateElement(e,t){const i=this.items[t],o=this.focusedIndex,n=this._isItemSelected(i,this.selectedItem,this.itemIdPath);e.setProperties({item:i,index:t,label:this.getItemLabel(i),selected:n,renderer:this.renderer,focused:!this.loading&&o===t}),typeof this.itemClassNameGenerator=="function"?e.className=this.itemClassNameGenerator(i):e.className!==""&&(e.className=""),e.performUpdate&&!e.hasUpdated&&e.performUpdate(),e.id=`${this.__hostTagName}-item-${t}`,e.setAttribute("role",t!==void 0?"option":!1),e.setAttribute("aria-selected",n.toString()),e.setAttribute("aria-posinset",t+1),e.setAttribute("aria-setsize",this.items.length),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme"),i instanceof wt&&this.__requestItemByIndex(t)}__onItemClick(e){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:e.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",e=>{const t=this.scrollTop===0,i=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(t&&e.deltaY<0||i&&e.deltaY>0)&&e.preventDefault()})}__requestItemByIndex(e){requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:e}}))})}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}};/**
4455
+ */const _d=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}-${Gi()}`,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 wt?!1:r&&e!==void 0&&t!==void 0?Lr(r,e)===Lr(r,t):e===t}__initVirtualizer(){this.__virtualizer=new Kv({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 wt&&this.__requestItemByIndex(t)}__onItemClick(e){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:e.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",e=>{const t=this.scrollTop===0,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 Jv extends _d(Z){static get is(){return"vaadin-combo-box-scroller"}static get template(){return K`
4459
+ */class Zv extends _d(Z){static get is(){return"vaadin-combo-box-scroller"}static get template(){return K`
4460
4460
  <style>
4461
4461
  :host {
4462
4462
  display: block;
@@ -4483,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
- `}}G(Jv);/**
4486
+ `}}G(Zv);/**
4487
4487
  * @license
4488
4488
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4489
4489
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4490
- */const Qv=r=>class extends hs(r){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}};/**
4490
+ */const Jv=i=>class extends ls(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 Fi(r,e,t=0){let i=e;for(const o of r.subCaches){const n=o.parentCacheIndex;if(i<=n)break;if(i<=n+o.flatSize)return Fi(o,i-n-1,t+1);i-=o.flatSize}return{cache:r,item:r.items[i],index:i,page:Math.floor(i/r.pageSize),level:t}}function vd({getItemId:r},e,t,i=0,o=0){for(let n=0;n<e.items.length;n++){const s=e.items[n];if(s&&r(s)===r(t))return{cache:e,level:i,item:s,index:n,page:Math.floor(n/e.pageSize),subCache:e.getSubCache(n),flatIndex:o+e.getFlatIndex(n)}}for(const n of e.subCaches){const s=o+e.getFlatIndex(n.parentCacheIndex),a=vd({getItemId:r},n,t,i+1,s+1);if(a)return a}}function gd(r,[e,...t],i=0){e===1/0&&(e=r.size-1);const o=r.getFlatIndex(e),n=r.getSubCache(e);return n&&n.flatSize>0&&t.length?gd(n,t,i+o+1):i+o}/**
4494
+ */function Hr(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 Hr(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 fd({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=fd({getItemId:i},n,t,r+1,s+1);if(a)return a}}function vd(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?vd(n,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 ds{constructor(e,t,i,o,n){Te(this,"context"),Te(this,"pageSize"),Te(this,"items",[]),Te(this,"pendingRequests",{}),Te(this,"__subCacheByIndex",{}),Te(this,"__size",0),Te(this,"__flatSize",0),this.context=e,this.pageSize=t,this.size=i,this.parentCache=o,this.parentCacheIndex=n,this.__flatSize=i||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 i=0;i<e;i++)(t=this.items)[i]||(t[i]=this.context.placeholder)}Object.keys(this.pendingRequests).forEach(i=>{parseInt(i)*this.pageSize>=this.size&&delete this.pendingRequests[i]})}}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 i=e*this.pageSize;t.forEach((o,n)=>{const s=i+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 ds(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((i,o)=>{const n=o.parentCacheIndex;return t>n?i+o.flatSize:i},t)}getItemForIndex(e){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:t}=Fi(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:i}=Fi(this,e);return{cache:t,scaledIndex:i}}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 hs{constructor(e,t,r,o,n){Te(this,"context"),Te(this,"pageSize"),Te(this,"items",[]),Te(this,"pendingRequests",{}),Te(this,"__subCacheByIndex",{}),Te(this,"__size",0),Te(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 hs(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}=Hr(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}=Hr(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 eg extends EventTarget{constructor(e,{size:t,pageSize:i,isExpanded:o,getItemId:n,isPlaceholder:s,placeholder:a,dataProvider:l,dataProviderParams:h}){super(),Te(this,"host"),Te(this,"dataProvider"),Te(this,"dataProviderParams"),Te(this,"pageSize"),Te(this,"isExpanded"),Te(this,"getItemId"),Te(this,"rootCache"),Te(this,"placeholder"),Te(this,"isPlaceholder"),this.host=e,this.pageSize=i,this.getItemId=n,this.isExpanded=o,this.placeholder=a,this.isPlaceholder=s,this.dataProvider=l,this.dataProviderParams=h,this.rootCache=this.__createRootCache(t)}get flatSize(){return this.rootCache.flatSize}get __cacheContext(){return{isExpanded:this.isExpanded,placeholder:this.placeholder,__controller:this}}isLoading(){return this.rootCache.isLoading}setPageSize(e){this.pageSize=e,this.clearCache()}setDataProvider(e){this.dataProvider=e,this.clearCache()}recalculateFlatSize(){this.rootCache.recalculateFlatSize()}clearCache(){this.rootCache=this.__createRootCache(this.rootCache.size)}getFlatIndexContext(e){return Fi(this.rootCache,e)}getItemContext(e){return vd({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return gd(this.rootCache,e)}ensureFlatIndexLoaded(e){const{cache:t,page:i,item:o}=this.getFlatIndexContext(e);this.__isItemLoaded(o)||this.__loadCachePage(t,i)}ensureFlatIndexHierarchy(e){const{cache:t,item:i,index:o}=this.getFlatIndexContext(e);if(this.__isItemLoaded(i)&&this.isExpanded(i)&&!t.getSubCache(o)){const n=t.createSubCache(o);this.__loadCachePage(n,0)}}loadFirstPage(){this.__loadCachePage(this.rootCache,0)}__createRootCache(e){return new ds(this.__cacheContext,this.pageSize,e)}__loadCachePage(e,t){if(!this.dataProvider||e.pendingRequests[t])return;let i={page:t,pageSize:this.pageSize,parentItem:e.parentItem};this.dataProviderParams&&(i=ki(ki({},i),this.dataProviderParams()));const o=(n,s)=>{e.pendingRequests[t]===o&&(s!==void 0?e.size=s:i.parentItem&&(e.size=n.length),e.setPage(t,n),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete e.pendingRequests[t],this.dispatchEvent(new CustomEvent("page-loaded")))};e.pendingRequests[t]=o,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(i,o)}__isItemLoaded(e){return this.isPlaceholder?!this.isPlaceholder(e):this.placeholder?e!==this.placeholder:!!e}}/**
4502
+ */class Qv extends EventTarget{constructor(e,{size:t,pageSize:r,isExpanded:o,getItemId:n,isPlaceholder:s,placeholder:a,dataProvider:l,dataProviderParams:h}){super(),Te(this,"host"),Te(this,"dataProvider"),Te(this,"dataProviderParams"),Te(this,"pageSize"),Te(this,"isExpanded"),Te(this,"getItemId"),Te(this,"rootCache"),Te(this,"placeholder"),Te(this,"isPlaceholder"),this.host=e,this.pageSize=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 Hr(this.rootCache,e)}getItemContext(e){return fd({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return vd(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 hs(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=Ar(Ar({},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}}/**
4503
4503
  * @license
4504
4504
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4505
4505
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4506
- */const bd=r=>class extends r{static get properties(){return{pageSize:{type:Number,value:50,observer:"_pageSizeChanged",sync:!0},size:{type:Number,observer:"_sizeChanged",sync:!0},dataProvider:{type:Object,observer:"_dataProviderChanged",sync:!0},__dataProviderInitialized:{type:Boolean,value:!1},__previousDataProviderFilter:{type:String}}}static get observers(){return["_dataProviderFilterChanged(filter)","_warnDataProviderValue(dataProvider, value)","_ensureFirstPage(opened)"]}constructor(){super(),this.__dataProviderController=new eg(this,{placeholder:new wt,isPlaceholder:e=>e instanceof wt,dataProviderParams:()=>({filter:this.filter})}),this.__dataProviderController.addEventListener("page-requested",this.__onDataProviderPageRequested.bind(this)),this.__dataProviderController.addEventListener("page-loaded",this.__onDataProviderPageLoaded.bind(this))}ready(){super.ready(),this._scroller.addEventListener("index-requested",e=>{if(!this._shouldFetchData())return;const t=e.detail.index;t!==void 0&&this.__dataProviderController.ensureFlatIndexLoaded(t)}),this.__dataProviderInitialized=!0,this.dataProvider&&this.__synchronizeControllerState()}_dataProviderFilterChanged(e){if(this.__previousDataProviderFilter===void 0&&e===""){this.__previousDataProviderFilter=e;return}this.__previousDataProviderFilter!==e&&(this.__previousDataProviderFilter=e,this.__keepOverlayOpened=!0,this.size=void 0,this.clearCache(),this.__keepOverlayOpened=!1)}_shouldFetchData(){return this.dataProvider?this.opened||this.filter&&this.filter.length:!1}_ensureFirstPage(e){!this._shouldFetchData()||!e||(this._forceNextRequest||this.size===void 0?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this.size>0&&this.__dataProviderController.ensureFlatIndexLoaded(0))}__onDataProviderPageRequested(){this.loading=!0}__onDataProviderPageLoaded(){const{rootCache:e}=this.__dataProviderController;e.items=[...e.items],this.__synchronizeControllerState(),!this.opened&&!this._isInputFocused()&&this._commitValue()}clearCache(){this.dataProvider&&(this.__dataProviderController.clearCache(),this.__synchronizeControllerState(),this._shouldFetchData()?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this._forceNextRequest=!0)}_sizeChanged(e){const{rootCache:t}=this.__dataProviderController;t.size!==e&&(t.size=e,t.items=[...t.items],this.__synchronizeControllerState())}_filteredItemsChanged(e){if(super._filteredItemsChanged(e),this.dataProvider&&e){const{rootCache:t}=this.__dataProviderController;t.items!==e&&(t.items=e,this.__synchronizeControllerState())}}__synchronizeControllerState(){if(this.__dataProviderInitialized&&this.dataProvider){const{rootCache:e}=this.__dataProviderController;this.size=e.size,this.filteredItems=e.items,this.loading=this.__dataProviderController.isLoading()}}_pageSizeChanged(e,t){if(Math.floor(e)!==e||e<1)throw this.pageSize=t,new Error("`pageSize` value must be an integer > 0");this.__dataProviderController.setPageSize(e),this.clearCache()}_dataProviderChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.dataProvider=t}),this.__dataProviderController.setDataProvider(e),this.clearCache()}_ensureItemsOrDataProvider(e){if(this.items!==void 0&&this.dataProvider!==void 0)throw e(),new Error("Using `items` and `dataProvider` together is not supported")}_warnDataProviderValue(e,t){if(e&&t!==""&&(this.selectedItem===void 0||this.selectedItem===null)){const i=this.__getItemIndexByValue(this.filteredItems,t);(i<0||!this._getItemLabel(this.filteredItems[i]))&&console.warn("Warning: unable to determine the label for the provided `value`. Nothing to display in the text field. This usually happens when setting an initial `value` before any items are returned from the `dataProvider` callback. Consider setting `selectedItem` instead of `value`")}}};/**
4506
+ */const gd=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 Qv(this,{placeholder:new wt,isPlaceholder:e=>e instanceof wt,dataProviderParams:()=>({filter:this.filter})}),this.__dataProviderController.addEventListener("page-requested",this.__onDataProviderPageRequested.bind(this)),this.__dataProviderController.addEventListener("page-loaded",this.__onDataProviderPageLoaded.bind(this))}ready(){super.ready(),this._scroller.addEventListener("index-requested",e=>{if(!this._shouldFetchData())return;const t=e.detail.index;t!==void 0&&this.__dataProviderController.ensureFlatIndexLoaded(t)}),this.__dataProviderInitialized=!0,this.dataProvider&&this.__synchronizeControllerState()}_dataProviderFilterChanged(e){if(this.__previousDataProviderFilter===void 0&&e===""){this.__previousDataProviderFilter=e;return}this.__previousDataProviderFilter!==e&&(this.__previousDataProviderFilter=e,this.__keepOverlayOpened=!0,this.size=void 0,this.clearCache(),this.__keepOverlayOpened=!1)}_shouldFetchData(){return this.dataProvider?this.opened||this.filter&&this.filter.length:!1}_ensureFirstPage(e){!this._shouldFetchData()||!e||(this._forceNextRequest||this.size===void 0?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this.size>0&&this.__dataProviderController.ensureFlatIndexLoaded(0))}__onDataProviderPageRequested(){this.loading=!0}__onDataProviderPageLoaded(){const{rootCache:e}=this.__dataProviderController;e.items=[...e.items],this.__synchronizeControllerState(),!this.opened&&!this._isInputFocused()&&this._commitValue()}clearCache(){this.dataProvider&&(this.__dataProviderController.clearCache(),this.__synchronizeControllerState(),this._shouldFetchData()?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this._forceNextRequest=!0)}_sizeChanged(e){const{rootCache:t}=this.__dataProviderController;t.size!==e&&(t.size=e,t.items=[...t.items],this.__synchronizeControllerState())}_filteredItemsChanged(e){if(super._filteredItemsChanged(e),this.dataProvider&&e){const{rootCache:t}=this.__dataProviderController;t.items!==e&&(t.items=e,this.__synchronizeControllerState())}}__synchronizeControllerState(){if(this.__dataProviderInitialized&&this.dataProvider){const{rootCache:e}=this.__dataProviderController;this.size=e.size,this.filteredItems=e.items,this.loading=this.__dataProviderController.isLoading()}}_pageSizeChanged(e,t){if(Math.floor(e)!==e||e<1)throw this.pageSize=t,new Error("`pageSize` value must be an integer > 0");this.__dataProviderController.setPageSize(e),this.clearCache()}_dataProviderChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.dataProvider=t}),this.__dataProviderController.setDataProvider(e),this.clearCache()}_ensureItemsOrDataProvider(e){if(this.items!==void 0&&this.dataProvider!==void 0)throw e(),new Error("Using `items` and `dataProvider` together is not supported")}_warnDataProviderValue(e,t){if(e&&t!==""&&(this.selectedItem===void 0||this.selectedItem===null)){const 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 so(r){if(window.Vaadin&&window.Vaadin.templateRendererCallback){window.Vaadin.templateRendererCallback(r);return}r.querySelector("template")&&console.warn(`WARNING: <template> inside <${r.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`)}/**
4510
+ */function ro(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 Oa(r){return r!=null}function Ma(r,e){return r.findIndex(t=>t instanceof wt?!1:e(t))}const yd=r=>class extends Qr(et(Kn(Ht(Lt(Yr(cr(r))))))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Object,sync:!0},items:{type:Array,sync:!0,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},selectedItem:{type:Object,notify:!0,sync:!0},itemClassNameGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0},itemIdPath:{type:String,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_closeOnBlurIsPrevented:Boolean,_scroller:{type:Object,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"},__keepOverlayOpened:{type:Boolean,sync:!0}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading, __keepOverlayOpened)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, _theme, itemClassNameGenerator)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(e){super._inputElementChanged(e);const t=this._nativeInput;t&&(t.autocomplete="off",t.autocapitalize="off",t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-expanded",!!this.opened),t.setAttribute("spellcheck","false"),t.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown))}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const e=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront()})};this.addEventListener("mousedown",e),this.addEventListener("touchstart",e),so(this),this.addController(new ad(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(e=>{e.requestContentUpdate()}))}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(e,t,i){super._propertiesChanged(e,t,i),t.filter!==void 0&&this._filterChanged(t.filter)}updated(e){super.updated(e),e.has("filter")&&this._filterChanged(this.filter)}_initOverlay(){const e=this.$.overlay;e._comboBox=this,e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("opened-changed",t=>{this._overlayOpened=t.detail.value}),this._overlayElement=e}_initScroller(e){const t=document.createElement(`${this._tagNamePrefix}-scroller`);t.owner=e||this,t.getItemLabel=this._getItemLabel.bind(this),t.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const i=this._overlayElement;i.renderer=o=>{o.innerHTML||o.appendChild(t)},i.requestContentUpdate(),this._scroller=t}_updateScroller(e,t,i,o,n,s,a,l,h,d){if(e&&(i&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:i?t:[],opened:i,loading:o,selectedItem:n,itemIdPath:s,focusedIndex:a,renderer:l,theme:h,itemClassNameGenerator:d}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate()}catch(c){}}_openedOrItemsChanged(e,t,i,o){this._overlayOpened=e&&(o||i||!!(t&&t.length))}_overlayOpenedChanged(e,t){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):t&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(e,t){t!==void 0&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&Gn(this.inputElement)}_updateActiveDescendant(e){const t=this._nativeInput;if(!t)return;const i=this._getItemElements().find(o=>o.index===e);i?t.setAttribute("aria-activedescendant",i.id):t.removeAttribute("aria-activedescendant")}_openedChanged(e,t){if(t===void 0)return;e?!this._isInputFocused()&&!gn&&this.inputElement&&this.inputElement.focus():this._onClosed();const i=this._nativeInput;i&&(i.setAttribute("aria-expanded",!!e),e?i.setAttribute("aria-controls",this._scroller.id):i.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open()}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open())}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e)}_onKeyDown(e){super._onKeyDown(e),e.key==="ArrowDown"?(this._onArrowDown(),e.preventDefault()):e.key==="ArrowUp"&&(this._onArrowUp(),e.preventDefault())}_getItemLabel(e){let t=e&&this.itemLabelPath?Ri(this.itemLabelPath,e):void 0;return t==null&&(t=e?e.toString():""),t}_getItemValue(e){let t=e&&this.itemValuePath?Ri(this.itemValuePath,e):void 0;return t===void 0&&(t=e?e.toString():""),t}_onArrowDown(){if(this.opened){const e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const e=this._dropdownItems;e&&(this._focusedIndex=e.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(e),this._markAllSelectionRange()}}_setSelectionRange(e,t){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,t)}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(this._inputElementValue!==void 0){const e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e)}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close()}_onEnter(e){if(!this._hasValidInputValue()){e.preventDefault(),e.stopPropagation();return}this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){const e=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!e}_onEscape(e){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(e.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("click",()=>{gn&&!this._isInputFocused()&&document.activeElement.blur()}))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}_clearFilter(){this.filter=""}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this.selectedItem!==e&&(this.selectedItem=e),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(this._inputElementValue===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const e=[this.selectedItem,...this._dropdownItems||[]],t=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!t){const i=this._inputElementValue;this._lastCustomValue=i;const o=new CustomEvent("custom-value-set",{detail:i,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(o),o.defaultPrevented||(this.value=i)}else!this.allowCustomValue&&!this.opened&&t?this.value=this._getItemValue(t):this._revertInputValueToValue()}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(e){const t=this._inputElementValue,i={};this.filter===t?this._filterChanged(this.filter):i.filter=t,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(i.opened=!0),this.setProperties(i)}_onChange(e){e.stopPropagation()}_itemLabelPathChanged(e){typeof e!="string"&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem)}_selectedItemChanged(e){if(e==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const t=this._getItemValue(e);if(this.value!==t&&(this.value=t,this.value!==t))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e)}}_valueChanged(e,t){e===""&&t===void 0||(Oa(e)?(this._getItemValue(this.selectedItem)!==e&&this._selectItemForValue(e),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=e),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this._clearFilter(),this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.items=t}),e?this.filteredItems=e.slice(0):t&&(this.filteredItems=null)}_filteredItemsChanged(e){this._setDropdownItems(e)}_filterItems(e,t){return e&&e.filter(i=>(t=t?t.toString().toLowerCase():"",this._getItemLabel(i).toString().toLowerCase().indexOf(t)>-1))}_selectItemForValue(e){const t=this.__getItemIndexByValue(this.filteredItems,e),i=this.selectedItem;t>=0?this.selectedItem=this.filteredItems[t]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&i===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){const t=this._dropdownItems;this._dropdownItems=e;const i=t?t[this._focusedIndex]:null,o=this.__getItemIndexByValue(e,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&o>=0&&(this.selectedItem=e[o]);const n=this.__getItemIndexByValue(e,this._getItemValue(i));n>-1?this._focusedIndex=n:this._focusedIndex=this.__getItemIndexByLabel(e,this.filter)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(e){this._scroller&&this._scroller.scrollIntoView(e)}__getItemIndexByValue(e,t){return!e||!Oa(t)?-1:Ma(e,i=>this._getItemValue(i)===t)}__getItemIndexByLabel(e,t){return!e||!t?-1:Ma(e,i=>this._getItemLabel(i).toString().toLowerCase()===t.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof wt)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(e.detail.item),this.close())}_setFocused(e){if(super._setFocused(e),!e&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}if(Ji()){this._closeOrCommit();return}this.opened?this._overlayOpened||this.close():this._commitValue()}}_shouldRemoveFocus(e){return e.relatedTarget&&e.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:e.relatedTarget===this._overlayElement?(e.composedPath()[0].focus(),!1):!0}_onTouchend(e){!this.clearElement||e.composedPath()[0]!==this.clearElement||(e.preventDefault(),this._onClearAction())}};/**
4514
+ */function Da(i){return i!=null}function Oa(i,e){return i.findIndex(t=>t instanceof wt?!1:e(t))}const bd=i=>class extends Ji(Qe(Xn(Ht(Lt(qi(ui(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),ro(this),this.addController(new sd(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&&Un(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()&&!pn&&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?Lr(this.itemLabelPath,e):void 0;return t==null&&(t=e?e.toString():""),t}_getItemValue(e){let t=e&&this.itemValuePath?Lr(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",()=>{pn&&!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||(Da(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||!Da(t)?-1:Oa(e,r=>this._getItemValue(r)===t)}__getItemIndexByLabel(e,t){return!e||!t?-1:Oa(e,r=>this._getItemLabel(r).toString().toLowerCase()===t.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof wt)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(e.detail.item),this.close())}_setFocused(e){if(super._setFocused(e),!e&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}if(Xr()){this._closeOrCommit();return}this.opened?this._overlayOpened||this.close():this._commitValue()}}_shouldRemoveFocus(e){return e.relatedTarget&&e.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:e.relatedTarget===this._overlayElement?(e.composedPath()[0].focus(),!1):!0}_onTouchend(e){!this.clearElement||e.composedPath()[0]!==this.clearElement||(e.preventDefault(),this._onClearAction())}};/**
4515
4515
  * @license
4516
4516
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4517
4517
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4518
- */L("vaadin-combo-box",oo,{moduleId:"vaadin-combo-box-styles"});class tg extends bd(yd(Qv(io(le(Ve(Z)))))){static get is(){return"vaadin-combo-box"}static get template(){return K`
4518
+ */L("vaadin-combo-box",to,{moduleId:"vaadin-combo-box-styles"});class eg extends gd(bd(Jv(eo(he($e(Z)))))){static get is(){return"vaadin-combo-box"}static get template(){return K`
4519
4519
  <style>
4520
4520
  :host([opened]) {
4521
4521
  pointer-events: auto;
@@ -4560,11 +4560,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4560
4560
  ></vaadin-combo-box-overlay>
4561
4561
 
4562
4562
  <slot name="tooltip"></slot>
4563
- `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Xr(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Kr(this.inputElement,this._labelController)),this._tooltipController=new ht(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(e){e.stopPropagation(),super._onClearButtonClick(e)}_onHostClick(e){const t=e.composedPath();(t.includes(this._labelNode)||t.includes(this._positionTarget))&&super._onHostClick(e)}}G(tg);/**
4563
+ `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Yi(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Xi(this.inputElement,this._labelController)),this._tooltipController=new ht(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(e){e.stopPropagation(),super._onClearButtonClick(e)}_onHostClick(e){const t=e.composedPath();(t.includes(this._labelNode)||t.includes(this._positionTarget))&&super._onHostClick(e)}}G(eg);/**
4564
4564
  * @license
4565
4565
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4566
4566
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4567
- */const rg=k`
4567
+ */const tg=k`
4568
4568
  :host {
4569
4569
  font-size: var(--lumo-font-size-xxs);
4570
4570
  line-height: 1;
@@ -4653,7 +4653,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4653
4653
  -webkit-text-fill-color: var(--lumo-disabled-text-color);
4654
4654
  pointer-events: none;
4655
4655
  }
4656
- `;L("vaadin-multi-select-combo-box-chip",[Qn,rg],{moduleId:"lumo-multi-select-combo-box-chip"});/**
4656
+ `;L("vaadin-multi-select-combo-box-chip",[Jn,tg],{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/
@@ -4664,7 +4664,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4664
4664
  cursor: default;
4665
4665
  }
4666
4666
  }
4667
- `;L("vaadin-multi-select-combo-box-item",[no,hd,ig],{moduleId:"lumo-multi-select-combo-box-item"});L("vaadin-multi-select-combo-box-overlay",[ur,to,cd,dd,ud,k`
4667
+ `;L("vaadin-multi-select-combo-box-item",[io,ld,ig],{moduleId:"lumo-multi-select-combo-box-item"});L("vaadin-multi-select-combo-box-overlay",[pi,Jr,dd,hd,cd,k`
4668
4668
  :host {
4669
4669
  --_vaadin-multi-select-combo-box-items-container-border-width: var(--lumo-space-xs);
4670
4670
  --_vaadin-multi-select-combo-box-items-container-border-style: solid;
@@ -4673,7 +4673,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4673
4673
  :host([auto-expand-vertically]) {
4674
4674
  padding-block: var(--lumo-space-xs);
4675
4675
  }
4676
- `,{moduleId:"lumo-multi-select-combo-box-container"});const og=k`
4676
+ `,{moduleId:"lumo-multi-select-combo-box-container"});const rg=k`
4677
4677
  :host([has-value]) {
4678
4678
  padding-inline-start: 0;
4679
4679
  }
@@ -4726,11 +4726,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4726
4726
  color: var(--lumo-contrast-60pct);
4727
4727
  cursor: var(--lumo-clickable-cursor);
4728
4728
  }
4729
- `;L("vaadin-multi-select-combo-box",[Rt,og],{moduleId:"lumo-multi-select-combo-box"});/**
4729
+ `;L("vaadin-multi-select-combo-box",[Rt,rg],{moduleId:"lumo-multi-select-combo-box"});/**
4730
4730
  * @license
4731
4731
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4732
4732
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4733
- */class ng extends le(Z){static get is(){return"vaadin-multi-select-combo-box-chip"}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},label:{type:String},item:{type:Object}}}static get template(){return K`
4733
+ */class og extends he(Z){static get is(){return"vaadin-multi-select-combo-box-chip"}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},label:{type:String},item:{type:Object}}}static get template(){return K`
4734
4734
  <style>
4735
4735
  :host {
4736
4736
  display: inline-flex;
@@ -4759,7 +4759,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4759
4759
  </style>
4760
4760
  <div part="label">[[label]]</div>
4761
4761
  <div part="remove-button" on-click="_onRemoveClick"></div>
4762
- `}_onRemoveClick(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("item-removed",{detail:{item:this.item},bubbles:!0,composed:!0}))}}G(ng);/**
4762
+ `}_onRemoveClick(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("item-removed",{detail:{item:this.item},bubbles:!0,composed:!0}))}}G(og);/**
4763
4763
  * @license
4764
4764
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4765
4765
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4773,11 +4773,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4773
4773
  :host([auto-expand-vertically]) #wrapper {
4774
4774
  flex-wrap: wrap;
4775
4775
  }
4776
- `,{moduleId:"vaadin-multi-select-combo-box-container-styles"});let _i;class sg extends jh{static get is(){return"vaadin-multi-select-combo-box-container"}static get template(){if(!_i){_i=super.template.cloneNode(!0);const e=_i.content,t=e.querySelectorAll("slot"),i=document.createElement("div");i.setAttribute("id","wrapper"),e.insertBefore(i,t[2]),i.appendChild(t[0]),i.appendChild(t[1])}return _i}static get properties(){return{autoExpandVertically:{type:Boolean,reflectToAttribute:!0}}}}G(sg);/**
4776
+ `,{moduleId:"vaadin-multi-select-combo-box-container-styles"});let _r;class ng extends Wh{static get is(){return"vaadin-multi-select-combo-box-container"}static get template(){if(!_r){_r=super.template.cloneNode(!0);const e=_r.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 _r}static get properties(){return{autoExpandVertically:{type:Boolean,reflectToAttribute:!0}}}}G(ng);/**
4777
4777
  * @license
4778
4778
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4779
4779
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4780
- */class ag extends pd(le($e(Z))){static get is(){return"vaadin-multi-select-combo-box-item"}static get template(){return K`
4780
+ */class sg extends ud(he(Ve(Z))){static get is(){return"vaadin-multi-select-combo-box-item"}static get template(){return K`
4781
4781
  <style>
4782
4782
  :host {
4783
4783
  display: block;
@@ -4791,11 +4791,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4791
4791
  <div part="content">
4792
4792
  <slot></slot>
4793
4793
  </div>
4794
- `}}G(ag);/**
4794
+ `}}G(sg);/**
4795
4795
  * @license
4796
4796
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4797
4797
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4798
- */const lg=k`
4798
+ */const ag=k`
4799
4799
  #overlay {
4800
4800
  width: var(
4801
4801
  --vaadin-multi-select-combo-box-overlay-width,
@@ -4808,17 +4808,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4808
4808
  flex-direction: column;
4809
4809
  height: 100%;
4810
4810
  }
4811
- `;L("vaadin-multi-select-combo-box-overlay",[Zr,lg],{moduleId:"vaadin-multi-select-combo-box-overlay-styles"});class hg extends md(Jr($e(le(Z)))){static get is(){return"vaadin-multi-select-combo-box-overlay"}static get template(){return K`
4811
+ `;L("vaadin-multi-select-combo-box-overlay",[Ki,ag],{moduleId:"vaadin-multi-select-combo-box-overlay-styles"});class lg extends pd(Zi(Ve(he(Z)))){static get is(){return"vaadin-multi-select-combo-box-overlay"}static get template(){return K`
4812
4812
  <div id="backdrop" part="backdrop" hidden></div>
4813
4813
  <div part="overlay" id="overlay">
4814
4814
  <div part="loader"></div>
4815
4815
  <div part="content" id="content"><slot></slot></div>
4816
4816
  </div>
4817
- `}}G(hg);/**
4817
+ `}}G(lg);/**
4818
4818
  * @license
4819
4819
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4820
4820
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4821
- */class dg extends _d(Z){static get is(){return"vaadin-multi-select-combo-box-scroller"}static get template(){return K`
4821
+ */class hg extends _d(Z){static get is(){return"vaadin-multi-select-combo-box-scroller"}static get template(){return K`
4822
4822
  <style>
4823
4823
  :host {
4824
4824
  display: block;
@@ -4845,11 +4845,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4845
4845
  <div id="selector">
4846
4846
  <slot></slot>
4847
4847
  </div>
4848
- `}ready(){super.ready(),this.setAttribute("aria-multiselectable","true")}_isItemSelected(e,t,i){return e instanceof wt||this.owner.readonly?!1:this.owner._findIndex(e,this.owner.selectedItems,i)>-1}_updateElement(e,t){super._updateElement(e,t),e.toggleAttribute("readonly",this.owner.readonly)}}G(dg);/**
4848
+ `}ready(){super.ready(),this.setAttribute("aria-multiselectable","true")}_isItemSelected(e,t,r){return e instanceof wt||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)}}G(hg);/**
4849
4849
  * @license
4850
4850
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4851
4851
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4852
- */class cg extends bd(yd(le(Z))){static get is(){return"vaadin-multi-select-combo-box-internal"}static get template(){return K`
4852
+ */class dg extends gd(bd(he(Z))){static get is(){return"vaadin-multi-select-combo-box-internal"}static get template(){return K`
4853
4853
  <style>
4854
4854
  :host([opened]) {
4855
4855
  pointer-events: auto;
@@ -4867,15 +4867,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4867
4867
  no-vertical-overlap
4868
4868
  restore-focus-node="[[inputElement]]"
4869
4869
  ></vaadin-multi-select-combo-box-overlay>
4870
- `}static get properties(){return{filteredItems:{type:Array,notify:!0},keepFilter:{type:Boolean,value:!1},loading:{type:Boolean,notify:!0},size:{type:Number,notify:!0},selectedItems:{type:Array,value:()=>[]},selectedItemsOnTop:{type:Boolean,value:!1},lastFilter:{type:String,notify:!0},topGroup:{type:Array,observer:"_topGroupChanged"},_target:{type:Object}}}static get observers(){return["_readonlyChanged(readonly)"]}get clearElement(){return this.querySelector('[part="clear-button"]')}get _tagNamePrefix(){return"vaadin-multi-select-combo-box"}constructor(){super(),this.addEventListener("custom-value-set",this.__onCustomValueSet.bind(this))}open(){!this.disabled&&!(this.readonly&&this.selectedItems.length===0)&&(this.opened=!0)}ready(){super.ready(),this._target=this,this._toggleElement=this.querySelector(".toggle-button")}_readonlyChanged(){this._setDropdownItems(this.filteredItems)}_setDropdownItems(e){if(this.readonly){super._setDropdownItems(this.selectedItems);return}if(this.filter||!this.selectedItemsOnTop){super._setDropdownItems(e);return}if(e&&e.length&&this.topGroup&&this.topGroup.length){const t=e.filter(i=>this._comboBox._findIndex(i,this.topGroup,this.itemIdPath)===-1);super._setDropdownItems(this.topGroup.concat(t));return}super._setDropdownItems(e)}_topGroupChanged(e){e&&this._setDropdownItems(this.filteredItems)}_initScroller(){const e=this.getRootNode().host;this._comboBox=e,super._initScroller(e)}_onEnter(e){if(this.opened){if(e.preventDefault(),e.stopPropagation(),this.readonly)this.close();else if(this._hasValidInputValue()){const t=this._dropdownItems[this._focusedIndex];this._commitValue(),this._focusedIndex=this._dropdownItems.indexOf(t)}return}super._onEnter(e)}_onEscape(e){if(this.readonly){e.stopPropagation(),this.opened&&this.close();return}super._onEscape(e)}_clearFilter(){(!this.keepFilter||!this.opened)&&super._clearFilter()}_revertInputValueToValue(){super._revertInputValueToValue(),this.filter=""}_commitValue(){this.lastFilter=this.filter,super._commitValue()}_onArrowDown(){this.readonly?this.opened||this.open():super._onArrowDown()}_onArrowUp(){this.readonly?this.opened||this.open():super._onArrowUp()}_setFocused(e){e||(this._ignoreCommitValue=!0),super._setFocused(e),!e&&this.readonly&&!this._closeOnBlurIsPrevented&&this.close()}_onClosed(){this._ignoreCommitValue=!0,super._onClosed()}_detectAndDispatchChange(){if(this._ignoreCommitValue){this._ignoreCommitValue=!1,this.clear(),this._inputElementValue="";return}super._detectAndDispatchChange()}_overlaySelectedItemChanged(e){e.stopPropagation(),!this.readonly&&(e.detail.item instanceof wt||this.opened&&(this.lastFilter=this.filter,this.dispatchEvent(new CustomEvent("combo-box-item-selected",{detail:{item:e.detail.item}}))))}_shouldFetchData(){return this.readonly?!1:super._shouldFetchData()}clearCache(){this.readonly||super.clearCache()}__onCustomValueSet(e){this._ignoreCommitValue&&e.stopImmediatePropagation()}}G(cg);/**
4870
+ `}static get properties(){return{filteredItems:{type:Array,notify:!0},keepFilter:{type:Boolean,value:!1},loading:{type:Boolean,notify:!0},size:{type:Number,notify:!0},selectedItems:{type:Array,value:()=>[]},selectedItemsOnTop:{type:Boolean,value:!1},lastFilter:{type:String,notify:!0},topGroup:{type:Array,observer:"_topGroupChanged"},_target:{type:Object}}}static get observers(){return["_readonlyChanged(readonly)"]}get clearElement(){return this.querySelector('[part="clear-button"]')}get _tagNamePrefix(){return"vaadin-multi-select-combo-box"}constructor(){super(),this.addEventListener("custom-value-set",this.__onCustomValueSet.bind(this))}open(){!this.disabled&&!(this.readonly&&this.selectedItems.length===0)&&(this.opened=!0)}ready(){super.ready(),this._target=this,this._toggleElement=this.querySelector(".toggle-button")}_readonlyChanged(){this._setDropdownItems(this.filteredItems)}_setDropdownItems(e){if(this.readonly){super._setDropdownItems(this.selectedItems);return}if(this.filter||!this.selectedItemsOnTop){super._setDropdownItems(e);return}if(e&&e.length&&this.topGroup&&this.topGroup.length){const t=e.filter(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 wt||this.opened&&(this.lastFilter=this.filter,this.dispatchEvent(new CustomEvent("combo-box-item-selected",{detail:{item:e.detail.item}}))))}_shouldFetchData(){return this.readonly?!1:super._shouldFetchData()}clearCache(){this.readonly||super.clearCache()}__onCustomValueSet(e){this._ignoreCommitValue&&e.stopImmediatePropagation()}}G(dg);/**
4871
4871
  * @license
4872
4872
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4873
4873
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4874
- */const vi=new ResizeObserver(r=>{setTimeout(()=>{r.forEach(e=>{e.target.resizables?e.target.resizables.forEach(t=>{t._onResize(e.contentRect)}):e.target._onResize(e.contentRect)})})}),xd=ve(r=>class extends r{get _observeParent(){return!1}connectedCallback(){if(super.connectedCallback(),vi.observe(this),this._observeParent){const e=this.parentNode instanceof ShadowRoot?this.parentNode.host:this.parentNode;e.resizables||(e.resizables=new Set,vi.observe(e)),e.resizables.add(this),this.__parent=e}}disconnectedCallback(){super.disconnectedCallback(),vi.unobserve(this);const e=this.__parent;if(this._observeParent&&e){const t=e.resizables;t&&(t.delete(this),t.size===0&&vi.unobserve(e)),this.__parent=null}}_onResize(e){}});/**
4874
+ */const fr=new ResizeObserver(i=>{setTimeout(()=>{i.forEach(e=>{e.target.resizables?e.target.resizables.forEach(t=>{t._onResize(e.contentRect)}):e.target._onResize(e.contentRect)})})}),yd=ve(i=>class extends i{get _observeParent(){return!1}connectedCallback(){if(super.connectedCallback(),fr.observe(this),this._observeParent){const e=this.parentNode instanceof ShadowRoot?this.parentNode.host:this.parentNode;e.resizables||(e.resizables=new Set,fr.observe(e)),e.resizables.add(this),this.__parent=e}}disconnectedCallback(){super.disconnectedCallback(),fr.unobserve(this);const e=this.__parent;if(this._observeParent&&e){const t=e.resizables;t&&(t.delete(this),t.size===0&&fr.unobserve(e)),this.__parent=null}}_onResize(e){}});/**
4875
4875
  * @license
4876
4876
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4877
4877
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4878
- */const ug=k`
4878
+ */const cg=k`
4879
4879
  :host {
4880
4880
  --input-min-width: var(--vaadin-multi-select-combo-box-input-min-width, 4em);
4881
4881
  --_chip-min-width: var(--vaadin-multi-select-combo-box-chip-min-width, 50px);
@@ -4913,7 +4913,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4913
4913
  :host([auto-expand-horizontally]) [class$='container'] {
4914
4914
  width: auto;
4915
4915
  }
4916
- `;L("vaadin-multi-select-combo-box",[oo,ug],{moduleId:"vaadin-multi-select-combo-box-styles"});class pg extends xd(io(le(Ve(Z)))){static get is(){return"vaadin-multi-select-combo-box"}static get template(){return K`
4916
+ `;L("vaadin-multi-select-combo-box",[to,cg],{moduleId:"vaadin-multi-select-combo-box-styles"});class ug extends yd(eo(he($e(Z)))){static get is(){return"vaadin-multi-select-combo-box"}static get template(){return K`
4917
4917
  <div class="vaadin-multi-select-combo-box-container">
4918
4918
  <div part="label">
4919
4919
  <slot name="label"></slot>
@@ -4989,7 +4989,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4989
4989
  color: transparent !important;
4990
4990
  forced-color-adjust: none;
4991
4991
  }
4992
- `]}get clearElement(){return this.$.clearButton}get _chips(){return[...this.querySelectorAll('[slot="chip"]')]}get _hasValue(){return this.selectedItems&&this.selectedItems.length>0}ready(){super.ready(),this.addController(new Xr(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Kr(this.inputElement,this._labelController)),this._tooltipController=new ht(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._inputField=this.shadowRoot.querySelector('[part="input-field"]'),this._overflowController=new Ne(this,"overflow","vaadin-multi-select-combo-box-chip",{initializer:e=>{e.addEventListener("mousedown",t=>this._preventBlur(t)),this._overflow=e}}),this.addController(this._overflowController),this.__updateChips(),so(this)}checkValidity(){return this.required&&!this.readonly?this._hasValue:!0}clear(){this.__updateSelection([]),Ei(this.i18n.cleared)}clearCache(){this.$&&this.$.comboBox&&this.$.comboBox.clearCache()}requestContentUpdate(){this.$&&this.$.comboBox&&this.$.comboBox.requestContentUpdate()}_disabledChanged(e,t){super._disabledChanged(e,t),(e||t)&&this.__updateChips()}_inputElementChanged(e){super._inputElementChanged(e),e&&this.$.comboBox._setInputElement(e)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&(this._focusedChipIndex=-1,this.validate())}_onResize(){this.__updateChips()}_delegateAttribute(e,t){if(this.stateTarget){if(e==="required"){this._delegateAttribute("aria-required",t?"true":!1);return}super._delegateAttribute(e,t)}}_autoExpandHorizontallyChanged(e,t){(e||t)&&this.__updateChips()}_autoExpandVerticallyChanged(e,t){(e||t)&&this.__updateChips()}_clearButtonVisibleChanged(e,t){(e||t)&&this.__updateChips()}_onFilteredItemsChanged(e){const{value:t}=e.detail;(Array.isArray(t)||t==null)&&(this.filteredItems=t)}_readonlyChanged(e,t){(e||t)&&this.__updateChips(),this.dataProvider&&this.clearCache()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.__updateChips()}_pageSizeChanged(e,t){(Math.floor(e)!==e||e<=0)&&(this.pageSize=t,console.error('"pageSize" value must be an integer > 0')),this.$.comboBox.pageSize=this.pageSize}_placeholderChanged(e){const t=this.__tmpA11yPlaceholder;t!==e&&(this.__savedPlaceholder=e,t&&(this.placeholder=t))}_selectedItemsChanged(e){if(this._toggleHasValue(this._hasValue),this._hasValue){const t=this._mergeItemLabels(e);this.__tmpA11yPlaceholder===void 0&&(this.__savedPlaceholder=this.placeholder),this.__tmpA11yPlaceholder=t,this.placeholder=t}else this.__tmpA11yPlaceholder!==void 0&&(delete this.__tmpA11yPlaceholder,this.placeholder=this.__savedPlaceholder);this.__updateChips(),this.requestContentUpdate(),this.opened&&this.$.comboBox.$.overlay._updateOverlayWidth()}_getItemLabel(e){return this.$.comboBox._getItemLabel(e)}_mergeItemLabels(e){return e.map(t=>this._getItemLabel(t)).join(", ")}_findIndex(e,t,i){if(i&&e){for(let o=0;o<t.length;o++)if(t[o]&&t[o][i]===e[i])return o;return-1}return t.indexOf(e)}__clearInternalValue(e=!1){!this.keepFilter||e?(this.filter="",this.$.comboBox.clear()):(this.$.comboBox.clear(),this._inputElementValue=this.filter)}__announceItem(e,t,i){const o=t?"selected":"deselected",n=this.i18n.total.replace("{count}",i||0);Ei(`${e} ${this.i18n[o]} ${n}`)}__removeItem(e){const t=[...this.selectedItems];t.splice(t.indexOf(e),1),this.__updateSelection(t);const i=this._getItemLabel(e);this.__announceItem(i,!1,t.length)}__selectItem(e){const t=[...this.selectedItems],i=this._findIndex(e,t,this.itemIdPath),o=this._getItemLabel(e);let n=!1;if(i!==-1){const s=this._lastFilter;if(s&&s.toLowerCase()===o.toLowerCase()){this.__clearInternalValue();return}t.splice(i,1)}else t.push(e),n=!0;this.__updateSelection(t),this.__clearInternalValue(),this.__announceItem(o,n,t.length)}__updateSelection(e){this.selectedItems=e,this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}__updateTopGroup(e,t,i){e?i||(this._topGroup=[...t]):this._topGroup=[]}__createChip(e){const t=document.createElement("vaadin-multi-select-combo-box-chip");t.setAttribute("slot","chip"),t.item=e,t.disabled=this.disabled,t.readonly=this.readonly;const i=this._getItemLabel(e);return t.label=i,t.setAttribute("title",i),typeof this.itemClassNameGenerator=="function"&&(t.className=this.itemClassNameGenerator(e)),t.addEventListener("item-removed",o=>this._onItemRemoved(o)),t.addEventListener("mousedown",o=>this._preventBlur(o)),t}__getOverflowWidth(){const e=this._overflow;e.style.visibility="hidden",e.removeAttribute("hidden");const t=e.getAttribute("count");e.setAttribute("count","99");const i=getComputedStyle(e),o=e.clientWidth+parseInt(i.marginInlineStart);return e.setAttribute("count",t),e.setAttribute("hidden",""),e.style.visibility="",o}__updateChips(){if(!this._inputField||!this.inputElement)return;this._chips.forEach(s=>{s.remove()});const e=[...this.selectedItems],t=this._inputField.$.wrapper.clientWidth,i=parseInt(getComputedStyle(this.inputElement).flexBasis);let o=t-i;e.length>1&&(o-=this.__getOverflowWidth());const n=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width"));if(this.autoExpandHorizontally){const s=[];for(let h=e.length-1,d=null;h>=0;h--){const c=this.__createChip(e[h]);this.insertBefore(c,d),d=c,s.unshift(c)}const a=[],l=this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth;if(!this.autoExpandVertically&&l<i){for(;s.length>1;){s.pop().remove(),a.unshift(e.pop());const h=a.length>0?i+this.__getOverflowWidth():i;if(this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth>=h)break}s.length===1&&(s[0].style.maxWidth=`${Math.max(n,o)}px`)}this._overflowItems=a;return}for(let s=e.length-1,a=null;s>=0;s--){const l=this.__createChip(e[s]);if(this.insertBefore(l,a),!this.autoExpandVertically&&this.$.chips.clientWidth>o)if(a===null)l.style.maxWidth=`${Math.max(n,o)}px`;else{l.remove();break}e.pop(),a=l}this._overflowItems=e}__updateOverflowChip(e,t,i,o){if(e){const n=t.length;e.label=`${n}`,e.setAttribute("count",`${n}`),e.setAttribute("title",this._mergeItemLabels(t)),e.toggleAttribute("hidden",n===0),e.disabled=i,e.readonly=o}}_onClearButtonTouchend(e){e.preventDefault(),e.stopPropagation(),this.clear()}_onClearButtonClick(e){e.stopPropagation(),this.clear()}_onChange(e){e.stopPropagation()}_onEscape(e){this.clearButtonVisible&&this.selectedItems&&this.selectedItems.length&&(e.stopPropagation(),this.selectedItems=[])}_onKeyDown(e){super._onKeyDown(e);const t=this._chips;if(!this.readonly&&t.length>0)switch(e.key){case"Backspace":this._onBackSpace(t);break;case"ArrowLeft":this._onArrowLeft(t,e);break;case"ArrowRight":this._onArrowRight(t,e);break;default:this._focusedChipIndex=-1;break}}_onArrowLeft(e,t){if(this.inputElement.selectionStart!==0)return;const i=this._focusedChipIndex;i!==-1&&t.preventDefault();let o;this.__isRTL?i===e.length-1?o=-1:i>-1&&(o=i+1):i===-1?o=e.length-1:i>0&&(o=i-1),o!==void 0&&(this._focusedChipIndex=o)}_onArrowRight(e,t){if(this.inputElement.selectionStart!==0)return;const i=this._focusedChipIndex;i!==-1&&t.preventDefault();let o;this.__isRTL?i===-1?o=e.length-1:i>0&&(o=i-1):i===e.length-1?o=-1:i>-1&&(o=i+1),o!==void 0&&(this._focusedChipIndex=o)}_onBackSpace(e){if(this.inputElement.selectionStart!==0)return;const t=this._focusedChipIndex;t===-1?this._focusedChipIndex=e.length-1:(this.__removeItem(e[t].item),this._focusedChipIndex=-1)}_focusedChipIndexChanged(e,t){if(e>-1||t>-1){const i=this._chips;if(i.forEach((o,n)=>{o.toggleAttribute("focused",n===e)}),e>-1){const o=i[e].item,n=this._getItemLabel(o);Ei(`${n} ${this.i18n.focused}`)}}}_onComboBoxChange(){const e=this.$.comboBox.selectedItem;e&&this.__selectItem(e)}_onComboBoxItemSelected(e){this.__selectItem(e.detail.item)}_onCustomValueSet(e){e.preventDefault(),e.stopPropagation(),this.__clearInternalValue(!0),this.dispatchEvent(new CustomEvent("custom-value-set",{detail:e.detail,composed:!0,bubbles:!0}))}_onItemRemoved(e){this.__removeItem(e.detail.item)}_preventBlur(e){e.preventDefault()}}G(pg);L("vaadin-notification-card",k`
4992
+ `]}get clearElement(){return this.$.clearButton}get _chips(){return[...this.querySelectorAll('[slot="chip"]')]}get _hasValue(){return this.selectedItems&&this.selectedItems.length>0}ready(){super.ready(),this.addController(new Yi(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Xi(this.inputElement,this._labelController)),this._tooltipController=new ht(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._inputField=this.shadowRoot.querySelector('[part="input-field"]'),this._overflowController=new Ne(this,"overflow","vaadin-multi-select-combo-box-chip",{initializer:e=>{e.addEventListener("mousedown",t=>this._preventBlur(t)),this._overflow=e}}),this.addController(this._overflowController),this.__updateChips(),ro(this)}checkValidity(){return this.required&&!this.readonly?this._hasValue:!0}clear(){this.__updateSelection([]),Cr(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);Cr(`${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);Cr(`${n} ${this.i18n.focused}`)}}}_onComboBoxChange(){const e=this.$.comboBox.selectedItem;e&&this.__selectItem(e)}_onComboBoxItemSelected(e){this.__selectItem(e.detail.item)}_onCustomValueSet(e){e.preventDefault(),e.stopPropagation(),this.__clearInternalValue(!0),this.dispatchEvent(new CustomEvent("custom-value-set",{detail:e.detail,composed:!0,bubbles:!0}))}_onItemRemoved(e){this.__removeItem(e.detail.item)}_preventBlur(e){e.preventDefault()}}G(ug);L("vaadin-notification-card",k`
4993
4993
  :host {
4994
4994
  position: relative;
4995
4995
  margin: var(--lumo-space-s);
@@ -5207,11 +5207,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5207
5207
  * @license
5208
5208
  * Copyright 2020 Google LLC
5209
5209
  * SPDX-License-Identifier: BSD-3-Clause
5210
- */const mg=(r,e)=>(r==null?void 0:r._$litType$)!==void 0;/**
5210
+ */const pg=(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 fg extends Xh(le(Ve(Z))){static get template(){return K`
5214
+ */class mg extends Yh(he($e(Z))){static get template(){return K`
5215
5215
  <style>
5216
5216
  :host {
5217
5217
  position: fixed;
@@ -5278,7 +5278,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5278
5278
  <div region="bottom-end"><slot name="bottom-end"></slot></div>
5279
5279
  </div>
5280
5280
  <div region="bottom-stretch"><slot name="bottom-stretch"></slot></div>
5281
- `}static get is(){return"vaadin-notification-container"}static get properties(){return{opened:{type:Boolean,value:!1,observer:"_openedChanged"}}}constructor(){super(),this._boundVaadinOverlayClose=this._onVaadinOverlayClose.bind(this),ts&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}_openedChanged(e){e?(document.body.appendChild(this),document.addEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))):(document.body.removeChild(this),document.removeEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener))}_detectIosNavbar(){const e=window.innerHeight,t=window.innerWidth>e,i=document.documentElement.clientHeight;t&&i>e?this.style.bottom=`${i-e}px`:this.style.bottom="0"}_onVaadinOverlayClose(e){const t=e.detail.sourceEvent;t&&t.composedPath().indexOf(this)>=0&&e.preventDefault()}}class _g extends le(Z){static get template(){return K`
5281
+ `}static get is(){return"vaadin-notification-container"}static get properties(){return{opened:{type:Boolean,value:!1,observer:"_openedChanged"}}}constructor(){super(),this._boundVaadinOverlayClose=this._onVaadinOverlayClose.bind(this),es&&(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 _g extends he(Z){static get template(){return K`
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 st extends Qr(Xi(Ve(Z))){static get template(){return K`
5303
+ `}static get is(){return"vaadin-notification-card"}ready(){super.ready(),this.setAttribute("role","alert"),this.setAttribute("aria-live","polite")}}class nt extends Ji(Gr($e(Z))){static get template(){return K`
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 mg(e)?st._createAndShowNotification(i=>{ql(e,i)},t):st._createAndShowNotification(i=>{i.innerText=e},t)}static _createAndShowNotification(e,t){const i=document.createElement(st.is);return t&&Number.isFinite(t.duration)&&(i.duration=t.duration),t&&t.position&&(i.position=t.position),t&&t.theme&&i.setAttribute("theme",t.theme),i.renderer=e,document.body.appendChild(i),i.opened=!0,i.addEventListener("opened-changed",o=>{o.detail.value||i.remove()}),i}get _container(){return st._container||(st._container=document.createElement("vaadin-notification-container"),document.body.appendChild(st._container)),st._container}get _card(){return this._overlayElement}ready(){super.ready(),this._overlayElement=this.shadowRoot.querySelector("vaadin-notification-card"),so(this)}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask(()=>{this.isConnected||(this.opened=!1)})}requestContentUpdate(){this.renderer&&this.renderer(this._card,this)}_rendererChanged(e,t,i){if(!i)return;const o=this._oldRenderer!==e;this._oldRenderer=e,o&&(i.innerHTML="",delete i._$litPart$),t&&(this._didAnimateNotificationAppend||this._animatedAppendNotificationCard(),this.requestContentUpdate())}open(){this.opened=!0}close(){this.opened=!1}_openedChanged(e){e?(this._container.opened=!0,this._animatedAppendNotificationCard()):this._card&&this._closeNotificationCard()}__cleanUpOpeningClosingState(){this._card.removeAttribute("opening"),this._card.removeAttribute("closing"),this._card.removeEventListener("animationend",this.__animationEndListener)}_animatedAppendNotificationCard(){this._card?(this.__cleanUpOpeningClosingState(),this._card.setAttribute("opening",""),this._appendNotificationCard(),this.__animationEndListener=()=>this.__cleanUpOpeningClosingState(),this._card.addEventListener("animationend",this.__animationEndListener),this._didAnimateNotificationAppend=!0):this._didAnimateNotificationAppend=!1}_appendNotificationCard(){if(this._card){if(!this._container.shadowRoot.querySelector(`slot[name="${this.position}"]`)){console.warn(`Invalid alignment parameter provided: position=${this.position}`);return}this._container.bringToFront(),this._card.slot=this.position,this._container.firstElementChild&&/top/u.test(this.position)?this._container.insertBefore(this._card,this._container.firstElementChild):this._container.appendChild(this._card)}}_removeNotificationCard(){this._card.parentNode&&this._card.parentNode.removeChild(this._card),this._card.removeAttribute("closing"),this._container.opened=!!this._container.firstElementChild,this.dispatchEvent(new CustomEvent("closed"))}_closeNotificationCard(){this._durationTimeoutId&&clearTimeout(this._durationTimeoutId),this._animatedRemoveNotificationCard()}_animatedRemoveNotificationCard(){this.__cleanUpOpeningClosingState(),this._card.setAttribute("closing","");const e=getComputedStyle(this._card).getPropertyValue("animation-name");e&&e!=="none"?(this.__animationEndListener=()=>{this._removeNotificationCard(),this.__cleanUpOpeningClosingState()},this._card.addEventListener("animationend",this.__animationEndListener)):this._removeNotificationCard()}_positionChanged(){this.opened&&this._animatedAppendNotificationCard()}_durationChanged(e,t){t&&(clearTimeout(this._durationTimeoutId),e>0&&(this._durationTimeoutId=setTimeout(()=>this.close(),e)))}}G(fg);G(_g);G(st);const wd=k`
5310
+ `}static get is(){return"vaadin-notification"}static get properties(){return{duration:{type:Number,value:5e3},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},position:{type:String,value:"bottom-start",observer:"_positionChanged"},renderer:Function}}static get observers(){return["_durationChanged(duration, opened)","_rendererChanged(renderer, opened, _overlayElement)"]}static show(e,t){return pg(e)?nt._createAndShowNotification(r=>{ql(e,r)},t):nt._createAndShowNotification(r=>{r.innerText=e},t)}static _createAndShowNotification(e,t){const r=document.createElement(nt.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 nt._container||(nt._container=document.createElement("vaadin-notification-container"),document.body.appendChild(nt._container)),nt._container}get _card(){return this._overlayElement}ready(){super.ready(),this._overlayElement=this.shadowRoot.querySelector("vaadin-notification-card"),ro(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)))}}G(mg);G(_g);G(nt);const xd=k`
5311
5311
  :host {
5312
5312
  -webkit-tap-highlight-color: transparent;
5313
5313
  --_lumo-item-selected-icon-display: var(--_lumo-list-box-item-selected-icon-display, block);
@@ -5321,11 +5321,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5321
5321
  margin: var(--lumo-space-s) var(--lumo-border-radius-m);
5322
5322
  background-color: var(--lumo-contrast-10pct);
5323
5323
  }
5324
- `;L("vaadin-list-box",wd,{moduleId:"lumo-list-box"});/**
5324
+ `;L("vaadin-list-box",xd,{moduleId:"lumo-list-box"});/**
5325
5325
  * @license
5326
5326
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5327
5327
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5328
- */L("vaadin-select-item",no,{moduleId:"lumo-select-item"});L("vaadin-select-list-box",wd,{moduleId:"lumo-select-list-box"});const vg=k`
5328
+ */L("vaadin-select-item",io,{moduleId:"lumo-select-item"});L("vaadin-select-list-box",xd,{moduleId:"lumo-select-list-box"});const fg=k`
5329
5329
  :host(:not([theme*='align'])) ::slotted([slot='value']) {
5330
5330
  text-align: start;
5331
5331
  }
@@ -5368,7 +5368,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5368
5368
  --_lumo-selected-item-height: var(--lumo-size-s);
5369
5369
  --_lumo-selected-item-padding: 0;
5370
5370
  }
5371
- `;L("vaadin-select",[Rt,vg],{moduleId:"lumo-select"});L("vaadin-select-value-button",k`
5371
+ `;L("vaadin-select",[Rt,fg],{moduleId:"lumo-select"});L("vaadin-select-value-button",k`
5372
5372
  :host {
5373
5373
  font-family: var(--lumo-font-family);
5374
5374
  font-size: var(--vaadin-input-field-value-font-size, var(--lumo-font-size-m));
@@ -5387,7 +5387,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5387
5387
  ::slotted(*:hover) {
5388
5388
  background-color: transparent;
5389
5389
  }
5390
- `,{moduleId:"lumo-select-value-button"});const gg=k`
5390
+ `,{moduleId:"lumo-select-value-button"});const vg=k`
5391
5391
  :host {
5392
5392
  --_lumo-item-selected-icon-display: block;
5393
5393
  }
@@ -5423,15 +5423,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5423
5423
  :host([theme~='align-center']) {
5424
5424
  text-align: center;
5425
5425
  }
5426
- `;L("vaadin-select-overlay",[Jn,gg],{moduleId:"lumo-select-overlay"});/**
5426
+ `;L("vaadin-select-overlay",[Zn,vg],{moduleId:"lumo-select-overlay"});/**
5427
5427
  * @license
5428
5428
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5429
5429
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5430
- */const Cd=r=>class extends Wn(Ht(r)){static get properties(){return{_hasVaadinItemMixin:{value:!0},selected:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_selectedChanged"},_value:String}}get _activeKeys(){return["Enter"," "]}get value(){return this._value!==void 0?this._value:this.textContent.trim()}set value(e){this._value=e}ready(){super.ready();const e=this.getAttribute("value");e!==null&&(this.value=e)}focus(){this.disabled||(super.focus(),this._setFocused(!0))}_shouldSetActive(e){return!this.disabled&&!(e.type==="keydown"&&e.defaultPrevented)}_selectedChanged(e){this.setAttribute("aria-selected",e)}_disabledChanged(e){super._disabledChanged(e),e&&(this.selected=!1,this.blur())}_onKeyDown(e){super._onKeyDown(e),this._activeKeys.includes(e.key)&&!e.defaultPrevented&&(e.preventDefault(),this.click())}};/**
5430
+ */const wd=i=>class extends $n(Ht(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 bg extends Cd(le($e(Z))){static get is(){return"vaadin-select-item"}static get template(){return K`
5434
+ */class gg extends wd(he(Ve(Z))){static get is(){return"vaadin-select-item"}static get template(){return K`
5435
5435
  <style>
5436
5436
  :host {
5437
5437
  display: inline-block;
@@ -5445,23 +5445,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5445
5445
  <div part="content">
5446
5446
  <slot></slot>
5447
5447
  </div>
5448
- `}ready(){super.ready(),this.setAttribute("role","option")}}G(bg);/**
5448
+ `}ready(){super.ready(),this.setAttribute("role","option")}}G(gg);/**
5449
5449
  * @license
5450
5450
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
5451
5451
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5452
- */function Ed(r,e){const{scrollLeft:t}=r;return e!=="rtl"?t:r.scrollWidth-r.clientWidth+t}function yg(r,e,t){e!=="rtl"?r.scrollLeft=t:r.scrollLeft=r.clientWidth-r.scrollWidth+t}/**
5452
+ */function Cd(i,e){const{scrollLeft:t}=i;return e!=="rtl"?t:i.scrollWidth-i.clientWidth+t}function bg(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 xg=r=>class extends Lt(r){get focused(){return(this._getItems()||[]).find(Gn)}get _vertical(){return!0}focus(){const e=this._getItems();if(Array.isArray(e)){const t=this._getAvailableIndex(e,0,null,i=>!fn(i));t>=0&&this._focus(t)}}_getItems(){return Array.from(this.children)}_onKeyDown(e){if(super._onKeyDown(e),e.metaKey||e.ctrlKey)return;const{key:t}=e,i=this._getItems()||[],o=i.indexOf(this.focused);let n,s;const a=!this._vertical&&this.getAttribute("dir")==="rtl"?-1:1;this.__isPrevKey(t)?(s=-a,n=o-a):this.__isNextKey(t)?(s=a,n=o+a):t==="Home"?(s=1,n=0):t==="End"&&(s=-1,n=i.length-1),n=this._getAvailableIndex(i,n,s,l=>!fn(l)),n>=0&&(e.preventDefault(),this._focus(n,!0))}__isPrevKey(e){return this._vertical?e==="ArrowUp":e==="ArrowLeft"}__isNextKey(e){return this._vertical?e==="ArrowDown":e==="ArrowRight"}_focus(e,t=!1){const i=this._getItems();this._focusItem(i[e],t)}_focusItem(e){e&&(e.focus(),e.setAttribute("focus-ring",""))}_getAvailableIndex(e,t,i,o){const n=e.length;let s=t;for(let a=0;typeof s=="number"&&a<n;a+=1,s+=i||1){s<0?s=n-1:s>=n&&(s=0);const l=e[s];if(!l.hasAttribute("disabled")&&this.__isMatchingItem(l,o))return s}return-1}__isMatchingItem(e,t){return typeof t=="function"?t(e):!0}};/**
5456
+ */const yg=i=>class extends Lt(i){get focused(){return(this._getItems()||[]).find(Un)}get _vertical(){return!0}focus(){const e=this._getItems();if(Array.isArray(e)){const t=this._getAvailableIndex(e,0,null,r=>!dn(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=>!dn(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}};/**
5457
5457
  * @license
5458
5458
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5459
5459
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5460
- */const Sd=r=>class extends xg(r){static get properties(){return{disabled:{type:Boolean,value:!1,reflectToAttribute:!0},selected:{type:Number,reflectToAttribute:!0,notify:!0},orientation:{type:String,reflectToAttribute:!0,value:""},items:{type:Array,readOnly:!0,notify:!0},_searchBuf:{type:String,value:""}}}static get observers(){return["_enhanceItems(items, orientation, selected, disabled)"]}get _isRTL(){return!this._vertical&&this.getAttribute("dir")==="rtl"}get _scrollerElement(){return console.warn(`Please implement the '_scrollerElement' property in <${this.localName}>`),this}get _vertical(){return this.orientation!=="horizontal"}focus(){this._observer&&this._observer.flush();const e=Array.isArray(this.items)?this.items:[],t=this._getAvailableIndex(e,0,null,i=>i.tabIndex===0&&!fn(i));t>=0?this._focus(t):super.focus()}ready(){super.ready(),this.addEventListener("click",t=>this._onClick(t));const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Rn(e,()=>{this._setItems(this._filterItems(Th(this)))})}_getItems(){return this.items}_enhanceItems(e,t,i,o){if(!o&&e){this.setAttribute("aria-orientation",t||"vertical"),e.forEach(s=>{t?s.setAttribute("orientation",t):s.removeAttribute("orientation")}),this._setFocusable(i<0||!i?0:i);const n=e[i];e.forEach(s=>{s.selected=s===n}),n&&!n.disabled&&this._scrollToItem(i)}}_filterItems(e){return e.filter(t=>t._hasVaadinItemMixin)}_onClick(e){if(e.metaKey||e.shiftKey||e.ctrlKey||e.defaultPrevented)return;const t=this._filterItems(e.composedPath())[0];let i;t&&!t.disabled&&(i=this.items.indexOf(t))>=0&&(this.selected=i)}_searchKey(e,t){this._searchReset=Fe.debounce(this._searchReset,yt.after(500),()=>{this._searchBuf=""}),this._searchBuf+=t.toLowerCase(),this.items.some(o=>this.__isMatchingKey(o))||(this._searchBuf=t.toLowerCase());const i=this._searchBuf.length===1?e+1:e;return this._getAvailableIndex(this.items,i,1,o=>this.__isMatchingKey(o)&&getComputedStyle(o).display!=="none")}__isMatchingKey(e){return e.textContent.replace(/[^\p{L}\p{Nd}]/gu,"").toLowerCase().startsWith(this._searchBuf)}_onKeyDown(e){if(e.metaKey||e.ctrlKey)return;const t=e.key,i=this.items.indexOf(this.focused);if(/[\p{L}\p{Nd}]/u.test(t)&&t.length===1){const o=this._searchKey(i,t);o>=0&&this._focus(o);return}super._onKeyDown(e)}_isItemHidden(e){return getComputedStyle(e).display==="none"}_setFocusable(e){e=this._getAvailableIndex(this.items,e,1);const t=this.items[e];this.items.forEach(i=>{i.tabIndex=i===t?0:-1})}_focus(e){this.items.forEach((t,i)=>{t.focused=i===e}),this._setFocusable(e),this._scrollToItem(e),super._focus(e)}_scrollToItem(e){const t=this.items[e];if(!t)return;const i=this._vertical?["top","bottom"]:this._isRTL?["right","left"]:["left","right"],o=this._scrollerElement.getBoundingClientRect(),n=(this.items[e+1]||t).getBoundingClientRect(),s=(this.items[e-1]||t).getBoundingClientRect();let a=0;!this._isRTL&&n[i[1]]>=o[i[1]]||this._isRTL&&n[i[1]]<=o[i[1]]?a=n[i[1]]-o[i[1]]:(!this._isRTL&&s[i[0]]<=o[i[0]]||this._isRTL&&s[i[0]]>=o[i[0]])&&(a=s[i[0]]-o[i[0]]),this._scroll(a)}_scroll(e){if(this._vertical)this._scrollerElement.scrollTop+=e;else{const t=this.getAttribute("dir")||"ltr",i=Ed(this._scrollerElement,t)+e;yg(this._scrollerElement,t,i)}}};/**
5460
+ */const Ed=i=>class extends yg(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&&!dn(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 Bn(e,()=>{this._setItems(this._filterItems(Th(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=Fe.debounce(this._searchReset,yt.after(500),()=>{this._searchBuf=""}),this._searchBuf+=t.toLowerCase(),this.items.some(o=>this.__isMatchingKey(o))||(this._searchBuf=t.toLowerCase());const 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=Cd(this._scrollerElement,t)+e;bg(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 wg extends Sd(le($e(et(Z)))){static get is(){return"vaadin-select-list-box"}static get template(){return K`
5464
+ */class xg extends Ed(he(Ve(Qe(Z)))){static get is(){return"vaadin-select-list-box"}static get template(){return K`
5465
5465
  <style>
5466
5466
  :host {
5467
5467
  display: flex;
@@ -5481,15 +5481,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5481
5481
  <div part="items">
5482
5482
  <slot></slot>
5483
5483
  </div>
5484
- `}static get properties(){return{orientation:{readOnly:!0}}}get _scrollerElement(){return this.shadowRoot.querySelector('[part="items"]')}ready(){super.ready(),this.setAttribute("role","listbox")}}G(wg);/**
5484
+ `}static get properties(){return{orientation:{readOnly:!0}}}get _scrollerElement(){return this.shadowRoot.querySelector('[part="items"]')}ready(){super.ready(),this.setAttribute("role","listbox")}}G(xg);/**
5485
5485
  * @license
5486
5486
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5487
5487
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5488
- */const Cg=r=>class extends rs(Jr($e(r))){static get observers(){return["_updateOverlayWidth(opened, owner)"]}ready(){super.ready(),this.restoreFocusOnClose=!0}_getMenuElement(){return Array.from(this.children).find(e=>e.localName!=="style")}_updateOverlayWidth(e,t){if(e&&t){const i="--vaadin-select-overlay-width",o=getComputedStyle(t).getPropertyValue(i);o===""?this.style.removeProperty(i):this.style.setProperty(i,o)}}};/**
5488
+ */const wg=i=>class extends ts(Zi(Ve(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 Eg=k`
5492
+ */const Cg=k`
5493
5493
  :host {
5494
5494
  align-items: flex-start;
5495
5495
  justify-content: flex-start;
@@ -5504,18 +5504,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5504
5504
  outline: 3px solid;
5505
5505
  }
5506
5506
  }
5507
- `;L("vaadin-select-overlay",[Zr,Eg],{moduleId:"vaadin-select-overlay-styles"});class Sg extends Cg(le(Z)){static get is(){return"vaadin-select-overlay"}static get template(){return K`
5507
+ `;L("vaadin-select-overlay",[Ki,Cg],{moduleId:"vaadin-select-overlay-styles"});class Eg extends wg(he(Z)){static get is(){return"vaadin-select-overlay"}static get template(){return K`
5508
5508
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
5509
5509
  <div part="overlay" id="overlay" tabindex="0">
5510
5510
  <div part="content" id="content">
5511
5511
  <slot></slot>
5512
5512
  </div>
5513
5513
  </div>
5514
- `}ready(){super.ready(),this.owner=this.__dataHost,this.owner._overlayElement=this}requestContentUpdate(){if(super.requestContentUpdate(),this.owner){const e=this._getMenuElement();this.owner._assignMenuElement(e)}}}G(Sg);/**
5514
+ `}ready(){super.ready(),this.owner=this.__dataHost,this.owner._overlayElement=this}requestContentUpdate(){if(super.requestContentUpdate(),this.owner){const e=this._getMenuElement();this.owner._assignMenuElement(e)}}}G(Eg);/**
5515
5515
  * @license
5516
5516
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5517
5517
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5518
- */const Ag=k`
5518
+ */const Sg=k`
5519
5519
  :host {
5520
5520
  display: inline-block;
5521
5521
  position: relative;
@@ -5561,17 +5561,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5561
5561
  * @license
5562
5562
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5563
5563
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5564
- */L("vaadin-select-value-button",Ag,{moduleId:"vaadin-select-value-button-styles"});class Pg extends is(le(Z)){static get is(){return"vaadin-select-value-button"}static get template(){return K`
5564
+ */L("vaadin-select-value-button",Sg,{moduleId:"vaadin-select-value-button-styles"});class Ag extends is(he(Z)){static get is(){return"vaadin-select-value-button"}static get template(){return K`
5565
5565
  <div class="vaadin-button-container">
5566
5566
  <span part="label">
5567
5567
  <slot></slot>
5568
5568
  </span>
5569
5569
  </div>
5570
- `}}G(Pg);/**
5570
+ `}}G(Ag);/**
5571
5571
  * @license
5572
5572
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
5573
5573
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5574
- */const kg=k`
5574
+ */const Pg=k`
5575
5575
  .sr-only {
5576
5576
  border: 0 !important;
5577
5577
  clip: rect(1px, 1px, 1px, 1px) !important;
@@ -5589,15 +5589,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5589
5589
  * @license
5590
5590
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
5591
5591
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5592
- */class Tg extends Ne{constructor(e){super(e,"value","vaadin-select-value-button",{initializer:(t,i)=>{i._setFocusElement(t),i.ariaTarget=t,i.stateTarget=t,t.setAttribute("aria-haspopup","listbox")}})}}/**
5592
+ */class kg extends Ne{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 Ig=r=>class extends Qr(Qi(qn(Lt(eo(r))))){static get properties(){return{items:{type:Array,observer:"__itemsChanged"},opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0,sync:!0},renderer:{type:Object},value:{type:String,value:"",notify:!0,observer:"_valueChanged"},name:{type:String},placeholder:{type:String},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},noVerticalOverlap:{type:Boolean,value:!1},_phone:Boolean,_phoneMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},_inputContainer:Object,_items:Object}}static get delegateAttrs(){return[...super.delegateAttrs,"invalid"]}static get observers(){return["_updateAriaExpanded(opened, focusElement)","_updateSelectedItem(value, _items, placeholder)","_openedChanged(opened, _overlayElement, _inputContainer)"]}constructor(){super(),this._itemId=`value-${this.localName}-${qr()}`,this._srLabelController=new $h(this),this._srLabelController.slotName="sr-label"}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}ready(){super.ready(),this._inputContainer=this.shadowRoot.querySelector('[part~="input-field"]'),this._valueButtonController=new Tg(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new ls(this._phoneMediaQuery,e=>{this._phone=e})),this._tooltipController=new ht(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.focusElement),this.addController(this._tooltipController)}requestContentUpdate(){this._overlayElement&&(this._overlayElement.requestContentUpdate(),this._menuElement&&this._menuElement.items&&this._updateSelectedItem(this.value,this._menuElement.items))}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate()}__itemsChanged(e,t){(e||t)&&this.requestContentUpdate()}_assignMenuElement(e){e&&e!==this.__lastMenuElement&&(this._menuElement=e,this.__initMenuItems(e),e.addEventListener("items-changed",()=>{this.__initMenuItems(e)}),e.addEventListener("selected-changed",()=>this.__updateValueButton()),e.addEventListener("keydown",t=>this._onKeyDownInside(t),!0),e.addEventListener("click",t=>{const i=t.composedPath().find(o=>o._hasVaadinItemMixin);this.__dispatchChangePending=!!(i&&i.value!==void 0&&i.value!==this.value),this.opened=!1},!0),this.__lastMenuElement=e)}__initMenuItems(e){e.items&&(this._items=e.items)}_valueChanged(e,t){this.toggleAttribute("has-value",!!e),t!==void 0&&!this.__dispatchChangePending&&this.validate()}_onClick(e){this.disabled||(e.preventDefault(),this.opened=!this.readonly)}_onToggleMouseDown(e){e.preventDefault()}_onKeyDown(e){if(e.target===this.focusElement&&!this.readonly&&!this.disabled&&!this.opened){if(/^(Enter|SpaceBar|\s|ArrowDown|Down|ArrowUp|Up)$/u.test(e.key))e.preventDefault(),this.opened=!0;else if(/[\p{L}\p{Nd}]/u.test(e.key)&&e.key.length===1){const t=this._menuElement.selected,i=t!==void 0?t:-1,o=this._menuElement._searchKey(i,e.key);o>=0&&(this.__dispatchChangePending=!0,this._updateAriaLive(!0),this._menuElement.selected=o)}}}_onKeyDownInside(e){/^(Tab)$/u.test(e.key)&&(this.opened=!1)}_openedChanged(e,t,i){if(!(!t||!i)){if(e){if(this.disabled||this.readonly){this.opened=!1;return}this._updateAriaLive(!1),t.style.setProperty("--vaadin-select-text-field-width",`${i.offsetWidth}px`);const o=this.hasAttribute("focus-ring");this._openedWithFocusRing=o,o&&this.removeAttribute("focus-ring")}else this.__oldOpened&&(this._openedWithFocusRing&&this.setAttribute("focus-ring",""),!this.__dispatchChangePending&&!this._keyboardActive&&this.validate());this.__oldOpened=e}}_updateAriaExpanded(e,t){t&&t.setAttribute("aria-expanded",e?"true":"false")}_updateAriaLive(e){this.focusElement&&(e?this.focusElement.setAttribute("aria-live","polite"):this.focusElement.removeAttribute("aria-live"))}__attachSelectedItem(e){let t;const i=e.getAttribute("label");i?t=this.__createItemElement({label:i}):t=e.cloneNode(!0),t._sourceItem=e,this.__appendValueItemElement(t,this.focusElement),t.selected=!0}__createItemElement(e){const t=document.createElement(e.component||"vaadin-select-item");return e.label&&(t.textContent=e.label),e.value&&(t.value=e.value),e.disabled&&(t.disabled=e.disabled),e.className&&(t.className=e.className),t}__appendValueItemElement(e,t){t.appendChild(e),e.removeAttribute("tabindex"),e.removeAttribute("aria-selected"),e.removeAttribute("role"),e.removeAttribute("focused"),e.removeAttribute("focus-ring"),e.removeAttribute("active"),e.setAttribute("id",this._itemId)}_accessibleNameChanged(e){this._srLabelController.setLabel(e),this._setCustomAriaLabelledBy(e?this._srLabelController.defaultId:null)}_accessibleNameRefChanged(e){this._setCustomAriaLabelledBy(e)}_setCustomAriaLabelledBy(e){const t=this._getLabelIdWithItemId(e);this._fieldAriaController.setLabelId(t,!0)}_getLabelIdWithItemId(e){const t=this._items&&this._items[this._menuElement.selected]||this.placeholder?this._itemId:"";return e?`${e} ${t}`.trim():null}__updateValueButton(){const e=this.focusElement;if(!e)return;e.innerHTML="";const t=this._items[this._menuElement.selected];if(e.removeAttribute("placeholder"),this._hasContent(t))this.__attachSelectedItem(t);else if(this.placeholder){const o=this.__createItemElement({label:this.placeholder});this.__appendValueItemElement(o,e),e.setAttribute("placeholder","")}!this._valueChanging&&t&&(this._selectedChanging=!0,this.value=t.value||"",this.__dispatchChangePending&&this.__dispatchChange(),delete this._selectedChanging);const i=t||this.placeholder?{newId:this._itemId}:{oldId:this._itemId};Zt(e,"aria-labelledby",i),(this.accessibleName||this.accessibleNameRef)&&this._setCustomAriaLabelledBy(this.accessibleNameRef||this._srLabelController.defaultId)}_hasContent(e){if(!e)return!1;const t=!!(e.hasAttribute("label")?e.getAttribute("label"):e.textContent.trim()),i=e.childElementCount>0;return t||i}_updateSelectedItem(e,t){if(t){const i=e==null?e:e.toString();this._menuElement.selected=t.reduce((o,n,s)=>o===void 0&&n.value===i?s:o,void 0),this._selectedChanging||(this._valueChanging=!0,this.__updateValueButton(),delete this._valueChanging)}}_shouldRemoveFocus(){return!this.opened}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}checkValidity(){return!this.required||this.readonly||!!this.value}__defaultRenderer(e,t){if(!this.items||this.items.length===0){e.textContent="";return}let i=e.firstElementChild;i||(i=document.createElement("vaadin-select-list-box"),e.appendChild(i)),i.textContent="",this.items.forEach(o=>{i.appendChild(this.__createItemElement(o))})}__dispatchChange(){return Ti(this,null,function*(){this.updateComplete&&(yield this.updateComplete),this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChangePending=!1})}};/**
5596
+ */const Tg=i=>class extends Ji(Kr(Gn(Lt(Zr(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}-${Gi()}`,this._srLabelController=new Fh(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 kg(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new as(this._phoneMediaQuery,e=>{this._phone=e})),this._tooltipController=new ht(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.focusElement),this.addController(this._tooltipController)}requestContentUpdate(){this._overlayElement&&(this._overlayElement.requestContentUpdate(),this._menuElement&&this._menuElement.items&&this._updateSelectedItem(this.value,this._menuElement.items))}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate()}__itemsChanged(e,t){(e||t)&&this.requestContentUpdate()}_assignMenuElement(e){e&&e!==this.__lastMenuElement&&(this._menuElement=e,this.__initMenuItems(e),e.addEventListener("items-changed",()=>{this.__initMenuItems(e)}),e.addEventListener("selected-changed",()=>this.__updateValueButton()),e.addEventListener("keydown",t=>this._onKeyDownInside(t),!0),e.addEventListener("click",t=>{const 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};Jt(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 Pr(this,null,function*(){this.updateComplete&&(yield this.updateComplete),this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChangePending=!1})}};/**
5597
5597
  * @license
5598
5598
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5599
5599
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5600
- */L("vaadin-select",[nd,sd,kg],{moduleId:"vaadin-select-styles"});class Dg extends Ig(Ve(le(Z))){static get is(){return"vaadin-select"}static get template(){return K`
5600
+ */L("vaadin-select",[od,nd,Pg],{moduleId:"vaadin-select-styles"});class Ig extends Tg($e(he(Z))){static get is(){return"vaadin-select"}static get template(){return K`
5601
5601
  <style>
5602
5602
  :host {
5603
5603
  position: relative;
@@ -5650,7 +5650,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5650
5650
  <div class="sr-only">
5651
5651
  <slot name="sr-label"></slot>
5652
5652
  </div>
5653
- `}static get observers(){return["_rendererChanged(renderer, _overlayElement)"]}ready(){super.ready(),so(this)}_rendererChanged(e,t){t&&(t.renderer=e||this.__defaultRenderer,this.requestContentUpdate())}_onOverlayOpen(){this._menuElement&&this._menuElement.focus()}}G(Dg);const Ad=k`
5653
+ `}static get observers(){return["_rendererChanged(renderer, _overlayElement)"]}ready(){super.ready(),ro(this)}_rendererChanged(e,t){t&&(t.renderer=e||this.__defaultRenderer,this.requestContentUpdate())}_onOverlayOpen(){this._menuElement&&this._menuElement.focus()}}G(Ig);const Sd=k`
5654
5654
  /* Optical centering */
5655
5655
  :host::before,
5656
5656
  :host::after {
@@ -5750,7 +5750,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5750
5750
  transform: scale(1.02);
5751
5751
  }
5752
5752
  }
5753
- `;L("vaadin-dialog-overlay",[ur,Ad],{moduleId:"lumo-dialog"});L("vaadin-confirm-dialog-overlay",[ur,Ad,k`
5753
+ `;L("vaadin-dialog-overlay",[pi,Sd],{moduleId:"lumo-dialog"});L("vaadin-confirm-dialog-overlay",[pi,Sd,k`
5754
5754
  [part='header'] ::slotted(h3) {
5755
5755
  margin-top: 0 !important;
5756
5756
  margin-bottom: 0 !important;
@@ -5789,11 +5789,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5789
5789
  * @license
5790
5790
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5791
5791
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5792
- */const Og=r=>class extends r{static get properties(){return{opened:{type:Boolean,value:!1,notify:!0},noCloseOnOutsideClick:{type:Boolean,value:!1},noCloseOnEsc:{type:Boolean,value:!1},modeless:{type:Boolean,value:!1},overlayRole:{type:String,value:"dialog"}}}ready(){super.ready();const e=this.$.overlay;e.addEventListener("vaadin-overlay-outside-click",this._handleOutsideClick.bind(this)),e.addEventListener("vaadin-overlay-escape-press",this._handleEscPress.bind(this)),e.addEventListener("vaadin-overlay-closed",this.__handleOverlayClosed.bind(this)),this._overlayElement=e}__handleOverlayClosed(){this.dispatchEvent(new CustomEvent("closed"))}connectedCallback(){super.connectedCallback(),this.__restoreOpened&&(this.opened=!0)}disconnectedCallback(){super.disconnectedCallback(),setTimeout(()=>{this.isConnected||(this.__restoreOpened=this.opened,this.opened=!1)})}_onOverlayOpened(e){e.detail.value===!1&&(this.opened=!1)}_handleOutsideClick(e){this.noCloseOnOutsideClick&&e.preventDefault()}_handleEscPress(e){this.noCloseOnEsc&&e.preventDefault()}_bringOverlayToFront(){this.modeless&&this._overlayElement.bringToFront()}};/**
5792
+ */const Dg=i=>class extends i{static get properties(){return{opened:{type:Boolean,value:!1,notify:!0},noCloseOnOutsideClick:{type:Boolean,value:!1},noCloseOnEsc:{type:Boolean,value:!1},modeless:{type:Boolean,value:!1},overlayRole:{type:String,value:"dialog"}}}ready(){super.ready();const e=this.$.overlay;e.addEventListener("vaadin-overlay-outside-click",this._handleOutsideClick.bind(this)),e.addEventListener("vaadin-overlay-escape-press",this._handleEscPress.bind(this)),e.addEventListener("vaadin-overlay-closed",this.__handleOverlayClosed.bind(this)),this._overlayElement=e}__handleOverlayClosed(){this.dispatchEvent(new CustomEvent("closed"))}connectedCallback(){super.connectedCallback(),this.__restoreOpened&&(this.opened=!0)}disconnectedCallback(){super.disconnectedCallback(),setTimeout(()=>{this.isConnected||(this.__restoreOpened=this.opened,this.opened=!1)})}_onOverlayOpened(e){e.detail.value===!1&&(this.opened=!1)}_handleOutsideClick(e){this.noCloseOnOutsideClick&&e.preventDefault()}_handleEscPress(e){this.noCloseOnEsc&&e.preventDefault()}_bringOverlayToFront(){this.modeless&&this._overlayElement.bringToFront()}};/**
5793
5793
  * @license
5794
5794
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5795
5795
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5796
- */const Mg=k`
5796
+ */const Og=k`
5797
5797
  [part='header'],
5798
5798
  [part='header-content'],
5799
5799
  [part='footer'] {
@@ -5968,11 +5968,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5968
5968
  * @license
5969
5969
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
5970
5970
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5971
- */const Ng=r=>class extends r{static get properties(){return{ariaLabel:{type:String,value:""},contentHeight:{type:String},contentWidth:{type:String}}}static get observers(){return["__updateContentHeight(contentHeight, _overlayElement)","__updateContentWidth(contentWidth, _overlayElement)"]}__updateDimension(e,t,i){const o=`--_vaadin-confirm-dialog-content-${t}`;i?e.style.setProperty(o,i):e.style.removeProperty(o)}__updateContentHeight(e,t){t&&this.__updateDimension(t,"height",e)}__updateContentWidth(e,t){t&&this.__updateDimension(t,"width",e)}};/**
5971
+ */const Mg=i=>class extends i{static get properties(){return{ariaLabel:{type:String,value:""},contentHeight:{type:String},contentWidth:{type:String}}}static get observers(){return["__updateContentHeight(contentHeight, _overlayElement)","__updateContentWidth(contentWidth, _overlayElement)"]}__updateDimension(e,t,r){const o=`--_vaadin-confirm-dialog-content-${t}`;r?e.style.setProperty(o,r):e.style.removeProperty(o)}__updateContentHeight(e,t){t&&this.__updateDimension(t,"height",e)}__updateContentWidth(e,t){t&&this.__updateDimension(t,"width",e)}};/**
5972
5972
  * @license
5973
5973
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
5974
5974
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5975
- */const zg=k`
5975
+ */const Ng=k`
5976
5976
  :host {
5977
5977
  --_vaadin-confirm-dialog-content-width: auto;
5978
5978
  --_vaadin-confirm-dialog-content-height: auto;
@@ -5995,7 +5995,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5995
5995
  * @license
5996
5996
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
5997
5997
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5998
- */L("vaadin-confirm-dialog-overlay",[Zr,Mg,zg],{moduleId:"vaadin-confirm-dialog-overlay-styles"});class Bg extends Jr($e(le(Z))){static get is(){return"vaadin-confirm-dialog-overlay"}static get template(){return K`
5998
+ */L("vaadin-confirm-dialog-overlay",[Ki,Og,Ng],{moduleId:"vaadin-confirm-dialog-overlay-styles"});class zg extends Zi(Ve(he(Z))){static get is(){return"vaadin-confirm-dialog-overlay"}static get template(){return K`
5999
5999
  <div part="backdrop" id="backdrop" hidden$="[[!withBackdrop]]"></div>
6000
6000
  <div part="overlay" id="overlay" tabindex="0">
6001
6001
  <section id="resizerContainer" class="resizer-container">
@@ -6016,7 +6016,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6016
6016
  </footer>
6017
6017
  </section>
6018
6018
  </div>
6019
- `}ready(){super.ready(),this.setAttribute("has-header",""),this.setAttribute("has-footer","")}}G(Bg);class Lg extends Ng(Og(Qr(Xi(Z)))){static get is(){return"vaadin-confirm-dialog-dialog"}static get template(){return K`
6019
+ `}ready(){super.ready(),this.setAttribute("has-header",""),this.setAttribute("has-footer","")}}G(zg);class Bg extends Mg(Dg(Ji(Gr(Z)))){static get is(){return"vaadin-confirm-dialog-dialog"}static get template(){return K`
6020
6020
  <style>
6021
6021
  :host {
6022
6022
  display: none;
@@ -6037,15 +6037,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6037
6037
  restore-focus-on-close
6038
6038
  focus-trap
6039
6039
  ></vaadin-confirm-dialog-overlay>
6040
- `}}G(Lg);/**
6040
+ `}}G(Bg);/**
6041
6041
  * @license
6042
6042
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
6043
6043
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6044
- */const Hg=r=>class extends r{static get properties(){return{accessibleDescriptionRef:{type:String},opened:{type:Boolean,value:!1,notify:!0},header:{type:String,value:""},message:{type:String,value:""},confirmText:{type:String,value:"Confirm"},confirmTheme:{type:String,value:"primary"},noCloseOnEsc:{type:Boolean,value:!1},rejectButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},rejectText:{type:String,value:"Reject"},rejectTheme:{type:String,value:"error tertiary"},cancelButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},cancelText:{type:String,value:"Cancel"},cancelTheme:{type:String,value:"tertiary"},overlayClass:{type:String},_cancelButton:{type:Object},_confirmButton:{type:Object},_headerNode:{type:Object},_messageNodes:{type:Array,value:()=>[]},_overlayElement:{type:Object,sync:!0},_rejectButton:{type:Object},_contentHeight:{type:String},_contentWidth:{type:String}}}static get observers(){return["__updateConfirmButton(_confirmButton, confirmText, confirmTheme)","__updateCancelButton(_cancelButton, cancelText, cancelTheme, cancelButtonVisible)","__updateHeaderNode(_headerNode, header)","__updateMessageNodes(_messageNodes, message)","__updateRejectButton(_rejectButton, rejectText, rejectTheme, rejectButtonVisible)","__accessibleDescriptionRefChanged(_overlayElement, _messageNodes, accessibleDescriptionRef)"]}constructor(){super(),this.__cancel=this.__cancel.bind(this),this.__confirm=this.__confirm.bind(this),this.__reject=this.__reject.bind(this)}get __slottedNodes(){return[this._headerNode,...this._messageNodes,this._cancelButton,this._confirmButton,this._rejectButton]}ready(){super.ready(),this._headerController=new Ne(this,"header","h3",{initializer:e=>{this._headerNode=e}}),this.addController(this._headerController),this._messageController=new Ne(this,"","div",{multiple:!0,observe:!1,initializer:e=>{const t=document.createElement("div");t.style.display="contents";const i=`confirm-dialog-message-${qr()}`;t.id=i,this.appendChild(t),t.appendChild(e),this._messageNodes=[...this._messageNodes,t]}}),this.addController(this._messageController),this._cancelController=new Ne(this,"cancel-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("cancel",e)}}),this.addController(this._cancelController),this._rejectController=new Ne(this,"reject-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("reject",e)}}),this.addController(this._rejectController),this._confirmController=new Ne(this,"confirm-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("confirm",e)}}),this.addController(this._confirmController)}_initOverlay(e){e.addEventListener("vaadin-overlay-escape-press",this._escPressed.bind(this)),e.addEventListener("vaadin-overlay-open",()=>this.__onDialogOpened()),e.addEventListener("vaadin-overlay-closed",()=>this.__onDialogClosed()),e.setAttribute("role","alertdialog")}__onDialogOpened(){const e=this._overlayElement;this.__slottedNodes.forEach(i=>{e.appendChild(i)});const t=e.querySelector('[slot="confirm-button"]');t&&t.focus()}__onDialogClosed(){this.__slottedNodes.forEach(e=>{this.appendChild(e)}),this.dispatchEvent(new CustomEvent("closed"))}__accessibleDescriptionRefChanged(e,t,i){!e||!t||(i!==void 0?Zt(e,"aria-describedby",{newId:i,oldId:this.__oldAccessibleDescriptionRef,fromUser:!0}):t.forEach(o=>{Zt(e,"aria-describedby",{newId:o.id})}),this.__oldAccessibleDescriptionRef=i)}__setupSlottedButton(e,t){const i=`_${e}Button`,o=`__${e}`;this[i]&&this[i]!==t&&this[i].remove(),t.addEventListener("click",this[o]),this[i]=t}__updateCancelButton(e,t,i,o){e&&(e===this._cancelController.defaultNode&&(e.textContent=t,e.setAttribute("theme",i)),e.toggleAttribute("hidden",!o))}__updateConfirmButton(e,t,i){e&&e===this._confirmController.defaultNode&&(e.textContent=t,e.setAttribute("theme",i))}__updateHeaderNode(e,t){e&&e===this._headerController.defaultNode&&(e.textContent=t)}__updateMessageNodes(e,t){if(e&&e.length>0){const i=e.find(o=>this._messageController.defaultNode&&o===this._messageController.defaultNode.parentElement);i&&(i.firstChild.textContent=t)}}__updateRejectButton(e,t,i,o){e&&(e===this._rejectController.defaultNode&&(e.textContent=t,e.setAttribute("theme",i)),e.toggleAttribute("hidden",!o))}_escPressed(e){e.defaultPrevented||this.__cancel()}__confirm(){this.dispatchEvent(new CustomEvent("confirm")),this.opened=!1}__cancel(){this.dispatchEvent(new CustomEvent("cancel")),this.opened=!1}__reject(){this.dispatchEvent(new CustomEvent("reject")),this.opened=!1}_getAriaLabel(e){return e||"confirmation"}};/**
6044
+ */const Lg=i=>class extends i{static get properties(){return{accessibleDescriptionRef:{type:String},opened:{type:Boolean,value:!1,notify:!0},header:{type:String,value:""},message:{type:String,value:""},confirmText:{type:String,value:"Confirm"},confirmTheme:{type:String,value:"primary"},noCloseOnEsc:{type:Boolean,value:!1},rejectButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},rejectText:{type:String,value:"Reject"},rejectTheme:{type:String,value:"error tertiary"},cancelButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},cancelText:{type:String,value:"Cancel"},cancelTheme:{type:String,value:"tertiary"},overlayClass:{type:String},_cancelButton:{type:Object},_confirmButton:{type:Object},_headerNode:{type:Object},_messageNodes:{type:Array,value:()=>[]},_overlayElement:{type:Object,sync:!0},_rejectButton:{type:Object},_contentHeight:{type:String},_contentWidth:{type:String}}}static get observers(){return["__updateConfirmButton(_confirmButton, confirmText, confirmTheme)","__updateCancelButton(_cancelButton, cancelText, cancelTheme, cancelButtonVisible)","__updateHeaderNode(_headerNode, header)","__updateMessageNodes(_messageNodes, message)","__updateRejectButton(_rejectButton, rejectText, rejectTheme, rejectButtonVisible)","__accessibleDescriptionRefChanged(_overlayElement, _messageNodes, accessibleDescriptionRef)"]}constructor(){super(),this.__cancel=this.__cancel.bind(this),this.__confirm=this.__confirm.bind(this),this.__reject=this.__reject.bind(this)}get __slottedNodes(){return[this._headerNode,...this._messageNodes,this._cancelButton,this._confirmButton,this._rejectButton]}ready(){super.ready(),this._headerController=new Ne(this,"header","h3",{initializer:e=>{this._headerNode=e}}),this.addController(this._headerController),this._messageController=new Ne(this,"","div",{multiple:!0,observe:!1,initializer:e=>{const t=document.createElement("div");t.style.display="contents";const r=`confirm-dialog-message-${Gi()}`;t.id=r,this.appendChild(t),t.appendChild(e),this._messageNodes=[...this._messageNodes,t]}}),this.addController(this._messageController),this._cancelController=new Ne(this,"cancel-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("cancel",e)}}),this.addController(this._cancelController),this._rejectController=new Ne(this,"reject-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("reject",e)}}),this.addController(this._rejectController),this._confirmController=new Ne(this,"confirm-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("confirm",e)}}),this.addController(this._confirmController)}_initOverlay(e){e.addEventListener("vaadin-overlay-escape-press",this._escPressed.bind(this)),e.addEventListener("vaadin-overlay-open",()=>this.__onDialogOpened()),e.addEventListener("vaadin-overlay-closed",()=>this.__onDialogClosed()),e.setAttribute("role","alertdialog")}__onDialogOpened(){const e=this._overlayElement;this.__slottedNodes.forEach(r=>{e.appendChild(r)});const t=e.querySelector('[slot="confirm-button"]');t&&t.focus()}__onDialogClosed(){this.__slottedNodes.forEach(e=>{this.appendChild(e)}),this.dispatchEvent(new CustomEvent("closed"))}__accessibleDescriptionRefChanged(e,t,r){!e||!t||(r!==void 0?Jt(e,"aria-describedby",{newId:r,oldId:this.__oldAccessibleDescriptionRef,fromUser:!0}):t.forEach(o=>{Jt(e,"aria-describedby",{newId:o.id})}),this.__oldAccessibleDescriptionRef=r)}__setupSlottedButton(e,t){const r=`_${e}Button`,o=`__${e}`;this[r]&&this[r]!==t&&this[r].remove(),t.addEventListener("click",this[o]),this[r]=t}__updateCancelButton(e,t,r,o){e&&(e===this._cancelController.defaultNode&&(e.textContent=t,e.setAttribute("theme",r)),e.toggleAttribute("hidden",!o))}__updateConfirmButton(e,t,r){e&&e===this._confirmController.defaultNode&&(e.textContent=t,e.setAttribute("theme",r))}__updateHeaderNode(e,t){e&&e===this._headerController.defaultNode&&(e.textContent=t)}__updateMessageNodes(e,t){if(e&&e.length>0){const r=e.find(o=>this._messageController.defaultNode&&o===this._messageController.defaultNode.parentElement);r&&(r.firstChild.textContent=t)}}__updateRejectButton(e,t,r,o){e&&(e===this._rejectController.defaultNode&&(e.textContent=t,e.setAttribute("theme",r)),e.toggleAttribute("hidden",!o))}_escPressed(e){e.defaultPrevented||this.__cancel()}__confirm(){this.dispatchEvent(new CustomEvent("confirm")),this.opened=!1}__cancel(){this.dispatchEvent(new CustomEvent("cancel")),this.opened=!1}__reject(){this.dispatchEvent(new CustomEvent("reject")),this.opened=!1}_getAriaLabel(e){return e||"confirmation"}};/**
6045
6045
  * @license
6046
6046
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
6047
6047
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6048
- */class Rg extends Hg(Ve(Xi(et(Z)))){static get template(){return K`
6048
+ */class Hg extends Lg($e(Gr(Qe(Z)))){static get template(){return K`
6049
6049
  <style>
6050
6050
  :host,
6051
6051
  [hidden] {
@@ -6072,7 +6072,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6072
6072
  <slot name="reject-button"></slot>
6073
6073
  <slot name="confirm-button"></slot>
6074
6074
  </div>
6075
- `}static get is(){return"vaadin-confirm-dialog"}ready(){super.ready(),this._overlayElement=this.$.dialog.$.overlay,this._initOverlay(this._overlayElement)}}G(Rg);L("vaadin-tab",k`
6075
+ `}static get is(){return"vaadin-confirm-dialog"}ready(){super.ready(),this._overlayElement=this.$.dialog.$.overlay,this._initOverlay(this._overlayElement)}}G(Hg);L("vaadin-tab",k`
6076
6076
  :host {
6077
6077
  box-sizing: border-box;
6078
6078
  padding: 0.5rem 0.75rem;
@@ -6309,11 +6309,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6309
6309
  * @license
6310
6310
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6311
6311
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6312
- */const Fg=r=>class extends Cd(r){ready(){super.ready(),this.setAttribute("role","tab")}_onKeyUp(e){const t=this.hasAttribute("active");if(super._onKeyUp(e),t){const i=this.querySelector("a");i&&i.click()}}};/**
6312
+ */const Rg=i=>class extends wd(i){ready(){super.ready(),this.setAttribute("role","tab")}_onKeyUp(e){const t=this.hasAttribute("active");if(super._onKeyUp(e),t){const r=this.querySelector("a");r&&r.click()}}};/**
6313
6313
  * @license
6314
6314
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6315
6315
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6316
- */const $g=k`
6316
+ */const Fg=k`
6317
6317
  :host {
6318
6318
  display: block;
6319
6319
  }
@@ -6336,7 +6336,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6336
6336
  * @license
6337
6337
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6338
6338
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6339
- */L("vaadin-tab",$g,{moduleId:"vaadin-tab-styles"});class Vg extends Ve(le(Fg(et(Z)))){static get template(){return K`
6339
+ */L("vaadin-tab",Fg,{moduleId:"vaadin-tab-styles"});class Vg extends $e(he(Rg(Qe(Z)))){static get template(){return K`
6340
6340
  <slot></slot>
6341
6341
  <slot name="tooltip"></slot>
6342
6342
  `}static get is(){return"vaadin-tab"}ready(){super.ready(),this._tooltipController=new ht(this),this.addController(this._tooltipController)}}G(Vg);L("vaadin-tabs",k`
@@ -6581,11 +6581,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6581
6581
  * @license
6582
6582
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6583
6583
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6584
- */const Wg=r=>class extends xd(Sd(r)){static get properties(){return{orientation:{value:"horizontal",type:String,reflectToAttribute:!0,sync:!0},selected:{value:0,type:Number}}}static get observers(){return["__tabsItemsChanged(items)"]}constructor(){super(),this.__itemsResizeObserver=new ResizeObserver(()=>{setTimeout(()=>this._updateOverflow())})}get _scrollOffset(){return this._vertical?this._scrollerElement.offsetHeight:this._scrollerElement.offsetWidth}get _scrollerElement(){return this.$.scroll}get __direction(){return!this._vertical&&this.__isRTL?1:-1}ready(){super.ready(),this._scrollerElement.addEventListener("scroll",()=>this._updateOverflow()),this.setAttribute("role","tablist"),es(this,()=>{this._updateOverflow()})}_onResize(){this._updateOverflow()}__tabsItemsChanged(e){this.__itemsResizeObserver.disconnect(),(e||[]).forEach(t=>{this.__itemsResizeObserver.observe(t)}),this._updateOverflow()}_scrollForward(){const e=this._getNavigationButtonVisibleWidth("forward-button"),t=this._getNavigationButtonVisibleWidth("back-button"),i=this._scrollerElement.getBoundingClientRect(),o=[...this.items].reverse().find(a=>this._isItemVisible(a,e,t,i)).getBoundingClientRect(),n=20+this.shadowRoot.querySelector('[part="back-button"]').clientWidth;let s;if(this.__isRTL){const a=i.right-n;s=o.right-a}else{const a=i.left+n;s=o.left-a}-this.__direction*s<1&&(s=-this.__direction*(this._scrollOffset-n)),this._scroll(s)}_scrollBack(){const e=this._getNavigationButtonVisibleWidth("forward-button"),t=this._getNavigationButtonVisibleWidth("back-button"),i=this._scrollerElement.getBoundingClientRect(),o=this.items.find(a=>this._isItemVisible(a,e,t,i)).getBoundingClientRect(),n=20+this.shadowRoot.querySelector('[part="forward-button"]').clientWidth;let s;if(this.__isRTL){const a=i.left+n;s=o.left-a}else{const a=i.right-n;s=o.right-a}this.__direction*s<1&&(s=this.__direction*(this._scrollOffset-n)),this._scroll(s)}_isItemVisible(e,t,i,o){if(this._vertical)throw new Error("Visibility check is only supported for horizontal tabs.");const n=this.__isRTL?i:t,s=this.__isRTL?t:i,a=o.right-n,l=o.left+s,h=e.getBoundingClientRect();return a>Math.floor(h.left)&&l<Math.ceil(h.right)}_getNavigationButtonVisibleWidth(e){const t=this.shadowRoot.querySelector(`[part="${e}"]`);return window.getComputedStyle(t).opacity==="0"?0:t.clientWidth}_updateOverflow(){const e=this._vertical?this._scrollerElement.scrollTop:Ed(this._scrollerElement,this.getAttribute("dir")),t=this._vertical?this._scrollerElement.scrollHeight:this._scrollerElement.scrollWidth;let i=Math.floor(e)>1?"start":"";Math.ceil(e)<Math.ceil(t-this._scrollOffset)&&(i+=" end"),this.__direction===1&&(i=i.replace(/start|end/giu,o=>o==="start"?"end":"start")),i?this.setAttribute("overflow",i.trim()):this.removeAttribute("overflow")}};/**
6584
+ */const $g=i=>class extends yd(Ed(i)){static get properties(){return{orientation:{value:"horizontal",type:String,reflectToAttribute:!0,sync:!0},selected:{value:0,type:Number}}}static get observers(){return["__tabsItemsChanged(items)"]}constructor(){super(),this.__itemsResizeObserver=new ResizeObserver(()=>{setTimeout(()=>this._updateOverflow())})}get _scrollOffset(){return this._vertical?this._scrollerElement.offsetHeight:this._scrollerElement.offsetWidth}get _scrollerElement(){return this.$.scroll}get __direction(){return!this._vertical&&this.__isRTL?1:-1}ready(){super.ready(),this._scrollerElement.addEventListener("scroll",()=>this._updateOverflow()),this.setAttribute("role","tablist"),Qn(this,()=>{this._updateOverflow()})}_onResize(){this._updateOverflow()}__tabsItemsChanged(e){this.__itemsResizeObserver.disconnect(),(e||[]).forEach(t=>{this.__itemsResizeObserver.observe(t)}),this._updateOverflow()}_scrollForward(){const e=this._getNavigationButtonVisibleWidth("forward-button"),t=this._getNavigationButtonVisibleWidth("back-button"),r=this._scrollerElement.getBoundingClientRect(),o=[...this.items].reverse().find(a=>this._isItemVisible(a,e,t,r)).getBoundingClientRect(),n=20+this.shadowRoot.querySelector('[part="back-button"]').clientWidth;let s;if(this.__isRTL){const a=r.right-n;s=o.right-a}else{const a=r.left+n;s=o.left-a}-this.__direction*s<1&&(s=-this.__direction*(this._scrollOffset-n)),this._scroll(s)}_scrollBack(){const e=this._getNavigationButtonVisibleWidth("forward-button"),t=this._getNavigationButtonVisibleWidth("back-button"),r=this._scrollerElement.getBoundingClientRect(),o=this.items.find(a=>this._isItemVisible(a,e,t,r)).getBoundingClientRect(),n=20+this.shadowRoot.querySelector('[part="forward-button"]').clientWidth;let s;if(this.__isRTL){const a=r.left+n;s=o.left-a}else{const a=r.right-n;s=o.right-a}this.__direction*s<1&&(s=this.__direction*(this._scrollOffset-n)),this._scroll(s)}_isItemVisible(e,t,r,o){if(this._vertical)throw new Error("Visibility check is only supported for horizontal tabs.");const n=this.__isRTL?r:t,s=this.__isRTL?t:r,a=o.right-n,l=o.left+s,h=e.getBoundingClientRect();return a>Math.floor(h.left)&&l<Math.ceil(h.right)}_getNavigationButtonVisibleWidth(e){const t=this.shadowRoot.querySelector(`[part="${e}"]`);return window.getComputedStyle(t).opacity==="0"?0:t.clientWidth}_updateOverflow(){const e=this._vertical?this._scrollerElement.scrollTop:Cd(this._scrollerElement,this.getAttribute("dir")),t=this._vertical?this._scrollerElement.scrollHeight:this._scrollerElement.scrollWidth;let r=Math.floor(e)>1?"start":"";Math.ceil(e)<Math.ceil(t-this._scrollOffset)&&(r+=" end"),this.__direction===1&&(r=r.replace(/start|end/giu,o=>o==="start"?"end":"start")),r?this.setAttribute("overflow",r.trim()):this.removeAttribute("overflow")}};/**
6585
6585
  * @license
6586
6586
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6587
6587
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6588
- */const jg=k`
6588
+ */const Wg=k`
6589
6589
  :host {
6590
6590
  display: flex;
6591
6591
  align-items: center;
@@ -6665,7 +6665,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6665
6665
  * @license
6666
6666
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6667
6667
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6668
- */L("vaadin-tabs",jg,{moduleId:"vaadin-tabs-styles"});class Ug extends Wg(Ve(le(Z))){static get template(){return K`
6668
+ */L("vaadin-tabs",Wg,{moduleId:"vaadin-tabs-styles"});class jg extends $g($e(he(Z))){static get template(){return K`
6669
6669
  <div on-click="_scrollBack" part="back-button" aria-hidden="true"></div>
6670
6670
 
6671
6671
  <div id="scroll" part="tabs">
@@ -6673,7 +6673,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6673
6673
  </div>
6674
6674
 
6675
6675
  <div on-click="_scrollForward" part="forward-button" aria-hidden="true"></div>
6676
- `}static get is(){return"vaadin-tabs"}}G(Ug);function Gg(r){qd(r,"svelte-xdr5hv",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.headerTextNone{display:none}.historyContainer{container-type:inline-size}.historyContainer .desktopSubmenu{display:flex}.historyContainer .allSubmenuRows{display:none}.historyContainer .historyWrapper{padding:50px}.historyContainer .historyWrapper .historyHeader{width:100%;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:20px}.historyContainer .historyWrapper .historyHeader .headerText p{color:var(--emw--color-primary, #22b04e);font-size:var(--emw--font-size-x-large, 26px);font-family:inherit}.historyContainer .historyWrapper .historyHeader .headerText.skeleton{width:250px;height:30px}.historyContainer .historyWrapper .historyHeader .headerController{display:inherit;flex-direction:row;align-items:center;flex-wrap:wrap;justify-content:flex-start;gap:30px}.historyContainer .historyWrapper .historyHeader .headerController.skeleton .toggleContent{justify-content:flex-start;overflow:hidden}.historyContainer .historyWrapper .historyHeader .headerController.skeleton .toggleContent .toggleCheckbox{border:none;padding:0;margin:0}.historyContainer .historyWrapper .historyHeader .headerController.skeleton .toggleContent .label{width:70px;height:15px;border-radius:var(--emw--border-radius-medium, 20px);overflow:hidden}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent{display:inherit;flex-direction:row;align-items:inherit;justify-content:inherit;background-color:transparent;border:none;cursor:pointer}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent .toggleCheckbox{width:20px;height:20px;padding:2px;margin:2px 0 2px 0;border-radius:100%;position:relative;border:1px solid var(--emw--color-gray-300, #666178)}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent .toggleCheckbox [type=checkbox]{display:none}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent .toggleCheckbox::before{content:"";width:12.75px;height:12.75px;border-radius:var(--emw--border-radius-large, 20px);cursor:pointer;position:absolute;top:50%;left:50%;z-index:1;transform:translate(-50%, -50%);transition:all 0.5s ease}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent.checked .toggleCheckbox{border:1px solid var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent.checked .toggleCheckbox::before{background-color:var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent .label{font-size:var(--emw--size-standard, 16px);font-family:inherit;margin-left:10px}.historyContainer .historyWrapper .historyFilter{display:flex;align-items:flex-end;gap:10px;padding-bottom:30px;padding:20px 0px}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer{display:flex;gap:5px}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate{width:190px;color:var(--emw--color-gray-300, #58586b);display:flex;flex-direction:column;position:relative;align-items:flex-start;gap:10px}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate.BonusesCalendarMobile,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px;width:48%}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%;border-radius:var(--emw--border-radius-medium, 20px)}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate label,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate label{font-size:var(--emw--font-size-small, 14px);font-weight:300}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate input,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate input{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #e6e6e6);border-radius:var(--emw--border-radius-small, 5px);box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px;outline-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22b04e) 80%, black 20%), var(--emw--color-primary, #22b04e), color-mix(in srgb, var(--emw--color-primary, #22b04e) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0e5924);color:var(--emw--button-text-color, #ffffff);border-radius:var(--emw--button-border-radius, 50px);cursor:pointer;width:120px;height:40px;font-size:var(--emw--font-size-medium, 15px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:9px;outline:none}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter.historyCalendarFilterMobile{width:100%;height:44px}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter.disable{cursor:default;color:var(--emw--color-white, #ffffff);background:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarStartDate,.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarEndDate{align-items:normal;overflow:hidden}.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarStartDate .label,.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarEndDate .label{height:15px;overflow:hidden;border-radius:20px}.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarFilter{padding:0;background:transparent;border:none;overflow:hidden}.historyContainer .historyWrapper .historyTable{width:100%;display:flex;flex-direction:column;border:1px solid var(--emw--color-primary, #22b04e);background-color:var(--emw--color-white, #ffffff);overflow:auto;scrollbar-width:thin}.historyContainer .historyWrapper .historyTable::-webkit-scrollbar{width:6px;height:6px}.historyContainer .historyWrapper .historyTable .tableWrapper{width:100%;display:flex;flex-direction:column}.historyContainer .historyWrapper .historyTable .tableWrapper.sports{width:100%;display:flex}.historyContainer .historyWrapper .historyTable .tableWrapper.sports .tableHead span{min-width:102px}.historyContainer .historyWrapper .historyTable .tableWrapper.sports .tableContent .tableRow .tableData span{min-width:101px}.historyContainer .historyWrapper .historyTable .tableHead{display:flex}.historyContainer .historyWrapper .historyTable .tableHead span{display:flex;justify-content:center;align-items:center;min-width:100px;flex:1 1 20%;padding:12px 0;text-align:center;color:var(--emw--button-text-color, #ffffff);background:var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyTable .tableContent{width:100%;max-height:546px;overflow-y:auto}.historyContainer .historyWrapper .historyTable .tableContent::-webkit-scrollbar{width:6px;height:6px}.historyContainer .historyWrapper .historyTable .tableContent .tableRow{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:10px 5px;background-color:var(--emw--color-primary, rgba(68, 224, 117, 0.811))}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData{display:flex;justify-content:center;align-items:center;width:100%}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu{width:100px;display:flex;justify-content:center;align-items:center;flex:1 1 20%;text-align:center;cursor:pointer;font-weight:700;font-size:inherit;text-decoration:underline;color:var(--emw--color-white, #ffffff);border:none;background-color:transparent}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu .iconToggleSubMenu{width:18px;height:18px;padding-bottom:5px;box-sizing:content-box;fill:var(--emw--color-white, #ffffff);transform:rotateX(0deg);transition:all 0.3s ease-in-out}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu .iconToggleSubMenu.active{transform:rotateX(180deg)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu span{width:70px;flex:none}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span{flex:1 1 20%;text-align:center;min-width:100px}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span.approved svg{width:30px;height:30px;fill:transparent}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span.approved svg path{stroke:var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span.decline svg{width:30px;height:30px;fill:transparent}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span.decline svg path{stroke:var(--emw--color-error, #ed0909)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu{display:flex;flex-direction:row;justify-content:center;align-items:center;width:100%;overflow:hidden;max-height:0px;overflow:hidden;opacity:0;transition:all 0.3s ease-in-out}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu .tableData{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;overflow:hidden}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu .tableData .label{width:100%;padding:0;overflow-wrap:break-word}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu.active{max-height:1000px;opacity:1}.historyContainer .historyWrapper .historyTable .tableContent .tableRow:nth-of-type(odd){background-color:var(--emw--color-white, #ffffff)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow:nth-of-type(odd) .tableData .toggleSubMenu{color:var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow:nth-of-type(odd) .tableData .toggleSubMenu .iconToggleSubMenu{fill:var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyTable.skeleton .tableHead{gap:40px;padding:18px 25px}.historyContainer .historyWrapper .historyTable.skeleton .tableHead div{width:100px;overflow:hidden;height:15px;border-radius:10px;flex:1 1 20%}.historyContainer .historyWrapper .historyTable.skeleton .tableContent .tableRow{padding:0px}.historyContainer .historyWrapper .historyTable.skeleton .tableContent .tableRow .tableData{gap:40px;padding:18px 25px;border-radius:10px}.historyContainer .historyWrapper .historyTable.skeleton .tableContent .tableRow .tableData div{overflow:hidden;height:15px;border-radius:10px;width:100px;flex:1 1 20%;text-align:center}.historyContainer .historyWrapper .historyPaginationContainer{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:20px;padding-top:10px}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex{width:fit-content;display:flex;flex-direction:row;align-items:center;justify-content:center;border:1px solid var(--emw--color-primary, #22b04e);border-radius:var(--emw--border-radius-small, 5px)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .indexDisplay{text-align:center;width:40px;padding:10px;transition:all 0.3s ease;border-left:1px solid var(--emw--color-primary, #22b04e);border-right:1px solid var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .indexDisplay input{width:100%}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .indexDisplay.disable{color:var(--emw--color-white, #ffffff);background:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight{display:flex;justify-content:center;align-items:center;width:20px;height:20px;padding:9px;box-sizing:content-box;cursor:pointer;transition:all 0.3s ease;background-color:transparent;border:none}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft svg,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight svg{fill:var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft.disable,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight.disable{cursor:default;background:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft.disable svg,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight.disable svg{fill:var(--emw--color-white, #ffffff)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft.disable:hover,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight.disable:hover{background-color:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft:hover,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight:hover{background-color:var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft:hover svg,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight:hover svg{fill:var(--emw--color-white, #ffffff)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize{width:fit-content;display:inline;text-align:center;width:80px;height:43px}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector{width:100%;height:100%;position:relative;border:none;background-color:transparent;cursor:pointer;border-radius:var(--emw--border-radius-small, 5px)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .currentPageSize{width:100%;height:100%;padding:10px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;border:1px solid var(--emw--color-primary, #22b04e);border-radius:var(--emw--border-radius-small, 5px)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .currentPageSize .icon{width:15px;height:15px;padding-bottom:2px;transform:rotateX(0deg);box-sizing:content-box;transition:all 0.3s ease;fill:var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown{width:100%;max-height:0px;position:absolute;top:120%;left:0;text-align:left;overflow:hidden;opacity:0;background-color:var(--emw--color-white, #ffffff);border:1px solid var(--emw--color-primary, #22b04e);border-radius:var(--emw--border-radius-small, 5px);transition:all 0.3s ease}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown .dropDownRow{width:100%;cursor:pointer;padding:10px;border:none;background-color:transparent;border-bottom:1px solid var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown .dropDownRow .p{flex:1 1 20%;text-align:center}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown .dropDownRow:hover{background-color:var(--emw--color-primary, rgba(68, 224, 117, 0.811))}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown .dropDownRow:nth-last-child(1){border:none}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.active .currentPageSize .icon{transform:rotateX(180deg)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.active .pageSizeDropDown{max-height:1000px;opacity:1}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.disable{cursor:default;background-color:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.disable .currentPageSize{color:var(--emw--color-white, #ffffff)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.disable .currentPageSize .icon{fill:var(--emw--color-white, #ffffff)}.historyContainer .historyWrapper .historyPaginationContainer.skeleton .historyPageIndex{display:block;width:100px;border:none;overflow:hidden;border-radius:5px}.historyContainer .historyWrapper .historyPaginationContainer.skeleton .historyPageSize{border:none;overflow:hidden;border-radius:5px}.historyContainer .historyMobileWrapper.historyWrapper{padding:20px 15px}.historyContainer .historyMobileWrapper.historyWrapper .historyHeader .headerText{display:none}.historyContainer .historyMobileWrapper.historyWrapper .historyHeader .historyReturnButton{display:inline-flex;border:none;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));align-items:center;column-gap:10px;margin-bottom:10px}.historyContainer .historyMobileWrapper.historyWrapper .historyHeader .historyReturnButton .historyReturnText{font-size:var(--emw--size-standard, 16px)}.historyContainer .historyMobileWrapper.historyWrapper .historyHeader .historyReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.historyContainer .historyMobileWrapper.historyWrapper .historyHeader .historyReturnButton.skeleton{width:200px;height:20px}.historyContainer .historyMobileWrapper.historyWrapper .historyHeader .headerController{width:100%;align-items:center;justify-content:center}.historyContainer .historyMobileWrapper.historyWrapper .historyFilter{flex-direction:column;align-items:center}.historyContainer .historyMobileWrapper.historyWrapper .historyFilter .historyCalendarContainer{width:100%}.historyContainer .historyMobileWrapper.historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate,.historyContainer .historyMobileWrapper.historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate{width:inherit}.historyContainer .historyMobileWrapper.historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate .VaadinDatePicker,.historyContainer .historyMobileWrapper.historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate .VaadinDatePicker{width:inherit}.historyContainer .historyMobileWrapper.historyWrapper .historyFilter .historyCalendarFilter{width:100%}.historyContainer .historyMobileWrapper.historyWrapper .historyTable{overflow:auto}.historyContainer .historyMobileWrapper.historyWrapper .historyTable .tableHead{min-width:fit-content}.historyContainer .historyMobileWrapper.historyWrapper .historyTable .tableContent{min-width:fit-content;max-height:430px}.historyContainer .historyMobileWrapper.historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown{top:-150px}@container (max-width: 425px){.historyContainer .historyWrapper{display:flex;flex-direction:column}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer{width:100%;flex-direction:column}.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarStartDate .label,.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarEndDate .label{width:100px}.historyContainer .historyWrapper .historyTable{overflow:auto}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span{padding:5px 0;font-size:13px}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown{top:-150px}}@container (max-width: 520px){.historyContainer .historyWrapper .historyFilter{flex-direction:column;align-items:flex-start}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer{flex-direction:column;width:100%}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate{min-width:190px;width:100%}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate vaadin-date-picker,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate vaadin-date-picker{width:100%}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter{min-width:190px;width:100%}}@container (max-width: 784px){.historyContainer .historyWrapper .historyTable{min-width:190px}.historyContainer .historyWrapper .historyTable .tableWrapper{display:flex}.historyContainer .historyWrapper .historyTable .tableHead{display:none}.historyContainer .historyWrapper .historyTable .tableRow{display:flex;flex-direction:column;border:1px solid #ddd;margin-bottom:16px;border-radius:8px;overflow:hidden;background:#fff;text-align:center}.historyContainer .historyWrapper .historyTable .tableData{display:flex;flex-direction:column;padding:16px}.historyContainer .historyWrapper .historyTable .tableData span{width:100%}.historyContainer .historyWrapper .historyTable .tableData span[data-label],.historyContainer .historyWrapper .historyTable .tableData button[data-label]{display:flex;justify-content:space-between;align-items:center;padding:4px 0;border-bottom:1px solid #eee}.historyContainer .historyWrapper .historyTable .tableData span[data-label]::before,.historyContainer .historyWrapper .historyTable .tableData button[data-label]::before{content:attr(data-label);font-weight:600;color:#555;margin-right:16px;flex:1;text-align:left}.historyContainer .historyWrapper .historyTable .tableData button[data-label]{padding:2px 0}.historyContainer .historyWrapper .historyTable .tableData span[data-label]:last-child{border-bottom:none}.historyContainer .historyWrapper .historyTable .tableData span[data-label],.historyContainer .historyWrapper .historyTable .tableData button[data-label] span{flex:2;text-align:right;font-weight:normal;color:#222}.historyContainer .historyWrapper .historyTable .tableContent{overflow-y:visible;padding:10px 5px}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span{text-align:right}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu{width:100%}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu{display:none;margin-top:15px}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu.active{display:block;padding:0 18px}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu .tableData{display:flex;flex-direction:column;padding:1px}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu .label{display:flex;justify-content:space-between;padding:3px 0;font-size:14px;border-bottom:1px solid #eee;flex:2;text-align:right;font-weight:normal;color:rgba(0, 0, 0, 0.7);padding:2px 0}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu .label::before{content:attr(data-label);font-weight:600;display:inline-block;width:100px;flex:1;text-align:left;margin-right:8px}.historyContainer .historyWrapper .historyTable .tableContent .submenuRow{margin-top:10px}.historyContainer .historyWrapper .historyTable .tableContent .remainingRows .submenuRow{margin:0}.historyContainer .historyWrapper .historyTable .tableContent .remainingRows .submenuRow:last-of-type .tableData span{border-bottom:none}.historyContainer .historyWrapper .historyTable .tableContent .submenuRowTitle{font-size:14px}.historyContainer .remainingRows{margin-top:15px}.historyContainer .desktopSubmenu{display:none}.historyContainer .allSubmenuRows{display:flex;flex-direction:column}}@container (min-width: 785px){.historyContainer .historyWrapper .historyTable .tableWrapper.sports{display:block}}')}function Na(r,e,t){const i=r.slice();return i[99]=e[t],i}function za(r,e,t){const i=r.slice();return i[102]=e[t],i[103]=e,i[104]=t,i}function Ba(r,e,t){const i=r.slice();return i[105]=e[t],i}function La(r,e,t){const i=r.slice();return i[90]=e[t],i[109]=t,i}function Ha(r,e,t){const i=r.slice();return i[105]=e[t],i}function Ra(r,e,t){const i=r.slice();return i[112]=e[t],i}function Fa(r,e,t){const i=r.slice();return i[115]=e[t],i}function $a(r,e,t){const i=r.slice();return i[112]=e[t],i}function Va(r,e,t){const i=r.slice();return i[112]=e[t],i}function Wa(r,e,t){const i=r.slice();return i[122]=e[t],i[104]=t,i}function qg(r,e,t){const i=r.slice();return i[90]=e[t],i}function Yg(r,e,t){const i=r.slice();return i[90]=e[t],i}function Xg(r,e,t){const i=r.slice();return i[90]=e[t],i}function Kg(r,e,t){const i=r.slice();return i[90]=e[t],i}function Zg(r){let e,t,i,o,n,s,a=r[19]("headerTitle")+"",l,h,d,c,u,m,g,_,y=r[19]("dateFrom")+"",D,A,M,R,W,Q,S=r[19]("dateTo")+"",P,b,O,$,he,de=r[19]("dateFilter")+"",B,w,C,T,x,N,z,V,q,oe,ne,se,we,ce,Oe,be,ue,fe,ke,ze,Ke,dt,tt,ct,We,ee,ei,Et,je,rt,pr,mr,fr,Be,Ft,_r,ut,St,At,ti,it=r[20]&&Qg(r),pt=me(r[15]),Ce=[];for(let I=0;I<pt.length;I+=1)Ce[I]=ja(Wa(r,pt,I));let mt=me(r[21][r[7]]),Ee=[];for(let I=0;I<mt.length;I+=1)Ee[I]=Ga(Va(r,mt,I));function ri(I,ae){return I[12]?eb:tb}let Pt=ri(r),Ue=Pt(r),ft=me(r[29]),Ae=[];for(let I=0;I<ft.length;I+=1)Ae[I]=el(Na(r,ft,I));return{c(){e=E("div"),t=E("div"),i=E("div"),it&&it.c(),o=U(),n=E("div"),s=E("p"),l=ge(a),h=U(),d=E("div");for(let I=0;I<Ce.length;I+=1)Ce[I].c();c=U(),u=E("div"),m=E("div"),g=E("div"),_=E("label"),D=ge(y),A=U(),M=E("vaadin-date-picker"),R=U(),W=E("div"),Q=E("label"),P=ge(S),b=U(),O=E("vaadin-date-picker"),$=U(),he=E("button"),B=ge(de),C=U(),T=E("table"),x=E("div"),N=E("thead");for(let I=0;I<Ee.length;I+=1)Ee[I].c();z=U(),V=E("tbody"),Ue.c(),oe=U(),ne=E("div"),se=E("div"),we=E("button"),ce=xe("svg"),Oe=xe("path"),ue=U(),fe=E("div"),ke=E("p"),ze=ge(r[9]),dt=U(),tt=E("button"),ct=xe("svg"),We=xe("path"),ei=U(),Et=E("div"),je=E("button"),rt=E("div"),pr=E("p"),mr=ge(r[8]),fr=U(),Be=xe("svg"),Ft=xe("path"),_r=U(),ut=E("div");for(let I=0;I<Ae.length;I+=1)Ae[I].c();p(n,"class","headerText "+(r[20]?"headerTextNone":"")),p(d,"class","headerController"),p(i,"class","historyHeader"),p(_,"for","historyCalendarStartDate"),Ye(M,"max",r[4]),Ye(M,"value",r[5]),Ye(M,"placeholder","From"),Ye(M,"class","VaadinDatePicker"),p(g,"class","historyCalendarStartDate"),p(Q,"for","historyCalendarEndDate"),Ye(O,"max",r[4]),Ye(O,"value",r[6]),Ye(O,"placeholder","To"),Ye(O,"class","VaadinDatePicker"),p(W,"class","historyCalendarEndDate"),p(m,"class","historyCalendarContainer"),p(he,"class",w="historyCalendarFilter "+(r[18].filterButton?"":"disable")),p(u,"class","historyFilter"),p(N,"class","tableHead"),p(V,"class","tableContent"),p(x,"class",q=`tableWrapper ${r[7].replace("$","")} ${r[20]?"tableWrapperMobile":""}`),p(T,"class","historyTable"),p(Oe,"d","M1.293,12.707a1,1,0,0,1,0-1.414l5-5A1,1,0,0,1,7.707,7.707L4.414,11H22a1,1,0,0,1,0,2H4.414l3.293,3.293a1,1,0,1,1-1.414,1.414Z"),p(ce,"viewBox","1 4 17 17"),p(ce,"xmlns","http://www.w3.org/2000/svg"),p(we,"class",be="arrowLeft "+(r[18].previousPage?"":"disable")),p(fe,"class",Ke="indexDisplay "+(!r[18].previousPage&&!r[18].nextPage?"disable":"")),p(We,"d","M17.707,17.707a1,1,0,0,1-1.414-1.414L19.586,13H2a1,1,0,0,1,0-2H19.586L16.293,7.707a1,1,0,0,1,1.414-1.414l5,5a1,1,0,0,1,0,1.414Z"),p(ct,"viewBox","6 4 17 17"),p(ct,"xmlns","http://www.w3.org/2000/svg"),p(tt,"class",ee="arrowRight "+(r[18].nextPage?"":"disable")),p(se,"class","historyPageIndex"),p(Ft,"d","M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z"),p(Be,"xmlns","http://www.w3.org/2000/svg"),p(Be,"viewBox","6 5 20 20"),p(Be,"class","icon"),p(rt,"class","currentPageSize"),p(ut,"class","pageSizeDropDown"),p(je,"class",St="pageSizeSelector "+(r[11]?"active":"")+" "+(r[18].pageSize?"":"disable")),p(Et,"class","historyPageSize"),p(ne,"class","historyPaginationContainer"),p(t,"class","historyWrapper "+(r[20]?"historyMobileWrapper":"")),p(e,"class","historyContainer")},m(I,ae){ie(I,e,ae),f(e,t),f(t,i),it&&it.m(i,null),f(i,o),f(i,n),f(n,s),f(s,l),f(i,h),f(i,d);for(let H=0;H<Ce.length;H+=1)Ce[H]&&Ce[H].m(d,null);f(t,c),f(t,u),f(u,m),f(m,g),f(g,_),f(_,D),f(g,A),f(g,M),r[57](M),f(m,R),f(m,W),f(W,Q),f(Q,P),f(W,b),f(W,O),r[58](O),f(u,$),f(u,he),f(he,B),f(t,C),f(t,T),f(T,x),f(x,N);for(let H=0;H<Ee.length;H+=1)Ee[H]&&Ee[H].m(N,null);f(x,z),f(x,V),Ue.m(V,null),r[62](T),f(t,oe),f(t,ne),f(ne,se),f(se,we),f(we,ce),f(ce,Oe),f(se,ue),f(se,fe),f(fe,ke),f(ke,ze),f(se,dt),f(se,tt),f(tt,ct),f(ct,We),f(ne,ei),f(ne,Et),f(Et,je),f(je,rt),f(rt,pr),f(pr,mr),f(rt,fr),f(rt,Be),f(Be,Ft),f(je,_r),f(je,ut);for(let H=0;H<Ae.length;H+=1)Ae[H]&&Ae[H].m(ut,null);At||(ti=[gt(he,"click",r[59]),gt(we,"click",r[63]),gt(tt,"click",r[64]),gt(je,"click",r[66])],At=!0)},p(I,ae){if(I[20]&&it.p(I,ae),ae[0]&524288&&a!==(a=I[19]("headerTitle")+"")&&Ie(l,a),ae[0]&1074298880){pt=me(I[15]);let H;for(H=0;H<pt.length;H+=1){const Ze=Wa(I,pt,H);Ce[H]?Ce[H].p(Ze,ae):(Ce[H]=ja(Ze),Ce[H].c(),Ce[H].m(d,null))}for(;H<Ce.length;H+=1)Ce[H].d(1);Ce.length=pt.length}if(ae[0]&524288&&y!==(y=I[19]("dateFrom")+"")&&Ie(D,y),ae[0]&16&&Ye(M,"max",I[4]),ae[0]&32&&Ye(M,"value",I[5]),ae[0]&524288&&S!==(S=I[19]("dateTo")+"")&&Ie(P,S),ae[0]&16&&Ye(O,"max",I[4]),ae[0]&64&&Ye(O,"value",I[6]),ae[0]&524288&&de!==(de=I[19]("dateFilter")+"")&&Ie(B,de),ae[0]&262144&&w!==(w="historyCalendarFilter "+(I[18].filterButton?"":"disable"))&&p(he,"class",w),ae[0]&136839296){mt=me(I[21][I[7]]);let H;for(H=0;H<mt.length;H+=1){const Ze=Va(I,mt,H);Ee[H]?Ee[H].p(Ze,ae):(Ee[H]=Ga(Ze),Ee[H].c(),Ee[H].m(N,null))}for(;H<Ee.length;H+=1)Ee[H].d(1);Ee.length=mt.length}if(Pt===(Pt=ri(I))&&Ue?Ue.p(I,ae):(Ue.d(1),Ue=Pt(I),Ue&&(Ue.c(),Ue.m(V,null))),ae[0]&128&&q!==(q=`tableWrapper ${I[7].replace("$","")} ${I[20]?"tableWrapperMobile":""}`)&&p(x,"class",q),ae[0]&262144&&be!==(be="arrowLeft "+(I[18].previousPage?"":"disable"))&&p(we,"class",be),ae[0]&512&&Ie(ze,I[9]),ae[0]&262144&&Ke!==(Ke="indexDisplay "+(!I[18].previousPage&&!I[18].nextPage?"disable":""))&&p(fe,"class",Ke),ae[0]&262144&&ee!==(ee="arrowRight "+(I[18].nextPage?"":"disable"))&&p(tt,"class",ee),ae[0]&256&&Ie(mr,I[8]),ae[0]&536870912|ae[1]&4){ft=me(I[29]);let H;for(H=0;H<ft.length;H+=1){const Ze=Na(I,ft,H);Ae[H]?Ae[H].p(Ze,ae):(Ae[H]=el(Ze),Ae[H].c(),Ae[H].m(ut,null))}for(;H<Ae.length;H+=1)Ae[H].d(1);Ae.length=ft.length}ae[0]&264192&&St!==(St="pageSizeSelector "+(I[11]?"active":"")+" "+(I[18].pageSize?"":"disable"))&&p(je,"class",St)},d(I){I&&re(e),it&&it.d(),He(Ce,I),r[57](null),r[58](null),He(Ee,I),Ue.d(),r[62](null),He(Ae,I),At=!1,sr(ti)}}}function Jg(r){let e,t,i,o,n,s,a,l,h,d,c,u,m,g;function _(P,b){return P[20]?db:hb}let D=_(r)(r),A=me({length:3}),M=[];for(let P=0;P<A.length;P+=1)M[P]=cb(Kg(r,A,P));let R=me({length:6}),W=[];for(let P=0;P<R.length;P+=1)W[P]=ub(Xg(r,R,P));let Q=me({length:5}),S=[];for(let P=0;P<Q.length;P+=1)S[P]=mb(qg(r,Q,P));return{c(){e=E("div"),t=E("div"),i=E("div"),D.c(),o=U(),n=E("div");for(let P=0;P<M.length;P+=1)M[P].c();s=U(),a=E("div"),a.innerHTML='<div class="historyCalendarContainer"><div class="historyCalendarStartDate"><div class="label"><ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton></div> <ui-skeleton structure="rectangle" width="auto" height="10px"></ui-skeleton></div> <div class="historyCalendarEndDate"><div class="label"><ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton></div> <ui-skeleton structure="rectangle" width="auto" height="10px"></ui-skeleton></div></div> <div class="historyCalendarFilter"><ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton></div>',l=U(),h=E("table"),d=E("thead");for(let P=0;P<W.length;P+=1)W[P].c();c=U(),u=E("tbody");for(let P=0;P<S.length;P+=1)S[P].c();m=U(),g=E("div"),g.innerHTML='<div class="historyPageIndex"><ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton></div> <div class="historyPageSize"><ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton></div>',p(n,"class","headerController skeleton"),p(i,"class","historyHeader"),p(a,"class","historyFilter skeleton"),p(d,"class","tableHead"),p(u,"class","tableContent"),p(h,"class","historyTable skeleton"),p(g,"class","historyPaginationContainer skeleton"),p(t,"class","historyWrapper "+(r[20]?"historyMobileWrapper":"")),p(e,"class","historyContainer")},m(P,b){ie(P,e,b),f(e,t),f(t,i),D.m(i,null),f(i,o),f(i,n);for(let O=0;O<M.length;O+=1)M[O]&&M[O].m(n,null);f(t,s),f(t,a),f(t,l),f(t,h),f(h,d);for(let O=0;O<W.length;O+=1)W[O]&&W[O].m(d,null);f(h,c),f(h,u);for(let O=0;O<S.length;O+=1)S[O]&&S[O].m(u,null);f(t,m),f(t,g)},p:De,d(P){P&&re(e),D.d(),He(M,P),He(W,P),He(S,P)}}}function Qg(r){let e,t,i,o,n,s,a,l,h,d,c=r[19]("headerTitle")+"",u,m,g;return{c(){e=E("button"),t=xe("svg"),i=xe("defs"),o=xe("style"),n=ge(`.pathstyle {
6676
+ `}static get is(){return"vaadin-tabs"}}G(jg);function Ug(i){Gd(i,"svelte-xdr5hv",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.headerTextNone{display:none}.historyContainer{container-type:inline-size}.historyContainer .desktopSubmenu{display:flex}.historyContainer .allSubmenuRows{display:none}.historyContainer .historyWrapper{padding:50px}.historyContainer .historyWrapper .historyHeader{width:100%;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:20px}.historyContainer .historyWrapper .historyHeader .headerText p{color:var(--emw--color-primary, #22b04e);font-size:var(--emw--font-size-x-large, 26px);font-family:inherit}.historyContainer .historyWrapper .historyHeader .headerText.skeleton{width:250px;height:30px}.historyContainer .historyWrapper .historyHeader .headerController{display:inherit;flex-direction:row;align-items:center;flex-wrap:wrap;justify-content:flex-start;gap:30px}.historyContainer .historyWrapper .historyHeader .headerController.skeleton .toggleContent{justify-content:flex-start;overflow:hidden}.historyContainer .historyWrapper .historyHeader .headerController.skeleton .toggleContent .toggleCheckbox{border:none;padding:0;margin:0}.historyContainer .historyWrapper .historyHeader .headerController.skeleton .toggleContent .label{width:70px;height:15px;border-radius:var(--emw--border-radius-medium, 20px);overflow:hidden}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent{display:inherit;flex-direction:row;align-items:inherit;justify-content:inherit;background-color:transparent;border:none;cursor:pointer}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent .toggleCheckbox{width:20px;height:20px;padding:2px;margin:2px 0 2px 0;border-radius:100%;position:relative;border:1px solid var(--emw--color-gray-300, #666178)}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent .toggleCheckbox [type=checkbox]{display:none}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent .toggleCheckbox::before{content:"";width:12.75px;height:12.75px;border-radius:var(--emw--border-radius-large, 20px);cursor:pointer;position:absolute;top:50%;left:50%;z-index:1;transform:translate(-50%, -50%);transition:all 0.5s ease}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent.checked .toggleCheckbox{border:1px solid var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent.checked .toggleCheckbox::before{background-color:var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent .label{font-size:var(--emw--size-standard, 16px);font-family:inherit;margin-left:10px}.historyContainer .historyWrapper .historyFilter{display:flex;align-items:flex-end;gap:10px;padding-bottom:30px;padding:20px 0px}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer{display:flex;gap:5px}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate{width:190px;color:var(--emw--color-gray-300, #58586b);display:flex;flex-direction:column;position:relative;align-items:flex-start;gap:10px}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate.BonusesCalendarMobile,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px;width:48%}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%;border-radius:var(--emw--border-radius-medium, 20px)}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate label,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate label{font-size:var(--emw--font-size-small, 14px);font-weight:300}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate input,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate input{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #e6e6e6);border-radius:var(--emw--border-radius-small, 5px);box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px;outline-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22b04e) 80%, black 20%), var(--emw--color-primary, #22b04e), color-mix(in srgb, var(--emw--color-primary, #22b04e) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0e5924);color:var(--emw--button-text-color, #ffffff);border-radius:var(--emw--button-border-radius, 50px);cursor:pointer;width:120px;height:40px;font-size:var(--emw--font-size-medium, 15px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:9px;outline:none}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter.historyCalendarFilterMobile{width:100%;height:44px}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter.disable{cursor:default;color:var(--emw--color-white, #ffffff);background:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarStartDate,.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarEndDate{align-items:normal;overflow:hidden}.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarStartDate .label,.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarEndDate .label{height:15px;overflow:hidden;border-radius:20px}.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarFilter{padding:0;background:transparent;border:none;overflow:hidden}.historyContainer .historyWrapper .historyTable{width:100%;display:flex;flex-direction:column;border:1px solid var(--emw--color-primary, #22b04e);background-color:var(--emw--color-white, #ffffff);overflow:auto;scrollbar-width:thin}.historyContainer .historyWrapper .historyTable::-webkit-scrollbar{width:6px;height:6px}.historyContainer .historyWrapper .historyTable .tableWrapper{width:100%;display:flex;flex-direction:column}.historyContainer .historyWrapper .historyTable .tableWrapper.sports{width:100%;display:flex}.historyContainer .historyWrapper .historyTable .tableWrapper.sports .tableHead span{min-width:102px}.historyContainer .historyWrapper .historyTable .tableWrapper.sports .tableContent .tableRow .tableData span{min-width:101px}.historyContainer .historyWrapper .historyTable .tableHead{display:flex}.historyContainer .historyWrapper .historyTable .tableHead span{display:flex;justify-content:center;align-items:center;min-width:100px;flex:1 1 20%;padding:12px 0;text-align:center;color:var(--emw--button-text-color, #ffffff);background:var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyTable .tableContent{width:100%;max-height:546px;overflow-y:auto}.historyContainer .historyWrapper .historyTable .tableContent::-webkit-scrollbar{width:6px;height:6px}.historyContainer .historyWrapper .historyTable .tableContent .tableRow{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:10px 5px;background-color:var(--emw--color-primary, rgba(68, 224, 117, 0.811))}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData{display:flex;justify-content:center;align-items:center;width:100%}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu{width:100px;display:flex;justify-content:center;align-items:center;flex:1 1 20%;text-align:center;cursor:pointer;font-weight:700;font-size:inherit;text-decoration:underline;color:var(--emw--color-white, #ffffff);border:none;background-color:transparent}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu .iconToggleSubMenu{width:18px;height:18px;padding-bottom:5px;box-sizing:content-box;fill:var(--emw--color-white, #ffffff);transform:rotateX(0deg);transition:all 0.3s ease-in-out}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu .iconToggleSubMenu.active{transform:rotateX(180deg)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu span{width:70px;flex:none}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span{flex:1 1 20%;text-align:center;min-width:100px}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span.approved svg{width:30px;height:30px;fill:transparent}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span.approved svg path{stroke:var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span.decline svg{width:30px;height:30px;fill:transparent}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span.decline svg path{stroke:var(--emw--color-error, #ed0909)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu{display:flex;flex-direction:row;justify-content:center;align-items:center;width:100%;overflow:hidden;max-height:0px;overflow:hidden;opacity:0;transition:all 0.3s ease-in-out}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu .tableData{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;overflow:hidden}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu .tableData .label{width:100%;padding:0;overflow-wrap:break-word}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu.active{max-height:1000px;opacity:1}.historyContainer .historyWrapper .historyTable .tableContent .tableRow:nth-of-type(odd){background-color:var(--emw--color-white, #ffffff)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow:nth-of-type(odd) .tableData .toggleSubMenu{color:var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow:nth-of-type(odd) .tableData .toggleSubMenu .iconToggleSubMenu{fill:var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyTable.skeleton .tableHead{gap:40px;padding:18px 25px}.historyContainer .historyWrapper .historyTable.skeleton .tableHead div{width:100px;overflow:hidden;height:15px;border-radius:10px;flex:1 1 20%}.historyContainer .historyWrapper .historyTable.skeleton .tableContent .tableRow{padding:0px}.historyContainer .historyWrapper .historyTable.skeleton .tableContent .tableRow .tableData{gap:40px;padding:18px 25px;border-radius:10px}.historyContainer .historyWrapper .historyTable.skeleton .tableContent .tableRow .tableData div{overflow:hidden;height:15px;border-radius:10px;width:100px;flex:1 1 20%;text-align:center}.historyContainer .historyWrapper .historyPaginationContainer{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:20px;padding-top:10px}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex{width:fit-content;display:flex;flex-direction:row;align-items:center;justify-content:center;border:1px solid var(--emw--color-primary, #22b04e);border-radius:var(--emw--border-radius-small, 5px)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .indexDisplay{text-align:center;width:40px;padding:10px;transition:all 0.3s ease;border-left:1px solid var(--emw--color-primary, #22b04e);border-right:1px solid var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .indexDisplay input{width:100%}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .indexDisplay.disable{color:var(--emw--color-white, #ffffff);background:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight{display:flex;justify-content:center;align-items:center;width:20px;height:20px;padding:9px;box-sizing:content-box;cursor:pointer;transition:all 0.3s ease;background-color:transparent;border:none}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft svg,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight svg{fill:var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft.disable,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight.disable{cursor:default;background:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft.disable svg,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight.disable svg{fill:var(--emw--color-white, #ffffff)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft.disable:hover,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight.disable:hover{background-color:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft:hover,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight:hover{background-color:var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft:hover svg,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight:hover svg{fill:var(--emw--color-white, #ffffff)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize{width:fit-content;display:inline;text-align:center;width:80px;height:43px}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector{width:100%;height:100%;position:relative;border:none;background-color:transparent;cursor:pointer;border-radius:var(--emw--border-radius-small, 5px)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .currentPageSize{width:100%;height:100%;padding:10px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;border:1px solid var(--emw--color-primary, #22b04e);border-radius:var(--emw--border-radius-small, 5px)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .currentPageSize .icon{width:15px;height:15px;padding-bottom:2px;transform:rotateX(0deg);box-sizing:content-box;transition:all 0.3s ease;fill:var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown{width:100%;max-height:0px;position:absolute;top:120%;left:0;text-align:left;overflow:hidden;opacity:0;background-color:var(--emw--color-white, #ffffff);border:1px solid var(--emw--color-primary, #22b04e);border-radius:var(--emw--border-radius-small, 5px);transition:all 0.3s ease}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown .dropDownRow{width:100%;cursor:pointer;padding:10px;border:none;background-color:transparent;border-bottom:1px solid var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown .dropDownRow .p{flex:1 1 20%;text-align:center}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown .dropDownRow:hover{background-color:var(--emw--color-primary, rgba(68, 224, 117, 0.811))}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown .dropDownRow:nth-last-child(1){border:none}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.active .currentPageSize .icon{transform:rotateX(180deg)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.active .pageSizeDropDown{max-height:1000px;opacity:1}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.disable{cursor:default;background-color:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.disable .currentPageSize{color:var(--emw--color-white, #ffffff)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.disable .currentPageSize .icon{fill:var(--emw--color-white, #ffffff)}.historyContainer .historyWrapper .historyPaginationContainer.skeleton .historyPageIndex{display:block;width:100px;border:none;overflow:hidden;border-radius:5px}.historyContainer .historyWrapper .historyPaginationContainer.skeleton .historyPageSize{border:none;overflow:hidden;border-radius:5px}.historyContainer .historyMobileWrapper.historyWrapper{padding:20px 15px}.historyContainer .historyMobileWrapper.historyWrapper .historyHeader .headerText{display:none}.historyContainer .historyMobileWrapper.historyWrapper .historyHeader .historyReturnButton{display:inline-flex;border:none;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));align-items:center;column-gap:10px;margin-bottom:10px}.historyContainer .historyMobileWrapper.historyWrapper .historyHeader .historyReturnButton .historyReturnText{font-size:var(--emw--size-standard, 16px)}.historyContainer .historyMobileWrapper.historyWrapper .historyHeader .historyReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.historyContainer .historyMobileWrapper.historyWrapper .historyHeader .historyReturnButton.skeleton{width:200px;height:20px}.historyContainer .historyMobileWrapper.historyWrapper .historyHeader .headerController{width:100%;align-items:center;justify-content:center}.historyContainer .historyMobileWrapper.historyWrapper .historyFilter{flex-direction:column;align-items:center}.historyContainer .historyMobileWrapper.historyWrapper .historyFilter .historyCalendarContainer{width:100%}.historyContainer .historyMobileWrapper.historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate,.historyContainer .historyMobileWrapper.historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate{width:inherit}.historyContainer .historyMobileWrapper.historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate .VaadinDatePicker,.historyContainer .historyMobileWrapper.historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate .VaadinDatePicker{width:inherit}.historyContainer .historyMobileWrapper.historyWrapper .historyFilter .historyCalendarFilter{width:100%}.historyContainer .historyMobileWrapper.historyWrapper .historyTable{overflow:auto}.historyContainer .historyMobileWrapper.historyWrapper .historyTable .tableHead{min-width:fit-content}.historyContainer .historyMobileWrapper.historyWrapper .historyTable .tableContent{min-width:fit-content;max-height:430px}.historyContainer .historyMobileWrapper.historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown{top:-150px}@container (max-width: 425px){.historyContainer .historyWrapper{display:flex;flex-direction:column}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer{width:100%;flex-direction:column}.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarStartDate .label,.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarEndDate .label{width:100px}.historyContainer .historyWrapper .historyTable{overflow:auto}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span{padding:5px 0;font-size:13px}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown{top:-150px}}@container (max-width: 520px){.historyContainer .historyWrapper .historyFilter{flex-direction:column;align-items:flex-start}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer{flex-direction:column;width:100%}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate{min-width:190px;width:100%}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate vaadin-date-picker,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate vaadin-date-picker{width:100%}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter{min-width:190px;width:100%}}@container (max-width: 784px){.historyContainer .historyWrapper .historyTable{min-width:190px}.historyContainer .historyWrapper .historyTable .tableWrapper{display:flex}.historyContainer .historyWrapper .historyTable .tableHead{display:none}.historyContainer .historyWrapper .historyTable .tableRow{display:flex;flex-direction:column;border:1px solid #ddd;margin-bottom:16px;border-radius:8px;overflow:hidden;background:#fff;text-align:center}.historyContainer .historyWrapper .historyTable .tableData{display:flex;flex-direction:column;padding:16px}.historyContainer .historyWrapper .historyTable .tableData span{width:100%}.historyContainer .historyWrapper .historyTable .tableData span[data-label],.historyContainer .historyWrapper .historyTable .tableData button[data-label]{display:flex;justify-content:space-between;align-items:center;padding:4px 0;border-bottom:1px solid #eee}.historyContainer .historyWrapper .historyTable .tableData span[data-label]::before,.historyContainer .historyWrapper .historyTable .tableData button[data-label]::before{content:attr(data-label);font-weight:600;color:#555;margin-right:16px;flex:1;text-align:left}.historyContainer .historyWrapper .historyTable .tableData button[data-label]{padding:2px 0}.historyContainer .historyWrapper .historyTable .tableData span[data-label]:last-child{border-bottom:none}.historyContainer .historyWrapper .historyTable .tableData span[data-label],.historyContainer .historyWrapper .historyTable .tableData button[data-label] span{flex:2;text-align:right;font-weight:normal;color:#222}.historyContainer .historyWrapper .historyTable .tableContent{overflow-y:visible;padding:10px 5px}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span{text-align:right}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu{width:100%}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu{display:none;margin-top:15px}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu.active{display:block;padding:0 18px}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu .tableData{display:flex;flex-direction:column;padding:1px}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu .label{display:flex;justify-content:space-between;padding:3px 0;font-size:14px;border-bottom:1px solid #eee;flex:2;text-align:right;font-weight:normal;color:rgba(0, 0, 0, 0.7);padding:2px 0}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu .label::before{content:attr(data-label);font-weight:600;display:inline-block;width:100px;flex:1;text-align:left;margin-right:8px}.historyContainer .historyWrapper .historyTable .tableContent .submenuRow{margin-top:10px}.historyContainer .historyWrapper .historyTable .tableContent .remainingRows .submenuRow{margin:0}.historyContainer .historyWrapper .historyTable .tableContent .remainingRows .submenuRow:last-of-type .tableData span{border-bottom:none}.historyContainer .historyWrapper .historyTable .tableContent .submenuRowTitle{font-size:14px}.historyContainer .remainingRows{margin-top:15px}.historyContainer .desktopSubmenu{display:none}.historyContainer .allSubmenuRows{display:flex;flex-direction:column}}@container (min-width: 785px){.historyContainer .historyWrapper .historyTable .tableWrapper.sports{display:block}}')}function Ma(i,e,t){const r=i.slice();return r[99]=e[t],r}function Na(i,e,t){const r=i.slice();return r[102]=e[t],r[103]=e,r[104]=t,r}function za(i,e,t){const r=i.slice();return r[105]=e[t],r}function Ba(i,e,t){const r=i.slice();return r[90]=e[t],r[109]=t,r}function La(i,e,t){const r=i.slice();return r[105]=e[t],r}function Ha(i,e,t){const r=i.slice();return r[112]=e[t],r}function Ra(i,e,t){const r=i.slice();return r[115]=e[t],r}function Fa(i,e,t){const r=i.slice();return r[112]=e[t],r}function Va(i,e,t){const r=i.slice();return r[112]=e[t],r}function $a(i,e,t){const r=i.slice();return r[122]=e[t],r[104]=t,r}function Gg(i,e,t){const r=i.slice();return r[90]=e[t],r}function qg(i,e,t){const r=i.slice();return r[90]=e[t],r}function Yg(i,e,t){const r=i.slice();return r[90]=e[t],r}function Xg(i,e,t){const r=i.slice();return r[90]=e[t],r}function Kg(i){let e,t,r,o,n,s,a=i[19]("headerTitle")+"",l,h,d,c,u,m,g,f,y=i[19]("dateFrom")+"",D,A,M,R,W,Q,S=i[19]("dateTo")+"",P,b,O,V,de,ce=i[19]("dateFilter")+"",B,w,C,T,x,N,z,$,q,ne,se,ae,we,ue,Oe,be,pe,fe,ke,ze,Ke,dt,et,ct,We,ee,Qi,Et,je,tt,mi,_i,fi,Be,Ft,vi,ut,St,At,er,it=i[20]&&Jg(i),pt=_e(i[15]),Ce=[];for(let I=0;I<pt.length;I+=1)Ce[I]=Wa($a(i,pt,I));let mt=_e(i[21][i[7]]),Ee=[];for(let I=0;I<mt.length;I+=1)Ee[I]=Ua(Va(i,mt,I));function tr(I,le){return I[12]?Qg:eb}let Pt=tr(i),Ue=Pt(i),_t=_e(i[29]),Ae=[];for(let I=0;I<_t.length;I+=1)Ae[I]=Qa(Ma(i,_t,I));return{c(){e=E("div"),t=E("div"),r=E("div"),it&&it.c(),o=U(),n=E("div"),s=E("p"),l=ge(a),h=U(),d=E("div");for(let I=0;I<Ce.length;I+=1)Ce[I].c();c=U(),u=E("div"),m=E("div"),g=E("div"),f=E("label"),D=ge(y),A=U(),M=E("vaadin-date-picker"),R=U(),W=E("div"),Q=E("label"),P=ge(S),b=U(),O=E("vaadin-date-picker"),V=U(),de=E("button"),B=ge(ce),C=U(),T=E("table"),x=E("div"),N=E("thead");for(let I=0;I<Ee.length;I+=1)Ee[I].c();z=U(),$=E("tbody"),Ue.c(),ne=U(),se=E("div"),ae=E("div"),we=E("button"),ue=xe("svg"),Oe=xe("path"),pe=U(),fe=E("div"),ke=E("p"),ze=ge(i[9]),dt=U(),et=E("button"),ct=xe("svg"),We=xe("path"),Qi=U(),Et=E("div"),je=E("button"),tt=E("div"),mi=E("p"),_i=ge(i[8]),fi=U(),Be=xe("svg"),Ft=xe("path"),vi=U(),ut=E("div");for(let I=0;I<Ae.length;I+=1)Ae[I].c();p(n,"class","headerText "+(i[20]?"headerTextNone":"")),p(d,"class","headerController"),p(r,"class","historyHeader"),p(f,"for","historyCalendarStartDate"),Ye(M,"max",i[4]),Ye(M,"value",i[5]),Ye(M,"placeholder","From"),Ye(M,"class","VaadinDatePicker"),p(g,"class","historyCalendarStartDate"),p(Q,"for","historyCalendarEndDate"),Ye(O,"max",i[4]),Ye(O,"value",i[6]),Ye(O,"placeholder","To"),Ye(O,"class","VaadinDatePicker"),p(W,"class","historyCalendarEndDate"),p(m,"class","historyCalendarContainer"),p(de,"class",w="historyCalendarFilter "+(i[18].filterButton?"":"disable")),p(u,"class","historyFilter"),p(N,"class","tableHead"),p($,"class","tableContent"),p(x,"class",q=`tableWrapper ${i[7].replace("$","")} ${i[20]?"tableWrapperMobile":""}`),p(T,"class","historyTable"),p(Oe,"d","M1.293,12.707a1,1,0,0,1,0-1.414l5-5A1,1,0,0,1,7.707,7.707L4.414,11H22a1,1,0,0,1,0,2H4.414l3.293,3.293a1,1,0,1,1-1.414,1.414Z"),p(ue,"viewBox","1 4 17 17"),p(ue,"xmlns","http://www.w3.org/2000/svg"),p(we,"class",be="arrowLeft "+(i[18].previousPage?"":"disable")),p(fe,"class",Ke="indexDisplay "+(!i[18].previousPage&&!i[18].nextPage?"disable":"")),p(We,"d","M17.707,17.707a1,1,0,0,1-1.414-1.414L19.586,13H2a1,1,0,0,1,0-2H19.586L16.293,7.707a1,1,0,0,1,1.414-1.414l5,5a1,1,0,0,1,0,1.414Z"),p(ct,"viewBox","6 4 17 17"),p(ct,"xmlns","http://www.w3.org/2000/svg"),p(et,"class",ee="arrowRight "+(i[18].nextPage?"":"disable")),p(ae,"class","historyPageIndex"),p(Ft,"d","M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z"),p(Be,"xmlns","http://www.w3.org/2000/svg"),p(Be,"viewBox","6 5 20 20"),p(Be,"class","icon"),p(tt,"class","currentPageSize"),p(ut,"class","pageSizeDropDown"),p(je,"class",St="pageSizeSelector "+(i[11]?"active":"")+" "+(i[18].pageSize?"":"disable")),p(Et,"class","historyPageSize"),p(se,"class","historyPaginationContainer"),p(t,"class","historyWrapper "+(i[20]?"historyMobileWrapper":"")),p(e,"class","historyContainer")},m(I,le){oe(I,e,le),_(e,t),_(t,r),it&&it.m(r,null),_(r,o),_(r,n),_(n,s),_(s,l),_(r,h),_(r,d);for(let H=0;H<Ce.length;H+=1)Ce[H]&&Ce[H].m(d,null);_(t,c),_(t,u),_(u,m),_(m,g),_(g,f),_(f,D),_(g,A),_(g,M),i[57](M),_(m,R),_(m,W),_(W,Q),_(Q,P),_(W,b),_(W,O),i[58](O),_(u,V),_(u,de),_(de,B),_(t,C),_(t,T),_(T,x),_(x,N);for(let H=0;H<Ee.length;H+=1)Ee[H]&&Ee[H].m(N,null);_(x,z),_(x,$),Ue.m($,null),i[62](T),_(t,ne),_(t,se),_(se,ae),_(ae,we),_(we,ue),_(ue,Oe),_(ae,pe),_(ae,fe),_(fe,ke),_(ke,ze),_(ae,dt),_(ae,et),_(et,ct),_(ct,We),_(se,Qi),_(se,Et),_(Et,je),_(je,tt),_(tt,mi),_(mi,_i),_(tt,fi),_(tt,Be),_(Be,Ft),_(je,vi),_(je,ut);for(let H=0;H<Ae.length;H+=1)Ae[H]&&Ae[H].m(ut,null);At||(er=[gt(de,"click",i[59]),gt(we,"click",i[63]),gt(et,"click",i[64]),gt(je,"click",i[66])],At=!0)},p(I,le){if(I[20]&&it.p(I,le),le[0]&524288&&a!==(a=I[19]("headerTitle")+"")&&Ie(l,a),le[0]&1074298880){pt=_e(I[15]);let H;for(H=0;H<pt.length;H+=1){const Ze=$a(I,pt,H);Ce[H]?Ce[H].p(Ze,le):(Ce[H]=Wa(Ze),Ce[H].c(),Ce[H].m(d,null))}for(;H<Ce.length;H+=1)Ce[H].d(1);Ce.length=pt.length}if(le[0]&524288&&y!==(y=I[19]("dateFrom")+"")&&Ie(D,y),le[0]&16&&Ye(M,"max",I[4]),le[0]&32&&Ye(M,"value",I[5]),le[0]&524288&&S!==(S=I[19]("dateTo")+"")&&Ie(P,S),le[0]&16&&Ye(O,"max",I[4]),le[0]&64&&Ye(O,"value",I[6]),le[0]&524288&&ce!==(ce=I[19]("dateFilter")+"")&&Ie(B,ce),le[0]&262144&&w!==(w="historyCalendarFilter "+(I[18].filterButton?"":"disable"))&&p(de,"class",w),le[0]&136839296){mt=_e(I[21][I[7]]);let H;for(H=0;H<mt.length;H+=1){const Ze=Va(I,mt,H);Ee[H]?Ee[H].p(Ze,le):(Ee[H]=Ua(Ze),Ee[H].c(),Ee[H].m(N,null))}for(;H<Ee.length;H+=1)Ee[H].d(1);Ee.length=mt.length}if(Pt===(Pt=tr(I))&&Ue?Ue.p(I,le):(Ue.d(1),Ue=Pt(I),Ue&&(Ue.c(),Ue.m($,null))),le[0]&128&&q!==(q=`tableWrapper ${I[7].replace("$","")} ${I[20]?"tableWrapperMobile":""}`)&&p(x,"class",q),le[0]&262144&&be!==(be="arrowLeft "+(I[18].previousPage?"":"disable"))&&p(we,"class",be),le[0]&512&&Ie(ze,I[9]),le[0]&262144&&Ke!==(Ke="indexDisplay "+(!I[18].previousPage&&!I[18].nextPage?"disable":""))&&p(fe,"class",Ke),le[0]&262144&&ee!==(ee="arrowRight "+(I[18].nextPage?"":"disable"))&&p(et,"class",ee),le[0]&256&&Ie(_i,I[8]),le[0]&536870912|le[1]&4){_t=_e(I[29]);let H;for(H=0;H<_t.length;H+=1){const Ze=Ma(I,_t,H);Ae[H]?Ae[H].p(Ze,le):(Ae[H]=Qa(Ze),Ae[H].c(),Ae[H].m(ut,null))}for(;H<Ae.length;H+=1)Ae[H].d(1);Ae.length=_t.length}le[0]&264192&&St!==(St="pageSizeSelector "+(I[11]?"active":"")+" "+(I[18].pageSize?"":"disable"))&&p(je,"class",St)},d(I){I&&re(e),it&&it.d(),He(Ce,I),i[57](null),i[58](null),He(Ee,I),Ue.d(),i[62](null),He(Ae,I),At=!1,ai(er)}}}function Zg(i){let e,t,r,o,n,s,a,l,h,d,c,u,m,g;function f(P,b){return P[20]?hb:lb}let D=f(i)(i),A=_e({length:3}),M=[];for(let P=0;P<A.length;P+=1)M[P]=db(Xg(i,A,P));let R=_e({length:6}),W=[];for(let P=0;P<R.length;P+=1)W[P]=cb(Yg(i,R,P));let Q=_e({length:5}),S=[];for(let P=0;P<Q.length;P+=1)S[P]=pb(Gg(i,Q,P));return{c(){e=E("div"),t=E("div"),r=E("div"),D.c(),o=U(),n=E("div");for(let P=0;P<M.length;P+=1)M[P].c();s=U(),a=E("div"),a.innerHTML='<div class="historyCalendarContainer"><div class="historyCalendarStartDate"><div class="label"><ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton></div> <ui-skeleton structure="rectangle" width="auto" height="10px"></ui-skeleton></div> <div class="historyCalendarEndDate"><div class="label"><ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton></div> <ui-skeleton structure="rectangle" width="auto" height="10px"></ui-skeleton></div></div> <div class="historyCalendarFilter"><ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton></div>',l=U(),h=E("table"),d=E("thead");for(let P=0;P<W.length;P+=1)W[P].c();c=U(),u=E("tbody");for(let P=0;P<S.length;P+=1)S[P].c();m=U(),g=E("div"),g.innerHTML='<div class="historyPageIndex"><ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton></div> <div class="historyPageSize"><ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton></div>',p(n,"class","headerController skeleton"),p(r,"class","historyHeader"),p(a,"class","historyFilter skeleton"),p(d,"class","tableHead"),p(u,"class","tableContent"),p(h,"class","historyTable skeleton"),p(g,"class","historyPaginationContainer skeleton"),p(t,"class","historyWrapper "+(i[20]?"historyMobileWrapper":"")),p(e,"class","historyContainer")},m(P,b){oe(P,e,b),_(e,t),_(t,r),D.m(r,null),_(r,o),_(r,n);for(let O=0;O<M.length;O+=1)M[O]&&M[O].m(n,null);_(t,s),_(t,a),_(t,l),_(t,h),_(h,d);for(let O=0;O<W.length;O+=1)W[O]&&W[O].m(d,null);_(h,c),_(h,u);for(let O=0;O<S.length;O+=1)S[O]&&S[O].m(u,null);_(t,m),_(t,g)},p:De,d(P){P&&re(e),D.d(),He(M,P),He(W,P),He(S,P)}}}function Jg(i){let e,t,r,o,n,s,a,l,h,d,c=i[19]("headerTitle")+"",u,m,g;return{c(){e=E("button"),t=xe("svg"),r=xe("defs"),o=xe("style"),n=ge(`.pathstyle {
6677
6677
  fill: var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));
6678
6678
  }
6679
- `),s=xe("g"),a=xe("g"),l=xe("path"),h=U(),d=E("h2"),u=ge(c),p(l,"class","pathstyle"),p(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),p(l,"transform","translate(15 15) rotate(180)"),p(a,"transform","translate(20 158)"),p(s,"transform","translate(-20 -158)"),p(t,"xmlns","http://www.w3.org/2000/svg"),p(t,"width","15"),p(t,"height","15"),p(t,"viewBox","0 0 15 15"),p(d,"class","historyReturnText"),p(e,"class","historyReturnButton")},m(_,y){ie(_,e,y),f(e,t),f(t,i),f(i,o),f(o,n),f(t,s),f(s,a),f(a,l),f(e,h),f(e,d),f(d,u),m||(g=gt(e,"click",r[55]),m=!0)},p(_,y){y[0]&524288&&c!==(c=_[19]("headerTitle")+"")&&Ie(u,c)},d(_){_&&re(e),m=!1,g()}}}function ja(r){let e,t,i,o,n=r[19](r[122].type)+"",s,a,l,h,d;function c(){return r[56](r[104])}return{c(){e=E("button"),t=E("div"),t.innerHTML='<input type="checkbox"/> <span class="circle"></span>',i=U(),o=E("p"),s=ge(n),a=U(),p(t,"class","toggleCheckbox"),p(o,"class","label"),p(e,"class",l="toggleContent "+(r[122].checked?"checked":""))},m(u,m){ie(u,e,m),f(e,t),f(e,i),f(e,o),f(o,s),f(e,a),h||(d=gt(e,"click",c),h=!0)},p(u,m){r=u,m[0]&557056&&n!==(n=r[19](r[122].type)+"")&&Ie(s,n),m[0]&32768&&l!==(l="toggleContent "+(r[122].checked?"checked":""))&&p(e,"class",l)},d(u){u&&re(e),h=!1,d()}}}function Ua(r){let e,t=(r[19](r[112])||r[112])+"",i,o;return{c(){e=E("span"),i=ge(t),o=U()},m(n,s){ie(n,e,s),f(e,i),f(e,o)},p(n,s){s[0]&524416&&t!==(t=(n[19](n[112])||n[112])+"")&&Ie(i,t)},d(n){n&&re(e)}}}function Ga(r){let e=!r[27].includes(r[112].replace(/\s/g,"").toLowerCase()),t,i=e&&Ua(r);return{c(){i&&i.c(),t=$i()},m(o,n){i&&i.m(o,n),ie(o,t,n)},p(o,n){n[0]&128&&(e=!o[27].includes(o[112].replace(/\s/g,"").toLowerCase())),e?i?i.p(o,n):(i=Ua(o),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null)},d(o){o&&re(t),i&&i.d(o)}}}function eb(r){let e,t;return{c(){e=E("div"),t=ge(r[3]),p(e,"class","tableRow")},m(i,o){ie(i,e,o),f(e,t)},p(i,o){o[0]&8&&Ie(t,i[3])},d(i){i&&re(e)}}}function tb(r){let e,t=me(r[16][r[7]]),i=[];for(let o=0;o<t.length;o+=1)i[o]=Qa(za(r,t,o));return{c(){for(let o=0;o<i.length;o+=1)i[o].c();e=$i()},m(o,n){for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(o,n);ie(o,e,n)},p(o,n){if(n[0]&398672e3|n[1]&48){t=me(o[16][o[7]]);let s;for(s=0;s<t.length;s+=1){const a=za(o,t,s);i[s]?i[s].p(a,n):(i[s]=Qa(a),i[s].c(),i[s].m(e.parentNode,e))}for(;s<i.length;s+=1)i[s].d(1);i.length=t.length}},d(o){o&&re(e),He(i,o)}}}function rb(r){let e,t=(r[102][r[112]]||"-")+"",i,o,n;return{c(){var s;e=E("span"),i=ge(t),o=U(),p(e,"data-label",n=((s=r[23][r[7]])==null?void 0:s[r[112].replace(/\s/g,"")])||r[112])},m(s,a){ie(s,e,a),f(e,i),f(e,o)},p(s,a){var l;a[0]&65664&&t!==(t=(s[102][s[112]]||"-")+"")&&Ie(i,t),a[0]&128&&n!==(n=((l=s[23][s[7]])==null?void 0:l[s[112].replace(/\s/g,"")])||s[112])&&p(e,"data-label",n)},d(s){s&&re(e)}}}function ib(r){let e,t=(r[102][r[112]].submenu[0]||"-")+"",i,o,n;return{c(){var s;e=E("span"),i=ge(t),o=U(),p(e,"data-label",n=((s=r[23][r[7]])==null?void 0:s[r[112].replace(/\s/g,"")])||r[112])},m(s,a){ie(s,e,a),f(e,i),f(e,o)},p(s,a){var l;a[0]&65664&&t!==(t=(s[102][s[112]].submenu[0]||"-")+"")&&Ie(i,t),a[0]&128&&n!==(n=((l=s[23][s[7]])==null?void 0:l[s[112].replace(/\s/g,"")])||s[112])&&p(e,"data-label",n)},d(s){s&&re(e)}}}function ob(r){let e,t,i,o,n,s,a=r[102][r[112]].label+"",l,h,d,c,u;function m(){return r[60](r[104])}return{c(){var g;e=E("button"),t=xe("svg"),i=xe("path"),n=U(),s=E("span"),l=ge(a),h=U(),p(i,"d","M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z"),p(t,"xmlns","http://www.w3.org/2000/svg"),p(t,"viewBox","6 5 20 20"),p(t,"class",o="iconToggleSubMenu "+(r[17][r[104]]?"active":"")),p(e,"class","toggleSubMenu"),p(e,"data-label",d=((g=r[23][r[7]])==null?void 0:g[r[112].replace(/\s/g,"")])||r[112])},m(g,_){ie(g,e,_),f(e,t),f(t,i),f(e,n),f(e,s),f(s,l),f(e,h),c||(u=gt(e,"click",m),c=!0)},p(g,_){var y;r=g,_[0]&131072&&o!==(o="iconToggleSubMenu "+(r[17][r[104]]?"active":""))&&p(t,"class",o),_[0]&65664&&a!==(a=r[102][r[112]].label+"")&&Ie(l,a),_[0]&128&&d!==(d=((y=r[23][r[7]])==null?void 0:y[r[112].replace(/\s/g,"")])||r[112])&&p(e,"data-label",d)},d(g){g&&re(e),c=!1,u()}}}function nb(r){let e,t,i,o,n;return{c(){var s;e=E("span"),t=xe("svg"),i=xe("path"),o=U(),p(i,"d","M9 9L15 15M15 9L9 15M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z"),p(i,"stroke","#000000"),p(i,"stroke-width","2"),p(i,"stroke-linecap","round"),p(i,"stroke-linejoin","round"),p(t,"viewBox","-3 -4 30 30"),p(t,"xmlns","http://www.w3.org/2000/svg"),p(e,"class","decline"),p(e,"data-label",n=((s=r[23][r[7]])==null?void 0:s[r[112].replace(/\s/g,"")])||r[112])},m(s,a){ie(s,e,a),f(e,t),f(t,i),f(e,o)},p(s,a){var l;a[0]&128&&n!==(n=((l=s[23][s[7]])==null?void 0:l[s[112].replace(/\s/g,"")])||s[112])&&p(e,"data-label",n)},d(s){s&&re(e)}}}function sb(r){let e,t,i,o,n,s;return{c(){var a;e=E("span"),t=xe("svg"),i=xe("path"),o=xe("path"),n=U(),p(i,"fill-rule","evenodd"),p(i,"clip-rule","evenodd"),p(i,"d","M5.5 12.0002C5.50024 8.66068 7.85944 5.78639 11.1348 5.1351C14.4102 4.48382 17.6895 6.23693 18.9673 9.32231C20.2451 12.4077 19.1655 15.966 16.3887 17.8212C13.6119 19.6764 9.91127 19.3117 7.55 16.9502C6.23728 15.6373 5.49987 13.8568 5.5 12.0002Z"),p(i,"stroke","#000000"),p(i,"stroke-width","1.5"),p(i,"stroke-linecap","round"),p(i,"stroke-linejoin","round"),p(o,"d","M9 12.0002L11.333 14.3332L16 9.66724"),p(o,"stroke-width","1.5"),p(o,"stroke-linecap","round"),p(o,"stroke-linejoin","round"),p(t,"viewBox","0 0 24 24"),p(t,"xmlns","http://www.w3.org/2000/svg"),p(e,"class","approved"),p(e,"data-label",s=((a=r[23][r[7]])==null?void 0:a[r[112].replace(/\s/g,"").toLowerCase()])||r[112])},m(a,l){ie(a,e,l),f(e,t),f(t,i),f(t,o),f(e,n)},p(a,l){var h;l[0]&128&&s!==(s=((h=a[23][a[7]])==null?void 0:h[a[112].replace(/\s/g,"").toLowerCase()])||a[112])&&p(e,"data-label",s)},d(a){a&&re(e)}}}function qa(r){let e,t;function i(s,a){var l,h,d;if(a[0]&128&&(e=null),s[102][s[112]]===!0)return sb;if(s[102][s[112]]===!1)return nb;if((l=s[102][s[112]])!=null&&l.label&&((h=s[102][s[112]])==null?void 0:h.submenu.length)>1)return ob;if((d=s[102][s[112]])!=null&&d.submenu)return ib;if(e==null&&(e=!s[28].includes(s[112].toLowerCase())),e)return rb}let o=i(r,[-1,-1,-1,-1]),n=o&&o(r);return{c(){n&&n.c(),t=$i()},m(s,a){n&&n.m(s,a),ie(s,t,a)},p(s,a){o===(o=i(s,a))&&n?n.p(s,a):(n&&n.d(1),n=o&&o(s),n&&(n.c(),n.m(t.parentNode,t)))},d(s){s&&re(t),n&&n.d(s)}}}function ab(r){let e,t,i,o,n;return{c(){var s;e=E("div"),t=E("span"),i=ge("-"),n=U(),p(t,"data-label",o=((s=r[23][r[7]])==null?void 0:s[r[112].replace(/\s/g,"").toLowerCase()])||r[112]),p(t,"class","label"),p(e,"class","tableData")},m(s,a){ie(s,e,a),f(e,t),f(t,i),f(e,n)},p(s,a){var l;a[0]&128&&o!==(o=((l=s[23][s[7]])==null?void 0:l[s[112].replace(/\s/g,"").toLowerCase()])||s[112])&&p(t,"data-label",o)},d(s){s&&re(e)}}}function lb(r){let e,t,i=me(r[102][r[112]].submenu),o=[];for(let n=0;n<i.length;n+=1)o[n]=Ya(Fa(r,i,n));return{c(){e=E("div");for(let n=0;n<o.length;n+=1)o[n].c();t=U(),p(e,"class","tableData")},m(n,s){ie(n,e,s);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(e,null);f(e,t)},p(n,s){if(s[0]&12648576){i=me(n[102][n[112]].submenu);let a;for(a=0;a<i.length;a+=1){const l=Fa(n,i,a);o[a]?o[a].p(l,s):(o[a]=Ya(l),o[a].c(),o[a].m(e,t))}for(;a<o.length;a+=1)o[a].d(1);o.length=i.length}},d(n){n&&re(e),He(o,n)}}}function Ya(r){let e,t=(r[115]||"-")+"",i,o;return{c(){var n;e=E("span"),i=ge(t),p(e,"data-label",o=((n=r[23][r[7]])==null?void 0:n[r[112].replace(/\s/g,"").toLowerCase()])||r[112]),p(e,"class","label")},m(n,s){ie(n,e,s),f(e,i)},p(n,s){var a;s[0]&65664&&t!==(t=(n[115]||"-")+"")&&Ie(i,t),s[0]&128&&o!==(o=((a=n[23][n[7]])==null?void 0:a[n[112].replace(/\s/g,"").toLowerCase()])||n[112])&&p(e,"data-label",o)},d(n){n&&re(e)}}}function Xa(r){let e;function t(n,s){var a;return(a=n[102][n[112]])!=null&&a.submenu?lb:ab}let i=t(r),o=i(r);return{c(){o.c(),e=$i()},m(n,s){o.m(n,s),ie(n,e,s)},p(n,s){i===(i=t(n))&&o?o.p(n,s):(o.d(1),o=i(n),o&&(o.c(),o.m(e.parentNode,e)))},d(n){n&&re(e),o.d(n)}}}function Ka(r){var n,s;let e,t,i=(((s=(n=r[102][r[105]])==null?void 0:n.submenu)==null?void 0:s[r[109]])||"-")+"",o;return{c(){var a;e=E("div"),t=E("span"),o=ge(i),p(t,"data-label",(a=r[23].sports)==null?void 0:a[r[105]]),p(t,"class","label"),p(e,"class","tableData")},m(a,l){ie(a,e,l),f(e,t),f(t,o)},p(a,l){var h,d;l[0]&65664&&i!==(i=(((d=(h=a[102][a[105]])==null?void 0:h.submenu)==null?void 0:d[a[109]])||"-")+"")&&Ie(o,i)},d(a){a&&re(e)}}}function Za(r){let e,t=me(r[24]),i=[];for(let o=0;o<t.length;o+=1)i[o]=Ka(Ha(r,t,o));return{c(){e=E("div");for(let o=0;o<i.length;o+=1)i[o].c();p(e,"class","submenuRow")},m(o,n){ie(o,e,n);for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(e,null)},p(o,n){if(n[0]&25231488){t=me(o[24]);let s;for(s=0;s<t.length;s+=1){const a=Ha(o,t,s);i[s]?i[s].p(a,n):(i[s]=Ka(a),i[s].c(),i[s].m(e,null))}for(;s<i.length;s+=1)i[s].d(1);i.length=t.length}},d(o){o&&re(e),He(i,o)}}}function Ja(r){var a,l;let e,t,i,o=(((l=(a=r[102][r[105]])==null?void 0:a.submenu)==null?void 0:l[0])||"-")+"",n,s;return{c(){var h;e=E("div"),t=E("div"),i=E("span"),n=ge(o),s=U(),p(i,"data-label",(h=r[23].sports)==null?void 0:h[r[105]]),p(i,"class","label"),p(t,"class","tableData"),p(e,"class","submenuRow")},m(h,d){ie(h,e,d),f(e,t),f(t,i),f(i,n),f(e,s)},p(h,d){var c,u;d[0]&65664&&o!==(o=(((u=(c=h[102][h[105]])==null?void 0:c.submenu)==null?void 0:u[0])||"-")+"")&&Ie(n,o)},d(h){h&&re(e)}}}function Qa(r){let e,t,i,o,n,s,a,l,h,d,c=r[104],u,m=me(r[22][r[7]]),g=[];for(let S=0;S<m.length;S+=1)g[S]=qa($a(r,m,S));let _=me(r[22][r[7]]),y=[];for(let S=0;S<_.length;S+=1)y[S]=Xa(Ra(r,_,S));let D=me(r[36](r[102],r[25])),A=[];for(let S=0;S<D.length;S+=1)A[S]=Za(La(r,D,S));let M=me(r[26]),R=[];for(let S=0;S<M.length;S+=1)R[S]=Ja(Ba(r,M,S));const W=()=>r[61](o,c),Q=()=>r[61](null,c);return{c(){e=E("div"),t=E("div");for(let S=0;S<g.length;S+=1)g[S].c();i=U(),o=E("div"),n=E("div");for(let S=0;S<y.length;S+=1)y[S].c();s=U(),a=E("div");for(let S=0;S<A.length;S+=1)A[S].c();l=U(),h=E("div");for(let S=0;S<R.length;S+=1)R[S].c();u=U(),p(t,"class","tableData"),p(n,"class","desktopSubmenu"),p(h,"class","remainingRows"),p(a,"class","allSubmenuRows"),p(o,"class",d="tableSubMenu "+(r[17][r[104]]?"active":"")),p(e,"class","tableRow")},m(S,P){ie(S,e,P),f(e,t);for(let b=0;b<g.length;b+=1)g[b]&&g[b].m(t,null);f(e,i),f(e,o),f(o,n);for(let b=0;b<y.length;b+=1)y[b]&&y[b].m(n,null);f(o,s),f(o,a);for(let b=0;b<A.length;b+=1)A[b]&&A[b].m(a,null);f(a,l),f(a,h);for(let b=0;b<R.length;b+=1)R[b]&&R[b].m(h,null);W(),f(e,u)},p(S,P){if(r=S,P[0]&281215104|P[1]&16){m=me(r[22][r[7]]);let b;for(b=0;b<m.length;b+=1){const O=$a(r,m,b);g[b]?g[b].p(O,P):(g[b]=qa(O),g[b].c(),g[b].m(t,null))}for(;b<g.length;b+=1)g[b].d(1);g.length=m.length}if(P[0]&12648576){_=me(r[22][r[7]]);let b;for(b=0;b<_.length;b+=1){const O=Ra(r,_,b);y[b]?y[b].p(O,P):(y[b]=Xa(O),y[b].c(),y[b].m(n,null))}for(;b<y.length;b+=1)y[b].d(1);y.length=_.length}if(P[0]&25231488){D=me(r[36](r[102],r[25]));let b;for(b=0;b<D.length;b+=1){const O=La(r,D,b);A[b]?A[b].p(O,P):(A[b]=Za(O),A[b].c(),A[b].m(a,l))}for(;b<A.length;b+=1)A[b].d(1);A.length=D.length}if(P[0]&75563136){M=me(r[26]);let b;for(b=0;b<M.length;b+=1){const O=Ba(r,M,b);R[b]?R[b].p(O,P):(R[b]=Ja(O),R[b].c(),R[b].m(h,null))}for(;b<R.length;b+=1)R[b].d(1);R.length=M.length}P[0]&131072&&d!==(d="tableSubMenu "+(r[17][r[104]]?"active":""))&&p(o,"class",d),c!==r[104]&&(Q(),c=r[104],W())},d(S){S&&re(e),He(g,S),He(y,S),He(A,S),He(R,S),Q()}}}function el(r){let e,t,i,o,n;function s(){return r[65](r[99])}return{c(){e=E("button"),t=E("p"),t.textContent=`${r[99]}`,i=U(),p(e,"class","dropDownRow")},m(a,l){ie(a,e,l),f(e,t),f(e,i),o||(n=gt(e,"click",s),o=!0)},p(a,l){r=a},d(a){a&&re(e),o=!1,n()}}}function hb(r){let e;return{c(){e=E("div"),e.innerHTML='<ui-skeleton structure="title" width="auto" height="30px"></ui-skeleton>',p(e,"class","headerText skeleton")},m(t,i){ie(t,e,i)},d(t){t&&re(e)}}}function db(r){let e;return{c(){e=E("button"),e.innerHTML='<ui-skeleton structure="title" width="auto" height="10px"></ui-skeleton>',p(e,"class","historyReturnButton skeleton")},m(t,i){ie(t,e,i)},d(t){t&&re(e)}}}function cb(r){let e;return{c(){e=E("div"),e.innerHTML='<ui-skeleton structure="circle" size="20px"></ui-skeleton> <div class="label"><ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton></div> ',p(e,"class","toggleContent")},m(t,i){ie(t,e,i)},p:De,d(t){t&&re(e)}}}function ub(r){let e;return{c(){e=E("div"),e.innerHTML='<ui-skeleton structure="text" width="auto" height="40px"></ui-skeleton> '},m(t,i){ie(t,e,i)},p:De,d(t){t&&re(e)}}}function pb(r){let e;return{c(){e=E("div"),e.innerHTML='<ui-skeleton structure="text" width="auto" height="40px"></ui-skeleton> '},m(t,i){ie(t,e,i)},p:De,d(t){t&&re(e)}}}function mb(r){let e,t,i,o=me({length:6}),n=[];for(let s=0;s<o.length;s+=1)n[s]=pb(Yg(r,o,s));return{c(){e=E("div"),t=E("div");for(let s=0;s<n.length;s+=1)n[s].c();i=U(),p(t,"class","tableData"),p(e,"class","tableRow")},m(s,a){ie(s,e,a),f(e,t);for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(t,null);f(e,i)},p:De,d(s){s&&re(e),He(n,s)}}}function fb(r){let e;function t(n,s){return n[10]?Jg:Zg}let i=t(r),o=i(r);return{c(){e=E("div"),o.c()},m(n,s){ie(n,e,s),o.m(e,null),r[67](e)},p(n,s){i===(i=t(n))&&o?o.p(n,s):(o.d(1),o=i(n),o&&(o.c(),o.m(e,null)))},i:De,o:De,d(n){n&&re(e),o.d(),r[67](null)}}}function _b(r,e,t){let i;Gd(r,fp,v=>t(19,i=v)),hi.extend(yp);let{endpoint:o=""}=e,{playerid:n=""}=e,{session:s=""}=e,{lang:a="en"}=e,{clientstyling:l=""}=e,{clientstylingurl:h=""}=e,{translationurl:d=""}=e,{mbsource:c}=e,{historytypes:u="Casino, Sports, Payments"}=e,{hidecolumns:m=""}=e,{hidevalues:g=""}=e,{pagesizeoptions:_="10, 20, 30, 50, 100"}=e,{playercurrency:y=""}=e,{defaultpagesize:D="5"}=e,{formatamount:A="{currency}{amount}.{2decimals}"}=e,{customcurrencysymbols:M}=e,{dateformat:R="DD/MM/YYYY"}=e,W=R.toUpperCase(),Q=window.navigator.userAgent,S="",P="",b="",O="",$="",he="",de="",B=Number(D),w=1,C=_p(Q)!=="PC",T=!0,x=!1,N=!1,z,V,q,oe,ne=[];const se=[],we={EUR:"€",RON:" lei",USD:"$"},ce={payments:[],casino:[],sports:[]},Oe={payments:["Type","Status","Amount","Date","Transaction ID"],casino:["Game Name","Date","Bet Amount","Win Amount","Transaction ID","Play Type","Method"],sports:["Stake","Price","Selection","Market","Sport","Date","Description","Bet Type","Free Bet","Win Type","Winnings","Bet Adjustment","Bet ID"]},be={payments:["paymentType","paymentState","paymentAmount","paymentCreatedOn","withdrawalId"],casino:["game_type_name","game_finished_on","stake","won","game_id","play_type"],sports:["stake","bet_Part.price","bet_Part.selection_name","bet_Part.market_name","bet_Part.category","bet_settled_on","bet_description","bet_Type","is_Freebet","win_Type","winnings","-","bet_id"]},ue={payments:{paymentType:i("Type"),paymentState:i("Status"),paymentAmount:i("Amount"),paymentCreatedOn:i("Date"),withdrawalId:i("Transaction ID")},casino:{game_type_name:i("Game Name"),game_finished_on:i("Date"),stake:i("Bet Amount"),won:i("Win Amount"),game_id:i("Transaction ID"),play_type:i("Play Type")},sports:{stake:i("Stake"),"bet_Part.price":i("Price"),"bet_Part.selection_name":i("Selection"),"bet_Part.market_name":i("Market"),"bet_Part.category":i("Sport"),bet_settled_on:i("Date"),bet_description:i("Description"),bet_Type:i("Bet Type"),is_Freebet:i("Free Bet"),win_Type:i("Win Type"),winnings:i("Winnings"),"-":i("Bet Adjustment"),bet_id:i("Bet ID")}},fe=["stake","bet_Part.price","bet_Part.selection_name","bet_Part.market_name","bet_Part.category"],ke=Object.keys(ue.sports),ze=ke.filter(v=>!fe.includes(v)),Ke=["stake","won","winnings","bet_Part.price","paymentAmount"],dt=["bet_Part.price"],tt=m.replace(/\s/g,"").split(","),ct=g.replace(/\s/g,"").split(","),We={},ee={filterButton:!0,nextPage:!0,previousPage:!0,pageSize:!0},ei=_.split(", ");let Et={},je=new Date,rt=new Date(je);rt.setMonth(je.getMonth()-1),b=je.toISOString().split("T")[0],he=b,O=rt.toISOString().split("T")[0],$=O;const pr=()=>{fetch(d).then(F=>F.json()).then(F=>{Object.keys(F).forEach(j=>{Ns(j,F[j])})}).catch(F=>{console.log(F)})};Object.keys(zs).forEach(v=>{Ns(v,zs[v])});const mr=()=>{u.split(", ").forEach((v,F)=>{const j={type:v,checked:F===0};j.checked&&t(7,de=j.type.toLocaleLowerCase()),se.push(j)})},fr=v=>{se.forEach((F,j)=>{t(15,se[j].checked=v===j,se),se[j].checked&&t(7,de=F.type.toLocaleLowerCase())}),Be()},Be=()=>{if(!ee.filterButton)return;t(10,T=!0),t(12,N=!1),t(18,ee.filterButton=!1,ee),t(18,ee.nextPage=!1,ee),t(18,ee.previousPage=!1,ee),t(18,ee.pageSize=!1,ee);let v=new URL(`${o}/v1/player/${n}/fsb/transactions/${de}`);v.searchParams.append("offset",(w-1).toString()||"0"),v.searchParams.append("limit",B.toString()||"5"),v.searchParams.append("startDate",$),v.searchParams.append("endDate",he);let F={method:"GET",headers:{"X-SessionId":s,"Content-Type":"application/json",Accept:"application/json"}};fetch(v.href,F).then(j=>Ue(j)).then(j=>{if(j.transactions.length===0)return t(3,P=i("checkPeriod")),Promise.reject(P);j.pagination.next&&t(18,ee.nextPage=!0,ee),j.pagination.previous&&t(18,ee.previousPage=!0,ee),t(18,ee.pageSize=!0,ee),t(16,ce[de]=[],ce),t(11,x=!1),mt(),ti(j)}).catch(j=>{t(12,N=!0),t(18,ee.nextPage=!1,ee),t(18,ee.previousPage=!1,ee),t(18,ee.pageSize=!1,ee),window.postMessage({type:"WidgetNotification",data:{type:"error",message:j}},window.location.href)}).finally(()=>{t(10,T=!1),t(18,ee.filterButton=!0,ee)})},Ft=v=>{t(5,$=v.target.value)},_r=v=>{t(6,he=v.target.value)},ut=()=>{ee.pageSize&&t(11,x=!x)},St=v=>{t(8,B=v),t(9,w=1),Be()},At=(v,F)=>{if(F==="next"){if(!ee.nextPage)return;t(9,w=v+1),Be()}else{if(!ee.previousPage)return;t(9,w=v-1),Be()}},ti=v=>{v.transactions.forEach((F,j)=>{t(16,ce[de][j]={},ce),be[de].forEach(Y=>{if(!ct.includes(Y.toLocaleLowerCase())){if(A&&y&&Ke.includes(Y))if(Y.includes(".")){let Ge=Y.split(".");F[Ge[0]].forEach(_t=>{_t[Ge[1]]=Ce(_t,Ge[1])})}else F[Y]=Ce(F,Y);if(new Date(F[Y]).getTime()&&typeof F[Y]!="number"&&pt(F,Y),Y.includes(".")){let Ge=Y.split(".")[0],_t=Y.split(".")[1];F[Y]={label:"Multiple",submenu:[]},F[Ge].forEach(kt=>{kt[_t]&&F[Y].submenu.push(kt[_t])})}if(Y in F)return t(16,ce[de][j][Y]=F[Y],ce)}})})},it=()=>{if(!M)return;let v={};M.split(",").forEach(F=>{let j=F.split(":");v[j[0].trim()]=j[1].trim()}),Object.entries(v).forEach(([F,j])=>we[F]=j)},pt=(v,F)=>{v[F]=hi(v[F]).format(W)},Ce=(v,F)=>{let j=dt.some(ii=>ii.includes(F)),Y=typeof v[F]=="string"?parseInt(v[F]):v[F],Ge=Object.keys(v).find(ii=>ii.includes("currency")||ii.includes("Currency")),_t=v[Ge]||y,kt=A;const ao=kt.match(/\{(\d+)decimals\}/),Bd=ao?parseInt(ao[1],10):2,Ld=ao?new RegExp("\\{\\d+decimals\\}","g"):"{decimals}";Y=Y.toFixed(Bd);const[Hd,lo]=A.includes(".")?[",","."]:[".",","];let[ho,Rd]=Y.split(".");return ho=ho.replace(/\B(?=(\d{3})+(?!\d))/g,Hd),Y=`${ho}${lo}${Rd}`,kt=kt.replace("{currency}",j?"":we[_t]||_t).replace("{amount}",Y.split(lo)[0]).replace(Ld,Y.split(lo)[1]),kt},mt=()=>{Object.keys(We).forEach(v=>t(17,We[v]=!1,We))},Ee=v=>si(this,null,function*(){t(17,We[v]=!We[v],We),yield ec();const F=ne[v];if(oe&&F&&We[v]){const Y=F.offsetTop+F.offsetHeight-oe.clientHeight;oe.scrollTo({top:Y,behavior:"smooth"})}}),ri=(v,F)=>{let j=0;return F.forEach(Y=>{var Ge;(Ge=v[Y])!=null&&Ge.submenu&&Array.isArray(v[Y].submenu)&&(j=Math.max(j,v[Y].submenu.length))}),Array.from({length:j},(Y,Ge)=>Ge)},Pt=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:C},window.location.href)},Ue=v=>si(this,null,function*(){var F;return v.status===404?(t(3,P=i("checkPeriod")),Promise.reject(P)):v.status>=300?(Et=yield v.json(),S=(F=Et.thirdPartyResponse)==null?void 0:F.errorCode,t(3,P=i(S||"generalError")),Promise.reject(P)):v.json()}),ft=()=>{z.addEventListener("change",Ft,!1),V.addEventListener("change",_r,!1);const v=j=>hi(new Date(j.year,j.month,j.day)).format(W),F=j=>{const Y=hi(j,W);return{year:Y.year(),month:Y.month(),day:Y.date()}};t(0,z.i18n=ni(oi({},z.i18n),{formatDate:v,parseDate:F}),z),t(1,V.i18n=ni(oi({},z.i18n),{formatDate:v,parseDate:F}),V)};Qd(()=>()=>{z&&z.removeEventListener("change",Ft),V&&V.removeEventListener("change",_r)});const Ae=()=>Pt(),I=v=>fr(v);function ae(v){It[v?"unshift":"push"](()=>{z=v,t(0,z)})}function H(v){It[v?"unshift":"push"](()=>{V=v,t(1,V)})}const Ze=()=>Be(),kd=v=>Ee(v);function Td(v,F){It[v?"unshift":"push"](()=>{ne[F]=v,t(14,ne)})}function Id(v){It[v?"unshift":"push"](()=>{oe=v,t(13,oe)})}const Dd=()=>At(w,"previous"),Od=()=>At(w,"next"),Md=v=>St(v),Nd=()=>ut();function zd(v){It[v?"unshift":"push"](()=>{q=v,t(2,q)})}return r.$$set=v=>{"endpoint"in v&&t(38,o=v.endpoint),"playerid"in v&&t(39,n=v.playerid),"session"in v&&t(40,s=v.session),"lang"in v&&t(41,a=v.lang),"clientstyling"in v&&t(42,l=v.clientstyling),"clientstylingurl"in v&&t(43,h=v.clientstylingurl),"translationurl"in v&&t(44,d=v.translationurl),"mbsource"in v&&t(45,c=v.mbsource),"historytypes"in v&&t(46,u=v.historytypes),"hidecolumns"in v&&t(47,m=v.hidecolumns),"hidevalues"in v&&t(48,g=v.hidevalues),"pagesizeoptions"in v&&t(49,_=v.pagesizeoptions),"playercurrency"in v&&t(50,y=v.playercurrency),"defaultpagesize"in v&&t(51,D=v.defaultpagesize),"formatamount"in v&&t(52,A=v.formatamount),"customcurrencysymbols"in v&&t(53,M=v.customcurrencysymbols),"dateformat"in v&&t(54,R=v.dateformat)},r.$$.update=()=>{r.$$.dirty[1]&1024&&a&&vp(a),r.$$.dirty[1]&32768&&u&&mr(),r.$$.dirty[1]&896&&o&&n&&s&&Be(),r.$$.dirty[1]&4194304&&M&&it(),r.$$.dirty[0]&3&&z&&V&&ft(),r.$$.dirty[0]&4|r.$$.dirty[1]&2048&&l&&q&&uc(q,l),r.$$.dirty[0]&4|r.$$.dirty[1]&4096&&h&&q&&pc(q,h),r.$$.dirty[0]&4|r.$$.dirty[1]&16384&&c&&q&&mc(q,`${c}.Style`),r.$$.dirty[1]&8192&&d&&pr()},[z,V,q,P,b,$,he,de,B,w,T,x,N,oe,ne,se,ce,We,ee,i,C,Oe,be,ue,fe,ke,ze,tt,ct,ei,fr,Be,ut,St,At,Ee,ri,Pt,o,n,s,a,l,h,d,c,u,m,g,_,y,D,A,M,R,Ae,I,ae,H,Ze,kd,Td,Id,Dd,Od,Md,Nd,zd]}class Pd extends dc{constructor(e){super(),lc(this,e,_b,fb,rl,{endpoint:38,playerid:39,session:40,lang:41,clientstyling:42,clientstylingurl:43,translationurl:44,mbsource:45,historytypes:46,hidecolumns:47,hidevalues:48,pagesizeoptions:49,playercurrency:50,defaultpagesize:51,formatamount:52,customcurrencysymbols:53,dateformat:54},Gg,[-1,-1,-1,-1])}get endpoint(){return this.$$.ctx[38]}set endpoint(e){this.$$set({endpoint:e}),ye()}get playerid(){return this.$$.ctx[39]}set playerid(e){this.$$set({playerid:e}),ye()}get session(){return this.$$.ctx[40]}set session(e){this.$$set({session:e}),ye()}get lang(){return this.$$.ctx[41]}set lang(e){this.$$set({lang:e}),ye()}get clientstyling(){return this.$$.ctx[42]}set clientstyling(e){this.$$set({clientstyling:e}),ye()}get clientstylingurl(){return this.$$.ctx[43]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),ye()}get translationurl(){return this.$$.ctx[44]}set translationurl(e){this.$$set({translationurl:e}),ye()}get mbsource(){return this.$$.ctx[45]}set mbsource(e){this.$$set({mbsource:e}),ye()}get historytypes(){return this.$$.ctx[46]}set historytypes(e){this.$$set({historytypes:e}),ye()}get hidecolumns(){return this.$$.ctx[47]}set hidecolumns(e){this.$$set({hidecolumns:e}),ye()}get hidevalues(){return this.$$.ctx[48]}set hidevalues(e){this.$$set({hidevalues:e}),ye()}get pagesizeoptions(){return this.$$.ctx[49]}set pagesizeoptions(e){this.$$set({pagesizeoptions:e}),ye()}get playercurrency(){return this.$$.ctx[50]}set playercurrency(e){this.$$set({playercurrency:e}),ye()}get defaultpagesize(){return this.$$.ctx[51]}set defaultpagesize(e){this.$$set({defaultpagesize:e}),ye()}get formatamount(){return this.$$.ctx[52]}set formatamount(e){this.$$set({formatamount:e}),ye()}get customcurrencysymbols(){return this.$$.ctx[53]}set customcurrencysymbols(e){this.$$set({customcurrencysymbols:e}),ye()}get dateformat(){return this.$$.ctx[54]}set dateformat(e){this.$$set({dateformat:e}),ye()}}hc(Pd,{endpoint:{},playerid:{},session:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},historytypes:{},hidecolumns:{},hidevalues:{},pagesizeoptions:{},playercurrency:{},defaultpagesize:{},formatamount:{},customcurrencysymbols:{},dateformat:{}},[],[],!0);exports.default=Pd;
6679
+ `),s=xe("g"),a=xe("g"),l=xe("path"),h=U(),d=E("h2"),u=ge(c),p(l,"class","pathstyle"),p(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),p(l,"transform","translate(15 15) rotate(180)"),p(a,"transform","translate(20 158)"),p(s,"transform","translate(-20 -158)"),p(t,"xmlns","http://www.w3.org/2000/svg"),p(t,"width","15"),p(t,"height","15"),p(t,"viewBox","0 0 15 15"),p(d,"class","historyReturnText"),p(e,"class","historyReturnButton")},m(f,y){oe(f,e,y),_(e,t),_(t,r),_(r,o),_(o,n),_(t,s),_(s,a),_(a,l),_(e,h),_(e,d),_(d,u),m||(g=gt(e,"click",i[55]),m=!0)},p(f,y){y[0]&524288&&c!==(c=f[19]("headerTitle")+"")&&Ie(u,c)},d(f){f&&re(e),m=!1,g()}}}function Wa(i){let e,t,r,o,n=i[19](i[122].type)+"",s,a,l,h,d;function c(){return i[56](i[104])}return{c(){e=E("button"),t=E("div"),t.innerHTML='<input type="checkbox"/> <span class="circle"></span>',r=U(),o=E("p"),s=ge(n),a=U(),p(t,"class","toggleCheckbox"),p(o,"class","label"),p(e,"class",l="toggleContent "+(i[122].checked?"checked":""))},m(u,m){oe(u,e,m),_(e,t),_(e,r),_(e,o),_(o,s),_(e,a),h||(d=gt(e,"click",c),h=!0)},p(u,m){i=u,m[0]&557056&&n!==(n=i[19](i[122].type)+"")&&Ie(s,n),m[0]&32768&&l!==(l="toggleContent "+(i[122].checked?"checked":""))&&p(e,"class",l)},d(u){u&&re(e),h=!1,d()}}}function ja(i){let e,t=(i[19](i[112])||i[112])+"",r,o;return{c(){e=E("span"),r=ge(t),o=U()},m(n,s){oe(n,e,s),_(e,r),_(e,o)},p(n,s){s[0]&524416&&t!==(t=(n[19](n[112])||n[112])+"")&&Ie(r,t)},d(n){n&&re(e)}}}function Ua(i){let e=!i[27].includes(i[112].replace(/\s/g,"").toLowerCase()),t,r=e&&ja(i);return{c(){r&&r.c(),t=Rr()},m(o,n){r&&r.m(o,n),oe(o,t,n)},p(o,n){n[0]&128&&(e=!o[27].includes(o[112].replace(/\s/g,"").toLowerCase())),e?r?r.p(o,n):(r=ja(o),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(o){o&&re(t),r&&r.d(o)}}}function Qg(i){let e,t;return{c(){e=E("div"),t=ge(i[3]),p(e,"class","tableRow")},m(r,o){oe(r,e,o),_(e,t)},p(r,o){o[0]&8&&Ie(t,r[3])},d(r){r&&re(e)}}}function eb(i){let e,t=_e(i[16][i[7]]),r=[];for(let o=0;o<t.length;o+=1)r[o]=Ja(Na(i,t,o));return{c(){for(let o=0;o<r.length;o+=1)r[o].c();e=Rr()},m(o,n){for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(o,n);oe(o,e,n)},p(o,n){if(n[0]&398672e3|n[1]&48){t=_e(o[16][o[7]]);let s;for(s=0;s<t.length;s+=1){const a=Na(o,t,s);r[s]?r[s].p(a,n):(r[s]=Ja(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&&re(e),He(r,o)}}}function tb(i){let e,t=(i[102][i[112]]||"-")+"",r,o,n;return{c(){var s;e=E("span"),r=ge(t),o=U(),p(e,"data-label",n=((s=i[23][i[7]])==null?void 0:s[i[112].replace(/\s/g,"")])||i[112])},m(s,a){oe(s,e,a),_(e,r),_(e,o)},p(s,a){var l;a[0]&65664&&t!==(t=(s[102][s[112]]||"-")+"")&&Ie(r,t),a[0]&128&&n!==(n=((l=s[23][s[7]])==null?void 0:l[s[112].replace(/\s/g,"")])||s[112])&&p(e,"data-label",n)},d(s){s&&re(e)}}}function ib(i){let e,t=(i[102][i[112]].submenu[0]||"-")+"",r,o,n;return{c(){var s;e=E("span"),r=ge(t),o=U(),p(e,"data-label",n=((s=i[23][i[7]])==null?void 0:s[i[112].replace(/\s/g,"")])||i[112])},m(s,a){oe(s,e,a),_(e,r),_(e,o)},p(s,a){var l;a[0]&65664&&t!==(t=(s[102][s[112]].submenu[0]||"-")+"")&&Ie(r,t),a[0]&128&&n!==(n=((l=s[23][s[7]])==null?void 0:l[s[112].replace(/\s/g,"")])||s[112])&&p(e,"data-label",n)},d(s){s&&re(e)}}}function rb(i){let e,t,r,o,n,s,a=i[102][i[112]].label+"",l,h,d,c,u;function m(){return i[60](i[104])}return{c(){var g;e=E("button"),t=xe("svg"),r=xe("path"),n=U(),s=E("span"),l=ge(a),h=U(),p(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"),p(t,"xmlns","http://www.w3.org/2000/svg"),p(t,"viewBox","6 5 20 20"),p(t,"class",o="iconToggleSubMenu "+(i[17][i[104]]?"active":"")),p(e,"class","toggleSubMenu"),p(e,"data-label",d=((g=i[23][i[7]])==null?void 0:g[i[112].replace(/\s/g,"")])||i[112])},m(g,f){oe(g,e,f),_(e,t),_(t,r),_(e,n),_(e,s),_(s,l),_(e,h),c||(u=gt(e,"click",m),c=!0)},p(g,f){var y;i=g,f[0]&131072&&o!==(o="iconToggleSubMenu "+(i[17][i[104]]?"active":""))&&p(t,"class",o),f[0]&65664&&a!==(a=i[102][i[112]].label+"")&&Ie(l,a),f[0]&128&&d!==(d=((y=i[23][i[7]])==null?void 0:y[i[112].replace(/\s/g,"")])||i[112])&&p(e,"data-label",d)},d(g){g&&re(e),c=!1,u()}}}function ob(i){let e,t,r,o,n;return{c(){var s;e=E("span"),t=xe("svg"),r=xe("path"),o=U(),p(r,"d","M9 9L15 15M15 9L9 15M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z"),p(r,"stroke","#000000"),p(r,"stroke-width","2"),p(r,"stroke-linecap","round"),p(r,"stroke-linejoin","round"),p(t,"viewBox","-3 -4 30 30"),p(t,"xmlns","http://www.w3.org/2000/svg"),p(e,"class","decline"),p(e,"data-label",n=((s=i[23][i[7]])==null?void 0:s[i[112].replace(/\s/g,"")])||i[112])},m(s,a){oe(s,e,a),_(e,t),_(t,r),_(e,o)},p(s,a){var l;a[0]&128&&n!==(n=((l=s[23][s[7]])==null?void 0:l[s[112].replace(/\s/g,"")])||s[112])&&p(e,"data-label",n)},d(s){s&&re(e)}}}function nb(i){let e,t,r,o,n,s;return{c(){var a;e=E("span"),t=xe("svg"),r=xe("path"),o=xe("path"),n=U(),p(r,"fill-rule","evenodd"),p(r,"clip-rule","evenodd"),p(r,"d","M5.5 12.0002C5.50024 8.66068 7.85944 5.78639 11.1348 5.1351C14.4102 4.48382 17.6895 6.23693 18.9673 9.32231C20.2451 12.4077 19.1655 15.966 16.3887 17.8212C13.6119 19.6764 9.91127 19.3117 7.55 16.9502C6.23728 15.6373 5.49987 13.8568 5.5 12.0002Z"),p(r,"stroke","#000000"),p(r,"stroke-width","1.5"),p(r,"stroke-linecap","round"),p(r,"stroke-linejoin","round"),p(o,"d","M9 12.0002L11.333 14.3332L16 9.66724"),p(o,"stroke-width","1.5"),p(o,"stroke-linecap","round"),p(o,"stroke-linejoin","round"),p(t,"viewBox","0 0 24 24"),p(t,"xmlns","http://www.w3.org/2000/svg"),p(e,"class","approved"),p(e,"data-label",s=((a=i[23][i[7]])==null?void 0:a[i[112].replace(/\s/g,"").toLowerCase()])||i[112])},m(a,l){oe(a,e,l),_(e,t),_(t,r),_(t,o),_(e,n)},p(a,l){var h;l[0]&128&&s!==(s=((h=a[23][a[7]])==null?void 0:h[a[112].replace(/\s/g,"").toLowerCase()])||a[112])&&p(e,"data-label",s)},d(a){a&&re(e)}}}function Ga(i){let e,t;function r(s,a){var l,h,d;if(a[0]&128&&(e=null),s[102][s[112]]===!0)return nb;if(s[102][s[112]]===!1)return ob;if((l=s[102][s[112]])!=null&&l.label&&((h=s[102][s[112]])==null?void 0:h.submenu.length)>1)return rb;if((d=s[102][s[112]])!=null&&d.submenu)return ib;if(e==null&&(e=!s[28].includes(s[112].toLowerCase())),e)return tb}let o=r(i,[-1,-1,-1,-1]),n=o&&o(i);return{c(){n&&n.c(),t=Rr()},m(s,a){n&&n.m(s,a),oe(s,t,a)},p(s,a){o===(o=r(s,a))&&n?n.p(s,a):(n&&n.d(1),n=o&&o(s),n&&(n.c(),n.m(t.parentNode,t)))},d(s){s&&re(t),n&&n.d(s)}}}function sb(i){let e,t,r,o,n;return{c(){var s;e=E("div"),t=E("span"),r=ge("-"),n=U(),p(t,"data-label",o=((s=i[23][i[7]])==null?void 0:s[i[112].replace(/\s/g,"").toLowerCase()])||i[112]),p(t,"class","label"),p(e,"class","tableData")},m(s,a){oe(s,e,a),_(e,t),_(t,r),_(e,n)},p(s,a){var l;a[0]&128&&o!==(o=((l=s[23][s[7]])==null?void 0:l[s[112].replace(/\s/g,"").toLowerCase()])||s[112])&&p(t,"data-label",o)},d(s){s&&re(e)}}}function ab(i){let e,t,r=_e(i[102][i[112]].submenu),o=[];for(let n=0;n<r.length;n+=1)o[n]=qa(Ra(i,r,n));return{c(){e=E("div");for(let n=0;n<o.length;n+=1)o[n].c();t=U(),p(e,"class","tableData")},m(n,s){oe(n,e,s);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(e,null);_(e,t)},p(n,s){if(s[0]&12648576){r=_e(n[102][n[112]].submenu);let a;for(a=0;a<r.length;a+=1){const l=Ra(n,r,a);o[a]?o[a].p(l,s):(o[a]=qa(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&&re(e),He(o,n)}}}function qa(i){let e,t=(i[115]||"-")+"",r,o;return{c(){var n;e=E("span"),r=ge(t),p(e,"data-label",o=((n=i[23][i[7]])==null?void 0:n[i[112].replace(/\s/g,"").toLowerCase()])||i[112]),p(e,"class","label")},m(n,s){oe(n,e,s),_(e,r)},p(n,s){var a;s[0]&65664&&t!==(t=(n[115]||"-")+"")&&Ie(r,t),s[0]&128&&o!==(o=((a=n[23][n[7]])==null?void 0:a[n[112].replace(/\s/g,"").toLowerCase()])||n[112])&&p(e,"data-label",o)},d(n){n&&re(e)}}}function Ya(i){let e;function t(n,s){var a;return(a=n[102][n[112]])!=null&&a.submenu?ab:sb}let r=t(i),o=r(i);return{c(){o.c(),e=Rr()},m(n,s){o.m(n,s),oe(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&&re(e),o.d(n)}}}function Xa(i){var n,s;let e,t,r=(((s=(n=i[102][i[105]])==null?void 0:n.submenu)==null?void 0:s[i[109]])||"-")+"",o;return{c(){var a;e=E("div"),t=E("span"),o=ge(r),p(t,"data-label",(a=i[23].sports)==null?void 0:a[i[105]]),p(t,"class","label"),p(e,"class","tableData")},m(a,l){oe(a,e,l),_(e,t),_(t,o)},p(a,l){var h,d;l[0]&65664&&r!==(r=(((d=(h=a[102][a[105]])==null?void 0:h.submenu)==null?void 0:d[a[109]])||"-")+"")&&Ie(o,r)},d(a){a&&re(e)}}}function Ka(i){let e,t=_e(i[24]),r=[];for(let o=0;o<t.length;o+=1)r[o]=Xa(La(i,t,o));return{c(){e=E("div");for(let o=0;o<r.length;o+=1)r[o].c();p(e,"class","submenuRow")},m(o,n){oe(o,e,n);for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(e,null)},p(o,n){if(n[0]&25231488){t=_e(o[24]);let s;for(s=0;s<t.length;s+=1){const a=La(o,t,s);r[s]?r[s].p(a,n):(r[s]=Xa(a),r[s].c(),r[s].m(e,null))}for(;s<r.length;s+=1)r[s].d(1);r.length=t.length}},d(o){o&&re(e),He(r,o)}}}function Za(i){var a,l;let e,t,r,o=(((l=(a=i[102][i[105]])==null?void 0:a.submenu)==null?void 0:l[0])||"-")+"",n,s;return{c(){var h;e=E("div"),t=E("div"),r=E("span"),n=ge(o),s=U(),p(r,"data-label",(h=i[23].sports)==null?void 0:h[i[105]]),p(r,"class","label"),p(t,"class","tableData"),p(e,"class","submenuRow")},m(h,d){oe(h,e,d),_(e,t),_(t,r),_(r,n),_(e,s)},p(h,d){var c,u;d[0]&65664&&o!==(o=(((u=(c=h[102][h[105]])==null?void 0:c.submenu)==null?void 0:u[0])||"-")+"")&&Ie(n,o)},d(h){h&&re(e)}}}function Ja(i){let e,t,r,o,n,s,a,l,h,d,c=i[104],u,m=_e(i[22][i[7]]),g=[];for(let S=0;S<m.length;S+=1)g[S]=Ga(Fa(i,m,S));let f=_e(i[22][i[7]]),y=[];for(let S=0;S<f.length;S+=1)y[S]=Ya(Ha(i,f,S));let D=_e(i[36](i[102],i[25])),A=[];for(let S=0;S<D.length;S+=1)A[S]=Ka(Ba(i,D,S));let M=_e(i[26]),R=[];for(let S=0;S<M.length;S+=1)R[S]=Za(za(i,M,S));const W=()=>i[61](o,c),Q=()=>i[61](null,c);return{c(){e=E("div"),t=E("div");for(let S=0;S<g.length;S+=1)g[S].c();r=U(),o=E("div"),n=E("div");for(let S=0;S<y.length;S+=1)y[S].c();s=U(),a=E("div");for(let S=0;S<A.length;S+=1)A[S].c();l=U(),h=E("div");for(let S=0;S<R.length;S+=1)R[S].c();u=U(),p(t,"class","tableData"),p(n,"class","desktopSubmenu"),p(h,"class","remainingRows"),p(a,"class","allSubmenuRows"),p(o,"class",d="tableSubMenu "+(i[17][i[104]]?"active":"")),p(e,"class","tableRow")},m(S,P){oe(S,e,P),_(e,t);for(let b=0;b<g.length;b+=1)g[b]&&g[b].m(t,null);_(e,r),_(e,o),_(o,n);for(let b=0;b<y.length;b+=1)y[b]&&y[b].m(n,null);_(o,s),_(o,a);for(let b=0;b<A.length;b+=1)A[b]&&A[b].m(a,null);_(a,l),_(a,h);for(let b=0;b<R.length;b+=1)R[b]&&R[b].m(h,null);W(),_(e,u)},p(S,P){if(i=S,P[0]&281215104|P[1]&16){m=_e(i[22][i[7]]);let b;for(b=0;b<m.length;b+=1){const O=Fa(i,m,b);g[b]?g[b].p(O,P):(g[b]=Ga(O),g[b].c(),g[b].m(t,null))}for(;b<g.length;b+=1)g[b].d(1);g.length=m.length}if(P[0]&12648576){f=_e(i[22][i[7]]);let b;for(b=0;b<f.length;b+=1){const O=Ha(i,f,b);y[b]?y[b].p(O,P):(y[b]=Ya(O),y[b].c(),y[b].m(n,null))}for(;b<y.length;b+=1)y[b].d(1);y.length=f.length}if(P[0]&25231488){D=_e(i[36](i[102],i[25]));let b;for(b=0;b<D.length;b+=1){const O=Ba(i,D,b);A[b]?A[b].p(O,P):(A[b]=Ka(O),A[b].c(),A[b].m(a,l))}for(;b<A.length;b+=1)A[b].d(1);A.length=D.length}if(P[0]&75563136){M=_e(i[26]);let b;for(b=0;b<M.length;b+=1){const O=za(i,M,b);R[b]?R[b].p(O,P):(R[b]=Za(O),R[b].c(),R[b].m(h,null))}for(;b<R.length;b+=1)R[b].d(1);R.length=M.length}P[0]&131072&&d!==(d="tableSubMenu "+(i[17][i[104]]?"active":""))&&p(o,"class",d),c!==i[104]&&(Q(),c=i[104],W())},d(S){S&&re(e),He(g,S),He(y,S),He(A,S),He(R,S),Q()}}}function Qa(i){let e,t,r,o,n;function s(){return i[65](i[99])}return{c(){e=E("button"),t=E("p"),t.textContent=`${i[99]}`,r=U(),p(e,"class","dropDownRow")},m(a,l){oe(a,e,l),_(e,t),_(e,r),o||(n=gt(e,"click",s),o=!0)},p(a,l){i=a},d(a){a&&re(e),o=!1,n()}}}function lb(i){let e;return{c(){e=E("div"),e.innerHTML='<ui-skeleton structure="title" width="auto" height="30px"></ui-skeleton>',p(e,"class","headerText skeleton")},m(t,r){oe(t,e,r)},d(t){t&&re(e)}}}function hb(i){let e;return{c(){e=E("button"),e.innerHTML='<ui-skeleton structure="title" width="auto" height="10px"></ui-skeleton>',p(e,"class","historyReturnButton skeleton")},m(t,r){oe(t,e,r)},d(t){t&&re(e)}}}function db(i){let e;return{c(){e=E("div"),e.innerHTML='<ui-skeleton structure="circle" size="20px"></ui-skeleton> <div class="label"><ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton></div> ',p(e,"class","toggleContent")},m(t,r){oe(t,e,r)},p:De,d(t){t&&re(e)}}}function cb(i){let e;return{c(){e=E("div"),e.innerHTML='<ui-skeleton structure="text" width="auto" height="40px"></ui-skeleton> '},m(t,r){oe(t,e,r)},p:De,d(t){t&&re(e)}}}function ub(i){let e;return{c(){e=E("div"),e.innerHTML='<ui-skeleton structure="text" width="auto" height="40px"></ui-skeleton> '},m(t,r){oe(t,e,r)},p:De,d(t){t&&re(e)}}}function pb(i){let e,t,r,o=_e({length:6}),n=[];for(let s=0;s<o.length;s+=1)n[s]=ub(qg(i,o,s));return{c(){e=E("div"),t=E("div");for(let s=0;s<n.length;s+=1)n[s].c();r=U(),p(t,"class","tableData"),p(e,"class","tableRow")},m(s,a){oe(s,e,a),_(e,t);for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(t,null);_(e,r)},p:De,d(s){s&&re(e),He(n,s)}}}function mb(i){let e;function t(n,s){return n[10]?Zg:Kg}let r=t(i),o=r(i);return{c(){e=E("div"),o.c()},m(n,s){oe(n,e,s),o.m(e,null),i[67](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:De,o:De,d(n){n&&re(e),o.d(),i[67](null)}}}function _b(i,e,t){let r;Ud(i,pp,v=>t(19,r=v)),lr.extend(gp);let{endpoint:o=""}=e,{playerid:n=""}=e,{session:s=""}=e,{lang:a="en"}=e,{clientstyling:l=""}=e,{clientstylingurl:h=""}=e,{translationurl:d=""}=e,{mbsource:c}=e,{historytypes:u="Casino, Sports, Payments"}=e,{hidecolumns:m=""}=e,{hidevalues:g=""}=e,{pagesizeoptions:f="10, 20, 30, 50, 100"}=e,{playercurrency:y=""}=e,{defaultpagesize:D="5"}=e,{formatamount:A="{currency}{amount}.{2decimals}"}=e,{customcurrencysymbols:M}=e,{dateformat:R="DD/MM/YYYY"}=e,W=R.toUpperCase(),Q=window.navigator.userAgent,S="",P="",b="",O="",V="",de="",ce="",B=Number(D),w=1,C=mp(Q)!=="PC",T=!0,x=!1,N=!1,z,$,q,ne,se=[];const ae=[],we={EUR:"€",RON:" lei",USD:"$"},ue={payments:[],casino:[],sports:[]},Oe={payments:["Type","Status","Amount","Date","Transaction ID"],casino:["Game Name","Date","Bet Amount","Win Amount","Transaction ID","Play Type","Method"],sports:["Stake","Price","Selection","Market","Sport","Date","Description","Bet Type","Free Bet","Win Type","Winnings","Bet Adjustment","Bet ID"]},be={payments:["paymentType","paymentState","paymentAmount","paymentCreatedOn","withdrawalId"],casino:["game_type_name","game_finished_on","stake","won","game_id","play_type"],sports:["stake","bet_Part.price","bet_Part.selection_name","bet_Part.market_name","bet_Part.category","bet_settled_on","bet_description","bet_Type","is_Freebet","win_Type","winnings","-","bet_id"]},pe={payments:{paymentType:r("Type"),paymentState:r("Status"),paymentAmount:r("Amount"),paymentCreatedOn:r("Date"),withdrawalId:r("Transaction ID")},casino:{game_type_name:r("Game Name"),game_finished_on:r("Date"),stake:r("Bet Amount"),won:r("Win Amount"),game_id:r("Transaction ID"),play_type:r("Play Type")},sports:{stake:r("Stake"),"bet_Part.price":r("Price"),"bet_Part.selection_name":r("Selection"),"bet_Part.market_name":r("Market"),"bet_Part.category":r("Sport"),bet_settled_on:r("Date"),bet_description:r("Description"),bet_Type:r("Bet Type"),is_Freebet:r("Free Bet"),win_Type:r("Win Type"),winnings:r("Winnings"),"-":r("Bet Adjustment"),bet_id:r("Bet ID")}},fe=["stake","bet_Part.price","bet_Part.selection_name","bet_Part.market_name","bet_Part.category"],ke=Object.keys(pe.sports),ze=ke.filter(v=>!fe.includes(v)),Ke=["stake","won","winnings","bet_Part.price","paymentAmount"],dt=["bet_Part.price"],et=m.replace(/\s/g,"").split(","),ct=g.replace(/\s/g,"").split(","),We={},ee={filterButton:!0,nextPage:!0,previousPage:!0,pageSize:!0},Qi=f.split(", ");let Et={},je=new Date,tt=new Date(je);tt.setMonth(je.getMonth()-1),b=je.toISOString().split("T")[0],de=b,O=tt.toISOString().split("T")[0],V=O;const mi=()=>{fetch(d).then(F=>F.json()).then(F=>{Object.keys(F).forEach(j=>{Ms(j,F[j])})}).catch(F=>{console.log(F)})};Object.keys(Ns).forEach(v=>{Ms(v,Ns[v])});const _i=()=>{u.split(", ").forEach((v,F)=>{const j={type:v,checked:F===0};j.checked&&t(7,ce=j.type.toLocaleLowerCase()),ae.push(j)})},fi=v=>{ae.forEach((F,j)=>{t(15,ae[j].checked=v===j,ae),ae[j].checked&&t(7,ce=F.type.toLocaleLowerCase())}),Be()},Be=()=>{if(!ee.filterButton)return;t(10,T=!0),t(12,N=!1),t(18,ee.filterButton=!1,ee),t(18,ee.nextPage=!1,ee),t(18,ee.previousPage=!1,ee),t(18,ee.pageSize=!1,ee);let v=new URL(`${o}/v1/player/${n}/fsb/transactions/${ce}`);v.searchParams.append("offset",(w-1).toString()||"0"),v.searchParams.append("limit",B.toString()||"5"),v.searchParams.append("startDate",V),v.searchParams.append("endDate",de);let F={method:"GET",headers:{"X-SessionId":s,"Content-Type":"application/json",Accept:"application/json"}};fetch(v.href,F).then(j=>Ue(j)).then(j=>{if(j.transactions.length===0)return t(3,P=r("checkPeriod")),Promise.reject(P);j.pagination.next&&t(18,ee.nextPage=!0,ee),j.pagination.previous&&t(18,ee.previousPage=!0,ee),t(18,ee.pageSize=!0,ee),t(16,ue[ce]=[],ue),t(11,x=!1),mt(),er(j)}).catch(j=>{t(12,N=!0),t(18,ee.nextPage=!1,ee),t(18,ee.previousPage=!1,ee),t(18,ee.pageSize=!1,ee),window.postMessage({type:"WidgetNotification",data:{type:"error",message:j}},window.location.href)}).finally(()=>{t(10,T=!1),t(18,ee.filterButton=!0,ee)})},Ft=v=>{t(5,V=v.target.value)},vi=v=>{t(6,de=v.target.value)},ut=()=>{ee.pageSize&&t(11,x=!x)},St=v=>{t(8,B=v),t(9,w=1),Be()},At=(v,F)=>{if(F==="next"){if(!ee.nextPage)return;t(9,w=v+1),Be()}else{if(!ee.previousPage)return;t(9,w=v-1),Be()}},er=v=>{v.transactions.forEach((F,j)=>{t(16,ue[ce][j]={},ue),be[ce].forEach(Y=>{if(!ct.includes(Y.toLocaleLowerCase())){if(A&&y&&Ke.includes(Y))if(Y.includes(".")){let Ge=Y.split(".");F[Ge[0]].forEach(ft=>{ft[Ge[1]]=Ce(ft,Ge[1])})}else F[Y]=Ce(F,Y);if(new Date(F[Y]).getTime()&&typeof F[Y]!="number"&&pt(F,Y),Y.includes(".")){let Ge=Y.split(".")[0],ft=Y.split(".")[1];F[Y]={label:"Multiple",submenu:[]},F[Ge].forEach(kt=>{kt[ft]&&F[Y].submenu.push(kt[ft])})}if(Y in F)return t(16,ue[ce][j][Y]=F[Y],ue)}})})},it=()=>{if(!M)return;let v={};M.split(",").forEach(F=>{let j=F.split(":");v[j[0].trim()]=j[1].trim()}),Object.entries(v).forEach(([F,j])=>we[F]=j)},pt=(v,F)=>{v[F]=lr(v[F]).format(W)},Ce=(v,F)=>{let j=dt.some(ir=>ir.includes(F)),Y=typeof v[F]=="string"?parseInt(v[F]):v[F],Ge=Object.keys(v).find(ir=>ir.includes("currency")||ir.includes("Currency")),ft=v[Ge]||y,kt=A;const oo=kt.match(/\{(\d+)decimals\}/),zd=oo?parseInt(oo[1],10):2,Bd=oo?new RegExp("\\{\\d+decimals\\}","g"):"{decimals}";Y=Y.toFixed(zd);const[Ld,no]=A.includes(".")?[",","."]:[".",","];let[so,Hd]=Y.split(".");return so=so.replace(/\B(?=(\d{3})+(?!\d))/g,Ld),Y=`${so}${no}${Hd}`,kt=kt.replace("{currency}",j?"":we[ft]||ft).replace("{amount}",Y.split(no)[0]).replace(Bd,Y.split(no)[1]),kt},mt=()=>{Object.keys(We).forEach(v=>t(17,We[v]=!1,We))},Ee=v=>nr(this,null,function*(){t(17,We[v]=!We[v],We),yield Qd();const F=se[v];if(ne&&F&&We[v]){const Y=F.offsetTop+F.offsetHeight-ne.clientHeight;ne.scrollTo({top:Y,behavior:"smooth"})}}),tr=(v,F)=>{let j=0;return F.forEach(Y=>{var Ge;(Ge=v[Y])!=null&&Ge.submenu&&Array.isArray(v[Y].submenu)&&(j=Math.max(j,v[Y].submenu.length))}),Array.from({length:j},(Y,Ge)=>Ge)},Pt=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:C},window.location.href)},Ue=v=>nr(this,null,function*(){var F;return v.status===404?(t(3,P=r("checkPeriod")),Promise.reject(P)):v.status>=300?(Et=yield v.json(),S=(F=Et.thirdPartyResponse)==null?void 0:F.errorCode,t(3,P=r(S||"generalError")),Promise.reject(P)):v.json()}),_t=()=>{z.addEventListener("change",Ft,!1),$.addEventListener("change",vi,!1);const v=j=>lr(new Date(j.year,j.month,j.day)).format(W),F=j=>{const Y=lr(j,W);return{year:Y.year(),month:Y.month(),day:Y.date()}};t(0,z.i18n=or(rr({},z.i18n),{formatDate:v,parseDate:F}),z),t(1,$.i18n=or(rr({},z.i18n),{formatDate:v,parseDate:F}),$)};Jd(()=>()=>{z&&z.removeEventListener("change",Ft),$&&$.removeEventListener("change",vi)});const Ae=()=>Pt(),I=v=>fi(v);function le(v){It[v?"unshift":"push"](()=>{z=v,t(0,z)})}function H(v){It[v?"unshift":"push"](()=>{$=v,t(1,$)})}const Ze=()=>Be(),Pd=v=>Ee(v);function kd(v,F){It[v?"unshift":"push"](()=>{se[F]=v,t(14,se)})}function Td(v){It[v?"unshift":"push"](()=>{ne=v,t(13,ne)})}const Id=()=>At(w,"previous"),Dd=()=>At(w,"next"),Od=v=>St(v),Md=()=>ut();function Nd(v){It[v?"unshift":"push"](()=>{q=v,t(2,q)})}return i.$$set=v=>{"endpoint"in v&&t(38,o=v.endpoint),"playerid"in v&&t(39,n=v.playerid),"session"in v&&t(40,s=v.session),"lang"in v&&t(41,a=v.lang),"clientstyling"in v&&t(42,l=v.clientstyling),"clientstylingurl"in v&&t(43,h=v.clientstylingurl),"translationurl"in v&&t(44,d=v.translationurl),"mbsource"in v&&t(45,c=v.mbsource),"historytypes"in v&&t(46,u=v.historytypes),"hidecolumns"in v&&t(47,m=v.hidecolumns),"hidevalues"in v&&t(48,g=v.hidevalues),"pagesizeoptions"in v&&t(49,f=v.pagesizeoptions),"playercurrency"in v&&t(50,y=v.playercurrency),"defaultpagesize"in v&&t(51,D=v.defaultpagesize),"formatamount"in v&&t(52,A=v.formatamount),"customcurrencysymbols"in v&&t(53,M=v.customcurrencysymbols),"dateformat"in v&&t(54,R=v.dateformat)},i.$$.update=()=>{i.$$.dirty[1]&1024&&a&&_p(a),i.$$.dirty[1]&32768&&u&&_i(),i.$$.dirty[1]&896&&o&&n&&s&&Be(),i.$$.dirty[1]&4194304&&M&&it(),i.$$.dirty[0]&3&&z&&$&&_t(),i.$$.dirty[0]&4|i.$$.dirty[1]&2048&&l&&q&&cc(q,l),i.$$.dirty[0]&4|i.$$.dirty[1]&4096&&h&&q&&uc(q,h),i.$$.dirty[0]&4|i.$$.dirty[1]&16384&&c&&q&&pc(q,`${c}.Style`),i.$$.dirty[1]&8192&&d&&mi()},[z,$,q,P,b,V,de,ce,B,w,T,x,N,ne,se,ae,ue,We,ee,r,C,Oe,be,pe,fe,ke,ze,et,ct,Qi,fi,Be,ut,St,At,Ee,tr,Pt,o,n,s,a,l,h,d,c,u,m,g,f,y,D,A,M,R,Ae,I,le,H,Ze,Pd,kd,Td,Id,Dd,Od,Md,Nd]}class Ad extends hc{constructor(e){super(),ac(this,e,_b,mb,tl,{endpoint:38,playerid:39,session:40,lang:41,clientstyling:42,clientstylingurl:43,translationurl:44,mbsource:45,historytypes:46,hidecolumns:47,hidevalues:48,pagesizeoptions:49,playercurrency:50,defaultpagesize:51,formatamount:52,customcurrencysymbols:53,dateformat:54},Ug,[-1,-1,-1,-1])}get endpoint(){return this.$$.ctx[38]}set endpoint(e){this.$$set({endpoint:e}),ye()}get playerid(){return this.$$.ctx[39]}set playerid(e){this.$$set({playerid:e}),ye()}get session(){return this.$$.ctx[40]}set session(e){this.$$set({session:e}),ye()}get lang(){return this.$$.ctx[41]}set lang(e){this.$$set({lang:e}),ye()}get clientstyling(){return this.$$.ctx[42]}set clientstyling(e){this.$$set({clientstyling:e}),ye()}get clientstylingurl(){return this.$$.ctx[43]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),ye()}get translationurl(){return this.$$.ctx[44]}set translationurl(e){this.$$set({translationurl:e}),ye()}get mbsource(){return this.$$.ctx[45]}set mbsource(e){this.$$set({mbsource:e}),ye()}get historytypes(){return this.$$.ctx[46]}set historytypes(e){this.$$set({historytypes:e}),ye()}get hidecolumns(){return this.$$.ctx[47]}set hidecolumns(e){this.$$set({hidecolumns:e}),ye()}get hidevalues(){return this.$$.ctx[48]}set hidevalues(e){this.$$set({hidevalues:e}),ye()}get pagesizeoptions(){return this.$$.ctx[49]}set pagesizeoptions(e){this.$$set({pagesizeoptions:e}),ye()}get playercurrency(){return this.$$.ctx[50]}set playercurrency(e){this.$$set({playercurrency:e}),ye()}get defaultpagesize(){return this.$$.ctx[51]}set defaultpagesize(e){this.$$set({defaultpagesize:e}),ye()}get formatamount(){return this.$$.ctx[52]}set formatamount(e){this.$$set({formatamount:e}),ye()}get customcurrencysymbols(){return this.$$.ctx[53]}set customcurrencysymbols(e){this.$$set({customcurrencysymbols:e}),ye()}get dateformat(){return this.$$.ctx[54]}set dateformat(e){this.$$set({dateformat:e}),ye()}}lc(Ad,{endpoint:{},playerid:{},session:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},historytypes:{},hidecolumns:{},hidevalues:{},pagesizeoptions:{},playercurrency:{},defaultpagesize:{},formatamount:{},customcurrencysymbols:{},dateformat:{}},[],[],!0);exports.default=Ad;