@everymatrix/player-account-self-exclusion 1.54.7 → 1.54.8

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.
@@ -0,0 +1,3561 @@
1
+ "use strict";var Ka=Object.defineProperty,Ja=Object.defineProperties;var Za=Object.getOwnPropertyDescriptors;var xn=Object.getOwnPropertySymbols;var Qa=Object.prototype.hasOwnProperty,el=Object.prototype.propertyIsEnumerable;var Hi=(t,i,e)=>i in t?Ka(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,St=(t,i)=>{for(var e in i||(i={}))Qa.call(i,e)&&Hi(t,e,i[e]);if(xn)for(var e of xn(i))el.call(i,e)&&Hi(t,e,i[e]);return t},Zt=(t,i)=>Ja(t,Za(i));var be=(t,i,e)=>Hi(t,typeof i!="symbol"?i+"":i,e);var At=(t,i,e)=>new Promise((r,n)=>{var o=l=>{try{a(e.next(l))}catch(u){n(u)}},s=l=>{try{a(e.throw(l))}catch(u){n(u)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((e=e.apply(t,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function Ee(){}function Vo(t){return t()}function wn(){return Object.create(null)}function bt(t){t.forEach(Vo)}function Gr(t){return typeof t=="function"}function Yo(t,i){return t!=t?i==i:t!==i||t&&typeof t=="object"||typeof t=="function"}function tl(t){return Object.keys(t).length===0}function Go(t,...i){if(t==null){for(const r of i)r(void 0);return Ee}const e=t.subscribe(...i);return e.unsubscribe?()=>e.unsubscribe():e}function il(t,i,e){t.$$.on_destroy.push(Go(i,e))}function v(t,i){t.appendChild(i)}function rl(t,i,e){const r=nl(t);if(!r.getElementById(i)){const n=z("style");n.id=i,n.textContent=e,ol(r,n)}}function nl(t){if(!t)return document;const i=t.getRootNode?t.getRootNode():t.ownerDocument;return i&&i.host?i:t.ownerDocument}function ol(t,i){return v(t.head||t,i),i.sheet}function Ie(t,i,e){t.insertBefore(i,e||null)}function Ce(t){t.parentNode&&t.parentNode.removeChild(t)}function sl(t,i){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(i)}function z(t){return document.createElement(t)}function Oe(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function de(t){return document.createTextNode(t)}function le(){return de(" ")}function hi(t,i,e,r){return t.addEventListener(i,e,r),()=>t.removeEventListener(i,e,r)}function C(t,i,e){e==null?t.removeAttribute(i):t.getAttribute(i)!==e&&t.setAttribute(i,e)}function Q(t,i,e){const r=i.toLowerCase();r in t?t[r]=typeof t[r]=="boolean"&&e===""?!0:e:i in t?t[i]=typeof t[i]=="boolean"&&e===""?!0:e:C(t,i,e)}function al(t){return Array.from(t.childNodes)}function ye(t,i){i=""+i,t.data!==i&&(t.data=i)}function Ze(t,i,e){t.classList.toggle(i,!!e)}function ll(t){const i={};return t.childNodes.forEach(e=>{i[e.slot||"default"]=!0}),i}let Bt;function Nt(t){Bt=t}function ul(){if(!Bt)throw new Error("Function called outside component initialization");return Bt}function cl(t){ul().$$.on_mount.push(t)}const it=[],fi=[];let nt=[];const En=[],dl=Promise.resolve();let lr=!1;function hl(){lr||(lr=!0,dl.then(xe))}function ur(t){nt.push(t)}const Li=new Set;let Qe=0;function xe(){if(Qe!==0)return;const t=Bt;do{try{for(;Qe<it.length;){const i=it[Qe];Qe++,Nt(i),fl(i.$$)}}catch(i){throw it.length=0,Qe=0,i}for(Nt(null),it.length=0,Qe=0;fi.length;)fi.pop()();for(let i=0;i<nt.length;i+=1){const e=nt[i];Li.has(e)||(Li.add(e),e())}nt.length=0}while(it.length);for(;En.length;)En.pop()();lr=!1,Li.clear(),Nt(t)}function fl(t){if(t.fragment!==null){t.update(),bt(t.before_update);const i=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,i),t.after_update.forEach(ur)}}function pl(t){const i=[],e=[];nt.forEach(r=>t.indexOf(r)===-1?i.push(r):e.push(r)),e.forEach(r=>r()),nt=i}const ml=new Set;function _l(t,i){t&&t.i&&(ml.delete(t),t.i(i))}function Sn(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function gl(t,i,e){const{fragment:r,after_update:n}=t.$$;r&&r.m(i,e),ur(()=>{const o=t.$$.on_mount.map(Vo).filter(Gr);t.$$.on_destroy?t.$$.on_destroy.push(...o):bt(o),t.$$.on_mount=[]}),n.forEach(ur)}function bl(t,i){const e=t.$$;e.fragment!==null&&(pl(e.after_update),bt(e.on_destroy),e.fragment&&e.fragment.d(i),e.on_destroy=e.fragment=null,e.ctx=[])}function yl(t,i){t.$$.dirty[0]===-1&&(it.push(t),hl(),t.$$.dirty.fill(0)),t.$$.dirty[i/31|0]|=1<<i%31}function vl(t,i,e,r,n,o,s=null,a=[-1]){const l=Bt;Nt(t);const u=t.$$={fragment:null,ctx:[],props:o,update:Ee,not_equal:n,bound:wn(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(i.context||(l?l.$$.context:[])),callbacks:wn(),dirty:a,skip_bound:!1,root:i.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=e?e(t,i.props||{},(d,h,...f)=>{const p=f.length?f[0]:h;return u.ctx&&n(u.ctx[d],u.ctx[d]=p)&&(!u.skip_bound&&u.bound[d]&&u.bound[d](p),c&&yl(t,d)),h}):[],u.update(),c=!0,bt(u.before_update),u.fragment=r?r(u.ctx):!1,i.target){if(i.hydrate){const d=al(i.target);u.fragment&&u.fragment.l(d),d.forEach(Ce)}else u.fragment&&u.fragment.c();i.intro&&_l(t.$$.fragment),gl(t,i.target,i.anchor),xe()}Nt(l)}let Wo;typeof HTMLElement=="function"&&(Wo=class extends HTMLElement{constructor(i,e,r){super();be(this,"$$ctor");be(this,"$$s");be(this,"$$c");be(this,"$$cn",!1);be(this,"$$d",{});be(this,"$$r",!1);be(this,"$$p_d",{});be(this,"$$l",{});be(this,"$$l_u",new Map);this.$$ctor=i,this.$$s=e,r&&this.attachShadow({mode:"open"})}addEventListener(i,e,r){if(this.$$l[i]=this.$$l[i]||[],this.$$l[i].push(e),this.$$c){const n=this.$$c.$on(i,e);this.$$l_u.set(e,n)}super.addEventListener(i,e,r)}removeEventListener(i,e,r){if(super.removeEventListener(i,e,r),this.$$c){const n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}connectedCallback(){return At(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(o){return()=>{let s;return{c:function(){s=z("slot"),o!=="default"&&C(s,"name",o)},m:function(u,c){Ie(u,s,c)},d:function(u){u&&Ce(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const e={},r=ll(this);for(const o of this.$$s)o in r&&(e[o]=[i(o)]);for(const o of this.attributes){const s=this.$$g_p(o.name);s in this.$$d||(this.$$d[s]=si(s,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:Zt(St({},this.$$d),{$$slots:e,$$scope:{ctx:[]}})});const n=()=>{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 s=si(o,this.$$d[o],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,s)}this.$$r=!1};this.$$c.$$.after_update.push(n),n();for(const o in this.$$l)for(const s of this.$$l[o]){const a=this.$$c.$on(o,s);this.$$l_u.set(s,a)}this.$$l={}}})}attributeChangedCallback(i,e,r){var n;this.$$r||(i=this.$$g_p(i),this.$$d[i]=si(i,r,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[i]:this.$$d[i]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(i){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===i||!this.$$p_d[e].attribute&&e.toLowerCase()===i)||i}});function si(t,i,e,r){var o;const n=(o=e[t])==null?void 0:o.type;if(i=n==="Boolean"&&typeof i!="boolean"?i!=null:i,!r||!e[t])return i;if(r==="toAttribute")switch(n){case"Object":case"Array":return i==null?null:JSON.stringify(i);case"Boolean":return i?"":null;case"Number":return i==null?null:i;default:return i}else switch(n){case"Object":case"Array":return i&&JSON.parse(i);case"Boolean":return i;case"Number":return i!=null?+i:i;default:return i}}function xl(t,i,e,r,n,o){let s=class extends Wo{constructor(){super(t,e,n),this.$$p_d=i}static get observedAttributes(){return Object.keys(i).map(a=>(i[a].attribute||a).toLowerCase())}};return Object.keys(i).forEach(a=>{Object.defineProperty(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var u;l=si(a,l,i),this.$$d[a]=l,(u=this.$$c)==null||u.$set({[a]:l})}})}),r.forEach(a=>{Object.defineProperty(s.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),t.element=s,s}class wl{constructor(){be(this,"$$");be(this,"$$set")}$destroy(){bl(this,1),this.$destroy=Ee}$on(i,e){if(!Gr(e))return Ee;const r=this.$$.callbacks[i]||(this.$$.callbacks[i]=[]);return r.push(e),()=>{const n=r.indexOf(e);n!==-1&&r.splice(n,1)}}$set(i){this.$$set&&!tl(i)&&(this.$$.skip_bound=!0,this.$$set(i),this.$$.skip_bound=!1)}}const El="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(El);var cr=function(t,i){return cr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])},cr(t,i)};function Ne(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");cr(t,i);function e(){this.constructor=t}t.prototype=i===null?Object.create(i):(e.prototype=i.prototype,new e)}var R=function(){return R=Object.assign||function(i){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}return i},R.apply(this,arguments)};function Sl(t,i){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&i.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(t);n<r.length;n++)i.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(t,r[n])&&(e[r[n]]=t[r[n]]);return e}function dr(t){var i=typeof Symbol=="function"&&Symbol.iterator,e=i&&t[i],r=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function hr(t,i){var e=typeof Symbol=="function"&&t[Symbol.iterator];if(!e)return t;var r=e.call(t),n,o=[],s;try{for(;(i===void 0||i-- >0)&&!(n=r.next()).done;)o.push(n.value)}catch(a){s={error:a}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return o}function ot(t,i,e){if(e||arguments.length===2)for(var r=0,n=i.length,o;r<n;r++)(o||!(r in i))&&(o||(o=Array.prototype.slice.call(i,0,r)),o[r]=i[r]);return t.concat(o||Array.prototype.slice.call(i))}function Me(t){return typeof t=="function"}function qo(t){var i=function(r){Error.call(r),r.stack=new Error().stack},e=t(i);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var $i=qo(function(t){return function(e){t(this),this.message=e?e.length+` errors occurred during unsubscription:
2
+ `+e.map(function(r,n){return n+1+") "+r.toString()}).join(`
3
+ `):"",this.name="UnsubscriptionError",this.errors=e}});function fr(t,i){if(t){var e=t.indexOf(i);0<=e&&t.splice(e,1)}}var Si=function(){function t(i){this.initialTeardown=i,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var i,e,r,n,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=dr(s),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(x){i={error:x}}finally{try{l&&!l.done&&(e=a.return)&&e.call(a)}finally{if(i)throw i.error}}else s.remove(this);var c=this.initialTeardown;if(Me(c))try{c()}catch(x){o=x instanceof $i?x.errors:[x]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var h=dr(d),f=h.next();!f.done;f=h.next()){var p=f.value;try{An(p)}catch(x){o=o!=null?o:[],x instanceof $i?o=ot(ot([],hr(o)),hr(x.errors)):o.push(x)}}}catch(x){r={error:x}}finally{try{f&&!f.done&&(n=h.return)&&n.call(h)}finally{if(r)throw r.error}}}if(o)throw new $i(o)}},t.prototype.add=function(i){var e;if(i&&i!==this)if(this.closed)An(i);else{if(i instanceof t){if(i.closed||i._hasParent(this))return;i._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(i)}},t.prototype._hasParent=function(i){var e=this._parentage;return e===i||Array.isArray(e)&&e.includes(i)},t.prototype._addParent=function(i){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(i),e):e?[e,i]:i},t.prototype._removeParent=function(i){var e=this._parentage;e===i?this._parentage=null:Array.isArray(e)&&fr(e,i)},t.prototype.remove=function(i){var e=this._finalizers;e&&fr(e,i),i instanceof t&&i._removeParent(this)},t.EMPTY=function(){var i=new t;return i.closed=!0,i}(),t}(),Xo=Si.EMPTY;function Ko(t){return t instanceof Si||t&&"closed"in t&&Me(t.remove)&&Me(t.add)&&Me(t.unsubscribe)}function An(t){Me(t)?t():t.unsubscribe()}var Al={Promise:void 0},Cl={setTimeout:function(t,i){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return setTimeout.apply(void 0,ot([t,i],hr(e)))},clearTimeout:function(t){return clearTimeout(t)},delegate:void 0};function Tl(t){Cl.setTimeout(function(){throw t})}function Cn(){}function ai(t){t()}var Jo=function(t){Ne(i,t);function i(e){var r=t.call(this)||this;return r.isStopped=!1,e?(r.destination=e,Ko(e)&&e.add(r)):r.destination=kl,r}return i.create=function(e,r,n){return new pr(e,r,n)},i.prototype.next=function(e){this.isStopped||this._next(e)},i.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},i.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},i.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},i.prototype._next=function(e){this.destination.next(e)},i.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},i.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},i}(Si),Pl=function(){function t(i){this.partialObserver=i}return t.prototype.next=function(i){var e=this.partialObserver;if(e.next)try{e.next(i)}catch(r){Qt(r)}},t.prototype.error=function(i){var e=this.partialObserver;if(e.error)try{e.error(i)}catch(r){Qt(r)}else Qt(i)},t.prototype.complete=function(){var i=this.partialObserver;if(i.complete)try{i.complete()}catch(e){Qt(e)}},t}(),pr=function(t){Ne(i,t);function i(e,r,n){var o=t.call(this)||this,s;return Me(e)||!e?s={next:e!=null?e:void 0,error:r!=null?r:void 0,complete:n!=null?n:void 0}:s=e,o.destination=new Pl(s),o}return i}(Jo);function Qt(t){Tl(t)}function Dl(t){throw t}var kl={closed:!0,next:Cn,error:Dl,complete:Cn},Ol=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Ml(t){return t}function Il(t){return t.length===0?Ml:t.length===1?t[0]:function(e){return t.reduce(function(r,n){return n(r)},e)}}var Tn=function(){function t(i){i&&(this._subscribe=i)}return t.prototype.lift=function(i){var e=new t;return e.source=this,e.operator=i,e},t.prototype.subscribe=function(i,e,r){var n=this,o=Hl(i)?i:new pr(i,e,r);return ai(function(){var s=n,a=s.operator,l=s.source;o.add(a?a.call(o,l):l?n._subscribe(o):n._trySubscribe(o))}),o},t.prototype._trySubscribe=function(i){try{return this._subscribe(i)}catch(e){i.error(e)}},t.prototype.forEach=function(i,e){var r=this;return e=Pn(e),new e(function(n,o){var s=new pr({next:function(a){try{i(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:n});r.subscribe(s)})},t.prototype._subscribe=function(i){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(i)},t.prototype[Ol]=function(){return this},t.prototype.pipe=function(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];return Il(i)(this)},t.prototype.toPromise=function(i){var e=this;return i=Pn(i),new i(function(r,n){var o;e.subscribe(function(s){return o=s},function(s){return n(s)},function(){return r(o)})})},t.create=function(i){return new t(i)},t}();function Pn(t){var i;return(i=t!=null?t:Al.Promise)!==null&&i!==void 0?i:Promise}function Nl(t){return t&&Me(t.next)&&Me(t.error)&&Me(t.complete)}function Hl(t){return t&&t instanceof Jo||Nl(t)&&Ko(t)}var Ll=qo(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Zo=function(t){Ne(i,t);function i(){var e=t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return i.prototype.lift=function(e){var r=new Dn(this,this);return r.operator=e,r},i.prototype._throwIfClosed=function(){if(this.closed)throw new Ll},i.prototype.next=function(e){var r=this;ai(function(){var n,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=dr(r.currentObservers),a=s.next();!a.done;a=s.next()){var l=a.value;l.next(e)}}catch(u){n={error:u}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}}})},i.prototype.error=function(e){var r=this;ai(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=e;for(var n=r.observers;n.length;)n.shift().error(e)}})},i.prototype.complete=function(){var e=this;ai(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var r=e.observers;r.length;)r.shift().complete()}})},i.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(i.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),i.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},i.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},i.prototype._innerSubscribe=function(e){var r=this,n=this,o=n.hasError,s=n.isStopped,a=n.observers;return o||s?Xo:(this.currentObservers=null,a.push(e),new Si(function(){r.currentObservers=null,fr(a,e)}))},i.prototype._checkFinalizedStatuses=function(e){var r=this,n=r.hasError,o=r.thrownError,s=r.isStopped;n?e.error(o):s&&e.complete()},i.prototype.asObservable=function(){var e=new Tn;return e.source=this,e},i.create=function(e,r){return new Dn(e,r)},i}(Tn),Dn=function(t){Ne(i,t);function i(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return i.prototype.next=function(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,e)},i.prototype.error=function(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,e)},i.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)},i.prototype._subscribe=function(e){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&n!==void 0?n:Xo},i}(Zo),Qo={now:function(){return(Qo.delegate||Date).now()},delegate:void 0},$l=function(t){Ne(i,t);function i(e,r,n){e===void 0&&(e=1/0),r===void 0&&(r=1/0),n===void 0&&(n=Qo);var o=t.call(this)||this;return o._bufferSize=e,o._windowTime=r,o._timestampProvider=n,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,e),o._windowTime=Math.max(1,r),o}return i.prototype.next=function(e){var r=this,n=r.isStopped,o=r._buffer,s=r._infiniteTimeWindow,a=r._timestampProvider,l=r._windowTime;n||(o.push(e),!s&&o.push(a.now()+l)),this._trimBuffer(),t.prototype.next.call(this,e)},i.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(e),n=this,o=n._infiniteTimeWindow,s=n._buffer,a=s.slice(),l=0;l<a.length&&!e.closed;l+=o?1:2)e.next(a[l]);return this._checkFinalizedStatuses(e),r},i.prototype._trimBuffer=function(){var e=this,r=e._bufferSize,n=e._timestampProvider,o=e._buffer,s=e._infiniteTimeWindow,a=(s?1:2)*r;if(r<1/0&&a<o.length&&o.splice(0,o.length-a),!s){for(var l=n.now(),u=0,c=1;c<o.length&&o[c]<=l;c+=2)u=c;u&&o.splice(0,u+1)}},i}(Zo);const kn=[],On={},Bl=(t,i=0)=>{if(kn.indexOf(t)==-1){const e=new $l(i);On[t]=e,kn.push(t)}return On[t]},et=[];function Fl(t,i){return{subscribe:Ai(t,i).subscribe}}function Ai(t,i=Ee){let e;const r=new Set;function n(a){if(Yo(t,a)&&(t=a,e)){const l=!et.length;for(const u of r)u[1](),et.push(u,t);if(l){for(let u=0;u<et.length;u+=2)et[u][0](et[u+1]);et.length=0}}}function o(a){n(a(t))}function s(a,l=Ee){const u=[a,l];return r.add(u),r.size===1&&(e=i(n,o)||Ee),a(t),()=>{r.delete(u),r.size===0&&e&&(e(),e=null)}}return{set:n,update:o,subscribe:s}}function yt(t,i,e){const r=!Array.isArray(t),n=r?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=i.length<2;return Fl(e,(s,a)=>{let l=!1;const u=[];let c=0,d=Ee;const h=()=>{if(c)return;d();const p=i(r?u[0]:u,s,a);o?s(p):d=Gr(p)?p:Ee},f=n.map((p,x)=>Go(p,T=>{u[x]=T,c&=~(1<<x),l&&h()},()=>{c|=1<<x}));return l=!0,h(),function(){bt(f),d(),l=!1}})}var Rl=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function es(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var zl=function(i){return Ul(i)&&!jl(i)};function Ul(t){return!!t&&typeof t=="object"}function jl(t){var i=Object.prototype.toString.call(t);return i==="[object RegExp]"||i==="[object Date]"||Gl(t)}var Vl=typeof Symbol=="function"&&Symbol.for,Yl=Vl?Symbol.for("react.element"):60103;function Gl(t){return t.$$typeof===Yl}function Wl(t){return Array.isArray(t)?[]:{}}function Ft(t,i){return i.clone!==!1&&i.isMergeableObject(t)?ct(Wl(t),t,i):t}function ql(t,i,e){return t.concat(i).map(function(r){return Ft(r,e)})}function Xl(t,i){if(!i.customMerge)return ct;var e=i.customMerge(t);return typeof e=="function"?e:ct}function Kl(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(i){return Object.propertyIsEnumerable.call(t,i)}):[]}function Mn(t){return Object.keys(t).concat(Kl(t))}function ts(t,i){try{return i in t}catch(e){return!1}}function Jl(t,i){return ts(t,i)&&!(Object.hasOwnProperty.call(t,i)&&Object.propertyIsEnumerable.call(t,i))}function Zl(t,i,e){var r={};return e.isMergeableObject(t)&&Mn(t).forEach(function(n){r[n]=Ft(t[n],e)}),Mn(i).forEach(function(n){Jl(t,n)||(ts(t,n)&&e.isMergeableObject(i[n])?r[n]=Xl(n,e)(t[n],i[n],e):r[n]=Ft(i[n],e))}),r}function ct(t,i,e){e=e||{},e.arrayMerge=e.arrayMerge||ql,e.isMergeableObject=e.isMergeableObject||zl,e.cloneUnlessOtherwiseSpecified=Ft;var r=Array.isArray(i),n=Array.isArray(t),o=r===n;return o?r?e.arrayMerge(t,i,e):Zl(t,i,e):Ft(i,e)}ct.all=function(i,e){if(!Array.isArray(i))throw new Error("first argument should be an array");return i.reduce(function(r,n){return ct(r,n,e)},{})};var Ql=ct,eu=Ql;const tu=es(eu);function Bi(t,i){var e=i&&i.cache?i.cache:lu,r=i&&i.serializer?i.serializer:su,n=i&&i.strategy?i.strategy:nu;return n(t,{cache:e,serializer:r})}function iu(t){return t==null||typeof t=="number"||typeof t=="boolean"}function ru(t,i,e,r){var n=iu(r)?r:e(r),o=i.get(n);return typeof o=="undefined"&&(o=t.call(this,r),i.set(n,o)),o}function is(t,i,e){var r=Array.prototype.slice.call(arguments,3),n=e(r),o=i.get(n);return typeof o=="undefined"&&(o=t.apply(this,r),i.set(n,o)),o}function rs(t,i,e,r,n){return e.bind(i,t,r,n)}function nu(t,i){var e=t.length===1?ru:is;return rs(t,this,e,i.cache.create(),i.serializer)}function ou(t,i){return rs(t,this,is,i.cache.create(),i.serializer)}var su=function(){return JSON.stringify(arguments)},au=function(){function t(){this.cache=Object.create(null)}return t.prototype.get=function(i){return this.cache[i]},t.prototype.set=function(i,e){this.cache[i]=e},t}(),lu={create:function(){return new au}},Fi={variadic:ou},k;(function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(k||(k={}));var W;(function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"})(W||(W={}));var dt;(function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"})(dt||(dt={}));function In(t){return t.type===W.literal}function uu(t){return t.type===W.argument}function ns(t){return t.type===W.number}function os(t){return t.type===W.date}function ss(t){return t.type===W.time}function as(t){return t.type===W.select}function ls(t){return t.type===W.plural}function cu(t){return t.type===W.pound}function us(t){return t.type===W.tag}function cs(t){return!!(t&&typeof t=="object"&&t.type===dt.number)}function mr(t){return!!(t&&typeof t=="object"&&t.type===dt.dateTime)}var ds=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,du=/(?:[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 hu(t){var i={};return t.replace(du,function(e){var r=e.length;switch(e[0]){case"G":i.era=r===4?"long":r===5?"narrow":"short";break;case"y":i.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":i.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":i.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":i.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][r-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][r-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][r-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][r-1];break;case"k":i.hourCycle="h24",i.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":i.minute=["numeric","2-digit"][r-1];break;case"s":i.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":i.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""}),i}var fu=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function pu(t){if(t.length===0)throw new Error("Number skeleton cannot be empty");for(var i=t.split(fu).filter(function(h){return h.length>0}),e=[],r=0,n=i;r<n.length;r++){var o=n[r],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],l=s.slice(1),u=0,c=l;u<c.length;u++){var d=c[u];if(d.length===0)throw new Error("Invalid number skeleton")}e.push({stem:a,options:l})}return e}function mu(t){return t.replace(/^(.*?)-/,"")}var Nn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,hs=/^(@+)?(\+|#+)?[rs]?$/g,_u=/(\*)(0+)|(#+)(0+)|(0+)/g,fs=/^(0+)$/;function Hn(t){var i={};return t[t.length-1]==="r"?i.roundingPriority="morePrecision":t[t.length-1]==="s"&&(i.roundingPriority="lessPrecision"),t.replace(hs,function(e,r,n){return typeof n!="string"?(i.minimumSignificantDigits=r.length,i.maximumSignificantDigits=r.length):n==="+"?i.minimumSignificantDigits=r.length:r[0]==="#"?i.maximumSignificantDigits=r.length:(i.minimumSignificantDigits=r.length,i.maximumSignificantDigits=r.length+(typeof n=="string"?n.length:0)),""}),i}function ps(t){switch(t){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 gu(t){var i;if(t[0]==="E"&&t[1]==="E"?(i={notation:"engineering"},t=t.slice(2)):t[0]==="E"&&(i={notation:"scientific"},t=t.slice(1)),i){var e=t.slice(0,2);if(e==="+!"?(i.signDisplay="always",t=t.slice(2)):e==="+?"&&(i.signDisplay="exceptZero",t=t.slice(2)),!fs.test(t))throw new Error("Malformed concise eng/scientific notation");i.minimumIntegerDigits=t.length}return i}function Ln(t){var i={},e=ps(t);return e||i}function bu(t){for(var i={},e=0,r=t;e<r.length;e++){var n=r[e];switch(n.stem){case"percent":case"%":i.style="percent";continue;case"%x100":i.style="percent",i.scale=100;continue;case"currency":i.style="currency",i.currency=n.options[0];continue;case"group-off":case",_":i.useGrouping=!1;continue;case"precision-integer":case".":i.maximumFractionDigits=0;continue;case"measure-unit":case"unit":i.style="unit",i.unit=mu(n.options[0]);continue;case"compact-short":case"K":i.notation="compact",i.compactDisplay="short";continue;case"compact-long":case"KK":i.notation="compact",i.compactDisplay="long";continue;case"scientific":i=R(R(R({},i),{notation:"scientific"}),n.options.reduce(function(l,u){return R(R({},l),Ln(u))},{}));continue;case"engineering":i=R(R(R({},i),{notation:"engineering"}),n.options.reduce(function(l,u){return R(R({},l),Ln(u))},{}));continue;case"notation-simple":i.notation="standard";continue;case"unit-width-narrow":i.currencyDisplay="narrowSymbol",i.unitDisplay="narrow";continue;case"unit-width-short":i.currencyDisplay="code",i.unitDisplay="short";continue;case"unit-width-full-name":i.currencyDisplay="name",i.unitDisplay="long";continue;case"unit-width-iso-code":i.currencyDisplay="symbol";continue;case"scale":i.scale=parseFloat(n.options[0]);continue;case"rounding-mode-floor":i.roundingMode="floor";continue;case"rounding-mode-ceiling":i.roundingMode="ceil";continue;case"rounding-mode-down":i.roundingMode="trunc";continue;case"rounding-mode-up":i.roundingMode="expand";continue;case"rounding-mode-half-even":i.roundingMode="halfEven";continue;case"rounding-mode-half-down":i.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":i.roundingMode="halfExpand";continue;case"integer-width":if(n.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(_u,function(l,u,c,d,h,f){if(u)i.minimumIntegerDigits=c.length;else{if(d&&h)throw new Error("We currently do not support maximum integer digits");if(f)throw new Error("We currently do not support exact integer digits")}return""});continue}if(fs.test(n.stem)){i.minimumIntegerDigits=n.stem.length;continue}if(Nn.test(n.stem)){if(n.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(Nn,function(l,u,c,d,h,f){return c==="*"?i.minimumFractionDigits=u.length:d&&d[0]==="#"?i.maximumFractionDigits=d.length:h&&f?(i.minimumFractionDigits=h.length,i.maximumFractionDigits=h.length+f.length):(i.minimumFractionDigits=u.length,i.maximumFractionDigits=u.length),""});var o=n.options[0];o==="w"?i=R(R({},i),{trailingZeroDisplay:"stripIfInteger"}):o&&(i=R(R({},i),Hn(o)));continue}if(hs.test(n.stem)){i=R(R({},i),Hn(n.stem));continue}var s=ps(n.stem);s&&(i=R(R({},i),s));var a=gu(n.stem);a&&(i=R(R({},i),a))}return i}var ei={"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 yu(t,i){for(var e="",r=0;r<t.length;r++){var n=t.charAt(r);if(n==="j"){for(var o=0;r+1<t.length&&t.charAt(r+1)===n;)o++,r++;var s=1+(o&1),a=o<2?1:3+(o>>1),l="a",u=vu(i);for((u=="H"||u=="k")&&(a=0);a-- >0;)e+=l;for(;s-- >0;)e=u+e}else n==="J"?e+="H":e+=n}return e}function vu(t){var i=t.hourCycle;if(i===void 0&&t.hourCycles&&t.hourCycles.length&&(i=t.hourCycles[0]),i)switch(i){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var e=t.language,r;e!=="root"&&(r=t.maximize().region);var n=ei[r||""]||ei[e||""]||ei["".concat(e,"-001")]||ei["001"];return n[0]}var Ri,xu=new RegExp("^".concat(ds.source,"*")),wu=new RegExp("".concat(ds.source,"*$"));function I(t,i){return{start:t,end:i}}var Eu=!!String.prototype.startsWith&&"_a".startsWith("a",1),Su=!!String.fromCodePoint,Au=!!Object.fromEntries,Cu=!!String.prototype.codePointAt,Tu=!!String.prototype.trimStart,Pu=!!String.prototype.trimEnd,Du=!!Number.isSafeInteger,ku=Du?Number.isSafeInteger:function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},_r=!0;try{var Ou=_s("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");_r=((Ri=Ou.exec("a"))===null||Ri===void 0?void 0:Ri[0])==="a"}catch(t){_r=!1}var $n=Eu?function(i,e,r){return i.startsWith(e,r)}:function(i,e,r){return i.slice(r,r+e.length)===e},gr=Su?String.fromCodePoint:function(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];for(var r="",n=i.length,o=0,s;n>o;){if(s=i[o++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},Bn=Au?Object.fromEntries:function(i){for(var e={},r=0,n=i;r<n.length;r++){var o=n[r],s=o[0],a=o[1];e[s]=a}return e},ms=Cu?function(i,e){return i.codePointAt(e)}:function(i,e){var r=i.length;if(!(e<0||e>=r)){var n=i.charCodeAt(e),o;return n<55296||n>56319||e+1===r||(o=i.charCodeAt(e+1))<56320||o>57343?n:(n-55296<<10)+(o-56320)+65536}},Mu=Tu?function(i){return i.trimStart()}:function(i){return i.replace(xu,"")},Iu=Pu?function(i){return i.trimEnd()}:function(i){return i.replace(wu,"")};function _s(t,i){return new RegExp(t,i)}var br;if(_r){var Fn=_s("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");br=function(i,e){var r;Fn.lastIndex=e;var n=Fn.exec(i);return(r=n[1])!==null&&r!==void 0?r:""}}else br=function(i,e){for(var r=[];;){var n=ms(i,e);if(n===void 0||gs(n)||$u(n))break;r.push(n),e+=n>=65536?2:1}return gr.apply(void 0,r)};var Nu=function(){function t(i,e){e===void 0&&(e={}),this.message=i,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 t.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(i,e,r){for(var n=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(i,r);if(s.err)return s;n.push(s.val)}else{if(o===125&&i>0)break;if(o===35&&(e==="plural"||e==="selectordinal")){var a=this.clonePosition();this.bump(),n.push({type:W.pound,location:I(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(k.UNMATCHED_CLOSING_TAG,I(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&yr(this.peek()||0)){var s=this.parseTag(i,e);if(s.err)return s;n.push(s.val)}else{var s=this.parseLiteral(i,e);if(s.err)return s;n.push(s.val)}}}return{val:n,err:null}},t.prototype.parseTag=function(i,e){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:W.literal,value:"<".concat(n,"/>"),location:I(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(i+1,e,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!yr(this.char()))return this.error(k.INVALID_TAG,I(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return n!==u?this.error(k.UNMATCHED_CLOSING_TAG,I(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:W.tag,value:n,children:s,location:I(r,this.clonePosition())},err:null}:this.error(k.INVALID_TAG,I(a,this.clonePosition())))}else return this.error(k.UNCLOSED_TAG,I(r,this.clonePosition()))}else return this.error(k.INVALID_TAG,I(r,this.clonePosition()))},t.prototype.parseTagName=function(){var i=this.offset();for(this.bump();!this.isEOF()&&Lu(this.char());)this.bump();return this.message.slice(i,this.offset())},t.prototype.parseLiteral=function(i,e){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(e);if(o){n+=o;continue}var s=this.tryParseUnquoted(i,e);if(s){n+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){n+=a;continue}break}var l=I(r,this.clonePosition());return{val:{type:W.literal,value:n,location:l},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Hu(this.peek()||0))?(this.bump(),"<"):null},t.prototype.tryParseQuote=function(i){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(i==="plural"||i==="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 gr.apply(void 0,e)},t.prototype.tryParseUnquoted=function(i,e){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(e==="plural"||e==="selectordinal")||r===125&&i>0?null:(this.bump(),gr(r))},t.prototype.parseArgument=function(i,e){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(k.EXPECT_ARGUMENT_CLOSING_BRACE,I(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(k.EMPTY_ARGUMENT,I(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(k.MALFORMED_ARGUMENT,I(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(k.EXPECT_ARGUMENT_CLOSING_BRACE,I(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:W.argument,value:n,location:I(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(k.EXPECT_ARGUMENT_CLOSING_BRACE,I(r,this.clonePosition())):this.parseArgumentOptions(i,e,n,r);default:return this.error(k.MALFORMED_ARGUMENT,I(r,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var i=this.clonePosition(),e=this.offset(),r=br(this.message,e),n=e+r.length;this.bumpTo(n);var o=this.clonePosition(),s=I(i,o);return{value:r,location:s}},t.prototype.parseArgumentOptions=function(i,e,r,n){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(k.EXPECT_ARGUMENT_TYPE,I(s,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var h=Iu(d.val);if(h.length===0)return this.error(k.EXPECT_ARGUMENT_STYLE,I(this.clonePosition(),this.clonePosition()));var f=I(c,this.clonePosition());u={style:h,styleLocation:f}}var p=this.tryParseArgumentClose(n);if(p.err)return p;var x=I(n,this.clonePosition());if(u&&$n(u==null?void 0:u.style,"::",0)){var T=Mu(u.style.slice(2));if(a==="number"){var d=this.parseNumberSkeletonFromString(T,u.styleLocation);return d.err?d:{val:{type:W.number,value:r,location:x,style:d.val},err:null}}else{if(T.length===0)return this.error(k.EXPECT_DATE_TIME_SKELETON,x);var O=T;this.locale&&(O=yu(T,this.locale));var h={type:dt.dateTime,pattern:O,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?hu(O):{}},D=a==="date"?W.date:W.time;return{val:{type:D,value:r,location:x,style:h},err:null}}}return{val:{type:a==="number"?W.number:a==="date"?W.date:W.time,value:r,location:x,style:(o=u==null?void 0:u.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var N=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(k.EXPECT_SELECT_ARGUMENT_OPTIONS,I(N,R({},N)));this.bumpSpace();var U=this.parseIdentifierIfPossible(),H=0;if(a!=="select"&&U.value==="offset"){if(!this.bumpIf(":"))return this.error(k.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,I(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(k.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,k.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),U=this.parseIdentifierIfPossible(),H=d.val}var Z=this.tryParsePluralOrSelectOptions(i,a,e,U);if(Z.err)return Z;var p=this.tryParseArgumentClose(n);if(p.err)return p;var he=I(n,this.clonePosition());return a==="select"?{val:{type:W.select,value:r,options:Bn(Z.val),location:he},err:null}:{val:{type:W.plural,value:r,options:Bn(Z.val),offset:H,pluralType:a==="plural"?"cardinal":"ordinal",location:he},err:null}}default:return this.error(k.INVALID_ARGUMENT_TYPE,I(s,l))}},t.prototype.tryParseArgumentClose=function(i){return this.isEOF()||this.char()!==125?this.error(k.EXPECT_ARGUMENT_CLOSING_BRACE,I(i,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var i=0,e=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(k.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,I(n,this.clonePosition()));this.bump();break}case 123:{i+=1,this.bump();break}case 125:{if(i>0)i-=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}},t.prototype.parseNumberSkeletonFromString=function(i,e){var r=[];try{r=pu(i)}catch(n){return this.error(k.INVALID_NUMBER_SKELETON,e)}return{val:{type:dt.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?bu(r):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(i,e,r,n){for(var o,s=!1,a=[],l=new Set,u=n.value,c=n.location;;){if(u.length===0){var d=this.clonePosition();if(e!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(k.EXPECT_PLURAL_ARGUMENT_SELECTOR,k.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;c=I(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(l.has(u))return this.error(e==="select"?k.DUPLICATE_SELECT_ARGUMENT_SELECTOR:k.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(s=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error(e==="select"?k.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:k.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,I(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(i+1,e,r);if(p.err)return p;var x=this.tryParseArgumentClose(f);if(x.err)return x;a.push([u,{value:p.val,location:I(f,this.clonePosition())}]),l.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,c=o.location}return a.length===0?this.error(e==="select"?k.EXPECT_SELECT_ARGUMENT_SELECTOR:k.EXPECT_PLURAL_ARGUMENT_SELECTOR,I(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(k.MISSING_OTHER_CLAUSE,I(this.clonePosition(),this.clonePosition())):{val:a,err:null}},t.prototype.tryParseDecimalInteger=function(i,e){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var l=I(n,this.clonePosition());return o?(s*=r,ku(s)?{val:s,err:null}:this.error(e,l)):this.error(i,l)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var i=this.position.offset;if(i>=this.message.length)throw Error("out of bound");var e=ms(this.message,i);if(e===void 0)throw Error("Offset ".concat(i," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(i,e){return{val:null,err:{kind:i,message:this.message,location:e}}},t.prototype.bump=function(){if(!this.isEOF()){var i=this.char();i===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=i<65536?1:2)}},t.prototype.bumpIf=function(i){if($n(this.message,i,this.offset())){for(var e=0;e<i.length;e++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(i){var e=this.offset(),r=this.message.indexOf(i,e);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(i){if(this.offset()>i)throw Error("targetOffset ".concat(i," must be greater than or equal to the current offset ").concat(this.offset()));for(i=Math.min(i,this.message.length);;){var e=this.offset();if(e===i)break;if(e>i)throw Error("targetOffset ".concat(i," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&gs(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var i=this.char(),e=this.offset(),r=this.message.charCodeAt(e+(i>=65536?2:1));return r!=null?r:null},t}();function yr(t){return t>=97&&t<=122||t>=65&&t<=90}function Hu(t){return yr(t)||t===47}function Lu(t){return t===45||t===46||t>=48&&t<=57||t===95||t>=97&&t<=122||t>=65&&t<=90||t==183||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function gs(t){return t>=9&&t<=13||t===32||t===133||t>=8206&&t<=8207||t===8232||t===8233}function $u(t){return t>=33&&t<=35||t===36||t>=37&&t<=39||t===40||t===41||t===42||t===43||t===44||t===45||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||t===91||t===92||t===93||t===94||t===96||t===123||t===124||t===125||t===126||t===161||t>=162&&t<=165||t===166||t===167||t===169||t===171||t===172||t===174||t===176||t===177||t===182||t===187||t===191||t===215||t===247||t>=8208&&t<=8213||t>=8214&&t<=8215||t===8216||t===8217||t===8218||t>=8219&&t<=8220||t===8221||t===8222||t===8223||t>=8224&&t<=8231||t>=8240&&t<=8248||t===8249||t===8250||t>=8251&&t<=8254||t>=8257&&t<=8259||t===8260||t===8261||t===8262||t>=8263&&t<=8273||t===8274||t===8275||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||t===8608||t>=8609&&t<=8610||t===8611||t>=8612&&t<=8613||t===8614||t>=8615&&t<=8621||t===8622||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||t===8658||t===8659||t===8660||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||t===8968||t===8969||t===8970||t===8971||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||t===9001||t===9002||t>=9003&&t<=9083||t===9084||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||t===9655||t>=9656&&t<=9664||t===9665||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||t===9839||t>=9840&&t<=10087||t===10088||t===10089||t===10090||t===10091||t===10092||t===10093||t===10094||t===10095||t===10096||t===10097||t===10098||t===10099||t===10100||t===10101||t>=10132&&t<=10175||t>=10176&&t<=10180||t===10181||t===10182||t>=10183&&t<=10213||t===10214||t===10215||t===10216||t===10217||t===10218||t===10219||t===10220||t===10221||t===10222||t===10223||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||t===10627||t===10628||t===10629||t===10630||t===10631||t===10632||t===10633||t===10634||t===10635||t===10636||t===10637||t===10638||t===10639||t===10640||t===10641||t===10642||t===10643||t===10644||t===10645||t===10646||t===10647||t===10648||t>=10649&&t<=10711||t===10712||t===10713||t===10714||t===10715||t>=10716&&t<=10747||t===10748||t===10749||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||t===11158||t>=11159&&t<=11263||t>=11776&&t<=11777||t===11778||t===11779||t===11780||t===11781||t>=11782&&t<=11784||t===11785||t===11786||t===11787||t===11788||t===11789||t>=11790&&t<=11798||t===11799||t>=11800&&t<=11801||t===11802||t===11803||t===11804||t===11805||t>=11806&&t<=11807||t===11808||t===11809||t===11810||t===11811||t===11812||t===11813||t===11814||t===11815||t===11816||t===11817||t>=11818&&t<=11822||t===11823||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||t===11840||t===11841||t===11842||t>=11843&&t<=11855||t>=11856&&t<=11857||t===11858||t>=11859&&t<=11903||t>=12289&&t<=12291||t===12296||t===12297||t===12298||t===12299||t===12300||t===12301||t===12302||t===12303||t===12304||t===12305||t>=12306&&t<=12307||t===12308||t===12309||t===12310||t===12311||t===12312||t===12313||t===12314||t===12315||t===12316||t===12317||t>=12318&&t<=12319||t===12320||t===12336||t===64830||t===64831||t>=65093&&t<=65094}function vr(t){t.forEach(function(i){if(delete i.location,as(i)||ls(i))for(var e in i.options)delete i.options[e].location,vr(i.options[e].value);else ns(i)&&cs(i.style)||(os(i)||ss(i))&&mr(i.style)?delete i.style.location:us(i)&&vr(i.children)})}function Bu(t,i){i===void 0&&(i={}),i=R({shouldParseSkeletons:!0,requiresOtherClause:!0},i);var e=new Nu(t,i).parse();if(e.err){var r=SyntaxError(k[e.err.kind]);throw r.location=e.err.location,r.originalMessage=e.err.message,r}return i!=null&&i.captureLocation||vr(e.val),e.val}var ht;(function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"})(ht||(ht={}));var Ci=function(t){Ne(i,t);function i(e,r,n){var o=t.call(this,e)||this;return o.code=r,o.originalMessage=n,o}return i.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},i}(Error),Rn=function(t){Ne(i,t);function i(e,r,n,o){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),ht.INVALID_VALUE,o)||this}return i}(Ci),Fu=function(t){Ne(i,t);function i(e,r,n){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(r),ht.INVALID_VALUE,n)||this}return i}(Ci),Ru=function(t){Ne(i,t);function i(e,r){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(r,'"'),ht.MISSING_VALUE,r)||this}return i}(Ci),ue;(function(t){t[t.literal=0]="literal",t[t.object=1]="object"})(ue||(ue={}));function zu(t){return t.length<2?t:t.reduce(function(i,e){var r=i[i.length-1];return!r||r.type!==ue.literal||e.type!==ue.literal?i.push(e):r.value+=e.value,i},[])}function Uu(t){return typeof t=="function"}function li(t,i,e,r,n,o,s){if(t.length===1&&In(t[0]))return[{type:ue.literal,value:t[0].value}];for(var a=[],l=0,u=t;l<u.length;l++){var c=u[l];if(In(c)){a.push({type:ue.literal,value:c.value});continue}if(cu(c)){typeof o=="number"&&a.push({type:ue.literal,value:e.getNumberFormat(i).format(o)});continue}var d=c.value;if(!(n&&d in n))throw new Ru(d,s);var h=n[d];if(uu(c)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),a.push({type:typeof h=="string"?ue.literal:ue.object,value:h});continue}if(os(c)){var f=typeof c.style=="string"?r.date[c.style]:mr(c.style)?c.style.parsedOptions:void 0;a.push({type:ue.literal,value:e.getDateTimeFormat(i,f).format(h)});continue}if(ss(c)){var f=typeof c.style=="string"?r.time[c.style]:mr(c.style)?c.style.parsedOptions:r.time.medium;a.push({type:ue.literal,value:e.getDateTimeFormat(i,f).format(h)});continue}if(ns(c)){var f=typeof c.style=="string"?r.number[c.style]:cs(c.style)?c.style.parsedOptions:void 0;f&&f.scale&&(h=h*(f.scale||1)),a.push({type:ue.literal,value:e.getNumberFormat(i,f).format(h)});continue}if(us(c)){var p=c.children,x=c.value,T=n[x];if(!Uu(T))throw new Fu(x,"function",s);var O=li(p,i,e,r,n,o),D=T(O.map(function(H){return H.value}));Array.isArray(D)||(D=[D]),a.push.apply(a,D.map(function(H){return{type:typeof H=="string"?ue.literal:ue.object,value:H}}))}if(as(c)){var N=c.options[h]||c.options.other;if(!N)throw new Rn(c.value,h,Object.keys(c.options),s);a.push.apply(a,li(N.value,i,e,r,n));continue}if(ls(c)){var N=c.options["=".concat(h)];if(!N){if(!Intl.PluralRules)throw new Ci(`Intl.PluralRules is not available in this environment.
4
+ Try polyfilling it using "@formatjs/intl-pluralrules"
5
+ `,ht.MISSING_INTL_API,s);var U=e.getPluralRules(i,{type:c.pluralType}).select(h-(c.offset||0));N=c.options[U]||c.options.other}if(!N)throw new Rn(c.value,h,Object.keys(c.options),s);a.push.apply(a,li(N.value,i,e,r,n,h-(c.offset||0)));continue}}return zu(a)}function ju(t,i){return i?R(R(R({},t||{}),i||{}),Object.keys(t).reduce(function(e,r){return e[r]=R(R({},t[r]),i[r]||{}),e},{})):t}function Vu(t,i){return i?Object.keys(t).reduce(function(e,r){return e[r]=ju(t[r],i[r]),e},R({},t)):t}function zi(t){return{create:function(){return{get:function(i){return t[i]},set:function(i,e){t[i]=e}}}}}function Yu(t){return t===void 0&&(t={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Bi(function(){for(var i,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((i=Intl.NumberFormat).bind.apply(i,ot([void 0],e,!1)))},{cache:zi(t.number),strategy:Fi.variadic}),getDateTimeFormat:Bi(function(){for(var i,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((i=Intl.DateTimeFormat).bind.apply(i,ot([void 0],e,!1)))},{cache:zi(t.dateTime),strategy:Fi.variadic}),getPluralRules:Bi(function(){for(var i,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((i=Intl.PluralRules).bind.apply(i,ot([void 0],e,!1)))},{cache:zi(t.pluralRules),strategy:Fi.variadic})}}var Gu=function(){function t(i,e,r,n){e===void 0&&(e=t.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=o.formatToParts(l);if(u.length===1)return u[0].value;var c=u.reduce(function(d,h){return!d.length||h.type!==ue.literal||typeof d[d.length-1]!="string"?d.push(h.value):d[d.length-1]+=h.value,d},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(l){return li(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=t.resolveLocale(e),typeof i=="string"){if(this.message=i,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=n||{};s.formatters;var a=Sl(s,["formatters"]);this.ast=t.__parse(i,R(R({},a),{locale:this.resolvedLocale}))}else this.ast=i;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Vu(t.formats,r),this.formatters=n&&n.formatters||Yu(this.formatterCache)}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(i){if(typeof Intl.Locale!="undefined"){var e=Intl.NumberFormat.supportedLocalesOf(i);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale(typeof i=="string"?i:i[0])}},t.__parse=Bu,t.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"}}},t}();function Wu(t,i){if(i==null)return;if(i in t)return t[i];const e=i.split(".");let r=t;for(let n=0;n<e.length;n++)if(typeof r=="object"){if(n>0){const o=e.slice(n,e.length).join(".");if(o in r){r=r[o];break}}r=r[e[n]]}else r=void 0;return r}const Le={},qu=(t,i,e)=>e&&(i in Le||(Le[i]={}),t in Le[i]||(Le[i][t]=e),e),bs=(t,i)=>{if(i==null)return;if(i in Le&&t in Le[i])return Le[i][t];const e=Ti(i);for(let r=0;r<e.length;r++){const n=e[r],o=Ku(n,t);if(o)return qu(t,i,o)}};let Wr;const Kt=Ai({});function Xu(t){return Wr[t]||null}function ys(t){return t in Wr}function Ku(t,i){if(!ys(t))return null;const e=Xu(t);return Wu(e,i)}function Ju(t){if(t==null)return;const i=Ti(t);for(let e=0;e<i.length;e++){const r=i[e];if(ys(r))return r}}function vs(t,...i){delete Le[t],Kt.update(e=>(e[t]=tu.all([e[t]||{},...i]),e))}yt([Kt],([t])=>Object.keys(t));Kt.subscribe(t=>Wr=t);const ui={};function Zu(t,i){ui[t].delete(i),ui[t].size===0&&delete ui[t]}function xs(t){return ui[t]}function Qu(t){return Ti(t).map(i=>{const e=xs(i);return[i,e?[...e]:[]]}).filter(([,i])=>i.length>0)}function xr(t){return t==null?!1:Ti(t).some(i=>{var e;return(e=xs(i))==null?void 0:e.size})}function ec(t,i){return Promise.all(i.map(r=>(Zu(t,r),r().then(n=>n.default||n)))).then(r=>vs(t,...r))}const Ct={};function ws(t){if(!xr(t))return t in Ct?Ct[t]:Promise.resolve();const i=Qu(t);return Ct[t]=Promise.all(i.map(([e,r])=>ec(e,r))).then(()=>{if(xr(t))return ws(t);delete Ct[t]}),Ct[t]}const tc={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"}}},ic={fallbackLocale:null,loadingDelay:200,formats:tc,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},rc=ic;function ft(){return rc}const Ui=Ai(!1);var nc=Object.defineProperty,oc=Object.defineProperties,sc=Object.getOwnPropertyDescriptors,zn=Object.getOwnPropertySymbols,ac=Object.prototype.hasOwnProperty,lc=Object.prototype.propertyIsEnumerable,Un=(t,i,e)=>i in t?nc(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,uc=(t,i)=>{for(var e in i||(i={}))ac.call(i,e)&&Un(t,e,i[e]);if(zn)for(var e of zn(i))lc.call(i,e)&&Un(t,e,i[e]);return t},cc=(t,i)=>oc(t,sc(i));let wr;const pi=Ai(null);function jn(t){return t.split("-").map((i,e,r)=>r.slice(0,e+1).join("-")).reverse()}function Ti(t,i=ft().fallbackLocale){const e=jn(t);return i?[...new Set([...e,...jn(i)])]:e}function qe(){return wr!=null?wr:void 0}pi.subscribe(t=>{wr=t!=null?t:void 0,typeof window!="undefined"&&t!=null&&document.documentElement.setAttribute("lang",t)});const dc=t=>{if(t&&Ju(t)&&xr(t)){const{loadingDelay:i}=ft();let e;return typeof window!="undefined"&&qe()!=null&&i?e=window.setTimeout(()=>Ui.set(!0),i):Ui.set(!0),ws(t).then(()=>{pi.set(t)}).finally(()=>{clearTimeout(e),Ui.set(!1)})}return pi.set(t)},vt=cc(uc({},pi),{set:dc}),Pi=t=>{const i=Object.create(null);return r=>{const n=JSON.stringify(r);return n in i?i[n]:i[n]=t(r)}};var hc=Object.defineProperty,mi=Object.getOwnPropertySymbols,Es=Object.prototype.hasOwnProperty,Ss=Object.prototype.propertyIsEnumerable,Vn=(t,i,e)=>i in t?hc(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,qr=(t,i)=>{for(var e in i||(i={}))Es.call(i,e)&&Vn(t,e,i[e]);if(mi)for(var e of mi(i))Ss.call(i,e)&&Vn(t,e,i[e]);return t},xt=(t,i)=>{var e={};for(var r in t)Es.call(t,r)&&i.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&mi)for(var r of mi(t))i.indexOf(r)<0&&Ss.call(t,r)&&(e[r]=t[r]);return e};const Rt=(t,i)=>{const{formats:e}=ft();if(t in e&&i in e[t])return e[t][i];throw new Error(`[svelte-i18n] Unknown "${i}" ${t} format.`)},fc=Pi(t=>{var i=t,{locale:e,format:r}=i,n=xt(i,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(n=Rt("number",r)),new Intl.NumberFormat(e,n)}),pc=Pi(t=>{var i=t,{locale:e,format:r}=i,n=xt(i,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?n=Rt("date",r):Object.keys(n).length===0&&(n=Rt("date","short")),new Intl.DateTimeFormat(e,n)}),mc=Pi(t=>{var i=t,{locale:e,format:r}=i,n=xt(i,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?n=Rt("time",r):Object.keys(n).length===0&&(n=Rt("time","short")),new Intl.DateTimeFormat(e,n)}),_c=(t={})=>{var i=t,{locale:e=qe()}=i,r=xt(i,["locale"]);return fc(qr({locale:e},r))},gc=(t={})=>{var i=t,{locale:e=qe()}=i,r=xt(i,["locale"]);return pc(qr({locale:e},r))},bc=(t={})=>{var i=t,{locale:e=qe()}=i,r=xt(i,["locale"]);return mc(qr({locale:e},r))},yc=Pi((t,i=qe())=>new Gu(t,i,ft().formats,{ignoreTag:ft().ignoreTag})),vc=(t,i={})=>{var e,r,n,o;let s=i;typeof t=="object"&&(s=t,t=s.id);const{values:a,locale:l=qe(),default:u}=s;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=bs(t,l);if(!c)c=(o=(n=(r=(e=ft()).handleMissingMessage)==null?void 0:r.call(e,{locale:l,id:t,defaultValue:u}))!=null?n:u)!=null?o:t;else if(typeof c!="string")return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c;if(!a)return c;let d=c;try{d=yc(c,l).format(a)}catch(h){h instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,h.message)}return d},xc=(t,i)=>bc(i).format(t),wc=(t,i)=>gc(i).format(t),Ec=(t,i)=>_c(i).format(t),Sc=(t,i=qe())=>bs(t,i),Ac=yt([vt,Kt],()=>vc);yt([vt],()=>xc);yt([vt],()=>wc);yt([vt],()=>Ec);yt([vt,Kt],()=>Sc);window.emWidgets={topic:Bl};const Cc=t=>t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";var As={exports:{}};(function(t,i){(function(e,r){t.exports=r()})(Rl,function(){var e=1e3,r=6e4,n=36e5,o="millisecond",s="second",a="minute",l="hour",u="day",c="week",d="month",h="quarter",f="year",p="date",x="Invalid Date",T=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,O=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,D={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(w){var g=["th","st","nd","rd"],m=w%100;return"["+w+(g[(m-20)%10]||g[m]||g[0])+"]"}},N=function(w,g,m){var b=String(w);return!b||b.length>=g?w:""+Array(g+1-b.length).join(m)+w},U={s:N,z:function(w){var g=-w.utcOffset(),m=Math.abs(g),b=Math.floor(m/60),_=m%60;return(g<=0?"+":"-")+N(b,2,"0")+":"+N(_,2,"0")},m:function w(g,m){if(g.date()<m.date())return-w(m,g);var b=12*(m.year()-g.year())+(m.month()-g.month()),_=g.clone().add(b,d),S=m-_<0,E=g.clone().add(b+(S?-1:1),d);return+(-(b+(m-_)/(S?_-E:E-_))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:d,y:f,w:c,d:u,D:p,h:l,m:a,s,ms:o,Q:h}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},H="en",Z={};Z[H]=D;var he="$isDayjsObject",pe=function(w){return w instanceof se||!(!w||!w[he])},me=function w(g,m,b){var _;if(!g)return H;if(typeof g=="string"){var S=g.toLowerCase();Z[S]&&(_=S),m&&(Z[S]=m,_=S);var E=g.split("-");if(!_&&E.length>1)return w(E[0])}else{var M=g.name;Z[M]=g,_=M}return!b&&_&&(H=_),_||!b&&H},L=function(w,g){if(pe(w))return w.clone();var m=typeof g=="object"?g:{};return m.date=w,m.args=arguments,new se(m)},P=U;P.l=me,P.i=pe,P.w=function(w,g){return L(w,{locale:g.$L,utc:g.$u,x:g.$x,$offset:g.$offset})};var se=function(){function w(m){this.$L=me(m.locale,null,!0),this.parse(m),this.$x=this.$x||m.x||{},this[he]=!0}var g=w.prototype;return g.parse=function(m){this.$d=function(b){var _=b.date,S=b.utc;if(_===null)return new Date(NaN);if(P.u(_))return new Date;if(_ instanceof Date)return new Date(_);if(typeof _=="string"&&!/Z$/i.test(_)){var E=_.match(T);if(E){var M=E[2]-1||0,j=(E[7]||"0").substring(0,3);return S?new Date(Date.UTC(E[1],M,E[3]||1,E[4]||0,E[5]||0,E[6]||0,j)):new Date(E[1],M,E[3]||1,E[4]||0,E[5]||0,E[6]||0,j)}}return new Date(_)}(m),this.init()},g.init=function(){var m=this.$d;this.$y=m.getFullYear(),this.$M=m.getMonth(),this.$D=m.getDate(),this.$W=m.getDay(),this.$H=m.getHours(),this.$m=m.getMinutes(),this.$s=m.getSeconds(),this.$ms=m.getMilliseconds()},g.$utils=function(){return P},g.isValid=function(){return this.$d.toString()!==x},g.isSame=function(m,b){var _=L(m);return this.startOf(b)<=_&&_<=this.endOf(b)},g.isAfter=function(m,b){return L(m)<this.startOf(b)},g.isBefore=function(m,b){return this.endOf(b)<L(m)},g.$g=function(m,b,_){return P.u(m)?this[b]:this.set(_,m)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(m,b){var _=this,S=!!P.u(b)||b,E=P.p(m),M=function(oe,B){var G=P.w(_.$u?Date.UTC(_.$y,B,oe):new Date(_.$y,B,oe),_);return S?G:G.endOf(u)},j=function(oe,B){return P.w(_.toDate()[oe].apply(_.toDate("s"),(S?[0,0,0,0]:[23,59,59,999]).slice(B)),_)},Y=this.$W,q=this.$M,ie=this.$D,_e="set"+(this.$u?"UTC":"");switch(E){case f:return S?M(1,0):M(31,11);case d:return S?M(1,q):M(0,q+1);case c:var ge=this.$locale().weekStart||0,ae=(Y<ge?Y+7:Y)-ge;return M(S?ie-ae:ie+(6-ae),q);case u:case p:return j(_e+"Hours",0);case l:return j(_e+"Minutes",1);case a:return j(_e+"Seconds",2);case s:return j(_e+"Milliseconds",3);default:return this.clone()}},g.endOf=function(m){return this.startOf(m,!1)},g.$set=function(m,b){var _,S=P.p(m),E="set"+(this.$u?"UTC":""),M=(_={},_[u]=E+"Date",_[p]=E+"Date",_[d]=E+"Month",_[f]=E+"FullYear",_[l]=E+"Hours",_[a]=E+"Minutes",_[s]=E+"Seconds",_[o]=E+"Milliseconds",_)[S],j=S===u?this.$D+(b-this.$W):b;if(S===d||S===f){var Y=this.clone().set(p,1);Y.$d[M](j),Y.init(),this.$d=Y.set(p,Math.min(this.$D,Y.daysInMonth())).$d}else M&&this.$d[M](j);return this.init(),this},g.set=function(m,b){return this.clone().$set(m,b)},g.get=function(m){return this[P.p(m)]()},g.add=function(m,b){var _,S=this;m=Number(m);var E=P.p(b),M=function(q){var ie=L(S);return P.w(ie.date(ie.date()+Math.round(q*m)),S)};if(E===d)return this.set(d,this.$M+m);if(E===f)return this.set(f,this.$y+m);if(E===u)return M(1);if(E===c)return M(7);var j=(_={},_[a]=r,_[l]=n,_[s]=e,_)[E]||1,Y=this.$d.getTime()+m*j;return P.w(Y,this)},g.subtract=function(m,b){return this.add(-1*m,b)},g.format=function(m){var b=this,_=this.$locale();if(!this.isValid())return _.invalidDate||x;var S=m||"YYYY-MM-DDTHH:mm:ssZ",E=P.z(this),M=this.$H,j=this.$m,Y=this.$M,q=_.weekdays,ie=_.months,_e=_.meridiem,ge=function(B,G,y,X){return B&&(B[G]||B(b,S))||y[G].slice(0,X)},ae=function(B){return P.s(M%12||12,B,"0")},oe=_e||function(B,G,y){var X=B<12?"AM":"PM";return y?X.toLowerCase():X};return S.replace(O,function(B,G){return G||function(y){switch(y){case"YY":return String(b.$y).slice(-2);case"YYYY":return P.s(b.$y,4,"0");case"M":return Y+1;case"MM":return P.s(Y+1,2,"0");case"MMM":return ge(_.monthsShort,Y,ie,3);case"MMMM":return ge(ie,Y);case"D":return b.$D;case"DD":return P.s(b.$D,2,"0");case"d":return String(b.$W);case"dd":return ge(_.weekdaysMin,b.$W,q,2);case"ddd":return ge(_.weekdaysShort,b.$W,q,3);case"dddd":return q[b.$W];case"H":return String(M);case"HH":return P.s(M,2,"0");case"h":return ae(1);case"hh":return ae(2);case"a":return oe(M,j,!0);case"A":return oe(M,j,!1);case"m":return String(j);case"mm":return P.s(j,2,"0");case"s":return String(b.$s);case"ss":return P.s(b.$s,2,"0");case"SSS":return P.s(b.$ms,3,"0");case"Z":return E}return null}(B)||E.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(m,b,_){var S,E=this,M=P.p(b),j=L(m),Y=(j.utcOffset()-this.utcOffset())*r,q=this-j,ie=function(){return P.m(E,j)};switch(M){case f:S=ie()/12;break;case d:S=ie();break;case h:S=ie()/3;break;case c:S=(q-Y)/6048e5;break;case u:S=(q-Y)/864e5;break;case l:S=q/n;break;case a:S=q/r;break;case s:S=q/e;break;default:S=q}return _?S:P.a(S)},g.daysInMonth=function(){return this.endOf(d).$D},g.$locale=function(){return Z[this.$L]},g.locale=function(m,b){if(!m)return this.$L;var _=this.clone(),S=me(m,b,!0);return S&&(_.$L=S),_},g.clone=function(){return P.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},w}(),ze=se.prototype;return L.prototype=ze,[["$ms",o],["$s",s],["$m",a],["$H",l],["$W",u],["$M",d],["$y",f],["$D",p]].forEach(function(w){ze[w[1]]=function(g){return this.$g(g,w[0],w[1])}}),L.extend=function(w,g){return w.$i||(w(g,se,L),w.$i=!0),L},L.locale=me,L.isDayjs=pe,L.unix=function(w){return L(1e3*w)},L.en=Z[H],L.Ls=Z,L.p={},L})})(As);var Tc=As.exports;const ji=es(Tc);function Yn(t,i){vs(t,i)}function Pc(t){vt.set(t)}const Gn={en:{titleSelfExclusion:"Self-Exclusion",selfExclusionText:"<p>While self-excluded, access to your account will be entirely restricted.</br>Self-exclusion can only be lifted after the period that you selected has passed by communicating with Customer Support, which will be subject to review and a cooling-off period. </br> Alternatively, you can choose to take a 'time out' (a break of up to 6 weeks) from our services via the '<a href='{baseurl}/{lang}/account/timeout'>Time out</a>' option. </br> If you would prefer just to close your account, '<a href='{baseurl}/{lang}/account/account-closure'>Account Closure</a>' you can choose to do so via the option.</br> We'd recommend you also read our '<a href='{baseurl}/{lang}/page/responsible-gambling'>Responsible Gambling</a>' help pages for further advice should you need it.",selfExclusionEmailText:"E-mail:",duration:"Duration:",dateInstructions:"In order to manually input date use the following format:",forever:"Forever",save:"Save",noPeriodSelected:"Please select a self exclusion period",selectAPeriod:"Select a period",temporarySelfExclusion:"Your self-exclusion period will last until the {date} 23:59.",permanentSelfExclusion:"Your self-exclusion period will be permanent.",SelfExclusionFor30Days:"30 Days",SelfExclusionFor6Months:"6 Months",SelfExclusionFor1Year:"1 Year",SelfExclusionFor5Years:"5 Years",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Until",confirmationModalTitle:"Confirmation",confirmationModalTextPeriod:"Are you sure you want to self-exclude for {period}?",confirmationModalTextUntil:"Are you sure you want to self-exclude until {date}?"},"zh-hk":{titleSelfExclusion:"自我排除",selfExclusionText:"<p>在自我排除期間,您的帳戶將完全受到限制。</br> 自我排除僅可在您選擇的期間結束後,通過與客戶支援聯繫進行解除,並將接受審查和冷靜期。</br> 或者,您可以選擇通過'<a href='{baseurl}/{lang}/account/timeout'>暫停</a>'選項從我們的服務中暫停(最多6週)。</br> 如果您更願意關閉帳戶,可以通過'<a href='{baseurl}/{lang}/account/account-closure'>關閉帳戶</a>'選項進行關閉。</br> 我們建議您閱讀我們的'<a href='{baseurl}/{lang}/page/responsible-gambling'>負責任博彩</a>'幫助頁面以獲取進一步的建議。</p>",selfExclusionEmailText:"電子郵件:",duration:"時長:",dateInstructions:"如需手動輸入日期,請使用以下格式:",forever:"永久",save:"保存",noPeriodSelected:"請選擇自我排除時段",selectAPeriod:"選擇一個時段",temporarySelfExclusion:"您的自我排除期將持續到 {date} 23:59。",permanentSelfExclusion:"您的自我排除期將是永久性的。",SelfExclusionFor30Days:"30天",SelfExclusionFor6Months:"6個月",SelfExclusionFor1Year:"1年",SelfExclusionFor5Years:"5年",SelfExclusionPermanent:"永久",SelfExclusionUntilSelectedDate:"直到",confirmationModalTitle:"確認",confirmationModalTextPeriod:"您確定要自我排除 {period} 嗎?",confirmationModalTextUntil:"您確定要自我排除直到 {date} 嗎?"},fr:{titleSelfExclusion:"Auto-Exclusion",selfExclusionText:"<p>Pendant la période d'auto-exclusion, l'accès à votre compte sera entièrement restreint.</br> L'auto-exclusion ne peut être levée qu'après la période que vous avez sélectionnée et en contactant le Service Client, sous réserve d'une révision et d'une période de réflexion.</br> Alternativement, vous pouvez choisir de prendre un '<a href='{baseurl}/{lang}/account/timeout'>temps de pause</a>' (jusqu'à 6 semaines) via l'option correspondante.</br> Si vous préférez simplement fermer votre compte, vous pouvez le faire via l'option '<a href='{baseurl}/{lang}/account/account-closure'>Fermeture de compte</a>'.</br> Nous vous recommandons également de consulter nos pages d'aide '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jeu Responsable</a>' pour des conseils supplémentaires si nécessaire.</p>",selfExclusionEmailText:"E-mail :",duration:"Durée :",dateInstructions:"Pour saisir une date manuellement, utilisez le format suivant :",forever:"Pour toujours",save:"Enregistrer",noPeriodSelected:"Veuillez sélectionner une période d'auto-exclusion",selectAPeriod:"Sélectionnez une période",temporarySelfExclusion:"Votre période d'auto-exclusion durera jusqu'au {date} 23:59.",permanentSelfExclusion:"Votre période d'auto-exclusion sera permanente.",SelfExclusionFor30Days:"30 Jours",SelfExclusionFor6Months:"6 Mois",SelfExclusionFor1Year:"1 An",SelfExclusionFor5Years:"5 Ans",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Jusqu'à",confirmationModalTitle:"Confirmation",confirmationModalTextPeriod:"Êtes-vous sûr de vouloir vous auto-exclure pour {period} ?",confirmationModalTextUntil:"Êtes-vous sûr de vouloir vous auto-exclure jusqu'au {date} ?"},ro:{titleSelfExclusion:"Auto-Excludere",selfExclusionText:"<p>În timpul perioadei de autoexcludere, accesul la contul dvs. va fi complet restricționat.</br> Autoexcluderea poate fi ridicată numai după ce perioada selectată de dvs. a expirat, contactând Suportul Clienți, și va fi supusă unei revizuiri și unei perioade de reflecție.</br> Alternativ, puteți alege să luați o '<a href='{baseurl}/{lang}/account/timeout'>pauză</a>' (o întrerupere de până la 6 săptămâni) prin opțiunea corespunzătoare.</br> Dacă preferați să vă închideți contul, puteți face acest lucru prin opțiunea '<a href='{baseurl}/{lang}/account/account-closure'>Închidere cont</a>'.</br> Vă recomandăm, de asemenea, să consultați paginile noastre de ajutor '<a href='{baseurl}/{lang}/page/responsible-gambling'>Joc Responsabil</a>' pentru sfaturi suplimentare, dacă este necesar.</p>",selfExclusionEmailText:"E-mail:",duration:"Durată:",dateInstructions:"Pentru a introduce manual o dată, utilizați următorul format:",forever:"Pentru totdeauna",save:"Salvează",noPeriodSelected:"Vă rugăm să selectați o perioadă de auto-excludere",selectAPeriod:"Selectați o perioadă",temporarySelfExclusion:"Perioada dvs. de auto-excludere va dura până la {date} 23:59.",permanentSelfExclusion:"Perioada dvs. de auto-excludere va fi permanentă.",SelfExclusionFor30Days:"30 de Zile",SelfExclusionFor6Months:"6 Luni",SelfExclusionFor1Year:"1 An",SelfExclusionFor5Years:"5 Ani",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Până la",confirmationModalTitle:"Confirmare",confirmationModalTextPeriod:"Sunteți sigur că doriți să vă auto-excludeți pentru {period}?",confirmationModalTextUntil:"Sunteți sigur că doriți să vă auto-excludeți până la {date}?"},es:{titleSelfExclusion:"Autoexclusión",selfExclusionText:"<p>Mientras esté autoexcluido, el acceso a su cuenta estará completamente restringido.</br> La autoexclusión solo se puede levantar después de que haya pasado el período seleccionado, comunicándose con Atención al Cliente, sujeto a una revisión y un período de enfriamiento.</br> Alternativamente, puede optar por tomarse un '<a href='{baseurl}/{lang}/account/timeout'>descanso</a>' (un descanso de hasta 6 semanas) a través de la opción correspondiente.</br> Si prefiere cerrar su cuenta, puede hacerlo a través de la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de Cuenta</a>'.</br> También le recomendamos que lea nuestras páginas de ayuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si los necesita.</p>",selfExclusionEmailText:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} a las 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor30Days:"30 Días",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Año",SelfExclusionFor5Years:"5 Años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta",confirmationModalTitle:"Confirmación",confirmationModalTextPeriod:"¿Estás seguro de que deseas autoexcluirte por {period}?",confirmationModalTextUntil:"¿Estás seguro de que deseas autoexcluirte hasta {date}?"},pt:{titleSelfExclusion:"Autoexclusão",selfExclusionText:"<p>Durante o período de autoexclusão, o acesso à sua conta estará totalmente restrito.</br> A autoexclusão só pode ser levantada após o término do período selecionado, entrando em contato com o Suporte ao Cliente, sujeito a uma revisão e a um período de reflexão.</br> Alternativamente, você pode optar por fazer uma '<a href='{baseurl}/{lang}/account/timeout'>pausa</a>' (um intervalo de até 6 semanas) através da opção correspondente.</br> Se preferir encerrar a sua conta, pode fazê-lo através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br> Recomendamos também que leia as nossas páginas de ajuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, caso necessite.</p>",selfExclusionEmailText:"E-mail:",duration:"Duração:",dateInstructions:"Para introduzir manualmente a data, utilize o seguinte formato:",forever:"Para sempre",save:"Guardar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"O seu período de autoexclusão durará até às {date} 23:59.",permanentSelfExclusion:"O seu período de autoexclusão será permanente.",SelfExclusionFor30Days:"30 Dias",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Ano",SelfExclusionFor5Years:"5 Anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até",confirmationModalTitle:"Confirmação",confirmationModalTextPeriod:"Tem a certeza de que deseja autoexcluir-se por {period}?",confirmationModalTextUntil:"Tem a certeza de que deseja autoexcluir-se até {date}?"},hr:{titleSelfExclusion:"Samoisključenje",selfExclusionText:"<p>Tijekom razdoblja samoisključenja, pristup vašem računu bit će potpuno ograničen.</br> Samoisključenje se može ukinuti tek nakon što istekne razdoblje koje ste odabrali, uz kontaktiranje Korisničke podrške, uz reviziju i razdoblje hlađenja.</br> Alternativno, možete odabrati '<a href='{baseurl}/{lang}/account/timeout'>stanku</a>' (pauzu do 6 tjedana) putem odgovarajuće opcije.</br> Ako radije želite zatvoriti svoj račun, to možete učiniti putem opcije '<a href='{baseurl}/{lang}/account/account-closure'>Zatvaranje računa</a>'.</br> Također vam preporučujemo da pročitate naše stranice s pomoći o '<a href='{baseurl}/{lang}/page/responsible-gambling'>Odgovorno kockanje</a>' za dodatne savjete, ako su vam potrebni.</p>",selfExclusionEmailText:"E-mail:",duration:"Trajanje:",dateInstructions:"Za ručni unos datuma koristite sljedeći format:",forever:"Zauvijek",save:"Spremi",noPeriodSelected:"Molimo odaberite razdoblje samoisključenja",selectAPeriod:"Odaberite razdoblje",temporarySelfExclusion:"Vaše razdoblje samoisključenja trajat će do {date} 23:59.",permanentSelfExclusion:"Vaše razdoblje samoisključenja bit će trajno.",SelfExclusionFor30Days:"30 Dana",SelfExclusionFor6Months:"6 Mjeseci",SelfExclusionFor1Year:"1 Godina",SelfExclusionFor5Years:"5 Godina",SelfExclusionPermanent:"Trajno",SelfExclusionUntilSelectedDate:"Do",confirmationModalTitle:"Potvrda",confirmationModalTextPeriod:"Jeste li sigurni da se želite samoisključiti na {period}?",confirmationModalTextUntil:"Jeste li sigurni da se želite samoisključiti do {date}?"},"pt-br":{titleSelfExclusion:"Autoexclusão",selfExclusionText:"<p>Durante o período de autoexclusão, o acesso à sua conta será completamente restrito.</br> A autoexclusão só pode ser removida após o término do período selecionado, entrando em contato com o Suporte ao Cliente, sujeito a revisão e a um período de reflexão.</br> Alternativamente, você pode optar por fazer um '<a href='{baseurl}/{lang}/account/timeout'>intervalo</a>' (uma pausa de até 6 semanas) através da opção correspondente.</br> Se preferir encerrar sua conta, você pode fazer isso através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br> Recomendamos também que leia nossas páginas de ajuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, caso necessite.</p>",selfExclusionEmailText:"E-mail:",duration:"Duração:",dateInstructions:"Para inserir manualmente a data, use o seguinte formato:",forever:"Para sempre",save:"Salvar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"Seu período de autoexclusão durará até {date} às 23:59.",permanentSelfExclusion:"Seu período de autoexclusão será permanente.",SelfExclusionFor30Days:"30 Dias",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Ano",SelfExclusionFor5Years:"5 Anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até",confirmationModalTitle:"Confirmação",confirmationModalTextPeriod:"Você tem certeza de que deseja se autoexcluir por {period}?",confirmationModalTextUntil:"Você tem certeza de que deseja se autoexcluir até {date}?"},"es-mx":{titleSelfExclusion:"Autoexclusión",selfExclusionText:"<p>Mientras esté autoexcluido, el acceso a su cuenta estará completamente restringido.</br> La autoexclusión solo puede levantarse después de que haya pasado el período que seleccionó, comunicándose con el Servicio al Cliente, sujeto a una revisión y un período de enfriamiento.</br> Alternativamente, puede elegir tomarse un '<a href='{baseurl}/{lang}/account/timeout'>descanso</a>' (una pausa de hasta 6 semanas) a través de la opción correspondiente.</br> Si prefiere cerrar su cuenta, puede hacerlo mediante la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de Cuenta</a>'.</br> También le recomendamos leer nuestras páginas de ayuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si lo necesita.</p>",selfExclusionEmailText:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} a las 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor30Days:"30 Días",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Año",SelfExclusionFor5Years:"5 Años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta",confirmationModalTitle:"Confirmación",confirmationModalTextPeriod:"¿Estás seguro de que deseas autoexcluirte por {period}?",confirmationModalTextUntil:"¿Estás seguro de que deseas autoexcluirte hasta {date}?"},tr:{titleSelfExclusion:"Kendi Kendini Hariç Tutma",selfExclusionText:"<p>Kendinizi dışlama süresince hesabınıza erişiminiz tamamen kısıtlanacaktır.</br> Kendinizi dışlama, yalnızca seçtiğiniz süre sona erdikten sonra, Müşteri Hizmetleri ile iletişime geçerek kaldırılabilir ve inceleme ile bir düşünme süresine tabi olacaktır.</br> Alternatif olarak, '<a href='{baseurl}/{lang}/account/timeout'>Mola</a>' seçeneğiyle hizmetlerimizden (6 haftaya kadar bir ara) faydalanmayı tercih edebilirsiniz.</br> Hesabınızı kapatmayı tercih ederseniz, bunu '<a href='{baseurl}/{lang}/account/account-closure'>Hesap Kapatma</a>' seçeneği aracılığıyla yapabilirsiniz.</br> Ayrıca, gerektiğinde daha fazla tavsiye almak için '<a href='{baseurl}/{lang}/page/responsible-gambling'>Sorumlu Oyun</a>' yardım sayfalarımızı okumanızı öneririz.</p>",selfExclusionEmailText:"E-posta:",duration:"Süre:",dateInstructions:"Tarihi manuel olarak girmek için şu formatı kullanın:",forever:"Sonsuza kadar",save:"Kaydet",noPeriodSelected:"Lütfen bir kendi kendini hariç tutma süresi seçin",selectAPeriod:"Bir süre seçin",temporarySelfExclusion:"Kendi kendini hariç tutma süreniz {date} saat 23:59'a kadar sürecektir.",permanentSelfExclusion:"Kendi kendini hariç tutma süreniz kalıcı olacaktır.",SelfExclusionFor30Days:"30 Gün",SelfExclusionFor6Months:"6 Ay",SelfExclusionFor1Year:"1 Yıl",SelfExclusionFor5Years:"5 Yıl",SelfExclusionPermanent:"Kalıcı",SelfExclusionUntilSelectedDate:"Tarihe kadar",confirmationModalTitle:"Onay",confirmationModalTextPeriod:"{period} için kendinizi hariç tutmak istediğinizden emin misiniz?",confirmationModalTextUntil:"{date} tarihine kadar kendinizi hariç tutmak istediğinizden emin misiniz?"}};/**
6
+ * @license
7
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
8
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9
+ */window.Vaadin||(window.Vaadin={});var $o;($o=window.Vaadin).featureFlags||($o.featureFlags={});function Dc(t){return t.replace(/-[a-z]/gu,i=>i[1].toUpperCase())}const Pe={};function Te(t,i="24.6.3"){if(Object.defineProperty(t,"version",{get(){return i}}),t.experimental){const r=typeof t.experimental=="string"?t.experimental:`${Dc(t.is.split("-").slice(1).join("-"))}Component`;if(!window.Vaadin.featureFlags[r]&&!Pe[r]){Pe[r]=new Set,Pe[r].add(t),Object.defineProperty(window.Vaadin.featureFlags,r,{get(){return Pe[r].size===0},set(n){n&&Pe[r].size>0&&(Pe[r].forEach(o=>{customElements.define(o.is,o)}),Pe[r].clear())}});return}else if(Pe[r]){Pe[r].add(t);return}}const e=customElements.get(t.is);if(!e)customElements.define(t.is,t);else{const r=e.version;r&&t.version&&r===t.version?console.warn(`The component ${t.is} has been loaded twice`):console.error(`Tried to define ${t.is} version ${t.version} when version ${e.version} is already in use. Something will probably break.`)}}/**
10
+ * @license
11
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
12
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
13
+ */class kc extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}Te(kc);/**
14
+ * @license
15
+ * Copyright 2019 Google LLC
16
+ * SPDX-License-Identifier: BSD-3-Clause
17
+ */const ci=globalThis,Xr=ci.ShadowRoot&&(ci.ShadyCSS===void 0||ci.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Kr=Symbol(),Wn=new WeakMap;let Jr=class{constructor(i,e,r){if(this._$cssResult$=!0,r!==Kr)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=e}get styleSheet(){let i=this.o;const e=this.t;if(Xr&&i===void 0){const r=e!==void 0&&e.length===1;r&&(i=Wn.get(e)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),r&&Wn.set(e,i))}return i}toString(){return this.cssText}};const Oc=t=>new Jr(typeof t=="string"?t:t+"",void 0,Kr),$=(t,...i)=>{const e=t.length===1?t[0]:i.reduce((r,n,o)=>r+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[o+1],t[0]);return new Jr(e,t,Kr)},Cs=(t,i)=>{if(Xr)t.adoptedStyleSheets=i.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of i){const r=document.createElement("style"),n=ci.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=e.cssText,t.appendChild(r)}},qn=Xr?t=>t:t=>t instanceof CSSStyleSheet?(i=>{let e="";for(const r of i.cssRules)e+=r.cssText;return Oc(e)})(t):t;/**
18
+ * @license
19
+ * Copyright 2017 Google LLC
20
+ * SPDX-License-Identifier: BSD-3-Clause
21
+ */const{is:Mc,defineProperty:Ic,getOwnPropertyDescriptor:Nc,getOwnPropertyNames:Hc,getOwnPropertySymbols:Lc,getPrototypeOf:$c}=Object,$e=globalThis,Xn=$e.trustedTypes,Bc=Xn?Xn.emptyScript:"",Vi=$e.reactiveElementPolyfillSupport,Ht=(t,i)=>t,Er={toAttribute(t,i){switch(i){case Boolean:t=t?Bc:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,i){let e=t;switch(i){case Boolean:e=t!==null;break;case Number:e=t===null?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(r){e=null}}return e}},Ts=(t,i)=>!Mc(t,i),Kn={attribute:!0,type:String,converter:Er,reflect:!1,hasChanged:Ts};var Bo,Fo;(Bo=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Fo=$e.litPropertyMetadata)!=null||($e.litPropertyMetadata=new WeakMap);class rt extends HTMLElement{static addInitializer(i){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(i)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(i,e=Kn){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(i,e),!e.noAccessor){const r=Symbol(),n=this.getPropertyDescriptor(i,r,e);n!==void 0&&Ic(this.prototype,i,n)}}static getPropertyDescriptor(i,e,r){var s;const{get:n,set:o}=(s=Nc(this.prototype,i))!=null?s:{get(){return this[e]},set(a){this[e]=a}};return{get(){return n==null?void 0:n.call(this)},set(a){const l=n==null?void 0:n.call(this);o.call(this,a),this.requestUpdate(i,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){var e;return(e=this.elementProperties.get(i))!=null?e:Kn}static _$Ei(){if(this.hasOwnProperty(Ht("elementProperties")))return;const i=$c(this);i.finalize(),i.l!==void 0&&(this.l=[...i.l]),this.elementProperties=new Map(i.elementProperties)}static finalize(){if(this.hasOwnProperty(Ht("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ht("properties"))){const e=this.properties,r=[...Hc(e),...Lc(e)];for(const n of r)this.createProperty(n,e[n])}const i=this[Symbol.metadata];if(i!==null){const e=litPropertyMetadata.get(i);if(e!==void 0)for(const[r,n]of e)this.elementProperties.set(r,n)}this._$Eh=new Map;for(const[e,r]of this.elementProperties){const n=this._$Eu(e,r);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(i){const e=[];if(Array.isArray(i)){const r=new Set(i.flat(1/0).reverse());for(const n of r)e.unshift(qn(n))}else i!==void 0&&e.push(qn(i));return e}static _$Eu(i,e){const r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof i=="string"?i.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var i;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(i=this.constructor.l)==null||i.forEach(e=>e(this))}addController(i){var e,r;((e=this._$EO)!=null?e:this._$EO=new Set).add(i),this.renderRoot!==void 0&&this.isConnected&&((r=i.hostConnected)==null||r.call(i))}removeController(i){var e;(e=this._$EO)==null||e.delete(i)}_$E_(){const i=new Map,e=this.constructor.elementProperties;for(const r of e.keys())this.hasOwnProperty(r)&&(i.set(r,this[r]),delete this[r]);i.size>0&&(this._$Ep=i)}createRenderRoot(){var e;const i=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return Cs(i,this.constructor.elementStyles),i}connectedCallback(){var i,e;(i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(r=>{var n;return(n=r.hostConnected)==null?void 0:n.call(r)})}enableUpdating(i){}disconnectedCallback(){var i;(i=this._$EO)==null||i.forEach(e=>{var r;return(r=e.hostDisconnected)==null?void 0:r.call(e)})}attributeChangedCallback(i,e,r){this._$AK(i,r)}_$EC(i,e){var o;const r=this.constructor.elementProperties.get(i),n=this.constructor._$Eu(i,r);if(n!==void 0&&r.reflect===!0){const s=(((o=r.converter)==null?void 0:o.toAttribute)!==void 0?r.converter:Er).toAttribute(e,r.type);this._$Em=i,s==null?this.removeAttribute(n):this.setAttribute(n,s),this._$Em=null}}_$AK(i,e){var o;const r=this.constructor,n=r._$Eh.get(i);if(n!==void 0&&this._$Em!==n){const s=r.getPropertyOptions(n),a=typeof s.converter=="function"?{fromAttribute:s.converter}:((o=s.converter)==null?void 0:o.fromAttribute)!==void 0?s.converter:Er;this._$Em=n,this[n]=a.fromAttribute(e,s.type),this._$Em=null}}requestUpdate(i,e,r){var n;if(i!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(i)),!((n=r.hasChanged)!=null?n:Ts)(this[i],e))return;this.P(i,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(i,e,r){var n;this._$AL.has(i)||this._$AL.set(i,e),r.reflect===!0&&this._$Em!==i&&((n=this._$Ej)!=null?n:this._$Ej=new Set).add(i)}_$ET(){return At(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(e){Promise.reject(e)}const i=this.scheduleUpdate();return i!=null&&(yield i),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,n;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[s,a]of this._$Ep)this[s]=a;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[s,a]of o)a.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],a)}let i=!1;const e=this._$AL;try{i=this.shouldUpdate(e),i?(this.willUpdate(e),(n=this._$EO)==null||n.forEach(o=>{var s;return(s=o.hostUpdate)==null?void 0:s.call(o)}),this.update(e)):this._$EU()}catch(o){throw i=!1,this._$EU(),o}i&&this._$AE(e)}willUpdate(i){}_$AE(i){var e;(e=this._$EO)==null||e.forEach(r=>{var n;return(n=r.hostUpdated)==null?void 0:n.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(i){return!0}update(i){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(i){}firstUpdated(i){}}var Ro;rt.elementStyles=[],rt.shadowRootOptions={mode:"open"},rt[Ht("elementProperties")]=new Map,rt[Ht("finalized")]=new Map,Vi==null||Vi({ReactiveElement:rt}),((Ro=$e.reactiveElementVersions)!=null?Ro:$e.reactiveElementVersions=[]).push("2.0.4");/**
22
+ * @license
23
+ * Copyright 2017 Google LLC
24
+ * SPDX-License-Identifier: BSD-3-Clause
25
+ */const Lt=globalThis,_i=Lt.trustedTypes,Jn=_i?_i.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ps="$lit$",He=`lit$${Math.random().toFixed(9).slice(2)}$`,Ds="?"+He,Fc=`<${Ds}>`,We=document,zt=()=>We.createComment(""),Ut=t=>t===null||typeof t!="object"&&typeof t!="function",Zr=Array.isArray,Rc=t=>Zr(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",Yi=`[
26
+ \f\r]`,Tt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Zn=/-->/g,Qn=/>/g,Ue=RegExp(`>|${Yi}(?:([^\\s"'>=/]+)(${Yi}*=${Yi}*(?:[^
27
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),eo=/'/g,to=/"/g,ks=/^(?:script|style|textarea|title)$/i,pt=Symbol.for("lit-noChange"),te=Symbol.for("lit-nothing"),io=new WeakMap,je=We.createTreeWalker(We,129);function Os(t,i){if(!Zr(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Jn!==void 0?Jn.createHTML(i):i}const zc=(t,i)=>{const e=t.length-1,r=[];let n,o=i===2?"<svg>":i===3?"<math>":"",s=Tt;for(let a=0;a<e;a++){const l=t[a];let u,c,d=-1,h=0;for(;h<l.length&&(s.lastIndex=h,c=s.exec(l),c!==null);)h=s.lastIndex,s===Tt?c[1]==="!--"?s=Zn:c[1]!==void 0?s=Qn:c[2]!==void 0?(ks.test(c[2])&&(n=RegExp("</"+c[2],"g")),s=Ue):c[3]!==void 0&&(s=Ue):s===Ue?c[0]===">"?(s=n!=null?n:Tt,d=-1):c[1]===void 0?d=-2:(d=s.lastIndex-c[2].length,u=c[1],s=c[3]===void 0?Ue:c[3]==='"'?to:eo):s===to||s===eo?s=Ue:s===Zn||s===Qn?s=Tt:(s=Ue,n=void 0);const f=s===Ue&&t[a+1].startsWith("/>")?" ":"";o+=s===Tt?l+Fc:d>=0?(r.push(u),l.slice(0,d)+Ps+l.slice(d)+He+f):l+He+(d===-2?a:f)}return[Os(t,o+(t[e]||"<?>")+(i===2?"</svg>":i===3?"</math>":"")),r]};class jt{constructor({strings:i,_$litType$:e},r){let n;this.parts=[];let o=0,s=0;const a=i.length-1,l=this.parts,[u,c]=zc(i,e);if(this.el=jt.createElement(u,r),je.currentNode=this.el.content,e===2||e===3){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(n=je.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(const d of n.getAttributeNames())if(d.endsWith(Ps)){const h=c[s++],f=n.getAttribute(d).split(He),p=/([.?@])?(.*)/.exec(h);l.push({type:1,index:o,name:p[2],strings:f,ctor:p[1]==="."?jc:p[1]==="?"?Vc:p[1]==="@"?Yc:Di}),n.removeAttribute(d)}else d.startsWith(He)&&(l.push({type:6,index:o}),n.removeAttribute(d));if(ks.test(n.tagName)){const d=n.textContent.split(He),h=d.length-1;if(h>0){n.textContent=_i?_i.emptyScript:"";for(let f=0;f<h;f++)n.append(d[f],zt()),je.nextNode(),l.push({type:2,index:++o});n.append(d[h],zt())}}}else if(n.nodeType===8)if(n.data===Ds)l.push({type:2,index:o});else{let d=-1;for(;(d=n.data.indexOf(He,d+1))!==-1;)l.push({type:7,index:o}),d+=He.length-1}o++}}static createElement(i,e){const r=We.createElement("template");return r.innerHTML=i,r}}function mt(t,i,e=t,r){var s,a,l;if(i===pt)return i;let n=r!==void 0?(s=e._$Co)==null?void 0:s[r]:e._$Cl;const o=Ut(i)?void 0:i._$litDirective$;return(n==null?void 0:n.constructor)!==o&&((a=n==null?void 0:n._$AO)==null||a.call(n,!1),o===void 0?n=void 0:(n=new o(t),n._$AT(t,e,r)),r!==void 0?((l=e._$Co)!=null?l:e._$Co=[])[r]=n:e._$Cl=n),n!==void 0&&(i=mt(t,n._$AS(t,i.values),n,r)),i}class Uc{constructor(i,e){this._$AV=[],this._$AN=void 0,this._$AD=i,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(i){var u;const{el:{content:e},parts:r}=this._$AD,n=((u=i==null?void 0:i.creationScope)!=null?u:We).importNode(e,!0);je.currentNode=n;let o=je.nextNode(),s=0,a=0,l=r[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new Jt(o,o.nextSibling,this,i):l.type===1?c=new l.ctor(o,l.name,l.strings,this,i):l.type===6&&(c=new Gc(o,this,i)),this._$AV.push(c),l=r[++a]}s!==(l==null?void 0:l.index)&&(o=je.nextNode(),s++)}return je.currentNode=We,n}p(i){let e=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(i,r,e),e+=r.strings.length-2):r._$AI(i[e])),e++}}class Jt{get _$AU(){var i,e;return(e=(i=this._$AM)==null?void 0:i._$AU)!=null?e:this._$Cv}constructor(i,e,r,n){var o;this.type=2,this._$AH=te,this._$AN=void 0,this._$AA=i,this._$AB=e,this._$AM=r,this.options=n,this._$Cv=(o=n==null?void 0:n.isConnected)!=null?o:!0}get parentNode(){let i=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(i==null?void 0:i.nodeType)===11&&(i=e.parentNode),i}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(i,e=this){i=mt(this,i,e),Ut(i)?i===te||i==null||i===""?(this._$AH!==te&&this._$AR(),this._$AH=te):i!==this._$AH&&i!==pt&&this._(i):i._$litType$!==void 0?this.$(i):i.nodeType!==void 0?this.T(i):Rc(i)?this.k(i):this._(i)}O(i){return this._$AA.parentNode.insertBefore(i,this._$AB)}T(i){this._$AH!==i&&(this._$AR(),this._$AH=this.O(i))}_(i){this._$AH!==te&&Ut(this._$AH)?this._$AA.nextSibling.data=i:this.T(We.createTextNode(i)),this._$AH=i}$(i){var o;const{values:e,_$litType$:r}=i,n=typeof r=="number"?this._$AC(i):(r.el===void 0&&(r.el=jt.createElement(Os(r.h,r.h[0]),this.options)),r);if(((o=this._$AH)==null?void 0:o._$AD)===n)this._$AH.p(e);else{const s=new Uc(n,this),a=s.u(this.options);s.p(e),this.T(a),this._$AH=s}}_$AC(i){let e=io.get(i.strings);return e===void 0&&io.set(i.strings,e=new jt(i)),e}k(i){Zr(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,n=0;for(const o of i)n===e.length?e.push(r=new Jt(this.O(zt()),this.O(zt()),this,this.options)):r=e[n],r._$AI(o),n++;n<e.length&&(this._$AR(r&&r._$AB.nextSibling,n),e.length=n)}_$AR(i=this._$AA.nextSibling,e){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,e);i&&i!==this._$AB;){const n=i.nextSibling;i.remove(),i=n}}setConnected(i){var e;this._$AM===void 0&&(this._$Cv=i,(e=this._$AP)==null||e.call(this,i))}}class Di{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(i,e,r,n,o){this.type=1,this._$AH=te,this._$AN=void 0,this.element=i,this.name=e,this._$AM=n,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=te}_$AI(i,e=this,r,n){const o=this.strings;let s=!1;if(o===void 0)i=mt(this,i,e,0),s=!Ut(i)||i!==this._$AH&&i!==pt,s&&(this._$AH=i);else{const a=i;let l,u;for(i=o[0],l=0;l<o.length-1;l++)u=mt(this,a[r+l],e,l),u===pt&&(u=this._$AH[l]),s||(s=!Ut(u)||u!==this._$AH[l]),u===te?i=te:i!==te&&(i+=(u!=null?u:"")+o[l+1]),this._$AH[l]=u}s&&!n&&this.j(i)}j(i){i===te?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,i!=null?i:"")}}class jc extends Di{constructor(){super(...arguments),this.type=3}j(i){this.element[this.name]=i===te?void 0:i}}class Vc extends Di{constructor(){super(...arguments),this.type=4}j(i){this.element.toggleAttribute(this.name,!!i&&i!==te)}}class Yc extends Di{constructor(i,e,r,n,o){super(i,e,r,n,o),this.type=5}_$AI(i,e=this){var s;if((i=(s=mt(this,i,e,0))!=null?s:te)===pt)return;const r=this._$AH,n=i===te&&r!==te||i.capture!==r.capture||i.once!==r.once||i.passive!==r.passive,o=i!==te&&(r===te||n);n&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,i),this._$AH=i}handleEvent(i){var e,r;typeof this._$AH=="function"?this._$AH.call((r=(e=this.options)==null?void 0:e.host)!=null?r:this.element,i):this._$AH.handleEvent(i)}}class Gc{constructor(i,e,r){this.element=i,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(i){mt(this,i)}}const Gi=Lt.litHtmlPolyfillSupport;var zo;Gi==null||Gi(jt,Jt),((zo=Lt.litHtmlVersions)!=null?zo:Lt.litHtmlVersions=[]).push("3.2.1");const Wc=(t,i,e)=>{var o,s;const r=(o=e==null?void 0:e.renderBefore)!=null?o:i;let n=r._$litPart$;if(n===void 0){const a=(s=e==null?void 0:e.renderBefore)!=null?s:null;r._$litPart$=n=new Jt(i.insertBefore(zt(),a),a,void 0,e!=null?e:{})}return n._$AI(t),n};/**
28
+ * @license
29
+ * Copyright 2017 Google LLC
30
+ * SPDX-License-Identifier: BSD-3-Clause
31
+ */class st extends rt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,r;const i=super.createRenderRoot();return(r=(e=this.renderOptions).renderBefore)!=null||(e.renderBefore=i.firstChild),i}update(i){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(i),this._$Do=Wc(e,this.renderRoot,this.renderOptions)}connectedCallback(){var i;super.connectedCallback(),(i=this._$Do)==null||i.setConnected(!0)}disconnectedCallback(){var i;super.disconnectedCallback(),(i=this._$Do)==null||i.setConnected(!1)}render(){return pt}}var Uo;st._$litElement$=!0,st.finalized=!0,(Uo=globalThis.litElementHydrateSupport)==null||Uo.call(globalThis,{LitElement:st});const Wi=globalThis.litElementPolyfillSupport;Wi==null||Wi({LitElement:st});var jo;((jo=globalThis.litElementVersions)!=null?jo:globalThis.litElementVersions=[]).push("4.1.1");/**
32
+ * @license
33
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
34
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
35
+ */const qc=t=>class extends t{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,r,n){super.attributeChangedCallback(e,r,n),e==="theme"&&this._set_theme(n)}};/**
36
+ * @license
37
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
38
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
39
+ */const Ms=[],Sr=new Set,Qr=new Set;function Is(t){return t&&Object.prototype.hasOwnProperty.call(t,"__themes")}function Xc(t){return Is(customElements.get(t))}function Kc(t=[]){return[t].flat(1/0).filter(i=>i instanceof Jr?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function Ns(t,i){return(t||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(i))}function Hs(t){return t.map(i=>i.cssText).join(`
40
+ `)}const gi="vaadin-themable-mixin-style";function Jc(t,i){const e=document.createElement("style");e.id=gi,e.textContent=Hs(t),i.content.appendChild(e)}function Zc(t){if(!t.shadowRoot)return;const i=t.constructor;if(t instanceof st)[...t.shadowRoot.querySelectorAll("style")].forEach(e=>e.remove()),Cs(t.shadowRoot,i.elementStyles);else{const e=t.shadowRoot.getElementById(gi),r=i.prototype._template;e.textContent=r.content.getElementById(gi).textContent}}function Qc(t){Sr.forEach(i=>{const e=i.deref();e instanceof t?Zc(e):e||Sr.delete(i)})}function Ls(t){if(t.prototype instanceof st)t.elementStyles=t.finalizeStyles(t.styles);else{const i=t.prototype._template;i.content.getElementById(gi).textContent=Hs(t.getStylesForThis())}Qr.forEach(i=>{const e=customElements.get(i);e!==t&&e.prototype instanceof t&&Ls(e)})}function ed(t,i){const e=t.__themes;return!e||!i?!1:e.some(r=>r.styles.some(n=>i.some(o=>o.cssText===n.cssText)))}function J(t,i,e={}){i=Kc(i),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(t,i,e):Ms.push({themeFor:t,styles:i,include:e.include,moduleId:e.moduleId}),t&&Qr.forEach(r=>{if(Ns(t,r)&&Xc(r)){const n=customElements.get(r);ed(n,i)?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".`),Ls(n),Qc(n)}})}function Ar(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Ms}function td(t=""){let i=0;return t.startsWith("lumo-")||t.startsWith("material-")?i=1:t.startsWith("vaadin-")&&(i=2),i}function $s(t){const i=[];return t.include&&[].concat(t.include).forEach(e=>{const r=Ar().find(n=>n.moduleId===e);r?i.push(...$s(r),...r.styles):console.warn(`Included moduleId ${e} not found in style registry`)},t.styles),i}function id(t){const i=`${t}-default-theme`,e=Ar().filter(r=>r.moduleId!==i&&Ns(r.themeFor,t)).map(r=>Zt(St({},r),{styles:[...$s(r),...r.styles],includePriority:td(r.moduleId)})).sort((r,n)=>n.includePriority-r.includePriority);return e.length>0?e:Ar().filter(r=>r.moduleId===i)}const Xe=t=>class extends qc(t){constructor(){super(),Sr.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&Qr.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||Is(this)||Jc(this.getStylesForThis(),e)}static finalizeStyles(e){const r=this.getStylesForThis();return e?[...[e].flat(1/0),...r]:r}static getStylesForThis(){const e=t.__themes||[],r=Object.getPrototypeOf(this.prototype),n=(r?r.constructor.__themes:[])||[];this.__themes=[...e,...n,...id(this.is)];const o=this.__themes.flatMap(s=>s.styles);return o.filter((s,a)=>a===o.lastIndexOf(s))}};/**
41
+ * @license
42
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
43
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
44
+ */const rd=(t,...i)=>{const e=document.createElement("style");e.id=t,e.textContent=i.map(r=>r.toString()).join(`
45
+ `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",e)},wt=(t,...i)=>{rd(`lumo-${t}`,i)};/**
46
+ * @license
47
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
48
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
49
+ */const nd=$`
50
+ :host {
51
+ --lumo-size-xs: 1.625rem;
52
+ --lumo-size-s: 1.875rem;
53
+ --lumo-size-m: 2.25rem;
54
+ --lumo-size-l: 2.75rem;
55
+ --lumo-size-xl: 3.5rem;
56
+
57
+ /* Icons */
58
+ --lumo-icon-size-s: 1.25em;
59
+ --lumo-icon-size-m: 1.5em;
60
+ --lumo-icon-size-l: 2.25em;
61
+ /* For backwards compatibility */
62
+ --lumo-icon-size: var(--lumo-icon-size-m);
63
+ }
64
+ `;wt("sizing-props",nd);/**
65
+ * @license
66
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
67
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
68
+ */const od=$`
69
+ :host {
70
+ /* Square */
71
+ --lumo-space-xs: 0.25rem;
72
+ --lumo-space-s: 0.5rem;
73
+ --lumo-space-m: 1rem;
74
+ --lumo-space-l: 1.5rem;
75
+ --lumo-space-xl: 2.5rem;
76
+
77
+ /* Wide */
78
+ --lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
79
+ --lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
80
+ --lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
81
+ --lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
82
+ --lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);
83
+
84
+ /* Tall */
85
+ --lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
86
+ --lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
87
+ --lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
88
+ --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
89
+ --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
90
+ }
91
+ `;wt("spacing-props",od);/**
92
+ * @license
93
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
94
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
95
+ */const sd=$`
96
+ :host {
97
+ /* Border radius */
98
+ --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
99
+ --lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
100
+ --lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
101
+
102
+ /* Shadow */
103
+ --lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
104
+ --lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
105
+ --lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
106
+ --lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
107
+ --lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
108
+
109
+ /* Clickable element cursor */
110
+ --lumo-clickable-cursor: default;
111
+ }
112
+ `;$`
113
+ html {
114
+ /* Button */
115
+ --vaadin-button-background: var(--lumo-contrast-5pct);
116
+ --vaadin-button-border: none;
117
+ --vaadin-button-border-radius: var(--lumo-border-radius-m);
118
+ --vaadin-button-font-size: var(--lumo-font-size-m);
119
+ --vaadin-button-font-weight: 500;
120
+ --vaadin-button-height: var(--lumo-size-m);
121
+ --vaadin-button-margin: var(--lumo-space-xs) 0;
122
+ --vaadin-button-min-width: calc(var(--vaadin-button-height) * 2);
123
+ --vaadin-button-padding: 0 calc(var(--vaadin-button-height) / 3 + var(--lumo-border-radius-m) / 2);
124
+ --vaadin-button-text-color: var(--lumo-primary-text-color);
125
+ --vaadin-button-primary-background: var(--lumo-primary-color);
126
+ --vaadin-button-primary-border: none;
127
+ --vaadin-button-primary-font-weight: 600;
128
+ --vaadin-button-primary-text-color: var(--lumo-primary-contrast-color);
129
+ --vaadin-button-tertiary-background: transparent !important;
130
+ --vaadin-button-tertiary-text-color: var(--lumo-primary-text-color);
131
+ --vaadin-button-tertiary-font-weight: 500;
132
+ --vaadin-button-tertiary-padding: 0 calc(var(--vaadin-button-height) / 6);
133
+ /* Checkbox */
134
+ --vaadin-checkbox-background: var(--lumo-contrast-20pct);
135
+ --vaadin-checkbox-background-hover: var(--lumo-contrast-30pct);
136
+ --vaadin-checkbox-border-radius: var(--lumo-border-radius-s);
137
+ --vaadin-checkbox-checkmark-char: var(--lumo-icons-checkmark);
138
+ --vaadin-checkbox-checkmark-char-indeterminate: '';
139
+ --vaadin-checkbox-checkmark-color: var(--lumo-primary-contrast-color);
140
+ --vaadin-checkbox-checkmark-size: calc(var(--vaadin-checkbox-size) + 2px);
141
+ --vaadin-checkbox-label-color: var(--lumo-body-text-color);
142
+ --vaadin-checkbox-label-font-size: var(--lumo-font-size-m);
143
+ --vaadin-checkbox-label-padding: var(--lumo-space-xs) var(--lumo-space-s) var(--lumo-space-xs) var(--lumo-space-xs);
144
+ --vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
145
+ --vaadin-checkbox-disabled-checkmark-color: var(--lumo-contrast-30pct);
146
+ --vaadin-checkbox-disabled-background: var(--lumo-contrast-10pct);
147
+ /* Radio button */
148
+ --vaadin-radio-button-background: var(--lumo-contrast-20pct);
149
+ --vaadin-radio-button-background-hover: var(--lumo-contrast-30pct);
150
+ --vaadin-radio-button-dot-color: var(--lumo-primary-contrast-color);
151
+ --vaadin-radio-button-dot-size: 3px;
152
+ --vaadin-radio-button-label-color: var(--lumo-body-text-color);
153
+ --vaadin-radio-button-label-font-size: var(--lumo-font-size-m);
154
+ --vaadin-radio-button-label-padding: var(--lumo-space-xs) var(--lumo-space-s) var(--lumo-space-xs)
155
+ var(--lumo-space-xs);
156
+ --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
157
+ --vaadin-radio-button-disabled-background: var(--lumo-contrast-10pct);
158
+ --vaadin-radio-button-disabled-dot-color: var(--lumo-contrast-30pct);
159
+ --vaadin-selection-color: var(--lumo-primary-color);
160
+ --vaadin-selection-color-text: var(--lumo-primary-text-color);
161
+ --vaadin-input-field-border-radius: var(--lumo-border-radius-m);
162
+ --vaadin-focus-ring-color: var(--lumo-primary-color-50pct);
163
+ --vaadin-focus-ring-width: 2px;
164
+ /* Label */
165
+ --vaadin-input-field-label-color: var(--lumo-secondary-text-color);
166
+ --vaadin-input-field-focused-label-color: var(--lumo-primary-text-color);
167
+ --vaadin-input-field-hovered-label-color: var(--lumo-body-text-color);
168
+ --vaadin-input-field-label-font-size: var(--lumo-font-size-s);
169
+ --vaadin-input-field-label-font-weight: 500;
170
+ /* Helper */
171
+ --vaadin-input-field-helper-color: var(--lumo-secondary-text-color);
172
+ --vaadin-input-field-helper-font-size: var(--lumo-font-size-xs);
173
+ --vaadin-input-field-helper-font-weight: 400;
174
+ --vaadin-input-field-helper-spacing: 0.4em;
175
+ /* Error message */
176
+ --vaadin-input-field-error-color: var(--lumo-error-text-color);
177
+ --vaadin-input-field-error-font-size: var(--lumo-font-size-xs);
178
+ --vaadin-input-field-error-font-weight: 400;
179
+ /* Input field */
180
+ --vaadin-input-field-background: var(--lumo-contrast-10pct);
181
+ --vaadin-input-field-icon-color: var(--lumo-contrast-60pct);
182
+ --vaadin-input-field-icon-size: var(--lumo-icon-size-m);
183
+ --vaadin-input-field-invalid-background: var(--lumo-error-color-10pct);
184
+ --vaadin-input-field-invalid-hover-highlight: var(--lumo-error-color-50pct);
185
+ --vaadin-input-field-disabled-background: var(--lumo-contrast-5pct);
186
+ --vaadin-input-field-disabled-value-color: var(--lumo-disabled-text-color);
187
+ --vaadin-input-field-height: var(--lumo-size-m);
188
+ --vaadin-input-field-hover-highlight: var(--lumo-contrast-50pct);
189
+ --vaadin-input-field-placeholder-color: var(--lumo-secondary-text-color);
190
+ --vaadin-input-field-readonly-border: 1px dashed var(--lumo-contrast-30pct);
191
+ --vaadin-input-field-value-color: var(--lumo-body-text-color);
192
+ --vaadin-input-field-value-font-size: var(--lumo-font-size-m);
193
+ --vaadin-input-field-value-font-weight: 500;
194
+ }
195
+ `;wt("style-props",sd);/**
196
+ * @license
197
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
198
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
199
+ */const ad=$`
200
+ :host {
201
+ /* Base (background) */
202
+ --lumo-base-color: #fff;
203
+
204
+ /* Tint */
205
+ --lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);
206
+ --lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);
207
+ --lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);
208
+ --lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);
209
+ --lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);
210
+ --lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);
211
+ --lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);
212
+ --lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);
213
+ --lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);
214
+ --lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);
215
+ --lumo-tint: #fff;
216
+
217
+ /* Shade */
218
+ --lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);
219
+ --lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);
220
+ --lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);
221
+ --lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);
222
+ --lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);
223
+ --lumo-shade-50pct: hsla(214, 45%, 20%, 0.52);
224
+ --lumo-shade-60pct: hsla(214, 43%, 19%, 0.6);
225
+ --lumo-shade-70pct: hsla(214, 42%, 18%, 0.69);
226
+ --lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);
227
+ --lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);
228
+ --lumo-shade: hsl(214, 35%, 15%);
229
+
230
+ /* Contrast */
231
+ --lumo-contrast-5pct: var(--lumo-shade-5pct);
232
+ --lumo-contrast-10pct: var(--lumo-shade-10pct);
233
+ --lumo-contrast-20pct: var(--lumo-shade-20pct);
234
+ --lumo-contrast-30pct: var(--lumo-shade-30pct);
235
+ --lumo-contrast-40pct: var(--lumo-shade-40pct);
236
+ --lumo-contrast-50pct: var(--lumo-shade-50pct);
237
+ --lumo-contrast-60pct: var(--lumo-shade-60pct);
238
+ --lumo-contrast-70pct: var(--lumo-shade-70pct);
239
+ --lumo-contrast-80pct: var(--lumo-shade-80pct);
240
+ --lumo-contrast-90pct: var(--lumo-shade-90pct);
241
+ --lumo-contrast: var(--lumo-shade);
242
+
243
+ /* Text */
244
+ --lumo-header-text-color: var(--lumo-contrast);
245
+ --lumo-body-text-color: var(--lumo-contrast-90pct);
246
+ --lumo-secondary-text-color: var(--lumo-contrast-70pct);
247
+ --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
248
+ --lumo-disabled-text-color: var(--lumo-contrast-30pct);
249
+
250
+ /* Primary */
251
+ --lumo-primary-color: hsl(214, 100%, 48%);
252
+ --lumo-primary-color-50pct: hsla(214, 100%, 49%, 0.76);
253
+ --lumo-primary-color-10pct: hsla(214, 100%, 60%, 0.13);
254
+ --lumo-primary-text-color: hsl(214, 100%, 43%);
255
+ --lumo-primary-contrast-color: #fff;
256
+
257
+ /* Error */
258
+ --lumo-error-color: hsl(3, 85%, 48%);
259
+ --lumo-error-color-50pct: hsla(3, 85%, 49%, 0.5);
260
+ --lumo-error-color-10pct: hsla(3, 85%, 49%, 0.1);
261
+ --lumo-error-text-color: hsl(3, 89%, 42%);
262
+ --lumo-error-contrast-color: #fff;
263
+
264
+ /* Success */
265
+ --lumo-success-color: hsl(145, 72%, 30%);
266
+ --lumo-success-color-50pct: hsla(145, 72%, 31%, 0.5);
267
+ --lumo-success-color-10pct: hsla(145, 72%, 31%, 0.1);
268
+ --lumo-success-text-color: hsl(145, 85%, 25%);
269
+ --lumo-success-contrast-color: #fff;
270
+
271
+ /* Warning */
272
+ --lumo-warning-color: hsl(48, 100%, 50%);
273
+ --lumo-warning-color-10pct: hsla(48, 100%, 50%, 0.25);
274
+ --lumo-warning-text-color: hsl(32, 100%, 30%);
275
+ --lumo-warning-contrast-color: var(--lumo-shade-90pct);
276
+ }
277
+
278
+ /* forced-colors mode adjustments */
279
+ @media (forced-colors: active) {
280
+ html {
281
+ --lumo-disabled-text-color: GrayText;
282
+ }
283
+ }
284
+ `;wt("color-props",ad);const ld=$`
285
+ [theme~='dark'] {
286
+ /* Base (background) */
287
+ --lumo-base-color: hsl(214, 35%, 21%);
288
+
289
+ /* Tint */
290
+ --lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);
291
+ --lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);
292
+ --lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);
293
+ --lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);
294
+ --lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);
295
+ --lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);
296
+ --lumo-tint-60pct: hsla(214, 82%, 90%, 0.58);
297
+ --lumo-tint-70pct: hsla(214, 87%, 92%, 0.69);
298
+ --lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);
299
+ --lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);
300
+ --lumo-tint: hsl(214, 100%, 98%);
301
+
302
+ /* Shade */
303
+ --lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);
304
+ --lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);
305
+ --lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);
306
+ --lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);
307
+ --lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);
308
+ --lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);
309
+ --lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);
310
+ --lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);
311
+ --lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);
312
+ --lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);
313
+ --lumo-shade: hsl(214, 33%, 13%);
314
+
315
+ /* Contrast */
316
+ --lumo-contrast-5pct: var(--lumo-tint-5pct);
317
+ --lumo-contrast-10pct: var(--lumo-tint-10pct);
318
+ --lumo-contrast-20pct: var(--lumo-tint-20pct);
319
+ --lumo-contrast-30pct: var(--lumo-tint-30pct);
320
+ --lumo-contrast-40pct: var(--lumo-tint-40pct);
321
+ --lumo-contrast-50pct: var(--lumo-tint-50pct);
322
+ --lumo-contrast-60pct: var(--lumo-tint-60pct);
323
+ --lumo-contrast-70pct: var(--lumo-tint-70pct);
324
+ --lumo-contrast-80pct: var(--lumo-tint-80pct);
325
+ --lumo-contrast-90pct: var(--lumo-tint-90pct);
326
+ --lumo-contrast: var(--lumo-tint);
327
+
328
+ /* Text */
329
+ --lumo-header-text-color: var(--lumo-contrast);
330
+ --lumo-body-text-color: var(--lumo-contrast-90pct);
331
+ --lumo-secondary-text-color: var(--lumo-contrast-70pct);
332
+ --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
333
+ --lumo-disabled-text-color: var(--lumo-contrast-30pct);
334
+
335
+ /* Primary */
336
+ --lumo-primary-color: hsl(214, 90%, 48%);
337
+ --lumo-primary-color-50pct: hsla(214, 90%, 70%, 0.69);
338
+ --lumo-primary-color-10pct: hsla(214, 90%, 55%, 0.13);
339
+ --lumo-primary-text-color: hsl(214, 90%, 77%);
340
+ --lumo-primary-contrast-color: #fff;
341
+
342
+ /* Error */
343
+ --lumo-error-color: hsl(3, 79%, 49%);
344
+ --lumo-error-color-50pct: hsla(3, 75%, 62%, 0.5);
345
+ --lumo-error-color-10pct: hsla(3, 75%, 62%, 0.14);
346
+ --lumo-error-text-color: hsl(3, 100%, 80%);
347
+
348
+ /* Success */
349
+ --lumo-success-color: hsl(145, 72%, 30%);
350
+ --lumo-success-color-50pct: hsla(145, 92%, 51%, 0.5);
351
+ --lumo-success-color-10pct: hsla(145, 92%, 51%, 0.1);
352
+ --lumo-success-text-color: hsl(145, 85%, 46%);
353
+
354
+ /* Warning */
355
+ --lumo-warning-color: hsl(43, 100%, 48%);
356
+ --lumo-warning-color-10pct: hsla(40, 100%, 50%, 0.2);
357
+ --lumo-warning-text-color: hsl(45, 100%, 60%);
358
+ --lumo-warning-contrast-color: var(--lumo-shade-90pct);
359
+ }
360
+
361
+ html {
362
+ color: var(--lumo-body-text-color);
363
+ background-color: var(--lumo-base-color);
364
+ color-scheme: light;
365
+ }
366
+
367
+ [theme~='dark'] {
368
+ color: var(--lumo-body-text-color);
369
+ background-color: var(--lumo-base-color);
370
+ color-scheme: dark;
371
+ }
372
+
373
+ h1,
374
+ h2,
375
+ h3,
376
+ h4,
377
+ h5,
378
+ h6 {
379
+ color: var(--lumo-header-text-color);
380
+ }
381
+
382
+ a:where(:any-link) {
383
+ color: var(--lumo-primary-text-color);
384
+ }
385
+
386
+ a:not(:any-link) {
387
+ color: var(--lumo-disabled-text-color);
388
+ }
389
+
390
+ blockquote {
391
+ color: var(--lumo-secondary-text-color);
392
+ }
393
+
394
+ code,
395
+ pre {
396
+ background-color: var(--lumo-contrast-10pct);
397
+ border-radius: var(--lumo-border-radius-m);
398
+ }
399
+ pre code {
400
+ background: transparent;
401
+ }
402
+ `;J("",ld,{moduleId:"lumo-color"});/**
403
+ * @license
404
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
405
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
406
+ */const ud=$`
407
+ :host {
408
+ /* prettier-ignore */
409
+ --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
410
+
411
+ /* Font sizes */
412
+ --lumo-font-size-xxs: 0.75rem;
413
+ --lumo-font-size-xs: 0.8125rem;
414
+ --lumo-font-size-s: 0.875rem;
415
+ --lumo-font-size-m: 1rem;
416
+ --lumo-font-size-l: 1.125rem;
417
+ --lumo-font-size-xl: 1.375rem;
418
+ --lumo-font-size-xxl: 1.75rem;
419
+ --lumo-font-size-xxxl: 2.5rem;
420
+
421
+ /* Line heights */
422
+ --lumo-line-height-xs: 1.25;
423
+ --lumo-line-height-s: 1.375;
424
+ --lumo-line-height-m: 1.625;
425
+ }
426
+ `,cd=$`
427
+ body,
428
+ :host {
429
+ font-family: var(--lumo-font-family);
430
+ font-size: var(--lumo-font-size-m);
431
+ line-height: var(--lumo-line-height-m);
432
+ -webkit-text-size-adjust: 100%;
433
+ -webkit-font-smoothing: antialiased;
434
+ -moz-osx-font-smoothing: grayscale;
435
+ }
436
+
437
+ small,
438
+ [theme~='font-size-s'] {
439
+ font-size: var(--lumo-font-size-s);
440
+ line-height: var(--lumo-line-height-s);
441
+ }
442
+
443
+ [theme~='font-size-xs'] {
444
+ font-size: var(--lumo-font-size-xs);
445
+ line-height: var(--lumo-line-height-xs);
446
+ }
447
+
448
+ :where(h1, h2, h3, h4, h5, h6) {
449
+ font-weight: 600;
450
+ line-height: var(--lumo-line-height-xs);
451
+ margin-block: 0;
452
+ }
453
+
454
+ :where(h1) {
455
+ font-size: var(--lumo-font-size-xxxl);
456
+ }
457
+
458
+ :where(h2) {
459
+ font-size: var(--lumo-font-size-xxl);
460
+ }
461
+
462
+ :where(h3) {
463
+ font-size: var(--lumo-font-size-xl);
464
+ }
465
+
466
+ :where(h4) {
467
+ font-size: var(--lumo-font-size-l);
468
+ }
469
+
470
+ :where(h5) {
471
+ font-size: var(--lumo-font-size-m);
472
+ }
473
+
474
+ :where(h6) {
475
+ font-size: var(--lumo-font-size-xs);
476
+ text-transform: uppercase;
477
+ letter-spacing: 0.03em;
478
+ }
479
+
480
+ p,
481
+ blockquote {
482
+ margin-top: 0.5em;
483
+ margin-bottom: 0.75em;
484
+ }
485
+
486
+ a {
487
+ text-decoration: none;
488
+ }
489
+
490
+ a:where(:any-link):hover {
491
+ text-decoration: underline;
492
+ }
493
+
494
+ hr {
495
+ display: block;
496
+ align-self: stretch;
497
+ height: 1px;
498
+ border: 0;
499
+ padding: 0;
500
+ margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
501
+ background-color: var(--lumo-contrast-10pct);
502
+ }
503
+
504
+ blockquote {
505
+ border-left: 2px solid var(--lumo-contrast-30pct);
506
+ }
507
+
508
+ b,
509
+ strong {
510
+ font-weight: 600;
511
+ }
512
+
513
+ /* RTL specific styles */
514
+ blockquote[dir='rtl'] {
515
+ border-left: none;
516
+ border-right: 2px solid var(--lumo-contrast-30pct);
517
+ }
518
+ `;J("",cd,{moduleId:"lumo-typography"});wt("typography-props",ud);/**
519
+ * @license
520
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
521
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
522
+ */const Bs=$`
523
+ :host {
524
+ top: var(--lumo-space-m);
525
+ right: var(--lumo-space-m);
526
+ bottom: var(--lumo-space-m);
527
+ left: var(--lumo-space-m);
528
+ /* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */
529
+ /* stylelint-disable-next-line */
530
+ outline: 0px solid transparent;
531
+ }
532
+
533
+ [part='overlay'] {
534
+ background-color: var(--lumo-base-color);
535
+ background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
536
+ border-radius: var(--lumo-border-radius-m);
537
+ box-shadow:
538
+ 0 0 0 1px var(--lumo-shade-5pct),
539
+ var(--lumo-box-shadow-m);
540
+ color: var(--lumo-body-text-color);
541
+ font-family: var(--lumo-font-family);
542
+ font-size: var(--lumo-font-size-m);
543
+ font-weight: 400;
544
+ line-height: var(--lumo-line-height-m);
545
+ letter-spacing: 0;
546
+ text-transform: none;
547
+ -webkit-text-size-adjust: 100%;
548
+ -webkit-font-smoothing: antialiased;
549
+ -moz-osx-font-smoothing: grayscale;
550
+ }
551
+
552
+ [part='content'] {
553
+ padding: var(--lumo-space-xs);
554
+ }
555
+
556
+ [part='backdrop'] {
557
+ background-color: var(--lumo-shade-20pct);
558
+ animation: 0.2s lumo-overlay-backdrop-enter both;
559
+ will-change: opacity;
560
+ }
561
+
562
+ @keyframes lumo-overlay-backdrop-enter {
563
+ 0% {
564
+ opacity: 0;
565
+ }
566
+ }
567
+
568
+ :host([closing]) [part='backdrop'] {
569
+ animation: 0.2s lumo-overlay-backdrop-exit both;
570
+ }
571
+
572
+ @keyframes lumo-overlay-backdrop-exit {
573
+ 100% {
574
+ opacity: 0;
575
+ }
576
+ }
577
+
578
+ @keyframes lumo-overlay-dummy-animation {
579
+ 0% {
580
+ opacity: 1;
581
+ }
582
+
583
+ 100% {
584
+ opacity: 1;
585
+ }
586
+ }
587
+ `;J("",Bs,{moduleId:"lumo-overlay"});/**
588
+ * @license
589
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
590
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
591
+ */const Fs=$`
592
+ :host([opening]),
593
+ :host([closing]) {
594
+ animation: 0.14s lumo-overlay-dummy-animation;
595
+ }
596
+
597
+ [part='overlay'] {
598
+ will-change: opacity, transform;
599
+ }
600
+
601
+ :host([opening]) [part='overlay'] {
602
+ animation: 0.1s lumo-menu-overlay-enter ease-out both;
603
+ }
604
+
605
+ @keyframes lumo-menu-overlay-enter {
606
+ 0% {
607
+ opacity: 0;
608
+ transform: translateY(-4px);
609
+ }
610
+ }
611
+
612
+ :host([closing]) [part='overlay'] {
613
+ animation: 0.1s lumo-menu-overlay-exit both;
614
+ }
615
+
616
+ @keyframes lumo-menu-overlay-exit {
617
+ 100% {
618
+ opacity: 0;
619
+ }
620
+ }
621
+ `;J("",Fs,{moduleId:"lumo-menu-overlay-core"});const dd=$`
622
+ /* Small viewport (bottom sheet) styles */
623
+ /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
624
+ @media (max-width: 450px), (max-height: 450px) {
625
+ :host {
626
+ top: 0 !important;
627
+ right: 0 !important;
628
+ bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;
629
+ left: 0 !important;
630
+ align-items: stretch !important;
631
+ justify-content: flex-end !important;
632
+ }
633
+
634
+ [part='overlay'] {
635
+ max-height: 50vh;
636
+ width: 100vw;
637
+ border-radius: 0;
638
+ box-shadow: var(--lumo-box-shadow-xl);
639
+ }
640
+
641
+ /* The content part scrolls instead of the overlay part, because of the gradient fade-out */
642
+ [part='content'] {
643
+ padding: 30px var(--lumo-space-m);
644
+ max-height: inherit;
645
+ box-sizing: border-box;
646
+ -webkit-overflow-scrolling: touch;
647
+ overflow: auto;
648
+ -webkit-mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
649
+ mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
650
+ }
651
+
652
+ [part='backdrop'] {
653
+ display: block;
654
+ }
655
+
656
+ /* Animations */
657
+
658
+ :host([opening]) [part='overlay'] {
659
+ animation: 0.2s lumo-mobile-menu-overlay-enter cubic-bezier(0.215, 0.61, 0.355, 1) both;
660
+ }
661
+
662
+ :host([closing]),
663
+ :host([closing]) [part='backdrop'] {
664
+ animation-delay: 0.14s;
665
+ }
666
+
667
+ :host([closing]) [part='overlay'] {
668
+ animation: 0.14s 0.14s lumo-mobile-menu-overlay-exit cubic-bezier(0.55, 0.055, 0.675, 0.19) both;
669
+ }
670
+ }
671
+
672
+ @keyframes lumo-mobile-menu-overlay-enter {
673
+ 0% {
674
+ transform: translateY(150%);
675
+ }
676
+ }
677
+
678
+ @keyframes lumo-mobile-menu-overlay-exit {
679
+ 100% {
680
+ transform: translateY(150%);
681
+ }
682
+ }
683
+ `,Rs=[Bs,Fs,dd];J("",Rs,{moduleId:"lumo-menu-overlay"});const hd=$`
684
+ [part='overlay'] {
685
+ /*
686
+ Width:
687
+ date cell widths
688
+ + month calendar side padding
689
+ + year scroller width
690
+ */
691
+ /* prettier-ignore */
692
+ width:
693
+ calc(
694
+ var(--lumo-size-m) * 7
695
+ + var(--lumo-space-xs) * 2
696
+ + 57px
697
+ );
698
+ height: 100%;
699
+ max-height: calc(var(--lumo-size-m) * 14);
700
+ overflow: hidden;
701
+ -webkit-tap-highlight-color: transparent;
702
+ flex-direction: column;
703
+ }
704
+
705
+ [part='content'] {
706
+ padding: 0;
707
+ height: 100%;
708
+ overflow: hidden;
709
+ -webkit-mask-image: none;
710
+ mask-image: none;
711
+ }
712
+
713
+ :host([top-aligned]) [part~='overlay'] {
714
+ margin-top: var(--lumo-space-xs);
715
+ }
716
+
717
+ :host([bottom-aligned]) [part~='overlay'] {
718
+ margin-bottom: var(--lumo-space-xs);
719
+ }
720
+
721
+ @media (max-width: 450px), (max-height: 450px) {
722
+ [part='overlay'] {
723
+ width: 100vw;
724
+ height: 70vh;
725
+ max-height: 70vh;
726
+ }
727
+ }
728
+ `;J("vaadin-date-picker-overlay",[Rs,hd],{moduleId:"lumo-date-picker-overlay"});const fd=$`
729
+ :host {
730
+ /* Sizing */
731
+ --lumo-button-size: var(--lumo-size-m);
732
+ min-width: var(--vaadin-button-min-width, calc(var(--_button-size) * 2));
733
+ height: var(--_button-size);
734
+ padding: var(--vaadin-button-padding, 0 calc(var(--_button-size) / 3 + var(--lumo-border-radius-m) / 2));
735
+ margin: var(--vaadin-button-margin, var(--lumo-space-xs) 0);
736
+ box-sizing: border-box;
737
+ /* Style */
738
+ font-family: var(--lumo-font-family);
739
+ font-size: var(--vaadin-button-font-size, var(--lumo-font-size-m));
740
+ font-weight: var(--vaadin-button-font-weight, 500);
741
+ color: var(--_lumo-button-text-color);
742
+ background: var(--_lumo-button-background);
743
+ border: var(--vaadin-button-border, none);
744
+ border-radius: var(--vaadin-button-border-radius, var(--lumo-border-radius-m));
745
+ cursor: var(--lumo-clickable-cursor);
746
+ -webkit-tap-highlight-color: transparent;
747
+ -webkit-font-smoothing: antialiased;
748
+ -moz-osx-font-smoothing: grayscale;
749
+ flex-shrink: 0;
750
+ --_button-size: var(--vaadin-button-height, var(--lumo-button-size));
751
+ --_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
752
+ --_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
753
+ /* Used by notification */
754
+ --_lumo-button-background: var(--vaadin-button-background, var(--lumo-contrast-5pct));
755
+ --_lumo-button-text-color: var(--vaadin-button-text-color, var(--lumo-primary-text-color));
756
+ --_lumo-button-primary-background: var(--vaadin-button-primary-background, var(--lumo-primary-color));
757
+ --_lumo-button-primary-text-color: var(--vaadin-button-primary-text-color, var(--lumo-primary-contrast-color));
758
+ }
759
+
760
+ /* Set only for the internal parts so we don't affect the host vertical alignment */
761
+ [part='label'],
762
+ [part='prefix'],
763
+ [part='suffix'] {
764
+ line-height: var(--lumo-line-height-xs);
765
+ }
766
+
767
+ [part='label'] {
768
+ padding: calc(var(--lumo-button-size) / 6) 0;
769
+ }
770
+
771
+ :host([theme~='small']) {
772
+ font-size: var(--lumo-font-size-s);
773
+ --lumo-button-size: var(--lumo-size-s);
774
+ }
775
+
776
+ :host([theme~='large']) {
777
+ font-size: var(--lumo-font-size-l);
778
+ --lumo-button-size: var(--lumo-size-l);
779
+ }
780
+
781
+ /* For interaction states */
782
+ :host::before,
783
+ :host::after {
784
+ content: '';
785
+ /* We rely on the host always being relative */
786
+ position: absolute;
787
+ z-index: 1;
788
+ inset: 0;
789
+ background-color: currentColor;
790
+ border-radius: inherit;
791
+ opacity: 0;
792
+ pointer-events: none;
793
+ }
794
+
795
+ /* Hover */
796
+
797
+ @media (any-hover: hover) {
798
+ :host(:hover)::before {
799
+ opacity: 0.02;
800
+ }
801
+ }
802
+
803
+ /* Active */
804
+
805
+ :host::after {
806
+ transition:
807
+ opacity 1.4s,
808
+ transform 0.1s;
809
+ filter: blur(8px);
810
+ }
811
+
812
+ :host([active])::before {
813
+ opacity: 0.05;
814
+ transition-duration: 0s;
815
+ }
816
+
817
+ :host([active])::after {
818
+ opacity: 0.1;
819
+ transition-duration: 0s, 0s;
820
+ transform: scale(0);
821
+ }
822
+
823
+ /* Keyboard focus */
824
+
825
+ :host([focus-ring]) {
826
+ box-shadow:
827
+ 0 0 0 calc(1px * var(--_focus-ring-gap-on, 0)) var(--_focus-ring-gap-color, var(--lumo-base-color)),
828
+ 0 0 0 calc(var(--_focus-ring-width) + 1px * var(--_focus-ring-gap-on, 0)) var(--_focus-ring-color);
829
+ }
830
+
831
+ :host([theme~='primary'][focus-ring]) {
832
+ --_focus-ring-gap-on: 1;
833
+ }
834
+
835
+ /* Types (primary, tertiary, tertiary-inline */
836
+
837
+ :host([theme~='tertiary']),
838
+ :host([theme~='tertiary-inline']) {
839
+ --_background: transparent !important;
840
+ background: var(--vaadin-button-tertiary-background, var(--_background));
841
+ min-width: 0;
842
+ }
843
+
844
+ :host([theme~='tertiary']) {
845
+ border: var(--vaadin-button-tertiary-border, none);
846
+ color: var(--vaadin-button-tertiary-text-color, var(--lumo-primary-text-color));
847
+ font-weight: var(--vaadin-button-tertiary-font-weight, 500);
848
+ padding: var(--vaadin-button-tertiary-padding, 0 calc(var(--_button-size) / 6));
849
+ }
850
+
851
+ :host([theme~='tertiary-inline'])::before {
852
+ display: none;
853
+ }
854
+
855
+ :host([theme~='tertiary-inline']) {
856
+ margin: 0;
857
+ height: auto;
858
+ padding: 0;
859
+ line-height: inherit;
860
+ font-size: inherit;
861
+ }
862
+
863
+ :host([theme~='tertiary-inline']) [part='label'] {
864
+ padding: 0;
865
+ overflow: visible;
866
+ line-height: inherit;
867
+ }
868
+
869
+ :host([theme~='primary']) {
870
+ background: var(--_lumo-button-primary-background);
871
+ border: var(--vaadin-button-primary-border, none);
872
+ color: var(--_lumo-button-primary-text-color);
873
+ font-weight: var(--vaadin-button-primary-font-weight, 600);
874
+ min-width: calc(var(--lumo-button-size) * 2.5);
875
+ }
876
+
877
+ :host([theme~='primary'])::before {
878
+ background-color: black;
879
+ }
880
+
881
+ @media (any-hover: hover) {
882
+ :host([theme~='primary']:hover)::before {
883
+ opacity: 0.05;
884
+ }
885
+ }
886
+
887
+ :host([theme~='primary'][active])::before {
888
+ opacity: 0.1;
889
+ }
890
+
891
+ :host([theme~='primary'][active])::after {
892
+ opacity: 0.2;
893
+ }
894
+
895
+ /* Colors (success, warning, error, contrast) */
896
+
897
+ :host([theme~='success']) {
898
+ color: var(--lumo-success-text-color);
899
+ }
900
+
901
+ :host([theme~='success'][theme~='primary']) {
902
+ background-color: var(--lumo-success-color);
903
+ color: var(--lumo-success-contrast-color);
904
+ }
905
+
906
+ :host([theme~='warning']) {
907
+ color: var(--lumo-warning-text-color);
908
+ }
909
+
910
+ :host([theme~='warning'][theme~='primary']) {
911
+ background-color: var(--lumo-warning-color);
912
+ color: var(--lumo-warning-contrast-color);
913
+ }
914
+
915
+ :host([theme~='error']) {
916
+ color: var(--lumo-error-text-color);
917
+ }
918
+
919
+ :host([theme~='error'][theme~='primary']) {
920
+ background-color: var(--lumo-error-color);
921
+ color: var(--lumo-error-contrast-color);
922
+ }
923
+
924
+ :host([theme~='contrast']) {
925
+ color: var(--lumo-contrast);
926
+ }
927
+
928
+ :host([theme~='contrast'][theme~='primary']) {
929
+ background-color: var(--lumo-contrast);
930
+ color: var(--lumo-base-color);
931
+ }
932
+
933
+ /* Disabled state. Keep selectors after other color variants. */
934
+
935
+ :host([disabled]) {
936
+ pointer-events: none;
937
+ color: var(--lumo-disabled-text-color);
938
+ }
939
+
940
+ :host([theme~='primary'][disabled]) {
941
+ background-color: var(--lumo-contrast-30pct);
942
+ color: var(--lumo-base-color);
943
+ }
944
+
945
+ :host([theme~='primary'][disabled]) [part] {
946
+ opacity: 0.7;
947
+ }
948
+
949
+ /* Icons */
950
+
951
+ [part] ::slotted(vaadin-icon) {
952
+ display: inline-block;
953
+ width: var(--lumo-icon-size-m);
954
+ height: var(--lumo-icon-size-m);
955
+ }
956
+
957
+ /* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
958
+ [part] ::slotted(vaadin-icon[icon^='vaadin:']) {
959
+ padding: 0.25em;
960
+ box-sizing: border-box !important;
961
+ }
962
+
963
+ [part='prefix'] {
964
+ margin-left: -0.25em;
965
+ margin-right: 0.25em;
966
+ }
967
+
968
+ [part='suffix'] {
969
+ margin-left: 0.25em;
970
+ margin-right: -0.25em;
971
+ }
972
+
973
+ /* Icon-only */
974
+
975
+ :host([theme~='icon']:not([theme~='tertiary-inline'])) {
976
+ min-width: var(--lumo-button-size);
977
+ padding-left: calc(var(--lumo-button-size) / 4);
978
+ padding-right: calc(var(--lumo-button-size) / 4);
979
+ }
980
+
981
+ :host([theme~='icon']) [part='prefix'],
982
+ :host([theme~='icon']) [part='suffix'] {
983
+ margin-left: 0;
984
+ margin-right: 0;
985
+ }
986
+
987
+ /* RTL specific styles */
988
+
989
+ :host([dir='rtl']) [part='prefix'] {
990
+ margin-left: 0.25em;
991
+ margin-right: -0.25em;
992
+ }
993
+
994
+ :host([dir='rtl']) [part='suffix'] {
995
+ margin-left: -0.25em;
996
+ margin-right: 0.25em;
997
+ }
998
+
999
+ :host([dir='rtl'][theme~='icon']) [part='prefix'],
1000
+ :host([dir='rtl'][theme~='icon']) [part='suffix'] {
1001
+ margin-left: 0;
1002
+ margin-right: 0;
1003
+ }
1004
+ `;J("vaadin-button",fd,{moduleId:"lumo-button"});J("vaadin-date-picker-year",$`
1005
+ :host([current]) [part='year-number'] {
1006
+ color: var(--lumo-primary-text-color);
1007
+ }
1008
+
1009
+ :host(:not([current])) [part='year-number'],
1010
+ [part='year-separator'] {
1011
+ opacity: var(--_lumo-date-picker-year-opacity, 0.7);
1012
+ transition: 0.2s opacity;
1013
+ }
1014
+
1015
+ [part='year-number'],
1016
+ [part='year-separator'] {
1017
+ display: flex;
1018
+ align-items: center;
1019
+ justify-content: center;
1020
+ height: 50%;
1021
+ transform: translateY(-50%);
1022
+ }
1023
+
1024
+ [part='year-separator']::after {
1025
+ color: var(--lumo-disabled-text-color);
1026
+ content: '\\2022';
1027
+ }
1028
+ `,{moduleId:"lumo-date-picker-year"});J("vaadin-date-picker-overlay-content",$`
1029
+ :host {
1030
+ position: relative;
1031
+ /* Background for the year scroller, placed here as we are using a mask image on the actual years part */
1032
+ background-image: linear-gradient(var(--lumo-shade-5pct), var(--lumo-shade-5pct));
1033
+ background-size: 57px 100%;
1034
+ background-position: top right;
1035
+ background-repeat: no-repeat;
1036
+ cursor: default;
1037
+ }
1038
+
1039
+ ::slotted([slot='months']) {
1040
+ /* Month calendar height:
1041
+ header height + margin-bottom
1042
+ + weekdays height + margin-bottom
1043
+ + date cell heights
1044
+ + small margin between month calendars
1045
+ */
1046
+ /* prettier-ignore */
1047
+ --vaadin-infinite-scroller-item-height:
1048
+ calc(
1049
+ var(--lumo-font-size-l) + var(--lumo-space-m)
1050
+ + var(--lumo-font-size-xs) + var(--lumo-space-s)
1051
+ + var(--lumo-size-m) * 6
1052
+ + var(--lumo-space-s)
1053
+ );
1054
+ --vaadin-infinite-scroller-buffer-offset: 10%;
1055
+ -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent);
1056
+ mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent);
1057
+ position: relative;
1058
+ margin-right: 57px;
1059
+ }
1060
+
1061
+ ::slotted([slot='years']) {
1062
+ /* TODO get rid of fixed magic number */
1063
+ --vaadin-infinite-scroller-buffer-width: 97px;
1064
+ width: 57px;
1065
+ height: auto;
1066
+ top: 0;
1067
+ bottom: 0;
1068
+ font-size: var(--lumo-font-size-s);
1069
+ box-shadow: inset 2px 0 4px 0 var(--lumo-shade-5pct);
1070
+ -webkit-mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
1071
+ mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
1072
+ cursor: var(--lumo-clickable-cursor);
1073
+ }
1074
+
1075
+ ::slotted([slot='years']:hover) {
1076
+ --_lumo-date-picker-year-opacity: 1;
1077
+ }
1078
+
1079
+ /* TODO unsupported selector */
1080
+ #scrollers {
1081
+ position: static;
1082
+ display: block;
1083
+ }
1084
+
1085
+ /* TODO fix this in vaadin-date-picker that it adapts to the width of the year scroller */
1086
+ :host([desktop]) ::slotted([slot='months']) {
1087
+ right: auto;
1088
+ }
1089
+
1090
+ /* Year scroller position indicator */
1091
+ ::slotted([slot='years'])::before {
1092
+ border: none;
1093
+ width: 1em;
1094
+ height: 1em;
1095
+ background-color: var(--lumo-base-color);
1096
+ background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
1097
+ transform: translate(-75%, -50%) rotate(45deg);
1098
+ border-top-right-radius: var(--lumo-border-radius-s);
1099
+ box-shadow: 2px -2px 6px 0 var(--lumo-shade-5pct);
1100
+ z-index: 1;
1101
+ }
1102
+
1103
+ [part='toolbar'] {
1104
+ padding: var(--lumo-space-s);
1105
+ border-bottom-left-radius: var(--lumo-border-radius-l);
1106
+ margin-right: 57px;
1107
+ }
1108
+
1109
+ [part='toolbar'] ::slotted(vaadin-button) {
1110
+ margin: 0;
1111
+ }
1112
+
1113
+ /* Narrow viewport mode (fullscreen) */
1114
+
1115
+ :host([fullscreen]) [part='toolbar'] {
1116
+ order: -1;
1117
+ background-color: var(--lumo-base-color);
1118
+ }
1119
+
1120
+ :host([fullscreen]) [part='overlay-header'] {
1121
+ order: -2;
1122
+ height: var(--lumo-size-m);
1123
+ padding: var(--lumo-space-s);
1124
+ position: absolute;
1125
+ left: 0;
1126
+ right: 0;
1127
+ justify-content: center;
1128
+ }
1129
+
1130
+ :host([fullscreen]) [part='toggle-button'],
1131
+ :host([fullscreen]) [part='clear-button'],
1132
+ [part='overlay-header'] [part='label'] {
1133
+ display: none;
1134
+ }
1135
+
1136
+ /* Very narrow screen (year scroller initially hidden) */
1137
+
1138
+ [part='years-toggle-button'] {
1139
+ display: flex;
1140
+ align-items: center;
1141
+ height: var(--lumo-size-s);
1142
+ padding: 0 0.5em;
1143
+ border-radius: var(--lumo-border-radius-m);
1144
+ z-index: 3;
1145
+ color: var(--lumo-primary-text-color);
1146
+ font-weight: 500;
1147
+ -webkit-font-smoothing: antialiased;
1148
+ -moz-osx-font-smoothing: grayscale;
1149
+ }
1150
+
1151
+ :host([years-visible]) [part='years-toggle-button'] {
1152
+ background-color: var(--lumo-primary-color);
1153
+ color: var(--lumo-primary-contrast-color);
1154
+ }
1155
+
1156
+ /* TODO magic number (same as used for media-query in vaadin-date-picker-overlay-content) */
1157
+ @media screen and (max-width: 374px) {
1158
+ :host {
1159
+ background-image: none;
1160
+ }
1161
+
1162
+ [part='toolbar'],
1163
+ ::slotted([slot='months']) {
1164
+ margin-right: 0;
1165
+ }
1166
+
1167
+ /* TODO make date-picker adapt to the width of the years part */
1168
+ ::slotted([slot='years']) {
1169
+ --vaadin-infinite-scroller-buffer-width: 90px;
1170
+ width: 50px;
1171
+ background-color: var(--lumo-shade-5pct);
1172
+ }
1173
+
1174
+ :host([years-visible]) ::slotted([slot='months']) {
1175
+ padding-left: 50px;
1176
+ }
1177
+ }
1178
+ `,{moduleId:"lumo-date-picker-overlay-content"});J("vaadin-month-calendar",$`
1179
+ :host {
1180
+ -moz-user-select: none;
1181
+ -webkit-user-select: none;
1182
+ -webkit-tap-highlight-color: transparent;
1183
+ user-select: none;
1184
+ font-size: var(--lumo-font-size-m);
1185
+ color: var(--lumo-body-text-color);
1186
+ text-align: center;
1187
+ padding: 0 var(--lumo-space-xs);
1188
+ --_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
1189
+ --_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
1190
+ --_selection-color: var(--vaadin-selection-color, var(--lumo-primary-color));
1191
+ --_selection-color-text: var(--vaadin-selection-color-text, var(--lumo-primary-text-color));
1192
+ }
1193
+
1194
+ /* Month header */
1195
+
1196
+ [part='month-header'] {
1197
+ color: var(--lumo-header-text-color);
1198
+ font-size: var(--lumo-font-size-l);
1199
+ line-height: 1;
1200
+ font-weight: 500;
1201
+ margin-bottom: var(--lumo-space-m);
1202
+ }
1203
+
1204
+ /* Week days and numbers */
1205
+
1206
+ [part='weekdays'],
1207
+ [part='weekday'],
1208
+ [part='week-number'] {
1209
+ font-size: var(--lumo-font-size-xxs);
1210
+ line-height: 1;
1211
+ color: var(--lumo-secondary-text-color);
1212
+ }
1213
+
1214
+ [part='weekdays'] {
1215
+ margin-bottom: var(--lumo-space-s);
1216
+ }
1217
+
1218
+ [part='weekday']:empty,
1219
+ [part='week-number'] {
1220
+ width: var(--lumo-size-xs);
1221
+ }
1222
+
1223
+ /* Date and week number cells */
1224
+
1225
+ [part~='date'],
1226
+ [part='week-number'] {
1227
+ box-sizing: border-box;
1228
+ display: inline-flex;
1229
+ align-items: center;
1230
+ justify-content: center;
1231
+ height: var(--lumo-size-m);
1232
+ position: relative;
1233
+ }
1234
+
1235
+ [part~='date'] {
1236
+ transition: color 0.1s;
1237
+ }
1238
+
1239
+ [part~='date']:not(:empty) {
1240
+ cursor: var(--lumo-clickable-cursor);
1241
+ }
1242
+
1243
+ :host([week-numbers]) [part='weekday']:not(:empty),
1244
+ :host([week-numbers]) [part~='date'] {
1245
+ width: calc((100% - var(--lumo-size-xs)) / 7);
1246
+ }
1247
+
1248
+ /* Today date */
1249
+
1250
+ [part~='date'][part~='today'] {
1251
+ color: var(--_selection-color-text);
1252
+ }
1253
+
1254
+ /* Focused date */
1255
+
1256
+ [part~='date']::before {
1257
+ content: '';
1258
+ position: absolute;
1259
+ z-index: -1;
1260
+ top: 50%;
1261
+ left: 50%;
1262
+ transform: translate(-50%, -50%);
1263
+ min-width: 2em;
1264
+ min-height: 2em;
1265
+ width: 80%;
1266
+ height: 80%;
1267
+ max-height: 100%;
1268
+ max-width: 100%;
1269
+ border-radius: var(--lumo-border-radius-m);
1270
+ }
1271
+
1272
+ [part~='date'][part~='focused']::before {
1273
+ box-shadow:
1274
+ 0 0 0 1px var(--lumo-base-color),
1275
+ 0 0 0 calc(var(--_focus-ring-width) + 1px) var(--_focus-ring-color);
1276
+ }
1277
+
1278
+ :host(:not([focused])) [part~='date'][part~='focused']::before {
1279
+ animation: vaadin-date-picker-month-calendar-focus-date 1.4s infinite;
1280
+ }
1281
+
1282
+ @keyframes vaadin-date-picker-month-calendar-focus-date {
1283
+ 50% {
1284
+ box-shadow:
1285
+ 0 0 0 1px var(--lumo-base-color),
1286
+ 0 0 0 calc(var(--_focus-ring-width) + 1px) transparent;
1287
+ }
1288
+ }
1289
+
1290
+ [part~='date']:not(:empty):not([part~='disabled']):not([part~='selected']):hover::before {
1291
+ background-color: var(--lumo-primary-color-10pct);
1292
+ }
1293
+
1294
+ [part~='date'][part~='selected'] {
1295
+ color: var(--lumo-primary-contrast-color);
1296
+ }
1297
+
1298
+ [part~='date'][part~='selected']::before {
1299
+ background-color: var(--_selection-color);
1300
+ }
1301
+
1302
+ [part~='date'][part~='disabled'] {
1303
+ color: var(--lumo-disabled-text-color);
1304
+ }
1305
+
1306
+ @media (pointer: coarse) {
1307
+ [part~='date']:hover:not([part~='selected'])::before,
1308
+ :host(:not([focus-ring])) [part~='focused']:not([part~='selected'])::before {
1309
+ display: none;
1310
+ }
1311
+
1312
+ [part~='date']:not(:empty):not([part~='disabled']):active::before {
1313
+ display: block;
1314
+ }
1315
+
1316
+ :host(:not([focus-ring])) [part~='date'][part~='selected']::before {
1317
+ box-shadow: none;
1318
+ }
1319
+ }
1320
+ /* Disabled */
1321
+
1322
+ :host([disabled]) * {
1323
+ color: var(--lumo-disabled-text-color) !important;
1324
+ }
1325
+ `,{moduleId:"lumo-month-calendar"});J("vaadin-input-container",$`
1326
+ :host {
1327
+ background: var(--_background);
1328
+ padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
1329
+ font-weight: var(--vaadin-input-field-value-font-weight, 500);
1330
+ line-height: 1;
1331
+ position: relative;
1332
+ cursor: text;
1333
+ box-sizing: border-box;
1334
+ border-radius:
1335
+ /* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius#syntax */
1336
+ var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
1337
+ var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
1338
+ var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius))
1339
+ var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius));
1340
+ /* Fallback */
1341
+ --_input-container-radius: var(--vaadin-input-field-border-radius, var(--lumo-border-radius-m));
1342
+ --_input-height: var(--lumo-text-field-size, var(--lumo-size-m));
1343
+ /* Default values */
1344
+ --_background: var(--vaadin-input-field-background, var(--lumo-contrast-10pct));
1345
+ --_hover-highlight: var(--vaadin-input-field-hover-highlight, var(--lumo-contrast-50pct));
1346
+ --_input-border-color: var(--vaadin-input-field-border-color, var(--lumo-contrast-50pct));
1347
+ --_icon-color: var(--vaadin-input-field-icon-color, var(--lumo-contrast-60pct));
1348
+ --_icon-size: var(--vaadin-input-field-icon-size, var(--lumo-icon-size-m));
1349
+ --_invalid-background: var(--vaadin-input-field-invalid-background, var(--lumo-error-color-10pct));
1350
+ --_invalid-hover-highlight: var(--vaadin-input-field-invalid-hover-highlight, var(--lumo-error-color-50pct));
1351
+ --_disabled-background: var(--vaadin-input-field-disabled-background, var(--lumo-contrast-5pct));
1352
+ --_disabled-value-color: var(--vaadin-input-field-disabled-value-color, var(--lumo-disabled-text-color));
1353
+ }
1354
+
1355
+ :host([dir='rtl']) {
1356
+ border-radius:
1357
+ /* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
1358
+ var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
1359
+ var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
1360
+ var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius))
1361
+ var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius));
1362
+ }
1363
+
1364
+ /* Used for hover and activation effects */
1365
+ :host::after {
1366
+ content: '';
1367
+ position: absolute;
1368
+ inset: 0;
1369
+ border-radius: inherit;
1370
+ pointer-events: none;
1371
+ background: var(--_hover-highlight);
1372
+ opacity: 0;
1373
+ transition:
1374
+ transform 0.15s,
1375
+ opacity 0.2s;
1376
+ transform-origin: 100% 0;
1377
+ }
1378
+
1379
+ ::slotted(:not([slot$='fix'])) {
1380
+ cursor: inherit;
1381
+ min-height: var(--vaadin-input-field-height, var(--_input-height));
1382
+ padding: 0 0.25em;
1383
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
1384
+ -webkit-mask-image: var(--_lumo-text-field-overflow-mask-image);
1385
+ mask-image: var(--_lumo-text-field-overflow-mask-image);
1386
+ }
1387
+
1388
+ /* Read-only */
1389
+ :host([readonly]) {
1390
+ color: var(--lumo-secondary-text-color);
1391
+ background-color: transparent;
1392
+ cursor: default;
1393
+ }
1394
+
1395
+ :host([readonly])::after {
1396
+ background-color: transparent;
1397
+ opacity: 1;
1398
+ border: var(--vaadin-input-field-readonly-border, 1px dashed var(--lumo-contrast-30pct));
1399
+ }
1400
+
1401
+ /* Disabled */
1402
+ :host([disabled]) {
1403
+ background: var(--_disabled-background);
1404
+ }
1405
+
1406
+ :host([disabled]) ::slotted(:not([slot$='fix'])) {
1407
+ -webkit-text-fill-color: var(--_disabled-value-color);
1408
+ color: var(--_disabled-value-color);
1409
+ }
1410
+
1411
+ /* Invalid */
1412
+ :host([invalid]) {
1413
+ background: var(--_invalid-background);
1414
+ }
1415
+
1416
+ :host([invalid]:not([readonly]))::after {
1417
+ background: var(--_invalid-hover-highlight);
1418
+ }
1419
+
1420
+ /* Slotted icons */
1421
+ ::slotted(vaadin-icon) {
1422
+ color: var(--_icon-color);
1423
+ width: var(--_icon-size);
1424
+ height: var(--_icon-size);
1425
+ }
1426
+
1427
+ /* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
1428
+ ::slotted(vaadin-icon[icon^='vaadin:']) {
1429
+ padding: 0.25em;
1430
+ box-sizing: border-box !important;
1431
+ }
1432
+
1433
+ /* Text align */
1434
+ :host([dir='rtl']) ::slotted(:not([slot$='fix'])) {
1435
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent, #000 1.25em);
1436
+ }
1437
+
1438
+ @-moz-document url-prefix() {
1439
+ :host([dir='rtl']) ::slotted(:not([slot$='fix'])) {
1440
+ mask-image: var(--_lumo-text-field-overflow-mask-image);
1441
+ }
1442
+ }
1443
+
1444
+ :host([theme~='align-left']) ::slotted(:not([slot$='fix'])) {
1445
+ text-align: start;
1446
+ --_lumo-text-field-overflow-mask-image: none;
1447
+ }
1448
+
1449
+ :host([theme~='align-center']) ::slotted(:not([slot$='fix'])) {
1450
+ text-align: center;
1451
+ --_lumo-text-field-overflow-mask-image: none;
1452
+ }
1453
+
1454
+ :host([theme~='align-right']) ::slotted(:not([slot$='fix'])) {
1455
+ text-align: end;
1456
+ --_lumo-text-field-overflow-mask-image: none;
1457
+ }
1458
+
1459
+ @-moz-document url-prefix() {
1460
+ /* Firefox is smart enough to align overflowing text to right */
1461
+ :host([theme~='align-right']) ::slotted(:not([slot$='fix'])) {
1462
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent 0.25em, #000 1.5em);
1463
+ }
1464
+ }
1465
+
1466
+ @-moz-document url-prefix() {
1467
+ /* Firefox is smart enough to align overflowing text to right */
1468
+ :host([theme~='align-left']) ::slotted(:not([slot$='fix'])) {
1469
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
1470
+ }
1471
+ }
1472
+
1473
+ /* RTL specific styles */
1474
+ :host([dir='rtl'])::after {
1475
+ transform-origin: 0% 0;
1476
+ }
1477
+
1478
+ :host([theme~='align-left'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
1479
+ --_lumo-text-field-overflow-mask-image: none;
1480
+ }
1481
+
1482
+ :host([theme~='align-center'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
1483
+ --_lumo-text-field-overflow-mask-image: none;
1484
+ }
1485
+
1486
+ :host([theme~='align-right'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
1487
+ --_lumo-text-field-overflow-mask-image: none;
1488
+ }
1489
+
1490
+ @-moz-document url-prefix() {
1491
+ /* Firefox is smart enough to align overflowing text to right */
1492
+ :host([theme~='align-right'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
1493
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent 0.25em, #000 1.5em);
1494
+ }
1495
+ }
1496
+
1497
+ @-moz-document url-prefix() {
1498
+ /* Firefox is smart enough to align overflowing text to right */
1499
+ :host([theme~='align-left'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
1500
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
1501
+ }
1502
+ }
1503
+ `,{moduleId:"lumo-input-container"});/**
1504
+ * @license
1505
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
1506
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1507
+ */const pd=$`
1508
+ @font-face {
1509
+ font-family: 'lumo-icons';
1510
+ 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=)
1511
+ format('woff');
1512
+ font-weight: normal;
1513
+ font-style: normal;
1514
+ }
1515
+
1516
+ html {
1517
+ --lumo-icons-align-center: '\\ea01';
1518
+ --lumo-icons-align-left: '\\ea02';
1519
+ --lumo-icons-align-right: '\\ea03';
1520
+ --lumo-icons-angle-down: '\\ea04';
1521
+ --lumo-icons-angle-left: '\\ea05';
1522
+ --lumo-icons-angle-right: '\\ea06';
1523
+ --lumo-icons-angle-up: '\\ea07';
1524
+ --lumo-icons-arrow-down: '\\ea08';
1525
+ --lumo-icons-arrow-left: '\\ea09';
1526
+ --lumo-icons-arrow-right: '\\ea0a';
1527
+ --lumo-icons-arrow-up: '\\ea0b';
1528
+ --lumo-icons-bar-chart: '\\ea0c';
1529
+ --lumo-icons-bell: '\\ea0d';
1530
+ --lumo-icons-calendar: '\\ea0e';
1531
+ --lumo-icons-checkmark: '\\ea0f';
1532
+ --lumo-icons-chevron-down: '\\ea10';
1533
+ --lumo-icons-chevron-left: '\\ea11';
1534
+ --lumo-icons-chevron-right: '\\ea12';
1535
+ --lumo-icons-chevron-up: '\\ea13';
1536
+ --lumo-icons-clock: '\\ea14';
1537
+ --lumo-icons-cog: '\\ea15';
1538
+ --lumo-icons-cross: '\\ea16';
1539
+ --lumo-icons-download: '\\ea17';
1540
+ --lumo-icons-drag-handle: '\\ea18';
1541
+ --lumo-icons-dropdown: '\\ea19';
1542
+ --lumo-icons-edit: '\\ea1a';
1543
+ --lumo-icons-error: '\\ea1b';
1544
+ --lumo-icons-eye: '\\ea1c';
1545
+ --lumo-icons-eye-disabled: '\\ea1d';
1546
+ --lumo-icons-menu: '\\ea1e';
1547
+ --lumo-icons-minus: '\\ea1f';
1548
+ --lumo-icons-ordered-list: '\\ea20';
1549
+ --lumo-icons-phone: '\\ea21';
1550
+ --lumo-icons-photo: '\\ea22';
1551
+ --lumo-icons-play: '\\ea23';
1552
+ --lumo-icons-plus: '\\ea24';
1553
+ --lumo-icons-redo: '\\ea25';
1554
+ --lumo-icons-reload: '\\ea26';
1555
+ --lumo-icons-resize-handle: '\\ea27';
1556
+ --lumo-icons-search: '\\ea28';
1557
+ --lumo-icons-undo: '\\ea29';
1558
+ --lumo-icons-unordered-list: '\\ea2a';
1559
+ --lumo-icons-upload: '\\ea2b';
1560
+ --lumo-icons-user: '\\ea2c';
1561
+ }
1562
+ `;wt("font-icons",pd);/**
1563
+ * @license
1564
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
1565
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1566
+ */const zs=$`
1567
+ [part$='button'] {
1568
+ flex: none;
1569
+ width: 1em;
1570
+ height: 1em;
1571
+ line-height: 1;
1572
+ font-size: var(--lumo-icon-size-m);
1573
+ text-align: center;
1574
+ color: var(--lumo-contrast-60pct);
1575
+ transition: 0.2s color;
1576
+ cursor: var(--lumo-clickable-cursor);
1577
+ }
1578
+
1579
+ [part$='button']:hover {
1580
+ color: var(--lumo-contrast-90pct);
1581
+ }
1582
+
1583
+ :host([disabled]) [part$='button'],
1584
+ :host([readonly]) [part$='button'] {
1585
+ color: var(--lumo-contrast-20pct);
1586
+ cursor: default;
1587
+ }
1588
+
1589
+ [part$='button']::before {
1590
+ font-family: 'lumo-icons';
1591
+ display: block;
1592
+ }
1593
+ `;J("",zs,{moduleId:"lumo-field-button"});/**
1594
+ * @license
1595
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
1596
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1597
+ */const md=$`
1598
+ :host {
1599
+ --_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
1600
+ }
1601
+
1602
+ :host([has-helper]) [part='helper-text']::before {
1603
+ content: '';
1604
+ display: block;
1605
+ height: var(--_helper-spacing);
1606
+ }
1607
+
1608
+ [part='helper-text'] {
1609
+ display: block;
1610
+ color: var(--vaadin-input-field-helper-color, var(--lumo-secondary-text-color));
1611
+ font-size: var(--vaadin-input-field-helper-font-size, var(--lumo-font-size-xs));
1612
+ line-height: var(--lumo-line-height-xs);
1613
+ font-weight: var(--vaadin-input-field-helper-font-weight, 400);
1614
+ margin-left: calc(var(--lumo-border-radius-m) / 4);
1615
+ transition: color 0.2s;
1616
+ }
1617
+
1618
+ :host(:hover:not([readonly])) [part='helper-text'] {
1619
+ color: var(--lumo-body-text-color);
1620
+ }
1621
+
1622
+ :host([disabled]) [part='helper-text'] {
1623
+ color: var(--lumo-disabled-text-color);
1624
+ -webkit-text-fill-color: var(--lumo-disabled-text-color);
1625
+ }
1626
+
1627
+ :host([has-helper][theme~='helper-above-field']) [part='helper-text']::before {
1628
+ display: none;
1629
+ }
1630
+
1631
+ :host([has-helper][theme~='helper-above-field']) [part='helper-text']::after {
1632
+ content: '';
1633
+ display: block;
1634
+ height: var(--_helper-spacing);
1635
+ }
1636
+
1637
+ :host([has-helper][theme~='helper-above-field']) [part='label'] {
1638
+ order: 0;
1639
+ padding-bottom: var(--_helper-spacing);
1640
+ }
1641
+
1642
+ :host([has-helper][theme~='helper-above-field']) [part='helper-text'] {
1643
+ order: 1;
1644
+ }
1645
+
1646
+ :host([has-helper][theme~='helper-above-field']) [part='label'] + * {
1647
+ order: 2;
1648
+ }
1649
+
1650
+ :host([has-helper][theme~='helper-above-field']) [part='error-message'] {
1651
+ order: 3;
1652
+ }
1653
+ `;/**
1654
+ * @license
1655
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
1656
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1657
+ */const Us=$`
1658
+ [part='label'] {
1659
+ align-self: flex-start;
1660
+ color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
1661
+ font-weight: var(--vaadin-input-field-label-font-weight, 500);
1662
+ font-size: var(--vaadin-input-field-label-font-size, var(--lumo-font-size-s));
1663
+ margin-left: calc(var(--lumo-border-radius-m) / 4);
1664
+ transition: color 0.2s;
1665
+ line-height: 1;
1666
+ padding-right: 1em;
1667
+ padding-bottom: 0.5em;
1668
+ /* As a workaround for diacritics being cut off, add a top padding and a
1669
+ negative margin to compensate */
1670
+ padding-top: 0.25em;
1671
+ margin-top: -0.25em;
1672
+ overflow: hidden;
1673
+ white-space: nowrap;
1674
+ text-overflow: ellipsis;
1675
+ position: relative;
1676
+ max-width: 100%;
1677
+ box-sizing: border-box;
1678
+ }
1679
+
1680
+ :host([focused]:not([readonly])) [part='label'] {
1681
+ color: var(--vaadin-input-field-focused-label-color, var(--lumo-primary-text-color));
1682
+ }
1683
+
1684
+ :host(:hover:not([readonly]):not([focused])) [part='label'] {
1685
+ color: var(--vaadin-input-field-hovered-label-color, var(--lumo-body-text-color));
1686
+ }
1687
+
1688
+ /* Touch device adjustment */
1689
+ @media (pointer: coarse) {
1690
+ :host(:hover:not([readonly]):not([focused])) [part='label'] {
1691
+ color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
1692
+ }
1693
+ }
1694
+
1695
+ :host([has-label])::before {
1696
+ margin-top: calc(var(--lumo-font-size-s) * 1.5);
1697
+ }
1698
+
1699
+ :host([has-label][theme~='small'])::before {
1700
+ margin-top: calc(var(--lumo-font-size-xs) * 1.5);
1701
+ }
1702
+
1703
+ :host([has-label]) {
1704
+ padding-top: var(--lumo-space-m);
1705
+ }
1706
+
1707
+ :host([has-label]) ::slotted([slot='tooltip']) {
1708
+ --vaadin-tooltip-offset-bottom: calc((var(--lumo-space-m) - var(--lumo-space-xs)) * -1);
1709
+ }
1710
+
1711
+ :host([required]) [part='required-indicator']::after {
1712
+ content: var(--lumo-required-field-indicator, '\\2022');
1713
+ transition: opacity 0.2s;
1714
+ color: var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color));
1715
+ position: absolute;
1716
+ right: 0;
1717
+ width: 1em;
1718
+ text-align: center;
1719
+ }
1720
+
1721
+ :host([invalid]) [part='required-indicator']::after {
1722
+ color: var(--lumo-required-field-indicator-color, var(--lumo-error-text-color));
1723
+ }
1724
+
1725
+ [part='error-message'] {
1726
+ margin-left: calc(var(--lumo-border-radius-m) / 4);
1727
+ font-size: var(--vaadin-input-field-error-font-size, var(--lumo-font-size-xs));
1728
+ line-height: var(--lumo-line-height-xs);
1729
+ font-weight: var(--vaadin-input-field-error-font-weight, 400);
1730
+ color: var(--vaadin-input-field-error-color, var(--lumo-error-text-color));
1731
+ will-change: max-height;
1732
+ transition: 0.4s max-height;
1733
+ max-height: 5em;
1734
+ }
1735
+
1736
+ :host([has-error-message]) [part='error-message']::before,
1737
+ :host([has-error-message]) [part='error-message']::after {
1738
+ content: '';
1739
+ display: block;
1740
+ height: 0.4em;
1741
+ }
1742
+
1743
+ :host(:not([invalid])) [part='error-message'] {
1744
+ max-height: 0;
1745
+ overflow: hidden;
1746
+ }
1747
+
1748
+ /* RTL specific styles */
1749
+
1750
+ :host([dir='rtl']) [part='label'] {
1751
+ margin-left: 0;
1752
+ margin-right: calc(var(--lumo-border-radius-m) / 4);
1753
+ }
1754
+
1755
+ :host([dir='rtl']) [part='label'] {
1756
+ padding-left: 1em;
1757
+ padding-right: 0;
1758
+ }
1759
+
1760
+ :host([dir='rtl']) [part='required-indicator']::after {
1761
+ right: auto;
1762
+ left: 0;
1763
+ }
1764
+
1765
+ :host([dir='rtl']) [part='error-message'] {
1766
+ margin-left: 0;
1767
+ margin-right: calc(var(--lumo-border-radius-m) / 4);
1768
+ }
1769
+ `;J("",Us,{moduleId:"lumo-required-field"});/**
1770
+ * @license
1771
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
1772
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1773
+ */const _d=$`
1774
+ :host {
1775
+ --lumo-text-field-size: var(--lumo-size-m);
1776
+ color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
1777
+ font-size: var(--vaadin-input-field-value-font-size, var(--lumo-font-size-m));
1778
+ font-family: var(--lumo-font-family);
1779
+ -webkit-font-smoothing: antialiased;
1780
+ -moz-osx-font-smoothing: grayscale;
1781
+ -webkit-tap-highlight-color: transparent;
1782
+ padding: var(--lumo-space-xs) 0;
1783
+ --_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
1784
+ --_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
1785
+ --_input-height: var(--vaadin-input-field-height, var(--lumo-text-field-size));
1786
+ --_disabled-value-color: var(--vaadin-input-field-disabled-value-color, var(--lumo-disabled-text-color));
1787
+ }
1788
+
1789
+ :host::before {
1790
+ height: var(--_input-height);
1791
+ box-sizing: border-box;
1792
+ display: inline-flex;
1793
+ align-items: center;
1794
+ }
1795
+
1796
+ :host([focused]) [part='input-field'] ::slotted(:is(input, textarea)) {
1797
+ -webkit-mask-image: none;
1798
+ mask-image: none;
1799
+ }
1800
+
1801
+ ::slotted(:is(input, textarea):placeholder-shown) {
1802
+ color: var(--vaadin-input-field-placeholder-color, var(--lumo-secondary-text-color));
1803
+ }
1804
+
1805
+ /* Hover */
1806
+ :host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
1807
+ opacity: var(--vaadin-input-field-hover-highlight-opacity, 0.1);
1808
+ }
1809
+
1810
+ /* Touch device adjustment */
1811
+ @media (pointer: coarse) {
1812
+ :host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
1813
+ opacity: 0;
1814
+ }
1815
+
1816
+ :host(:active:not([readonly]):not([focused])) [part='input-field']::after {
1817
+ opacity: 0.2;
1818
+ }
1819
+ }
1820
+
1821
+ /* Trigger when not focusing using the keyboard */
1822
+ :host([focused]:not([focus-ring]):not([readonly])) [part='input-field']::after {
1823
+ transform: scaleX(0);
1824
+ transition-duration: 0.15s, 1s;
1825
+ }
1826
+
1827
+ /* Focus-ring */
1828
+ :host([focus-ring]) [part='input-field'] {
1829
+ box-shadow: 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
1830
+ }
1831
+
1832
+ /* Read-only and disabled */
1833
+ :host(:is([readonly], [disabled])) ::slotted(:is(input, textarea):placeholder-shown) {
1834
+ opacity: 0;
1835
+ }
1836
+
1837
+ /* Read-only style */
1838
+ :host([readonly]) {
1839
+ --vaadin-input-field-border-color: transparent;
1840
+ }
1841
+
1842
+ /* Disabled style */
1843
+ :host([disabled]) {
1844
+ pointer-events: none;
1845
+ --vaadin-input-field-border-color: var(--lumo-contrast-20pct);
1846
+ }
1847
+
1848
+ :host([disabled]) [part='label'],
1849
+ :host([disabled]) [part='input-field'] ::slotted([slot$='fix']) {
1850
+ color: var(--lumo-disabled-text-color);
1851
+ -webkit-text-fill-color: var(--lumo-disabled-text-color);
1852
+ }
1853
+
1854
+ :host([disabled]) [part='input-field'] ::slotted(:not([slot$='fix'])) {
1855
+ color: var(--_disabled-value-color);
1856
+ -webkit-text-fill-color: var(--_disabled-value-color);
1857
+ }
1858
+
1859
+ /* Invalid style */
1860
+ :host([invalid]) {
1861
+ --vaadin-input-field-border-color: var(--lumo-error-color);
1862
+ }
1863
+
1864
+ :host([invalid][focus-ring]) [part='input-field'] {
1865
+ box-shadow: 0 0 0 var(--_focus-ring-width) var(--lumo-error-color-50pct);
1866
+ }
1867
+
1868
+ :host([input-prevented]) [part='input-field'] {
1869
+ animation: shake 0.15s infinite;
1870
+ }
1871
+
1872
+ @keyframes shake {
1873
+ 25% {
1874
+ transform: translateX(4px);
1875
+ }
1876
+ 75% {
1877
+ transform: translateX(-4px);
1878
+ }
1879
+ }
1880
+
1881
+ /* Small theme */
1882
+ :host([theme~='small']) {
1883
+ font-size: var(--lumo-font-size-s);
1884
+ --lumo-text-field-size: var(--lumo-size-s);
1885
+ }
1886
+
1887
+ :host([theme~='small']) [part='label'] {
1888
+ font-size: var(--lumo-font-size-xs);
1889
+ }
1890
+
1891
+ :host([theme~='small']) [part='error-message'] {
1892
+ font-size: var(--lumo-font-size-xxs);
1893
+ }
1894
+
1895
+ /* Slotted content */
1896
+ [part='input-field'] ::slotted(:not(vaadin-icon):not(input):not(textarea)) {
1897
+ color: var(--lumo-secondary-text-color);
1898
+ font-weight: 400;
1899
+ }
1900
+
1901
+ [part='clear-button']::before {
1902
+ content: var(--lumo-icons-cross);
1903
+ }
1904
+ `,js=[Us,zs,md,_d];J("",js,{moduleId:"lumo-input-field-shared-styles"});const gd=$`
1905
+ [part='toggle-button']::before {
1906
+ content: var(--lumo-icons-calendar);
1907
+ }
1908
+
1909
+ [part='clear-button']::before {
1910
+ content: var(--lumo-icons-cross);
1911
+ }
1912
+
1913
+ @media (max-width: 450px), (max-height: 450px) {
1914
+ [part='overlay-content'] {
1915
+ height: 70vh;
1916
+ }
1917
+ }
1918
+
1919
+ :host([dir='rtl']) [part='input-field'] ::slotted(input) {
1920
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
1921
+ }
1922
+
1923
+ :host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
1924
+ --_lumo-text-field-overflow-mask-image: none;
1925
+ }
1926
+ `;J("vaadin-date-picker",[js,gd],{moduleId:"lumo-date-picker"});/**
1927
+ @license
1928
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1929
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1930
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1931
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1932
+ Code distributed by Google as part of the polymer project is also
1933
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1934
+ */window.JSCompiler_renameProperty=function(t,i){return t};/**
1935
+ @license
1936
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1937
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1938
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1939
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1940
+ Code distributed by Google as part of the polymer project is also
1941
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1942
+ */let bd=/(url\()([^)]*)(\))/g,yd=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,ti,fe;function $t(t,i){if(t&&yd.test(t)||t==="//")return t;if(ti===void 0){ti=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",ti=e.href==="http://a/c%20d"}catch(e){}}if(i||(i=document.baseURI||window.location.href),ti)try{return new URL(t,i).href}catch(e){return t}return fe||(fe=document.implementation.createHTMLDocument("temp"),fe.base=fe.createElement("base"),fe.head.appendChild(fe.base),fe.anchor=fe.createElement("a"),fe.body.appendChild(fe.anchor)),fe.base.href=i,fe.anchor.href=t,fe.anchor.href||t}function en(t,i){return t.replace(bd,function(e,r,n,o){return r+"'"+$t(n.replace(/["']/g,""),i)+"'"+o})}function tn(t){return t.substring(0,t.lastIndexOf("/")+1)}/**
1943
+ @license
1944
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1945
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1946
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1947
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1948
+ Code distributed by Google as part of the polymer project is also
1949
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1950
+ */const Vs=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const vd=Vs&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const t=new CSSStyleSheet;t.replaceSync("");const i=document.createElement("div");return i.attachShadow({mode:"open"}),i.shadowRoot.adoptedStyleSheets=[t],i.shadowRoot.adoptedStyleSheets[0]===t}catch(t){return!1}})();let xd=window.Polymer&&window.Polymer.rootPath||tn(document.baseURI||window.location.href),bi=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let yi=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,wd=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Ys=window.Polymer&&window.Polymer.legacyOptimizations||!1,Gs=window.Polymer&&window.Polymer.legacyWarnings||!1,Ed=window.Polymer&&window.Polymer.syncInitialRender||!1,Cr=window.Polymer&&window.Polymer.legacyUndefined||!1,Sd=window.Polymer&&window.Polymer.orderedComputed||!1,ro=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Ad=window.Polymer&&window.Polymer.fastDomIf||!1,no=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let Cd=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
1951
+ @license
1952
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1953
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1954
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1955
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1956
+ Code distributed by Google as part of the polymer project is also
1957
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1958
+ */let Td=0;const ee=function(t){let i=t.__mixinApplications;i||(i=new WeakMap,t.__mixinApplications=i);let e=Td++;function r(n){let o=n.__mixinSet;if(o&&o[e])return n;let s=i,a=s.get(n);if(!a){a=t(n),s.set(n,a);let l=Object.create(a.__mixinSet||o||null);l[e]=!0,a.__mixinSet=l}return a}return r};/**
1959
+ @license
1960
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1961
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1962
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1963
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1964
+ Code distributed by Google as part of the polymer project is also
1965
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1966
+ */let rn={},Ws={};function oo(t,i){rn[t]=Ws[t.toLowerCase()]=i}function so(t){return rn[t]||Ws[t.toLowerCase()]}function Pd(t){t.querySelector("style")&&console.warn("dom-module %s has style outside template",t.id)}class Vt extends HTMLElement{static get observedAttributes(){return["id"]}static import(i,e){if(i){let r=so(i);return r&&e?r.querySelector(e):r}return null}attributeChangedCallback(i,e,r,n){e!==r&&this.register()}get assetpath(){if(!this.__assetpath){const i=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=$t(this.getAttribute("assetpath")||"",i.baseURI);this.__assetpath=tn(e)}return this.__assetpath}register(i){if(i=i||this.id,i){if(yi&&so(i)!==void 0)throw oo(i,null),new Error(`strictTemplatePolicy: dom-module ${i} re-registered`);this.id=i,oo(i,this),Pd(this)}}}Vt.prototype.modules=rn;customElements.define("dom-module",Vt);/**
1967
+ @license
1968
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1969
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1970
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1971
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1972
+ Code distributed by Google as part of the polymer project is also
1973
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1974
+ */const Dd="link[rel=import][type~=css]",kd="include",ao="shady-unscoped";function qs(t){return Vt.import(t)}function lo(t){let i=t.body?t.body:t;const e=en(i.textContent,t.baseURI),r=document.createElement("style");return r.textContent=e,r}function Od(t){const i=t.trim().split(/\s+/),e=[];for(let r=0;r<i.length;r++)e.push(...Md(i[r]));return e}function Md(t){const i=qs(t);if(!i)return console.warn("Could not find style data in module named",t),[];if(i._styles===void 0){const e=[];e.push(...Ks(i));const r=i.querySelector("template");r&&e.push(...Xs(r,i.assetpath)),i._styles=e}return i._styles}function Xs(t,i){if(!t._styles){const e=[],r=t.content.querySelectorAll("style");for(let n=0;n<r.length;n++){let o=r[n],s=o.getAttribute(kd);s&&e.push(...Od(s).filter(function(a,l,u){return u.indexOf(a)===l})),i&&(o.textContent=en(o.textContent,i)),e.push(o)}t._styles=e}return t._styles}function Id(t){let i=qs(t);return i?Ks(i):[]}function Ks(t){const i=[],e=t.querySelectorAll(Dd);for(let r=0;r<e.length;r++){let n=e[r];if(n.import){const o=n.import,s=n.hasAttribute(ao);if(s&&!o._unscopedStyle){const a=lo(o);a.setAttribute(ao,""),o._unscopedStyle=a}else o._style||(o._style=lo(o));i.push(s?o._unscopedStyle:o._style)}}return i}/**
1975
+ @license
1976
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1977
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1978
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1979
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1980
+ Code distributed by Google as part of the polymer project is also
1981
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1982
+ */const ne=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?t=>ShadyDOM.patch(t):t=>t;/**
1983
+ @license
1984
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1985
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1986
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1987
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1988
+ Code distributed by Google as part of the polymer project is also
1989
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1990
+ */function Tr(t){return t.indexOf(".")>=0}function Ke(t){let i=t.indexOf(".");return i===-1?t:t.slice(0,i)}function Js(t,i){return t.indexOf(i+".")===0}function Yt(t,i){return i.indexOf(t+".")===0}function Gt(t,i,e){return i+e.slice(t.length)}function Nd(t,i){return t===i||Js(t,i)||Yt(t,i)}function Ot(t){if(Array.isArray(t)){let i=[];for(let e=0;e<t.length;e++){let r=t[e].toString().split(".");for(let n=0;n<r.length;n++)i.push(r[n])}return i.join(".")}else return t}function Zs(t){return Array.isArray(t)?Ot(t).split("."):t.toString().split(".")}function ce(t,i,e){let r=t,n=Zs(i);for(let o=0;o<n.length;o++){if(!r)return;let s=n[o];r=r[s]}return e&&(e.path=n.join(".")),r}function uo(t,i,e){let r=t,n=Zs(i),o=n[n.length-1];if(n.length>1){for(let s=0;s<n.length-1;s++){let a=n[s];if(r=r[a],!r)return}r[o]=e}else r[i]=e;return n.join(".")}/**
1991
+ @license
1992
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1993
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1994
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1995
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1996
+ Code distributed by Google as part of the polymer project is also
1997
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1998
+ */const vi={},Hd=/-[a-z]/g,Ld=/([A-Z])/g;function Qs(t){return vi[t]||(vi[t]=t.indexOf("-")<0?t:t.replace(Hd,i=>i[1].toUpperCase()))}function ki(t){return vi[t]||(vi[t]=t.replace(Ld,"-$1").toLowerCase())}/**
1999
+ @license
2000
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2001
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2002
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2003
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2004
+ Code distributed by Google as part of the polymer project is also
2005
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2006
+ */let $d=0,ea=0,at=[],Bd=0,Pr=!1,ta=document.createTextNode("");new window.MutationObserver(Fd).observe(ta,{characterData:!0});function Fd(){Pr=!1;const t=at.length;for(let i=0;i<t;i++){let e=at[i];if(e)try{e()}catch(r){setTimeout(()=>{throw r})}}at.splice(0,t),ea+=t}const Rd={after(t){return{run(i){return window.setTimeout(i,t)},cancel(i){window.clearTimeout(i)}}},run(t,i){return window.setTimeout(t,i)},cancel(t){window.clearTimeout(t)}},ia={run(t){return Pr||(Pr=!0,ta.textContent=Bd++),at.push(t),$d++},cancel(t){const i=t-ea;if(i>=0){if(!at[i])throw new Error("invalid async handle: "+t);at[i]=null}}};/**
2007
+ @license
2008
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2009
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2010
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2011
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2012
+ Code distributed by Google as part of the polymer project is also
2013
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2014
+ */const zd=ia,ra=ee(t=>{class i extends t{static createProperties(r){const n=this.prototype;for(let o in r)o in n||n._createPropertyAccessor(o)}static attributeNameForProperty(r){return r.toLowerCase()}static typeForProperty(r){}_createPropertyAccessor(r,n){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,n))}_addPropertyToAttributeMap(r){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let n=this.__dataAttributes[r];return n||(n=this.constructor.attributeNameForProperty(r),this.__dataAttributes[n]=r),n}_definePropertyAccessor(r,n){Object.defineProperty(this,r,{get(){return this.__data[r]},set:n?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,n){this._setPendingProperty(r,n)&&this._invalidateProperties()}_getProperty(r){return this.__data[r]}_setPendingProperty(r,n,o){let s=this.__data[r],a=this._shouldPropertyChange(r,n,s);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(r in this.__dataOld)&&(this.__dataOld[r]=s),this.__data[r]=n,this.__dataPending[r]=n),a}_isPropertyPending(r){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(r))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,zd.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,n=this.__dataPending,o=this.__dataOld;this._shouldPropertiesChange(r,n,o)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(r,n,o)),this.__dataCounter--}_shouldPropertiesChange(r,n,o){return!!n}_propertiesChanged(r,n,o){}_shouldPropertyChange(r,n,o){return o!==n&&(o===o||n===n)}attributeChangedCallback(r,n,o,s){n!==o&&this._attributeToProperty(r,o),super.attributeChangedCallback&&super.attributeChangedCallback(r,n,o,s)}_attributeToProperty(r,n,o){if(!this.__serializing){const s=this.__dataAttributes,a=s&&s[r]||r;this[a]=this._deserializeValue(n,o||this.constructor.typeForProperty(a))}}_propertyToAttribute(r,n,o){this.__serializing=!0,o=arguments.length<3?this[r]:o,this._valueToNodeAttribute(this,o,n||this.constructor.attributeNameForProperty(r)),this.__serializing=!1}_valueToNodeAttribute(r,n,o){const s=this._serializeValue(n);(o==="class"||o==="name"||o==="slot")&&(r=ne(r)),s===void 0?r.removeAttribute(o):r.setAttribute(o,s===""&&window.trustedTypes?window.trustedTypes.emptyScript:s)}_serializeValue(r){switch(typeof r){case"boolean":return r?"":void 0;default:return r!=null?r.toString():void 0}}_deserializeValue(r,n){switch(n){case Boolean:return r!==null;case Number:return Number(r);default:return r}}}return i});/**
2015
+ @license
2016
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2017
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2018
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2019
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2020
+ Code distributed by Google as part of the polymer project is also
2021
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2022
+ */const na={};let ii=HTMLElement.prototype;for(;ii;){let t=Object.getOwnPropertyNames(ii);for(let i=0;i<t.length;i++)na[t[i]]=!0;ii=Object.getPrototypeOf(ii)}const Ud=window.trustedTypes?t=>trustedTypes.isHTML(t)||trustedTypes.isScript(t)||trustedTypes.isScriptURL(t):()=>!1;function jd(t,i){if(!na[i]){let e=t[i];e!==void 0&&(t.__data?t._setPendingProperty(i,e):(t.__dataProto?t.hasOwnProperty(JSCompiler_renameProperty("__dataProto",t))||(t.__dataProto=Object.create(t.__dataProto)):t.__dataProto={},t.__dataProto[i]=e))}}const Vd=ee(t=>{const i=ra(t);class e extends i{static createPropertiesForAttributes(){let n=this.observedAttributes;for(let o=0;o<n.length;o++)this.prototype._createPropertyAccessor(Qs(n[o]))}static attributeNameForProperty(n){return ki(n)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(n){for(let o in n)this._setProperty(o,n[o])}_ensureAttribute(n,o){const s=this;s.hasAttribute(n)||this._valueToNodeAttribute(s,o,n)}_serializeValue(n){switch(typeof n){case"object":if(n instanceof Date)return n.toString();if(n){if(Ud(n))return n;try{return JSON.stringify(n)}catch(o){return""}}default:return super._serializeValue(n)}}_deserializeValue(n,o){let s;switch(o){case Object:try{s=JSON.parse(n)}catch(a){s=n}break;case Array:try{s=JSON.parse(n)}catch(a){s=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${n}`)}break;case Date:s=isNaN(n)?String(n):Number(n),s=new Date(s);break;default:s=super._deserializeValue(n,o);break}return s}_definePropertyAccessor(n,o){jd(this,n),super._definePropertyAccessor(n,o)}_hasAccessor(n){return this.__dataHasAccessor&&this.__dataHasAccessor[n]}_isPropertyPending(n){return!!(this.__dataPending&&n in this.__dataPending)}}return e});/**
2023
+ @license
2024
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2025
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2026
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2027
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2028
+ Code distributed by Google as part of the polymer project is also
2029
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2030
+ */const Yd={"dom-if":!0,"dom-repeat":!0};let co=!1,ho=!1;function Gd(){if(!co){co=!0;const t=document.createElement("textarea");t.placeholder="a",ho=t.placeholder===t.textContent}return ho}function Wd(t){Gd()&&t.localName==="textarea"&&t.placeholder&&t.placeholder===t.textContent&&(t.textContent=null)}const qd=(()=>{const t=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:i=>i});return(i,e,r)=>{const n=e.getAttribute(r);if(t&&r.startsWith("on-")){i.setAttribute(r,t.createScript(n,r));return}i.setAttribute(r,n)}})();function Xd(t){let i=t.getAttribute("is");if(i&&Yd[i]){let e=t;for(e.removeAttribute("is"),t=e.ownerDocument.createElement(i),e.parentNode.replaceChild(t,e),t.appendChild(e);e.attributes.length;){const{name:r}=e.attributes[0];qd(t,e,r),e.removeAttribute(r)}}return t}function oa(t,i){let e=i.parentInfo&&oa(t,i.parentInfo);if(e){for(let r=e.firstChild,n=0;r;r=r.nextSibling)if(i.parentIndex===n++)return r}else return t}function Kd(t,i,e,r){r.id&&(i[r.id]=e)}function Jd(t,i,e){if(e.events&&e.events.length)for(let r=0,n=e.events,o;r<n.length&&(o=n[r]);r++)t._addMethodEventListenerToNode(i,o.name,o.value,t)}function Zd(t,i,e,r){e.templateInfo&&(i._templateInfo=e.templateInfo,i._parentTemplateInfo=r)}function Qd(t,i,e){return t=t._methodHost||t,function(n){t[e]?t[e](n,n.detail):console.warn("listener method `"+e+"` not defined")}}const eh=ee(t=>{class i extends t{static _parseTemplate(r,n){if(!r._templateInfo){let o=r._templateInfo={};o.nodeInfoList=[],o.nestedTemplate=!!n,o.stripWhiteSpace=n&&n.stripWhiteSpace||r.hasAttribute&&r.hasAttribute("strip-whitespace"),this._parseTemplateContent(r,o,{parent:null})}return r._templateInfo}static _parseTemplateContent(r,n,o){return this._parseTemplateNode(r.content,n,o)}static _parseTemplateNode(r,n,o){let s=!1,a=r;return a.localName=="template"&&!a.hasAttribute("preserve-content")?s=this._parseTemplateNestedTemplate(a,n,o)||s:a.localName==="slot"&&(n.hasInsertionPoint=!0),Wd(a),a.firstChild&&this._parseTemplateChildNodes(a,n,o),a.hasAttributes&&a.hasAttributes()&&(s=this._parseTemplateNodeAttributes(a,n,o)||s),s||o.noted}static _parseTemplateChildNodes(r,n,o){if(!(r.localName==="script"||r.localName==="style"))for(let s=r.firstChild,a=0,l;s;s=l){if(s.localName=="template"&&(s=Xd(s)),l=s.nextSibling,s.nodeType===Node.TEXT_NODE){let c=l;for(;c&&c.nodeType===Node.TEXT_NODE;)s.textContent+=c.textContent,l=c.nextSibling,r.removeChild(c),c=l;if(n.stripWhiteSpace&&!s.textContent.trim()){r.removeChild(s);continue}}let u={parentIndex:a,parentInfo:o};this._parseTemplateNode(s,n,u)&&(u.infoIndex=n.nodeInfoList.push(u)-1),s.parentNode&&a++}}static _parseTemplateNestedTemplate(r,n,o){let s=r,a=this._parseTemplate(s,n);return(a.content=s.content.ownerDocument.createDocumentFragment()).appendChild(s.content),o.templateInfo=a,!0}static _parseTemplateNodeAttributes(r,n,o){let s=!1,a=Array.from(r.attributes);for(let l=a.length-1,u;u=a[l];l--)s=this._parseTemplateNodeAttribute(r,n,o,u.name,u.value)||s;return s}static _parseTemplateNodeAttribute(r,n,o,s,a){return s.slice(0,3)==="on-"?(r.removeAttribute(s),o.events=o.events||[],o.events.push({name:s.slice(3),value:a}),!0):s==="id"?(o.id=a,!0):!1}static _contentForTemplate(r){let n=r._templateInfo;return n&&n.content||r.content}_stampTemplate(r,n){r&&!r.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(r),n=n||this.constructor._parseTemplate(r);let o=n.nodeInfoList,s=n.content||r.content,a=document.importNode(s,!0);a.__noInsertionPoint=!n.hasInsertionPoint;let l=a.nodeList=new Array(o.length);a.$={};for(let u=0,c=o.length,d;u<c&&(d=o[u]);u++){let h=l[u]=oa(a,d);Kd(this,a.$,h,d),Zd(this,h,d,n),Jd(this,h,d)}return a=a,a}_addMethodEventListenerToNode(r,n,o,s){s=s||r;let a=Qd(s,n,o);return this._addEventListenerToNode(r,n,a),a}_addEventListenerToNode(r,n,o){r.addEventListener(n,o)}_removeEventListenerFromNode(r,n,o){r.removeEventListener(n,o)}}return i});/**
2031
+ * @fileoverview
2032
+ * @suppress {checkPrototypalTypes}
2033
+ * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2034
+ * This code may only be used under the BSD style license found at
2035
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
2036
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
2037
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
2038
+ * Google as part of the polymer project is also subject to an additional IP
2039
+ * rights grant found at http://polymer.github.io/PATENTS.txt
2040
+ */let Wt=0;const qt=[],F={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},sa="__computeInfo",th=/[A-Z]/;function qi(t,i,e){let r=t[i];if(!r)r=t[i]={};else if(!t.hasOwnProperty(i)&&(r=t[i]=Object.create(t[i]),e))for(let n in r){let o=r[n],s=r[n]=Array(o.length);for(let a=0;a<o.length;a++)s[a]=o[a]}return r}function Mt(t,i,e,r,n,o){if(i){let s=!1;const a=Wt++;for(let l in e){let u=n?Ke(l):l,c=i[u];if(c)for(let d=0,h=c.length,f;d<h&&(f=c[d]);d++)(!f.info||f.info.lastRun!==a)&&(!n||nn(l,f.trigger))&&(f.info&&(f.info.lastRun=a),f.fn(t,l,e,r,f.info,n,o),s=!0)}return s}return!1}function ih(t,i,e,r,n,o,s,a){let l=!1,u=s?Ke(r):r,c=i[u];if(c)for(let d=0,h=c.length,f;d<h&&(f=c[d]);d++)(!f.info||f.info.lastRun!==e)&&(!s||nn(r,f.trigger))&&(f.info&&(f.info.lastRun=e),f.fn(t,r,n,o,f.info,s,a),l=!0);return l}function nn(t,i){if(i){let e=i.name;return e==t||!!(i.structured&&Js(e,t))||!!(i.wildcard&&Yt(e,t))}else return!0}function fo(t,i,e,r,n){let o=typeof n.method=="string"?t[n.method]:n.method,s=n.property;o?o.call(t,t.__data[s],r[s]):n.dynamicFn||console.warn("observer method `"+n.method+"` not defined")}function rh(t,i,e,r,n){let o=t[F.NOTIFY],s,a=Wt++;for(let u in i)i[u]&&(o&&ih(t,o,a,u,e,r,n)||n&&nh(t,u,e))&&(s=!0);let l;s&&(l=t.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function nh(t,i,e){let r=Ke(i);if(r!==i){let n=ki(r)+"-changed";return aa(t,n,e[i],i),!0}return!1}function aa(t,i,e,r){let n={value:e,queueProperty:!0};r&&(n.path=r),ne(t).dispatchEvent(new CustomEvent(i,{detail:n}))}function oh(t,i,e,r,n,o){let a=(o?Ke(i):i)!=i?i:null,l=a?ce(t,a):t.__data[i];a&&l===void 0&&(l=e[i]),aa(t,n.eventName,l,a)}function sh(t,i,e,r,n){let o,s=t.detail,a=s&&s.path;a?(r=Gt(e,r,a),o=s&&s.value):o=t.currentTarget[e],o=n?!o:o,(!i[F.READ_ONLY]||!i[F.READ_ONLY][r])&&i._setPendingPropertyOrPath(r,o,!0,!!a)&&(!s||!s.queueProperty)&&i._invalidateProperties()}function ah(t,i,e,r,n){let o=t.__data[i];bi&&(o=bi(o,n.attrName,"attribute",t)),t._propertyToAttribute(i,n.attrName,o)}function lh(t,i,e,r){let n=t[F.COMPUTE];if(n)if(Sd){Wt++;const o=ch(t),s=[];for(let l in i)po(l,n,s,o,r);let a;for(;a=s.shift();)la(t,"",i,e,a)&&po(a.methodInfo,n,s,o,r);Object.assign(e,t.__dataOld),Object.assign(i,t.__dataPending),t.__dataPending=null}else{let o=i;for(;Mt(t,n,o,e,r);)Object.assign(e,t.__dataOld),Object.assign(i,t.__dataPending),o=t.__dataPending,t.__dataPending=null}}const uh=(t,i,e)=>{let r=0,n=i.length-1,o=-1;for(;r<=n;){const s=r+n>>1,a=e.get(i[s].methodInfo)-e.get(t.methodInfo);if(a<0)r=s+1;else if(a>0)n=s-1;else{o=s;break}}o<0&&(o=n+1),i.splice(o,0,t)},po=(t,i,e,r,n)=>{const o=n?Ke(t):t,s=i[o];if(s)for(let a=0;a<s.length;a++){const l=s[a];l.info.lastRun!==Wt&&(!n||nn(t,l.trigger))&&(l.info.lastRun=Wt,uh(l.info,e,r))}};function ch(t){let i=t.constructor.__orderedComputedDeps;if(!i){i=new Map;const e=t[F.COMPUTE];let{counts:r,ready:n,total:o}=dh(t),s;for(;s=n.shift();){i.set(s,i.size);const a=e[s];a&&a.forEach(l=>{const u=l.info.methodInfo;--o,--r[u]===0&&n.push(u)})}o!==0&&console.warn(`Computed graph for ${t.localName} incomplete; circular?`),t.constructor.__orderedComputedDeps=i}return i}function dh(t){const i=t[sa],e={},r=t[F.COMPUTE],n=[];let o=0;for(let s in i){const a=i[s];o+=e[s]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let s in r)i[s]||n.push(s);return{counts:e,ready:n,total:o}}function la(t,i,e,r,n){let o=Dr(t,i,e,r,n);if(o===qt)return!1;let s=n.methodInfo;return t.__dataHasAccessor&&t.__dataHasAccessor[s]?t._setPendingProperty(s,o,!0):(t[s]=o,!1)}function hh(t,i,e){let r=t.__dataLinkedPaths;if(r){let n;for(let o in r){let s=r[o];Yt(o,i)?(n=Gt(o,s,i),t._setPendingPropertyOrPath(n,e,!0,!0)):Yt(s,i)&&(n=Gt(s,o,i),t._setPendingPropertyOrPath(n,e,!0,!0))}}}function Xi(t,i,e,r,n,o,s){e.bindings=e.bindings||[];let a={kind:r,target:n,parts:o,literal:s,isCompound:o.length!==1};if(e.bindings.push(a),gh(a)){let{event:u,negate:c}=a.parts[0];a.listenerEvent=u||ki(n)+"-changed",a.listenerNegate=c}let l=i.nodeInfoList.length;for(let u=0;u<a.parts.length;u++){let c=a.parts[u];c.compoundIndex=u,fh(t,i,a,c,l)}}function fh(t,i,e,r,n){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,s={index:n,binding:e,part:r,evaluator:t};for(let a=0;a<o.length;a++){let l=o[a];typeof l=="string"&&(l=ca(l),l.wildcard=!0),t._addTemplatePropertyEffect(i,l.rootProperty,{fn:ph,info:s,trigger:l})}}}function ph(t,i,e,r,n,o,s){let a=s[n.index],l=n.binding,u=n.part;if(o&&u.source&&i.length>u.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let c=e[i];i=Gt(u.source,l.target,i),a._setPendingPropertyOrPath(i,c,!1,!0)&&t._enqueueClient(a)}else{let c=n.evaluator._evaluateBinding(t,u,i,e,r,o);c!==qt&&mh(t,a,l,u,c)}}function mh(t,i,e,r,n){if(n=_h(i,n,e,r),bi&&(n=bi(n,e.target,e.kind,i)),e.kind=="attribute")t._valueToNodeAttribute(i,n,e.target);else{let o=e.target;i.__isPropertyEffectsClient&&i.__dataHasAccessor&&i.__dataHasAccessor[o]?(!i[F.READ_ONLY]||!i[F.READ_ONLY][o])&&i._setPendingProperty(o,n)&&t._enqueueClient(i):t._setUnmanagedPropertyToNode(i,o,n)}}function _h(t,i,e,r){if(e.isCompound){let n=t.__dataCompoundStorage[e.target];n[r.compoundIndex]=i,i=n.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(t.localName==="input"||t.localName==="textarea"))&&(i=i==null?"":i),i}function gh(t){return!!t.target&&t.kind!="attribute"&&t.kind!="text"&&!t.isCompound&&t.parts[0].mode==="{"}function bh(t,i){let{nodeList:e,nodeInfoList:r}=i;if(r.length)for(let n=0;n<r.length;n++){let o=r[n],s=e[n],a=o.bindings;if(a)for(let l=0;l<a.length;l++){let u=a[l];yh(s,u),vh(s,t,u)}s.__dataHost=t}}function yh(t,i){if(i.isCompound){let e=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),r=i.parts,n=new Array(r.length);for(let s=0;s<r.length;s++)n[s]=r[s].literal;let o=i.target;e[o]=n,i.literal&&i.kind=="property"&&(o==="className"&&(t=ne(t)),t[o]=i.literal)}}function vh(t,i,e){if(e.listenerEvent){let r=e.parts[0];t.addEventListener(e.listenerEvent,function(n){sh(n,i,e.target,r.source,r.negate)})}}function mo(t,i,e,r,n,o){o=i.static||o&&(typeof o!="object"||o[i.methodName]);let s={methodName:i.methodName,args:i.args,methodInfo:n,dynamicFn:o};for(let a=0,l;a<i.args.length&&(l=i.args[a]);a++)l.literal||t._addPropertyEffect(l.rootProperty,e,{fn:r,info:s,trigger:l});return o&&t._addPropertyEffect(i.methodName,e,{fn:r,info:s}),s}function Dr(t,i,e,r,n){let o=t._methodHost||t,s=o[n.methodName];if(s){let a=t._marshalArgs(n.args,i,e);return a===qt?qt:s.apply(o,a)}else n.dynamicFn||console.warn("method `"+n.methodName+"` not defined")}const xh=[],ua="(?:[a-zA-Z_$][\\w.:$\\-*]*)",wh="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Eh="(?:'(?:[^'\\\\]|\\\\.)*')",Sh='(?:"(?:[^"\\\\]|\\\\.)*")',Ah="(?:"+Eh+"|"+Sh+")",_o="(?:("+ua+"|"+wh+"|"+Ah+")\\s*)",Ch="(?:"+_o+"(?:,\\s*"+_o+")*)",Th="(?:\\(\\s*(?:"+Ch+"?)\\)\\s*)",Ph="("+ua+"\\s*"+Th+"?)",Dh="(\\[\\[|{{)\\s*",kh="(?:]]|}})",Oh="(?:(!)\\s*)?",Mh=Dh+Oh+Ph+kh,go=new RegExp(Mh,"g");function bo(t){let i="";for(let e=0;e<t.length;e++){let r=t[e].literal;i+=r||""}return i}function Ki(t){let i=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(i){let r={methodName:i[1],static:!0,args:xh};if(i[2].trim()){let n=i[2].replace(/\\,/g,"&comma;").split(",");return Ih(n,r)}else return r}return null}function Ih(t,i){return i.args=t.map(function(e){let r=ca(e);return r.literal||(i.static=!1),r},this),i}function ca(t){let i=t.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),e={name:i,value:"",literal:!1},r=i[0];switch(r==="-"&&(r=i[1]),r>="0"&&r<="9"&&(r="#"),r){case"'":case'"':e.value=i.slice(1,-1),e.literal=!0;break;case"#":e.value=Number(i),e.literal=!0;break}return e.literal||(e.rootProperty=Ke(i),e.structured=Tr(i),e.structured&&(e.wildcard=i.slice(-2)==".*",e.wildcard&&(e.name=i.slice(0,-2)))),e}function yo(t,i,e){let r=ce(t,e);return r===void 0&&(r=i[e]),r}function da(t,i,e,r){const n={indexSplices:r};Cr&&!t._overrideLegacyUndefined&&(i.splices=n),t.notifyPath(e+".splices",n),t.notifyPath(e+".length",i.length),Cr&&!t._overrideLegacyUndefined&&(n.indexSplices=[])}function Pt(t,i,e,r,n,o){da(t,i,e,[{index:r,addedCount:n,removed:o,object:i,type:"splice"}])}function Nh(t){return t[0].toUpperCase()+t.substring(1)}const on=ee(t=>{const i=eh(Vd(t));class e extends i{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 F}_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(Dt.length){let n=Dt[Dt.length-1];n._enqueueClient(this),this.__dataHost=n}}_initializeProtoProperties(n){this.__data=Object.create(n),this.__dataPending=Object.create(n),this.__dataOld={}}_initializeInstanceProperties(n){let o=this[F.READ_ONLY];for(let s in n)(!o||!o[s])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[s]=this.__dataPending[s]=n[s])}_addPropertyEffect(n,o,s){this._createPropertyAccessor(n,o==F.READ_ONLY);let a=qi(this,o,!0)[n];a||(a=this[o][n]=[]),a.push(s)}_removePropertyEffect(n,o,s){let a=qi(this,o,!0)[n],l=a.indexOf(s);l>=0&&a.splice(l,1)}_hasPropertyEffect(n,o){let s=this[o];return!!(s&&s[n])}_hasReadOnlyEffect(n){return this._hasPropertyEffect(n,F.READ_ONLY)}_hasNotifyEffect(n){return this._hasPropertyEffect(n,F.NOTIFY)}_hasReflectEffect(n){return this._hasPropertyEffect(n,F.REFLECT)}_hasComputedEffect(n){return this._hasPropertyEffect(n,F.COMPUTE)}_setPendingPropertyOrPath(n,o,s,a){if(a||Ke(Array.isArray(n)?n[0]:n)!==n){if(!a){let l=ce(this,n);if(n=uo(this,n,o),!n||!super._shouldPropertyChange(n,o,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(n,o,s))return hh(this,n,o),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[n])return this._setPendingProperty(n,o,s);this[n]=o}return!1}_setUnmanagedPropertyToNode(n,o,s){(s!==n[o]||typeof s=="object")&&(o==="className"&&(n=ne(n)),n[o]=s)}_setPendingProperty(n,o,s){let a=this.__dataHasPaths&&Tr(n),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(n,o,l[n])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),n in this.__dataOld||(this.__dataOld[n]=this.__data[n]),a?this.__dataTemp[n]=o:this.__data[n]=o,this.__dataPending[n]=o,(a||this[F.NOTIFY]&&this[F.NOTIFY][n])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[n]=s),!0):!1}_setProperty(n,o){this._setPendingProperty(n,o,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(n){this.__dataPendingClients=this.__dataPendingClients||[],n!==this&&this.__dataPendingClients.push(n)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let n=this.__dataPendingClients;if(n){this.__dataPendingClients=null;for(let o=0;o<n.length;o++){let s=n[o];s.__dataEnabled?s.__dataPending&&s._flushProperties():s._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(n,o){for(let s in n)(o||!this[F.READ_ONLY]||!this[F.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,n[s],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(n,o,s){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;lh(this,o,s,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(o,s,a),this._flushClients(),Mt(this,this[F.REFLECT],o,s,a),Mt(this,this[F.OBSERVE],o,s,a),l&&rh(this,l,o,s,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(n,o,s){this[F.PROPAGATE]&&Mt(this,this[F.PROPAGATE],n,o,s),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,n,o,s)}_runEffectsForTemplate(n,o,s,a){const l=(u,c)=>{Mt(this,n.propertyEffects,u,s,c,n.nodeList);for(let d=n.firstChild;d;d=d.nextSibling)this._runEffectsForTemplate(d,u,s,c)};n.runEffects?n.runEffects(l,o,a):l(o,a)}linkPaths(n,o){n=Ot(n),o=Ot(o),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[n]=o}unlinkPaths(n){n=Ot(n),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[n]}notifySplices(n,o){let s={path:""},a=ce(this,n,s);da(this,a,s.path,o)}get(n,o){return ce(o||this,n)}set(n,o,s){s?uo(s,n,o):(!this[F.READ_ONLY]||!this[F.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,o,!0)&&this._invalidateProperties()}push(n,...o){let s={path:""},a=ce(this,n,s),l=a.length,u=a.push(...o);return o.length&&Pt(this,a,s.path,l,o.length,[]),u}pop(n){let o={path:""},s=ce(this,n,o),a=!!s.length,l=s.pop();return a&&Pt(this,s,o.path,s.length,0,[l]),l}splice(n,o,s,...a){let l={path:""},u=ce(this,n,l);o<0?o=u.length-Math.floor(-o):o&&(o=Math.floor(o));let c;return arguments.length===2?c=u.splice(o):c=u.splice(o,s,...a),(a.length||c.length)&&Pt(this,u,l.path,o,a.length,c),c}shift(n){let o={path:""},s=ce(this,n,o),a=!!s.length,l=s.shift();return a&&Pt(this,s,o.path,0,0,[l]),l}unshift(n,...o){let s={path:""},a=ce(this,n,s),l=a.unshift(...o);return o.length&&Pt(this,a,s.path,0,o.length,[]),l}notifyPath(n,o){let s;if(arguments.length==1){let a={path:""};o=ce(this,n,a),s=a.path}else Array.isArray(n)?s=Ot(n):s=n;this._setPendingPropertyOrPath(s,o,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(n,o){this._addPropertyEffect(n,F.READ_ONLY),o&&(this["_set"+Nh(n)]=function(s){this._setProperty(n,s)})}_createPropertyObserver(n,o,s){let a={property:n,method:o,dynamicFn:!!s};this._addPropertyEffect(n,F.OBSERVE,{fn:fo,info:a,trigger:{name:n}}),s&&this._addPropertyEffect(o,F.OBSERVE,{fn:fo,info:a,trigger:{name:o}})}_createMethodObserver(n,o){let s=Ki(n);if(!s)throw new Error("Malformed observer expression '"+n+"'");mo(this,s,F.OBSERVE,Dr,null,o)}_createNotifyingProperty(n){this._addPropertyEffect(n,F.NOTIFY,{fn:oh,info:{eventName:ki(n)+"-changed",property:n}})}_createReflectedProperty(n){let o=this.constructor.attributeNameForProperty(n);o[0]==="-"?console.warn("Property "+n+" 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(n,F.REFLECT,{fn:ah,info:{attrName:o}})}_createComputedProperty(n,o,s){let a=Ki(o);if(!a)throw new Error("Malformed computed expression '"+o+"'");const l=mo(this,a,F.COMPUTE,la,n,s);qi(this,sa)[n]=l}_marshalArgs(n,o,s){const a=this.__data,l=[];for(let u=0,c=n.length;u<c;u++){let{name:d,structured:h,wildcard:f,value:p,literal:x}=n[u];if(!x)if(f){const T=Yt(d,o),O=yo(a,s,T?o:d);p={path:T?o:d,value:O,base:T?ce(a,d):O}}else p=h?yo(a,s,d):a[d];if(Cr&&!this._overrideLegacyUndefined&&p===void 0&&n.length>1)return qt;l[u]=p}return l}static addPropertyEffect(n,o,s){this.prototype._addPropertyEffect(n,o,s)}static createPropertyObserver(n,o,s){this.prototype._createPropertyObserver(n,o,s)}static createMethodObserver(n,o){this.prototype._createMethodObserver(n,o)}static createNotifyingProperty(n){this.prototype._createNotifyingProperty(n)}static createReadOnlyProperty(n,o){this.prototype._createReadOnlyProperty(n,o)}static createReflectedProperty(n){this.prototype._createReflectedProperty(n)}static createComputedProperty(n,o,s){this.prototype._createComputedProperty(n,o,s)}static bindTemplate(n){return this.prototype._bindTemplate(n)}_bindTemplate(n,o){let s=this.constructor._parseTemplate(n),a=this.__preBoundTemplateInfo==s;if(!a)for(let l in s.propertyEffects)this._createPropertyAccessor(l);if(o)if(s=Object.create(s),s.wasPreBound=a,!this.__templateInfo)this.__templateInfo=s;else{const l=n._parentTemplateInfo||this.__templateInfo,u=l.lastChild;s.parent=l,l.lastChild=s,s.previousSibling=u,u?u.nextSibling=s:l.firstChild=s}else this.__preBoundTemplateInfo=s;return s}static _addTemplatePropertyEffect(n,o,s){let a=n.hostProps=n.hostProps||{};a[o]=!0;let l=n.propertyEffects=n.propertyEffects||{};(l[o]=l[o]||[]).push(s)}_stampTemplate(n,o){o=o||this._bindTemplate(n,!0),Dt.push(this);let s=super._stampTemplate(n,o);if(Dt.pop(),o.nodeList=s.nodeList,!o.wasPreBound){let a=o.childNodes=[];for(let l=s.firstChild;l;l=l.nextSibling)a.push(l)}return s.templateInfo=o,bh(this,o),this.__dataClientsReady&&(this._runEffectsForTemplate(o,this.__data,null,!1),this._flushClients()),s}_removeBoundDom(n){const o=n.templateInfo,{previousSibling:s,nextSibling:a,parent:l}=o;s?s.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=s:l&&(l.lastChild=s),o.nextSibling=o.previousSibling=null;let u=o.childNodes;for(let c=0;c<u.length;c++){let d=u[c];ne(ne(d).parentNode).removeChild(d)}}static _parseTemplateNode(n,o,s){let a=i._parseTemplateNode.call(this,n,o,s);if(n.nodeType===Node.TEXT_NODE){let l=this._parseBindings(n.textContent,o);l&&(n.textContent=bo(l)||" ",Xi(this,o,s,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(n,o,s,a,l){let u=this._parseBindings(l,o);if(u){let c=a,d="property";th.test(a)?d="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),d="attribute");let h=bo(u);return h&&d=="attribute"&&(a=="class"&&n.hasAttribute("class")&&(h+=" "+n.getAttribute(a)),n.setAttribute(a,h)),d=="attribute"&&c=="disable-upgrade$"&&n.setAttribute(a,""),n.localName==="input"&&c==="value"&&n.setAttribute(c,""),n.removeAttribute(c),d==="property"&&(a=Qs(a)),Xi(this,o,s,d,a,u,h),!0}else return i._parseTemplateNodeAttribute.call(this,n,o,s,a,l)}static _parseTemplateNestedTemplate(n,o,s){let a=i._parseTemplateNestedTemplate.call(this,n,o,s);const l=n.parentNode,u=s.templateInfo,c=l.localName==="dom-if",d=l.localName==="dom-repeat";ro&&(c||d)&&(l.removeChild(n),s=s.parentInfo,s.templateInfo=u,s.noted=!0,a=!1);let h=u.hostProps;if(Ad&&c)h&&(o.hostProps=Object.assign(o.hostProps||{},h),ro||(s.parentInfo.noted=!0));else{let f="{";for(let p in h){let x=[{mode:f,source:p,dependencies:[p],hostProp:!0}];Xi(this,o,s,"property","_host_"+p,x)}}return a}static _parseBindings(n,o){let s=[],a=0,l;for(;(l=go.exec(n))!==null;){l.index>a&&s.push({literal:n.slice(a,l.index)});let u=l[1][0],c=!!l[2],d=l[3].trim(),h=!1,f="",p=-1;u=="{"&&(p=d.indexOf("::"))>0&&(f=d.substring(p+2),d=d.substring(0,p),h=!0);let x=Ki(d),T=[];if(x){let{args:O,methodName:D}=x;for(let U=0;U<O.length;U++){let H=O[U];H.literal||T.push(H)}let N=o.dynamicFns;(N&&N[D]||x.static)&&(T.push(D),x.dynamicFn=!0)}else T.push(d);s.push({source:d,mode:u,negate:c,customEvent:h,signature:x,dependencies:T,event:f}),a=go.lastIndex}if(a&&a<n.length){let u=n.substring(a);u&&s.push({literal:u})}return s.length?s:null}static _evaluateBinding(n,o,s,a,l,u){let c;return o.signature?c=Dr(n,s,a,l,o.signature):s!=o.source?c=ce(n,o.source):u&&Tr(s)?c=ce(n,s):c=n.__data[s],o.negate&&(c=!c),c}}return e}),Dt=[];/**
2041
+ @license
2042
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2043
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2044
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2045
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2046
+ Code distributed by Google as part of the polymer project is also
2047
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2048
+ *//**
2049
+ @license
2050
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2051
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2052
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2053
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2054
+ Code distributed by Google as part of the polymer project is also
2055
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2056
+ */function Hh(t){const i={};for(let e in t){const r=t[e];i[e]=typeof r=="function"?{type:r}:r}return i}const Lh=ee(t=>{const i=ra(t);function e(o){const s=Object.getPrototypeOf(o);return s.prototype instanceof n?s:null}function r(o){if(!o.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",o))){let s=null;if(o.hasOwnProperty(JSCompiler_renameProperty("properties",o))){const a=o.properties;a&&(s=Hh(a))}o.__ownProperties=s}return o.__ownProperties}class n extends i{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const s=this._properties;this.__observedAttributes=s?Object.keys(s).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const s=e(this);s&&s.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const s=r(this);s&&this.createProperties(s)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const s=e(this);this.__properties=Object.assign({},s&&s._properties,r(this))}return this.__properties}static typeForProperty(s){const a=this._properties[s];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return n});/**
2057
+ * @fileoverview
2058
+ * @suppress {checkPrototypalTypes}
2059
+ * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2060
+ * This code may only be used under the BSD style license found at
2061
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
2062
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
2063
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
2064
+ * Google as part of the polymer project is also subject to an additional IP
2065
+ * rights grant found at http://polymer.github.io/PATENTS.txt
2066
+ */const $h="3.5.2",vo=window.ShadyCSS&&window.ShadyCSS.cssBuild,Bh=ee(t=>{const i=Lh(on(t));function e(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let u=l._properties;for(let c in u){let d=u[c];"value"in d&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[c]=d)}}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 n(l,u,c,d){c.computed&&(c.readOnly=!0),c.computed&&(l._hasReadOnlyEffect(u)?console.warn(`Cannot redefine computed property '${u}'.`):l._createComputedProperty(u,c.computed,d)),c.readOnly&&!l._hasReadOnlyEffect(u)?l._createReadOnlyProperty(u,!c.computed):c.readOnly===!1&&l._hasReadOnlyEffect(u)&&console.warn(`Cannot make readOnly property '${u}' non-readOnly.`),c.reflectToAttribute&&!l._hasReflectEffect(u)?l._createReflectedProperty(u):c.reflectToAttribute===!1&&l._hasReflectEffect(u)&&console.warn(`Cannot make reflected property '${u}' non-reflected.`),c.notify&&!l._hasNotifyEffect(u)?l._createNotifyingProperty(u):c.notify===!1&&l._hasNotifyEffect(u)&&console.warn(`Cannot make notify property '${u}' non-notify.`),c.observer&&l._createPropertyObserver(u,c.observer,d[c.observer]),l._addPropertyToAttributeMap(u)}function o(l,u,c,d){if(!vo){const h=u.content.querySelectorAll("style"),f=Xs(u),p=Id(c),x=u.content.firstElementChild;for(let O=0;O<p.length;O++){let D=p[O];D.textContent=l._processStyleText(D.textContent,d),u.content.insertBefore(D,x)}let T=0;for(let O=0;O<f.length;O++){let D=f[O],N=h[T];N!==D?(D=D.cloneNode(!0),N.parentNode.insertBefore(D,N)):T++,D.textContent=l._processStyleText(D.textContent,d)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(u,c),Cd&&vo&&vd){const h=u.content.querySelectorAll("style");if(h){let f="";Array.from(h).forEach(p=>{f+=p.textContent,p.parentNode.removeChild(p)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(f)}}}function s(l){let u=null;if(l&&(!yi||wd)&&(u=Vt.import(l,"template"),yi&&!u))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return u}class a extends i{static get polymerElementVersion(){return $h}static _finalizeClass(){i._finalizeClass.call(this);const u=r(this);u&&this.createObservers(u,this._properties),this._prepareTemplate()}static _prepareTemplate(){let u=this.template;u&&(typeof u=="string"?(console.error("template getter must return HTMLTemplateElement"),u=null):Ys||(u=u.cloneNode(!0))),this.prototype._template=u}static createProperties(u){for(let c in u)n(this.prototype,c,u[c],u)}static createObservers(u,c){const d=this.prototype;for(let h=0;h<u.length;h++)d._createMethodObserver(u[h],c)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let u=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof u=="function"&&(u=u()),this._template=u!==void 0?u:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&s(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(u){this._template=u}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const u=this.importMeta;if(u)this._importPath=tn(u.url);else{const c=Vt.import(this.is);this._importPath=c&&c.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=xd,this.importPath=this.constructor.importPath;let u=e(this.constructor);if(u)for(let c in u){let d=u[c];if(this._canApplyPropertyDefault(c)){let h=typeof d.value=="function"?d.value.call(this):d.value;this._hasAccessor(c)?this._setPendingProperty(c,h,!0):this[c]=h}}}_canApplyPropertyDefault(u){return!this.hasOwnProperty(u)}static _processStyleText(u,c){return en(u,c)}static _finalizeTemplate(u){const c=this.prototype._template;if(c&&!c.__polymerFinalized){c.__polymerFinalized=!0;const d=this.importPath,h=d?$t(d):"";o(this,c,u,h),this.prototype._bindTemplate(c)}}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(u){const c=ne(this);if(c.attachShadow)return u?(c.shadowRoot||(c.attachShadow({mode:"open",shadyUpgradeFragment:u}),c.shadowRoot.appendChild(u),this.constructor._styleSheet&&(c.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Ed&&window.ShadyDOM&&window.ShadyDOM.flushInitial(c.shadowRoot),c.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(u){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,u)}resolveUrl(u,c){return!c&&this.importPath&&(c=$t(this.importPath)),$t(u,c)}static _parseTemplateContent(u,c,d){return c.dynamicFns=c.dynamicFns||this._properties,i._parseTemplateContent.call(this,u,c,d)}static _addTemplatePropertyEffect(u,c,d){return Gs&&!(c in this._properties)&&!(d.info.part.signature&&d.info.part.signature.static)&&!d.info.part.hostProp&&!u.nestedTemplate&&console.warn(`Property '${c}' used in template but not declared in 'properties'; attribute will not be observed.`),i._addTemplatePropertyEffect.call(this,u,c,d)}}return a});/**
2067
+ @license
2068
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2069
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2070
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2071
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2072
+ Code distributed by Google as part of the polymer project is also
2073
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2074
+ */const xo=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:t=>t});class ha{constructor(i,e){pa(i,e);const r=e.reduce((n,o,s)=>n+fa(o)+i[s+1],i[0]);this.value=r.toString()}toString(){return this.value}}function fa(t){if(t instanceof ha)return t.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${t}`)}function Fh(t){if(t instanceof HTMLTemplateElement)return t.innerHTML;if(t instanceof ha)return fa(t);throw new Error(`non-template value passed to Polymer's html function: ${t}`)}const Je=function(i,...e){pa(i,e);const r=document.createElement("template");let n=e.reduce((o,s,a)=>o+Fh(s)+i[a+1],i[0]);return xo&&(n=xo.createHTML(n)),r.innerHTML=n,r},pa=(t,i)=>{if(!Array.isArray(t)||!Array.isArray(t.raw)||i.length!==t.length-1)throw new TypeError("Invalid call to the html template tag")};/**
2075
+ @license
2076
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2077
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2078
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2079
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2080
+ Code distributed by Google as part of the polymer project is also
2081
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2082
+ */const Fe=Bh(HTMLElement);/**
2083
+ * @license
2084
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
2085
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2086
+ */const De=[];function kr(t,i,e=t.getAttribute("dir")){i?t.setAttribute("dir",i):e!=null&&t.removeAttribute("dir")}function Or(){return document.documentElement.getAttribute("dir")}function Rh(){const t=Or();De.forEach(i=>{kr(i,t)})}const zh=new MutationObserver(Rh);zh.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Oi=t=>class extends t{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(),kr(this,Or(),null))}attributeChangedCallback(e,r,n){if(super.attributeChangedCallback(e,r,n),e!=="dir")return;const o=Or(),s=n===o&&De.indexOf(this)===-1,a=!n&&r&&De.indexOf(this)===-1;s||a?(this.__subscribe(),kr(this,o,n)):n!==o&&r===o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=De.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,r,n){n==="dir"&&r===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,r,n)}_attributeToProperty(e,r,n){e==="dir"&&!r?this.dir="":super._attributeToProperty(e,r,n)}__subscribe(){De.includes(this)||De.push(this)}__unsubscribe(){De.includes(this)&&De.splice(De.indexOf(this),1)}};/**
2087
+ * @license
2088
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
2089
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2090
+ */const Uh=t=>class extends t{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())})}};/**
2091
+ * @license
2092
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
2093
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2094
+ */const jh=$`
2095
+ :host {
2096
+ display: flex;
2097
+ align-items: center;
2098
+ flex: 0 1 auto;
2099
+ border-radius:
2100
+ /* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius */
2101
+ var(--vaadin-input-field-top-start-radius, var(--__border-radius))
2102
+ var(--vaadin-input-field-top-end-radius, var(--__border-radius))
2103
+ var(--vaadin-input-field-bottom-end-radius, var(--__border-radius))
2104
+ var(--vaadin-input-field-bottom-start-radius, var(--__border-radius));
2105
+ --_border-radius: var(--vaadin-input-field-border-radius, 0);
2106
+ --_input-border-width: var(--vaadin-input-field-border-width, 0);
2107
+ --_input-border-color: var(--vaadin-input-field-border-color, transparent);
2108
+ box-shadow: inset 0 0 0 var(--_input-border-width, 0) var(--_input-border-color);
2109
+ }
2110
+
2111
+ :host([dir='rtl']) {
2112
+ border-radius:
2113
+ /* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
2114
+ var(--vaadin-input-field-top-end-radius, var(--_border-radius))
2115
+ var(--vaadin-input-field-top-start-radius, var(--_border-radius))
2116
+ var(--vaadin-input-field-bottom-start-radius, var(--_border-radius))
2117
+ var(--vaadin-input-field-bottom-end-radius, var(--_border-radius));
2118
+ }
2119
+
2120
+ :host([hidden]) {
2121
+ display: none !important;
2122
+ }
2123
+
2124
+ /* Reset the native input styles */
2125
+ ::slotted(input) {
2126
+ -webkit-appearance: none;
2127
+ -moz-appearance: none;
2128
+ flex: auto;
2129
+ white-space: nowrap;
2130
+ overflow: hidden;
2131
+ width: 100%;
2132
+ height: 100%;
2133
+ outline: none;
2134
+ margin: 0;
2135
+ padding: 0;
2136
+ border: 0;
2137
+ border-radius: 0;
2138
+ min-width: 0;
2139
+ font: inherit;
2140
+ line-height: normal;
2141
+ color: inherit;
2142
+ background-color: transparent;
2143
+ /* Disable default invalid style in Firefox */
2144
+ box-shadow: none;
2145
+ }
2146
+
2147
+ ::slotted(*) {
2148
+ flex: none;
2149
+ }
2150
+
2151
+ ::slotted(:is(input, textarea))::placeholder {
2152
+ /* Use ::slotted(input:placeholder-shown) in themes to style the placeholder. */
2153
+ /* because ::slotted(...)::placeholder does not work in Safari. */
2154
+ font: inherit;
2155
+ color: inherit;
2156
+ /* Override default opacity in Firefox */
2157
+ opacity: 1;
2158
+ }
2159
+ `;/**
2160
+ * @license
2161
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
2162
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2163
+ */J("vaadin-input-container",jh,{moduleId:"vaadin-input-container-styles"});class Vh extends Uh(Xe(Oi(Fe))){static get is(){return"vaadin-input-container"}static get template(){return Je`
2164
+ <slot name="prefix"></slot>
2165
+ <slot></slot>
2166
+ <slot name="suffix"></slot>
2167
+ `}}Te(Vh);/**
2168
+ * @license
2169
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
2170
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2171
+ */const Yh=$`
2172
+ :host {
2173
+ z-index: 200;
2174
+ position: fixed;
2175
+
2176
+ /* Despite of what the names say, <vaadin-overlay> is just a container
2177
+ for position/sizing/alignment. The actual overlay is the overlay part. */
2178
+
2179
+ /* Default position constraints: the entire viewport. Note: themes can
2180
+ override this to introduce gaps between the overlay and the viewport. */
2181
+ inset: 0;
2182
+ bottom: var(--vaadin-overlay-viewport-bottom);
2183
+
2184
+ /* Use flexbox alignment for the overlay part. */
2185
+ display: flex;
2186
+ flex-direction: column; /* makes dropdowns sizing easier */
2187
+ /* Align to center by default. */
2188
+ align-items: center;
2189
+ justify-content: center;
2190
+
2191
+ /* Allow centering when max-width/max-height applies. */
2192
+ margin: auto;
2193
+
2194
+ /* The host is not clickable, only the overlay part is. */
2195
+ pointer-events: none;
2196
+
2197
+ /* Remove tap highlight on touch devices. */
2198
+ -webkit-tap-highlight-color: transparent;
2199
+
2200
+ /* CSS API for host */
2201
+ --vaadin-overlay-viewport-bottom: 0;
2202
+ }
2203
+
2204
+ :host([hidden]),
2205
+ :host(:not([opened]):not([closing])),
2206
+ :host(:not([opened]):not([closing])) [part='overlay'] {
2207
+ display: none !important;
2208
+ }
2209
+
2210
+ [part='overlay'] {
2211
+ -webkit-overflow-scrolling: touch;
2212
+ overflow: auto;
2213
+ pointer-events: auto;
2214
+
2215
+ /* Prevent overflowing the host */
2216
+ max-width: 100%;
2217
+ box-sizing: border-box;
2218
+
2219
+ -webkit-tap-highlight-color: initial; /* reenable tap highlight inside */
2220
+ }
2221
+
2222
+ [part='backdrop'] {
2223
+ z-index: -1;
2224
+ content: '';
2225
+ background: rgba(0, 0, 0, 0.5);
2226
+ position: fixed;
2227
+ inset: 0;
2228
+ pointer-events: auto;
2229
+ }
2230
+ `;/**
2231
+ * @license
2232
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
2233
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2234
+ */let sn=!1;window.addEventListener("keydown",()=>{sn=!0},{capture:!0});window.addEventListener("mousedown",()=>{sn=!1},{capture:!0});function Mr(){let t=document.activeElement||document.body;for(;t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function an(){return sn}function Gh(t){const i=t.style;if(i.visibility==="hidden"||i.display==="none")return!0;const e=window.getComputedStyle(t);return e.visibility==="hidden"||e.display==="none"}function Wh(t,i){const e=Math.max(t.tabIndex,0),r=Math.max(i.tabIndex,0);return e===0||r===0?r>e:e>r}function qh(t,i){const e=[];for(;t.length>0&&i.length>0;)Wh(t[0],i[0])?e.push(i.shift()):e.push(t.shift());return e.concat(t,i)}function Ir(t){const i=t.length;if(i<2)return t;const e=Math.ceil(i/2),r=Ir(t.slice(0,e)),n=Ir(t.slice(e));return qh(r,n)}function ma(t){return t.matches('[tabindex="-1"]')?!1:t.matches("input, select, textarea, button, object")?t.matches(":not([disabled])"):t.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Xh(t){return t.getRootNode().activeElement===t}function Kh(t){if(!ma(t))return-1;const i=t.getAttribute("tabindex")||0;return Number(i)}function _a(t,i){if(t.nodeType!==Node.ELEMENT_NODE||Gh(t))return!1;const e=t,r=Kh(e);let n=r>0;r>=0&&i.push(e);let o=[];return e.localName==="slot"?o=e.assignedNodes({flatten:!0}):o=(e.shadowRoot||e).children,[...o].forEach(s=>{n=_a(s,i)||n}),n}function Jh(t){const i=[];return _a(t,i)?Ir(i):i}/**
2235
+ @license
2236
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2237
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2238
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2239
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2240
+ Code distributed by Google as part of the polymer project is also
2241
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2242
+ */let Nr=!1,Zh=[],ga=[];function Qh(){Nr=!0,requestAnimationFrame(function(){Nr=!1,ef(Zh),setTimeout(function(){tf(ga)})})}function ef(t){for(;t.length;)ba(t.shift())}function tf(t){for(let i=0,e=t.length;i<e;i++)ba(t.shift())}function ba(t){const i=t[0],e=t[1],r=t[2];try{e.apply(i,r)}catch(n){setTimeout(()=>{throw n})}}function ya(t,i,e){Nr||Qh(),ga.push([t,i,e])}/**
2243
+ * @license
2244
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
2245
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2246
+ */const Mi=t=>t.test(navigator.userAgent),Hr=t=>t.test(navigator.platform),rf=t=>t.test(navigator.vendor);Mi(/Android/u);Mi(/Chrome/u)&&rf(/Google Inc/u);Mi(/Firefox/u);const nf=Hr(/^iPad/u)||Hr(/^Mac/u)&&navigator.maxTouchPoints>1,of=Hr(/^iPhone/u),va=of||nf;Mi(/^((?!chrome|android).)*safari/iu);const sf=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}})();/**
2247
+ * @license
2248
+ * Copyright (c) 2017 Anton Korzunov
2249
+ * SPDX-License-Identifier: MIT
2250
+ */let tt=new WeakMap,ri=new WeakMap,ni={},Ji=0;const wo=t=>t&&t.nodeType===Node.ELEMENT_NODE,Zi=(...t)=>{console.error(`Error: ${t.join(" ")}. Skip setting aria-hidden.`)},af=(t,i)=>wo(t)?i.map(e=>{if(!wo(e))return Zi(e,"is not a valid element"),null;let r=e;for(;r&&r!==t;){if(t.contains(r))return e;r=r.getRootNode().host}return Zi(e,"is not contained inside",t),null}).filter(e=>!!e):(Zi(t,"is not a valid element"),[]),lf=(t,i,e,r)=>{const n=af(i,Array.isArray(t)?t:[t]);ni[e]||(ni[e]=new WeakMap);const o=ni[e],s=[],a=new Set,l=new Set(n),u=d=>{if(!d||a.has(d))return;a.add(d);const h=d.assignedSlot;h&&u(h),u(d.parentNode||d.host)};n.forEach(u);const c=d=>{if(!d||l.has(d))return;const h=d.shadowRoot;(h?[...d.children,...h.children]:[...d.children]).forEach(p=>{if(!["template","script","style"].includes(p.localName))if(a.has(p))c(p);else{const x=p.getAttribute(r),T=x!==null&&x!=="false",O=(tt.get(p)||0)+1,D=(o.get(p)||0)+1;tt.set(p,O),o.set(p,D),s.push(p),O===1&&T&&ri.set(p,!0),D===1&&p.setAttribute(e,"true"),T||p.setAttribute(r,"true")}})};return c(i),a.clear(),Ji+=1,()=>{s.forEach(d=>{const h=tt.get(d)-1,f=o.get(d)-1;tt.set(d,h),o.set(d,f),h||(ri.has(d)?ri.delete(d):d.removeAttribute(r)),f||d.removeAttribute(e)}),Ji-=1,Ji||(tt=new WeakMap,tt=new WeakMap,ri=new WeakMap,ni={})}},xa=(t,i=document.body,e="data-aria-hidden")=>{const r=Array.from(Array.isArray(t)?t:[t]);return i&&r.push(...Array.from(i.querySelectorAll("[aria-live]"))),lf(r,i,e,"aria-hidden")};/**
2251
+ * @license
2252
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
2253
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2254
+ */class uf{constructor(i,e){this.host=i,this.callback=typeof e=="function"?e:()=>i}showModal(){const i=this.callback();this.__showOthers=xa(i)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
2255
+ * @license
2256
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
2257
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2258
+ */class cf{saveFocus(i){this.focusNode=i||Mr()}restoreFocus(i){const e=this.focusNode;if(!e)return;const r=i?i.preventScroll:!1;Mr()===document.body?setTimeout(()=>e.focus({preventScroll:r})):e.focus({preventScroll:r}),this.focusNode=null}}/**
2259
+ * @license
2260
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
2261
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2262
+ */const Qi=[];class df{constructor(i){this.host=i,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return Jh(this.__trapNode)}get __focusedElementIndex(){const i=this.__focusableElements;return i.indexOf(i.filter(Xh).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(i){if(this.__trapNode=i,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Qi.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Qi.pop()}__onKeyDown(i){if(this.__trapNode&&this===Array.from(Qi).pop()&&i.key==="Tab"){i.preventDefault();const e=i.shiftKey;this.__focusNextElement(e)}}__focusNextElement(i=!1){const e=this.__focusableElements,r=i?-1:1,n=this.__focusedElementIndex,o=(e.length+n+r)%e.length,s=e[o];s.focus(),s.localName==="input"&&s.select()}}/**
2263
+ * @license
2264
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
2265
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2266
+ */const Et=ee(t=>typeof t.prototype.addController=="function"?t:class extends t{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)}});/**
2267
+ * @license
2268
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
2269
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2270
+ */const hf=t=>class extends Et(t){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new uf(this),this.__focusTrapController=new df(this),this.__focusRestorationController=new cf}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=!an();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 n=e.ownerDocument;for(;r&&r!==n&&r!==this;)r=r.parentNode||r.host;return r===this}};/**
2271
+ * @license
2272
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
2273
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2274
+ */const wa=()=>Array.from(document.body.children).filter(t=>t instanceof HTMLElement&&t._hasOverlayStackMixin&&!t.hasAttribute("closing")).sort((t,i)=>t.__zIndex-i.__zIndex||0),Lr=()=>wa().filter(t=>t.$.overlay),ff=t=>t===Lr().pop(),pf=t=>class extends t{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return ff(this)}bringToFront(){let e="";const r=wa().filter(n=>n!==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"),Lr().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=Lr();let r;for(;(r=e.pop())&&!(r!==this&&(r.$.overlay.style.removeProperty("pointer-events"),!r.modeless)););}};/**
2275
+ * @license
2276
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
2277
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2278
+ */const mf=t=>class extends hf(pf(t)){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),va&&(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,n=window.innerWidth>e,o=document.documentElement.clientHeight;n&&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,n,o){const s=this._oldOwner!==r||this._oldModel!==n;this._oldModel=n,this._oldOwner=r;const a=this._oldRenderer!==e,l=this._oldRenderer!==void 0;this._oldRenderer=e;const u=this._oldOpened!==o;this._oldOpened=o,a&&l&&(this.innerHTML="",delete this._$litPart$),o&&e&&(a||u||s)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,r){e?(this._saveFocus(),this._animatedOpening(),ya(this,()=>{this._trapFocus();const n=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(n)}),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 n=`__${e}Handler`,o=s=>{s&&s.target!==this||(r(),this.removeEventListener("animationend",o),delete this[n])};this[n]=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)}}};/**
2279
+ * @license
2280
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
2281
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2282
+ */function _f(t){const i=[];for(;t;){if(t.nodeType===Node.DOCUMENT_NODE){i.push(t);break}if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){i.push(t),t=t.host;continue}if(t.assignedSlot){t=t.assignedSlot;continue}t=t.parentNode}return i}function ln(t){return t?new Set(t.split(" ")):new Set}function Ii(t){return t?[...t].join(" "):""}function Ea(t,i,e){const r=ln(t.getAttribute(i));r.add(e),t.setAttribute(i,Ii(r))}function gf(t,i,e){const r=ln(t.getAttribute(i));if(r.delete(e),r.size===0){t.removeAttribute(i);return}t.setAttribute(i,Ii(r))}function bf(t){return t.nodeType===Node.TEXT_NODE&&t.textContent.trim()===""}/**
2283
+ * @license
2284
+ * Copyright (c) 2024 Vaadin Ltd.
2285
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2286
+ */function yf(t,i){let e=null;const r=document.documentElement;function n(){e&&e.disconnect(),e=null}function o(s=!1,a=1){n();const{left:l,top:u,width:c,height:d}=t.getBoundingClientRect();if(s||i(),!c||!d)return;const h=Math.floor(u),f=Math.floor(r.clientWidth-(l+c)),p=Math.floor(r.clientHeight-(u+d)),x=Math.floor(l),O={rootMargin:`${-h}px ${-f}px ${-p}px ${-x}px`,threshold:Math.max(0,Math.min(1,a))||1};let D=!0;function N(U){let H=U[0].intersectionRatio;if(H!==a){if(!D)return o();H===0&&(H=1e-7),o(!1,H)}D=!1}e=new IntersectionObserver(N,O),e.observe(t)}return o(!0),n}/**
2287
+ * @license
2288
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
2289
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2290
+ */const er={start:"top",end:"bottom"},tr={start:"left",end:"right"},Eo=new ResizeObserver(t=>{setTimeout(()=>{t.forEach(i=>{i.target.__overlay&&i.target.__overlay._updatePosition()})})}),vf=t=>class extends t{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=_f(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=yf(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,Eo.unobserve(r),e&&(this.__addUpdatePositionEventListeners(),r.__overlay=this,Eo.observe(r))),e){const n=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(o=>{this.__margins[o]=parseInt(n[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 n=this.__isRTL,o=this.__shouldAlignStartHorizontally(e,n),s=!n&&o||n&&!o;this.style.alignItems=s?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(e,a,this.noVerticalOverlap,er,this,r),u=this.__calculatePositionInOneDimension(e,a,this.noHorizontalOverlap,tr,this,o);Object.assign(this.style,l,u),this.toggleAttribute("bottom-aligned",!r),this.toggleAttribute("top-aligned",r),this.toggleAttribute("end-aligned",!s),this.toggleAttribute("start-aligned",s)}__shouldAlignStartHorizontally(e,r){const n=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const o=Math.min(window.innerWidth,document.documentElement.clientWidth),s=!r&&this.horizontalAlign==="start"||r&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,n,o,this.__margins,s,this.noHorizontalOverlap,tr)}__shouldAlignStartVertically(e){const r=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const n=Math.min(window.innerHeight,document.documentElement.clientHeight),o=this.verticalAlign==="top";return this.__shouldAlignStart(e,r,n,this.__margins,o,this.noVerticalOverlap,er)}__shouldAlignStart(e,r,n,o,s,a,l){const u=n-e[a?l.end:l.start]-o[l.end],c=e[a?l.start:l.end]-o[l.start],d=s?u:c,f=d>(s?c:u)||d>r;return s===f}__adjustBottomProperty(e,r,n){let o;if(e===r.end){if(r.end===er.end){const s=Math.min(window.innerHeight,document.documentElement.clientHeight);if(n>s&&this.__oldViewportHeight){const a=this.__oldViewportHeight-s;o=n-a}this.__oldViewportHeight=s}if(r.end===tr.end){const s=Math.min(window.innerWidth,document.documentElement.clientWidth);if(n>s&&this.__oldViewportWidth){const a=this.__oldViewportWidth-s;o=n-a}this.__oldViewportWidth=s}}return o}__calculatePositionInOneDimension(e,r,n,o,s,a){const l=a?o.start:o.end,u=a?o.end:o.start,c=parseFloat(s.style[l]||getComputedStyle(s)[l]),d=this.__adjustBottomProperty(l,o,c),h=r[a?o.start:o.end]-e[n===a?o.end:o.start],f=d?`${d}px`:`${c+h*(a?-1:1)}px`;return{[l]:f,[u]:""}}};/**
2291
+ * @license
2292
+ * Copyright (c) 2015 - 2024 Vaadin Ltd.
2293
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2294
+ */const xf=t=>class extends vf(mf(t)){_shouldCloseOnOutsideClick(e){return!e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!ma(e.composedPath()[0])&&e.preventDefault()}};/**
2295
+ * @license
2296
+ * Copyright (c) 2016 - 2024 Vaadin Ltd.
2297
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2298
+ */const wf=$`
2299
+ [part='overlay'] {
2300
+ display: flex;
2301
+ flex: auto;
2302
+ }
2303
+
2304
+ [part~='content'] {
2305
+ flex: auto;
2306
+ }
2307
+
2308
+ @media (forced-colors: active) {
2309
+ [part='overlay'] {
2310
+ outline: 3px solid;
2311
+ }
2312
+ }
2313
+ `;/**
2314
+ * @license
2315
+ * Copyright (c) 2016 - 2024 Vaadin Ltd.
2316
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2317
+ */J("vaadin-date-picker-overlay",[Yh,wf],{moduleId:"vaadin-date-picker-overlay-styles"});class Ef extends xf(Oi(Xe(Fe))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return Je`
2318
+ <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
2319
+ <div part="overlay" id="overlay">
2320
+ <div part="content" id="content">
2321
+ <slot></slot>
2322
+ </div>
2323
+ </div>
2324
+ `}}Te(Ef);const Sf=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,di=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Af(){function t(){return!0}return Sa(t)}function Cf(){try{return Tf()?!0:Pf()?di?!Df():!Af():!1}catch(t){return!1}}function Tf(){return localStorage.getItem("vaadin.developmentmode.force")}function Pf(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Df(){return!!(di&&Object.keys(di).map(i=>di[i]).filter(i=>i.productionMode).length>0)}function Sa(t,i){if(typeof t!="function")return;const e=Sf.exec(t.toString());if(e)try{t=new Function(e[1])}catch(r){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",r)}return t(i)}window.Vaadin=window.Vaadin||{};const So=function(t,i){if(window.Vaadin.developmentMode)return Sa(t,i)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Cf());function kf(){/*! vaadin-dev-mode:start
2325
+ (function () {
2326
+ 'use strict';
2327
+
2328
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
2329
+ return typeof obj;
2330
+ } : function (obj) {
2331
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
2332
+ };
2333
+
2334
+ var classCallCheck = function (instance, Constructor) {
2335
+ if (!(instance instanceof Constructor)) {
2336
+ throw new TypeError("Cannot call a class as a function");
2337
+ }
2338
+ };
2339
+
2340
+ var createClass = function () {
2341
+ function defineProperties(target, props) {
2342
+ for (var i = 0; i < props.length; i++) {
2343
+ var descriptor = props[i];
2344
+ descriptor.enumerable = descriptor.enumerable || false;
2345
+ descriptor.configurable = true;
2346
+ if ("value" in descriptor) descriptor.writable = true;
2347
+ Object.defineProperty(target, descriptor.key, descriptor);
2348
+ }
2349
+ }
2350
+
2351
+ return function (Constructor, protoProps, staticProps) {
2352
+ if (protoProps) defineProperties(Constructor.prototype, protoProps);
2353
+ if (staticProps) defineProperties(Constructor, staticProps);
2354
+ return Constructor;
2355
+ };
2356
+ }();
2357
+
2358
+ var getPolymerVersion = function getPolymerVersion() {
2359
+ return window.Polymer && window.Polymer.version;
2360
+ };
2361
+
2362
+ var StatisticsGatherer = function () {
2363
+ function StatisticsGatherer(logger) {
2364
+ classCallCheck(this, StatisticsGatherer);
2365
+
2366
+ this.now = new Date().getTime();
2367
+ this.logger = logger;
2368
+ }
2369
+
2370
+ createClass(StatisticsGatherer, [{
2371
+ key: 'frameworkVersionDetectors',
2372
+ value: function frameworkVersionDetectors() {
2373
+ return {
2374
+ 'Flow': function Flow() {
2375
+ if (window.Vaadin && window.Vaadin.Flow && window.Vaadin.Flow.clients) {
2376
+ var flowVersions = Object.keys(window.Vaadin.Flow.clients).map(function (key) {
2377
+ return window.Vaadin.Flow.clients[key];
2378
+ }).filter(function (client) {
2379
+ return client.getVersionInfo;
2380
+ }).map(function (client) {
2381
+ return client.getVersionInfo().flow;
2382
+ });
2383
+ if (flowVersions.length > 0) {
2384
+ return flowVersions[0];
2385
+ }
2386
+ }
2387
+ },
2388
+ 'Vaadin Framework': function VaadinFramework() {
2389
+ if (window.vaadin && window.vaadin.clients) {
2390
+ var frameworkVersions = Object.values(window.vaadin.clients).filter(function (client) {
2391
+ return client.getVersionInfo;
2392
+ }).map(function (client) {
2393
+ return client.getVersionInfo().vaadinVersion;
2394
+ });
2395
+ if (frameworkVersions.length > 0) {
2396
+ return frameworkVersions[0];
2397
+ }
2398
+ }
2399
+ },
2400
+ 'AngularJs': function AngularJs() {
2401
+ if (window.angular && window.angular.version && window.angular.version) {
2402
+ return window.angular.version.full;
2403
+ }
2404
+ },
2405
+ 'Angular': function Angular() {
2406
+ if (window.ng) {
2407
+ var tags = document.querySelectorAll("[ng-version]");
2408
+ if (tags.length > 0) {
2409
+ return tags[0].getAttribute("ng-version");
2410
+ }
2411
+ return "Unknown";
2412
+ }
2413
+ },
2414
+ 'Backbone.js': function BackboneJs() {
2415
+ if (window.Backbone) {
2416
+ return window.Backbone.VERSION;
2417
+ }
2418
+ },
2419
+ 'React': function React() {
2420
+ var reactSelector = '[data-reactroot], [data-reactid]';
2421
+ if (!!document.querySelector(reactSelector)) {
2422
+ // React does not publish the version by default
2423
+ return "unknown";
2424
+ }
2425
+ },
2426
+ 'Ember': function Ember() {
2427
+ if (window.Em && window.Em.VERSION) {
2428
+ return window.Em.VERSION;
2429
+ } else if (window.Ember && window.Ember.VERSION) {
2430
+ return window.Ember.VERSION;
2431
+ }
2432
+ },
2433
+ 'jQuery': function (_jQuery) {
2434
+ function jQuery() {
2435
+ return _jQuery.apply(this, arguments);
2436
+ }
2437
+
2438
+ jQuery.toString = function () {
2439
+ return _jQuery.toString();
2440
+ };
2441
+
2442
+ return jQuery;
2443
+ }(function () {
2444
+ if (typeof jQuery === 'function' && jQuery.prototype.jquery !== undefined) {
2445
+ return jQuery.prototype.jquery;
2446
+ }
2447
+ }),
2448
+ 'Polymer': function Polymer() {
2449
+ var version = getPolymerVersion();
2450
+ if (version) {
2451
+ return version;
2452
+ }
2453
+ },
2454
+ 'LitElement': function LitElement() {
2455
+ var version = window.litElementVersions && window.litElementVersions[0];
2456
+ if (version) {
2457
+ return version;
2458
+ }
2459
+ },
2460
+ 'LitHtml': function LitHtml() {
2461
+ var version = window.litHtmlVersions && window.litHtmlVersions[0];
2462
+ if (version) {
2463
+ return version;
2464
+ }
2465
+ },
2466
+ 'Vue.js': function VueJs() {
2467
+ if (window.Vue) {
2468
+ return window.Vue.version;
2469
+ }
2470
+ }
2471
+ };
2472
+ }
2473
+ }, {
2474
+ key: 'getUsedVaadinElements',
2475
+ value: function getUsedVaadinElements(elements) {
2476
+ var version = getPolymerVersion();
2477
+ var elementClasses = void 0;
2478
+ // NOTE: In case you edit the code here, YOU MUST UPDATE any statistics reporting code in Flow.
2479
+ // Check all locations calling the method getEntries() in
2480
+ // https://github.com/vaadin/flow/blob/master/flow-server/src/main/java/com/vaadin/flow/internal/UsageStatistics.java#L106
2481
+ // Currently it is only used by BootstrapHandler.
2482
+ if (version && version.indexOf('2') === 0) {
2483
+ // Polymer 2: components classes are stored in window.Vaadin
2484
+ elementClasses = Object.keys(window.Vaadin).map(function (c) {
2485
+ return window.Vaadin[c];
2486
+ }).filter(function (c) {
2487
+ return c.is;
2488
+ });
2489
+ } else {
2490
+ // Polymer 3: components classes are stored in window.Vaadin.registrations
2491
+ elementClasses = window.Vaadin.registrations || [];
2492
+ }
2493
+ elementClasses.forEach(function (klass) {
2494
+ var version = klass.version ? klass.version : "0.0.0";
2495
+ elements[klass.is] = { version: version };
2496
+ });
2497
+ }
2498
+ }, {
2499
+ key: 'getUsedVaadinThemes',
2500
+ value: function getUsedVaadinThemes(themes) {
2501
+ ['Lumo', 'Material'].forEach(function (themeName) {
2502
+ var theme;
2503
+ var version = getPolymerVersion();
2504
+ if (version && version.indexOf('2') === 0) {
2505
+ // Polymer 2: themes are stored in window.Vaadin
2506
+ theme = window.Vaadin[themeName];
2507
+ } else {
2508
+ // Polymer 3: themes are stored in custom element registry
2509
+ theme = customElements.get('vaadin-' + themeName.toLowerCase() + '-styles');
2510
+ }
2511
+ if (theme && theme.version) {
2512
+ themes[themeName] = { version: theme.version };
2513
+ }
2514
+ });
2515
+ }
2516
+ }, {
2517
+ key: 'getFrameworks',
2518
+ value: function getFrameworks(frameworks) {
2519
+ var detectors = this.frameworkVersionDetectors();
2520
+ Object.keys(detectors).forEach(function (framework) {
2521
+ var detector = detectors[framework];
2522
+ try {
2523
+ var version = detector();
2524
+ if (version) {
2525
+ frameworks[framework] = { version: version };
2526
+ }
2527
+ } catch (e) {}
2528
+ });
2529
+ }
2530
+ }, {
2531
+ key: 'gather',
2532
+ value: function gather(storage) {
2533
+ var storedStats = storage.read();
2534
+ var gatheredStats = {};
2535
+ var types = ["elements", "frameworks", "themes"];
2536
+
2537
+ types.forEach(function (type) {
2538
+ gatheredStats[type] = {};
2539
+ if (!storedStats[type]) {
2540
+ storedStats[type] = {};
2541
+ }
2542
+ });
2543
+
2544
+ var previousStats = JSON.stringify(storedStats);
2545
+
2546
+ this.getUsedVaadinElements(gatheredStats.elements);
2547
+ this.getFrameworks(gatheredStats.frameworks);
2548
+ this.getUsedVaadinThemes(gatheredStats.themes);
2549
+
2550
+ var now = this.now;
2551
+ types.forEach(function (type) {
2552
+ var keys = Object.keys(gatheredStats[type]);
2553
+ keys.forEach(function (key) {
2554
+ if (!storedStats[type][key] || _typeof(storedStats[type][key]) != _typeof({})) {
2555
+ storedStats[type][key] = { firstUsed: now };
2556
+ }
2557
+ // Discards any previously logged version number
2558
+ storedStats[type][key].version = gatheredStats[type][key].version;
2559
+ storedStats[type][key].lastUsed = now;
2560
+ });
2561
+ });
2562
+
2563
+ var newStats = JSON.stringify(storedStats);
2564
+ storage.write(newStats);
2565
+ if (newStats != previousStats && Object.keys(storedStats).length > 0) {
2566
+ this.logger.debug("New stats: " + newStats);
2567
+ }
2568
+ }
2569
+ }]);
2570
+ return StatisticsGatherer;
2571
+ }();
2572
+
2573
+ var StatisticsStorage = function () {
2574
+ function StatisticsStorage(key) {
2575
+ classCallCheck(this, StatisticsStorage);
2576
+
2577
+ this.key = key;
2578
+ }
2579
+
2580
+ createClass(StatisticsStorage, [{
2581
+ key: 'read',
2582
+ value: function read() {
2583
+ var localStorageStatsString = localStorage.getItem(this.key);
2584
+ try {
2585
+ return JSON.parse(localStorageStatsString ? localStorageStatsString : '{}');
2586
+ } catch (e) {
2587
+ return {};
2588
+ }
2589
+ }
2590
+ }, {
2591
+ key: 'write',
2592
+ value: function write(data) {
2593
+ localStorage.setItem(this.key, data);
2594
+ }
2595
+ }, {
2596
+ key: 'clear',
2597
+ value: function clear() {
2598
+ localStorage.removeItem(this.key);
2599
+ }
2600
+ }, {
2601
+ key: 'isEmpty',
2602
+ value: function isEmpty() {
2603
+ var storedStats = this.read();
2604
+ var empty = true;
2605
+ Object.keys(storedStats).forEach(function (key) {
2606
+ if (Object.keys(storedStats[key]).length > 0) {
2607
+ empty = false;
2608
+ }
2609
+ });
2610
+
2611
+ return empty;
2612
+ }
2613
+ }]);
2614
+ return StatisticsStorage;
2615
+ }();
2616
+
2617
+ var StatisticsSender = function () {
2618
+ function StatisticsSender(url, logger) {
2619
+ classCallCheck(this, StatisticsSender);
2620
+
2621
+ this.url = url;
2622
+ this.logger = logger;
2623
+ }
2624
+
2625
+ createClass(StatisticsSender, [{
2626
+ key: 'send',
2627
+ value: function send(data, errorHandler) {
2628
+ var logger = this.logger;
2629
+
2630
+ if (navigator.onLine === false) {
2631
+ logger.debug("Offline, can't send");
2632
+ errorHandler();
2633
+ return;
2634
+ }
2635
+ logger.debug("Sending data to " + this.url);
2636
+
2637
+ var req = new XMLHttpRequest();
2638
+ req.withCredentials = true;
2639
+ req.addEventListener("load", function () {
2640
+ // Stats sent, nothing more to do
2641
+ logger.debug("Response: " + req.responseText);
2642
+ });
2643
+ req.addEventListener("error", function () {
2644
+ logger.debug("Send failed");
2645
+ errorHandler();
2646
+ });
2647
+ req.addEventListener("abort", function () {
2648
+ logger.debug("Send aborted");
2649
+ errorHandler();
2650
+ });
2651
+ req.open("POST", this.url);
2652
+ req.setRequestHeader("Content-Type", "application/json");
2653
+ req.send(data);
2654
+ }
2655
+ }]);
2656
+ return StatisticsSender;
2657
+ }();
2658
+
2659
+ var StatisticsLogger = function () {
2660
+ function StatisticsLogger(id) {
2661
+ classCallCheck(this, StatisticsLogger);
2662
+
2663
+ this.id = id;
2664
+ }
2665
+
2666
+ createClass(StatisticsLogger, [{
2667
+ key: '_isDebug',
2668
+ value: function _isDebug() {
2669
+ return localStorage.getItem("vaadin." + this.id + ".debug");
2670
+ }
2671
+ }, {
2672
+ key: 'debug',
2673
+ value: function debug(msg) {
2674
+ if (this._isDebug()) {
2675
+ console.info(this.id + ": " + msg);
2676
+ }
2677
+ }
2678
+ }]);
2679
+ return StatisticsLogger;
2680
+ }();
2681
+
2682
+ var UsageStatistics = function () {
2683
+ function UsageStatistics() {
2684
+ classCallCheck(this, UsageStatistics);
2685
+
2686
+ this.now = new Date();
2687
+ this.timeNow = this.now.getTime();
2688
+ this.gatherDelay = 10; // Delay between loading this file and gathering stats
2689
+ this.initialDelay = 24 * 60 * 60;
2690
+
2691
+ this.logger = new StatisticsLogger("statistics");
2692
+ this.storage = new StatisticsStorage("vaadin.statistics.basket");
2693
+ this.gatherer = new StatisticsGatherer(this.logger);
2694
+ this.sender = new StatisticsSender("https://tools.vaadin.com/usage-stats/submit", this.logger);
2695
+ }
2696
+
2697
+ createClass(UsageStatistics, [{
2698
+ key: 'maybeGatherAndSend',
2699
+ value: function maybeGatherAndSend() {
2700
+ var _this = this;
2701
+
2702
+ if (localStorage.getItem(UsageStatistics.optOutKey)) {
2703
+ return;
2704
+ }
2705
+ this.gatherer.gather(this.storage);
2706
+ setTimeout(function () {
2707
+ _this.maybeSend();
2708
+ }, this.gatherDelay * 1000);
2709
+ }
2710
+ }, {
2711
+ key: 'lottery',
2712
+ value: function lottery() {
2713
+ return true;
2714
+ }
2715
+ }, {
2716
+ key: 'currentMonth',
2717
+ value: function currentMonth() {
2718
+ return this.now.getYear() * 12 + this.now.getMonth();
2719
+ }
2720
+ }, {
2721
+ key: 'maybeSend',
2722
+ value: function maybeSend() {
2723
+ var firstUse = Number(localStorage.getItem(UsageStatistics.firstUseKey));
2724
+ var monthProcessed = Number(localStorage.getItem(UsageStatistics.monthProcessedKey));
2725
+
2726
+ if (!firstUse) {
2727
+ // Use a grace period to avoid interfering with tests, incognito mode etc
2728
+ firstUse = this.timeNow;
2729
+ localStorage.setItem(UsageStatistics.firstUseKey, firstUse);
2730
+ }
2731
+
2732
+ if (this.timeNow < firstUse + this.initialDelay * 1000) {
2733
+ this.logger.debug("No statistics will be sent until the initial delay of " + this.initialDelay + "s has passed");
2734
+ return;
2735
+ }
2736
+ if (this.currentMonth() <= monthProcessed) {
2737
+ this.logger.debug("This month has already been processed");
2738
+ return;
2739
+ }
2740
+ localStorage.setItem(UsageStatistics.monthProcessedKey, this.currentMonth());
2741
+ // Use random sampling
2742
+ if (this.lottery()) {
2743
+ this.logger.debug("Congratulations, we have a winner!");
2744
+ } else {
2745
+ this.logger.debug("Sorry, no stats from you this time");
2746
+ return;
2747
+ }
2748
+
2749
+ this.send();
2750
+ }
2751
+ }, {
2752
+ key: 'send',
2753
+ value: function send() {
2754
+ // Ensure we have the latest data
2755
+ this.gatherer.gather(this.storage);
2756
+
2757
+ // Read, send and clean up
2758
+ var data = this.storage.read();
2759
+ data["firstUse"] = Number(localStorage.getItem(UsageStatistics.firstUseKey));
2760
+ data["usageStatisticsVersion"] = UsageStatistics.version;
2761
+ var info = 'This request contains usage statistics gathered from the application running in development mode. \n\nStatistics gathering is automatically disabled and excluded from production builds.\n\nFor details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.\n\n\n\n';
2762
+ var self = this;
2763
+ this.sender.send(info + JSON.stringify(data), function () {
2764
+ // Revert the 'month processed' flag
2765
+ localStorage.setItem(UsageStatistics.monthProcessedKey, self.currentMonth() - 1);
2766
+ });
2767
+ }
2768
+ }], [{
2769
+ key: 'version',
2770
+ get: function get$1() {
2771
+ return '2.1.2';
2772
+ }
2773
+ }, {
2774
+ key: 'firstUseKey',
2775
+ get: function get$1() {
2776
+ return 'vaadin.statistics.firstuse';
2777
+ }
2778
+ }, {
2779
+ key: 'monthProcessedKey',
2780
+ get: function get$1() {
2781
+ return 'vaadin.statistics.monthProcessed';
2782
+ }
2783
+ }, {
2784
+ key: 'optOutKey',
2785
+ get: function get$1() {
2786
+ return 'vaadin.statistics.optout';
2787
+ }
2788
+ }]);
2789
+ return UsageStatistics;
2790
+ }();
2791
+
2792
+ try {
2793
+ window.Vaadin = window.Vaadin || {};
2794
+ window.Vaadin.usageStatsChecker = window.Vaadin.usageStatsChecker || new UsageStatistics();
2795
+ window.Vaadin.usageStatsChecker.maybeGatherAndSend();
2796
+ } catch (e) {
2797
+ // Intentionally ignored as this is not a problem in the app being developed
2798
+ }
2799
+
2800
+ }());
2801
+
2802
+ vaadin-dev-mode:end **/}const Of=function(){if(typeof So=="function")return So(kf)};/**
2803
+ * @license
2804
+ * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2805
+ * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2806
+ * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2807
+ * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2808
+ * Code distributed by Google as part of the polymer project is also
2809
+ * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2810
+ */let Ao=0,Aa=0;const lt=[];let $r=!1;function Mf(){$r=!1;const t=lt.length;for(let i=0;i<t;i++){const e=lt[i];if(e)try{e()}catch(r){setTimeout(()=>{throw r})}}lt.splice(0,t),Aa+=t}const xi={after(t){return{run(i){return window.setTimeout(i,t)},cancel(i){window.clearTimeout(i)}}},run(t,i){return window.setTimeout(t,i)},cancel(t){window.clearTimeout(t)}},If={run(t){return window.requestAnimationFrame(t)},cancel(t){window.cancelAnimationFrame(t)}},Nf={run(t){return window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16)},cancel(t){window.cancelIdleCallback?window.cancelIdleCallback(t):window.clearTimeout(t)}},Hf={run(t){$r||($r=!0,queueMicrotask(()=>Mf())),lt.push(t);const i=Ao;return Ao+=1,i},cancel(t){const i=t-Aa;if(i>=0){if(!lt[i])throw new Error(`invalid async handle: ${t}`);lt[i]=null}}};/**
2811
+ @license
2812
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2813
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2814
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2815
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2816
+ Code distributed by Google as part of the polymer project is also
2817
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2818
+ */const Br=new Set;let _t=class Fr{static debounce(i,e,r){return i instanceof Fr?i._cancelAsync():i=new Fr,i.setConfig(e,r),i}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(i,e){this._asyncModule=i,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,Br.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Br.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 Lf(t){Br.add(t)}/**
2819
+ * @license
2820
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
2821
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2822
+ */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Of()};let ir;const Co=new Set,Ca=t=>class extends Oi(t){static finalize(){super.finalize();const{is:e}=this;e&&!Co.has(e)&&(window.Vaadin.registrations.push(this),Co.add(e),window.Vaadin.developmentModeCallback&&(ir=_t.debounce(ir,Nf,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),Lf(ir)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
2823
+ * @license
2824
+ * Copyright (c) 2023 - 2024 Vaadin Ltd.
2825
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2826
+ */class $f{constructor(i,e){this.slot=i,this.callback=e,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_processNodes(){const i=this.slot.assignedNodes({flatten:!0});let e=[];const r=[],n=[];i.length&&(e=i.filter(o=>!this._storedNodes.includes(o))),this._storedNodes.length&&this._storedNodes.forEach((o,s)=>{const a=i.indexOf(o);a===-1?r.push(o):a!==s&&n.push(o)}),(e.length||r.length||n.length)&&this.callback({addedNodes:e,currentNodes:i,movedNodes:n,removedNodes:r}),this._storedNodes=i}}/**
2827
+ * @license
2828
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
2829
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2830
+ */let Bf=0;function Ta(){return Bf++}/**
2831
+ * @license
2832
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
2833
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2834
+ */class Ve extends EventTarget{static generateId(i,e="default"){return`${e}-${i.localName}-${Ta()}`}constructor(i,e,r,n={}){super();const{initializer:o,multiple:s,observe:a,useUniqueId:l,uniqueIdPrefix:u}=n;this.host=i,this.slotName=e,this.tagName=r,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof s=="boolean"?s:!1,this.slotInitializer=o,s&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(i,u||e))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let i=this.getSlotChild();i?(this.node=i,this.initAddedNode(i)):(i=this.attachDefaultNode(),this.initNode(i))}initMultiple(){const i=this.getSlotChildren();if(i.length===0){const e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e))}else this.nodes=i,i.forEach(e=>{this.initAddedNode(e)})}attachDefaultNode(){const{host:i,slotName:e,tagName:r}=this;let n=this.defaultNode;return!n&&r&&(n=document.createElement(r),n instanceof Element&&(e!==""&&n.setAttribute("slot",e),this.defaultNode=n)),n&&(this.node=n,i.appendChild(n)),n}getSlotChildren(){const{slotName:i}=this;return Array.from(this.host.childNodes).filter(e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===i||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&i==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(i){const{slotInitializer:e}=this;e&&e(i,this.host)}initCustomNode(i){}teardownNode(i){}initAddedNode(i){i!==this.defaultNode&&(this.initCustomNode(i),this.initNode(i))}observeSlot(){const{slotName:i}=this,e=i===""?"slot:not([name])":`slot[name=${i}]`,r=this.host.shadowRoot.querySelector(e);this.__slotObserver=new $f(r,({addedNodes:n,removedNodes:o})=>{const s=this.multiple?this.nodes:[this.node],a=n.filter(l=>!bf(l)&&!s.includes(l));o.length&&(this.nodes=s.filter(l=>!o.includes(l)),o.forEach(l=>{this.teardownNode(l)})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...s,...a].filter(l=>l!==this.defaultNode),a.forEach(l=>{this.initAddedNode(l)})):(this.node&&this.node.remove(),this.node=a[0],this.initAddedNode(this.node)))})}}/**
2835
+ * @license
2836
+ * Copyright (c) 2022 - 2024 Vaadin Ltd.
2837
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2838
+ */class Pa extends Ve{constructor(i){super(i,"tooltip"),this.setTarget(i)}initCustomNode(i){i.target=this.target,this.ariaTarget!==void 0&&(i.ariaTarget=this.ariaTarget),this.context!==void 0&&(i.context=this.context),this.manual!==void 0&&(i.manual=this.manual),this.opened!==void 0&&(i.opened=this.opened),this.position!==void 0&&(i._position=this.position),this.shouldShow!==void 0&&(i.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(i){this.ariaTarget=i;const e=this.node;e&&(e.ariaTarget=i)}setContext(i){this.context=i;const e=this.node;e&&(e.context=i)}setManual(i){this.manual=i;const e=this.node;e&&(e.manual=i)}setOpened(i){this.opened=i;const e=this.node;e&&(e.opened=i)}setPosition(i){this.position=i;const e=this.node;e&&(e._position=i)}setShouldShow(i){this.shouldShow=i;const e=this.node;e&&(e.shouldShow=i)}setTarget(i){this.target=i;const e=this.node;e&&(e.target=i)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
2839
+ * @license
2840
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
2841
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2842
+ */const Ff=$`
2843
+ :host {
2844
+ display: inline-block;
2845
+ position: relative;
2846
+ outline: none;
2847
+ white-space: nowrap;
2848
+ -webkit-user-select: none;
2849
+ -moz-user-select: none;
2850
+ user-select: none;
2851
+ }
2852
+
2853
+ :host([hidden]) {
2854
+ display: none !important;
2855
+ }
2856
+
2857
+ /* Aligns the button with form fields when placed on the same line.
2858
+ Note, to make it work, the form fields should have the same "::before" pseudo-element. */
2859
+ .vaadin-button-container::before {
2860
+ content: '\\2003';
2861
+ display: inline-block;
2862
+ width: 0;
2863
+ max-height: 100%;
2864
+ }
2865
+
2866
+ .vaadin-button-container {
2867
+ display: inline-flex;
2868
+ align-items: center;
2869
+ justify-content: center;
2870
+ text-align: center;
2871
+ width: 100%;
2872
+ height: 100%;
2873
+ min-height: inherit;
2874
+ text-shadow: inherit;
2875
+ }
2876
+
2877
+ [part='prefix'],
2878
+ [part='suffix'] {
2879
+ flex: none;
2880
+ }
2881
+
2882
+ [part='label'] {
2883
+ white-space: nowrap;
2884
+ overflow: hidden;
2885
+ text-overflow: ellipsis;
2886
+ }
2887
+
2888
+ @media (forced-colors: active) {
2889
+ :host {
2890
+ outline: 1px solid;
2891
+ outline-offset: -1px;
2892
+ }
2893
+
2894
+ :host([focused]) {
2895
+ outline-width: 2px;
2896
+ }
2897
+
2898
+ :host([disabled]) {
2899
+ outline-color: GrayText;
2900
+ }
2901
+ }
2902
+ `,Rf=t=>t`
2903
+ <div class="vaadin-button-container">
2904
+ <span part="prefix" aria-hidden="true">
2905
+ <slot name="prefix"></slot>
2906
+ </span>
2907
+ <span part="label">
2908
+ <slot></slot>
2909
+ </span>
2910
+ <span part="suffix" aria-hidden="true">
2911
+ <slot name="suffix"></slot>
2912
+ </span>
2913
+ </div>
2914
+ <slot name="tooltip"></slot>
2915
+ `;/**
2916
+ @license
2917
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2918
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2919
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2920
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2921
+ Code distributed by Google as part of the polymer project is also
2922
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2923
+ */const zf=t=>t,Da=typeof document.head.style.touchAction=="string",Rr="__polymerGestures",rr="__polymerGesturesHandled",zr="__polymerGesturesTouchAction",To=25,Po=5,Uf=2,jf=["mousedown","mousemove","mouseup","click"],Vf=[0,1,4,2],Yf=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(t){return!1}}();function un(t){return jf.indexOf(t)>-1}let Gf=!1;(function(){try{const t=Object.defineProperty({},"passive",{get(){Gf=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){}})();function Wf(t){un(t)}const qf=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Xf={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Ge(t){const i=t.type;if(!un(i))return!1;if(i==="mousemove"){let r=t.buttons===void 0?1:t.buttons;return t instanceof window.MouseEvent&&!Yf&&(r=Vf[t.which]||0),!!(r&1)}return(t.button===void 0?0:t.button)===0}function Kf(t){if(t.type==="click"){if(t.detail===0)return!0;const i=Be(t);if(!i.nodeType||i.nodeType!==Node.ELEMENT_NODE)return!0;const e=i.getBoundingClientRect(),r=t.pageX,n=t.pageY;return!(r>=e.left&&r<=e.right&&n>=e.top&&n<=e.bottom)}return!1}const ke={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Jf(t){let i="auto";const e=Oa(t);for(let r=0,n;r<e.length;r++)if(n=e[r],n[zr]){i=n[zr];break}return i}function ka(t,i,e){t.movefn=i,t.upfn=e,document.addEventListener("mousemove",i),document.addEventListener("mouseup",e)}function ut(t){document.removeEventListener("mousemove",t.movefn),document.removeEventListener("mouseup",t.upfn),t.movefn=null,t.upfn=null}const Oa=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:t=>t.composedPath&&t.composedPath()||[],cn={},Ye=[];function Zf(t,i){let e=document.elementFromPoint(t,i),r=e;for(;r&&r.shadowRoot&&!window.ShadyDOM;){const n=r;if(r=r.shadowRoot.elementFromPoint(t,i),n===r)break;r&&(e=r)}return e}function Be(t){const i=Oa(t);return i.length>0?i[0]:t.target}function Qf(t){const i=t.type,r=t.currentTarget[Rr];if(!r)return;const n=r[i];if(!n)return;if(!t[rr]&&(t[rr]={},i.startsWith("touch"))){const s=t.changedTouches[0];if(i==="touchstart"&&t.touches.length===1&&(ke.touch.id=s.identifier),ke.touch.id!==s.identifier)return;Da||(i==="touchstart"||i==="touchmove")&&ep(t)}const o=t[rr];if(!o.skip){for(let s=0,a;s<Ye.length;s++)a=Ye[s],n[a.name]&&!o[a.name]&&a.flow&&a.flow.start.indexOf(t.type)>-1&&a.reset&&a.reset();for(let s=0,a;s<Ye.length;s++)a=Ye[s],n[a.name]&&!o[a.name]&&(o[a.name]=!0,a[i](t))}}function ep(t){const i=t.changedTouches[0],e=t.type;if(e==="touchstart")ke.touch.x=i.clientX,ke.touch.y=i.clientY,ke.touch.scrollDecided=!1;else if(e==="touchmove"){if(ke.touch.scrollDecided)return;ke.touch.scrollDecided=!0;const r=Jf(t);let n=!1;const o=Math.abs(ke.touch.x-i.clientX),s=Math.abs(ke.touch.y-i.clientY);t.cancelable&&(r==="none"?n=!0:r==="pan-x"?n=s>o:r==="pan-y"&&(n=o>s)),n?t.preventDefault():wi("track")}}function Ae(t,i,e){return cn[i]?(tp(t,i,e),!0):!1}function tp(t,i,e){const r=cn[i],n=r.deps,o=r.name;let s=t[Rr];s||(t[Rr]=s={});for(let a=0,l,u;a<n.length;a++)l=n[a],!(qf&&un(l)&&l!=="click")&&(u=s[l],u||(s[l]=u={_count:0}),u._count===0&&t.addEventListener(l,Qf,Wf(l)),u[o]=(u[o]||0)+1,u._count=(u._count||0)+1);t.addEventListener(i,e),r.touchAction&&Ma(t,r.touchAction)}function dn(t){Ye.push(t),t.emits.forEach(i=>{cn[i]=t})}function ip(t){for(let i=0,e;i<Ye.length;i++){e=Ye[i];for(let r=0,n;r<e.emits.length;r++)if(n=e.emits[r],n===t)return e}return null}function Ma(t,i){Da&&t instanceof HTMLElement&&Hf.run(()=>{t.style.touchAction=i}),t[zr]=i}function hn(t,i,e){const r=new Event(i,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=e,zf(t).dispatchEvent(r),r.defaultPrevented){const n=e.preventer||e.sourceEvent;n&&n.preventDefault&&n.preventDefault()}}function wi(t){const i=ip(t);i.info&&(i.info.prevent=!0)}dn({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){ut(this.info)},mousedown(t){if(!Ge(t))return;const i=Be(t),e=this,r=o=>{Ge(o)||(kt("up",i,o),ut(e.info))},n=o=>{Ge(o)&&kt("up",i,o),ut(e.info)};ka(this.info,r,n),kt("down",i,t)},touchstart(t){kt("down",Be(t),t.changedTouches[0],t)},touchend(t){kt("up",Be(t),t.changedTouches[0],t)}});function kt(t,i,e,r){i&&hn(i,t,{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:r,prevent(n){return wi(n)}})}dn({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(t){this.moves.length>Uf&&this.moves.shift(),this.moves.push(t)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,ut(this.info)},mousedown(t){if(!Ge(t))return;const i=Be(t),e=this,r=o=>{const s=o.clientX,a=o.clientY;Do(e.info,s,a)&&(e.info.state=e.info.started?o.type==="mouseup"?"end":"track":"start",e.info.state==="start"&&wi("tap"),e.info.addMove({x:s,y:a}),Ge(o)||(e.info.state="end",ut(e.info)),i&&nr(e.info,i,o),e.info.started=!0)},n=o=>{e.info.started&&r(o),ut(e.info)};ka(this.info,r,n),this.info.x=t.clientX,this.info.y=t.clientY},touchstart(t){const i=t.changedTouches[0];this.info.x=i.clientX,this.info.y=i.clientY},touchmove(t){const i=Be(t),e=t.changedTouches[0],r=e.clientX,n=e.clientY;Do(this.info,r,n)&&(this.info.state==="start"&&wi("tap"),this.info.addMove({x:r,y:n}),nr(this.info,i,e),this.info.state="track",this.info.started=!0)},touchend(t){const i=Be(t),e=t.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),nr(this.info,i,e))}});function Do(t,i,e){if(t.prevent)return!1;if(t.started)return!0;const r=Math.abs(t.x-i),n=Math.abs(t.y-e);return r>=Po||n>=Po}function nr(t,i,e){if(!i)return;const r=t.moves[t.moves.length-2],n=t.moves[t.moves.length-1],o=n.x-t.x,s=n.y-t.y;let a,l=0;r&&(a=n.x-r.x,l=n.y-r.y),hn(i,"track",{state:t.state,x:e.clientX,y:e.clientY,dx:o,dy:s,ddx:a,ddy:l,sourceEvent:e,hover(){return Zf(e.clientX,e.clientY)}})}dn({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(t){Ge(t)&&(this.info.x=t.clientX,this.info.y=t.clientY)},click(t){Ge(t)&&ko(this.info,t)},touchstart(t){const i=t.changedTouches[0];this.info.x=i.clientX,this.info.y=i.clientY},touchend(t){ko(this.info,t.changedTouches[0],t)}});function ko(t,i,e){const r=Math.abs(i.clientX-t.x),n=Math.abs(i.clientY-t.y),o=Be(e||i);!o||Xf[o.localName]&&o.hasAttribute("disabled")||(isNaN(r)||isNaN(n)||r<=To&&n<=To||Kf(i))&&(t.prevent||hn(o,"tap",{x:i.clientX,y:i.clientY,sourceEvent:i,preventer:e}))}/**
2924
+ * @license
2925
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
2926
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2927
+ */const Ia=ee(t=>class extends t{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()}});/**
2928
+ * @license
2929
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
2930
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2931
+ */const Ni=ee(t=>class extends t{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){}});/**
2932
+ * @license
2933
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
2934
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2935
+ */const rp=t=>class extends Ia(Ni(t)){get _activeKeys(){return[" "]}ready(){super.ready(),Ae(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),Ae(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",r=>{this._activeKeys.includes(r.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
2936
+ * @license
2937
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
2938
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2939
+ */const fn=ee(t=>class extends t{get _keyboardActive(){return an()}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}});/**
2940
+ * @license
2941
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
2942
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2943
+ */const Na=t=>class extends Ia(t){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)}};/**
2944
+ * @license
2945
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
2946
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2947
+ */const np=t=>class extends rp(Na(fn(t))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(e){super._onKeyDown(e),!(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)&&this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click())}};/**
2948
+ * @license
2949
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
2950
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2951
+ */J("vaadin-button",Ff,{moduleId:"vaadin-button-styles"});class op extends np(Ca(Xe(Et(Fe)))){static get is(){return"vaadin-button"}static get template(){return Rf(Je)}ready(){super.ready(),this._tooltipController=new Pa(this),this.addController(this._tooltipController)}}Te(op);/**
2952
+ * @license
2953
+ * Copyright (c) 2016 - 2024 Vaadin Ltd.
2954
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2955
+ */function sp(t){let i=t.getDay();i===0&&(i=7);const e=4-i,r=new Date(t.getTime()+e*24*3600*1e3),n=new Date(0,0);n.setFullYear(r.getFullYear());const o=r.getTime()-n.getTime(),s=Math.round(o/(24*3600*1e3));return Math.floor(s/7+1)}function Ur(t){const i=new Date(t);return i.setHours(0,0,0,0),i}function ve(t,i,e=Ur){return t instanceof Date&&i instanceof Date&&e(t).getTime()===e(i).getTime()}function pn(t){return{day:t.getDate(),month:t.getMonth(),year:t.getFullYear()}}function gt(t,i,e,r){let n=!1;if(typeof r=="function"&&t){const o=pn(t);n=r(o)}return(!i||t>=i)&&(!e||t<=e)&&!n}function Ha(t,i){return i.filter(e=>e!==void 0).reduce((e,r)=>{if(!r)return e;if(!e)return r;const n=Math.abs(t.getTime()-r.getTime()),o=Math.abs(e.getTime()-t.getTime());return n<o?r:e})}function La(t){const i=new Date,e=new Date(i);return e.setDate(1),e.setMonth(parseInt(t)+i.getMonth()),e}function ap(t,i,e=0,r=1){if(i>99)throw new Error("The provided year cannot have more than 2 digits.");if(i<0)throw new Error("The provided year cannot be negative.");let n=i+Math.floor(t.getFullYear()/100)*100;return t<new Date(n-50,e,r)?n-=100:t>new Date(n+50,e,r)&&(n+=100),n}function It(t){const i=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(t);if(!i)return;const e=new Date(0,0);return e.setFullYear(parseInt(i[1],10)),e.setMonth(parseInt(i[2],10)-1),e.setDate(parseInt(i[3],10)),e}function lp(t){const i=(l,u="00")=>(u+l).substr((u+l).length-u.length);let e="",r="0000",n=t.year;n<0?(n=-n,e="-",r="000000"):t.year>=1e4&&(e="+",r="000000");const o=e+i(n,r),s=i(t.month+1),a=i(t.day);return[o,s,a].join("-")}function up(t){return t instanceof Date?lp({year:t.getFullYear(),month:t.getMonth(),day:t.getDate()}):""}/**
2956
+ @license
2957
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2958
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2959
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2960
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2961
+ Code distributed by Google as part of the polymer project is also
2962
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2963
+ */class Ei{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(i,e){this._asyncModule=i,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,Xt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Xt.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}static debounce(i,e,r){return i instanceof Ei?i._cancelAsync():i=new Ei,i.setConfig(e,r),i}}let Xt=new Set;const cp=function(t){Xt.add(t)},dp=function(){const t=!!Xt.size;return Xt.forEach(i=>{try{i.flush()}catch(e){setTimeout(()=>{throw e})}}),t};/**
2964
+ @license
2965
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2966
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2967
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2968
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2969
+ Code distributed by Google as part of the polymer project is also
2970
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2971
+ */const mn=function(){let t,i;do t=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),i=dp();while(t||i)};/**
2972
+ * @license
2973
+ * Copyright (c) 2016 - 2024 Vaadin Ltd.
2974
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2975
+ */const $a=document.createElement("template");$a.innerHTML=`
2976
+ <style>
2977
+ :host {
2978
+ display: block;
2979
+ overflow: hidden;
2980
+ height: 500px;
2981
+ }
2982
+
2983
+ #scroller {
2984
+ position: relative;
2985
+ height: 100%;
2986
+ overflow: auto;
2987
+ outline: none;
2988
+ margin-right: -40px;
2989
+ -webkit-overflow-scrolling: touch;
2990
+ overflow-x: hidden;
2991
+ }
2992
+
2993
+ #scroller.notouchscroll {
2994
+ -webkit-overflow-scrolling: auto;
2995
+ }
2996
+
2997
+ #scroller::-webkit-scrollbar {
2998
+ display: none;
2999
+ }
3000
+
3001
+ .buffer {
3002
+ position: absolute;
3003
+ width: var(--vaadin-infinite-scroller-buffer-width, 100%);
3004
+ box-sizing: border-box;
3005
+ padding-right: 40px;
3006
+ top: var(--vaadin-infinite-scroller-buffer-offset, 0);
3007
+ animation: fadein 0.2s;
3008
+ }
3009
+
3010
+ @keyframes fadein {
3011
+ from {
3012
+ opacity: 0;
3013
+ }
3014
+ to {
3015
+ opacity: 1;
3016
+ }
3017
+ }
3018
+ </style>
3019
+
3020
+ <div id="scroller" tabindex="-1">
3021
+ <div class="buffer"></div>
3022
+ <div class="buffer"></div>
3023
+ <div id="fullHeight"></div>
3024
+ </div>
3025
+ `;class Ba extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild($a.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(i){i&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const i=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),e="background-position";this.$.fullHeight.style.setProperty(e,i);const r=getComputedStyle(this.$.fullHeight).getPropertyValue(e);this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(r)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(i){this._preventScrollEvent=!0,i>this._firstIndex&&i<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(i-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~i,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=i%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout(()=>{this.$.scroller.classList.remove("notouchscroll")},10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach(i=>{this.$[i.id]=i}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`)}disconnectedCallback(){this._debouncerScrollFinish&&this._debouncerScrollFinish.cancel(),this._debouncerUpdateClones&&this._debouncerUpdateClones.cancel(),this.__pendingFinishInit&&cancelAnimationFrame(this.__pendingFinishInit)}forceUpdate(){this._debouncerScrollFinish&&this._debouncerScrollFinish.flush(),this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel()),mn()}_createElement(){}_updateElement(i,e){}_finishInit(){this._initDone||(this._buffers.forEach(i=>{[...i.children].forEach(e=>{this._ensureStampedInstance(e._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(i){const e=i?1:0;this._buffers[e].translateY=this._buffers[e?0:1].translateY+this._bufferHeight*(e?-1:1),this._buffers[e].style.transform=`translate3d(0, ${this._buffers[e].translateY}px, 0)`,this._buffers[e].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const i=this.$.scroller.scrollTop;(i<this._bufferHeight||i>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const e=this.itemHeight+this.bufferOffset,r=i>this._buffers[1].translateY+e,n=i<this._buffers[0].translateY+e;(r||n)&&(this._translateBuffer(n),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=_t.debounce(this._debouncerScrollFinish,xi.after(200),()=>{const o=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],o)&&!this._isVisible(this._buffers[1],o)&&(this.position=this.position)})}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach(i=>{i.style.transform=`translate3d(0, ${i.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=_t.debounce(this._debouncerUpdateClones,xi.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const i=this.getBoundingClientRect();this._buffers.forEach(e=>{for(let r=0;r<this.bufferSize;r++){const n=document.createElement("div");n.style.height=`${this.itemHeight}px`,n.instance={};const o=`vaadin-infinite-scroller-item-content-${Ta()}`,s=document.createElement("slot");s.setAttribute("name",o),s._itemWrapper=n,e.appendChild(s),n.setAttribute("slot",o),this.appendChild(n),this._isVisible(n,i)&&this._ensureStampedInstance(n)}}),this.__pendingFinishInit=requestAnimationFrame(()=>{this._finishInit(),this.__pendingFinishInit=null})}_ensureStampedInstance(i){if(i.firstElementChild)return;const e=i.instance;i.instance=this._createElement(),i.appendChild(i.instance),i.instance.performUpdate&&i.instance.performUpdate(),Object.keys(e).forEach(r=>{i.instance[r]=e[r]})}_updateClones(i){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const e=i?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((r,n)=>{if(!r.updated){const o=this._firstIndex+this.bufferSize*n;[...r.children].forEach((s,a)=>{const l=s._itemWrapper;(!i||this._isVisible(l,e))&&this._updateElement(l.instance,o+a)}),r.updated=!0}})}_isVisible(i,e){const r=i.getBoundingClientRect();return r.bottom>e.top&&r.top<e.bottom}}/**
3026
+ * @license
3027
+ * Copyright (c) 2016 - 2024 Vaadin Ltd.
3028
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3029
+ */const Fa=document.createElement("template");Fa.innerHTML=`
3030
+ <style>
3031
+ :host {
3032
+ --vaadin-infinite-scroller-item-height: 270px;
3033
+ position: absolute;
3034
+ top: 0;
3035
+ left: 0;
3036
+ right: 0;
3037
+ bottom: 0;
3038
+ height: 100%;
3039
+ }
3040
+ </style>
3041
+ `;class hp extends Ba{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(Fa.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(i,e){i.month=La(e)}}Te(hp);/**
3042
+ * @license
3043
+ * Copyright (c) 2016 - 2024 Vaadin Ltd.
3044
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3045
+ */const Ra=document.createElement("template");Ra.innerHTML=`
3046
+ <style>
3047
+ :host {
3048
+ --vaadin-infinite-scroller-item-height: 80px;
3049
+ width: 50px;
3050
+ display: block;
3051
+ height: 100%;
3052
+ position: absolute;
3053
+ right: 0;
3054
+ transform: translateX(100%);
3055
+ -webkit-tap-highlight-color: transparent;
3056
+ -webkit-user-select: none;
3057
+ -moz-user-select: none;
3058
+ user-select: none;
3059
+ /* Center the year scroller position. */
3060
+ --vaadin-infinite-scroller-buffer-offset: 50%;
3061
+ }
3062
+
3063
+ :host::before {
3064
+ content: '';
3065
+ display: block;
3066
+ background: transparent;
3067
+ width: 0;
3068
+ height: 0;
3069
+ position: absolute;
3070
+ left: 0;
3071
+ top: 50%;
3072
+ transform: translateY(-50%);
3073
+ border-width: 6px;
3074
+ border-style: solid;
3075
+ border-color: transparent;
3076
+ border-left-color: #000;
3077
+ }
3078
+ </style>
3079
+ `;class fp extends Ba{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(Ra.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(i,e){i.year=this._yearAfterXYears(e)}_yearAfterXYears(i){const e=new Date,r=new Date(e);return r.setFullYear(parseInt(i)+e.getFullYear()),r.getFullYear()}}Te(fp);/**
3080
+ * @license
3081
+ * Copyright (c) 2016 - 2024 Vaadin Ltd.
3082
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3083
+ */const pp=t=>class extends t{static get properties(){return{year:{type:String,sync:!0},selectedDate:{type:Object,sync:!0}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(e,r){this.toggleAttribute("selected",r&&r.getFullYear()===e),this.toggleAttribute("current",e===new Date().getFullYear())}};/**
3084
+ * @license
3085
+ * Copyright (c) 2016 - 2024 Vaadin Ltd.
3086
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3087
+ */class mp extends Xe(pp(Fe)){static get is(){return"vaadin-date-picker-year"}static get template(){return Je`
3088
+ <style>
3089
+ :host {
3090
+ display: block;
3091
+ height: 100%;
3092
+ }
3093
+ </style>
3094
+ <div part="year-number">[[year]]</div>
3095
+ <div part="year-separator" aria-hidden="true"></div>
3096
+ `}}Te(mp);/**
3097
+ @license
3098
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3099
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
3100
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3101
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3102
+ Code distributed by Google as part of the polymer project is also
3103
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3104
+ */function _n(t,i,e,r,n){let o;n&&(o=typeof e=="object"&&e!==null,o&&(r=t.__dataTemp[i]));let s=r!==e&&(r===r||e===e);return o&&s&&(t.__dataTemp[i]=e),s}const gn=ee(t=>{class i extends t{_shouldPropertyChange(r,n,o){return _n(this,r,n,o,!0)}}return i}),_p=ee(t=>{class i extends t{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(r,n,o){return _n(this,r,n,o,this.mutableData)}}return i});gn._mutablePropertyChange=_n;/**
3105
+ @license
3106
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3107
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
3108
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3109
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3110
+ Code distributed by Google as part of the polymer project is also
3111
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3112
+ */let jr=null;function Vr(){return jr}Vr.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Vr,writable:!0}});const za=on(Vr),gp=gn(za);function bp(t,i){jr=t,Object.setPrototypeOf(t,i.prototype),new i,jr=null}const yp=on(class{});function vp(t,i){for(let e=0;e<i.length;e++){let r=i[e];if(!!t!=!!r.__hideTemplateChildren__)if(r.nodeType===Node.TEXT_NODE)t?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textContent=r.__polymerTextContent__;else if(r.localName==="slot")if(t)r.__polymerReplaced__=document.createComment("hidden-slot"),ne(ne(r).parentNode).replaceChild(r.__polymerReplaced__,r);else{const n=r.__polymerReplaced__;n&&ne(ne(n).parentNode).replaceChild(r,n)}else r.style&&(t?(r.__polymerDisplay__=r.style.display,r.style.display="none"):r.style.display=r.__polymerDisplay__);r.__hideTemplateChildren__=t,r._showHideChildren&&r._showHideChildren(t)}}class Re extends yp{constructor(i){super(),this._configureProperties(i),this.root=this._stampTemplate(this.__dataHost);let e=[];this.children=e;for(let n=this.root.firstChild;n;n=n.nextSibling)e.push(n),n.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let r=this.__templatizeOptions;(i&&r.instanceProps||!r.instanceProps)&&this._enableProperties()}_configureProperties(i){if(this.__templatizeOptions.forwardHostProp)for(let r in this.__hostProps)this._setPendingProperty(r,this.__dataHost["_host_"+r]);for(let r in i)this._setPendingProperty(r,i[r])}forwardHostProp(i,e){this._setPendingPropertyOrPath(i,e,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(i,e,r){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(i,e,n=>{n.model=this,r(n)});else{let n=this.__dataHost.__dataHost;n&&n._addEventListenerToNode(i,e,r)}}_showHideChildren(i){vp(i,this.children)}_setUnmanagedPropertyToNode(i,e,r){i.__hideTemplateChildren__&&i.nodeType==Node.TEXT_NODE&&e=="textContent"?i.__polymerTextContent__=r:super._setUnmanagedPropertyToNode(i,e,r)}get parentModel(){let i=this.__parentModel;if(!i){let e;i=this;do i=i.__dataHost.__dataHost;while((e=i.__templatizeOptions)&&!e.parentModel);this.__parentModel=i}return i}dispatchEvent(i){return!0}}Re.prototype.__dataHost;Re.prototype.__templatizeOptions;Re.prototype._methodHost;Re.prototype.__templatizeOwner;Re.prototype.__hostProps;const xp=gn(Re);function Oo(t){let i=t.__dataHost;return i&&i._methodHost||i}function wp(t,i,e){let r=e.mutableData?xp:Re;Yr.mixin&&(r=Yr.mixin(r));let n=class extends r{};return n.prototype.__templatizeOptions=e,n.prototype._bindTemplate(t),Ap(n,t,i,e),n}function Ep(t,i,e,r){let n=e.forwardHostProp;if(n&&i.hasHostProps){const o=t.localName=="template";let s=i.templatizeTemplateClass;if(!s){if(o){let l=e.mutableData?gp:za;class u extends l{}s=i.templatizeTemplateClass=u}else{const l=t.constructor;class u extends l{}s=i.templatizeTemplateClass=u}let a=i.hostProps;for(let l in a)s.prototype._addPropertyEffect("_host_"+l,s.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:Sp(l,n)}),s.prototype._createNotifyingProperty("_host_"+l);Gs&&r&&Pp(i,e,r)}if(t.__dataProto&&Object.assign(t.__data,t.__dataProto),o)bp(t,s),t.__dataTemp={},t.__dataPending=null,t.__dataOld=null,t._enableProperties();else{Object.setPrototypeOf(t,s.prototype);const a=i.hostProps;for(let l in a)if(l="_host_"+l,l in t){const u=t[l];delete t[l],t.__data[l]=u}}}}function Sp(t,i){return function(r,n,o){i.call(r.__templatizeOwner,n.substring(6),o[n])}}function Ap(t,i,e,r){let n=e.hostProps||{};for(let o in r.instanceProps){delete n[o];let s=r.notifyInstanceProp;s&&t.prototype._addPropertyEffect(o,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Cp(o,s)})}if(r.forwardHostProp&&i.__dataHost)for(let o in n)e.hasHostProps||(e.hasHostProps=!0),t.prototype._addPropertyEffect(o,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Tp()})}function Cp(t,i){return function(r,n,o){i.call(r.__templatizeOwner,r,n,o[n])}}function Tp(){return function(i,e,r){i.__dataHost._setPendingPropertyOrPath("_host_"+e,r[e],!0,!0)}}function Yr(t,i,e){if(yi&&!Oo(t))throw new Error("strictTemplatePolicy: template owner not trusted");if(e=e||{},t.__templatizeOwner)throw new Error("A <template> can only be templatized once");t.__templatizeOwner=i;let n=(i?i.constructor:Re)._parseTemplate(t),o=n.templatizeInstanceClass;o||(o=wp(t,n,e),n.templatizeInstanceClass=o);const s=Oo(t);Ep(t,n,e,s);let a=class extends o{};return a.prototype._methodHost=s,a.prototype.__dataHost=t,a.prototype.__templatizeOwner=i,a.prototype.__hostProps=n.hostProps,a=a,a}function Pp(t,i,e){const r=e.constructor._properties,{propertyEffects:n}=t,{instanceProps:o}=i;for(let s in n)if(!r[s]&&!(o&&o[s])){const a=n[s];for(let l=0;l<a.length;l++){const{part:u}=a[l].info;if(!(u.signature&&u.signature.static)){console.warn(`Property '${s}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function Dp(t,i){let e;for(;i;)if(e=i.__dataHost?i:i.__templatizeInstance)if(e.__dataHost!=t)i=e.__dataHost;else return e;else i=ne(i).parentNode;return null}/**
3113
+ @license
3114
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3115
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
3116
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3117
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3118
+ Code distributed by Google as part of the polymer project is also
3119
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3120
+ */let Mo=!1;function kp(){if(Ys&&!Vs){if(!Mo){Mo=!0;const t=document.createElement("style");t.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(t)}return!0}return!1}/**
3121
+ @license
3122
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3123
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
3124
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3125
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3126
+ Code distributed by Google as part of the polymer project is also
3127
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3128
+ */const Op=_p(Fe);class Io extends Op{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!no,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let i=0;i<this.__instances.length;i++)this.__detachInstance(i);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),kp()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let i=ne(ne(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,i);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const i=this;let e=this.template=i._templateInfo?i:this.querySelector("template");if(!e){let n=new MutationObserver(()=>{if(this.querySelector("template"))n.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return n.observe(this,{childList:!0}),!1}let r={};r[this.as]=!0,r[this.indexAs]=!0,r[this.itemsIndexAs]=!0,this.__ctor=Yr(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:r,forwardHostProp:function(n,o){let s=this.__instances;for(let a=0,l;a<s.length&&(l=s[a]);a++)l.forwardHostProp(n,o)},notifyInstanceProp:function(n,o,s){if(Nd(this.as,o)){let a=n[this.itemsIndexAs];o==this.as&&(this.items[a]=s);let l=Gt(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,o);this.notifyPath(l,s)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(i){if(typeof i=="string"){let e=i,r=this.__getMethodHost();return function(){return r[e].apply(r,arguments)}}return i}__sortChanged(i){this.__sortFn=this.__functionFromPropertyValue(i),this.items&&this.__debounceRender(this.__render)}__filterChanged(i){this.__filterFn=this.__functionFromPropertyValue(i),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(i){return Math.ceil(1e3/i)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(i){if(this.__sortFn||this.__filterFn){if(!i)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let e=this.__observePaths;for(let r=0;r<e.length;r++)i.indexOf(e[r])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(i){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(i.path,i.value)||(i.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(i,e=0){this.__renderDebouncer=Ei.debounce(this.__renderDebouncer,e>0?Rd.after(e):ia,i.bind(this)),cp(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),mn()}__render(){if(!this.__ensureTemplatized())return;let i=this.items||[];const e=this.__sortAndFilterItems(i),r=this.__calculateLimit(e.length);this.__updateInstances(i,r,e),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!no||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(i){let e=new Array(i.length);for(let r=0;r<i.length;r++)e[r]=r;return this.__filterFn&&(e=e.filter((r,n,o)=>this.__filterFn(i[r],n,o))),this.__sortFn&&e.sort((r,n)=>this.__sortFn(i[r],i[n])),e}__calculateLimit(i){let e=i;const r=this.__instances.length;if(this.initialCount){let n;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(i,this.initialCount),n=Math.max(e-r,0),this.__chunkCount=n||1):(n=Math.min(Math.max(i-r,0),this.__chunkCount),e=Math.min(r+n,i)),this.__shouldMeasureChunk=n===this.__chunkCount,this.__shouldContinueChunking=e<i,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,e}__continueChunking(){if(this.__shouldMeasureChunk){const i=performance.now()-this.__renderStartTime,e=this._targetFrameTime/i;this.__chunkCount=Math.round(this.__chunkCount*e)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(i,e,r){const n=this.__itemsIdxToInstIdx={};let o;for(o=0;o<e;o++){let s=this.__instances[o],a=r[o],l=i[a];n[a]=o,s?(s._setPendingProperty(this.as,l),s._setPendingProperty(this.indexAs,o),s._setPendingProperty(this.itemsIndexAs,a),s._flushProperties()):this.__insertInstance(l,o,a)}for(let s=this.__instances.length-1;s>=o;s--)this.__detachAndRemoveInstance(s)}__detachInstance(i){let e=this.__instances[i];const r=ne(e.root);for(let n=0;n<e.children.length;n++){let o=e.children[n];r.appendChild(o)}return e}__attachInstance(i,e){let r=this.__instances[i];e.insertBefore(r.root,this)}__detachAndRemoveInstance(i){this.__detachInstance(i),this.__instances.splice(i,1)}__stampInstance(i,e,r){let n={};return n[this.as]=i,n[this.indexAs]=e,n[this.itemsIndexAs]=r,new this.__ctor(n)}__insertInstance(i,e,r){const n=this.__stampInstance(i,e,r);let o=this.__instances[e+1],s=o?o.children[0]:this;return ne(ne(this).parentNode).insertBefore(n.root,s),this.__instances[e]=n,n}_showHideChildren(i){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(i)}__handleItemPath(i,e){let r=i.slice(6),n=r.indexOf("."),o=n<0?r:r.substring(0,n);if(o==parseInt(o,10)){let s=n<0?"":r.substring(n+1);this.__handleObservedPaths(s);let a=this.__itemsIdxToInstIdx[o],l=this.__instances[a];if(l){let u=this.as+(s?"."+s:"");l._setPendingPropertyOrPath(u,e,!1,!0),l._flushProperties()}return!0}}itemForElement(i){let e=this.modelForElement(i);return e&&e[this.as]}indexForElement(i){let e=this.modelForElement(i);return e&&e[this.indexAs]}modelForElement(i){return Dp(this.template,i)}}customElements.define(Io.is,Io);/**
3129
+ * @license
3130
+ * Copyright (c) 2016 - 2024 Vaadin Ltd.
3131
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3132
+ */const Mp=t=>class extends fn(t){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},isDateDisabled:{type:Function,value:()=>!1},enteredDate:{type:Date},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean},__hasFocus:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find(e=>ve(e.date,this.focusedDate))}ready(){super.ready(),Ae(this.$.monthGrid,"tap",this._handleTap.bind(this))}_setFocused(e){super._setFocused(e),this.__hasFocus=e}_isDisabled(e,r,n){const o=new Date(0,0);o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(1);const s=new Date(0,0);return s.setFullYear(e.getFullYear()),s.setMonth(e.getMonth()+1),s.setDate(0),r&&n&&r.getMonth()===n.getMonth()&&r.getMonth()===e.getMonth()&&n.getDate()-r.getDate()>=0?!1:!gt(o,r,n)&&!gt(s,r,n)}_getTitle(e,r){if(!(e===void 0||r===void 0))return r.formatTitle(r.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,r){e.setDate(e.getDate()+r)}_applyFirstDayOfWeek(e,r){if(!(e===void 0||r===void 0))return e.slice(r).concat(e.slice(0,r))}_getWeekDayNames(e,r){if(e===void 0||r===void 0)return[];const{weekdays:n,weekdaysShort:o,firstDayOfWeek:s}=e,a=this._applyFirstDayOfWeek(o,s);return this._applyFirstDayOfWeek(n,s).map((u,c)=>({weekDay:u,weekDayShort:a[c]})).slice(0,7)}__focusedDateChanged(e,r){Array.isArray(r)&&r.some(n=>ve(n,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,r){return e&&r&&r.firstDayOfWeek===1}_isToday(e){return ve(new Date,e)}_getDays(e,r){if(e===void 0||r===void 0)return[];const n=new Date(0,0);for(n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()),n.setDate(1);n.getDay()!==r.firstDayOfWeek;)this._dateAdd(n,-1);const o=[],s=n.getMonth(),a=e.getMonth();for(;n.getMonth()===a||n.getMonth()===s;)o.push(n.getMonth()===a?new Date(n.getTime()):null),this._dateAdd(n,1);return o}_getWeeks(e){return e.reduce((r,n,o)=>(o%7===0&&r.push([]),r[r.length-1].push(n),r),[])}_handleTap(e){!this.ignoreTaps&&!this._notTapping&&e.target.date&&!e.target.hasAttribute("disabled")&&(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})))}_preventDefault(e){e.preventDefault()}__getWeekNumber(e){const r=e.reduce((n,o)=>!n&&o?o:n);return sp(r)}__getDayAriaLabel(e){if(!e)return"";let r=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(r+=`, ${this.i18n.today}`),r}};/**
3133
+ * @license
3134
+ * Copyright (c) 2016 - 2024 Vaadin Ltd.
3135
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3136
+ */const Ip=$`
3137
+ :host {
3138
+ display: block;
3139
+ }
3140
+
3141
+ #monthGrid {
3142
+ width: 100%;
3143
+ border-collapse: collapse;
3144
+ }
3145
+
3146
+ #days-container tr,
3147
+ #weekdays-container tr {
3148
+ display: flex;
3149
+ }
3150
+
3151
+ [part~='date'] {
3152
+ outline: none;
3153
+ }
3154
+
3155
+ [part~='disabled'] {
3156
+ pointer-events: none;
3157
+ }
3158
+
3159
+ [part='week-number'][hidden],
3160
+ [part='weekday'][hidden] {
3161
+ display: none;
3162
+ }
3163
+
3164
+ [part='weekday'],
3165
+ [part~='date'] {
3166
+ width: calc(100% / 7);
3167
+ padding: 0;
3168
+ font-weight: normal;
3169
+ }
3170
+
3171
+ [part='weekday']:empty,
3172
+ [part='week-number'] {
3173
+ width: 12.5%;
3174
+ flex-shrink: 0;
3175
+ padding: 0;
3176
+ }
3177
+
3178
+ :host([week-numbers]) [part='weekday']:not(:empty),
3179
+ :host([week-numbers]) [part~='date'] {
3180
+ width: 12.5%;
3181
+ }
3182
+
3183
+ @media (forced-colors: active) {
3184
+ [part~='date'][part~='focused'] {
3185
+ outline: 1px solid;
3186
+ }
3187
+
3188
+ [part~='date'][part~='selected'] {
3189
+ outline: 3px solid;
3190
+ }
3191
+ }
3192
+ `;/**
3193
+ * @license
3194
+ * Copyright (c) 2016 - 2024 Vaadin Ltd.
3195
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3196
+ */J("vaadin-month-calendar",Ip,{moduleId:"vaadin-month-calendar-styles"});class Np extends Mp(Xe(Fe)){static get template(){return Je`
3197
+ <div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
3198
+ <table
3199
+ id="monthGrid"
3200
+ role="grid"
3201
+ aria-labelledby="month-header"
3202
+ on-touchend="_preventDefault"
3203
+ on-touchstart="_onMonthGridTouchStart"
3204
+ >
3205
+ <thead id="weekdays-container">
3206
+ <tr role="row" part="weekdays">
3207
+ <th part="weekday" aria-hidden="true" hidden$="[[!_showWeekSeparator(showWeekNumbers, i18n)]]"></th>
3208
+ <template is="dom-repeat" items="[[_getWeekDayNames(i18n, showWeekNumbers)]]">
3209
+ <th role="columnheader" part="weekday" scope="col" abbr$="[[item.weekDay]]" aria-hidden="true">
3210
+ [[item.weekDayShort]]
3211
+ </th>
3212
+ </template>
3213
+ </tr>
3214
+ </thead>
3215
+ <tbody id="days-container">
3216
+ <template is="dom-repeat" items="[[_weeks]]" as="week">
3217
+ <tr role="row">
3218
+ <td part="week-number" aria-hidden="true" hidden$="[[!_showWeekSeparator(showWeekNumbers, i18n)]]">
3219
+ [[__getWeekNumber(week)]]
3220
+ </td>
3221
+ <template is="dom-repeat" items="[[week]]">
3222
+ <td
3223
+ role="gridcell"
3224
+ part$="[[__getDatePart(item, focusedDate, selectedDate, minDate, maxDate, isDateDisabled, enteredDate, __hasFocus)]]"
3225
+ date="[[item]]"
3226
+ tabindex$="[[__getDayTabindex(item, focusedDate)]]"
3227
+ disabled$="[[__isDayDisabled(item, minDate, maxDate, isDateDisabled)]]"
3228
+ aria-selected$="[[__getDayAriaSelected(item, selectedDate)]]"
3229
+ aria-disabled$="[[__getDayAriaDisabled(item, minDate, maxDate, isDateDisabled)]]"
3230
+ aria-label$="[[__getDayAriaLabel(item)]]"
3231
+ >[[_getDate(item)]]</td
3232
+ >
3233
+ </template>
3234
+ </tr>
3235
+ </template>
3236
+ </tbody>
3237
+ </table>
3238
+ `}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate, isDateDisabled)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(i,e){i&&e&&e.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(i,e,r,n,o,s,a,l){const u=["date"],c=i>Ur(new Date),d=i<Ur(new Date);return this.__isDayDisabled(i,n,o,s)&&u.push("disabled"),ve(i,e)&&(l||ve(i,a))&&u.push("focused"),this.__isDaySelected(i,r)&&u.push("selected"),this._isToday(i)&&u.push("today"),d&&u.push("past"),c&&u.push("future"),u.join(" ")}__isDaySelected(i,e){return ve(i,e)}__getDayAriaSelected(i,e){if(this.__isDaySelected(i,e))return"true"}__isDayDisabled(i,e,r,n){return!gt(i,e,r,n)}__getDayAriaDisabled(i,e,r,n){if(!(i===void 0||e===void 0&&r===void 0&&n===void 0)&&this.__isDayDisabled(i,e,r,n))return"true"}__getDayTabindex(i,e){return ve(i,e)?"0":"-1"}}Te(Np);/**
3239
+ * @license
3240
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
3241
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3242
+ */class Ua{constructor(i,e){this.query=i,this.callback=e,this._boundQueryHandler=this._queryHandler.bind(this)}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery)}hostDisconnected(){this._removeListener()}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler)}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null}_queryHandler(i){typeof this.callback=="function"&&this.callback(i.matches)}}/**
3243
+ * @license
3244
+ * Copyright (c) 2016 - 2024 Vaadin Ltd.
3245
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3246
+ */const Hp=t=>class extends t{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged",sync:!0},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},isDateDisabled:{type:Function},enteredDate:{type:Date,sync:!0},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled, enteredDate)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){Ma(this.$.scrollers,"pan-y"),Ae(this.$.scrollers,"track",this._track.bind(this)),Ae(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Ae(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Ae(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Ua(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new Ve(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",r=>this.__onTodayButtonKeyDown(r)),Ae(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new Ve(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",r=>this.__onCancelButtonKeyDown(r)),Ae(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,r){const n=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+n,r),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new Ve(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",r=>{this.__onMonthCalendarKeyDown(r)}),e.addEventListener("init-done",()=>{const r=[...this.querySelectorAll("vaadin-month-calendar")];r.forEach(n=>{n.addEventListener("selected-date-changed",o=>{this.selectedDate=o.detail.value})}),this.calendars=r}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new Ve(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),Ae(e,"tap",r=>{this._onYearTap(r)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,r){e&&(e.textContent=r&&r.cancel)}__updateTodayButton(e,r,n,o,s){e&&(e.textContent=r&&r.today,e.disabled=!this._isTodayAllowed(n,o,s))}__updateCalendars(e,r,n,o,s,a,l,u,c,d,h){e&&e.length&&e.forEach(f=>{f.i18n=r,f.minDate=n,f.maxDate=o,f.isDateDisabled=d,f.focusedDate=a,f.selectedDate=s,f.showWeekNumbers=l,f.ignoreTaps=u,f.enteredDate=h,c?f.setAttribute("theme",c):f.removeAttribute("theme")})}__updateYears(e,r,n){e&&e.length&&e.forEach(o=>{o.selectedDate=r,n?o.setAttribute("theme",n):o.removeAttribute("theme")})}_selectDate(e){return this._dateAllowed(e)?(this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,r=!0){if(!e)return;const n=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const u=this._calculateWeekScrollOffset(e);this._scrollToPosition(n+u,r);return}const o=this._monthScroller.position>n,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<n;o?this._scrollToPosition(n,r):l&&this._scrollToPosition(n-a+1,r)}_calculateWeekScrollOffset(e){const r=new Date(0,0);r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);let n=0;for(;r.getDate()<e.getDate();)r.setDate(r.getDate()+1),r.getDay()===this.i18n.firstDayOfWeek&&(n+=1);return n/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=_t.debounce(this._debouncer,xi.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,r,n){return e&&r&&typeof r.formatDate=="function"?r.formatDate(pn(e)):n}_onTodayTap(){const e=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const n=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+n*12,!0)}}_scrollToPosition(e,r){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!r){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let n;this._revealPromise=new Promise(u=>{n=u});const o=(u,c,d,h)=>(u/=h/2,u<1?d/2*u*u+c:(u-=1,-d/2*(u*(u-2)-1)+c));let s=0;const a=this._monthScroller.position,l=u=>{s||(s=u);const c=u-s;if(c<this.scrollDuration){const d=o(c,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=d,window.requestAnimationFrame(l)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:a}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,n(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(e,r){return Math.min(r.max,Math.max(r.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const r=this._translateX+e.detail.ddx;this._translateX=this._limit(r,{min:0,max:this._yearScrollerWidth})}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return La(e).getFullYear()}_differenceInMonths(e,r){return(e.getFullYear()-r.getFullYear())*12-r.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){ve(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let r=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),r=!0;break;case"ArrowUp":this._moveFocusByDays(-7),r=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),r=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),r=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),r=!0);break;case" ":this.__toggleDate(this.focusedDate),r=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),r=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),r=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),r=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),r=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}r&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,r){switch(e.stopPropagation(),r){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const r=this.focusableDateElement;r&&ve(r.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,r.focus())}}focusDate(e,r){return At(this,null,function*(){const n=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=n,r||(this._focusedMonthDate=n.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return At(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(r=>{ya(this,()=>{mn(),r()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(Ha(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,r,n){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,n):this._dateAllowed(this.focusedDate)?r>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,r){const n=new Date(0,0);return n.setFullYear(this.focusedDate.getFullYear()),n.setMonth(this.focusedDate.getMonth()+e),r&&n.setDate(this.focusedDate.getDate()+r),n}_moveFocusByDays(e){const r=this._getDateDiff(0,e);this._focusAllowedDate(r,e,!1)}_moveFocusByMonths(e){const r=this._getDateDiff(e),n=r.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),r.setDate(this._focusedMonthDate),r.getMonth()!==n&&r.setDate(0),this._focusAllowedDate(r,e,!0)}_moveFocusInsideMonth(e,r){const n=new Date(0,0);n.setFullYear(e.getFullYear()),r==="minDate"?(n.setMonth(e.getMonth()),n.setDate(1)):(n.setMonth(e.getMonth()+1),n.setDate(0)),this._dateAllowed(n)?this.focusDate(n):this._dateAllowed(e)?this.focusDate(this[r]):this._focusClosestDate(e)}_dateAllowed(e,r=this.minDate,n=this.maxDate,o=this.isDateDisabled){return gt(e,r,n,o)}_isTodayAllowed(e,r,n){return this._dateAllowed(this._getTodayMidnight(),e,r,n)}_getTodayMidnight(){const e=new Date,r=new Date(0,0);return r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(e.getDate()),r}};/**
3247
+ * @license
3248
+ * Copyright (c) 2016 - 2024 Vaadin Ltd.
3249
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3250
+ */const Lp=$`
3251
+ :host {
3252
+ display: flex;
3253
+ flex-direction: column;
3254
+ height: 100%;
3255
+ width: 100%;
3256
+ outline: none;
3257
+ }
3258
+
3259
+ [part='overlay-header'] {
3260
+ display: flex;
3261
+ flex-shrink: 0;
3262
+ flex-wrap: nowrap;
3263
+ align-items: center;
3264
+ }
3265
+
3266
+ :host(:not([fullscreen])) [part='overlay-header'] {
3267
+ display: none;
3268
+ }
3269
+
3270
+ [part='label'] {
3271
+ flex-grow: 1;
3272
+ }
3273
+
3274
+ [hidden] {
3275
+ display: none !important;
3276
+ }
3277
+
3278
+ [part='years-toggle-button'] {
3279
+ display: flex;
3280
+ }
3281
+
3282
+ #scrollers {
3283
+ display: flex;
3284
+ height: 100%;
3285
+ width: 100%;
3286
+ position: relative;
3287
+ overflow: hidden;
3288
+ }
3289
+
3290
+ :host([desktop]) ::slotted([slot='months']) {
3291
+ right: 50px;
3292
+ transform: none !important;
3293
+ }
3294
+
3295
+ :host([desktop]) ::slotted([slot='years']) {
3296
+ transform: none !important;
3297
+ }
3298
+
3299
+ :host(.animate) ::slotted([slot='months']),
3300
+ :host(.animate) ::slotted([slot='years']) {
3301
+ transition: all 200ms;
3302
+ }
3303
+
3304
+ [part='toolbar'] {
3305
+ display: flex;
3306
+ justify-content: space-between;
3307
+ z-index: 2;
3308
+ flex-shrink: 0;
3309
+ }
3310
+ `;/**
3311
+ * @license
3312
+ * Copyright (c) 2016 - 2024 Vaadin Ltd.
3313
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3314
+ */J("vaadin-date-picker-overlay-content",Lp,{moduleId:"vaadin-date-picker-overlay-content-styles"});class $p extends Hp(Et(Xe(Oi(Fe)))){static get template(){return Je`
3315
+ <div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
3316
+ <div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
3317
+ <div part="clear-button" hidden$="[[!selectedDate]]"></div>
3318
+ <div part="toggle-button"></div>
3319
+
3320
+ <div part="years-toggle-button" hidden$="[[_desktopMode]]" aria-hidden="true">
3321
+ [[_yearAfterXMonths(_visibleMonthIndex)]]
3322
+ </div>
3323
+ </div>
3324
+
3325
+ <div id="scrollers">
3326
+ <slot name="months"></slot>
3327
+ <slot name="years"></slot>
3328
+ </div>
3329
+
3330
+ <div on-touchend="_preventDefault" role="toolbar" part="toolbar">
3331
+ <slot name="today-button"></slot>
3332
+ <slot name="cancel-button"></slot>
3333
+ </div>
3334
+ `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}Te($p);/**
3335
+ * @license
3336
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
3337
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3338
+ */const ja=ee(t=>class extends fn(Na(t)){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)}});/**
3339
+ * @license
3340
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
3341
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3342
+ */const or=new WeakMap;function Bp(t){return or.has(t)||or.set(t,new Set),or.get(t)}function Fp(t,i){const e=document.createElement("style");e.textContent=t,i===document?document.head.appendChild(e):i.insertBefore(e,i.firstChild)}const Rp=ee(t=>class extends t{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),r=Bp(e);this.slotStyles.forEach(n=>{r.has(n)||(Fp(n,e),r.add(n))})}});/**
3343
+ * @license
3344
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
3345
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3346
+ */const Va=ee(t=>class extends t{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}});/**
3347
+ * @license
3348
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
3349
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3350
+ */const zp=t=>class extends Va(Ni(t)){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(),sf||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}))}};/**
3351
+ * @license
3352
+ * Copyright (c) 2023 - 2024 Vaadin Ltd.
3353
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3354
+ */const sr=new Map;function bn(t){return sr.has(t)||sr.set(t,new WeakMap),sr.get(t)}function Ya(t,i){t&&t.removeAttribute(i)}function Ga(t,i){if(!t||!i)return;const e=bn(i);if(e.has(t))return;const r=ln(t.getAttribute(i));e.set(t,new Set(r))}function Up(t,i){if(!t)return;const e=bn(i),r=e.get(t);!r||r.size===0?t.removeAttribute(i):Ea(t,i,Ii(r)),e.delete(t)}function ar(t,i,e={newId:null,oldId:null,fromUser:!1}){if(!t||!i)return;const{newId:r,oldId:n,fromUser:o}=e,s=bn(i),a=s.get(t);if(!o&&a){n&&a.delete(n),r&&a.add(r);return}o&&(a?r||s.delete(t):Ga(t,i),Ya(t,i)),gf(t,i,n);const l=r||Ii(a);l&&Ea(t,i,l)}function jp(t,i){Ga(t,i),Ya(t,i)}/**
3355
+ * @license
3356
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
3357
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3358
+ */class Vp{constructor(i){this.host=i,this.__required=!1}setTarget(i){this.__target=i,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),this.__labelIdFromUser!=null&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(i){this.__setAriaRequiredAttribute(i),this.__required=i}setAriaLabel(i){this.__setAriaLabelToAttribute(i),this.__label=i}setLabelId(i,e=!1){const r=e?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(i,r,e),e?this.__labelIdFromUser=i:this.__labelId=i}setErrorId(i){this.__setErrorIdToAriaAttribute(i,this.__errorId),this.__errorId=i}setHelperId(i){this.__setHelperIdToAriaAttribute(i,this.__helperId),this.__helperId=i}__setAriaLabelToAttribute(i){this.__target&&(i?(jp(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",i)):this.__label&&(Up(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(i,e,r){ar(this.__target,"aria-labelledby",{newId:i,oldId:e,fromUser:r})}__setErrorIdToAriaAttribute(i,e){ar(this.__target,"aria-describedby",{newId:i,oldId:e,fromUser:!1})}__setHelperIdToAriaAttribute(i,e){ar(this.__target,"aria-describedby",{newId:i,oldId:e,fromUser:!1})}__setAriaRequiredAttribute(i){this.__target&&(["input","textarea"].includes(this.__target.localName)||(i?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
3359
+ * @license
3360
+ * Copyright (c) 2022 - 2024 Vaadin Ltd.
3361
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3362
+ */const we=document.createElement("div");we.style.position="fixed";we.style.clip="rect(0px, 0px, 0px, 0px)";we.setAttribute("aria-live","polite");document.body.appendChild(we);let oi;function Yp(t,i={}){const e=i.mode||"polite",r=i.timeout===void 0?150:i.timeout;e==="alert"?(we.removeAttribute("aria-live"),we.removeAttribute("role"),oi=_t.debounce(oi,If,()=>{we.setAttribute("role","alert")})):(oi&&oi.cancel(),we.removeAttribute("role"),we.setAttribute("aria-live",e)),we.textContent="",setTimeout(()=>{we.textContent=t},r)}/**
3363
+ * @license
3364
+ * Copyright (c) 2022 - 2024 Vaadin Ltd.
3365
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3366
+ */class yn extends Ve{constructor(i,e,r,n={}){super(i,e,r,Zt(St({},n),{useUniqueId:!0}))}initCustomNode(i){this.__updateNodeId(i),this.__notifyChange(i)}teardownNode(i){const e=this.getSlotChild();e&&e!==this.defaultNode?this.__notifyChange(e):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const i=super.attachDefaultNode();return i&&this.__updateNodeId(i),i}restoreDefaultNode(){}updateDefaultNode(i){this.__notifyChange(i)}observeNode(i){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(e=>{e.forEach(r=>{const n=r.target,o=n===this.node;r.type==="attributes"?o&&this.__updateNodeId(n):(o||n.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(i,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(i){return i?i.nodeType===Node.ELEMENT_NODE&&(customElements.get(i.localName)||i.children.length>0)||i.textContent&&i.textContent.trim()!=="":!1}__notifyChange(i){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(i),node:i}}))}__updateNodeId(i){const e=!this.nodes||i===this.nodes[0];i.nodeType===Node.ELEMENT_NODE&&(!this.multiple||e)&&!i.id&&(i.id=this.defaultId)}}/**
3367
+ * @license
3368
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
3369
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3370
+ */class Gp extends yn{constructor(i){super(i,"error-message","div")}setErrorMessage(i){this.errorMessage=i,this.updateDefaultNode(this.node)}setInvalid(i){this.invalid=i,this.updateDefaultNode(this.node)}initAddedNode(i){i!==this.defaultNode&&this.initCustomNode(i)}initNode(i){this.updateDefaultNode(i)}initCustomNode(i){i.textContent&&!this.errorMessage&&(this.errorMessage=i.textContent.trim()),super.initCustomNode(i)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(i){const{errorMessage:e,invalid:r}=this,n=!!(r&&e&&e.trim()!=="");i&&(i.textContent=n?e:"",i.hidden=!n,n&&Yp(e,{mode:"assertive"})),super.updateDefaultNode(i)}}/**
3371
+ * @license
3372
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
3373
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3374
+ */class Wp extends yn{constructor(i){super(i,"helper",null)}setHelperText(i){this.helperText=i,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:i}=this;if(i&&i.trim()!==""){this.tagName="div";const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(i){i&&(i.textContent=this.helperText),super.updateDefaultNode(i)}initCustomNode(i){super.initCustomNode(i),this.observeNode(i)}}/**
3375
+ * @license
3376
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
3377
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3378
+ */class qp extends yn{constructor(i){super(i,"label","label")}setLabel(i){this.label=i,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:i}=this;if(i&&i.trim()!==""){const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(i){i&&(i.textContent=this.label),super.updateDefaultNode(i)}initCustomNode(i){super.initCustomNode(i),this.observeNode(i)}}/**
3379
+ * @license
3380
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
3381
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3382
+ */const Xp=ee(t=>class extends Et(t){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new qp(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)}});/**
3383
+ * @license
3384
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
3385
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3386
+ */const Wa=ee(t=>class extends t{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()}});/**
3387
+ * @license
3388
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
3389
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3390
+ */const Kp=t=>class extends Wa(Xp(Et(t))){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 Vp(this),this._helperController=new Wp(this),this._errorController=new Gp(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:n}=e.detail;this.__labelChanged(r,n)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:r,node:n}=e.detail;this.toggleAttribute("has-helper",r),this.__helperChanged(r,n)})}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)})}};/**
3391
+ * @license
3392
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
3393
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3394
+ */const Jp=ee(t=>class extends t{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e])})}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach((r,n)=>{this._delegateAttribute(r,e[n])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((r,n)=>{this._delegateProperty(r,e[n])})}_delegateAttribute(e,r){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",r?"true":!1),typeof r=="boolean"?this.stateTarget.toggleAttribute(e,r):r?this.stateTarget.setAttribute(e,r):this.stateTarget.removeAttribute(e))}_delegateProperty(e,r){this.stateTarget&&(this.stateTarget[e]=r)}});/**
3395
+ * @license
3396
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
3397
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3398
+ */const qa=ee(t=>class extends Jp(Wa(Va(t))){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 n=this._hasValidConstraints(r),o=this.__previousHasConstraints&&!n;(this._hasValue||this.invalid)&&n?this._requestValidation():o&&!this.manualValidation&&this._setInvalid(!1),this.__previousHasConstraints=n}_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}});/**
3399
+ * @license
3400
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
3401
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3402
+ */const Zp=t=>class extends Rp(ja(qa(Kp(zp(Ni(t)))))){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[`
3403
+ :is(input[slot='input'], textarea[slot='textarea'])::placeholder {
3404
+ font: inherit;
3405
+ color: inherit;
3406
+ }
3407
+ `]}_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=_t.debounce(this._preventInputDebouncer,xi.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)}}};/**
3408
+ * @license
3409
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
3410
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3411
+ */class Qp extends Ve{constructor(i,e,r={}){const{uniqueIdPrefix:n}=r;super(i,"input","input",{initializer:(o,s)=>{s.value&&(o.value=s.value),s.type&&o.setAttribute("type",s.type),o.id=this.defaultId,typeof e=="function"&&e(o)},useUniqueId:!0,uniqueIdPrefix:n})}}/**
3412
+ * @license
3413
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
3414
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3415
+ */class em{constructor(i,e){this.input=i,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),e.addEventListener("slot-content-changed",r=>{this.__initLabel(r.detail.node)}),this.__initLabel(e.node)}__initLabel(i){i&&(i.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&i.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const i=e=>{e.stopImmediatePropagation(),this.input.removeEventListener("click",i)};this.input.addEventListener("click",i)}}/**
3416
+ * @license
3417
+ * Copyright (c) 2021 - 2024 Vaadin Ltd..
3418
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3419
+ */const tm=$`
3420
+ [part='clear-button'] {
3421
+ display: none;
3422
+ cursor: default;
3423
+ }
3424
+
3425
+ [part='clear-button']::before {
3426
+ content: '\\2715';
3427
+ }
3428
+
3429
+ :host([clear-button-visible][has-value]:not([disabled]):not([readonly])) [part='clear-button'] {
3430
+ display: block;
3431
+ }
3432
+ `;/**
3433
+ * @license
3434
+ * Copyright (c) 2021 - 2024 Vaadin Ltd..
3435
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3436
+ */const im=$`
3437
+ :host {
3438
+ display: inline-flex;
3439
+ outline: none;
3440
+ }
3441
+
3442
+ :host::before {
3443
+ content: '\\2003';
3444
+ width: 0;
3445
+ display: inline-block;
3446
+ /* Size and position this element on the same vertical position as the input-field element
3447
+ to make vertical align for the host element work as expected */
3448
+ }
3449
+
3450
+ :host([hidden]) {
3451
+ display: none !important;
3452
+ }
3453
+
3454
+ :host(:not([has-label])) [part='label'] {
3455
+ display: none;
3456
+ }
3457
+
3458
+ @media (forced-colors: active) {
3459
+ :host(:not([readonly])) [part='input-field'] {
3460
+ outline: 1px solid;
3461
+ outline-offset: -1px;
3462
+ }
3463
+ :host([focused]) [part='input-field'] {
3464
+ outline-width: 2px;
3465
+ }
3466
+ :host([disabled]) [part='input-field'] {
3467
+ outline-color: GrayText;
3468
+ }
3469
+ }
3470
+ `;/**
3471
+ * @license
3472
+ * Copyright (c) 2021 - 2024 Vaadin Ltd..
3473
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3474
+ */const rm=$`
3475
+ [class$='container'] {
3476
+ display: flex;
3477
+ flex-direction: column;
3478
+ min-width: 100%;
3479
+ max-width: 100%;
3480
+ width: var(--vaadin-field-default-width, 12em);
3481
+ }
3482
+ `;/**
3483
+ * @license
3484
+ * Copyright (c) 2021 - 2024 Vaadin Ltd..
3485
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3486
+ */const nm=[im,rm,tm];/**
3487
+ * @license
3488
+ * Copyright (c) 2023 - 2024 Vaadin Ltd.
3489
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3490
+ */const om=t=>class extends t{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,r){if(!r||e===void 0)return;const{classList:n}=r;if(this.__initialClasses||(this.__initialClasses=new Set(n)),Array.isArray(this.__previousClasses)){const s=this.__previousClasses.filter(a=>!this.__initialClasses.has(a));s.length>0&&n.remove(...s)}const o=typeof e=="string"?e.split(" ").filter(Boolean):[];o.length>0&&n.add(...o),this.__previousClasses=o}};/**
3491
+ * @license
3492
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
3493
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3494
+ */class sm{constructor(i){this.host=i,i.addEventListener("opened-changed",()=>{i.opened||this.__setVirtualKeyboardEnabled(!1)}),i.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),i.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(i){this.host.inputElement&&(this.host.inputElement.inputMode=i?"":"none")}}/**
3495
+ * @license
3496
+ * Copyright (c) 2016 - 2024 Vaadin Ltd.
3497
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3498
+ */const am=Object.freeze({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(t){const i=String(t.year).replace(/\d+/u,e=>"0000".substr(e.length)+e);return[t.month+1,t.day,i].join("/")},parseDate(t){const i=t.split("/"),e=new Date;let r,n=e.getMonth(),o=e.getFullYear();if(i.length===3){if(n=parseInt(i[0])-1,r=parseInt(i[1]),o=parseInt(i[2]),i[2].length<3&&o>=0){const s=this.referenceDate?It(this.referenceDate):new Date;o=ap(s,o,n,r)}}else i.length===2?(n=parseInt(i[0])-1,r=parseInt(i[1])):i.length===1&&(r=parseInt(i[0]));if(r!==void 0)return{day:r,month:n,year:o}},formatTitle:(t,i)=>`${t} ${i}`}),lm=t=>class extends om(Et(ja(qa(Ni(t))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:{type:Boolean,sync:!0},showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>St({},am)},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:va},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},__enteredDate:{type:Date,sync:!0}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled, __enteredDate)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e;const r=this.__parseDate(e);this.__setEnteredDate(r)}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return!this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(e){super._onFocus(e),this._noInput&&!an()&&e.target.blur()}_onBlur(e){super._onBlur(e),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this._requestValidation())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new Ua(this._fullscreenMediaQuery,r=>{this._fullscreen=r})),this.addController(new sm(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(e){if(e.firstChild)return;const r=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(r),this._overlayContent=r,r.addEventListener("close",()=>{this._close()}),r.addEventListener("focus-input",this._focusAndSelect.bind(this)),r.addEventListener("date-tap",n=>{this.__commitDate(n.detail.date),this._close()}),r.addEventListener("date-selected",n=>{this.__commitDate(n.detail.date)}),r.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),r.addEventListener("focusout",n=>{this._shouldRemoveFocus(n)&&this._setFocused(!1)}),r.addEventListener("focused-date-changed",n=>{this._focusedDate=n.detail.value}),r.addEventListener("click",n=>n.stopPropagation())}__parseDate(e){if(!this.i18n.parseDate)return;let r=this.i18n.parseDate(e);if(r&&(r=It(`${r.year}-${r.month+1}-${r.day}`)),r&&!isNaN(r.getTime()))return r}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(pn(e))}checkValidity(){const e=this._inputElementValue,r=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),n=!this._selectedDate||gt(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let o=!0;return this.inputElement&&this.inputElement.checkValidity&&(o=this.inputElement.checkValidity()),r&&n&&o}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:r}=e;return this.opened&&r!==null&&r!==document.body&&!this.contains(r)&&!this._overlayContent.contains(r)?!0:!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__commitValueChange(){const e=this.__unparsableValue;this.__committedValue!==this.value?(this._requestValidation(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==e&&(this._requestValidation(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=e}__commitDate(e){this.__keepCommittedValue=!0,this._selectedDate=e,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,r,n,o,s,a){return!e||r&&(!a||s)||n&&s||!o.parseDate}_formatISO(e){return up(e)}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,r){e===void 0||r===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,r){e===void 0||r===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,r){const n=It(e);if(e&&!n){this.value=r;return}e?ve(this._selectedDate,n)||(this._selectedDate=n,r!==void 0&&this._requestValidation()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,r,n,o,s,a,l,u,c,d){e&&(e.i18n=r,e.label=n,e.minDate=o,e.maxDate=s,e.focusedDate=a,e.selectedDate=l,e.showWeekNumbers=u,e.isDateDisabled=c,e.enteredDate=d)}__updateOverlayContentTheme(e,r){e&&(r?e.setAttribute("theme",r):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,r){e&&e.toggleAttribute("fullscreen",r)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const e=this._overlayContent;e.reset();const r=this._getInitialPosition();e.initialPosition=r;const n=e.focusedDate||r;e.scrollToDate(n),this._ignoreFocusedDateChange=!0,e.focusedDate=n,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const o=this._nativeInput;this._noInput&&o&&(o.blur(),this._overlayContent.focusDateElement());const s=this._noInput?e:[o,e];this.__showOthers=xa(s)}_getInitialPosition(){const e=It(this.initialPosition),r=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||gt(r,this._minDate,this._maxDate,this.isDateDisabled)?r:this._minDate||this._maxDate?Ha(r,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",r=this.__parseDate(e);r?this.__commitDate(r):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1)}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this._closedByEscape&&this._applyInputValue(this._selectedDate),this.__commitParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this._requestValidation()}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,r){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,r)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this.__commitDate(null)}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){this.opened?this.close():this.__commitParsedOrFocusedDate()}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){e.stopPropagation(),this._onClearButtonClick(e);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate)}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open();const e=this.__parseDate(this._inputElementValue||"");e&&(this._ignoreFocusedDateChange=!0,ve(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1),this.__setEnteredDate(e)}__setEnteredDate(e){e?ve(this.__enteredDate,e)||(this.__enteredDate=e):this.__enteredDate!=null&&(this.__enteredDate=null)}__computeMinOrMaxDate(e){return It(e)}};/**
3499
+ * @license
3500
+ * Copyright (c) 2016 - 2024 Vaadin Ltd.
3501
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3502
+ */const um=$`
3503
+ :host([opened]) {
3504
+ pointer-events: auto;
3505
+ }
3506
+
3507
+ :host([dir='rtl']) [part='input-field'] {
3508
+ direction: ltr;
3509
+ }
3510
+
3511
+ :host([dir='rtl']) [part='input-field'] ::slotted(input)::placeholder {
3512
+ direction: rtl;
3513
+ text-align: left;
3514
+ }
3515
+ `;/**
3516
+ * @license
3517
+ * Copyright (c) 2016 - 2024 Vaadin Ltd.
3518
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3519
+ */J("vaadin-date-picker",[nm,um],{moduleId:"vaadin-date-picker-styles"});class cm extends lm(Zp(Xe(Ca(Fe)))){static get is(){return"vaadin-date-picker"}static get template(){return Je`
3520
+ <div class="vaadin-date-picker-container">
3521
+ <div part="label">
3522
+ <slot name="label"></slot>
3523
+ <span part="required-indicator" aria-hidden="true" on-click="focus"></span>
3524
+ </div>
3525
+
3526
+ <vaadin-input-container
3527
+ part="input-field"
3528
+ readonly="[[readonly]]"
3529
+ disabled="[[disabled]]"
3530
+ invalid="[[invalid]]"
3531
+ theme$="[[_theme]]"
3532
+ >
3533
+ <slot name="prefix" slot="prefix"></slot>
3534
+ <slot name="input"></slot>
3535
+ <div id="clearButton" part="clear-button" slot="suffix" aria-hidden="true"></div>
3536
+ <div part="toggle-button" slot="suffix" aria-hidden="true" on-click="_toggle"></div>
3537
+ </vaadin-input-container>
3538
+
3539
+ <div part="helper-text">
3540
+ <slot name="helper"></slot>
3541
+ </div>
3542
+
3543
+ <div part="error-message">
3544
+ <slot name="error-message"></slot>
3545
+ </div>
3546
+ </div>
3547
+
3548
+ <vaadin-date-picker-overlay
3549
+ id="overlay"
3550
+ fullscreen$="[[_fullscreen]]"
3551
+ theme$="[[_theme]]"
3552
+ opened="{{opened}}"
3553
+ on-vaadin-overlay-escape-press="_onOverlayEscapePress"
3554
+ on-vaadin-overlay-open="_onOverlayOpened"
3555
+ on-vaadin-overlay-closing="_onOverlayClosed"
3556
+ restore-focus-on-close
3557
+ restore-focus-node="[[inputElement]]"
3558
+ ></vaadin-date-picker-overlay>
3559
+
3560
+ <slot name="tooltip"></slot>
3561
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Qp(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new em(this.inputElement,this._labelController)),this._tooltipController=new Pa(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(i){i.detail.sourceEvent&&i.detail.sourceEvent.composedPath().includes(this)&&i.preventDefault()}_toggle(i){i.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(i){super._openedChanged(i),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}Te(cm);function dm(t){rl(t,"svelte-1pt7zoa",'a{cursor:pointer;text-decoration:underline;font-weight:600}.PlayerSelfExclusionTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.PlayerSelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerSelfExclusionTitleNone{display:none}.SelfExclusionWrapper{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px;border-radius:20px;max-width:760px}.SelfExclusionWrapper.SelfExclusionWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.SelfExclusionTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weight-bold, 700)}.SelfExclusionTitle.SelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px)}.SelfExclusionDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px}.SelfExclusionDescription.SelfExclusionDescriptionMobile{font-size:var(--emw--font-size-x-small, 12px);line-height:19px}.SelfExclusionDescription .SelfExclusionDescriptionText a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionConfigWrapper{width:50%;height:100%;position:relative;margin-bottom:var(--emw--spacing-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border-radius:var(--emw--border-radius-medium, 20px);cursor:pointer}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px)}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel .SelfExclusionConfigIcon{width:15px;height:15px;fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));transform:rotateZ(-90deg);transition:all 0.5s ease-in-out}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel p{margin:0;font-family:inherit}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel .SelfExclusionConfigIcon.active{transform:rotateZ(0deg)}.SelfExclusionConfigWrapper .SelfExclusionDropDown{max-height:0px;overflow:hidden;box-sizing:border-box;transition:all 0.5s ease-in-out;opacity:0;color:var(--emw--color-gray-300, #58586B);background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:0px 0px var(--emw--border-radius-medium, 20px) var(--emw--border-radius-medium, 20px)}.SelfExclusionConfigWrapper .SelfExclusionDropDown div{padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px);font-size:var(--emw--font-size-x-small, 12px);border-top:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));transition:all 0.5s ease-in-out;font-family:inherit}.SelfExclusionConfigWrapper .SelfExclusionDropDown div:hover{color:var(--emw--color-white, #FFFFFF);background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionConfigWrapper .SelfExclusionDropDown.active{max-height:300px;opacity:1}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile{width:100%;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile .SelfExclusionConfigLabel .SelfExclusionConfigIcon{width:10px;height:10px}.SelfExclusionDateWrapper{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.SelfExclusionDateWrapper label{font-size:var(--emw--font-size-small, 14px);font-weight:300;padding-bottom:5px}.SelfExclusionDateWrapper .SelfExclusionDateInstructions{font-size:var(--emw--font-size-small, 12px);font-weight:300;padding-bottom:5px;line-height:18px}.SelfExclusionDateWrapper .SelfExclusionDateInstructions strong{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionDateWrapper input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px}.SelfExclusionDateWrapper.SelfExclusionDateWrapperMobile{width:100%}.SelfExclusionRadioWrapper{display:block;position:relative;padding:4px 0 0 0;margin-bottom:16px;font-size:var(--emw--size-standard, 16px);user-select:none;line-height:18px}.SelfExclusionRadioWrapper label{font-size:var(--emw--size-standard, 16px);cursor:pointer;padding-left:35px}.SelfExclusionRadioWrapper input{font-family:inherit;position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SelfExclusionRadioWrapper .Checkmark{position:absolute;top:0;left:0;height:25px;width:25px;background-color:var(--emw--color-gray-100, #E6E6E6);border-radius:50%}.SelfExclusionRadioWrapper input:checked~.Checkmark{background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionRadioWrapper .Checkmark:after{content:"";position:absolute;display:none;left:9px;top:5px;width:5px;height:10px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.SelfExclusionRadioWrapper input:checked~.Checkmark:after{display:block}.SelfExclusionRadioWrapper.SelfExclusionRadioWrapperMobile label{font-family:inherit;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionActionButtons{margin-top:40px;width:50%}.SelfExclusionActionButtons .SelfExclusionSave{font-family:var(--emw--button-typography);border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-gray-150, #828282) 80%, black 20%), var(--emw--color-gray-150, #828282), color-mix(in srgb, var(--emw--color-gray-150, #828282) 80%, white 30%));border:2px solid var(--emw--color-black, #000000);border-radius:50px;padding:30px 0;font-size:var(--emw--font-size-large, 20px);color:var(--emw--button-text-color, #FFFFFF)}.SelfExclusionActionButtons .SelfExclusionSave.active{cursor:pointer;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)}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile{width:100%;grid-template-columns:1fr 1fr}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile .SelfExclusionSave{height:40px;font-size:var(--emw--font-size-small, 14px);padding:20px 0}')}function No(t,i,e){const r=t.slice();return r[47]=i[e],r}function hm(t){let i,e,r,n,o,s,a,l,u,c,d=t[18]("titleSelfExclusion")+"",h,f,p;return{c(){i=z("div"),e=Oe("svg"),r=Oe("defs"),n=Oe("style"),o=de(".aaa{fill:var(--emw--color-primary, #22B04E);}"),s=Oe("g"),a=Oe("g"),l=Oe("path"),u=le(),c=z("h2"),h=de(d),C(l,"class","aaa"),C(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),C(l,"transform","translate(15 15) rotate(180)"),C(a,"transform","translate(20 158)"),C(s,"transform","translate(-20 -158)"),C(e,"xmlns","http://www.w3.org/2000/svg"),C(e,"width","15"),C(e,"height","15"),C(e,"viewBox","0 0 15 15"),C(c,"class","PlayerSelfExclusionTitleMobile"),C(i,"class","MenuReturnButton")},m(x,T){Ie(x,i,T),v(i,e),v(e,r),v(r,n),v(n,o),v(e,s),v(s,a),v(a,l),v(i,u),v(i,c),v(c,h),f||(p=hi(i,"click",t[28]),f=!0)},p(x,T){T[0]&262144&&d!==(d=x[18]("titleSelfExclusion")+"")&&ye(h,d)},d(x){x&&Ce(i),f=!1,p()}}}function Ho(t){let i,e=t[18](`${t[47].key}`)+"",r,n,o;function s(){return t[30](t[47])}return{c(){i=z("div"),r=de(e)},m(a,l){Ie(a,i,l),v(i,r),n||(o=hi(i,"click",s),n=!0)},p(a,l){t=a,l[0]&262400&&e!==(e=t[18](`${t[47].key}`)+"")&&ye(r,e)},d(a){a&&Ce(i),n=!1,o()}}}function Lo(t){let i,e,r=t[18]("duration")+"",n,o,s,a=t[18]("dateInstructions")+"",l,u,c,d,h;return{c(){i=z("div"),e=z("label"),n=de(r),o=le(),s=z("span"),l=de(a),u=le(),c=z("strong"),c.innerHTML="MM/DD/YYYY<strong></strong>",d=le(),h=z("vaadin-date-picker"),C(e,"for","SelfExclusionDate"),C(s,"class","SelfExclusionDateInstructions"),Q(h,"min",t[9]),Q(h,"max",t[10]),Q(h,"value",t[9]),C(i,"class","SelfExclusionDateWrapper "+(t[19]?"SelfExclusionDateWrapperMobile":""))},m(f,p){Ie(f,i,p),v(i,e),v(e,n),v(i,o),v(i,s),v(s,l),v(s,u),v(s,c),v(i,d),v(i,h),t[31](h)},p(f,p){p[0]&262144&&r!==(r=f[18]("duration")+"")&&ye(n,r),p[0]&262144&&a!==(a=f[18]("dateInstructions")+"")&&ye(l,a),p[0]&512&&Q(h,"min",f[9]),p[0]&1024&&Q(h,"max",f[10]),p[0]&512&&Q(h,"value",f[9])},d(f){f&&Ce(i),t[31](null)}}}function fm(t){let i,e,r=t[18]("temporarySelfExclusion",{values:{date:t[11]}})+"",n;return{c(){i=z("p"),e=z("strong"),n=de(r),C(i,"class","SelfExclusionDescriptionText")},m(o,s){Ie(o,i,s),v(i,e),v(e,n)},p(o,s){s[0]&264192&&r!==(r=o[18]("temporarySelfExclusion",{values:{date:o[11]}})+"")&&ye(n,r)},d(o){o&&Ce(i)}}}function pm(t){let i,e,r=t[18]("noPeriodSelected")+"",n;return{c(){i=z("p"),e=z("strong"),n=de(r),C(i,"class","SelfExclusionDescriptionText")},m(o,s){Ie(o,i,s),v(i,e),v(e,n)},p(o,s){s[0]&262144&&r!==(r=o[18]("noPeriodSelected")+"")&&ye(n,r)},d(o){o&&Ce(i)}}}function mm(t){let i,e,r=t[18]("permanentSelfExclusion")+"",n;return{c(){i=z("p"),e=z("strong"),n=de(r),C(i,"class","SelfExclusionDescriptionText")},m(o,s){Ie(o,i,s),v(i,e),v(e,n)},p(o,s){s[0]&262144&&r!==(r=o[18]("permanentSelfExclusion")+"")&&ye(n,r)},d(o){o&&Ce(i)}}}function _m(t){let i,e,r,n;return{c(){i=z("player-account-modal"),e=z("player-account-general-confirmation-modal"),Q(e,"modaltitle",r=t[18]("confirmationModalTitle")),Q(e,"modaltext",t[13]),Q(e,"hascancelbutton",!1),Q(e,"modalconfirmevent",n={type:"SetSelfExclusion",selfExclusionPeriod:t[12],selfExclusionExpiryDate:t[11]}),Q(e,"lang",t[0]),Q(i,"clientstyling",t[4]),Q(i,"clientstylingurl",t[5]),Q(i,"showmodaleventname","ShowSelfExclusionConfirmationModal")},m(o,s){Ie(o,i,s),v(i,e)},p(o,s){s[0]&262144&&r!==(r=o[18]("confirmationModalTitle"))&&Q(e,"modaltitle",r),s[0]&8192&&Q(e,"modaltext",o[13]),s[0]&6144&&n!==(n={type:"SetSelfExclusion",selfExclusionPeriod:o[12],selfExclusionExpiryDate:o[11]})&&Q(e,"modalconfirmevent",n),s[0]&1&&Q(e,"lang",o[0]),s[0]&16&&Q(i,"clientstyling",o[4]),s[0]&32&&Q(i,"clientstylingurl",o[5])},d(o){o&&Ce(i)}}}function gm(t){let i,e,r,n,o=t[18]("titleSelfExclusion")+"",s,a,l,u,c=t[18]("selfExclusionText",{values:{operatorname:t[1],baseurl:t[3],lang:t[0]}})+"",d,h,f=t[18]("selfExclusionEmailText")+"",p,x,T,O,D,N,U,H,Z,he=t[18](`${t[12]}`)+"",pe,me,L,P,se,ze,w,g,m,b,_,S,E,M=t[18]("save")+"",j,Y,q,ie,_e,ge,ae=t[19]&&hm(t),oe=Sn(t[8]),B=[];for(let A=0;A<oe.length;A+=1)B[A]=Ho(No(t,oe,A));let G=t[15]&&Lo(t);function y(A,K){return A[14]?mm:A[16]?fm:pm}let X=y(t),V=X(t),Se=t[20]&&_m(t);return{c(){i=z("div"),e=z("form"),ae&&ae.c(),r=le(),n=z("h2"),s=de(o),a=le(),l=z("div"),u=z("p"),d=le(),h=z("p"),p=de(f),x=le(),T=z("a"),O=de(t[2]),N=le(),U=z("div"),H=z("div"),Z=z("p"),pe=de(he),me=le(),L=Oe("svg"),P=Oe("g"),se=Oe("path"),ze=le(),w=z("div");for(let A=0;A<B.length;A+=1)B[A].c();g=le(),G&&G.c(),m=le(),b=z("div"),V.c(),_=le(),S=z("div"),E=z("button"),j=de(M),ie=le(),Se&&Se.c(),C(n,"class","PlayerSelfExclusionTitle "+(t[19]?"PlayerSelfExclusionTitleNone":"")),C(u,"class","SelfExclusionDescriptionText"),C(T,"href",D="mailto:"+t[2]),C(h,"class","SelfExclusionDescriptionText"),C(l,"class","SelfExclusionDescription "+(t[19]?"SelfExclusionDescriptionMobile":"")),C(se,"d","M 90 24.25 c 0 -0.896 -0.342 -1.792 -1.025 -2.475 c -1.366 -1.367 -3.583 -1.367 -4.949 0 L 45 60.8 L 5.975 21.775 c -1.367 -1.367 -3.583 -1.367 -4.95 0 c -1.366 1.367 -1.366 3.583 0 4.95 l 41.5 41.5 c 1.366 1.367 3.583 1.367 4.949 0 l 41.5 -41.5 C 89.658 26.042 90 25.146 90 24.25 z"),C(se,"stroke-linecap","round"),C(L,"xmlns","http://www.w3.org/2000/svg"),C(L,"xmlns:xlink","http://www.w3.org/1999/xlink"),C(L,"version","1.1"),C(L,"viewBox","0 0 100 100"),C(L,"xml:space","preserve"),C(L,"class","SelfExclusionConfigIcon"),Ze(L,"active",t[17]),C(H,"class","SelfExclusionConfigLabel"),C(w,"class","SelfExclusionDropDown"),Ze(w,"active",t[17]),C(U,"class","SelfExclusionConfigWrapper "+(t[19]?"SelfExclusionConfigWrapperMobile":"")),Ze(U,"active",t[17]),C(b,"class","SelfExclusionDescription "+(t[19]?"SelfExclusionDescriptionMobile":"")),C(E,"class",Y="SelfExclusionSave "+(t[16]?"active":"")),E.disabled=q=!t[16],C(S,"class","SelfExclusionActionButtons "+(t[19]?"SelfExclusionActionButtonsMobile":"")),C(e,"class","SelfExclusionWrapper "+(t[19]?"SelfExclusionWrapperMobile":""))},m(A,K){Ie(A,i,K),v(i,e),ae&&ae.m(e,null),v(e,r),v(e,n),v(n,s),v(e,a),v(e,l),v(l,u),u.innerHTML=c,v(l,d),v(l,h),v(h,p),v(h,x),v(h,T),v(T,O),v(e,N),v(e,U),v(U,H),v(H,Z),v(Z,pe),v(H,me),v(H,L),v(L,P),v(P,se),v(U,ze),v(U,w);for(let re=0;re<B.length;re+=1)B[re]&&B[re].m(w,null);v(e,g),G&&G.m(e,null),v(e,m),v(e,b),V.m(b,null),v(e,_),v(e,S),v(S,E),v(E,j),v(i,ie),Se&&Se.m(i,null),t[33](i),_e||(ge=[hi(H,"click",t[29]),hi(E,"click",t[32])],_e=!0)},p(A,K){if(A[19]&&ae.p(A,K),K[0]&262144&&o!==(o=A[18]("titleSelfExclusion")+"")&&ye(s,o),K[0]&262155&&c!==(c=A[18]("selfExclusionText",{values:{operatorname:A[1],baseurl:A[3],lang:A[0]}})+"")&&(u.innerHTML=c),K[0]&262144&&f!==(f=A[18]("selfExclusionEmailText")+"")&&ye(p,f),K[0]&4&&ye(O,A[2]),K[0]&4&&D!==(D="mailto:"+A[2])&&C(T,"href",D),K[0]&266240&&he!==(he=A[18](`${A[12]}`)+"")&&ye(pe,he),K[0]&131072&&Ze(L,"active",A[17]),K[0]&4456704){oe=Sn(A[8]);let re;for(re=0;re<oe.length;re+=1){const vn=No(A,oe,re);B[re]?B[re].p(vn,K):(B[re]=Ho(vn),B[re].c(),B[re].m(w,null))}for(;re<B.length;re+=1)B[re].d(1);B.length=oe.length}K[0]&131072&&Ze(w,"active",A[17]),K[0]&131072&&Ze(U,"active",A[17]),A[15]?G?G.p(A,K):(G=Lo(A),G.c(),G.m(e,m)):G&&(G.d(1),G=null),X===(X=y(A))&&V?V.p(A,K):(V.d(1),V=X(A),V&&(V.c(),V.m(b,null))),K[0]&262144&&M!==(M=A[18]("save")+"")&&ye(j,M),K[0]&65536&&Y!==(Y="SelfExclusionSave "+(A[16]?"active":""))&&C(E,"class",Y),K[0]&65536&&q!==(q=!A[16])&&(E.disabled=q),A[20]&&Se.p(A,K)},i:Ee,o:Ee,d(A){A&&Ce(i),ae&&ae.d(),sl(B,A),G&&G.d(),V.d(),Se&&Se.d(),t[33](null),_e=!1,bt(ge)}}}function bm(t,i,e){let r;il(t,Ac,y=>e(18,r=y));let{endpoint:n="",lang:o="en",operator:s="Everymatrix",supportemail:a="",baseurl:l="",clientstyling:u="",clientstylingurl:c="",translationurl:d="",hasconfirmationmodal:h="false"}=i,f,p,x=[],T=window.navigator.userAgent,O,D,N="",U="",H="selectAPeriod",Z="",he=Cc(T)!=="PC",pe=!1,me=!1,L=!1,P=!1,se=h==="true";const ze=()=>{fetch(d).then(X=>X.json()).then(X=>{Object.keys(X).forEach(V=>{Yn(V,X[V])})}).catch(X=>{console.log(X)})};Object.keys(Gn).forEach(y=>{Yn(y,Gn[y])});const w=()=>{let y=new URL(`${n}/v1/player/selfExclusionSettings`);fetch(y,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}}).then(V=>g(V)).then(V=>{e(8,x=V.periods)}).catch(V=>{console.log(V)})},g=y=>{if(y.status>=300)throw new Error("There was an error fetching the config");return y.json()},m=()=>{e(17,P=!P)},b=y=>{switch(U=y.text,e(12,H=y.key),e(16,L=!0),e(17,P=!1),e(14,pe=!1),e(15,me=!1),U){case"Until":e(15,me=!0),e(9,O=ji().add(6,"months").format("YYYY-MM-DD")),e(10,D=ji().add(5,"years").format("YYYY-MM-DD")),e(11,N=O);break;case"Permanent":e(14,pe=!pe);break;default:const[X,V]=U.split(" "),Se=V.includes("Day")?"days":V.includes("Month")?"months":V.includes("Year")?"years":null;if(!Se)return;e(11,N=ji().add(Number(X),Se).format("YYYY-MM-DD"));break}se&&_()},_=()=>{if(!se){e(13,Z="");return}e(13,Z=me?r("confirmationModalTextUntil",{values:{date:N}}):r("confirmationModalTextPeriod",{values:{period:r(U)}}))},S=y=>{y.preventDefault(),se?window.postMessage({type:"ShowSelfExclusionConfirmationModal"},window.location.href):window.postMessage({type:"SetSelfExclusion",selfExclusionPeriod:H,selfExclusionExpiryDate:N},window.location.href)},E=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:he},window.location.href)},M=y=>{e(11,N=y.target.value)},j=()=>{p.addEventListener("change",M,!1)},Y=()=>{let y=document.createElement("style");y.innerHTML=u,f.appendChild(y)},q=()=>{let y=new URL(c),X=document.createElement("style");fetch(y.href).then(V=>V.text()).then(V=>{X.innerHTML=V,setTimeout(()=>{f.appendChild(X)},1)})};cl(()=>()=>{p.removeEventListener("change",M)});const ie=()=>{Pc(o)},_e=()=>E(),ge=()=>m(),ae=y=>b(y);function oe(y){fi[y?"unshift":"push"](()=>{p=y,e(7,p)})}const B=y=>S(y);function G(y){fi[y?"unshift":"push"](()=>{f=y,e(6,f)})}return t.$$set=y=>{"endpoint"in y&&e(25,n=y.endpoint),"lang"in y&&e(0,o=y.lang),"operator"in y&&e(1,s=y.operator),"supportemail"in y&&e(2,a=y.supportemail),"baseurl"in y&&e(3,l=y.baseurl),"clientstyling"in y&&e(4,u=y.clientstyling),"clientstylingurl"in y&&e(5,c=y.clientstylingurl),"translationurl"in y&&e(26,d=y.translationurl),"hasconfirmationmodal"in y&&e(27,h=y.hasconfirmationmodal)},t.$$.update=()=>{t.$$.dirty[0]&128&&p&&j(),t.$$.dirty[0]&33554432&&n&&w(),t.$$.dirty[0]&1&&o&&ie(),t.$$.dirty[0]&96&&c&&f&&q(),t.$$.dirty[0]&80&&u&&f&&Y(),t.$$.dirty[0]&67108864&&d&&ze()},se&&_(),[o,s,a,l,u,c,f,p,x,O,D,N,H,Z,pe,me,L,P,r,he,se,m,b,S,E,n,d,h,_e,ge,ae,oe,B,G]}class Xa extends wl{constructor(i){super(),vl(this,i,bm,gm,Yo,{endpoint:25,lang:0,operator:1,supportemail:2,baseurl:3,clientstyling:4,clientstylingurl:5,translationurl:26,hasconfirmationmodal:27},dm,[-1,-1])}get endpoint(){return this.$$.ctx[25]}set endpoint(i){this.$$set({endpoint:i}),xe()}get lang(){return this.$$.ctx[0]}set lang(i){this.$$set({lang:i}),xe()}get operator(){return this.$$.ctx[1]}set operator(i){this.$$set({operator:i}),xe()}get supportemail(){return this.$$.ctx[2]}set supportemail(i){this.$$set({supportemail:i}),xe()}get baseurl(){return this.$$.ctx[3]}set baseurl(i){this.$$set({baseurl:i}),xe()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(i){this.$$set({clientstyling:i}),xe()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(i){this.$$set({clientstylingurl:i}),xe()}get translationurl(){return this.$$.ctx[26]}set translationurl(i){this.$$set({translationurl:i}),xe()}get hasconfirmationmodal(){return this.$$.ctx[27]}set hasconfirmationmodal(i){this.$$set({hasconfirmationmodal:i}),xe()}}xl(Xa,{endpoint:{},lang:{},operator:{},supportemail:{},baseurl:{},clientstyling:{},clientstylingurl:{},translationurl:{},hasconfirmationmodal:{}},[],[],!0);exports.default=Xa;