@everymatrix/general-player-forgot-password-form-nd 1.56.0 → 1.56.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,52 +1,65 @@
1
- "use strict";var Ja=Object.defineProperty,Qa=Object.defineProperties;var Ka=Object.getOwnPropertyDescriptors;var cs=Object.getOwnPropertySymbols;var el=Object.prototype.hasOwnProperty,tl=Object.prototype.propertyIsEnumerable;var Mi=(i,t,e)=>t in i?Ja(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,je=(i,t)=>{for(var e in t||(t={}))el.call(t,e)&&Mi(i,e,t[e]);if(cs)for(var e of cs(t))tl.call(t,e)&&Mi(i,e,t[e]);return i},Wt=(i,t)=>Qa(i,Ka(t));var z=(i,t,e)=>Mi(i,typeof t!="symbol"?t+"":t,e);var qt=(i,t,e)=>new Promise((r,s)=>{var o=l=>{try{a(e.next(l))}catch(d){s(d)}},n=l=>{try{a(e.throw(l))}catch(d){s(d)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,n);a((e=e.apply(i,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function Pe(){}function Do(i){return i()}function fs(){return Object.create(null)}function ze(i){i.forEach(Do)}function It(i){return typeof i=="function"}function zo(i,t){return i!=i?t==t:i!==t||i&&typeof i=="object"||typeof i=="function"}let Yt;function ps(i,t){return i===t?!0:(Yt||(Yt=document.createElement("a")),Yt.href=t,i===Yt.href)}function il(i){return Object.keys(i).length===0}function Vo(i,...t){if(i==null){for(const r of t)r(void 0);return Pe}const e=i.subscribe(...t);return e.unsubscribe?()=>e.unsubscribe():e}function rl(i,t,e){i.$$.on_destroy.push(Vo(t,e))}function p(i,t){i.appendChild(t)}function sl(i,t,e){const r=ol(i);if(!r.getElementById(t)){const s=P("style");s.id=t,s.textContent=e,nl(r,s)}}function ol(i){if(!i)return document;const t=i.getRootNode?i.getRootNode():i.ownerDocument;return t&&t.host?t:i.ownerDocument}function nl(i,t){return p(i.head||i,t),t.sheet}function B(i,t,e){i.insertBefore(t,e||null)}function k(i){i.parentNode&&i.parentNode.removeChild(i)}function al(i,t){for(let e=0;e<i.length;e+=1)i[e]&&i[e].d(t)}function P(i){return document.createElement(i)}function x(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function N(i){return document.createTextNode(i)}function V(){return N(" ")}function Fr(){return N("")}function se(i,t,e,r){return i.addEventListener(t,e,r),()=>i.removeEventListener(t,e,r)}function c(i,t,e){e==null?i.removeAttribute(t):i.getAttribute(t)!==e&&i.setAttribute(t,e)}function K(i,t,e){const r=t.toLowerCase();r in i?i[r]=typeof i[r]=="boolean"&&e===""?!0:e:t in i?i[t]=typeof i[t]=="boolean"&&e===""?!0:e:c(i,t,e)}function ll(i){return Array.from(i.childNodes)}function J(i,t){t=""+t,i.data!==t&&(i.data=t)}function Ze(i,t){i.value=t==null?"":t}function dl(i){const t={};return i.childNodes.forEach(e=>{t[e.slot||"default"]=!0}),t}let Ot;function Et(i){Ot=i}function hl(){if(!Ot)throw new Error("Function called outside component initialization");return Ot}function ul(i){hl().$$.on_mount.push(i)}const Ye=[],Ct=[];let Je=[];const ms=[],cl=Promise.resolve();let or=!1;function fl(){or||(or=!0,cl.then(re))}function nr(i){Je.push(i)}const Bi=new Set;let Ge=0;function re(){if(Ge!==0)return;const i=Ot;do{try{for(;Ge<Ye.length;){const t=Ye[Ge];Ge++,Et(t),pl(t.$$)}}catch(t){throw Ye.length=0,Ge=0,t}for(Et(null),Ye.length=0,Ge=0;Ct.length;)Ct.pop()();for(let t=0;t<Je.length;t+=1){const e=Je[t];Bi.has(e)||(Bi.add(e),e())}Je.length=0}while(Ye.length);for(;ms.length;)ms.pop()();or=!1,Bi.clear(),Et(i)}function pl(i){if(i.fragment!==null){i.update(),ze(i.before_update);const t=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,t),i.after_update.forEach(nr)}}function ml(i){const t=[],e=[];Je.forEach(r=>i.indexOf(r)===-1?t.push(r):e.push(r)),e.forEach(r=>r()),Je=t}const _l=new Set;function gl(i,t){i&&i.i&&(_l.delete(i),i.i(t))}function _s(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function bl(i,t,e){const{fragment:r,after_update:s}=i.$$;r&&r.m(t,e),nr(()=>{const o=i.$$.on_mount.map(Do).filter(It);i.$$.on_destroy?i.$$.on_destroy.push(...o):ze(o),i.$$.on_mount=[]}),s.forEach(nr)}function vl(i,t){const e=i.$$;e.fragment!==null&&(ml(e.after_update),ze(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[])}function yl(i,t){i.$$.dirty[0]===-1&&(Ye.push(i),fl(),i.$$.dirty.fill(0)),i.$$.dirty[t/31|0]|=1<<t%31}function wl(i,t,e,r,s,o,n=null,a=[-1]){const l=Ot;Et(i);const d=i.$$={fragment:null,ctx:[],props:o,update:Pe,not_equal:s,bound:fs(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:fs(),dirty:a,skip_bound:!1,root:t.target||l.$$.root};n&&n(d.root);let h=!1;if(d.ctx=e?e(i,t.props||{},(u,f,...m)=>{const _=m.length?m[0]:f;return d.ctx&&s(d.ctx[u],d.ctx[u]=_)&&(!d.skip_bound&&d.bound[u]&&d.bound[u](_),h&&yl(i,u)),f}):[],d.update(),h=!0,ze(d.before_update),d.fragment=r?r(d.ctx):!1,t.target){if(t.hydrate){const u=ll(t.target);d.fragment&&d.fragment.l(u),u.forEach(k)}else d.fragment&&d.fragment.c();t.intro&&gl(i.$$.fragment),bl(i,t.target,t.anchor),re()}Et(l)}let $o;typeof HTMLElement=="function"&&($o=class extends HTMLElement{constructor(t,e,r){super();z(this,"$$ctor");z(this,"$$s");z(this,"$$c");z(this,"$$cn",!1);z(this,"$$d",{});z(this,"$$r",!1);z(this,"$$p_d",{});z(this,"$$l",{});z(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=e,r&&this.attachShadow({mode:"open"})}addEventListener(t,e,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const s=this.$$c.$on(t,e);this.$$l_u.set(e,s)}super.addEventListener(t,e,r)}removeEventListener(t,e,r){if(super.removeEventListener(t,e,r),this.$$c){const s=this.$$l_u.get(e);s&&(s(),this.$$l_u.delete(e))}}connectedCallback(){return qt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let n;return{c:function(){n=P("slot"),o!=="default"&&c(n,"name",o)},m:function(d,h){B(d,n,h)},d:function(d){d&&k(n)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const e={},r=dl(this);for(const o of this.$$s)o in r&&(e[o]=[t(o)]);for(const o of this.attributes){const n=this.$$g_p(o.name);n in this.$$d||(this.$$d[n]=ii(n,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Wt(je({},this.$$d),{$$slots:e,$$scope:{ctx:[]}})});const s=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const n=ii(o,this.$$d[o],this.$$p_d,"toAttribute");n==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,n)}this.$$r=!1};this.$$c.$$.after_update.push(s),s();for(const o in this.$$l)for(const n of this.$$l[o]){const a=this.$$c.$on(o,n);this.$$l_u.set(n,a)}this.$$l={}}})}attributeChangedCallback(t,e,r){var s;this.$$r||(t=this.$$g_p(t),this.$$d[t]=ii(t,r,this.$$p_d,"toProp"),(s=this.$$c)==null||s.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function ii(i,t,e,r){var o;const s=(o=e[i])==null?void 0:o.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!e[i])return t;if(r==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function xl(i,t,e,r,s,o){let n=class extends $o{constructor(){super(i,e,s),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Object.keys(t).forEach(a=>{Object.defineProperty(n.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var d;l=ii(a,l,t),this.$$d[a]=l,(d=this.$$c)==null||d.$set({[a]:l})}})}),r.forEach(a=>{Object.defineProperty(n.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),i.element=n,n}class Pl{constructor(){z(this,"$$");z(this,"$$set")}$destroy(){vl(this,1),this.$destroy=Pe}$on(t,e){if(!It(e))return Pe;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(e),()=>{const s=r.indexOf(e);s!==-1&&r.splice(s,1)}}$set(t){this.$$set&&!il(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const El="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(El);var ar=function(i,t){return ar=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])},ar(i,t)};function Ne(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ar(i,t);function e(){this.constructor=i}i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var M=function(){return M=Object.assign||function(t){for(var e,r=1,s=arguments.length;r<s;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},M.apply(this,arguments)};function Cl(i,t){var e={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&t.indexOf(r)<0&&(e[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(e[r[s]]=i[r[s]]);return e}function lr(i){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&i[t],r=0;if(e)return e.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(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function dr(i,t){var e=typeof Symbol=="function"&&i[Symbol.iterator];if(!e)return i;var r=e.call(i),s,o=[],n;try{for(;(t===void 0||t-- >0)&&!(s=r.next()).done;)o.push(s.value)}catch(a){n={error:a}}finally{try{s&&!s.done&&(e=r.return)&&e.call(r)}finally{if(n)throw n.error}}return o}function Qe(i,t,e){if(e||arguments.length===2)for(var r=0,s=t.length,o;r<s;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return i.concat(o||Array.prototype.slice.call(t))}function Oe(i){return typeof i=="function"}function Uo(i){var t=function(r){Error.call(r),r.stack=new Error().stack},e=i(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var Hi=Uo(function(i){return function(e){i(this),this.message=e?e.length+` errors occurred during unsubscription:
1
+ "use strict";var Qa=Object.defineProperty,el=Object.defineProperties;var tl=Object.getOwnPropertyDescriptors;var ps=Object.getOwnPropertySymbols;var il=Object.prototype.hasOwnProperty,rl=Object.prototype.propertyIsEnumerable;var Mi=(i,t,e)=>t in i?Qa(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,Ue=(i,t)=>{for(var e in t||(t={}))il.call(t,e)&&Mi(i,e,t[e]);if(ps)for(var e of ps(t))rl.call(t,e)&&Mi(i,e,t[e]);return i},Gt=(i,t)=>el(i,tl(t));var z=(i,t,e)=>(Mi(i,typeof t!="symbol"?t+"":t,e),e);var Wt=(i,t,e)=>new Promise((r,s)=>{var o=l=>{try{a(e.next(l))}catch(d){s(d)}},n=l=>{try{a(e.throw(l))}catch(d){s(d)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,n);a((e=e.apply(i,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function Pe(){}function zo(i){return i()}function ms(){return Object.create(null)}function Fe(i){i.forEach(zo)}function Tt(i){return typeof i=="function"}function Vo(i,t){return i!=i?t==t:i!==t||i&&typeof i=="object"||typeof i=="function"}let qt;function _s(i,t){return i===t?!0:(qt||(qt=document.createElement("a")),qt.href=t,i===qt.href)}function sl(i){return Object.keys(i).length===0}function $o(i,...t){if(i==null){for(const r of t)r(void 0);return Pe}const e=i.subscribe(...t);return e.unsubscribe?()=>e.unsubscribe():e}function ol(i,t,e){i.$$.on_destroy.push($o(t,e))}function p(i,t){i.appendChild(t)}function nl(i,t,e){const r=al(i);if(!r.getElementById(t)){const s=P("style");s.id=t,s.textContent=e,ll(r,s)}}function al(i){if(!i)return document;const t=i.getRootNode?i.getRootNode():i.ownerDocument;return t&&t.host?t:i.ownerDocument}function ll(i,t){return p(i.head||i,t),t.sheet}function B(i,t,e){i.insertBefore(t,e||null)}function k(i){i.parentNode&&i.parentNode.removeChild(i)}function dl(i,t){for(let e=0;e<i.length;e+=1)i[e]&&i[e].d(t)}function P(i){return document.createElement(i)}function x(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function N(i){return document.createTextNode(i)}function V(){return N(" ")}function Hr(){return N("")}function se(i,t,e,r){return i.addEventListener(t,e,r),()=>i.removeEventListener(t,e,r)}function c(i,t,e){e==null?i.removeAttribute(t):i.getAttribute(t)!==e&&i.setAttribute(t,e)}function Q(i,t,e){const r=t.toLowerCase();r in i?i[r]=typeof i[r]=="boolean"&&e===""?!0:e:t in i?i[t]=typeof i[t]=="boolean"&&e===""?!0:e:c(i,t,e)}function hl(i){return Array.from(i.childNodes)}function J(i,t){t=""+t,i.data!==t&&(i.data=t)}function Ze(i,t){i.value=t==null?"":t}function ul(i){const t={};return i.childNodes.forEach(e=>{t[e.slot||"default"]=!0}),t}let It;function Pt(i){It=i}function cl(){if(!It)throw new Error("Function called outside component initialization");return It}function fl(i){cl().$$.on_mount.push(i)}const qe=[],Et=[];let Xe=[];const gs=[],pl=Promise.resolve();let or=!1;function ml(){or||(or=!0,pl.then(re))}function nr(i){Xe.push(i)}const Li=new Set;let je=0;function re(){if(je!==0)return;const i=It;do{try{for(;je<qe.length;){const t=qe[je];je++,Pt(t),_l(t.$$)}}catch(t){throw qe.length=0,je=0,t}for(Pt(null),qe.length=0,je=0;Et.length;)Et.pop()();for(let t=0;t<Xe.length;t+=1){const e=Xe[t];Li.has(e)||(Li.add(e),e())}Xe.length=0}while(qe.length);for(;gs.length;)gs.pop()();or=!1,Li.clear(),Pt(i)}function _l(i){if(i.fragment!==null){i.update(),Fe(i.before_update);const t=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,t),i.after_update.forEach(nr)}}function gl(i){const t=[],e=[];Xe.forEach(r=>i.indexOf(r)===-1?t.push(r):e.push(r)),e.forEach(r=>r()),Xe=t}const bl=new Set;function vl(i,t){i&&i.i&&(bl.delete(i),i.i(t))}function bs(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function yl(i,t,e){const{fragment:r,after_update:s}=i.$$;r&&r.m(t,e),nr(()=>{const o=i.$$.on_mount.map(zo).filter(Tt);i.$$.on_destroy?i.$$.on_destroy.push(...o):Fe(o),i.$$.on_mount=[]}),s.forEach(nr)}function wl(i,t){const e=i.$$;e.fragment!==null&&(gl(e.after_update),Fe(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[])}function xl(i,t){i.$$.dirty[0]===-1&&(qe.push(i),ml(),i.$$.dirty.fill(0)),i.$$.dirty[t/31|0]|=1<<t%31}function Pl(i,t,e,r,s,o,n=null,a=[-1]){const l=It;Pt(i);const d=i.$$={fragment:null,ctx:[],props:o,update:Pe,not_equal:s,bound:ms(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:ms(),dirty:a,skip_bound:!1,root:t.target||l.$$.root};n&&n(d.root);let h=!1;if(d.ctx=e?e(i,t.props||{},(u,f,...m)=>{const _=m.length?m[0]:f;return d.ctx&&s(d.ctx[u],d.ctx[u]=_)&&(!d.skip_bound&&d.bound[u]&&d.bound[u](_),h&&xl(i,u)),f}):[],d.update(),h=!0,Fe(d.before_update),d.fragment=r?r(d.ctx):!1,t.target){if(t.hydrate){const u=hl(t.target);d.fragment&&d.fragment.l(u),u.forEach(k)}else d.fragment&&d.fragment.c();t.intro&&vl(i.$$.fragment),yl(i,t.target,t.anchor),re()}Pt(l)}let Uo;typeof HTMLElement=="function"&&(Uo=class extends HTMLElement{constructor(t,e,r){super();z(this,"$$ctor");z(this,"$$s");z(this,"$$c");z(this,"$$cn",!1);z(this,"$$d",{});z(this,"$$r",!1);z(this,"$$p_d",{});z(this,"$$l",{});z(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=e,r&&this.attachShadow({mode:"open"})}addEventListener(t,e,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const s=this.$$c.$on(t,e);this.$$l_u.set(e,s)}super.addEventListener(t,e,r)}removeEventListener(t,e,r){if(super.removeEventListener(t,e,r),this.$$c){const s=this.$$l_u.get(e);s&&(s(),this.$$l_u.delete(e))}}connectedCallback(){return Wt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let n;return{c:function(){n=P("slot"),o!=="default"&&c(n,"name",o)},m:function(d,h){B(d,n,h)},d:function(d){d&&k(n)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const e={},r=ul(this);for(const o of this.$$s)o in r&&(e[o]=[t(o)]);for(const o of this.attributes){const n=this.$$g_p(o.name);n in this.$$d||(this.$$d[n]=ti(n,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Gt(Ue({},this.$$d),{$$slots:e,$$scope:{ctx:[]}})});const s=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const n=ti(o,this.$$d[o],this.$$p_d,"toAttribute");n==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,n)}this.$$r=!1};this.$$c.$$.after_update.push(s),s();for(const o in this.$$l)for(const n of this.$$l[o]){const a=this.$$c.$on(o,n);this.$$l_u.set(n,a)}this.$$l={}}})}attributeChangedCallback(t,e,r){var s;this.$$r||(t=this.$$g_p(t),this.$$d[t]=ti(t,r,this.$$p_d,"toProp"),(s=this.$$c)==null||s.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function ti(i,t,e,r){var o;const s=(o=e[i])==null?void 0:o.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!e[i])return t;if(r==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function El(i,t,e,r,s,o){let n=class extends Uo{constructor(){super(i,e,s),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Object.keys(t).forEach(a=>{Object.defineProperty(n.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var d;l=ti(a,l,t),this.$$d[a]=l,(d=this.$$c)==null||d.$set({[a]:l})}})}),r.forEach(a=>{Object.defineProperty(n.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),i.element=n,n}class Cl{constructor(){z(this,"$$");z(this,"$$set")}$destroy(){wl(this,1),this.$destroy=Pe}$on(t,e){if(!Tt(e))return Pe;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(e),()=>{const s=r.indexOf(e);s!==-1&&r.splice(s,1)}}$set(t){this.$$set&&!sl(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Al="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Al);/*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation.
3
+
4
+ Permission to use, copy, modify, and/or distribute this software for any
5
+ purpose with or without fee is hereby granted.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
+ PERFORMANCE OF THIS SOFTWARE.
14
+ ***************************************************************************** */var ar=function(i,t){return ar=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])},ar(i,t)};function Oe(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ar(i,t);function e(){this.constructor=i}i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var L=function(){return L=Object.assign||function(t){for(var e,r=1,s=arguments.length;r<s;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},L.apply(this,arguments)};function Sl(i,t){var e={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&t.indexOf(r)<0&&(e[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(e[r[s]]=i[r[s]]);return e}function lr(i){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&i[t],r=0;if(e)return e.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(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function dr(i,t){var e=typeof Symbol=="function"&&i[Symbol.iterator];if(!e)return i;var r=e.call(i),s,o=[],n;try{for(;(t===void 0||t-- >0)&&!(s=r.next()).done;)o.push(s.value)}catch(a){n={error:a}}finally{try{s&&!s.done&&(e=r.return)&&e.call(r)}finally{if(n)throw n.error}}return o}function Je(i,t,e){if(e||arguments.length===2)for(var r=0,s=t.length,o;r<s;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return i.concat(o||t)}function Ie(i){return typeof i=="function"}function jo(i){var t=function(r){Error.call(r),r.stack=new Error().stack},e=i(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var Bi=jo(function(i){return function(e){i(this),this.message=e?e.length+` errors occurred during unsubscription:
2
15
  `+e.map(function(r,s){return s+1+") "+r.toString()}).join(`
3
- `):"",this.name="UnsubscriptionError",this.errors=e}});function hr(i,t){if(i){var e=i.indexOf(t);0<=e&&i.splice(e,1)}}var vi=function(){function i(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return i.prototype.unsubscribe=function(){var t,e,r,s,o;if(!this.closed){this.closed=!0;var n=this._parentage;if(n)if(this._parentage=null,Array.isArray(n))try{for(var a=lr(n),l=a.next();!l.done;l=a.next()){var d=l.value;d.remove(this)}}catch(g){t={error:g}}finally{try{l&&!l.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else n.remove(this);var h=this.initialTeardown;if(Oe(h))try{h()}catch(g){o=g instanceof Hi?g.errors:[g]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var f=lr(u),m=f.next();!m.done;m=f.next()){var _=m.value;try{gs(_)}catch(g){o=o!=null?o:[],g instanceof Hi?o=Qe(Qe([],dr(o)),dr(g.errors)):o.push(g)}}}catch(g){r={error:g}}finally{try{m&&!m.done&&(s=f.return)&&s.call(f)}finally{if(r)throw r.error}}}if(o)throw new Hi(o)}},i.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)gs(t);else{if(t instanceof i){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},i.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},i.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},i.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&hr(e,t)},i.prototype.remove=function(t){var e=this._finalizers;e&&hr(e,t),t instanceof i&&t._removeParent(this)},i.EMPTY=function(){var t=new i;return t.closed=!0,t}(),i}(),jo=vi.EMPTY;function Go(i){return i instanceof vi||i&&"closed"in i&&Oe(i.remove)&&Oe(i.add)&&Oe(i.unsubscribe)}function gs(i){Oe(i)?i():i.unsubscribe()}var Al={Promise:void 0},Sl={setTimeout:function(i,t){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return setTimeout.apply(void 0,Qe([i,t],dr(e)))},clearTimeout:function(i){return clearTimeout(i)},delegate:void 0};function Tl(i){Sl.setTimeout(function(){throw i})}function bs(){}function ri(i){i()}var Wo=function(i){Ne(t,i);function t(e){var r=i.call(this)||this;return r.isStopped=!1,e?(r.destination=e,Go(e)&&e.add(r)):r.destination=Nl,r}return t.create=function(e,r,s){return new ur(e,r,s)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,i.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(vi),Il=function(){function i(t){this.partialObserver=t}return i.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(r){Xt(r)}},i.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(r){Xt(r)}else Xt(t)},i.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){Xt(e)}},i}(),ur=function(i){Ne(t,i);function t(e,r,s){var o=i.call(this)||this,n;return Oe(e)||!e?n={next:e!=null?e:void 0,error:r!=null?r:void 0,complete:s!=null?s:void 0}:n=e,o.destination=new Il(n),o}return t}(Wo);function Xt(i){Tl(i)}function Ol(i){throw i}var Nl={closed:!0,next:bs,error:Ol,complete:bs},kl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Ll(i){return i}function Ml(i){return i.length===0?Ll:i.length===1?i[0]:function(e){return i.reduce(function(r,s){return s(r)},e)}}var vs=function(){function i(t){t&&(this._subscribe=t)}return i.prototype.lift=function(t){var e=new i;return e.source=this,e.operator=t,e},i.prototype.subscribe=function(t,e,r){var s=this,o=Hl(t)?t:new ur(t,e,r);return ri(function(){var n=s,a=n.operator,l=n.source;o.add(a?a.call(o,l):l?s._subscribe(o):s._trySubscribe(o))}),o},i.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},i.prototype.forEach=function(t,e){var r=this;return e=ys(e),new e(function(s,o){var n=new ur({next:function(a){try{t(a)}catch(l){o(l),n.unsubscribe()}},error:o,complete:s});r.subscribe(n)})},i.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},i.prototype[kl]=function(){return this},i.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Ml(t)(this)},i.prototype.toPromise=function(t){var e=this;return t=ys(t),new t(function(r,s){var o;e.subscribe(function(n){return o=n},function(n){return s(n)},function(){return r(o)})})},i.create=function(t){return new i(t)},i}();function ys(i){var t;return(t=i!=null?i:Al.Promise)!==null&&t!==void 0?t:Promise}function Bl(i){return i&&Oe(i.next)&&Oe(i.error)&&Oe(i.complete)}function Hl(i){return i&&i instanceof Wo||Bl(i)&&Go(i)}var Rl=Uo(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),qo=function(i){Ne(t,i);function t(){var e=i.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var r=new ws(this,this);return r.operator=e,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new Rl},t.prototype.next=function(e){var r=this;ri(function(){var s,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var n=lr(r.currentObservers),a=n.next();!a.done;a=n.next()){var l=a.value;l.next(e)}}catch(d){s={error:d}}finally{try{a&&!a.done&&(o=n.return)&&o.call(n)}finally{if(s)throw s.error}}}})},t.prototype.error=function(e){var r=this;ri(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=e;for(var s=r.observers;s.length;)s.shift().error(e)}})},t.prototype.complete=function(){var e=this;ri(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var r=e.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),i.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var r=this,s=this,o=s.hasError,n=s.isStopped,a=s.observers;return o||n?jo:(this.currentObservers=null,a.push(e),new vi(function(){r.currentObservers=null,hr(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var r=this,s=r.hasError,o=r.thrownError,n=r.isStopped;s?e.error(o):n&&e.complete()},t.prototype.asObservable=function(){var e=new vs;return e.source=this,e},t.create=function(e,r){return new ws(e,r)},t}(vs),ws=function(i){Ne(t,i);function t(e,r){var s=i.call(this)||this;return s.destination=e,s.source=r,s}return t.prototype.next=function(e){var r,s;(s=(r=this.destination)===null||r===void 0?void 0:r.next)===null||s===void 0||s.call(r,e)},t.prototype.error=function(e){var r,s;(s=(r=this.destination)===null||r===void 0?void 0:r.error)===null||s===void 0||s.call(r,e)},t.prototype.complete=function(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)},t.prototype._subscribe=function(e){var r,s;return(s=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&s!==void 0?s:jo},t}(qo),Yo={now:function(){return(Yo.delegate||Date).now()},delegate:void 0},Fl=function(i){Ne(t,i);function t(e,r,s){e===void 0&&(e=1/0),r===void 0&&(r=1/0),s===void 0&&(s=Yo);var o=i.call(this)||this;return o._bufferSize=e,o._windowTime=r,o._timestampProvider=s,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,e),o._windowTime=Math.max(1,r),o}return t.prototype.next=function(e){var r=this,s=r.isStopped,o=r._buffer,n=r._infiniteTimeWindow,a=r._timestampProvider,l=r._windowTime;s||(o.push(e),!n&&o.push(a.now()+l)),this._trimBuffer(),i.prototype.next.call(this,e)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(e),s=this,o=s._infiniteTimeWindow,n=s._buffer,a=n.slice(),l=0;l<a.length&&!e.closed;l+=o?1:2)e.next(a[l]);return this._checkFinalizedStatuses(e),r},t.prototype._trimBuffer=function(){var e=this,r=e._bufferSize,s=e._timestampProvider,o=e._buffer,n=e._infiniteTimeWindow,a=(n?1:2)*r;if(r<1/0&&a<o.length&&o.splice(0,o.length-a),!n){for(var l=s.now(),d=0,h=1;h<o.length&&o[h]<=l;h+=2)d=h;d&&o.splice(0,d+1)}},t}(qo);const xs=[],Ps={},Dl=(i,t=0)=>{if(xs.indexOf(i)==-1){const e=new Fl(t);Ps[i]=e,xs.push(i)}return Ps[i]},We=[];function zl(i,t){return{subscribe:yi(i,t).subscribe}}function yi(i,t=Pe){let e;const r=new Set;function s(a){if(zo(i,a)&&(i=a,e)){const l=!We.length;for(const d of r)d[1](),We.push(d,i);if(l){for(let d=0;d<We.length;d+=2)We[d][0](We[d+1]);We.length=0}}}function o(a){s(a(i))}function n(a,l=Pe){const d=[a,l];return r.add(d),r.size===1&&(e=t(s,o)||Pe),a(i),()=>{r.delete(d),r.size===0&&e&&(e(),e=null)}}return{set:s,update:o,subscribe:n}}function dt(i,t,e){const r=!Array.isArray(i),s=r?[i]:i;if(!s.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return zl(e,(n,a)=>{let l=!1;const d=[];let h=0,u=Pe;const f=()=>{if(h)return;u();const _=t(r?d[0]:d,n,a);o?n(_):u=It(_)?_:Pe},m=s.map((_,g)=>Vo(_,w=>{d[g]=w,h&=~(1<<g),l&&f()},()=>{h|=1<<g}));return l=!0,f(),function(){ze(m),u(),l=!1}})}function Vl(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var $l=function(t){return Ul(t)&&!jl(t)};function Ul(i){return!!i&&typeof i=="object"}function jl(i){var t=Object.prototype.toString.call(i);return t==="[object RegExp]"||t==="[object Date]"||ql(i)}var Gl=typeof Symbol=="function"&&Symbol.for,Wl=Gl?Symbol.for("react.element"):60103;function ql(i){return i.$$typeof===Wl}function Yl(i){return Array.isArray(i)?[]:{}}function Nt(i,t){return t.clone!==!1&&t.isMergeableObject(i)?it(Yl(i),i,t):i}function Xl(i,t,e){return i.concat(t).map(function(r){return Nt(r,e)})}function Zl(i,t){if(!t.customMerge)return it;var e=t.customMerge(i);return typeof e=="function"?e:it}function Jl(i){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(i).filter(function(t){return Object.propertyIsEnumerable.call(i,t)}):[]}function Es(i){return Object.keys(i).concat(Jl(i))}function Xo(i,t){try{return t in i}catch(e){return!1}}function Ql(i,t){return Xo(i,t)&&!(Object.hasOwnProperty.call(i,t)&&Object.propertyIsEnumerable.call(i,t))}function Kl(i,t,e){var r={};return e.isMergeableObject(i)&&Es(i).forEach(function(s){r[s]=Nt(i[s],e)}),Es(t).forEach(function(s){Ql(i,s)||(Xo(i,s)&&e.isMergeableObject(t[s])?r[s]=Zl(s,e)(i[s],t[s],e):r[s]=Nt(t[s],e))}),r}function it(i,t,e){e=e||{},e.arrayMerge=e.arrayMerge||Xl,e.isMergeableObject=e.isMergeableObject||$l,e.cloneUnlessOtherwiseSpecified=Nt;var r=Array.isArray(t),s=Array.isArray(i),o=r===s;return o?r?e.arrayMerge(i,t,e):Kl(i,t,e):Nt(t,e)}it.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,s){return it(r,s,e)},{})};var ed=it,td=ed;const id=Vl(td);function Ri(i,t){var e=t&&t.cache?t.cache:dd,r=t&&t.serializer?t.serializer:ad,s=t&&t.strategy?t.strategy:od;return s(i,{cache:e,serializer:r})}function rd(i){return i==null||typeof i=="number"||typeof i=="boolean"}function sd(i,t,e,r){var s=rd(r)?r:e(r),o=t.get(s);return typeof o=="undefined"&&(o=i.call(this,r),t.set(s,o)),o}function Zo(i,t,e){var r=Array.prototype.slice.call(arguments,3),s=e(r),o=t.get(s);return typeof o=="undefined"&&(o=i.apply(this,r),t.set(s,o)),o}function Jo(i,t,e,r,s){return e.bind(t,i,r,s)}function od(i,t){var e=i.length===1?sd:Zo;return Jo(i,this,e,t.cache.create(),t.serializer)}function nd(i,t){return Jo(i,this,Zo,t.cache.create(),t.serializer)}var ad=function(){return JSON.stringify(arguments)},ld=function(){function i(){this.cache=Object.create(null)}return i.prototype.get=function(t){return this.cache[t]},i.prototype.set=function(t,e){this.cache[t]=e},i}(),dd={create:function(){return new ld}},Fi={variadic:nd},T;(function(i){i[i.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",i[i.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",i[i.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",i[i.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",i[i.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",i[i.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",i[i.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",i[i.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",i[i.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",i[i.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",i[i.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",i[i.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",i[i.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",i[i.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",i[i.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",i[i.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",i[i.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",i[i.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",i[i.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",i[i.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",i[i.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",i[i.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",i[i.INVALID_TAG=23]="INVALID_TAG",i[i.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",i[i.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",i[i.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(T||(T={}));var j;(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"})(j||(j={}));var rt;(function(i){i[i.number=0]="number",i[i.dateTime=1]="dateTime"})(rt||(rt={}));function Cs(i){return i.type===j.literal}function hd(i){return i.type===j.argument}function Qo(i){return i.type===j.number}function Ko(i){return i.type===j.date}function en(i){return i.type===j.time}function tn(i){return i.type===j.select}function rn(i){return i.type===j.plural}function ud(i){return i.type===j.pound}function sn(i){return i.type===j.tag}function on(i){return!!(i&&typeof i=="object"&&i.type===rt.number)}function cr(i){return!!(i&&typeof i=="object"&&i.type===rt.dateTime)}var nn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,cd=/(?:[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 fd(i){var t={};return i.replace(cd,function(e){var r=e.length;switch(e[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.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":t.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":t.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":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.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":t.minute=["numeric","2-digit"][r-1];break;case"s":t.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":t.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""}),t}var pd=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function md(i){if(i.length===0)throw new Error("Number skeleton cannot be empty");for(var t=i.split(pd).filter(function(f){return f.length>0}),e=[],r=0,s=t;r<s.length;r++){var o=s[r],n=o.split("/");if(n.length===0)throw new Error("Invalid number skeleton");for(var a=n[0],l=n.slice(1),d=0,h=l;d<h.length;d++){var u=h[d];if(u.length===0)throw new Error("Invalid number skeleton")}e.push({stem:a,options:l})}return e}function _d(i){return i.replace(/^(.*?)-/,"")}var As=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,an=/^(@+)?(\+|#+)?[rs]?$/g,gd=/(\*)(0+)|(#+)(0+)|(0+)/g,ln=/^(0+)$/;function Ss(i){var t={};return i[i.length-1]==="r"?t.roundingPriority="morePrecision":i[i.length-1]==="s"&&(t.roundingPriority="lessPrecision"),i.replace(an,function(e,r,s){return typeof s!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):s==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof s=="string"?s.length:0)),""}),t}function dn(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 bd(i){var t;if(i[0]==="E"&&i[1]==="E"?(t={notation:"engineering"},i=i.slice(2)):i[0]==="E"&&(t={notation:"scientific"},i=i.slice(1)),t){var e=i.slice(0,2);if(e==="+!"?(t.signDisplay="always",i=i.slice(2)):e==="+?"&&(t.signDisplay="exceptZero",i=i.slice(2)),!ln.test(i))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=i.length}return t}function Ts(i){var t={},e=dn(i);return e||t}function vd(i){for(var t={},e=0,r=i;e<r.length;e++){var s=r[e];switch(s.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=s.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=_d(s.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=M(M(M({},t),{notation:"scientific"}),s.options.reduce(function(l,d){return M(M({},l),Ts(d))},{}));continue;case"engineering":t=M(M(M({},t),{notation:"engineering"}),s.options.reduce(function(l,d){return M(M({},l),Ts(d))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(s.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(s.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");s.options[0].replace(gd,function(l,d,h,u,f,m){if(d)t.minimumIntegerDigits=h.length;else{if(u&&f)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(ln.test(s.stem)){t.minimumIntegerDigits=s.stem.length;continue}if(As.test(s.stem)){if(s.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");s.stem.replace(As,function(l,d,h,u,f,m){return h==="*"?t.minimumFractionDigits=d.length:u&&u[0]==="#"?t.maximumFractionDigits=u.length:f&&m?(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length+m.length):(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length),""});var o=s.options[0];o==="w"?t=M(M({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=M(M({},t),Ss(o)));continue}if(an.test(s.stem)){t=M(M({},t),Ss(s.stem));continue}var n=dn(s.stem);n&&(t=M(M({},t),n));var a=bd(s.stem);a&&(t=M(M({},t),a))}return t}var Zt={"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 yd(i,t){for(var e="",r=0;r<i.length;r++){var s=i.charAt(r);if(s==="j"){for(var o=0;r+1<i.length&&i.charAt(r+1)===s;)o++,r++;var n=1+(o&1),a=o<2?1:3+(o>>1),l="a",d=wd(t);for((d=="H"||d=="k")&&(a=0);a-- >0;)e+=l;for(;n-- >0;)e=d+e}else s==="J"?e+="H":e+=s}return e}function wd(i){var t=i.hourCycle;if(t===void 0&&i.hourCycles&&i.hourCycles.length&&(t=i.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var e=i.language,r;e!=="root"&&(r=i.maximize().region);var s=Zt[r||""]||Zt[e||""]||Zt["".concat(e,"-001")]||Zt["001"];return s[0]}var Di,xd=new RegExp("^".concat(nn.source,"*")),Pd=new RegExp("".concat(nn.source,"*$"));function O(i,t){return{start:i,end:t}}var Ed=!!String.prototype.startsWith&&"_a".startsWith("a",1),Cd=!!String.fromCodePoint,Ad=!!Object.fromEntries,Sd=!!String.prototype.codePointAt,Td=!!String.prototype.trimStart,Id=!!String.prototype.trimEnd,Od=!!Number.isSafeInteger,Nd=Od?Number.isSafeInteger:function(i){return typeof i=="number"&&isFinite(i)&&Math.floor(i)===i&&Math.abs(i)<=9007199254740991},fr=!0;try{var kd=un("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");fr=((Di=kd.exec("a"))===null||Di===void 0?void 0:Di[0])==="a"}catch(i){fr=!1}var Is=Ed?function(t,e,r){return t.startsWith(e,r)}:function(t,e,r){return t.slice(r,r+e.length)===e},pr=Cd?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r="",s=t.length,o=0,n;s>o;){if(n=t[o++],n>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(((n-=65536)>>10)+55296,n%1024+56320)}return r},Os=Ad?Object.fromEntries:function(t){for(var e={},r=0,s=t;r<s.length;r++){var o=s[r],n=o[0],a=o[1];e[n]=a}return e},hn=Sd?function(t,e){return t.codePointAt(e)}:function(t,e){var r=t.length;if(!(e<0||e>=r)){var s=t.charCodeAt(e),o;return s<55296||s>56319||e+1===r||(o=t.charCodeAt(e+1))<56320||o>57343?s:(s-55296<<10)+(o-56320)+65536}},Ld=Td?function(t){return t.trimStart()}:function(t){return t.replace(xd,"")},Md=Id?function(t){return t.trimEnd()}:function(t){return t.replace(Pd,"")};function un(i,t){return new RegExp(i,t)}var mr;if(fr){var Ns=un("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");mr=function(t,e){var r;Ns.lastIndex=e;var s=Ns.exec(t);return(r=s[1])!==null&&r!==void 0?r:""}}else mr=function(t,e){for(var r=[];;){var s=hn(t,e);if(s===void 0||cn(s)||Fd(s))break;r.push(s),e+=s>=65536?2:1}return pr.apply(void 0,r)};var Bd=function(){function i(t,e){e===void 0&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.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(t,e,r){for(var s=[];!this.isEOF();){var o=this.char();if(o===123){var n=this.parseArgument(t,r);if(n.err)return n;s.push(n.val)}else{if(o===125&&t>0)break;if(o===35&&(e==="plural"||e==="selectordinal")){var a=this.clonePosition();this.bump(),s.push({type:j.pound,location:O(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(T.UNMATCHED_CLOSING_TAG,O(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&_r(this.peek()||0)){var n=this.parseTag(t,e);if(n.err)return n;s.push(n.val)}else{var n=this.parseLiteral(t,e);if(n.err)return n;s.push(n.val)}}}return{val:s,err:null}},i.prototype.parseTag=function(t,e){var r=this.clonePosition();this.bump();var s=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:j.literal,value:"<".concat(s,"/>"),location:O(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,e,!0);if(o.err)return o;var n=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!_r(this.char()))return this.error(T.INVALID_TAG,O(a,this.clonePosition()));var l=this.clonePosition(),d=this.parseTagName();return s!==d?this.error(T.UNMATCHED_CLOSING_TAG,O(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:j.tag,value:s,children:n,location:O(r,this.clonePosition())},err:null}:this.error(T.INVALID_TAG,O(a,this.clonePosition())))}else return this.error(T.UNCLOSED_TAG,O(r,this.clonePosition()))}else return this.error(T.INVALID_TAG,O(r,this.clonePosition()))},i.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Rd(this.char());)this.bump();return this.message.slice(t,this.offset())},i.prototype.parseLiteral=function(t,e){for(var r=this.clonePosition(),s="";;){var o=this.tryParseQuote(e);if(o){s+=o;continue}var n=this.tryParseUnquoted(t,e);if(n){s+=n;continue}var a=this.tryParseLeftAngleBracket();if(a){s+=a;continue}break}var l=O(r,this.clonePosition());return{val:{type:j.literal,value:s,location:l},err:null}},i.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Hd(this.peek()||0))?(this.bump(),"<"):null},i.prototype.tryParseQuote=function(t){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(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)e.push(39),this.bump();else{this.bump();break}else e.push(r);this.bump()}return pr.apply(void 0,e)},i.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(e==="plural"||e==="selectordinal")||r===125&&t>0?null:(this.bump(),pr(r))},i.prototype.parseArgument=function(t,e){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,O(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(T.EMPTY_ARGUMENT,O(r,this.clonePosition()));var s=this.parseIdentifierIfPossible().value;if(!s)return this.error(T.MALFORMED_ARGUMENT,O(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,O(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:j.argument,value:s,location:O(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,O(r,this.clonePosition())):this.parseArgumentOptions(t,e,s,r);default:return this.error(T.MALFORMED_ARGUMENT,O(r,this.clonePosition()))}},i.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=mr(this.message,e),s=e+r.length;this.bumpTo(s);var o=this.clonePosition(),n=O(t,o);return{value:r,location:n}},i.prototype.parseArgumentOptions=function(t,e,r,s){var o,n=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(T.EXPECT_ARGUMENT_TYPE,O(n,l));case"number":case"date":case"time":{this.bumpSpace();var d=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),u=this.parseSimpleArgStyleIfPossible();if(u.err)return u;var f=Md(u.val);if(f.length===0)return this.error(T.EXPECT_ARGUMENT_STYLE,O(this.clonePosition(),this.clonePosition()));var m=O(h,this.clonePosition());d={style:f,styleLocation:m}}var _=this.tryParseArgumentClose(s);if(_.err)return _;var g=O(s,this.clonePosition());if(d&&Is(d==null?void 0:d.style,"::",0)){var w=Ld(d.style.slice(2));if(a==="number"){var u=this.parseNumberSkeletonFromString(w,d.styleLocation);return u.err?u:{val:{type:j.number,value:r,location:g,style:u.val},err:null}}else{if(w.length===0)return this.error(T.EXPECT_DATE_TIME_SKELETON,g);var y=w;this.locale&&(y=yd(w,this.locale));var f={type:rt.dateTime,pattern:y,location:d.styleLocation,parsedOptions:this.shouldParseSkeletons?fd(y):{}},v=a==="date"?j.date:j.time;return{val:{type:v,value:r,location:g,style:f},err:null}}}return{val:{type:a==="number"?j.number:a==="date"?j.date:j.time,value:r,location:g,style:(o=d==null?void 0:d.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var C=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(T.EXPECT_SELECT_ARGUMENT_OPTIONS,O(C,M({},C)));this.bumpSpace();var E=this.parseIdentifierIfPossible(),A=0;if(a!=="select"&&E.value==="offset"){if(!this.bumpIf(":"))return this.error(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,O(this.clonePosition(),this.clonePosition()));this.bumpSpace();var u=this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,T.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(u.err)return u;this.bumpSpace(),E=this.parseIdentifierIfPossible(),A=u.val}var $=this.tryParsePluralOrSelectOptions(t,a,e,E);if($.err)return $;var _=this.tryParseArgumentClose(s);if(_.err)return _;var H=O(s,this.clonePosition());return a==="select"?{val:{type:j.select,value:r,options:Os($.val),location:H},err:null}:{val:{type:j.plural,value:r,options:Os($.val),offset:A,pluralType:a==="plural"?"cardinal":"ordinal",location:H},err:null}}default:return this.error(T.INVALID_ARGUMENT_TYPE,O(n,l))}},i.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,O(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},i.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var s=this.clonePosition();if(!this.bumpUntil("'"))return this.error(T.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,O(s,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(e.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(e.offset,this.offset()),err:null}},i.prototype.parseNumberSkeletonFromString=function(t,e){var r=[];try{r=md(t)}catch(s){return this.error(T.INVALID_NUMBER_SKELETON,e)}return{val:{type:rt.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?vd(r):{}},err:null}},i.prototype.tryParsePluralOrSelectOptions=function(t,e,r,s){for(var o,n=!1,a=[],l=new Set,d=s.value,h=s.location;;){if(d.length===0){var u=this.clonePosition();if(e!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_SELECTOR,T.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;h=O(u,this.clonePosition()),d=this.message.slice(u.offset,this.offset())}else break}if(l.has(d))return this.error(e==="select"?T.DUPLICATE_SELECT_ARGUMENT_SELECTOR:T.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);d==="other"&&(n=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(e==="select"?T.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:T.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,O(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(t+1,e,r);if(_.err)return _;var g=this.tryParseArgumentClose(m);if(g.err)return g;a.push([d,{value:_.val,location:O(m,this.clonePosition())}]),l.add(d),this.bumpSpace(),o=this.parseIdentifierIfPossible(),d=o.value,h=o.location}return a.length===0?this.error(e==="select"?T.EXPECT_SELECT_ARGUMENT_SELECTOR:T.EXPECT_PLURAL_ARGUMENT_SELECTOR,O(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(T.MISSING_OTHER_CLAUSE,O(this.clonePosition(),this.clonePosition())):{val:a,err:null}},i.prototype.tryParseDecimalInteger=function(t,e){var r=1,s=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,n=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,n=n*10+(a-48),this.bump();else break}var l=O(s,this.clonePosition());return o?(n*=r,Nd(n)?{val:n,err:null}:this.error(e,l)):this.error(t,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 t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=hn(this.message,t);if(e===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},i.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},i.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},i.prototype.bumpIf=function(t){if(Is(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},i.prototype.bumpUntil=function(t){var e=this.offset(),r=this.message.indexOf(t,e);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},i.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(e>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},i.prototype.bumpSpace=function(){for(;!this.isEOF()&&cn(this.char());)this.bump()},i.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),r=this.message.charCodeAt(e+(t>=65536?2:1));return r!=null?r:null},i}();function _r(i){return i>=97&&i<=122||i>=65&&i<=90}function Hd(i){return _r(i)||i===47}function Rd(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 cn(i){return i>=9&&i<=13||i===32||i===133||i>=8206&&i<=8207||i===8232||i===8233}function Fd(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 gr(i){i.forEach(function(t){if(delete t.location,tn(t)||rn(t))for(var e in t.options)delete t.options[e].location,gr(t.options[e].value);else Qo(t)&&on(t.style)||(Ko(t)||en(t))&&cr(t.style)?delete t.style.location:sn(t)&&gr(t.children)})}function Dd(i,t){t===void 0&&(t={}),t=M({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var e=new Bd(i,t).parse();if(e.err){var r=SyntaxError(T[e.err.kind]);throw r.location=e.err.location,r.originalMessage=e.err.message,r}return t!=null&&t.captureLocation||gr(e.val),e.val}var st;(function(i){i.MISSING_VALUE="MISSING_VALUE",i.INVALID_VALUE="INVALID_VALUE",i.MISSING_INTL_API="MISSING_INTL_API"})(st||(st={}));var wi=function(i){Ne(t,i);function t(e,r,s){var o=i.call(this,e)||this;return o.code=r,o.originalMessage=s,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),ks=function(i){Ne(t,i);function t(e,r,s,o){return i.call(this,'Invalid values for "'.concat(e,'": "').concat(r,'". Options are "').concat(Object.keys(s).join('", "'),'"'),st.INVALID_VALUE,o)||this}return t}(wi),zd=function(i){Ne(t,i);function t(e,r,s){return i.call(this,'Value for "'.concat(e,'" must be of type ').concat(r),st.INVALID_VALUE,s)||this}return t}(wi),Vd=function(i){Ne(t,i);function t(e,r){return i.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(r,'"'),st.MISSING_VALUE,r)||this}return t}(wi),ce;(function(i){i[i.literal=0]="literal",i[i.object=1]="object"})(ce||(ce={}));function $d(i){return i.length<2?i:i.reduce(function(t,e){var r=t[t.length-1];return!r||r.type!==ce.literal||e.type!==ce.literal?t.push(e):r.value+=e.value,t},[])}function Ud(i){return typeof i=="function"}function si(i,t,e,r,s,o,n){if(i.length===1&&Cs(i[0]))return[{type:ce.literal,value:i[0].value}];for(var a=[],l=0,d=i;l<d.length;l++){var h=d[l];if(Cs(h)){a.push({type:ce.literal,value:h.value});continue}if(ud(h)){typeof o=="number"&&a.push({type:ce.literal,value:e.getNumberFormat(t).format(o)});continue}var u=h.value;if(!(s&&u in s))throw new Vd(u,n);var f=s[u];if(hd(h)){(!f||typeof f=="string"||typeof f=="number")&&(f=typeof f=="string"||typeof f=="number"?String(f):""),a.push({type:typeof f=="string"?ce.literal:ce.object,value:f});continue}if(Ko(h)){var m=typeof h.style=="string"?r.date[h.style]:cr(h.style)?h.style.parsedOptions:void 0;a.push({type:ce.literal,value:e.getDateTimeFormat(t,m).format(f)});continue}if(en(h)){var m=typeof h.style=="string"?r.time[h.style]:cr(h.style)?h.style.parsedOptions:r.time.medium;a.push({type:ce.literal,value:e.getDateTimeFormat(t,m).format(f)});continue}if(Qo(h)){var m=typeof h.style=="string"?r.number[h.style]:on(h.style)?h.style.parsedOptions:void 0;m&&m.scale&&(f=f*(m.scale||1)),a.push({type:ce.literal,value:e.getNumberFormat(t,m).format(f)});continue}if(sn(h)){var _=h.children,g=h.value,w=s[g];if(!Ud(w))throw new zd(g,"function",n);var y=si(_,t,e,r,s,o),v=w(y.map(function(A){return A.value}));Array.isArray(v)||(v=[v]),a.push.apply(a,v.map(function(A){return{type:typeof A=="string"?ce.literal:ce.object,value:A}}))}if(tn(h)){var C=h.options[f]||h.options.other;if(!C)throw new ks(h.value,f,Object.keys(h.options),n);a.push.apply(a,si(C.value,t,e,r,s));continue}if(rn(h)){var C=h.options["=".concat(f)];if(!C){if(!Intl.PluralRules)throw new wi(`Intl.PluralRules is not available in this environment.
16
+ `):"",this.name="UnsubscriptionError",this.errors=e}});function hr(i,t){if(i){var e=i.indexOf(t);0<=e&&i.splice(e,1)}}var bi=function(){function i(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return i.prototype.unsubscribe=function(){var t,e,r,s,o;if(!this.closed){this.closed=!0;var n=this._parentage;if(n)if(this._parentage=null,Array.isArray(n))try{for(var a=lr(n),l=a.next();!l.done;l=a.next()){var d=l.value;d.remove(this)}}catch(g){t={error:g}}finally{try{l&&!l.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else n.remove(this);var h=this.initialTeardown;if(Ie(h))try{h()}catch(g){o=g instanceof Bi?g.errors:[g]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var f=lr(u),m=f.next();!m.done;m=f.next()){var _=m.value;try{vs(_)}catch(g){o=o!=null?o:[],g instanceof Bi?o=Je(Je([],dr(o)),dr(g.errors)):o.push(g)}}}catch(g){r={error:g}}finally{try{m&&!m.done&&(s=f.return)&&s.call(f)}finally{if(r)throw r.error}}}if(o)throw new Bi(o)}},i.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)vs(t);else{if(t instanceof i){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},i.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},i.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},i.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&hr(e,t)},i.prototype.remove=function(t){var e=this._finalizers;e&&hr(e,t),t instanceof i&&t._removeParent(this)},i.EMPTY=function(){var t=new i;return t.closed=!0,t}(),i}(),Go=bi.EMPTY;function Wo(i){return i instanceof bi||i&&"closed"in i&&Ie(i.remove)&&Ie(i.add)&&Ie(i.unsubscribe)}function vs(i){Ie(i)?i():i.unsubscribe()}var qo={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Tl={setTimeout:function(i,t){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return setTimeout.apply(void 0,Je([i,t],dr(e)))},clearTimeout:function(i){return clearTimeout(i)},delegate:void 0};function Il(i){Tl.setTimeout(function(){throw i})}function ys(){}function ii(i){i()}var Yo=function(i){Oe(t,i);function t(e){var r=i.call(this)||this;return r.isStopped=!1,e?(r.destination=e,Wo(e)&&e.add(r)):r.destination=Ml,r}return t.create=function(e,r,s){return new ur(e,r,s)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,i.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(bi),Ol=Function.prototype.bind;function Ri(i,t){return Ol.call(i,t)}var Nl=function(){function i(t){this.partialObserver=t}return i.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(r){Yt(r)}},i.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(r){Yt(r)}else Yt(t)},i.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){Yt(e)}},i}(),ur=function(i){Oe(t,i);function t(e,r,s){var o=i.call(this)||this,n;if(Ie(e)||!e)n={next:e!=null?e:void 0,error:r!=null?r:void 0,complete:s!=null?s:void 0};else{var a;o&&qo.useDeprecatedNextContext?(a=Object.create(e),a.unsubscribe=function(){return o.unsubscribe()},n={next:e.next&&Ri(e.next,a),error:e.error&&Ri(e.error,a),complete:e.complete&&Ri(e.complete,a)}):n=e}return o.destination=new Nl(n),o}return t}(Yo);function Yt(i){Il(i)}function kl(i){throw i}var Ml={closed:!0,next:ys,error:kl,complete:ys},Ll=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Bl(i){return i}function Rl(i){return i.length===0?Bl:i.length===1?i[0]:function(e){return i.reduce(function(r,s){return s(r)},e)}}var ws=function(){function i(t){t&&(this._subscribe=t)}return i.prototype.lift=function(t){var e=new i;return e.source=this,e.operator=t,e},i.prototype.subscribe=function(t,e,r){var s=this,o=Hl(t)?t:new ur(t,e,r);return ii(function(){var n=s,a=n.operator,l=n.source;o.add(a?a.call(o,l):l?s._subscribe(o):s._trySubscribe(o))}),o},i.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},i.prototype.forEach=function(t,e){var r=this;return e=xs(e),new e(function(s,o){var n=new ur({next:function(a){try{t(a)}catch(l){o(l),n.unsubscribe()}},error:o,complete:s});r.subscribe(n)})},i.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},i.prototype[Ll]=function(){return this},i.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Rl(t)(this)},i.prototype.toPromise=function(t){var e=this;return t=xs(t),new t(function(r,s){var o;e.subscribe(function(n){return o=n},function(n){return s(n)},function(){return r(o)})})},i.create=function(t){return new i(t)},i}();function xs(i){var t;return(t=i!=null?i:qo.Promise)!==null&&t!==void 0?t:Promise}function Dl(i){return i&&Ie(i.next)&&Ie(i.error)&&Ie(i.complete)}function Hl(i){return i&&i instanceof Yo||Dl(i)&&Wo(i)}var Fl=jo(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Zo=function(i){Oe(t,i);function t(){var e=i.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var r=new Ps(this,this);return r.operator=e,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new Fl},t.prototype.next=function(e){var r=this;ii(function(){var s,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var n=lr(r.currentObservers),a=n.next();!a.done;a=n.next()){var l=a.value;l.next(e)}}catch(d){s={error:d}}finally{try{a&&!a.done&&(o=n.return)&&o.call(n)}finally{if(s)throw s.error}}}})},t.prototype.error=function(e){var r=this;ii(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=e;for(var s=r.observers;s.length;)s.shift().error(e)}})},t.prototype.complete=function(){var e=this;ii(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var r=e.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),i.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var r=this,s=this,o=s.hasError,n=s.isStopped,a=s.observers;return o||n?Go:(this.currentObservers=null,a.push(e),new bi(function(){r.currentObservers=null,hr(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var r=this,s=r.hasError,o=r.thrownError,n=r.isStopped;s?e.error(o):n&&e.complete()},t.prototype.asObservable=function(){var e=new ws;return e.source=this,e},t.create=function(e,r){return new Ps(e,r)},t}(ws),Ps=function(i){Oe(t,i);function t(e,r){var s=i.call(this)||this;return s.destination=e,s.source=r,s}return t.prototype.next=function(e){var r,s;(s=(r=this.destination)===null||r===void 0?void 0:r.next)===null||s===void 0||s.call(r,e)},t.prototype.error=function(e){var r,s;(s=(r=this.destination)===null||r===void 0?void 0:r.error)===null||s===void 0||s.call(r,e)},t.prototype.complete=function(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)},t.prototype._subscribe=function(e){var r,s;return(s=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&s!==void 0?s:Go},t}(Zo),Xo={now:function(){return(Xo.delegate||Date).now()},delegate:void 0},zl=function(i){Oe(t,i);function t(e,r,s){e===void 0&&(e=1/0),r===void 0&&(r=1/0),s===void 0&&(s=Xo);var o=i.call(this)||this;return o._bufferSize=e,o._windowTime=r,o._timestampProvider=s,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,e),o._windowTime=Math.max(1,r),o}return t.prototype.next=function(e){var r=this,s=r.isStopped,o=r._buffer,n=r._infiniteTimeWindow,a=r._timestampProvider,l=r._windowTime;s||(o.push(e),!n&&o.push(a.now()+l)),this._trimBuffer(),i.prototype.next.call(this,e)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(e),s=this,o=s._infiniteTimeWindow,n=s._buffer,a=n.slice(),l=0;l<a.length&&!e.closed;l+=o?1:2)e.next(a[l]);return this._checkFinalizedStatuses(e),r},t.prototype._trimBuffer=function(){var e=this,r=e._bufferSize,s=e._timestampProvider,o=e._buffer,n=e._infiniteTimeWindow,a=(n?1:2)*r;if(r<1/0&&a<o.length&&o.splice(0,o.length-a),!n){for(var l=s.now(),d=0,h=1;h<o.length&&o[h]<=l;h+=2)d=h;d&&o.splice(0,d+1)}},t}(Zo);const Es=[],Cs={},Vl=(i,t=0)=>{if(Es.indexOf(i)==-1){const e=new zl(t);Cs[i]=e,Es.push(i)}return Cs[i]},Ge=[];function $l(i,t){return{subscribe:vi(i,t).subscribe}}function vi(i,t=Pe){let e;const r=new Set;function s(a){if(Vo(i,a)&&(i=a,e)){const l=!Ge.length;for(const d of r)d[1](),Ge.push(d,i);if(l){for(let d=0;d<Ge.length;d+=2)Ge[d][0](Ge[d+1]);Ge.length=0}}}function o(a){s(a(i))}function n(a,l=Pe){const d=[a,l];return r.add(d),r.size===1&&(e=t(s,o)||Pe),a(i),()=>{r.delete(d),r.size===0&&e&&(e(),e=null)}}return{set:s,update:o,subscribe:n}}function lt(i,t,e){const r=!Array.isArray(i),s=r?[i]:i;if(!s.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return $l(e,(n,a)=>{let l=!1;const d=[];let h=0,u=Pe;const f=()=>{if(h)return;u();const _=t(r?d[0]:d,n,a);o?n(_):u=Tt(_)?_:Pe},m=s.map((_,g)=>$o(_,w=>{d[g]=w,h&=~(1<<g),l&&f()},()=>{h|=1<<g}));return l=!0,f(),function(){Fe(m),u(),l=!1}})}function Ul(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var jl=function(t){return Gl(t)&&!Wl(t)};function Gl(i){return!!i&&typeof i=="object"}function Wl(i){var t=Object.prototype.toString.call(i);return t==="[object RegExp]"||t==="[object Date]"||Zl(i)}var ql=typeof Symbol=="function"&&Symbol.for,Yl=ql?Symbol.for("react.element"):60103;function Zl(i){return i.$$typeof===Yl}function Xl(i){return Array.isArray(i)?[]:{}}function Ot(i,t){return t.clone!==!1&&t.isMergeableObject(i)?tt(Xl(i),i,t):i}function Jl(i,t,e){return i.concat(t).map(function(r){return Ot(r,e)})}function Kl(i,t){if(!t.customMerge)return tt;var e=t.customMerge(i);return typeof e=="function"?e:tt}function Ql(i){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(i).filter(function(t){return Object.propertyIsEnumerable.call(i,t)}):[]}function As(i){return Object.keys(i).concat(Ql(i))}function Jo(i,t){try{return t in i}catch(e){return!1}}function ed(i,t){return Jo(i,t)&&!(Object.hasOwnProperty.call(i,t)&&Object.propertyIsEnumerable.call(i,t))}function td(i,t,e){var r={};return e.isMergeableObject(i)&&As(i).forEach(function(s){r[s]=Ot(i[s],e)}),As(t).forEach(function(s){ed(i,s)||(Jo(i,s)&&e.isMergeableObject(t[s])?r[s]=Kl(s,e)(i[s],t[s],e):r[s]=Ot(t[s],e))}),r}function tt(i,t,e){e=e||{},e.arrayMerge=e.arrayMerge||Jl,e.isMergeableObject=e.isMergeableObject||jl,e.cloneUnlessOtherwiseSpecified=Ot;var r=Array.isArray(t),s=Array.isArray(i),o=r===s;return o?r?e.arrayMerge(i,t,e):td(i,t,e):Ot(t,e)}tt.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,s){return tt(r,s,e)},{})};var id=tt,rd=id;const sd=Ul(rd);function Di(i,t){var e=t&&t.cache?t.cache:hd,r=t&&t.serializer?t.serializer:dd,s=t&&t.strategy?t.strategy:nd;return s(i,{cache:e,serializer:r})}function od(i){return i==null||typeof i=="number"||typeof i=="boolean"}function Ko(i,t,e,r){var s=od(r)?r:e(r),o=t.get(s);return typeof o=="undefined"&&(o=i.call(this,r),t.set(s,o)),o}function Qo(i,t,e){var r=Array.prototype.slice.call(arguments,3),s=e(r),o=t.get(s);return typeof o=="undefined"&&(o=i.apply(this,r),t.set(s,o)),o}function Fr(i,t,e,r,s){return e.bind(t,i,r,s)}function nd(i,t){var e=i.length===1?Ko:Qo;return Fr(i,this,e,t.cache.create(),t.serializer)}function ad(i,t){return Fr(i,this,Qo,t.cache.create(),t.serializer)}function ld(i,t){return Fr(i,this,Ko,t.cache.create(),t.serializer)}var dd=function(){return JSON.stringify(arguments)};function zr(){this.cache=Object.create(null)}zr.prototype.get=function(i){return this.cache[i]};zr.prototype.set=function(i,t){this.cache[i]=t};var hd={create:function(){return new zr}},Hi={variadic:ad,monadic:ld},T;(function(i){i[i.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",i[i.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",i[i.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",i[i.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",i[i.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",i[i.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",i[i.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",i[i.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",i[i.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",i[i.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",i[i.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",i[i.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",i[i.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",i[i.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",i[i.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",i[i.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",i[i.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",i[i.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",i[i.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",i[i.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",i[i.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",i[i.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",i[i.INVALID_TAG=23]="INVALID_TAG",i[i.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",i[i.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",i[i.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(T||(T={}));var j;(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"})(j||(j={}));var it;(function(i){i[i.number=0]="number",i[i.dateTime=1]="dateTime"})(it||(it={}));function Ss(i){return i.type===j.literal}function ud(i){return i.type===j.argument}function en(i){return i.type===j.number}function tn(i){return i.type===j.date}function rn(i){return i.type===j.time}function sn(i){return i.type===j.select}function on(i){return i.type===j.plural}function cd(i){return i.type===j.pound}function nn(i){return i.type===j.tag}function an(i){return!!(i&&typeof i=="object"&&i.type===it.number)}function cr(i){return!!(i&&typeof i=="object"&&i.type===it.dateTime)}var ln=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,fd=/(?:[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 pd(i){var t={};return i.replace(fd,function(e){var r=e.length;switch(e[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.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":t.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":t.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":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.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":t.minute=["numeric","2-digit"][r-1];break;case"s":t.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":t.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""}),t}var md=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function _d(i){if(i.length===0)throw new Error("Number skeleton cannot be empty");for(var t=i.split(md).filter(function(f){return f.length>0}),e=[],r=0,s=t;r<s.length;r++){var o=s[r],n=o.split("/");if(n.length===0)throw new Error("Invalid number skeleton");for(var a=n[0],l=n.slice(1),d=0,h=l;d<h.length;d++){var u=h[d];if(u.length===0)throw new Error("Invalid number skeleton")}e.push({stem:a,options:l})}return e}function gd(i){return i.replace(/^(.*?)-/,"")}var Ts=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,dn=/^(@+)?(\+|#+)?[rs]?$/g,bd=/(\*)(0+)|(#+)(0+)|(0+)/g,hn=/^(0+)$/;function Is(i){var t={};return i[i.length-1]==="r"?t.roundingPriority="morePrecision":i[i.length-1]==="s"&&(t.roundingPriority="lessPrecision"),i.replace(dn,function(e,r,s){return typeof s!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):s==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof s=="string"?s.length:0)),""}),t}function un(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 vd(i){var t;if(i[0]==="E"&&i[1]==="E"?(t={notation:"engineering"},i=i.slice(2)):i[0]==="E"&&(t={notation:"scientific"},i=i.slice(1)),t){var e=i.slice(0,2);if(e==="+!"?(t.signDisplay="always",i=i.slice(2)):e==="+?"&&(t.signDisplay="exceptZero",i=i.slice(2)),!hn.test(i))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=i.length}return t}function Os(i){var t={},e=un(i);return e||t}function yd(i){for(var t={},e=0,r=i;e<r.length;e++){var s=r[e];switch(s.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=s.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=gd(s.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=L(L(L({},t),{notation:"scientific"}),s.options.reduce(function(l,d){return L(L({},l),Os(d))},{}));continue;case"engineering":t=L(L(L({},t),{notation:"engineering"}),s.options.reduce(function(l,d){return L(L({},l),Os(d))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(s.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(s.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");s.options[0].replace(bd,function(l,d,h,u,f,m){if(d)t.minimumIntegerDigits=h.length;else{if(u&&f)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(hn.test(s.stem)){t.minimumIntegerDigits=s.stem.length;continue}if(Ts.test(s.stem)){if(s.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");s.stem.replace(Ts,function(l,d,h,u,f,m){return h==="*"?t.minimumFractionDigits=d.length:u&&u[0]==="#"?t.maximumFractionDigits=u.length:f&&m?(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length+m.length):(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length),""});var o=s.options[0];o==="w"?t=L(L({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=L(L({},t),Is(o)));continue}if(dn.test(s.stem)){t=L(L({},t),Is(s.stem));continue}var n=un(s.stem);n&&(t=L(L({},t),n));var a=vd(s.stem);a&&(t=L(L({},t),a))}return t}var Zt={"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 wd(i,t){for(var e="",r=0;r<i.length;r++){var s=i.charAt(r);if(s==="j"){for(var o=0;r+1<i.length&&i.charAt(r+1)===s;)o++,r++;var n=1+(o&1),a=o<2?1:3+(o>>1),l="a",d=xd(t);for((d=="H"||d=="k")&&(a=0);a-- >0;)e+=l;for(;n-- >0;)e=d+e}else s==="J"?e+="H":e+=s}return e}function xd(i){var t=i.hourCycle;if(t===void 0&&i.hourCycles&&i.hourCycles.length&&(t=i.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var e=i.language,r;e!=="root"&&(r=i.maximize().region);var s=Zt[r||""]||Zt[e||""]||Zt["".concat(e,"-001")]||Zt["001"];return s[0]}var Fi,Pd=new RegExp("^".concat(ln.source,"*")),Ed=new RegExp("".concat(ln.source,"*$"));function O(i,t){return{start:i,end:t}}var Cd=!!String.prototype.startsWith&&"_a".startsWith("a",1),Ad=!!String.fromCodePoint,Sd=!!Object.fromEntries,Td=!!String.prototype.codePointAt,Id=!!String.prototype.trimStart,Od=!!String.prototype.trimEnd,Nd=!!Number.isSafeInteger,kd=Nd?Number.isSafeInteger:function(i){return typeof i=="number"&&isFinite(i)&&Math.floor(i)===i&&Math.abs(i)<=9007199254740991},fr=!0;try{var Md=fn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");fr=((Fi=Md.exec("a"))===null||Fi===void 0?void 0:Fi[0])==="a"}catch(i){fr=!1}var Ns=Cd?function(t,e,r){return t.startsWith(e,r)}:function(t,e,r){return t.slice(r,r+e.length)===e},pr=Ad?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r="",s=t.length,o=0,n;s>o;){if(n=t[o++],n>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(((n-=65536)>>10)+55296,n%1024+56320)}return r},ks=Sd?Object.fromEntries:function(t){for(var e={},r=0,s=t;r<s.length;r++){var o=s[r],n=o[0],a=o[1];e[n]=a}return e},cn=Td?function(t,e){return t.codePointAt(e)}:function(t,e){var r=t.length;if(!(e<0||e>=r)){var s=t.charCodeAt(e),o;return s<55296||s>56319||e+1===r||(o=t.charCodeAt(e+1))<56320||o>57343?s:(s-55296<<10)+(o-56320)+65536}},Ld=Id?function(t){return t.trimStart()}:function(t){return t.replace(Pd,"")},Bd=Od?function(t){return t.trimEnd()}:function(t){return t.replace(Ed,"")};function fn(i,t){return new RegExp(i,t)}var mr;if(fr){var Ms=fn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");mr=function(t,e){var r;Ms.lastIndex=e;var s=Ms.exec(t);return(r=s[1])!==null&&r!==void 0?r:""}}else mr=function(t,e){for(var r=[];;){var s=cn(t,e);if(s===void 0||pn(s)||Fd(s))break;r.push(s),e+=s>=65536?2:1}return pr.apply(void 0,r)};var Rd=function(){function i(t,e){e===void 0&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.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(t,e,r){for(var s=[];!this.isEOF();){var o=this.char();if(o===123){var n=this.parseArgument(t,r);if(n.err)return n;s.push(n.val)}else{if(o===125&&t>0)break;if(o===35&&(e==="plural"||e==="selectordinal")){var a=this.clonePosition();this.bump(),s.push({type:j.pound,location:O(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(T.UNMATCHED_CLOSING_TAG,O(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&_r(this.peek()||0)){var n=this.parseTag(t,e);if(n.err)return n;s.push(n.val)}else{var n=this.parseLiteral(t,e);if(n.err)return n;s.push(n.val)}}}return{val:s,err:null}},i.prototype.parseTag=function(t,e){var r=this.clonePosition();this.bump();var s=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:j.literal,value:"<".concat(s,"/>"),location:O(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,e,!0);if(o.err)return o;var n=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!_r(this.char()))return this.error(T.INVALID_TAG,O(a,this.clonePosition()));var l=this.clonePosition(),d=this.parseTagName();return s!==d?this.error(T.UNMATCHED_CLOSING_TAG,O(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:j.tag,value:s,children:n,location:O(r,this.clonePosition())},err:null}:this.error(T.INVALID_TAG,O(a,this.clonePosition())))}else return this.error(T.UNCLOSED_TAG,O(r,this.clonePosition()))}else return this.error(T.INVALID_TAG,O(r,this.clonePosition()))},i.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Hd(this.char());)this.bump();return this.message.slice(t,this.offset())},i.prototype.parseLiteral=function(t,e){for(var r=this.clonePosition(),s="";;){var o=this.tryParseQuote(e);if(o){s+=o;continue}var n=this.tryParseUnquoted(t,e);if(n){s+=n;continue}var a=this.tryParseLeftAngleBracket();if(a){s+=a;continue}break}var l=O(r,this.clonePosition());return{val:{type:j.literal,value:s,location:l},err:null}},i.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Dd(this.peek()||0))?(this.bump(),"<"):null},i.prototype.tryParseQuote=function(t){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(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)e.push(39),this.bump();else{this.bump();break}else e.push(r);this.bump()}return pr.apply(void 0,e)},i.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(e==="plural"||e==="selectordinal")||r===125&&t>0?null:(this.bump(),pr(r))},i.prototype.parseArgument=function(t,e){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,O(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(T.EMPTY_ARGUMENT,O(r,this.clonePosition()));var s=this.parseIdentifierIfPossible().value;if(!s)return this.error(T.MALFORMED_ARGUMENT,O(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,O(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:j.argument,value:s,location:O(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,O(r,this.clonePosition())):this.parseArgumentOptions(t,e,s,r);default:return this.error(T.MALFORMED_ARGUMENT,O(r,this.clonePosition()))}},i.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=mr(this.message,e),s=e+r.length;this.bumpTo(s);var o=this.clonePosition(),n=O(t,o);return{value:r,location:n}},i.prototype.parseArgumentOptions=function(t,e,r,s){var o,n=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(T.EXPECT_ARGUMENT_TYPE,O(n,l));case"number":case"date":case"time":{this.bumpSpace();var d=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),u=this.parseSimpleArgStyleIfPossible();if(u.err)return u;var f=Bd(u.val);if(f.length===0)return this.error(T.EXPECT_ARGUMENT_STYLE,O(this.clonePosition(),this.clonePosition()));var m=O(h,this.clonePosition());d={style:f,styleLocation:m}}var _=this.tryParseArgumentClose(s);if(_.err)return _;var g=O(s,this.clonePosition());if(d&&Ns(d==null?void 0:d.style,"::",0)){var w=Ld(d.style.slice(2));if(a==="number"){var u=this.parseNumberSkeletonFromString(w,d.styleLocation);return u.err?u:{val:{type:j.number,value:r,location:g,style:u.val},err:null}}else{if(w.length===0)return this.error(T.EXPECT_DATE_TIME_SKELETON,g);var y=w;this.locale&&(y=wd(w,this.locale));var f={type:it.dateTime,pattern:y,location:d.styleLocation,parsedOptions:this.shouldParseSkeletons?pd(y):{}},v=a==="date"?j.date:j.time;return{val:{type:v,value:r,location:g,style:f},err:null}}}return{val:{type:a==="number"?j.number:a==="date"?j.date:j.time,value:r,location:g,style:(o=d==null?void 0:d.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var C=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(T.EXPECT_SELECT_ARGUMENT_OPTIONS,O(C,L({},C)));this.bumpSpace();var E=this.parseIdentifierIfPossible(),A=0;if(a!=="select"&&E.value==="offset"){if(!this.bumpIf(":"))return this.error(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,O(this.clonePosition(),this.clonePosition()));this.bumpSpace();var u=this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,T.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(u.err)return u;this.bumpSpace(),E=this.parseIdentifierIfPossible(),A=u.val}var $=this.tryParsePluralOrSelectOptions(t,a,e,E);if($.err)return $;var _=this.tryParseArgumentClose(s);if(_.err)return _;var R=O(s,this.clonePosition());return a==="select"?{val:{type:j.select,value:r,options:ks($.val),location:R},err:null}:{val:{type:j.plural,value:r,options:ks($.val),offset:A,pluralType:a==="plural"?"cardinal":"ordinal",location:R},err:null}}default:return this.error(T.INVALID_ARGUMENT_TYPE,O(n,l))}},i.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,O(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},i.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var s=this.clonePosition();if(!this.bumpUntil("'"))return this.error(T.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,O(s,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(e.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(e.offset,this.offset()),err:null}},i.prototype.parseNumberSkeletonFromString=function(t,e){var r=[];try{r=_d(t)}catch(s){return this.error(T.INVALID_NUMBER_SKELETON,e)}return{val:{type:it.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?yd(r):{}},err:null}},i.prototype.tryParsePluralOrSelectOptions=function(t,e,r,s){for(var o,n=!1,a=[],l=new Set,d=s.value,h=s.location;;){if(d.length===0){var u=this.clonePosition();if(e!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_SELECTOR,T.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;h=O(u,this.clonePosition()),d=this.message.slice(u.offset,this.offset())}else break}if(l.has(d))return this.error(e==="select"?T.DUPLICATE_SELECT_ARGUMENT_SELECTOR:T.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);d==="other"&&(n=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(e==="select"?T.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:T.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,O(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(t+1,e,r);if(_.err)return _;var g=this.tryParseArgumentClose(m);if(g.err)return g;a.push([d,{value:_.val,location:O(m,this.clonePosition())}]),l.add(d),this.bumpSpace(),o=this.parseIdentifierIfPossible(),d=o.value,h=o.location}return a.length===0?this.error(e==="select"?T.EXPECT_SELECT_ARGUMENT_SELECTOR:T.EXPECT_PLURAL_ARGUMENT_SELECTOR,O(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(T.MISSING_OTHER_CLAUSE,O(this.clonePosition(),this.clonePosition())):{val:a,err:null}},i.prototype.tryParseDecimalInteger=function(t,e){var r=1,s=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,n=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,n=n*10+(a-48),this.bump();else break}var l=O(s,this.clonePosition());return o?(n*=r,kd(n)?{val:n,err:null}:this.error(e,l)):this.error(t,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 t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=cn(this.message,t);if(e===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},i.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},i.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},i.prototype.bumpIf=function(t){if(Ns(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},i.prototype.bumpUntil=function(t){var e=this.offset(),r=this.message.indexOf(t,e);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},i.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(e>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},i.prototype.bumpSpace=function(){for(;!this.isEOF()&&pn(this.char());)this.bump()},i.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),r=this.message.charCodeAt(e+(t>=65536?2:1));return r!=null?r:null},i}();function _r(i){return i>=97&&i<=122||i>=65&&i<=90}function Dd(i){return _r(i)||i===47}function Hd(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 pn(i){return i>=9&&i<=13||i===32||i===133||i>=8206&&i<=8207||i===8232||i===8233}function Fd(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 gr(i){i.forEach(function(t){if(delete t.location,sn(t)||on(t))for(var e in t.options)delete t.options[e].location,gr(t.options[e].value);else en(t)&&an(t.style)||(tn(t)||rn(t))&&cr(t.style)?delete t.style.location:nn(t)&&gr(t.children)})}function zd(i,t){t===void 0&&(t={}),t=L({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var e=new Rd(i,t).parse();if(e.err){var r=SyntaxError(T[e.err.kind]);throw r.location=e.err.location,r.originalMessage=e.err.message,r}return t!=null&&t.captureLocation||gr(e.val),e.val}var rt;(function(i){i.MISSING_VALUE="MISSING_VALUE",i.INVALID_VALUE="INVALID_VALUE",i.MISSING_INTL_API="MISSING_INTL_API"})(rt||(rt={}));var yi=function(i){Oe(t,i);function t(e,r,s){var o=i.call(this,e)||this;return o.code=r,o.originalMessage=s,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Ls=function(i){Oe(t,i);function t(e,r,s,o){return i.call(this,'Invalid values for "'.concat(e,'": "').concat(r,'". Options are "').concat(Object.keys(s).join('", "'),'"'),rt.INVALID_VALUE,o)||this}return t}(yi),Vd=function(i){Oe(t,i);function t(e,r,s){return i.call(this,'Value for "'.concat(e,'" must be of type ').concat(r),rt.INVALID_VALUE,s)||this}return t}(yi),$d=function(i){Oe(t,i);function t(e,r){return i.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(r,'"'),rt.MISSING_VALUE,r)||this}return t}(yi),ce;(function(i){i[i.literal=0]="literal",i[i.object=1]="object"})(ce||(ce={}));function Ud(i){return i.length<2?i:i.reduce(function(t,e){var r=t[t.length-1];return!r||r.type!==ce.literal||e.type!==ce.literal?t.push(e):r.value+=e.value,t},[])}function jd(i){return typeof i=="function"}function ri(i,t,e,r,s,o,n){if(i.length===1&&Ss(i[0]))return[{type:ce.literal,value:i[0].value}];for(var a=[],l=0,d=i;l<d.length;l++){var h=d[l];if(Ss(h)){a.push({type:ce.literal,value:h.value});continue}if(cd(h)){typeof o=="number"&&a.push({type:ce.literal,value:e.getNumberFormat(t).format(o)});continue}var u=h.value;if(!(s&&u in s))throw new $d(u,n);var f=s[u];if(ud(h)){(!f||typeof f=="string"||typeof f=="number")&&(f=typeof f=="string"||typeof f=="number"?String(f):""),a.push({type:typeof f=="string"?ce.literal:ce.object,value:f});continue}if(tn(h)){var m=typeof h.style=="string"?r.date[h.style]:cr(h.style)?h.style.parsedOptions:void 0;a.push({type:ce.literal,value:e.getDateTimeFormat(t,m).format(f)});continue}if(rn(h)){var m=typeof h.style=="string"?r.time[h.style]:cr(h.style)?h.style.parsedOptions:r.time.medium;a.push({type:ce.literal,value:e.getDateTimeFormat(t,m).format(f)});continue}if(en(h)){var m=typeof h.style=="string"?r.number[h.style]:an(h.style)?h.style.parsedOptions:void 0;m&&m.scale&&(f=f*(m.scale||1)),a.push({type:ce.literal,value:e.getNumberFormat(t,m).format(f)});continue}if(nn(h)){var _=h.children,g=h.value,w=s[g];if(!jd(w))throw new Vd(g,"function",n);var y=ri(_,t,e,r,s,o),v=w(y.map(function(A){return A.value}));Array.isArray(v)||(v=[v]),a.push.apply(a,v.map(function(A){return{type:typeof A=="string"?ce.literal:ce.object,value:A}}))}if(sn(h)){var C=h.options[f]||h.options.other;if(!C)throw new Ls(h.value,f,Object.keys(h.options),n);a.push.apply(a,ri(C.value,t,e,r,s));continue}if(on(h)){var C=h.options["=".concat(f)];if(!C){if(!Intl.PluralRules)throw new yi(`Intl.PluralRules is not available in this environment.
4
17
  Try polyfilling it using "@formatjs/intl-pluralrules"
5
- `,st.MISSING_INTL_API,n);var E=e.getPluralRules(t,{type:h.pluralType}).select(f-(h.offset||0));C=h.options[E]||h.options.other}if(!C)throw new ks(h.value,f,Object.keys(h.options),n);a.push.apply(a,si(C.value,t,e,r,s,f-(h.offset||0)));continue}}return $d(a)}function jd(i,t){return t?M(M(M({},i||{}),t||{}),Object.keys(i).reduce(function(e,r){return e[r]=M(M({},i[r]),t[r]||{}),e},{})):i}function Gd(i,t){return t?Object.keys(i).reduce(function(e,r){return e[r]=jd(i[r],t[r]),e},M({},i)):i}function zi(i){return{create:function(){return{get:function(t){return i[t]},set:function(t,e){i[t]=e}}}}}function Wd(i){return i===void 0&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Ri(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,Qe([void 0],e,!1)))},{cache:zi(i.number),strategy:Fi.variadic}),getDateTimeFormat:Ri(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,Qe([void 0],e,!1)))},{cache:zi(i.dateTime),strategy:Fi.variadic}),getPluralRules:Ri(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,Qe([void 0],e,!1)))},{cache:zi(i.pluralRules),strategy:Fi.variadic})}}var qd=function(){function i(t,e,r,s){e===void 0&&(e=i.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var d=o.formatToParts(l);if(d.length===1)return d[0].value;var h=d.reduce(function(u,f){return!u.length||f.type!==ce.literal||typeof u[u.length-1]!="string"?u.push(f.value):u[u.length-1]+=f.value,u},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(l){return si(o.ast,o.locales,o.formatters,o.formats,l,void 0,o.message)},this.resolvedOptions=function(){var l;return{locale:((l=o.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=e,this.resolvedLocale=i.resolveLocale(e),typeof t=="string"){if(this.message=t,!i.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var n=s||{};n.formatters;var a=Cl(n,["formatters"]);this.ast=i.__parse(t,M(M({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Gd(i.formats,r),this.formatters=s&&s.formatters||Wd(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(t){if(typeof Intl.Locale!="undefined"){var e=Intl.NumberFormat.supportedLocalesOf(t);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},i.__parse=Dd,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 Yd(i,t){if(t==null)return;if(t in i)return i[t];const e=t.split(".");let r=i;for(let s=0;s<e.length;s++)if(typeof r=="object"){if(s>0){const o=e.slice(s,e.length).join(".");if(o in r){r=r[o];break}}r=r[e[s]]}else r=void 0;return r}const Le={},Xd=(i,t,e)=>e&&(t in Le||(Le[t]={}),i in Le[t]||(Le[t][i]=e),e),fn=(i,t)=>{if(t==null)return;if(t in Le&&i in Le[t])return Le[t][i];const e=xi(t);for(let r=0;r<e.length;r++){const s=e[r],o=Jd(s,i);if(o)return Xd(i,t,o)}};let Dr;const ht=yi({});function Zd(i){return Dr[i]||null}function pn(i){return i in Dr}function Jd(i,t){if(!pn(i))return null;const e=Zd(i);return Yd(e,t)}function Qd(i){if(i==null)return;const t=xi(i);for(let e=0;e<t.length;e++){const r=t[e];if(pn(r))return r}}function mn(i,...t){delete Le[i],ht.update(e=>(e[i]=id.all([e[i]||{},...t]),e))}dt([ht],([i])=>Object.keys(i));ht.subscribe(i=>Dr=i);const oi={};function Kd(i,t){oi[i].delete(t),oi[i].size===0&&delete oi[i]}function _n(i){return oi[i]}function eh(i){return xi(i).map(t=>{const e=_n(t);return[t,e?[...e]:[]]}).filter(([,t])=>t.length>0)}function br(i){return i==null?!1:xi(i).some(t=>{var e;return(e=_n(t))==null?void 0:e.size})}function th(i,t){return Promise.all(t.map(r=>(Kd(i,r),r().then(s=>s.default||s)))).then(r=>mn(i,...r))}const gt={};function gn(i){if(!br(i))return i in gt?gt[i]:Promise.resolve();const t=eh(i);return gt[i]=Promise.all(t.map(([e,r])=>th(e,r))).then(()=>{if(br(i))return gn(i);delete gt[i]}),gt[i]}const ih={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"}}},rh={fallbackLocale:null,loadingDelay:200,formats:ih,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},sh=rh;function ot(){return sh}const Vi=yi(!1);var oh=Object.defineProperty,nh=Object.defineProperties,ah=Object.getOwnPropertyDescriptors,Ls=Object.getOwnPropertySymbols,lh=Object.prototype.hasOwnProperty,dh=Object.prototype.propertyIsEnumerable,Ms=(i,t,e)=>t in i?oh(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,hh=(i,t)=>{for(var e in t||(t={}))lh.call(t,e)&&Ms(i,e,t[e]);if(Ls)for(var e of Ls(t))dh.call(t,e)&&Ms(i,e,t[e]);return i},uh=(i,t)=>nh(i,ah(t));let vr;const di=yi(null);function Bs(i){return i.split("-").map((t,e,r)=>r.slice(0,e+1).join("-")).reverse()}function xi(i,t=ot().fallbackLocale){const e=Bs(i);return t?[...new Set([...e,...Bs(t)])]:e}function Ve(){return vr!=null?vr:void 0}di.subscribe(i=>{vr=i!=null?i:void 0,typeof window!="undefined"&&i!=null&&document.documentElement.setAttribute("lang",i)});const ch=i=>{if(i&&Qd(i)&&br(i)){const{loadingDelay:t}=ot();let e;return typeof window!="undefined"&&Ve()!=null&&t?e=window.setTimeout(()=>Vi.set(!0),t):Vi.set(!0),gn(i).then(()=>{di.set(i)}).finally(()=>{clearTimeout(e),Vi.set(!1)})}return di.set(i)},Be=uh(hh({},di),{set:ch}),Pi=i=>{const t=Object.create(null);return r=>{const s=JSON.stringify(r);return s in t?t[s]:t[s]=i(r)}};var fh=Object.defineProperty,hi=Object.getOwnPropertySymbols,bn=Object.prototype.hasOwnProperty,vn=Object.prototype.propertyIsEnumerable,Hs=(i,t,e)=>t in i?fh(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,zr=(i,t)=>{for(var e in t||(t={}))bn.call(t,e)&&Hs(i,e,t[e]);if(hi)for(var e of hi(t))vn.call(t,e)&&Hs(i,e,t[e]);return i},ut=(i,t)=>{var e={};for(var r in i)bn.call(i,r)&&t.indexOf(r)<0&&(e[r]=i[r]);if(i!=null&&hi)for(var r of hi(i))t.indexOf(r)<0&&vn.call(i,r)&&(e[r]=i[r]);return e};const kt=(i,t)=>{const{formats:e}=ot();if(i in e&&t in e[i])return e[i][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${i} format.`)},ph=Pi(i=>{var t=i,{locale:e,format:r}=t,s=ut(t,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(s=kt("number",r)),new Intl.NumberFormat(e,s)}),mh=Pi(i=>{var t=i,{locale:e,format:r}=t,s=ut(t,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?s=kt("date",r):Object.keys(s).length===0&&(s=kt("date","short")),new Intl.DateTimeFormat(e,s)}),_h=Pi(i=>{var t=i,{locale:e,format:r}=t,s=ut(t,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?s=kt("time",r):Object.keys(s).length===0&&(s=kt("time","short")),new Intl.DateTimeFormat(e,s)}),gh=(i={})=>{var t=i,{locale:e=Ve()}=t,r=ut(t,["locale"]);return ph(zr({locale:e},r))},bh=(i={})=>{var t=i,{locale:e=Ve()}=t,r=ut(t,["locale"]);return mh(zr({locale:e},r))},vh=(i={})=>{var t=i,{locale:e=Ve()}=t,r=ut(t,["locale"]);return _h(zr({locale:e},r))},yh=Pi((i,t=Ve())=>new qd(i,t,ot().formats,{ignoreTag:ot().ignoreTag})),wh=(i,t={})=>{var e,r,s,o;let n=t;typeof i=="object"&&(n=i,i=n.id);const{values:a,locale:l=Ve(),default:d}=n;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=fn(i,l);if(!h)h=(o=(s=(r=(e=ot()).handleMissingMessage)==null?void 0:r.call(e,{locale:l,id:i,defaultValue:d}))!=null?s:d)!=null?o:i;else if(typeof h!="string")return console.warn(`[svelte-i18n] Message with id "${i}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h;if(!a)return h;let u=h;try{u=yh(h,l).format(a)}catch(f){f instanceof Error&&console.warn(`[svelte-i18n] Message "${i}" has syntax error:`,f.message)}return u},xh=(i,t)=>vh(t).format(i),Ph=(i,t)=>bh(t).format(i),Eh=(i,t)=>gh(t).format(i),Ch=(i,t=Ve())=>fn(i,t),Ah=dt([Be,ht],()=>wh);dt([Be],()=>xh);dt([Be],()=>Ph);dt([Be],()=>Eh);dt([Be,ht],()=>Ch);window.emWidgets={topic:Dl};const Sh=i=>!!(i.toLowerCase().match(/android/i)||i.toLowerCase().match(/blackberry|bb/i)||i.toLowerCase().match(/iphone|ipad|ipod/i)||i.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));function Th({withLocale:i,translations:t}){Be.subscribe(e=>{e==null&&(ht.set(t),Be.set(i))})}function Rs(i,t){mn(i,t)}function Ih(i){Be.set(i)}function Oh(i,t){if(i){const e=document.createElement("style");e.innerHTML=t,i.appendChild(e)}}function Nh(i,t){const e=new URL(t);fetch(e.href).then(r=>r.text()).then(r=>{const s=document.createElement("style");s.innerHTML=r,i&&i.appendChild(s)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function kh(i,t,e){if(window.emMessageBus){const r=document.createElement("style");window.emMessageBus.subscribe(t,s=>{r.innerHTML=s,i&&i.appendChild(r)})}}const Fs={en:{day:"Day",month:"Month",year:"Year",goToLogin:"Back to Sign In",forgotPasswordTitle:"Forgot Password",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email should contain '@' and a 2-3 letter long domain.",forgotPasswordEmailError:"This email does not exist.",forgotPasswordReset:"Reset Password",forgotPasswordSuccess:"Success!",forgotPasswordSuccessDescription:"We sent an email with the instructions to reset your password.",forgotNewPasswordTitle:"New Password",forgotNewPasswordPassword:"Password",forgotNewPasswordPasswordError:"The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",forgotNewPasswordConfirmPassword:"Confirm Password",forgotNewPasswordConfirmPasswordError:"Confirm password must match the new password and must follow the same rules.",forgotNewPasswordButton:"Change Password",forgotChangePasswordTitle:"Success!",forgotChangePasswordDescription:"Your password has been changed successfully.",forgotChangePasswordLogin:"Click here to Login",simplePasswordError:"Password must be 8-20 characters long.",dobFormatError:"The format for the date of birth isn't done according with the widget documentation."},hr:{day:"Dan",month:"Mjesec",year:"Godina",goToLogin:"Natrag na prijavu",forgotPasswordTitle:"Zaboravljena lozinka",resetPasswordSubtitle:"Molimo resetirajte svoju lozinku.",hasToSetPassTitle:"Resetiraj Lozinku",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email treba sadržavati '@' i domenu od 2-3 slova.",forgotPasswordEmailError:"Ovaj email ne postoji.",forgotPasswordReset:"Resetiranje lozinke",forgotPasswordSuccess:"Uspjelo!",forgotPasswordSuccessDescription:"Poslali smo e-mail s uputama za ponovno postavljanje lozinke.",forgotNewPasswordTitle:"Nova Lozinka",forgotNewPasswordPassword:"Lozinka",forgotNewPasswordPasswordError:"Lozinka bi trebala imati 8-20 znakova",forgotNewPasswordConfirmPassword:"Potvrdi lozinku",forgotNewPasswordConfirmPasswordError:"Lozinka za potvrdu mora odgovarati novoj lozinci i mora slijediti ista pravila.",forgotNewPasswordButton:"Promjena lozinke",forgotChangePasswordTitle:"Uspjelo!",forgotChangePasswordDescription:"Vaša lozinka je uspješno promijenjena.",forgotChangePasswordLogin:"Kliknite ovdje za prijavu",simplePasswordError:"Lozinka mora imati 8-20 znakova.","forgotPasswordE-mail":"E-mail","forgotPasswordE-mailInputError":"E-mail treba sadržavati '@' i domenu od 2-3 slova.","forgotPasswordE-mailError":"Ovaj E-mail ne postoji.",dobFormatError:"Format datuma rođenja nije u skladu s dokumentacijom widgeta."},"zh-hk":{day:"天",month:"月",year:"年",goToLogin:"返回登錄",forgotPasswordTitle:"忘記密碼",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"電子郵件",forgotPasswordEmailInputError:"电子邮件应包含“@”和 2-3 个字母长的域。",forgotPasswordEmailError:"此電子郵件不存在。",forgotPasswordReset:"重設密碼",forgotPasswordSuccess:"成功!",forgotPasswordSuccessDescription:"我們發送了一封電子郵件,其中包含重置密碼的說明。",forgotNewPasswordTitle:"新密碼",forgotNewPasswordPassword:"密碼",forgotNewPasswordPasswordError:"密碼長度為 8-20 個字符,至少包含 1 個大寫字母、1 個數字和 1 個特殊字符。",forgotNewPasswordConfirmPassword:"確認密碼",forgotNewPasswordConfirmPasswordError:"確認密碼必須與新密碼匹配,並且必須遵循相同的規則。",forgotNewPasswordButton:"更改密碼",forgotChangePasswordTitle:"成功!",forgotChangePasswordDescription:"你已經成功更改密碼。",forgotChangePasswordLogin:"點擊此處登錄",simplePasswordError:"密码长度必须为 8-20 个字符。",dobFormatError:"出生日期的格式不符合小部件文件的規定。"},fr:{day:"Jour",month:"Mois",year:"Année",goToLogin:"Retour à la page d'accueil",forgotPasswordTitle:"Mot de passe oublié",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"L'e-mail doit contenir '@' et un domaine de 2-3 lettres.",forgotPasswordEmailError:"Cette adresse mail n'existe pas",forgotPasswordReset:"Réinitialiser le mot de passe",forgotPasswordSuccess:"Succès!",forgotPasswordSuccessDescription:"Nous vous avons envoyé un e-mail contenant les instructions pour reinitialiser votre mot de passe.",forgotNewPasswordTitle:"Nouveau mot de passe",forgotNewPasswordPassword:"Mot de passe",forgotNewPasswordPasswordError:"Le mot de passe doit comporter de 8 à 20 charactères et contenir au moins une lettre majuscule, un chiffre et un caractère spécial",forgotNewPasswordConfirmPassword:"Confirmer le mot de passe",forgotNewPasswordConfirmPasswordError:"Le mot de passe de confirmation doit correspondre au nouveau mot de passe et doit suivre les mêmes règles.",forgotNewPasswordButton:"Modifier le mot de passe",forgotChangePasswordTitle:"Succès!",forgotChangePasswordDescription:"Votre mot de passe a été modifié avec succès.",forgotChangePasswordLogin:"Cliquez ici pour vous connecter",simplePasswordError:"Le mot de passe doit comporter entre 8 et 20 caractères.",dobFormatError:"Le format de la date de naissance n'est pas conforme à la documentation du widget."},tr:{day:"Gün",month:"Ay",year:"Yıl",goToLogin:"Oturum Açmaya Geri Dön",forgotPasswordTitle:"Parolanızı mı unuttunuz",resetPasswordSubtitle:"Lütfen şifrenizi sıfırlayın.",hasToSetPassTitle:"Şifreyi yenile",forgotPasswordEmail:"E-posta",forgotPasswordEmailInputError:"E-posta '@' ve 2-3 harf uzunluğunda bir alan adı içermelidir.",forgotPasswordEmailError:"Bu e-posta mevcut değil.",forgotPasswordReset:"Şifreyi yenile",forgotPasswordSuccess:"Başarı!",forgotPasswordSuccessDescription:"Şifrenizi sıfırlama talimatlarını içeren bir e-posta gönderdik.",forgotNewPasswordTitle:"Yeni Şifre",forgotNewPasswordPassword:"Şifre",forgotNewPasswordPasswordError:"Şifre 8-20 karakter uzunluğunda olmalı ve en az 1 büyük harf, 1 rakam ve 1 özel karakter içermelidir.",forgotNewPasswordConfirmPassword:"Şifreyi Onayla",forgotNewPasswordConfirmPasswordError:"Parolayı onayla, yeni parolayla eşleşmeli ve aynı kurallara uymalıdır.",forgotNewPasswordButton:"Şifre değiştir",forgotChangePasswordTitle:"Başarı!",forgotChangePasswordDescription:"Şifreniz başarıyla değiştirildi.",forgotChangePasswordLogin:"Giriş yapmak için buraya tıklayın",simplePasswordError:"Şifre 8-20 karakter uzunluğunda olmalı ve en az 1 büyük harf, 1 rakam ve 1 özel karakter içermelidir.",dobFormatError:"Doğum tarihi formatı widget dokümantasyonuna uygun yapılmamış."},ro:{day:"Zi",month:"Luna",year:"An",goToLogin:"Inapoi la autentificare",forgotPasswordTitle:"Parolă Uitată",resetPasswordSubtitle:"Vă rugăm sa resetați parola.",hasToSetPassTitle:"Resetează parola",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email-ul ar trebui să conțină '@' și 2-3 litere.",forgotPasswordEmailError:"Acest email nu există",forgotPasswordReset:"Resetează parola",forgotPasswordSuccess:"Succes!",forgotPasswordSuccessDescription:"Am trimis un email cu instrucțiunile pentru resetarea parolei.",forgotNewPasswordTitle:"Noua parolă",forgotNewPasswordPassword:"Parola",forgotNewPasswordPasswordError:"Parola trebuie să fie între 8 si 20 de caractere, să contțină o literă mare, o cifră și un caracter special",forgotNewPasswordConfirmPassword:"Confirma parola",forgotNewPasswordConfirmPasswordError:"Parola confirmată trebuie să fie la fel ca parola nouă și să respecte aceleași reguli",forgotNewPasswordButton:"Schimbă parola",forgotChangePasswordTitle:"Succes!",forgotChangePasswordDescription:"Parola a fost schimbată cu succes.",forgotChangePasswordLogin:"Autentificare",simplePasswordError:"Parola trebuie să aibă 8-20 de caractere.",dobFormatError:"Formatul pentru data nașterii nu este realizat conform documentației widget-ului."},es:{day:"Día",month:"Mes",year:"Año",goToLogin:"Volver a iniciar sesión",forgotPasswordTitle:"Olvide mi contraseña",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email debe contener '@' y 2-3 letras de longitud.",forgotPasswordEmailError:"Este Email no existe",forgotPasswordReset:"Reestablecer contraseña",forgotPasswordSuccess:"Éxito!",forgotPasswordSuccessDescription:"Te hemos enviado un Email con las instrucciones para Reestablecer tu contraseña.",forgotNewPasswordTitle:"Nueva contraseña",forgotNewPasswordPassword:"Contraseña",forgotNewPasswordPasswordError:"La contraseña debe tener entre 8 a 20 caracteres y contener al menos 1 letra mayúscula, 1 número y 1 carácter especial.",forgotNewPasswordConfirmPassword:"Confirmar constraseña",forgotNewPasswordConfirmPasswordError:"Confirmar contraseña debe coincidir con la Nueva contraseña y debe seguir las mismas reglas.",forgotNewPasswordButton:"Cambiar Contraseña",forgotChangePasswordTitle:"Éxito!!",forgotChangePasswordDescription:"Tu contraseña se ha cambiado con éxito",forgotChangePasswordLogin:"Click aquí para Iniciar sesión",simplePasswordError:"La contraseña debe tener entre 8 a 20 caracteres",dobFormatError:"El formato de la fecha de nacimiento no se realiza de acuerdo con la documentación del widget."},pt:{day:"Dia",month:"Mês",year:"Ano",goToLogin:"Voltar a Entrar",forgotPasswordTitle:"Esqueceu sua senha",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"E-mail",forgotPasswordEmailInputError:"O e-mail deve conter '@' e um domínio de 2 a 3 letras.",forgotPasswordEmailError:"Este e-mail não existe.",forgotPasswordReset:"Redefinir senha",forgotPasswordSuccess:"Sucesso!",forgotPasswordSuccessDescription:"Enviamos um e-mail com as instruções para redefinir sua senha.",forgotNewPasswordTitle:"Senha",forgotNewPasswordPassword:"Password",forgotNewPasswordPasswordError:"A senha deve ter de 8 a 20 caracteres e conter pelo menos 1 letra maiúscula, 1 número e 1 caractere especial.",forgotNewPasswordConfirmPassword:"Confirme sua senha",forgotNewPasswordConfirmPasswordError:"A senha de confirmação deve corresponder à nova senha e deve seguir as mesmas regras.",forgotNewPasswordButton:"Mudar senha",forgotChangePasswordTitle:"Sucesso!",forgotChangePasswordDescription:"Sua senha foi alterada com sucesso.",forgotChangePasswordLogin:"Clique aqui para entrar",simplePasswordError:"A senha deve ter de 8 a 20 caracteres.",dobFormatError:"O formato da data de nascimento não está de acordo com a documentação do widget."},"en-us":{day:"Day",month:"Month",year:"Year",goToLogin:"Back to Sign In",forgotPasswordTitle:"Forgot Password",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email should contain '@' and a 2-3 letter long domain.",forgotPasswordEmailError:"This email does not exist.",forgotPasswordReset:"Reset Password",forgotPasswordSuccess:"Success!",forgotPasswordSuccessDescription:"We sent an email with the instructions to reset your password.",forgotNewPasswordTitle:"New Password",forgotNewPasswordPassword:"Password",forgotNewPasswordPasswordError:"The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",forgotNewPasswordConfirmPassword:"Confirm Password",forgotNewPasswordConfirmPasswordError:"Confirm password must match the new password and must follow the same rules.",forgotNewPasswordButton:"Change Password",forgotChangePasswordTitle:"Success!",forgotChangePasswordDescription:"Your password has been changed successfully.",forgotChangePasswordLogin:"Click here to Login",simplePasswordError:"Password must be 8-20 characters long.",dobFormatError:"The format for the date of birth isn't done according with the widget documentation."}};/**
18
+ `,rt.MISSING_INTL_API,n);var E=e.getPluralRules(t,{type:h.pluralType}).select(f-(h.offset||0));C=h.options[E]||h.options.other}if(!C)throw new Ls(h.value,f,Object.keys(h.options),n);a.push.apply(a,ri(C.value,t,e,r,s,f-(h.offset||0)));continue}}return Ud(a)}function Gd(i,t){return t?L(L(L({},i||{}),t||{}),Object.keys(i).reduce(function(e,r){return e[r]=L(L({},i[r]),t[r]||{}),e},{})):i}function Wd(i,t){return t?Object.keys(i).reduce(function(e,r){return e[r]=Gd(i[r],t[r]),e},L({},i)):i}function zi(i){return{create:function(){return{get:function(t){return i[t]},set:function(t,e){i[t]=e}}}}}function qd(i){return i===void 0&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Di(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,Je([void 0],e,!1)))},{cache:zi(i.number),strategy:Hi.variadic}),getDateTimeFormat:Di(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,Je([void 0],e,!1)))},{cache:zi(i.dateTime),strategy:Hi.variadic}),getPluralRules:Di(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,Je([void 0],e,!1)))},{cache:zi(i.pluralRules),strategy:Hi.variadic})}}var Yd=function(){function i(t,e,r,s){e===void 0&&(e=i.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var d=o.formatToParts(l);if(d.length===1)return d[0].value;var h=d.reduce(function(u,f){return!u.length||f.type!==ce.literal||typeof u[u.length-1]!="string"?u.push(f.value):u[u.length-1]+=f.value,u},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(l){return ri(o.ast,o.locales,o.formatters,o.formats,l,void 0,o.message)},this.resolvedOptions=function(){var l;return{locale:((l=o.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=e,this.resolvedLocale=i.resolveLocale(e),typeof t=="string"){if(this.message=t,!i.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var n=s||{};n.formatters;var a=Sl(n,["formatters"]);this.ast=i.__parse(t,L(L({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Wd(i.formats,r),this.formatters=s&&s.formatters||qd(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(t){if(typeof Intl.Locale!="undefined"){var e=Intl.NumberFormat.supportedLocalesOf(t);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},i.__parse=zd,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 Zd(i,t){if(t==null)return;if(t in i)return i[t];const e=t.split(".");let r=i;for(let s=0;s<e.length;s++)if(typeof r=="object"){if(s>0){const o=e.slice(s,e.length).join(".");if(o in r){r=r[o];break}}r=r[e[s]]}else r=void 0;return r}const ke={},Xd=(i,t,e)=>e&&(t in ke||(ke[t]={}),i in ke[t]||(ke[t][i]=e),e),mn=(i,t)=>{if(t==null)return;if(t in ke&&i in ke[t])return ke[t][i];const e=wi(t);for(let r=0;r<e.length;r++){const s=e[r],o=Kd(s,i);if(o)return Xd(i,t,o)}};let Vr;const dt=vi({});function Jd(i){return Vr[i]||null}function _n(i){return i in Vr}function Kd(i,t){if(!_n(i))return null;const e=Jd(i);return Zd(e,t)}function Qd(i){if(i==null)return;const t=wi(i);for(let e=0;e<t.length;e++){const r=t[e];if(_n(r))return r}}function gn(i,...t){delete ke[i],dt.update(e=>(e[i]=sd.all([e[i]||{},...t]),e))}lt([dt],([i])=>Object.keys(i));dt.subscribe(i=>Vr=i);const si={};function eh(i,t){si[i].delete(t),si[i].size===0&&delete si[i]}function bn(i){return si[i]}function th(i){return wi(i).map(t=>{const e=bn(t);return[t,e?[...e]:[]]}).filter(([,t])=>t.length>0)}function br(i){return i==null?!1:wi(i).some(t=>{var e;return(e=bn(t))==null?void 0:e.size})}function ih(i,t){return Promise.all(t.map(r=>(eh(i,r),r().then(s=>s.default||s)))).then(r=>gn(i,...r))}const _t={};function vn(i){if(!br(i))return i in _t?_t[i]:Promise.resolve();const t=th(i);return _t[i]=Promise.all(t.map(([e,r])=>ih(e,r))).then(()=>{if(br(i))return vn(i);delete _t[i]}),_t[i]}const rh={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"}}},sh={fallbackLocale:null,loadingDelay:200,formats:rh,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},oh=sh;function st(){return oh}const Vi=vi(!1);var nh=Object.defineProperty,ah=Object.defineProperties,lh=Object.getOwnPropertyDescriptors,Bs=Object.getOwnPropertySymbols,dh=Object.prototype.hasOwnProperty,hh=Object.prototype.propertyIsEnumerable,Rs=(i,t,e)=>t in i?nh(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,uh=(i,t)=>{for(var e in t||(t={}))dh.call(t,e)&&Rs(i,e,t[e]);if(Bs)for(var e of Bs(t))hh.call(t,e)&&Rs(i,e,t[e]);return i},ch=(i,t)=>ah(i,lh(t));let vr;const li=vi(null);function Ds(i){return i.split("-").map((t,e,r)=>r.slice(0,e+1).join("-")).reverse()}function wi(i,t=st().fallbackLocale){const e=Ds(i);return t?[...new Set([...e,...Ds(t)])]:e}function ze(){return vr!=null?vr:void 0}li.subscribe(i=>{vr=i!=null?i:void 0,typeof window!="undefined"&&i!=null&&document.documentElement.setAttribute("lang",i)});const fh=i=>{if(i&&Qd(i)&&br(i)){const{loadingDelay:t}=st();let e;return typeof window!="undefined"&&ze()!=null&&t?e=window.setTimeout(()=>Vi.set(!0),t):Vi.set(!0),vn(i).then(()=>{li.set(i)}).finally(()=>{clearTimeout(e),Vi.set(!1)})}return li.set(i)},Le=ch(uh({},li),{set:fh}),xi=i=>{const t=Object.create(null);return r=>{const s=JSON.stringify(r);return s in t?t[s]:t[s]=i(r)}};var ph=Object.defineProperty,di=Object.getOwnPropertySymbols,yn=Object.prototype.hasOwnProperty,wn=Object.prototype.propertyIsEnumerable,Hs=(i,t,e)=>t in i?ph(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,$r=(i,t)=>{for(var e in t||(t={}))yn.call(t,e)&&Hs(i,e,t[e]);if(di)for(var e of di(t))wn.call(t,e)&&Hs(i,e,t[e]);return i},ht=(i,t)=>{var e={};for(var r in i)yn.call(i,r)&&t.indexOf(r)<0&&(e[r]=i[r]);if(i!=null&&di)for(var r of di(i))t.indexOf(r)<0&&wn.call(i,r)&&(e[r]=i[r]);return e};const Nt=(i,t)=>{const{formats:e}=st();if(i in e&&t in e[i])return e[i][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${i} format.`)},mh=xi(i=>{var t=i,{locale:e,format:r}=t,s=ht(t,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(s=Nt("number",r)),new Intl.NumberFormat(e,s)}),_h=xi(i=>{var t=i,{locale:e,format:r}=t,s=ht(t,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?s=Nt("date",r):Object.keys(s).length===0&&(s=Nt("date","short")),new Intl.DateTimeFormat(e,s)}),gh=xi(i=>{var t=i,{locale:e,format:r}=t,s=ht(t,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?s=Nt("time",r):Object.keys(s).length===0&&(s=Nt("time","short")),new Intl.DateTimeFormat(e,s)}),bh=(i={})=>{var t=i,{locale:e=ze()}=t,r=ht(t,["locale"]);return mh($r({locale:e},r))},vh=(i={})=>{var t=i,{locale:e=ze()}=t,r=ht(t,["locale"]);return _h($r({locale:e},r))},yh=(i={})=>{var t=i,{locale:e=ze()}=t,r=ht(t,["locale"]);return gh($r({locale:e},r))},wh=xi((i,t=ze())=>new Yd(i,t,st().formats,{ignoreTag:st().ignoreTag})),xh=(i,t={})=>{var e,r,s,o;let n=t;typeof i=="object"&&(n=i,i=n.id);const{values:a,locale:l=ze(),default:d}=n;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=mn(i,l);if(!h)h=(o=(s=(r=(e=st()).handleMissingMessage)==null?void 0:r.call(e,{locale:l,id:i,defaultValue:d}))!=null?s:d)!=null?o:i;else if(typeof h!="string")return console.warn(`[svelte-i18n] Message with id "${i}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h;if(!a)return h;let u=h;try{u=wh(h,l).format(a)}catch(f){f instanceof Error&&console.warn(`[svelte-i18n] Message "${i}" has syntax error:`,f.message)}return u},Ph=(i,t)=>yh(t).format(i),Eh=(i,t)=>vh(t).format(i),Ch=(i,t)=>bh(t).format(i),Ah=(i,t=ze())=>mn(i,t),Sh=lt([Le,dt],()=>xh);lt([Le],()=>Ph);lt([Le],()=>Eh);lt([Le],()=>Ch);lt([Le,dt],()=>Ah);window.emWidgets={topic:Vl};const Th=i=>!!(i.toLowerCase().match(/android/i)||i.toLowerCase().match(/blackberry|bb/i)||i.toLowerCase().match(/iphone|ipad|ipod/i)||i.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));function Ih({withLocale:i,translations:t}){Le.subscribe(e=>{e==null&&(dt.set(t),Le.set(i))})}function Fs(i,t){gn(i,t)}function Oh(i){Le.set(i)}function Nh(i,t){if(i){const e=document.createElement("style");e.innerHTML=t,i.appendChild(e)}}function kh(i,t){const e=new URL(t);fetch(e.href).then(r=>r.text()).then(r=>{const s=document.createElement("style");s.innerHTML=r,i&&i.appendChild(s)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function Mh(i,t,e){if(window.emMessageBus){const r=document.createElement("style");window.emMessageBus.subscribe(t,s=>{r.innerHTML=s,i&&i.appendChild(r)})}}const zs={en:{day:"Day",month:"Month",year:"Year",goToLogin:"Back to Sign In",forgotPasswordTitle:"Forgot Password",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email should contain '@' and a 2-3 letter long domain.",forgotPasswordEmailError:"This email does not exist.",forgotPasswordReset:"Reset Password",forgotPasswordSuccess:"Success!",forgotPasswordSuccessDescription:"We sent an email with the instructions to reset your password.",forgotNewPasswordTitle:"New Password",forgotNewPasswordPassword:"Password",forgotNewPasswordPasswordError:"The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",forgotNewPasswordConfirmPassword:"Confirm Password",forgotNewPasswordConfirmPasswordError:"Confirm password must match the new password and must follow the same rules.",forgotNewPasswordButton:"Change Password",forgotChangePasswordTitle:"Success!",forgotChangePasswordDescription:"Your password has been changed successfully.",forgotChangePasswordLogin:"Click here to Login",simplePasswordError:"Password must be 8-20 characters long.",dobFormatError:"The format for the date of birth isn't done according with the widget documentation."},hr:{day:"Dan",month:"Mjesec",year:"Godina",goToLogin:"Natrag na prijavu",forgotPasswordTitle:"Zaboravljena lozinka",resetPasswordSubtitle:"Molimo resetirajte svoju lozinku.",hasToSetPassTitle:"Resetiraj Lozinku",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email treba sadržavati '@' i domenu od 2-3 slova.",forgotPasswordEmailError:"Ovaj email ne postoji.",forgotPasswordReset:"Resetiranje lozinke",forgotPasswordSuccess:"Uspjelo!",forgotPasswordSuccessDescription:"Poslali smo e-mail s uputama za ponovno postavljanje lozinke.",forgotNewPasswordTitle:"Nova Lozinka",forgotNewPasswordPassword:"Lozinka",forgotNewPasswordPasswordError:"Lozinka bi trebala imati 8-20 znakova",forgotNewPasswordConfirmPassword:"Potvrdi lozinku",forgotNewPasswordConfirmPasswordError:"Lozinka za potvrdu mora odgovarati novoj lozinci i mora slijediti ista pravila.",forgotNewPasswordButton:"Promjena lozinke",forgotChangePasswordTitle:"Uspjelo!",forgotChangePasswordDescription:"Vaša lozinka je uspješno promijenjena.",forgotChangePasswordLogin:"Kliknite ovdje za prijavu",simplePasswordError:"Lozinka mora imati 8-20 znakova.","forgotPasswordE-mail":"E-mail","forgotPasswordE-mailInputError":"E-mail treba sadržavati '@' i domenu od 2-3 slova.","forgotPasswordE-mailError":"Ovaj E-mail ne postoji.",dobFormatError:"Format datuma rođenja nije u skladu s dokumentacijom widgeta."},"zh-hk":{day:"天",month:"月",year:"年",goToLogin:"返回登錄",forgotPasswordTitle:"忘記密碼",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"電子郵件",forgotPasswordEmailInputError:"电子邮件应包含“@”和 2-3 个字母长的域。",forgotPasswordEmailError:"此電子郵件不存在。",forgotPasswordReset:"重設密碼",forgotPasswordSuccess:"成功!",forgotPasswordSuccessDescription:"我們發送了一封電子郵件,其中包含重置密碼的說明。",forgotNewPasswordTitle:"新密碼",forgotNewPasswordPassword:"密碼",forgotNewPasswordPasswordError:"密碼長度為 8-20 個字符,至少包含 1 個大寫字母、1 個數字和 1 個特殊字符。",forgotNewPasswordConfirmPassword:"確認密碼",forgotNewPasswordConfirmPasswordError:"確認密碼必須與新密碼匹配,並且必須遵循相同的規則。",forgotNewPasswordButton:"更改密碼",forgotChangePasswordTitle:"成功!",forgotChangePasswordDescription:"你已經成功更改密碼。",forgotChangePasswordLogin:"點擊此處登錄",simplePasswordError:"密码长度必须为 8-20 个字符。",dobFormatError:"出生日期的格式不符合小部件文件的規定。"},fr:{day:"Jour",month:"Mois",year:"Année",goToLogin:"Retour à la page d'accueil",forgotPasswordTitle:"Mot de passe oublié",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"L'e-mail doit contenir '@' et un domaine de 2-3 lettres.",forgotPasswordEmailError:"Cette adresse mail n'existe pas",forgotPasswordReset:"Réinitialiser le mot de passe",forgotPasswordSuccess:"Succès!",forgotPasswordSuccessDescription:"Nous vous avons envoyé un e-mail contenant les instructions pour reinitialiser votre mot de passe.",forgotNewPasswordTitle:"Nouveau mot de passe",forgotNewPasswordPassword:"Mot de passe",forgotNewPasswordPasswordError:"Le mot de passe doit comporter de 8 à 20 charactères et contenir au moins une lettre majuscule, un chiffre et un caractère spécial",forgotNewPasswordConfirmPassword:"Confirmer le mot de passe",forgotNewPasswordConfirmPasswordError:"Le mot de passe de confirmation doit correspondre au nouveau mot de passe et doit suivre les mêmes règles.",forgotNewPasswordButton:"Modifier le mot de passe",forgotChangePasswordTitle:"Succès!",forgotChangePasswordDescription:"Votre mot de passe a été modifié avec succès.",forgotChangePasswordLogin:"Cliquez ici pour vous connecter",simplePasswordError:"Le mot de passe doit comporter entre 8 et 20 caractères.",dobFormatError:"Le format de la date de naissance n'est pas conforme à la documentation du widget."},tr:{day:"Gün",month:"Ay",year:"Yıl",goToLogin:"Oturum Açmaya Geri Dön",forgotPasswordTitle:"Parolanızı mı unuttunuz",resetPasswordSubtitle:"Lütfen şifrenizi sıfırlayın.",hasToSetPassTitle:"Şifreyi yenile",forgotPasswordEmail:"E-posta",forgotPasswordEmailInputError:"E-posta '@' ve 2-3 harf uzunluğunda bir alan adı içermelidir.",forgotPasswordEmailError:"Bu e-posta mevcut değil.",forgotPasswordReset:"Şifreyi yenile",forgotPasswordSuccess:"Başarı!",forgotPasswordSuccessDescription:"Şifrenizi sıfırlama talimatlarını içeren bir e-posta gönderdik.",forgotNewPasswordTitle:"Yeni Şifre",forgotNewPasswordPassword:"Şifre",forgotNewPasswordPasswordError:"Şifre 8-20 karakter uzunluğunda olmalı ve en az 1 büyük harf, 1 rakam ve 1 özel karakter içermelidir.",forgotNewPasswordConfirmPassword:"Şifreyi Onayla",forgotNewPasswordConfirmPasswordError:"Parolayı onayla, yeni parolayla eşleşmeli ve aynı kurallara uymalıdır.",forgotNewPasswordButton:"Şifre değiştir",forgotChangePasswordTitle:"Başarı!",forgotChangePasswordDescription:"Şifreniz başarıyla değiştirildi.",forgotChangePasswordLogin:"Giriş yapmak için buraya tıklayın",simplePasswordError:"Şifre 8-20 karakter uzunluğunda olmalı ve en az 1 büyük harf, 1 rakam ve 1 özel karakter içermelidir.",dobFormatError:"Doğum tarihi formatı widget dokümantasyonuna uygun yapılmamış."},ro:{day:"Zi",month:"Luna",year:"An",goToLogin:"Inapoi la autentificare",forgotPasswordTitle:"Parolă Uitată",resetPasswordSubtitle:"Vă rugăm sa resetați parola.",hasToSetPassTitle:"Resetează parola",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email-ul ar trebui să conțină '@' și 2-3 litere.",forgotPasswordEmailError:"Acest email nu există",forgotPasswordReset:"Resetează parola",forgotPasswordSuccess:"Succes!",forgotPasswordSuccessDescription:"Am trimis un email cu instrucțiunile pentru resetarea parolei.",forgotNewPasswordTitle:"Noua parolă",forgotNewPasswordPassword:"Parola",forgotNewPasswordPasswordError:"Parola trebuie să fie între 8 si 20 de caractere, să contțină o literă mare, o cifră și un caracter special",forgotNewPasswordConfirmPassword:"Confirma parola",forgotNewPasswordConfirmPasswordError:"Parola confirmată trebuie să fie la fel ca parola nouă și să respecte aceleași reguli",forgotNewPasswordButton:"Schimbă parola",forgotChangePasswordTitle:"Succes!",forgotChangePasswordDescription:"Parola a fost schimbată cu succes.",forgotChangePasswordLogin:"Autentificare",simplePasswordError:"Parola trebuie să aibă 8-20 de caractere.",dobFormatError:"Formatul pentru data nașterii nu este realizat conform documentației widget-ului."},es:{day:"Día",month:"Mes",year:"Año",goToLogin:"Volver a iniciar sesión",forgotPasswordTitle:"Olvide mi contraseña",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email debe contener '@' y 2-3 letras de longitud.",forgotPasswordEmailError:"Este Email no existe",forgotPasswordReset:"Reestablecer contraseña",forgotPasswordSuccess:"Éxito!",forgotPasswordSuccessDescription:"Te hemos enviado un Email con las instrucciones para Reestablecer tu contraseña.",forgotNewPasswordTitle:"Nueva contraseña",forgotNewPasswordPassword:"Contraseña",forgotNewPasswordPasswordError:"La contraseña debe tener entre 8 a 20 caracteres y contener al menos 1 letra mayúscula, 1 número y 1 carácter especial.",forgotNewPasswordConfirmPassword:"Confirmar constraseña",forgotNewPasswordConfirmPasswordError:"Confirmar contraseña debe coincidir con la Nueva contraseña y debe seguir las mismas reglas.",forgotNewPasswordButton:"Cambiar Contraseña",forgotChangePasswordTitle:"Éxito!!",forgotChangePasswordDescription:"Tu contraseña se ha cambiado con éxito",forgotChangePasswordLogin:"Click aquí para Iniciar sesión",simplePasswordError:"La contraseña debe tener entre 8 a 20 caracteres",dobFormatError:"El formato de la fecha de nacimiento no se realiza de acuerdo con la documentación del widget."},pt:{day:"Dia",month:"Mês",year:"Ano",goToLogin:"Voltar a Entrar",forgotPasswordTitle:"Esqueceu sua senha",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"E-mail",forgotPasswordEmailInputError:"O e-mail deve conter '@' e um domínio de 2 a 3 letras.",forgotPasswordEmailError:"Este e-mail não existe.",forgotPasswordReset:"Redefinir senha",forgotPasswordSuccess:"Sucesso!",forgotPasswordSuccessDescription:"Enviamos um e-mail com as instruções para redefinir sua senha.",forgotNewPasswordTitle:"Senha",forgotNewPasswordPassword:"Password",forgotNewPasswordPasswordError:"A senha deve ter de 8 a 20 caracteres e conter pelo menos 1 letra maiúscula, 1 número e 1 caractere especial.",forgotNewPasswordConfirmPassword:"Confirme sua senha",forgotNewPasswordConfirmPasswordError:"A senha de confirmação deve corresponder à nova senha e deve seguir as mesmas regras.",forgotNewPasswordButton:"Mudar senha",forgotChangePasswordTitle:"Sucesso!",forgotChangePasswordDescription:"Sua senha foi alterada com sucesso.",forgotChangePasswordLogin:"Clique aqui para entrar",simplePasswordError:"A senha deve ter de 8 a 20 caracteres.",dobFormatError:"O formato da data de nascimento não está de acordo com a documentação do widget."},"en-us":{day:"Day",month:"Month",year:"Year",goToLogin:"Back to Sign In",forgotPasswordTitle:"Forgot Password",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email should contain '@' and a 2-3 letter long domain.",forgotPasswordEmailError:"This email does not exist.",forgotPasswordReset:"Reset Password",forgotPasswordSuccess:"Success!",forgotPasswordSuccessDescription:"We sent an email with the instructions to reset your password.",forgotNewPasswordTitle:"New Password",forgotNewPasswordPassword:"Password",forgotNewPasswordPasswordError:"The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",forgotNewPasswordConfirmPassword:"Confirm Password",forgotNewPasswordConfirmPasswordError:"Confirm password must match the new password and must follow the same rules.",forgotNewPasswordButton:"Change Password",forgotChangePasswordTitle:"Success!",forgotChangePasswordDescription:"Your password has been changed successfully.",forgotChangePasswordLogin:"Click here to Login",simplePasswordError:"Password must be 8-20 characters long.",dobFormatError:"The format for the date of birth isn't done according with the widget documentation."}};/**
6
19
  * @license
7
20
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
8
21
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9
- */window.Vaadin||(window.Vaadin={});var ko;(ko=window.Vaadin).featureFlags||(ko.featureFlags={});function Lh(i){return i.replace(/-[a-z]/gu,t=>t[1].toUpperCase())}const Te={};function ct(i,t="24.6.5"){if(Object.defineProperty(i,"version",{get(){return t}}),i.experimental){const r=typeof i.experimental=="string"?i.experimental:`${Lh(i.is.split("-").slice(1).join("-"))}Component`;if(!window.Vaadin.featureFlags[r]&&!Te[r]){Te[r]=new Set,Te[r].add(i),Object.defineProperty(window.Vaadin.featureFlags,r,{get(){return Te[r].size===0},set(s){s&&Te[r].size>0&&(Te[r].forEach(o=>{customElements.define(o.is,o)}),Te[r].clear())}});return}else if(Te[r]){Te[r].add(i);return}}const e=customElements.get(i.is);if(!e)customElements.define(i.is,i);else{const r=e.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 ${e.version} is already in use. Something will probably break.`)}}/**
22
+ */function ut(i,t="24.5.10"){Object.defineProperty(i,"version",{get(){return t}});const e=customElements.get(i.is);if(!e)customElements.define(i.is,i);else{const r=e.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 ${e.version} is already in use. Something will probably break.`)}}/**
10
23
  * @license
11
24
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
12
25
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
13
- */class Mh extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}ct(Mh);/**
26
+ */class Lh extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}ut(Lh);/**
14
27
  * @license
15
28
  * Copyright 2019 Google LLC
16
29
  * SPDX-License-Identifier: BSD-3-Clause
17
- */const ni=globalThis,Vr=ni.ShadowRoot&&(ni.ShadyCSS===void 0||ni.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,$r=Symbol(),Ds=new WeakMap;let Ur=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==$r)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Vr&&t===void 0){const r=e!==void 0&&e.length===1;r&&(t=Ds.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&Ds.set(e,t))}return t}toString(){return this.cssText}};const Bh=i=>new Ur(typeof i=="string"?i:i+"",void 0,$r),R=(i,...t)=>{const e=i.length===1?i[0]:t.reduce((r,s,o)=>r+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+i[o+1],i[0]);return new Ur(e,i,$r)},yn=(i,t)=>{if(Vr)i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const r=document.createElement("style"),s=ni.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=e.cssText,i.appendChild(r)}},zs=Vr?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return Bh(e)})(i):i;/**
30
+ */const oi=globalThis,Ur=oi.ShadowRoot&&(oi.ShadyCSS===void 0||oi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,jr=Symbol(),Vs=new WeakMap;let Gr=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==jr)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Ur&&t===void 0){const r=e!==void 0&&e.length===1;r&&(t=Vs.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&Vs.set(e,t))}return t}toString(){return this.cssText}};const Bh=i=>new Gr(typeof i=="string"?i:i+"",void 0,jr),D=(i,...t)=>{const e=i.length===1?i[0]:t.reduce((r,s,o)=>r+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+i[o+1],i[0]);return new Gr(e,i,jr)},xn=(i,t)=>{if(Ur)i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const r=document.createElement("style"),s=oi.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=e.cssText,i.appendChild(r)}},$s=Ur?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return Bh(e)})(i):i;/**
18
31
  * @license
19
32
  * Copyright 2017 Google LLC
20
33
  * SPDX-License-Identifier: BSD-3-Clause
21
- */const{is:Hh,defineProperty:Rh,getOwnPropertyDescriptor:Fh,getOwnPropertyNames:Dh,getOwnPropertySymbols:zh,getPrototypeOf:Vh}=Object,Me=globalThis,Vs=Me.trustedTypes,$h=Vs?Vs.emptyScript:"",$i=Me.reactiveElementPolyfillSupport,At=(i,t)=>i,yr={toAttribute(i,t){switch(t){case Boolean:i=i?$h:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch(r){e=null}}return e}},wn=(i,t)=>!Hh(i,t),$s={attribute:!0,type:String,converter:yr,reflect:!1,hasChanged:wn};var Lo,Mo;(Lo=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Mo=Me.litPropertyMetadata)!=null||(Me.litPropertyMetadata=new WeakMap);class Xe extends HTMLElement{static addInitializer(t){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=$s){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const r=Symbol(),s=this.getPropertyDescriptor(t,r,e);s!==void 0&&Rh(this.prototype,t,s)}}static getPropertyDescriptor(t,e,r){var n;const{get:s,set:o}=(n=Fh(this.prototype,t))!=null?n:{get(){return this[e]},set(a){this[e]=a}};return{get(){return s==null?void 0:s.call(this)},set(a){const l=s==null?void 0:s.call(this);o.call(this,a),this.requestUpdate(t,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:$s}static _$Ei(){if(this.hasOwnProperty(At("elementProperties")))return;const t=Vh(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(At("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(At("properties"))){const e=this.properties,r=[...Dh(e),...zh(e)];for(const s of r)this.createProperty(s,e[s])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[r,s]of e)this.elementProperties.set(r,s)}this._$Eh=new Map;for(const[e,r]of this.elementProperties){const s=this._$Eu(e,r);s!==void 0&&this._$Eh.set(s,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const s of r)e.unshift(zs(s))}else t!==void 0&&e.push(zs(t));return e}static _$Eu(t,e){const r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e,r;((e=this._$EO)!=null?e:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((r=t.hostConnected)==null||r.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var e;const t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return yn(t,this.constructor.elementStyles),t}connectedCallback(){var t,e;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(r=>{var s;return(s=r.hostConnected)==null?void 0:s.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostDisconnected)==null?void 0:r.call(e)})}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EC(t,e){var o;const r=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,r);if(s!==void 0&&r.reflect===!0){const n=(((o=r.converter)==null?void 0:o.toAttribute)!==void 0?r.converter:yr).toAttribute(e,r.type);this._$Em=t,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null}}_$AK(t,e){var o;const r=this.constructor,s=r._$Eh.get(t);if(s!==void 0&&this._$Em!==s){const n=r.getPropertyOptions(s),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((o=n.converter)==null?void 0:o.fromAttribute)!==void 0?n.converter:yr;this._$Em=s,this[s]=a.fromAttribute(e,n.type),this._$Em=null}}requestUpdate(t,e,r){var s;if(t!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(t)),!((s=r.hasChanged)!=null?s:wn)(this[t],e))return;this.P(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,r){var s;this._$AL.has(t)||this._$AL.set(t,e),r.reflect===!0&&this._$Em!==t&&((s=this._$Ej)!=null?s:this._$Ej=new Set).add(t)}_$ET(){return qt(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[n,a]of o)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],a)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(o=>{var n;return(n=o.hostUpdate)==null?void 0:n.call(o)}),this.update(e)):this._$EU()}catch(o){throw t=!1,this._$EU(),o}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(r=>{var s;return(s=r.hostUpdated)==null?void 0:s.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}}var Bo;Xe.elementStyles=[],Xe.shadowRootOptions={mode:"open"},Xe[At("elementProperties")]=new Map,Xe[At("finalized")]=new Map,$i==null||$i({ReactiveElement:Xe}),((Bo=Me.reactiveElementVersions)!=null?Bo:Me.reactiveElementVersions=[]).push("2.0.4");/**
34
+ */const{is:Rh,defineProperty:Dh,getOwnPropertyDescriptor:Hh,getOwnPropertyNames:Fh,getOwnPropertySymbols:zh,getPrototypeOf:Vh}=Object,Me=globalThis,Us=Me.trustedTypes,$h=Us?Us.emptyScript:"",$i=Me.reactiveElementPolyfillSupport,Ct=(i,t)=>i,yr={toAttribute(i,t){switch(t){case Boolean:i=i?$h:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch(r){e=null}}return e}},Pn=(i,t)=>!Rh(i,t),js={attribute:!0,type:String,converter:yr,reflect:!1,hasChanged:Pn};var Lo,Bo;(Lo=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Bo=Me.litPropertyMetadata)!=null||(Me.litPropertyMetadata=new WeakMap);class Ye extends HTMLElement{static addInitializer(t){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=js){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const r=Symbol(),s=this.getPropertyDescriptor(t,r,e);s!==void 0&&Dh(this.prototype,t,s)}}static getPropertyDescriptor(t,e,r){var n;const{get:s,set:o}=(n=Hh(this.prototype,t))!=null?n:{get(){return this[e]},set(a){this[e]=a}};return{get(){return s==null?void 0:s.call(this)},set(a){const l=s==null?void 0:s.call(this);o.call(this,a),this.requestUpdate(t,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:js}static _$Ei(){if(this.hasOwnProperty(Ct("elementProperties")))return;const t=Vh(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Ct("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ct("properties"))){const e=this.properties,r=[...Fh(e),...zh(e)];for(const s of r)this.createProperty(s,e[s])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[r,s]of e)this.elementProperties.set(r,s)}this._$Eh=new Map;for(const[e,r]of this.elementProperties){const s=this._$Eu(e,r);s!==void 0&&this._$Eh.set(s,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const s of r)e.unshift($s(s))}else t!==void 0&&e.push($s(t));return e}static _$Eu(t,e){const r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e,r;((e=this._$EO)!=null?e:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((r=t.hostConnected)==null||r.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var e;const t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return xn(t,this.constructor.elementStyles),t}connectedCallback(){var t,e;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(r=>{var s;return(s=r.hostConnected)==null?void 0:s.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostDisconnected)==null?void 0:r.call(e)})}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EC(t,e){var o;const r=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,r);if(s!==void 0&&r.reflect===!0){const n=(((o=r.converter)==null?void 0:o.toAttribute)!==void 0?r.converter:yr).toAttribute(e,r.type);this._$Em=t,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null}}_$AK(t,e){var o;const r=this.constructor,s=r._$Eh.get(t);if(s!==void 0&&this._$Em!==s){const n=r.getPropertyOptions(s),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((o=n.converter)==null?void 0:o.fromAttribute)!==void 0?n.converter:yr;this._$Em=s,this[s]=a.fromAttribute(e,n.type),this._$Em=null}}requestUpdate(t,e,r){var s;if(t!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(t)),!((s=r.hasChanged)!=null?s:Pn)(this[t],e))return;this.P(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,r){var s;this._$AL.has(t)||this._$AL.set(t,e),r.reflect===!0&&this._$Em!==t&&((s=this._$Ej)!=null?s:this._$Ej=new Set).add(t)}_$ET(){return Wt(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[n,a]of o)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],a)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(o=>{var n;return(n=o.hostUpdate)==null?void 0:n.call(o)}),this.update(e)):this._$EU()}catch(o){throw t=!1,this._$EU(),o}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(r=>{var s;return(s=r.hostUpdated)==null?void 0:s.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}}var Ro;Ye.elementStyles=[],Ye.shadowRootOptions={mode:"open"},Ye[Ct("elementProperties")]=new Map,Ye[Ct("finalized")]=new Map,$i==null||$i({ReactiveElement:Ye}),((Ro=Me.reactiveElementVersions)!=null?Ro:Me.reactiveElementVersions=[]).push("2.0.4");/**
22
35
  * @license
23
36
  * Copyright 2017 Google LLC
24
37
  * SPDX-License-Identifier: BSD-3-Clause
25
- */const St=globalThis,ui=St.trustedTypes,Us=ui?ui.createPolicy("lit-html",{createHTML:i=>i}):void 0,xn="$lit$",ke=`lit$${Math.random().toFixed(9).slice(2)}$`,Pn="?"+ke,Uh=`<${Pn}>`,De=document,Lt=()=>De.createComment(""),Mt=i=>i===null||typeof i!="object"&&typeof i!="function",jr=Array.isArray,jh=i=>jr(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Ui=`[
26
- \f\r]`,bt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,js=/-->/g,Gs=/>/g,He=RegExp(`>|${Ui}(?:([^\\s"'>=/]+)(${Ui}*=${Ui}*(?:[^
27
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ws=/'/g,qs=/"/g,En=/^(?:script|style|textarea|title)$/i,nt=Symbol.for("lit-noChange"),ee=Symbol.for("lit-nothing"),Ys=new WeakMap,Re=De.createTreeWalker(De,129);function Cn(i,t){if(!jr(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Us!==void 0?Us.createHTML(t):t}const Gh=(i,t)=>{const e=i.length-1,r=[];let s,o=t===2?"<svg>":t===3?"<math>":"",n=bt;for(let a=0;a<e;a++){const l=i[a];let d,h,u=-1,f=0;for(;f<l.length&&(n.lastIndex=f,h=n.exec(l),h!==null);)f=n.lastIndex,n===bt?h[1]==="!--"?n=js:h[1]!==void 0?n=Gs:h[2]!==void 0?(En.test(h[2])&&(s=RegExp("</"+h[2],"g")),n=He):h[3]!==void 0&&(n=He):n===He?h[0]===">"?(n=s!=null?s:bt,u=-1):h[1]===void 0?u=-2:(u=n.lastIndex-h[2].length,d=h[1],n=h[3]===void 0?He:h[3]==='"'?qs:Ws):n===qs||n===Ws?n=He:n===js||n===Gs?n=bt:(n=He,s=void 0);const m=n===He&&i[a+1].startsWith("/>")?" ":"";o+=n===bt?l+Uh:u>=0?(r.push(d),l.slice(0,u)+xn+l.slice(u)+ke+m):l+ke+(u===-2?a:m)}return[Cn(i,o+(i[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]};class Bt{constructor({strings:t,_$litType$:e},r){let s;this.parts=[];let o=0,n=0;const a=t.length-1,l=this.parts,[d,h]=Gh(t,e);if(this.el=Bt.createElement(d,r),Re.currentNode=this.el.content,e===2||e===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(s=Re.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(const u of s.getAttributeNames())if(u.endsWith(xn)){const f=h[n++],m=s.getAttribute(u).split(ke),_=/([.?@])?(.*)/.exec(f);l.push({type:1,index:o,name:_[2],strings:m,ctor:_[1]==="."?qh:_[1]==="?"?Yh:_[1]==="@"?Xh:Ei}),s.removeAttribute(u)}else u.startsWith(ke)&&(l.push({type:6,index:o}),s.removeAttribute(u));if(En.test(s.tagName)){const u=s.textContent.split(ke),f=u.length-1;if(f>0){s.textContent=ui?ui.emptyScript:"";for(let m=0;m<f;m++)s.append(u[m],Lt()),Re.nextNode(),l.push({type:2,index:++o});s.append(u[f],Lt())}}}else if(s.nodeType===8)if(s.data===Pn)l.push({type:2,index:o});else{let u=-1;for(;(u=s.data.indexOf(ke,u+1))!==-1;)l.push({type:7,index:o}),u+=ke.length-1}o++}}static createElement(t,e){const r=De.createElement("template");return r.innerHTML=t,r}}function at(i,t,e=i,r){var n,a,l;if(t===nt)return t;let s=r!==void 0?(n=e._$Co)==null?void 0:n[r]:e._$Cl;const o=Mt(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==o&&((a=s==null?void 0:s._$AO)==null||a.call(s,!1),o===void 0?s=void 0:(s=new o(i),s._$AT(i,e,r)),r!==void 0?((l=e._$Co)!=null?l:e._$Co=[])[r]=s:e._$Cl=s),s!==void 0&&(t=at(i,s._$AS(i,t.values),s,r)),t}class Wh{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var d;const{el:{content:e},parts:r}=this._$AD,s=((d=t==null?void 0:t.creationScope)!=null?d:De).importNode(e,!0);Re.currentNode=s;let o=Re.nextNode(),n=0,a=0,l=r[0];for(;l!==void 0;){if(n===l.index){let h;l.type===2?h=new Vt(o,o.nextSibling,this,t):l.type===1?h=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(h=new Zh(o,this,t)),this._$AV.push(h),l=r[++a]}n!==(l==null?void 0:l.index)&&(o=Re.nextNode(),n++)}return Re.currentNode=De,s}p(t){let e=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class Vt{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this._$Cv}constructor(t,e,r,s){var o;this.type=2,this._$AH=ee,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=s,this._$Cv=(o=s==null?void 0:s.isConnected)!=null?o:!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=at(this,t,e),Mt(t)?t===ee||t==null||t===""?(this._$AH!==ee&&this._$AR(),this._$AH=ee):t!==this._$AH&&t!==nt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):jh(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==ee&&Mt(this._$AH)?this._$AA.nextSibling.data=t:this.T(De.createTextNode(t)),this._$AH=t}$(t){var o;const{values:e,_$litType$:r}=t,s=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=Bt.createElement(Cn(r.h,r.h[0]),this.options)),r);if(((o=this._$AH)==null?void 0:o._$AD)===s)this._$AH.p(e);else{const n=new Wh(s,this),a=n.u(this.options);n.p(e),this.T(a),this._$AH=n}}_$AC(t){let e=Ys.get(t.strings);return e===void 0&&Ys.set(t.strings,e=new Bt(t)),e}k(t){jr(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,s=0;for(const o of t)s===e.length?e.push(r=new Vt(this.O(Lt()),this.O(Lt()),this,this.options)):r=e[s],r._$AI(o),s++;s<e.length&&(this._$AR(r&&r._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,e);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class Ei{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,s,o){this.type=1,this._$AH=ee,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=ee}_$AI(t,e=this,r,s){const o=this.strings;let n=!1;if(o===void 0)t=at(this,t,e,0),n=!Mt(t)||t!==this._$AH&&t!==nt,n&&(this._$AH=t);else{const a=t;let l,d;for(t=o[0],l=0;l<o.length-1;l++)d=at(this,a[r+l],e,l),d===nt&&(d=this._$AH[l]),n||(n=!Mt(d)||d!==this._$AH[l]),d===ee?t=ee:t!==ee&&(t+=(d!=null?d:"")+o[l+1]),this._$AH[l]=d}n&&!s&&this.j(t)}j(t){t===ee?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}class qh extends Ei{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===ee?void 0:t}}class Yh extends Ei{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==ee)}}class Xh extends Ei{constructor(t,e,r,s,o){super(t,e,r,s,o),this.type=5}_$AI(t,e=this){var n;if((t=(n=at(this,t,e,0))!=null?n:ee)===nt)return;const r=this._$AH,s=t===ee&&r!==ee||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==ee&&(r===ee||s);s&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,r;typeof this._$AH=="function"?this._$AH.call((r=(e=this.options)==null?void 0:e.host)!=null?r:this.element,t):this._$AH.handleEvent(t)}}class Zh{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){at(this,t)}}const ji=St.litHtmlPolyfillSupport;var Ho;ji==null||ji(Bt,Vt),((Ho=St.litHtmlVersions)!=null?Ho:St.litHtmlVersions=[]).push("3.2.1");const Jh=(i,t,e)=>{var o,n;const r=(o=e==null?void 0:e.renderBefore)!=null?o:t;let s=r._$litPart$;if(s===void 0){const a=(n=e==null?void 0:e.renderBefore)!=null?n:null;r._$litPart$=s=new Vt(t.insertBefore(Lt(),a),a,void 0,e!=null?e:{})}return s._$AI(i),s};/**
38
+ */const At=globalThis,hi=At.trustedTypes,Gs=hi?hi.createPolicy("lit-html",{createHTML:i=>i}):void 0,En="$lit$",Ne=`lit$${Math.random().toFixed(9).slice(2)}$`,Cn="?"+Ne,Uh=`<${Cn}>`,He=document,kt=()=>He.createComment(""),Mt=i=>i===null||typeof i!="object"&&typeof i!="function",Wr=Array.isArray,jh=i=>Wr(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Ui=`[
39
+ \f\r]`,gt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ws=/-->/g,qs=/>/g,Be=RegExp(`>|${Ui}(?:([^\\s"'>=/]+)(${Ui}*=${Ui}*(?:[^
40
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ys=/'/g,Zs=/"/g,An=/^(?:script|style|textarea|title)$/i,ot=Symbol.for("lit-noChange"),ee=Symbol.for("lit-nothing"),Xs=new WeakMap,Re=He.createTreeWalker(He,129);function Sn(i,t){if(!Wr(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Gs!==void 0?Gs.createHTML(t):t}const Gh=(i,t)=>{const e=i.length-1,r=[];let s,o=t===2?"<svg>":t===3?"<math>":"",n=gt;for(let a=0;a<e;a++){const l=i[a];let d,h,u=-1,f=0;for(;f<l.length&&(n.lastIndex=f,h=n.exec(l),h!==null);)f=n.lastIndex,n===gt?h[1]==="!--"?n=Ws:h[1]!==void 0?n=qs:h[2]!==void 0?(An.test(h[2])&&(s=RegExp("</"+h[2],"g")),n=Be):h[3]!==void 0&&(n=Be):n===Be?h[0]===">"?(n=s!=null?s:gt,u=-1):h[1]===void 0?u=-2:(u=n.lastIndex-h[2].length,d=h[1],n=h[3]===void 0?Be:h[3]==='"'?Zs:Ys):n===Zs||n===Ys?n=Be:n===Ws||n===qs?n=gt:(n=Be,s=void 0);const m=n===Be&&i[a+1].startsWith("/>")?" ":"";o+=n===gt?l+Uh:u>=0?(r.push(d),l.slice(0,u)+En+l.slice(u)+Ne+m):l+Ne+(u===-2?a:m)}return[Sn(i,o+(i[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]};class Lt{constructor({strings:t,_$litType$:e},r){let s;this.parts=[];let o=0,n=0;const a=t.length-1,l=this.parts,[d,h]=Gh(t,e);if(this.el=Lt.createElement(d,r),Re.currentNode=this.el.content,e===2||e===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(s=Re.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(const u of s.getAttributeNames())if(u.endsWith(En)){const f=h[n++],m=s.getAttribute(u).split(Ne),_=/([.?@])?(.*)/.exec(f);l.push({type:1,index:o,name:_[2],strings:m,ctor:_[1]==="."?qh:_[1]==="?"?Yh:_[1]==="@"?Zh:Pi}),s.removeAttribute(u)}else u.startsWith(Ne)&&(l.push({type:6,index:o}),s.removeAttribute(u));if(An.test(s.tagName)){const u=s.textContent.split(Ne),f=u.length-1;if(f>0){s.textContent=hi?hi.emptyScript:"";for(let m=0;m<f;m++)s.append(u[m],kt()),Re.nextNode(),l.push({type:2,index:++o});s.append(u[f],kt())}}}else if(s.nodeType===8)if(s.data===Cn)l.push({type:2,index:o});else{let u=-1;for(;(u=s.data.indexOf(Ne,u+1))!==-1;)l.push({type:7,index:o}),u+=Ne.length-1}o++}}static createElement(t,e){const r=He.createElement("template");return r.innerHTML=t,r}}function nt(i,t,e=i,r){var n,a,l;if(t===ot)return t;let s=r!==void 0?(n=e._$Co)==null?void 0:n[r]:e._$Cl;const o=Mt(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==o&&((a=s==null?void 0:s._$AO)==null||a.call(s,!1),o===void 0?s=void 0:(s=new o(i),s._$AT(i,e,r)),r!==void 0?((l=e._$Co)!=null?l:e._$Co=[])[r]=s:e._$Cl=s),s!==void 0&&(t=nt(i,s._$AS(i,t.values),s,r)),t}class Wh{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var d;const{el:{content:e},parts:r}=this._$AD,s=((d=t==null?void 0:t.creationScope)!=null?d:He).importNode(e,!0);Re.currentNode=s;let o=Re.nextNode(),n=0,a=0,l=r[0];for(;l!==void 0;){if(n===l.index){let h;l.type===2?h=new zt(o,o.nextSibling,this,t):l.type===1?h=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(h=new Xh(o,this,t)),this._$AV.push(h),l=r[++a]}n!==(l==null?void 0:l.index)&&(o=Re.nextNode(),n++)}return Re.currentNode=He,s}p(t){let e=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class zt{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this._$Cv}constructor(t,e,r,s){var o;this.type=2,this._$AH=ee,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=s,this._$Cv=(o=s==null?void 0:s.isConnected)!=null?o:!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=nt(this,t,e),Mt(t)?t===ee||t==null||t===""?(this._$AH!==ee&&this._$AR(),this._$AH=ee):t!==this._$AH&&t!==ot&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):jh(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==ee&&Mt(this._$AH)?this._$AA.nextSibling.data=t:this.T(He.createTextNode(t)),this._$AH=t}$(t){var o;const{values:e,_$litType$:r}=t,s=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=Lt.createElement(Sn(r.h,r.h[0]),this.options)),r);if(((o=this._$AH)==null?void 0:o._$AD)===s)this._$AH.p(e);else{const n=new Wh(s,this),a=n.u(this.options);n.p(e),this.T(a),this._$AH=n}}_$AC(t){let e=Xs.get(t.strings);return e===void 0&&Xs.set(t.strings,e=new Lt(t)),e}k(t){Wr(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,s=0;for(const o of t)s===e.length?e.push(r=new zt(this.O(kt()),this.O(kt()),this,this.options)):r=e[s],r._$AI(o),s++;s<e.length&&(this._$AR(r&&r._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,e);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class Pi{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,s,o){this.type=1,this._$AH=ee,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=ee}_$AI(t,e=this,r,s){const o=this.strings;let n=!1;if(o===void 0)t=nt(this,t,e,0),n=!Mt(t)||t!==this._$AH&&t!==ot,n&&(this._$AH=t);else{const a=t;let l,d;for(t=o[0],l=0;l<o.length-1;l++)d=nt(this,a[r+l],e,l),d===ot&&(d=this._$AH[l]),n||(n=!Mt(d)||d!==this._$AH[l]),d===ee?t=ee:t!==ee&&(t+=(d!=null?d:"")+o[l+1]),this._$AH[l]=d}n&&!s&&this.j(t)}j(t){t===ee?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}class qh extends Pi{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===ee?void 0:t}}class Yh extends Pi{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==ee)}}class Zh extends Pi{constructor(t,e,r,s,o){super(t,e,r,s,o),this.type=5}_$AI(t,e=this){var n;if((t=(n=nt(this,t,e,0))!=null?n:ee)===ot)return;const r=this._$AH,s=t===ee&&r!==ee||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==ee&&(r===ee||s);s&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,r;typeof this._$AH=="function"?this._$AH.call((r=(e=this.options)==null?void 0:e.host)!=null?r:this.element,t):this._$AH.handleEvent(t)}}class Xh{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){nt(this,t)}}const ji=At.litHtmlPolyfillSupport;var Do;ji==null||ji(Lt,zt),((Do=At.litHtmlVersions)!=null?Do:At.litHtmlVersions=[]).push("3.2.1");const Jh=(i,t,e)=>{var o,n;const r=(o=e==null?void 0:e.renderBefore)!=null?o:t;let s=r._$litPart$;if(s===void 0){const a=(n=e==null?void 0:e.renderBefore)!=null?n:null;r._$litPart$=s=new zt(t.insertBefore(kt(),a),a,void 0,e!=null?e:{})}return s._$AI(i),s};/**
28
41
  * @license
29
42
  * Copyright 2017 Google LLC
30
43
  * SPDX-License-Identifier: BSD-3-Clause
31
- */class Ke extends Xe{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,r;const t=super.createRenderRoot();return(r=(e=this.renderOptions).renderBefore)!=null||(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Jh(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return nt}}var Ro;Ke._$litElement$=!0,Ke.finalized=!0,(Ro=globalThis.litElementHydrateSupport)==null||Ro.call(globalThis,{LitElement:Ke});const Gi=globalThis.litElementPolyfillSupport;Gi==null||Gi({LitElement:Ke});var Fo;((Fo=globalThis.litElementVersions)!=null?Fo:globalThis.litElementVersions=[]).push("4.1.1");/**
44
+ */class Ke extends Ye{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,r;const t=super.createRenderRoot();return(r=(e=this.renderOptions).renderBefore)!=null||(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Jh(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return ot}}var Ho;Ke._$litElement$=!0,Ke.finalized=!0,(Ho=globalThis.litElementHydrateSupport)==null||Ho.call(globalThis,{LitElement:Ke});const Gi=globalThis.litElementPolyfillSupport;Gi==null||Gi({LitElement:Ke});var Fo;((Fo=globalThis.litElementVersions)!=null?Fo:globalThis.litElementVersions=[]).push("4.1.1");/**
32
45
  * @license
33
46
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
34
47
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
35
- */const Qh=i=>class extends i{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,r,s){super.attributeChangedCallback(e,r,s),e==="theme"&&this._set_theme(s)}};/**
48
+ */const Kh=i=>class extends i{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,r,s){super.attributeChangedCallback(e,r,s),e==="theme"&&this._set_theme(s)}};/**
36
49
  * @license
37
50
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
38
51
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
39
- */const An=[],wr=new Set,Gr=new Set;function Sn(i){return i&&Object.prototype.hasOwnProperty.call(i,"__themes")}function Kh(i){return Sn(customElements.get(i))}function eu(i=[]){return[i].flat(1/0).filter(t=>t instanceof Ur?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function Tn(i,t){return(i||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t))}function In(i){return i.map(t=>t.cssText).join(`
40
- `)}const ci="vaadin-themable-mixin-style";function tu(i,t){const e=document.createElement("style");e.id=ci,e.textContent=In(i),t.content.appendChild(e)}function iu(i){if(!i.shadowRoot)return;const t=i.constructor;if(i instanceof Ke)[...i.shadowRoot.querySelectorAll("style")].forEach(e=>e.remove()),yn(i.shadowRoot,t.elementStyles);else{const e=i.shadowRoot.getElementById(ci),r=t.prototype._template;e.textContent=r.content.getElementById(ci).textContent}}function ru(i){wr.forEach(t=>{const e=t.deref();e instanceof i?iu(e):e||wr.delete(t)})}function On(i){if(i.prototype instanceof Ke)i.elementStyles=i.finalizeStyles(i.styles);else{const t=i.prototype._template;t.content.getElementById(ci).textContent=In(i.getStylesForThis())}Gr.forEach(t=>{const e=customElements.get(t);e!==i&&e.prototype instanceof i&&On(e)})}function su(i,t){const e=i.__themes;return!e||!t?!1:e.some(r=>r.styles.some(s=>t.some(o=>o.cssText===s.cssText)))}function de(i,t,e={}){t=eu(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(i,t,e):An.push({themeFor:i,styles:t,include:e.include,moduleId:e.moduleId}),i&&Gr.forEach(r=>{if(Tn(i,r)&&Kh(r)){const s=customElements.get(r);su(s,t)?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".`),On(s),ru(s)}})}function xr(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():An}function ou(i=""){let t=0;return i.startsWith("lumo-")||i.startsWith("material-")?t=1:i.startsWith("vaadin-")&&(t=2),t}function Nn(i){const t=[];return i.include&&[].concat(i.include).forEach(e=>{const r=xr().find(s=>s.moduleId===e);r?t.push(...Nn(r),...r.styles):console.warn(`Included moduleId ${e} not found in style registry`)},i.styles),t}function nu(i){const t=`${i}-default-theme`,e=xr().filter(r=>r.moduleId!==t&&Tn(r.themeFor,i)).map(r=>Wt(je({},r),{styles:[...Nn(r),...r.styles],includePriority:ou(r.moduleId)})).sort((r,s)=>s.includePriority-r.includePriority);return e.length>0?e:xr().filter(r=>r.moduleId===t)}const Ci=i=>class extends Qh(i){constructor(){super(),wr.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&Gr.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||Sn(this)||tu(this.getStylesForThis(),e)}static finalizeStyles(e){const r=this.getStylesForThis();return e?[...[e].flat(1/0),...r]:r}static getStylesForThis(){const e=i.__themes||[],r=Object.getPrototypeOf(this.prototype),s=(r?r.constructor.__themes:[])||[];this.__themes=[...e,...s,...nu(this.is)];const o=this.__themes.flatMap(n=>n.styles);return o.filter((n,a)=>a===o.lastIndexOf(n))}};/**
52
+ */const Tn=[],wr=new Set,qr=new Set;function In(i){return i&&Object.prototype.hasOwnProperty.call(i,"__themes")}function Qh(i){return In(customElements.get(i))}function eu(i=[]){return[i].flat(1/0).filter(t=>t instanceof Gr?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function On(i,t){return(i||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t))}function Nn(i){return i.map(t=>t.cssText).join(`
53
+ `)}const ui="vaadin-themable-mixin-style";function tu(i,t){const e=document.createElement("style");e.id=ui,e.textContent=Nn(i),t.content.appendChild(e)}function iu(i){if(!i.shadowRoot)return;const t=i.constructor;if(i instanceof Ke)[...i.shadowRoot.querySelectorAll("style")].forEach(e=>e.remove()),xn(i.shadowRoot,t.elementStyles);else{const e=i.shadowRoot.getElementById(ui),r=t.prototype._template;e.textContent=r.content.getElementById(ui).textContent}}function ru(i){wr.forEach(t=>{const e=t.deref();e instanceof i?iu(e):e||wr.delete(t)})}function kn(i){if(i.prototype instanceof Ke)i.elementStyles=i.finalizeStyles(i.styles);else{const t=i.prototype._template;t.content.getElementById(ui).textContent=Nn(i.getStylesForThis())}qr.forEach(t=>{const e=customElements.get(t);e!==i&&e.prototype instanceof i&&kn(e)})}function su(i,t){const e=i.__themes;return!e||!t?!1:e.some(r=>r.styles.some(s=>t.some(o=>o.cssText===s.cssText)))}function de(i,t,e={}){t=eu(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(i,t,e):Tn.push({themeFor:i,styles:t,include:e.include,moduleId:e.moduleId}),i&&qr.forEach(r=>{if(On(i,r)&&Qh(r)){const s=customElements.get(r);su(s,t)?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".`),kn(s),ru(s)}})}function xr(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Tn}function ou(i=""){let t=0;return i.startsWith("lumo-")||i.startsWith("material-")?t=1:i.startsWith("vaadin-")&&(t=2),t}function Mn(i){const t=[];return i.include&&[].concat(i.include).forEach(e=>{const r=xr().find(s=>s.moduleId===e);r?t.push(...Mn(r),...r.styles):console.warn(`Included moduleId ${e} not found in style registry`)},i.styles),t}function nu(i){const t=`${i}-default-theme`,e=xr().filter(r=>r.moduleId!==t&&On(r.themeFor,i)).map(r=>Gt(Ue({},r),{styles:[...Mn(r),...r.styles],includePriority:ou(r.moduleId)})).sort((r,s)=>s.includePriority-r.includePriority);return e.length>0?e:xr().filter(r=>r.moduleId===t)}const Ei=i=>class extends Kh(i){constructor(){super(),wr.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&qr.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||In(this)||tu(this.getStylesForThis(),e)}static finalizeStyles(e){const r=this.getStylesForThis();return e?[...[e].flat(1/0),...r]:r}static getStylesForThis(){const e=i.__themes||[],r=Object.getPrototypeOf(this.prototype),s=(r?r.constructor.__themes:[])||[];this.__themes=[...e,...s,...nu(this.is)];const o=this.__themes.flatMap(n=>n.styles);return o.filter((n,a)=>a===o.lastIndexOf(n))}};/**
41
54
  * @license
42
55
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
43
56
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
44
57
  */const au=(i,...t)=>{const e=document.createElement("style");e.id=i,e.textContent=t.map(r=>r.toString()).join(`
45
- `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",e)},ft=(i,...t)=>{au(`lumo-${i}`,t)};/**
58
+ `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",e)},ct=(i,...t)=>{au(`lumo-${i}`,t)};/**
46
59
  * @license
47
60
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
48
61
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
49
- */const lu=R`
62
+ */const lu=D`
50
63
  :host {
51
64
  /* Base (background) */
52
65
  --lumo-base-color: #fff;
@@ -131,7 +144,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
131
144
  --lumo-disabled-text-color: GrayText;
132
145
  }
133
146
  }
134
- `;ft("color-props",lu);const du=R`
147
+ `;ct("color-props",lu);const du=D`
135
148
  [theme~='dark'] {
136
149
  /* Base (background) */
137
150
  --lumo-base-color: hsl(214, 35%, 21%);
@@ -253,7 +266,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
253
266
  * @license
254
267
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
255
268
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
256
- */const hu=R`
269
+ */const hu=D`
257
270
  :host {
258
271
  /* Square */
259
272
  --lumo-space-xs: 0.25rem;
@@ -276,11 +289,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
276
289
  --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
277
290
  --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
278
291
  }
279
- `;ft("spacing-props",hu);/**
292
+ `;ct("spacing-props",hu);/**
280
293
  * @license
281
294
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
282
295
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
283
- */const uu=R`
296
+ */const uu=D`
284
297
  :host {
285
298
  /* Border radius */
286
299
  --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
@@ -297,7 +310,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
297
310
  /* Clickable element cursor */
298
311
  --lumo-clickable-cursor: default;
299
312
  }
300
- `;R`
313
+ `;D`
301
314
  html {
302
315
  /* Button */
303
316
  --vaadin-button-background: var(--lumo-contrast-5pct);
@@ -380,14 +393,14 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
380
393
  --vaadin-input-field-value-font-size: var(--lumo-font-size-m);
381
394
  --vaadin-input-field-value-font-weight: 500;
382
395
  }
383
- `;ft("style-props",uu);/**
396
+ `;ct("style-props",uu);/**
384
397
  * @license
385
398
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
386
399
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
387
- */const cu=R`
400
+ */const cu=D`
388
401
  @font-face {
389
402
  font-family: 'lumo-icons';
390
- src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABHAAAsAAAAAI6AAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuNY21hcAAAAYgAAAD+AAADymne8hxnbHlmAAACiAAAC+gAABioIzlOlWhlYWQAAA5wAAAAMAAAADZa/6SsaGhlYQAADqAAAAAdAAAAJAbpA4BobXR4AAAOwAAAABAAAAC0q+AAAGxvY2EAAA7QAAAAXAAAAFyF7o1GbWF4cAAADywAAAAfAAAAIAFMAXBuYW1lAAAPTAAAATEAAAIuUUJZCHBvc3QAABCAAAABPQAAAgfdkltveJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+xDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mEO+p/FEMUcxDANKMwIkgMABvgMMAB4nO3SV26EMABF0UsZpjG9d6Y3FpgF5StLYxMTP16WEUvHV1gGIQzQAJKgDFKIfojQ+A6rUb2e0KnXU77qPanWq/LzCXOkOVyn9RyHvWl4YkaTFu1wX5ecHn0GDBkxZsKUGXMWLFmxZsOWHXsOFBw5cebClRt3Hjx58dZ7RRn/I9cUF39Xpb691acRG2piOtUqNZ1P1TCdeJUZatNQW4baNtSO6U+ouoaam96u6hlq31AHhjo01JGhjg11YqhTQ50Z6txQF4a6NNSVoa4NdWOoW0PdGereUA+GWhjq0VBPhno21IuhXg31Zqh3Q30Y6tNQX4b6NtTSKH8BOIRpQQAAeJy1WH1sW9UVv+fG9vPz+7Bf/N6zHcd2/J04jbP6s0lap4kDpB9JWzUUCqxNgaHxpTI6hNhUNLVr17HSISb2D2iAJrWb6FTWahNQdQxRvmHamAR0qibE1E18CG3QaVNFvJ17n+3YIf1AiMQ679x77j3v3HPPPed3H7ER/OsYpw8TmQRIiuQJ8RZK+WjO1B3xaCzla21orY10a+OQ6aHTHtP0zB31mBs1GZ6RNU2uXc7oPL+xdRS9R9X1oK4fVfijdsBqvqF6vd1eLzPrYrYZ57WteF7bPDIc5+ZcJnta+S9i2Vfhs4MaMwZNQmO0Vv7gF/MZcNsCcJp4sJFSwYyAmRuFCmTBDRBUkwGqnlViyjmVBpLqaXhNpt0J5V1JOqMkuqn8WkMHvZX+iOlImiqkBiFVYDrCqINulmkwKb8ry2fkZBBn7FcTlk4ZdfpRZ9MOesLSAakKt0N3g4p2jAL8eIEOOqom/U0lgQRXUl8LtXM7HFkojUIpF0ErVBhcZC1vtyjtpsqr83a8RVcSH+ool8LgcIMjNohmVCACuDs506BdO6WIQeXjUsh1XKZGRNpp9piv3+Givoh00OU6KEV81HUHTLtN093Q+YGlE3wLHWRtMNy9XWqdLm2HKbaNsGzhu+41eswFOjE6WKSk2/1Wpt+qHeM6phbohmVmj3GvpdcVkiy9zbXfzHVqKuDB0IR2P6ZpF+D7dy6YC/9svGmBE5hKB9+X2+hh4iYRMkhGyTqyFc9APmeGQHf043tWQKHkizmwaY5AroTNVJzJDc2SFzUu92kOLsdmKu77vByb8/IjtxmhkMFISRBFISO4XMLJlj4XgGuRXtaHw2FLyHifdSOpisIhJjgkiPBAyJh7lfXTkhEadwk1mUngrOC6MazX7mASeEAPV1FyjEumBOaEDu4DP/ogRDKkiLEV1woVyMeLLKJCEM+FwdCwL4XLcRgdbfkhbzS8BNvXDKzNQiAWgOzagTXF1Eyq+Ci6/TPm/JrNY/59p1epKN4jQFGe0fx+LTMwNVCrAU2VSqnaKYzIiGmWe2Rvp9KDJhncrjLaFce8VCUbyQ1kB9lNfkJ+To6R58mfyd/Ip9ABXohDHqqwEW7A2Mij1ehntLu+h8xMtocjUJcYwoLdtYafv/1Vjy8vjLaLtBfOt3/B931Rexa24e5zstgnyqvZHs69zuhq3vFgRpQVJyN7FuE++RLSeW4xMi+t6Zeo5sIK6S5dlGVRD2hWnGoB3j7OV3lesvNLic8tOnLRSRfRdOna63VJp/1WbYs5dFZjy1AqpGICQEWKmNI+CZNoVTJ7pNop+IZkRrBHgnEmqr3TrEsfw1Gi8LqE+S1aV0SNNwXVVVvuUoU3ld6TLwmditIpvKTU50zSzWwO1h0rL8awnulwTXMYrGDT4aQ1fb4GPkyv5vMEh5Vec6yw0AMXnfcx1l/rfVZaKLDi0W4j/HfeyGZuHOf1IUGW1udizU2leXY0OmLpVDpVKJfKpZzPRKHgEBzpXAUKWYipoIeBdl3JfLZVBizEqWun1i4ZGFiyduq3DebayXsmJ+95gBG4+Urm1a2SdpKV57lP2wZyZqI+FAlfUtO+NCmgdWhMOS1gDY+jHWnBhwjBQLMEXxmLbx6t9JXTWDLtsSxgisfErqvQMbbBoywZmeyLeWe8OWNydFDxzMx4lMGRtX0xN3YFJkeW+O0bascGNwwObtjCCOzrzAVWjSwN2K9cpyn9o5cZOXMmkAuM85EbNHnJyHhfLLCnPhxJYw9eoIMkyC3l+4ZuY5ig7lW2oYUynDgg+Xrk+++Xe3zSgRYetnyuy+KbfjiB+GAAtZ8HHXmtijZfFFgrujhmOs2qkXvuSV6WqA1WLYqhPHOfsa26rklKFqbAGL2dOIlGurB6LWFVFd/KoBBaYTFYVBs93hZRFlrG5Ex4NVFIJguJVvqnBW2kNNvFGx90YUcSEvyZSMDeZjc0xYlEYy8+hHcWx9YrZOaPPyCGepP5Q34aXnGBr8d1QhSf4yjtiebZqNJfEYl4SY6dDRb8WSguLZW9ZQtBpoW4hX0QMyB2KmsYcOh8HMQxBn288oZ6BXV0GOq/ClKsC6T8g9X3OFKZNkJrYkOx2lEk+KNDy953+wGHXuGGzhGZ+uLK8FVrQkbtKBv+9EztU2sgTCNpvXMdJjqJ4tkdw+x00dPKkZ1QR254x7GQoFmvfakSnL3gCc5nREly2mN2pyTLMacMipNT7YInGU7JzlN2p9N+yinXTirOKEvPUafSWMNDmCf9pIQYaG19DSxKGqvAQ+xg60iabEm5MheUU2n+HxO4TDDbjnw6xxK8QzfhbHXq8pWVqanKysun9s6ztdt7sivGqruqYyuyPS6Hw9XehGt6q+l0dT0jvaFMZjiTuTHo7+vdtHJTb58/2ML+IxHt9/n9vv5owiWKrrbWD+sakKxhKoYzxF5f7y9INxki42QNuYrVFDPfvqxyY83xWNMV+ZxPSMWb62W+wPSCJwkDDl1WZOGW84nAEo4A7HjB/uWmOdayRFnKjazi668u/ajJlUd87aPk048Crlu4j1Oh9gxdL3Z1inNPIt2xvKNlsU4hn54Z5Y6YbTDu9hHOvkcFAb35fU6hNovKOrtQmcvbNV9/Ntfv5xf4atDWOOTX6CSHZ08xujhPs51+f9zvf1YLIGoPPKvxVh0TSLAXzzUBFiXs7GJVB7vH5/PAXznd4+vx4a95h3qI/oYIpIdMkA1kC7kVLS3GhWI5bwj1fIaVKG/Ei5gXWOjhtcJbzFthaMQrwIcIRj0ppvO6yV95icu9j/YPDNySWp7w+kOr95R1RfGpfVlDVhS/2geJ5Umv2mn0rkxBvzvgdisndJXaVF1X5z5jdHGe2n/QnYo8+b2uaMivhowgjYcLnVqnrEpQezsieyVZ6ooETbdJO6ip+cORLpes6BL82/qg8VHbo45B/vch/YQeJX28QvEANR3sQhxh+TcMCEd4l8BKF7uID7KM05tRYlIHHXY63YIi2fXQyj5XSBbcMeewKLpttkJ2Syz33YJfDdJdSYkqHbYb3VHRJgTV8c0TAy67YHeK7htwOKWax5co7Do8Pfh1tKdx1g5j9o6TZeQyMo27FuW3vbYsbY/Op3AG06DMKionRlpgHzCEeMmLU5opRrCyS670RzppZeW5p/iT3jL3lB4O63QS6dzzh8SAtOqwGJK3bv+lGJTWbr++471wsVKMRJCEK5H+cLg/Qp+IDsdqs7HhKD7hMXyyrD/Li8RjRqimHhI7HP2vSDZn9brplySb0L9dgpURSwmSiBFhilrwB8OA9gZ29NkRO/669parW9e7XZDxwvgRu+SE7zgl+xG5p/HtRqJ3cdwSZwsbwTA1WT3jEdyPN0sWxvDGy+xovIzHosnwc9LePf9tywun0fMkWaFYZbB4oovRq8VyKYUBkMVXqVhBHSylQ0wanvla3+rQ1XbR8ZzstYOo2Mf7vjk8ftcGDWxdSdXx0cAVveHg1TZFtEOn8ntBBFs11V++vuLUQ5qz+U6d/oUjpGIdNjOQhJXNqn5YCS1Yy5PofLGEs6Js2yOKe2yyOLxtaGjbt7cNIURCEDdWfaQ6lurtRYbePCuItv1iUNxvE4Vdw2zQ0LZhdv2fxjHp5uAmdlBpopHXoJGU8e6BRc0yi+PztkaHTRRrW1m2hcfFLlEUzzD+DGczjEVCg9jEQZhFcdAL2DjD+DPiSWQzjM2I89g5RXdxfECS+CIWy1hTGmFs6EIbkv/pbtkfU3aPrZ+4c2Lizn07qufym/L5TTdtyuU2/We3HPeDsjtb3bGPSSfW31aX3LQpX/d9sL7fWYpRJPBbCJavYjrFjj0rT2GWCZjf6Ytffr8beXl/HYeyGwJiIK8FLDHbfo65xGz7YCSRqCQSkbbHI5eUU5X4sjj+zrU9aHnRlEnrd7YGptd0x2Jf/RbH9PAiovadckSnEsJ661OgPFuH9B4O6e202vIN0h9xHXSJh1wRP5Vqv1uI6Wn9Gxmrwzqrii1gqhEscJanuAlGas+s2/uzvetgS72NpHZ6aHbZstmh/wPq1seEeJxjYGRgYADi31ySEvH8Nl8ZuJlfAEUYalQ3NCLo/6+ZpzLdAnI5GJhAogAiBgraeJxjYGRgYA76nwUkXzAAAfNUBkYGVKALAFb4A3EAAAB4nGNgYGBgfjG0MAAMzihlAAAAAABOAJoA6AEKASwBTgFwAZoBxAHuAhoCnALoBJoEvATWBPIFDgUqBXoF0AX+BkQGlga4BwgHagfiCGoIpAi8CVAJmAoQCiwKVgqQCtYLGAtOC4gL6AwuDFR4nGNgZGBg0GVMYRBlAAEmIOYCQgaG/2A+AwAYygG+AHicbZE9TsMwGIbf9A/RSggEYmHxAgtq+jN2ZGj3Dt3T1GlTOXHkuBW9AyfgEByCgTNwCA7BW/NJlVBtyd/jx+8XKwmAa3whwnFE6Ib1OBq44O6Pm6Qb4Rb5QbiNHh6FO/RD4S6eMRHu4RaaT4halzR3eBVu4Apvwk36d+EW+UO4jXt8Cnfov4W7WOBHuIen6MXsCtvPU1vWc73emcSdxIkW2tW5LdUoHp7kTJfaJV6v1PKg6v167H2mMmcLNbWl18ZYVTm71amPN95Xk8EgEx+ntoDBDgUs+siRspaoMef7rukNEriziXNuwS7Hmoe9wggxv+e55IzJMqQTeNYV00scuNbY8+YxrUfGfcaMZb/CNPQe04bT0lThbEuT0sfYhK6K/23Amf3Lx+H24hcj4GScAAAAeJxtjuduwzAMhH2NnTqOk+6993TfSZFY24giGZTVon36eiRFf5SAiO/A05HBWtBXEvxfGdYwQIgIQ6wjxggJxkgxwRQb2MQWtrGDXexhHwc4xBGOcYJTnOEcF7jEFa5xg1vc4R4PeMQTnvGCV2R4C1Khy9xkkkxNnPRC03s97pHLvKgTYXJNmbKfZom9o8POEffsq0Qw28+ltcPe2uHS2rGvRjPBmSwE1+GMtI6l0GSU4JEsSM4XgudpQx9sTRf3K9rAyUr0962UryKprZwPpM0jyda5uP2qrVBjxSLPCmGUplixrdpBSKqsI2oO4gF9Udq8TJVOzDSpcEHGR4vSeJdaVsSkMl26OqoKa6jttQ0rLb6a5l3YjO2QqV01YXLlNy2XDR0JlkXojbJTb/5GDX3V+kPviIPgB9AUks0AAAA=)
403
+ 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==)
391
404
  format('woff');
392
405
  font-weight: normal;
393
406
  font-style: normal;
@@ -417,33 +430,31 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
417
430
  --lumo-icons-cog: '\\ea15';
418
431
  --lumo-icons-cross: '\\ea16';
419
432
  --lumo-icons-download: '\\ea17';
420
- --lumo-icons-drag-handle: '\\ea18';
421
- --lumo-icons-dropdown: '\\ea19';
422
- --lumo-icons-edit: '\\ea1a';
423
- --lumo-icons-error: '\\ea1b';
424
- --lumo-icons-eye: '\\ea1c';
425
- --lumo-icons-eye-disabled: '\\ea1d';
426
- --lumo-icons-menu: '\\ea1e';
427
- --lumo-icons-minus: '\\ea1f';
428
- --lumo-icons-ordered-list: '\\ea20';
429
- --lumo-icons-phone: '\\ea21';
430
- --lumo-icons-photo: '\\ea22';
431
- --lumo-icons-play: '\\ea23';
432
- --lumo-icons-plus: '\\ea24';
433
- --lumo-icons-redo: '\\ea25';
434
- --lumo-icons-reload: '\\ea26';
435
- --lumo-icons-resize-handle: '\\ea27';
436
- --lumo-icons-search: '\\ea28';
437
- --lumo-icons-undo: '\\ea29';
438
- --lumo-icons-unordered-list: '\\ea2a';
439
- --lumo-icons-upload: '\\ea2b';
440
- --lumo-icons-user: '\\ea2c';
441
- }
442
- `;ft("font-icons",cu);/**
433
+ --lumo-icons-dropdown: '\\ea18';
434
+ --lumo-icons-edit: '\\ea19';
435
+ --lumo-icons-error: '\\ea1a';
436
+ --lumo-icons-eye: '\\ea1b';
437
+ --lumo-icons-eye-disabled: '\\ea1c';
438
+ --lumo-icons-menu: '\\ea1d';
439
+ --lumo-icons-minus: '\\ea1e';
440
+ --lumo-icons-ordered-list: '\\ea1f';
441
+ --lumo-icons-phone: '\\ea20';
442
+ --lumo-icons-photo: '\\ea21';
443
+ --lumo-icons-play: '\\ea22';
444
+ --lumo-icons-plus: '\\ea23';
445
+ --lumo-icons-redo: '\\ea24';
446
+ --lumo-icons-reload: '\\ea25';
447
+ --lumo-icons-search: '\\ea26';
448
+ --lumo-icons-undo: '\\ea27';
449
+ --lumo-icons-unordered-list: '\\ea28';
450
+ --lumo-icons-upload: '\\ea29';
451
+ --lumo-icons-user: '\\ea2a';
452
+ }
453
+ `;ct("font-icons",cu);/**
443
454
  * @license
444
455
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
445
456
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
446
- */const fu=R`
457
+ */const fu=D`
447
458
  :host {
448
459
  --lumo-size-xs: 1.625rem;
449
460
  --lumo-size-s: 1.875rem;
@@ -458,11 +469,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
458
469
  /* For backwards compatibility */
459
470
  --lumo-icon-size: var(--lumo-icon-size-m);
460
471
  }
461
- `;ft("sizing-props",fu);/**
472
+ `;ct("sizing-props",fu);/**
462
473
  * @license
463
474
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
464
475
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
465
- */const pu=R`
476
+ */const pu=D`
466
477
  :host {
467
478
  /* prettier-ignore */
468
479
  --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
@@ -482,7 +493,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
482
493
  --lumo-line-height-s: 1.375;
483
494
  --lumo-line-height-m: 1.625;
484
495
  }
485
- `,mu=R`
496
+ `,mu=D`
486
497
  body,
487
498
  :host {
488
499
  font-family: var(--lumo-font-family);
@@ -574,7 +585,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
574
585
  border-left: none;
575
586
  border-right: 2px solid var(--lumo-contrast-30pct);
576
587
  }
577
- `;de("",mu,{moduleId:"lumo-typography"});ft("typography-props",pu);const kn=R`
588
+ `;de("",mu,{moduleId:"lumo-typography"});ct("typography-props",pu);const Ln=D`
578
589
  :host {
579
590
  display: flex;
580
591
  align-items: center;
@@ -658,7 +669,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
658
669
  width: var(--lumo-icon-size-m);
659
670
  height: var(--lumo-icon-size-m);
660
671
  }
661
- `;de("vaadin-item",kn,{moduleId:"lumo-item"});const _u=R`
672
+ `;de("vaadin-item",Ln,{moduleId:"lumo-item"});const _u=D`
662
673
  :host {
663
674
  transition: background-color 100ms;
664
675
  overflow: hidden;
@@ -670,11 +681,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
670
681
  :host([focused]:not([disabled])) {
671
682
  box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
672
683
  }
673
- `;de("vaadin-combo-box-item",[kn,_u],{moduleId:"lumo-combo-box-item"});/**
684
+ `;de("vaadin-combo-box-item",[Ln,_u],{moduleId:"lumo-combo-box-item"});/**
674
685
  * @license
675
686
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
676
687
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
677
- */const gu=R`
688
+ */const gu=D`
678
689
  [part~='loader'] {
679
690
  box-sizing: border-box;
680
691
  width: var(--lumo-icon-size-s);
@@ -720,7 +731,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
720
731
  * @license
721
732
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
722
733
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
723
- */const Wr=R`
734
+ */const Yr=D`
724
735
  :host {
725
736
  top: var(--lumo-space-m);
726
737
  right: var(--lumo-space-m);
@@ -785,11 +796,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
785
796
  opacity: 1;
786
797
  }
787
798
  }
788
- `;de("",Wr,{moduleId:"lumo-overlay"});/**
799
+ `;de("",Yr,{moduleId:"lumo-overlay"});/**
789
800
  * @license
790
801
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
791
802
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
792
- */const qr=R`
803
+ */const Zr=D`
793
804
  :host([opening]),
794
805
  :host([closing]) {
795
806
  animation: 0.14s lumo-overlay-dummy-animation;
@@ -819,7 +830,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
819
830
  opacity: 0;
820
831
  }
821
832
  }
822
- `;de("",qr,{moduleId:"lumo-menu-overlay-core"});const bu=R`
833
+ `;de("",Zr,{moduleId:"lumo-menu-overlay-core"});const bu=D`
823
834
  /* Small viewport (bottom sheet) styles */
824
835
  /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
825
836
  @media (max-width: 450px), (max-height: 450px) {
@@ -881,7 +892,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
881
892
  transform: translateY(150%);
882
893
  }
883
894
  }
884
- `,vu=[Wr,qr,bu];de("",vu,{moduleId:"lumo-menu-overlay"});const yu=R`
895
+ `,vu=[Yr,Zr,bu];de("",vu,{moduleId:"lumo-menu-overlay"});const yu=D`
885
896
  [part='content'] {
886
897
  padding: 0;
887
898
  }
@@ -902,7 +913,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
902
913
  :host([bottom-aligned]) [part~='overlay'] {
903
914
  margin-bottom: var(--lumo-space-xs);
904
915
  }
905
- `,wu=R`
916
+ `,wu=D`
906
917
  [part~='loader'] {
907
918
  position: absolute;
908
919
  z-index: 1;
@@ -910,12 +921,12 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
910
921
  top: var(--lumo-space-s);
911
922
  margin-inline: auto 0;
912
923
  }
913
- `;de("vaadin-combo-box-overlay",[Wr,qr,yu,gu,wu,R`
924
+ `;de("vaadin-combo-box-overlay",[Yr,Zr,yu,gu,wu,D`
914
925
  :host {
915
926
  --_vaadin-combo-box-items-container-border-width: var(--lumo-space-xs);
916
927
  --_vaadin-combo-box-items-container-border-style: solid;
917
928
  }
918
- `],{moduleId:"lumo-combo-box-overlay"});de("vaadin-input-container",R`
929
+ `],{moduleId:"lumo-combo-box-overlay"});de("vaadin-input-container",D`
919
930
  :host {
920
931
  background: var(--_background);
921
932
  padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
@@ -1097,7 +1108,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
1097
1108
  * @license
1098
1109
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1099
1110
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1100
- */const Ln=R`
1111
+ */const Bn=D`
1101
1112
  [part$='button'] {
1102
1113
  flex: none;
1103
1114
  width: 1em;
@@ -1124,11 +1135,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
1124
1135
  font-family: 'lumo-icons';
1125
1136
  display: block;
1126
1137
  }
1127
- `;de("",Ln,{moduleId:"lumo-field-button"});/**
1138
+ `;de("",Bn,{moduleId:"lumo-field-button"});/**
1128
1139
  * @license
1129
1140
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1130
1141
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1131
- */const xu=R`
1142
+ */const xu=D`
1132
1143
  :host {
1133
1144
  --_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
1134
1145
  }
@@ -1188,7 +1199,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
1188
1199
  * @license
1189
1200
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1190
1201
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1191
- */const Mn=R`
1202
+ */const Rn=D`
1192
1203
  [part='label'] {
1193
1204
  align-self: flex-start;
1194
1205
  color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
@@ -1300,11 +1311,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
1300
1311
  margin-left: 0;
1301
1312
  margin-right: calc(var(--lumo-border-radius-m) / 4);
1302
1313
  }
1303
- `;de("",Mn,{moduleId:"lumo-required-field"});/**
1314
+ `;de("",Rn,{moduleId:"lumo-required-field"});/**
1304
1315
  * @license
1305
1316
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1306
1317
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1307
- */const Pu=R`
1318
+ */const Pu=D`
1308
1319
  :host {
1309
1320
  --lumo-text-field-size: var(--lumo-size-m);
1310
1321
  color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
@@ -1435,11 +1446,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
1435
1446
  [part='clear-button']::before {
1436
1447
  content: var(--lumo-icons-cross);
1437
1448
  }
1438
- `,Bn=[Mn,Ln,xu,Pu];de("",Bn,{moduleId:"lumo-input-field-shared-styles"});const Eu=R`
1449
+ `,Dn=[Rn,Bn,xu,Pu];de("",Dn,{moduleId:"lumo-input-field-shared-styles"});const Eu=D`
1439
1450
  [part='toggle-button']::before {
1440
1451
  content: var(--lumo-icons-dropdown);
1441
1452
  }
1442
- `;de("vaadin-combo-box",[Bn,Eu],{moduleId:"lumo-combo-box"});/**
1453
+ `;de("vaadin-combo-box",[Dn,Eu],{moduleId:"lumo-combo-box"});/**
1443
1454
  @license
1444
1455
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1445
1456
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1455,7 +1466,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1455
1466
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1456
1467
  Code distributed by Google as part of the polymer project is also
1457
1468
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1458
- */let Cu=/(url\()([^)]*)(\))/g,Au=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Jt,be;function Tt(i,t){if(i&&Au.test(i)||i==="//")return i;if(Jt===void 0){Jt=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",Jt=e.href==="http://a/c%20d"}catch(e){}}if(t||(t=document.baseURI||window.location.href),Jt)try{return new URL(i,t).href}catch(e){return i}return be||(be=document.implementation.createHTMLDocument("temp"),be.base=be.createElement("base"),be.head.appendChild(be.base),be.anchor=be.createElement("a"),be.body.appendChild(be.anchor)),be.base.href=t,be.anchor.href=i,be.anchor.href||i}function Yr(i,t){return i.replace(Cu,function(e,r,s,o){return r+"'"+Tt(s.replace(/["']/g,""),t)+"'"+o})}function Xr(i){return i.substring(0,i.lastIndexOf("/")+1)}/**
1469
+ */let Cu=/(url\()([^)]*)(\))/g,Au=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Xt,be;function St(i,t){if(i&&Au.test(i)||i==="//")return i;if(Xt===void 0){Xt=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",Xt=e.href==="http://a/c%20d"}catch(e){}}if(t||(t=document.baseURI||window.location.href),Xt)try{return new URL(i,t).href}catch(e){return i}return be||(be=document.implementation.createHTMLDocument("temp"),be.base=be.createElement("base"),be.head.appendChild(be.base),be.anchor=be.createElement("a"),be.body.appendChild(be.anchor)),be.base.href=t,be.anchor.href=i,be.anchor.href||i}function Xr(i,t){return i.replace(Cu,function(e,r,s,o){return r+"'"+St(s.replace(/["']/g,""),t)+"'"+o})}function Jr(i){return i.substring(0,i.lastIndexOf("/")+1)}/**
1459
1470
  @license
1460
1471
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1461
1472
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1463,7 +1474,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1463
1474
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1464
1475
  Code distributed by Google as part of the polymer project is also
1465
1476
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1466
- */const Su=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const Tu=Su&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const i=new CSSStyleSheet;i.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[i],t.shadowRoot.adoptedStyleSheets[0]===i}catch(i){return!1}})();let Iu=window.Polymer&&window.Polymer.rootPath||Xr(document.baseURI||window.location.href),fi=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let Pr=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Ou=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Nu=window.Polymer&&window.Polymer.legacyOptimizations||!1,ku=window.Polymer&&window.Polymer.legacyWarnings||!1,Lu=window.Polymer&&window.Polymer.syncInitialRender||!1,Er=window.Polymer&&window.Polymer.legacyUndefined||!1,Mu=window.Polymer&&window.Polymer.orderedComputed||!1,Xs=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Bu=window.Polymer&&window.Polymer.fastDomIf||!1;window.Polymer&&window.Polymer.suppressTemplateNotifications;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let Hu=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
1477
+ */const Su=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const Tu=Su&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const i=new CSSStyleSheet;i.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[i],t.shadowRoot.adoptedStyleSheets[0]===i}catch(i){return!1}})();let Iu=window.Polymer&&window.Polymer.rootPath||Jr(document.baseURI||window.location.href),ci=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let Pr=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Ou=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Nu=window.Polymer&&window.Polymer.legacyOptimizations||!1,ku=window.Polymer&&window.Polymer.legacyWarnings||!1,Mu=window.Polymer&&window.Polymer.syncInitialRender||!1,Er=window.Polymer&&window.Polymer.legacyUndefined||!1,Lu=window.Polymer&&window.Polymer.orderedComputed||!1,Js=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Bu=window.Polymer&&window.Polymer.fastDomIf||!1;window.Polymer&&window.Polymer.suppressTemplateNotifications;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let Ru=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
1467
1478
  @license
1468
1479
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1469
1480
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1471,7 +1482,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1471
1482
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1472
1483
  Code distributed by Google as part of the polymer project is also
1473
1484
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1474
- */let Ru=0;const oe=function(i){let t=i.__mixinApplications;t||(t=new WeakMap,i.__mixinApplications=t);let e=Ru++;function r(s){let o=s.__mixinSet;if(o&&o[e])return s;let n=t,a=n.get(s);if(!a){a=i(s),n.set(s,a);let l=Object.create(a.__mixinSet||o||null);l[e]=!0,a.__mixinSet=l}return a}return r};/**
1485
+ */let Du=0;const oe=function(i){let t=i.__mixinApplications;t||(t=new WeakMap,i.__mixinApplications=t);let e=Du++;function r(s){let o=s.__mixinSet;if(o&&o[e])return s;let n=t,a=n.get(s);if(!a){a=i(s),n.set(s,a);let l=Object.create(a.__mixinSet||o||null);l[e]=!0,a.__mixinSet=l}return a}return r};/**
1475
1486
  @license
1476
1487
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1477
1488
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1479,7 +1490,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1479
1490
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1480
1491
  Code distributed by Google as part of the polymer project is also
1481
1492
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1482
- */let Zr={},Hn={};function Zs(i,t){Zr[i]=Hn[i.toLowerCase()]=t}function Js(i){return Zr[i]||Hn[i.toLowerCase()]}function Fu(i){i.querySelector("style")&&console.warn("dom-module %s has style outside template",i.id)}class Ht extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,e){if(t){let r=Js(t);return r&&e?r.querySelector(e):r}return null}attributeChangedCallback(t,e,r,s){e!==r&&this.register()}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=Tt(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=Xr(e)}return this.__assetpath}register(t){if(t=t||this.id,t){if(Pr&&Js(t)!==void 0)throw Zs(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,Zs(t,this),Fu(this)}}}Ht.prototype.modules=Zr;customElements.define("dom-module",Ht);/**
1493
+ */let Kr={},Hn={};function Ks(i,t){Kr[i]=Hn[i.toLowerCase()]=t}function Qs(i){return Kr[i]||Hn[i.toLowerCase()]}function Hu(i){i.querySelector("style")&&console.warn("dom-module %s has style outside template",i.id)}class Bt extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,e){if(t){let r=Qs(t);return r&&e?r.querySelector(e):r}return null}attributeChangedCallback(t,e,r,s){e!==r&&this.register()}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=St(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=Jr(e)}return this.__assetpath}register(t){if(t=t||this.id,t){if(Pr&&Qs(t)!==void 0)throw Ks(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,Ks(t,this),Hu(this)}}}Bt.prototype.modules=Kr;customElements.define("dom-module",Bt);/**
1483
1494
  @license
1484
1495
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1485
1496
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1487,7 +1498,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1487
1498
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1488
1499
  Code distributed by Google as part of the polymer project is also
1489
1500
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1490
- */const Du="link[rel=import][type~=css]",zu="include",Qs="shady-unscoped";function Rn(i){return Ht.import(i)}function Ks(i){let t=i.body?i.body:i;const e=Yr(t.textContent,i.baseURI),r=document.createElement("style");return r.textContent=e,r}function Vu(i){const t=i.trim().split(/\s+/),e=[];for(let r=0;r<t.length;r++)e.push(...$u(t[r]));return e}function $u(i){const t=Rn(i);if(!t)return console.warn("Could not find style data in module named",i),[];if(t._styles===void 0){const e=[];e.push(...Dn(t));const r=t.querySelector("template");r&&e.push(...Fn(r,t.assetpath)),t._styles=e}return t._styles}function Fn(i,t){if(!i._styles){const e=[],r=i.content.querySelectorAll("style");for(let s=0;s<r.length;s++){let o=r[s],n=o.getAttribute(zu);n&&e.push(...Vu(n).filter(function(a,l,d){return d.indexOf(a)===l})),t&&(o.textContent=Yr(o.textContent,t)),e.push(o)}i._styles=e}return i._styles}function Uu(i){let t=Rn(i);return t?Dn(t):[]}function Dn(i){const t=[],e=i.querySelectorAll(Du);for(let r=0;r<e.length;r++){let s=e[r];if(s.import){const o=s.import,n=s.hasAttribute(Qs);if(n&&!o._unscopedStyle){const a=Ks(o);a.setAttribute(Qs,""),o._unscopedStyle=a}else o._style||(o._style=Ks(o));t.push(n?o._unscopedStyle:o._style)}}return t}/**
1501
+ */const Fu="link[rel=import][type~=css]",zu="include",eo="shady-unscoped";function Fn(i){return Bt.import(i)}function to(i){let t=i.body?i.body:i;const e=Xr(t.textContent,i.baseURI),r=document.createElement("style");return r.textContent=e,r}function Vu(i){const t=i.trim().split(/\s+/),e=[];for(let r=0;r<t.length;r++)e.push(...$u(t[r]));return e}function $u(i){const t=Fn(i);if(!t)return console.warn("Could not find style data in module named",i),[];if(t._styles===void 0){const e=[];e.push(...Vn(t));const r=t.querySelector("template");r&&e.push(...zn(r,t.assetpath)),t._styles=e}return t._styles}function zn(i,t){if(!i._styles){const e=[],r=i.content.querySelectorAll("style");for(let s=0;s<r.length;s++){let o=r[s],n=o.getAttribute(zu);n&&e.push(...Vu(n).filter(function(a,l,d){return d.indexOf(a)===l})),t&&(o.textContent=Xr(o.textContent,t)),e.push(o)}i._styles=e}return i._styles}function Uu(i){let t=Fn(i);return t?Vn(t):[]}function Vn(i){const t=[],e=i.querySelectorAll(Fu);for(let r=0;r<e.length;r++){let s=e[r];if(s.import){const o=s.import,n=s.hasAttribute(eo);if(n&&!o._unscopedStyle){const a=to(o);a.setAttribute(eo,""),o._unscopedStyle=a}else o._style||(o._style=to(o));t.push(n?o._unscopedStyle:o._style)}}return t}/**
1491
1502
  @license
1492
1503
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1493
1504
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1495,7 +1506,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1495
1506
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1496
1507
  Code distributed by Google as part of the polymer project is also
1497
1508
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1498
- */const Fe=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?i=>ShadyDOM.patch(i):i=>i;/**
1509
+ */const De=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?i=>ShadyDOM.patch(i):i=>i;/**
1499
1510
  @license
1500
1511
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1501
1512
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1503,7 +1514,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1503
1514
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1504
1515
  Code distributed by Google as part of the polymer project is also
1505
1516
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1506
- */function Cr(i){return i.indexOf(".")>=0}function $e(i){let t=i.indexOf(".");return t===-1?i:i.slice(0,t)}function ju(i,t){return i.indexOf(t+".")===0}function pi(i,t){return t.indexOf(i+".")===0}function mi(i,t,e){return t+e.slice(i.length)}function wt(i){if(Array.isArray(i)){let t=[];for(let e=0;e<i.length;e++){let r=i[e].toString().split(".");for(let s=0;s<r.length;s++)t.push(r[s])}return t.join(".")}else return i}function zn(i){return Array.isArray(i)?wt(i).split("."):i.toString().split(".")}function me(i,t,e){let r=i,s=zn(t);for(let o=0;o<s.length;o++){if(!r)return;let n=s[o];r=r[n]}return e&&(e.path=s.join(".")),r}function eo(i,t,e){let r=i,s=zn(t),o=s[s.length-1];if(s.length>1){for(let n=0;n<s.length-1;n++){let a=s[n];if(r=r[a],!r)return}r[o]=e}else r[t]=e;return s.join(".")}/**
1517
+ */function Cr(i){return i.indexOf(".")>=0}function Ve(i){let t=i.indexOf(".");return t===-1?i:i.slice(0,t)}function ju(i,t){return i.indexOf(t+".")===0}function fi(i,t){return t.indexOf(i+".")===0}function pi(i,t,e){return t+e.slice(i.length)}function yt(i){if(Array.isArray(i)){let t=[];for(let e=0;e<i.length;e++){let r=i[e].toString().split(".");for(let s=0;s<r.length;s++)t.push(r[s])}return t.join(".")}else return i}function $n(i){return Array.isArray(i)?yt(i).split("."):i.toString().split(".")}function me(i,t,e){let r=i,s=$n(t);for(let o=0;o<s.length;o++){if(!r)return;let n=s[o];r=r[n]}return e&&(e.path=s.join(".")),r}function io(i,t,e){let r=i,s=$n(t),o=s[s.length-1];if(s.length>1){for(let n=0;n<s.length-1;n++){let a=s[n];if(r=r[a],!r)return}r[o]=e}else r[t]=e;return s.join(".")}/**
1507
1518
  @license
1508
1519
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1509
1520
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1511,7 +1522,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1511
1522
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1512
1523
  Code distributed by Google as part of the polymer project is also
1513
1524
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1514
- */const _i={},Gu=/-[a-z]/g,Wu=/([A-Z])/g;function Vn(i){return _i[i]||(_i[i]=i.indexOf("-")<0?i:i.replace(Gu,t=>t[1].toUpperCase()))}function Ai(i){return _i[i]||(_i[i]=i.replace(Wu,"-$1").toLowerCase())}/**
1525
+ */const mi={},Gu=/-[a-z]/g,Wu=/([A-Z])/g;function Un(i){return mi[i]||(mi[i]=i.indexOf("-")<0?i:i.replace(Gu,t=>t[1].toUpperCase()))}function Ci(i){return mi[i]||(mi[i]=i.replace(Wu,"-$1").toLowerCase())}/**
1515
1526
  @license
1516
1527
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1517
1528
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1519,7 +1530,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1519
1530
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1520
1531
  Code distributed by Google as part of the polymer project is also
1521
1532
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1522
- */let qu=0,$n=0,et=[],Yu=0,Ar=!1,Un=document.createTextNode("");new window.MutationObserver(Xu).observe(Un,{characterData:!0});function Xu(){Ar=!1;const i=et.length;for(let t=0;t<i;t++){let e=et[t];if(e)try{e()}catch(r){setTimeout(()=>{throw r})}}et.splice(0,i),$n+=i}const Zu={run(i){return Ar||(Ar=!0,Un.textContent=Yu++),et.push(i),qu++},cancel(i){const t=i-$n;if(t>=0){if(!et[t])throw new Error("invalid async handle: "+i);et[t]=null}}};/**
1533
+ */let qu=0,jn=0,Qe=[],Yu=0,Ar=!1,Gn=document.createTextNode("");new window.MutationObserver(Zu).observe(Gn,{characterData:!0});function Zu(){Ar=!1;const i=Qe.length;for(let t=0;t<i;t++){let e=Qe[t];if(e)try{e()}catch(r){setTimeout(()=>{throw r})}}Qe.splice(0,i),jn+=i}const Xu={run(i){return Ar||(Ar=!0,Gn.textContent=Yu++),Qe.push(i),qu++},cancel(i){const t=i-jn;if(t>=0){if(!Qe[t])throw new Error("invalid async handle: "+i);Qe[t]=null}}};/**
1523
1534
  @license
1524
1535
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1525
1536
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1527,7 +1538,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1527
1538
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1528
1539
  Code distributed by Google as part of the polymer project is also
1529
1540
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1530
- */const Ju=Zu,jn=oe(i=>{class t extends i{static createProperties(r){const s=this.prototype;for(let o in r)o in s||s._createPropertyAccessor(o)}static attributeNameForProperty(r){return r.toLowerCase()}static typeForProperty(r){}_createPropertyAccessor(r,s){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,s))}_addPropertyToAttributeMap(r){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let s=this.__dataAttributes[r];return s||(s=this.constructor.attributeNameForProperty(r),this.__dataAttributes[s]=r),s}_definePropertyAccessor(r,s){Object.defineProperty(this,r,{get(){return this.__data[r]},set:s?function(){}:function(o){this._setPendingProperty(r,o,!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,s){this._setPendingProperty(r,s)&&this._invalidateProperties()}_getProperty(r){return this.__data[r]}_setPendingProperty(r,s,o){let n=this.__data[r],a=this._shouldPropertyChange(r,s,n);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(r in this.__dataOld)&&(this.__dataOld[r]=n),this.__data[r]=s,this.__dataPending[r]=s),a}_isPropertyPending(r){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(r))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Ju.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,s=this.__dataPending,o=this.__dataOld;this._shouldPropertiesChange(r,s,o)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(r,s,o)),this.__dataCounter--}_shouldPropertiesChange(r,s,o){return!!s}_propertiesChanged(r,s,o){}_shouldPropertyChange(r,s,o){return o!==s&&(o===o||s===s)}attributeChangedCallback(r,s,o,n){s!==o&&this._attributeToProperty(r,o),super.attributeChangedCallback&&super.attributeChangedCallback(r,s,o,n)}_attributeToProperty(r,s,o){if(!this.__serializing){const n=this.__dataAttributes,a=n&&n[r]||r;this[a]=this._deserializeValue(s,o||this.constructor.typeForProperty(a))}}_propertyToAttribute(r,s,o){this.__serializing=!0,o=arguments.length<3?this[r]:o,this._valueToNodeAttribute(this,o,s||this.constructor.attributeNameForProperty(r)),this.__serializing=!1}_valueToNodeAttribute(r,s,o){const n=this._serializeValue(s);(o==="class"||o==="name"||o==="slot")&&(r=Fe(r)),n===void 0?r.removeAttribute(o):r.setAttribute(o,n===""&&window.trustedTypes?window.trustedTypes.emptyScript:n)}_serializeValue(r){switch(typeof r){case"boolean":return r?"":void 0;default:return r!=null?r.toString():void 0}}_deserializeValue(r,s){switch(s){case Boolean:return r!==null;case Number:return Number(r);default:return r}}}return t});/**
1541
+ */const Ju=Xu,Wn=oe(i=>{class t extends i{static createProperties(r){const s=this.prototype;for(let o in r)o in s||s._createPropertyAccessor(o)}static attributeNameForProperty(r){return r.toLowerCase()}static typeForProperty(r){}_createPropertyAccessor(r,s){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,s))}_addPropertyToAttributeMap(r){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let s=this.__dataAttributes[r];return s||(s=this.constructor.attributeNameForProperty(r),this.__dataAttributes[s]=r),s}_definePropertyAccessor(r,s){Object.defineProperty(this,r,{get(){return this.__data[r]},set:s?function(){}:function(o){this._setPendingProperty(r,o,!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,s){this._setPendingProperty(r,s)&&this._invalidateProperties()}_getProperty(r){return this.__data[r]}_setPendingProperty(r,s,o){let n=this.__data[r],a=this._shouldPropertyChange(r,s,n);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(r in this.__dataOld)&&(this.__dataOld[r]=n),this.__data[r]=s,this.__dataPending[r]=s),a}_isPropertyPending(r){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(r))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Ju.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,s=this.__dataPending,o=this.__dataOld;this._shouldPropertiesChange(r,s,o)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(r,s,o)),this.__dataCounter--}_shouldPropertiesChange(r,s,o){return!!s}_propertiesChanged(r,s,o){}_shouldPropertyChange(r,s,o){return o!==s&&(o===o||s===s)}attributeChangedCallback(r,s,o,n){s!==o&&this._attributeToProperty(r,o),super.attributeChangedCallback&&super.attributeChangedCallback(r,s,o,n)}_attributeToProperty(r,s,o){if(!this.__serializing){const n=this.__dataAttributes,a=n&&n[r]||r;this[a]=this._deserializeValue(s,o||this.constructor.typeForProperty(a))}}_propertyToAttribute(r,s,o){this.__serializing=!0,o=arguments.length<3?this[r]:o,this._valueToNodeAttribute(this,o,s||this.constructor.attributeNameForProperty(r)),this.__serializing=!1}_valueToNodeAttribute(r,s,o){const n=this._serializeValue(s);(o==="class"||o==="name"||o==="slot")&&(r=De(r)),n===void 0?r.removeAttribute(o):r.setAttribute(o,n===""&&window.trustedTypes?window.trustedTypes.emptyScript:n)}_serializeValue(r){switch(typeof r){case"boolean":return r?"":void 0;default:return r!=null?r.toString():void 0}}_deserializeValue(r,s){switch(s){case Boolean:return r!==null;case Number:return Number(r);default:return r}}}return t});/**
1531
1542
  @license
1532
1543
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1533
1544
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1535,7 +1546,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1535
1546
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1536
1547
  Code distributed by Google as part of the polymer project is also
1537
1548
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1538
- */const Gn={};let Qt=HTMLElement.prototype;for(;Qt;){let i=Object.getOwnPropertyNames(Qt);for(let t=0;t<i.length;t++)Gn[i[t]]=!0;Qt=Object.getPrototypeOf(Qt)}const Qu=window.trustedTypes?i=>trustedTypes.isHTML(i)||trustedTypes.isScript(i)||trustedTypes.isScriptURL(i):()=>!1;function Ku(i,t){if(!Gn[t]){let e=i[t];e!==void 0&&(i.__data?i._setPendingProperty(t,e):(i.__dataProto?i.hasOwnProperty(JSCompiler_renameProperty("__dataProto",i))||(i.__dataProto=Object.create(i.__dataProto)):i.__dataProto={},i.__dataProto[t]=e))}}const ec=oe(i=>{const t=jn(i);class e extends t{static createPropertiesForAttributes(){let s=this.observedAttributes;for(let o=0;o<s.length;o++)this.prototype._createPropertyAccessor(Vn(s[o]))}static attributeNameForProperty(s){return Ai(s)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(s){for(let o in s)this._setProperty(o,s[o])}_ensureAttribute(s,o){const n=this;n.hasAttribute(s)||this._valueToNodeAttribute(n,o,s)}_serializeValue(s){switch(typeof s){case"object":if(s instanceof Date)return s.toString();if(s){if(Qu(s))return s;try{return JSON.stringify(s)}catch(o){return""}}default:return super._serializeValue(s)}}_deserializeValue(s,o){let n;switch(o){case Object:try{n=JSON.parse(s)}catch(a){n=s}break;case Array:try{n=JSON.parse(s)}catch(a){n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${s}`)}break;case Date:n=isNaN(s)?String(s):Number(s),n=new Date(n);break;default:n=super._deserializeValue(s,o);break}return n}_definePropertyAccessor(s,o){Ku(this,s),super._definePropertyAccessor(s,o)}_hasAccessor(s){return this.__dataHasAccessor&&this.__dataHasAccessor[s]}_isPropertyPending(s){return!!(this.__dataPending&&s in this.__dataPending)}}return e});/**
1549
+ */const qn={};let Jt=HTMLElement.prototype;for(;Jt;){let i=Object.getOwnPropertyNames(Jt);for(let t=0;t<i.length;t++)qn[i[t]]=!0;Jt=Object.getPrototypeOf(Jt)}const Ku=window.trustedTypes?i=>trustedTypes.isHTML(i)||trustedTypes.isScript(i)||trustedTypes.isScriptURL(i):()=>!1;function Qu(i,t){if(!qn[t]){let e=i[t];e!==void 0&&(i.__data?i._setPendingProperty(t,e):(i.__dataProto?i.hasOwnProperty(JSCompiler_renameProperty("__dataProto",i))||(i.__dataProto=Object.create(i.__dataProto)):i.__dataProto={},i.__dataProto[t]=e))}}const ec=oe(i=>{const t=Wn(i);class e extends t{static createPropertiesForAttributes(){let s=this.observedAttributes;for(let o=0;o<s.length;o++)this.prototype._createPropertyAccessor(Un(s[o]))}static attributeNameForProperty(s){return Ci(s)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(s){for(let o in s)this._setProperty(o,s[o])}_ensureAttribute(s,o){const n=this;n.hasAttribute(s)||this._valueToNodeAttribute(n,o,s)}_serializeValue(s){switch(typeof s){case"object":if(s instanceof Date)return s.toString();if(s){if(Ku(s))return s;try{return JSON.stringify(s)}catch(o){return""}}default:return super._serializeValue(s)}}_deserializeValue(s,o){let n;switch(o){case Object:try{n=JSON.parse(s)}catch(a){n=s}break;case Array:try{n=JSON.parse(s)}catch(a){n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${s}`)}break;case Date:n=isNaN(s)?String(s):Number(s),n=new Date(n);break;default:n=super._deserializeValue(s,o);break}return n}_definePropertyAccessor(s,o){Qu(this,s),super._definePropertyAccessor(s,o)}_hasAccessor(s){return this.__dataHasAccessor&&this.__dataHasAccessor[s]}_isPropertyPending(s){return!!(this.__dataPending&&s in this.__dataPending)}}return e});/**
1539
1550
  @license
1540
1551
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1541
1552
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1543,7 +1554,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1543
1554
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1544
1555
  Code distributed by Google as part of the polymer project is also
1545
1556
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1546
- */const tc={"dom-if":!0,"dom-repeat":!0};let to=!1,io=!1;function ic(){if(!to){to=!0;const i=document.createElement("textarea");i.placeholder="a",io=i.placeholder===i.textContent}return io}function rc(i){ic()&&i.localName==="textarea"&&i.placeholder&&i.placeholder===i.textContent&&(i.textContent=null)}const sc=(()=>{const i=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(t,e,r)=>{const s=e.getAttribute(r);if(i&&r.startsWith("on-")){t.setAttribute(r,i.createScript(s,r));return}t.setAttribute(r,s)}})();function oc(i){let t=i.getAttribute("is");if(t&&tc[t]){let e=i;for(e.removeAttribute("is"),i=e.ownerDocument.createElement(t),e.parentNode.replaceChild(i,e),i.appendChild(e);e.attributes.length;){const{name:r}=e.attributes[0];sc(i,e,r),e.removeAttribute(r)}}return i}function Wn(i,t){let e=t.parentInfo&&Wn(i,t.parentInfo);if(e){for(let r=e.firstChild,s=0;r;r=r.nextSibling)if(t.parentIndex===s++)return r}else return i}function nc(i,t,e,r){r.id&&(t[r.id]=e)}function ac(i,t,e){if(e.events&&e.events.length)for(let r=0,s=e.events,o;r<s.length&&(o=s[r]);r++)i._addMethodEventListenerToNode(t,o.name,o.value,i)}function lc(i,t,e,r){e.templateInfo&&(t._templateInfo=e.templateInfo,t._parentTemplateInfo=r)}function dc(i,t,e){return i=i._methodHost||i,function(s){i[e]?i[e](s,s.detail):console.warn("listener method `"+e+"` not defined")}}const hc=oe(i=>{class t extends i{static _parseTemplate(r,s){if(!r._templateInfo){let o=r._templateInfo={};o.nodeInfoList=[],o.nestedTemplate=!!s,o.stripWhiteSpace=s&&s.stripWhiteSpace||r.hasAttribute&&r.hasAttribute("strip-whitespace"),this._parseTemplateContent(r,o,{parent:null})}return r._templateInfo}static _parseTemplateContent(r,s,o){return this._parseTemplateNode(r.content,s,o)}static _parseTemplateNode(r,s,o){let n=!1,a=r;return a.localName=="template"&&!a.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(a,s,o)||n:a.localName==="slot"&&(s.hasInsertionPoint=!0),rc(a),a.firstChild&&this._parseTemplateChildNodes(a,s,o),a.hasAttributes&&a.hasAttributes()&&(n=this._parseTemplateNodeAttributes(a,s,o)||n),n||o.noted}static _parseTemplateChildNodes(r,s,o){if(!(r.localName==="script"||r.localName==="style"))for(let n=r.firstChild,a=0,l;n;n=l){if(n.localName=="template"&&(n=oc(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let h=l;for(;h&&h.nodeType===Node.TEXT_NODE;)n.textContent+=h.textContent,l=h.nextSibling,r.removeChild(h),h=l;if(s.stripWhiteSpace&&!n.textContent.trim()){r.removeChild(n);continue}}let d={parentIndex:a,parentInfo:o};this._parseTemplateNode(n,s,d)&&(d.infoIndex=s.nodeInfoList.push(d)-1),n.parentNode&&a++}}static _parseTemplateNestedTemplate(r,s,o){let n=r,a=this._parseTemplate(n,s);return(a.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),o.templateInfo=a,!0}static _parseTemplateNodeAttributes(r,s,o){let n=!1,a=Array.from(r.attributes);for(let l=a.length-1,d;d=a[l];l--)n=this._parseTemplateNodeAttribute(r,s,o,d.name,d.value)||n;return n}static _parseTemplateNodeAttribute(r,s,o,n,a){return n.slice(0,3)==="on-"?(r.removeAttribute(n),o.events=o.events||[],o.events.push({name:n.slice(3),value:a}),!0):n==="id"?(o.id=a,!0):!1}static _contentForTemplate(r){let s=r._templateInfo;return s&&s.content||r.content}_stampTemplate(r,s){r&&!r.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(r),s=s||this.constructor._parseTemplate(r);let o=s.nodeInfoList,n=s.content||r.content,a=document.importNode(n,!0);a.__noInsertionPoint=!s.hasInsertionPoint;let l=a.nodeList=new Array(o.length);a.$={};for(let d=0,h=o.length,u;d<h&&(u=o[d]);d++){let f=l[d]=Wn(a,u);nc(this,a.$,f,u),lc(this,f,u,s),ac(this,f,u)}return a=a,a}_addMethodEventListenerToNode(r,s,o,n){n=n||r;let a=dc(n,s,o);return this._addEventListenerToNode(r,s,a),a}_addEventListenerToNode(r,s,o){r.addEventListener(s,o)}_removeEventListenerFromNode(r,s,o){r.removeEventListener(s,o)}}return t});/**
1557
+ */const tc={"dom-if":!0,"dom-repeat":!0};let ro=!1,so=!1;function ic(){if(!ro){ro=!0;const i=document.createElement("textarea");i.placeholder="a",so=i.placeholder===i.textContent}return so}function rc(i){ic()&&i.localName==="textarea"&&i.placeholder&&i.placeholder===i.textContent&&(i.textContent=null)}const sc=(()=>{const i=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(t,e,r)=>{const s=e.getAttribute(r);if(i&&r.startsWith("on-")){t.setAttribute(r,i.createScript(s,r));return}t.setAttribute(r,s)}})();function oc(i){let t=i.getAttribute("is");if(t&&tc[t]){let e=i;for(e.removeAttribute("is"),i=e.ownerDocument.createElement(t),e.parentNode.replaceChild(i,e),i.appendChild(e);e.attributes.length;){const{name:r}=e.attributes[0];sc(i,e,r),e.removeAttribute(r)}}return i}function Yn(i,t){let e=t.parentInfo&&Yn(i,t.parentInfo);if(e){for(let r=e.firstChild,s=0;r;r=r.nextSibling)if(t.parentIndex===s++)return r}else return i}function nc(i,t,e,r){r.id&&(t[r.id]=e)}function ac(i,t,e){if(e.events&&e.events.length)for(let r=0,s=e.events,o;r<s.length&&(o=s[r]);r++)i._addMethodEventListenerToNode(t,o.name,o.value,i)}function lc(i,t,e,r){e.templateInfo&&(t._templateInfo=e.templateInfo,t._parentTemplateInfo=r)}function dc(i,t,e){return i=i._methodHost||i,function(s){i[e]?i[e](s,s.detail):console.warn("listener method `"+e+"` not defined")}}const hc=oe(i=>{class t extends i{static _parseTemplate(r,s){if(!r._templateInfo){let o=r._templateInfo={};o.nodeInfoList=[],o.nestedTemplate=!!s,o.stripWhiteSpace=s&&s.stripWhiteSpace||r.hasAttribute&&r.hasAttribute("strip-whitespace"),this._parseTemplateContent(r,o,{parent:null})}return r._templateInfo}static _parseTemplateContent(r,s,o){return this._parseTemplateNode(r.content,s,o)}static _parseTemplateNode(r,s,o){let n=!1,a=r;return a.localName=="template"&&!a.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(a,s,o)||n:a.localName==="slot"&&(s.hasInsertionPoint=!0),rc(a),a.firstChild&&this._parseTemplateChildNodes(a,s,o),a.hasAttributes&&a.hasAttributes()&&(n=this._parseTemplateNodeAttributes(a,s,o)||n),n||o.noted}static _parseTemplateChildNodes(r,s,o){if(!(r.localName==="script"||r.localName==="style"))for(let n=r.firstChild,a=0,l;n;n=l){if(n.localName=="template"&&(n=oc(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let h=l;for(;h&&h.nodeType===Node.TEXT_NODE;)n.textContent+=h.textContent,l=h.nextSibling,r.removeChild(h),h=l;if(s.stripWhiteSpace&&!n.textContent.trim()){r.removeChild(n);continue}}let d={parentIndex:a,parentInfo:o};this._parseTemplateNode(n,s,d)&&(d.infoIndex=s.nodeInfoList.push(d)-1),n.parentNode&&a++}}static _parseTemplateNestedTemplate(r,s,o){let n=r,a=this._parseTemplate(n,s);return(a.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),o.templateInfo=a,!0}static _parseTemplateNodeAttributes(r,s,o){let n=!1,a=Array.from(r.attributes);for(let l=a.length-1,d;d=a[l];l--)n=this._parseTemplateNodeAttribute(r,s,o,d.name,d.value)||n;return n}static _parseTemplateNodeAttribute(r,s,o,n,a){return n.slice(0,3)==="on-"?(r.removeAttribute(n),o.events=o.events||[],o.events.push({name:n.slice(3),value:a}),!0):n==="id"?(o.id=a,!0):!1}static _contentForTemplate(r){let s=r._templateInfo;return s&&s.content||r.content}_stampTemplate(r,s){r&&!r.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(r),s=s||this.constructor._parseTemplate(r);let o=s.nodeInfoList,n=s.content||r.content,a=document.importNode(n,!0);a.__noInsertionPoint=!s.hasInsertionPoint;let l=a.nodeList=new Array(o.length);a.$={};for(let d=0,h=o.length,u;d<h&&(u=o[d]);d++){let f=l[d]=Yn(a,u);nc(this,a.$,f,u),lc(this,f,u,s),ac(this,f,u)}return a=a,a}_addMethodEventListenerToNode(r,s,o,n){n=n||r;let a=dc(n,s,o);return this._addEventListenerToNode(r,s,a),a}_addEventListenerToNode(r,s,o){r.addEventListener(s,o)}_removeEventListenerFromNode(r,s,o){r.removeEventListener(s,o)}}return t});/**
1547
1558
  * @fileoverview
1548
1559
  * @suppress {checkPrototypalTypes}
1549
1560
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1553,7 +1564,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1553
1564
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
1554
1565
  * Google as part of the polymer project is also subject to an additional IP
1555
1566
  * rights grant found at http://polymer.github.io/PATENTS.txt
1556
- */let Rt=0;const Ft=[],L={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},qn="__computeInfo",uc=/[A-Z]/;function Wi(i,t,e){let r=i[t];if(!r)r=i[t]={};else if(!i.hasOwnProperty(t)&&(r=i[t]=Object.create(i[t]),e))for(let s in r){let o=r[s],n=r[s]=Array(o.length);for(let a=0;a<o.length;a++)n[a]=o[a]}return r}function xt(i,t,e,r,s,o){if(t){let n=!1;const a=Rt++;for(let l in e){let d=s?$e(l):l,h=t[d];if(h)for(let u=0,f=h.length,m;u<f&&(m=h[u]);u++)(!m.info||m.info.lastRun!==a)&&(!s||Jr(l,m.trigger))&&(m.info&&(m.info.lastRun=a),m.fn(i,l,e,r,m.info,s,o),n=!0)}return n}return!1}function cc(i,t,e,r,s,o,n,a){let l=!1,d=n?$e(r):r,h=t[d];if(h)for(let u=0,f=h.length,m;u<f&&(m=h[u]);u++)(!m.info||m.info.lastRun!==e)&&(!n||Jr(r,m.trigger))&&(m.info&&(m.info.lastRun=e),m.fn(i,r,s,o,m.info,n,a),l=!0);return l}function Jr(i,t){if(t){let e=t.name;return e==i||!!(t.structured&&ju(e,i))||!!(t.wildcard&&pi(e,i))}else return!0}function ro(i,t,e,r,s){let o=typeof s.method=="string"?i[s.method]:s.method,n=s.property;o?o.call(i,i.__data[n],r[n]):s.dynamicFn||console.warn("observer method `"+s.method+"` not defined")}function fc(i,t,e,r,s){let o=i[L.NOTIFY],n,a=Rt++;for(let d in t)t[d]&&(o&&cc(i,o,a,d,e,r,s)||s&&pc(i,d,e))&&(n=!0);let l;n&&(l=i.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function pc(i,t,e){let r=$e(t);if(r!==t){let s=Ai(r)+"-changed";return Yn(i,s,e[t],t),!0}return!1}function Yn(i,t,e,r){let s={value:e,queueProperty:!0};r&&(s.path=r),Fe(i).dispatchEvent(new CustomEvent(t,{detail:s}))}function mc(i,t,e,r,s,o){let a=(o?$e(t):t)!=t?t:null,l=a?me(i,a):i.__data[t];a&&l===void 0&&(l=e[t]),Yn(i,s.eventName,l,a)}function _c(i,t,e,r,s){let o,n=i.detail,a=n&&n.path;a?(r=mi(e,r,a),o=n&&n.value):o=i.currentTarget[e],o=s?!o:o,(!t[L.READ_ONLY]||!t[L.READ_ONLY][r])&&t._setPendingPropertyOrPath(r,o,!0,!!a)&&(!n||!n.queueProperty)&&t._invalidateProperties()}function gc(i,t,e,r,s){let o=i.__data[t];fi&&(o=fi(o,s.attrName,"attribute",i)),i._propertyToAttribute(t,s.attrName,o)}function bc(i,t,e,r){let s=i[L.COMPUTE];if(s)if(Mu){Rt++;const o=yc(i),n=[];for(let l in t)so(l,s,n,o,r);let a;for(;a=n.shift();)Xn(i,"",t,e,a)&&so(a.methodInfo,s,n,o,r);Object.assign(e,i.__dataOld),Object.assign(t,i.__dataPending),i.__dataPending=null}else{let o=t;for(;xt(i,s,o,e,r);)Object.assign(e,i.__dataOld),Object.assign(t,i.__dataPending),o=i.__dataPending,i.__dataPending=null}}const vc=(i,t,e)=>{let r=0,s=t.length-1,o=-1;for(;r<=s;){const n=r+s>>1,a=e.get(t[n].methodInfo)-e.get(i.methodInfo);if(a<0)r=n+1;else if(a>0)s=n-1;else{o=n;break}}o<0&&(o=s+1),t.splice(o,0,i)},so=(i,t,e,r,s)=>{const o=s?$e(i):i,n=t[o];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==Rt&&(!s||Jr(i,l.trigger))&&(l.info.lastRun=Rt,vc(l.info,e,r))}};function yc(i){let t=i.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=i[L.COMPUTE];let{counts:r,ready:s,total:o}=wc(i),n;for(;n=s.shift();){t.set(n,t.size);const a=e[n];a&&a.forEach(l=>{const d=l.info.methodInfo;--o,--r[d]===0&&s.push(d)})}o!==0&&console.warn(`Computed graph for ${i.localName} incomplete; circular?`),i.constructor.__orderedComputedDeps=t}return t}function wc(i){const t=i[qn],e={},r=i[L.COMPUTE],s=[];let o=0;for(let n in t){const a=t[n];o+=e[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let n in r)t[n]||s.push(n);return{counts:e,ready:s,total:o}}function Xn(i,t,e,r,s){let o=Sr(i,t,e,r,s);if(o===Ft)return!1;let n=s.methodInfo;return i.__dataHasAccessor&&i.__dataHasAccessor[n]?i._setPendingProperty(n,o,!0):(i[n]=o,!1)}function xc(i,t,e){let r=i.__dataLinkedPaths;if(r){let s;for(let o in r){let n=r[o];pi(o,t)?(s=mi(o,n,t),i._setPendingPropertyOrPath(s,e,!0,!0)):pi(n,t)&&(s=mi(n,o,t),i._setPendingPropertyOrPath(s,e,!0,!0))}}}function qi(i,t,e,r,s,o,n){e.bindings=e.bindings||[];let a={kind:r,target:s,parts:o,literal:n,isCompound:o.length!==1};if(e.bindings.push(a),Sc(a)){let{event:d,negate:h}=a.parts[0];a.listenerEvent=d||Ai(s)+"-changed",a.listenerNegate=h}let l=t.nodeInfoList.length;for(let d=0;d<a.parts.length;d++){let h=a.parts[d];h.compoundIndex=d,Pc(i,t,a,h,l)}}function Pc(i,t,e,r,s){if(!r.literal)if(e.kind==="attribute"&&e.target[0]==="-")console.warn("Cannot set attribute "+e.target+' because "-" is not a valid attribute starting character');else{let o=r.dependencies,n={index:s,binding:e,part:r,evaluator:i};for(let a=0;a<o.length;a++){let l=o[a];typeof l=="string"&&(l=Jn(l),l.wildcard=!0),i._addTemplatePropertyEffect(t,l.rootProperty,{fn:Ec,info:n,trigger:l})}}}function Ec(i,t,e,r,s,o,n){let a=n[s.index],l=s.binding,d=s.part;if(o&&d.source&&t.length>d.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let h=e[t];t=mi(d.source,l.target,t),a._setPendingPropertyOrPath(t,h,!1,!0)&&i._enqueueClient(a)}else{let h=s.evaluator._evaluateBinding(i,d,t,e,r,o);h!==Ft&&Cc(i,a,l,d,h)}}function Cc(i,t,e,r,s){if(s=Ac(t,s,e,r),fi&&(s=fi(s,e.target,e.kind,t)),e.kind=="attribute")i._valueToNodeAttribute(t,s,e.target);else{let o=e.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[o]?(!t[L.READ_ONLY]||!t[L.READ_ONLY][o])&&t._setPendingProperty(o,s)&&i._enqueueClient(t):i._setUnmanagedPropertyToNode(t,o,s)}}function Ac(i,t,e,r){if(e.isCompound){let s=i.__dataCompoundStorage[e.target];s[r.compoundIndex]=t,t=s.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(i.localName==="input"||i.localName==="textarea"))&&(t=t==null?"":t),t}function Sc(i){return!!i.target&&i.kind!="attribute"&&i.kind!="text"&&!i.isCompound&&i.parts[0].mode==="{"}function Tc(i,t){let{nodeList:e,nodeInfoList:r}=t;if(r.length)for(let s=0;s<r.length;s++){let o=r[s],n=e[s],a=o.bindings;if(a)for(let l=0;l<a.length;l++){let d=a[l];Ic(n,d),Oc(n,i,d)}n.__dataHost=i}}function Ic(i,t){if(t.isCompound){let e=i.__dataCompoundStorage||(i.__dataCompoundStorage={}),r=t.parts,s=new Array(r.length);for(let n=0;n<r.length;n++)s[n]=r[n].literal;let o=t.target;e[o]=s,t.literal&&t.kind=="property"&&(o==="className"&&(i=Fe(i)),i[o]=t.literal)}}function Oc(i,t,e){if(e.listenerEvent){let r=e.parts[0];i.addEventListener(e.listenerEvent,function(s){_c(s,t,e.target,r.source,r.negate)})}}function oo(i,t,e,r,s,o){o=t.static||o&&(typeof o!="object"||o[t.methodName]);let n={methodName:t.methodName,args:t.args,methodInfo:s,dynamicFn:o};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||i._addPropertyEffect(l.rootProperty,e,{fn:r,info:n,trigger:l});return o&&i._addPropertyEffect(t.methodName,e,{fn:r,info:n}),n}function Sr(i,t,e,r,s){let o=i._methodHost||i,n=o[s.methodName];if(n){let a=i._marshalArgs(s.args,t,e);return a===Ft?Ft:n.apply(o,a)}else s.dynamicFn||console.warn("method `"+s.methodName+"` not defined")}const Nc=[],Zn="(?:[a-zA-Z_$][\\w.:$\\-*]*)",kc="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Lc="(?:'(?:[^'\\\\]|\\\\.)*')",Mc='(?:"(?:[^"\\\\]|\\\\.)*")',Bc="(?:"+Lc+"|"+Mc+")",no="(?:("+Zn+"|"+kc+"|"+Bc+")\\s*)",Hc="(?:"+no+"(?:,\\s*"+no+")*)",Rc="(?:\\(\\s*(?:"+Hc+"?)\\)\\s*)",Fc="("+Zn+"\\s*"+Rc+"?)",Dc="(\\[\\[|{{)\\s*",zc="(?:]]|}})",Vc="(?:(!)\\s*)?",$c=Dc+Vc+Fc+zc,ao=new RegExp($c,"g");function lo(i){let t="";for(let e=0;e<i.length;e++){let r=i[e].literal;t+=r||""}return t}function Yi(i){let t=i.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let r={methodName:t[1],static:!0,args:Nc};if(t[2].trim()){let s=t[2].replace(/\\,/g,"&comma;").split(",");return Uc(s,r)}else return r}return null}function Uc(i,t){return t.args=i.map(function(e){let r=Jn(e);return r.literal||(t.static=!1),r},this),t}function Jn(i){let t=i.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),e={name:t,value:"",literal:!1},r=t[0];switch(r==="-"&&(r=t[1]),r>="0"&&r<="9"&&(r="#"),r){case"'":case'"':e.value=t.slice(1,-1),e.literal=!0;break;case"#":e.value=Number(t),e.literal=!0;break}return e.literal||(e.rootProperty=$e(t),e.structured=Cr(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function ho(i,t,e){let r=me(i,e);return r===void 0&&(r=t[e]),r}function Qn(i,t,e,r){const s={indexSplices:r};Er&&!i._overrideLegacyUndefined&&(t.splices=s),i.notifyPath(e+".splices",s),i.notifyPath(e+".length",t.length),Er&&!i._overrideLegacyUndefined&&(s.indexSplices=[])}function vt(i,t,e,r,s,o){Qn(i,t,e,[{index:r,addedCount:s,removed:o,object:t,type:"splice"}])}function jc(i){return i[0].toUpperCase()+i.substring(1)}const Gc=oe(i=>{const t=hc(ec(i));class e extends t{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return L}_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(yt.length){let s=yt[yt.length-1];s._enqueueClient(this),this.__dataHost=s}}_initializeProtoProperties(s){this.__data=Object.create(s),this.__dataPending=Object.create(s),this.__dataOld={}}_initializeInstanceProperties(s){let o=this[L.READ_ONLY];for(let n in s)(!o||!o[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=s[n])}_addPropertyEffect(s,o,n){this._createPropertyAccessor(s,o==L.READ_ONLY);let a=Wi(this,o,!0)[s];a||(a=this[o][s]=[]),a.push(n)}_removePropertyEffect(s,o,n){let a=Wi(this,o,!0)[s],l=a.indexOf(n);l>=0&&a.splice(l,1)}_hasPropertyEffect(s,o){let n=this[o];return!!(n&&n[s])}_hasReadOnlyEffect(s){return this._hasPropertyEffect(s,L.READ_ONLY)}_hasNotifyEffect(s){return this._hasPropertyEffect(s,L.NOTIFY)}_hasReflectEffect(s){return this._hasPropertyEffect(s,L.REFLECT)}_hasComputedEffect(s){return this._hasPropertyEffect(s,L.COMPUTE)}_setPendingPropertyOrPath(s,o,n,a){if(a||$e(Array.isArray(s)?s[0]:s)!==s){if(!a){let l=me(this,s);if(s=eo(this,s,o),!s||!super._shouldPropertyChange(s,o,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(s,o,n))return xc(this,s,o),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[s])return this._setPendingProperty(s,o,n);this[s]=o}return!1}_setUnmanagedPropertyToNode(s,o,n){(n!==s[o]||typeof n=="object")&&(o==="className"&&(s=Fe(s)),s[o]=n)}_setPendingProperty(s,o,n){let a=this.__dataHasPaths&&Cr(s),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(s,o,l[s])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),s in this.__dataOld||(this.__dataOld[s]=this.__data[s]),a?this.__dataTemp[s]=o:this.__data[s]=o,this.__dataPending[s]=o,(a||this[L.NOTIFY]&&this[L.NOTIFY][s])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[s]=n),!0):!1}_setProperty(s,o){this._setPendingProperty(s,o,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(s){this.__dataPendingClients=this.__dataPendingClients||[],s!==this&&this.__dataPendingClients.push(s)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let s=this.__dataPendingClients;if(s){this.__dataPendingClients=null;for(let o=0;o<s.length;o++){let n=s[o];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(s,o){for(let n in s)(o||!this[L.READ_ONLY]||!this[L.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,s[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(s,o,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;bc(this,o,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(o,n,a),this._flushClients(),xt(this,this[L.REFLECT],o,n,a),xt(this,this[L.OBSERVE],o,n,a),l&&fc(this,l,o,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(s,o,n){this[L.PROPAGATE]&&xt(this,this[L.PROPAGATE],s,o,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,s,o,n)}_runEffectsForTemplate(s,o,n,a){const l=(d,h)=>{xt(this,s.propertyEffects,d,n,h,s.nodeList);for(let u=s.firstChild;u;u=u.nextSibling)this._runEffectsForTemplate(u,d,n,h)};s.runEffects?s.runEffects(l,o,a):l(o,a)}linkPaths(s,o){s=wt(s),o=wt(o),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[s]=o}unlinkPaths(s){s=wt(s),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[s]}notifySplices(s,o){let n={path:""},a=me(this,s,n);Qn(this,a,n.path,o)}get(s,o){return me(o||this,s)}set(s,o,n){n?eo(n,s,o):(!this[L.READ_ONLY]||!this[L.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,o,!0)&&this._invalidateProperties()}push(s,...o){let n={path:""},a=me(this,s,n),l=a.length,d=a.push(...o);return o.length&&vt(this,a,n.path,l,o.length,[]),d}pop(s){let o={path:""},n=me(this,s,o),a=!!n.length,l=n.pop();return a&&vt(this,n,o.path,n.length,0,[l]),l}splice(s,o,n,...a){let l={path:""},d=me(this,s,l);o<0?o=d.length-Math.floor(-o):o&&(o=Math.floor(o));let h;return arguments.length===2?h=d.splice(o):h=d.splice(o,n,...a),(a.length||h.length)&&vt(this,d,l.path,o,a.length,h),h}shift(s){let o={path:""},n=me(this,s,o),a=!!n.length,l=n.shift();return a&&vt(this,n,o.path,0,0,[l]),l}unshift(s,...o){let n={path:""},a=me(this,s,n),l=a.unshift(...o);return o.length&&vt(this,a,n.path,0,o.length,[]),l}notifyPath(s,o){let n;if(arguments.length==1){let a={path:""};o=me(this,s,a),n=a.path}else Array.isArray(s)?n=wt(s):n=s;this._setPendingPropertyOrPath(n,o,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(s,o){this._addPropertyEffect(s,L.READ_ONLY),o&&(this["_set"+jc(s)]=function(n){this._setProperty(s,n)})}_createPropertyObserver(s,o,n){let a={property:s,method:o,dynamicFn:!!n};this._addPropertyEffect(s,L.OBSERVE,{fn:ro,info:a,trigger:{name:s}}),n&&this._addPropertyEffect(o,L.OBSERVE,{fn:ro,info:a,trigger:{name:o}})}_createMethodObserver(s,o){let n=Yi(s);if(!n)throw new Error("Malformed observer expression '"+s+"'");oo(this,n,L.OBSERVE,Sr,null,o)}_createNotifyingProperty(s){this._addPropertyEffect(s,L.NOTIFY,{fn:mc,info:{eventName:Ai(s)+"-changed",property:s}})}_createReflectedProperty(s){let o=this.constructor.attributeNameForProperty(s);o[0]==="-"?console.warn("Property "+s+" cannot be reflected to attribute "+o+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(s,L.REFLECT,{fn:gc,info:{attrName:o}})}_createComputedProperty(s,o,n){let a=Yi(o);if(!a)throw new Error("Malformed computed expression '"+o+"'");const l=oo(this,a,L.COMPUTE,Xn,s,n);Wi(this,qn)[s]=l}_marshalArgs(s,o,n){const a=this.__data,l=[];for(let d=0,h=s.length;d<h;d++){let{name:u,structured:f,wildcard:m,value:_,literal:g}=s[d];if(!g)if(m){const w=pi(u,o),y=ho(a,n,w?o:u);_={path:w?o:u,value:y,base:w?me(a,u):y}}else _=f?ho(a,n,u):a[u];if(Er&&!this._overrideLegacyUndefined&&_===void 0&&s.length>1)return Ft;l[d]=_}return l}static addPropertyEffect(s,o,n){this.prototype._addPropertyEffect(s,o,n)}static createPropertyObserver(s,o,n){this.prototype._createPropertyObserver(s,o,n)}static createMethodObserver(s,o){this.prototype._createMethodObserver(s,o)}static createNotifyingProperty(s){this.prototype._createNotifyingProperty(s)}static createReadOnlyProperty(s,o){this.prototype._createReadOnlyProperty(s,o)}static createReflectedProperty(s){this.prototype._createReflectedProperty(s)}static createComputedProperty(s,o,n){this.prototype._createComputedProperty(s,o,n)}static bindTemplate(s){return this.prototype._bindTemplate(s)}_bindTemplate(s,o){let n=this.constructor._parseTemplate(s),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(o)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else{const l=s._parentTemplateInfo||this.__templateInfo,d=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=d,d?d.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(s,o,n){let a=s.hostProps=s.hostProps||{};a[o]=!0;let l=s.propertyEffects=s.propertyEffects||{};(l[o]=l[o]||[]).push(n)}_stampTemplate(s,o){o=o||this._bindTemplate(s,!0),yt.push(this);let n=super._stampTemplate(s,o);if(yt.pop(),o.nodeList=n.nodeList,!o.wasPreBound){let a=o.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l)}return n.templateInfo=o,Tc(this,o),this.__dataClientsReady&&(this._runEffectsForTemplate(o,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(s){const o=s.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=o;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),o.nextSibling=o.previousSibling=null;let d=o.childNodes;for(let h=0;h<d.length;h++){let u=d[h];Fe(Fe(u).parentNode).removeChild(u)}}static _parseTemplateNode(s,o,n){let a=t._parseTemplateNode.call(this,s,o,n);if(s.nodeType===Node.TEXT_NODE){let l=this._parseBindings(s.textContent,o);l&&(s.textContent=lo(l)||" ",qi(this,o,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(s,o,n,a,l){let d=this._parseBindings(l,o);if(d){let h=a,u="property";uc.test(a)?u="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),u="attribute");let f=lo(d);return f&&u=="attribute"&&(a=="class"&&s.hasAttribute("class")&&(f+=" "+s.getAttribute(a)),s.setAttribute(a,f)),u=="attribute"&&h=="disable-upgrade$"&&s.setAttribute(a,""),s.localName==="input"&&h==="value"&&s.setAttribute(h,""),s.removeAttribute(h),u==="property"&&(a=Vn(a)),qi(this,o,n,u,a,d,f),!0}else return t._parseTemplateNodeAttribute.call(this,s,o,n,a,l)}static _parseTemplateNestedTemplate(s,o,n){let a=t._parseTemplateNestedTemplate.call(this,s,o,n);const l=s.parentNode,d=n.templateInfo,h=l.localName==="dom-if",u=l.localName==="dom-repeat";Xs&&(h||u)&&(l.removeChild(s),n=n.parentInfo,n.templateInfo=d,n.noted=!0,a=!1);let f=d.hostProps;if(Bu&&h)f&&(o.hostProps=Object.assign(o.hostProps||{},f),Xs||(n.parentInfo.noted=!0));else{let m="{";for(let _ in f){let g=[{mode:m,source:_,dependencies:[_],hostProp:!0}];qi(this,o,n,"property","_host_"+_,g)}}return a}static _parseBindings(s,o){let n=[],a=0,l;for(;(l=ao.exec(s))!==null;){l.index>a&&n.push({literal:s.slice(a,l.index)});let d=l[1][0],h=!!l[2],u=l[3].trim(),f=!1,m="",_=-1;d=="{"&&(_=u.indexOf("::"))>0&&(m=u.substring(_+2),u=u.substring(0,_),f=!0);let g=Yi(u),w=[];if(g){let{args:y,methodName:v}=g;for(let E=0;E<y.length;E++){let A=y[E];A.literal||w.push(A)}let C=o.dynamicFns;(C&&C[v]||g.static)&&(w.push(v),g.dynamicFn=!0)}else w.push(u);n.push({source:u,mode:d,negate:h,customEvent:f,signature:g,dependencies:w,event:m}),a=ao.lastIndex}if(a&&a<s.length){let d=s.substring(a);d&&n.push({literal:d})}return n.length?n:null}static _evaluateBinding(s,o,n,a,l,d){let h;return o.signature?h=Sr(s,n,a,l,o.signature):n!=o.source?h=me(s,o.source):d&&Cr(n)?h=me(s,n):h=s.__data[n],o.negate&&(h=!h),h}}return e}),yt=[];/**
1567
+ */let Rt=0;const Dt=[],M={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Zn="__computeInfo",uc=/[A-Z]/;function Wi(i,t,e){let r=i[t];if(!r)r=i[t]={};else if(!i.hasOwnProperty(t)&&(r=i[t]=Object.create(i[t]),e))for(let s in r){let o=r[s],n=r[s]=Array(o.length);for(let a=0;a<o.length;a++)n[a]=o[a]}return r}function wt(i,t,e,r,s,o){if(t){let n=!1;const a=Rt++;for(let l in e){let d=s?Ve(l):l,h=t[d];if(h)for(let u=0,f=h.length,m;u<f&&(m=h[u]);u++)(!m.info||m.info.lastRun!==a)&&(!s||Qr(l,m.trigger))&&(m.info&&(m.info.lastRun=a),m.fn(i,l,e,r,m.info,s,o),n=!0)}return n}return!1}function cc(i,t,e,r,s,o,n,a){let l=!1,d=n?Ve(r):r,h=t[d];if(h)for(let u=0,f=h.length,m;u<f&&(m=h[u]);u++)(!m.info||m.info.lastRun!==e)&&(!n||Qr(r,m.trigger))&&(m.info&&(m.info.lastRun=e),m.fn(i,r,s,o,m.info,n,a),l=!0);return l}function Qr(i,t){if(t){let e=t.name;return e==i||!!(t.structured&&ju(e,i))||!!(t.wildcard&&fi(e,i))}else return!0}function oo(i,t,e,r,s){let o=typeof s.method=="string"?i[s.method]:s.method,n=s.property;o?o.call(i,i.__data[n],r[n]):s.dynamicFn||console.warn("observer method `"+s.method+"` not defined")}function fc(i,t,e,r,s){let o=i[M.NOTIFY],n,a=Rt++;for(let d in t)t[d]&&(o&&cc(i,o,a,d,e,r,s)||s&&pc(i,d,e))&&(n=!0);let l;n&&(l=i.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function pc(i,t,e){let r=Ve(t);if(r!==t){let s=Ci(r)+"-changed";return Xn(i,s,e[t],t),!0}return!1}function Xn(i,t,e,r){let s={value:e,queueProperty:!0};r&&(s.path=r),De(i).dispatchEvent(new CustomEvent(t,{detail:s}))}function mc(i,t,e,r,s,o){let a=(o?Ve(t):t)!=t?t:null,l=a?me(i,a):i.__data[t];a&&l===void 0&&(l=e[t]),Xn(i,s.eventName,l,a)}function _c(i,t,e,r,s){let o,n=i.detail,a=n&&n.path;a?(r=pi(e,r,a),o=n&&n.value):o=i.currentTarget[e],o=s?!o:o,(!t[M.READ_ONLY]||!t[M.READ_ONLY][r])&&t._setPendingPropertyOrPath(r,o,!0,!!a)&&(!n||!n.queueProperty)&&t._invalidateProperties()}function gc(i,t,e,r,s){let o=i.__data[t];ci&&(o=ci(o,s.attrName,"attribute",i)),i._propertyToAttribute(t,s.attrName,o)}function bc(i,t,e,r){let s=i[M.COMPUTE];if(s)if(Lu){Rt++;const o=yc(i),n=[];for(let l in t)no(l,s,n,o,r);let a;for(;a=n.shift();)Jn(i,"",t,e,a)&&no(a.methodInfo,s,n,o,r);Object.assign(e,i.__dataOld),Object.assign(t,i.__dataPending),i.__dataPending=null}else{let o=t;for(;wt(i,s,o,e,r);)Object.assign(e,i.__dataOld),Object.assign(t,i.__dataPending),o=i.__dataPending,i.__dataPending=null}}const vc=(i,t,e)=>{let r=0,s=t.length-1,o=-1;for(;r<=s;){const n=r+s>>1,a=e.get(t[n].methodInfo)-e.get(i.methodInfo);if(a<0)r=n+1;else if(a>0)s=n-1;else{o=n;break}}o<0&&(o=s+1),t.splice(o,0,i)},no=(i,t,e,r,s)=>{const o=s?Ve(i):i,n=t[o];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==Rt&&(!s||Qr(i,l.trigger))&&(l.info.lastRun=Rt,vc(l.info,e,r))}};function yc(i){let t=i.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=i[M.COMPUTE];let{counts:r,ready:s,total:o}=wc(i),n;for(;n=s.shift();){t.set(n,t.size);const a=e[n];a&&a.forEach(l=>{const d=l.info.methodInfo;--o,--r[d]===0&&s.push(d)})}o!==0&&console.warn(`Computed graph for ${i.localName} incomplete; circular?`),i.constructor.__orderedComputedDeps=t}return t}function wc(i){const t=i[Zn],e={},r=i[M.COMPUTE],s=[];let o=0;for(let n in t){const a=t[n];o+=e[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let n in r)t[n]||s.push(n);return{counts:e,ready:s,total:o}}function Jn(i,t,e,r,s){let o=Sr(i,t,e,r,s);if(o===Dt)return!1;let n=s.methodInfo;return i.__dataHasAccessor&&i.__dataHasAccessor[n]?i._setPendingProperty(n,o,!0):(i[n]=o,!1)}function xc(i,t,e){let r=i.__dataLinkedPaths;if(r){let s;for(let o in r){let n=r[o];fi(o,t)?(s=pi(o,n,t),i._setPendingPropertyOrPath(s,e,!0,!0)):fi(n,t)&&(s=pi(n,o,t),i._setPendingPropertyOrPath(s,e,!0,!0))}}}function qi(i,t,e,r,s,o,n){e.bindings=e.bindings||[];let a={kind:r,target:s,parts:o,literal:n,isCompound:o.length!==1};if(e.bindings.push(a),Sc(a)){let{event:d,negate:h}=a.parts[0];a.listenerEvent=d||Ci(s)+"-changed",a.listenerNegate=h}let l=t.nodeInfoList.length;for(let d=0;d<a.parts.length;d++){let h=a.parts[d];h.compoundIndex=d,Pc(i,t,a,h,l)}}function Pc(i,t,e,r,s){if(!r.literal)if(e.kind==="attribute"&&e.target[0]==="-")console.warn("Cannot set attribute "+e.target+' because "-" is not a valid attribute starting character');else{let o=r.dependencies,n={index:s,binding:e,part:r,evaluator:i};for(let a=0;a<o.length;a++){let l=o[a];typeof l=="string"&&(l=Qn(l),l.wildcard=!0),i._addTemplatePropertyEffect(t,l.rootProperty,{fn:Ec,info:n,trigger:l})}}}function Ec(i,t,e,r,s,o,n){let a=n[s.index],l=s.binding,d=s.part;if(o&&d.source&&t.length>d.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let h=e[t];t=pi(d.source,l.target,t),a._setPendingPropertyOrPath(t,h,!1,!0)&&i._enqueueClient(a)}else{let h=s.evaluator._evaluateBinding(i,d,t,e,r,o);h!==Dt&&Cc(i,a,l,d,h)}}function Cc(i,t,e,r,s){if(s=Ac(t,s,e,r),ci&&(s=ci(s,e.target,e.kind,t)),e.kind=="attribute")i._valueToNodeAttribute(t,s,e.target);else{let o=e.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[o]?(!t[M.READ_ONLY]||!t[M.READ_ONLY][o])&&t._setPendingProperty(o,s)&&i._enqueueClient(t):i._setUnmanagedPropertyToNode(t,o,s)}}function Ac(i,t,e,r){if(e.isCompound){let s=i.__dataCompoundStorage[e.target];s[r.compoundIndex]=t,t=s.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(i.localName==="input"||i.localName==="textarea"))&&(t=t==null?"":t),t}function Sc(i){return!!i.target&&i.kind!="attribute"&&i.kind!="text"&&!i.isCompound&&i.parts[0].mode==="{"}function Tc(i,t){let{nodeList:e,nodeInfoList:r}=t;if(r.length)for(let s=0;s<r.length;s++){let o=r[s],n=e[s],a=o.bindings;if(a)for(let l=0;l<a.length;l++){let d=a[l];Ic(n,d),Oc(n,i,d)}n.__dataHost=i}}function Ic(i,t){if(t.isCompound){let e=i.__dataCompoundStorage||(i.__dataCompoundStorage={}),r=t.parts,s=new Array(r.length);for(let n=0;n<r.length;n++)s[n]=r[n].literal;let o=t.target;e[o]=s,t.literal&&t.kind=="property"&&(o==="className"&&(i=De(i)),i[o]=t.literal)}}function Oc(i,t,e){if(e.listenerEvent){let r=e.parts[0];i.addEventListener(e.listenerEvent,function(s){_c(s,t,e.target,r.source,r.negate)})}}function ao(i,t,e,r,s,o){o=t.static||o&&(typeof o!="object"||o[t.methodName]);let n={methodName:t.methodName,args:t.args,methodInfo:s,dynamicFn:o};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||i._addPropertyEffect(l.rootProperty,e,{fn:r,info:n,trigger:l});return o&&i._addPropertyEffect(t.methodName,e,{fn:r,info:n}),n}function Sr(i,t,e,r,s){let o=i._methodHost||i,n=o[s.methodName];if(n){let a=i._marshalArgs(s.args,t,e);return a===Dt?Dt:n.apply(o,a)}else s.dynamicFn||console.warn("method `"+s.methodName+"` not defined")}const Nc=[],Kn="(?:[a-zA-Z_$][\\w.:$\\-*]*)",kc="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Mc="(?:'(?:[^'\\\\]|\\\\.)*')",Lc='(?:"(?:[^"\\\\]|\\\\.)*")',Bc="(?:"+Mc+"|"+Lc+")",lo="(?:("+Kn+"|"+kc+"|"+Bc+")\\s*)",Rc="(?:"+lo+"(?:,\\s*"+lo+")*)",Dc="(?:\\(\\s*(?:"+Rc+"?)\\)\\s*)",Hc="("+Kn+"\\s*"+Dc+"?)",Fc="(\\[\\[|{{)\\s*",zc="(?:]]|}})",Vc="(?:(!)\\s*)?",$c=Fc+Vc+Hc+zc,ho=new RegExp($c,"g");function uo(i){let t="";for(let e=0;e<i.length;e++){let r=i[e].literal;t+=r||""}return t}function Yi(i){let t=i.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let r={methodName:t[1],static:!0,args:Nc};if(t[2].trim()){let s=t[2].replace(/\\,/g,"&comma;").split(",");return Uc(s,r)}else return r}return null}function Uc(i,t){return t.args=i.map(function(e){let r=Qn(e);return r.literal||(t.static=!1),r},this),t}function Qn(i){let t=i.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),e={name:t,value:"",literal:!1},r=t[0];switch(r==="-"&&(r=t[1]),r>="0"&&r<="9"&&(r="#"),r){case"'":case'"':e.value=t.slice(1,-1),e.literal=!0;break;case"#":e.value=Number(t),e.literal=!0;break}return e.literal||(e.rootProperty=Ve(t),e.structured=Cr(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function co(i,t,e){let r=me(i,e);return r===void 0&&(r=t[e]),r}function ea(i,t,e,r){const s={indexSplices:r};Er&&!i._overrideLegacyUndefined&&(t.splices=s),i.notifyPath(e+".splices",s),i.notifyPath(e+".length",t.length),Er&&!i._overrideLegacyUndefined&&(s.indexSplices=[])}function bt(i,t,e,r,s,o){ea(i,t,e,[{index:r,addedCount:s,removed:o,object:t,type:"splice"}])}function jc(i){return i[0].toUpperCase()+i.substring(1)}const Gc=oe(i=>{const t=hc(ec(i));class e extends t{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return M}_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(vt.length){let s=vt[vt.length-1];s._enqueueClient(this),this.__dataHost=s}}_initializeProtoProperties(s){this.__data=Object.create(s),this.__dataPending=Object.create(s),this.__dataOld={}}_initializeInstanceProperties(s){let o=this[M.READ_ONLY];for(let n in s)(!o||!o[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=s[n])}_addPropertyEffect(s,o,n){this._createPropertyAccessor(s,o==M.READ_ONLY);let a=Wi(this,o,!0)[s];a||(a=this[o][s]=[]),a.push(n)}_removePropertyEffect(s,o,n){let a=Wi(this,o,!0)[s],l=a.indexOf(n);l>=0&&a.splice(l,1)}_hasPropertyEffect(s,o){let n=this[o];return!!(n&&n[s])}_hasReadOnlyEffect(s){return this._hasPropertyEffect(s,M.READ_ONLY)}_hasNotifyEffect(s){return this._hasPropertyEffect(s,M.NOTIFY)}_hasReflectEffect(s){return this._hasPropertyEffect(s,M.REFLECT)}_hasComputedEffect(s){return this._hasPropertyEffect(s,M.COMPUTE)}_setPendingPropertyOrPath(s,o,n,a){if(a||Ve(Array.isArray(s)?s[0]:s)!==s){if(!a){let l=me(this,s);if(s=io(this,s,o),!s||!super._shouldPropertyChange(s,o,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(s,o,n))return xc(this,s,o),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[s])return this._setPendingProperty(s,o,n);this[s]=o}return!1}_setUnmanagedPropertyToNode(s,o,n){(n!==s[o]||typeof n=="object")&&(o==="className"&&(s=De(s)),s[o]=n)}_setPendingProperty(s,o,n){let a=this.__dataHasPaths&&Cr(s),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(s,o,l[s])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),s in this.__dataOld||(this.__dataOld[s]=this.__data[s]),a?this.__dataTemp[s]=o:this.__data[s]=o,this.__dataPending[s]=o,(a||this[M.NOTIFY]&&this[M.NOTIFY][s])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[s]=n),!0):!1}_setProperty(s,o){this._setPendingProperty(s,o,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(s){this.__dataPendingClients=this.__dataPendingClients||[],s!==this&&this.__dataPendingClients.push(s)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let s=this.__dataPendingClients;if(s){this.__dataPendingClients=null;for(let o=0;o<s.length;o++){let n=s[o];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(s,o){for(let n in s)(o||!this[M.READ_ONLY]||!this[M.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,s[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(s,o,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;bc(this,o,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(o,n,a),this._flushClients(),wt(this,this[M.REFLECT],o,n,a),wt(this,this[M.OBSERVE],o,n,a),l&&fc(this,l,o,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(s,o,n){this[M.PROPAGATE]&&wt(this,this[M.PROPAGATE],s,o,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,s,o,n)}_runEffectsForTemplate(s,o,n,a){const l=(d,h)=>{wt(this,s.propertyEffects,d,n,h,s.nodeList);for(let u=s.firstChild;u;u=u.nextSibling)this._runEffectsForTemplate(u,d,n,h)};s.runEffects?s.runEffects(l,o,a):l(o,a)}linkPaths(s,o){s=yt(s),o=yt(o),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[s]=o}unlinkPaths(s){s=yt(s),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[s]}notifySplices(s,o){let n={path:""},a=me(this,s,n);ea(this,a,n.path,o)}get(s,o){return me(o||this,s)}set(s,o,n){n?io(n,s,o):(!this[M.READ_ONLY]||!this[M.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,o,!0)&&this._invalidateProperties()}push(s,...o){let n={path:""},a=me(this,s,n),l=a.length,d=a.push(...o);return o.length&&bt(this,a,n.path,l,o.length,[]),d}pop(s){let o={path:""},n=me(this,s,o),a=!!n.length,l=n.pop();return a&&bt(this,n,o.path,n.length,0,[l]),l}splice(s,o,n,...a){let l={path:""},d=me(this,s,l);o<0?o=d.length-Math.floor(-o):o&&(o=Math.floor(o));let h;return arguments.length===2?h=d.splice(o):h=d.splice(o,n,...a),(a.length||h.length)&&bt(this,d,l.path,o,a.length,h),h}shift(s){let o={path:""},n=me(this,s,o),a=!!n.length,l=n.shift();return a&&bt(this,n,o.path,0,0,[l]),l}unshift(s,...o){let n={path:""},a=me(this,s,n),l=a.unshift(...o);return o.length&&bt(this,a,n.path,0,o.length,[]),l}notifyPath(s,o){let n;if(arguments.length==1){let a={path:""};o=me(this,s,a),n=a.path}else Array.isArray(s)?n=yt(s):n=s;this._setPendingPropertyOrPath(n,o,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(s,o){this._addPropertyEffect(s,M.READ_ONLY),o&&(this["_set"+jc(s)]=function(n){this._setProperty(s,n)})}_createPropertyObserver(s,o,n){let a={property:s,method:o,dynamicFn:!!n};this._addPropertyEffect(s,M.OBSERVE,{fn:oo,info:a,trigger:{name:s}}),n&&this._addPropertyEffect(o,M.OBSERVE,{fn:oo,info:a,trigger:{name:o}})}_createMethodObserver(s,o){let n=Yi(s);if(!n)throw new Error("Malformed observer expression '"+s+"'");ao(this,n,M.OBSERVE,Sr,null,o)}_createNotifyingProperty(s){this._addPropertyEffect(s,M.NOTIFY,{fn:mc,info:{eventName:Ci(s)+"-changed",property:s}})}_createReflectedProperty(s){let o=this.constructor.attributeNameForProperty(s);o[0]==="-"?console.warn("Property "+s+" cannot be reflected to attribute "+o+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(s,M.REFLECT,{fn:gc,info:{attrName:o}})}_createComputedProperty(s,o,n){let a=Yi(o);if(!a)throw new Error("Malformed computed expression '"+o+"'");const l=ao(this,a,M.COMPUTE,Jn,s,n);Wi(this,Zn)[s]=l}_marshalArgs(s,o,n){const a=this.__data,l=[];for(let d=0,h=s.length;d<h;d++){let{name:u,structured:f,wildcard:m,value:_,literal:g}=s[d];if(!g)if(m){const w=fi(u,o),y=co(a,n,w?o:u);_={path:w?o:u,value:y,base:w?me(a,u):y}}else _=f?co(a,n,u):a[u];if(Er&&!this._overrideLegacyUndefined&&_===void 0&&s.length>1)return Dt;l[d]=_}return l}static addPropertyEffect(s,o,n){this.prototype._addPropertyEffect(s,o,n)}static createPropertyObserver(s,o,n){this.prototype._createPropertyObserver(s,o,n)}static createMethodObserver(s,o){this.prototype._createMethodObserver(s,o)}static createNotifyingProperty(s){this.prototype._createNotifyingProperty(s)}static createReadOnlyProperty(s,o){this.prototype._createReadOnlyProperty(s,o)}static createReflectedProperty(s){this.prototype._createReflectedProperty(s)}static createComputedProperty(s,o,n){this.prototype._createComputedProperty(s,o,n)}static bindTemplate(s){return this.prototype._bindTemplate(s)}_bindTemplate(s,o){let n=this.constructor._parseTemplate(s),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(o)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else{const l=s._parentTemplateInfo||this.__templateInfo,d=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=d,d?d.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(s,o,n){let a=s.hostProps=s.hostProps||{};a[o]=!0;let l=s.propertyEffects=s.propertyEffects||{};(l[o]=l[o]||[]).push(n)}_stampTemplate(s,o){o=o||this._bindTemplate(s,!0),vt.push(this);let n=super._stampTemplate(s,o);if(vt.pop(),o.nodeList=n.nodeList,!o.wasPreBound){let a=o.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l)}return n.templateInfo=o,Tc(this,o),this.__dataClientsReady&&(this._runEffectsForTemplate(o,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(s){const o=s.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=o;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),o.nextSibling=o.previousSibling=null;let d=o.childNodes;for(let h=0;h<d.length;h++){let u=d[h];De(De(u).parentNode).removeChild(u)}}static _parseTemplateNode(s,o,n){let a=t._parseTemplateNode.call(this,s,o,n);if(s.nodeType===Node.TEXT_NODE){let l=this._parseBindings(s.textContent,o);l&&(s.textContent=uo(l)||" ",qi(this,o,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(s,o,n,a,l){let d=this._parseBindings(l,o);if(d){let h=a,u="property";uc.test(a)?u="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),u="attribute");let f=uo(d);return f&&u=="attribute"&&(a=="class"&&s.hasAttribute("class")&&(f+=" "+s.getAttribute(a)),s.setAttribute(a,f)),u=="attribute"&&h=="disable-upgrade$"&&s.setAttribute(a,""),s.localName==="input"&&h==="value"&&s.setAttribute(h,""),s.removeAttribute(h),u==="property"&&(a=Un(a)),qi(this,o,n,u,a,d,f),!0}else return t._parseTemplateNodeAttribute.call(this,s,o,n,a,l)}static _parseTemplateNestedTemplate(s,o,n){let a=t._parseTemplateNestedTemplate.call(this,s,o,n);const l=s.parentNode,d=n.templateInfo,h=l.localName==="dom-if",u=l.localName==="dom-repeat";Js&&(h||u)&&(l.removeChild(s),n=n.parentInfo,n.templateInfo=d,n.noted=!0,a=!1);let f=d.hostProps;if(Bu&&h)f&&(o.hostProps=Object.assign(o.hostProps||{},f),Js||(n.parentInfo.noted=!0));else{let m="{";for(let _ in f){let g=[{mode:m,source:_,dependencies:[_],hostProp:!0}];qi(this,o,n,"property","_host_"+_,g)}}return a}static _parseBindings(s,o){let n=[],a=0,l;for(;(l=ho.exec(s))!==null;){l.index>a&&n.push({literal:s.slice(a,l.index)});let d=l[1][0],h=!!l[2],u=l[3].trim(),f=!1,m="",_=-1;d=="{"&&(_=u.indexOf("::"))>0&&(m=u.substring(_+2),u=u.substring(0,_),f=!0);let g=Yi(u),w=[];if(g){let{args:y,methodName:v}=g;for(let E=0;E<y.length;E++){let A=y[E];A.literal||w.push(A)}let C=o.dynamicFns;(C&&C[v]||g.static)&&(w.push(v),g.dynamicFn=!0)}else w.push(u);n.push({source:u,mode:d,negate:h,customEvent:f,signature:g,dependencies:w,event:m}),a=ho.lastIndex}if(a&&a<s.length){let d=s.substring(a);d&&n.push({literal:d})}return n.length?n:null}static _evaluateBinding(s,o,n,a,l,d){let h;return o.signature?h=Sr(s,n,a,l,o.signature):n!=o.source?h=me(s,o.source):d&&Cr(n)?h=me(s,n):h=s.__data[n],o.negate&&(h=!h),h}}return e}),vt=[];/**
1557
1568
  @license
1558
1569
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1559
1570
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1569,7 +1580,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1569
1580
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1570
1581
  Code distributed by Google as part of the polymer project is also
1571
1582
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1572
- */function Wc(i){const t={};for(let e in i){const r=i[e];t[e]=typeof r=="function"?{type:r}:r}return t}const qc=oe(i=>{const t=jn(i);function e(o){const n=Object.getPrototypeOf(o);return n.prototype instanceof s?n:null}function r(o){if(!o.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",o))){let n=null;if(o.hasOwnProperty(JSCompiler_renameProperty("properties",o))){const a=o.properties;a&&(n=Wc(a))}o.__ownProperties=n}return o.__ownProperties}class s extends t{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const n=this._properties;this.__observedAttributes=n?Object.keys(n).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const n=e(this);n&&n.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const n=r(this);n&&this.createProperties(n)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const n=e(this);this.__properties=Object.assign({},n&&n._properties,r(this))}return this.__properties}static typeForProperty(n){const a=this._properties[n];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return s});/**
1583
+ */function Wc(i){const t={};for(let e in i){const r=i[e];t[e]=typeof r=="function"?{type:r}:r}return t}const qc=oe(i=>{const t=Wn(i);function e(o){const n=Object.getPrototypeOf(o);return n.prototype instanceof s?n:null}function r(o){if(!o.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",o))){let n=null;if(o.hasOwnProperty(JSCompiler_renameProperty("properties",o))){const a=o.properties;a&&(n=Wc(a))}o.__ownProperties=n}return o.__ownProperties}class s extends t{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const n=this._properties;this.__observedAttributes=n?Object.keys(n).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const n=e(this);n&&n.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const n=r(this);n&&this.createProperties(n)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const n=e(this);this.__properties=Object.assign({},n&&n._properties,r(this))}return this.__properties}static typeForProperty(n){const a=this._properties[n];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return s});/**
1573
1584
  * @fileoverview
1574
1585
  * @suppress {checkPrototypalTypes}
1575
1586
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1579,7 +1590,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1579
1590
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
1580
1591
  * Google as part of the polymer project is also subject to an additional IP
1581
1592
  * rights grant found at http://polymer.github.io/PATENTS.txt
1582
- */const Yc="3.5.2",uo=window.ShadyCSS&&window.ShadyCSS.cssBuild,Xc=oe(i=>{const t=qc(Gc(i));function e(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let d=l._properties;for(let h in d){let u=d[h];"value"in u&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[h]=u)}}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 s(l,d,h,u){h.computed&&(h.readOnly=!0),h.computed&&(l._hasReadOnlyEffect(d)?console.warn(`Cannot redefine computed property '${d}'.`):l._createComputedProperty(d,h.computed,u)),h.readOnly&&!l._hasReadOnlyEffect(d)?l._createReadOnlyProperty(d,!h.computed):h.readOnly===!1&&l._hasReadOnlyEffect(d)&&console.warn(`Cannot make readOnly property '${d}' non-readOnly.`),h.reflectToAttribute&&!l._hasReflectEffect(d)?l._createReflectedProperty(d):h.reflectToAttribute===!1&&l._hasReflectEffect(d)&&console.warn(`Cannot make reflected property '${d}' non-reflected.`),h.notify&&!l._hasNotifyEffect(d)?l._createNotifyingProperty(d):h.notify===!1&&l._hasNotifyEffect(d)&&console.warn(`Cannot make notify property '${d}' non-notify.`),h.observer&&l._createPropertyObserver(d,h.observer,u[h.observer]),l._addPropertyToAttributeMap(d)}function o(l,d,h,u){if(!uo){const f=d.content.querySelectorAll("style"),m=Fn(d),_=Uu(h),g=d.content.firstElementChild;for(let y=0;y<_.length;y++){let v=_[y];v.textContent=l._processStyleText(v.textContent,u),d.content.insertBefore(v,g)}let w=0;for(let y=0;y<m.length;y++){let v=m[y],C=f[w];C!==v?(v=v.cloneNode(!0),C.parentNode.insertBefore(v,C)):w++,v.textContent=l._processStyleText(v.textContent,u)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(d,h),Hu&&uo&&Tu){const f=d.content.querySelectorAll("style");if(f){let m="";Array.from(f).forEach(_=>{m+=_.textContent,_.parentNode.removeChild(_)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(m)}}}function n(l){let d=null;if(l&&(!Pr||Ou)&&(d=Ht.import(l,"template"),Pr&&!d))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return d}class a extends t{static get polymerElementVersion(){return Yc}static _finalizeClass(){t._finalizeClass.call(this);const d=r(this);d&&this.createObservers(d,this._properties),this._prepareTemplate()}static _prepareTemplate(){let d=this.template;d&&(typeof d=="string"?(console.error("template getter must return HTMLTemplateElement"),d=null):Nu||(d=d.cloneNode(!0))),this.prototype._template=d}static createProperties(d){for(let h in d)s(this.prototype,h,d[h],d)}static createObservers(d,h){const u=this.prototype;for(let f=0;f<d.length;f++)u._createMethodObserver(d[f],h)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let d=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof d=="function"&&(d=d()),this._template=d!==void 0?d:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(d){this._template=d}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const d=this.importMeta;if(d)this._importPath=Xr(d.url);else{const h=Ht.import(this.is);this._importPath=h&&h.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=Iu,this.importPath=this.constructor.importPath;let d=e(this.constructor);if(d)for(let h in d){let u=d[h];if(this._canApplyPropertyDefault(h)){let f=typeof u.value=="function"?u.value.call(this):u.value;this._hasAccessor(h)?this._setPendingProperty(h,f,!0):this[h]=f}}}_canApplyPropertyDefault(d){return!this.hasOwnProperty(d)}static _processStyleText(d,h){return Yr(d,h)}static _finalizeTemplate(d){const h=this.prototype._template;if(h&&!h.__polymerFinalized){h.__polymerFinalized=!0;const u=this.importPath,f=u?Tt(u):"";o(this,h,d,f),this.prototype._bindTemplate(h)}}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(d){const h=Fe(this);if(h.attachShadow)return d?(h.shadowRoot||(h.attachShadow({mode:"open",shadyUpgradeFragment:d}),h.shadowRoot.appendChild(d),this.constructor._styleSheet&&(h.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Lu&&window.ShadyDOM&&window.ShadyDOM.flushInitial(h.shadowRoot),h.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(d){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,d)}resolveUrl(d,h){return!h&&this.importPath&&(h=Tt(this.importPath)),Tt(d,h)}static _parseTemplateContent(d,h,u){return h.dynamicFns=h.dynamicFns||this._properties,t._parseTemplateContent.call(this,d,h,u)}static _addTemplatePropertyEffect(d,h,u){return ku&&!(h in this._properties)&&!(u.info.part.signature&&u.info.part.signature.static)&&!u.info.part.hostProp&&!d.nestedTemplate&&console.warn(`Property '${h}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,d,h,u)}}return a});/**
1593
+ */const Yc="3.5.2",fo=window.ShadyCSS&&window.ShadyCSS.cssBuild,Zc=oe(i=>{const t=qc(Gc(i));function e(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let d=l._properties;for(let h in d){let u=d[h];"value"in u&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[h]=u)}}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 s(l,d,h,u){h.computed&&(h.readOnly=!0),h.computed&&(l._hasReadOnlyEffect(d)?console.warn(`Cannot redefine computed property '${d}'.`):l._createComputedProperty(d,h.computed,u)),h.readOnly&&!l._hasReadOnlyEffect(d)?l._createReadOnlyProperty(d,!h.computed):h.readOnly===!1&&l._hasReadOnlyEffect(d)&&console.warn(`Cannot make readOnly property '${d}' non-readOnly.`),h.reflectToAttribute&&!l._hasReflectEffect(d)?l._createReflectedProperty(d):h.reflectToAttribute===!1&&l._hasReflectEffect(d)&&console.warn(`Cannot make reflected property '${d}' non-reflected.`),h.notify&&!l._hasNotifyEffect(d)?l._createNotifyingProperty(d):h.notify===!1&&l._hasNotifyEffect(d)&&console.warn(`Cannot make notify property '${d}' non-notify.`),h.observer&&l._createPropertyObserver(d,h.observer,u[h.observer]),l._addPropertyToAttributeMap(d)}function o(l,d,h,u){if(!fo){const f=d.content.querySelectorAll("style"),m=zn(d),_=Uu(h),g=d.content.firstElementChild;for(let y=0;y<_.length;y++){let v=_[y];v.textContent=l._processStyleText(v.textContent,u),d.content.insertBefore(v,g)}let w=0;for(let y=0;y<m.length;y++){let v=m[y],C=f[w];C!==v?(v=v.cloneNode(!0),C.parentNode.insertBefore(v,C)):w++,v.textContent=l._processStyleText(v.textContent,u)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(d,h),Ru&&fo&&Tu){const f=d.content.querySelectorAll("style");if(f){let m="";Array.from(f).forEach(_=>{m+=_.textContent,_.parentNode.removeChild(_)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(m)}}}function n(l){let d=null;if(l&&(!Pr||Ou)&&(d=Bt.import(l,"template"),Pr&&!d))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return d}class a extends t{static get polymerElementVersion(){return Yc}static _finalizeClass(){t._finalizeClass.call(this);const d=r(this);d&&this.createObservers(d,this._properties),this._prepareTemplate()}static _prepareTemplate(){let d=this.template;d&&(typeof d=="string"?(console.error("template getter must return HTMLTemplateElement"),d=null):Nu||(d=d.cloneNode(!0))),this.prototype._template=d}static createProperties(d){for(let h in d)s(this.prototype,h,d[h],d)}static createObservers(d,h){const u=this.prototype;for(let f=0;f<d.length;f++)u._createMethodObserver(d[f],h)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let d=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof d=="function"&&(d=d()),this._template=d!==void 0?d:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(d){this._template=d}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const d=this.importMeta;if(d)this._importPath=Jr(d.url);else{const h=Bt.import(this.is);this._importPath=h&&h.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=Iu,this.importPath=this.constructor.importPath;let d=e(this.constructor);if(d)for(let h in d){let u=d[h];if(this._canApplyPropertyDefault(h)){let f=typeof u.value=="function"?u.value.call(this):u.value;this._hasAccessor(h)?this._setPendingProperty(h,f,!0):this[h]=f}}}_canApplyPropertyDefault(d){return!this.hasOwnProperty(d)}static _processStyleText(d,h){return Xr(d,h)}static _finalizeTemplate(d){const h=this.prototype._template;if(h&&!h.__polymerFinalized){h.__polymerFinalized=!0;const u=this.importPath,f=u?St(u):"";o(this,h,d,f),this.prototype._bindTemplate(h)}}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(d){const h=De(this);if(h.attachShadow)return d?(h.shadowRoot||(h.attachShadow({mode:"open",shadyUpgradeFragment:d}),h.shadowRoot.appendChild(d),this.constructor._styleSheet&&(h.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Mu&&window.ShadyDOM&&window.ShadyDOM.flushInitial(h.shadowRoot),h.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(d){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,d)}resolveUrl(d,h){return!h&&this.importPath&&(h=St(this.importPath)),St(d,h)}static _parseTemplateContent(d,h,u){return h.dynamicFns=h.dynamicFns||this._properties,t._parseTemplateContent.call(this,d,h,u)}static _addTemplatePropertyEffect(d,h,u){return ku&&!(h in this._properties)&&!(u.info.part.signature&&u.info.part.signature.static)&&!u.info.part.hostProp&&!d.nestedTemplate&&console.warn(`Property '${h}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,d,h,u)}}return a});/**
1583
1594
  @license
1584
1595
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1585
1596
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1587,7 +1598,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1587
1598
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1588
1599
  Code distributed by Google as part of the polymer project is also
1589
1600
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1590
- */const co=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:i=>i});class Kn{constructor(t,e){ta(t,e);const r=e.reduce((s,o,n)=>s+ea(o)+t[n+1],t[0]);this.value=r.toString()}toString(){return this.value}}function ea(i){if(i instanceof Kn)return i.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${i}`)}function Zc(i){if(i instanceof HTMLTemplateElement)return i.innerHTML;if(i instanceof Kn)return ea(i);throw new Error(`non-template value passed to Polymer's html function: ${i}`)}const $t=function(t,...e){ta(t,e);const r=document.createElement("template");let s=e.reduce((o,n,a)=>o+Zc(n)+t[a+1],t[0]);return co&&(s=co.createHTML(s)),r.innerHTML=s,r},ta=(i,t)=>{if(!Array.isArray(i)||!Array.isArray(i.raw)||t.length!==i.length-1)throw new TypeError("Invalid call to the html template tag")};/**
1601
+ */const po=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:i=>i});class ta{constructor(t,e){ra(t,e);const r=e.reduce((s,o,n)=>s+ia(o)+t[n+1],t[0]);this.value=r.toString()}toString(){return this.value}}function ia(i){if(i instanceof ta)return i.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${i}`)}function Xc(i){if(i instanceof HTMLTemplateElement)return i.innerHTML;if(i instanceof ta)return ia(i);throw new Error(`non-template value passed to Polymer's html function: ${i}`)}const Vt=function(t,...e){ra(t,e);const r=document.createElement("template");let s=e.reduce((o,n,a)=>o+Xc(n)+t[a+1],t[0]);return po&&(s=po.createHTML(s)),r.innerHTML=s,r},ra=(i,t)=>{if(!Array.isArray(i)||!Array.isArray(i.raw)||t.length!==i.length-1)throw new TypeError("Invalid call to the html template tag")};/**
1591
1602
  @license
1592
1603
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1593
1604
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1595,19 +1606,19 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1595
1606
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1596
1607
  Code distributed by Google as part of the polymer project is also
1597
1608
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1598
- */const Ut=Xc(HTMLElement);/**
1609
+ */const $t=Zc(HTMLElement);/**
1599
1610
  * @license
1600
1611
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1601
1612
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1602
- */const Ie=[];function Tr(i,t,e=i.getAttribute("dir")){t?i.setAttribute("dir",t):e!=null&&i.removeAttribute("dir")}function Ir(){return document.documentElement.getAttribute("dir")}function Jc(){const i=Ir();Ie.forEach(t=>{Tr(t,i)})}const Qc=new MutationObserver(Jc);Qc.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Si=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(),Tr(this,Ir(),null))}attributeChangedCallback(e,r,s){if(super.attributeChangedCallback(e,r,s),e!=="dir")return;const o=Ir(),n=s===o&&Ie.indexOf(this)===-1,a=!s&&r&&Ie.indexOf(this)===-1;n||a?(this.__subscribe(),Tr(this,o,s)):s!==o&&r===o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=Ie.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,r,s){s==="dir"&&r===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,r,s)}_attributeToProperty(e,r,s){e==="dir"&&!r?this.dir="":super._attributeToProperty(e,r,s)}__subscribe(){Ie.includes(this)||Ie.push(this)}__unsubscribe(){Ie.includes(this)&&Ie.splice(Ie.indexOf(this),1)}};/**
1613
+ */const Te=[];function Tr(i,t,e=i.getAttribute("dir")){t?i.setAttribute("dir",t):e!=null&&i.removeAttribute("dir")}function Ir(){return document.documentElement.getAttribute("dir")}function Jc(){const i=Ir();Te.forEach(t=>{Tr(t,i)})}const Kc=new MutationObserver(Jc);Kc.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Ai=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(),Tr(this,Ir(),null))}attributeChangedCallback(e,r,s){if(super.attributeChangedCallback(e,r,s),e!=="dir")return;const o=Ir(),n=s===o&&Te.indexOf(this)===-1,a=!s&&r&&Te.indexOf(this)===-1;n||a?(this.__subscribe(),Tr(this,o,s)):s!==o&&r===o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=Te.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,r,s){s==="dir"&&r===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,r,s)}_attributeToProperty(e,r,s){e==="dir"&&!r?this.dir="":super._attributeToProperty(e,r,s)}__subscribe(){Te.includes(this)||Te.push(this)}__unsubscribe(){Te.includes(this)&&Te.splice(Te.indexOf(this),1)}};/**
1603
1614
  * @license
1604
1615
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1605
1616
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1606
- */const Kc=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(r=>r.focus&&r.focus())})}};/**
1617
+ */const Qc=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(r=>r.focus&&r.focus())})}};/**
1607
1618
  * @license
1608
1619
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1609
1620
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1610
- */const ef=R`
1621
+ */const ef=D`
1611
1622
  :host {
1612
1623
  display: flex;
1613
1624
  align-items: center;
@@ -1676,11 +1687,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1676
1687
  * @license
1677
1688
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1678
1689
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1679
- */de("vaadin-input-container",ef,{moduleId:"vaadin-input-container-styles"});class tf extends Kc(Ci(Si(Ut))){static get is(){return"vaadin-input-container"}static get template(){return $t`
1690
+ */de("vaadin-input-container",ef,{moduleId:"vaadin-input-container-styles"});class tf extends Qc(Ei(Ai($t))){static get is(){return"vaadin-input-container"}static get template(){return Vt`
1680
1691
  <slot name="prefix"></slot>
1681
1692
  <slot></slot>
1682
1693
  <slot name="suffix"></slot>
1683
- `}}ct(tf);/**
1694
+ `}}ut(tf);/**
1684
1695
  * @license
1685
1696
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
1686
1697
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1688,7 +1699,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1688
1699
  * @license
1689
1700
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
1690
1701
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1691
- */class sf extends rf(Ci(Si(Ut))){static get template(){return $t`
1702
+ */class sf extends rf(Ei(Ai($t))){static get template(){return Vt`
1692
1703
  <style>
1693
1704
  :host {
1694
1705
  display: block;
@@ -1702,7 +1713,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1702
1713
  <div part="content">
1703
1714
  <slot></slot>
1704
1715
  </div>
1705
- `}static get is(){return"vaadin-combo-box-item"}}ct(sf);/**
1716
+ `}static get is(){return"vaadin-combo-box-item"}}ut(sf);/**
1706
1717
  @license
1707
1718
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1708
1719
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1710,15 +1721,15 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1710
1721
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1711
1722
  Code distributed by Google as part of the polymer project is also
1712
1723
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1713
- */let Or=!1,of=[],ia=[];function nf(){Or=!0,requestAnimationFrame(function(){Or=!1,af(of),setTimeout(function(){lf(ia)})})}function af(i){for(;i.length;)ra(i.shift())}function lf(i){for(let t=0,e=i.length;t<e;t++)ra(i.shift())}function ra(i){const t=i[0],e=i[1],r=i[2];try{e.apply(t,r)}catch(s){setTimeout(()=>{throw s})}}function df(i,t,e){Or||nf(),ia.push([i,t,e])}/**
1724
+ */let Or=!1,of=[],sa=[];function nf(){Or=!0,requestAnimationFrame(function(){Or=!1,af(of),setTimeout(function(){lf(sa)})})}function af(i){for(;i.length;)oa(i.shift())}function lf(i){for(let t=0,e=i.length;t<e;t++)oa(i.shift())}function oa(i){const t=i[0],e=i[1],r=i[2];try{e.apply(t,r)}catch(s){setTimeout(()=>{throw s})}}function df(i,t,e){Or||nf(),sa.push([i,t,e])}/**
1714
1725
  * @license
1715
1726
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1716
1727
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1717
- */const Ti=i=>i.test(navigator.userAgent),Nr=i=>i.test(navigator.platform),hf=i=>i.test(navigator.vendor);Ti(/Android/u);Ti(/Chrome/u)&&hf(/Google Inc/u);Ti(/Firefox/u);const uf=Nr(/^iPad/u)||Nr(/^Mac/u)&&navigator.maxTouchPoints>1,cf=Nr(/^iPhone/u),ff=cf||uf,pf=Ti(/^((?!chrome|android).)*safari/iu),kr=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(i){return!1}})();/**
1728
+ */const Si=i=>i.test(navigator.userAgent),Nr=i=>i.test(navigator.platform),hf=i=>i.test(navigator.vendor);Si(/Android/u);Si(/Chrome/u)&&hf(/Google Inc/u);Si(/Firefox/u);const uf=Nr(/^iPad/u)||Nr(/^Mac/u)&&navigator.maxTouchPoints>1,cf=Nr(/^iPhone/u),ff=cf||uf,pf=Si(/^((?!chrome|android).)*safari/iu),kr=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(i){return!1}})();/**
1718
1729
  * @license
1719
1730
  * Copyright (c) 2017 Anton Korzunov
1720
1731
  * SPDX-License-Identifier: MIT
1721
- */let qe=new WeakMap,Kt=new WeakMap,ei={},Xi=0;const fo=i=>i&&i.nodeType===Node.ELEMENT_NODE,Zi=(...i)=>{console.error(`Error: ${i.join(" ")}. Skip setting aria-hidden.`)},mf=(i,t)=>fo(i)?t.map(e=>{if(!fo(e))return Zi(e,"is not a valid element"),null;let r=e;for(;r&&r!==i;){if(i.contains(r))return e;r=r.getRootNode().host}return Zi(e,"is not contained inside",i),null}).filter(e=>!!e):(Zi(i,"is not a valid element"),[]),_f=(i,t,e,r)=>{const s=mf(t,Array.isArray(i)?i:[i]);ei[e]||(ei[e]=new WeakMap);const o=ei[e],n=[],a=new Set,l=new Set(s),d=u=>{if(!u||a.has(u))return;a.add(u);const f=u.assignedSlot;f&&d(f),d(u.parentNode||u.host)};s.forEach(d);const h=u=>{if(!u||l.has(u))return;const f=u.shadowRoot;(f?[...u.children,...f.children]:[...u.children]).forEach(_=>{if(!["template","script","style"].includes(_.localName))if(a.has(_))h(_);else{const g=_.getAttribute(r),w=g!==null&&g!=="false",y=(qe.get(_)||0)+1,v=(o.get(_)||0)+1;qe.set(_,y),o.set(_,v),n.push(_),y===1&&w&&Kt.set(_,!0),v===1&&_.setAttribute(e,"true"),w||_.setAttribute(r,"true")}})};return h(t),a.clear(),Xi+=1,()=>{n.forEach(u=>{const f=qe.get(u)-1,m=o.get(u)-1;qe.set(u,f),o.set(u,m),f||(Kt.has(u)?Kt.delete(u):u.removeAttribute(r)),m||u.removeAttribute(e)}),Xi-=1,Xi||(qe=new WeakMap,qe=new WeakMap,Kt=new WeakMap,ei={})}},gf=(i,t=document.body,e="data-aria-hidden")=>{const r=Array.from(Array.isArray(i)?i:[i]);return t&&r.push(...Array.from(t.querySelectorAll("[aria-live]"))),_f(r,t,e,"aria-hidden")};/**
1732
+ */let We=new WeakMap,Kt=new WeakMap,Qt={},Zi=0;const mo=i=>i&&i.nodeType===Node.ELEMENT_NODE,Xi=(...i)=>{console.error(`Error: ${i.join(" ")}. Skip setting aria-hidden.`)},mf=(i,t)=>mo(i)?t.map(e=>{if(!mo(e))return Xi(e,"is not a valid element"),null;let r=e;for(;r&&r!==i;){if(i.contains(r))return e;r=r.getRootNode().host}return Xi(e,"is not contained inside",i),null}).filter(e=>!!e):(Xi(i,"is not a valid element"),[]),_f=(i,t,e,r)=>{const s=mf(t,Array.isArray(i)?i:[i]);Qt[e]||(Qt[e]=new WeakMap);const o=Qt[e],n=[],a=new Set,l=new Set(s),d=u=>{if(!u||a.has(u))return;a.add(u);const f=u.assignedSlot;f&&d(f),d(u.parentNode||u.host)};s.forEach(d);const h=u=>{if(!u||l.has(u))return;const f=u.shadowRoot;(f?[...u.children,...f.children]:[...u.children]).forEach(_=>{if(!["template","script","style"].includes(_.localName))if(a.has(_))h(_);else{const g=_.getAttribute(r),w=g!==null&&g!=="false",y=(We.get(_)||0)+1,v=(o.get(_)||0)+1;We.set(_,y),o.set(_,v),n.push(_),y===1&&w&&Kt.set(_,!0),v===1&&_.setAttribute(e,"true"),w||_.setAttribute(r,"true")}})};return h(t),a.clear(),Zi+=1,()=>{n.forEach(u=>{const f=We.get(u)-1,m=o.get(u)-1;We.set(u,f),o.set(u,m),f||(Kt.has(u)?Kt.delete(u):u.removeAttribute(r)),m||u.removeAttribute(e)}),Zi-=1,Zi||(We=new WeakMap,We=new WeakMap,Kt=new WeakMap,Qt={})}},gf=(i,t=document.body,e="data-aria-hidden")=>{const r=Array.from(Array.isArray(i)?i:[i]);return t&&r.push(...Array.from(t.querySelectorAll("[aria-live]"))),_f(r,t,e,"aria-hidden")};/**
1722
1733
  * @license
1723
1734
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1724
1735
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1726,35 +1737,35 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1726
1737
  * @license
1727
1738
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1728
1739
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1729
- */let Qr=!1;window.addEventListener("keydown",()=>{Qr=!0},{capture:!0});window.addEventListener("mousedown",()=>{Qr=!1},{capture:!0});function Lr(){let i=document.activeElement||document.body;for(;i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function Kr(){return Qr}function vf(i){const t=i.style;if(t.visibility==="hidden"||t.display==="none")return!0;const e=window.getComputedStyle(i);return e.visibility==="hidden"||e.display==="none"}function yf(i,t){const e=Math.max(i.tabIndex,0),r=Math.max(t.tabIndex,0);return e===0||r===0?r>e:e>r}function wf(i,t){const e=[];for(;i.length>0&&t.length>0;)yf(i[0],t[0])?e.push(t.shift()):e.push(i.shift());return e.concat(i,t)}function Mr(i){const t=i.length;if(t<2)return i;const e=Math.ceil(t/2),r=Mr(i.slice(0,e)),s=Mr(i.slice(e));return wf(r,s)}function sa(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 oa(i){return i.getRootNode().activeElement===i}function xf(i){if(!sa(i))return-1;const t=i.getAttribute("tabindex")||0;return Number(t)}function na(i,t){if(i.nodeType!==Node.ELEMENT_NODE||vf(i))return!1;const e=i,r=xf(e);let s=r>0;r>=0&&t.push(e);let o=[];return e.localName==="slot"?o=e.assignedNodes({flatten:!0}):o=(e.shadowRoot||e).children,[...o].forEach(n=>{s=na(n,t)||s}),s}function Pf(i){const t=[];return na(i,t)?Mr(t):t}/**
1740
+ */let es=!1;window.addEventListener("keydown",()=>{es=!0},{capture:!0});window.addEventListener("mousedown",()=>{es=!1},{capture:!0});function Mr(){let i=document.activeElement||document.body;for(;i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function ts(){return es}function vf(i){const t=i.style;if(t.visibility==="hidden"||t.display==="none")return!0;const e=window.getComputedStyle(i);return e.visibility==="hidden"||e.display==="none"}function yf(i,t){const e=Math.max(i.tabIndex,0),r=Math.max(t.tabIndex,0);return e===0||r===0?r>e:e>r}function wf(i,t){const e=[];for(;i.length>0&&t.length>0;)yf(i[0],t[0])?e.push(t.shift()):e.push(i.shift());return e.concat(i,t)}function Lr(i){const t=i.length;if(t<2)return i;const e=Math.ceil(t/2),r=Lr(i.slice(0,e)),s=Lr(i.slice(e));return wf(r,s)}function na(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 aa(i){return i.getRootNode().activeElement===i}function xf(i){if(!na(i))return-1;const t=i.getAttribute("tabindex")||0;return Number(t)}function la(i,t){if(i.nodeType!==Node.ELEMENT_NODE||vf(i))return!1;const e=i,r=xf(e);let s=r>0;r>=0&&t.push(e);let o=[];return e.localName==="slot"?o=e.assignedNodes({flatten:!0}):o=(e.shadowRoot||e).children,[...o].forEach(n=>{s=la(n,t)||s}),s}function Pf(i){const t=[];return la(i,t)?Lr(t):t}/**
1730
1741
  * @license
1731
1742
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1732
1743
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1733
- */class Ef{saveFocus(t){this.focusNode=t||Lr()}restoreFocus(t){const e=this.focusNode;if(!e)return;const r=t?t.preventScroll:!1;Lr()===document.body?setTimeout(()=>e.focus({preventScroll:r})):e.focus({preventScroll:r}),this.focusNode=null}}/**
1744
+ */class Ef{saveFocus(t){this.focusNode=t||Mr()}restoreFocus(t){const e=this.focusNode;if(!e)return;const r=t?t.preventScroll:!1;Mr()===document.body?setTimeout(()=>e.focus({preventScroll:r})):e.focus({preventScroll:r}),this.focusNode=null}}/**
1734
1745
  * @license
1735
1746
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1736
1747
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1737
- */const Ji=[];class Cf{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return Pf(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(oa).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Ji.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Ji.pop()}__onKeyDown(t){if(this.__trapNode&&this===Array.from(Ji).pop()&&t.key==="Tab"){t.preventDefault();const e=t.shiftKey;this.__focusNextElement(e)}}__focusNextElement(t=!1){const e=this.__focusableElements,r=t?-1:1,s=this.__focusedElementIndex,o=(e.length+s+r)%e.length,n=e[o];n.focus(),n.localName==="input"&&n.select()}}/**
1748
+ */const Ji=[];class Cf{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return Pf(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(aa).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Ji.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Ji.pop()}__onKeyDown(t){if(this.__trapNode&&this===Array.from(Ji).pop()&&t.key==="Tab"){t.preventDefault();const e=t.shiftKey;this.__focusNextElement(e)}}__focusNextElement(t=!1){const e=this.__focusableElements,r=t?-1:1,s=this.__focusedElementIndex,o=(e.length+s+r)%e.length,n=e[o];n.focus(),n.localName==="input"&&n.select()}}/**
1738
1749
  * @license
1739
1750
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1740
1751
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1741
- */const Ii=oe(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)}});/**
1752
+ */const Ti=oe(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)}});/**
1742
1753
  * @license
1743
1754
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1744
1755
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1745
- */const Af=i=>class extends Ii(i){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new bf(this),this.__focusTrapController=new Cf(this),this.__focusRestorationController=new Ef}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=!Kr();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=Lr();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let r=e;const s=e.ownerDocument;for(;r&&r!==s&&r!==this;)r=r.parentNode||r.host;return r===this}};/**
1756
+ */const Af=i=>class extends Ti(i){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new bf(this),this.__focusTrapController=new Cf(this),this.__focusRestorationController=new Ef}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=!ts();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=Mr();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let r=e;const s=e.ownerDocument;for(;r&&r!==s&&r!==this;)r=r.parentNode||r.host;return r===this}};/**
1746
1757
  * @license
1747
1758
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1748
1759
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1749
- */const aa=()=>Array.from(document.body.children).filter(i=>i instanceof HTMLElement&&i._hasOverlayStackMixin&&!i.hasAttribute("closing")).sort((i,t)=>i.__zIndex-t.__zIndex||0),Br=()=>aa().filter(i=>i.$.overlay),Sf=i=>i===Br().pop(),Tf=i=>class extends i{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return Sf(this)}bringToFront(){let e="";const r=aa().filter(s=>s!==this).pop();r&&(e=r.__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"),Br().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=Br();let r;for(;(r=e.pop())&&!(r!==this&&(r.$.overlay.style.removeProperty("pointer-events"),!r.modeless)););}};/**
1760
+ */const da=()=>Array.from(document.body.children).filter(i=>i instanceof HTMLElement&&i._hasOverlayStackMixin&&!i.hasAttribute("closing")).sort((i,t)=>i.__zIndex-t.__zIndex||0),Br=()=>da().filter(i=>i.$.overlay),Sf=i=>i===Br().pop(),Tf=i=>class extends i{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return Sf(this)}bringToFront(){let e="";const r=da().filter(s=>s!==this).pop();r&&(e=r.__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"),Br().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=Br();let r;for(;(r=e.pop())&&!(r!==this&&(r.$.overlay.style.removeProperty("pointer-events"),!r.modeless)););}};/**
1750
1761
  * @license
1751
1762
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1752
1763
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1753
- */const If=i=>class extends Af(Tf(i)){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0,sync:!0},owner:{type:Object,sync:!0},model:{type:Object,sync:!0},renderer:{type:Object,sync:!0},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged",sync:!0},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged",sync:!0},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!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),ff&&(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 r=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(r),r.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,s=window.innerWidth>e,o=document.documentElement.clientHeight;s&&o>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${o-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,r,s,o){const n=this._oldOwner!==r||this._oldModel!==s;this._oldModel=s,this._oldOwner=r;const a=this._oldRenderer!==e,l=this._oldRenderer!==void 0;this._oldRenderer=e;const d=this._oldOpened!==o;this._oldOpened=o,a&&l&&(this.innerHTML="",delete this._$litPart$),o&&e&&(a||d||n)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,r){e?(this._saveFocus(),this._animatedOpening(),df(this,()=>{this._trapFocus();const s=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(s)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):r&&(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),r=e.getPropertyValue("animation-name");return!(e.getPropertyValue("display")==="none")&&r&&r!=="none"}_enqueueAnimation(e,r){const s=`__${e}Handler`,o=n=>{n&&n.target!==this||(r(),this.removeEventListener("animationend",o),delete this[s])};this[s]=o,this.addEventListener("animationend",o)}_flushAnimation(e){const r=`__${e}Handler`;typeof this[r]=="function"&&this[r]()}_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 r=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(r),this.opened&&!r.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const r=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(r),this.opened&&!r.defaultPrevented&&this.close(e)}}};/**
1764
+ */const If=i=>class extends Af(Tf(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),ff&&(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 r=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(r),r.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,s=window.innerWidth>e,o=document.documentElement.clientHeight;s&&o>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${o-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,r,s,o){const n=this._oldOwner!==r||this._oldModel!==s;this._oldModel=s,this._oldOwner=r;const a=this._oldRenderer!==e,l=this._oldRenderer!==void 0;this._oldRenderer=e;const d=this._oldOpened!==o;this._oldOpened=o,a&&l&&(this.innerHTML="",delete this._$litPart$),o&&e&&(a||d||n)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,r){e?(this._saveFocus(),this._animatedOpening(),df(this,()=>{this._trapFocus();const s=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(s)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):r&&(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),r=e.getPropertyValue("animation-name");return!(e.getPropertyValue("display")==="none")&&r&&r!=="none"}_enqueueAnimation(e,r){const s=`__${e}Handler`,o=n=>{n&&n.target!==this||(r(),this.removeEventListener("animationend",o),delete this[s])};this[s]=o,this.addEventListener("animationend",o)}_flushAnimation(e){const r=`__${e}Handler`;typeof this[r]=="function"&&this[r]()}_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 r=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(r),this.opened&&!r.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const r=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(r),this.opened&&!r.defaultPrevented&&this.close(e)}}};/**
1754
1765
  * @license
1755
1766
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1756
1767
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1757
- */const Of=R`
1768
+ */const Of=D`
1758
1769
  :host {
1759
1770
  z-index: 200;
1760
1771
  position: fixed;
@@ -1817,23 +1828,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1817
1828
  * @license
1818
1829
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1819
1830
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1820
- */function Nf(i){const t=[];for(;i;){if(i.nodeType===Node.DOCUMENT_NODE){t.push(i);break}if(i.nodeType===Node.DOCUMENT_FRAGMENT_NODE){t.push(i),i=i.host;continue}if(i.assignedSlot){i=i.assignedSlot;continue}i=i.parentNode}return t}function es(i){return i?new Set(i.split(" ")):new Set}function Oi(i){return i?[...i].join(" "):""}function la(i,t,e){const r=es(i.getAttribute(t));r.add(e),i.setAttribute(t,Oi(r))}function kf(i,t,e){const r=es(i.getAttribute(t));if(r.delete(e),r.size===0){i.removeAttribute(t);return}i.setAttribute(t,Oi(r))}function Lf(i){return i.nodeType===Node.TEXT_NODE&&i.textContent.trim()===""}/**
1831
+ */function Nf(i){const t=[];for(;i;){if(i.nodeType===Node.DOCUMENT_NODE){t.push(i);break}if(i.nodeType===Node.DOCUMENT_FRAGMENT_NODE){t.push(i),i=i.host;continue}if(i.assignedSlot){i=i.assignedSlot;continue}i=i.parentNode}return t}function is(i){return i?new Set(i.split(" ")):new Set}function Ii(i){return i?[...i].join(" "):""}function ha(i,t,e){const r=is(i.getAttribute(t));r.add(e),i.setAttribute(t,Ii(r))}function kf(i,t,e){const r=is(i.getAttribute(t));if(r.delete(e),r.size===0){i.removeAttribute(t);return}i.setAttribute(t,Ii(r))}function Mf(i){return i.nodeType===Node.TEXT_NODE&&i.textContent.trim()===""}/**
1821
1832
  * @license
1822
1833
  * Copyright (c) 2024 Vaadin Ltd.
1823
1834
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1824
- */function Mf(i,t){let e=null;const r=document.documentElement;function s(){e&&e.disconnect(),e=null}function o(n=!1,a=1){s();const{left:l,top:d,width:h,height:u}=i.getBoundingClientRect();if(n||t(),!h||!u)return;const f=Math.floor(d),m=Math.floor(r.clientWidth-(l+h)),_=Math.floor(r.clientHeight-(d+u)),g=Math.floor(l),y={rootMargin:`${-f}px ${-m}px ${-_}px ${-g}px`,threshold:Math.max(0,Math.min(1,a))||1};let v=!0;function C(E){let A=E[0].intersectionRatio;if(A!==a){if(!v)return o();A===0&&(A=1e-7),o(!1,A)}v=!1}e=new IntersectionObserver(C,y),e.observe(i)}return o(!0),s}/**
1835
+ */function Lf(i,t){let e=null;const r=document.documentElement;function s(){e&&e.disconnect(),e=null}function o(n=!1,a=1){s();const{left:l,top:d,width:h,height:u}=i.getBoundingClientRect();if(n||t(),!h||!u)return;const f=Math.floor(d),m=Math.floor(r.clientWidth-(l+h)),_=Math.floor(r.clientHeight-(d+u)),g=Math.floor(l),y={rootMargin:`${-f}px ${-m}px ${-_}px ${-g}px`,threshold:Math.max(0,Math.min(1,a))||1};let v=!0;function C(E){let A=E[0].intersectionRatio;if(A!==a){if(!v)return o();A===0&&(A=1e-7),o(!1,A)}v=!1}e=new IntersectionObserver(C,y),e.observe(i)}return o(!0),s}/**
1825
1836
  * @license
1826
1837
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1827
1838
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1828
- */const Qi={start:"top",end:"bottom"},Ki={start:"left",end:"right"},po=new ResizeObserver(i=>{setTimeout(()=>{i.forEach(t=>{t.target.__overlay&&t.target.__overlay._updatePosition()})})}),Bf=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=Nf(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=Mf(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,r){if(this.__removeUpdatePositionEventListeners(),r&&(r.__overlay=null,po.unobserve(r),e&&(this.__addUpdatePositionEventListeners(),r.__overlay=this,po.observe(r))),e){const s=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(o=>{this.__margins[o]=parseInt(s[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 r=this.__shouldAlignStartVertically(e);this.style.justifyContent=r?"flex-start":"flex-end";const s=this.__isRTL,o=this.__shouldAlignStartHorizontally(e,s),n=!s&&o||s&&!o;this.style.alignItems=n?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(e,a,this.noVerticalOverlap,Qi,this,r),d=this.__calculatePositionInOneDimension(e,a,this.noHorizontalOverlap,Ki,this,o);Object.assign(this.style,l,d),this.toggleAttribute("bottom-aligned",!r),this.toggleAttribute("top-aligned",r),this.toggleAttribute("end-aligned",!n),this.toggleAttribute("start-aligned",n)}__shouldAlignStartHorizontally(e,r){const s=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const o=Math.min(window.innerWidth,document.documentElement.clientWidth),n=!r&&this.horizontalAlign==="start"||r&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,s,o,this.__margins,n,this.noHorizontalOverlap,Ki)}__shouldAlignStartVertically(e){const r=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const s=Math.min(window.innerHeight,document.documentElement.clientHeight),o=this.verticalAlign==="top";return this.__shouldAlignStart(e,r,s,this.__margins,o,this.noVerticalOverlap,Qi)}__shouldAlignStart(e,r,s,o,n,a,l){const d=s-e[a?l.end:l.start]-o[l.end],h=e[a?l.start:l.end]-o[l.start],u=n?d:h,m=u>(n?h:d)||u>r;return n===m}__adjustBottomProperty(e,r,s){let o;if(e===r.end){if(r.end===Qi.end){const n=Math.min(window.innerHeight,document.documentElement.clientHeight);if(s>n&&this.__oldViewportHeight){const a=this.__oldViewportHeight-n;o=s-a}this.__oldViewportHeight=n}if(r.end===Ki.end){const n=Math.min(window.innerWidth,document.documentElement.clientWidth);if(s>n&&this.__oldViewportWidth){const a=this.__oldViewportWidth-n;o=s-a}this.__oldViewportWidth=n}}return o}__calculatePositionInOneDimension(e,r,s,o,n,a){const l=a?o.start:o.end,d=a?o.end:o.start,h=parseFloat(n.style[l]||getComputedStyle(n)[l]),u=this.__adjustBottomProperty(l,o,h),f=r[a?o.start:o.end]-e[s===a?o.end:o.start],m=u?`${u}px`:`${h+f*(a?-1:1)}px`;return{[l]:m,[d]:""}}};/**
1839
+ */const Ki={start:"top",end:"bottom"},Qi={start:"left",end:"right"},_o=new ResizeObserver(i=>{setTimeout(()=>{i.forEach(t=>{t.target.__overlay&&t.target.__overlay._updatePosition()})})}),Bf=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=Nf(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=Lf(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,r){if(this.__removeUpdatePositionEventListeners(),r&&(r.__overlay=null,_o.unobserve(r),e&&(this.__addUpdatePositionEventListeners(),r.__overlay=this,_o.observe(r))),e){const s=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(o=>{this.__margins[o]=parseInt(s[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 r=this.__shouldAlignStartVertically(e);this.style.justifyContent=r?"flex-start":"flex-end";const s=this.__isRTL,o=this.__shouldAlignStartHorizontally(e,s),n=!s&&o||s&&!o;this.style.alignItems=n?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(e,a,this.noVerticalOverlap,Ki,this,r),d=this.__calculatePositionInOneDimension(e,a,this.noHorizontalOverlap,Qi,this,o);Object.assign(this.style,l,d),this.toggleAttribute("bottom-aligned",!r),this.toggleAttribute("top-aligned",r),this.toggleAttribute("end-aligned",!n),this.toggleAttribute("start-aligned",n)}__shouldAlignStartHorizontally(e,r){const s=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const o=Math.min(window.innerWidth,document.documentElement.clientWidth),n=!r&&this.horizontalAlign==="start"||r&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,s,o,this.__margins,n,this.noHorizontalOverlap,Qi)}__shouldAlignStartVertically(e){const r=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const s=Math.min(window.innerHeight,document.documentElement.clientHeight),o=this.verticalAlign==="top";return this.__shouldAlignStart(e,r,s,this.__margins,o,this.noVerticalOverlap,Ki)}__shouldAlignStart(e,r,s,o,n,a,l){const d=s-e[a?l.end:l.start]-o[l.end],h=e[a?l.start:l.end]-o[l.start],u=n?d:h,m=u>(n?h:d)||u>r;return n===m}__adjustBottomProperty(e,r,s){let o;if(e===r.end){if(r.end===Ki.end){const n=Math.min(window.innerHeight,document.documentElement.clientHeight);if(s>n&&this.__oldViewportHeight){const a=this.__oldViewportHeight-n;o=s-a}this.__oldViewportHeight=n}if(r.end===Qi.end){const n=Math.min(window.innerWidth,document.documentElement.clientWidth);if(s>n&&this.__oldViewportWidth){const a=this.__oldViewportWidth-n;o=s-a}this.__oldViewportWidth=n}}return o}__calculatePositionInOneDimension(e,r,s,o,n,a){const l=a?o.start:o.end,d=a?o.end:o.start,h=parseFloat(n.style[l]||getComputedStyle(n)[l]),u=this.__adjustBottomProperty(l,o,h),f=r[a?o.start:o.end]-e[s===a?o.end:o.start],m=u?`${u}px`:`${h+f*(a?-1:1)}px`;return{[l]:m,[d]:""}}};/**
1829
1840
  * @license
1830
1841
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
1831
1842
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1832
- */const Hf=i=>class extends Bf(i){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}connectedCallback(){super.connectedCallback();const e=this._comboBox,r=e&&e.getAttribute("dir");r&&this.setAttribute("dir",r)}_shouldCloseOnOutsideClick(e){const r=e.composedPath();return!r.includes(this.positionTarget)&&!r.includes(this)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!sa(e.composedPath()[0])&&e.preventDefault()}_updateOverlayWidth(){const e=this.localName;this.style.setProperty(`--_${e}-default-width`,`${this.positionTarget.clientWidth}px`);const r=getComputedStyle(this._comboBox).getPropertyValue(`--${e}-width`);r===""?this.style.removeProperty(`--${e}-width`):this.style.setProperty(`--${e}-width`,r)}_setOverlayWidth(e,r){e&&r&&(this._updateOverlayWidth(),this._updatePosition())}};/**
1843
+ */const Rf=i=>class extends Bf(i){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}connectedCallback(){super.connectedCallback();const e=this._comboBox,r=e&&e.getAttribute("dir");r&&this.setAttribute("dir",r)}_shouldCloseOnOutsideClick(e){const r=e.composedPath();return!r.includes(this.positionTarget)&&!r.includes(this)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!na(e.composedPath()[0])&&e.preventDefault()}_updateOverlayWidth(){const e=this.localName;this.style.setProperty(`--_${e}-default-width`,`${this.positionTarget.clientWidth}px`);const r=getComputedStyle(this._comboBox).getPropertyValue(`--${e}-width`);r===""?this.style.removeProperty(`--${e}-width`):this.style.setProperty(`--${e}-width`,r)}_setOverlayWidth(e,r){e&&r&&(this._updateOverlayWidth(),this._updatePosition())}};/**
1833
1844
  * @license
1834
1845
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
1835
1846
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1836
- */const Rf=R`
1847
+ */const Df=D`
1837
1848
  #overlay {
1838
1849
  width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
1839
1850
  }
@@ -1843,21 +1854,21 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1843
1854
  flex-direction: column;
1844
1855
  height: 100%;
1845
1856
  }
1846
- `;de("vaadin-combo-box-overlay",[Of,Rf],{moduleId:"vaadin-combo-box-overlay-styles"});class Ff extends Hf(If(Si(Ci(Ut)))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return $t`
1857
+ `;de("vaadin-combo-box-overlay",[Of,Df],{moduleId:"vaadin-combo-box-overlay-styles"});class Hf extends Rf(If(Ai(Ei($t)))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return Vt`
1847
1858
  <div id="backdrop" part="backdrop" hidden></div>
1848
1859
  <div part="overlay" id="overlay">
1849
1860
  <div part="loader"></div>
1850
1861
  <div part="content" id="content"><slot></slot></div>
1851
1862
  </div>
1852
- `}}ct(Ff);/**
1863
+ `}}ut(Hf);/**
1853
1864
  * @license
1854
1865
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
1855
1866
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1856
- */function gi(i,t){return i.split(".").reduce((e,r)=>e?e[r]:void 0,t)}/**
1867
+ */function _i(i,t){return i.split(".").reduce((e,r)=>e?e[r]:void 0,t)}/**
1857
1868
  * @license
1858
1869
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1859
1870
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1860
- */let Df=0;function da(){return Df++}/**
1871
+ */let Ff=0;function ua(){return Ff++}/**
1861
1872
  * @license
1862
1873
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1863
1874
  * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1865,7 +1876,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1865
1876
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1866
1877
  * Code distributed by Google as part of the polymer project is also
1867
1878
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1868
- */let mo=0,ha=0;const tt=[];let Hr=!1;function zf(){Hr=!1;const i=tt.length;for(let t=0;t<i;t++){const e=tt[t];if(e)try{e()}catch(r){setTimeout(()=>{throw r})}}tt.splice(0,i),ha+=i}const ai={after(i){return{run(t){return window.setTimeout(t,i)},cancel(t){window.clearTimeout(t)}}},run(i,t){return window.setTimeout(i,t)},cancel(i){window.clearTimeout(i)}},Dt={run(i){return window.requestAnimationFrame(i)},cancel(i){window.cancelAnimationFrame(i)}},ua={run(i){return window.requestIdleCallback?window.requestIdleCallback(i):window.setTimeout(i,16)},cancel(i){window.cancelIdleCallback?window.cancelIdleCallback(i):window.clearTimeout(i)}},Rr={run(i){Hr||(Hr=!0,queueMicrotask(()=>zf())),tt.push(i);const t=mo;return mo+=1,t},cancel(i){const t=i-ha;if(t>=0){if(!tt[t])throw new Error(`invalid async handle: ${i}`);tt[t]=null}}};/**
1879
+ */let go=0,ca=0;const et=[];let Rr=!1;function zf(){Rr=!1;const i=et.length;for(let t=0;t<i;t++){const e=et[t];if(e)try{e()}catch(r){setTimeout(()=>{throw r})}}et.splice(0,i),ca+=i}const ni={after(i){return{run(t){return window.setTimeout(t,i)},cancel(t){window.clearTimeout(t)}}},run(i,t){return window.setTimeout(i,t)},cancel(i){window.clearTimeout(i)}},Ht={run(i){return window.requestAnimationFrame(i)},cancel(i){window.cancelAnimationFrame(i)}},fa={run(i){return window.requestIdleCallback?window.requestIdleCallback(i):window.setTimeout(i,16)},cancel(i){window.cancelIdleCallback?window.cancelIdleCallback(i):window.clearTimeout(i)}},Dr={run(i){Rr||(Rr=!0,queueMicrotask(()=>zf())),et.push(i);const t=go;return go+=1,t},cancel(i){const t=i-ca;if(t>=0){if(!et[t])throw new Error(`invalid async handle: ${i}`);et[t]=null}}};/**
1869
1880
  @license
1870
1881
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1871
1882
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1873,7 +1884,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1873
1884
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1874
1885
  Code distributed by Google as part of the polymer project is also
1875
1886
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1876
- */const zt=new Set;class xe{static debounce(t,e,r){return t instanceof xe?t._cancelAsync():t=new xe,t.setConfig(e,r),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,zt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),zt.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 ca(i){zt.add(i)}function Vf(){const i=!!zt.size;return zt.forEach(t=>{try{t.flush()}catch(e){setTimeout(()=>{throw e})}}),i}const Pt=()=>{let i;do i=Vf();while(i)};/**
1887
+ */const Ft=new Set;class xe{static debounce(t,e,r){return t instanceof xe?t._cancelAsync():t=new xe,t.setConfig(e,r),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,Ft.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Ft.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 pa(i){Ft.add(i)}function Vf(){const i=!!Ft.size;return Ft.forEach(t=>{try{t.flush()}catch(e){setTimeout(()=>{throw e})}}),i}const xt=()=>{let i;do i=Vf();while(i)};/**
1877
1888
  * @license
1878
1889
  * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
1879
1890
  * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1881,23 +1892,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1881
1892
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1882
1893
  * Code distributed by Google as part of the polymer project is also
1883
1894
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1884
- */const _o=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),$f=_o&&_o[1]>=8,go=3,Uf={_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 t=this._physicalTop+this._scrollOffset;i=this._iterateItems((e,r)=>{if(t+=this._getPhysicalSizeIncrement(e),t>this._scrollPosition)return r})||0,this._firstVisibleIndexVal=i}return i},get lastVisibleIndex(){let i=this._lastVisibleIndexVal;if(i==null){let t=this._physicalTop+this._scrollOffset;this._iterateItems((e,r)=>{t<this._scrollBottom&&(i=r),t+=this._getPhysicalSizeIncrement(e)}),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 t=i-this._scrollPosition;const e=t>=0;if(this._scrollPosition=i,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(t)>this._physicalSize&&this._physicalSize>0){t-=this._scrollOffset;const r=Math.round(t/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(e);e?(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,e?null:r.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),Rr)}},_getReusables(i){let t,e,r;const s=[],o=this._hiddenContentSize*this._ratio,n=this._virtualStart,a=this._virtualEnd,l=this._physicalCount;let d=this._physicalTop+this._scrollOffset;const h=this._physicalBottom+this._scrollOffset,u=this._scrollPosition,f=this._scrollBottom;for(i?(t=this._physicalStart,e=u-d):(t=this._physicalEnd,e=h-f);r=this._getPhysicalSizeIncrement(t),e-=r,!(s.length>=l||e<=o);)if(i){if(a+s.length+1>=this._virtualCount||d+r>=u-this._scrollOffset)break;s.push(t),d+=r,t=(t+1)%l}else{if(n-s.length<=0||d+this._physicalSize-r<=f)break;s.push(t),d-=r,t=t===0?l-1:t-1}return{indexes:s,physicalTop:d-this._scrollOffset}},_update(i,t){if(!(i&&i.length===0||this._physicalCount===0)){if(this._assignModels(i),this._updateMetrics(i),t)for(;t.length;){const e=t.pop();this._physicalTop-=this._getPhysicalSizeIncrement(e)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(i){const e=this._clamp(this._physicalCount+i,go,this._virtualCount-this._virtualStart)-this._physicalCount;let r=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){const s=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()-s)/e,r=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||r===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,r)),ua):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,r),Rr))}},_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(go))},_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,Dt))},_iterateItems(i,t){let e,r,s,o;if(arguments.length===2&&t){for(o=0;o<t.length;o++)if(e=t[o],r=this._computeVidx(e),(s=i.call(this,e,r))!=null)return s}else{for(e=this._physicalStart,r=this._virtualStart;e<this._physicalCount;e++,r++)if((s=i.call(this,e,r))!=null)return s;for(e=0;e<this._physicalStart;e++,r++)if((s=i.call(this,e,r))!=null)return s}},_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(t=>{this.translate3d(0,`${i}px`,0,this._physicalItems[t]),i+=this._physicalSizes[t]})},_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 t=this._scrollPosition;!$f&&t>0&&this._resetScrollPosition(t-i)}},_resetScrollPosition(i){this.scrollTarget&&i>=0&&(this._scrollTop=i,this._scrollPosition=this._scrollTop)},_updateScrollerSize(i){const t=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=t,(i||this._scrollHeight===0||this._scrollPosition>=t-this._physicalSize||Math.abs(t-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${t}px`,this._scrollHeight=t)},scrollToIndex(i){if(typeof i!="number"||i<0||i>this.items.length-1||(Pt(),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 t=this._physicalStart,e=this._virtualStart,r=0;const s=this._hiddenContentSize;for(;e<i&&r<=s;)r+=this._getPhysicalSizeIncrement(t),t=(t+1)%this._physicalCount,e+=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)},Dt)},_isIndexRendered(i){return i>=this._virtualStart&&i<=this._virtualEnd},_getPhysicalIndex(i){return(this._physicalStart+(i-this._virtualStart))%this._physicalCount},_clamp(i,t,e){return Math.min(e,Math.max(t,i))},_debounce(i,t,e){this._debouncers||(this._debouncers={}),this._debouncers[i]=xe.debounce(this._debouncers[i],e,t.bind(this)),ca(this._debouncers[i])}};/**
1895
+ */const bo=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),$f=bo&&bo[1]>=8,vo=3,Uf={_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 t=this._physicalTop+this._scrollOffset;i=this._iterateItems((e,r)=>{if(t+=this._getPhysicalSizeIncrement(e),t>this._scrollPosition)return r})||0,this._firstVisibleIndexVal=i}return i},get lastVisibleIndex(){let i=this._lastVisibleIndexVal;if(i==null){let t=this._physicalTop+this._scrollOffset;this._iterateItems((e,r)=>{t<this._scrollBottom&&(i=r),t+=this._getPhysicalSizeIncrement(e)}),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 t=i-this._scrollPosition;const e=t>=0;if(this._scrollPosition=i,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(t)>this._physicalSize&&this._physicalSize>0){t-=this._scrollOffset;const r=Math.round(t/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(e);e?(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,e?null:r.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),Dr)}},_getReusables(i){let t,e,r;const s=[],o=this._hiddenContentSize*this._ratio,n=this._virtualStart,a=this._virtualEnd,l=this._physicalCount;let d=this._physicalTop+this._scrollOffset;const h=this._physicalBottom+this._scrollOffset,u=this._scrollPosition,f=this._scrollBottom;for(i?(t=this._physicalStart,e=u-d):(t=this._physicalEnd,e=h-f);r=this._getPhysicalSizeIncrement(t),e-=r,!(s.length>=l||e<=o);)if(i){if(a+s.length+1>=this._virtualCount||d+r>=u-this._scrollOffset)break;s.push(t),d+=r,t=(t+1)%l}else{if(n-s.length<=0||d+this._physicalSize-r<=f)break;s.push(t),d-=r,t=t===0?l-1:t-1}return{indexes:s,physicalTop:d-this._scrollOffset}},_update(i,t){if(!(i&&i.length===0||this._physicalCount===0)){if(this._assignModels(i),this._updateMetrics(i),t)for(;t.length;){const e=t.pop();this._physicalTop-=this._getPhysicalSizeIncrement(e)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(i){const e=this._clamp(this._physicalCount+i,vo,this._virtualCount-this._virtualStart)-this._physicalCount;let r=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){const s=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()-s)/e,r=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||r===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,r)),fa):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,r),Dr))}},_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(vo))},_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,Ht))},_iterateItems(i,t){let e,r,s,o;if(arguments.length===2&&t){for(o=0;o<t.length;o++)if(e=t[o],r=this._computeVidx(e),(s=i.call(this,e,r))!=null)return s}else{for(e=this._physicalStart,r=this._virtualStart;e<this._physicalCount;e++,r++)if((s=i.call(this,e,r))!=null)return s;for(e=0;e<this._physicalStart;e++,r++)if((s=i.call(this,e,r))!=null)return s}},_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(t=>{this.translate3d(0,`${i}px`,0,this._physicalItems[t]),i+=this._physicalSizes[t]})},_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 t=this._scrollPosition;!$f&&t>0&&this._resetScrollPosition(t-i)}},_resetScrollPosition(i){this.scrollTarget&&i>=0&&(this._scrollTop=i,this._scrollPosition=this._scrollTop)},_updateScrollerSize(i){const t=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=t,(i||this._scrollHeight===0||this._scrollPosition>=t-this._physicalSize||Math.abs(t-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${t}px`,this._scrollHeight=t)},scrollToIndex(i){if(typeof i!="number"||i<0||i>this.items.length-1||(xt(),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 t=this._physicalStart,e=this._virtualStart,r=0;const s=this._hiddenContentSize;for(;e<i&&r<=s;)r+=this._getPhysicalSizeIncrement(t),t=(t+1)%this._physicalCount,e+=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)},Ht)},_isIndexRendered(i){return i>=this._virtualStart&&i<=this._virtualEnd},_getPhysicalIndex(i){return(this._physicalStart+(i-this._virtualStart))%this._physicalCount},_clamp(i,t,e){return Math.min(e,Math.max(t,i))},_debounce(i,t,e){this._debouncers||(this._debouncers={}),this._debouncers[i]=xe.debounce(this._debouncers[i],e,t.bind(this)),pa(this._debouncers[i])}};/**
1885
1896
  * @license
1886
1897
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1887
1898
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1888
- */const jf=1e5,er=1e3;class fa{constructor({createElements:t,updateElement:e,scrollTarget:r,scrollContainer:s,elementsContainer:o,reorderElements:n}){this.isAttached=!0,this._vidxOffset=0,this.createElements=t,this.updateElement=e,this.scrollTarget=r,this.scrollContainer=s,this.elementsContainer=o||s,this.reorderElements=n,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver(()=>this._resizeHandler()),getComputedStyle(this.scrollTarget).overflow==="visible"&&(this.scrollTarget.style.overflow="auto"),getComputedStyle(this.scrollContainer).position==="static"&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),new ResizeObserver(([{contentRect:l}])=>{const d=l.width===0&&l.height===0;!d&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=d}).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",l=>this.__onWheel(l)),this.scrollTarget.addEventListener("virtualizer-element-focused",l=>this.__onElementFocused(l)),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(t=>t.__virtualizerPlaceholder)}scrollToIndex(t){if(typeof t!="number"||isNaN(t)||this.size===0||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),t=this._clamp(t,0,this.size-1);const e=this.__getVisibleElements().length;let r=Math.floor(t/this.size*this._virtualCount);this._virtualCount-r<e?(r=this._virtualCount-(this.size-t),this._vidxOffset=this._maxVirtualIndexOffset):r<e?t<er?(r=t,this._vidxOffset=0):(r=er,this._vidxOffset=t-r):this._vidxOffset=t-r,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(r),this.adjustedFirstVisibleIndex!==t&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(t)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=t)}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),Pt(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(t=0,e=this.size-1){const r=[];this.__getVisibleElements().forEach(s=>{s.__virtualIndex>=t&&s.__virtualIndex<=e&&(this.__updateElement(s,s.__virtualIndex,!0),r.push(s))}),this.__afterElementsUpdated(r)}_updateMetrics(t){Pt();let e=0,r=0;const s=this._physicalAverageCount,o=this._physicalAverage;this._iterateItems((n,a)=>{r+=this._physicalSizes[n],this._physicalSizes[n]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[n])),e+=this._physicalSizes[n],this._physicalAverageCount+=this._physicalSizes[n]?1:0},t),this._physicalSize=this._physicalSize+e-r,this._physicalAverageCount!==s&&(this._physicalAverage=Math.round((o*s+e)/this._physicalAverageCount))}__getBorderBoxHeight(t){const e=getComputedStyle(t),r=parseFloat(e.height)||0;if(e.boxSizing==="border-box")return r;const s=parseFloat(e.paddingBottom)||0,o=parseFloat(e.paddingTop)||0,n=parseFloat(e.borderBottomWidth)||0,a=parseFloat(e.borderTopWidth)||0;return r+s+o+n+a}__updateElement(t,e,r){t.__virtualizerPlaceholder&&(t.style.paddingTop="",t.style.opacity="",t.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(t.__lastUpdatedIndex!==e||r)&&(this.updateElement(t,e),t.__lastUpdatedIndex=e)}__afterElementsUpdated(t){t.forEach(e=>{const r=e.offsetHeight;if(r===0)e.style.paddingTop=`${this.__placeholderHeight}px`,e.style.opacity="0",e.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=xe.debounce(this.__placeholderClearDebouncer,Dt,()=>this._resizeHandler());else{this.__elementHeightQueue.push(r),this.__elementHeightQueue.shift();const s=this.__elementHeightQueue.filter(o=>o!==void 0);this.__placeholderHeight=Math.round(s.reduce((o,n)=>o+n,0)/s.length)}}),this.__pendingScrollToIndex!==void 0&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(t){const e=this.__getVisibleElements().find(r=>r.__virtualIndex===t);return e?this.scrollTarget.getBoundingClientRect().top-e.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(t){if(t===this.size)return;this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0;let e,r;if(t>0&&(e=this.adjustedFirstVisibleIndex,r=this.__getIndexScrollOffset(e)),this.__size=t,this._itemsChanged({path:"items"}),Pt(),t>0){e=Math.min(e,t-1),this.scrollToIndex(e);const s=this.__getIndexScrollOffset(e);r!==void 0&&s!==void 0&&(this._scrollTop+=r-s)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),Pt(),this._debounce("_update",this._update,Rr)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(t){this.scrollTarget.scrollTop=t}get items(){return{length:Math.min(this.size,jf)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const t=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(t["padding-top"],10),this._isRTL=t.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(t){const e=this.createElements(t),r=document.createDocumentFragment();return e.forEach(s=>{s.style.position="absolute",r.appendChild(s),this.__resizeObserver.observe(s)}),this.elementsContainer.appendChild(r),e}_assignModels(t){const e=[];this._iterateItems((r,s)=>{const o=this._physicalItems[r];o.hidden=s>=this.size,o.hidden?delete o.__lastUpdatedIndex:(o.__virtualIndex=s+(this._vidxOffset||0),this.__updateElement(o,o.__virtualIndex),e.push(o))},t),this.__afterElementsUpdated(e)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(t,e,r,s){s.style.transform=`translateY(${e})`}toggleScrollListener(){}__getFocusedElement(t=this.__getVisibleElements()){return t.find(e=>e.contains(this.elementsContainer.getRootNode().activeElement)||e.contains(this.scrollTarget.getRootNode().activeElement))}__nextFocusableSiblingMissing(t,e){return e.indexOf(t)===e.length-1&&this.size>t.__virtualIndex+1}__previousFocusableSiblingMissing(t,e){return e.indexOf(t)===0&&t.__virtualIndex>0}__onElementFocused(t){if(!this.reorderElements)return;const e=t.detail.element;if(!e)return;const r=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(e,r)||this.__nextFocusableSiblingMissing(e,r))&&this.flush();const s=this.__getVisibleElements();this.__nextFocusableSiblingMissing(e,s)?(this._scrollTop+=Math.ceil(e.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(e,s)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(e.getBoundingClientRect().top),this.flush())}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const t=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const e=t>=0,r=this._getReusables(!e);r.indexes.length&&(this._physicalTop=r.physicalTop,e?(this._virtualStart-=r.indexes.length,this._physicalStart-=r.indexes.length):(this._virtualStart+=r.indexes.length,this._physicalStart+=r.indexes.length),this._resizeHandler())}t&&(this.__fixInvalidItemPositioningDebouncer=xe.debounce(this.__fixInvalidItemPositioningDebouncer,ai.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=xe.debounce(this.__scrollReorderDebouncer,ai.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(t)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const t=this._physicalTop>this._scrollTop,e=this._physicalBottom<this._scrollBottom,r=this.adjustedFirstVisibleIndex===0,s=this.adjustedLastVisibleIndex===this.size-1;if(t&&!r||e&&!s){const o=e,n=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(o?-1:1),this._scrollHandler(),this._ratio=n}}__onWheel(t){if(t.ctrlKey||this._hasScrolledAncestor(t.target,t.deltaX,t.deltaY))return;let e=t.deltaY;if(t.deltaMode===WheelEvent.DOM_DELTA_LINE?e*=this._scrollLineHeight:t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(e*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=e,t.preventDefault();return}e+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=xe.debounce(this.__debouncerWheelAnimationFrame,Dt,()=>{this._wheelAnimationFrame=!1});const r=Math.abs(t.deltaX)+Math.abs(e);this._canScroll(this.scrollTarget,t.deltaX,e)?(t.preventDefault(),this.scrollTarget.scrollTop+=e,this.scrollTarget.scrollLeft+=t.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=xe.debounce(this._debouncerIgnoreNewWheel,ai.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&r<=this._previousMomentum||this._ignoreNewWheel?t.preventDefault():r>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=r}_hasScrolledAncestor(t,e,r){if(t===this.scrollTarget||t===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(t,e,r)&&["auto","scroll"].indexOf(getComputedStyle(t).overflow)!==-1)return!0;if(t!==this&&t.parentElement)return this._hasScrolledAncestor(t.parentElement,e,r)}_canScroll(t,e,r){return r>0&&t.scrollTop<t.scrollHeight-t.offsetHeight||r<0&&t.scrollTop>0||e>0&&t.scrollLeft<t.scrollWidth-t.offsetWidth||e<0&&t.scrollLeft>0}_increasePoolIfNeeded(t){if(this._physicalCount>2&&t){const r=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(t,Math.min(100,r)))}else super._increasePoolIfNeeded(t)}get _optPhysicalSize(){const t=super._optPhysicalSize;return t<=0||this.__hasPlaceholders()?t:t+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(this._physicalCount===0)return 0;const t=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),e=Math.max(...this._physicalSizes);return e>Math.min(...this._physicalSizes)?Math.max(0,e-t):0}_getScrollLineHeight(){const t=document.createElement("div");t.style.fontSize="initial",t.style.display="none",document.body.appendChild(t);const e=window.getComputedStyle(t).fontSize;return document.body.removeChild(t),e?window.parseInt(e):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(t=>!t.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const t=this._virtualStart+(this._vidxOffset||0),e=this.__getVisibleElements(),r=this.__getFocusedElement(e)||e[0];if(!r)return;const s=r.__virtualIndex-t,o=e.indexOf(r)-s;if(o>0)for(let n=0;n<o;n++)this.elementsContainer.appendChild(e[n]);else if(o<0)for(let n=e.length+o;n<e.length;n++)this.elementsContainer.insertBefore(e[n],e[0]);if(pf){const{transform:n}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=n})}}_adjustVirtualIndexOffset(t){const e=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(t)>1e4){const r=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(r*e)}else{const r=this._vidxOffset,s=er,o=100;this._scrollTop===0?(this._vidxOffset=0,r!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<s&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,o),super.scrollToIndex(this.firstVisibleIndex+(r-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=e,r!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-s&&this._vidxOffset<e&&(this._vidxOffset+=Math.min(e-this._vidxOffset,o),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-r)))}}}Object.setPrototypeOf(fa.prototype,Uf);class Gf{constructor(t){this.__adapter=new fa(t)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(t){this.__adapter.size=t}scrollToIndex(t){this.__adapter.scrollToIndex(t)}update(t=0,e=this.size-1){this.__adapter.update(t,e)}flush(){this.__adapter.flush()}}/**
1899
+ */const jf=1e5,er=1e3;class ma{constructor({createElements:t,updateElement:e,scrollTarget:r,scrollContainer:s,elementsContainer:o,reorderElements:n}){this.isAttached=!0,this._vidxOffset=0,this.createElements=t,this.updateElement=e,this.scrollTarget=r,this.scrollContainer=s,this.elementsContainer=o||s,this.reorderElements=n,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver(()=>this._resizeHandler()),getComputedStyle(this.scrollTarget).overflow==="visible"&&(this.scrollTarget.style.overflow="auto"),getComputedStyle(this.scrollContainer).position==="static"&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),new ResizeObserver(([{contentRect:l}])=>{const d=l.width===0&&l.height===0;!d&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=d}).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",l=>this.__onWheel(l)),this.scrollTarget.addEventListener("virtualizer-element-focused",l=>this.__onElementFocused(l)),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(t=>t.__virtualizerPlaceholder)}scrollToIndex(t){if(typeof t!="number"||isNaN(t)||this.size===0||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),t=this._clamp(t,0,this.size-1);const e=this.__getVisibleElements().length;let r=Math.floor(t/this.size*this._virtualCount);this._virtualCount-r<e?(r=this._virtualCount-(this.size-t),this._vidxOffset=this._maxVirtualIndexOffset):r<e?t<er?(r=t,this._vidxOffset=0):(r=er,this._vidxOffset=t-r):this._vidxOffset=t-r,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(r),this.adjustedFirstVisibleIndex!==t&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(t)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=t)}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),xt(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(t=0,e=this.size-1){const r=[];this.__getVisibleElements().forEach(s=>{s.__virtualIndex>=t&&s.__virtualIndex<=e&&(this.__updateElement(s,s.__virtualIndex,!0),r.push(s))}),this.__afterElementsUpdated(r)}_updateMetrics(t){xt();let e=0,r=0;const s=this._physicalAverageCount,o=this._physicalAverage;this._iterateItems((n,a)=>{r+=this._physicalSizes[n],this._physicalSizes[n]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[n])),e+=this._physicalSizes[n],this._physicalAverageCount+=this._physicalSizes[n]?1:0},t),this._physicalSize=this._physicalSize+e-r,this._physicalAverageCount!==s&&(this._physicalAverage=Math.round((o*s+e)/this._physicalAverageCount))}__getBorderBoxHeight(t){const e=getComputedStyle(t),r=parseFloat(e.height)||0;if(e.boxSizing==="border-box")return r;const s=parseFloat(e.paddingBottom)||0,o=parseFloat(e.paddingTop)||0,n=parseFloat(e.borderBottomWidth)||0,a=parseFloat(e.borderTopWidth)||0;return r+s+o+n+a}__updateElement(t,e,r){t.__virtualizerPlaceholder&&(t.style.paddingTop="",t.style.opacity="",t.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(t.__lastUpdatedIndex!==e||r)&&(this.updateElement(t,e),t.__lastUpdatedIndex=e)}__afterElementsUpdated(t){t.forEach(e=>{const r=e.offsetHeight;if(r===0)e.style.paddingTop=`${this.__placeholderHeight}px`,e.style.opacity="0",e.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=xe.debounce(this.__placeholderClearDebouncer,Ht,()=>this._resizeHandler());else{this.__elementHeightQueue.push(r),this.__elementHeightQueue.shift();const s=this.__elementHeightQueue.filter(o=>o!==void 0);this.__placeholderHeight=Math.round(s.reduce((o,n)=>o+n,0)/s.length)}}),this.__pendingScrollToIndex!==void 0&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(t){const e=this.__getVisibleElements().find(r=>r.__virtualIndex===t);return e?this.scrollTarget.getBoundingClientRect().top-e.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(t){if(t===this.size)return;this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0;let e,r;if(t>0&&(e=this.adjustedFirstVisibleIndex,r=this.__getIndexScrollOffset(e)),this.__size=t,this._itemsChanged({path:"items"}),xt(),t>0){e=Math.min(e,t-1),this.scrollToIndex(e);const s=this.__getIndexScrollOffset(e);r!==void 0&&s!==void 0&&(this._scrollTop+=r-s)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),xt(),this._debounce("_update",this._update,Dr)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(t){this.scrollTarget.scrollTop=t}get items(){return{length:Math.min(this.size,jf)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const t=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(t["padding-top"],10),this._isRTL=t.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(t){const e=this.createElements(t),r=document.createDocumentFragment();return e.forEach(s=>{s.style.position="absolute",r.appendChild(s),this.__resizeObserver.observe(s)}),this.elementsContainer.appendChild(r),e}_assignModels(t){const e=[];this._iterateItems((r,s)=>{const o=this._physicalItems[r];o.hidden=s>=this.size,o.hidden?delete o.__lastUpdatedIndex:(o.__virtualIndex=s+(this._vidxOffset||0),this.__updateElement(o,o.__virtualIndex),e.push(o))},t),this.__afterElementsUpdated(e)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(t,e,r,s){s.style.transform=`translateY(${e})`}toggleScrollListener(){}__getFocusedElement(t=this.__getVisibleElements()){return t.find(e=>e.contains(this.elementsContainer.getRootNode().activeElement)||e.contains(this.scrollTarget.getRootNode().activeElement))}__nextFocusableSiblingMissing(t,e){return e.indexOf(t)===e.length-1&&this.size>t.__virtualIndex+1}__previousFocusableSiblingMissing(t,e){return e.indexOf(t)===0&&t.__virtualIndex>0}__onElementFocused(t){if(!this.reorderElements)return;const e=t.detail.element;if(!e)return;const r=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(e,r)||this.__nextFocusableSiblingMissing(e,r))&&this.flush();const s=this.__getVisibleElements();this.__nextFocusableSiblingMissing(e,s)?(this._scrollTop+=Math.ceil(e.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(e,s)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(e.getBoundingClientRect().top),this.flush())}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const t=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const e=t>=0,r=this._getReusables(!e);r.indexes.length&&(this._physicalTop=r.physicalTop,e?(this._virtualStart-=r.indexes.length,this._physicalStart-=r.indexes.length):(this._virtualStart+=r.indexes.length,this._physicalStart+=r.indexes.length),this._resizeHandler())}t&&(this.__fixInvalidItemPositioningDebouncer=xe.debounce(this.__fixInvalidItemPositioningDebouncer,ni.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=xe.debounce(this.__scrollReorderDebouncer,ni.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(t)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const t=this._physicalTop>this._scrollTop,e=this._physicalBottom<this._scrollBottom,r=this.adjustedFirstVisibleIndex===0,s=this.adjustedLastVisibleIndex===this.size-1;if(t&&!r||e&&!s){const o=e,n=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(o?-1:1),this._scrollHandler(),this._ratio=n}}__onWheel(t){if(t.ctrlKey||this._hasScrolledAncestor(t.target,t.deltaX,t.deltaY))return;let e=t.deltaY;if(t.deltaMode===WheelEvent.DOM_DELTA_LINE?e*=this._scrollLineHeight:t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(e*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=e,t.preventDefault();return}e+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=xe.debounce(this.__debouncerWheelAnimationFrame,Ht,()=>{this._wheelAnimationFrame=!1});const r=Math.abs(t.deltaX)+Math.abs(e);this._canScroll(this.scrollTarget,t.deltaX,e)?(t.preventDefault(),this.scrollTarget.scrollTop+=e,this.scrollTarget.scrollLeft+=t.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=xe.debounce(this._debouncerIgnoreNewWheel,ni.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&r<=this._previousMomentum||this._ignoreNewWheel?t.preventDefault():r>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=r}_hasScrolledAncestor(t,e,r){if(t===this.scrollTarget||t===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(t,e,r)&&["auto","scroll"].indexOf(getComputedStyle(t).overflow)!==-1)return!0;if(t!==this&&t.parentElement)return this._hasScrolledAncestor(t.parentElement,e,r)}_canScroll(t,e,r){return r>0&&t.scrollTop<t.scrollHeight-t.offsetHeight||r<0&&t.scrollTop>0||e>0&&t.scrollLeft<t.scrollWidth-t.offsetWidth||e<0&&t.scrollLeft>0}_increasePoolIfNeeded(t){if(this._physicalCount>2&&t){const r=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(t,Math.min(100,r)))}else super._increasePoolIfNeeded(t)}get _optPhysicalSize(){const t=super._optPhysicalSize;return t<=0||this.__hasPlaceholders()?t:t+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(this._physicalCount===0)return 0;const t=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),e=Math.max(...this._physicalSizes);return e>Math.min(...this._physicalSizes)?Math.max(0,e-t):0}_getScrollLineHeight(){const t=document.createElement("div");t.style.fontSize="initial",t.style.display="none",document.body.appendChild(t);const e=window.getComputedStyle(t).fontSize;return document.body.removeChild(t),e?window.parseInt(e):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(t=>!t.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const t=this._virtualStart+(this._vidxOffset||0),e=this.__getVisibleElements(),r=this.__getFocusedElement(e)||e[0];if(!r)return;const s=r.__virtualIndex-t,o=e.indexOf(r)-s;if(o>0)for(let n=0;n<o;n++)this.elementsContainer.appendChild(e[n]);else if(o<0)for(let n=e.length+o;n<e.length;n++)this.elementsContainer.insertBefore(e[n],e[0]);if(pf){const{transform:n}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=n})}}_adjustVirtualIndexOffset(t){const e=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(t)>1e4){const r=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(r*e)}else{const r=this._vidxOffset,s=er,o=100;this._scrollTop===0?(this._vidxOffset=0,r!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<s&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,o),super.scrollToIndex(this.firstVisibleIndex+(r-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=e,r!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-s&&this._vidxOffset<e&&(this._vidxOffset+=Math.min(e-this._vidxOffset,o),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-r)))}}}Object.setPrototypeOf(ma.prototype,Uf);class Gf{constructor(t){this.__adapter=new ma(t)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(t){this.__adapter.size=t}scrollToIndex(t){this.__adapter.scrollToIndex(t)}update(t=0,e=this.size-1){this.__adapter.update(t,e)}flush(){this.__adapter.flush()}}/**
1889
1900
  * @license
1890
1901
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
1891
1902
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1892
- */const lt=class{toString(){return""}};/**
1903
+ */const at=class{toString(){return""}};/**
1893
1904
  * @license
1894
1905
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
1895
1906
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1896
- */const Wf=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(r=>parseInt(r,10)).reduce((r,s)=>r+s)}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${da()}`,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 r=this._visibleItemsCount();let s=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),s=e-r+1):e>this.__virtualizer.firstVisibleIndex&&(s=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,s));const o=[...this.children].find(d=>!d.hidden&&d.index===this.__virtualizer.lastVisibleIndex);if(!o||e!==o.index)return;const n=o.getBoundingClientRect(),a=this.getBoundingClientRect(),l=n.bottom-a.bottom+this._viewportTotalPaddingBottom;l>0&&(this.scrollTop+=l)}_isItemSelected(e,r,s){return e instanceof lt?!1:s&&e!==void 0&&r!==void 0?gi(s,e)===gi(s,r):e===r}__initVirtualizer(){this.__virtualizer=new Gf({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,r){(e||r)&&this.requestContentUpdate()}__focusedIndexChanged(e,r){e!==r&&this.requestContentUpdate(),e>=0&&!this.loading&&this.scrollIntoView(e)}__rendererChanged(e,r){(e||r)&&this.requestContentUpdate()}__createElements(e){return[...Array(e)].map(()=>{const r=document.createElement(`${this.__hostTagName}-item`);return r.addEventListener("click",this.__boundOnItemClick),r.tabIndex="-1",r.style.width="100%",r})}_updateElement(e,r){const s=this.items[r],o=this.focusedIndex,n=this._isItemSelected(s,this.selectedItem,this.itemIdPath);e.setProperties({item:s,index:r,label:this.getItemLabel(s),selected:n,renderer:this.renderer,focused:!this.loading&&o===r}),typeof this.itemClassNameGenerator=="function"?e.className=this.itemClassNameGenerator(s):e.className!==""&&(e.className=""),e.performUpdate&&!e.hasUpdated&&e.performUpdate(),e.id=`${this.__hostTagName}-item-${r}`,e.setAttribute("role",r!==void 0?"option":!1),e.setAttribute("aria-selected",n.toString()),e.setAttribute("aria-posinset",r+1),e.setAttribute("aria-setsize",this.items.length),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme"),s instanceof lt&&this.__requestItemByIndex(r)}__onItemClick(e){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:e.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",e=>{const r=this.scrollTop===0,s=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(r&&e.deltaY<0||s&&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}};/**
1907
+ */const Wf=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(r=>parseInt(r,10)).reduce((r,s)=>r+s)}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${ua()}`,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 r=this._visibleItemsCount();let s=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),s=e-r+1):e>this.__virtualizer.firstVisibleIndex&&(s=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,s));const o=[...this.children].find(d=>!d.hidden&&d.index===this.__virtualizer.lastVisibleIndex);if(!o||e!==o.index)return;const n=o.getBoundingClientRect(),a=this.getBoundingClientRect(),l=n.bottom-a.bottom+this._viewportTotalPaddingBottom;l>0&&(this.scrollTop+=l)}_isItemSelected(e,r,s){return e instanceof at?!1:s&&e!==void 0&&r!==void 0?_i(s,e)===_i(s,r):e===r}__initVirtualizer(){this.__virtualizer=new Gf({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,r){(e||r)&&this.requestContentUpdate()}__focusedIndexChanged(e,r){e!==r&&this.requestContentUpdate(),e>=0&&!this.loading&&this.scrollIntoView(e)}__rendererChanged(e,r){(e||r)&&this.requestContentUpdate()}__createElements(e){return[...Array(e)].map(()=>{const r=document.createElement(`${this.__hostTagName}-item`);return r.addEventListener("click",this.__boundOnItemClick),r.tabIndex="-1",r.style.width="100%",r})}_updateElement(e,r){const s=this.items[r],o=this.focusedIndex,n=this._isItemSelected(s,this.selectedItem,this.itemIdPath);e.setProperties({item:s,index:r,label:this.getItemLabel(s),selected:n,renderer:this.renderer,focused:!this.loading&&o===r}),typeof this.itemClassNameGenerator=="function"?e.className=this.itemClassNameGenerator(s):e.className!==""&&(e.className=""),e.performUpdate&&!e.hasUpdated&&e.performUpdate(),e.id=`${this.__hostTagName}-item-${r}`,e.setAttribute("role",r!==void 0?"option":!1),e.setAttribute("aria-selected",n.toString()),e.setAttribute("aria-posinset",r+1),e.setAttribute("aria-setsize",this.items.length),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme"),s instanceof at&&this.__requestItemByIndex(r)}__onItemClick(e){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:e.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",e=>{const r=this.scrollTop===0,s=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(r&&e.deltaY<0||s&&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}};/**
1897
1908
  * @license
1898
1909
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
1899
1910
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1900
- */class qf extends Wf(Ut){static get is(){return"vaadin-combo-box-scroller"}static get template(){return $t`
1911
+ */class qf extends Wf($t){static get is(){return"vaadin-combo-box-scroller"}static get template(){return Vt`
1901
1912
  <style>
1902
1913
  :host {
1903
1914
  display: block;
@@ -1924,7 +1935,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1924
1935
  <div id="selector">
1925
1936
  <slot></slot>
1926
1937
  </div>
1927
- `}}ct(qf);const Yf=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,li=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Xf(){function i(){return!0}return pa(i)}function Zf(){try{return Jf()?!0:Qf()?li?!Kf():!Xf():!1}catch(i){return!1}}function Jf(){return localStorage.getItem("vaadin.developmentmode.force")}function Qf(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Kf(){return!!(li&&Object.keys(li).map(t=>li[t]).filter(t=>t.productionMode).length>0)}function pa(i,t){if(typeof i!="function")return;const e=Yf.exec(i.toString());if(e)try{i=new Function(e[1])}catch(r){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",r)}return i(t)}window.Vaadin=window.Vaadin||{};const bo=function(i,t){if(window.Vaadin.developmentMode)return pa(i,t)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Zf());function ep(){/*! vaadin-dev-mode:start
1938
+ `}}ut(qf);const Yf=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,ai=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Zf(){function i(){return!0}return _a(i)}function Xf(){try{return Jf()?!0:Kf()?ai?!Qf():!Zf():!1}catch(i){return!1}}function Jf(){return localStorage.getItem("vaadin.developmentmode.force")}function Kf(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Qf(){return!!(ai&&Object.keys(ai).map(t=>ai[t]).filter(t=>t.productionMode).length>0)}function _a(i,t){if(typeof i!="function")return;const e=Yf.exec(i.toString());if(e)try{i=new Function(e[1])}catch(r){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",r)}return i(t)}window.Vaadin=window.Vaadin||{};const yo=function(i,t){if(window.Vaadin.developmentMode)return _a(i,t)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Xf());function ep(){/*! vaadin-dev-mode:start
1928
1939
  (function () {
1929
1940
  'use strict';
1930
1941
 
@@ -2402,11 +2413,11 @@ try {
2402
2413
 
2403
2414
  }());
2404
2415
 
2405
- vaadin-dev-mode:end **/}const tp=function(){if(typeof bo=="function")return bo(ep)};/**
2416
+ vaadin-dev-mode:end **/}const tp=function(){if(typeof yo=="function")return yo(ep)};/**
2406
2417
  * @license
2407
2418
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2408
2419
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2409
- */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){tp()};let tr;const vo=new Set,ip=i=>class extends Si(i){static finalize(){super.finalize();const{is:e}=this;e&&!vo.has(e)&&(window.Vaadin.registrations.push(this),vo.add(e),window.Vaadin.developmentModeCallback&&(tr=xe.debounce(tr,ua,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),ca(tr)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
2420
+ */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){tp()};let tr;const wo=new Set,ip=i=>class extends Ai(i){static finalize(){super.finalize();const{is:e}=this;e&&!wo.has(e)&&(window.Vaadin.registrations.push(this),wo.add(e),window.Vaadin.developmentModeCallback&&(tr=xe.debounce(tr,fa,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),pa(tr)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
2410
2421
  * @license
2411
2422
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
2412
2423
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -2414,31 +2425,31 @@ try {
2414
2425
  * @license
2415
2426
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2416
2427
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2417
- */class ts extends EventTarget{static generateId(t,e="default"){return`${e}-${t.localName}-${da()}`}constructor(t,e,r,s={}){super();const{initializer:o,multiple:n,observe:a,useUniqueId:l,uniqueIdPrefix:d}=s;this.host=t,this.slotName=e,this.tagName=r,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=o,n&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(t,d||e))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t))}initMultiple(){const t=this.getSlotChildren();if(t.length===0){const e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e))}else this.nodes=t,t.forEach(e=>{this.initAddedNode(e)})}attachDefaultNode(){const{host:t,slotName:e,tagName:r}=this;let s=this.defaultNode;return!s&&r&&(s=document.createElement(r),s instanceof Element&&(e!==""&&s.setAttribute("slot",e),this.defaultNode=s)),s&&(this.node=s,t.appendChild(s)),s}getSlotChildren(){const{slotName:t}=this;return Array.from(this.host.childNodes).filter(e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&t==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){const{slotInitializer:e}=this;e&&e(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){const{slotName:t}=this,e=t===""?"slot:not([name])":`slot[name=${t}]`,r=this.host.shadowRoot.querySelector(e);this.__slotObserver=new rp(r,({addedNodes:s,removedNodes:o})=>{const n=this.multiple?this.nodes:[this.node],a=s.filter(l=>!Lf(l)&&!n.includes(l));o.length&&(this.nodes=n.filter(l=>!o.includes(l)),o.forEach(l=>{this.teardownNode(l)})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...a].filter(l=>l!==this.defaultNode),a.forEach(l=>{this.initAddedNode(l)})):(this.node&&this.node.remove(),this.node=a[0],this.initAddedNode(this.node)))})}}/**
2428
+ */class rs extends EventTarget{static generateId(t,e="default"){return`${e}-${t.localName}-${ua()}`}constructor(t,e,r,s={}){super();const{initializer:o,multiple:n,observe:a,useUniqueId:l,uniqueIdPrefix:d}=s;this.host=t,this.slotName=e,this.tagName=r,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=o,n&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(t,d||e))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t))}initMultiple(){const t=this.getSlotChildren();if(t.length===0){const e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e))}else this.nodes=t,t.forEach(e=>{this.initAddedNode(e)})}attachDefaultNode(){const{host:t,slotName:e,tagName:r}=this;let s=this.defaultNode;return!s&&r&&(s=document.createElement(r),s instanceof Element&&(e!==""&&s.setAttribute("slot",e),this.defaultNode=s)),s&&(this.node=s,t.appendChild(s)),s}getSlotChildren(){const{slotName:t}=this;return Array.from(this.host.childNodes).filter(e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&t==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){const{slotInitializer:e}=this;e&&e(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){const{slotName:t}=this,e=t===""?"slot:not([name])":`slot[name=${t}]`,r=this.host.shadowRoot.querySelector(e);this.__slotObserver=new rp(r,({addedNodes:s,removedNodes:o})=>{const n=this.multiple?this.nodes:[this.node],a=s.filter(l=>!Mf(l)&&!n.includes(l));o.length&&(this.nodes=n.filter(l=>!o.includes(l)),o.forEach(l=>{this.teardownNode(l)})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...a].filter(l=>l!==this.defaultNode),a.forEach(l=>{this.initAddedNode(l)})):(this.node&&this.node.remove(),this.node=a[0],this.initAddedNode(this.node)))})}}/**
2418
2429
  * @license
2419
2430
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
2420
2431
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2421
- */class sp extends ts{constructor(t){super(t,"tooltip"),this.setTarget(t)}initCustomNode(t){t.target=this.target,this.ariaTarget!==void 0&&(t.ariaTarget=this.ariaTarget),this.context!==void 0&&(t.context=this.context),this.manual!==void 0&&(t.manual=this.manual),this.opened!==void 0&&(t.opened=this.opened),this.position!==void 0&&(t._position=this.position),this.shouldShow!==void 0&&(t.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(t){this.ariaTarget=t;const e=this.node;e&&(e.ariaTarget=t)}setContext(t){this.context=t;const e=this.node;e&&(e.context=t)}setManual(t){this.manual=t;const e=this.node;e&&(e.manual=t)}setOpened(t){this.opened=t;const e=this.node;e&&(e.opened=t)}setPosition(t){this.position=t;const e=this.node;e&&(e._position=t)}setShouldShow(t){this.shouldShow=t;const e=this.node;e&&(e.shouldShow=t)}setTarget(t){this.target=t;const e=this.node;e&&(e.target=t)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
2432
+ */class sp extends rs{constructor(t){super(t,"tooltip"),this.setTarget(t)}initCustomNode(t){t.target=this.target,this.ariaTarget!==void 0&&(t.ariaTarget=this.ariaTarget),this.context!==void 0&&(t.context=this.context),this.manual!==void 0&&(t.manual=this.manual),this.opened!==void 0&&(t.opened=this.opened),this.position!==void 0&&(t._position=this.position),this.shouldShow!==void 0&&(t.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(t){this.ariaTarget=t;const e=this.node;e&&(e.ariaTarget=t)}setContext(t){this.context=t;const e=this.node;e&&(e.context=t)}setManual(t){this.manual=t;const e=this.node;e&&(e.manual=t)}setOpened(t){this.opened=t;const e=this.node;e&&(e.opened=t)}setPosition(t){this.position=t;const e=this.node;e&&(e._position=t)}setShouldShow(t){this.shouldShow=t;const e=this.node;e&&(e.shouldShow=t)}setTarget(t){this.target=t;const e=this.node;e&&(e.target=t)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
2422
2433
  * @license
2423
2434
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2424
2435
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2425
- */const ma=oe(i=>class extends i{get _keyboardActive(){return Kr()}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}});/**
2436
+ */const ga=oe(i=>class extends i{get _keyboardActive(){return ts()}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}});/**
2426
2437
  * @license
2427
2438
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2428
2439
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2429
- */const _a=oe(i=>class extends i{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0,sync:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
2440
+ */const ba=oe(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()}});/**
2430
2441
  * @license
2431
2442
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2432
2443
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2433
- */const op=i=>class extends _a(i){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,r){super._disabledChanged(e,r),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):r&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1)}};/**
2444
+ */const op=i=>class extends ba(i){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,r){super._disabledChanged(e,r),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):r&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1)}};/**
2434
2445
  * @license
2435
2446
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2436
2447
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2437
- */const np=oe(i=>class extends ma(op(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,r){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):r&&this._removeFocusListeners(r)}_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,r){super._disabledChanged(e,r),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)}});/**
2448
+ */const np=oe(i=>class extends ga(op(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,r){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):r&&this._removeFocusListeners(r)}_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,r){super._disabledChanged(e,r),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)}});/**
2438
2449
  * @license
2439
2450
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2440
2451
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2441
- */const is=oe(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){}});/**
2452
+ */const ss=oe(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){}});/**
2442
2453
  * @license
2443
2454
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2444
2455
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -2446,15 +2457,15 @@ try {
2446
2457
  * @license
2447
2458
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2448
2459
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2449
- */const rs=oe(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),this._hasInputValue=e&&e.length>0}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,r){e?this._addInputListeners(e):r&&this._removeInputListeners(r)}_hasInputValueChanged(e,r){(e||r)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const r=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=r.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,r){this._toggleHasValue(this._hasValue),!(e===""&&r===void 0)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const r=e.composedPath()[0];this._hasInputValue=r.value.length>0}});/**
2460
+ */const os=oe(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,r){e?this._addInputListeners(e):r&&this._removeInputListeners(r)}_hasInputValueChanged(e,r){(e||r)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const r=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=r.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,r){this._toggleHasValue(this._hasValue),!(e===""&&r===void 0)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const r=e.composedPath()[0];this._hasInputValue=r.value.length>0}});/**
2450
2461
  * @license
2451
2462
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2452
2463
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2453
- */const hp=i=>class extends rs(is(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(),kr||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}))}};/**
2464
+ */const hp=i=>class extends os(ss(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(),kr||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}))}};/**
2454
2465
  * @license
2455
2466
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
2456
2467
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2457
- */const rr=new Map;function ss(i){return rr.has(i)||rr.set(i,new WeakMap),rr.get(i)}function ga(i,t){i&&i.removeAttribute(t)}function ba(i,t){if(!i||!t)return;const e=ss(t);if(e.has(i))return;const r=es(i.getAttribute(t));e.set(i,new Set(r))}function up(i,t){if(!i)return;const e=ss(t),r=e.get(i);!r||r.size===0?i.removeAttribute(t):la(i,t,Oi(r)),e.delete(i)}function sr(i,t,e={newId:null,oldId:null,fromUser:!1}){if(!i||!t)return;const{newId:r,oldId:s,fromUser:o}=e,n=ss(t),a=n.get(i);if(!o&&a){s&&a.delete(s),r&&a.add(r);return}o&&(a?r||n.delete(i):ba(i,t),ga(i,t)),kf(i,t,s);const l=r||Oi(a);l&&la(i,t,l)}function cp(i,t){ba(i,t),ga(i,t)}/**
2468
+ */const rr=new Map;function ns(i){return rr.has(i)||rr.set(i,new WeakMap),rr.get(i)}function va(i,t){i&&i.removeAttribute(t)}function ya(i,t){if(!i||!t)return;const e=ns(t);if(e.has(i))return;const r=is(i.getAttribute(t));e.set(i,new Set(r))}function up(i,t){if(!i||!t)return;const e=ns(t),r=e.get(i);!r||r.size===0?i.removeAttribute(t):ha(i,t,Ii(r)),e.delete(i)}function sr(i,t,e={newId:null,oldId:null,fromUser:!1}){if(!i||!t)return;const{newId:r,oldId:s,fromUser:o}=e,n=ns(t),a=n.get(i);if(!o&&a){s&&a.delete(s),r&&a.add(r);return}o&&(a?r||n.delete(i):ya(i,t),va(i,t)),kf(i,t,s);const l=r||Ii(a);l&&ha(i,t,l)}function cp(i,t){ya(i,t),va(i,t)}/**
2458
2469
  * @license
2459
2470
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2460
2471
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -2462,35 +2473,35 @@ try {
2462
2473
  * @license
2463
2474
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
2464
2475
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2465
- */const Ee=document.createElement("div");Ee.style.position="fixed";Ee.style.clip="rect(0px, 0px, 0px, 0px)";Ee.setAttribute("aria-live","polite");document.body.appendChild(Ee);let ti;function pp(i,t={}){const e=t.mode||"polite",r=t.timeout===void 0?150:t.timeout;e==="alert"?(Ee.removeAttribute("aria-live"),Ee.removeAttribute("role"),ti=xe.debounce(ti,Dt,()=>{Ee.setAttribute("role","alert")})):(ti&&ti.cancel(),Ee.removeAttribute("role"),Ee.setAttribute("aria-live",e)),Ee.textContent="",setTimeout(()=>{Ee.textContent=i},r)}/**
2476
+ */const Ee=document.createElement("div");Ee.style.position="fixed";Ee.style.clip="rect(0px, 0px, 0px, 0px)";Ee.setAttribute("aria-live","polite");document.body.appendChild(Ee);let ei;function pp(i,t={}){const e=t.mode||"polite",r=t.timeout===void 0?150:t.timeout;e==="alert"?(Ee.removeAttribute("aria-live"),Ee.removeAttribute("role"),ei=xe.debounce(ei,Ht,()=>{Ee.setAttribute("role","alert")})):(ei&&ei.cancel(),Ee.removeAttribute("role"),Ee.setAttribute("aria-live",e)),Ee.textContent="",setTimeout(()=>{Ee.textContent=i},r)}/**
2466
2477
  * @license
2467
2478
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
2468
2479
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2469
- */class os extends ts{constructor(t,e,r,s={}){super(t,e,r,Wt(je({},s),{useUniqueId:!0}))}initCustomNode(t){this.__updateNodeId(t),this.__notifyChange(t)}teardownNode(t){const e=this.getSlotChild();e&&e!==this.defaultNode?this.__notifyChange(e):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const t=super.attachDefaultNode();return t&&this.__updateNodeId(t),t}restoreDefaultNode(){}updateDefaultNode(t){this.__notifyChange(t)}observeNode(t){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(e=>{e.forEach(r=>{const s=r.target,o=s===this.node;r.type==="attributes"?o&&this.__updateNodeId(s):(o||s.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(t,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(t){return t?t.nodeType===Node.ELEMENT_NODE&&(customElements.get(t.localName)||t.children.length>0)||t.textContent&&t.textContent.trim()!=="":!1}__notifyChange(t){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(t),node:t}}))}__updateNodeId(t){const e=!this.nodes||t===this.nodes[0];t.nodeType===Node.ELEMENT_NODE&&(!this.multiple||e)&&!t.id&&(t.id=this.defaultId)}}/**
2480
+ */class as extends rs{constructor(t,e,r,s={}){super(t,e,r,Gt(Ue({},s),{useUniqueId:!0}))}initCustomNode(t){this.__updateNodeId(t),this.__notifyChange(t)}teardownNode(t){const e=this.getSlotChild();e&&e!==this.defaultNode?this.__notifyChange(e):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const t=super.attachDefaultNode();return t&&this.__updateNodeId(t),t}restoreDefaultNode(){}updateDefaultNode(t){this.__notifyChange(t)}observeNode(t){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(e=>{e.forEach(r=>{const s=r.target,o=s===this.node;r.type==="attributes"?o&&this.__updateNodeId(s):(o||s.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(t,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(t){return t?t.nodeType===Node.ELEMENT_NODE&&(customElements.get(t.localName)||t.children.length>0)||t.textContent&&t.textContent.trim()!=="":!1}__notifyChange(t){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(t),node:t}}))}__updateNodeId(t){const e=!this.nodes||t===this.nodes[0];t.nodeType===Node.ELEMENT_NODE&&(!this.multiple||e)&&!t.id&&(t.id=this.defaultId)}}/**
2470
2481
  * @license
2471
2482
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2472
2483
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2473
- */class mp extends os{constructor(t){super(t,"error-message","div")}setErrorMessage(t){this.errorMessage=t,this.updateDefaultNode(this.node)}setInvalid(t){this.invalid=t,this.updateDefaultNode(this.node)}initAddedNode(t){t!==this.defaultNode&&this.initCustomNode(t)}initNode(t){this.updateDefaultNode(t)}initCustomNode(t){t.textContent&&!this.errorMessage&&(this.errorMessage=t.textContent.trim()),super.initCustomNode(t)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(t){const{errorMessage:e,invalid:r}=this,s=!!(r&&e&&e.trim()!=="");t&&(t.textContent=s?e:"",t.hidden=!s,s&&pp(e,{mode:"assertive"})),super.updateDefaultNode(t)}}/**
2484
+ */class mp extends as{constructor(t){super(t,"error-message","div")}setErrorMessage(t){this.errorMessage=t,this.updateDefaultNode(this.node)}setInvalid(t){this.invalid=t,this.updateDefaultNode(this.node)}initAddedNode(t){t!==this.defaultNode&&this.initCustomNode(t)}initNode(t){this.updateDefaultNode(t)}initCustomNode(t){t.textContent&&!this.errorMessage&&(this.errorMessage=t.textContent.trim()),super.initCustomNode(t)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(t){const{errorMessage:e,invalid:r}=this,s=!!(r&&e&&e.trim()!=="");t&&(t.textContent=s?e:"",t.hidden=!s,s&&pp(e,{mode:"assertive"})),super.updateDefaultNode(t)}}/**
2474
2485
  * @license
2475
2486
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2476
2487
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2477
- */class _p extends os{constructor(t){super(t,"helper",null)}setHelperText(t){this.helperText=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:t}=this;if(t&&t.trim()!==""){this.tagName="div";const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(t){t&&(t.textContent=this.helperText),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}/**
2488
+ */class _p extends as{constructor(t){super(t,"helper",null)}setHelperText(t){this.helperText=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:t}=this;if(t&&t.trim()!==""){this.tagName="div";const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(t){t&&(t.textContent=this.helperText),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}/**
2478
2489
  * @license
2479
2490
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2480
2491
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2481
- */class gp extends os{constructor(t){super(t,"label","label")}setLabel(t){this.label=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:t}=this;if(t&&t.trim()!==""){const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(t){t&&(t.textContent=this.label),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}/**
2492
+ */class gp extends as{constructor(t){super(t,"label","label")}setLabel(t){this.label=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:t}=this;if(t&&t.trim()!==""){const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(t){t&&(t.textContent=this.label),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}/**
2482
2493
  * @license
2483
2494
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2484
2495
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2485
- */const bp=oe(i=>class extends Ii(i){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new gp(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)}});/**
2496
+ */const bp=oe(i=>class extends Ti(i){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new gp(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)}});/**
2486
2497
  * @license
2487
2498
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2488
2499
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2489
- */const ns=oe(i=>class extends i{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},manualValidation:{type:Boolean,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}_requestValidation(){this.manualValidation||this.validate()}});/**
2500
+ */const ls=oe(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}});/**
2490
2501
  * @license
2491
2502
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2492
2503
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2493
- */const vp=i=>class extends ns(bp(Ii(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 fp(this),this._helperController=new _p(this),this._errorController=new mp(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:r,node:s}=e.detail;this.__labelChanged(r,s)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:r,node:s}=e.detail;this.toggleAttribute("has-helper",r),this.__helperChanged(r,s)})}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,r){e?this._fieldAriaController.setHelperId(r.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,r){e?this._fieldAriaController.setLabelId(r.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 r=this._errorNode;this._fieldAriaController.setErrorId(r&&r.id)}else this._fieldAriaController.setErrorId(null)})}};/**
2504
+ */const vp=i=>class extends ls(bp(Ti(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 fp(this),this._helperController=new _p(this),this._errorController=new mp(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:r,node:s}=e.detail;this.__labelChanged(r,s)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:r,node:s}=e.detail;this.toggleAttribute("has-helper",r),this.__helperChanged(r,s)})}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,r){e?this._fieldAriaController.setHelperId(r.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,r){e?this._fieldAriaController.setLabelId(r.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 r=this._errorNode;this._fieldAriaController.setErrorId(r&&r.id)}else this._fieldAriaController.setErrorId(null)})}};/**
2494
2505
  * @license
2495
2506
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2496
2507
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -2498,20 +2509,20 @@ try {
2498
2509
  * @license
2499
2510
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2500
2511
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2501
- */const va=oe(i=>class extends yp(ns(rs(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(r=>this.__isValidConstraint(r))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...r){if(!e)return;const s=this._hasValidConstraints(r),o=this.__previousHasConstraints&&!s;(this._hasValue||this.invalid)&&s?this._requestValidation():o&&!this.manualValidation&&this._setInvalid(!1),this.__previousHasConstraints=s}_onChange(e){e.stopPropagation(),this._requestValidation(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return!!e||e===0}});/**
2512
+ */const wa=oe(i=>class extends yp(ls(os(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(r=>this.__isValidConstraint(r))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...r){if(!e)return;const s=this._hasValidConstraints(r),o=this.__previousHasConstraints&&!s;(this._hasValue||this.invalid)&&s?this.validate():o&&this._setInvalid(!1),this.__previousHasConstraints=s}_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}});/**
2502
2513
  * @license
2503
2514
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2504
2515
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2505
- */const wp=i=>class extends dp(np(va(vp(hp(is(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[`
2516
+ */const wp=i=>class extends dp(np(wa(vp(hp(ss(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[`
2506
2517
  :is(input[slot='input'], textarea[slot='textarea'])::placeholder {
2507
2518
  font: inherit;
2508
2519
  color: inherit;
2509
2520
  }
2510
- `]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(e){super._onKeyDown(e),this.allowedCharPattern&&!this.__shouldAcceptKey(e)&&e.target===this.inputElement&&(e.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=xe.debounce(this._preventInputDebouncer,ai.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||e.key.length!==1||this.__allowedCharRegExp.test(e.key)}_onPaste(e){if(this.allowedCharPattern){const r=e.clipboardData.getData("text");this.__allowedTextRegExp.test(r)||(e.preventDefault(),this._markInputPrevented())}}_onDrop(e){if(this.allowedCharPattern){const r=e.dataTransfer.getData("text");this.__allowedTextRegExp.test(r)||(e.preventDefault(),this._markInputPrevented())}}_onBeforeInput(e){this.allowedCharPattern&&e.data&&!this.__allowedTextRegExp.test(e.data)&&(e.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(e){if(e)try{this.__allowedCharRegExp=new RegExp(`^${e}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${e}*$`,"u")}catch(r){console.error(r)}}};/**
2521
+ `]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(e){super._onKeyDown(e),this.allowedCharPattern&&!this.__shouldAcceptKey(e)&&e.target===this.inputElement&&(e.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=xe.debounce(this._preventInputDebouncer,ni.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||e.key.length!==1||this.__allowedCharRegExp.test(e.key)}_onPaste(e){if(this.allowedCharPattern){const r=e.clipboardData.getData("text");this.__allowedTextRegExp.test(r)||(e.preventDefault(),this._markInputPrevented())}}_onDrop(e){if(this.allowedCharPattern){const r=e.dataTransfer.getData("text");this.__allowedTextRegExp.test(r)||(e.preventDefault(),this._markInputPrevented())}}_onBeforeInput(e){this.allowedCharPattern&&e.data&&!this.__allowedTextRegExp.test(e.data)&&(e.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(e){if(e)try{this.__allowedCharRegExp=new RegExp(`^${e}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${e}*$`,"u")}catch(r){console.error(r)}}};/**
2511
2522
  * @license
2512
2523
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2513
2524
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2514
- */class xp extends ts{constructor(t,e,r={}){const{uniqueIdPrefix:s}=r;super(t,"input","input",{initializer:(o,n)=>{n.value&&(o.value=n.value),n.type&&o.setAttribute("type",n.type),o.id=this.defaultId,typeof e=="function"&&e(o)},useUniqueId:!0,uniqueIdPrefix:s})}}/**
2525
+ */class xp extends rs{constructor(t,e,r={}){const{uniqueIdPrefix:s}=r;super(t,"input","input",{initializer:(o,n)=>{n.value&&(o.value=n.value),n.type&&o.setAttribute("type",n.type),o.id=this.defaultId,typeof e=="function"&&e(o)},useUniqueId:!0,uniqueIdPrefix:s})}}/**
2515
2526
  * @license
2516
2527
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2517
2528
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -2519,11 +2530,11 @@ try {
2519
2530
  * @license
2520
2531
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2521
2532
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2522
- */const Ep=i=>class extends va(i){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}};/**
2533
+ */const Ep=i=>class extends wa(i){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}};/**
2523
2534
  * @license
2524
2535
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
2525
2536
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2526
- */const Cp=R`
2537
+ */const Cp=D`
2527
2538
  [part='clear-button'] {
2528
2539
  display: none;
2529
2540
  cursor: default;
@@ -2540,7 +2551,7 @@ try {
2540
2551
  * @license
2541
2552
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
2542
2553
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2543
- */const Ap=R`
2554
+ */const Ap=D`
2544
2555
  :host {
2545
2556
  display: inline-flex;
2546
2557
  outline: none;
@@ -2578,7 +2589,7 @@ try {
2578
2589
  * @license
2579
2590
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
2580
2591
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2581
- */const Sp=R`
2592
+ */const Sp=D`
2582
2593
  [class$='container'] {
2583
2594
  display: flex;
2584
2595
  flex-direction: column;
@@ -2594,19 +2605,19 @@ try {
2594
2605
  * @license
2595
2606
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2596
2607
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2597
- */function bi(i,t,e=0){let r=t;for(const s of i.subCaches){const o=s.parentCacheIndex;if(r<=o)break;if(r<=o+s.flatSize)return bi(s,r-o-1,e+1);r-=s.flatSize}return{cache:i,item:i.items[r],index:r,page:Math.floor(r/i.pageSize),level:e}}function ya({getItemId:i},t,e,r=0,s=0){for(let o=0;o<t.items.length;o++){const n=t.items[o];if(n&&i(n)===i(e))return{cache:t,level:r,item:n,index:o,page:Math.floor(o/t.pageSize),subCache:t.getSubCache(o),flatIndex:s+t.getFlatIndex(o)}}for(const o of t.subCaches){const n=s+t.getFlatIndex(o.parentCacheIndex),a=ya({getItemId:i},o,e,r+1,n+1);if(a)return a}}function wa(i,[t,...e],r=0){t===1/0&&(t=i.size-1);const s=i.getFlatIndex(t),o=i.getSubCache(t);return o&&o.flatSize>0&&e.length?wa(o,e,r+s+1):r+s}/**
2608
+ */function gi(i,t,e=0){let r=t;for(const s of i.subCaches){const o=s.parentCacheIndex;if(r<=o)break;if(r<=o+s.flatSize)return gi(s,r-o-1,e+1);r-=s.flatSize}return{cache:i,item:i.items[r],index:r,page:Math.floor(r/i.pageSize),level:e}}function xa({getItemId:i},t,e,r=0,s=0){for(let o=0;o<t.items.length;o++){const n=t.items[o];if(n&&i(n)===i(e))return{cache:t,level:r,item:n,index:o,page:Math.floor(o/t.pageSize),subCache:t.getSubCache(o),flatIndex:s+t.getFlatIndex(o)}}for(const o of t.subCaches){const n=s+t.getFlatIndex(o.parentCacheIndex),a=xa({getItemId:i},o,e,r+1,n+1);if(a)return a}}function Pa(i,[t,...e],r=0){t===1/0&&(t=i.size-1);const s=i.getFlatIndex(t),o=i.getSubCache(t);return o&&o.flatSize>0&&e.length?Pa(o,e,r+s+1):r+s}/**
2598
2609
  * @license
2599
2610
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2600
2611
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2601
- */class as{constructor(t,e,r,s,o){z(this,"context");z(this,"pageSize");z(this,"items",[]);z(this,"pendingRequests",{});z(this,"__subCacheByIndex",{});z(this,"__size",0);z(this,"__flatSize",0);this.context=t,this.pageSize=e,this.size=r,this.parentCache=s,this.parentCacheIndex=o,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(t=>t.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(t){var r;if(this.__size!==t){if(this.__size=t,this.context.placeholder!==void 0){this.items.length=t||0;for(let s=0;s<t;s++)(r=this.items)[s]||(r[s]=this.context.placeholder)}Object.keys(this.pendingRequests).forEach(s=>{parseInt(s)*this.pageSize>=this.size&&delete this.pendingRequests[s]})}}recalculateFlatSize(){this.__flatSize=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce((t,e)=>(e.recalculateFlatSize(),t+e.flatSize),0):0}setPage(t,e){const r=t*this.pageSize;e.forEach((s,o)=>{const n=r+o;(this.size===void 0||n<this.size)&&(this.items[n]=s)})}getSubCache(t){return this.__subCacheByIndex[t]}removeSubCache(t){delete this.__subCacheByIndex[t]}removeSubCaches(){this.__subCacheByIndex={}}createSubCache(t){const e=new as(this.context,this.pageSize,0,this,t);return this.__subCacheByIndex[t]=e,e}getFlatIndex(t){const e=Math.max(0,Math.min(this.size-1,t));return this.subCaches.reduce((r,s)=>{const o=s.parentCacheIndex;return e>o?r+s.flatSize:r},e)}getItemForIndex(t){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:e}=bi(this,t);return e}getCacheAndIndex(t){console.warn("<vaadin-grid> The `getCacheAndIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{cache:e,index:r}=bi(this,t);return{cache:e,scaledIndex:r}}updateSize(){console.warn("<vaadin-grid> The `updateSize` method of ItemCache is deprecated and will be removed in Vaadin 25."),this.recalculateFlatSize()}ensureSubCacheForScaledIndex(t){if(console.warn("<vaadin-grid> The `ensureSubCacheForScaledIndex` method of ItemCache is deprecated and will be removed in Vaadin 25."),!this.getSubCache(t)){const e=this.createSubCache(t);this.context.__controller.__loadCachePage(e,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}}/**
2612
+ */class ds{constructor(t,e,r,s,o){z(this,"context");z(this,"pageSize");z(this,"items",[]);z(this,"pendingRequests",{});z(this,"__subCacheByIndex",{});z(this,"__size",0);z(this,"__flatSize",0);this.context=t,this.pageSize=e,this.size=r,this.parentCache=s,this.parentCacheIndex=o,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(t=>t.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(t){var r;if(this.__size!==t){if(this.__size=t,this.context.placeholder!==void 0){this.items.length=t||0;for(let s=0;s<t;s++)(r=this.items)[s]||(r[s]=this.context.placeholder)}Object.keys(this.pendingRequests).forEach(s=>{parseInt(s)*this.pageSize>=this.size&&delete this.pendingRequests[s]})}}recalculateFlatSize(){this.__flatSize=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce((t,e)=>(e.recalculateFlatSize(),t+e.flatSize),0):0}setPage(t,e){const r=t*this.pageSize;e.forEach((s,o)=>{const n=r+o;(this.size===void 0||n<this.size)&&(this.items[n]=s)})}getSubCache(t){return this.__subCacheByIndex[t]}removeSubCache(t){delete this.__subCacheByIndex[t]}removeSubCaches(){this.__subCacheByIndex={}}createSubCache(t){const e=new ds(this.context,this.pageSize,0,this,t);return this.__subCacheByIndex[t]=e,e}getFlatIndex(t){const e=Math.max(0,Math.min(this.size-1,t));return this.subCaches.reduce((r,s)=>{const o=s.parentCacheIndex;return e>o?r+s.flatSize:r},e)}getItemForIndex(t){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:e}=gi(this,t);return e}getCacheAndIndex(t){console.warn("<vaadin-grid> The `getCacheAndIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{cache:e,index:r}=gi(this,t);return{cache:e,scaledIndex:r}}updateSize(){console.warn("<vaadin-grid> The `updateSize` method of ItemCache is deprecated and will be removed in Vaadin 25."),this.recalculateFlatSize()}ensureSubCacheForScaledIndex(t){if(console.warn("<vaadin-grid> The `ensureSubCacheForScaledIndex` method of ItemCache is deprecated and will be removed in Vaadin 25."),!this.getSubCache(t)){const e=this.createSubCache(t);this.context.__controller.__loadCachePage(e,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}}/**
2602
2613
  * @license
2603
2614
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2604
2615
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2605
- */class Ip extends EventTarget{constructor(e,{size:r,pageSize:s,isExpanded:o,getItemId:n,isPlaceholder:a,placeholder:l,dataProvider:d,dataProviderParams:h}){super();z(this,"host");z(this,"dataProvider");z(this,"dataProviderParams");z(this,"pageSize");z(this,"isExpanded");z(this,"getItemId");z(this,"rootCache");z(this,"placeholder");z(this,"isPlaceholder");this.host=e,this.pageSize=s,this.getItemId=n,this.isExpanded=o,this.placeholder=l,this.isPlaceholder=a,this.dataProvider=d,this.dataProviderParams=h,this.rootCache=this.__createRootCache(r)}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 bi(this.rootCache,e)}getItemContext(e){return ya({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return wa(this.rootCache,e)}ensureFlatIndexLoaded(e){const{cache:r,page:s,item:o}=this.getFlatIndexContext(e);this.__isItemLoaded(o)||this.__loadCachePage(r,s)}ensureFlatIndexHierarchy(e){const{cache:r,item:s,index:o}=this.getFlatIndexContext(e);if(this.__isItemLoaded(s)&&this.isExpanded(s)&&!r.getSubCache(o)){const n=r.createSubCache(o);this.__loadCachePage(n,0)}}loadFirstPage(){this.__loadCachePage(this.rootCache,0)}__createRootCache(e){return new as(this.__cacheContext,this.pageSize,e)}__loadCachePage(e,r){if(!this.dataProvider||e.pendingRequests[r])return;let s={page:r,pageSize:this.pageSize,parentItem:e.parentItem};this.dataProviderParams&&(s=je(je({},s),this.dataProviderParams()));const o=(n,a)=>{e.pendingRequests[r]===o&&(a!==void 0?e.size=a:s.parentItem&&(e.size=n.length),e.setPage(r,n),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete e.pendingRequests[r],this.dispatchEvent(new CustomEvent("page-loaded")))};e.pendingRequests[r]=o,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(s,o)}__isItemLoaded(e){return this.isPlaceholder?!this.isPlaceholder(e):this.placeholder?e!==this.placeholder:!!e}}/**
2616
+ */class Ip extends EventTarget{constructor(e,{size:r,pageSize:s,isExpanded:o,getItemId:n,isPlaceholder:a,placeholder:l,dataProvider:d,dataProviderParams:h}){super();z(this,"host");z(this,"dataProvider");z(this,"dataProviderParams");z(this,"pageSize");z(this,"isExpanded");z(this,"getItemId");z(this,"rootCache");z(this,"placeholder");z(this,"isPlaceholder");this.host=e,this.pageSize=s,this.getItemId=n,this.isExpanded=o,this.placeholder=l,this.isPlaceholder=a,this.dataProvider=d,this.dataProviderParams=h,this.rootCache=this.__createRootCache(r)}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 gi(this.rootCache,e)}getItemContext(e){return xa({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return Pa(this.rootCache,e)}ensureFlatIndexLoaded(e){const{cache:r,page:s,item:o}=this.getFlatIndexContext(e);this.__isItemLoaded(o)||this.__loadCachePage(r,s)}ensureFlatIndexHierarchy(e){const{cache:r,item:s,index:o}=this.getFlatIndexContext(e);if(this.__isItemLoaded(s)&&this.isExpanded(s)&&!r.getSubCache(o)){const n=r.createSubCache(o);this.__loadCachePage(n,0)}}loadFirstPage(){this.__loadCachePage(this.rootCache,0)}__createRootCache(e){return new ds(this.__cacheContext,this.pageSize,e)}__loadCachePage(e,r){if(!this.dataProvider||e.pendingRequests[r])return;let s={page:r,pageSize:this.pageSize,parentItem:e.parentItem};this.dataProviderParams&&(s=Ue(Ue({},s),this.dataProviderParams()));const o=(n,a)=>{e.pendingRequests[r]===o&&(a!==void 0?e.size=a:s.parentItem&&(e.size=n.length),e.setPage(r,n),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete e.pendingRequests[r],this.dispatchEvent(new CustomEvent("page-loaded")))};e.pendingRequests[r]=o,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(s,o)}__isItemLoaded(e){return this.isPlaceholder?!this.isPlaceholder(e):this.placeholder?e!==this.placeholder:!!e}}/**
2606
2617
  * @license
2607
2618
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
2608
2619
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2609
- */const Op=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 Ip(this,{placeholder:new lt,isPlaceholder:e=>e instanceof lt,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 r=e.detail.index;r!==void 0&&this.__dataProviderController.ensureFlatIndexLoaded(r)}),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:r}=this.__dataProviderController;r.size!==e&&(r.size=e,r.items=[...r.items],this.__synchronizeControllerState())}_filteredItemsChanged(e){if(super._filteredItemsChanged(e),this.dataProvider&&e){const{rootCache:r}=this.__dataProviderController;r.items!==e&&(r.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,r){if(Math.floor(e)!==e||e<1)throw this.pageSize=r,new Error("`pageSize` value must be an integer > 0");this.__dataProviderController.setPageSize(e),this.clearCache()}_dataProviderChanged(e,r){this._ensureItemsOrDataProvider(()=>{this.dataProvider=r}),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,r){if(e&&r!==""&&(this.selectedItem===void 0||this.selectedItem===null)){const s=this.__getItemIndexByValue(this.filteredItems,r);(s<0||!this._getItemLabel(this.filteredItems[s]))&&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`")}}};/**
2620
+ */const Op=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 Ip(this,{placeholder:new at,isPlaceholder:e=>e instanceof at,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 r=e.detail.index;r!==void 0&&this.__dataProviderController.ensureFlatIndexLoaded(r)}),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:r}=this.__dataProviderController;r.size!==e&&(r.size=e,r.items=[...r.items],this.__synchronizeControllerState())}_filteredItemsChanged(e){if(super._filteredItemsChanged(e),this.dataProvider&&e){const{rootCache:r}=this.__dataProviderController;r.items!==e&&(r.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,r){if(Math.floor(e)!==e||e<1)throw this.pageSize=r,new Error("`pageSize` value must be an integer > 0");this.__dataProviderController.setPageSize(e),this.clearCache()}_dataProviderChanged(e,r){this._ensureItemsOrDataProvider(()=>{this.dataProvider=r}),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,r){if(e&&r!==""&&(this.selectedItem===void 0||this.selectedItem===null)){const s=this.__getItemIndexByValue(this.filteredItems,r);(s<0||!this._getItemLabel(this.filteredItems[s]))&&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`")}}};/**
2610
2621
  * @license
2611
2622
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
2612
2623
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -2618,15 +2629,15 @@ try {
2618
2629
  * @license
2619
2630
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2620
2631
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2621
- */class Lp{constructor(t){this.host=t,t.addEventListener("opened-changed",()=>{t.opened||this.__setVirtualKeyboardEnabled(!1)}),t.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),t.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(t){this.host.inputElement&&(this.host.inputElement.inputMode=t?"":"none")}}/**
2632
+ */class Mp{constructor(t){this.host=t,t.addEventListener("opened-changed",()=>{t.opened||this.__setVirtualKeyboardEnabled(!1)}),t.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),t.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(t){this.host.inputElement&&(this.host.inputElement.inputMode=t?"":"none")}}/**
2622
2633
  * @license
2623
2634
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
2624
2635
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2625
- */function yo(i){return i!=null}function wo(i,t){return i.findIndex(e=>e instanceof lt?!1:t(e))}const Mp=i=>class extends Np(Ii(ns(ma(is(rs(_a(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 r=this._nativeInput;r&&(r.autocomplete="off",r.autocapitalize="off",r.setAttribute("role","combobox"),r.setAttribute("aria-autocomplete","list"),r.setAttribute("aria-expanded",!!this.opened),r.setAttribute("spellcheck","false"),r.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),kp(this),this.addController(new Lp(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,r,s){super._propertiesChanged(e,r,s),r.filter!==void 0&&this._filterChanged(r.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",r=>r.preventDefault()),e.addEventListener("opened-changed",r=>{this._overlayOpened=r.detail.value}),this._overlayElement=e}_initScroller(e){const r=document.createElement(`${this._tagNamePrefix}-scroller`);r.owner=e||this,r.getItemLabel=this._getItemLabel.bind(this),r.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const s=this._overlayElement;s.renderer=o=>{o.innerHTML||o.appendChild(r)},s.requestContentUpdate(),this._scroller=r}_updateScroller(e,r,s,o,n,a,l,d,h,u){if(e&&(s&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:s?r:[],opened:s,loading:o,selectedItem:n,itemIdPath:a,focusedIndex:l,renderer:d,theme:h,itemClassNameGenerator:u}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate()}catch(f){}}_openedOrItemsChanged(e,r,s,o){this._overlayOpened=e&&(o||s||!!(r&&r.length))}_overlayOpenedChanged(e,r){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):r&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(e,r){r!==void 0&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&oa(this.inputElement)}_updateActiveDescendant(e){const r=this._nativeInput;if(!r)return;const s=this._getItemElements().find(o=>o.index===e);s?r.setAttribute("aria-activedescendant",s.id):r.removeAttribute("aria-activedescendant")}_openedChanged(e,r){if(r===void 0)return;e?!this._isInputFocused()&&!kr&&this.inputElement&&this.inputElement.focus():this._onClosed();const s=this._nativeInput;s&&(s.setAttribute("aria-expanded",!!e),e?s.setAttribute("aria-controls",this._scroller.id):s.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 r=e&&this.itemLabelPath?gi(this.itemLabelPath,e):void 0;return r==null&&(r=e?e.toString():""),r}_getItemValue(e){let r=e&&this.itemValuePath?gi(this.itemValuePath,e):void 0;return r===void 0&&(r=e?e.toString():""),r}_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,r){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,r)}_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",r=>r.preventDefault()),e.addEventListener("click",()=>{kr&&!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||[]],r=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!r){const s=this._inputElementValue;this._lastCustomValue=s;const o=new CustomEvent("custom-value-set",{detail:s,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(o),o.defaultPrevented||(this.value=s)}else!this.allowCustomValue&&!this.opened&&r?this.value=this._getItemValue(r):this._revertInputValueToValue()}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(e){const r=this._inputElementValue,s={};this.filter===r?this._filterChanged(this.filter):s.filter=r,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(s.opened=!0),this.setProperties(s)}_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 r=this._getItemValue(e);if(this.value!==r&&(this.value=r,this.value!==r))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e)}}_valueChanged(e,r){e===""&&r===void 0||(yo(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._requestValidation(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(e,r){this._ensureItemsOrDataProvider(()=>{this.items=r}),e?this.filteredItems=e.slice(0):r&&(this.filteredItems=null)}_filteredItemsChanged(e){this._setDropdownItems(e)}_filterItems(e,r){return e&&e.filter(o=>(r=r?r.toString().toLowerCase():"",this._getItemLabel(o).toString().toLowerCase().indexOf(r)>-1))}_selectItemForValue(e){const r=this.__getItemIndexByValue(this.filteredItems,e),s=this.selectedItem;r>=0?this.selectedItem=this.filteredItems[r]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&s===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){const r=this._dropdownItems;this._dropdownItems=e;const s=r?r[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(s));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,r){return!e||!yo(r)?-1:wo(e,s=>this._getItemValue(s)===r)}__getItemIndexByLabel(e,r){return!e||!r?-1:wo(e,s=>this._getItemLabel(s).toString().toLowerCase()===r.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof lt)&&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(Kr()){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())}};/**
2636
+ */function xo(i){return i!=null}function Po(i,t){return i.findIndex(e=>e instanceof at?!1:t(e))}const Lp=i=>class extends Np(Ti(ls(ga(ss(os(ba(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 r=this._nativeInput;r&&(r.autocomplete="off",r.autocapitalize="off",r.setAttribute("role","combobox"),r.setAttribute("aria-autocomplete","list"),r.setAttribute("aria-expanded",!!this.opened),r.setAttribute("spellcheck","false"),r.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),kp(this),this.addController(new Mp(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,r,s){super._propertiesChanged(e,r,s),r.filter!==void 0&&this._filterChanged(r.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",r=>r.preventDefault()),e.addEventListener("opened-changed",r=>{this._overlayOpened=r.detail.value}),this._overlayElement=e}_initScroller(e){const r=document.createElement(`${this._tagNamePrefix}-scroller`);r.owner=e||this,r.getItemLabel=this._getItemLabel.bind(this),r.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const s=this._overlayElement;s.renderer=o=>{o.innerHTML||o.appendChild(r)},s.requestContentUpdate(),this._scroller=r}_updateScroller(e,r,s,o,n,a,l,d,h,u){if(e&&(s&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:s?r:[],opened:s,loading:o,selectedItem:n,itemIdPath:a,focusedIndex:l,renderer:d,theme:h,itemClassNameGenerator:u}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate()}catch(f){}}_openedOrItemsChanged(e,r,s,o){this._overlayOpened=e&&(o||s||!!(r&&r.length))}_overlayOpenedChanged(e,r){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):r&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(e,r){r!==void 0&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&aa(this.inputElement)}_updateActiveDescendant(e){const r=this._nativeInput;if(!r)return;const s=this._getItemElements().find(o=>o.index===e);s?r.setAttribute("aria-activedescendant",s.id):r.removeAttribute("aria-activedescendant")}_openedChanged(e,r){if(r===void 0)return;e?!this._isInputFocused()&&!kr&&this.inputElement&&this.inputElement.focus():this._onClosed();const s=this._nativeInput;s&&(s.setAttribute("aria-expanded",!!e),e?s.setAttribute("aria-controls",this._scroller.id):s.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 r=e&&this.itemLabelPath?_i(this.itemLabelPath,e):void 0;return r==null&&(r=e?e.toString():""),r}_getItemValue(e){let r=e&&this.itemValuePath?_i(this.itemValuePath,e):void 0;return r===void 0&&(r=e?e.toString():""),r}_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,r){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,r)}_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",r=>r.preventDefault()),e.addEventListener("click",()=>{kr&&!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||[]],r=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!r){const s=this._inputElementValue;this._lastCustomValue=s;const o=new CustomEvent("custom-value-set",{detail:s,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(o),o.defaultPrevented||(this.value=s)}else!this.allowCustomValue&&!this.opened&&r?this.value=this._getItemValue(r):this._revertInputValueToValue()}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(e){const r=this._inputElementValue,s={};this.filter===r?this._filterChanged(this.filter):s.filter=r,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(s.opened=!0),this.setProperties(s)}_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 r=this._getItemValue(e);if(this.value!==r&&(this.value=r,this.value!==r))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e)}}_valueChanged(e,r){e===""&&r===void 0||(xo(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,r){this._ensureItemsOrDataProvider(()=>{this.items=r}),e?this.filteredItems=e.slice(0):r&&(this.filteredItems=null)}_filteredItemsChanged(e){this._setDropdownItems(e)}_filterItems(e,r){return e&&e.filter(o=>(r=r?r.toString().toLowerCase():"",this._getItemLabel(o).toString().toLowerCase().indexOf(r)>-1))}_selectItemForValue(e){const r=this.__getItemIndexByValue(this.filteredItems,e),s=this.selectedItem;r>=0?this.selectedItem=this.filteredItems[r]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&s===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){const r=this._dropdownItems;this._dropdownItems=e;const s=r?r[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(s));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,r){return!e||!xo(r)?-1:Po(e,s=>this._getItemValue(s)===r)}__getItemIndexByLabel(e,r){return!e||!r?-1:Po(e,s=>this._getItemLabel(s).toString().toLowerCase()===r.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof at)&&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(ts()){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())}};/**
2626
2637
  * @license
2627
2638
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
2628
2639
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2629
- */de("vaadin-combo-box",Tp,{moduleId:"vaadin-combo-box-styles"});class Bp extends Op(Mp(Ep(wp(Ci(ip(Ut)))))){static get is(){return"vaadin-combo-box"}static get template(){return $t`
2640
+ */de("vaadin-combo-box",Tp,{moduleId:"vaadin-combo-box-styles"});class Bp extends Op(Lp(Ep(wp(Ei(ip($t)))))){static get is(){return"vaadin-combo-box"}static get template(){return Vt`
2630
2641
  <style>
2631
2642
  :host([opened]) {
2632
2643
  pointer-events: auto;
@@ -2671,4 +2682,4 @@ try {
2671
2682
  ></vaadin-combo-box-overlay>
2672
2683
 
2673
2684
  <slot name="tooltip"></slot>
2674
- `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new xp(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t})),this.addController(new Pp(this.inputElement,this._labelController)),this._tooltipController=new sp(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(t=>!t.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(t){t.stopPropagation(),super._onClearButtonClick(t)}_onHostClick(t){const e=t.composedPath();(e.includes(this._labelNode)||e.includes(this._positionTarget))&&super._onHostClick(t)}}ct(Bp);function Hp(i){sl(i,"svelte-8ll60n",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}input,select{font-family:inherit}.GeneralPlayerForgotPasswordForm{height:auto}.GeneralPlayerForgotPasswordForm .ModalLoaderWrapper{display:flex;height:100%;align-items:center}.GeneralPlayerForgotPasswordForm .ModalLoader{display:block;width:80px;height:80px;margin:0 auto}.GeneralPlayerForgotPasswordForm .ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:Loader 1.2s linear infinite}.backButtonForgotPassword{display:inline-flex;color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));height:24px;line-height:24px;border-radius:var(--emw--border-radius-medium, 15px);border:none;background:transparent;padding:0;text-transform:uppercase;font-size:var(--emw--font-size-medium, 16px);cursor:pointer;margin-bottom:30px}.backButtonForgotPassword svg{width:24px;height:24px;margin-right:20px;fill:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.FormContainer{width:100%}.FormForgotPassword{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #F9F8F8))}.FormHeaderTitle{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));font-size:var(--emw--font-size-large, 20px);font-weight:var(--emw--font-weight-light, 300);padding:0;text-transform:uppercase;margin:0}.FormHeaderSubtitle{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));font-weight:var(--emw--font-weight-light, 300);padding-top:14px}.FormRequired{color:var(--emw--color-error, #ed0909)}.ForgotPasswordError{color:var(--emw--color-error, #ed0909);font-size:10px;line-height:10px;margin-top:10px}.FormContent{padding-top:20px}.NewPasswordSuccess{display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:space-around;align-items:center}.NewPasswordSuccess h4{margin-top:10px;color:var(--emw--color-valid, var(--emw--color-valid, #48952a));font-size:28px;font-weight:500;padding:0;text-transform:uppercase}.NewPasswordSuccess p{text-align:center;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));text-transform:initial;padding:15px 0;margin-bottom:110px}.TogglePasswordVisibility{height:19px;position:absolute;right:8px;top:34px;cursor:pointer}.TogglePasswordVisibility.InvalidToggle path,.TogglePasswordVisibility.InvalidToggle circle,.TogglePasswordVisibility.InvalidToggle rect{fill:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect{fill:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444))}.ResetPasswordByEmail,.NewPassword,.ConfirmPassword{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));display:flex;flex-direction:column;padding-bottom:20px;position:relative}.ResetPasswordByEmail .dobFormatError,.NewPassword .dobFormatError,.ConfirmPassword .dobFormatError{padding:20px;width:100%;text-align:center;color:var(--emw--color-error, #ed0909)}.ResetPasswordByEmail .DobContainer,.NewPassword .DobContainer,.ConfirmPassword .DobContainer{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.ResetPasswordByEmail .DobContainer .datePickerBox,.NewPassword .DobContainer .datePickerBox,.ConfirmPassword .DobContainer .datePickerBox{width:100%;padding:10px}.ResetPasswordByEmail .DobContainer .datePickerBox input,.NewPassword .DobContainer .datePickerBox input,.ConfirmPassword .DobContainer .datePickerBox input{border:0px;background:transparent}.ResetPasswordByEmail .DobContainer.Mobile,.NewPassword .DobContainer.Mobile,.ConfirmPassword .DobContainer.Mobile{flex-direction:column}.ResetPasswordByEmail label,.NewPassword label,.ConfirmPassword label{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-light, 300);padding-bottom:5px}.ResetPasswordByEmail input,.NewPassword input,.ConfirmPassword input{width:100%;height:44px;border-radius:var(--emw--border-radius-medium, 15px);border:1px solid var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));padding:5px;font-size:var(--emw--font-size-small, 14px);box-sizing:border-box;padding:5px 15px;font-size:var(--emw--font-size-medium, 16px);line-height:18px}.ResetPasswordByEmail input:focus,.NewPassword input:focus,.ConfirmPassword input:focus{border:2px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));outline:none}.ResetPasswordByEmail.InvalidField input,.NewPassword.InvalidField input,.ConfirmPassword.InvalidField input{border:1px solid var(--emw--color-error, #ed0909);background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444))}.resetPasswordButton{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);border-radius:var(--emw--button-border-radius, 50px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF));font-family:var(--emw--button-typography);width:100%;height:60px;padding:0;text-transform:uppercase;font-size:var(--emw--font-size-medium, 16px);cursor:pointer}.resetPasswordButton[disabled]{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);cursor:not-allowed}.ResetPasswordByEmail,.NewPassword,.ConfirmPassword{padding-bottom:30px}.ResetPasswordByEmail .InvalidInput{bottom:-3px}.InvalidInput{color:var(--emw--color-error, #ed0909);font-size:10px;position:absolute;bottom:10px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:var(--emw--font-size-x-small, 12px);color:var(--emw--color-error, #ed0909)}.FormForgotPassword{padding:50px}.FormMobileContainer{height:100%;background-color:var(--emw--color-gray-50, #F9F8F8)}.FormMobileContainer .resetPasswordButton,.FormMobileContainer .ResetPasswordByEmail input{max-width:unset;border-radius:var(--emw--border-radius-medium, 15px)}.FormMobileContainer{height:100%}.FormMobileContainer .FormForgotPassword{padding:40px 20px}.FormMobileContainer .resetPasswordButton,.FormMobileContainer .UserContainer input{max-width:unset}input::-ms-reveal,input::-ms-clear{display:none}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}function xo(i,t,e){const r=i.slice();return r[88]=t[e],r}function Po(i){let t,e;return{c(){t=P("script"),ps(t.src,e="//www.google.com/recaptcha/api.js?render="+i[0])||c(t,"src",e),t.async=!0,t.defer=!0},m(r,s){B(r,t,s)},p(r,s){s[0]&1&&!ps(t.src,e="//www.google.com/recaptcha/api.js?render="+r[0])&&c(t,"src",e)},d(r){r&&k(t)}}}function Rp(i){let t,e;function r(n,a){if(n[5])return $p;if(n[7])return Vp;if(n[9])return zp;if(n[10])return Dp}let s=r(i),o=s&&s(i);return{c(){t=P("div"),o&&o.c(),c(t,"class",e="FormContainer "+(i[11]?"FormMobileContainer":""))},m(n,a){B(n,t,a),o&&o.m(t,null)},p(n,a){s===(s=r(n))&&o?o.p(n,a):(o&&o.d(1),o=s&&s(n),o&&(o.c(),o.m(t,null))),a[0]&2048&&e!==(e="FormContainer "+(n[11]?"FormMobileContainer":""))&&c(t,"class",e)},d(n){n&&k(t),o&&o.d()}}}function Fp(i){let t;return{c(){t=P("div"),t.innerHTML='<div class="ModalLoader"></div>',c(t,"class","ModalLoaderWrapper")},m(e,r){B(e,t,r)},p:Pe,d(e){e&&k(t)}}}function Dp(i){let t,e,r,s,o,n,a,l,d,h,u,f,m,_,g,w=i[30]("forgotChangePasswordTitle")+"",y,v,C,E=i[30]("forgotChangePasswordDescription")+"",A,$,H,fe=i[30]("forgotChangePasswordLogin")+"",G,ve,W;return{c(){t=P("div"),e=P("div"),r=P("div"),s=x("svg"),o=x("defs"),n=x("style"),a=N(".a{fill:var(--emw--color-valid, var(--emw--color-valid, #48952a));}.b,.d{fill:none;}.b{stroke:var(--emw--color-valid, var(--emw--color-green, #48952a));stroke-width:2px;}.c{stroke:none;}"),l=x("g"),d=x("g"),h=x("path"),u=x("g"),f=x("circle"),m=x("circle"),_=V(),g=P("h4"),y=N(w),v=V(),C=P("p"),A=N(E),$=V(),H=P("button"),G=N(fe),c(h,"class","a"),c(h,"d","M16.1,28,0,11.9,3.267,8.633,16.1,21.233,37.333,0,40.6,3.267Z"),c(h,"transform","translate(264.272 482.563)"),c(d,"transform","translate(-7360.574 8503.438)"),c(f,"class","c"),c(f,"cx","30"),c(f,"cy","30"),c(f,"r","30"),c(m,"class","d"),c(m,"cx","30"),c(m,"cy","30"),c(m,"r","29"),c(u,"class","b"),c(u,"transform","translate(-7106 8970)"),c(l,"transform","translate(7106 -8970)"),c(s,"xmlns","http://www.w3.org/2000/svg"),c(s,"width","60"),c(s,"height","60"),c(s,"viewBox","0 0 60 60"),c(r,"class","NewPasswordSuccess"),c(r,"part","NewPasswordSuccess"),c(H,"class","resetPasswordButton"),c(H,"part","resetPasswordButton"),c(e,"class","FormContent"),c(e,"part","FormContent"),c(t,"class","FormForgotPassword"),c(t,"part","FormForgotPassword")},m(te,ne){B(te,t,ne),p(t,e),p(e,r),p(r,s),p(s,o),p(o,n),p(n,a),p(s,l),p(l,d),p(d,h),p(l,u),p(u,f),p(u,m),p(r,_),p(r,g),p(g,y),p(r,v),p(r,C),p(C,A),p(e,$),p(e,H),p(H,G),ve||(W=se(H,"click",i[68]),ve=!0)},p(te,ne){ne[0]&1073741824&&w!==(w=te[30]("forgotChangePasswordTitle")+"")&&J(y,w),ne[0]&1073741824&&E!==(E=te[30]("forgotChangePasswordDescription")+"")&&J(A,E),ne[0]&1073741824&&fe!==(fe=te[30]("forgotChangePasswordLogin")+"")&&J(G,fe)},d(te){te&&k(t),ve=!1,W()}}}function zp(i){let t,e,r,s,o,n,a,l,d,h=i[30]("forgotNewPasswordPassword")+"",u,f,m,_,g,w,y,v,C,E,A,$=i[30]("forgotNewPasswordConfirmPassword")+"",H,fe,G,ve,W,te,ne,Ce,Ae,Q,pe=i[30]("forgotNewPasswordButton")+"",_e,he,ye,Se,S=i[26]&&Eo(i);function U(we,X){return we[20]?jp:Up}let F=U(i),ie=F(i),q=i[16]&&Co(i);function ae(we,X){return we[21]?Yp:qp}let I=ae(i),D=I(i),le=i[17]&&Ao(i),Y=i[24]&&So(i);return{c(){t=P("div"),e=P("div"),r=P("h4"),s=N(i[25]),o=V(),S&&S.c(),n=V(),a=P("form"),l=P("div"),d=P("label"),u=N(h),f=N(":"),m=P("span"),m.textContent="*",_=V(),g=P("input"),y=V(),ie.c(),v=V(),q&&q.c(),C=V(),E=P("div"),A=P("label"),H=N($),fe=N(":"),G=P("span"),G.textContent="*",ve=V(),W=P("input"),te=V(),D.c(),ne=V(),le&&le.c(),Ce=V(),Y&&Y.c(),Ae=V(),Q=P("button"),_e=N(pe),c(r,"class","FormHeaderTitle"),c(r,"part","FormHeaderTitle"),c(e,"class","FormHeader"),c(e,"part","FormHeader"),c(m,"class","FormRequired"),c(m,"part","FormRequired"),c(d,"for","NewPassword"),c(g,"type","password"),c(g,"id","new-password"),c(g,"autocomplete",w=i[2]?"new-password":"off"),c(l,"class","NewPassword"),c(l,"part","NewPassword"),c(G,"class","FormRequired"),c(G,"part","FormRequired"),c(A,"for","RetypePassword"),c(W,"type","password"),c(W,"id","RetypePassword"),c(E,"class","ConfirmPassword"),c(E,"part","ConfirmPassword"),c(Q,"class","resetPasswordButton"),c(Q,"part","resetPasswordButton"),Q.disabled=he=!i[15],c(a,"class","FormContent"),c(a,"part","FormContent"),c(t,"class","FormForgotPassword test"),c(t,"part","FormForgotPassword test")},m(we,X){B(we,t,X),p(t,e),p(e,r),p(r,s),p(e,o),S&&S.m(e,null),p(t,n),p(t,a),p(a,l),p(l,d),p(d,u),p(d,f),p(d,m),p(l,_),p(l,g),Ze(g,i[22]),i[60](g),p(l,y),ie.m(l,null),p(l,v),q&&q.m(l,null),p(a,C),p(a,E),p(E,A),p(A,H),p(A,fe),p(A,G),p(E,ve),p(E,W),Ze(W,i[23]),i[64](W),p(E,te),D.m(E,null),p(E,ne),le&&le.m(E,null),p(a,Ce),Y&&Y.m(a,null),p(a,Ae),p(a,Q),p(Q,_e),ye||(Se=[se(g,"input",i[59]),se(g,"keyup",function(){It(i[40](i[16],i[22],i[18]))&&i[40](i[16],i[22],i[18]).apply(this,arguments)}),se(W,"input",i[63]),se(W,"keyup",function(){It(i[40](i[17],i[23],i[19]))&&i[40](i[17],i[23],i[19]).apply(this,arguments)}),se(Q,"click",i[67])],ye=!0)},p(we,X){i=we,X[0]&33554432&&J(s,i[25]),i[26]?S?S.p(i,X):(S=Eo(i),S.c(),S.m(e,null)):S&&(S.d(1),S=null),X[0]&1073741824&&h!==(h=i[30]("forgotNewPasswordPassword")+"")&&J(u,h),X[0]&4&&w!==(w=i[2]?"new-password":"off")&&c(g,"autocomplete",w),X[0]&4194304&&g.value!==i[22]&&Ze(g,i[22]),F===(F=U(i))&&ie?ie.p(i,X):(ie.d(1),ie=F(i),ie&&(ie.c(),ie.m(l,v))),i[16]?q?q.p(i,X):(q=Co(i),q.c(),q.m(l,null)):q&&(q.d(1),q=null),X[0]&1073741824&&$!==($=i[30]("forgotNewPasswordConfirmPassword")+"")&&J(H,$),X[0]&8388608&&W.value!==i[23]&&Ze(W,i[23]),I===(I=ae(i))&&D?D.p(i,X):(D.d(1),D=I(i),D&&(D.c(),D.m(E,ne))),i[17]?le?le.p(i,X):(le=Ao(i),le.c(),le.m(E,null)):le&&(le.d(1),le=null),i[24]?Y?Y.p(i,X):(Y=So(i),Y.c(),Y.m(a,Ae)):Y&&(Y.d(1),Y=null),X[0]&1073741824&&pe!==(pe=i[30]("forgotNewPasswordButton")+"")&&J(_e,pe),X[0]&32768&&he!==(he=!i[15])&&(Q.disabled=he)},d(we){we&&k(t),S&&S.d(),i[60](null),ie.d(),q&&q.d(),i[64](null),D.d(),le&&le.d(),Y&&Y.d(),ye=!1,ze(Se)}}}function Vp(i){let t,e,r,s,o,n,a,l,d,h,u,f,m,_,g,w=i[30]("forgotPasswordSuccess")+"",y,v,C,E=i[30]("forgotPasswordSuccessDescription")+"",A;return{c(){t=P("div"),e=P("div"),r=P("div"),s=x("svg"),o=x("defs"),n=x("style"),a=N(".a{fill:#16ce16;}.b,.d{fill:none;}.b{stroke:#16ce16;stroke-width:2px;}.c{stroke:none;}"),l=x("g"),d=x("g"),h=x("path"),u=x("g"),f=x("circle"),m=x("circle"),_=V(),g=P("h4"),y=N(w),v=V(),C=P("p"),A=N(E),c(h,"class","a"),c(h,"d","M16.1,28,0,11.9,3.267,8.633,16.1,21.233,37.333,0,40.6,3.267Z"),c(h,"transform","translate(264.272 482.563)"),c(d,"transform","translate(-7360.574 8503.438)"),c(f,"class","c"),c(f,"cx","30"),c(f,"cy","30"),c(f,"r","30"),c(m,"class","d"),c(m,"cx","30"),c(m,"cy","30"),c(m,"r","29"),c(u,"class","b"),c(u,"transform","translate(-7106 8970)"),c(l,"transform","translate(7106 -8970)"),c(s,"xmlns","http://www.w3.org/2000/svg"),c(s,"width","60"),c(s,"height","60"),c(s,"viewBox","0 0 60 60"),c(r,"class","NewPasswordSuccess"),c(r,"part","NewPasswordSuccess"),c(e,"class","FormContent"),c(e,"part","FormContent"),c(t,"class","FormForgotPassword"),c(t,"part","FormForgotPassword")},m($,H){B($,t,H),p(t,e),p(e,r),p(r,s),p(s,o),p(o,n),p(n,a),p(s,l),p(l,d),p(d,h),p(l,u),p(u,f),p(u,m),p(r,_),p(r,g),p(g,y),p(r,v),p(r,C),p(C,A)},p($,H){H[0]&1073741824&&w!==(w=$[30]("forgotPasswordSuccess")+"")&&J(y,w),H[0]&1073741824&&E!==(E=$[30]("forgotPasswordSuccessDescription")+"")&&J(A,E)},d($){$&&k(t)}}}function $p(i){let t,e,r,s,o,n,a,l,d,h=i[30]("goToLogin")+"",u,f,m,_,g,w,y,v,C,E=i[30]("forgotPasswordEmail")+"",A,$,H,fe,G,ve,W,te,ne,Ce,Ae,Q,pe=i[30]("forgotPasswordReset")+"",_e,he,ye,Se,S=i[26]&&To(i),U=i[12]&&Io(i),F=i[6]&&Oo(i);function ie(I,D){return I[28]?Xp:Zp}let q=ie(i),ae=q(i);return{c(){t=P("div"),e=P("div"),r=P("button"),s=x("svg"),o=x("defs"),n=x("style"),a=N(".a{fill:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));}"),l=x("path"),d=V(),u=N(h),f=V(),m=P("h4"),_=N(i[25]),g=V(),S&&S.c(),w=V(),y=P("form"),v=P("div"),C=P("label"),A=N(E),$=N(":"),H=P("span"),H.textContent="*",fe=V(),G=P("input"),ve=V(),U&&U.c(),W=V(),F&&F.c(),te=V(),ae.c(),Ae=V(),Q=P("button"),_e=N(pe),c(l,"class","a"),c(l,"d","M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z"),c(l,"transform","translate(24 24) rotate(180)"),c(s,"xmlns","http://www.w3.org/2000/svg"),c(s,"viewBox","0 0 24 24"),c(r,"class","backButtonForgotPassword"),c(m,"class","FormHeaderTitle"),c(m,"part","FormHeaderTitle"),c(e,"class","FormHeader"),c(H,"class","FormRequired"),c(H,"part","FormRequired"),c(C,"for","ResetPasswordByEmail"),c(G,"type","text"),c(G,"id","ResetPasswordByEmail"),c(v,"class",ne="ResetPasswordByEmail "+(i[12]?"InvalidField":"")),c(v,"part",Ce="ResetPasswordByEmail "+(i[12]?"InvalidField":"")),c(Q,"class","resetPasswordButton"),c(Q,"part","resetPasswordButton"),Q.disabled=he=!i[13],c(y,"class","FormContent"),c(y,"part","FormContent"),c(t,"class","FormForgotPassword")},m(I,D){B(I,t,D),p(t,e),p(e,r),p(r,s),p(s,o),p(o,n),p(n,a),p(s,l),p(r,d),p(r,u),p(e,f),p(e,m),p(m,_),p(e,g),S&&S.m(e,null),p(t,w),p(t,y),p(y,v),p(v,C),p(C,A),p(C,$),p(C,H),p(v,fe),p(v,G),Ze(G,i[8]),p(v,ve),U&&U.m(v,null),p(v,W),F&&F.m(v,null),p(v,te),ae.m(v,null),p(y,Ae),p(y,Q),p(Q,_e),ye||(Se=[se(r,"click",i[53]),se(G,"input",i[54]),se(G,"keyup",i[34]),se(Q,"click",i[58])],ye=!0)},p(I,D){D[0]&1073741824&&h!==(h=I[30]("goToLogin")+"")&&J(u,h),D[0]&33554432&&J(_,I[25]),I[26]?S?S.p(I,D):(S=To(I),S.c(),S.m(e,null)):S&&(S.d(1),S=null),D[0]&1073741824&&E!==(E=I[30]("forgotPasswordEmail")+"")&&J(A,E),D[0]&256&&G.value!==I[8]&&Ze(G,I[8]),I[12]?U?U.p(I,D):(U=Io(I),U.c(),U.m(v,W)):U&&(U.d(1),U=null),I[6]?F?F.p(I,D):(F=Oo(I),F.c(),F.m(v,te)):F&&(F.d(1),F=null),q===(q=ie(I))&&ae?ae.p(I,D):(ae.d(1),ae=q(I),ae&&(ae.c(),ae.m(v,null))),D[0]&4096&&ne!==(ne="ResetPasswordByEmail "+(I[12]?"InvalidField":""))&&c(v,"class",ne),D[0]&4096&&Ce!==(Ce="ResetPasswordByEmail "+(I[12]?"InvalidField":""))&&c(v,"part",Ce),D[0]&1073741824&&pe!==(pe=I[30]("forgotPasswordReset")+"")&&J(_e,pe),D[0]&8192&&he!==(he=!I[13])&&(Q.disabled=he)},d(I){I&&k(t),S&&S.d(),U&&U.d(),F&&F.d(),ae.d(),ye=!1,ze(Se)}}}function Eo(i){let t,e;return{c(){t=P("p"),e=N(i[26]),c(t,"class","FormHeaderSubtitle"),c(t,"part","FormHeaderSubtitle")},m(r,s){B(r,t,s),p(t,e)},p(r,s){s[0]&67108864&&J(e,r[26])},d(r){r&&k(t)}}}function Up(i){let t,e,r,s,o,n,a,l,d,h;return{c(){t=x("svg"),e=x("defs"),r=x("style"),s=N(".a{fill:var(--emw--color-white, #FFFFFF);}"),o=x("g"),n=x("path"),a=x("circle"),c(n,"class","a"),c(n,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),c(n,"transform","translate(0)"),c(a,"class","a"),c(a,"cx","2.779"),c(a,"cy","2.779"),c(a,"r","2.779"),c(a,"transform","translate(20.827 30.303)"),c(o,"transform","translate(-14.185 -27.832)"),c(t,"class",l="TogglePasswordVisibility "+(i[16]?"InvalidToggle":"")),c(t,"xmlns","http://www.w3.org/2000/svg"),c(t,"width","18.843"),c(t,"height","10.5"),c(t,"viewBox","0 0 18.843 10.5")},m(u,f){B(u,t,f),p(t,e),p(e,r),p(r,s),p(t,o),p(o,n),p(o,a),d||(h=se(t,"click",i[62]),d=!0)},p(u,f){f[0]&65536&&l!==(l="TogglePasswordVisibility "+(u[16]?"InvalidToggle":""))&&c(t,"class",l)},d(u){u&&k(t),d=!1,h()}}}function jp(i){let t,e,r,s,o,n,a,l,d,h,u,f,m,_,g,w;return{c(){t=x("svg"),e=x("defs"),r=x("style"),s=N(".a{fill:var(--emw--color-white, #FFFFFF);}"),o=x("g"),n=x("circle"),a=x("g"),l=x("path"),d=x("path"),h=x("g"),u=x("path"),f=x("path"),m=x("rect"),c(n,"class","a"),c(n,"cx","0.05"),c(n,"cy","0.05"),c(n,"r","0.05"),c(n,"transform","translate(121.017 31.148)"),c(l,"class","a"),c(l,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),c(l,"transform","translate(-142.164 -39.123)"),c(d,"class","a"),c(d,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),c(d,"transform","translate(-136.413 -42.068)"),c(a,"transform","translate(117.499 27.37)"),c(u,"class","a"),c(u,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),c(u,"transform","translate(-110.856 -33.157)"),c(f,"class","a"),c(f,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),c(f,"transform","translate(-130.743 -29.617)"),c(h,"transform","translate(110.856 24.899)"),c(m,"class","a"),c(m,"width","0.972"),c(m,"height","15.861"),c(m,"rx","0.486"),c(m,"transform","translate(114.827 23.858) rotate(-39.315)"),c(o,"transform","translate(-110.856 -23.242)"),c(t,"class",_="TogglePasswordVisibility "+(i[16]?"InvalidToggle":"")),c(t,"xmlns","http://www.w3.org/2000/svg"),c(t,"width","18.844"),c(t,"height","12.887"),c(t,"viewBox","0 0 18.844 12.887")},m(y,v){B(y,t,v),p(t,e),p(e,r),p(r,s),p(t,o),p(o,n),p(o,a),p(a,l),p(a,d),p(o,h),p(h,u),p(h,f),p(o,m),g||(w=se(t,"click",i[61]),g=!0)},p(y,v){v[0]&65536&&_!==(_="TogglePasswordVisibility "+(y[16]?"InvalidToggle":""))&&c(t,"class",_)},d(y){y&&k(t),g=!1,w()}}}function Co(i){let t;function e(o,n){return o[1]=="true"?Wp:Gp}let r=e(i),s=r(i);return{c(){s.c(),t=Fr()},m(o,n){s.m(o,n),B(o,t,n)},p(o,n){r===(r=e(o))&&s?s.p(o,n):(s.d(1),s=r(o),s&&(s.c(),s.m(t.parentNode,t)))},d(o){o&&k(t),s.d(o)}}}function Gp(i){let t,e=i[30]("forgotNewPasswordPasswordError")+"",r;return{c(){t=P("p"),r=N(e),c(t,"class","InvalidInput"),c(t,"part","InvalidInput")},m(s,o){B(s,t,o),p(t,r)},p(s,o){o[0]&1073741824&&e!==(e=s[30]("forgotNewPasswordPasswordError")+"")&&J(r,e)},d(s){s&&k(t)}}}function Wp(i){let t,e=i[30]("simplePasswordError")+"",r;return{c(){t=P("p"),r=N(e),c(t,"class","InvalidInput"),c(t,"part","InvalidInput")},m(s,o){B(s,t,o),p(t,r)},p(s,o){o[0]&1073741824&&e!==(e=s[30]("simplePasswordError")+"")&&J(r,e)},d(s){s&&k(t)}}}function qp(i){let t,e,r,s,o,n,a,l,d,h;return{c(){t=x("svg"),e=x("defs"),r=x("style"),s=N(".a{fill:var(--emw--color-white, #FFFFFF);}"),o=x("g"),n=x("path"),a=x("circle"),c(n,"class","a"),c(n,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),c(n,"transform","translate(0)"),c(a,"class","a"),c(a,"cx","2.779"),c(a,"cy","2.779"),c(a,"r","2.779"),c(a,"transform","translate(20.827 30.303)"),c(o,"transform","translate(-14.185 -27.832)"),c(t,"class",l="TogglePasswordVisibility "+(i[17]?"InvalidToggle":"")),c(t,"xmlns","http://www.w3.org/2000/svg"),c(t,"width","18.843"),c(t,"height","10.5"),c(t,"viewBox","0 0 18.843 10.5")},m(u,f){B(u,t,f),p(t,e),p(e,r),p(r,s),p(t,o),p(o,n),p(o,a),d||(h=se(t,"click",i[66]),d=!0)},p(u,f){f[0]&131072&&l!==(l="TogglePasswordVisibility "+(u[17]?"InvalidToggle":""))&&c(t,"class",l)},d(u){u&&k(t),d=!1,h()}}}function Yp(i){let t,e,r,s,o,n,a,l,d,h,u,f,m,_,g,w;return{c(){t=x("svg"),e=x("defs"),r=x("style"),s=N(".a{fill:var(--emw--color-white, #FFFFFF);}"),o=x("g"),n=x("circle"),a=x("g"),l=x("path"),d=x("path"),h=x("g"),u=x("path"),f=x("path"),m=x("rect"),c(n,"class","a"),c(n,"cx","0.05"),c(n,"cy","0.05"),c(n,"r","0.05"),c(n,"transform","translate(121.017 31.148)"),c(l,"class","a"),c(l,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),c(l,"transform","translate(-142.164 -39.123)"),c(d,"class","a"),c(d,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),c(d,"transform","translate(-136.413 -42.068)"),c(a,"transform","translate(117.499 27.37)"),c(u,"class","a"),c(u,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),c(u,"transform","translate(-110.856 -33.157)"),c(f,"class","a"),c(f,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),c(f,"transform","translate(-130.743 -29.617)"),c(h,"transform","translate(110.856 24.899)"),c(m,"class","a"),c(m,"width","0.972"),c(m,"height","15.861"),c(m,"rx","0.486"),c(m,"transform","translate(114.827 23.858) rotate(-39.315)"),c(o,"transform","translate(-110.856 -23.242)"),c(t,"class",_="TogglePasswordVisibility "+(i[17]?"InvalidToggle":"")),c(t,"xmlns","http://www.w3.org/2000/svg"),c(t,"width","18.844"),c(t,"height","12.887"),c(t,"viewBox","0 0 18.844 12.887")},m(y,v){B(y,t,v),p(t,e),p(e,r),p(r,s),p(t,o),p(o,n),p(o,a),p(a,l),p(a,d),p(o,h),p(h,u),p(h,f),p(o,m),g||(w=se(t,"click",i[65]),g=!0)},p(y,v){v[0]&131072&&_!==(_="TogglePasswordVisibility "+(y[17]?"InvalidToggle":""))&&c(t,"class",_)},d(y){y&&k(t),g=!1,w()}}}function Ao(i){let t,e=i[30]("forgotNewPasswordConfirmPasswordError")+"",r;return{c(){t=P("p"),r=N(e),c(t,"class","InvalidInput"),c(t,"part","InvalidInput")},m(s,o){B(s,t,o),p(t,r)},p(s,o){o[0]&1073741824&&e!==(e=s[30]("forgotNewPasswordConfirmPasswordError")+"")&&J(r,e)},d(s){s&&k(t)}}}function So(i){let t,e;return{c(){t=P("p"),e=N(i[14]),c(t,"class","ErrorMessage"),c(t,"part","ErrorMessage")},m(r,s){B(r,t,s),p(t,e)},p(r,s){s[0]&16384&&J(e,r[14])},d(r){r&&k(t)}}}function To(i){let t,e;return{c(){t=P("p"),e=N(i[26]),c(t,"class","FormHeaderSubtitle"),c(t,"part","FormHeaderSubtitle")},m(r,s){B(r,t,s),p(t,e)},p(r,s){s[0]&67108864&&J(e,r[26])},d(r){r&&k(t)}}}function Io(i){let t,e=i[30]("forgotPasswordEmailInputError")+"",r;return{c(){t=P("p"),r=N(e),c(t,"class","ForgotPasswordError"),c(t,"part","ForgotPasswordError")},m(s,o){B(s,t,o),p(t,r)},p(s,o){o[0]&1073741824&&e!==(e=s[30]("forgotPasswordEmailInputError")+"")&&J(r,e)},d(s){s&&k(t)}}}function Oo(i){let t,e=i[30]("forgotPasswordEmailError")+"",r;return{c(){t=P("p"),r=N(e),c(t,"class","ForgotPasswordError"),c(t,"part","ForgotPasswordError")},m(s,o){B(s,t,o),p(t,r)},p(s,o){o[0]&1073741824&&e!==(e=s[30]("forgotPasswordEmailError")+"")&&J(r,e)},d(s){s&&k(t)}}}function Xp(i){let t,e,r=i[30](i[28])+"",s;return{c(){t=P("div"),e=P("span"),s=N(r),c(t,"class","dobFormatError")},m(o,n){B(o,t,n),p(t,e),p(e,s)},p(o,n){n[0]&1342177280&&r!==(r=o[30](o[28])+"")&&J(s,r)},d(o){o&&k(t)}}}function Zp(i){let t,e,r=_s(i[27]),s=[];for(let o=0;o<r.length;o+=1)s[o]=No(xo(i,r,o));return{c(){t=P("div");for(let o=0;o<s.length;o+=1)s[o].c();c(t,"class",e="DobContainer "+(i[11]?"Mobile":""))},m(o,n){B(o,t,n);for(let a=0;a<s.length;a+=1)s[a]&&s[a].m(t,null)},p(o,n){if(n[0]&1744830464|n[1]&135){r=_s(o[27]);let a;for(a=0;a<r.length;a+=1){const l=xo(o,r,a);s[a]?s[a].p(l,n):(s[a]=No(l),s[a].c(),s[a].m(t,null))}for(;a<s.length;a+=1)s[a].d(1);s.length=r.length}n[0]&2048&&e!==(e="DobContainer "+(o[11]?"Mobile":""))&&c(t,"class",e)},d(o){o&&k(t),al(s,o)}}}function Jp(i){let t,e,r,s,o;return{c(){t=P("vaadin-combo-box"),K(t,"class","datePickerBox"),K(t,"label",e=i[30]("year")),K(t,"items",i[31]),K(t,"disabled",r=i[29].isYearDisabled)},m(n,a){B(n,t,a),s||(o=se(t,"change",i[57]),s=!0)},p(n,a){a[0]&1073741824&&e!==(e=n[30]("year"))&&K(t,"label",e),a[0]&536870912&&r!==(r=n[29].isYearDisabled)&&K(t,"disabled",r)},d(n){n&&k(t),s=!1,o()}}}function Qp(i){let t,e,r,s,o;return{c(){t=P("vaadin-combo-box"),K(t,"class","datePickerBox"),K(t,"label",e=i[30]("month")),K(t,"items",Object.keys(i[32])),K(t,"disabled",r=i[29].isMonthDisabled)},m(n,a){B(n,t,a),s||(o=se(t,"change",i[56]),s=!0)},p(n,a){a[0]&1073741824&&e!==(e=n[30]("month"))&&K(t,"label",e),a[0]&536870912&&r!==(r=n[29].isMonthDisabled)&&K(t,"disabled",r)},d(n){n&&k(t),s=!1,o()}}}function Kp(i){let t,e,r,s,o;return{c(){t=P("vaadin-combo-box"),K(t,"class","datePickerBox"),K(t,"label",e=i[30]("day")),K(t,"items",i[33]),K(t,"disabled",r=i[29].isDayDisabled)},m(n,a){B(n,t,a),s||(o=se(t,"change",i[55]),s=!0)},p(n,a){a[0]&1073741824&&e!==(e=n[30]("day"))&&K(t,"label",e),a[0]&536870912&&r!==(r=n[29].isDayDisabled)&&K(t,"disabled",r)},d(n){n&&k(t),s=!1,o()}}}function No(i){let t;function e(o,n){if(o[88]==="dd")return Kp;if(o[88]==="mm")return Qp;if(o[88]==="yyyy")return Jp}let r=e(i),s=r&&r(i);return{c(){s&&s.c(),t=Fr()},m(o,n){s&&s.m(o,n),B(o,t,n)},p(o,n){r===(r=e(o))&&s?s.p(o,n):(s&&s.d(1),s=r&&r(o),s&&(s.c(),s.m(t.parentNode,t)))},d(o){o&&k(t),s&&s.d(o)}}}function em(i){let t,e,r,s,o,n=i[0]&&Po(i);function a(h,u){return h[4]?Fp:Rp}let l=a(i),d=l(i);return{c(){n&&n.c(),t=Fr(),e=V(),r=P("div"),s=V(),o=P("div"),d.c(),c(r,"class","g-recaptcha"),c(r,"data-sitekey",i[0]),c(o,"class","GeneralPlayerForgotPasswordForm")},m(h,u){n&&n.m(document.head,null),p(document.head,t),B(h,e,u),B(h,r,u),B(h,s,u),B(h,o,u),d.m(o,null),i[69](o)},p(h,u){h[0]?n?n.p(h,u):(n=Po(h),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null),u[0]&1&&c(r,"data-sitekey",h[0]),l===(l=a(h))&&d?d.p(h,u):(d.d(1),d=l(h),d&&(d.c(),d.m(o,null)))},i:Pe,o:Pe,d(h){h&&(k(e),k(r),k(s),k(o)),n&&n.d(h),k(t),d.d(),i[69](null)}}}function tm(i,t,e){let r;rl(i,Ah,b=>e(30,r=b));let{endpoint:s=""}=t,{forgotpasswordkey:o=""}=t,{captchakey:n=""}=t,{lang:a="en"}=t,{simplepasswordvalidation:l="false"}=t,{mbsource:d}=t,{clientstyling:h=""}=t,{clientstylingurl:u=""}=t,{translationurl:f=""}=t,{savecredentials:m=""}=t,{hastosetpass:_="false"}=t,{passwordregex:g=""}=t,{dobformat:w=""}=t,{mindobyears:y=18}=t,{maxdobyears:v=100}=t,C=!1,E=!0,A=!1,$=!1,H="",fe=!1,G=!1,ve=!1,W=!1,te=!1,ne=window.navigator.userAgent,Ce="",Ae=!1,Q=!1,pe=!1,_e,he,ye=!1,Se=!1,S="",U="",F,ie=!1,q,ae,I=Array.from({length:v-y+1},(b,Z)=>new Date().getFullYear()-y-Z),D={January:"01",February:"02",March:"03",April:"04",May:"05",June:"06",July:"07",August:"08",September:"09",October:"10",November:"11",December:"12"},le=Array.from({length:31},(b,Z)=>Z+1),Y=[],we="",X=!0,ge={isDayDisabled:!1,isMonthDisabled:!1,isYearDisabled:!1},Pa=["mm/dd/yyyy","dd/mm/yyyy","yyyy/mm/dd"],pt={dd:null,mm:null,yyyy:null},ls="";Th({withLocale:"en",translations:{}});const Ea=()=>{fetch(f).then(Z=>Z.json()).then(Z=>{Object.keys(Z).forEach(ue=>{Rs(ue,Z[ue])})}).catch(Z=>{console.log(Z)})};Object.keys(Fs).forEach(b=>{Rs(b,Fs[b])});const jt={email:/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,password:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/},Ca=()=>{e(13,te=w?!W&&!X:!W)},Aa=b=>!!(jt.email.test(b)&&b.length<=100),ds=()=>{e(12,W=!Aa(H)),Ca()},mt=b=>{switch(b){case"userNewPassword":e(20,ye=!ye),e(18,_e.type=ye?"text":"password",_e);break;case"userConfirmPassword":e(21,Se=!Se),e(19,he.type=Se?"text":"password",he);break}},Ni=b=>{switch(b){case"ToEmailSuccess":e(6,A=!1),e(5,E=!1),e(7,$=!0);break;case"ToReset":e(5,E=!1),e(9,fe=!0);break;case"ToSuccess":e(9,fe=!1),e(10,G=!0);break}},ki=()=>{window.postMessage({type:"ToLogin"},window.location.href)},Sa=()=>new Promise((b,Z)=>{grecaptcha.ready(()=>{grecaptcha.execute(n,{action:"submit"}).then(ue=>{b(ue)})})}),hs=b=>{b.preventDefault(),e(4,C=!0),Sa().then(Z=>{let ue=new URL(`${s}/v1/player/resetpassword`),_t={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","g-recaptcha-response":Z}};ue.searchParams.append("email",H),w&&ue.searchParams.append("birthDate",ls),fetch(ue,_t).then(Ue=>{Ue.status==200?Ni("ToEmailSuccess"):e(6,A=!0)}).finally(()=>{e(4,C=!1)})})},Ta=()=>{if(e(41,w=w.toLowerCase()),!Pa.includes(w))return e(28,we="dobFormatError");e(27,Y=w.split("/")),e(29,ge.isDayDisabled=Y[0]!=="dd",ge),e(29,ge.isMonthDisabled=Y[0]!=="mm",ge),e(29,ge.isYearDisabled=Y[0]!=="yyyy",ge)},Gt=(b,Z)=>{pt[Z]=b.target.value,X=Object.values(pt).some(ue=>!ue),Y.forEach((ue,_t)=>{if(Z===ue)switch(Y[_t+1]){case"dd":e(29,ge.isDayDisabled=!1,ge);case"mm":e(29,ge.isMonthDisabled=!1,ge);break;case"yyyy":e(29,ge.isYearDisabled=!1,ge);break}}),X||(ls=`${pt.yyyy}-${D[pt.mm]}-${pt.dd}`),ds()},us=b=>{b.preventDefault();let Z=new URL(`${s}/v1/player/ResetPasswordByHashKey`),_t={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({hashKey:o,plainTextPassword:S})};fetch(Z,_t).then(Ue=>(Ue.status==200?(e(24,ie=!1),Ni("ToSuccess")):e(24,ie=!0),Ue.json())).then(Ue=>{e(14,Ce=Ue.error)})},Ia=()=>{o&&o.length>0&&Ni("ToReset")},Oa=()=>{!Q&&!pe&&S&&U?e(15,Ae=!0):e(15,Ae=!1)},Li=b=>(l=="true"&&(jt.password=/^(?!.* ).{8,20}$/),!!jt.password.test(b)),Na=(b,Z,ue)=>{ue.id==="new-password"?(e(16,Q=!Li(Z)),U&&e(17,pe=S===U?!Li(Z):!0)):e(17,pe=S===U?!Li(Z):!0),Oa()},ka=()=>{Ih(a)},La=()=>{e(25,q=r(_==="true"?"hasToSetPassTitle":"forgotPasswordTitle")),e(26,ae=_==="true"?r("resetPasswordSubtitle"):"")};ul(()=>qt(this,null,function*(){return Sh(ne)&&e(11,ve=!0),()=>{}}));const Ma=()=>ki();function Ba(){H=this.value,e(8,H)}const Ha=b=>Gt(b,"dd"),Ra=b=>Gt(b,"mm"),Fa=b=>Gt(b,"yyyy"),Da=b=>hs(b);function za(){S=this.value,e(22,S)}function Va(b){Ct[b?"unshift":"push"](()=>{_e=b,e(18,_e)})}const $a=()=>mt("userNewPassword"),Ua=()=>mt("userNewPassword");function ja(){U=this.value,e(23,U)}function Ga(b){Ct[b?"unshift":"push"](()=>{he=b,e(19,he)})}const Wa=()=>mt("userConfirmPassword"),qa=()=>mt("userConfirmPassword"),Ya=b=>us(b),Xa=()=>ki();function Za(b){Ct[b?"unshift":"push"](()=>{F=b,e(3,F)})}return i.$$set=b=>{"endpoint"in b&&e(42,s=b.endpoint),"forgotpasswordkey"in b&&e(43,o=b.forgotpasswordkey),"captchakey"in b&&e(0,n=b.captchakey),"lang"in b&&e(44,a=b.lang),"simplepasswordvalidation"in b&&e(1,l=b.simplepasswordvalidation),"mbsource"in b&&e(45,d=b.mbsource),"clientstyling"in b&&e(46,h=b.clientstyling),"clientstylingurl"in b&&e(47,u=b.clientstylingurl),"translationurl"in b&&e(48,f=b.translationurl),"savecredentials"in b&&e(2,m=b.savecredentials),"hastosetpass"in b&&e(49,_=b.hastosetpass),"passwordregex"in b&&e(50,g=b.passwordregex),"dobformat"in b&&e(41,w=b.dobformat),"mindobyears"in b&&e(51,y=b.mindobyears),"maxdobyears"in b&&e(52,v=b.maxdobyears)},i.$$.update=()=>{i.$$.dirty[1]&4096&&o&&Ia(),i.$$.dirty[1]&8192&&a&&ka(),i.$$.dirty[0]&8|i.$$.dirty[1]&32768&&h&&F&&Oh(F,h),i.$$.dirty[0]&8|i.$$.dirty[1]&65536&&u&&F&&Nh(F,u),i.$$.dirty[0]&8|i.$$.dirty[1]&16384&&d&&F&&kh(F,`${d}.Style`),i.$$.dirty[1]&131072&&f&&Ea(),i.$$.dirty[1]&270336&&_&&a&&La(),i.$$.dirty[1]&524288&&g&&(jt.password=new RegExp(g)),i.$$.dirty[1]&1024&&w&&Ta()},[n,l,m,F,C,E,A,$,H,fe,G,ve,W,te,Ce,Ae,Q,pe,_e,he,ye,Se,S,U,ie,q,ae,Y,we,ge,r,I,D,le,ds,mt,ki,hs,Gt,us,Na,w,s,o,a,d,h,u,f,_,g,y,v,Ma,Ba,Ha,Ra,Fa,Da,za,Va,$a,Ua,ja,Ga,Wa,qa,Ya,Xa,Za]}class xa extends Pl{constructor(t){super(),wl(this,t,tm,em,zo,{endpoint:42,forgotpasswordkey:43,captchakey:0,lang:44,simplepasswordvalidation:1,mbsource:45,clientstyling:46,clientstylingurl:47,translationurl:48,savecredentials:2,hastosetpass:49,passwordregex:50,dobformat:41,mindobyears:51,maxdobyears:52},Hp,[-1,-1,-1])}get endpoint(){return this.$$.ctx[42]}set endpoint(t){this.$$set({endpoint:t}),re()}get forgotpasswordkey(){return this.$$.ctx[43]}set forgotpasswordkey(t){this.$$set({forgotpasswordkey:t}),re()}get captchakey(){return this.$$.ctx[0]}set captchakey(t){this.$$set({captchakey:t}),re()}get lang(){return this.$$.ctx[44]}set lang(t){this.$$set({lang:t}),re()}get simplepasswordvalidation(){return this.$$.ctx[1]}set simplepasswordvalidation(t){this.$$set({simplepasswordvalidation:t}),re()}get mbsource(){return this.$$.ctx[45]}set mbsource(t){this.$$set({mbsource:t}),re()}get clientstyling(){return this.$$.ctx[46]}set clientstyling(t){this.$$set({clientstyling:t}),re()}get clientstylingurl(){return this.$$.ctx[47]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),re()}get translationurl(){return this.$$.ctx[48]}set translationurl(t){this.$$set({translationurl:t}),re()}get savecredentials(){return this.$$.ctx[2]}set savecredentials(t){this.$$set({savecredentials:t}),re()}get hastosetpass(){return this.$$.ctx[49]}set hastosetpass(t){this.$$set({hastosetpass:t}),re()}get passwordregex(){return this.$$.ctx[50]}set passwordregex(t){this.$$set({passwordregex:t}),re()}get dobformat(){return this.$$.ctx[41]}set dobformat(t){this.$$set({dobformat:t}),re()}get mindobyears(){return this.$$.ctx[51]}set mindobyears(t){this.$$set({mindobyears:t}),re()}get maxdobyears(){return this.$$.ctx[52]}set maxdobyears(t){this.$$set({maxdobyears:t}),re()}}xl(xa,{endpoint:{},forgotpasswordkey:{},captchakey:{},lang:{},simplepasswordvalidation:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{},savecredentials:{},hastosetpass:{},passwordregex:{},dobformat:{},mindobyears:{},maxdobyears:{}},[],[],!0);exports.default=xa;
2685
+ `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new xp(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t})),this.addController(new Pp(this.inputElement,this._labelController)),this._tooltipController=new sp(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(t=>!t.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(t){t.stopPropagation(),super._onClearButtonClick(t)}_onHostClick(t){const e=t.composedPath();(e.includes(this._labelNode)||e.includes(this._positionTarget))&&super._onHostClick(t)}}ut(Bp);function Rp(i){nl(i,"svelte-8ll60n",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}input,select{font-family:inherit}.GeneralPlayerForgotPasswordForm{height:auto}.GeneralPlayerForgotPasswordForm .ModalLoaderWrapper{display:flex;height:100%;align-items:center}.GeneralPlayerForgotPasswordForm .ModalLoader{display:block;width:80px;height:80px;margin:0 auto}.GeneralPlayerForgotPasswordForm .ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:Loader 1.2s linear infinite}.backButtonForgotPassword{display:inline-flex;color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));height:24px;line-height:24px;border-radius:var(--emw--border-radius-medium, 15px);border:none;background:transparent;padding:0;text-transform:uppercase;font-size:var(--emw--font-size-medium, 16px);cursor:pointer;margin-bottom:30px}.backButtonForgotPassword svg{width:24px;height:24px;margin-right:20px;fill:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.FormContainer{width:100%}.FormForgotPassword{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #F9F8F8))}.FormHeaderTitle{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));font-size:var(--emw--font-size-large, 20px);font-weight:var(--emw--font-weight-light, 300);padding:0;text-transform:uppercase;margin:0}.FormHeaderSubtitle{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));font-weight:var(--emw--font-weight-light, 300);padding-top:14px}.FormRequired{color:var(--emw--color-error, #ed0909)}.ForgotPasswordError{color:var(--emw--color-error, #ed0909);font-size:10px;line-height:10px;margin-top:10px}.FormContent{padding-top:20px}.NewPasswordSuccess{display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:space-around;align-items:center}.NewPasswordSuccess h4{margin-top:10px;color:var(--emw--color-valid, var(--emw--color-valid, #48952a));font-size:28px;font-weight:500;padding:0;text-transform:uppercase}.NewPasswordSuccess p{text-align:center;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));text-transform:initial;padding:15px 0;margin-bottom:110px}.TogglePasswordVisibility{height:19px;position:absolute;right:8px;top:34px;cursor:pointer}.TogglePasswordVisibility.InvalidToggle path,.TogglePasswordVisibility.InvalidToggle circle,.TogglePasswordVisibility.InvalidToggle rect{fill:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect{fill:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444))}.ResetPasswordByEmail,.NewPassword,.ConfirmPassword{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));display:flex;flex-direction:column;padding-bottom:20px;position:relative}.ResetPasswordByEmail .dobFormatError,.NewPassword .dobFormatError,.ConfirmPassword .dobFormatError{padding:20px;width:100%;text-align:center;color:var(--emw--color-error, #ed0909)}.ResetPasswordByEmail .DobContainer,.NewPassword .DobContainer,.ConfirmPassword .DobContainer{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.ResetPasswordByEmail .DobContainer .datePickerBox,.NewPassword .DobContainer .datePickerBox,.ConfirmPassword .DobContainer .datePickerBox{width:100%;padding:10px}.ResetPasswordByEmail .DobContainer .datePickerBox input,.NewPassword .DobContainer .datePickerBox input,.ConfirmPassword .DobContainer .datePickerBox input{border:0px;background:transparent}.ResetPasswordByEmail .DobContainer.Mobile,.NewPassword .DobContainer.Mobile,.ConfirmPassword .DobContainer.Mobile{flex-direction:column}.ResetPasswordByEmail label,.NewPassword label,.ConfirmPassword label{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-light, 300);padding-bottom:5px}.ResetPasswordByEmail input,.NewPassword input,.ConfirmPassword input{width:100%;height:44px;border-radius:var(--emw--border-radius-medium, 15px);border:1px solid var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));padding:5px;font-size:var(--emw--font-size-small, 14px);box-sizing:border-box;padding:5px 15px;font-size:var(--emw--font-size-medium, 16px);line-height:18px}.ResetPasswordByEmail input:focus,.NewPassword input:focus,.ConfirmPassword input:focus{border:2px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));outline:none}.ResetPasswordByEmail.InvalidField input,.NewPassword.InvalidField input,.ConfirmPassword.InvalidField input{border:1px solid var(--emw--color-error, #ed0909);background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444))}.resetPasswordButton{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);border-radius:var(--emw--button-border-radius, 50px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF));font-family:var(--emw--button-typography);width:100%;height:60px;padding:0;text-transform:uppercase;font-size:var(--emw--font-size-medium, 16px);cursor:pointer}.resetPasswordButton[disabled]{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);cursor:not-allowed}.ResetPasswordByEmail,.NewPassword,.ConfirmPassword{padding-bottom:30px}.ResetPasswordByEmail .InvalidInput{bottom:-3px}.InvalidInput{color:var(--emw--color-error, #ed0909);font-size:10px;position:absolute;bottom:10px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:var(--emw--font-size-x-small, 12px);color:var(--emw--color-error, #ed0909)}.FormForgotPassword{padding:50px}.FormMobileContainer{height:100%;background-color:var(--emw--color-gray-50, #F9F8F8)}.FormMobileContainer .resetPasswordButton,.FormMobileContainer .ResetPasswordByEmail input{max-width:unset;border-radius:var(--emw--border-radius-medium, 15px)}.FormMobileContainer{height:100%}.FormMobileContainer .FormForgotPassword{padding:40px 20px}.FormMobileContainer .resetPasswordButton,.FormMobileContainer .UserContainer input{max-width:unset}input::-ms-reveal,input::-ms-clear{display:none}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}function Eo(i,t,e){const r=i.slice();return r[88]=t[e],r}function Co(i){let t,e;return{c(){t=P("script"),_s(t.src,e="//www.google.com/recaptcha/api.js?render="+i[0])||c(t,"src",e),t.async=!0,t.defer=!0},m(r,s){B(r,t,s)},p(r,s){s[0]&1&&!_s(t.src,e="//www.google.com/recaptcha/api.js?render="+r[0])&&c(t,"src",e)},d(r){r&&k(t)}}}function Dp(i){let t,e;function r(n,a){if(n[5])return $p;if(n[7])return Vp;if(n[9])return zp;if(n[10])return Fp}let s=r(i),o=s&&s(i);return{c(){t=P("div"),o&&o.c(),c(t,"class",e="FormContainer "+(i[11]?"FormMobileContainer":""))},m(n,a){B(n,t,a),o&&o.m(t,null)},p(n,a){s===(s=r(n))&&o?o.p(n,a):(o&&o.d(1),o=s&&s(n),o&&(o.c(),o.m(t,null))),a[0]&2048&&e!==(e="FormContainer "+(n[11]?"FormMobileContainer":""))&&c(t,"class",e)},d(n){n&&k(t),o&&o.d()}}}function Hp(i){let t;return{c(){t=P("div"),t.innerHTML='<div class="ModalLoader"></div>',c(t,"class","ModalLoaderWrapper")},m(e,r){B(e,t,r)},p:Pe,d(e){e&&k(t)}}}function Fp(i){let t,e,r,s,o,n,a,l,d,h,u,f,m,_,g,w=i[30]("forgotChangePasswordTitle")+"",y,v,C,E=i[30]("forgotChangePasswordDescription")+"",A,$,R,fe=i[30]("forgotChangePasswordLogin")+"",G,ve,W;return{c(){t=P("div"),e=P("div"),r=P("div"),s=x("svg"),o=x("defs"),n=x("style"),a=N(".a{fill:var(--emw--color-valid, var(--emw--color-valid, #48952a));}.b,.d{fill:none;}.b{stroke:var(--emw--color-valid, var(--emw--color-green, #48952a));stroke-width:2px;}.c{stroke:none;}"),l=x("g"),d=x("g"),h=x("path"),u=x("g"),f=x("circle"),m=x("circle"),_=V(),g=P("h4"),y=N(w),v=V(),C=P("p"),A=N(E),$=V(),R=P("button"),G=N(fe),c(h,"class","a"),c(h,"d","M16.1,28,0,11.9,3.267,8.633,16.1,21.233,37.333,0,40.6,3.267Z"),c(h,"transform","translate(264.272 482.563)"),c(d,"transform","translate(-7360.574 8503.438)"),c(f,"class","c"),c(f,"cx","30"),c(f,"cy","30"),c(f,"r","30"),c(m,"class","d"),c(m,"cx","30"),c(m,"cy","30"),c(m,"r","29"),c(u,"class","b"),c(u,"transform","translate(-7106 8970)"),c(l,"transform","translate(7106 -8970)"),c(s,"xmlns","http://www.w3.org/2000/svg"),c(s,"width","60"),c(s,"height","60"),c(s,"viewBox","0 0 60 60"),c(r,"class","NewPasswordSuccess"),c(r,"part","NewPasswordSuccess"),c(R,"class","resetPasswordButton"),c(R,"part","resetPasswordButton"),c(e,"class","FormContent"),c(e,"part","FormContent"),c(t,"class","FormForgotPassword"),c(t,"part","FormForgotPassword")},m(te,ne){B(te,t,ne),p(t,e),p(e,r),p(r,s),p(s,o),p(o,n),p(n,a),p(s,l),p(l,d),p(d,h),p(l,u),p(u,f),p(u,m),p(r,_),p(r,g),p(g,y),p(r,v),p(r,C),p(C,A),p(e,$),p(e,R),p(R,G),ve||(W=se(R,"click",i[68]),ve=!0)},p(te,ne){ne[0]&1073741824&&w!==(w=te[30]("forgotChangePasswordTitle")+"")&&J(y,w),ne[0]&1073741824&&E!==(E=te[30]("forgotChangePasswordDescription")+"")&&J(A,E),ne[0]&1073741824&&fe!==(fe=te[30]("forgotChangePasswordLogin")+"")&&J(G,fe)},d(te){te&&k(t),ve=!1,W()}}}function zp(i){let t,e,r,s,o,n,a,l,d,h=i[30]("forgotNewPasswordPassword")+"",u,f,m,_,g,w,y,v,C,E,A,$=i[30]("forgotNewPasswordConfirmPassword")+"",R,fe,G,ve,W,te,ne,Ce,Ae,K,pe=i[30]("forgotNewPasswordButton")+"",_e,he,ye,Se,S=i[26]&&Ao(i);function U(we,Z){return we[20]?jp:Up}let H=U(i),ie=H(i),q=i[16]&&So(i);function ae(we,Z){return we[21]?Yp:qp}let I=ae(i),F=I(i),le=i[17]&&To(i),Y=i[24]&&Io(i);return{c(){t=P("div"),e=P("div"),r=P("h4"),s=N(i[25]),o=V(),S&&S.c(),n=V(),a=P("form"),l=P("div"),d=P("label"),u=N(h),f=N(":"),m=P("span"),m.textContent="*",_=V(),g=P("input"),y=V(),ie.c(),v=V(),q&&q.c(),C=V(),E=P("div"),A=P("label"),R=N($),fe=N(":"),G=P("span"),G.textContent="*",ve=V(),W=P("input"),te=V(),F.c(),ne=V(),le&&le.c(),Ce=V(),Y&&Y.c(),Ae=V(),K=P("button"),_e=N(pe),c(r,"class","FormHeaderTitle"),c(r,"part","FormHeaderTitle"),c(e,"class","FormHeader"),c(e,"part","FormHeader"),c(m,"class","FormRequired"),c(m,"part","FormRequired"),c(d,"for","NewPassword"),c(g,"type","password"),c(g,"id","new-password"),c(g,"autocomplete",w=i[2]?"new-password":"off"),c(l,"class","NewPassword"),c(l,"part","NewPassword"),c(G,"class","FormRequired"),c(G,"part","FormRequired"),c(A,"for","RetypePassword"),c(W,"type","password"),c(W,"id","RetypePassword"),c(E,"class","ConfirmPassword"),c(E,"part","ConfirmPassword"),c(K,"class","resetPasswordButton"),c(K,"part","resetPasswordButton"),K.disabled=he=!i[15],c(a,"class","FormContent"),c(a,"part","FormContent"),c(t,"class","FormForgotPassword test"),c(t,"part","FormForgotPassword test")},m(we,Z){B(we,t,Z),p(t,e),p(e,r),p(r,s),p(e,o),S&&S.m(e,null),p(t,n),p(t,a),p(a,l),p(l,d),p(d,u),p(d,f),p(d,m),p(l,_),p(l,g),Ze(g,i[22]),i[60](g),p(l,y),ie.m(l,null),p(l,v),q&&q.m(l,null),p(a,C),p(a,E),p(E,A),p(A,R),p(A,fe),p(A,G),p(E,ve),p(E,W),Ze(W,i[23]),i[64](W),p(E,te),F.m(E,null),p(E,ne),le&&le.m(E,null),p(a,Ce),Y&&Y.m(a,null),p(a,Ae),p(a,K),p(K,_e),ye||(Se=[se(g,"input",i[59]),se(g,"keyup",function(){Tt(i[40](i[16],i[22],i[18]))&&i[40](i[16],i[22],i[18]).apply(this,arguments)}),se(W,"input",i[63]),se(W,"keyup",function(){Tt(i[40](i[17],i[23],i[19]))&&i[40](i[17],i[23],i[19]).apply(this,arguments)}),se(K,"click",i[67])],ye=!0)},p(we,Z){i=we,Z[0]&33554432&&J(s,i[25]),i[26]?S?S.p(i,Z):(S=Ao(i),S.c(),S.m(e,null)):S&&(S.d(1),S=null),Z[0]&1073741824&&h!==(h=i[30]("forgotNewPasswordPassword")+"")&&J(u,h),Z[0]&4&&w!==(w=i[2]?"new-password":"off")&&c(g,"autocomplete",w),Z[0]&4194304&&g.value!==i[22]&&Ze(g,i[22]),H===(H=U(i))&&ie?ie.p(i,Z):(ie.d(1),ie=H(i),ie&&(ie.c(),ie.m(l,v))),i[16]?q?q.p(i,Z):(q=So(i),q.c(),q.m(l,null)):q&&(q.d(1),q=null),Z[0]&1073741824&&$!==($=i[30]("forgotNewPasswordConfirmPassword")+"")&&J(R,$),Z[0]&8388608&&W.value!==i[23]&&Ze(W,i[23]),I===(I=ae(i))&&F?F.p(i,Z):(F.d(1),F=I(i),F&&(F.c(),F.m(E,ne))),i[17]?le?le.p(i,Z):(le=To(i),le.c(),le.m(E,null)):le&&(le.d(1),le=null),i[24]?Y?Y.p(i,Z):(Y=Io(i),Y.c(),Y.m(a,Ae)):Y&&(Y.d(1),Y=null),Z[0]&1073741824&&pe!==(pe=i[30]("forgotNewPasswordButton")+"")&&J(_e,pe),Z[0]&32768&&he!==(he=!i[15])&&(K.disabled=he)},d(we){we&&k(t),S&&S.d(),i[60](null),ie.d(),q&&q.d(),i[64](null),F.d(),le&&le.d(),Y&&Y.d(),ye=!1,Fe(Se)}}}function Vp(i){let t,e,r,s,o,n,a,l,d,h,u,f,m,_,g,w=i[30]("forgotPasswordSuccess")+"",y,v,C,E=i[30]("forgotPasswordSuccessDescription")+"",A;return{c(){t=P("div"),e=P("div"),r=P("div"),s=x("svg"),o=x("defs"),n=x("style"),a=N(".a{fill:#16ce16;}.b,.d{fill:none;}.b{stroke:#16ce16;stroke-width:2px;}.c{stroke:none;}"),l=x("g"),d=x("g"),h=x("path"),u=x("g"),f=x("circle"),m=x("circle"),_=V(),g=P("h4"),y=N(w),v=V(),C=P("p"),A=N(E),c(h,"class","a"),c(h,"d","M16.1,28,0,11.9,3.267,8.633,16.1,21.233,37.333,0,40.6,3.267Z"),c(h,"transform","translate(264.272 482.563)"),c(d,"transform","translate(-7360.574 8503.438)"),c(f,"class","c"),c(f,"cx","30"),c(f,"cy","30"),c(f,"r","30"),c(m,"class","d"),c(m,"cx","30"),c(m,"cy","30"),c(m,"r","29"),c(u,"class","b"),c(u,"transform","translate(-7106 8970)"),c(l,"transform","translate(7106 -8970)"),c(s,"xmlns","http://www.w3.org/2000/svg"),c(s,"width","60"),c(s,"height","60"),c(s,"viewBox","0 0 60 60"),c(r,"class","NewPasswordSuccess"),c(r,"part","NewPasswordSuccess"),c(e,"class","FormContent"),c(e,"part","FormContent"),c(t,"class","FormForgotPassword"),c(t,"part","FormForgotPassword")},m($,R){B($,t,R),p(t,e),p(e,r),p(r,s),p(s,o),p(o,n),p(n,a),p(s,l),p(l,d),p(d,h),p(l,u),p(u,f),p(u,m),p(r,_),p(r,g),p(g,y),p(r,v),p(r,C),p(C,A)},p($,R){R[0]&1073741824&&w!==(w=$[30]("forgotPasswordSuccess")+"")&&J(y,w),R[0]&1073741824&&E!==(E=$[30]("forgotPasswordSuccessDescription")+"")&&J(A,E)},d($){$&&k(t)}}}function $p(i){let t,e,r,s,o,n,a,l,d,h=i[30]("goToLogin")+"",u,f,m,_,g,w,y,v,C,E=i[30]("forgotPasswordEmail")+"",A,$,R,fe,G,ve,W,te,ne,Ce,Ae,K,pe=i[30]("forgotPasswordReset")+"",_e,he,ye,Se,S=i[26]&&Oo(i),U=i[12]&&No(i),H=i[6]&&ko(i);function ie(I,F){return I[28]?Zp:Xp}let q=ie(i),ae=q(i);return{c(){t=P("div"),e=P("div"),r=P("button"),s=x("svg"),o=x("defs"),n=x("style"),a=N(".a{fill:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));}"),l=x("path"),d=V(),u=N(h),f=V(),m=P("h4"),_=N(i[25]),g=V(),S&&S.c(),w=V(),y=P("form"),v=P("div"),C=P("label"),A=N(E),$=N(":"),R=P("span"),R.textContent="*",fe=V(),G=P("input"),ve=V(),U&&U.c(),W=V(),H&&H.c(),te=V(),ae.c(),Ae=V(),K=P("button"),_e=N(pe),c(l,"class","a"),c(l,"d","M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z"),c(l,"transform","translate(24 24) rotate(180)"),c(s,"xmlns","http://www.w3.org/2000/svg"),c(s,"viewBox","0 0 24 24"),c(r,"class","backButtonForgotPassword"),c(m,"class","FormHeaderTitle"),c(m,"part","FormHeaderTitle"),c(e,"class","FormHeader"),c(R,"class","FormRequired"),c(R,"part","FormRequired"),c(C,"for","ResetPasswordByEmail"),c(G,"type","text"),c(G,"id","ResetPasswordByEmail"),c(v,"class",ne="ResetPasswordByEmail "+(i[12]?"InvalidField":"")),c(v,"part",Ce="ResetPasswordByEmail "+(i[12]?"InvalidField":"")),c(K,"class","resetPasswordButton"),c(K,"part","resetPasswordButton"),K.disabled=he=!i[13],c(y,"class","FormContent"),c(y,"part","FormContent"),c(t,"class","FormForgotPassword")},m(I,F){B(I,t,F),p(t,e),p(e,r),p(r,s),p(s,o),p(o,n),p(n,a),p(s,l),p(r,d),p(r,u),p(e,f),p(e,m),p(m,_),p(e,g),S&&S.m(e,null),p(t,w),p(t,y),p(y,v),p(v,C),p(C,A),p(C,$),p(C,R),p(v,fe),p(v,G),Ze(G,i[8]),p(v,ve),U&&U.m(v,null),p(v,W),H&&H.m(v,null),p(v,te),ae.m(v,null),p(y,Ae),p(y,K),p(K,_e),ye||(Se=[se(r,"click",i[53]),se(G,"input",i[54]),se(G,"keyup",i[34]),se(K,"click",i[58])],ye=!0)},p(I,F){F[0]&1073741824&&h!==(h=I[30]("goToLogin")+"")&&J(u,h),F[0]&33554432&&J(_,I[25]),I[26]?S?S.p(I,F):(S=Oo(I),S.c(),S.m(e,null)):S&&(S.d(1),S=null),F[0]&1073741824&&E!==(E=I[30]("forgotPasswordEmail")+"")&&J(A,E),F[0]&256&&G.value!==I[8]&&Ze(G,I[8]),I[12]?U?U.p(I,F):(U=No(I),U.c(),U.m(v,W)):U&&(U.d(1),U=null),I[6]?H?H.p(I,F):(H=ko(I),H.c(),H.m(v,te)):H&&(H.d(1),H=null),q===(q=ie(I))&&ae?ae.p(I,F):(ae.d(1),ae=q(I),ae&&(ae.c(),ae.m(v,null))),F[0]&4096&&ne!==(ne="ResetPasswordByEmail "+(I[12]?"InvalidField":""))&&c(v,"class",ne),F[0]&4096&&Ce!==(Ce="ResetPasswordByEmail "+(I[12]?"InvalidField":""))&&c(v,"part",Ce),F[0]&1073741824&&pe!==(pe=I[30]("forgotPasswordReset")+"")&&J(_e,pe),F[0]&8192&&he!==(he=!I[13])&&(K.disabled=he)},d(I){I&&k(t),S&&S.d(),U&&U.d(),H&&H.d(),ae.d(),ye=!1,Fe(Se)}}}function Ao(i){let t,e;return{c(){t=P("p"),e=N(i[26]),c(t,"class","FormHeaderSubtitle"),c(t,"part","FormHeaderSubtitle")},m(r,s){B(r,t,s),p(t,e)},p(r,s){s[0]&67108864&&J(e,r[26])},d(r){r&&k(t)}}}function Up(i){let t,e,r,s,o,n,a,l,d,h;return{c(){t=x("svg"),e=x("defs"),r=x("style"),s=N(".a{fill:var(--emw--color-white, #FFFFFF);}"),o=x("g"),n=x("path"),a=x("circle"),c(n,"class","a"),c(n,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),c(n,"transform","translate(0)"),c(a,"class","a"),c(a,"cx","2.779"),c(a,"cy","2.779"),c(a,"r","2.779"),c(a,"transform","translate(20.827 30.303)"),c(o,"transform","translate(-14.185 -27.832)"),c(t,"class",l="TogglePasswordVisibility "+(i[16]?"InvalidToggle":"")),c(t,"xmlns","http://www.w3.org/2000/svg"),c(t,"width","18.843"),c(t,"height","10.5"),c(t,"viewBox","0 0 18.843 10.5")},m(u,f){B(u,t,f),p(t,e),p(e,r),p(r,s),p(t,o),p(o,n),p(o,a),d||(h=se(t,"click",i[62]),d=!0)},p(u,f){f[0]&65536&&l!==(l="TogglePasswordVisibility "+(u[16]?"InvalidToggle":""))&&c(t,"class",l)},d(u){u&&k(t),d=!1,h()}}}function jp(i){let t,e,r,s,o,n,a,l,d,h,u,f,m,_,g,w;return{c(){t=x("svg"),e=x("defs"),r=x("style"),s=N(".a{fill:var(--emw--color-white, #FFFFFF);}"),o=x("g"),n=x("circle"),a=x("g"),l=x("path"),d=x("path"),h=x("g"),u=x("path"),f=x("path"),m=x("rect"),c(n,"class","a"),c(n,"cx","0.05"),c(n,"cy","0.05"),c(n,"r","0.05"),c(n,"transform","translate(121.017 31.148)"),c(l,"class","a"),c(l,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),c(l,"transform","translate(-142.164 -39.123)"),c(d,"class","a"),c(d,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),c(d,"transform","translate(-136.413 -42.068)"),c(a,"transform","translate(117.499 27.37)"),c(u,"class","a"),c(u,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),c(u,"transform","translate(-110.856 -33.157)"),c(f,"class","a"),c(f,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),c(f,"transform","translate(-130.743 -29.617)"),c(h,"transform","translate(110.856 24.899)"),c(m,"class","a"),c(m,"width","0.972"),c(m,"height","15.861"),c(m,"rx","0.486"),c(m,"transform","translate(114.827 23.858) rotate(-39.315)"),c(o,"transform","translate(-110.856 -23.242)"),c(t,"class",_="TogglePasswordVisibility "+(i[16]?"InvalidToggle":"")),c(t,"xmlns","http://www.w3.org/2000/svg"),c(t,"width","18.844"),c(t,"height","12.887"),c(t,"viewBox","0 0 18.844 12.887")},m(y,v){B(y,t,v),p(t,e),p(e,r),p(r,s),p(t,o),p(o,n),p(o,a),p(a,l),p(a,d),p(o,h),p(h,u),p(h,f),p(o,m),g||(w=se(t,"click",i[61]),g=!0)},p(y,v){v[0]&65536&&_!==(_="TogglePasswordVisibility "+(y[16]?"InvalidToggle":""))&&c(t,"class",_)},d(y){y&&k(t),g=!1,w()}}}function So(i){let t;function e(o,n){return o[1]=="true"?Wp:Gp}let r=e(i),s=r(i);return{c(){s.c(),t=Hr()},m(o,n){s.m(o,n),B(o,t,n)},p(o,n){r===(r=e(o))&&s?s.p(o,n):(s.d(1),s=r(o),s&&(s.c(),s.m(t.parentNode,t)))},d(o){o&&k(t),s.d(o)}}}function Gp(i){let t,e=i[30]("forgotNewPasswordPasswordError")+"",r;return{c(){t=P("p"),r=N(e),c(t,"class","InvalidInput"),c(t,"part","InvalidInput")},m(s,o){B(s,t,o),p(t,r)},p(s,o){o[0]&1073741824&&e!==(e=s[30]("forgotNewPasswordPasswordError")+"")&&J(r,e)},d(s){s&&k(t)}}}function Wp(i){let t,e=i[30]("simplePasswordError")+"",r;return{c(){t=P("p"),r=N(e),c(t,"class","InvalidInput"),c(t,"part","InvalidInput")},m(s,o){B(s,t,o),p(t,r)},p(s,o){o[0]&1073741824&&e!==(e=s[30]("simplePasswordError")+"")&&J(r,e)},d(s){s&&k(t)}}}function qp(i){let t,e,r,s,o,n,a,l,d,h;return{c(){t=x("svg"),e=x("defs"),r=x("style"),s=N(".a{fill:var(--emw--color-white, #FFFFFF);}"),o=x("g"),n=x("path"),a=x("circle"),c(n,"class","a"),c(n,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),c(n,"transform","translate(0)"),c(a,"class","a"),c(a,"cx","2.779"),c(a,"cy","2.779"),c(a,"r","2.779"),c(a,"transform","translate(20.827 30.303)"),c(o,"transform","translate(-14.185 -27.832)"),c(t,"class",l="TogglePasswordVisibility "+(i[17]?"InvalidToggle":"")),c(t,"xmlns","http://www.w3.org/2000/svg"),c(t,"width","18.843"),c(t,"height","10.5"),c(t,"viewBox","0 0 18.843 10.5")},m(u,f){B(u,t,f),p(t,e),p(e,r),p(r,s),p(t,o),p(o,n),p(o,a),d||(h=se(t,"click",i[66]),d=!0)},p(u,f){f[0]&131072&&l!==(l="TogglePasswordVisibility "+(u[17]?"InvalidToggle":""))&&c(t,"class",l)},d(u){u&&k(t),d=!1,h()}}}function Yp(i){let t,e,r,s,o,n,a,l,d,h,u,f,m,_,g,w;return{c(){t=x("svg"),e=x("defs"),r=x("style"),s=N(".a{fill:var(--emw--color-white, #FFFFFF);}"),o=x("g"),n=x("circle"),a=x("g"),l=x("path"),d=x("path"),h=x("g"),u=x("path"),f=x("path"),m=x("rect"),c(n,"class","a"),c(n,"cx","0.05"),c(n,"cy","0.05"),c(n,"r","0.05"),c(n,"transform","translate(121.017 31.148)"),c(l,"class","a"),c(l,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),c(l,"transform","translate(-142.164 -39.123)"),c(d,"class","a"),c(d,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),c(d,"transform","translate(-136.413 -42.068)"),c(a,"transform","translate(117.499 27.37)"),c(u,"class","a"),c(u,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),c(u,"transform","translate(-110.856 -33.157)"),c(f,"class","a"),c(f,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),c(f,"transform","translate(-130.743 -29.617)"),c(h,"transform","translate(110.856 24.899)"),c(m,"class","a"),c(m,"width","0.972"),c(m,"height","15.861"),c(m,"rx","0.486"),c(m,"transform","translate(114.827 23.858) rotate(-39.315)"),c(o,"transform","translate(-110.856 -23.242)"),c(t,"class",_="TogglePasswordVisibility "+(i[17]?"InvalidToggle":"")),c(t,"xmlns","http://www.w3.org/2000/svg"),c(t,"width","18.844"),c(t,"height","12.887"),c(t,"viewBox","0 0 18.844 12.887")},m(y,v){B(y,t,v),p(t,e),p(e,r),p(r,s),p(t,o),p(o,n),p(o,a),p(a,l),p(a,d),p(o,h),p(h,u),p(h,f),p(o,m),g||(w=se(t,"click",i[65]),g=!0)},p(y,v){v[0]&131072&&_!==(_="TogglePasswordVisibility "+(y[17]?"InvalidToggle":""))&&c(t,"class",_)},d(y){y&&k(t),g=!1,w()}}}function To(i){let t,e=i[30]("forgotNewPasswordConfirmPasswordError")+"",r;return{c(){t=P("p"),r=N(e),c(t,"class","InvalidInput"),c(t,"part","InvalidInput")},m(s,o){B(s,t,o),p(t,r)},p(s,o){o[0]&1073741824&&e!==(e=s[30]("forgotNewPasswordConfirmPasswordError")+"")&&J(r,e)},d(s){s&&k(t)}}}function Io(i){let t,e;return{c(){t=P("p"),e=N(i[14]),c(t,"class","ErrorMessage"),c(t,"part","ErrorMessage")},m(r,s){B(r,t,s),p(t,e)},p(r,s){s[0]&16384&&J(e,r[14])},d(r){r&&k(t)}}}function Oo(i){let t,e;return{c(){t=P("p"),e=N(i[26]),c(t,"class","FormHeaderSubtitle"),c(t,"part","FormHeaderSubtitle")},m(r,s){B(r,t,s),p(t,e)},p(r,s){s[0]&67108864&&J(e,r[26])},d(r){r&&k(t)}}}function No(i){let t,e=i[30]("forgotPasswordEmailInputError")+"",r;return{c(){t=P("p"),r=N(e),c(t,"class","ForgotPasswordError"),c(t,"part","ForgotPasswordError")},m(s,o){B(s,t,o),p(t,r)},p(s,o){o[0]&1073741824&&e!==(e=s[30]("forgotPasswordEmailInputError")+"")&&J(r,e)},d(s){s&&k(t)}}}function ko(i){let t,e=i[30]("forgotPasswordEmailError")+"",r;return{c(){t=P("p"),r=N(e),c(t,"class","ForgotPasswordError"),c(t,"part","ForgotPasswordError")},m(s,o){B(s,t,o),p(t,r)},p(s,o){o[0]&1073741824&&e!==(e=s[30]("forgotPasswordEmailError")+"")&&J(r,e)},d(s){s&&k(t)}}}function Zp(i){let t,e,r=i[30](i[28])+"",s;return{c(){t=P("div"),e=P("span"),s=N(r),c(t,"class","dobFormatError")},m(o,n){B(o,t,n),p(t,e),p(e,s)},p(o,n){n[0]&1342177280&&r!==(r=o[30](o[28])+"")&&J(s,r)},d(o){o&&k(t)}}}function Xp(i){let t,e,r=bs(i[27]),s=[];for(let o=0;o<r.length;o+=1)s[o]=Mo(Eo(i,r,o));return{c(){t=P("div");for(let o=0;o<s.length;o+=1)s[o].c();c(t,"class",e="DobContainer "+(i[11]?"Mobile":""))},m(o,n){B(o,t,n);for(let a=0;a<s.length;a+=1)s[a]&&s[a].m(t,null)},p(o,n){if(n[0]&1744830464|n[1]&135){r=bs(o[27]);let a;for(a=0;a<r.length;a+=1){const l=Eo(o,r,a);s[a]?s[a].p(l,n):(s[a]=Mo(l),s[a].c(),s[a].m(t,null))}for(;a<s.length;a+=1)s[a].d(1);s.length=r.length}n[0]&2048&&e!==(e="DobContainer "+(o[11]?"Mobile":""))&&c(t,"class",e)},d(o){o&&k(t),dl(s,o)}}}function Jp(i){let t,e,r,s,o;return{c(){t=P("vaadin-combo-box"),Q(t,"class","datePickerBox"),Q(t,"label",e=i[30]("year")),Q(t,"items",i[31]),Q(t,"disabled",r=i[29].isYearDisabled)},m(n,a){B(n,t,a),s||(o=se(t,"change",i[57]),s=!0)},p(n,a){a[0]&1073741824&&e!==(e=n[30]("year"))&&Q(t,"label",e),a[0]&536870912&&r!==(r=n[29].isYearDisabled)&&Q(t,"disabled",r)},d(n){n&&k(t),s=!1,o()}}}function Kp(i){let t,e,r,s,o;return{c(){t=P("vaadin-combo-box"),Q(t,"class","datePickerBox"),Q(t,"label",e=i[30]("month")),Q(t,"items",Object.keys(i[32])),Q(t,"disabled",r=i[29].isMonthDisabled)},m(n,a){B(n,t,a),s||(o=se(t,"change",i[56]),s=!0)},p(n,a){a[0]&1073741824&&e!==(e=n[30]("month"))&&Q(t,"label",e),a[0]&536870912&&r!==(r=n[29].isMonthDisabled)&&Q(t,"disabled",r)},d(n){n&&k(t),s=!1,o()}}}function Qp(i){let t,e,r,s,o;return{c(){t=P("vaadin-combo-box"),Q(t,"class","datePickerBox"),Q(t,"label",e=i[30]("day")),Q(t,"items",i[33]),Q(t,"disabled",r=i[29].isDayDisabled)},m(n,a){B(n,t,a),s||(o=se(t,"change",i[55]),s=!0)},p(n,a){a[0]&1073741824&&e!==(e=n[30]("day"))&&Q(t,"label",e),a[0]&536870912&&r!==(r=n[29].isDayDisabled)&&Q(t,"disabled",r)},d(n){n&&k(t),s=!1,o()}}}function Mo(i){let t;function e(o,n){if(o[88]==="dd")return Qp;if(o[88]==="mm")return Kp;if(o[88]==="yyyy")return Jp}let r=e(i),s=r&&r(i);return{c(){s&&s.c(),t=Hr()},m(o,n){s&&s.m(o,n),B(o,t,n)},p(o,n){r===(r=e(o))&&s?s.p(o,n):(s&&s.d(1),s=r&&r(o),s&&(s.c(),s.m(t.parentNode,t)))},d(o){o&&k(t),s&&s.d(o)}}}function em(i){let t,e,r,s,o,n=i[0]&&Co(i);function a(h,u){return h[4]?Hp:Dp}let l=a(i),d=l(i);return{c(){n&&n.c(),t=Hr(),e=V(),r=P("div"),s=V(),o=P("div"),d.c(),c(r,"class","g-recaptcha"),c(r,"data-sitekey",i[0]),c(o,"class","GeneralPlayerForgotPasswordForm")},m(h,u){n&&n.m(document.head,null),p(document.head,t),B(h,e,u),B(h,r,u),B(h,s,u),B(h,o,u),d.m(o,null),i[69](o)},p(h,u){h[0]?n?n.p(h,u):(n=Co(h),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null),u[0]&1&&c(r,"data-sitekey",h[0]),l===(l=a(h))&&d?d.p(h,u):(d.d(1),d=l(h),d&&(d.c(),d.m(o,null)))},i:Pe,o:Pe,d(h){h&&(k(e),k(r),k(s),k(o)),n&&n.d(h),k(t),d.d(),i[69](null)}}}function tm(i,t,e){let r;ol(i,Sh,b=>e(30,r=b));let{endpoint:s=""}=t,{forgotpasswordkey:o=""}=t,{captchakey:n=""}=t,{lang:a="en"}=t,{simplepasswordvalidation:l="false"}=t,{mbsource:d}=t,{clientstyling:h=""}=t,{clientstylingurl:u=""}=t,{translationurl:f=""}=t,{savecredentials:m=""}=t,{hastosetpass:_="false"}=t,{passwordregex:g=""}=t,{dobformat:w=""}=t,{mindobyears:y=18}=t,{maxdobyears:v=100}=t,C=!1,E=!0,A=!1,$=!1,R="",fe=!1,G=!1,ve=!1,W=!1,te=!1,ne=window.navigator.userAgent,Ce="",Ae=!1,K=!1,pe=!1,_e,he,ye=!1,Se=!1,S="",U="",H,ie=!1,q,ae,I=Array.from({length:v-y+1},(b,X)=>new Date().getFullYear()-y-X),F={January:"01",February:"02",March:"03",April:"04",May:"05",June:"06",July:"07",August:"08",September:"09",October:"10",November:"11",December:"12"},le=Array.from({length:31},(b,X)=>X+1),Y=[],we="",Z=!0,ge={isDayDisabled:!1,isMonthDisabled:!1,isYearDisabled:!1},Ca=["mm/dd/yyyy","dd/mm/yyyy","yyyy/mm/dd"],ft={dd:null,mm:null,yyyy:null},hs="";Ih({withLocale:"en",translations:{}});const Aa=()=>{fetch(f).then(X=>X.json()).then(X=>{Object.keys(X).forEach(ue=>{Fs(ue,X[ue])})}).catch(X=>{console.log(X)})};Object.keys(zs).forEach(b=>{Fs(b,zs[b])});const Ut={email:/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,password:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/},Sa=()=>{e(13,te=w?!W&&!Z:!W)},Ta=b=>!!(Ut.email.test(b)&&b.length<=100),us=()=>{e(12,W=!Ta(R)),Sa()},pt=b=>{switch(b){case"userNewPassword":e(20,ye=!ye),e(18,_e.type=ye?"text":"password",_e);break;case"userConfirmPassword":e(21,Se=!Se),e(19,he.type=Se?"text":"password",he);break}},Oi=b=>{switch(b){case"ToEmailSuccess":e(6,A=!1),e(5,E=!1),e(7,$=!0);break;case"ToReset":e(5,E=!1),e(9,fe=!0);break;case"ToSuccess":e(9,fe=!1),e(10,G=!0);break}},Ni=()=>{window.postMessage({type:"ToLogin"},window.location.href)},Ia=()=>new Promise((b,X)=>{grecaptcha.ready(()=>{grecaptcha.execute(n,{action:"submit"}).then(ue=>{b(ue)})})}),cs=b=>{b.preventDefault(),e(4,C=!0),Ia().then(X=>{let ue=new URL(`${s}/v1/player/resetpassword`),mt={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","g-recaptcha-response":X}};ue.searchParams.append("email",R),w&&ue.searchParams.append("birthDate",hs),fetch(ue,mt).then($e=>{$e.status==200?Oi("ToEmailSuccess"):e(6,A=!0)}).finally(()=>{e(4,C=!1)})})},Oa=()=>{if(e(41,w=w.toLowerCase()),!Ca.includes(w))return e(28,we="dobFormatError");e(27,Y=w.split("/")),e(29,ge.isDayDisabled=Y[0]!=="dd",ge),e(29,ge.isMonthDisabled=Y[0]!=="mm",ge),e(29,ge.isYearDisabled=Y[0]!=="yyyy",ge)},jt=(b,X)=>{ft[X]=b.target.value,Z=Object.values(ft).some(ue=>!ue),Y.forEach((ue,mt)=>{if(X===ue)switch(Y[mt+1]){case"dd":e(29,ge.isDayDisabled=!1,ge);case"mm":e(29,ge.isMonthDisabled=!1,ge);break;case"yyyy":e(29,ge.isYearDisabled=!1,ge);break}}),Z||(hs=`${ft.yyyy}-${F[ft.mm]}-${ft.dd}`),us()},fs=b=>{b.preventDefault();let X=new URL(`${s}/v1/player/ResetPasswordByHashKey`),mt={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({hashKey:o,plainTextPassword:S})};fetch(X,mt).then($e=>($e.status==200?(e(24,ie=!1),Oi("ToSuccess")):e(24,ie=!0),$e.json())).then($e=>{e(14,Ce=$e.error)})},Na=()=>{o&&o.length>0&&Oi("ToReset")},ka=()=>{!K&&!pe&&S&&U?e(15,Ae=!0):e(15,Ae=!1)},ki=b=>(l=="true"&&(Ut.password=/^(?!.* ).{8,20}$/),!!Ut.password.test(b)),Ma=(b,X,ue)=>{ue.id==="new-password"?(e(16,K=!ki(X)),U&&e(17,pe=S===U?!ki(X):!0)):e(17,pe=S===U?!ki(X):!0),ka()},La=()=>{Oh(a)},Ba=()=>{e(25,q=r(_==="true"?"hasToSetPassTitle":"forgotPasswordTitle")),e(26,ae=_==="true"?r("resetPasswordSubtitle"):"")};fl(()=>Wt(this,null,function*(){return Th(ne)&&e(11,ve=!0),()=>{}}));const Ra=()=>Ni();function Da(){R=this.value,e(8,R)}const Ha=b=>jt(b,"dd"),Fa=b=>jt(b,"mm"),za=b=>jt(b,"yyyy"),Va=b=>cs(b);function $a(){S=this.value,e(22,S)}function Ua(b){Et[b?"unshift":"push"](()=>{_e=b,e(18,_e)})}const ja=()=>pt("userNewPassword"),Ga=()=>pt("userNewPassword");function Wa(){U=this.value,e(23,U)}function qa(b){Et[b?"unshift":"push"](()=>{he=b,e(19,he)})}const Ya=()=>pt("userConfirmPassword"),Za=()=>pt("userConfirmPassword"),Xa=b=>fs(b),Ja=()=>Ni();function Ka(b){Et[b?"unshift":"push"](()=>{H=b,e(3,H)})}return i.$$set=b=>{"endpoint"in b&&e(42,s=b.endpoint),"forgotpasswordkey"in b&&e(43,o=b.forgotpasswordkey),"captchakey"in b&&e(0,n=b.captchakey),"lang"in b&&e(44,a=b.lang),"simplepasswordvalidation"in b&&e(1,l=b.simplepasswordvalidation),"mbsource"in b&&e(45,d=b.mbsource),"clientstyling"in b&&e(46,h=b.clientstyling),"clientstylingurl"in b&&e(47,u=b.clientstylingurl),"translationurl"in b&&e(48,f=b.translationurl),"savecredentials"in b&&e(2,m=b.savecredentials),"hastosetpass"in b&&e(49,_=b.hastosetpass),"passwordregex"in b&&e(50,g=b.passwordregex),"dobformat"in b&&e(41,w=b.dobformat),"mindobyears"in b&&e(51,y=b.mindobyears),"maxdobyears"in b&&e(52,v=b.maxdobyears)},i.$$.update=()=>{i.$$.dirty[1]&4096&&o&&Na(),i.$$.dirty[1]&8192&&a&&La(),i.$$.dirty[0]&8|i.$$.dirty[1]&32768&&h&&H&&Nh(H,h),i.$$.dirty[0]&8|i.$$.dirty[1]&65536&&u&&H&&kh(H,u),i.$$.dirty[0]&8|i.$$.dirty[1]&16384&&d&&H&&Mh(H,`${d}.Style`),i.$$.dirty[1]&131072&&f&&Aa(),i.$$.dirty[1]&270336&&_&&a&&Ba(),i.$$.dirty[1]&524288&&g&&(Ut.password=new RegExp(g)),i.$$.dirty[1]&1024&&w&&Oa()},[n,l,m,H,C,E,A,$,R,fe,G,ve,W,te,Ce,Ae,K,pe,_e,he,ye,Se,S,U,ie,q,ae,Y,we,ge,r,I,F,le,us,pt,Ni,cs,jt,fs,Ma,w,s,o,a,d,h,u,f,_,g,y,v,Ra,Da,Ha,Fa,za,Va,$a,Ua,ja,Ga,Wa,qa,Ya,Za,Xa,Ja,Ka]}class Ea extends Cl{constructor(t){super(),Pl(this,t,tm,em,Vo,{endpoint:42,forgotpasswordkey:43,captchakey:0,lang:44,simplepasswordvalidation:1,mbsource:45,clientstyling:46,clientstylingurl:47,translationurl:48,savecredentials:2,hastosetpass:49,passwordregex:50,dobformat:41,mindobyears:51,maxdobyears:52},Rp,[-1,-1,-1])}get endpoint(){return this.$$.ctx[42]}set endpoint(t){this.$$set({endpoint:t}),re()}get forgotpasswordkey(){return this.$$.ctx[43]}set forgotpasswordkey(t){this.$$set({forgotpasswordkey:t}),re()}get captchakey(){return this.$$.ctx[0]}set captchakey(t){this.$$set({captchakey:t}),re()}get lang(){return this.$$.ctx[44]}set lang(t){this.$$set({lang:t}),re()}get simplepasswordvalidation(){return this.$$.ctx[1]}set simplepasswordvalidation(t){this.$$set({simplepasswordvalidation:t}),re()}get mbsource(){return this.$$.ctx[45]}set mbsource(t){this.$$set({mbsource:t}),re()}get clientstyling(){return this.$$.ctx[46]}set clientstyling(t){this.$$set({clientstyling:t}),re()}get clientstylingurl(){return this.$$.ctx[47]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),re()}get translationurl(){return this.$$.ctx[48]}set translationurl(t){this.$$set({translationurl:t}),re()}get savecredentials(){return this.$$.ctx[2]}set savecredentials(t){this.$$set({savecredentials:t}),re()}get hastosetpass(){return this.$$.ctx[49]}set hastosetpass(t){this.$$set({hastosetpass:t}),re()}get passwordregex(){return this.$$.ctx[50]}set passwordregex(t){this.$$set({passwordregex:t}),re()}get dobformat(){return this.$$.ctx[41]}set dobformat(t){this.$$set({dobformat:t}),re()}get mindobyears(){return this.$$.ctx[51]}set mindobyears(t){this.$$set({mindobyears:t}),re()}get maxdobyears(){return this.$$.ctx[52]}set maxdobyears(t){this.$$set({maxdobyears:t}),re()}}El(Ea,{endpoint:{},forgotpasswordkey:{},captchakey:{},lang:{},simplepasswordvalidation:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{},savecredentials:{},hastosetpass:{},passwordregex:{},dobformat:{},mindobyears:{},maxdobyears:{}},[],[],!0);exports.default=Ea;